master-components-react 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -28,7 +28,7 @@ Check the top-level render call using <`+Oe+">.")}return we}}function zo(K,we){{
|
|
|
28
28
|
<%s {...props} />
|
|
29
29
|
React keys must be passed directly to JSX without using spread:
|
|
30
30
|
let props = %s;
|
|
31
|
-
<%s key={someKey} {...props} />`,Sf,Va,Zk,Va),Fa[Va+Sf]=!0}}return K===n?Go(fi):Js(fi),fi}}function el(K,we,Oe){return Ma(K,we,Oe,!0)}function Ce(K,we,Oe){return Ma(K,we,Oe,!1)}var et=Ce,_e=el;il.Fragment=n,il.jsx=et,il.jsxs=_e}()),il}process.env.NODE_ENV==="production"?d_.exports=Jk():d_.exports=eB();var D=d_.exports;const tB=({loadingColor:e})=>D.jsxs("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"24px",height:"30px",viewBox:"0 0 24 30",style:{enableBackground:"new 0 0 50 50"},xmlSpace:"preserve",children:[D.jsxs("rect",{x:"0",y:"10",width:"4",height:"10",fill:e??"#ffffff",opacity:"0.2",children:[D.jsx("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0s",dur:"0.6s",repeatCount:"indefinite"})]}),D.jsxs("rect",{x:"8",y:"10",width:"4",height:"10",fill:e??"#ffffff",opacity:"0.2",children:[D.jsx("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"})]}),D.jsxs("rect",{x:"16",y:"10",width:"4",height:"10",fill:e??"#ffffff",opacity:"0.2",children:[D.jsx("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"})]})]}),iB="MainButton-module__mainButton",nB="MainButton-module__loading",rB="MainButton-module__sm",aB="MainButton-module__onlyIcon",oB="MainButton-module__buttonSlot",sB="MainButton-module__buttonLabel",lB="MainButton-module__md",uB="MainButton-module__lg",dB="MainButton-module__xl",cB="MainButton-module__xl2",hB="MainButton-module__disabled",fB="MainButton-module__dark",Qr={mainButton:iB,loading:nB,sm:rB,onlyIcon:aB,buttonSlot:oB,buttonLabel:sB,md:lB,lg:uB,xl:dB,xl2:cB,disabled:hB,dark:fB},cu=({label:e,buttonType:t="button",onClick:i,size:n="md",disabled:r=!1,loading:a,withIcons:o,iconOne:s,iconTwo:l,onlyIcon:u,activeStyle:d,buttonStyle:c,labelStyle:h,buttonSlotStyle:f,withActive:p=!0,theme:g="light"})=>{const[m,y]=fe.useState(!1),x=()=>m?!p||r?{boxShadow:"none",...d}:d??{}:c??{};return D.jsx("button",{type:t,style:x(),className:`${g==="dark"?Qr.dark:""} ${Qr.mainButton} ${u?Qr.onlyIcon:""} ${a?Qr.loading:""} ${n?Qr[n]:""} ${r?Qr.disabled:""}`,onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),onMouseLeave:()=>y(!1),onClick:()=>{!r&&i&&typeof i=="function"&&i()},children:D.jsxs("div",{className:Qr.buttonSlot,style:!r&&f?f:{},children:[u||o&&s?s:"",!u&&D.jsx(D.Fragment,{children:a?D.jsx("div",{style:{display:"grid",placeItems:"center"},children:D.jsx(tB,{})}):D.jsx("span",{style:h??{},className:Qr.buttonLabel,children:e??"Button"})}),o&&l?l:""]})})},pB="FormInput-module__inputWrapper",vB="FormInput-module__inputLabel",_B="FormInput-module__required",gB="FormInput-module__inputContainer",mB="FormInput-module__inputContent",CB="FormInput-module__inputTags",yB="FormInput-module__focused",xB="FormInput-module__error",bB="FormInput-module__rightIcon",SB="FormInput-module__leftIcon",wB="FormInput-module__inputDropDown",EB="FormInput-module__http",IB="FormInput-module__disabled",TB="FormInput-module__sm",AB="FormInput-module__md",DB="FormInput-module__withCopy",OB="FormInput-module__inputHelperText",RB="FormInput-module__dark",pi={inputWrapper:pB,inputLabel:vB,required:_B,inputContainer:gB,inputContent:mB,inputTags:CB,focused:yB,error:xB,rightIcon:bB,leftIcon:SB,inputDropDown:wB,http:EB,disabled:IB,sm:TB,md:AB,withCopy:DB,inputHelperText:OB,dark:RB},Rh=({width:e,height:t,color:i})=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e??"12",height:t??"8",viewBox:"0 0 12 8",fill:"none",children:D.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:i??"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),kB=({width:e,height:t,color:i})=>D.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e??"20",height:t??"20",viewBox:"0 0 20 20",fill:"none",children:[D.jsx("g",{clipPath:"url(#clip0_444_26)",children:D.jsx("path",{d:"M4.1665 12.5C3.38993 12.5 3.00165 12.5 2.69536 12.3732C2.28698 12.204 1.96253 11.8795 1.79337 11.4712C1.6665 11.1649 1.6665 10.7766 1.6665 10V4.33335C1.6665 3.39993 1.6665 2.93322 1.84816 2.5767C2.00795 2.2631 2.26292 2.00813 2.57652 1.84834C2.93304 1.66669 3.39975 1.66669 4.33317 1.66669H9.99984C10.7764 1.66669 11.1647 1.66669 11.471 1.79355C11.8794 1.96271 12.2038 2.28717 12.373 2.69555C12.4998 3.00183 12.4998 3.39012 12.4998 4.16669M10.1665 18.3334H15.6665C16.5999 18.3334 17.0666 18.3334 17.4232 18.1517C17.7368 17.9919 17.9917 17.7369 18.1515 17.4233C18.3332 17.0668 18.3332 16.6001 18.3332 15.6667V10.1667C18.3332 9.23327 18.3332 8.76656 18.1515 8.41004C17.9917 8.09643 17.7368 7.84147 17.4232 7.68168C17.0666 7.50002 16.5999 7.50002 15.6665 7.50002H10.1665C9.23308 7.50002 8.76637 7.50002 8.40985 7.68168C8.09625 7.84147 7.84128 8.09643 7.68149 8.41004C7.49984 8.76656 7.49984 9.23327 7.49984 10.1667V15.6667C7.49984 16.6001 7.49984 17.0668 7.68149 17.4233C7.84128 17.7369 8.09625 17.9919 8.40985 18.1517C8.76637 18.3334 9.23308 18.3334 10.1665 18.3334Z",stroke:i??"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),D.jsx("defs",{children:D.jsx("clipPath",{id:"clip0_444_26",children:D.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),Rs=e=>D.jsx("svg",{xmlns:e.xmlns??"http://www.w3.org/2000/svg",width:e.width??"14",height:e.height??"14",viewBox:e.viewBox??"0 0 14 14",fill:e.fill??"none",children:D.jsx("path",{d:e.d??"M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",stroke:e.stroke??"#A4A7AE",strokeWidth:e.strokeWidth??"1.66667",strokeLinecap:e.strokeLinecap??"round",strokeLinejoin:e.strokeLinejoin??"round"})}),BB="Checkbox-module__checkboxWrapper",LB="Checkbox-module__sm",PB="Checkbox-module__md",FB="Checkbox-module__checkMark",MB="Checkbox-module__checked",VB="Checkbox-module__disabled",NB="Checkbox-module__dark",Ko={checkboxWrapper:BB,sm:LB,md:PB,checkMark:FB,checked:MB,disabled:VB,dark:NB},CI=({color:e,width:t,height:i})=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??"12",height:i??"12",viewBox:"0 0 12 12",fill:"none",children:D.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:e??"white",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})}),yI=e=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,width:"10",height:"2",viewBox:"0 0 10 2",fill:"none",children:D.jsx("path",{d:"M1.5 1H8.5",stroke:"white",strokeWidth:"1.66666",strokeLinecap:"round",strokeLinejoin:"round"})}),Au=({checked:e,change:t,disabled:i=!1,required:n=!1,multipleChecked:r=!1,size:a="md",activeStyle:o,checkBoxStyle:s,withActive:l=!0,theme:u="light"})=>{const d=fe.useRef(null),[c,h]=fe.useState(!1),f=()=>{i||t&&typeof t=="function"&&t(!e)},p=()=>c?!l||i?{boxShadow:"none",...o}:o??{}:s??{};return D.jsxs("div",{style:p(),className:` ${u==="dark"?Ko.dark:""} ${Ko.checkboxWrapper} ${Ko[a]} ${e?Ko.checked:Ko.unChecked} ${i?Ko.disabled:""}`,onMouseDown:()=>h(!0),onMouseUp:()=>h(!1),onMouseLeave:()=>h(!1),onClick:f,children:[D.jsx("input",{ref:d,type:"checkbox",disabled:i,checked:e,hidden:!0,readOnly:!0,required:n??!1}),e?r?D.jsx(yI,{}):D.jsx(CI,{}):""]})},HB="Tag-module__tagContainer",$B="Tag-module__onlyLabel",WB="Tag-module__sm",zB="Tag-module__md",GB="Tag-module__lg",UB="Tag-module__tagLabel",KB="Tag-module__tagNumber",jB="Tag-module__tagClose",qB="Tag-module__dark",Na={tagContainer:HB,onlyLabel:$B,sm:WB,md:zB,lg:GB,tagLabel:UB,tagNumber:KB,tagClose:jB,dark:qB},Mg=({id:e,label:t,icon:i,withClose:n,withCheckbox:r,withNumber:a,number:o,checkboxProps:s,disable:l,size:u,onClose:d,tagContainerStyle:c,tagLabelStyle:h,tagNumberStyle:f,tagCloseStlye:p,theme:g})=>{const m=()=>!r&&!i&&!n&&!a,y=()=>i,x=()=>{d&&typeof d=="function"&&d(e??null)};return D.jsxs("div",{style:c??{},className:`${g==="dark"?Na.dark:""} ${Na.tagContainer} ${m()?Na.onlyLabel:""} ${Na[u??"md"]}`,children:[r&&D.jsx(Au,{...s}),i&&y(),t&&D.jsx("p",{style:h??{},className:Na.tagLabel,children:t??""}),a&&D.jsx("div",{style:f??{},className:Na.tagNumber,children:o??""}),n&&D.jsx("div",{style:p??{},className:Na.tagClose,onClick:x,children:D.jsx(Rs,{width:(p==null?void 0:p.width)??"14",height:(p==null?void 0:p.height)??"14",color:(p==null?void 0:p.color)??"#A4A7AE"})})]})},Cc=({value:e,label:t,placeholder:i,required:n,disabled:r,type:a,size:o,onChange:s,onFouce:l,onBlur:u,msg:d,readOnly:c,maxLength:h,onlyText:f,tagValues:p,onRightIconIconClick:g,onRightIconIconMouseEnter:m,onRightIconIconMouseLeave:y,onLeftIconIconClick:x,onLeftIconIconMouseEnter:T,onLeftIconIconMouseLeave:k,onPressEnter:A,rightIcon:N,leftIcon:F,fixedDropdown:V=!0,withDropDown:U,dropdownData:X,dropDownPosition:ae="left",onSelectData:W,withTags:Z,tagProps:b,withLink:j,withCopy:ne,onCopy:J,inputWrapperStyle:pe,inputLabelStyle:Q,requiredStyle:q,inputContainerStyle:$,leftIconStyle:C,inputDropDownStyle:E,ulStyle:S,liStyle:B,httpStyle:H,inputStyle:G,rightIconStyle:z,withCopyStyle:ee,inputHelperTextStyle:le,theme:ge="light"})=>{const[ue,De]=fe.useState(!1),I=fe.useRef(null),[ie,oe]=fe.useState(!1),[P,L]=fe.useState(!1),Y=fe.useRef(null),ce=fe.useRef(null),[xe,se]=fe.useState(!1),[Ee,Be]=fe.useState(1),Te=We=>{let pt=We.target.value;pt.length===1&&(pt=pt.trim()),s&&typeof s=="function"&&s(f?pt.replace(/\d/g,""):pt)},$e=()=>{oe(!0),l&&typeof l=="function"&&l()},lt=()=>{oe(!1),u&&typeof u=="function"&&u()},Je=We=>{const pt=We.target.value,ui=pt.length===0;a==="number"&&(We.keyCode===69||!ui&&(We.keyCode===187||We.keyCode===107||We.keyCode===189||We.keyCode===109))&&We.preventDefault(),We.key==="Enter"&&pt&&pt.length>0&&A&&typeof A=="function"&&A(pt)},Zt=()=>{J&&typeof J=="function"&&J(e)},dt=We=>We,zt=()=>{let We={};return ne&&(We.borderTopRightRadius=0,We.borderBottomRightRadius=0,We.borderRight=0),U&&(ae==="right"?We.flexDirection="row-reverse":U&&(We.paddingLeft=0)),{...We,...$??{}}},hi=We=>{!We.composedPath().includes(ce.current)&&We.composedPath().includes(Y.current)||se(!1)},st=We=>{Be(We.id),se(!1),W&&typeof W=="function"&&W(We)},ki=()=>{const We=Y.current,pt=ce.current;if(!pt||!We)return;const ui=We.getBoundingClientRect(),Fi=window.innerHeight;V?(pt.style.position="fixed",pt.style.width=ui.width+"px",pt.style.left=`${ui.left*1.4+window.pageXOffset}px`,ui.bottom+pt.offsetHeight>Fi?(pt.style.top=`${window.scrollY+ui.top-pt.offsetHeight}px`,pt.style.bottom="unset"):(pt.style.top=`${window.scrollY+ui.bottom}px`,pt.style.bottom="unset")):ui.bottom>Fi?(pt.style.top="unset",pt.style.bottom="calc(100% + 8px)"):(pt.style.bottom="unset",pt.style.top="calc(100% + 8px)")};fe.useEffect(()=>{ki()},[ce,xe]),fe.useEffect(()=>{e&&e.length===0&&calculateWidth()},[e]),fe.useEffect(()=>(document.addEventListener("click",hi),()=>{document.removeEventListener("click",hi)}),[]);const Vt=fe.useRef(!1);return fe.useEffect(()=>{Vt.current?setTimeout(()=>{De(We=>!We)},0):Vt.current=!0},[]),D.jsxs("div",{className:`${ge==="dark"?pi.dark:""} ${pi.inputWrapper}`,style:pe??{},children:[t&&D.jsxs("label",{className:pi.inputLabel,style:Q??{},children:[t," ",D.jsx("span",{className:pi.required,style:q??{},children:n&&"*"})]}),D.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[D.jsxs("div",{style:zt(),className:`${pi.inputContainer} ${ie&&!c?pi.focused:""} ${r?pi.disabled:""} ${d!=null&&d.error?pi.error:""} ${pi[o??"sm"]}`,children:[!U&&!j&&F&&D.jsx("div",{className:pi.leftIcon,style:C??{},onClick:()=>{x&&typeof x=="function"&&x()},onMouseEnter:()=>{T&&typeof T=="function"&&T()},onMouseLeave:()=>{k&&typeof k=="function"&&k()},children:dt(F)}),!j&&U&&D.jsxs("div",{className:pi.inputDropDown,style:E??{},onClick:()=>se(!0),ref:Y,children:[X.find(We=>We.id===Ee).label,xe&&D.jsx("ul",{ref:ce,style:S??{},children:X&&X.length&&X.map((We,pt)=>D.jsx("li",{style:B??{},onClick:()=>st(We),children:(We==null?void 0:We.label)??"-"},We.id))}),D.jsx(Rh,{})]}),j&&D.jsx("div",{className:`${pi.inputDropDown} ${pi.http}`,style:H??{},onClick:()=>se(!0),ref:Y,children:"http://"}),D.jsxs("div",{className:pi.inputContent,children:[Z&&p&&p.length>0&&D.jsx("div",{className:pi.inputTags,children:p.map((We,pt)=>D.jsx("div",{className:pi.inputSingleTags,children:D.jsx(Mg,{...b,id:We,label:We,withClose:!0})},pt))}),D.jsx("input",{ref:I,style:G??{},type:a??"text",value:e,onChange:We=>Te(We),onFocus:$e,onBlur:lt,disabled:r,required:n,onKeyDown:Je,readOnly:c,spellCheck:!1,placeholder:i??"",autoComplete:"off",maxLength:h})]}),N&&D.jsx("div",{className:pi.rightIcon,style:z??{},onClick:()=>{g&&typeof g=="function"&&g()},onMouseEnter:()=>{m&&typeof m=="function"&&m()},onMouseLeave:()=>{y&&typeof y=="function"&&y()},children:dt(N)})]}),ne&&D.jsxs("div",{style:ee??{},onClick:Zt,className:pi.withCopy,children:[D.jsx(kB,{}),D.jsx("span",{children:"Copy"})]})]}),d&&(d==null?void 0:d.visible)&&D.jsx("div",{style:le??{},className:`${pi.inputHelperText} ${d!=null&&d.error?pi.error:""}`,children:D.jsx("p",{style:(d==null?void 0:d.style)??{},children:d.text})})]})},YB="Textarea-module__textareaContainer",XB="Textarea-module__textAreaLabel",ZB="Textarea-module__required",QB="Textarea-module__wrap",JB="Textarea-module__textarea",eL="Textarea-module__focused",tL="Textarea-module__disabled",iL="Textarea-module__error",nL="Textarea-module__helperTextStyle",rL="Textarea-module__dark",sn={textareaContainer:YB,textAreaLabel:XB,required:ZB,wrap:QB,textarea:JB,focused:eL,disabled:tL,error:iL,helperTextStyle:nL,dark:rL},aL=({placeholder:e,label:t,msg:i,cols:n,rows:r,value:a,maxLength:o,onChange:s,onFocus:l,onBlur:u,disabled:d,required:c,textareaContainerStyle:h,textareaLabelStyle:f,requiredStyle:p,textareaStyle:g,textareaHelperTextStyle:m,labelIcon:y,theme:x})=>{const[T,k]=fe.useState(!1),A=U=>{let X=U.target.value;s&&typeof s=="function"&&s(X)},N=U=>U,F=()=>{k(!0),l&&typeof l=="function"&&l()},V=()=>{k(!1),u&&typeof u=="function"&&u()};return D.jsxs("div",{style:h??{},className:`${x==="dark"?sn.dark:""} ${sn.textareaContainer} ${i!=null&&i.type&&(i!=null&&i.visible)?sn[i==null?void 0:i.type]:""} ${d?sn.disabled:null}`,children:[t&&D.jsxs("div",{style:f,className:sn.textAreaLabel,children:[D.jsx("p",{children:t}),D.jsx("span",{style:p??{},className:sn.required,children:c&&"*"}),y&&N(y)]}),D.jsx("div",{className:sn.wrap,children:D.jsx("textarea",{style:g??{},className:`${sn.textarea} ${T?sn.focused:""} ${d?sn.disabled:""} ${i!=null&&i.error?sn.error:""}`,value:a,placeholder:e??"",cols:n??"30",rows:r??"5",maxLength:o??null,onFocus:F,disabled:d,onBlur:V,onChange:A})}),i&&(i==null?void 0:i.text)&&(i==null?void 0:i.text.length)>0&&D.jsx("div",{style:m??{},className:`${sn.helperTextStyle} ${i!=null&&i.error?sn.error:""}`,children:D.jsx("p",{style:(i==null?void 0:i.style)??{},children:i.text})})]})},oL="Toggle-module__toggleWrapper",sL="Toggle-module__toggleState",lL="Toggle-module__checked",uL="Toggle-module__disabled",dL="Toggle-module__dark",nl={toggleWrapper:oL,toggleState:sL,checked:lL,disabled:uL,dark:dL},cL=({checked:e,change:t,disabled:i=!1,required:n,withActive:r=!0,activeStyle:a,bgStyle:o,checkedBgStyle:s,disabledBgStyle:l,circleStyle:u,checkedCircleStyle:d,disabledCircleStyle:c,theme:h="light"})=>{const[f,p]=fe.useState(!1),g=()=>{!i&&t&&typeof t=="function"&&t(!e)},m=()=>{if(f)return!r||i?{boxShadow:"none",...a}:a??{};if(e){if(s)return s}else if(e){if(i&&l)return l}else if(o)return o;return{}},y=()=>{if(e){if(d)return d}else if(e){if(i&&c)return c}else if(u)return u;return{}};return D.jsx("div",{style:m(),onMouseDown:()=>p(!0),onMouseUp:()=>p(!1),onMouseLeave:()=>p(!1),onClick:g,className:`${h==="dark"?nl.dark:""} ${nl.toggleWrapper} ${e?nl.checked:""} ${i?nl.disabled:""}`,children:D.jsx("div",{style:y(),className:nl.toggleState,children:D.jsx("input",{type:"checkbox",checked:e,readOnly:!0,disabled:i??!1,hidden:!0,required:n??!1})})})},hL="Radio-module__radioWrapper",fL="Radio-module__sm",pL="Radio-module__md",vL="Radio-module__checked",_L="Radio-module__innerCircle",gL="Radio-module__radioState",mL="Radio-module__disabled",CL="Radio-module__dark",Jr={radioWrapper:hL,sm:fL,md:pL,checked:vL,innerCircle:_L,radioState:gL,disabled:mL,dark:CL},xI=({checked:e,change:t,disabled:i,required:n,withUncheckState:r=!1,size:a,radioWrapperStyle:o,radioStateStyle:s,innerCircleStyle:l,theme:u="light"})=>{const[d,c]=fe.useState(!1),h=()=>{t&&typeof t=="function"&&(console.log(e),t(r?!e:!0))};return D.jsxs("div",{className:`${u==="dark"?Jr.dark:""} ${Jr.radioWrapper} ${Jr[a]??Jr.md} ${e?Jr.checked:""} ${i?Jr.disabled:""}`,style:o??{},onClick:h,children:[D.jsx("input",{type:"radio",checked:!0,readOnly:!0,hidden:!0,disabled:i??!1,required:n}),D.jsx("div",{style:s??{},className:Jr.radioState,children:D.jsx("div",{style:l??{},className:Jr.innerCircle})})]})},yL="Dropdown-module__dropdownWrapper",xL="Dropdown-module__placeHolder",bL="Dropdown-module__dropdownLabel",SL="Dropdown-module__required",wL="Dropdown-module__dropdownContainer",EL="Dropdown-module__sm",IL="Dropdown-module__md",TL="Dropdown-module__selectedTags",AL="Dropdown-module__selectedList",DL="Dropdown-module__additional",OL="Dropdown-module__dropdownListContainer",RL="Dropdown-module__dropdownList",kL="Dropdown-module__hidden",BL="Dropdown-module__visible",LL="Dropdown-module__checkIcon",PL="Dropdown-module__disabled",FL="Dropdown-module__selected",ML="Dropdown-module__dropdownListFooter",VL="Dropdown-module__focused",NL="Dropdown-module__error",HL="Dropdown-module__dropdownHelperText",$L="Dropdown-module__dark",ni={dropdownWrapper:yL,placeHolder:xL,dropdownLabel:bL,required:SL,dropdownContainer:wL,sm:EL,md:IL,selectedTags:TL,selectedList:AL,additional:DL,dropdownListContainer:OL,dropdownList:RL,hidden:kL,visible:BL,checkIcon:LL,disabled:PL,selected:FL,dropdownListFooter:ML,focused:VL,error:NL,dropdownHelperText:HL,dark:$L},WL=()=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1.5rem",height:"1.5rem",fill:"none",viewBox:"0 0 20 20",children:D.jsx("path",{stroke:"#10B77F",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M10 18.333c4.584 0 8.334-3.75 8.334-8.334 0-4.583-3.75-8.333-8.334-8.333-4.583 0-8.333 3.75-8.333 8.333 0 4.584 3.75 8.334 8.333 8.334zM6.667 10h6.667M10 13.333V6.666"})}),zL=()=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:D.jsx("path",{d:"M16.5 16.5L13.5834 13.5833M15.6667 8.58333C15.6667 12.4954 12.4954 15.6667 8.58333 15.6667C4.67132 15.6667 1.5 12.4954 1.5 8.58333C1.5 4.67132 4.67132 1.5 8.58333 1.5C12.4954 1.5 15.6667 4.67132 15.6667 8.58333Z",stroke:"#717680",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),c_=({label:e,disabled:t,required:i,size:n="md",placeholder:r,msg:a,readOnly:o,searchValue:s,onClearAll:l,onSelectAll:u,onBottomScroll:d,withSearch:c=!1,withTree:h=!1,defaultCollapsed:f=!0,checkboxProps:p,onCollapse:g,onFocus:m,onBlur:y,withClearAll:x=!0,withSelectAll:T=!0,withPlus:k=!1,searchComponent:A=!1,withFooter:N=!0,data:F,onSelect:V,selectedOptionID:U,withFilter:X=!0,withClose:ae=!0,fixedDropdown:W=!1,onSearch:Z,pagination:b,withMultiSelect:j=!1,skipSelected:ne,labelIcon:J,closeIcon:pe,dropdownIcon:Q,iconDown:q,onLabelIconClick:$,onLabelIconMouseEnter:C,onLabelIconMouseLeave:E,dropdownWrapperStyle:S,dropdownLabelStyle:B,requiredStyle:H,labelIconStyle:G,dropdownContainerStyle:z,placeHolderStyle:ee,selectedTagsStyle:le,selectedListStyle:ge,additionalStyle:ue,additionalSpanStyle:De,dropdownListStyle:I,listStyle:ie,treeProps:oe,theme:P="light"})=>{const[L,Y]=fe.useState(!1),[ce,xe]=fe.useState(!1),[se,Ee]=fe.useState([]),[Be,Te]=fe.useState(""),[$e,lt]=fe.useState(""),[Je,Zt]=fe.useState(null),dt=fe.useRef([]),zt=fe.useRef(null),hi=fe.useRef(null),st=fe.useRef({}),ki=fe.useRef([]),Vt=(_e,K)=>{const we=new Set;return _e.filter(Oe=>we.has(Oe[K])?!1:(we.add(Oe[K]),!0))},We=_e=>{var K;st.current=_e,Te((K=st.current)==null?void 0:K.label),V&&typeof V=="function"&&V(st.current),xe(!1)},pt=_e=>{dt.current=[...dt.current,...F.filter(K=>K.selected==!0),...F.filter(K=>K.id===_e.id)],_e.selected=!_e.selected,dt.current=Vt(dt.current,"id").filter(K=>K.selected),V&&typeof V=="function"&&V(dt.current),A||Te(dt.current.map(K=>K.label).join(", ")),Y(K=>!K)},ui=_e=>{_e.stopPropagation(),dt.current=[],U=null,F&&F.length>0&&F.forEach(K=>K.selected=!1),Fi(""),j?V([]):(st.current={},V({}),Z&&typeof Z=="function"&&Z("")),Te("")},Fi=_e=>{if(Z&&typeof Z=="function"&&Z(_e),j&&c){let K=F,we=K.filter(Oe=>{var qe;return(qe=Oe==null?void 0:Oe.label)==null?void 0:qe.toLowerCase().includes((_e==null?void 0:_e.toLowerCase())||"")});ki.current=(_e==null?void 0:_e.length)>0?we:K,lt(_e),Y(Oe=>!Oe)}else lt(_e),Te(_e)},Wi=()=>{if(U||U===0){let _e=F.filter(K=>Number(K.id)===Number(U));_e&&_e[0]&&(st.current=_e[0],ne?(Z&&typeof Z=="function"&&Z(st.current.label),Te(st.current.label),closeOnSelect&&setCollapsed(K=>!1),withDropdownSearch&&DropdownSearchValue&&SetDropdownSearchValue("")):We(_e[0]))}},[ze,ct]=fe.useState(!1),Qt=_e=>{let K=zt.current.querySelector("ul"),Oe=Math.abs(K.scrollTop+K.clientHeight-K.scrollHeight)<=2;b&&Oe&&!ze&&(d&&typeof d=="function"&&d(!0),ct(!0)),Oe||ct(!1)},gt=()=>{F.forEach(_e=>{_e.selected=!1}),dt.current=[],V([]),Te(""),l&&typeof l=="function"&&l(),Y(_e=>!_e)},Gt=()=>{F.forEach(_e=>{_e!=null&&_e.id&&(_e==null?void 0:_e.id)!==null&&(_e!=null&&_e.label)&&(_e==null?void 0:_e.label)!==""&&(_e==null?void 0:_e.label)!=="-"&&!_e.disabled&&(_e.selected=!0)}),dt.current=F,dt.current=Vt(dt.current,"id").filter(_e=>_e.selected),Te(dt.current.map(_e=>_e.label).join(", ")),u&&typeof u=="function"&&u(),V(dt.current),Y(_e=>!_e)},Xn=fe.useRef(!0);fe.useEffect(()=>{if(Xn.current){Xn.current=!1;return}ce||y&&typeof y=="function"&&y()},[ce]);const zo=()=>{m&&typeof m=="function"&&m()},yr=_e=>_e,Js=_e=>{let K=!0,we=Be;return(X||withDropdownSearch)&&_e&&!_e.toLowerCase().split(" ").join("").trim().includes(we.toLowerCase().split(" ").join("").trim())&&we.trim()!==""&&(K=!1),$e.length>0&&_e==="-"?"hidden":K?"visible":"hidden"},Go=_e=>{_e.composedPath().includes(zt.current)||xe(!1)},Fa=_e=>{if(W){if(_e.composedPath().includes(zt.current))return;xe(!1)}},Ma=()=>{const _e=zt.current,K=hi.current;if(!K||!_e)return;const we=_e.getBoundingClientRect(),Oe=window.innerHeight;W?(K.style.position="fixed",K.style.width=we.width+"px",K.style.left=`${we.left+window.pageXOffset}px`,we.bottom+K.offsetHeight>Oe?(K.style.top=`${window.scrollY+we.top-K.offsetHeight-8}px`,K.style.bottom="unset"):(K.style.top=`${window.scrollY+we.bottom}px`,K.style.bottom="unset")):we.bottom>Oe?(K.style.top="unset",K.style.bottom="calc(100% + 8px)"):(K.style.bottom="unset",K.style.top="calc(100% + 8px)")},el=_e=>{dt.current=_e,V&&typeof V=="function"&&V(_e)},Ce=(_e,K)=>{g&&typeof g=="function"&&g(_e,K)},et=fe.useRef(null);return fe.useEffect(()=>{ce&&et.current&&et.current.focus()},[ce]),fe.useEffect(()=>{j&&(dt.current=F.filter(_e=>_e.selected),Te(F.filter(_e=>_e.selected).map(_e=>_e.label).join(", ")))},[]),fe.useEffect(()=>{A&&s&&s.length>0&<(s),ki.current=F},[]),fe.useEffect(()=>{Ma()},[hi,ce]),fe.useEffect(()=>{j||Wi()},[U]),fe.useEffect(()=>(document.addEventListener("click",Go),document.addEventListener("wheel",Fa),()=>{document.removeEventListener("click",Go),document.removeEventListener("wheel",Fa)}),[]),D.jsxs("div",{className:`${P==="dark"?ni.dark:""} ${ni.dropdownWrapper}`,style:S??{},children:[e&&D.jsxs("label",{className:ni.dropdownLabel,style:B??{},children:[e," ",D.jsx("span",{className:ni.required,style:H??{},children:i&&"*"}),D.jsxs("span",{style:{...G??{},display:"grid",placeItems:"center"},onClick:()=>{$&&typeof $=="function"&&$()},onMouseEnter:()=>{C&&typeof C=="function"&&C()},onMouseLeave:()=>{E&&typeof E=="function"&&E()},children:[" ",yr(J)]})]}),D.jsxs("div",{onFocus:zo,ref:zt,onClick:()=>(xe(_e=>!_e),Ma()),className:`${ni.dropdownContainer} ${ce&&!o?ni.focused:""} ${t?ni.disabled:""} ${a!=null&&a.error?ni.error:""} ${ni[n]}`,style:z??{},children:[A?D.jsxs("div",{children:[" ",D.jsx(zL,{})]}):D.jsx(D.Fragment,{children:Q&&D.jsx("div",{style:{display:"grid",alignItems:"center",marginRight:"0.5rem"},children:yr(Q)})}),!A&&(h||j)&&r&&!ce&&dt.current.length===0&&D.jsx("span",{className:ni.placeHolder,style:ee??{},children:r??""}),(j||h)&&D.jsx("div",{className:ni.selectedTags,style:le??{},children:!A&&!ce?D.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%"},children:[dt.current.slice(0,3).map((_e,K)=>{let we=dt.current[dt.current.length-1];return D.jsxs("span",{className:ni.selectedList,style:ge??{},children:[!k&&_e.label,!k&&_e.id!==we.id&&K!==2?", ":""]},_e==null?void 0:_e.id)}),!k&&dt.current.length>3&&D.jsxs("div",{className:ni.additional,style:ue??{},children:[" ",D.jsxs("span",{style:De??{},children:["+(",dt.current.length-3,")"]})]})]}):D.jsx("input",{ref:et,onClick:_e=>(_e.stopPropagation(),xe(!0)),autoCorrect:"off",placeholder:"Search...",type:"text",...A||c?{value:$e}:{},onChange:_e=>Fi(_e.target.value)},U)}),D.jsx("input",{autoCorrect:"off",hidden:j||h,placeholder:r,readOnly:!X||!ce||j||h,type:"text",value:(j||h)&&!A&&ce?"":Be,onChange:_e=>Fi(_e.target.value)},U),F&&F.length>0&&ce&&D.jsxs("div",{ref:hi,onClick:_e=>_e.stopPropagation(),className:ni.dropdownListContainer,children:[h?D.jsx(Yk,{SearchValue:$e,expandedNodes:se,setExpandedNodes:Ee,checkboxProps:p,onSelect:el,withClearAll:x,withSelectAll:T,SelectedData:dt.current,fromDropdown:!0,onCollapse:Ce,defaultCollapsed:f,data:F,theme:P,treeProps:oe}):D.jsx("ul",{onScroll:_e=>Qt(),onClick:_e=>_e.stopPropagation(),className:ni.dropdownList,style:I??{},children:(j&&X?ki.current:F).map(_e=>{var K,we,Oe,qe;return D.jsxs("li",{style:ie??{},className:`${!j&&c?ni[Js((_e==null?void 0:_e.label)??"-")]:""} ${!(_e!=null&&_e.label)||_e.label===void 0||_e!=null&&_e.disabled?ni.disabled:""} ${(j?_e.selected:(K=st.current)!=null&&K.id&&((we=st.current)==null?void 0:we.id)===_e.id)?ni.selected:""}`,onClick:()=>{j?pt(_e):We(_e)},children:[D.jsxs("p",{children:[" ",_e!=null&&_e.customLabel?_e.customLabel():(_e==null?void 0:_e.label)??"-"]}),k?D.jsx(D.Fragment,{children:_e.selected?D.jsx(yI,{}):D.jsx(WL,{})}):(j?_e.selected:((Oe=st.current)==null?void 0:Oe.id)&&((qe=st.current)==null?void 0:qe.id)===_e.id)&&D.jsx("span",{className:ni.checkIcon,children:D.jsx(CI,{color:"#7F56D9",width:20,height:20})})]},_e==null?void 0:_e.id)})}),j&&N&&D.jsxs("div",{className:ni.dropdownListFooter,children:[x&&D.jsx("span",{onClick:gt,children:"Clear All"}),T&&$e===""&&D.jsx("span",{onClick:Gt,children:"Select All"})]})]}),!j&&!h&&ae&&(dt.current.length>0||Be.length)>0&&D.jsx("div",{onClick:_e=>ui(_e),style:{display:"grid",placeItems:"center",cursor:"pointer"},children:pe?yr(pe):D.jsx(Rs,{width:16,height:16})}),q?yr(q):D.jsx("div",{style:{display:"grid",placeItems:"center",transform:ce?"rotate(180deg)":"",transition:"transform 0.2s ease-in-out",cursor:"pointer",marginLeft:"10px"},children:!A&&D.jsx(Rh,{})})]}),a&&(a==null?void 0:a.visible)&&D.jsx("div",{className:`${ni.dropdownHelperText} ${a!=null&&a.error?ni.error:""}`,children:!ce&&D.jsx("p",{style:(a==null?void 0:a.style)??{},children:a.text})})]})},GL="Tooltip-module__tooltipContainer",UL="Tooltip-module__tooltipContent",KL="Tooltip-module__top",jL="Tooltip-module__right",qL="Tooltip-module__bottom",YL="Tooltip-module__left",XL="Tooltip-module__tooltipTitle",ZL="Tooltip-module__tooltipText",QL="Tooltip-module__dark",Ha={tooltipContainer:GL,tooltipContent:UL,top:KL,right:jL,bottom:qL,left:YL,tooltipTitle:XL,tooltipText:ZL,dark:QL},JL=({children:e,tooltipSlot:t,delay:i,placement:n="top",trigger:r="hover",title:a,text:o,tooltipContentStyle:s,tooltipTitlestyle:l,tooltipTextStyle:u,pointerPosition:d="10%",theme:c})=>{const h=fe.useRef(null),f=fe.useRef(null);let p;const[g,m]=fe.useState(!1),y=()=>{r==="hover"&&(p=setTimeout(()=>{m(!0)},i||400))},x=()=>{r==="hover"&&(clearTimeout(p),setTimeout(()=>{m(!1)},i||400))},T=()=>{r==="click"&&m(N=>!N)},k=()=>{const N=h.current,F=f.current;if(!F||!N)return;const V=N.getBoundingClientRect();switch(F.style.position="fixed",n){case"top":F.style.top=`${V.top-F.offsetHeight-8}px`;break;case"bottom":F.style.top=`${V.bottom+8}px`;break;case"left":F.style.top=`${V.top+V.height/2-F.offsetHeight/2}px`,F.style.left=`${V.left-F.offsetWidth-8}px`;break;case"right":F.style.top=`${V.top+V.height/2-F.offsetHeight/2}px`,F.style.left=`${V.right+8}px`;break}},A=N=>{N.composedPath().includes(h.current)||m(!1)};return fe.useEffect(()=>{k()},[h,g]),fe.useEffect(()=>(document.addEventListener("click",A),()=>{document.removeEventListener("click",A)}),[]),fe.useEffect(()=>{const N=f.current;N&&N.style.setProperty("--pointer-position",`${d}`)},[g]),D.jsxs("div",{ref:h,className:`${c==="dark"?Ha.dark:""} ${Ha.tooltipContainer}`,onClick:T,onMouseEnter:y,onMouseLeave:x,children:[e,g&&t?t():g&&D.jsxs("div",{style:s??{},onClick:N=>N.stopPropagation(),ref:f,className:`${Ha.tooltipContent} ${n?Ha[n]:Ha.bottom}`,children:[a&&a.length>0&&D.jsx("h2",{className:Ha.tooltipTitle,style:l??{},children:a}),o&&o.length>0&&D.jsx("p",{className:Ha.tooltipText,style:u??{},children:o})]})]})},eP="Popup-module__modalOverlay",tP="Popup-module__popupDrawerMode",iP="Popup-module__popupContainer",nP="Popup-module__closeButton",rP="Popup-module__withOptions",aP="Popup-module__horizontal",oP="Popup-module__popupHeader",sP="Popup-module__popupTitle",lP="Popup-module__popupDescription",uP="Popup-module__typeIcon",dP="Popup-module__icon",cP="Popup-module__templateWrapper",hP="Popup-module__dark",ln={modalOverlay:eP,popupDrawerMode:tP,popupContainer:iP,closeButton:nP,withOptions:rP,horizontal:aP,popupHeader:oP,popupTitle:sP,popupDescription:lP,typeIcon:uP,icon:dP,templateWrapper:cP,dark:hP},fP=e=>{const t=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];let i=0,n=parseInt(e,10)||0;for(;n>=1024&&++i;)n=n/1024;return n.toFixed(n<10&&i>0?1:0)+" "+t[i]},pP=e=>e.slice((e.lastIndexOf(".")-1>>>0)+2),vP=e=>new Promise((t,i)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result.split(",")[1]),n.onerror=r=>i(r)});location.href.indexOf(".upgaming.dev")>0||location.href.indexOf(".upgaming.com")>0;const bI=(e,t)=>{const i=new Set;return e.filter(n=>i.has(n[t])?!1:(i.add(n[t]),!0))},_P=()=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:D.jsx("path",{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#079455",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),gP=()=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:D.jsx("path",{d:"M7 3V6.4C7 6.96005 7 7.24008 7.10899 7.45399C7.20487 7.64215 7.35785 7.79513 7.54601 7.89101C7.75992 8 8.03995 8 8.6 8H15.4C15.9601 8 16.2401 8 16.454 7.89101C16.6422 7.79513 16.7951 7.64215 16.891 7.45399C17 7.24008 17 6.96005 17 6.4V4M17 21V14.6C17 14.0399 17 13.7599 16.891 13.546C16.7951 13.3578 16.6422 13.2049 16.454 13.109C16.2401 13 15.9601 13 15.4 13H8.6C8.03995 13 7.75992 13 7.54601 13.109C7.35785 13.2049 7.20487 13.3578 7.10899 13.546C7 13.7599 7 14.0399 7 14.6V21M21 9.32548V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H14.6745C15.1637 3 15.4083 3 15.6385 3.05526C15.8425 3.10425 16.0376 3.18506 16.2166 3.29472C16.4184 3.4184 16.5914 3.59135 16.9373 3.93726L20.0627 7.06274C20.4086 7.40865 20.5816 7.5816 20.7053 7.78343C20.8149 7.96237 20.8957 8.15746 20.9447 8.36154C21 8.59171 21 8.8363 21 9.32548Z",stroke:"#DC6803",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Vg=({width:e,color:t})=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e??"24",height:e??"24",viewBox:"0 0 24 24",fill:"none",children:D.jsx("path",{d:"M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6",stroke:t??"#D92D20",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Ng=({visible:e,template:t,options:i,children:n,onClickOutside:r,onClose:a,widthType:o,modalOverlayStyle:s,popupContainerStyle:l,templateWrapperStyle:u,popupHeaderStyle:d,popupTitleStyle:c,closeButtonStyle:h,theme:f})=>{const p=()=>{if(!(!i||!(i!=null&&i.type)))switch(String(i==null?void 0:i.type)){case"delete":return D.jsx(Vg,{});case"unsaved":return D.jsx(gP,{});case"success":return D.jsx(_P,{})}},g=()=>{a&&typeof a=="function"&&a(!1)},m=fe.useRef(null),y=x=>{x.target===m.current&&r&&typeof r=="function"&&r(!1)};return fe.useEffect(()=>(document.addEventListener("click",y),()=>{document.removeEventListener("click",y)}),[]),e&&D.jsx("div",{ref:m,style:s??{},className:`
|
|
31
|
+
<%s key={someKey} {...props} />`,Sf,Va,Zk,Va),Fa[Va+Sf]=!0}}return K===n?Go(fi):Js(fi),fi}}function el(K,we,Oe){return Ma(K,we,Oe,!0)}function Ce(K,we,Oe){return Ma(K,we,Oe,!1)}var et=Ce,_e=el;il.Fragment=n,il.jsx=et,il.jsxs=_e}()),il}process.env.NODE_ENV==="production"?d_.exports=Jk():d_.exports=eB();var D=d_.exports;const tB=({loadingColor:e})=>D.jsxs("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"24px",height:"30px",viewBox:"0 0 24 30",style:{enableBackground:"new 0 0 50 50"},xmlSpace:"preserve",children:[D.jsxs("rect",{x:"0",y:"10",width:"4",height:"10",fill:e??"#ffffff",opacity:"0.2",children:[D.jsx("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0s",dur:"0.6s",repeatCount:"indefinite"})]}),D.jsxs("rect",{x:"8",y:"10",width:"4",height:"10",fill:e??"#ffffff",opacity:"0.2",children:[D.jsx("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0.15s",dur:"0.6s",repeatCount:"indefinite"})]}),D.jsxs("rect",{x:"16",y:"10",width:"4",height:"10",fill:e??"#ffffff",opacity:"0.2",children:[D.jsx("animate",{attributeName:"opacity",attributeType:"XML",values:"0.2; 1; .2",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"height",attributeType:"XML",values:"10; 20; 10",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"}),D.jsx("animate",{attributeName:"y",attributeType:"XML",values:"10; 5; 10",begin:"0.3s",dur:"0.6s",repeatCount:"indefinite"})]})]}),iB="MainButton-module__mainButton",nB="MainButton-module__loading",rB="MainButton-module__sm",aB="MainButton-module__onlyIcon",oB="MainButton-module__buttonSlot",sB="MainButton-module__buttonLabel",lB="MainButton-module__md",uB="MainButton-module__lg",dB="MainButton-module__xl",cB="MainButton-module__xl2",hB="MainButton-module__disabled",fB="MainButton-module__dark",Qr={mainButton:iB,loading:nB,sm:rB,onlyIcon:aB,buttonSlot:oB,buttonLabel:sB,md:lB,lg:uB,xl:dB,xl2:cB,disabled:hB,dark:fB},cu=({label:e,buttonType:t="button",onClick:i,size:n="md",disabled:r=!1,loading:a,withIcons:o,iconOne:s,iconTwo:l,onlyIcon:u,activeStyle:d,buttonStyle:c,labelStyle:h,buttonSlotStyle:f,withActive:p=!0,theme:g="light"})=>{const[m,y]=fe.useState(!1),x=()=>m?!p||r?{boxShadow:"none",...d}:d??{}:c??{};return D.jsx("button",{type:t,style:x(),className:`${g==="dark"?Qr.dark:""} ${Qr.mainButton} ${u?Qr.onlyIcon:""} ${a?Qr.loading:""} ${n?Qr[n]:""} ${r?Qr.disabled:""}`,onMouseDown:()=>y(!0),onMouseUp:()=>y(!1),onMouseLeave:()=>y(!1),onClick:()=>{!r&&i&&typeof i=="function"&&i()},children:D.jsxs("div",{className:Qr.buttonSlot,style:!r&&f?f:{},children:[u||o&&s?s:"",!u&&D.jsx(D.Fragment,{children:a?D.jsx("div",{style:{display:"grid",placeItems:"center"},children:D.jsx(tB,{})}):D.jsx("span",{style:h??{},className:Qr.buttonLabel,children:e??"Button"})}),o&&l?l:""]})})},pB="FormInput-module__inputWrapper",vB="FormInput-module__inputLabel",_B="FormInput-module__required",gB="FormInput-module__inputContainer",mB="FormInput-module__inputContent",CB="FormInput-module__inputTags",yB="FormInput-module__focused",xB="FormInput-module__error",bB="FormInput-module__rightIcon",SB="FormInput-module__leftIcon",wB="FormInput-module__inputDropDown",EB="FormInput-module__http",IB="FormInput-module__disabled",TB="FormInput-module__sm",AB="FormInput-module__md",DB="FormInput-module__withCopy",OB="FormInput-module__inputHelperText",RB="FormInput-module__dark",pi={inputWrapper:pB,inputLabel:vB,required:_B,inputContainer:gB,inputContent:mB,inputTags:CB,focused:yB,error:xB,rightIcon:bB,leftIcon:SB,inputDropDown:wB,http:EB,disabled:IB,sm:TB,md:AB,withCopy:DB,inputHelperText:OB,dark:RB},Rh=({width:e,height:t,color:i})=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e??"12",height:t??"8",viewBox:"0 0 12 8",fill:"none",children:D.jsx("path",{d:"M1 1.5L6 6.5L11 1.5",stroke:i??"#A4A7AE",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),kB=({width:e,height:t,color:i})=>D.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:e??"20",height:t??"20",viewBox:"0 0 20 20",fill:"none",children:[D.jsx("g",{clipPath:"url(#clip0_444_26)",children:D.jsx("path",{d:"M4.1665 12.5C3.38993 12.5 3.00165 12.5 2.69536 12.3732C2.28698 12.204 1.96253 11.8795 1.79337 11.4712C1.6665 11.1649 1.6665 10.7766 1.6665 10V4.33335C1.6665 3.39993 1.6665 2.93322 1.84816 2.5767C2.00795 2.2631 2.26292 2.00813 2.57652 1.84834C2.93304 1.66669 3.39975 1.66669 4.33317 1.66669H9.99984C10.7764 1.66669 11.1647 1.66669 11.471 1.79355C11.8794 1.96271 12.2038 2.28717 12.373 2.69555C12.4998 3.00183 12.4998 3.39012 12.4998 4.16669M10.1665 18.3334H15.6665C16.5999 18.3334 17.0666 18.3334 17.4232 18.1517C17.7368 17.9919 17.9917 17.7369 18.1515 17.4233C18.3332 17.0668 18.3332 16.6001 18.3332 15.6667V10.1667C18.3332 9.23327 18.3332 8.76656 18.1515 8.41004C17.9917 8.09643 17.7368 7.84147 17.4232 7.68168C17.0666 7.50002 16.5999 7.50002 15.6665 7.50002H10.1665C9.23308 7.50002 8.76637 7.50002 8.40985 7.68168C8.09625 7.84147 7.84128 8.09643 7.68149 8.41004C7.49984 8.76656 7.49984 9.23327 7.49984 10.1667V15.6667C7.49984 16.6001 7.49984 17.0668 7.68149 17.4233C7.84128 17.7369 8.09625 17.9919 8.40985 18.1517C8.76637 18.3334 9.23308 18.3334 10.1665 18.3334Z",stroke:i??"#414651",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),D.jsx("defs",{children:D.jsx("clipPath",{id:"clip0_444_26",children:D.jsx("rect",{width:"20",height:"20",fill:"white"})})})]}),Rs=e=>D.jsx("svg",{xmlns:e.xmlns??"http://www.w3.org/2000/svg",width:e.width??"14",height:e.height??"14",viewBox:e.viewBox??"0 0 14 14",fill:e.fill??"none",children:D.jsx("path",{d:e.d??"M10.5 3.5L3.5 10.5M3.5 3.5L10.5 10.5",stroke:e.stroke??"#A4A7AE",strokeWidth:e.strokeWidth??"1.66667",strokeLinecap:e.strokeLinecap??"round",strokeLinejoin:e.strokeLinejoin??"round"})}),BB="Checkbox-module__checkboxWrapper",LB="Checkbox-module__sm",PB="Checkbox-module__md",FB="Checkbox-module__checkMark",MB="Checkbox-module__checked",VB="Checkbox-module__disabled",NB="Checkbox-module__dark",Ko={checkboxWrapper:BB,sm:LB,md:PB,checkMark:FB,checked:MB,disabled:VB,dark:NB},CI=({color:e,width:t,height:i})=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:t??"12",height:i??"12",viewBox:"0 0 12 12",fill:"none",children:D.jsx("path",{d:"M10 3L4.5 8.5L2 6",stroke:e??"white",strokeWidth:"1.6666",strokeLinecap:"round",strokeLinejoin:"round"})}),yI=e=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",...e,width:"10",height:"2",viewBox:"0 0 10 2",fill:"none",children:D.jsx("path",{d:"M1.5 1H8.5",stroke:"white",strokeWidth:"1.66666",strokeLinecap:"round",strokeLinejoin:"round"})}),Au=({checked:e,change:t,disabled:i=!1,required:n=!1,multipleChecked:r=!1,size:a="md",activeStyle:o,checkBoxStyle:s,withActive:l=!0,theme:u="light"})=>{const d=fe.useRef(null),[c,h]=fe.useState(!1),f=()=>{i||t&&typeof t=="function"&&t(!e)},p=()=>c?!l||i?{boxShadow:"none",...o}:o??{}:s??{};return D.jsxs("div",{style:p(),className:` ${u==="dark"?Ko.dark:""} ${Ko.checkboxWrapper} ${Ko[a]} ${e?Ko.checked:Ko.unChecked} ${i?Ko.disabled:""}`,onMouseDown:()=>h(!0),onMouseUp:()=>h(!1),onMouseLeave:()=>h(!1),onClick:f,children:[D.jsx("input",{ref:d,type:"checkbox",disabled:i,checked:e,hidden:!0,readOnly:!0,required:n??!1}),e?r?D.jsx(yI,{}):D.jsx(CI,{}):""]})},HB="Tag-module__tagContainer",$B="Tag-module__onlyLabel",WB="Tag-module__sm",zB="Tag-module__md",GB="Tag-module__lg",UB="Tag-module__tagLabel",KB="Tag-module__tagNumber",jB="Tag-module__tagClose",qB="Tag-module__dark",Na={tagContainer:HB,onlyLabel:$B,sm:WB,md:zB,lg:GB,tagLabel:UB,tagNumber:KB,tagClose:jB,dark:qB},Mg=({id:e,label:t,icon:i,withClose:n,withCheckbox:r,withNumber:a,number:o,checkboxProps:s,disable:l,size:u,onClose:d,tagContainerStyle:c,tagLabelStyle:h,tagNumberStyle:f,tagCloseStlye:p,theme:g})=>{const m=()=>!r&&!i&&!n&&!a,y=()=>i,x=()=>{d&&typeof d=="function"&&d(e??null)};return D.jsxs("div",{style:c??{},className:`${g==="dark"?Na.dark:""} ${Na.tagContainer} ${m()?Na.onlyLabel:""} ${Na[u??"md"]}`,children:[r&&D.jsx(Au,{...s}),i&&y(),t&&D.jsx("p",{style:h??{},className:Na.tagLabel,children:t??""}),a&&D.jsx("div",{style:f??{},className:Na.tagNumber,children:o??""}),n&&D.jsx("div",{style:p??{},className:Na.tagClose,onClick:x,children:D.jsx(Rs,{width:(p==null?void 0:p.width)??"14",height:(p==null?void 0:p.height)??"14",color:(p==null?void 0:p.color)??"#A4A7AE"})})]})},Cc=({value:e,label:t,placeholder:i,required:n,disabled:r,type:a,size:o,onChange:s,onFocus:l,onBlur:u,msg:d,readOnly:c,maxLength:h,onlyText:f,tagValues:p,onRightIconIconClick:g,onRightIconIconMouseEnter:m,onRightIconIconMouseLeave:y,onLeftIconIconClick:x,onLeftIconIconMouseEnter:T,onLeftIconIconMouseLeave:k,onPressEnter:A,rightIcon:N,leftIcon:F,fixedDropdown:V=!0,withDropDown:U,dropdownData:X,dropDownPosition:ae="left",onSelectData:W,withTags:Z,tagProps:b,withLink:j,withCopy:ne,onCopy:J,inputWrapperStyle:pe,inputLabelStyle:Q,requiredStyle:q,inputContainerStyle:$,leftIconStyle:C,inputDropDownStyle:E,ulStyle:S,liStyle:B,httpStyle:H,inputStyle:G,rightIconStyle:z,withCopyStyle:ee,inputHelperTextStyle:le,theme:ge="light"})=>{const[ue,De]=fe.useState(!1),I=fe.useRef(null),[ie,oe]=fe.useState(!1),[P,L]=fe.useState(!1),Y=fe.useRef(null),ce=fe.useRef(null),[xe,se]=fe.useState(!1),[Ee,Be]=fe.useState(1),Te=We=>{let pt=We.target.value;pt.length===1&&(pt=pt.trim()),s&&typeof s=="function"&&s(f?pt.replace(/\d/g,""):pt)},$e=()=>{oe(!0),l&&typeof l=="function"&&l()},lt=()=>{oe(!1),u&&typeof u=="function"&&u()},Je=We=>{const pt=We.target.value,ui=pt.length===0;a==="number"&&(We.keyCode===69||!ui&&(We.keyCode===187||We.keyCode===107||We.keyCode===189||We.keyCode===109))&&We.preventDefault(),We.key==="Enter"&&pt&&pt.length>0&&A&&typeof A=="function"&&A(pt)},Zt=()=>{J&&typeof J=="function"&&J(e)},dt=We=>We,zt=()=>{let We={};return ne&&(We.borderTopRightRadius=0,We.borderBottomRightRadius=0,We.borderRight=0),U&&(ae==="right"?We.flexDirection="row-reverse":U&&(We.paddingLeft=0)),{...We,...$??{}}},hi=We=>{!We.composedPath().includes(ce.current)&&We.composedPath().includes(Y.current)||se(!1)},st=We=>{Be(We.id),se(!1),W&&typeof W=="function"&&W(We)},ki=()=>{const We=Y.current,pt=ce.current;if(!pt||!We)return;const ui=We.getBoundingClientRect(),Fi=window.innerHeight;V?(pt.style.position="fixed",pt.style.width=ui.width+"px",pt.style.left=`${ui.left*1.4+window.pageXOffset}px`,ui.bottom+pt.offsetHeight>Fi?(pt.style.top=`${window.scrollY+ui.top-pt.offsetHeight}px`,pt.style.bottom="unset"):(pt.style.top=`${window.scrollY+ui.bottom}px`,pt.style.bottom="unset")):ui.bottom>Fi?(pt.style.top="unset",pt.style.bottom="calc(100% + 8px)"):(pt.style.bottom="unset",pt.style.top="calc(100% + 8px)")};fe.useEffect(()=>{ki()},[ce,xe]),fe.useEffect(()=>{e&&e.length===0&&calculateWidth()},[e]),fe.useEffect(()=>(document.addEventListener("click",hi),()=>{document.removeEventListener("click",hi)}),[]);const Vt=fe.useRef(!1);return fe.useEffect(()=>{Vt.current?setTimeout(()=>{De(We=>!We)},0):Vt.current=!0},[]),D.jsxs("div",{className:`${ge==="dark"?pi.dark:""} ${pi.inputWrapper}`,style:pe??{},children:[t&&D.jsxs("label",{className:pi.inputLabel,style:Q??{},children:[t," ",D.jsx("span",{className:pi.required,style:q??{},children:n&&"*"})]}),D.jsxs("div",{style:{display:"flex",alignItems:"center"},children:[D.jsxs("div",{style:zt(),className:`${pi.inputContainer} ${ie&&!c?pi.focused:""} ${r?pi.disabled:""} ${d!=null&&d.error?pi.error:""} ${pi[o??"sm"]}`,children:[!U&&!j&&F&&D.jsx("div",{className:pi.leftIcon,style:C??{},onClick:()=>{x&&typeof x=="function"&&x()},onMouseEnter:()=>{T&&typeof T=="function"&&T()},onMouseLeave:()=>{k&&typeof k=="function"&&k()},children:dt(F)}),!j&&U&&D.jsxs("div",{className:pi.inputDropDown,style:E??{},onClick:()=>se(!0),ref:Y,children:[X.find(We=>We.id===Ee).label,xe&&D.jsx("ul",{ref:ce,style:S??{},children:X&&X.length&&X.map((We,pt)=>D.jsx("li",{style:B??{},onClick:()=>st(We),children:(We==null?void 0:We.label)??"-"},We.id))}),D.jsx(Rh,{})]}),j&&D.jsx("div",{className:`${pi.inputDropDown} ${pi.http}`,style:H??{},onClick:()=>se(!0),ref:Y,children:"http://"}),D.jsxs("div",{className:pi.inputContent,children:[Z&&p&&p.length>0&&D.jsx("div",{className:pi.inputTags,children:p.map((We,pt)=>D.jsx("div",{className:pi.inputSingleTags,children:D.jsx(Mg,{...b,id:We,label:We,withClose:!0})},pt))}),D.jsx("input",{ref:I,style:G??{},type:a??"text",value:e,onChange:We=>Te(We),onFocus:$e,onBlur:lt,disabled:r,required:n,onKeyDown:Je,readOnly:c,spellCheck:!1,placeholder:i??"",autoComplete:"off",maxLength:h})]}),N&&D.jsx("div",{className:pi.rightIcon,style:z??{},onClick:()=>{g&&typeof g=="function"&&g()},onMouseEnter:()=>{m&&typeof m=="function"&&m()},onMouseLeave:()=>{y&&typeof y=="function"&&y()},children:dt(N)})]}),ne&&D.jsxs("div",{style:ee??{},onClick:Zt,className:pi.withCopy,children:[D.jsx(kB,{}),D.jsx("span",{children:"Copy"})]})]}),d&&(d==null?void 0:d.visible)&&D.jsx("div",{style:le??{},className:`${pi.inputHelperText} ${d!=null&&d.error?pi.error:""}`,children:D.jsx("p",{style:(d==null?void 0:d.style)??{},children:d.text})})]})},YB="Textarea-module__textareaContainer",XB="Textarea-module__textAreaLabel",ZB="Textarea-module__required",QB="Textarea-module__wrap",JB="Textarea-module__textarea",eL="Textarea-module__focused",tL="Textarea-module__disabled",iL="Textarea-module__error",nL="Textarea-module__helperTextStyle",rL="Textarea-module__dark",sn={textareaContainer:YB,textAreaLabel:XB,required:ZB,wrap:QB,textarea:JB,focused:eL,disabled:tL,error:iL,helperTextStyle:nL,dark:rL},aL=({placeholder:e,label:t,msg:i,cols:n,rows:r,value:a,maxLength:o,onChange:s,onFocus:l,onBlur:u,disabled:d,required:c,textareaContainerStyle:h,textareaLabelStyle:f,requiredStyle:p,textareaStyle:g,textareaHelperTextStyle:m,labelIcon:y,theme:x})=>{const[T,k]=fe.useState(!1),A=U=>{let X=U.target.value;s&&typeof s=="function"&&s(X)},N=U=>U,F=()=>{k(!0),l&&typeof l=="function"&&l()},V=()=>{k(!1),u&&typeof u=="function"&&u()};return D.jsxs("div",{style:h??{},className:`${x==="dark"?sn.dark:""} ${sn.textareaContainer} ${i!=null&&i.type&&(i!=null&&i.visible)?sn[i==null?void 0:i.type]:""} ${d?sn.disabled:null}`,children:[t&&D.jsxs("div",{style:f,className:sn.textAreaLabel,children:[D.jsx("p",{children:t}),D.jsx("span",{style:p??{},className:sn.required,children:c&&"*"}),y&&N(y)]}),D.jsx("div",{className:sn.wrap,children:D.jsx("textarea",{style:g??{},className:`${sn.textarea} ${T?sn.focused:""} ${d?sn.disabled:""} ${i!=null&&i.error?sn.error:""}`,value:a,placeholder:e??"",cols:n??"30",rows:r??"5",maxLength:o??null,onFocus:F,disabled:d,onBlur:V,onChange:A})}),i&&(i==null?void 0:i.text)&&(i==null?void 0:i.text.length)>0&&D.jsx("div",{style:m??{},className:`${sn.helperTextStyle} ${i!=null&&i.error?sn.error:""}`,children:D.jsx("p",{style:(i==null?void 0:i.style)??{},children:i.text})})]})},oL="Toggle-module__toggleWrapper",sL="Toggle-module__toggleState",lL="Toggle-module__checked",uL="Toggle-module__disabled",dL="Toggle-module__dark",nl={toggleWrapper:oL,toggleState:sL,checked:lL,disabled:uL,dark:dL},cL=({checked:e,change:t,disabled:i=!1,required:n,withActive:r=!0,activeStyle:a,bgStyle:o,checkedBgStyle:s,disabledBgStyle:l,circleStyle:u,checkedCircleStyle:d,disabledCircleStyle:c,theme:h="light"})=>{const[f,p]=fe.useState(!1),g=()=>{!i&&t&&typeof t=="function"&&t(!e)},m=()=>{if(f)return!r||i?{boxShadow:"none",...a}:a??{};if(e){if(s)return s}else if(e){if(i&&l)return l}else if(o)return o;return{}},y=()=>{if(e){if(d)return d}else if(e){if(i&&c)return c}else if(u)return u;return{}};return D.jsx("div",{style:m(),onMouseDown:()=>p(!0),onMouseUp:()=>p(!1),onMouseLeave:()=>p(!1),onClick:g,className:`${h==="dark"?nl.dark:""} ${nl.toggleWrapper} ${e?nl.checked:""} ${i?nl.disabled:""}`,children:D.jsx("div",{style:y(),className:nl.toggleState,children:D.jsx("input",{type:"checkbox",checked:e,readOnly:!0,disabled:i??!1,hidden:!0,required:n??!1})})})},hL="Radio-module__radioWrapper",fL="Radio-module__sm",pL="Radio-module__md",vL="Radio-module__checked",_L="Radio-module__innerCircle",gL="Radio-module__radioState",mL="Radio-module__disabled",CL="Radio-module__dark",Jr={radioWrapper:hL,sm:fL,md:pL,checked:vL,innerCircle:_L,radioState:gL,disabled:mL,dark:CL},xI=({checked:e,change:t,disabled:i,required:n,withUncheckState:r=!1,size:a,radioWrapperStyle:o,radioStateStyle:s,innerCircleStyle:l,theme:u="light"})=>{const[d,c]=fe.useState(!1),h=()=>{t&&typeof t=="function"&&(console.log(e),t(r?!e:!0))};return D.jsxs("div",{className:`${u==="dark"?Jr.dark:""} ${Jr.radioWrapper} ${Jr[a]??Jr.md} ${e?Jr.checked:""} ${i?Jr.disabled:""}`,style:o??{},onClick:h,children:[D.jsx("input",{type:"radio",checked:!0,readOnly:!0,hidden:!0,disabled:i??!1,required:n}),D.jsx("div",{style:s??{},className:Jr.radioState,children:D.jsx("div",{style:l??{},className:Jr.innerCircle})})]})},yL="Dropdown-module__dropdownWrapper",xL="Dropdown-module__placeHolder",bL="Dropdown-module__dropdownLabel",SL="Dropdown-module__required",wL="Dropdown-module__dropdownContainer",EL="Dropdown-module__sm",IL="Dropdown-module__md",TL="Dropdown-module__selectedTags",AL="Dropdown-module__selectedList",DL="Dropdown-module__additional",OL="Dropdown-module__dropdownListContainer",RL="Dropdown-module__dropdownList",kL="Dropdown-module__hidden",BL="Dropdown-module__visible",LL="Dropdown-module__checkIcon",PL="Dropdown-module__disabled",FL="Dropdown-module__selected",ML="Dropdown-module__dropdownListFooter",VL="Dropdown-module__focused",NL="Dropdown-module__error",HL="Dropdown-module__dropdownHelperText",$L="Dropdown-module__dark",ni={dropdownWrapper:yL,placeHolder:xL,dropdownLabel:bL,required:SL,dropdownContainer:wL,sm:EL,md:IL,selectedTags:TL,selectedList:AL,additional:DL,dropdownListContainer:OL,dropdownList:RL,hidden:kL,visible:BL,checkIcon:LL,disabled:PL,selected:FL,dropdownListFooter:ML,focused:VL,error:NL,dropdownHelperText:HL,dark:$L},WL=()=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1.5rem",height:"1.5rem",fill:"none",viewBox:"0 0 20 20",children:D.jsx("path",{stroke:"#10B77F",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M10 18.333c4.584 0 8.334-3.75 8.334-8.334 0-4.583-3.75-8.333-8.334-8.333-4.583 0-8.333 3.75-8.333 8.333 0 4.584 3.75 8.334 8.333 8.334zM6.667 10h6.667M10 13.333V6.666"})}),zL=()=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:D.jsx("path",{d:"M16.5 16.5L13.5834 13.5833M15.6667 8.58333C15.6667 12.4954 12.4954 15.6667 8.58333 15.6667C4.67132 15.6667 1.5 12.4954 1.5 8.58333C1.5 4.67132 4.67132 1.5 8.58333 1.5C12.4954 1.5 15.6667 4.67132 15.6667 8.58333Z",stroke:"#717680",strokeWidth:"1.66667",strokeLinecap:"round",strokeLinejoin:"round"})}),c_=({label:e,disabled:t,required:i,size:n="md",placeholder:r,msg:a,readOnly:o,searchValue:s,onClearAll:l,onSelectAll:u,onBottomScroll:d,withSearch:c=!1,withTree:h=!1,defaultCollapsed:f=!0,checkboxProps:p,onCollapse:g,onFocus:m,onBlur:y,withClearAll:x=!0,withSelectAll:T=!0,withPlus:k=!1,searchComponent:A=!1,withFooter:N=!0,data:F,onSelect:V,selectedOptionID:U,withFilter:X=!0,withClose:ae=!0,fixedDropdown:W=!1,onSearch:Z,pagination:b,withMultiSelect:j=!1,skipSelected:ne,labelIcon:J,closeIcon:pe,dropdownIcon:Q,iconDown:q,onLabelIconClick:$,onLabelIconMouseEnter:C,onLabelIconMouseLeave:E,dropdownWrapperStyle:S,dropdownLabelStyle:B,requiredStyle:H,labelIconStyle:G,dropdownContainerStyle:z,placeHolderStyle:ee,selectedTagsStyle:le,selectedListStyle:ge,additionalStyle:ue,additionalSpanStyle:De,dropdownListStyle:I,listStyle:ie,treeProps:oe,theme:P="light"})=>{const[L,Y]=fe.useState(!1),[ce,xe]=fe.useState(!1),[se,Ee]=fe.useState([]),[Be,Te]=fe.useState(""),[$e,lt]=fe.useState(""),[Je,Zt]=fe.useState(null),dt=fe.useRef([]),zt=fe.useRef(null),hi=fe.useRef(null),st=fe.useRef({}),ki=fe.useRef([]),Vt=(_e,K)=>{const we=new Set;return _e.filter(Oe=>we.has(Oe[K])?!1:(we.add(Oe[K]),!0))},We=_e=>{var K;st.current=_e,Te((K=st.current)==null?void 0:K.label),V&&typeof V=="function"&&V(st.current),xe(!1)},pt=_e=>{dt.current=[...dt.current,...F.filter(K=>K.selected==!0),...F.filter(K=>K.id===_e.id)],_e.selected=!_e.selected,dt.current=Vt(dt.current,"id").filter(K=>K.selected),V&&typeof V=="function"&&V(dt.current),A||Te(dt.current.map(K=>K.label).join(", ")),Y(K=>!K)},ui=_e=>{_e.stopPropagation(),dt.current=[],U=null,F&&F.length>0&&F.forEach(K=>K.selected=!1),Fi(""),j?V([]):(st.current={},V({}),Z&&typeof Z=="function"&&Z("")),Te("")},Fi=_e=>{if(Z&&typeof Z=="function"&&Z(_e),j&&c){let K=F,we=K.filter(Oe=>{var qe;return(qe=Oe==null?void 0:Oe.label)==null?void 0:qe.toLowerCase().includes((_e==null?void 0:_e.toLowerCase())||"")});ki.current=(_e==null?void 0:_e.length)>0?we:K,lt(_e),Y(Oe=>!Oe)}else lt(_e),Te(_e)},Wi=()=>{if(U||U===0){let _e=F.filter(K=>Number(K.id)===Number(U));_e&&_e[0]&&(st.current=_e[0],ne?(Z&&typeof Z=="function"&&Z(st.current.label),Te(st.current.label),closeOnSelect&&setCollapsed(K=>!1),withDropdownSearch&&DropdownSearchValue&&SetDropdownSearchValue("")):We(_e[0]))}},[ze,ct]=fe.useState(!1),Qt=_e=>{let K=zt.current.querySelector("ul"),Oe=Math.abs(K.scrollTop+K.clientHeight-K.scrollHeight)<=2;b&&Oe&&!ze&&(d&&typeof d=="function"&&d(!0),ct(!0)),Oe||ct(!1)},gt=()=>{F.forEach(_e=>{_e.selected=!1}),dt.current=[],V([]),Te(""),l&&typeof l=="function"&&l(),Y(_e=>!_e)},Gt=()=>{F.forEach(_e=>{_e!=null&&_e.id&&(_e==null?void 0:_e.id)!==null&&(_e!=null&&_e.label)&&(_e==null?void 0:_e.label)!==""&&(_e==null?void 0:_e.label)!=="-"&&!_e.disabled&&(_e.selected=!0)}),dt.current=F,dt.current=Vt(dt.current,"id").filter(_e=>_e.selected),Te(dt.current.map(_e=>_e.label).join(", ")),u&&typeof u=="function"&&u(),V(dt.current),Y(_e=>!_e)},Xn=fe.useRef(!0);fe.useEffect(()=>{if(Xn.current){Xn.current=!1;return}ce||y&&typeof y=="function"&&y()},[ce]);const zo=()=>{m&&typeof m=="function"&&m()},yr=_e=>_e,Js=_e=>{let K=!0,we=Be;return(X||withDropdownSearch)&&_e&&!_e.toLowerCase().split(" ").join("").trim().includes(we.toLowerCase().split(" ").join("").trim())&&we.trim()!==""&&(K=!1),$e.length>0&&_e==="-"?"hidden":K?"visible":"hidden"},Go=_e=>{_e.composedPath().includes(zt.current)||xe(!1)},Fa=_e=>{if(W){if(_e.composedPath().includes(zt.current))return;xe(!1)}},Ma=()=>{const _e=zt.current,K=hi.current;if(!K||!_e)return;const we=_e.getBoundingClientRect(),Oe=window.innerHeight;W?(K.style.position="fixed",K.style.width=we.width+"px",K.style.left=`${we.left+window.pageXOffset}px`,we.bottom+K.offsetHeight>Oe?(K.style.top=`${window.scrollY+we.top-K.offsetHeight-8}px`,K.style.bottom="unset"):(K.style.top=`${window.scrollY+we.bottom}px`,K.style.bottom="unset")):we.bottom>Oe?(K.style.top="unset",K.style.bottom="calc(100% + 8px)"):(K.style.bottom="unset",K.style.top="calc(100% + 8px)")},el=_e=>{dt.current=_e,V&&typeof V=="function"&&V(_e)},Ce=(_e,K)=>{g&&typeof g=="function"&&g(_e,K)},et=fe.useRef(null);return fe.useEffect(()=>{ce&&et.current&&et.current.focus()},[ce]),fe.useEffect(()=>{j&&(dt.current=F.filter(_e=>_e.selected),Te(F.filter(_e=>_e.selected).map(_e=>_e.label).join(", ")))},[]),fe.useEffect(()=>{A&&s&&s.length>0&<(s),ki.current=F},[]),fe.useEffect(()=>{Ma()},[hi,ce]),fe.useEffect(()=>{j||Wi()},[U]),fe.useEffect(()=>(document.addEventListener("click",Go),document.addEventListener("wheel",Fa),()=>{document.removeEventListener("click",Go),document.removeEventListener("wheel",Fa)}),[]),D.jsxs("div",{className:`${P==="dark"?ni.dark:""} ${ni.dropdownWrapper}`,style:S??{},children:[e&&D.jsxs("label",{className:ni.dropdownLabel,style:B??{},children:[e," ",D.jsx("span",{className:ni.required,style:H??{},children:i&&"*"}),D.jsxs("span",{style:{...G??{},display:"grid",placeItems:"center"},onClick:()=>{$&&typeof $=="function"&&$()},onMouseEnter:()=>{C&&typeof C=="function"&&C()},onMouseLeave:()=>{E&&typeof E=="function"&&E()},children:[" ",yr(J)]})]}),D.jsxs("div",{onFocus:zo,ref:zt,onClick:()=>(xe(_e=>!_e),Ma()),className:`${ni.dropdownContainer} ${ce&&!o?ni.focused:""} ${t?ni.disabled:""} ${a!=null&&a.error?ni.error:""} ${ni[n]}`,style:z??{},children:[A?D.jsxs("div",{children:[" ",D.jsx(zL,{})]}):D.jsx(D.Fragment,{children:Q&&D.jsx("div",{style:{display:"grid",alignItems:"center",marginRight:"0.5rem"},children:yr(Q)})}),!A&&(h||j)&&r&&!ce&&dt.current.length===0&&D.jsx("span",{className:ni.placeHolder,style:ee??{},children:r??""}),(j||h)&&D.jsx("div",{className:ni.selectedTags,style:le??{},children:!A&&!ce?D.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%"},children:[dt.current.slice(0,3).map((_e,K)=>{let we=dt.current[dt.current.length-1];return D.jsxs("span",{className:ni.selectedList,style:ge??{},children:[!k&&_e.label,!k&&_e.id!==we.id&&K!==2?", ":""]},_e==null?void 0:_e.id)}),!k&&dt.current.length>3&&D.jsxs("div",{className:ni.additional,style:ue??{},children:[" ",D.jsxs("span",{style:De??{},children:["+(",dt.current.length-3,")"]})]})]}):D.jsx("input",{ref:et,onClick:_e=>(_e.stopPropagation(),xe(!0)),autoCorrect:"off",placeholder:"Search...",type:"text",...A||c?{value:$e}:{},onChange:_e=>Fi(_e.target.value)},U)}),D.jsx("input",{autoCorrect:"off",hidden:j||h,placeholder:r,readOnly:!X||!ce||j||h,type:"text",value:(j||h)&&!A&&ce?"":Be,onChange:_e=>Fi(_e.target.value)},U),F&&F.length>0&&ce&&D.jsxs("div",{ref:hi,onClick:_e=>_e.stopPropagation(),className:ni.dropdownListContainer,children:[h?D.jsx(Yk,{SearchValue:$e,expandedNodes:se,setExpandedNodes:Ee,checkboxProps:p,onSelect:el,withClearAll:x,withSelectAll:T,SelectedData:dt.current,fromDropdown:!0,onCollapse:Ce,defaultCollapsed:f,data:F,theme:P,treeProps:oe}):D.jsx("ul",{onScroll:_e=>Qt(),onClick:_e=>_e.stopPropagation(),className:ni.dropdownList,style:I??{},children:(j&&X?ki.current:F).map(_e=>{var K,we,Oe,qe;return D.jsxs("li",{style:ie??{},className:`${!j&&c?ni[Js((_e==null?void 0:_e.label)??"-")]:""} ${!(_e!=null&&_e.label)||_e.label===void 0||_e!=null&&_e.disabled?ni.disabled:""} ${(j?_e.selected:(K=st.current)!=null&&K.id&&((we=st.current)==null?void 0:we.id)===_e.id)?ni.selected:""}`,onClick:()=>{j?pt(_e):We(_e)},children:[D.jsxs("p",{children:[" ",_e!=null&&_e.customLabel?_e.customLabel():(_e==null?void 0:_e.label)??"-"]}),k?D.jsx(D.Fragment,{children:_e.selected?D.jsx(yI,{}):D.jsx(WL,{})}):(j?_e.selected:((Oe=st.current)==null?void 0:Oe.id)&&((qe=st.current)==null?void 0:qe.id)===_e.id)&&D.jsx("span",{className:ni.checkIcon,children:D.jsx(CI,{color:"#7F56D9",width:20,height:20})})]},_e==null?void 0:_e.id)})}),j&&N&&D.jsxs("div",{className:ni.dropdownListFooter,children:[x&&D.jsx("span",{onClick:gt,children:"Clear All"}),T&&$e===""&&D.jsx("span",{onClick:Gt,children:"Select All"})]})]}),!j&&!h&&ae&&(dt.current.length>0||Be.length)>0&&D.jsx("div",{onClick:_e=>ui(_e),style:{display:"grid",placeItems:"center",cursor:"pointer"},children:pe?yr(pe):D.jsx(Rs,{width:16,height:16})}),q?yr(q):D.jsx("div",{style:{display:"grid",placeItems:"center",transform:ce?"rotate(180deg)":"",transition:"transform 0.2s ease-in-out",cursor:"pointer",marginLeft:"10px"},children:!A&&D.jsx(Rh,{})})]}),a&&(a==null?void 0:a.visible)&&D.jsx("div",{className:`${ni.dropdownHelperText} ${a!=null&&a.error?ni.error:""}`,children:!ce&&D.jsx("p",{style:(a==null?void 0:a.style)??{},children:a.text})})]})},GL="Tooltip-module__tooltipContainer",UL="Tooltip-module__tooltipContent",KL="Tooltip-module__top",jL="Tooltip-module__right",qL="Tooltip-module__bottom",YL="Tooltip-module__left",XL="Tooltip-module__tooltipTitle",ZL="Tooltip-module__tooltipText",QL="Tooltip-module__dark",Ha={tooltipContainer:GL,tooltipContent:UL,top:KL,right:jL,bottom:qL,left:YL,tooltipTitle:XL,tooltipText:ZL,dark:QL},JL=({children:e,tooltipSlot:t,delay:i,placement:n="top",trigger:r="hover",title:a,text:o,tooltipContentStyle:s,tooltipTitlestyle:l,tooltipTextStyle:u,pointerPosition:d="10%",theme:c})=>{const h=fe.useRef(null),f=fe.useRef(null);let p;const[g,m]=fe.useState(!1),y=()=>{r==="hover"&&(p=setTimeout(()=>{m(!0)},i||400))},x=()=>{r==="hover"&&(clearTimeout(p),setTimeout(()=>{m(!1)},i||400))},T=()=>{r==="click"&&m(N=>!N)},k=()=>{const N=h.current,F=f.current;if(!F||!N)return;const V=N.getBoundingClientRect();switch(F.style.position="fixed",n){case"top":F.style.top=`${V.top-F.offsetHeight-8}px`;break;case"bottom":F.style.top=`${V.bottom+8}px`;break;case"left":F.style.top=`${V.top+V.height/2-F.offsetHeight/2}px`,F.style.left=`${V.left-F.offsetWidth-8}px`;break;case"right":F.style.top=`${V.top+V.height/2-F.offsetHeight/2}px`,F.style.left=`${V.right+8}px`;break}},A=N=>{N.composedPath().includes(h.current)||m(!1)};return fe.useEffect(()=>{k()},[h,g]),fe.useEffect(()=>(document.addEventListener("click",A),()=>{document.removeEventListener("click",A)}),[]),fe.useEffect(()=>{const N=f.current;N&&N.style.setProperty("--pointer-position",`${d}`)},[g]),D.jsxs("div",{ref:h,className:`${c==="dark"?Ha.dark:""} ${Ha.tooltipContainer}`,onClick:T,onMouseEnter:y,onMouseLeave:x,children:[e,g&&t?t():g&&D.jsxs("div",{style:s??{},onClick:N=>N.stopPropagation(),ref:f,className:`${Ha.tooltipContent} ${n?Ha[n]:Ha.bottom}`,children:[a&&a.length>0&&D.jsx("h2",{className:Ha.tooltipTitle,style:l??{},children:a}),o&&o.length>0&&D.jsx("p",{className:Ha.tooltipText,style:u??{},children:o})]})]})},eP="Popup-module__modalOverlay",tP="Popup-module__popupDrawerMode",iP="Popup-module__popupContainer",nP="Popup-module__closeButton",rP="Popup-module__withOptions",aP="Popup-module__horizontal",oP="Popup-module__popupHeader",sP="Popup-module__popupTitle",lP="Popup-module__popupDescription",uP="Popup-module__typeIcon",dP="Popup-module__icon",cP="Popup-module__templateWrapper",hP="Popup-module__dark",ln={modalOverlay:eP,popupDrawerMode:tP,popupContainer:iP,closeButton:nP,withOptions:rP,horizontal:aP,popupHeader:oP,popupTitle:sP,popupDescription:lP,typeIcon:uP,icon:dP,templateWrapper:cP,dark:hP},fP=e=>{const t=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"];let i=0,n=parseInt(e,10)||0;for(;n>=1024&&++i;)n=n/1024;return n.toFixed(n<10&&i>0?1:0)+" "+t[i]},pP=e=>e.slice((e.lastIndexOf(".")-1>>>0)+2),vP=e=>new Promise((t,i)=>{const n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result.split(",")[1]),n.onerror=r=>i(r)});location.href.indexOf(".upgaming.dev")>0||location.href.indexOf(".upgaming.com")>0;const bI=(e,t)=>{const i=new Set;return e.filter(n=>i.has(n[t])?!1:(i.add(n[t]),!0))},_P=()=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:D.jsx("path",{d:"M7.5 12L10.5 15L16.5 9M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z",stroke:"#079455",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),gP=()=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:D.jsx("path",{d:"M7 3V6.4C7 6.96005 7 7.24008 7.10899 7.45399C7.20487 7.64215 7.35785 7.79513 7.54601 7.89101C7.75992 8 8.03995 8 8.6 8H15.4C15.9601 8 16.2401 8 16.454 7.89101C16.6422 7.79513 16.7951 7.64215 16.891 7.45399C17 7.24008 17 6.96005 17 6.4V4M17 21V14.6C17 14.0399 17 13.7599 16.891 13.546C16.7951 13.3578 16.6422 13.2049 16.454 13.109C16.2401 13 15.9601 13 15.4 13H8.6C8.03995 13 7.75992 13 7.54601 13.109C7.35785 13.2049 7.20487 13.3578 7.10899 13.546C7 13.7599 7 14.0399 7 14.6V21M21 9.32548V16.2C21 17.8802 21 18.7202 20.673 19.362C20.3854 19.9265 19.9265 20.3854 19.362 20.673C18.7202 21 17.8802 21 16.2 21H7.8C6.11984 21 5.27976 21 4.63803 20.673C4.07354 20.3854 3.6146 19.9265 3.32698 19.362C3 18.7202 3 17.8802 3 16.2V7.8C3 6.11984 3 5.27976 3.32698 4.63803C3.6146 4.07354 4.07354 3.6146 4.63803 3.32698C5.27976 3 6.11984 3 7.8 3H14.6745C15.1637 3 15.4083 3 15.6385 3.05526C15.8425 3.10425 16.0376 3.18506 16.2166 3.29472C16.4184 3.4184 16.5914 3.59135 16.9373 3.93726L20.0627 7.06274C20.4086 7.40865 20.5816 7.5816 20.7053 7.78343C20.8149 7.96237 20.8957 8.15746 20.9447 8.36154C21 8.59171 21 8.8363 21 9.32548Z",stroke:"#DC6803",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Vg=({width:e,color:t})=>D.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:e??"24",height:e??"24",viewBox:"0 0 24 24",fill:"none",children:D.jsx("path",{d:"M16 6V5.2C16 4.0799 16 3.51984 15.782 3.09202C15.5903 2.71569 15.2843 2.40973 14.908 2.21799C14.4802 2 13.9201 2 12.8 2H11.2C10.0799 2 9.51984 2 9.09202 2.21799C8.71569 2.40973 8.40973 2.71569 8.21799 3.09202C8 3.51984 8 4.0799 8 5.2V6M10 11.5V16.5M14 11.5V16.5M3 6H21M19 6V17.2C19 18.8802 19 19.7202 18.673 20.362C18.3854 20.9265 17.9265 21.3854 17.362 21.673C16.7202 22 15.8802 22 14.2 22H9.8C8.11984 22 7.27976 22 6.63803 21.673C6.07354 21.3854 5.6146 20.9265 5.32698 20.362C5 19.7202 5 18.8802 5 17.2V6",stroke:t??"#D92D20",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),Ng=({visible:e,template:t,options:i,children:n,onClickOutside:r,onClose:a,widthType:o,modalOverlayStyle:s,popupContainerStyle:l,templateWrapperStyle:u,popupHeaderStyle:d,popupTitleStyle:c,closeButtonStyle:h,theme:f})=>{const p=()=>{if(!(!i||!(i!=null&&i.type)))switch(String(i==null?void 0:i.type)){case"delete":return D.jsx(Vg,{});case"unsaved":return D.jsx(gP,{});case"success":return D.jsx(_P,{})}},g=()=>{a&&typeof a=="function"&&a(!1)},m=fe.useRef(null),y=x=>{x.target===m.current&&r&&typeof r=="function"&&r(!1)};return fe.useEffect(()=>(document.addEventListener("click",y),()=>{document.removeEventListener("click",y)}),[]),e&&D.jsx("div",{ref:m,style:s??{},className:`
|
|
32
32
|
${f==="dark"?ln.dark:""}
|
|
33
33
|
${ln.modalOverlay}
|
|
34
34
|
${i&&(i==null?void 0:i.mode)==="drawer"?ln.popupDrawerMode:""}
|