telegram-tt/dist/621.d419b351754683e97515.js

2 lines
121 KiB
JavaScript
Raw Normal View History

2022-05-31 19:01:02 +02:00
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[621],{45601:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(14050),r=n(6137),o=n(6202),i=n(21179);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},s.apply(this,arguments)}const l=(0,a.X$)((function(e){var t;const{sticker:n,noLoad:l,forcePreview:c,lastSyncTime:d,...u}=e,m=null==n||null===(t=n.thumbnail)||void 0===t?void 0:t.dataUri,h=`sticker${null==n?void 0:n.id}`,v=(0,o.Z)(n?`${h}?size=m`:void 0,l&&!c,r.IU.BlobUrl,d),p=(0,o.Z)(h,l,void 0,d);return a.ZP.createElement(i.Z,s({tgsUrl:p,previewUrl:v,thumbDataUri:m},u))}))},21179:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(14050),r=n(46752),o=n(70692),i=n(58912);const s="src-components-common-AnimatedIconWithPreview-module__preview";var l=n(60706),c=n(80036);function d(){return d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},d.apply(this,arguments)}const u=(0,a.X$)((function(e){const{previewUrl:t,thumbDataUri:n,className:u,...m}=e,h=(0,o.Z)(t),[v,p]=(0,l.Z)(!1),{size:f}=e;return a.ZP.createElement("div",{className:(0,r.Z)(u,"src-components-common-AnimatedIconWithPreview-module__root"),style:(0,c.Z)(void 0!==f&&`width: ${f}px; height: ${f}px;`)},!v&&n&&a.ZP.createElement("img",{src:n,className:(0,r.Z)(s)}),!v&&a.ZP.createElement("img",{src:t,className:(0,r.Z)(s,h)}),a.ZP.createElement(i.Z,d({},m,{onLoad:p,noTransition:!0})))}))},54752:(e,t,n)=>{n.d(t,{Z:()=>x});var a=n(14050),r=n(33555),o=n(6137),i=n(91713),s=n(77361),l=n(790),c=n(75806);function d(e,t,n,a){let{peak:r,fillStyle:o,progressFillStyle:i}=a;const s=4*t.length;e.width=2*s,e.height=46,e.style.width=`${s}px`,e.style.height="23px";const l=e.getContext("2d");l.scale(2,2),t.forEach(((e,a)=>{l.globalAlpha=a/t.length>=n?.5:1,l.fillStyle=n>a/t.length?i:o;const s=Math.max(2,e/Math.max(1,r)*23);!function(e,t,n,a,r,o){2<2*o&&(o=1),r<2*o&&(o=r/2),e.beginPath(),e.moveTo(t+o,n),e.arcTo(t+2,n,t+2,n-r,o),e.arcTo(t+2,n-r,t,n-r,o),e.arcTo(t,n-r,t,n,o),e.arcTo(t,n,t+2,n,o),e.closePath()}(l,4*a,23,0,s,1),l.fill()}))}var u=n(46752),m=n(32340),h=n(15376);function v(e){const t=8*e.length,n=Math.floor(t/5);if(!n)return[];const a=Array(n),r=e;for(let e=0,t=n-1;e!==t;++e){const t=Math.floor(5*e/8),n=Math.floor(5*e%8),o=r[t]+(r[t+1]<<8);a[e]=o>>n&31}const o=Math.floor(5*(n-1)/8),i=Math.floor(5*(n-1)%8),s=r[o]+(r[o+1]<<8);return a[n-1]=s>>i&31,a}function p(e,t){let n=0;const a=new Array(t),r=e.length/t,o=e[0],i=e[e.length-1];for(let d=0;d<t;d++){var s,l,c;const t=Math.floor(d*r),u=((null!==(s=e[t-1])&&void 0!==s?s:o)+(null!==(l=e[t])&&void 0!==l?l:o)+(null!==(c=e[t+1])&&void 0!==c?c:i))/3;a[d]=u,n<u&&(n=u)}return{data:a,peak:n}}var f=n(92566),g=n(31212),Z=n(12019),P=n(23186),E=n(59107),y=n(71174),C=n(6202),b=n(10396),N=n(50711),w=n(231),k=n(39196),I=n(88033);const S=s.wB?20:25,T=s.wB?50:75;function M(e,t,n){return a.ZP.createElement("div",{className:"seekline no-selection",ref:n},t.map((e=>{let{start:t,end:n}=e;return a.ZP.createElement("div",{className:"seekline-buffered-progress",style:`left: ${100*t}%; right: ${100-100*n}%`})})),a.ZP.createElement("span",{className:"seekline-play-progress"},a.ZP.createElement("i",{style:`transform: translateX(${100*e}%)`})),a.ZP.createElement("span",{className:"seekline-thumb"},a.ZP.createElement("i",{style:`transform: translateX(${100*e}%)`})))}const x=(0,a.X$)((e=>{let{theme:t,message:n,senderTitle:x,uploadProgress:L,origin:$,date:O,lastSyncTime:F,className:A,isSelectable:D,isSelected:R,isDownloading:U,onPlay:B,onReadMedia:X,onCancelUpload:Y,onDateClick:_}=e;const{cancelMessageMediaDownload:V,downloadMessageMedia:K}=(0,r.Sv)(),{content:{audio:j,voice:z,video:W},isMediaUnread:H}=n,J=Boolean(z||W),q=(0,a.sO)(!1),G=(0,a.sO)(null),Q=(0,E.Z)(),{isRtl:ee}=Q,[te,ne]=(0,a.eJ)(!1),ae=F,re=(0,c.Ti)(n,"pictogram"),oe=(0,C.Z)(re,!1,o.IU.BlobUrl),ie=(0,C.Z)((0,c.Ti)(n,"inline"),!ae,(0,c.kG)(n,"inline")),{loadPro
2022-05-31 20:32:02 +02:00
//# sourceMappingURL=621.d419b351754683e97515.js.map