2022-09-20 15:02:59 +02:00
|
|
|
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[8688],{45601:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(14050),r=n(6137),i=n(6202),o=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,i.Z)(n?`${h}?size=m`:void 0,l&&!c,r.IU.BlobUrl,d),p=(0,i.Z)(h,l,void 0,d);return a.ZP.createElement(o.Z,s({tgsUrl:p,previewUrl:v,noPreviewTransition:!0,thumbDataUri:m},u))}))},21179:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(14050),r=n(46752),i=n(70692),o=n(58912);const s="gp5OwinzPeHwkesmaEIR";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=new Set,m=(0,a.X$)((function(e){const{previewUrl:t,thumbDataUri:n,noPreviewTransition:m,className:h,...v}=e,[p,f]=(0,l.Z)(u.has(t)),g=(0,i.Z)(m||p),[Z,P]=(0,l.Z)(!1),E=(0,a.I4)((()=>{f(),u.add(t)}),[f,t]),{size:y}=e;return a.ZP.createElement("div",{className:(0,r.Z)(h,"oGmd77AsTbJeJk8CV6gl"),style:(0,c.Z)(void 0!==y&&`width: ${y}px; height: ${y}px;`)},!Z&&n&&a.ZP.createElement("img",{src:n,className:(0,r.Z)(s)}),!Z&&t&&a.ZP.createElement("img",{src:t,className:(0,r.Z)(s,g),onLoad:E}),a.ZP.createElement(o.Z,d({},v,{onLoad:P,noTransition:!0})))}))},54752:(e,t,n)=>{n.d(t,{ZP:()=>L});var a=n(14050),r=n(33555),i=n(6137),o=n(91713),s=n(77361),l=n(790),c=n(83158);function d(e,t,n,a){let{peak:r,fillStyle:i,progressFillStyle:o}=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?o:i;const s=Math.max(2,e/Math.max(1,r)*23);!function(e,t,n,a,r,i){2<2*i&&(i=1),r<2*i&&(i=r/2),e.beginPath(),e.moveTo(t+i,n),e.arcTo(t+2,n,t+2,n-r,i),e.arcTo(t+2,n-r,t,n-r,i),e.arcTo(t,n-r,t,n,i),e.arcTo(t,n,t+2,n,i),e.closePath()}(l,4*a,(23+s)/2,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),i=r[t]+(r[t+1]<<8);a[e]=i>>n&31}const i=Math.floor(5*(n-1)/8),o=Math.floor(5*(n-1)%8),s=r[i]+(r[i+1]<<8);return a[n-1]=s>>o&31,a}function p(e,t){let n=0;const a=new Array(t),r=e.length/t,i=e[0],o=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:i)+(null!==(l=e[t])&&void 0!==l?l:i)+(null!==(c=e[t+1])&&void 0!==c?c:o))/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(64963),C=n(6202),b=n(10396),w=n(50711),N=n(231),k=n(39196),I=n(8337);const S=window.matchMedia("(max-width: 375px)"),M=window.matchMedia("(max-width: 410px)");function T(e){return{MIN_SPIKES:s.wB?S.matches?16:20:25,MAX_SPIKES:s.wB?S.matches?35:e&&M.matches?40:45:75}}function x(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 L=(0,a.X$)((e=>{let{theme:t,message:n,senderTitle:S,uploadProgress:M,origin:L,date:$,lastSyncTime:D,noAvatars:O,className:A,isSelectable:F,isSelected:R,isDownloading:U,isTranscribing:B,isTranscriptionHidden:X,isTranscribed:V,isTranscriptionError:Y,canDownload:_,canTranscribe:j,onHideTranscription:K,onPlay:z,onReadMedia:H,onCancelUp
|