2021-05-17 18:44:01 +02:00
|
|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],Array(95).concat([function(e,t,a){"use strict";a.r(t),a.d(t,"MediaViewer",(function(){return de})),a.d(t,"ForwardPicker",(function(){return Oe})),a.d(t,"Errors",(function(){return ye})),a.d(t,"Notifications",(function(){return Ne})),a.d(t,"SafeLinkModal",(function(){return we})),a.d(t,"CalendarModal",(function(){return Le})),a.d(t,"DeleteMessageModal",(function(){return Ae})),a.d(t,"PinMessageModal",(function(){return Te})),a.d(t,"UnpinAllMessagesModal",(function(){return Be})),a.d(t,"MessageSelectToolbar",(function(){return Re})),a.d(t,"LeftSearch",(function(){return yt})),a.d(t,"Settings",(function(){return sn})),a.d(t,"ContactList",(function(){return on})),a.d(t,"NewChat",(function(){return bn})),a.d(t,"NewChatStep1",(function(){return mn})),a.d(t,"NewChatStep2",(function(){return un})),a.d(t,"ArchivedChats",(function(){return gn})),a.d(t,"ContextMenuContainer",(function(){return wn})),a.d(t,"StickerSetModal",(function(){return Pn})),a.d(t,"HeaderMenuContainer",(function(){return Fn})),a.d(t,"MobileSearch",(function(){return Tn})),a.d(t,"AttachmentModal",(function(){return Wn})),a.d(t,"PollModal",(function(){return Kn})),a.d(t,"SymbolMenu",(function(){return fc})),a.d(t,"AttachMenu",(function(){return Oc})),a.d(t,"MentionTooltip",(function(){return Hn})),a.d(t,"StickerTooltip",(function(){return jc})),a.d(t,"BotKeyboardMenu",(function(){return Cc})),a.d(t,"CustomSendMenu",(function(){return yc})),a.d(t,"DropArea",(function(){return kc.b})),a.d(t,"TextFormatter",(function(){return Nc.a})),a.d(t,"EmojiTooltip",(function(){return Sc})),a.d(t,"RightSearch",(function(){return Pc})),a.d(t,"StickerSearch",(function(){return Ac})),a.d(t,"GifSearch",(function(){return Tc})),a.d(t,"PollResults",(function(){return Dc})),a.d(t,"Management",(function(){return _c})),a.d(t,"PaymentModal",(function(){return Cr})),a.d(t,"ReceiptModal",(function(){return Nr}));var n=a(0),c=a(2),r=a(5),s=a(19),l=a(1),o=a(8),i=a(109),d=a(6),m=a(4),u=a(3),h=a(126),b=a(44),p=a(170),g=a(35),v=a(101),E=a(114),f=a(179),O=a(41),j=a(45),C=a(140),y=a(52);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:p}=Object(i.e)(u,h,o.width,o.height),g=(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-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.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.top<=a&&t.top+t.height>=0}(n)){const{height:e}=y.a.get();g=u<o?-p:e}const v=i+d/2-(h+b/2),E=o+m/2-(g+p
|