2021-07-15 20:58:27 +02:00
|
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],Array(103).concat([function(e,t,a){"use strict";a.r(t),a.d(t,"MediaViewer",(function(){return me})),a.d(t,"ForwardPicker",(function(){return Ce})),a.d(t,"Dialogs",(function(){return Ne})),a.d(t,"Notifications",(function(){return we})),a.d(t,"SafeLinkModal",(function(){return Me})),a.d(t,"HistoryCalendar",(function(){return Re})),a.d(t,"CalendarModal",(function(){return Te})),a.d(t,"DeleteMessageModal",(function(){return De})),a.d(t,"PinMessageModal",(function(){return Be})),a.d(t,"UnpinAllMessagesModal",(function(){return xe})),a.d(t,"MessageSelectToolbar",(function(){return He})),a.d(t,"LeftSearch",(function(){return It})),a.d(t,"Settings",(function(){return En})),a.d(t,"ContactList",(function(){return jn})),a.d(t,"NewChat",(function(){return Sn})),a.d(t,"NewChatStep1",(function(){return yn})),a.d(t,"NewChatStep2",(function(){return kn})),a.d(t,"ArchivedChats",(function(){return In})),a.d(t,"ContextMenuContainer",(function(){return Gn})),a.d(t,"StickerSetModal",(function(){return qn})),a.d(t,"HeaderMenuContainer",(function(){return _n})),a.d(t,"MobileSearch",(function(){return Vn})),a.d(t,"AttachmentModal",(function(){return cc})),a.d(t,"PollModal",(function(){return rc})),a.d(t,"SymbolMenu",(function(){return Fc})),a.d(t,"AttachMenu",(function(){return Ac})),a.d(t,"MentionTooltip",(function(){return ac})),a.d(t,"StickerTooltip",(function(){return Lc})),a.d(t,"BotKeyboardMenu",(function(){return Tc})),a.d(t,"CustomSendMenu",(function(){return Rc})),a.d(t,"DropArea",(function(){return Dc.b})),a.d(t,"TextFormatter",(function(){return Bc.a})),a.d(t,"EmojiTooltip",(function(){return Uc})),a.d(t,"RightSearch",(function(){return qc})),a.d(t,"StickerSearch",(function(){return $c})),a.d(t,"GifSearch",(function(){return Vc})),a.d(t,"PollResults",(function(){return Kc})),a.d(t,"Management",(function(){return is})),a.d(t,"PaymentModal",(function(){return Ts})),a.d(t,"ReceiptModal",(function(){return Bs}));var n=a(0),c=a(2),s=a(6),r=a(19),o=a(1),l=a(5),i=a(56),d=a(114),m=a(7),u=a(4),h=a(3),b=a(131),g=a(48),p=a(176),v=a(28),O=a(107),E=a(119),f=a(191),j=a(27),C=a(50),y=a(145);function k(e,t,a,n,c,s){const{mediaEl:l}=P(t,s);if(!l)return;const{width:m}=i.a.get(),{width:u,height:h}=Object(d.l)(e,c),{width:b,height:g}=Object(d.f)(u,h,n.width,n.height),p=(m-b)/2,v=function(e){const t=window.matchMedia(d.c);let a=4.125;e&&(a+=t.matches?.875:3.375);return a*d.d}(e)+(h-g)/2;let{top:O,left:E,width:f,height:j}=l.getBoundingClientRect();if([r.h.SharedMedia,r.h.Album,r.h.ScheduledAlbum,r.h.SearchResult].includes(t)){const e=function(e,t,a,n,c,s){if(e===t){const r=Math.max(c,s)*(e/t);n-=(r-c)/2,a-=(r-s)/2,c=r,s=r}else if(e>t){const a=c;n-=((c=s*(e/t))-a)/2}else if(t>e){const n=s;a-=((s=c*(t/e))-n)/2}return{top:a,left:n,width:c,height:s}}(b,g,O,E,f,j);O=e.top,E=e.left,f=e.width,j=e.height}const C=E+f/2-(p+b/2),y=O+j/2-(v+g/2),k=f/b,N=j/g,w=S(a||l);I(w,{top:v+"px",left:p+"px",width:b+"px",height:g+"px",transform:`translate3d(${C}px, ${y}px, 0) scale(${k}, ${N})`}),M(w,t),document.body.classList.add("ghost-animating"),requestAnimationFrame(()=>{document.body.appendChild(w),requestAnimationFrame(()=>{w.style.transform="",function(e){e.firstChild.style.objectFit="default",e.classList.remove("rounded-corners","circle")}(w),setTimeout(()=>{requestAnimationFrame(()=>{document.body.contains(w)&&document.body.removeChild(w),document.body.classList.remove("ghost-animating")})},200+o.c)})})}function N(e,t,a){const{container:n,mediaEl:c}=P(e,a);if(!c)return;const s=document.getElementById("MediaViewer").querySelector(".active .media-viewer-content img, .active .media-viewer-content video");if(!s||!c)return;const{top:l,left:d,width:m,height:u}=s.getBoundingClientRect(),{top:h,left:b,width:g,height:p}=c.getBoundingClientRect();let v=h;if(!function(e){if("none"===e.style.display)return!1;const t=e.getBoundingClientRect(),{height:a}=i.a.get();return t.top<=a&&t.top+t.height>=0}(n)){const{height:e}=i.a.get();v=h<l?-p:e}const O=d+m/2-(b+g/2),E=l+u/2-(v+p/2);let f=m/g,j=u/p;const C=[r.h.Inline,r.h.ScheduledInl
|