telegram-tt/dist/830.73181e239801042afb0c.js

2 lines
13 KiB
JavaScript
Raw Normal View History

2022-01-24 04:57:29 +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,color:v,forceOnHeavyAnimation:w,onLoad:Z,onEnded:b})=>{const[y,C]=(0,o.eJ)(),E=(0,o.sO)(null),k=(0,o.sO)(!1),T=(0,o.sO)(!1),x=(0,o.sO)(!0),P=(0,o.sO)();P.current=l;const A=(0,o.sO)();A.current=u,(0,o.d4)((()=>{if(y||!n)return;const e=()=>{if(!E.current)return;const e=new i(t,E.current,n,{noLoop:p,size:f,quality:g,isLowPriority:h},Z,v,b);m&&e.setSpeed(m),C(e)};i?e():d().then((()=>{(0,r.T2)((()=>{E.current&&e()}))}))}),[v,y,n,t,h,p,Z,g,f,m,b]),(0,o.d4)((()=>{y&&y.setColor(v)}),[v,y]),(0,o.d4)((()=>()=>{y&&y.destroy()}),[y]);const I=(0,o.I4)(((e=!1)=>{y&&(P.current||A.current)&&(A.current?y.playSegment(A.current):e?y.goToAndPlay(0):y.play())}),[y]),N=(0,o.I4)((()=>{y&&y.pause()}),[y]),S=(0,o.I4)((()=>{T.current=!0,y&&(k.current||(k.current=y.isPlaying()),N())}),[y,N]),L=(0,o.I4)((()=>{k.current&&I(),k.current=!1,T.current=!1}),[I]),O=(0,o.I4)((()=>{(0,r.T2)(L)}),[L]);(0,o.d4)((()=>{y&&(l||u?T.current?k.current=!0:I(p):T.current?k.current=!1:N())}),[y,l,u,p,I,N]),(0,o.d4)((()=>{y&&(x.current?x.current=!1:n&&(y.changeData(n),I()))}),[I,y,n]),(0,s.ZP)(S,L,w),(0,a.Z)(S,O);const B=(0,c.Z)("AnimatedSticker",e),F=f?`width: ${f}px; height: ${f}px;`:void 0;return o.ZP.createElement("div",{ref:E,className:B,style:F})}))},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 A=!v&&p&&g&&(0,s.kM)(p,g),I=(0,l.Z)(`Avatar size-${t}`,e,`color-bg-${(0,s.Rs)(p||n)}`,v&&"saved-messages",b&&"deleted-account",y&&"replies-bot-account",A&&"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:I,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?"d
//# sourceMappingURL=830.73181e239801042afb0c.js.map