2022-01-07 19:12:53 +01:00
|
|
|
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[739],{7799:(e,t,n)=>{n.d(t,{Z:()=>u});var r=n(4050),o=n(9118),c=n(6752),s=n(8674),a=n(5332);let l,i;async function d(){return l||(l=n.e(941).then(n.bind(n,7941)),i=(await l).default),l}setTimeout(d,5e3);const u=(0,r.X$)((({className:e,id:t,animationData:n,play:l,playSegment:u,speed:m,noLoop:f,size:p,quality:h,isLowPriority:v,onLoad:g,color:Z})=>{const[w,y]=(0,r.eJ)(),E=(0,r.sO)(null),C=(0,r.sO)(!1),b=(0,r.sO)(!1),I=(0,r.sO)(!0),P=(0,r.sO)();P.current=l;const A=(0,r.sO)();A.current=u,(0,r.d4)((()=>{if(w||!n)return;const e=()=>{if(!E.current)return;const e=new i(t,E.current,n,{noLoop:f,size:p,quality:h,isLowPriority:v},g,Z);m&&e.setSpeed(m),y(e)};i?e():d().then((()=>{(0,o.T2)((()=>{E.current&&e()}))}))}),[Z,w,n,t,v,f,g,h,p,m]),(0,r.d4)((()=>{w&&w.setColor(Z)}),[Z,w]),(0,r.d4)((()=>()=>{w&&w.destroy()}),[w]);const T=(0,r.I4)(((e=!1)=>{w&&(P.current||A.current)&&(A.current?w.playSegment(A.current):e?w.goToAndPlay(0):w.play())}),[w]),N=(0,r.I4)((()=>{w&&w.pause()}),[w]),S=(0,r.I4)((()=>{b.current=!0,w&&(C.current||(C.current=w.isPlaying()),N())}),[w,N]),k=(0,r.I4)((()=>{C.current&&T(),C.current=!1,b.current=!1}),[T]),L=(0,r.I4)((()=>{(0,o.T2)(k)}),[k]);(0,r.d4)((()=>{w&&(l||u?b.current?C.current=!0:T(f):b.current?C.current=!1:N())}),[w,l,u,f,T,N]),(0,r.d4)((()=>{w&&(I.current?I.current=!1:(w.changeData(n),T()))}),[T,w,n]),(0,s.ZP)(S,k),(0,a.Z)(S,L);const B=(0,c.Z)("AnimatedSticker",e),x=p?`width: ${p}px; height: ${p}px;`:void 0;return r.ZP.createElement("div",{ref:E,className:B,style:x})}))},172:(e,t,n)=>{n.d(t,{Z:()=>f});var r=n(4050),o=n(6137),c=n(3716),s=n(2858),a=n(2155),l=n(6752),i=n(2340),d=n(6202),u=n(1212),m=n(9107);const f=(0,r.X$)((({className:e,size:t="large",chat:n,user:f,photo:p,userStatus:h,text:v,isSavedMessages:g,lastSyncTime:Z,onClick:w})=>{const y=f&&(0,s.NB)(f),E=f&&(0,s.pK)(f.id);let C;g||y||(f?C=(0,s.RT)(f):n?C=(0,s.RT)(n):p&&(C=`photo${p.id}?size=m`));const b=(0,d.Z)(C,!1,o.IU.BlobUrl,Z),I=Boolean(b),{transitionClassNames:P}=(0,u.Z)(I,void 0,I,"slow"),A=(0,m.Z)();let T="";if(g)T=r.ZP.createElement("i",{className:"icon-avatar-saved-messages"});else if(y)T=r.ZP.createElement("i",{className:"icon-avatar-deleted-account"});else if(E)T=r.ZP.createElement("i",{className:"icon-reply-filled"});else if(b)T=r.ZP.createElement("img",{src:b,className:(0,l.Z)("avatar-media",P),alt:"",decoding:"async"});else if(f){const e=(0,s.Js)(f);T=e?(0,a.Xv)(e,2):void 0}else if(n){const e=(0,s.U)(A,n);T=e&&(0,a.Xv)(e,(0,s.YC)(n.id)?2:1)}else v&&(T=(0,a.Xv)(v,2));const N=!g&&f&&h&&(0,s.kM)(f,h),S=(0,l.Z)(`Avatar size-${t}`,e,`color-bg-${(0,s.Rs)(f||n)}`,g&&"saved-messages",y&&"deleted-account",E&&"replies-bot-account",N&&"online",w&&"interactive",!g&&!b&&"no-photo"),k=Boolean(g||b),L=(0,r.I4)((e=>{w&&w(e,k)}),[w,k]),B=(f||n)&&(f||n).id;return r.ZP.createElement("div",{className:S,onClick:L,"data-test-sender-id":c.Cg?B:void 0},"string"==typeof T?(0,i.Z)(T,["jumbo"===t?"hq_emoji":"emoji"]):T)}))},7551:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(4050),o=n(9107),c=n(3103),s=n(231);const a=(0,r.X$)((({isOpen:e,onClose:t,onCloseAnimationEnd:n,title:a,header:l,text:i,textParts:d,confirmLabel:u="Confirm",confirmHandler:m,confirmIsDestructive:f,isButtonsInOneRow:p,children:h})=>{const v=(0,o.Z)();return r.ZP.createElement(c.Z,{className:"confirm",title:a,header:l,isOpen:e,onClose:t,onCloseAnimationEnd:n,onEnter:m},i&&i.split("\\n").map((e=>r.ZP.createElement("p",null,e))),d||h,r.ZP.createElement("div",{className:p?"dialog-buttons mt-2":""},r.ZP.createElement(s.Z,{className:"confirm-dialog-button",isText:!0,onClick:m,color:f?"danger":"primary"},u),r.ZP.createElement(s.Z,{className:"confirm-dialog-button",isText:!0,onClick:t},v("Cancel"))))}))},1273:(e,t,n)=>{n.d(t,{Z:()=>a});var r=n(1713),o=n(4050),c=n(9118),s=n(7675);const a=({ref:e,className:t,onLoadMore:n,onScroll:a,onKeyDown:l,items:i,itemSelector:d=".ListItem",preloadBackwards:u=20,sensitiveArea:m=800,noScrollRestore:f=!1,noScrollRestoreOnTop:p=!1,noFastList:h,cacheBuster:v,children:g})=>{let Z=(0,o.sO)(null);e&&
|