telegram-tt/dist/830.40ad866af0cfa6029267.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2022-01-21 17:33:00 +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,5e3);const u=(0,o.X$)((({className:e,id:t,animationData:n,play:l,playSegment:u,speed:m,noLoop:p,size:f,quality:g,isLowPriority:h,onLoad:v,color:w,onEnded:Z})=>{const[b,y]=(0,o.eJ)(),C=(0,o.sO)(null),E=(0,o.sO)(!1),k=(0,o.sO)(!1),T=(0,o.sO)(!0),x=(0,o.sO)();x.current=l;const P=(0,o.sO)();P.current=u,(0,o.d4)((()=>{if(b||!n)return;const e=()=>{if(!C.current)return;const e=new i(t,C.current,n,{noLoop:p,size:f,quality:g,isLowPriority:h},v,w,Z);m&&e.setSpeed(m),y(e)};i?e():d().then((()=>{(0,r.T2)((()=>{C.current&&e()}))}))}),[w,b,n,t,h,p,v,g,f,m,Z]),(0,o.d4)((()=>{b&&b.setColor(w)}),[w,b]),(0,o.d4)((()=>()=>{b&&b.destroy()}),[b]);const I=(0,o.I4)(((e=!1)=>{b&&(x.current||P.current)&&(P.current?b.playSegment(P.current):e?b.goToAndPlay(0):b.play())}),[b]),A=(0,o.I4)((()=>{b&&b.pause()}),[b]),N=(0,o.I4)((()=>{k.current=!0,b&&(E.current||(E.current=b.isPlaying()),A())}),[b,A]),S=(0,o.I4)((()=>{E.current&&I(),E.current=!1,k.current=!1}),[I]),L=(0,o.I4)((()=>{(0,r.T2)(S)}),[S]);(0,o.d4)((()=>{b&&(l||u?k.current?E.current=!0:I(p):k.current?E.current=!1:A())}),[b,l,u,p,I,A]),(0,o.d4)((()=>{b&&(T.current?T.current=!1:(b.changeData(n),I()))}),[I,b,n]),(0,s.ZP)(N,S),(0,a.Z)(N,L);const B=(0,c.Z)("AnimatedSticker",e),O=f?`width: ${f}px; height: ${f}px;`:void 0;return o.ZP.createElement("div",{ref:C,className:B,style:O})}))},172:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(4050),r=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 p=(0,o.X$)((({className:e,size:t="large",chat:n,user:p,photo:f,userStatus:g,text:h,isSavedMessages:v,lastSyncTime:w,onClick:Z})=>{const b=p&&(0,s.NB)(p),y=p&&(0,s.pK)(p.id);let C;v||b||(p?C=(0,s.RT)(p):n?C=(0,s.RT)(n):f&&(C=`photo${f.id}?size=m`));const E=(0,d.Z)(C,!1,r.IU.BlobUrl,w),k=Boolean(E),{transitionClassNames:T}=(0,u.Z)(k,void 0,k,"slow"),x=(0,m.Z)();let P="";if(v)P=o.ZP.createElement("i",{className:"icon-avatar-saved-messages"});else if(b)P=o.ZP.createElement("i",{className:"icon-avatar-deleted-account"});else if(y)P=o.ZP.createElement("i",{className:"icon-reply-filled"});else if(E)P=o.ZP.createElement("img",{src:E,className:(0,l.Z)("avatar-media",T),alt:"",decoding:"async"});else if(p){const e=(0,s.Js)(p);P=e?(0,a.Xv)(e,2):void 0}else if(n){const e=(0,s.U)(x,n);P=e&&(0,a.Xv)(e,(0,s.YC)(n.id)?2:1)}else h&&(P=(0,a.Xv)(h,2));const I=!v&&p&&g&&(0,s.kM)(p,g),A=(0,l.Z)(`Avatar size-${t}`,e,`color-bg-${(0,s.Rs)(p||n)}`,v&&"saved-messages",b&&"deleted-account",y&&"replies-bot-account",I&&"online",Z&&"interactive",!v&&!E&&"no-photo"),N=Boolean(v||E),S=(0,o.I4)((e=>{Z&&Z(e,N)}),[Z,N]),L=(p||n)&&(p||n).id;return o.ZP.createElement("div",{className:A,onClick:S,"data-test-sender-id":c.Cg?L:void 0},"string"==typeof P?(0,i.Z)(P,["jumbo"===t?"hq_emoji":"emoji"]):P)}))},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(2750),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)};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:()=>a});var o=n(4050),r=n(9107),c=n(3103),s=n(231);const a=(0,o.X$)((({isOpen:e,onClose:t,onCloseAnimationEnd:n,title:a,header:l,text:i,textParts:d,confirmLabel:u="Confirm",confirmHandler:m,confirmIsDestructive:p,isButtonsInOneRow:f,children:g})=>{const h=(0,r.Z)();return o.ZP.createElement(c.Z,{className:"confirm",title:a,header:l,isOpen:e,onClose:t,onCloseAnimationEnd:n,onEnter:m},i&&i.split("\\n").map((e=>o.ZP.createElement("p",null,e))),d||g,o.ZP.createElement("div",{className:f?"dialog-buttons mt-2":""},o.ZP.
//# sourceMappingURL=830.40ad866af0cfa6029267.js.map