telegram-tt/dist/7916.8f0854e45a011f6c9f3c.js

2 lines
132 KiB
JavaScript
Raw Normal View History

2022-08-07 21:17:22 +02:00
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[7916],{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="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=(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,"oGmd77AsTbJeJk8CV6gl"),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,{ZP:()=>L});var a=n(14050),r=n(33555),o=n(6137),i=n(91713),s=n(77361),l=n(790),c=n(83158);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+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),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(64963),C=n(6202),b=n(10396),w=n(50711),N=n(231),k=n(39196),I=n(88033);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:Y,isTranscriptionError:_,canDownload:V,canTranscribe:K,onHideTranscription:j,onPlay:z,onReadMedia:H,onCancelUpload:W,onDateClick:J}=e;const{cancelMessageMediaDownload:q,downloadMessageMedia:G,transcribeAudio:Q}=(0,r.Sv)(),{content:{audio:ee,v
//# sourceMappingURL=7916.8f0854e45a011f6c9f3c.js.map