TelegramPWA/dist/2120.5eb305af4756491140a3.js
Alexander Zinchuk f1adb514ad [Build]
2024-05-03 15:18:24 +02:00

2 lines
31 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[2120],{90730:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(46752),r=n(66735);const i=(0,a.X$)((({title:e="Change your profile picture",disabled:t,isForForum:n,currentAvatarBlobUrl:i,onChange:l})=>{const[s,c]=(0,a.eJ)(),[d,m]=(0,a.eJ)(i);(0,a.d4)((()=>{m(i)}),[i]);const u=(0,a.I4)((e=>{c(void 0),l(e),d&&d!==i&&URL.revokeObjectURL(d),m(URL.createObjectURL(e))}),[d,i,l]),Z=(0,a.I4)((()=>{c(void 0)}),[]),v=(0,o.Z)(d&&"filled",t&&"disabled",n&&"rounded-square");return a.ZP.createElement("div",{className:"AvatarEditable"},a.ZP.createElement("label",{className:v,role:"button",tabIndex:0,title:e},a.ZP.createElement("input",{type:"file",onChange:function(e){const t=e.target;t?.files?.[0]&&(c(t.files[0]),t.value="")},accept:"image/png, image/jpeg"}),a.ZP.createElement("i",{className:"icon icon-camera-add"}),d&&a.ZP.createElement("img",{src:d,draggable:!1,alt:"Avatar"})),a.ZP.createElement(r.Z,{file:s,onClose:Z,onChange:u}))}))},95481:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(60748),o=n(46752),r=n(34076),i=n(40126);const l=(0,a.X$)((({text:e,className:t,isAlternateColor:n})=>a.ZP.createElement(i.Z,{className:(0,o.Z)("Y3ZoW17O",n?"Lq67O2D2":"DWjOG2Ze",t),isOpen:Boolean(e)},e&&a.ZP.createElement(r.Z,{text:e}))))},51218:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(60748),o=n(14605);const r=(0,a.X$)((({id:e,options:t,selected:n=[],disabled:r,round:i,loadingOptions:l,onChange:s})=>{const[c,d]=(0,a.eJ)(n||[]),m=(0,a.I4)((e=>{const{value:t,checked:n}=e.currentTarget;let a;a=n?[...c,t]:c.filter((e=>e!==t)),d(a),s(a)}),[s,c]);return a.ZP.createElement("div",{id:e,className:"radio-group"},t.map((e=>a.ZP.createElement(o.Z,{label:e.label,subLabel:e.subLabel,value:e.value,checked:-1!==n.indexOf(e.value),disabled:e.disabled||r,round:i,isLoading:l?-1!==l.indexOf(e.value):void 0,onChange:m}))))}))},17551:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(60748),o=n(46752),r=n(72313),i=n(59107),l=n(231),s=n(34563);const c=(0,a.X$)((({isOpen:e,title:t,header:n,text:c,textParts:d,confirmLabel:m="Confirm",confirmIsDestructive:u,isConfirmDisabled:Z,isOnlyConfirm:v,areButtonsInColumn:h,className:g,children:p,confirmHandler:b,onClose:f,onCloseAnimationEnd:E})=>{const P=(0,i.Z)(),C=(0,a.sO)(null),N=(0,a.I4)((e=>{-1===e&&b()}),[b]),w=(0,r.Z)(C,e,N,".Button");return a.ZP.createElement(s.Z,{className:(0,o.Z)("confirm",g),title:t||P("Telegram"),header:n,isOpen:e,onClose:f,onCloseAnimationEnd:E},c&&c.split("\\n").map((e=>a.ZP.createElement("p",null,e))),d||p,a.ZP.createElement("div",{className:h?"dialog-buttons-column":"dialog-buttons mt-2",ref:C,onKeyDown:w},a.ZP.createElement(l.Z,{className:"confirm-dialog-button",isText:!0,onClick:b,color:u?"danger":"primary",disabled:Z},m),!v&&a.ZP.createElement(l.Z,{className:"confirm-dialog-button",isText:!0,onClick:f},P("Cancel"))))}))},66735:(e,t,n)=>{n.d(t,{Z:()=>v});var a=n(60748),o=n(83716),r=n(71394),i=n(59107),l=n(231),s=n(34288),c=n(34563);const d={type:"blob",quality:1,format:"jpeg",circle:!1,size:{width:1024,height:1024}};let m,u,Z;const v=(0,a.X$)((({file:e,onChange:t,onClose:v})=>{const[h,g]=(0,a.eJ)(!1);(0,a.d4)((()=>{e&&(h?async function(e){try{const t=document.getElementById("avatar-crop");if(!t)return;const{offsetWidth:n,offsetHeight:a}=t;Z=new m(t,{enableZoom:!0,boundary:{width:n,height:a},viewport:{width:n-16,height:a-16,type:"circle"}});const o=await(0,r.YJ)(e);await Z.bind({url:o})}catch(e){o.eMD&&console.error(e)}}(e):async function(){return u||(u=Promise.all([n.e(5099),n.e(3472)]).then(n.bind(n,23472)),m=(await u).default),u}().then((()=>g(!0))))}),[e,h]);const p=(0,i.Z)(),b=(0,a.I4)((async()=>{if(!Z)return;const e=await Z.result(d),n="string"==typeof e?e:(0,r.hl)(e,"avatar.jpg");t(n)}),[t]);return a.ZP.createElement(c.Z,{isOpen:Boolean(e),onClose:v,title:"Drag to reposition",className:"CropModal",hasCloseButton:!0},h?a.ZP.createElement("div",{id:"avatar-crop"}):a.ZP.createElement(s.Z,null),a.ZP.createElement(l.Z,{className:"confirm-button",round:!0,color:"primary",onClick:b,ariaLabel:p("CropImage")},a.ZP.createElement("i",{className:"icon icon-check"})))}))},94913:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(60748),o=n(46752),r=n(80036),i=n(59107);const l={x:0,y:0},s=(0,a.X$)((({children:e,id:t,onDrag:n,onDragEnd:s,style:d,knobStyle:m,isDisabled:u})=>{const Z=(0,i.Z)(),v=(0,a.sO)(null),[h,g]=(0,a.eJ)({isDragging:!1,origin:l,translation:l}),p=e=>{e.stopPropagation(),e.preventDefault();const{x:t,y:n}=c(e);g({...h,isDragging:!0,origin:{x:t,y:n},width:v.current?.offsetWidth,height:v.current?.offsetHeight})},b=(0,a.I4)((e=>{const{x:a,y:o}=c(e),r={x:a-h.origin.x,y:o-h.origin.y};g((e=>({...e,translation:r}))),n(r,t)}),[t,n,h.origin.x,h.origin.y]),f=(0,a.I4)((()=>{g((e=>({...e,isDragging:!1,width:void 0,height:void 0}))),s()}),[s]);(0,a.d4)((()=>{h.isDragging&&u&&g((e=>({...e,isDragging:!1,width:void 0,height:void 0})))}),[u,h.isDragging]),(0,a.d4)((()=>(h.isDragging?(window.addEventListener("touchmove",b),window.addEventListener("mousemove",b),window.addEventListener("touchend",f),window.addEventListener("touchcancel",f),window.addEventListener("mouseup",f)):(window.removeEventListener("touchmove",b),window.removeEventListener("mousemove",b),window.removeEventListener("touchend",f),window.removeEventListener("touchcancel",f),window.removeEventListener("mouseup",f),g((e=>({...e,translation:l})))),()=>{h.isDragging&&(window.removeEventListener("touchmove",b),window.removeEventListener("mousemove",b),window.removeEventListener("touchend",f),window.removeEventListener("touchcancel",f),window.removeEventListener("mouseup",f))})),[b,f,h.isDragging]);const E=(0,o.Z)("kWQHzIMD",h.isDragging&&"k0c5WDAy"),P=(0,a.Ye)((()=>(0,r.Z)(h.isDragging&&`transform: translate(${h.translation.x}px, ${h.translation.y}px)`,h.width?`width: ${h.width}px`:void 0,h.height?`height: ${h.height}px`:void 0,d)),[d,h.height,h.isDragging,h.translation.x,h.translation.y,h.width]);return a.ZP.createElement("div",{style:P,className:E,ref:v},e,!u&&a.ZP.createElement("div",{"aria-label":Z("i18n_dragToSort"),tabIndex:0,role:"button",className:(0,o.Z)("UpzQzcvs","div-button","draggable-knob"),onMouseDown:p,onTouchStart:p,style:m},a.ZP.createElement("i",{className:"icon icon-sort","aria-hidden":!0})))}));function c(e){let t,n;return"touches"in e?(t=e.touches[0].clientX,n=e.touches[0].clientY):(t=e.clientX,n=e.clientY),{x:t,y:n}}},41151:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(60748),o=n(46752),r=n(59107),i=n(231);const l=({isShown:e,className:t,color:n="primary",ariaLabel:l,disabled:s,onClick:c,children:d})=>{const m=(0,r.Z)(),u=(0,o.Z)("FloatingActionButton",e&&"revealed",t);return a.ZP.createElement(i.Z,{className:u,color:n,round:!0,disabled:s,onClick:e&&!s?c:void 0,ariaLabel:l,tabIndex:-1,isRtl:m.isRtl},d)}},21273:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(60748),o=n(91713),r=n(57710),i=n(80036),l=n(87675),s=n(69118),c=n(97184),d=n(25190);const m=({ref:e,style:t,className:n,items:m,itemSelector:u=".ListItem",preloadBackwards:Z=20,sensitiveArea:v=800,withAbsolutePositioning:h,maxHeight:g,noScrollRestore:p=!1,noScrollRestoreOnTop:b=!1,noFastList:f,cacheBuster:E,beforeChildren:P,children:C,onLoadMore:N,onScroll:w,onWheel:y,onClick:k,onKeyDown:x,onDragOver:L,onDragLeave:I})=>{let O=(0,a.sO)(null);e&&(O=e);const A=(0,a.sO)({}),[D,M]=(0,a.Ye)((()=>N?[(0,s.Ds)(((e=!1)=>{N({direction:o.Uq.Backwards,noScroll:e})}),1e3,!0,!1),(0,s.Ds)((()=>{N({direction:o.Uq.Forwards})}),1e3,!0,!1)]:[]),[N,m]);(0,a.d4)((()=>{if(!D)return;if(Z>0&&(!m||m.length<Z))return void D(!0);const{scrollHeight:e,clientHeight:t}=O.current;t&&e<=t&&D()}),[m,D,Z]),(0,a.bt)((()=>{(0,r.lT)((()=>{const e=O.current,t=A.current;let n;if(t.listItemElements=e.querySelectorAll(u),t.currentAnchor&&Array.from(t.listItemElements).includes(t.currentAnchor)){const{scrollTop:a}=e,o=t.currentAnchor.getBoundingClientRect().top;n=a+(o-t.currentAnchorTop)}else{const e=t.listItemElements[0];e&&(t.currentAnchor=e,t.currentAnchorTop=e.getBoundingClientRect().top)}if(h||p)return;const{scrollTop:a}=e;return b&&0===a?void 0:()=>{(0,l.Z)(e,n),t.isScrollTopJustUpdated=!0}}))}),[m,u,p,b,E,h]);const S=(0,d.Z)((e=>{if(M&&D){const{isScrollTopJustUpdated:e,currentAnchor:t,currentAnchorTop:n}=A.current,a=A.current.listItemElements;if(e)return void(A.current.isScrollTopJustUpdated=!1);const o=a.length,r=O.current,{scrollTop:i,scrollHeight:l,offsetHeight:s}=r,c=i<=(o?a[0].offsetTop:0)+v,d=(o?a[o-1].offsetTop+a[o-1].offsetHeight:l)-(i+s)<=v;let m=!1;if(c){const e=a[0];if(e){const a=e.getBoundingClientRect().top,o=t?.offsetParent&&t!==e?t.getBoundingClientRect().top:a;t&&void 0!==n&&o>n&&(A.current.currentAnchor=e,A.current.currentAnchorTop=a,m=!0,M())}}if(d){const e=a[o-1];if(e){const a=e.getBoundingClientRect().top,o=t?.offsetParent&&t!==e?t.getBoundingClientRect().top:a;t&&void 0!==n&&o<n&&(A.current.currentAnchor=e,A.current.currentAnchorTop=a,m=!0,D())}}if(!m)if(t?.offsetParent)A.current.currentAnchorTop=t.getBoundingClientRect().top;else{const e=a[0];e&&(A.current.currentAnchor=e,A.current.currentAnchorTop=e.getBoundingClientRect().top)}}w&&w(e)}));return a.ZP.createElement("div",{ref:O,className:n,onScroll:S,onWheel:y,teactFastList:!f&&!h,onKeyDown:x,onDragOver:L,onDragLeave:I,onClick:k,style:t},P,h&&m?.length?a.ZP.createElement("div",{teactFastList:!f,style:(0,i.Z)("position: relative",c.wZ&&`height: ${g}px`)},C):C)}},31876:(e,t,n)=>{n.d(t,{Z:()=>E});var a=n(60748),o=n(57710),r=n(46752),i=n(97184),l=n(32340),s=n(17240),c=n(39415),d=n(60706),m=n(59107),u=n(25190),Z=n(12644),v=n(65979),h=n(231),g=n(52328),p=n(58964),b=n(66902),f=n(68512);const E=({ref:e,buttonRef:t,icon:n,iconClassName:E,leftElement:P,buttonClassName:C,menuBubbleClassName:N,secondaryIcon:w,secondaryIconClassName:y,rightElement:k,className:x,style:L,children:I,disabled:O,allowDisabledClick:A,ripple:D,narrow:M,inactive:S,focus:T,destructive:R,multiline:$,isStatic:B,allowSelection:X,withColorTransition:Y,contextActions:F,withPortalForMenu:K,href:W,onMouseDown:q,onClick:H,onContextMenu:J,clickArg:z,onSecondaryIconClick:_,onDragEnter:j})=>{let U=(0,a.sO)(null);e&&(U=e);const[Q,V,G]=(0,d.Z)(),{isContextMenuOpen:ee,contextMenuPosition:te,handleBeforeContextMenu:ne,handleContextMenu:ae,handleContextMenuClose:oe,handleContextMenuHide:re}=(0,s.Z)(U,!F),ie=(0,u.Z)((()=>U.current)),le=(0,u.Z)((()=>U.current.closest(".custom-scroll"))),se=(0,u.Z)((()=>(K?document.querySelector("#portals"):U.current).querySelector(".ListItem-context-menu .bubble"))),ce=(0,u.Z)((()=>({withPortal:K}))),{positionX:de,positionY:me,transformOriginX:ue,transformOriginY:Ze,style:ve}=(0,Z.Z)(te,ie,le,se,ce),he=(0,u.Z)((e=>{e.ctrlKey||e.metaKey||e.shiftKey||e.button!==i.tc.Main||e.preventDefault()})),ge=(0,u.Z)((e=>{if((!O||A)&&H){if(W){if((e.ctrlKey||e.metaKey||e.shiftKey)&&e.button===i.tc.Main||e.button===i.tc.Auxiliary)return;e.preventDefault()}H(e,z),i.$b&&!D&&(V(),(0,o.i$)(G))}})),{handleClick:pe,handleMouseDown:be}=(0,c.m)((e=>{O&&!A||0!==e.button||!_&&!F||(e.stopPropagation(),_?_(e):ae(e))})),fe=(0,u.Z)((e=>{S||i.$b||(!F||e.button!==i.tc.Secondary&&H||ne(e),e.button===i.tc.Main&&(H?ge(e):ae(e)))})),Ee=(0,m.Z)(),Pe=(0,r.Z)("ListItem",x,X&&"allow-selection",D&&"has-ripple",M&&"narrow",O&&"disabled",A&&"click-allowed",S&&"inactive",te&&"has-menu-open",T&&"focus",R&&"destructive",$&&"multiline",B&&"is-static",Y&&"with-color-transition"),Ce=W?"a":"div";return a.ZP.createElement("div",{ref:U,className:Pe,dir:Ee.isRtl?"rtl":void 0,style:L,onMouseDown:q,onDragEnter:j},a.ZP.createElement(Ce,{className:(0,r.Z)("ListItem-button",Q&&"active",C),role:B?void 0:"button",href:W,ref:t,tabIndex:B?void 0:0,onClick:!S&&i.$b?ge:he,onMouseDown:fe,onContextMenu:J||(!S&&F?ae:void 0)},!O&&!S&&D&&a.ZP.createElement(f.Z,null),P,n&&a.ZP.createElement(v.Z,{name:n,className:(0,r.Z)("ListItem-main-icon",E)}),$&&a.ZP.createElement("div",{className:"multiline-item"},I),!$&&I,w&&a.ZP.createElement(h.Z,{className:(0,r.Z)("secondary-icon",y),round:!0,color:"translucent",size:"smaller",onClick:pe,onMouseDown:be},a.ZP.createElement(v.Z,{name:w})),k),F&&void 0!==te&&a.ZP.createElement(g.Z,{isOpen:ee,transformOriginX:ue,transformOriginY:Ze,positionX:de,positionY:me,style:ve,className:"ListItem-context-menu with-menu-transitions",autoClose:!0,onClose:oe,onCloseAnimationEnd:re,withPortal:K,bubbleClassName:N},F.map((e=>"isSeparator"in e?a.ZP.createElement(b.Z,{key:e.key||"separator"}):a.ZP.createElement(p.Z,{key:e.title,icon:e.icon,destructive:e.destructive,disabled:!e.handler,onClick:e.handler},a.ZP.createElement("span",{className:"list-item-ellipsis"},(0,l.Z)(e.title)))))))}},66902:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(46752);const r={root:"h039vb1K",thin:"NGKaFgra",thick:"_BdnjPEa"},i=({className:e,size:t="thin"})=>a.ZP.createElement("div",{className:(0,o.Z)(r.root,r[t],e)})},34563:(e,t,n)=>{n.d(t,{Z:()=>b,z:()=>p});var a=n(60748),o=n(46752),r=n(517),i=n(98069),l=n(68368),s=n(1911),c=n(18674),d=n(46590),m=n(59107),u=n(25190),Z=n(72645),v=n(31212),h=n(231),g=n(62898);const p=200,b=(0,l.Z)((({dialogRef:e,title:t,className:n,contentClassName:l,isOpen:b,isSlim:f,header:E,hasCloseButton:P,noBackdrop:C,noBackdropClose:N,children:w,style:y,onClose:k,onCloseAnimationEnd:x,onEnter:L,shouldSkipHistoryAnimations:I})=>{const{shouldRender:O,transitionClassNames:A}=(0,v.Z)(b,x,I,void 0,I),D=(0,a.sO)(null);(0,a.d4)((()=>{if(b)return(0,i.l_)(),i.In}),[b]);const M=(0,u.Z)((e=>!!L&&(e.preventDefault(),L(),!0)));(0,a.d4)((()=>b?(0,r.Z)({onEsc:k,onEnter:M}):void 0),[b,k,M]),(0,a.d4)((()=>b&&D.current?(0,s.Z)(D.current):void 0),[b]),(0,d.Z)({isActive:b,onBack:k}),(0,Z.Z)((([e])=>(document.body.classList.toggle("has-open-dialog",Boolean(b)),(b||!b&&void 0!==e)&&(0,c.YW)(p),()=>{document.body.classList.remove("has-open-dialog")})),[b]);const S=(0,m.Z)();if(!O)return;const T=(0,o.Z)("Modal",n,A,C&&"transparent-backdrop",f&&"slim");return a.ZP.createElement(g.Z,null,a.ZP.createElement("div",{ref:D,className:T,tabIndex:-1,role:"dialog"},a.ZP.createElement("div",{className:"modal-container"},a.ZP.createElement("div",{className:"modal-backdrop",onClick:N?void 0:k}),a.ZP.createElement("div",{className:"modal-dialog",ref:e},E||(t?a.ZP.createElement("div",{className:"modal-header"},P&&a.ZP.createElement(h.Z,{round:!0,color:"translucent",size:"smaller",ariaLabel:S("Close"),onClick:k},a.ZP.createElement("i",{className:"icon icon-close"})),a.ZP.createElement("div",{className:"modal-title"},t)):void 0),a.ZP.createElement("div",{className:(0,o.Z)("modal-content custom-scroll",l),style:y},w)))))}))},96937:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(60748),o=n(33555),r=n(83716),i=n(46752),l=n(23989),s=n(31212),c=n(231),d=n(62898);const m=({title:e,className:t,message:n,duration:m=3e3,containerId:u,onDismiss:Z,action:v,actionText:h})=>{const g=(0,o.Sv)(),[p,b]=(0,a.eJ)(!0),f=(0,a.sO)(null),{transitionClassNames:E}=(0,s.Z)(p),P=(0,a.I4)((()=>{b(!1),setTimeout(Z,150+r.fK3)}),[Z]),C=(0,a.I4)((()=>{v&&(Array.isArray(v)?v.forEach((e=>g[e.action](e.payload))):g[v.action](v.payload)),P()}),[v,g,P]);(0,a.d4)((()=>p?(0,l.Z)(P):void 0),[p,P]),(0,a.d4)((()=>(f.current=window.setTimeout(P,m),()=>{f.current&&(clearTimeout(f.current),f.current=void 0)})),[m,P]);const N=(0,a.I4)((()=>{f.current&&(clearTimeout(f.current),f.current=void 0)}),[]),w=(0,a.I4)((()=>{f.current=window.setTimeout(P,m)}),[m,P]);return a.ZP.createElement(d.Z,{className:"Notification-container",containerId:u},a.ZP.createElement("div",{className:(0,i.Z)("Notification",E,t),onClick:C,onMouseEnter:N,onMouseLeave:w},a.ZP.createElement("div",{className:"content"},e&&a.ZP.createElement("div",{className:"notification-title"},e),n),v&&h&&a.ZP.createElement(c.Z,{color:"translucent-white",onClick:C,className:"Notification-button"},h)))}},39196:(e,t,n)=>{n.d(t,{Z:()=>Z});var a=n(60748),o=n(57710),r=n(9933),i=n(46752),l=n(92085),s=n(70971),c=n(38146),d=n(65979);const m={s:42,m:48,l:54,xl:52},u=.05,Z=(0,a.X$)((({progress:e=0,size:t="l",square:n,transparent:Z,noCross:v,rotationOffset:h,withColor:g,onClick:p})=>{const b=(0,a.sO)(null),f=m[t],E=(0,s.Y)(e),P=(0,c.Z)(),C=(0,l.Z)(b,!g);(0,a.d4)((()=>{let e,n,a=!0,i=u;(0,r.jt)((()=>{if(!b.current)return!1;E.current!==n&&(i=Math.min(Math.max(u,n||0),1),e=Date.now(),n=E.current);const o=Math.min(Math.max(u,E.current),1),l=Math.min(1,(Date.now()-e)/600),s=r.timingFunctions.easeOutQuad(l),c=i+(o-i)*s;return function(e,t,n,a,o,r,i=!1,l){const s=t/2,c=(t-n)/2-2*r,d=l??Date.now()%2e3/2e3,m=2*Math.PI*d,u=m+2*Math.PI*o,Z=e.getContext("2d");i&&(e.width=t,e.height=t,Z.lineCap="round",Z.strokeStyle=a,Z.lineWidth=n),Z.clearRect(0,0,t,t),Z.beginPath(),Z.arc(s,s,c,m,u),Z.stroke()}(b.current,f*P,("xl"===t?3:2)*P,C??"white",c,P,a,h),a=!1,c<1}),o.WM)}),[E,t,f,P,h,C]);const N=(0,i.Z)(`ProgressSpinner size-${t}`,Z&&"transparent",n&&"square",v&&"no-cross");return a.ZP.createElement("div",{className:N,onClick:p},!v&&a.ZP.createElement(d.Z,{name:"close"}),a.ZP.createElement("canvas",{ref:b,className:"ProgressSpinner_canvas",style:`width: ${f}; height: ${f}px;`}))}))},14434:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(60748),o=n(25190),r=n(46752),i=n(59107),l=n(49204);const s=(0,a.X$)((({id:e,label:t,subLabel:n,subLabelClassName:o,value:s,name:c,checked:d,disabled:m,hidden:u,isLoading:Z,className:v,onChange:h,isLink:g,onSubLabelClick:p})=>{const b=(0,i.Z)(),f=(0,r.Z)("Radio",v,m&&"disabled",u&&"hidden-widget",Z&&"loading");return a.ZP.createElement("label",{className:f,dir:b.isRtl?"rtl":void 0},a.ZP.createElement("input",{type:"radio",name:c,value:s,id:e,checked:d,onChange:h,disabled:m||u}),a.ZP.createElement("div",{className:"Radio-main"},a.ZP.createElement("span",{className:"label",dir:b.isRtl?"auto":void 0},t),n&&a.ZP.createElement("span",{className:(0,r.Z)(o,"subLabel",g?"subLabelLink":void 0),dir:b.isRtl?"auto":void 0,onClick:g?p:void 0},n)),Z&&a.ZP.createElement(l.Z,null))})),c=(0,a.X$)((({id:e,name:t,options:n,selected:r,disabled:i,loadingOption:l,onChange:c,onClickAction:d,subLabelClassName:m,isLink:u,subLabel:Z})=>{const v=(0,a.I4)((e=>{const{value:t}=e.currentTarget;c(t,e)}),[c]),h=(0,o.Z)((e=>()=>{d?.(e)}));return a.ZP.createElement("div",{id:e,className:"radio-group"},n.map((e=>a.ZP.createElement(s,{name:t,label:e.label,subLabel:Z||e.subLabel,subLabelClassName:m,value:e.value,checked:e.value===r,hidden:e.hidden,disabled:i,isLoading:l?l===e.value:void 0,className:e.className,onChange:v,onSubLabelClick:h(e.value),isLink:u}))))}))},18051:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(46752),r=n(59107);const i=(0,a.X$)((({options:e,min:t=0,max:n=(e?e.length-1:100),step:i=1,label:l,value:s,disabled:c,bold:d,className:m,renderValue:u,onChange:Z})=>{const v=(0,r.Z)(),h=(0,a.I4)((e=>{Z(Number(e.currentTarget.value))}),[Z]),g=(0,o.Z)(m,"RangeSlider",c&&"disabled",d&&"bold"),p=(0,a.Ye)((()=>e?s/(e.length-1)*100:(s-t)/((n-t)/i)*100),[e,s,n,t,i]);return a.ZP.createElement("div",{className:g},l&&a.ZP.createElement("div",{className:"slider-top-row",dir:v.isRtl?"rtl":void 0},a.ZP.createElement("span",{className:"label",dir:"auto"},l),!e&&a.ZP.createElement("span",{className:"value",dir:"auto"},u?u(s):s)),a.ZP.createElement("div",{className:"slider-main"},a.ZP.createElement("div",{className:"slider-fill-track",style:`width: ${p}%`}),a.ZP.createElement("input",{min:t,max:n,value:s,step:i,type:"range",className:"RangeSlider__input",onChange:h}),e&&a.ZP.createElement("div",{className:"slider-options"},e.map(((e,t)=>a.ZP.createElement("div",{className:(0,o.Z)("slider-option",t===s&&"active"),onClick:()=>Z(t)},e))))))}))},40582:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(60748),o=n(46752);const r=(0,a.X$)((({marks:e,onChange:t,rangeCount:n})=>{const r=(0,a.sO)(null),i=(0,a.Ye)((()=>(e.indexOf(n)/(e.length-1)*100).toFixed(2)),[e,n]),l=(0,a.Ye)((()=>e.indexOf(n)),[e,n]),s=(0,a.Ye)((()=>e.indexOf(n).toString()),[e,n]);return(0,a.bt)((()=>{r.current.style.setProperty("--fill-percentage",`${i}%`)}),[i]),a.ZP.createElement("div",{className:"s8NMMSES"},a.ZP.createElement("form",null,a.ZP.createElement("div",{className:"i_wrxmyh"},a.ZP.createElement("div",{className:"O7SI4r_Y"},e.map(((e,t)=>{const n=t<=l;return a.ZP.createElement("div",{key:e,className:(0,o.Z)("b6UDc3zh",n?"VELPJsJ0":"K8NtimIi")})}))),a.ZP.createElement("div",{className:"bVlnaLCI"},e.map((e=>a.ZP.createElement("div",{key:e,className:(0,o.Z)("AFFaq4eZ",n===e&&"cuogxYPG")},e)))),a.ZP.createElement("input",{ref:r,type:"range",className:"H_rMZrqn",min:"0",max:e.length-1,value:s,onChange:n=>{const a=parseInt(n.target.value,10),o=e[a];t(o)},step:"1"}))))}))},43521:(e,t,n)=>{n.d(t,{Z:()=>d});var a=n(60748),o=n(97184),r=n(25190),i=n(231);function l(){return l=Object.assign?Object.assign.bind():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},l.apply(this,arguments)}let s,c=!0;const d=({onActivate:e,...t})=>{const n=(0,a.sO)(!1),d=(0,r.Z)((t=>{if(n.current=!0,c)return c=!1,void e(t);s&&(clearTimeout(s),s=void 0),s=window.setTimeout((()=>{n.current&&e(t)}),200)})),m=(0,r.Z)((()=>{n.current=!1})),u=(0,r.Z)((t=>{n.current=!0,e(t)}));return a.ZP.createElement(i.Z,l({},t,{onMouseEnter:o.$b?void 0:d,onMouseLeave:o.$b?void 0:m,onClick:o.$b?u:e}))}},69589:(e,t,n)=>{n.d(t,{Z:()=>m});var a=n(60748),o=n(46752),r=n(60706),i=n(12515),l=n(59107),s=n(231),c=n(34288),d=n(2255);const m=(0,a.X$)((({ref:e,children:t,parentContainerClassName:n,value:m,inputId:u,className:Z,focused:v,isLoading:h=!1,spinnerColor:g,spinnerBackgroundColor:p,placeholder:b,disabled:f,autoComplete:E,canClose:P,autoFocusSearch:C,onChange:N,onReset:w,onFocus:y,onBlur:k,onSpinnerClick:x})=>{let L=(0,a.sO)(null);e&&(L=e);const[I,O,A]=(0,r.Z)(v);(0,i.Z)(L,C,A),(0,a.d4)((()=>{L.current&&(v?L.current.focus():L.current.blur())}),[v,b]);const D=(0,l.Z)(),M=(0,a.I4)((e=>{if("ArrowDown"===e.key||"Enter"===e.key){const e=document.querySelector(`.${n} .ListItem-button`);e&&e.focus()}}),[n]);return a.ZP.createElement("div",{className:(0,o.Z)("SearchInput",Z,I&&"has-focus"),dir:D.isRtl?"rtl":void 0},t,a.ZP.createElement("input",{ref:L,id:u,type:"text",dir:"auto",placeholder:b||D("Search"),className:"form-control",value:m,disabled:f,autoComplete:E,onChange:function(e){const{currentTarget:t}=e;N(t.value)},onFocus:function(){O(),y&&y()},onBlur:function(){A(),k&&k()},onKeyDown:M}),a.ZP.createElement(d.ZP,{name:"fade",shouldCleanup:!0,activeKey:Number(h),className:"icon-container"},h?a.ZP.createElement(c.Z,{color:g,backgroundColor:p,onClick:x}):a.ZP.createElement("i",{className:"icon icon-search search-icon"})),!h&&(m||P)&&w&&a.ZP.createElement(s.Z,{round:!0,size:"tiny",color:"translucent",onClick:w},a.ZP.createElement("span",{className:"icon icon-close"})))}))},96625:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(60748),o=n(46752);const r=(0,a.X$)((e=>{const{id:t,value:n,label:r,hasArrow:i,error:l,ref:s,tabIndex:c,onChange:d,children:m}=e,u=l||r,Z=(0,o.Z)("input-group",n&&"touched",l&&"error",u&&"with-label",i&&"with-arrow","input-group");return a.ZP.createElement("div",{className:Z},a.ZP.createElement("select",{className:"form-control",id:t,value:n||"",onChange:d,tabIndex:c,ref:s},m),u&&t&&a.ZP.createElement("label",{htmlFor:t},u))}))},66219:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(85655),r=n(66735);const i=(0,a.X$)((({onChange:e,inputRef:t})=>{const[n,i]=(0,a.eJ)(),l=(0,a.I4)((t=>{i(void 0),e(t)}),[e]),s=(0,a.I4)((()=>{i(void 0)}),[]),c=(0,a.I4)((()=>{(0,o.g)("image/png, image/jpeg",(e=>{const t=e.target;t?.files?.[0]&&i(t.files[0])}),!0)}),[]);return a.ZP.createElement(a.ZP.Fragment,null,a.ZP.createElement("input",{ref:t,className:"axfkbhWJ",onClick:c}),a.ZP.createElement(r.Z,{file:n,onClose:s,onChange:l}))}))},27150:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(46752),r=n(59107);const i=function({children:e,className:t}){const n=(0,r.Z)();return a.ZP.createElement("div",{dir:n.isRtl?"rtl":void 0,className:(0,o.Z)("LxlpQKLr",t)},e)}},61607:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(59107),r=n(231);const i=({count:e,itemName:t,itemPluralName:n,isLoading:i,onClick:l})=>{const s=(0,o.Z)();return a.ZP.createElement(r.Z,{className:"ShowMoreButton",color:"translucent",size:"smaller",isText:!0,isLoading:i,isRtl:s.isRtl,onClick:l},a.ZP.createElement("i",{className:"icon icon-down"}),"Show ",e," more ",e>1?n||`${t}s`:t)}},40126:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(60748),o=n(46752),r=n(87204),i=n(31212);const l=({isOpen:e,isHidden:t,isCustom:n,id:l,className:s,onClick:c,children:d,noCloseTransition:m,shouldAnimateFirstRender:u,style:Z,ref:v})=>{const h=(0,r.Z)(e),g=(0,r.Z)(d),p=(0,a.sO)(),b=void 0===h,{shouldRender:f,transitionClassNames:E}=(0,i.Z)(e&&!t,void 0,b&&!u,!n&&void 0,m);return h&&!e&&(p.current=g),(f||t)&&a.ZP.createElement("div",{id:l,ref:v,className:(0,o.Z)(s,E),onClick:c,style:Z},e?d:p.current)}},83321:(e,t,n)=>{n.d(t,{Z:()=>r});var a=n(60748),o=n(46752);const r=(0,a.X$)((({id:e,name:t,value:n,label:r,checked:i=!1,disabled:l,inactive:s,noAnimation:c,onChange:d,onCheck:m})=>{const u=(0,a.I4)((e=>{d&&d(e),m&&m(e.currentTarget.checked)}),[d,m]),Z=(0,o.Z)("Switcher",l&&"disabled",s&&"inactive",c&&"no-animation");return a.ZP.createElement("label",{className:Z,title:r},a.ZP.createElement("input",{type:"checkbox",id:e,name:t,value:n,checked:i,disabled:l,onChange:u}),a.ZP.createElement("span",{className:"widget"}))}))},53152:(e,t,n)=>{n.d(t,{Z:()=>p});var a=n(60748),o=n(57710),r=n(46752),i=n(82972),l=n(97184),s=n(32340),c=n(17240),d=n(39415),m=n(25190),u=n(12644),Z=n(52328),v=n(58964),h=n(66902);const g="Tab--active",p=({className:e,title:t,isActive:n,isBlocked:p,badgeCount:b,isBadgeActive:f,previousActiveTab:E,onClick:P,clickArg:C,contextActions:N,contextRootElementSelector:w})=>{const y=(0,a.sO)(null);(0,a.bt)((()=>{n&&void 0===E&&y.current&&y.current.classList.add(g)}),[n,E]),(0,a.d4)((()=>{if(!n||void 0===E)return;const e=y.current,t=e.parentElement.children[E];if(!t)return void(n&&!e.classList.contains(g)&&(0,o.WM)((()=>{e.classList.add(g)})));const a=e.querySelector(".platform"),r=t.querySelector(".platform"),l=r.parentElement.offsetLeft-a.parentElement.offsetLeft,s=r.clientWidth/a.clientWidth;(0,o.WM)((()=>{r.classList.remove("animate"),a.classList.remove("animate"),a.style.transform=`translate3d(${l}px, 0, 0) scale3d(${s}, 1, 1)`,(0,o.lT)((()=>((0,i.Z)(a),()=>{a.classList.add("animate"),a.style.transform="none",t.classList.remove(g),e.classList.add(g)})))}))}),[n,E]);const{contextMenuPosition:k,handleContextMenu:x,handleBeforeContextMenu:L,handleContextMenuClose:I,handleContextMenuHide:O,isContextMenuOpen:A}=(0,c.Z)(y,!N),{handleClick:D,handleMouseDown:M}=(0,d.m)((e=>{!N||e.button!==l.tc.Secondary&&P||L(e),"mousedown"===e.type&&e.button!==l.tc.Main||P?.(C)})),S=(0,m.Z)((()=>y.current)),T=(0,m.Z)((()=>w?y.current.closest(w):document.body)),R=(0,m.Z)((()=>document.querySelector("#portals").querySelector(".Tab-context-menu .bubble"))),$=(0,m.Z)((()=>({withPortal:!0}))),{positionX:B,positionY:X,transformOriginX:Y,transformOriginY:F,style:K}=(0,u.Z)(k,S,T,R,$);return a.ZP.createElement("div",{className:(0,r.Z)("Tab",P&&"Tab--interactive",e),onClick:D,onMouseDown:M,onContextMenu:x,ref:y},a.ZP.createElement("span",{className:"Tab_inner"},(0,s.Z)(t),Boolean(b)&&a.ZP.createElement("span",{className:(0,r.Z)("badge",f&&"Tab__badge--active")},b),p&&a.ZP.createElement("i",{className:"icon icon-lock-badge blocked"}),a.ZP.createElement("i",{className:"platform"})),N&&void 0!==k&&a.ZP.createElement(Z.Z,{isOpen:A,transformOriginX:Y,transformOriginY:F,positionX:B,positionY:X,style:K,className:"Tab-context-menu",autoClose:!0,onClose:I,onCloseAnimationEnd:O,withPortal:!0},N.map((e=>"isSeparator"in e?a.ZP.createElement(h.Z,{key:e.key||"separator"}):a.ZP.createElement(v.Z,{key:e.title,icon:e.icon,destructive:e.destructive,disabled:!e.handler,onClick:e.handler},e.title)))))}},31711:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(60748),o=n(83716),r=n(8582),i=n(97184),l=n(78781),s=n(59107),c=n(87204),d=n(53152);const m=i.cj?450:i.wZ?400:300,u=(0,a.X$)((({tabs:e,areFolders:t,activeTab:n,big:i,onSwitchTab:u,contextRootElementSelector:Z})=>{const v=(0,a.sO)(null),h=(0,c.Z)(n);(0,l.Z)(v,void 0,!0),(0,a.d4)((()=>{const e=v.current,{scrollWidth:t,offsetWidth:a,scrollLeft:o}=e;if(t<=a)return;const i=e.childNodes[n];if(!i)return;const{offsetLeft:l,offsetWidth:s}=i,c=l-a/2+s/2;Math.abs(c-o)<16||(0,r.Z)(e,c,m)}),[n]);const g=(0,s.Z)();return a.ZP.createElement("div",{className:"TabList no-scrollbar "+(i?"big":""),ref:v,dir:g.isRtl?"rtl":void 0},e.map(((e,r)=>a.ZP.createElement(d.Z,{key:e.id??e.title,title:t&&e.id!==o.NfV?e.title:g(e.title),isActive:r===n,isBlocked:e.isBlocked,badgeCount:e.badgeCount,isBadgeActive:e.isBadgeActive,previousActiveTab:h,onClick:u,clickArg:r,contextActions:e.contextActions,contextRootElementSelector:Z}))))}))},59174:(e,t,n)=>{n.d(t,{Z:()=>s});var a=n(60748),o=n(57710),r=n(46752),i=n(59107),l=n(25190);const s=(0,a.X$)((({ref:e,id:t,className:n,value:s,label:c,error:d,success:m,disabled:u,readOnly:Z,placeholder:v,autoComplete:h,inputMode:g,maxLength:p,maxLengthIndicator:b,tabIndex:f,onChange:E,onInput:P,onKeyPress:C,onKeyDown:N,onBlur:w,onPaste:y,noReplaceNewlines:k})=>{let x=(0,a.sO)(null);e&&(x=e);const L=(0,i.Z)(),I=d||m||c,O=(0,r.Z)("input-group",s&&"touched",d?"error":m&&"success",u&&"disabled",Z&&"disabled",I&&"with-label",n),A=(0,l.Z)((e=>{(0,o.WM)((()=>{e.style.height="0",(0,o.lT)((()=>{const t=e.scrollHeight;return()=>{e.style.height=`${t}px`}}))}))}));(0,a.bt)((()=>{const e=x.current;e&&A(e)}),[]);const D=(0,a.I4)((e=>{const t=e.currentTarget;if(!k){const e=t.selectionEnd;t.value=t.value.replace(/\n/g," "),t.selectionEnd=e}A(t),E?.(e)}),[k,E]);return a.ZP.createElement("div",{className:O,dir:L.isRtl?"rtl":void 0},a.ZP.createElement("textarea",{ref:x,className:"form-control",id:t,dir:"auto",value:s||"",tabIndex:f,placeholder:v,maxLength:p,autoComplete:h,inputMode:g,disabled:u,readOnly:Z,onChange:D,onInput:P,onKeyPress:C,onKeyDown:N,onBlur:w,onPaste:y,"aria-label":I}),I&&a.ZP.createElement("label",{htmlFor:t},I),b&&a.ZP.createElement("div",{className:"max-length-indicator"},b))}))},4292:(e,t,n)=>{n.d(t,{Z:()=>c});var a=n(60748),o=n(33323),r=n(82267),i=n(96557),l=n(65326),s=n(59107);const c=(0,a.X$)((({langKey:e,endsAt:t,onEnd:n})=>{const c=(0,s.Z)(),d=(0,l.Z)(),m=(0,r.bp)(),u=m<t;if((0,i.Z)(d,u?500:void 0),(0,a.d4)((()=>{u||n?.()}),[u,n]),!u)return;const Z=t-m,v=(0,o.k9)(Z);return a.ZP.createElement("span",null,c(e,v))}))},79994:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(46752);const r={root:"eGD1rubd",widget:"EXXsQxeq",min:"C4vXj96y",mid:"nRNm3LRD",max:"LdztzMx0",filler:"kudEBJOk"},i=(0,a.X$)((function({value:e}){return a.ZP.createElement("div",{className:(0,o.Z)(r.root,"Toggle"),"aria-hidden":!0},a.ZP.createElement("i",{className:(0,o.Z)(r.filler,r[e])}),a.ZP.createElement("i",{className:(0,o.Z)(r.widget,r[e])}))}))},78747:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(46752);const r="AtWkrIxV",i=(0,a.X$)((()=>a.ZP.createElement("div",{className:"Oob7moh7"},a.ZP.createElement("div",{className:(0,o.Z)("ao0o6F_1",r)}),a.ZP.createElement("div",{className:"e94nYlC4"},a.ZP.createElement("div",{className:(0,o.Z)("ANs9RCJu",r)}),a.ZP.createElement("div",{className:(0,o.Z)("RSn3O5Rx",r)})))))},74607:(e,t,n)=>{n.d(t,{Z:()=>i});var a=n(60748),o=n(46752),r=n(80036);const i=({variant:e="rectangular",animation:t="wave",width:n,height:i,forceAspectRatio:l,inline:s,className:c})=>{const d=(0,o.Z)("Skeleton",e,t,c,s&&"inline"),m=n&&i?`aspect-ratio: ${n}/${i}`:void 0,u=(0,r.Z)(l&&m,Boolean(n)&&`width: ${n}px`,!l&&Boolean(i)&&`height: ${i}px`);return a.ZP.createElement("div",{className:d,style:u},s&&" ")}}}]);
//# sourceMappingURL=2120.5eb305af4756491140a3.js.map