TelegramPWA/dist/4765.d4e0ace149941c92bc52.js
Alexander Zinchuk fb411a3125 [Build]
2025-06-04 20:43:36 +02:00

2 lines
35 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([[4765],{283:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(84051),i=t(87357);const a="AtWkrIxV";var r=t(20021);const s=(0,o.ph)((()=>(0,r.FD)("div",{className:"Oob7moh7",children:[(0,r.Y)("div",{className:(0,i.A)("ao0o6F_1",a)}),(0,r.FD)("div",{className:"e94nYlC4",children:[(0,r.Y)("div",{className:(0,i.A)("ANs9RCJu",a)}),(0,r.Y)("div",{className:(0,i.A)("RSn3O5Rx",a)})]})]})))},629:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(84051),i=t(87357);const a={root:"eGD1rubd",widget:"EXXsQxeq",min:"C4vXj96y",mid:"nRNm3LRD",max:"LdztzMx0",filler:"kudEBJOk"};var r=t(20021);const s=(0,o.ph)((function({value:e}){return(0,r.FD)("div",{className:(0,i.A)(a.root,"Toggle"),"aria-hidden":!0,children:[(0,r.Y)("i",{className:(0,i.A)(a.filler,a[e])}),(0,r.Y)("i",{className:(0,i.A)(a.widget,a[e])})]})}))},1087:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(84051),i=t(87357),a=t(17712),r=t(24956),s=t(20021);const l=(0,o.ph)((({id:e,name:n,options:t,selected:l,disabled:c,loadingOption:d,onChange:u,onClickAction:h,subLabelClassName:m,isLink:v,withIcon:A,subLabel:p,className:g})=>{const b=(0,o.hb)((e=>{const{value:n}=e.currentTarget;u(n,e)}),[u]),f=(0,a.A)((e=>()=>{h?.(e)}));return(0,s.Y)("div",{id:e,className:(0,i.A)("radio-group",g),children:t.map((e=>(0,s.Y)(r.A,{name:n,label:e.label,subLabel:p||e.subLabel,subLabelClassName:m,value:e.value,checked:e.value===l,hidden:e.hidden,isCanCheckedInDisabled:e.isCanCheckedInDisabled,disabled:c,withIcon:A,isLoading:d?d===e.value:void 0,className:e.className,onChange:b,onSubLabelClick:f(e.value),isLink:v})))})}))},11124:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(84051),i=t(87357);var a=t(20021);const r=(0,o.ph)((({marks:e,onChange:n,rangeCount:t})=>{const r=(0,o.li)(),s=(0,o.Kr)((()=>e.indexOf(t)),[e,t]),l=(0,o.Kr)((()=>e.indexOf(t).toString()),[e,t]);return(0,o.Nf)((()=>{if(r.current){const n=s/(e.length-1)*100,t=n/2;r.current.style.setProperty("--fill-percentage",`${n}%`),r.current.style.setProperty("--thumb-offset",`${t}%`)}}),[s,e]),(0,a.Y)("div",{className:"s8NMMSES",children:(0,a.Y)("form",{children:(0,a.FD)("div",{className:"i_wrxmyh",children:[(0,a.Y)("div",{className:"O7SI4r_Y",children:e.map(((e,n)=>{const t=n<=s;return(0,a.Y)("div",{className:(0,i.A)("b6UDc3zh",t?"VELPJsJ0":"K8NtimIi")},e)}))}),(0,a.Y)("div",{className:"bVlnaLCI",children:e.map((e=>(0,a.Y)("div",{className:(0,i.A)("AFFaq4eZ",t===e&&"cuogxYPG"),children:e},e)))}),(0,a.Y)("input",{ref:r,type:"range",className:"H_rMZrqn",min:"0",max:e.length-1,value:l,onChange:t=>{const o=parseInt(t.target.value,10),i=e[o];n(i)},step:"1"})]})})})}))},12933:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(87357),i=t(59030),a=t(64493),r=t(20021);const s=({isShown:e,className:n,color:t="primary",ariaLabel:s,disabled:l,onClick:c,children:d})=>{const u=(0,i.A)(),h=(0,o.A)("FloatingActionButton",e&&"revealed",n);return(0,r.Y)(a.A,{className:h,color:t,round:!0,disabled:l,onClick:e&&!l?c:void 0,ariaLabel:s,tabIndex:-1,isRtl:u.isRtl,children:d})}},17208:(e,n,t)=>{t.d(n,{A:()=>D});var o=t(84051),i=t(13439),a=t(83649),r=t(31481),s=t(87357),l=t(11778),c=t(76023),d=t(4961),u=t(39351),h=t(17712),m=t(50680),v=t(87412),A=t(18276),p=t(9267),g=t(64493),b=t(3325),f=t(17663),C=t(32625),N=t(59030),w=t(68292);const y={root:"eldglPwL",svg:"xhUfxjkV",circle:"hsaty2zA"};var k=t(20021);const Y=(0,o.ph)((({duration:e,className:n,onEnd:t})=>{const[i,a]=(0,o.J0)(e),r=(0,N.A)();return(0,C.A)((()=>a((e=>e-1))),i>0?1e3:void 0),(0,o.vJ)((()=>{i<=0&&t?.()}),[i,t]),(0,o.vJ)((()=>{a(e)}),[e]),(0,k.FD)("div",{className:(0,s.A)(y.root,n),children:[(0,k.Y)("svg",{className:y.svg,width:"32px",height:"32px",children:(0,k.Y)("circle",{cx:"16",cy:"16",r:14,transform:"rotate(-90, 16, 16)",pathLength:"100","stroke-dasharray":"100","stroke-dashoffset":100-(i-1)/e*100,className:y.circle})}),(0,k.Y)(w.A,{className:y.text,text:(0,f.dq)(r,1e3*i)})]})})),x=3e3,L=1.75*c.$,D=({notification:e})=>{const n=(0,i.ko)(),t=(0,u.A)(),{localId:c,message:f,action:C,actionText:N,cacheBreaker:w,className:y,disableClickDismiss:D,dismissAction:E,duration:T=x,icon:S,shouldUseCustomIcon:B,customEmojiIconId:F,shouldShowTimer:R,title:M,containerSelector:I}=e,[O,K]=(0,o.J0)(!0),J=(0,o.li)(),{transitionClassNames:P}=(0,m.A)(O),z=(0,h.A)((()=>{n.dismissNotification({localId:c})})),$=(0,h.A)((e=>{!e&&D||(K(!1),setTimeout(z,150+r.xB5),E&&n[E.action](E.payload))})),q=(0,h.A)((()=>{C&&(Array.isArray(C)?C.forEach((e=>n[e.action](e.payload))):n[C.action](C.payload)),D&&(K(!1),setTimeout(z,150+r.xB5)),$()})),U=(0,h.A)((()=>{C&&(Array.isArray(C)?C.forEach((e=>n[e.action](e.payload))):n[C.action](C.payload)),$()}));(0,o.vJ)((()=>O?(0,l.A)($):void 0),[O,$]),(0,o.vJ)((()=>(J.current=window.setTimeout((()=>$(!0)),T),()=>{J.current&&(clearTimeout(J.current),J.current=void 0)})),[T,w]);const W=(0,h.A)((()=>{D||J.current&&(clearTimeout(J.current),J.current=void 0)})),_=(0,h.A)((()=>{D||(J.current&&clearTimeout(J.current),J.current=window.setTimeout($,T))})),H=(0,o.Kr)((()=>{if(M)return(0,a.Yw)(M)?t.with(M):(0,d.A)(M,["simple_markdown","emoji","br","links"])}),[t,M]),j=(0,o.Kr)((()=>(0,a.Yw)(f)?t.with(f):"string"==typeof f?(0,d.A)(f,["simple_markdown","emoji","br","links"]):f),[t,f]),Q=(0,o.Kr)((()=>{if(N)return(0,a.Yw)(N)?t.with(N):N}),[t,N]),V=(0,o.Kr)((()=>F?(0,k.Y)(v.A,{className:"notification-emoji-icon",forceAlways:!0,size:L,documentId:F}):B&&"star"===S?(0,k.Y)(p.A,{type:"gold",className:(0,s.A)("notification-icon"),size:"adaptive"}):(0,k.Y)(A.A,{name:S||"info-filled",className:"notification-icon"})),[F,S,B]);return(0,k.Y)(b.A,{className:"Notification-container",containerSelector:I,children:(0,k.FD)("div",{className:(0,s.A)("Notification",P,y),onClick:U,onMouseEnter:W,onMouseLeave:_,children:[V,(0,k.FD)("div",{className:"content",children:[Boolean(H)&&(0,k.Y)("div",{className:"notification-title",children:H}),j]}),Boolean(Q)&&(0,k.Y)(g.A,{color:"translucent-white",onClick:q,className:"notification-button",children:Q}),R&&(0,k.Y)(Y,{className:"notification-timer",duration:Math.ceil(T/1e3)},w)]})})}},22337:(e,n,t)=>{t.d(n,{U:()=>k,A:()=>Y});var o=t(84051),i=t(87357),a=t(52674),r=t(14680),s=t(91034),l=t(29441),c=t(26072),d=t(17712),u=t(37859),h=t(59030),m=t(21511),v=t(18276),A=t(64493),p=t(13439),g=t(86046),b=t(48775),f=t(39351),C=t(96530);var N=t(20021);const w=(0,o.ph)((0,p.EK)((e=>{const{stars:n}=e;return{starBalance:n?.balance}}))((function({starBalance:e,isModalOpen:n,onCloseAnimationEnd:t}){const{openStarsBalanceModal:o}=(0,p.ko)(),a=(0,f.A)(),r=!!n&&Boolean(e),{ref:s,shouldRender:l}=(0,m.A)({isOpen:r,onCloseAnimationEnd:t,withShouldRender:!0}),c=(0,d.A)((()=>{o({})}));if(l&&e)return(0,N.FD)("div",{className:(0,i.A)("UtvP6LQ2"),ref:s,children:[(0,N.Y)("div",{children:a("ModalStarsBalanceBarDescription",{stars:(0,b.U)(a,(0,g.ZF)(a,e),{className:"w919CqtI"})},{withNodes:!0,withMarkdown:!0})}),(0,N.Y)("div",{children:(0,N.Y)(C.A,{isPrimary:!0,onClick:c,children:a("GetMoreStarsLinkText")})})]})})));var y=t(3325);const k=200,Y=(0,s.A)((({dialogRef:e,title:n,className:t,contentClassName:s,headerClassName:p,isOpen:g,isSlim:b,header:f,hasCloseButton:C,hasAbsoluteCloseButton:Y,absoluteCloseButtonColor:x="translucent",noBackdrop:L,noBackdropClose:D,children:E,style:T,dialogStyle:S,isLowStackPriority:B,dialogContent:F,onClose:R,onCloseAnimationEnd:M,onEnter:I,withBalanceBar:O})=>{const{ref:K,shouldRender:J}=(0,m.A)({isOpen:g,onCloseAnimationEnd:M,withShouldRender:!0}),P=C||Y;(0,o.vJ)((()=>{if(g)return(0,r.FD)(),r.wb}),[g]);const z=(0,d.A)((e=>!!I&&(e.preventDefault(),I(),!0)));(0,o.vJ)((()=>g?(0,a.A)({onEsc:R,onEnter:z}):void 0),[g,R,z]),(0,o.vJ)((()=>g&&K.current?(0,l.A)(K.current):void 0),[g,K]),(0,c.A)({isActive:g,onBack:R}),(0,u.A)((([e])=>(document.body.classList.toggle("has-open-dialog",Boolean(g)),(g||!g&&void 0!==e)&&(0,o.VK)(k),()=>{document.body.classList.remove("has-open-dialog")})),[g]);const $=(0,h.A)();if(!J)return;const q=(0,i.A)("Modal",t,L&&"transparent-backdrop",b&&"slim",B&&"low-priority",O&&"with-balance-bar");return(0,N.Y)(y.A,{children:(0,N.FD)("div",{ref:K,className:q,tabIndex:-1,role:"dialog",children:[O&&(0,N.Y)(w,{isModalOpen:g}),(0,N.FD)("div",{className:"modal-container",children:[(0,N.Y)("div",{className:"modal-backdrop",onClick:D?void 0:R}),(0,N.FD)("div",{className:"modal-dialog",ref:e,style:S,children:[function(){if(f)return f;if(!n&&!P)return;const e=(0,N.Y)(A.A,{className:(0,i.A)(Y&&"modal-absolute-close-button"),round:!0,color:x,size:"smaller",ariaLabel:$("Close"),onClick:R,children:(0,N.Y)(v.A,{name:"close"})});return Y?e:(0,N.FD)("div",{className:(0,i.A)("modal-header",p),children:[P&&e,(0,N.Y)("div",{className:"modal-title",children:n})]})}(),F,(0,N.Y)("div",{className:(0,i.A)("modal-content custom-scroll",s),style:T,children:E})]})]})]})})}))},22720:(e,n,t)=>{t.d(n,{A:()=>C});var o=t(84051),i=t(66644),a=t(96454),r=t(87357),s=t(4961),l=t(10722),c=t(11217),d=t(37661),u=t(17712),h=t(59030),m=t(18276),v=t(64493),A=t(71429),p=t(24433),g=t(60859),b=t(42452),f=t(20021);const C=({ref:e,buttonRef:n,icon:t,iconClassName:C,leftElement:N,buttonClassName:w,menuBubbleClassName:y,secondaryIcon:k,secondaryIconClassName:Y,rightElement:x,className:L,style:D,children:E,disabled:T,allowDisabledClick:S,ripple:B,narrow:F,inactive:R,focus:M,destructive:I,withPrimaryColor:O,multiline:K,isStatic:J,allowSelection:P,withColorTransition:z,contextActions:$,withPortalForMenu:q,href:U,onMouseDown:W,onClick:_,onContextMenu:H,clickArg:j,onSecondaryIconClick:Q,onDragEnter:V,nonInteractive:Z})=>{let G=(0,o.li)();e&&(G=e);const[X,ee,ne]=(0,d.A)(),{isContextMenuOpen:te,contextMenuAnchor:oe,handleBeforeContextMenu:ie,handleContextMenu:ae,handleContextMenuClose:re,handleContextMenuHide:se}=(0,l.A)(G,!$),le=(0,u.A)((()=>G.current)),ce=(0,u.A)((()=>G.current.closest(".custom-scroll"))),de=(0,u.A)((()=>(q?document.querySelector("#portals"):G.current).querySelector(".ListItem-context-menu .bubble"))),ue=(0,u.A)((()=>({withPortal:q}))),he=(0,u.A)((e=>{e.ctrlKey||e.metaKey||e.shiftKey||e.button!==a.w3.Main||e.preventDefault()})),me=(0,u.A)((e=>{if((!T||S)&&_){if(U){if((e.ctrlKey||e.metaKey||e.shiftKey)&&e.button===a.w3.Main||e.button===a.w3.Auxiliary)return;e.preventDefault()}_(e,j),a.TF&&!B&&(ee(),(0,i.YS)(ne))}})),{handleClick:ve,handleMouseDown:Ae}=(0,c.Q)((e=>{T&&!S||0!==e.button||!Q&&!$||(e.stopPropagation(),Q?Q(e):ae(e))})),pe=(0,u.A)((e=>{R||a.TF||(!$||e.button!==a.w3.Secondary&&_||ie(e),e.button===a.w3.Main&&(_?me(e):ae(e)))})),ge=(0,h.A)(),be=(0,r.A)("ListItem",L,P&&"allow-selection",B&&"has-ripple",F&&"narrow",T&&"disabled",S&&"click-allowed",R&&"inactive",oe&&"has-menu-open",M&&"focus",I&&"destructive",O&&"primary",K&&"multiline",J&&"is-static",z&&"with-color-transition"),fe=U?"a":"div";return(0,f.FD)("div",{ref:G,className:be,dir:ge.isRtl?"rtl":void 0,style:D,onMouseDown:W,onDragEnter:V,children:[(0,f.FD)(fe,{className:(0,r.A)("ListItem-button",X&&"active",w),role:J?void 0:"button",href:U,ref:n,tabIndex:J?void 0:0,onClick:!R&&a.TF?me:he,onMouseDown:pe,onContextMenu:H||(!R&&$?ae:void 0),children:[!T&&!R&&B&&(0,f.Y)(b.A,{}),N,t&&(0,f.Y)(m.A,{name:t,className:(0,r.A)("ListItem-main-icon",C)}),K&&(0,f.Y)("div",{className:"multiline-item",children:E}),!K&&E,k&&(0,f.Y)(v.A,{nonInteractive:Z,className:(0,r.A)("secondary-icon",Y),round:!0,color:"translucent",size:"smaller",onClick:ve,onMouseDown:Ae,children:(0,f.Y)(m.A,{name:k})}),x]}),$&&void 0!==oe&&(0,f.Y)(A.A,{isOpen:te,anchor:oe,getTriggerElement:le,getRootElement:ce,getMenuElement:de,getLayout:ue,className:"ListItem-context-menu with-menu-transitions",autoClose:!0,onClose:re,onCloseAnimationEnd:se,withPortal:q,bubbleClassName:y,children:$.map((e=>"isSeparator"in e?(0,f.Y)(g.A,{},e.key||"separator"):(0,f.Y)(p.A,{icon:e.icon,destructive:e.destructive,disabled:!e.handler,onClick:e.handler,children:(0,f.Y)("span",{className:"list-item-ellipsis",children:(0,s.A)(e.title)})},e.title)))})]})}},24680:(e,n,t)=>{t.d(n,{A:()=>m});var o=t(84051),i=t(57446),a=t(96454),r=t(87357),s=t(36838),l=t(59030),c=t(73767),d=t(34132),u=t(20021);const h=a.pz?450:a.Ni?400:300,m=(0,o.ph)((({tabs:e,activeTab:n,onSwitchTab:t,contextRootElementSelector:a,className:m,tabClassName:v})=>{const A=(0,o.li)(),p=(0,c.A)(n);(0,s.A)(A,void 0,!0),(0,o.vJ)((()=>{const e=A.current,{scrollWidth:t,offsetWidth:o,scrollLeft:a}=e;if(t<=o)return;const r=e.childNodes[n];if(!r)return;const{offsetLeft:s,offsetWidth:l}=r,c=s-o/2+l/2;Math.abs(c-a)<16||(0,i.A)(e,c,h)}),[n]);const g=(0,l.A)();return(0,u.Y)("div",{className:(0,r.A)("TabList","no-scrollbar",m),ref:A,dir:g.isRtl?"rtl":void 0,children:e.map(((e,o)=>(0,u.Y)(d.A,{title:e.title,isActive:o===n,isBlocked:e.isBlocked,badgeCount:e.badgeCount,isBadgeActive:e.isBadgeActive,previousActiveTab:p,onClick:t,clickArg:o,contextActions:e.contextActions,contextRootElementSelector:a,className:v},e.id)))})}))},24713:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(84051),i=t(87357),a=t(68292),r=t(26607);var s=t(20021);const l=(0,o.ph)((({text:e,className:n,isAlternateColor:t})=>(0,s.Y)(r.A,{className:(0,i.A)("Y3ZoW17O",t?"Lq67O2D2":"DWjOG2Ze",n),isOpen:Boolean(e),children:e&&(0,s.Y)(a.A,{text:e})})))},24956:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(84051),i=t(87357),a=t(59030),r=t(57474),s=t(20021);const l=(0,o.ph)((({id:e,label:n,subLabel:t,subLabelClassName:o,value:l,name:c,checked:d,disabled:u,hidden:h,isLoading:m,className:v,onlyInput:A,withIcon:p,isLink:g,onChange:b,onSubLabelClick:f,isCanCheckedInDisabled:C})=>{const N=(0,a.A)(),w=(0,i.A)("Radio",v,u&&"disabled",h&&"hidden-widget",p&&"with-icon",m&&"loading",A&&"onlyInput",Boolean(t)&&"withSubLabel",C&&"canCheckedInDisabled");return(0,s.FD)("label",{className:w,dir:N.isRtl?"rtl":void 0,children:[(0,s.Y)("input",{type:"radio",name:c,value:l,id:e,checked:d,onChange:b,disabled:u||h}),(0,s.FD)("div",{className:"Radio-main",children:[(0,s.Y)("span",{className:"label",dir:N.isRtl?"auto":void 0,children:n}),Boolean(t)&&(0,s.Y)("span",{className:(0,i.A)(o,"subLabel",g?"subLabelLink":void 0),dir:N.isRtl?"auto":void 0,onClick:g?f:void 0,children:t})]}),m&&(0,s.Y)(r.A,{})]})}))},26607:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(84051),i=t(73767),a=t(21511),r=t(20021);const s=({isOpen:e,isHidden:n,isCustom:t,id:s,className:l,onClick:c,children:d,noCloseTransition:u,shouldAnimateFirstRender:h,style:m,ref:v})=>{const A=(0,i.A)(e),p=(0,i.A)(d),g=(0,o.li)(),b=void 0===A,{ref:f,shouldRender:C}=(0,a.A)({isOpen:e&&!n,ref:v,noMountTransition:b&&!h,className:!t&&void 0,noCloseTransition:u,withShouldRender:!0});return A&&!e&&(g.current=p),(C||n)&&(0,r.Y)("div",{id:s,ref:f,className:l,onClick:c,style:m,children:e?d:g.current})}},32581:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(87357),i=t(59030);var a=t(20021);const r=function({children:e,className:n}){const t=(0,i.A)();return(0,a.Y)("div",{dir:t.isRtl?"rtl":void 0,className:(0,o.A)("LxlpQKLr",n),children:e})}},34132:(e,n,t)=>{t.d(n,{A:()=>b});var o=t(84051),i=t(66644),a=t(96454),r=t(87357),s=t(41402),l=t(4961),c=t(10722),d=t(11217),u=t(17712),h=t(18276),m=t(71429),v=t(24433),A=t(60859),p=t(20021);const g="Tab--active",b=({className:e,title:n,isActive:t,isBlocked:b,badgeCount:f,isBadgeActive:C,previousActiveTab:N,onClick:w,clickArg:y,contextActions:k,contextRootElementSelector:Y})=>{const x=(0,o.li)();(0,o.Nf)((()=>{t&&void 0===N&&x.current&&x.current.classList.add(g)}),[t,N]),(0,o.vJ)((()=>{if(!t||void 0===N)return;const e=x.current,n=e.parentElement.children[N];if(!n)return void(t&&!e.classList.contains(g)&&(0,i.RK)((()=>{e.classList.add(g)})));const o=e.querySelector(".platform"),a=n.querySelector(".platform"),r=a.parentElement.offsetLeft-o.parentElement.offsetLeft,l=a.clientWidth/o.clientWidth;(0,i.RK)((()=>{a.classList.remove("animate"),o.classList.remove("animate"),o.style.transform=`translate3d(${r}px, 0, 0) scale3d(${l}, 1, 1)`,(0,i.gm)((()=>((0,s.A)(o),()=>{o.classList.add("animate"),o.style.transform="none",n.classList.remove(g),e.classList.add(g)})))}))}),[t,N]);const{contextMenuAnchor:L,handleContextMenu:D,handleBeforeContextMenu:E,handleContextMenuClose:T,handleContextMenuHide:S,isContextMenuOpen:B}=(0,c.A)(x,!k),{handleClick:F,handleMouseDown:R}=(0,d.Q)((e=>{!k||e.button!==a.w3.Secondary&&w||E(e),"mousedown"===e.type&&e.button!==a.w3.Main||w?.(y)})),M=(0,u.A)((()=>x.current)),I=(0,u.A)((()=>Y?x.current.closest(Y):document.body)),O=(0,u.A)((()=>document.querySelector("#portals").querySelector(".Tab-context-menu .bubble"))),K=(0,u.A)((()=>({withPortal:!0})));return(0,p.FD)("div",{className:(0,r.A)("Tab",w&&"Tab--interactive",e),onClick:F,onMouseDown:R,onContextMenu:D,ref:x,children:[(0,p.FD)("span",{className:"Tab_inner",children:["string"==typeof n?(0,l.A)(n):n,Boolean(f)&&(0,p.Y)("span",{className:(0,r.A)("badge",C&&"Tab__badge--active"),children:f}),b&&(0,p.Y)(h.A,{name:"lock-badge",className:"blocked"}),(0,p.Y)("i",{className:"platform"})]}),k&&void 0!==L&&(0,p.Y)(m.A,{isOpen:B,anchor:L,getTriggerElement:M,getRootElement:I,getMenuElement:O,getLayout:K,className:"Tab-context-menu",autoClose:!0,onClose:T,onCloseAnimationEnd:S,withPortal:!0,children:k.map((e=>"isSeparator"in e?(0,p.Y)(A.A,{},e.key||"separator"):(0,p.Y)(v.A,{icon:e.icon,destructive:e.destructive,disabled:!e.handler,onClick:e.handler,children:e.title},e.title)))})]})}},35913:(e,n,t)=>{t.d(n,{A:()=>v});var o=t(84051),i=t(66644),a=t(19822),r=t(87357),s=t(87094),l=t(41257),c=t(38691),d=t(18276),u=t(20021);const h={s:42,m:48,l:54,xl:52},m=.05,v=(0,o.ph)((({progress:e=0,size:n="l",square:t,transparent:v,noCross:A,rotationOffset:p,withColor:g,onClick:b})=>{const f=(0,o.li)(),C=h[n],N=(0,l.i)(e),w=(0,c.A)(),y=(0,s.A)(f,void 0,!g);(0,o.vJ)((()=>{let e,t,o=!0,r=m;(0,a.i0)((()=>{if(!f.current)return!1;N.current!==t&&(r=Math.min(Math.max(m,t||0),1),e=Date.now(),t=N.current);const i=Math.min(Math.max(m,N.current),1),s=Math.min(1,(Date.now()-e)/600),l=a.qM.easeOutQuad(s),c=r+(i-r)*l;return function(e,n,t,o,i,a,r=!1,s){const l=n/2,c=(n-t)/2-2*a,d=s??Date.now()%2e3/2e3,u=2*Math.PI*d,h=u+2*Math.PI*i,m=e.getContext("2d");r&&(e.width=n,e.height=n,m.lineCap="round",m.strokeStyle=o,m.lineWidth=t),m.clearRect(0,0,n,n),m.beginPath(),m.arc(l,l,c,u,h),m.stroke()}(f.current,C*w,("xl"===n?3:2)*w,y??"white",c,w,o,p),o=!1,c<1}),i.RK)}),[N,n,C,w,p,y]);const k=(0,r.A)(`ProgressSpinner size-${n}`,v&&"transparent",t&&"square",A&&"no-cross");return(0,u.FD)("div",{className:k,onClick:b,children:[!A&&(0,u.Y)(d.A,{name:"close"}),(0,u.Y)("canvas",{ref:f,className:"ProgressSpinner_canvas",style:`width: ${C}; height: ${C}px;`})]})}))},36393:(e,n,t)=>{t.d(n,{A:()=>A});var o=t(84051),i=t(87357),a=t(37661),r=t(79174),s=t(39351),l=t(17712),c=t(59030),d=t(18276),u=t(64493),h=t(52745),m=t(41036),v=t(20021);const A=(0,o.ph)((({ref:e,children:n,resultsItemSelector:t,value:A,inputId:p,className:g,focused:b,isLoading:f=!1,spinnerColor:C,spinnerBackgroundColor:N,placeholder:w,disabled:y,autoComplete:k,canClose:Y,autoFocusSearch:x,hasUpButton:L,hasDownButton:D,teactExperimentControlled:E,withBackIcon:T,onChange:S,onStartBackspace:B,onReset:F,onFocus:R,onBlur:M,onClick:I,onUpClick:O,onDownClick:K,onSpinnerClick:J})=>{let P=(0,o.li)();e&&(P=e);const[z,$,q]=(0,a.A)(b);(0,r.A)(P,x,q),(0,o.vJ)((()=>{P.current&&(b?P.current.focus():P.current.blur())}),[b,w]);const U=(0,c.A)(),W=(0,s.A)();function _(){$(),R?.()}const H=(0,l.A)((e=>{if(t){if("ArrowDown"===e.key||"Enter"===e.key){const e=document.querySelector(t);e&&e.focus()}"Backspace"===e.key&&0===e.currentTarget.selectionStart&&0===e.currentTarget.selectionEnd&&B?.()}}));return(0,v.FD)("div",{className:(0,i.A)("SearchInput",g,z&&"has-focus"),onClick:I,dir:U.isRtl?"rtl":void 0,children:[(0,v.Y)(m.Ay,{name:"fade",shouldCleanup:!0,activeKey:Number(!f&&!T),className:"icon-container-left",slideClassName:"icon-container-slide",children:f&&!T?(0,v.Y)(h.A,{color:C,backgroundColor:N,onClick:J}):T?(0,v.Y)(d.A,{name:"arrow-left",className:"back-icon",onClick:F}):(0,v.Y)(d.A,{name:"search",className:"search-icon"})}),(0,v.Y)("div",{children:n}),(0,v.Y)("input",{ref:P,id:p,type:"text",dir:"auto",placeholder:w||U("Search"),className:"form-control",value:A,disabled:y,autoComplete:k,onChange:function(e){const{currentTarget:n}=e;S(n.value),z||_()},onFocus:_,onBlur:function(){q(),M?.()},onKeyDown:H,teactExperimentControlled:E}),L&&(0,v.Y)(u.A,{round:!0,size:"tiny",color:"translucent",onClick:O,disabled:!O,ariaLabel:W("AriaSearchOlderResult"),children:(0,v.Y)(d.A,{name:"up"})}),D&&(0,v.Y)(u.A,{round:!0,size:"tiny",color:"translucent",onClick:K,disabled:!K,ariaLabel:W("AriaSearchNewerResult"),children:(0,v.Y)(d.A,{name:"down"})}),(0,v.Y)(m.Ay,{name:"fade",shouldCleanup:!0,activeKey:Number(f),className:"icon-container-right",slideClassName:"icon-container-slide",children:T&&f?(0,v.Y)(h.A,{color:C,backgroundColor:N,onClick:J}):(A||Y)&&F&&(0,v.Y)(u.A,{round:!0,size:"tiny",color:"translucent",onClick:F,children:(0,v.Y)(d.A,{name:"close"})})})]})}))},43434:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(84051),i=t(87357),a=t(18276),r=t(68584),s=t(20021);const l=(0,o.ph)((({title:e="Change your profile picture",disabled:n,isForForum:t,currentAvatarBlobUrl:l,onChange:c})=>{const[d,u]=(0,o.J0)(),[h,m]=(0,o.J0)(l);(0,o.vJ)((()=>{m(l)}),[l]);const v=(0,o.hb)((e=>{u(void 0),c(e),h&&h!==l&&URL.revokeObjectURL(h),m(URL.createObjectURL(e))}),[h,l,c]),A=(0,o.hb)((()=>{u(void 0)}),[]),p=(0,i.A)(h&&"filled",n&&"disabled",t&&"rounded-square");return(0,s.FD)("div",{className:"AvatarEditable",children:[(0,s.FD)("label",{className:p,role:"button",tabIndex:0,title:e,children:[(0,s.Y)("input",{type:"file",onChange:function(e){const n=e.target;n?.files?.[0]&&(u(n.files[0]),n.value="")},accept:"image/png, image/jpeg"}),(0,s.Y)(a.A,{name:"camera-add"}),h&&(0,s.Y)("img",{src:h,draggable:!1,alt:"Avatar"})]}),(0,s.Y)(r.A,{file:d,onClose:A,onChange:v})]})}))},46222:(e,n,t)=>{t.d(n,{A:()=>h});var o=t(84051),i=t(89925),a=t(66644),r=t(96454),s=t(95807),l=t(9718),c=t(37836),d=t(17712),u=t(20021);const h=({ref:e,style:n,className:t,items:h,itemSelector:m=".ListItem",preloadBackwards:v=20,sensitiveArea:A=800,withAbsolutePositioning:p,maxHeight:g,noScrollRestore:b=!1,noScrollRestoreOnTop:f=!1,noFastList:C,cacheBuster:N,beforeChildren:w,children:y,scrollContainerClosest:k,onLoadMore:Y,onScroll:x,onWheel:L,onClick:D,onKeyDown:E,onDragOver:T,onDragLeave:S})=>{let B=(0,o.li)();e&&(B=e);const F=(0,o.li)({}),[R,M]=(0,o.Kr)((()=>Y?[(0,c.sg)(((e=!1)=>{Y({direction:i.TN.Backwards,noScroll:e})}),1e3,!0,!1),(0,c.sg)((()=>{Y({direction:i.TN.Forwards})}),1e3,!0,!1)]:[]),[Y,h]);(0,o.vJ)((()=>{const e=k?B.current.closest(k):B.current;if(!R||!e)return;if(v>0&&(!h||h.length<v))return void R(!0);const{scrollHeight:n,clientHeight:t}=e;t&&n<t&&R()}),[h,R,v,k]),(0,o.Nf)((()=>{const e=k?B.current.closest(k):B.current,n=B.current;(0,a.gm)((()=>{const t=F.current;let o;if(t.listItemElements=n.querySelectorAll(m),t.currentAnchor&&Array.from(t.listItemElements).includes(t.currentAnchor)){const{scrollTop:n}=e,i=t.currentAnchor.getBoundingClientRect().top;o=n+(i-t.currentAnchorTop)}else{const e=t.listItemElements[0];e&&(t.currentAnchor=e,t.currentAnchorTop=e.getBoundingClientRect().top)}if(p||b)return;const{scrollTop:i}=e;return f&&0===i?void 0:()=>{(0,l.A)(e,o),t.isScrollTopJustUpdated=!0}}))}),[h,m,b,f,N,p,k]);const I=(0,d.A)((e=>{if(M&&R){const{isScrollTopJustUpdated:e,currentAnchor:n,currentAnchorTop:t}=F.current,o=F.current.listItemElements;if(e)return void(F.current.isScrollTopJustUpdated=!1);const i=o.length,a=k?B.current.closest(k):B.current,{scrollTop:r,scrollHeight:s,offsetHeight:l}=a,c=r<=(i?o[0].offsetTop:0)+A,d=(i?o[i-1].offsetTop+o[i-1].offsetHeight:s)-(r+l)<=A;let u=!1;if(c){const e=o[0];if(e){const o=e.getBoundingClientRect().top,i=n?.offsetParent&&n!==e?n.getBoundingClientRect().top:o;n&&void 0!==t&&i>t&&(F.current.currentAnchor=e,F.current.currentAnchorTop=o,u=!0,M())}}if(d){const e=o[i-1];if(e){const o=e.getBoundingClientRect().top,i=n?.offsetParent&&n!==e?n.getBoundingClientRect().top:o;n&&void 0!==t&&i<t&&(F.current.currentAnchor=e,F.current.currentAnchorTop=o,u=!0,R())}}if(!u)if(n?.offsetParent)F.current.currentAnchorTop=n.getBoundingClientRect().top;else{const e=o[0];e&&(F.current.currentAnchor=e,F.current.currentAnchorTop=e.getBoundingClientRect().top)}}x&&x(e)}));return(0,o.Nf)((()=>{const e=k?B.current.closest(k):B.current;if(!e)return;const n=e=>I(e);return e.addEventListener("scroll",n),()=>{e.removeEventListener("scroll",n)}}),[I,k]),(0,u.FD)("div",{ref:B,className:t,onWheel:L,teactFastList:!C&&!p,onKeyDown:E,onDragOver:T,onDragLeave:S,onClick:D,style:n,children:[w,p&&h?.length?(0,u.Y)("div",{teactFastList:!C,style:(0,s.A)("position: relative",r.Ni&&`height: ${g}px`),children:y}):y]})}},55158:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(87357),i=t(95807),a=t(20021);const r=({variant:e="rectangular",animation:n="wave",width:t,height:r,forceAspectRatio:s,inline:l,className:c})=>{const d=(0,o.A)("Skeleton",e,n,c,l&&"inline"),u=t&&r?`aspect-ratio: ${t}/${r}`:void 0,h=(0,i.A)(s&&u,Boolean(t)&&`width: ${t}px`,!s&&Boolean(r)&&`height: ${r}px`);return(0,a.Y)("div",{className:d,style:h,children:l&&" "})}},55573:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(59030),i=t(18276),a=t(64493),r=t(20021);const s=({count:e,itemName:n,itemPluralName:t,isLoading:s,onClick:l})=>{const c=(0,o.A)();return(0,r.FD)(a.A,{className:"ShowMoreButton",color:"translucent",size:"smaller",isText:!0,isLoading:s,isRtl:c.isRtl,onClick:l,children:[(0,r.Y)(i.A,{name:"down"}),"Show"," ",e," ","more"," ",e>1?t||`${n}s`:n]})}},60859:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(87357);const i={root:"h039vb1K",thin:"NGKaFgra",thick:"_BdnjPEa"};var a=t(20021);const r=({className:e,size:n="thin"})=>(0,a.Y)("div",{className:(0,o.A)(i.root,i[n],e)})},61361:(e,n,t)=>{t.d(n,{A:()=>d});var o=t(84051),i=t(17663),a=t(80140),r=t(32625),s=t(30857),l=t(59030),c=t(20021);const d=(0,o.ph)((({langKey:e,endsAt:n,onEnd:t})=>{const d=(0,l.A)(),u=(0,s.A)(),h=(0,a.Fm)(),m=h<n;if((0,r.A)(u,m?500:void 0),(0,o.vJ)((()=>{m||t?.()}),[m,t]),!m)return;const v=n-h,A=(0,i.QO)(v);return(0,c.Y)("span",{children:d(e,A)})}))},63152:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(84051),i=t(87357),a=t(20021);const r=(0,o.ph)((({id:e,name:n,value:t,label:r,checked:s=!1,disabled:l,inactive:c,noAnimation:d,onChange:u,onCheck:h})=>{const m=(0,o.hb)((e=>{u&&u(e),h&&h(e.currentTarget.checked)}),[u,h]),v=(0,i.A)("Switcher",l&&"disabled",c&&"inactive",d&&"no-animation");return(0,a.FD)("label",{className:v,title:r,children:[(0,a.Y)("input",{type:"checkbox",id:e,name:n,value:t,checked:s,disabled:l,onChange:m}),(0,a.Y)("span",{className:"widget"})]})}))},63173:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(84051),i=t(87357),a=t(20021);const r=(0,o.ph)((e=>{const{id:n,value:t,label:o,hasArrow:r,error:s,ref:l,tabIndex:c,onChange:d,children:u}=e,h=s||o,m=(0,i.A)("input-group",t&&"touched",s&&"error",h&&"with-label",r&&"with-arrow","input-group");return(0,a.FD)("div",{className:m,children:[(0,a.Y)("select",{className:"form-control",id:n,value:t||"",onChange:d,tabIndex:c,ref:l,children:u}),h&&n&&(0,a.Y)("label",{htmlFor:n,children:h})]})}))},66469:(e,n,t)=>{t.d(n,{A:()=>d});var o=t(84051),i=t(96454),a=t(17712),r=t(64493),s=t(20021);let l,c=!0;const d=({onActivate:e,...n})=>{const t=(0,o.li)(!1),d=(0,a.A)((n=>{if(t.current=!0,c)return c=!1,void e(n);l&&(clearTimeout(l),l=void 0),l=window.setTimeout((()=>{t.current&&e(n)}),200)})),u=(0,a.A)((()=>{t.current=!1})),h=(0,a.A)((n=>{t.current=!0,e(n)}));return(0,s.Y)(r.A,{...n,onMouseEnter:i.TF?void 0:d,onMouseLeave:i.TF?void 0:u,onClick:i.TF?h:e})}},68584:(e,n,t)=>{t.d(n,{A:()=>p});var o=t(84051),i=t(31481),a=t(87679),r=t(39351),s=t(18276),l=t(64493),c=t(52745),d=t(22337),u=t(20021);const h={type:"blob",quality:1,format:"jpeg",circle:!1,size:{width:1024,height:1024}};let m,v,A;const p=(0,o.ph)((({file:e,onChange:n,onClose:p})=>{const[g,b]=(0,o.J0)(!1),f=(0,r.A)();(0,o.vJ)((()=>{e&&(g?async function(e){try{const n=document.getElementById("avatar-crop");if(!n)return;const{offsetWidth:t,offsetHeight:o}=n;A=new m(n,{enableZoom:!0,boundary:{width:t,height:o},viewport:{width:t-16,height:o-16,type:"circle"}});const i=await(0,a.zE)(e);await A.bind({url:i})}catch(e){i.Oig&&console.error(e)}}(e):async function(){return v||(v=Promise.all([t.e(4903),t.e(7643)]).then(t.bind(t,27643)),m=(await v).default),v}().then((()=>b(!0))))}),[e,g]);const C=(0,o.hb)((async()=>{if(!A)return;const e=await A.result(h),t="string"==typeof e?e:(0,a.ti)(e,"avatar.jpg");n(t)}),[n]);return(0,u.FD)(d.A,{isOpen:Boolean(e),onClose:p,title:f("CropperTitle"),className:"CropModal",hasCloseButton:!0,children:[g?(0,u.Y)("div",{id:"avatar-crop"}):(0,u.Y)(c.A,{}),(0,u.Y)(l.A,{className:"confirm-button",round:!0,color:"primary",onClick:C,ariaLabel:f("CropperApply"),children:(0,u.Y)(s.A,{name:"check"})})]})}))},77561:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(84051),i=t(87357),a=t(17712),r=t(19806),s=t(20021);const l=(0,o.ph)((({id:e,options:n,selected:t,disabled:o,nestedCheckbox:l,loadingOptions:c,isRound:d,onChange:u,className:h})=>{const m=(0,a.A)(((e,n)=>{const{value:o,checked:i}=e.currentTarget;let a;i?(a=[...t,o],n&&o&&a.push(n.value),n&&o===n.value&&n.nestedOptions?.forEach((e=>{a.includes(e.value)||a.push(e.value)}))):(a=t.filter((e=>e!==o)),n&&o===n.value?n.nestedOptions?.forEach((e=>{a=a.filter((n=>n!==e.value))})):n&&((n.nestedOptions?.map((e=>e.value))||[]).some((e=>a.includes(e)))||(a=a.filter((e=>e!==n.value))))),u(a)})),v=(0,a.A)((e=>{const n=e?.filter((e=>t.includes(e.value))).length;return n>0?n:e.length}));return(0,s.Y)("div",{id:e,className:(0,i.A)("radio-group",h),children:n.map((e=>(0,s.Y)(r.A,{label:e.label,subLabel:e.subLabel,value:e.value,checked:-1!==t?.indexOf(e.value),disabled:e.disabled||o,isLoading:c?-1!==c.indexOf(e.value):void 0,onChange:m,nestedCheckbox:l,nestedCheckboxCount:v(e.nestedOptions??[]),nestedOptionList:e,values:t,isRound:d})))})}))},80401:(e,n,t)=>{t.d(n,{A:()=>u});var o=t(84051),i=t(87357),a=t(95807),r=t(15640),s=t(59030),l=t(18276);var c=t(20021);const d={x:0,y:0},u=(0,o.ph)((({children:e,id:n,onDrag:t,onDragEnd:u,style:h,knobStyle:m,isDisabled:v})=>{const A=(0,s.A)(),p=(0,o.li)(),[g,b]=(0,o.J0)({isDragging:!1,origin:d,translation:d}),f=e=>{e.stopPropagation(),e.preventDefault();const{x:n,y:t}=(0,r.A)(e);b({...g,isDragging:!0,origin:{x:n,y:t},width:p.current?.offsetWidth,height:p.current?.offsetHeight})},C=(0,o.hb)((e=>{const{x:o,y:i}=(0,r.A)(e),a={x:o-g.origin.x,y:i-g.origin.y};b((e=>({...e,translation:a}))),t(a,n)}),[n,t,g.origin.x,g.origin.y]),N=(0,o.hb)((()=>{b((e=>({...e,isDragging:!1,width:void 0,height:void 0}))),u()}),[u]);(0,o.vJ)((()=>{g.isDragging&&v&&b((e=>({...e,isDragging:!1,width:void 0,height:void 0})))}),[v,g.isDragging]),(0,o.vJ)((()=>(g.isDragging?(window.addEventListener("touchmove",C),window.addEventListener("mousemove",C),window.addEventListener("touchend",N),window.addEventListener("touchcancel",N),window.addEventListener("mouseup",N)):(window.removeEventListener("touchmove",C),window.removeEventListener("mousemove",C),window.removeEventListener("touchend",N),window.removeEventListener("touchcancel",N),window.removeEventListener("mouseup",N),b((e=>({...e,translation:d})))),()=>{g.isDragging&&(window.removeEventListener("touchmove",C),window.removeEventListener("mousemove",C),window.removeEventListener("touchend",N),window.removeEventListener("touchcancel",N),window.removeEventListener("mouseup",N))})),[C,N,g.isDragging]);const w=(0,i.A)("kWQHzIMD",g.isDragging&&"k0c5WDAy"),y=(0,o.Kr)((()=>(0,a.A)(g.isDragging&&`transform: translate(${g.translation.x}px, ${g.translation.y}px)`,g.width?`width: ${g.width}px`:void 0,g.height?`height: ${g.height}px`:void 0,h)),[h,g.height,g.isDragging,g.translation.x,g.translation.y,g.width]);return(0,c.FD)("div",{style:y,className:w,ref:p,children:[e,!v&&(0,c.Y)("div",{"aria-label":A("i18n_dragToSort"),tabIndex:0,role:"button",className:(0,i.A)("UpzQzcvs","div-button","draggable-knob"),onMouseDown:f,onTouchStart:f,style:m,children:(0,c.Y)(l.A,{name:"sort",className:"JIThxQAL"})})]})}))},82497:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(84051),i=t(87357),a=t(59030),r=t(20021);const s=(0,o.ph)((({options:e,min:n=0,max:t=(e?e.length-1:100),step:s=1,label:l,value:c,disabled:d,readOnly:u,bold:h,className:m,renderValue:v,onChange:A,isCenteredLayout:p})=>{const g=(0,a.A)(),b=(0,o.hb)((e=>{A(Number(e.currentTarget.value))}),[A]),f=(0,i.A)(m,"RangeSlider",d&&"disabled",u&&"readOnly",h&&"bold"),C=(0,o.Kr)((()=>e?c/(e.length-1)*100:(c-n)/((t-n)/s)*100),[e,c,t,n,s]);return(0,r.FD)("div",{className:f,children:[p?(0,r.Y)("div",{className:"slider-top-row",dir:g.isRtl?"rtl":void 0,children:!e&&(0,r.FD)(r.FK,{children:[(0,r.Y)("span",{className:"value-min",dir:"auto",children:n}),(0,r.Y)("span",{className:"label",dir:"auto",children:v?v(c):c}),(0,r.Y)("span",{className:"value-max",dir:"auto",children:t})]})}):l?(0,r.FD)("div",{className:"slider-top-row",dir:g.isRtl?"rtl":void 0,children:[(0,r.Y)("span",{className:"label",dir:"auto",children:l}),!e&&(0,r.Y)("span",{className:"value",dir:"auto",children:v?v(c):c})]}):void 0,(0,r.FD)("div",{className:"slider-main",children:[(0,r.Y)("div",{className:"slider-fill-track",style:`width: ${C}%`}),(0,r.Y)("input",{min:n,max:t,value:c,step:s,type:"range",className:"RangeSlider__input",onChange:b}),e&&(0,r.Y)("div",{className:"slider-options",children:e.map(((e,n)=>(0,r.Y)("div",{className:(0,i.A)("slider-option",n===c&&"active"),onClick:()=>A(n),children:e})))})]})]})}))},91356:(e,n,t)=>{t.d(n,{A:()=>s});var o=t(84051),i=t(52844),a=t(68584);var r=t(20021);const s=(0,o.ph)((({onChange:e,inputRef:n})=>{const[t,s]=(0,o.J0)(),l=(0,o.hb)((n=>{s(void 0),e(n)}),[e]),c=(0,o.hb)((()=>{s(void 0)}),[]),d=(0,o.hb)((()=>{(0,i.p)("image/png, image/jpeg",(e=>{const n=e.target;n?.files?.[0]&&s(n.files[0])}),!0)}),[]);return(0,r.FD)(r.FK,{children:[(0,r.Y)("input",{ref:n,className:"axfkbhWJ",onClick:d}),(0,r.Y)(a.A,{file:t,onClose:c,onChange:l})]})}))},94079:(e,n,t)=>{t.d(n,{A:()=>c});var o=t(84051),i=t(66644),a=t(87357),r=t(17712),s=t(59030),l=t(20021);const c=(0,o.ph)((({ref:e,id:n,className:t,value:c,label:d,error:u,success:h,disabled:m,readOnly:v,placeholder:A,autoComplete:p,inputMode:g,maxLength:b,maxLengthIndicator:f,tabIndex:C,onChange:N,onInput:w,onKeyPress:y,onKeyDown:k,onBlur:Y,onPaste:x,noReplaceNewlines:L})=>{let D=(0,o.li)();e&&(D=e);const E=(0,s.A)(),T=u||h||d,S=(0,a.A)("input-group",c&&"touched",u?"error":h&&"success",m&&"disabled",v&&"disabled",T&&"with-label",t),B=(0,r.A)((e=>{(0,i.RK)((()=>{e.style.height="0",(0,i.gm)((()=>{const n=e.scrollHeight;return()=>{e.style.height=`${n}px`}}))}))}));(0,o.Nf)((()=>{const e=D.current;e&&B(e)}),[]);const F=(0,o.hb)((e=>{const n=e.currentTarget;if(!L){const e=n.selectionEnd;n.value=n.value.replace(/\n/g," "),n.selectionEnd=e}B(n),N?.(e)}),[L,N]);return(0,l.FD)("div",{className:S,dir:E.isRtl?"rtl":void 0,children:[(0,l.Y)("textarea",{ref:D,className:"form-control",id:n,dir:"auto",value:c||"",tabIndex:C,placeholder:A,maxLength:b,autoComplete:p,inputMode:g,disabled:m,readOnly:v,onChange:F,onInput:w,onKeyPress:y,onKeyDown:k,onBlur:Y,onPaste:x,"aria-label":T}),T&&(0,l.Y)("label",{htmlFor:n,children:T}),f&&(0,l.Y)("div",{className:"max-length-indicator",children:f})]})}))},94189:(e,n,t)=>{t.d(n,{A:()=>d});var o=t(84051),i=t(87357),a=t(10328),r=t(59030),s=t(64493),l=t(22337),c=t(20021);const d=(0,o.ph)((({isOpen:e,title:n,noDefaultTitle:t,header:d,text:u,textParts:h,confirmLabel:m="Confirm",confirmIsDestructive:v,isConfirmDisabled:A,isOnlyConfirm:p,areButtonsInColumn:g,className:b,children:f,confirmHandler:C,onClose:N,onCloseAnimationEnd:w})=>{const y=(0,r.A)(),k=(0,o.li)(),Y=(0,o.hb)((e=>{-1===e&&C()}),[C]),x=(0,a.A)(k,e,Y,".Button");return(0,c.FD)(l.A,{className:(0,i.A)("confirm",b),title:n||(t?void 0:y("Telegram")),header:d,isOpen:e,onClose:N,onCloseAnimationEnd:w,children:[u&&u.split("\\n").map((e=>(0,c.Y)("p",{children:e}))),h||f,(0,c.FD)("div",{className:g?"dialog-buttons-column":"dialog-buttons mt-2",ref:k,onKeyDown:x,children:[(0,c.Y)(s.A,{className:"confirm-dialog-button",isText:!0,onClick:C,color:v?"danger":"primary",disabled:A,children:m}),!p&&(0,c.Y)(s.A,{className:"confirm-dialog-button",isText:!0,onClick:N,children:y("Cancel")})]})]})}))}}]);
//# sourceMappingURL=4765.d4e0ace149941c92bc52.js.map