montana/Russian/Site/messenger/dist/3952.668580de461b6bd3c4cf.js

2 lines
449 KiB
JavaScript
Raw Normal View History

2026-05-18 18:05:32 +03:00
"use strict";(self.webpackChunkmontana_messenger=self.webpackChunkmontana_messenger||[]).push([[3952],{63744(e,t,n){n.d(t,{A:()=>p});var o=n(84051),i=n(13439),s=n(11597),a=n(71331),r=n(87357),d=n(14),c=n(59030),l=n(48885),u=n(26875),h=n(64493),m=n(20021);const p=(0,o.ph)((0,i.EK)((e,{chatId:t})=>{const n=(0,s.hds)(e,t),o=(0,a.mD)(e,t);return{groupCall:o,isActive:((0,s.nTw)(e).isMasterTab?e.groupCalls.activeGroupCallId:void 0)!==o?.id&&Boolean(o?o.participantsCount>0&&o.isLoaded:n&&n.isCallNotEmpty&&n.isCallActive)}})(({chatId:e,isActive:t,className:n,groupCall:s,onPaneStateChange:a})=>{const{requestMasterAndJoinGroupCall:p}=(0,i.ko)(),g=(0,c.A)(),f=(0,o.hb)(()=>{p({chatId:e})},[p,e]),v=s?.participants,A=(0,o.Kr)(()=>{if(!v)return[];const e=(0,i.mS)().users.byId,t=(0,i.mS)().chats.byId;return Object.values(v).slice(0,3).map(({id:n})=>e[n]||t[n]).filter(Boolean)},[v]),y=(0,d.A)(s?.participantsCount,!0),C=(0,d.A)(A,!0),w=Boolean(s&&t),{ref:I,shouldRender:b}=(0,l.A)({isOpen:w,onStateChange:a});if(b)return(0,m.FD)("div",{ref:I,className:(0,r.A)("GroupCallTopPane",n),onClick:f,children:[(0,m.FD)("div",{className:"info",children:[(0,m.Y)("span",{className:"title",children:g("VoipGroupVoiceChat")}),(0,m.Y)("span",{className:"participants",children:g("Participants",y??0,"i")})]}),Boolean(C?.length)&&(0,m.Y)(u.A,{size:"small",peers:C,className:"avatars"}),(0,m.Y)(h.A,{round:!0,className:"join",children:g("VoipChatJoin")})]})}))},70832(e,t,n){n.d(t,{A:()=>d});var o=n(84051),i=n(14242),s=n(39351),a=n(17712),r=n(20021);const d=(0,o.ph)(({className:e,size:t,progress:n})=>{const d=(0,s.A)(),[c,l]=(0,o.J0)(0),u=(0,o.li)(),h=(0,a.A)(()=>{clearTimeout(u.current),u.current=void 0}),m=(0,a.A)(()=>{if(void 0===n)return;const e=t*n,o=e-c;if(0!==o){const t=Math.max(262144,o/10),n=Math.min(e,c+t);l(n)}u.current=window.setTimeout(()=>{m()},100)});(0,o.vJ)(()=>{if(void 0===n)return h(),void l(0);const e=t*n;if(e>1073741824||1===n)return h(),void l(e);u.current||m()},[n,t]),(0,o._W)(h);const p=(0,i.v7)(d,c,2),g=(0,i.v7)(d,t);return void 0===n||1===n?g:(0,r.Y)("span",{className:e,dir:d.isRtl?"rtl":void 0,children:d("FileTransferProgress",{currentSize:p,totalSize:g},{withNodes:!0})})})},65240(e,t,n){n.d(t,{Ay:()=>E});var o=n(84051),i=n(13439),s=n(23174),a=n(89925),r=n(90709),d=n(11597),c=n(56494),l=n(53827),u=n(87357),h=n(50442),m=n(58744),p=n(44029),g=n(4961),f=n(43874),v=n(88792),A=n(71533),y=n(39351),C=n(17712),w=n(62587),I=n(69419),b=n(59030),S=n(50680),M=n(64493),N=n(96530),k=n(35913),Y=n(70832),F=n(4438),P=n(18276),T=n(20021);const D=window.matchMedia("(max-width: 375px)"),x=window.matchMedia("(max-width: 410px)");function L(e,t,n,o,i,s,a,r,d,c,l,u){const{title:h,performer:p,fileName:f}=n,v=i||s>0&&s<1,{isRtl:A}=e;return(0,T.FD)("div",{className:"content",children:[(0,T.Y)("p",{className:"title",dir:"auto",title:h,children:(0,g.A)(h||f)}),v&&(0,T.FD)("div",{className:"meta",dir:A?"rtl":void 0,children:[(0,T.Y)("span",{className:"duration with-seekline",dir:"auto",children:(0,m.QO)(o*s,o)}),R(s,a,r)]}),!v&&d&&(0,T.Y)(Y.A,{className:"meta",size:n.size,progress:l}),!v&&!d&&(0,T.FD)("div",{className:"meta",dir:A?"rtl":void 0,children:[(0,T.Y)("span",{className:"duration",dir:"auto",children:(0,m.QO)(o)}),p&&(0,T.FD)(T.FK,{children:[(0,T.Y)("span",{className:"bullet",children:"•"}),(0,T.Y)("span",{className:"performer",dir:"auto",title:p,children:(0,g.A)(p)})]}),Boolean(c)&&(0,T.FD)(T.FK,{children:[(0,T.Y)("span",{className:"bullet",children:"•"}),(0,T.Y)(N.A,{className:"date",onClick:u,children:(0,m.fS)(t,1e3*c,!0)})]})]})]})}function B(e,t,n,o,i,s,r,d,c,l,h,p){return(0,T.FD)("div",{className:"content",children:[(0,T.FD)("div",{className:"waveform-wrapper",children:[(0,T.Y)("div",{className:"waveform",draggable:!1,ref:t,children:(0,T.Y)("canvas",{ref:n})}),l&&(0,T.FD)(M.A,{onClick:()=>{(d||c)&&h?h(!r):s||l()},children:[(0,T.Y)(P.A,{name:d||c?"down":"transcribe",className:(0,u.A)("transcribe-icon",(d||c)&&!r&&"transcribe-shown")}),s&&(0,T.Y)("svg",{viewBox:"0 0 32 24",className:"loading-svg",children:(0,T.Y)("rect",{className:"loading-rect",fi
//# sourceMappingURL=3952.668580de461b6bd3c4cf.js.map