telegram-tt/dist/3.695679058d5b91efd31e.js

2 lines
244 KiB
JavaScript
Raw Normal View History

2021-06-12 16:21:53 +02:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],Array(100).concat([function(e,t,a){"use strict";a.r(t),a.d(t,"MediaViewer",(function(){return de})),a.d(t,"ForwardPicker",(function(){return je})),a.d(t,"Errors",(function(){return ke})),a.d(t,"Notifications",(function(){return Ie})),a.d(t,"SafeLinkModal",(function(){return Pe})),a.d(t,"CalendarModal",(function(){return Ae})),a.d(t,"DeleteMessageModal",(function(){return Te})),a.d(t,"PinMessageModal",(function(){return Re})),a.d(t,"UnpinAllMessagesModal",(function(){return De})),a.d(t,"MessageSelectToolbar",(function(){return Ge})),a.d(t,"LeftSearch",(function(){return kt})),a.d(t,"Settings",(function(){return ln})),a.d(t,"ContactList",(function(){return dn})),a.d(t,"NewChat",(function(){return gn})),a.d(t,"NewChatStep1",(function(){return un})),a.d(t,"NewChatStep2",(function(){return hn})),a.d(t,"ArchivedChats",(function(){return vn})),a.d(t,"ContextMenuContainer",(function(){return Pn})),a.d(t,"StickerSetModal",(function(){return Mn})),a.d(t,"HeaderMenuContainer",(function(){return Ln})),a.d(t,"MobileSearch",(function(){return Rn})),a.d(t,"AttachmentModal",(function(){return Wn})),a.d(t,"PollModal",(function(){return Yn})),a.d(t,"SymbolMenu",(function(){return fc})),a.d(t,"AttachMenu",(function(){return jc})),a.d(t,"MentionTooltip",(function(){return _n})),a.d(t,"StickerTooltip",(function(){return Cc})),a.d(t,"BotKeyboardMenu",(function(){return yc})),a.d(t,"CustomSendMenu",(function(){return kc})),a.d(t,"DropArea",(function(){return Nc.b})),a.d(t,"TextFormatter",(function(){return Ic.a})),a.d(t,"EmojiTooltip",(function(){return wc})),a.d(t,"RightSearch",(function(){return Mc})),a.d(t,"StickerSearch",(function(){return Tc})),a.d(t,"GifSearch",(function(){return Rc})),a.d(t,"PollResults",(function(){return Bc})),a.d(t,"Management",(function(){return Xc})),a.d(t,"PaymentModal",(function(){return yr})),a.d(t,"ReceiptModal",(function(){return Ir}));var n=a(0),c=a(2),r=a(5),s=a(19),l=a(1),o=a(7),i=a(112),d=a(6),m=a(4),u=a(3),h=a(130),b=a(47),g=a(175),p=a(25),v=a(105),E=a(118),O=a(189),f=a(37),j=a(48),C=a(144),y=a(55);function k(e,t,a,n){const{mediaEl:c}=P(t,n);if(!c)return;const{width:r}=y.a.get();let o,d=!1;if(n){const{photo:e,video:t,webPage:a}=Object(m.v)(n);d=Boolean(t),o=t?Object(m.bb)(t):Object(m.S)(e||a.photo)}else o=i.a;const{width:u,height:h}=Object(i.j)(e,d),{width:b,height:g}=Object(i.e)(u,h,o.width,o.height),p=(r-b)/2,v=function(e){const t=window.matchMedia(i.b);let a=4.125;e&&(a+=t.matches?.875:3.375);return a*i.c}(e)+(h-g)/2;let{top:E,left:O,width:f,height:j}=c.getBoundingClientRect();if([s.h.SharedMedia,s.h.Album,s.h.ScheduledAlbum,s.h.SearchResult].includes(t)){const e=function(e,t,a,n,c,r){if(e===t){const s=Math.max(c,r)*(e/t);n-=(s-c)/2,a-=(s-r)/2,c=s,r=s}else if(e>t){const a=c;n-=((c=r*(e/t))-a)/2}else if(t>e){const n=r;a-=((r=c*(t/e))-n)/2}return{top:a,left:n,width:c,height:r}}(b,g,E,O,f,j);E=e.top,O=e.left,f=e.width,j=e.height}const C=O+f/2-(p+b/2),k=E+j/2-(v+g/2),N=f/b,S=j/g,F=I(a||c);w(F,{top:v+"px",left:p+"px",width:b+"px",height:g+"px",transform:`translate3d(${C}px, ${k}px, 0) scale(${N}, ${S})`}),M(F,t),document.body.classList.add("ghost-animating"),requestAnimationFrame(()=>{document.body.appendChild(F),requestAnimationFrame(()=>{F.style.transform="",function(e){e.firstChild.style.objectFit="default",e.classList.remove("rounded-corners","circle")}(F),setTimeout(()=>{requestAnimationFrame(()=>{document.body.contains(F)&&document.body.removeChild(F),document.body.classList.remove("ghost-animating")})},200+l.c)})})}function N(e,t,a){const{container:n,mediaEl:c}=P(e,a);if(!c)return;const r=document.getElementById("MediaViewer").querySelector(".active .media-viewer-content img, .active .media-viewer-content video");if(!r||!c)return;const{top:o,left:i,width:d,height:m}=r.getBoundingClientRect(),{top:u,left:h,width:b,height:g}=c.getBoundingClientRect();let p=u;if(!function(e){if("none"===e.style.display)return!1;const t=e.getBoundingClientRect(),{height:a}=y.a.get();return t.top<=a&&t.top+t.height>=0}(n)){const{height:e}=y.a.get();p=u<o?-g:e}const
//# sourceMappingURL=3.695679058d5b91efd31e.js.map