telegram-tt/dist/3.41197bdddd2827d6c797.js

2 lines
247 KiB
JavaScript
Raw Normal View History

2021-07-06 18:40:10 +02:00
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],Array(102).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,"Dialogs",(function(){return ke})),a.d(t,"Notifications",(function(){return Ie})),a.d(t,"SafeLinkModal",(function(){return Pe})),a.d(t,"HistoryCalendar",(function(){return Te})),a.d(t,"CalendarModal",(function(){return Ae})),a.d(t,"DeleteMessageModal",(function(){return Re})),a.d(t,"PinMessageModal",(function(){return De})),a.d(t,"UnpinAllMessagesModal",(function(){return Be})),a.d(t,"MessageSelectToolbar",(function(){return qe})),a.d(t,"LeftSearch",(function(){return Nt})),a.d(t,"Settings",(function(){return on})),a.d(t,"ContactList",(function(){return mn})),a.d(t,"NewChat",(function(){return gn})),a.d(t,"NewChatStep1",(function(){return hn})),a.d(t,"NewChatStep2",(function(){return bn})),a.d(t,"ArchivedChats",(function(){return En})),a.d(t,"ContextMenuContainer",(function(){return Mn})),a.d(t,"StickerSetModal",(function(){return Fn})),a.d(t,"HeaderMenuContainer",(function(){return An})),a.d(t,"MobileSearch",(function(){return Dn})),a.d(t,"AttachmentModal",(function(){return Kn})),a.d(t,"PollModal",(function(){return Zn})),a.d(t,"SymbolMenu",(function(){return jc})),a.d(t,"AttachMenu",(function(){return Cc})),a.d(t,"MentionTooltip",(function(){return Vn})),a.d(t,"StickerTooltip",(function(){return yc})),a.d(t,"BotKeyboardMenu",(function(){return kc})),a.d(t,"CustomSendMenu",(function(){return Nc})),a.d(t,"DropArea",(function(){return Ic.b})),a.d(t,"TextFormatter",(function(){return Sc.a})),a.d(t,"EmojiTooltip",(function(){return Pc})),a.d(t,"RightSearch",(function(){return Fc})),a.d(t,"StickerSearch",(function(){return Rc})),a.d(t,"GifSearch",(function(){return Dc})),a.d(t,"PollResults",(function(){return xc})),a.d(t,"Management",(function(){return Jc})),a.d(t,"PaymentModal",(function(){return kr})),a.d(t,"ReceiptModal",(function(){return Sr}));var n=a(0),c=a(2),r=a(7),s=a(19),l=a(1),o=a(5),i=a(114),d=a(6),m=a(4),u=a(3),h=a(131),b=a(47),p=a(176),g=a(27),v=a(107),E=a(119),f=a(191),O=a(38),j=a(48),C=a(145),y=a(56);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}=Object(m.v)(n),a=Object(m.R)(n),c=Object(m.S)(n);d=Boolean(t||c),o=d?Object(m.cb)(t||c):Object(m.T)(e||a)}else o=i.a;const{width:u,height:h}=Object(i.l)(e,d),{width:b,height:p}=Object(i.f)(u,h,o.width,o.height),g=(r-b)/2,v=function(e){const t=window.matchMedia(i.c);let a=4.125;e&&(a+=t.matches?.875:3.375);return a*i.d}(e)+(h-p)/2;let{top:E,left:f,width:O,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,p,E,f,O,j);E=e.top,f=e.left,O=e.width,j=e.height}const C=f+O/2-(g+b/2),k=E+j/2-(v+p/2),N=O/b,S=j/p,F=I(a||c);w(F,{top:v+"px",left:g+"px",width:b+"px",height:p+"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:p}=c.getBoundingClientRect();let g=u;if(!function(e){if("none"===e.style.display)return!1;const t=e.getBoundingClientRect(),{height:a}=y.a.get();return t.
//# sourceMappingURL=3.41197bdddd2827d6c797.js.map