telegram-tt/dist/830.743a3bc23208a5ae5b3b.js

2 lines
14 KiB
JavaScript
Raw Normal View History

2022-02-20 12:49:20 +01:00
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[830],{7799:(e,t,n)=>{n.d(t,{Z:()=>u});var o=n(4050),r=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,3e3);const u=(0,o.X$)((e=>{let{className:t,id:n,animationData:l,play:u,playSegment:m,speed:p,noLoop:f,size:g,quality:h,isLowPriority:v,color:Z,forceOnHeavyAnimation:w,onLoad:b,onEnded:y}=e;const[C,E]=(0,o.eJ)(),x=(0,o.sO)(null),k=(0,o.sO)(!1),P=(0,o.sO)(!1),I=(0,o.sO)(!0),T=(0,o.sO)();T.current=u;const A=(0,o.sO)();A.current=m,(0,o.d4)((()=>{if(C||!l)return;const e=()=>{if(!x.current)return;const e=new i(n,x.current,l,{noLoop:f,size:g,quality:h,isLowPriority:v},b,Z,y);p&&e.setSpeed(p),E(e)};i?e():d().then((()=>{(0,r.T2)((()=>{x.current&&e()}))}))}),[Z,C,l,n,v,f,b,h,g,p,y]),(0,o.d4)((()=>{C&&C.setColor(Z)}),[Z,C]),(0,o.d4)((()=>()=>{C&&C.destroy()}),[C]);const N=(0,o.I4)((function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];C&&(T.current||A.current)&&(A.current?C.playSegment(A.current):e?C.goToAndPlay(0):C.play())}),[C]),S=(0,o.I4)((()=>{C&&C.pause()}),[C]),L=(0,o.I4)((()=>{P.current=!0,C&&(k.current||(k.current=C.isPlaying()),S())}),[C,S]),O=(0,o.I4)((()=>{k.current&&N(),k.current=!1,P.current=!1}),[N]),B=(0,o.I4)((()=>{(0,r.T2)(O)}),[O]);(0,o.d4)((()=>{C&&(u||m?P.current?k.current=!0:N(f):P.current?k.current=!1:S())}),[C,u,m,f,N,S]),(0,o.d4)((()=>{C&&(I.current?I.current=!1:l&&(C.changeData(l),N()))}),[N,C,l]),(0,s.ZP)(L,O,w),(0,a.Z)(L,B);const F=(0,c.Z)("AnimatedSticker",t),R=g?`width: ${g}px; height: ${g}px;`:void 0;return o.ZP.createElement("div",{ref:x,className:F,style:R})}))},172:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(4050),r=n(6137),c=n(3716),s=n(8415),a=n(2155),l=n(6752),i=n(2340),d=n(6202),u=n(1212),m=n(9107);const p=(0,o.X$)((e=>{let{className:t,size:n="large",chat:p,user:f,photo:g,userStatus:h,text:v,isSavedMessages:Z,lastSyncTime:w,onClick:b}=e;const y=f&&(0,s.NB)(f),C=f&&(0,s.pK)(f.id);let E;Z||y||(f?E=(0,s.RT)(f):p?E=(0,s.RT)(p):g&&(E=`photo${g.id}?size=m`));const x=(0,d.Z)(E,!1,r.IU.BlobUrl,w),k=Boolean(x),{transitionClassNames:P}=(0,u.Z)(k,void 0,k,"slow"),I=(0,m.Z)();let T="";if(Z)T=o.ZP.createElement("i",{className:"icon-avatar-saved-messages"});else if(y)T=o.ZP.createElement("i",{className:"icon-avatar-deleted-account"});else if(C)T=o.ZP.createElement("i",{className:"icon-reply-filled"});else if(x)T=o.ZP.createElement("img",{src:x,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(p){const e=(0,s.U)(I,p);T=e&&(0,a.Xv)(e,(0,s.YC)(p.id)?2:1)}else v&&(T=(0,a.Xv)(v,2));const A=!Z&&f&&h&&(0,s.kM)(f,h),N=(0,l.Z)(`Avatar size-${n}`,t,`color-bg-${(0,s.Rs)(f||p)}`,Z&&"saved-messages",y&&"deleted-account",C&&"replies-bot-account",A&&"online",b&&"interactive",!Z&&!x&&"no-photo"),S=Boolean(Z||x),L=(0,o.I4)((e=>{b&&b(e,S)}),[b,S]),O=(f||p)&&(f||p).id;return o.ZP.createElement("div",{className:N,onClick:L,"data-test-sender-id":c.Cg?O:void 0},"string"==typeof T?(0,i.Z)(T,["jumbo"===n?"hq_emoji":"emoji"]):T)}))},7324:(e,t,n)=>{n.d(t,{x:()=>c,Z:()=>s});var o=n(6137),r=n(647);const c={MonkeyIdle:n(8760),MonkeyTracking:n(6917),MonkeyClose:n(6257),MonkeyPeek:n(7785),FoldersAll:n(9356),FoldersNew:n(5485),DiscussionGroups:n(6978),CameraFlip:n(5665),HandFilled:n(2456),HandOutline:n(5667),Speaker:n(8763),VoiceAllowTalk:n(401),VoiceMini:n(5106),VoiceMuted:n(487),VoiceOutlined:n(5740),Peach:n(3677),Eggplant:n(5435),Cumshot:n(1879),JoinRequest:n(5095),Invite:n(7879)};function s(e){const t=c[e].replace(window.location.origin,"");return r.he(`file${t}`,o.IU.Lottie)}},7551:(e,t,n)=>{n.d(t,{Z:()=>l});var o=n(4050),r=n(9107),c=n(2313),s=n(3103),a=n(231);const l=(0,o.X$)((e=>{let{isOpen:t,onClose:n,onCloseAnimationEnd:l,title:i,header:d,text:u,textParts:m,confirmLabel:p="Confirm",confirmHandler:f,confirmIsDestructive:g,isButtonsInOneRow:h,children:v}=e;const Z=(0,r.Z)(),w=(0,o.sO)(null),b=(0,o.I4)((e=>{-1===e&&f()}),[f]),y=(0,c.Z)(w,t,b,".Button");return o.ZP.createEle
2022-02-27 17:30:43 +01:00
//# sourceMappingURL=830.743a3bc23208a5ae5b3b.js.map