@sorocraft/ui
Advanced tools
Comparing version 1.0.72 to 1.0.73
@@ -1,2 +0,2 @@ | ||
import{jsx as e,jsxs as n,Fragment as i}from"react/jsx-runtime";import{useState as o,Fragment as l,forwardRef as t,useEffect as d,useRef as a,useCallback as _}from"react";import r from"react-dom";var s={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi"};const c=(e,n,i=[])=>{let o=[];for(const i in n)n[i]&&o.push(e[i]);return(null==i?void 0:i.length)>0&&(o=o.concat(i)),o.join(" ")};var m={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",dark:"SVGIcon-module_dark__4QbUi",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr"};const u=({icon:n,size:i="sm",className:o="",isLoading:l=!1,theme:t="light"})=>{const d=(e=>{switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}})(i);return n?e("div",{className:c(m,{container:!0,isLoading:l},[o,m[t]]),children:e(n,{className:o,width:d,height:d,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},h=i=>n("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},i,{children:[e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})),g=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})})),f=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),p=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})})),v=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6"})})),x=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})})),I=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796"})})),A=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})})),k=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})})),b=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),L=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})})),D=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),C=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),N=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"})})),w=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),y=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),B=n=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),S=({source:i=null,alt:o="avatar",size:l="sm",onClick:t,className:d,isEditable:a=!1,overlayIcon:_,inline:r=!1,isLoading:m=!1,overlayText:g})=>{const f=()=>{switch(l){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return n("div",{className:c(s,{avatar:!0,clickable:!!t||a,editable:a,inline:r,loading:m},[s[l],d]),onClick:t,style:{width:f(),height:f()},children:[i?e("img",{src:i,alt:o,className:s.image,width:f(),height:f()}):e(u,{size:l,icon:B}),a&&e("div",{className:s.editIcon,children:e(u,{isLoading:m,icon:m?y:h})}),(!!_||g)&&n("div",{className:s.overlay,children:[!!_&&e(u,{isLoading:m,icon:m?y:_}),!!g&&e("div",{className:s.overlayText,children:g})]})]})};var W,O={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.DANGER="danger",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e.LIGHT="light",e.DEFAULT="default",e.DARK="dark",e.LIGHT_PRIMARY="lightPrimary",e.LIGHT_SUCCESS="lightSuccess",e.LIGHT_WARNING="lightWarning",e.LIGHT_INFO="lightInfo",e.LIGHT_DANGER="lightDanger",e.LIGHT_DARK="lightDark",e.LIGHT_SECONDARY="lightSecondary",e.WHITE_TEXT="whiteText",e.BORDERED_PRIMARY="borderedPrimary",e.BORDERED_SECONDARY="borderedSecondary"}(W||(W={}));const T=({type:i=W.PRIMARY,onClick:t,label:d,icon:a,fullWidth:_=!1,isLoading:r,disabled:s,className:m,needConfirm:h=!1,size:g="md"})=>{const[f,p]=o(!1);return n("div",{className:c(O,{container:!0,fullWidth:_}),children:[e("button",{className:c(O,{button:!0,loading:!!r},[O[i],O[g],m]),onClick:h?()=>p(!f):t,disabled:r||s,children:r?e(l,{children:"Loading..."}):n("div",{className:O.label,children:[a&&e(u,{icon:a}),e("span",{children:d})]})}),f&&n("div",{className:O.confirm,children:[e("div",{className:O.confirmMessage,children:"Are you sure?"}),n("div",{className:O.confirmActions,children:[e(T,{type:W.DANGER,onClick:()=>p(!1),label:"No",size:"xs"}),e(T,{type:W.SUCCESS,onClick:()=>{p(!1),t()},label:"Yes",size:"xs"})]})]})]})};var P={iconButton:"IconButton-module_iconButton__PmpB8",noPadding:"IconButton-module_noPadding__Jd2rK",lg:"IconButton-module_lg__KG7lp",md:"IconButton-module_md__s4q7b",sm:"IconButton-module_sm__are9s",xs:"IconButton-module_xs__qYwZc",confirm:"IconButton-module_confirm__-jXH4",confirmMessage:"IconButton-module_confirmMessage__AgI49",confirmActions:"IconButton-module_confirmActions__j7-Tt",topLeft:"IconButton-module_topLeft__aDA0m",bottom:"IconButton-module_bottom__AEpND",isDisabled:"IconButton-module_isDisabled__aGo-9",white:"IconButton-module_white__AzyNN",light:"IconButton-module_light__i3AET",active:"IconButton-module_active__popsF",lightDark:"IconButton-module_lightDark__d7NQy",lightDanger:"IconButton-module_lightDanger__bIg02",lightInfo:"IconButton-module_lightInfo__820It",lightPrimary:"IconButton-module_lightPrimary__SCrg-",lightSecondary:"IconButton-module_lightSecondary__vN-aS",lightWarning:"IconButton-module_lightWarning__z1iaR",lightSuccess:"IconButton-module_lightSuccess__mUSnD",primary:"IconButton-module_primary__qjfR5",secondary:"IconButton-module_secondary__-CufX",danger:"IconButton-module_danger__lz3tP",dark:"IconButton-module_dark__QiBJk",info:"IconButton-module_info__eawU-",success:"IconButton-module_success__xkDzZ",warning:"IconButton-module_warning__DhbfD",whiteText:"IconButton-module_whiteText__111Ju",default:"IconButton-module_default__j2U57",borderedPrimary:"IconButton-module_borderedPrimary__DHXJQ",borderedSecondary:"IconButton-module_borderedSecondary__13GNA",flexWide:"IconButton-module_flexWide__BGOfY",slidein:"IconButton-module_slidein__Rmpl5",fadeInOut:"IconButton-module_fadeInOut__Z2E5a",heightAnimation:"IconButton-module_heightAnimation__JnqnZ",fadein:"IconButton-module_fadein__uX9ut",floatAnimation:"IconButton-module_floatAnimation__N-INw"},M={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW"};const E=({hint:i,children:o,position:l="top"})=>n("div",{className:M.tooltip,children:[!!i&&e("div",{className:`${M.hint} ${M[l]}`,children:e("span",{children:i})}),o]}),H=({icon:l,onClick:t,type:d=W.DEFAULT,needConfirm:a=!1,noPadding:_=!1,isLoading:r=!1,size:s="sm",confirmPosition:m="top",isActive:h=!1,isDisabled:g=!1,confirmMessage:f,yesTitle:p,noTitle:v,tooltip:x})=>{const[I,A]=o(!1),k=g||r?void 0:t;return e((({children:n})=>x?e(E,{hint:x,children:n}):e(i,{children:n})),{children:n("div",{className:c(P,{iconButton:!0,noPadding:_,active:h,isDisabled:g},[P[d],P[s]]),onClick:a?()=>A(!I):k,children:[e(u,{isLoading:r,icon:l,size:s}),I&&e((()=>n("div",{className:`${P.confirm} ${P[m]}`,children:[e("div",{className:P.confirmMessage,children:f||"Are you sure?"}),n("div",{className:P.confirmActions,children:[e(T,{type:W.DANGER,onClick:()=>A(!1),label:v||"No",size:"xs"}),e(T,{type:W.SUCCESS,onClick:k,label:p||"Yes",size:"xs"})]})]})),{})]})})};var j={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy"};const R=({title:i,subtitle:o,actionTitle:l="",action:t,completed:d,indicator:a,hasSeparator:_=!1,hasDashedSeparator:r=!1,isActionPending:s=!1})=>n("div",{className:c(j,{listItem:!0,separator:_,dashedSeparator:r}),children:[n("div",{className:j.content,children:[a&&e("div",{className:c(j,{indicator:!0},[j[a]])}),n("div",{className:j.data,children:[e("div",{className:j.title,children:i}),o&&e("div",{className:j.subtitle,children:o})]})]}),t&&e(T,{onClick:t,className:j.action,label:l,isLoading:s}),d&&e("div",{className:j.completed,children:e(u,{icon:g})})]});var z={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",sm:"Link-module_sm__FcTWO",md:"Link-module_md__mmLj-",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"};const F=({href:i,title:o,target:l="_self",type:t=W.DEFAULT,padding:d="zero",hasChevron:a=!1,fullWidth:_=!1})=>n("a",{href:i,target:l,rel:"noopener noreferrer",className:c(z,{link:!0,fullWidth:_},[z[t],z[d]]),children:[e("span",{children:o})," ",a&&e(u,{icon:f})]});"function"==typeof SuppressedError&&SuppressedError;var G={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",prefix:"Input-module_prefix__-1end",addon:"Input-module_addon__1cKdz",pointer:"Input-module_pointer__EsKoB",error:"Input-module_error__38tit",avatar:"Input-module_avatar__GJUWC",autoCompleteContent:"Input-module_autoCompleteContent__4anQc",reversed:"Input-module_reversed__dU1hV",transparent:"Input-module_transparent__ko36m",small:"Input-module_small__5vYiK",xsmall:"Input-module_xsmall__-9hXW",hasPrefix:"Input-module_hasPrefix__fU508",hasAddon:"Input-module_hasAddon__mruPW",darkMode:"Input-module_darkMode__DLx4Y",flexWide:"Input-module_flexWide__4Wn1k",slidein:"Input-module_slidein__XYim1",fadeInOut:"Input-module_fadeInOut__bnAwc",heightAnimation:"Input-module_heightAnimation__tmt9Z",fadein:"Input-module_fadein__1HtqV",floatAnimation:"Input-module_floatAnimation__sYawG"};const U=(e,n)=>{const i=new FileReader;i.onload=()=>{n(i.result)},i.readAsDataURL(e)};var Y;!function(e){e.TEXT="text",e.PASSWORD="password",e.EMAIL="email",e.NUMBER="number",e.URL="url",e.TEL="tel",e.DATE="date",e.DATETIME="datetime",e.SELECT="select",e.COLOR_PICKER="color-picker",e.TEXT_AREA="text-area",e.AVATAR_UPLOAD="avatar-upload",e.UPLOAD_IMAGE_ICON="upload-image-icon",e.DND="dnd",e.CHECKBOX="checkbox"}(Y||(Y={}));const V=({isLoading:o,value:l,isDisabled:t,placeholder:d,options:a,name:_,onBlur:r,onFocus:s,onChange:c,preIcon:m,addonIcon:h,addonAction:g})=>n(i,{children:[m&&e("div",{className:G.preIcon,children:e(u,{icon:m,isLoading:o})}),n("select",{className:G.field,value:l,onBlur:r,onFocus:s,onChange:c,name:_,disabled:t,children:[d&&e("option",{value:"",children:d}),a.map((({label:n,value:i})=>e("option",{value:i,children:n},i)))]}),h&&e("div",{className:g?`${G.addon} ${G.pointer}`:G.addon,onClick:g,children:e(u,{icon:h,isLoading:o})})]});var X={container:"DnD-module_container__zFojN",dropZone:"DnD-module_dropZone__OJnfw",placeholder:"DnD-module_placeholder__Fkhl4",dropLabel:"DnD-module_dropLabel__TDGan",input:"DnD-module_input__FKtwE",selectedImage:"DnD-module_selectedImage__DsvPl",removeImage:"DnD-module_removeImage__zMc3L",rectangle:"DnD-module_rectangle__cnjIE",square:"DnD-module_square__mc3tn",circle:"DnD-module_circle__kXFaZ",isDragOver:"DnD-module_isDragOver__vfTwp",flexWide:"DnD-module_flexWide__sqZP0",slidein:"DnD-module_slidein__bPiSA",fadeInOut:"DnD-module_fadeInOut__QCEYD",heightAnimation:"DnD-module_heightAnimation__OGSUd",fadein:"DnD-module_fadein__eyNza",floatAnimation:"DnD-module_floatAnimation__PwKWB"};const Z=({value:i,placeholder:l,isMultiUpload:t,dndShape:d="rectangle",isDisabled:a,className:_,onFilesSelect:r,onFileSelect:s})=>{const[m,u]=o(!1),h=e=>{if(e&&e.length>0){if(t&&r)return r(e);const n=e[0];U(n,(e=>{s&&s(n,e)}))}};return e("div",{className:c(X,{container:!0,isDragOver:m}),children:e("div",{onDrop:e=>{if(e.preventDefault(),a)return;const n=e.dataTransfer.files;h(n)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:c(X,{dropZone:!0},[X[d],_]),children:i?n("div",{className:X.selectedImage,children:[e("img",{src:String(i),alt:l}),e("div",{className:X.removeImage,children:e(H,{onClick:()=>{s&&s(null,"")},icon:p,type:W.BORDERED_PRIMARY})})]}):n("label",{className:X.dropLabel,children:[e("span",{className:X.placeholder,children:l||"Drop file"}),e("input",{type:"file",className:X.input,hidden:!0,onChange:e=>{const n=e.target;h(n.files)},disabled:a})]})})})};var q={container:"TextArea-module_container__uff42",field:"TextArea-module_field__kapQk",hasPrefix:"TextArea-module_hasPrefix__flVwo",prefix:"TextArea-module_prefix__vGIaC",flexWide:"TextArea-module_flexWide__staBL",slidein:"TextArea-module_slidein__-OBuL",fadeInOut:"TextArea-module_fadeInOut__aNBV4",heightAnimation:"TextArea-module_heightAnimation__mZG0q",fadein:"TextArea-module_fadein__30AAW",floatAnimation:"TextArea-module_floatAnimation__x6a8y"};const K=({value:i,placeholder:o,autoFocus:l,ref:t,isDisabled:d,prefix:a,rows:_=3,onBlur:r,onFocus:s,onChange:m})=>n("div",{className:c(q,{container:!0,hasPrefix:!!a}),children:[!!a&&e("div",{className:q.prefix,children:e("span",{children:a})}),e("textarea",{className:q.field,value:i,placeholder:o,onBlur:r,onFocus:s,onChange:m,autoFocus:l,ref:t,disabled:d,rows:_})]});var J={};const Q=()=>e("div",{className:J.container,children:"CHECKBOX"}),$=t((function(i,o){var{type:t=Y.TEXT,label:d,placeholder:a,value:_,required:r=!1,addonIcon:s,preIcon:m,addonText:h,labelAddon:g,errorMessage:f,options:p=[],fullWidth:v,avatarSize:I,source:A,autoCompleteContent:k,autoCompleteReverse:b=!1,noMargin:L=!1,isDisabled:D=!1,isLoading:C=!1,isMultiUpload:N=!1,autoFocus:w=!1,theme:y="oval",size:B="medium",isDarkMode:W=!1,dndShape:O,name:T,prefix:P,rows:M,className:E,onBlur:H,onFocus:j,onChange:R,addonAction:z,onEnter:F,onEsc:X,onFileSelect:q,onFilesSelect:J}=i,$=function(e,n){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)n.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(i[o[l]]=e[o[l]])}return i}(i,["type","label","placeholder","value","required","addonIcon","preIcon","addonText","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","dndShape","name","prefix","rows","className","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const ee=D||C,ne=e=>{switch(e.key){case"Enter":F&&F();break;case"Escape":X&&X()}},ie=e=>{const n=e.target.files[0];U(n,(e=>{q&&q(n,e)}))},oe=e=>{const n=e.target;J&&J(n.files)};return n("div",{className:c(G,{input:!0,full:!!v,noMargin:L,hasAddon:!!s||!!h,hasPrefix:!!P,darkMode:W},[G[y],G[B]]),children:[d&&n("label",{children:[e("span",{className:r?G.required:"",children:d}),!!g&&e("div",{className:G.labelAddon,children:g})]}),e("div",{className:G.container,children:(()=>{switch(t){case Y.SELECT:return e(V,{preIcon:m,isLoading:C,value:_,isDisabled:D,placeholder:a,options:p,onBlur:H,onFocus:j,onChange:R,addonAction:z,addonIcon:s,name:T});case Y.DND:return e(Z,{onFilesSelect:J,onFileSelect:q,placeholder:a,value:_,dndShape:O,isDisabled:D,isMultiUpload:N,className:E});case Y.COLOR_PICKER:return e("input",Object.assign({className:`${G.field} ${G.colorPicker}`,type:"color",value:_,placeholder:a,onBlur:H,onFocus:j,onChange:R,disabled:ee,ref:o},$));case Y.TEXT_AREA:return e(K,{value:_,placeholder:a,onBlur:H,onFocus:j,onChange:R,autoFocus:w,ref:o,prefix:P,rows:M});case Y.AVATAR_UPLOAD:return n("label",{htmlFor:"avatar-upload",children:[e(S,{size:I,source:A,isLoading:C,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:N?oe:ie,ref:o,className:G.avatar,disabled:ee,multiple:N})]});case Y.UPLOAD_IMAGE_ICON:return n("label",{htmlFor:"upload-image-icon",children:[e(u,{icon:x,isLoading:C,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:N?oe:ie,ref:o,className:G.avatar,disabled:ee,multiple:N})]});case Y.CHECKBOX:return e(Q,{});default:return n(l,{children:[!!P&&e("div",{className:G.prefix,children:e("span",{children:P})}),e("input",Object.assign({className:G.field,type:t,placeholder:a,value:_,onBlur:H,onFocus:j,onChange:R,onKeyUp:ne,ref:o,disabled:ee,autoFocus:w,name:T},$)),s&&e("div",{className:z?`${G.addon} ${G.pointer}`:G.addon,onClick:z,children:e(u,{icon:s,isLoading:C})}),h&&e("div",{className:z?`${G.addon} ${G.pointer}`:G.addon,onClick:z,children:h})]})}})()}),!!f&&e("div",{className:G.error,children:f}),!!k&&e("div",{className:c(G,{autoCompleteContent:!0,reversed:b}),children:k})]})}));var ee={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5"};const ne=(e,n)=>{const i=i=>{e.current&&!e.current.contains(i.target)&&n()};d((()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)})),[])},ie=e=>{const n=a(null),i=_((i=>{n.current&&!n.current.contains(i.target)&&e()}),[e]);return d((()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)})),[i]),n},oe=({containerRef:n,contentRef:i,isOpen:l=!1,renderChild:t,onClose:a})=>{const _={isOpen:!1,top:0,left:0,bottom:0,right:0},[s,c]=o(_),m={position:"absolute",top:s.top,left:s.left,bottom:s.bottom,right:s.right,zIndex:111},u=()=>{c(_),a()};return ne(n,(()=>u())),d((()=>{if(l)return(()=>{var e,o,l,t,d,a,_;const{top:r,left:s,height:m,width:u}=null!==(l=null===(o=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==l?l:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:g}=window,f=h-(r+m),p=r,v=s,x=g-(s+u),I=null!==(d=null===(t=null==i?void 0:i.current)||void 0===t?void 0:t.clientHeight)&&void 0!==d?d:200,A=null!==(_=null===(a=null==i?void 0:i.current)||void 0===a?void 0:a.clientWidth)&&void 0!==_?_:200;let k="auto",b="auto",L="auto",D="auto";f<I&&p>=I?D=h-r-m+20:b=r+m+5,x<A&&v>=A?L=g-s:k=s;const C={top:b,left:k,right:L,bottom:D};c(Object.assign(Object.assign({},C),{isOpen:!0}))})();u()}),[l,null==n?void 0:n.current]),s.isOpen?r.createPortal(e("div",{style:m,onClick:e=>{e.stopPropagation()},children:t(s)}),document.getElementById("portals")):null},le=({children:n})=>e("div",{className:ee.menu,children:n}),te=({action:i,menu:l,type:t=W.DEFAULT,closeRef:_,actionSize:r="medium"})=>{const s=a(null),m=a(null),u=a(null),[h,g]=o(!1),f=()=>g(!1);return d((()=>{(null==_?void 0:_.current)&&(_.current={close:()=>f()})}),[_]),n("div",{className:ee.container,ref:s,children:[e("div",{className:c(ee,{action:!0},[ee[t],ee[r]]),ref:u,onClick:()=>g(!h),children:i}),e(oe,{containerRef:s,contentRef:m,isOpen:h,onClose:f,renderChild:()=>e("div",{className:ee.menuContainer,ref:m,children:e(le,{children:l})})})]})};var de={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"};const ae=({shape:n="square",size:i="md",width:o,height:l})=>e("div",{className:c(de,{container:!0},[de[n],de[i]]),style:{width:o,height:l}});var _e={container:"Accordion-module_container__6rGl0",header:"Accordion-module_header__AYOT5",body:"Accordion-module_body__4IgEa",content:"Accordion-module_content__RyBzl",isOpen:"Accordion-module_isOpen__Bmf-c",flexWide:"Accordion-module_flexWide__Pmyu-",slidein:"Accordion-module_slidein__NIsrY",fadeInOut:"Accordion-module_fadeInOut__Ub-rg",heightAnimation:"Accordion-module_heightAnimation__nT1oQ",fadein:"Accordion-module_fadein__KprHu",floatAnimation:"Accordion-module_floatAnimation__d-fsP"};const re=({title:i,content:l})=>{const[t,d]=o(!1);return n("div",{className:c(_e,{container:!0,isOpen:t}),onClick:()=>d(!t),children:[n("div",{className:_e.header,children:[e("h3",{children:i}),e(u,{icon:t?D:C,size:"md"})]}),e("div",{className:_e.body,children:e("div",{className:_e.content,children:l})})]})};var se={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",fullWidth:"Card-module_fullWidth__HpLSP",fullHeight:"Card-module_fullHeight__Ngt-E",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu"},ce={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm"};const me=({size:i="md",title:o,subtitle:l})=>n("div",{className:ce.heading,children:[e("div",{className:`${ce.title} ${ce[i]}`,children:o}),l&&e("div",{className:ce.subtitle,children:l})]}),ue=({title:i,subtitle:o,children:l,toolbar:t,footer:d,separated:a=!1,borderTopWidth:_,borderTopColor:r,noBottomMargin:s=!1,noBodyPadding:m=!1,fullHeight:u=!1,fullWidth:h=!1})=>{const g=_?`${_}px solid ${r}`:"none";return n("div",{className:c(se,{card:!0,separated:a,noBottomMargin:s,noBodyPadding:m,fullHeight:u,fullWidth:h}),style:Object.assign({},_&&{borderTop:g}),children:[(t||i)&&n("div",{className:se.header,children:[n("div",{className:se.headerInfo,children:[i&&e("div",{className:se.headerTitle,children:e(me,{size:"sm",title:i})}),o&&e("div",{className:se.headerSubtitle,children:o})]}),t&&e("div",{className:se.headerToolbar,children:t})]}),e("div",{className:se.body,children:l}),d&&e("div",{className:se.footer,children:d})]})};var he={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP"};const ge=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var fe;!function(e){e.SEEN="seen"}(fe||(fe={}));const pe=({appName:i})=>{const[l,t]=o(!1);return d((()=>{const e=ge.getCookieBannerState();t(e!==fe.SEEN)}),[]),l?n("div",{className:he.container,children:[n("div",{className:he.content,children:["As ",i,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e("div",{className:he.actions,children:e(T,{label:"Continue",onClick:()=>{t(!1),ge.saveCookieBannerState(fe.SEEN)}})})]}):null};var ve={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",fullWidth:"Container-module_fullWidth__BIlSl",flexWide:"Container-module_flexWide__UYxLw",slidein:"Container-module_slidein__2HqKN",fadeInOut:"Container-module_fadeInOut__OfzxZ",heightAnimation:"Container-module_heightAnimation__UR715",fadein:"Container-module_fadein__9rDYD",floatAnimation:"Container-module_floatAnimation__6Lcjo"};const xe=({className:n="",children:i,noPadding:o=!1,fullWidth:l=!1})=>e("div",{className:c(ve,{container:!0,noPadding:o,fullWidth:l},[n]),children:i});var Ie="Header-module_header__qxHtx",Ae="Header-module_content__DV-in",ke="Header-module_logo__xO2bW",be="Header-module_mobileLogo__eNvSP",Le="Header-module_actions__ZlACk",De="Header-module_mobileMenuIcon__pFpba",Ce="Header-module_menu__Yw9r6",Ne="Header-module_mobileMenu__4S-NE";const we=({logo:i,menu:l,actions:t=null})=>{const[d,a]=o(!1);return n("header",{className:Ie,children:[e(xe,{children:n("div",{className:Ae,children:[e("a",{href:"/",className:ke,children:i}),e("a",{href:"/",className:be,children:i}),!!l&&e("div",{className:Ce,children:l}),n("div",{className:Le,children:[t,!!l&&e("div",{className:De,children:e(H,{icon:d?p:b,onClick:()=>a(!d),size:"lg"})})]})]})}),d&&e("div",{className:Ne,children:l})]})};var ye={container:"Section-module_container__3n1V-",header:"Section-module_header__uP6hi",subtitle:"Section-module_subtitle__8Y9SH",gradient:"Section-module_gradient__xroL-",black:"Section-module_black__xbyiN",dark:"Section-module_dark__5IiQW",flexWide:"Section-module_flexWide__jFoW4",slidein:"Section-module_slidein__gRGLr",fadeInOut:"Section-module_fadeInOut__yLFY5",heightAnimation:"Section-module_heightAnimation__7ap3B",fadein:"Section-module_fadein__Jbv0F",floatAnimation:"Section-module_floatAnimation__g2TfT"};const Be=({title:i,subtitle:o,theme:l="light",children:t,className:d})=>n("div",{className:c(ye,{container:!0},[ye[l],d]),children:[n("div",{className:ye.header,children:[e("h2",{children:i}),!!o&&e("div",{className:ye.subtitle,children:o})]}),e("div",{className:ye.body,children:t})]});var Se="FAQ-module_container__Kht11";const We=({items:n,title:i})=>e(Be,{title:i||"Frequently asked questions",children:e("div",{className:Se,children:n.map((({title:n,content:i})=>e(re,{title:n,content:i},n)))})});var Oe={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"};const Te=({domain:i,socialLinks:o,address:l,reportLabel:t,writeUsLabel:d,followUsLabel:a,addressLabel:_})=>n("div",{className:Oe.container,children:[n("div",{className:Oe.contact,children:[e("div",{className:Oe.icon,children:e(u,{icon:L,size:"xl"})}),n("div",{className:Oe.content,children:[e("div",{className:Oe.title,children:t||"Report"}),e("div",{className:Oe.value,children:n("a",{href:`mailto:feedback@${i}`,children:["feedback@",i]})})]})]}),n("div",{className:Oe.contact,children:[e("div",{className:Oe.icon,children:e(u,{icon:A,size:"xl"})}),n("div",{className:Oe.content,children:[e("div",{className:Oe.title,children:d||"Write us"}),e("div",{className:Oe.value,children:n("a",{href:`mailto:contact@${i}`,children:["contact@",i]})})]})]}),n("div",{className:Oe.contact,children:[e("div",{className:Oe.icon,children:e(u,{icon:w,size:"xl"})}),n("div",{className:Oe.content,children:[e("div",{className:Oe.title,children:a||"Follow us"}),e("div",{className:Oe.value,children:e("ul",{children:o.map((({url:n,icon:i})=>e("li",{children:e("a",{href:n,target:"_blank",children:e(u,{icon:i,size:"md"})})},n)))})})]})]}),n("div",{className:Oe.contact,children:[e("div",{className:Oe.icon,children:e(u,{icon:k,size:"xl"})}),n("div",{className:Oe.content,children:[e("div",{className:Oe.title,children:_||"Address"}),e("div",{className:Oe.value,children:l})]})]})]});var Pe={description:"Description-module_description__ENVu-",xl:"Description-module_xl__GtUSA",lg:"Description-module_lg__ENF-W",m:"Description-module_m__RqjBl",s:"Description-module_s__RAro3",xs:"Description-module_xs__0chE0",noSpacing:"Description-module_noSpacing__746UN",lighter:"Description-module_lighter__y-rC3",flexWide:"Description-module_flexWide__CEoWm",slidein:"Description-module_slidein__ZJBnB",fadeInOut:"Description-module_fadeInOut__ZdTzP",heightAnimation:"Description-module_heightAnimation__v2n3a",fadein:"Description-module_fadein__bPsva",floatAnimation:"Description-module_floatAnimation__Cq8oz"};const Me=({size:n="m",text:i,noSpacing:o=!1,className:l="",lighter:t=!1})=>e("div",{className:c(Pe,{description:!0,noSpacing:o,lighter:t},[Pe[n],l]),children:i});var Ee={alert:"AlertBox-module_alert__y9n9e",inline:"AlertBox-module_inline__upbhQ",error:"AlertBox-module_error__anhZO",success:"AlertBox-module_success__80DOT",icon:"AlertBox-module_icon__FLy1Y",actions:"AlertBox-module_actions__fgPt7","supeer-icon-button":"AlertBox-module_supeer-icon-button__8oUJ8",message:"AlertBox-module_message__ssD6S",flexWide:"AlertBox-module_flexWide__isTSZ",slidein:"AlertBox-module_slidein__BNFh5",fadeInOut:"AlertBox-module_fadeInOut__DW6jj",heightAnimation:"AlertBox-module_heightAnimation__AMoVU",fadein:"AlertBox-module_fadein__5wonR",floatAnimation:"AlertBox-module_floatAnimation__rXaKh"};const He=({message:i,onClear:o,onReload:l,type:t,inline:d=!1})=>n("div",{className:c(Ee,{alert:!0,inline:d},[Ee[t]]),children:[e("div",{className:Ee.icon,children:e(u,{icon:v,size:"md",theme:"dark"})}),e("div",{className:Ee.message,children:i}),n("div",{className:Ee.actions,children:[l&&e(H,{icon:N,onClick:l,type:W.WHITE_TEXT}),e(H,{icon:p,onClick:o,type:W.WHITE_TEXT})]})]});var je="Loading-module_loading__7gLQd",Re="Loading-module_image__gig5S";const ze=({image:n})=>e("div",{className:je,children:e("img",{src:n,alt:"Loading...",className:Re})});var Fe={container:"Row-module_container__XmQql",fullHeight:"Row-module_fullHeight__Inxzs",fullWidth:"Row-module_fullWidth__cz2RH"};const Ge=({alignItems:n="center",justifyContent:i="flex-start",flexWrap:o="nowrap",gap:l=1,fullHeight:t=!1,fullWidth:d=!0,children:a,className:_})=>e("div",{className:c(Fe,{container:!0,fullHeight:t,fullWidth:d},[_]),style:{alignItems:n,justifyContent:i,flexWrap:o,gap:`${l}rem`},children:a});var Ue={container:"Column-module_container__Sqvfx",fullHeight:"Column-module_fullHeight__W87C5",fullWidth:"Column-module_fullWidth__lUQrj"};const Ye=({alignItems:n="flex-start",justifyContent:i="flex-start",gap:o=1,fullHeight:l=!1,fullWidth:t=!0,children:d,marginBottom:a=0,className:_})=>e("div",{className:c(Ue,{container:!0,fullHeight:l,fullWidth:t},[_]),style:{alignItems:n,justifyContent:i,gap:`${o}rem`,marginBottom:`${a}rem`},children:d});var Ve={container:"Flex-module_container__f80QI",grow:"Flex-module_grow__z7OVe",fullHeight:"Flex-module_fullHeight__d4p45",fullWidth:"Flex-module_fullWidth__m4XF-",item:"Flex-module_item__GwWE3",shrink:"Flex-module_shrink__LwfYE"};const Xe=({children:n,grow:i,shrink:o,className:l,fullHeight:t,fullWidth:d,flex:a})=>e("div",{className:c(Ve,{item:!0,grow:i,shrink:o,fullHeight:t,fullWidth:d},[l]),style:{flex:a},children:n}),Ze=({children:n,alignItems:i,justifyContent:o,flexWrap:l,gap:t,className:d,direction:a,grow:_,fullHeight:r,fullWidth:s})=>e("div",{className:c(Ve,{container:!0,fullHeight:r,fullWidth:s,grow:_},[d]),style:{alignItems:i,justifyContent:o,flexWrap:l,flexDirection:a,gap:`${t}rem`},children:n});Xe.displayName="Flex.Item",Ze.Item=Xe;var qe={container:"IconLink-module_container__DPEQm",xxs:"IconLink-module_xxs__VR--q",xs:"IconLink-module_xs__7kP8f",sm:"IconLink-module_sm__VTyu1",md:"IconLink-module_md__YaLm6",lg:"IconLink-module_lg__mEFFB",xl:"IconLink-module_xl__SFhG7",xxl:"IconLink-module_xxl__bxRt7",xxxl:"IconLink-module_xxxl__-ah4f",circle:"IconLink-module_circle__SszO0",light:"IconLink-module_light__ntSbm",dark:"IconLink-module_dark__3JP27",flexWide:"IconLink-module_flexWide__kFlaC",slidein:"IconLink-module_slidein__L3sxO",fadeInOut:"IconLink-module_fadeInOut__UZw3F",heightAnimation:"IconLink-module_heightAnimation__XWKzZ",fadein:"IconLink-module_fadein__mu-Q-",floatAnimation:"IconLink-module_floatAnimation__Upk7f"};const Ke=({icon:n,shape:i,target:o,size:l="xs",href:t,theme:d="light",title:a=""})=>e("a",{className:c(qe,{container:!0},[qe[i],qe[l],qe[d]]),href:t,target:o,rel:"noopener noreferrer",title:a,children:e(u,{icon:n,size:l,theme:d})});var Je="Carousel-module_container__voMge",Qe="Carousel-module_carousel__cXGTr",$e="Carousel-module_item__umQ-j";const en=({children:n,gap:i=2,onGetRef:l})=>{const t=a(null),[_,r]=o(!1),[s,c]=o(0),[m,u]=o(0),h=()=>{r(!1)};return d((()=>{(null==t?void 0:t.current)&&l&&l(t)}),[null==t?void 0:t.current,l]),e("div",{className:Je,children:e("div",{className:Qe,ref:t,onMouseDown:e=>{var n,i;r(!0),c(e.pageX-((null===(n=t.current)||void 0===n?void 0:n.offsetLeft)||0)),u((null===(i=t.current)||void 0===i?void 0:i.scrollLeft)||0)},onMouseLeave:h,onMouseUp:h,onMouseMove:e=>{var n;if(!_)return;const i=e.pageX-((null===(n=t.current)||void 0===n?void 0:n.offsetLeft)||0)-s;t.current&&(t.current.scrollLeft=m-i)},style:{gap:`${i}rem`,cursor:_?"grabbing":"grab"},children:n})})},nn=({children:n})=>e("div",{className:$e,children:n});var on={box:"Chip-module_box__bPxl6",large:"Chip-module_large__vYrP6",small:"Chip-module_small__53iJq",clickable:"Chip-module_clickable__dzpKp",light:"Chip-module_light__29AuI",active:"Chip-module_active__BlTSF",lightDark:"Chip-module_lightDark__XNFQ7",lightDanger:"Chip-module_lightDanger__rLWTT",lightInfo:"Chip-module_lightInfo__lhtRG",lightPrimary:"Chip-module_lightPrimary__YzHWA",lightSecondary:"Chip-module_lightSecondary__qXcsD",lightWarning:"Chip-module_lightWarning__DDYW3",lightSuccess:"Chip-module_lightSuccess__n5gp5",primary:"Chip-module_primary__rvetC",secondary:"Chip-module_secondary__pLu90",danger:"Chip-module_danger__OJzar",dark:"Chip-module_dark__OOepT",info:"Chip-module_info__gtJS1",success:"Chip-module_success__0GXdc",warning:"Chip-module_warning__NBLbz",whiteText:"Chip-module_whiteText__zg28n",default:"Chip-module_default__AZUs1",borderedPrimary:"Chip-module_borderedPrimary__bRpmY",borderedSecondary:"Chip-module_borderedSecondary__JgMYX",flexWide:"Chip-module_flexWide__j8zBM",slidein:"Chip-module_slidein__qMh2s",fadeInOut:"Chip-module_fadeInOut__X5Sw2",heightAnimation:"Chip-module_heightAnimation__OA0dv",fadein:"Chip-module_fadein__CkDEY",floatAnimation:"Chip-module_floatAnimation__PMaOv"};const ln=({onClick:n,className:i="",children:o,type:l=W.LIGHT,size:t="medium",active:d=!1})=>e("div",{className:c(on,{box:!0,clickable:!!n,active:d},[on[l],on[t],i]),onClick:n,children:o});var tn={container:"Modal-module_container__UCuJv",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9",footer:"Modal-module_footer__Oyz-R",full:"Modal-module_full__13hJb",medium:"Modal-module_medium__JRDXg",large:"Modal-module_large__O42Af",noFooter:"Modal-module_noFooter__GYvYN",noBodyPadding:"Modal-module_noBodyPadding__Pdh9C",flexWide:"Modal-module_flexWide__VReva",slidein:"Modal-module_slidein__ndLPJ",fadeInOut:"Modal-module_fadeInOut__c5Sgq",heightAnimation:"Modal-module_heightAnimation__E3smD",fadein:"Modal-module_fadein__vroAa",floatAnimation:"Modal-module_floatAnimation__dU3VL"};const dn=t((function({title:i,content:o,header:l,footer:t,size:d="small",noBodyPadding:a=!1,onClose:_},r){return n("div",{className:c(tn,{container:!0,noFooter:!t,noBodyPadding:a},[tn[d]]),ref:r,children:[!i&&l&&e("div",{className:tn.header,children:l}),i&&e("div",{className:tn.header,children:n(Ge,{alignItems:"center",justifyContent:"space-between",children:[e("span",{children:i}),_&&e(H,{icon:p,onClick:_})]})}),e("div",{className:tn.body,children:o}),t&&e("div",{className:tn.footer,children:t})]})}));var an={text:"Text-module_text__XXjeA",bodyText:"Text-module_bodyText__RqN1G",medium:"Text-module_medium__FoS2D",bold:"Text-module_bold__ZRBJh",small:"Text-module_small__-48A8",muted:"Text-module_muted__y62HX",h1:"Text-module_h1__qG6Jy",h2:"Text-module_h2__iPght",h3:"Text-module_h3__J0LDJ",h4:"Text-module_h4__4t9ri",h5:"Text-module_h5__ltcQp",flexWide:"Text-module_flexWide__fCAfU",slidein:"Text-module_slidein__ccSy8",fadeInOut:"Text-module_fadeInOut__JByvu",heightAnimation:"Text-module_heightAnimation__5YkEI",fadein:"Text-module_fadein__Fcz-y",floatAnimation:"Text-module_floatAnimation__2IgQs"};const _n=({variant:n="bodyText",color:i="normal",children:o})=>{const l=(()=>{switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":return n;default:return"div"}})();return e(l,{className:c(an,{text:!0},[an[n],an[i]]),children:o})};var rn={container:"Sidebar-module_container__bFisq",content:"Sidebar-module_content__vZb3P",brand:"Sidebar-module_brand__VRO-7",logout:"Sidebar-module_logout__UVk40",menuItem:"Sidebar-module_menuItem__gfM9S",isActive:"Sidebar-module_isActive__E4MAv",children:"Sidebar-module_children__MddxS",flexWide:"Sidebar-module_flexWide__Znxtb",slidein:"Sidebar-module_slidein__HO12l",fadeInOut:"Sidebar-module_fadeInOut__1JeD4",heightAnimation:"Sidebar-module_heightAnimation__ZA4xz",fadein:"Sidebar-module_fadein__DOVw-",floatAnimation:"Sidebar-module_floatAnimation__lcIqC"},sn={};const cn=({children:n,hasSubmenu:i=!1,path:o,LibLink:l,className:t,onSelectParent:d})=>i?e("div",{className:c(sn,{parent:!0},[t]),onClick:()=>d(o),children:n}):e(l,{to:o,className:c(sn,{parent:!0},[t]),onClick:()=>d(null),children:n}),mn=({avatar:i,brandName:o,isChildrenVisible:l,menuChildren:t,logoutHint:d,user:a=null,menuItems:_=[],LibLink:r,onSelectParent:s,onLogout:m})=>n("aside",{className:rn.container,children:[n("div",{className:rn.content,children:[e(cn,{LibLink:r,path:"/",onSelectParent:s,children:e("div",{className:rn.brand,children:e(E,{hint:o,position:"right",children:i})})}),e(Ye,{alignItems:"center",children:_.map((({path:i,title:o,shortTitle:l,icon:t,hasSubmenu:d,isActive:a},_)=>n(cn,{LibLink:r,path:i||"",onSelectParent:s,hasSubmenu:d,className:c(rn,{menuItem:!0,isActive:a}),children:[t&&e(u,{icon:t}),e("span",{children:l||o})]},_)))}),n(Ye,{className:rn.bottom,justifyContent:"flex-start",alignItems:"center",children:[a&&e("div",{className:rn.user,children:a}),e("div",{className:rn.logout,onClick:m,children:e(E,{hint:d||"Logout",position:"right",children:e(u,{icon:I})})})]})]}),e("div",{className:c(rn,{children:!0,isActive:!!l}),children:t})]});var un="PageLoading-module_container__ZRh7g";const hn=({loadingGif:n=""})=>e("div",{className:un,children:e("img",{src:n,alt:"Loading..."})});var gn={container:"Table-module_container__BsXT7",left:"Table-module_left__MPER1",right:"Table-module_right__gIcbO",center:"Table-module_center__sEdB2",centered:"Table-module_centered__liK0J",muted:"Table-module_muted__175Ax",flexWide:"Table-module_flexWide__ZT7bf",slidein:"Table-module_slidein__iS-HW",fadeInOut:"Table-module_fadeInOut__kkH6U",heightAnimation:"Table-module_heightAnimation__m6BZj",fadein:"Table-module_fadein__6ldtc",floatAnimation:"Table-module_floatAnimation__MN-bL"};const fn=({children:n})=>e("thead",{children:n}),pn=({children:n})=>e("tr",{children:n}),vn=({children:n,align:i="left"})=>e("th",{className:gn[i],children:n}),xn=({children:n,centered:i=!1,muted:o=!1})=>e("td",{className:c(gn,{centered:i,muted:o}),children:n}),In=({children:n})=>e("tbody",{children:n}),An=({children:n})=>e("div",{className:gn.container,children:e("table",{children:n})}),kn=(e,n)=>0===e?"left":e===n-1?"right":"center";export{re as Accordion,He as AlertBox,S as Avatar,T as Button,ue as Card,en as Carousel,nn as CarouselItem,ln as Chip,Ye as Column,Te as ContactsList,xe as Container,pe as CookieBanner,Me as Description,te as DropDown,We as FAQ,Ze as Flex,we as Header,me as Heading,H as IconButton,Ke as IconLink,$ as Input,Y as InputType,F as Link,R as ListItem,ze as Loading,ae as LoadingItem,dn as Modal,hn as PageLoading,Ge as Row,u as SVGIcon,Be as Section,mn as Sidebar,An as Table,In as TableBody,xn as TableCell,fn as TableHead,vn as TableHeadCell,pn as TableRow,_n as Text,E as Tooltip,W as UIElementType,c as classNames,kn as getDataTableHeadAlign,ne as useClickOutside,ie as useClickOutsideRef}; | ||
import{jsx as e,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as i,Fragment as t,forwardRef as l,useEffect as d,useRef as a,useCallback as _}from"react";import r from"react-dom";var s={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi",bottomSheet:"Avatar-module_bottomSheet__5tQTF"};const m=(e,o,n=[])=>{let i=[];for(const n in o)o[n]&&i.push(e[n]);return(null==n?void 0:n.length)>0&&(i=i.concat(n)),i.join(" ")};var c={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",dark:"SVGIcon-module_dark__4QbUi",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr",bottomSheet:"SVGIcon-module_bottomSheet__bwpAG"};const u=({icon:o,size:n="sm",className:i="",isLoading:t=!1,theme:l="light"})=>{const d=(e=>{switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}})(n);return o?e("div",{className:m(c,{container:!0,isLoading:t},[i,c[l]]),children:e(o,{className:i,width:d,height:d,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},h=n=>o("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})),g=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})})),f=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),p=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})})),v=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6"})})),x=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})})),b=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796"})})),I=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})})),A=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})})),k=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),L=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})})),D=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),C=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),N=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"})})),S=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),w=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),B=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),y=({source:n=null,alt:i="avatar",size:t="sm",onClick:l,className:d,isEditable:a=!1,overlayIcon:_,inline:r=!1,isLoading:c=!1,overlayText:g})=>{const f=()=>{switch(t){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return o("div",{className:m(s,{avatar:!0,clickable:!!l||a,editable:a,inline:r,loading:c},[s[t],d]),onClick:l,style:{width:f(),height:f()},children:[n?e("img",{src:n,alt:i,className:s.image,width:f(),height:f()}):e(u,{size:t,icon:B}),a&&e("div",{className:s.editIcon,children:e(u,{isLoading:c,icon:c?w:h})}),(!!_||g)&&o("div",{className:s.overlay,children:[!!_&&e(u,{isLoading:c,icon:c?w:_}),!!g&&e("div",{className:s.overlayText,children:g})]})]})};var O,W={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT",bottomSheet:"Button-module_bottomSheet__8KuGn"};!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.DANGER="danger",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e.LIGHT="light",e.DEFAULT="default",e.DARK="dark",e.LIGHT_PRIMARY="lightPrimary",e.LIGHT_SUCCESS="lightSuccess",e.LIGHT_WARNING="lightWarning",e.LIGHT_INFO="lightInfo",e.LIGHT_DANGER="lightDanger",e.LIGHT_DARK="lightDark",e.LIGHT_SECONDARY="lightSecondary",e.WHITE_TEXT="whiteText",e.BORDERED_PRIMARY="borderedPrimary",e.BORDERED_SECONDARY="borderedSecondary"}(O||(O={}));const T=({type:n=O.PRIMARY,onClick:l,label:d,icon:a,fullWidth:_=!1,isLoading:r,disabled:s,className:c,needConfirm:h=!1,size:g="md"})=>{const[f,p]=i(!1);return o("div",{className:m(W,{container:!0,fullWidth:_}),children:[e("button",{className:m(W,{button:!0,loading:!!r},[W[n],W[g],c]),onClick:h?()=>p(!f):l,disabled:r||s,children:r?e(t,{children:"Loading..."}):o("div",{className:W.label,children:[a&&e(u,{icon:a}),e("span",{children:d})]})}),f&&o("div",{className:W.confirm,children:[e("div",{className:W.confirmMessage,children:"Are you sure?"}),o("div",{className:W.confirmActions,children:[e(T,{type:O.DANGER,onClick:()=>p(!1),label:"No",size:"xs"}),e(T,{type:O.SUCCESS,onClick:()=>{p(!1),l()},label:"Yes",size:"xs"})]})]})]})};var P={iconButton:"IconButton-module_iconButton__PmpB8",noPadding:"IconButton-module_noPadding__Jd2rK",lg:"IconButton-module_lg__KG7lp",md:"IconButton-module_md__s4q7b",sm:"IconButton-module_sm__are9s",xs:"IconButton-module_xs__qYwZc",confirm:"IconButton-module_confirm__-jXH4",confirmMessage:"IconButton-module_confirmMessage__AgI49",confirmActions:"IconButton-module_confirmActions__j7-Tt",topLeft:"IconButton-module_topLeft__aDA0m",bottom:"IconButton-module_bottom__AEpND",isDisabled:"IconButton-module_isDisabled__aGo-9",white:"IconButton-module_white__AzyNN",light:"IconButton-module_light__i3AET",active:"IconButton-module_active__popsF",lightDark:"IconButton-module_lightDark__d7NQy",lightDanger:"IconButton-module_lightDanger__bIg02",lightInfo:"IconButton-module_lightInfo__820It",lightPrimary:"IconButton-module_lightPrimary__SCrg-",lightSecondary:"IconButton-module_lightSecondary__vN-aS",lightWarning:"IconButton-module_lightWarning__z1iaR",lightSuccess:"IconButton-module_lightSuccess__mUSnD",primary:"IconButton-module_primary__qjfR5",secondary:"IconButton-module_secondary__-CufX",danger:"IconButton-module_danger__lz3tP",dark:"IconButton-module_dark__QiBJk",info:"IconButton-module_info__eawU-",success:"IconButton-module_success__xkDzZ",warning:"IconButton-module_warning__DhbfD",whiteText:"IconButton-module_whiteText__111Ju",default:"IconButton-module_default__j2U57",borderedPrimary:"IconButton-module_borderedPrimary__DHXJQ",borderedSecondary:"IconButton-module_borderedSecondary__13GNA",flexWide:"IconButton-module_flexWide__BGOfY",slidein:"IconButton-module_slidein__Rmpl5",fadeInOut:"IconButton-module_fadeInOut__Z2E5a",heightAnimation:"IconButton-module_heightAnimation__JnqnZ",fadein:"IconButton-module_fadein__uX9ut",floatAnimation:"IconButton-module_floatAnimation__N-INw",bottomSheet:"IconButton-module_bottomSheet__kVxXt"},M={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW",bottomSheet:"Tooltip-module_bottomSheet__zxZ-Y"};const E=({hint:n,children:i,position:t="top"})=>o("div",{className:M.tooltip,children:[!!n&&e("div",{className:`${M.hint} ${M[t]}`,children:e("span",{children:n})}),i]}),H=({icon:t,onClick:l,type:d=O.DEFAULT,needConfirm:a=!1,noPadding:_=!1,isLoading:r=!1,size:s="sm",confirmPosition:c="top",isActive:h=!1,isDisabled:g=!1,confirmMessage:f,yesTitle:p,noTitle:v,tooltip:x})=>{const[b,I]=i(!1),A=g||r?void 0:l;return e((({children:o})=>x?e(E,{hint:x,children:o}):e(n,{children:o})),{children:o("div",{className:m(P,{iconButton:!0,noPadding:_,active:h,isDisabled:g},[P[d],P[s]]),onClick:a?()=>I(!b):A,children:[e(u,{isLoading:r,icon:t,size:s}),b&&e((()=>o("div",{className:`${P.confirm} ${P[c]}`,children:[e("div",{className:P.confirmMessage,children:f||"Are you sure?"}),o("div",{className:P.confirmActions,children:[e(T,{type:O.DANGER,onClick:()=>I(!1),label:v||"No",size:"xs"}),e(T,{type:O.SUCCESS,onClick:A,label:p||"Yes",size:"xs"})]})]})),{})]})})};var j={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy",bottomSheet:"ListItem-module_bottomSheet__CNVf3"};const R=({title:n,subtitle:i,actionTitle:t="",action:l,completed:d,indicator:a,hasSeparator:_=!1,hasDashedSeparator:r=!1,isActionPending:s=!1})=>o("div",{className:m(j,{listItem:!0,separator:_,dashedSeparator:r}),children:[o("div",{className:j.content,children:[a&&e("div",{className:m(j,{indicator:!0},[j[a]])}),o("div",{className:j.data,children:[e("div",{className:j.title,children:n}),i&&e("div",{className:j.subtitle,children:i})]})]}),l&&e(T,{onClick:l,className:j.action,label:t,isLoading:s}),d&&e("div",{className:j.completed,children:e(u,{icon:g})})]});var z={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",sm:"Link-module_sm__FcTWO",md:"Link-module_md__mmLj-",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5",bottomSheet:"Link-module_bottomSheet__thn4L"};const F=({href:n,title:i,target:t="_self",type:l=O.DEFAULT,padding:d="zero",hasChevron:a=!1,fullWidth:_=!1})=>o("a",{href:n,target:t,rel:"noopener noreferrer",className:m(z,{link:!0,fullWidth:_},[z[l],z[d]]),children:[e("span",{children:i})," ",a&&e(u,{icon:f})]});"function"==typeof SuppressedError&&SuppressedError;var G={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",prefix:"Input-module_prefix__-1end",addon:"Input-module_addon__1cKdz",pointer:"Input-module_pointer__EsKoB",error:"Input-module_error__38tit",avatar:"Input-module_avatar__GJUWC",autoCompleteContent:"Input-module_autoCompleteContent__4anQc",reversed:"Input-module_reversed__dU1hV",transparent:"Input-module_transparent__ko36m",small:"Input-module_small__5vYiK",xsmall:"Input-module_xsmall__-9hXW",hasPrefix:"Input-module_hasPrefix__fU508",hasAddon:"Input-module_hasAddon__mruPW",darkMode:"Input-module_darkMode__DLx4Y",flexWide:"Input-module_flexWide__4Wn1k",slidein:"Input-module_slidein__XYim1",fadeInOut:"Input-module_fadeInOut__bnAwc",heightAnimation:"Input-module_heightAnimation__tmt9Z",fadein:"Input-module_fadein__1HtqV",floatAnimation:"Input-module_floatAnimation__sYawG",bottomSheet:"Input-module_bottomSheet__sdVE5"};const U=(e,o)=>{const n=new FileReader;n.onload=()=>{o(n.result)},n.readAsDataURL(e)};var Y;!function(e){e.TEXT="text",e.PASSWORD="password",e.EMAIL="email",e.NUMBER="number",e.URL="url",e.TEL="tel",e.DATE="date",e.DATETIME="datetime",e.SELECT="select",e.COLOR_PICKER="color-picker",e.TEXT_AREA="text-area",e.AVATAR_UPLOAD="avatar-upload",e.UPLOAD_IMAGE_ICON="upload-image-icon",e.DND="dnd",e.CHECKBOX="checkbox"}(Y||(Y={}));const V=({isLoading:i,value:t,isDisabled:l,placeholder:d,options:a,name:_,onBlur:r,onFocus:s,onChange:m,preIcon:c,addonIcon:h,addonAction:g})=>o(n,{children:[c&&e("div",{className:G.preIcon,children:e(u,{icon:c,isLoading:i})}),o("select",{className:G.field,value:t,onBlur:r,onFocus:s,onChange:m,name:_,disabled:l,children:[d&&e("option",{value:"",children:d}),a.map((({label:o,value:n})=>e("option",{value:n,children:o},n)))]}),h&&e("div",{className:g?`${G.addon} ${G.pointer}`:G.addon,onClick:g,children:e(u,{icon:h,isLoading:i})})]});var X={container:"DnD-module_container__zFojN",dropZone:"DnD-module_dropZone__OJnfw",placeholder:"DnD-module_placeholder__Fkhl4",dropLabel:"DnD-module_dropLabel__TDGan",input:"DnD-module_input__FKtwE",selectedImage:"DnD-module_selectedImage__DsvPl",removeImage:"DnD-module_removeImage__zMc3L",rectangle:"DnD-module_rectangle__cnjIE",square:"DnD-module_square__mc3tn",circle:"DnD-module_circle__kXFaZ",isDragOver:"DnD-module_isDragOver__vfTwp",flexWide:"DnD-module_flexWide__sqZP0",slidein:"DnD-module_slidein__bPiSA",fadeInOut:"DnD-module_fadeInOut__QCEYD",heightAnimation:"DnD-module_heightAnimation__OGSUd",fadein:"DnD-module_fadein__eyNza",floatAnimation:"DnD-module_floatAnimation__PwKWB",bottomSheet:"DnD-module_bottomSheet__vsEm2"};const Z=({value:n,placeholder:t,isMultiUpload:l,dndShape:d="rectangle",isDisabled:a,className:_,onFilesSelect:r,onFileSelect:s})=>{const[c,u]=i(!1),h=e=>{if(e&&e.length>0){if(l&&r)return r(e);const o=e[0];U(o,(e=>{s&&s(o,e)}))}};return e("div",{className:m(X,{container:!0,isDragOver:c}),children:e("div",{onDrop:e=>{if(e.preventDefault(),a)return;const o=e.dataTransfer.files;h(o)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:m(X,{dropZone:!0},[X[d],_]),children:n?o("div",{className:X.selectedImage,children:[e("img",{src:String(n),alt:t}),e("div",{className:X.removeImage,children:e(H,{onClick:()=>{s&&s(null,"")},icon:p,type:O.BORDERED_PRIMARY})})]}):o("label",{className:X.dropLabel,children:[e("span",{className:X.placeholder,children:t||"Drop file"}),e("input",{type:"file",className:X.input,hidden:!0,onChange:e=>{const o=e.target;h(o.files)},disabled:a})]})})})};var q={container:"TextArea-module_container__uff42",field:"TextArea-module_field__kapQk",hasPrefix:"TextArea-module_hasPrefix__flVwo",prefix:"TextArea-module_prefix__vGIaC",flexWide:"TextArea-module_flexWide__staBL",slidein:"TextArea-module_slidein__-OBuL",fadeInOut:"TextArea-module_fadeInOut__aNBV4",heightAnimation:"TextArea-module_heightAnimation__mZG0q",fadein:"TextArea-module_fadein__30AAW",floatAnimation:"TextArea-module_floatAnimation__x6a8y",bottomSheet:"TextArea-module_bottomSheet__xLBCQ"};const K=({value:n,placeholder:i,autoFocus:t,ref:l,isDisabled:d,prefix:a,rows:_=3,onBlur:r,onFocus:s,onChange:c})=>o("div",{className:m(q,{container:!0,hasPrefix:!!a}),children:[!!a&&e("div",{className:q.prefix,children:e("span",{children:a})}),e("textarea",{className:q.field,value:n,placeholder:i,onBlur:r,onFocus:s,onChange:c,autoFocus:t,ref:l,disabled:d,rows:_})]});var J={};const Q=()=>e("div",{className:J.container,children:"CHECKBOX"}),$=l((function(n,i){var{type:l=Y.TEXT,label:d,placeholder:a,value:_,required:r=!1,addonIcon:s,preIcon:c,addonText:h,labelAddon:g,errorMessage:f,options:p=[],fullWidth:v,avatarSize:b,source:I,autoCompleteContent:A,autoCompleteReverse:k=!1,noMargin:L=!1,isDisabled:D=!1,isLoading:C=!1,isMultiUpload:N=!1,autoFocus:S=!1,theme:w="oval",size:B="medium",isDarkMode:O=!1,dndShape:W,name:T,prefix:P,rows:M,className:E,onBlur:H,onFocus:j,onChange:R,addonAction:z,onEnter:F,onEsc:X,onFileSelect:q,onFilesSelect:J}=n,$=function(e,o){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(n[i[t]]=e[i[t]])}return n}(n,["type","label","placeholder","value","required","addonIcon","preIcon","addonText","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","dndShape","name","prefix","rows","className","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const ee=D||C,oe=e=>{switch(e.key){case"Enter":F&&F();break;case"Escape":X&&X()}},ne=e=>{const o=e.target.files[0];U(o,(e=>{q&&q(o,e)}))},ie=e=>{const o=e.target;J&&J(o.files)};return o("div",{className:m(G,{input:!0,full:!!v,noMargin:L,hasAddon:!!s||!!h,hasPrefix:!!P,darkMode:O},[G[w],G[B]]),children:[d&&o("label",{children:[e("span",{className:r?G.required:"",children:d}),!!g&&e("div",{className:G.labelAddon,children:g})]}),e("div",{className:G.container,children:(()=>{switch(l){case Y.SELECT:return e(V,{preIcon:c,isLoading:C,value:_,isDisabled:D,placeholder:a,options:p,onBlur:H,onFocus:j,onChange:R,addonAction:z,addonIcon:s,name:T});case Y.DND:return e(Z,{onFilesSelect:J,onFileSelect:q,placeholder:a,value:_,dndShape:W,isDisabled:D,isMultiUpload:N,className:E});case Y.COLOR_PICKER:return e("input",Object.assign({className:`${G.field} ${G.colorPicker}`,type:"color",value:_,placeholder:a,onBlur:H,onFocus:j,onChange:R,disabled:ee,ref:i},$));case Y.TEXT_AREA:return e(K,{value:_,placeholder:a,onBlur:H,onFocus:j,onChange:R,autoFocus:S,ref:i,prefix:P,rows:M});case Y.AVATAR_UPLOAD:return o("label",{htmlFor:"avatar-upload",children:[e(y,{size:b,source:I,isLoading:C,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:N?ie:ne,ref:i,className:G.avatar,disabled:ee,multiple:N})]});case Y.UPLOAD_IMAGE_ICON:return o("label",{htmlFor:"upload-image-icon",children:[e(u,{icon:x,isLoading:C,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:N?ie:ne,ref:i,className:G.avatar,disabled:ee,multiple:N})]});case Y.CHECKBOX:return e(Q,{});default:return o(t,{children:[!!P&&e("div",{className:G.prefix,children:e("span",{children:P})}),e("input",Object.assign({className:G.field,type:l,placeholder:a,value:_,onBlur:H,onFocus:j,onChange:R,onKeyUp:oe,ref:i,disabled:ee,autoFocus:S,name:T},$)),s&&e("div",{className:z?`${G.addon} ${G.pointer}`:G.addon,onClick:z,children:e(u,{icon:s,isLoading:C})}),h&&e("div",{className:z?`${G.addon} ${G.pointer}`:G.addon,onClick:z,children:h})]})}})()}),!!f&&e("div",{className:G.error,children:f}),!!A&&e("div",{className:m(G,{autoCompleteContent:!0,reversed:k}),children:A})]})}));var ee={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5",bottomSheet:"DropDown-module_bottomSheet__9ABZ-"};const oe=(e,o)=>{const n=n=>{e.current&&!e.current.contains(n.target)&&o()};d((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[])},ne=e=>{const o=a(null),n=_((n=>{o.current&&!o.current.contains(n.target)&&e()}),[e]);return d((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[n]),o},ie=({containerRef:o,contentRef:n,isOpen:t=!1,renderChild:l,onClose:a})=>{const _={isOpen:!1,top:0,left:0,bottom:0,right:0},[s,m]=i(_),c={position:"absolute",top:s.top,left:s.left,bottom:s.bottom,right:s.right,zIndex:111},u=()=>{m(_),a()};return oe(o,(()=>u())),d((()=>{if(t)return(()=>{var e,i,t,l,d,a,_;const{top:r,left:s,height:c,width:u}=null!==(t=null===(i=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===i?void 0:i.call(e))&&void 0!==t?t:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:g}=window,f=h-(r+c),p=r,v=s,x=g-(s+u),b=null!==(d=null===(l=null==n?void 0:n.current)||void 0===l?void 0:l.clientHeight)&&void 0!==d?d:200,I=null!==(_=null===(a=null==n?void 0:n.current)||void 0===a?void 0:a.clientWidth)&&void 0!==_?_:200;let A="auto",k="auto",L="auto",D="auto";f<b&&p>=b?D=h-r-c+20:k=r+c+5,x<I&&v>=I?L=g-s:A=s;const C={top:k,left:A,right:L,bottom:D};m(Object.assign(Object.assign({},C),{isOpen:!0}))})();u()}),[t,null==o?void 0:o.current]),s.isOpen?r.createPortal(e("div",{style:c,onClick:e=>{e.stopPropagation()},children:l(s)}),document.getElementById("portals")):null},te=({children:o})=>e("div",{className:ee.menu,children:o}),le=({action:n,menu:t,type:l=O.DEFAULT,closeRef:_,actionSize:r="medium"})=>{const s=a(null),c=a(null),u=a(null),[h,g]=i(!1),f=()=>g(!1);return d((()=>{(null==_?void 0:_.current)&&(_.current={close:()=>f()})}),[_]),o("div",{className:ee.container,ref:s,children:[e("div",{className:m(ee,{action:!0},[ee[l],ee[r]]),ref:u,onClick:()=>g(!h),children:n}),e(ie,{containerRef:s,contentRef:c,isOpen:h,onClose:f,renderChild:()=>e("div",{className:ee.menuContainer,ref:c,children:e(te,{children:t})})})]})};var de={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh",bottomSheet:"LoadingItem-module_bottomSheet__bR0jg"};const ae=({shape:o="square",size:n="md",width:i,height:t})=>e("div",{className:m(de,{container:!0},[de[o],de[n]]),style:{width:i,height:t}});var _e={container:"Accordion-module_container__6rGl0",header:"Accordion-module_header__AYOT5",body:"Accordion-module_body__4IgEa",content:"Accordion-module_content__RyBzl",isOpen:"Accordion-module_isOpen__Bmf-c",flexWide:"Accordion-module_flexWide__Pmyu-",slidein:"Accordion-module_slidein__NIsrY",fadeInOut:"Accordion-module_fadeInOut__Ub-rg",heightAnimation:"Accordion-module_heightAnimation__nT1oQ",fadein:"Accordion-module_fadein__KprHu",floatAnimation:"Accordion-module_floatAnimation__d-fsP",bottomSheet:"Accordion-module_bottomSheet__BpfZl"};const re=({title:n,content:t})=>{const[l,d]=i(!1);return o("div",{className:m(_e,{container:!0,isOpen:l}),onClick:()=>d(!l),children:[o("div",{className:_e.header,children:[e("h3",{children:n}),e(u,{icon:l?D:C,size:"md"})]}),e("div",{className:_e.body,children:e("div",{className:_e.content,children:t})})]})};var se={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",fullWidth:"Card-module_fullWidth__HpLSP",fullHeight:"Card-module_fullHeight__Ngt-E",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu",bottomSheet:"Card-module_bottomSheet__d7HOh"},me={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm",bottomSheet:"Heading-module_bottomSheet__4Xdnv"};const ce=({size:n="md",title:i,subtitle:t})=>o("div",{className:me.heading,children:[e("div",{className:`${me.title} ${me[n]}`,children:i}),t&&e("div",{className:me.subtitle,children:t})]}),ue=({title:n,subtitle:i,children:t,toolbar:l,footer:d,separated:a=!1,borderTopWidth:_,borderTopColor:r,noBottomMargin:s=!1,noBodyPadding:c=!1,fullHeight:u=!1,fullWidth:h=!1})=>{const g=_?`${_}px solid ${r}`:"none";return o("div",{className:m(se,{card:!0,separated:a,noBottomMargin:s,noBodyPadding:c,fullHeight:u,fullWidth:h}),style:Object.assign({},_&&{borderTop:g}),children:[(l||n)&&o("div",{className:se.header,children:[o("div",{className:se.headerInfo,children:[n&&e("div",{className:se.headerTitle,children:e(ce,{size:"sm",title:n})}),i&&e("div",{className:se.headerSubtitle,children:i})]}),l&&e("div",{className:se.headerToolbar,children:l})]}),e("div",{className:se.body,children:t}),d&&e("div",{className:se.footer,children:d})]})};var he={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP",bottomSheet:"CookieBanner-module_bottomSheet__Amht0"};const ge=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var fe;!function(e){e.SEEN="seen"}(fe||(fe={}));const pe=({appName:n})=>{const[t,l]=i(!1);return d((()=>{const e=ge.getCookieBannerState();l(e!==fe.SEEN)}),[]),t?o("div",{className:he.container,children:[o("div",{className:he.content,children:["As ",n,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e("div",{className:he.actions,children:e(T,{label:"Continue",onClick:()=>{l(!1),ge.saveCookieBannerState(fe.SEEN)}})})]}):null};var ve={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",fullWidth:"Container-module_fullWidth__BIlSl",flexWide:"Container-module_flexWide__UYxLw",slidein:"Container-module_slidein__2HqKN",fadeInOut:"Container-module_fadeInOut__OfzxZ",heightAnimation:"Container-module_heightAnimation__UR715",fadein:"Container-module_fadein__9rDYD",floatAnimation:"Container-module_floatAnimation__6Lcjo",bottomSheet:"Container-module_bottomSheet__5c8vI"};const xe=({className:o="",children:n,noPadding:i=!1,fullWidth:t=!1})=>e("div",{className:m(ve,{container:!0,noPadding:i,fullWidth:t},[o]),children:n});var be="Header-module_header__qxHtx",Ie="Header-module_content__DV-in",Ae="Header-module_logo__xO2bW",ke="Header-module_mobileLogo__eNvSP",Le="Header-module_actions__ZlACk",De="Header-module_mobileMenuIcon__pFpba",Ce="Header-module_menu__Yw9r6",Ne="Header-module_mobileMenu__4S-NE";const Se=({logo:n,menu:t,actions:l=null})=>{const[d,a]=i(!1);return o("header",{className:be,children:[e(xe,{children:o("div",{className:Ie,children:[e("a",{href:"/",className:Ae,children:n}),e("a",{href:"/",className:ke,children:n}),!!t&&e("div",{className:Ce,children:t}),o("div",{className:Le,children:[l,!!t&&e("div",{className:De,children:e(H,{icon:d?p:k,onClick:()=>a(!d),size:"lg"})})]})]})}),d&&e("div",{className:Ne,children:t})]})};var we={container:"Section-module_container__3n1V-",header:"Section-module_header__uP6hi",subtitle:"Section-module_subtitle__8Y9SH",gradient:"Section-module_gradient__xroL-",black:"Section-module_black__xbyiN",dark:"Section-module_dark__5IiQW",flexWide:"Section-module_flexWide__jFoW4",slidein:"Section-module_slidein__gRGLr",fadeInOut:"Section-module_fadeInOut__yLFY5",heightAnimation:"Section-module_heightAnimation__7ap3B",fadein:"Section-module_fadein__Jbv0F",floatAnimation:"Section-module_floatAnimation__g2TfT",bottomSheet:"Section-module_bottomSheet__ZV5zI"};const Be=({title:n,subtitle:i,theme:t="light",children:l,className:d})=>o("div",{className:m(we,{container:!0},[we[t],d]),children:[o("div",{className:we.header,children:[e("h2",{children:n}),!!i&&e("div",{className:we.subtitle,children:i})]}),e("div",{className:we.body,children:l})]});var ye="FAQ-module_container__Kht11";const Oe=({items:o,title:n})=>e(Be,{title:n||"Frequently asked questions",children:e("div",{className:ye,children:o.map((({title:o,content:n})=>e(re,{title:o,content:n},o)))})});var We={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI",bottomSheet:"ContactsList-module_bottomSheet__JVwPq"};const Te=({domain:n,socialLinks:i,address:t,reportLabel:l,writeUsLabel:d,followUsLabel:a,addressLabel:_})=>o("div",{className:We.container,children:[o("div",{className:We.contact,children:[e("div",{className:We.icon,children:e(u,{icon:L,size:"xl"})}),o("div",{className:We.content,children:[e("div",{className:We.title,children:l||"Report"}),e("div",{className:We.value,children:o("a",{href:`mailto:feedback@${n}`,children:["feedback@",n]})})]})]}),o("div",{className:We.contact,children:[e("div",{className:We.icon,children:e(u,{icon:I,size:"xl"})}),o("div",{className:We.content,children:[e("div",{className:We.title,children:d||"Write us"}),e("div",{className:We.value,children:o("a",{href:`mailto:contact@${n}`,children:["contact@",n]})})]})]}),o("div",{className:We.contact,children:[e("div",{className:We.icon,children:e(u,{icon:S,size:"xl"})}),o("div",{className:We.content,children:[e("div",{className:We.title,children:a||"Follow us"}),e("div",{className:We.value,children:e("ul",{children:i.map((({url:o,icon:n})=>e("li",{children:e("a",{href:o,target:"_blank",children:e(u,{icon:n,size:"md"})})},o)))})})]})]}),o("div",{className:We.contact,children:[e("div",{className:We.icon,children:e(u,{icon:A,size:"xl"})}),o("div",{className:We.content,children:[e("div",{className:We.title,children:_||"Address"}),e("div",{className:We.value,children:t})]})]})]});var Pe={description:"Description-module_description__ENVu-",xl:"Description-module_xl__GtUSA",lg:"Description-module_lg__ENF-W",m:"Description-module_m__RqjBl",s:"Description-module_s__RAro3",xs:"Description-module_xs__0chE0",noSpacing:"Description-module_noSpacing__746UN",lighter:"Description-module_lighter__y-rC3",flexWide:"Description-module_flexWide__CEoWm",slidein:"Description-module_slidein__ZJBnB",fadeInOut:"Description-module_fadeInOut__ZdTzP",heightAnimation:"Description-module_heightAnimation__v2n3a",fadein:"Description-module_fadein__bPsva",floatAnimation:"Description-module_floatAnimation__Cq8oz",bottomSheet:"Description-module_bottomSheet__J4Of1"};const Me=({size:o="m",text:n,noSpacing:i=!1,className:t="",lighter:l=!1})=>e("div",{className:m(Pe,{description:!0,noSpacing:i,lighter:l},[Pe[o],t]),children:n});var Ee={alert:"AlertBox-module_alert__y9n9e",inline:"AlertBox-module_inline__upbhQ",error:"AlertBox-module_error__anhZO",success:"AlertBox-module_success__80DOT",icon:"AlertBox-module_icon__FLy1Y",actions:"AlertBox-module_actions__fgPt7","supeer-icon-button":"AlertBox-module_supeer-icon-button__8oUJ8",message:"AlertBox-module_message__ssD6S",flexWide:"AlertBox-module_flexWide__isTSZ",slidein:"AlertBox-module_slidein__BNFh5",fadeInOut:"AlertBox-module_fadeInOut__DW6jj",heightAnimation:"AlertBox-module_heightAnimation__AMoVU",fadein:"AlertBox-module_fadein__5wonR",floatAnimation:"AlertBox-module_floatAnimation__rXaKh",bottomSheet:"AlertBox-module_bottomSheet__hjf6R"};const He=({message:n,onClear:i,onReload:t,type:l,inline:d=!1})=>o("div",{className:m(Ee,{alert:!0,inline:d},[Ee[l]]),children:[e("div",{className:Ee.icon,children:e(u,{icon:v,size:"md",theme:"dark"})}),e("div",{className:Ee.message,children:n}),o("div",{className:Ee.actions,children:[t&&e(H,{icon:N,onClick:t,type:O.WHITE_TEXT}),e(H,{icon:p,onClick:i,type:O.WHITE_TEXT})]})]});var je="Loading-module_loading__7gLQd",Re="Loading-module_image__gig5S";const ze=({image:o})=>e("div",{className:je,children:e("img",{src:o,alt:"Loading...",className:Re})});var Fe={container:"Row-module_container__XmQql",fullHeight:"Row-module_fullHeight__Inxzs",fullWidth:"Row-module_fullWidth__cz2RH"};const Ge=({alignItems:o="center",justifyContent:n="flex-start",flexWrap:i="nowrap",gap:t=1,fullHeight:l=!1,fullWidth:d=!0,children:a,className:_})=>e("div",{className:m(Fe,{container:!0,fullHeight:l,fullWidth:d},[_]),style:{alignItems:o,justifyContent:n,flexWrap:i,gap:`${t}rem`},children:a});var Ue={container:"Column-module_container__Sqvfx",fullHeight:"Column-module_fullHeight__W87C5",fullWidth:"Column-module_fullWidth__lUQrj"};const Ye=({alignItems:o="flex-start",justifyContent:n="flex-start",gap:i=1,fullHeight:t=!1,fullWidth:l=!0,children:d,marginBottom:a=0,className:_})=>e("div",{className:m(Ue,{container:!0,fullHeight:t,fullWidth:l},[_]),style:{alignItems:o,justifyContent:n,gap:`${i}rem`,marginBottom:`${a}rem`},children:d});var Ve={container:"Flex-module_container__f80QI",grow:"Flex-module_grow__z7OVe",fullHeight:"Flex-module_fullHeight__d4p45",fullWidth:"Flex-module_fullWidth__m4XF-",item:"Flex-module_item__GwWE3",shrink:"Flex-module_shrink__LwfYE"};const Xe=({children:o,grow:n,shrink:i,className:t,fullHeight:l,fullWidth:d,flex:a})=>e("div",{className:m(Ve,{item:!0,grow:n,shrink:i,fullHeight:l,fullWidth:d},[t]),style:{flex:a},children:o}),Ze=({children:o,alignItems:n,justifyContent:i,flexWrap:t,gap:l,className:d,direction:a,grow:_,fullHeight:r,fullWidth:s})=>e("div",{className:m(Ve,{container:!0,fullHeight:r,fullWidth:s,grow:_},[d]),style:{alignItems:n,justifyContent:i,flexWrap:t,flexDirection:a,gap:`${l}rem`},children:o});Xe.displayName="Flex.Item",Ze.Item=Xe;var qe={container:"IconLink-module_container__DPEQm",xxs:"IconLink-module_xxs__VR--q",xs:"IconLink-module_xs__7kP8f",sm:"IconLink-module_sm__VTyu1",md:"IconLink-module_md__YaLm6",lg:"IconLink-module_lg__mEFFB",xl:"IconLink-module_xl__SFhG7",xxl:"IconLink-module_xxl__bxRt7",xxxl:"IconLink-module_xxxl__-ah4f",circle:"IconLink-module_circle__SszO0",light:"IconLink-module_light__ntSbm",dark:"IconLink-module_dark__3JP27",flexWide:"IconLink-module_flexWide__kFlaC",slidein:"IconLink-module_slidein__L3sxO",fadeInOut:"IconLink-module_fadeInOut__UZw3F",heightAnimation:"IconLink-module_heightAnimation__XWKzZ",fadein:"IconLink-module_fadein__mu-Q-",floatAnimation:"IconLink-module_floatAnimation__Upk7f",bottomSheet:"IconLink-module_bottomSheet__RGR-Q"};const Ke=({icon:o,shape:n,target:i,size:t="xs",href:l,theme:d="light",title:a=""})=>e("a",{className:m(qe,{container:!0},[qe[n],qe[t],qe[d]]),href:l,target:i,rel:"noopener noreferrer",title:a,children:e(u,{icon:o,size:t,theme:d})});var Je="Carousel-module_container__voMge",Qe="Carousel-module_carousel__cXGTr",$e="Carousel-module_item__umQ-j";const eo=({children:o,gap:n=2,onGetRef:t})=>{const l=a(null),[_,r]=i(!1),[s,m]=i(0),[c,u]=i(0),h=()=>{r(!1)};return d((()=>{(null==l?void 0:l.current)&&t&&t(l)}),[null==l?void 0:l.current,t]),e("div",{className:Je,children:e("div",{className:Qe,ref:l,onMouseDown:e=>{var o,n;r(!0),m(e.pageX-((null===(o=l.current)||void 0===o?void 0:o.offsetLeft)||0)),u((null===(n=l.current)||void 0===n?void 0:n.scrollLeft)||0)},onMouseLeave:h,onMouseUp:h,onMouseMove:e=>{var o;if(!_)return;const n=e.pageX-((null===(o=l.current)||void 0===o?void 0:o.offsetLeft)||0)-s;l.current&&(l.current.scrollLeft=c-n)},style:{gap:`${n}rem`,cursor:_?"grabbing":"grab"},children:o})})},oo=({children:o})=>e("div",{className:$e,children:o});var no={box:"Chip-module_box__bPxl6",large:"Chip-module_large__vYrP6",small:"Chip-module_small__53iJq",clickable:"Chip-module_clickable__dzpKp",light:"Chip-module_light__29AuI",active:"Chip-module_active__BlTSF",lightDark:"Chip-module_lightDark__XNFQ7",lightDanger:"Chip-module_lightDanger__rLWTT",lightInfo:"Chip-module_lightInfo__lhtRG",lightPrimary:"Chip-module_lightPrimary__YzHWA",lightSecondary:"Chip-module_lightSecondary__qXcsD",lightWarning:"Chip-module_lightWarning__DDYW3",lightSuccess:"Chip-module_lightSuccess__n5gp5",primary:"Chip-module_primary__rvetC",secondary:"Chip-module_secondary__pLu90",danger:"Chip-module_danger__OJzar",dark:"Chip-module_dark__OOepT",info:"Chip-module_info__gtJS1",success:"Chip-module_success__0GXdc",warning:"Chip-module_warning__NBLbz",whiteText:"Chip-module_whiteText__zg28n",default:"Chip-module_default__AZUs1",borderedPrimary:"Chip-module_borderedPrimary__bRpmY",borderedSecondary:"Chip-module_borderedSecondary__JgMYX",flexWide:"Chip-module_flexWide__j8zBM",slidein:"Chip-module_slidein__qMh2s",fadeInOut:"Chip-module_fadeInOut__X5Sw2",heightAnimation:"Chip-module_heightAnimation__OA0dv",fadein:"Chip-module_fadein__CkDEY",floatAnimation:"Chip-module_floatAnimation__PMaOv",bottomSheet:"Chip-module_bottomSheet__RAUmm"};const io=({onClick:o,className:n="",children:i,type:t=O.LIGHT,size:l="medium",active:d=!1})=>e("div",{className:m(no,{box:!0,clickable:!!o,active:d},[no[t],no[l],n]),onClick:o,children:i});var to={container:"Modal-module_container__UCuJv",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9",footer:"Modal-module_footer__Oyz-R",full:"Modal-module_full__13hJb",medium:"Modal-module_medium__JRDXg",large:"Modal-module_large__O42Af",noFooter:"Modal-module_noFooter__GYvYN",noBodyPadding:"Modal-module_noBodyPadding__Pdh9C",bottomSheet:"Modal-module_bottomSheet__7Aj5f",flexWide:"Modal-module_flexWide__VReva",slidein:"Modal-module_slidein__ndLPJ",fadeInOut:"Modal-module_fadeInOut__c5Sgq",heightAnimation:"Modal-module_heightAnimation__E3smD",fadein:"Modal-module_fadein__vroAa",floatAnimation:"Modal-module_floatAnimation__dU3VL"};const lo=l((function({title:n,content:i,header:t,footer:l,size:d="small",noBodyPadding:a=!1,onClose:_},r){return o("div",{className:m(to,{container:!0,noFooter:!l,noBodyPadding:a},[to[d]]),ref:r,children:[!n&&t&&e("div",{className:to.header,children:t}),n&&e("div",{className:to.header,children:o(Ge,{alignItems:"center",justifyContent:"space-between",children:[e("span",{children:n}),_&&e(H,{icon:p,onClick:_})]})}),e("div",{className:to.body,children:i}),l&&e("div",{className:to.footer,children:l})]})}));var ao={text:"Text-module_text__XXjeA",bodyText:"Text-module_bodyText__RqN1G",medium:"Text-module_medium__FoS2D",bold:"Text-module_bold__ZRBJh",small:"Text-module_small__-48A8",muted:"Text-module_muted__y62HX",h1:"Text-module_h1__qG6Jy",h2:"Text-module_h2__iPght",h3:"Text-module_h3__J0LDJ",h4:"Text-module_h4__4t9ri",h5:"Text-module_h5__ltcQp",flexWide:"Text-module_flexWide__fCAfU",slidein:"Text-module_slidein__ccSy8",fadeInOut:"Text-module_fadeInOut__JByvu",heightAnimation:"Text-module_heightAnimation__5YkEI",fadein:"Text-module_fadein__Fcz-y",floatAnimation:"Text-module_floatAnimation__2IgQs",bottomSheet:"Text-module_bottomSheet__rF2CA"};const _o=({variant:o="bodyText",color:n="normal",children:i})=>{const t=(()=>{switch(o){case"h1":case"h2":case"h3":case"h4":case"h5":return o;default:return"div"}})();return e(t,{className:m(ao,{text:!0},[ao[o],ao[n]]),children:i})};var ro={container:"Sidebar-module_container__bFisq",content:"Sidebar-module_content__vZb3P",brand:"Sidebar-module_brand__VRO-7",logout:"Sidebar-module_logout__UVk40",menuItem:"Sidebar-module_menuItem__gfM9S",isActive:"Sidebar-module_isActive__E4MAv",children:"Sidebar-module_children__MddxS",flexWide:"Sidebar-module_flexWide__Znxtb",slidein:"Sidebar-module_slidein__HO12l",fadeInOut:"Sidebar-module_fadeInOut__1JeD4",heightAnimation:"Sidebar-module_heightAnimation__ZA4xz",fadein:"Sidebar-module_fadein__DOVw-",floatAnimation:"Sidebar-module_floatAnimation__lcIqC",bottomSheet:"Sidebar-module_bottomSheet__sx52t"},so={};const mo=({children:o,hasSubmenu:n=!1,path:i,LibLink:t,className:l,onSelectParent:d})=>n?e("div",{className:m(so,{parent:!0},[l]),onClick:()=>d(i),children:o}):e(t,{to:i,className:m(so,{parent:!0},[l]),onClick:()=>d(null),children:o}),co=({avatar:n,brandName:i,isChildrenVisible:t,menuChildren:l,logoutHint:d,user:a=null,menuItems:_=[],LibLink:r,onSelectParent:s,onLogout:c})=>o("aside",{className:ro.container,children:[o("div",{className:ro.content,children:[e(mo,{LibLink:r,path:"/",onSelectParent:s,children:e("div",{className:ro.brand,children:e(E,{hint:i,position:"right",children:n})})}),e(Ye,{alignItems:"center",children:_.map((({path:n,title:i,shortTitle:t,icon:l,hasSubmenu:d,isActive:a},_)=>o(mo,{LibLink:r,path:n||"",onSelectParent:s,hasSubmenu:d,className:m(ro,{menuItem:!0,isActive:a}),children:[l&&e(u,{icon:l}),e("span",{children:t||i})]},_)))}),o(Ye,{className:ro.bottom,justifyContent:"flex-start",alignItems:"center",children:[a&&e("div",{className:ro.user,children:a}),e("div",{className:ro.logout,onClick:c,children:e(E,{hint:d||"Logout",position:"right",children:e(u,{icon:b})})})]})]}),e("div",{className:m(ro,{children:!0,isActive:!!t}),children:l})]});var uo="PageLoading-module_container__ZRh7g";const ho=({loadingGif:o=""})=>e("div",{className:uo,children:e("img",{src:o,alt:"Loading..."})});var go={container:"Table-module_container__BsXT7",left:"Table-module_left__MPER1",right:"Table-module_right__gIcbO",center:"Table-module_center__sEdB2",centered:"Table-module_centered__liK0J",muted:"Table-module_muted__175Ax",flexWide:"Table-module_flexWide__ZT7bf",slidein:"Table-module_slidein__iS-HW",fadeInOut:"Table-module_fadeInOut__kkH6U",heightAnimation:"Table-module_heightAnimation__m6BZj",fadein:"Table-module_fadein__6ldtc",floatAnimation:"Table-module_floatAnimation__MN-bL",bottomSheet:"Table-module_bottomSheet__IIfBx"};const fo=({children:o})=>e("thead",{children:o}),po=({children:o})=>e("tr",{children:o}),vo=({children:o,align:n="left"})=>e("th",{className:go[n],children:o}),xo=({children:o,centered:n=!1,muted:i=!1})=>e("td",{className:m(go,{centered:n,muted:i}),children:o}),bo=({children:o})=>e("tbody",{children:o}),Io=({children:o})=>e("div",{className:go.container,children:e("table",{children:o})}),Ao=(e,o)=>0===e?"left":e===o-1?"right":"center";export{re as Accordion,He as AlertBox,y as Avatar,T as Button,ue as Card,eo as Carousel,oo as CarouselItem,io as Chip,Ye as Column,Te as ContactsList,xe as Container,pe as CookieBanner,Me as Description,le as DropDown,Oe as FAQ,Ze as Flex,Se as Header,ce as Heading,H as IconButton,Ke as IconLink,$ as Input,Y as InputType,F as Link,R as ListItem,ze as Loading,ae as LoadingItem,lo as Modal,ho as PageLoading,Ge as Row,u as SVGIcon,Be as Section,co as Sidebar,Io as Table,bo as TableBody,xo as TableCell,fo as TableHead,vo as TableHeadCell,po as TableRow,_o as Text,E as Tooltip,O as UIElementType,m as classNames,Ao as getDataTableHeadAlign,oe as useClickOutside,ne as useClickOutsideRef}; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var e=require("react/jsx-runtime"),o=require("react"),n=require("react-dom"),i={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi"};const t=(e,o,n=[])=>{let i=[];for(const n in o)o[n]&&i.push(e[n]);return(null==n?void 0:n.length)>0&&(i=i.concat(n)),i.join(" ")};var l={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",dark:"SVGIcon-module_dark__4QbUi",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr"};const a=({icon:o,size:n="sm",className:i="",isLoading:a=!1,theme:d="light"})=>{const s=(e=>{switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}})(n);return o?e.jsx("div",{className:t(l,{container:!0,isLoading:a},[i,l[d]]),children:e.jsx(o,{className:i,width:s,height:s,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},d=o=>e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:[e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})),s=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})})),r=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),_=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})})),c=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6"})})),u=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})})),m=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796"})})),h=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})})),x=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})})),g=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),p=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})})),f=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),v=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),j=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"})})),I=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),A=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),k=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),b=({source:o=null,alt:n="avatar",size:l="sm",onClick:s,className:r,isEditable:_=!1,overlayIcon:c,inline:u=!1,isLoading:m=!1,overlayText:h})=>{const x=()=>{switch(l){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return e.jsxs("div",{className:t(i,{avatar:!0,clickable:!!s||_,editable:_,inline:u,loading:m},[i[l],r]),onClick:s,style:{width:x(),height:x()},children:[o?e.jsx("img",{src:o,alt:n,className:i.image,width:x(),height:x()}):e.jsx(a,{size:l,icon:k}),_&&e.jsx("div",{className:i.editIcon,children:e.jsx(a,{isLoading:m,icon:m?A:d})}),(!!c||h)&&e.jsxs("div",{className:i.overlay,children:[!!c&&e.jsx(a,{isLoading:m,icon:m?A:c}),!!h&&e.jsx("div",{className:i.overlayText,children:h})]})]})};var L,C={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};exports.UIElementType=void 0,(L=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",L.SECONDARY="secondary",L.DANGER="danger",L.SUCCESS="success",L.WARNING="warning",L.INFO="info",L.LIGHT="light",L.DEFAULT="default",L.DARK="dark",L.LIGHT_PRIMARY="lightPrimary",L.LIGHT_SUCCESS="lightSuccess",L.LIGHT_WARNING="lightWarning",L.LIGHT_INFO="lightInfo",L.LIGHT_DANGER="lightDanger",L.LIGHT_DARK="lightDark",L.LIGHT_SECONDARY="lightSecondary",L.WHITE_TEXT="whiteText",L.BORDERED_PRIMARY="borderedPrimary",L.BORDERED_SECONDARY="borderedSecondary";const D=({type:n=exports.UIElementType.PRIMARY,onClick:i,label:l,icon:d,fullWidth:s=!1,isLoading:r,disabled:_,className:c,needConfirm:u=!1,size:m="md"})=>{const[h,x]=o.useState(!1);return e.jsxs("div",{className:t(C,{container:!0,fullWidth:s}),children:[e.jsx("button",{className:t(C,{button:!0,loading:!!r},[C[n],C[m],c]),onClick:u?()=>x(!h):i,disabled:r||_,children:r?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:C.label,children:[d&&e.jsx(a,{icon:d}),e.jsx("span",{children:l})]})}),h&&e.jsxs("div",{className:C.confirm,children:[e.jsx("div",{className:C.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:C.confirmActions,children:[e.jsx(D,{type:exports.UIElementType.DANGER,onClick:()=>x(!1),label:"No",size:"xs"}),e.jsx(D,{type:exports.UIElementType.SUCCESS,onClick:()=>{x(!1),i()},label:"Yes",size:"xs"})]})]})]})};var N={iconButton:"IconButton-module_iconButton__PmpB8",noPadding:"IconButton-module_noPadding__Jd2rK",lg:"IconButton-module_lg__KG7lp",md:"IconButton-module_md__s4q7b",sm:"IconButton-module_sm__are9s",xs:"IconButton-module_xs__qYwZc",confirm:"IconButton-module_confirm__-jXH4",confirmMessage:"IconButton-module_confirmMessage__AgI49",confirmActions:"IconButton-module_confirmActions__j7-Tt",topLeft:"IconButton-module_topLeft__aDA0m",bottom:"IconButton-module_bottom__AEpND",isDisabled:"IconButton-module_isDisabled__aGo-9",white:"IconButton-module_white__AzyNN",light:"IconButton-module_light__i3AET",active:"IconButton-module_active__popsF",lightDark:"IconButton-module_lightDark__d7NQy",lightDanger:"IconButton-module_lightDanger__bIg02",lightInfo:"IconButton-module_lightInfo__820It",lightPrimary:"IconButton-module_lightPrimary__SCrg-",lightSecondary:"IconButton-module_lightSecondary__vN-aS",lightWarning:"IconButton-module_lightWarning__z1iaR",lightSuccess:"IconButton-module_lightSuccess__mUSnD",primary:"IconButton-module_primary__qjfR5",secondary:"IconButton-module_secondary__-CufX",danger:"IconButton-module_danger__lz3tP",dark:"IconButton-module_dark__QiBJk",info:"IconButton-module_info__eawU-",success:"IconButton-module_success__xkDzZ",warning:"IconButton-module_warning__DhbfD",whiteText:"IconButton-module_whiteText__111Ju",default:"IconButton-module_default__j2U57",borderedPrimary:"IconButton-module_borderedPrimary__DHXJQ",borderedSecondary:"IconButton-module_borderedSecondary__13GNA",flexWide:"IconButton-module_flexWide__BGOfY",slidein:"IconButton-module_slidein__Rmpl5",fadeInOut:"IconButton-module_fadeInOut__Z2E5a",heightAnimation:"IconButton-module_heightAnimation__JnqnZ",fadein:"IconButton-module_fadein__uX9ut",floatAnimation:"IconButton-module_floatAnimation__N-INw"},w={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW"};const y=({hint:o,children:n,position:i="top"})=>e.jsxs("div",{className:w.tooltip,children:[!!o&&e.jsx("div",{className:`${w.hint} ${w[i]}`,children:e.jsx("span",{children:o})}),n]}),B=({icon:n,onClick:i,type:l=exports.UIElementType.DEFAULT,needConfirm:d=!1,noPadding:s=!1,isLoading:r=!1,size:_="sm",confirmPosition:c="top",isActive:u=!1,isDisabled:m=!1,confirmMessage:h,yesTitle:x,noTitle:g,tooltip:p})=>{const[f,v]=o.useState(!1),j=m||r?void 0:i;return e.jsx((({children:o})=>p?e.jsx(y,{hint:p,children:o}):e.jsx(e.Fragment,{children:o})),{children:e.jsxs("div",{className:t(N,{iconButton:!0,noPadding:s,active:u,isDisabled:m},[N[l],N[_]]),onClick:d?()=>v(!f):j,children:[e.jsx(a,{isLoading:r,icon:n,size:_}),f&&e.jsx((()=>e.jsxs("div",{className:`${N.confirm} ${N[c]}`,children:[e.jsx("div",{className:N.confirmMessage,children:h||"Are you sure?"}),e.jsxs("div",{className:N.confirmActions,children:[e.jsx(D,{type:exports.UIElementType.DANGER,onClick:()=>v(!1),label:g||"No",size:"xs"}),e.jsx(D,{type:exports.UIElementType.SUCCESS,onClick:j,label:x||"Yes",size:"xs"})]})]})),{})]})})};var S={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy"};var T={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",sm:"Link-module_sm__FcTWO",md:"Link-module_md__mmLj-",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"};"function"==typeof SuppressedError&&SuppressedError;var O={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",prefix:"Input-module_prefix__-1end",addon:"Input-module_addon__1cKdz",pointer:"Input-module_pointer__EsKoB",error:"Input-module_error__38tit",avatar:"Input-module_avatar__GJUWC",autoCompleteContent:"Input-module_autoCompleteContent__4anQc",reversed:"Input-module_reversed__dU1hV",transparent:"Input-module_transparent__ko36m",small:"Input-module_small__5vYiK",xsmall:"Input-module_xsmall__-9hXW",hasPrefix:"Input-module_hasPrefix__fU508",hasAddon:"Input-module_hasAddon__mruPW",darkMode:"Input-module_darkMode__DLx4Y",flexWide:"Input-module_flexWide__4Wn1k",slidein:"Input-module_slidein__XYim1",fadeInOut:"Input-module_fadeInOut__bnAwc",heightAnimation:"Input-module_heightAnimation__tmt9Z",fadein:"Input-module_fadein__1HtqV",floatAnimation:"Input-module_floatAnimation__sYawG"};const W=(e,o)=>{const n=new FileReader;n.onload=()=>{o(n.result)},n.readAsDataURL(e)};var E;exports.InputType=void 0,(E=exports.InputType||(exports.InputType={})).TEXT="text",E.PASSWORD="password",E.EMAIL="email",E.NUMBER="number",E.URL="url",E.TEL="tel",E.DATE="date",E.DATETIME="datetime",E.SELECT="select",E.COLOR_PICKER="color-picker",E.TEXT_AREA="text-area",E.AVATAR_UPLOAD="avatar-upload",E.UPLOAD_IMAGE_ICON="upload-image-icon",E.DND="dnd",E.CHECKBOX="checkbox";const P=({isLoading:o,value:n,isDisabled:i,placeholder:t,options:l,name:d,onBlur:s,onFocus:r,onChange:_,preIcon:c,addonIcon:u,addonAction:m})=>e.jsxs(e.Fragment,{children:[c&&e.jsx("div",{className:O.preIcon,children:e.jsx(a,{icon:c,isLoading:o})}),e.jsxs("select",{className:O.field,value:n,onBlur:s,onFocus:r,onChange:_,name:d,disabled:i,children:[t&&e.jsx("option",{value:"",children:t}),l.map((({label:o,value:n})=>e.jsx("option",{value:n,children:o},n)))]}),u&&e.jsx("div",{className:m?`${O.addon} ${O.pointer}`:O.addon,onClick:m,children:e.jsx(a,{icon:u,isLoading:o})})]});var M={container:"DnD-module_container__zFojN",dropZone:"DnD-module_dropZone__OJnfw",placeholder:"DnD-module_placeholder__Fkhl4",dropLabel:"DnD-module_dropLabel__TDGan",input:"DnD-module_input__FKtwE",selectedImage:"DnD-module_selectedImage__DsvPl",removeImage:"DnD-module_removeImage__zMc3L",rectangle:"DnD-module_rectangle__cnjIE",square:"DnD-module_square__mc3tn",circle:"DnD-module_circle__kXFaZ",isDragOver:"DnD-module_isDragOver__vfTwp",flexWide:"DnD-module_flexWide__sqZP0",slidein:"DnD-module_slidein__bPiSA",fadeInOut:"DnD-module_fadeInOut__QCEYD",heightAnimation:"DnD-module_heightAnimation__OGSUd",fadein:"DnD-module_fadein__eyNza",floatAnimation:"DnD-module_floatAnimation__PwKWB"};const H=({value:n,placeholder:i,isMultiUpload:l,dndShape:a="rectangle",isDisabled:d,className:s,onFilesSelect:r,onFileSelect:c})=>{const[u,m]=o.useState(!1),h=e=>{if(e&&e.length>0){if(l&&r)return r(e);const o=e[0];W(o,(e=>{c&&c(o,e)}))}};return e.jsx("div",{className:t(M,{container:!0,isDragOver:u}),children:e.jsx("div",{onDrop:e=>{if(e.preventDefault(),d)return;const o=e.dataTransfer.files;h(o)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>m(!0),onDragLeave:()=>m(!1),className:t(M,{dropZone:!0},[M[a],s]),children:n?e.jsxs("div",{className:M.selectedImage,children:[e.jsx("img",{src:String(n),alt:i}),e.jsx("div",{className:M.removeImage,children:e.jsx(B,{onClick:()=>{c&&c(null,"")},icon:_,type:exports.UIElementType.BORDERED_PRIMARY})})]}):e.jsxs("label",{className:M.dropLabel,children:[e.jsx("span",{className:M.placeholder,children:i||"Drop file"}),e.jsx("input",{type:"file",className:M.input,hidden:!0,onChange:e=>{const o=e.target;h(o.files)},disabled:d})]})})})};var R={container:"TextArea-module_container__uff42",field:"TextArea-module_field__kapQk",hasPrefix:"TextArea-module_hasPrefix__flVwo",prefix:"TextArea-module_prefix__vGIaC",flexWide:"TextArea-module_flexWide__staBL",slidein:"TextArea-module_slidein__-OBuL",fadeInOut:"TextArea-module_fadeInOut__aNBV4",heightAnimation:"TextArea-module_heightAnimation__mZG0q",fadein:"TextArea-module_fadein__30AAW",floatAnimation:"TextArea-module_floatAnimation__x6a8y"};const F=({value:o,placeholder:n,autoFocus:i,ref:l,isDisabled:a,prefix:d,rows:s=3,onBlur:r,onFocus:_,onChange:c})=>e.jsxs("div",{className:t(R,{container:!0,hasPrefix:!!d}),children:[!!d&&e.jsx("div",{className:R.prefix,children:e.jsx("span",{children:d})}),e.jsx("textarea",{className:R.field,value:o,placeholder:n,onBlur:r,onFocus:_,onChange:c,autoFocus:i,ref:l,disabled:a,rows:s})]});var z={};const U=()=>e.jsx("div",{className:z.container,children:"CHECKBOX"}),G=o.forwardRef((function(n,i){var{type:l=exports.InputType.TEXT,label:d,placeholder:s,value:r,required:_=!1,addonIcon:c,preIcon:m,addonText:h,labelAddon:x,errorMessage:g,options:p=[],fullWidth:f,avatarSize:v,source:j,autoCompleteContent:I,autoCompleteReverse:A=!1,noMargin:k=!1,isDisabled:L=!1,isLoading:C=!1,isMultiUpload:D=!1,autoFocus:N=!1,theme:w="oval",size:y="medium",isDarkMode:B=!1,dndShape:S,name:T,prefix:E,rows:M,className:R,onBlur:z,onFocus:G,onChange:Y,addonAction:V,onEnter:X,onEsc:q,onFileSelect:Z,onFilesSelect:K}=n,J=function(e,o){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(n[i[t]]=e[i[t]])}return n}(n,["type","label","placeholder","value","required","addonIcon","preIcon","addonText","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","dndShape","name","prefix","rows","className","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const Q=L||C,$=e=>{switch(e.key){case"Enter":X&&X();break;case"Escape":q&&q()}},ee=e=>{const o=e.target.files[0];W(o,(e=>{Z&&Z(o,e)}))},oe=e=>{const o=e.target;K&&K(o.files)};return e.jsxs("div",{className:t(O,{input:!0,full:!!f,noMargin:k,hasAddon:!!c||!!h,hasPrefix:!!E,darkMode:B},[O[w],O[y]]),children:[d&&e.jsxs("label",{children:[e.jsx("span",{className:_?O.required:"",children:d}),!!x&&e.jsx("div",{className:O.labelAddon,children:x})]}),e.jsx("div",{className:O.container,children:(()=>{switch(l){case exports.InputType.SELECT:return e.jsx(P,{preIcon:m,isLoading:C,value:r,isDisabled:L,placeholder:s,options:p,onBlur:z,onFocus:G,onChange:Y,addonAction:V,addonIcon:c,name:T});case exports.InputType.DND:return e.jsx(H,{onFilesSelect:K,onFileSelect:Z,placeholder:s,value:r,dndShape:S,isDisabled:L,isMultiUpload:D,className:R});case exports.InputType.COLOR_PICKER:return e.jsx("input",Object.assign({className:`${O.field} ${O.colorPicker}`,type:"color",value:r,placeholder:s,onBlur:z,onFocus:G,onChange:Y,disabled:Q,ref:i},J));case exports.InputType.TEXT_AREA:return e.jsx(F,{value:r,placeholder:s,onBlur:z,onFocus:G,onChange:Y,autoFocus:N,ref:i,prefix:E,rows:M});case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(b,{size:v,source:j,isLoading:C,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:D?oe:ee,ref:i,className:O.avatar,disabled:Q,multiple:D})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(a,{icon:u,isLoading:C,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:D?oe:ee,ref:i,className:O.avatar,disabled:Q,multiple:D})]});case exports.InputType.CHECKBOX:return e.jsx(U,{});default:return e.jsxs(o.Fragment,{children:[!!E&&e.jsx("div",{className:O.prefix,children:e.jsx("span",{children:E})}),e.jsx("input",Object.assign({className:O.field,type:l,placeholder:s,value:r,onBlur:z,onFocus:G,onChange:Y,onKeyUp:$,ref:i,disabled:Q,autoFocus:N,name:T},J)),c&&e.jsx("div",{className:V?`${O.addon} ${O.pointer}`:O.addon,onClick:V,children:e.jsx(a,{icon:c,isLoading:C})}),h&&e.jsx("div",{className:V?`${O.addon} ${O.pointer}`:O.addon,onClick:V,children:h})]})}})()}),!!g&&e.jsx("div",{className:O.error,children:g}),!!I&&e.jsx("div",{className:t(O,{autoCompleteContent:!0,reversed:A}),children:I})]})}));var Y={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5"};const V=(e,n)=>{const i=o=>{e.current&&!e.current.contains(o.target)&&n()};o.useEffect((()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)})),[])},X=({containerRef:i,contentRef:t,isOpen:l=!1,renderChild:a,onClose:d})=>{const s={isOpen:!1,top:0,left:0,bottom:0,right:0},[r,_]=o.useState(s),c={position:"absolute",top:r.top,left:r.left,bottom:r.bottom,right:r.right,zIndex:111},u=()=>{_(s),d()};return V(i,(()=>u())),o.useEffect((()=>{if(l)return(()=>{var e,o,n,l,a,d,s;const{top:r,left:c,height:u,width:m}=null!==(n=null===(o=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==n?n:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:x}=window,g=h-(r+u),p=r,f=c,v=x-(c+m),j=null!==(a=null===(l=null==t?void 0:t.current)||void 0===l?void 0:l.clientHeight)&&void 0!==a?a:200,I=null!==(s=null===(d=null==t?void 0:t.current)||void 0===d?void 0:d.clientWidth)&&void 0!==s?s:200;let A="auto",k="auto",b="auto",L="auto";g<j&&p>=j?L=h-r-u+20:k=r+u+5,v<I&&f>=I?b=x-c:A=c;const C={top:k,left:A,right:b,bottom:L};_(Object.assign(Object.assign({},C),{isOpen:!0}))})();u()}),[l,null==i?void 0:i.current]),r.isOpen?n.createPortal(e.jsx("div",{style:c,onClick:e=>{e.stopPropagation()},children:a(r)}),document.getElementById("portals")):null},q=({children:o})=>e.jsx("div",{className:Y.menu,children:o});var Z={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"};var K={container:"Accordion-module_container__6rGl0",header:"Accordion-module_header__AYOT5",body:"Accordion-module_body__4IgEa",content:"Accordion-module_content__RyBzl",isOpen:"Accordion-module_isOpen__Bmf-c",flexWide:"Accordion-module_flexWide__Pmyu-",slidein:"Accordion-module_slidein__NIsrY",fadeInOut:"Accordion-module_fadeInOut__Ub-rg",heightAnimation:"Accordion-module_heightAnimation__nT1oQ",fadein:"Accordion-module_fadein__KprHu",floatAnimation:"Accordion-module_floatAnimation__d-fsP"};const J=({title:n,content:i})=>{const[l,d]=o.useState(!1);return e.jsxs("div",{className:t(K,{container:!0,isOpen:l}),onClick:()=>d(!l),children:[e.jsxs("div",{className:K.header,children:[e.jsx("h3",{children:n}),e.jsx(a,{icon:l?f:v,size:"md"})]}),e.jsx("div",{className:K.body,children:e.jsx("div",{className:K.content,children:i})})]})};var Q={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",fullWidth:"Card-module_fullWidth__HpLSP",fullHeight:"Card-module_fullHeight__Ngt-E",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu"},$={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm"};const ee=({size:o="md",title:n,subtitle:i})=>e.jsxs("div",{className:$.heading,children:[e.jsx("div",{className:`${$.title} ${$[o]}`,children:n}),i&&e.jsx("div",{className:$.subtitle,children:i})]});var oe={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP"};const ne=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var ie;!function(e){e.SEEN="seen"}(ie||(ie={}));var te={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",fullWidth:"Container-module_fullWidth__BIlSl",flexWide:"Container-module_flexWide__UYxLw",slidein:"Container-module_slidein__2HqKN",fadeInOut:"Container-module_fadeInOut__OfzxZ",heightAnimation:"Container-module_heightAnimation__UR715",fadein:"Container-module_fadein__9rDYD",floatAnimation:"Container-module_floatAnimation__6Lcjo"};const le=({className:o="",children:n,noPadding:i=!1,fullWidth:l=!1})=>e.jsx("div",{className:t(te,{container:!0,noPadding:i,fullWidth:l},[o]),children:n});var ae="Header-module_header__qxHtx",de="Header-module_content__DV-in",se="Header-module_logo__xO2bW",re="Header-module_mobileLogo__eNvSP",_e="Header-module_actions__ZlACk",ce="Header-module_mobileMenuIcon__pFpba",ue="Header-module_menu__Yw9r6",me="Header-module_mobileMenu__4S-NE";var he={container:"Section-module_container__3n1V-",header:"Section-module_header__uP6hi",subtitle:"Section-module_subtitle__8Y9SH",gradient:"Section-module_gradient__xroL-",black:"Section-module_black__xbyiN",dark:"Section-module_dark__5IiQW",flexWide:"Section-module_flexWide__jFoW4",slidein:"Section-module_slidein__gRGLr",fadeInOut:"Section-module_fadeInOut__yLFY5",heightAnimation:"Section-module_heightAnimation__7ap3B",fadein:"Section-module_fadein__Jbv0F",floatAnimation:"Section-module_floatAnimation__g2TfT"};const xe=({title:o,subtitle:n,theme:i="light",children:l,className:a})=>e.jsxs("div",{className:t(he,{container:!0},[he[i],a]),children:[e.jsxs("div",{className:he.header,children:[e.jsx("h2",{children:o}),!!n&&e.jsx("div",{className:he.subtitle,children:n})]}),e.jsx("div",{className:he.body,children:l})]});var ge="FAQ-module_container__Kht11";var pe={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"};var fe={description:"Description-module_description__ENVu-",xl:"Description-module_xl__GtUSA",lg:"Description-module_lg__ENF-W",m:"Description-module_m__RqjBl",s:"Description-module_s__RAro3",xs:"Description-module_xs__0chE0",noSpacing:"Description-module_noSpacing__746UN",lighter:"Description-module_lighter__y-rC3",flexWide:"Description-module_flexWide__CEoWm",slidein:"Description-module_slidein__ZJBnB",fadeInOut:"Description-module_fadeInOut__ZdTzP",heightAnimation:"Description-module_heightAnimation__v2n3a",fadein:"Description-module_fadein__bPsva",floatAnimation:"Description-module_floatAnimation__Cq8oz"};var ve={alert:"AlertBox-module_alert__y9n9e",inline:"AlertBox-module_inline__upbhQ",error:"AlertBox-module_error__anhZO",success:"AlertBox-module_success__80DOT",icon:"AlertBox-module_icon__FLy1Y",actions:"AlertBox-module_actions__fgPt7","supeer-icon-button":"AlertBox-module_supeer-icon-button__8oUJ8",message:"AlertBox-module_message__ssD6S",flexWide:"AlertBox-module_flexWide__isTSZ",slidein:"AlertBox-module_slidein__BNFh5",fadeInOut:"AlertBox-module_fadeInOut__DW6jj",heightAnimation:"AlertBox-module_heightAnimation__AMoVU",fadein:"AlertBox-module_fadein__5wonR",floatAnimation:"AlertBox-module_floatAnimation__rXaKh"};var je="Loading-module_loading__7gLQd",Ie="Loading-module_image__gig5S";var Ae={container:"Row-module_container__XmQql",fullHeight:"Row-module_fullHeight__Inxzs",fullWidth:"Row-module_fullWidth__cz2RH"};const ke=({alignItems:o="center",justifyContent:n="flex-start",flexWrap:i="nowrap",gap:l=1,fullHeight:a=!1,fullWidth:d=!0,children:s,className:r})=>e.jsx("div",{className:t(Ae,{container:!0,fullHeight:a,fullWidth:d},[r]),style:{alignItems:o,justifyContent:n,flexWrap:i,gap:`${l}rem`},children:s});var be={container:"Column-module_container__Sqvfx",fullHeight:"Column-module_fullHeight__W87C5",fullWidth:"Column-module_fullWidth__lUQrj"};const Le=({alignItems:o="flex-start",justifyContent:n="flex-start",gap:i=1,fullHeight:l=!1,fullWidth:a=!0,children:d,marginBottom:s=0,className:r})=>e.jsx("div",{className:t(be,{container:!0,fullHeight:l,fullWidth:a},[r]),style:{alignItems:o,justifyContent:n,gap:`${i}rem`,marginBottom:`${s}rem`},children:d});var Ce={container:"Flex-module_container__f80QI",grow:"Flex-module_grow__z7OVe",fullHeight:"Flex-module_fullHeight__d4p45",fullWidth:"Flex-module_fullWidth__m4XF-",item:"Flex-module_item__GwWE3",shrink:"Flex-module_shrink__LwfYE"};const De=({children:o,grow:n,shrink:i,className:l,fullHeight:a,fullWidth:d,flex:s})=>e.jsx("div",{className:t(Ce,{item:!0,grow:n,shrink:i,fullHeight:a,fullWidth:d},[l]),style:{flex:s},children:o}),Ne=({children:o,alignItems:n,justifyContent:i,flexWrap:l,gap:a,className:d,direction:s,grow:r,fullHeight:_,fullWidth:c})=>e.jsx("div",{className:t(Ce,{container:!0,fullHeight:_,fullWidth:c,grow:r},[d]),style:{alignItems:n,justifyContent:i,flexWrap:l,flexDirection:s,gap:`${a}rem`},children:o});De.displayName="Flex.Item",Ne.Item=De;var we={container:"IconLink-module_container__DPEQm",xxs:"IconLink-module_xxs__VR--q",xs:"IconLink-module_xs__7kP8f",sm:"IconLink-module_sm__VTyu1",md:"IconLink-module_md__YaLm6",lg:"IconLink-module_lg__mEFFB",xl:"IconLink-module_xl__SFhG7",xxl:"IconLink-module_xxl__bxRt7",xxxl:"IconLink-module_xxxl__-ah4f",circle:"IconLink-module_circle__SszO0",light:"IconLink-module_light__ntSbm",dark:"IconLink-module_dark__3JP27",flexWide:"IconLink-module_flexWide__kFlaC",slidein:"IconLink-module_slidein__L3sxO",fadeInOut:"IconLink-module_fadeInOut__UZw3F",heightAnimation:"IconLink-module_heightAnimation__XWKzZ",fadein:"IconLink-module_fadein__mu-Q-",floatAnimation:"IconLink-module_floatAnimation__Upk7f"};var ye="Carousel-module_container__voMge",Be="Carousel-module_carousel__cXGTr",Se="Carousel-module_item__umQ-j";var Te={box:"Chip-module_box__bPxl6",large:"Chip-module_large__vYrP6",small:"Chip-module_small__53iJq",clickable:"Chip-module_clickable__dzpKp",light:"Chip-module_light__29AuI",active:"Chip-module_active__BlTSF",lightDark:"Chip-module_lightDark__XNFQ7",lightDanger:"Chip-module_lightDanger__rLWTT",lightInfo:"Chip-module_lightInfo__lhtRG",lightPrimary:"Chip-module_lightPrimary__YzHWA",lightSecondary:"Chip-module_lightSecondary__qXcsD",lightWarning:"Chip-module_lightWarning__DDYW3",lightSuccess:"Chip-module_lightSuccess__n5gp5",primary:"Chip-module_primary__rvetC",secondary:"Chip-module_secondary__pLu90",danger:"Chip-module_danger__OJzar",dark:"Chip-module_dark__OOepT",info:"Chip-module_info__gtJS1",success:"Chip-module_success__0GXdc",warning:"Chip-module_warning__NBLbz",whiteText:"Chip-module_whiteText__zg28n",default:"Chip-module_default__AZUs1",borderedPrimary:"Chip-module_borderedPrimary__bRpmY",borderedSecondary:"Chip-module_borderedSecondary__JgMYX",flexWide:"Chip-module_flexWide__j8zBM",slidein:"Chip-module_slidein__qMh2s",fadeInOut:"Chip-module_fadeInOut__X5Sw2",heightAnimation:"Chip-module_heightAnimation__OA0dv",fadein:"Chip-module_fadein__CkDEY",floatAnimation:"Chip-module_floatAnimation__PMaOv"};var Oe={container:"Modal-module_container__UCuJv",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9",footer:"Modal-module_footer__Oyz-R",full:"Modal-module_full__13hJb",medium:"Modal-module_medium__JRDXg",large:"Modal-module_large__O42Af",noFooter:"Modal-module_noFooter__GYvYN",noBodyPadding:"Modal-module_noBodyPadding__Pdh9C",flexWide:"Modal-module_flexWide__VReva",slidein:"Modal-module_slidein__ndLPJ",fadeInOut:"Modal-module_fadeInOut__c5Sgq",heightAnimation:"Modal-module_heightAnimation__E3smD",fadein:"Modal-module_fadein__vroAa",floatAnimation:"Modal-module_floatAnimation__dU3VL"};const We=o.forwardRef((function({title:o,content:n,header:i,footer:l,size:a="small",noBodyPadding:d=!1,onClose:s},r){return e.jsxs("div",{className:t(Oe,{container:!0,noFooter:!l,noBodyPadding:d},[Oe[a]]),ref:r,children:[!o&&i&&e.jsx("div",{className:Oe.header,children:i}),o&&e.jsx("div",{className:Oe.header,children:e.jsxs(ke,{alignItems:"center",justifyContent:"space-between",children:[e.jsx("span",{children:o}),s&&e.jsx(B,{icon:_,onClick:s})]})}),e.jsx("div",{className:Oe.body,children:n}),l&&e.jsx("div",{className:Oe.footer,children:l})]})}));var Ee={text:"Text-module_text__XXjeA",bodyText:"Text-module_bodyText__RqN1G",medium:"Text-module_medium__FoS2D",bold:"Text-module_bold__ZRBJh",small:"Text-module_small__-48A8",muted:"Text-module_muted__y62HX",h1:"Text-module_h1__qG6Jy",h2:"Text-module_h2__iPght",h3:"Text-module_h3__J0LDJ",h4:"Text-module_h4__4t9ri",h5:"Text-module_h5__ltcQp",flexWide:"Text-module_flexWide__fCAfU",slidein:"Text-module_slidein__ccSy8",fadeInOut:"Text-module_fadeInOut__JByvu",heightAnimation:"Text-module_heightAnimation__5YkEI",fadein:"Text-module_fadein__Fcz-y",floatAnimation:"Text-module_floatAnimation__2IgQs"};var Pe={container:"Sidebar-module_container__bFisq",content:"Sidebar-module_content__vZb3P",brand:"Sidebar-module_brand__VRO-7",logout:"Sidebar-module_logout__UVk40",menuItem:"Sidebar-module_menuItem__gfM9S",isActive:"Sidebar-module_isActive__E4MAv",children:"Sidebar-module_children__MddxS",flexWide:"Sidebar-module_flexWide__Znxtb",slidein:"Sidebar-module_slidein__HO12l",fadeInOut:"Sidebar-module_fadeInOut__1JeD4",heightAnimation:"Sidebar-module_heightAnimation__ZA4xz",fadein:"Sidebar-module_fadein__DOVw-",floatAnimation:"Sidebar-module_floatAnimation__lcIqC"},Me={};const He=({children:o,hasSubmenu:n=!1,path:i,LibLink:l,className:a,onSelectParent:d})=>n?e.jsx("div",{className:t(Me,{parent:!0},[a]),onClick:()=>d(i),children:o}):e.jsx(l,{to:i,className:t(Me,{parent:!0},[a]),onClick:()=>d(null),children:o});var Re="PageLoading-module_container__ZRh7g";var Fe={container:"Table-module_container__BsXT7",left:"Table-module_left__MPER1",right:"Table-module_right__gIcbO",center:"Table-module_center__sEdB2",centered:"Table-module_centered__liK0J",muted:"Table-module_muted__175Ax",flexWide:"Table-module_flexWide__ZT7bf",slidein:"Table-module_slidein__iS-HW",fadeInOut:"Table-module_fadeInOut__kkH6U",heightAnimation:"Table-module_heightAnimation__m6BZj",fadein:"Table-module_fadein__6ldtc",floatAnimation:"Table-module_floatAnimation__MN-bL"};exports.Accordion=J,exports.AlertBox=({message:o,onClear:n,onReload:i,type:l,inline:d=!1})=>e.jsxs("div",{className:t(ve,{alert:!0,inline:d},[ve[l]]),children:[e.jsx("div",{className:ve.icon,children:e.jsx(a,{icon:c,size:"md",theme:"dark"})}),e.jsx("div",{className:ve.message,children:o}),e.jsxs("div",{className:ve.actions,children:[i&&e.jsx(B,{icon:j,onClick:i,type:exports.UIElementType.WHITE_TEXT}),e.jsx(B,{icon:_,onClick:n,type:exports.UIElementType.WHITE_TEXT})]})]}),exports.Avatar=b,exports.Button=D,exports.Card=({title:o,subtitle:n,children:i,toolbar:l,footer:a,separated:d=!1,borderTopWidth:s,borderTopColor:r,noBottomMargin:_=!1,noBodyPadding:c=!1,fullHeight:u=!1,fullWidth:m=!1})=>{const h=s?`${s}px solid ${r}`:"none";return e.jsxs("div",{className:t(Q,{card:!0,separated:d,noBottomMargin:_,noBodyPadding:c,fullHeight:u,fullWidth:m}),style:Object.assign({},s&&{borderTop:h}),children:[(l||o)&&e.jsxs("div",{className:Q.header,children:[e.jsxs("div",{className:Q.headerInfo,children:[o&&e.jsx("div",{className:Q.headerTitle,children:e.jsx(ee,{size:"sm",title:o})}),n&&e.jsx("div",{className:Q.headerSubtitle,children:n})]}),l&&e.jsx("div",{className:Q.headerToolbar,children:l})]}),e.jsx("div",{className:Q.body,children:i}),a&&e.jsx("div",{className:Q.footer,children:a})]})},exports.Carousel=({children:n,gap:i=2,onGetRef:t})=>{const l=o.useRef(null),[a,d]=o.useState(!1),[s,r]=o.useState(0),[_,c]=o.useState(0),u=()=>{d(!1)};return o.useEffect((()=>{(null==l?void 0:l.current)&&t&&t(l)}),[null==l?void 0:l.current,t]),e.jsx("div",{className:ye,children:e.jsx("div",{className:Be,ref:l,onMouseDown:e=>{var o,n;d(!0),r(e.pageX-((null===(o=l.current)||void 0===o?void 0:o.offsetLeft)||0)),c((null===(n=l.current)||void 0===n?void 0:n.scrollLeft)||0)},onMouseLeave:u,onMouseUp:u,onMouseMove:e=>{var o;if(!a)return;const n=e.pageX-((null===(o=l.current)||void 0===o?void 0:o.offsetLeft)||0)-s;l.current&&(l.current.scrollLeft=_-n)},style:{gap:`${i}rem`,cursor:a?"grabbing":"grab"},children:n})})},exports.CarouselItem=({children:o})=>e.jsx("div",{className:Se,children:o}),exports.Chip=({onClick:o,className:n="",children:i,type:l=exports.UIElementType.LIGHT,size:a="medium",active:d=!1})=>e.jsx("div",{className:t(Te,{box:!0,clickable:!!o,active:d},[Te[l],Te[a],n]),onClick:o,children:i}),exports.Column=Le,exports.ContactsList=({domain:o,socialLinks:n,address:i,reportLabel:t,writeUsLabel:l,followUsLabel:d,addressLabel:s})=>e.jsxs("div",{className:pe.container,children:[e.jsxs("div",{className:pe.contact,children:[e.jsx("div",{className:pe.icon,children:e.jsx(a,{icon:p,size:"xl"})}),e.jsxs("div",{className:pe.content,children:[e.jsx("div",{className:pe.title,children:t||"Report"}),e.jsx("div",{className:pe.value,children:e.jsxs("a",{href:`mailto:feedback@${o}`,children:["feedback@",o]})})]})]}),e.jsxs("div",{className:pe.contact,children:[e.jsx("div",{className:pe.icon,children:e.jsx(a,{icon:h,size:"xl"})}),e.jsxs("div",{className:pe.content,children:[e.jsx("div",{className:pe.title,children:l||"Write us"}),e.jsx("div",{className:pe.value,children:e.jsxs("a",{href:`mailto:contact@${o}`,children:["contact@",o]})})]})]}),e.jsxs("div",{className:pe.contact,children:[e.jsx("div",{className:pe.icon,children:e.jsx(a,{icon:I,size:"xl"})}),e.jsxs("div",{className:pe.content,children:[e.jsx("div",{className:pe.title,children:d||"Follow us"}),e.jsx("div",{className:pe.value,children:e.jsx("ul",{children:n.map((({url:o,icon:n})=>e.jsx("li",{children:e.jsx("a",{href:o,target:"_blank",children:e.jsx(a,{icon:n,size:"md"})})},o)))})})]})]}),e.jsxs("div",{className:pe.contact,children:[e.jsx("div",{className:pe.icon,children:e.jsx(a,{icon:x,size:"xl"})}),e.jsxs("div",{className:pe.content,children:[e.jsx("div",{className:pe.title,children:s||"Address"}),e.jsx("div",{className:pe.value,children:i})]})]})]}),exports.Container=le,exports.CookieBanner=({appName:n})=>{const[i,t]=o.useState(!1);return o.useEffect((()=>{const e=ne.getCookieBannerState();t(e!==ie.SEEN)}),[]),i?e.jsxs("div",{className:oe.container,children:[e.jsxs("div",{className:oe.content,children:["As ",n,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e.jsx("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e.jsx("div",{className:oe.actions,children:e.jsx(D,{label:"Continue",onClick:()=>{t(!1),ne.saveCookieBannerState(ie.SEEN)}})})]}):null},exports.Description=({size:o="m",text:n,noSpacing:i=!1,className:l="",lighter:a=!1})=>e.jsx("div",{className:t(fe,{description:!0,noSpacing:i,lighter:a},[fe[o],l]),children:n}),exports.DropDown=({action:n,menu:i,type:l=exports.UIElementType.DEFAULT,closeRef:a,actionSize:d="medium"})=>{const s=o.useRef(null),r=o.useRef(null),_=o.useRef(null),[c,u]=o.useState(!1),m=()=>u(!1);return o.useEffect((()=>{(null==a?void 0:a.current)&&(a.current={close:()=>m()})}),[a]),e.jsxs("div",{className:Y.container,ref:s,children:[e.jsx("div",{className:t(Y,{action:!0},[Y[l],Y[d]]),ref:_,onClick:()=>u(!c),children:n}),e.jsx(X,{containerRef:s,contentRef:r,isOpen:c,onClose:m,renderChild:()=>e.jsx("div",{className:Y.menuContainer,ref:r,children:e.jsx(q,{children:i})})})]})},exports.FAQ=({items:o,title:n})=>e.jsx(xe,{title:n||"Frequently asked questions",children:e.jsx("div",{className:ge,children:o.map((({title:o,content:n})=>e.jsx(J,{title:o,content:n},o)))})}),exports.Flex=Ne,exports.Header=({logo:n,menu:i,actions:t=null})=>{const[l,a]=o.useState(!1);return e.jsxs("header",{className:ae,children:[e.jsx(le,{children:e.jsxs("div",{className:de,children:[e.jsx("a",{href:"/",className:se,children:n}),e.jsx("a",{href:"/",className:re,children:n}),!!i&&e.jsx("div",{className:ue,children:i}),e.jsxs("div",{className:_e,children:[t,!!i&&e.jsx("div",{className:ce,children:e.jsx(B,{icon:l?_:g,onClick:()=>a(!l),size:"lg"})})]})]})}),l&&e.jsx("div",{className:me,children:i})]})},exports.Heading=ee,exports.IconButton=B,exports.IconLink=({icon:o,shape:n,target:i,size:l="xs",href:d,theme:s="light",title:r=""})=>e.jsx("a",{className:t(we,{container:!0},[we[n],we[l],we[s]]),href:d,target:i,rel:"noopener noreferrer",title:r,children:e.jsx(a,{icon:o,size:l,theme:s})}),exports.Input=G,exports.Link=({href:o,title:n,target:i="_self",type:l=exports.UIElementType.DEFAULT,padding:d="zero",hasChevron:s=!1,fullWidth:_=!1})=>e.jsxs("a",{href:o,target:i,rel:"noopener noreferrer",className:t(T,{link:!0,fullWidth:_},[T[l],T[d]]),children:[e.jsx("span",{children:n})," ",s&&e.jsx(a,{icon:r})]}),exports.ListItem=({title:o,subtitle:n,actionTitle:i="",action:l,completed:d,indicator:r,hasSeparator:_=!1,hasDashedSeparator:c=!1,isActionPending:u=!1})=>e.jsxs("div",{className:t(S,{listItem:!0,separator:_,dashedSeparator:c}),children:[e.jsxs("div",{className:S.content,children:[r&&e.jsx("div",{className:t(S,{indicator:!0},[S[r]])}),e.jsxs("div",{className:S.data,children:[e.jsx("div",{className:S.title,children:o}),n&&e.jsx("div",{className:S.subtitle,children:n})]})]}),l&&e.jsx(D,{onClick:l,className:S.action,label:i,isLoading:u}),d&&e.jsx("div",{className:S.completed,children:e.jsx(a,{icon:s})})]}),exports.Loading=({image:o})=>e.jsx("div",{className:je,children:e.jsx("img",{src:o,alt:"Loading...",className:Ie})}),exports.LoadingItem=({shape:o="square",size:n="md",width:i,height:l})=>e.jsx("div",{className:t(Z,{container:!0},[Z[o],Z[n]]),style:{width:i,height:l}}),exports.Modal=We,exports.PageLoading=({loadingGif:o=""})=>e.jsx("div",{className:Re,children:e.jsx("img",{src:o,alt:"Loading..."})}),exports.Row=ke,exports.SVGIcon=a,exports.Section=xe,exports.Sidebar=({avatar:o,brandName:n,isChildrenVisible:i,menuChildren:l,logoutHint:d,user:s=null,menuItems:r=[],LibLink:_,onSelectParent:c,onLogout:u})=>e.jsxs("aside",{className:Pe.container,children:[e.jsxs("div",{className:Pe.content,children:[e.jsx(He,{LibLink:_,path:"/",onSelectParent:c,children:e.jsx("div",{className:Pe.brand,children:e.jsx(y,{hint:n,position:"right",children:o})})}),e.jsx(Le,{alignItems:"center",children:r.map((({path:o,title:n,shortTitle:i,icon:l,hasSubmenu:d,isActive:s},r)=>e.jsxs(He,{LibLink:_,path:o||"",onSelectParent:c,hasSubmenu:d,className:t(Pe,{menuItem:!0,isActive:s}),children:[l&&e.jsx(a,{icon:l}),e.jsx("span",{children:i||n})]},r)))}),e.jsxs(Le,{className:Pe.bottom,justifyContent:"flex-start",alignItems:"center",children:[s&&e.jsx("div",{className:Pe.user,children:s}),e.jsx("div",{className:Pe.logout,onClick:u,children:e.jsx(y,{hint:d||"Logout",position:"right",children:e.jsx(a,{icon:m})})})]})]}),e.jsx("div",{className:t(Pe,{children:!0,isActive:!!i}),children:l})]}),exports.Table=({children:o})=>e.jsx("div",{className:Fe.container,children:e.jsx("table",{children:o})}),exports.TableBody=({children:o})=>e.jsx("tbody",{children:o}),exports.TableCell=({children:o,centered:n=!1,muted:i=!1})=>e.jsx("td",{className:t(Fe,{centered:n,muted:i}),children:o}),exports.TableHead=({children:o})=>e.jsx("thead",{children:o}),exports.TableHeadCell=({children:o,align:n="left"})=>e.jsx("th",{className:Fe[n],children:o}),exports.TableRow=({children:o})=>e.jsx("tr",{children:o}),exports.Text=({variant:o="bodyText",color:n="normal",children:i})=>{const l=(()=>{switch(o){case"h1":case"h2":case"h3":case"h4":case"h5":return o;default:return"div"}})();return e.jsx(l,{className:t(Ee,{text:!0},[Ee[o],Ee[n]]),children:i})},exports.Tooltip=y,exports.classNames=t,exports.getDataTableHeadAlign=(e,o)=>0===e?"left":e===o-1?"right":"center",exports.useClickOutside=V,exports.useClickOutsideRef=e=>{const n=o.useRef(null),i=o.useCallback((o=>{n.current&&!n.current.contains(o.target)&&e()}),[e]);return o.useEffect((()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)})),[i]),n}; | ||
"use strict";var e=require("react/jsx-runtime"),o=require("react"),t=require("react-dom"),n={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi",bottomSheet:"Avatar-module_bottomSheet__5tQTF"};const i=(e,o,t=[])=>{let n=[];for(const t in o)o[t]&&n.push(e[t]);return(null==t?void 0:t.length)>0&&(n=n.concat(t)),n.join(" ")};var l={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",dark:"SVGIcon-module_dark__4QbUi",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr",bottomSheet:"SVGIcon-module_bottomSheet__bwpAG"};const d=({icon:o,size:t="sm",className:n="",isLoading:d=!1,theme:a="light"})=>{const s=(e=>{switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}})(t);return o?e.jsx("div",{className:i(l,{container:!0,isLoading:d},[n,l[a]]),children:e.jsx(o,{className:n,width:s,height:s,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},a=o=>e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:[e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})),s=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})})),_=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),r=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})})),m=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6"})})),c=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})})),u=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m18 8 4 4m0 0-4 4m4-4H9m6-7.796A8.4 8.4 0 0 0 10.667 3C5.88 3 2 7.03 2 12s3.88 9 8.667 9A8.4 8.4 0 0 0 15 19.796"})})),h=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})})),x=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})})),g=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),p=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})})),f=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),v=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),j=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"})})),I=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),b=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),A=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),k=({source:o=null,alt:t="avatar",size:l="sm",onClick:s,className:_,isEditable:r=!1,overlayIcon:m,inline:c=!1,isLoading:u=!1,overlayText:h})=>{const x=()=>{switch(l){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return e.jsxs("div",{className:i(n,{avatar:!0,clickable:!!s||r,editable:r,inline:c,loading:u},[n[l],_]),onClick:s,style:{width:x(),height:x()},children:[o?e.jsx("img",{src:o,alt:t,className:n.image,width:x(),height:x()}):e.jsx(d,{size:l,icon:A}),r&&e.jsx("div",{className:n.editIcon,children:e.jsx(d,{isLoading:u,icon:u?b:a})}),(!!m||h)&&e.jsxs("div",{className:n.overlay,children:[!!m&&e.jsx(d,{isLoading:u,icon:u?b:m}),!!h&&e.jsx("div",{className:n.overlayText,children:h})]})]})};var L,C={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT",bottomSheet:"Button-module_bottomSheet__8KuGn"};exports.UIElementType=void 0,(L=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",L.SECONDARY="secondary",L.DANGER="danger",L.SUCCESS="success",L.WARNING="warning",L.INFO="info",L.LIGHT="light",L.DEFAULT="default",L.DARK="dark",L.LIGHT_PRIMARY="lightPrimary",L.LIGHT_SUCCESS="lightSuccess",L.LIGHT_WARNING="lightWarning",L.LIGHT_INFO="lightInfo",L.LIGHT_DANGER="lightDanger",L.LIGHT_DARK="lightDark",L.LIGHT_SECONDARY="lightSecondary",L.WHITE_TEXT="whiteText",L.BORDERED_PRIMARY="borderedPrimary",L.BORDERED_SECONDARY="borderedSecondary";const D=({type:t=exports.UIElementType.PRIMARY,onClick:n,label:l,icon:a,fullWidth:s=!1,isLoading:_,disabled:r,className:m,needConfirm:c=!1,size:u="md"})=>{const[h,x]=o.useState(!1);return e.jsxs("div",{className:i(C,{container:!0,fullWidth:s}),children:[e.jsx("button",{className:i(C,{button:!0,loading:!!_},[C[t],C[u],m]),onClick:c?()=>x(!h):n,disabled:_||r,children:_?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:C.label,children:[a&&e.jsx(d,{icon:a}),e.jsx("span",{children:l})]})}),h&&e.jsxs("div",{className:C.confirm,children:[e.jsx("div",{className:C.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:C.confirmActions,children:[e.jsx(D,{type:exports.UIElementType.DANGER,onClick:()=>x(!1),label:"No",size:"xs"}),e.jsx(D,{type:exports.UIElementType.SUCCESS,onClick:()=>{x(!1),n()},label:"Yes",size:"xs"})]})]})]})};var S={iconButton:"IconButton-module_iconButton__PmpB8",noPadding:"IconButton-module_noPadding__Jd2rK",lg:"IconButton-module_lg__KG7lp",md:"IconButton-module_md__s4q7b",sm:"IconButton-module_sm__are9s",xs:"IconButton-module_xs__qYwZc",confirm:"IconButton-module_confirm__-jXH4",confirmMessage:"IconButton-module_confirmMessage__AgI49",confirmActions:"IconButton-module_confirmActions__j7-Tt",topLeft:"IconButton-module_topLeft__aDA0m",bottom:"IconButton-module_bottom__AEpND",isDisabled:"IconButton-module_isDisabled__aGo-9",white:"IconButton-module_white__AzyNN",light:"IconButton-module_light__i3AET",active:"IconButton-module_active__popsF",lightDark:"IconButton-module_lightDark__d7NQy",lightDanger:"IconButton-module_lightDanger__bIg02",lightInfo:"IconButton-module_lightInfo__820It",lightPrimary:"IconButton-module_lightPrimary__SCrg-",lightSecondary:"IconButton-module_lightSecondary__vN-aS",lightWarning:"IconButton-module_lightWarning__z1iaR",lightSuccess:"IconButton-module_lightSuccess__mUSnD",primary:"IconButton-module_primary__qjfR5",secondary:"IconButton-module_secondary__-CufX",danger:"IconButton-module_danger__lz3tP",dark:"IconButton-module_dark__QiBJk",info:"IconButton-module_info__eawU-",success:"IconButton-module_success__xkDzZ",warning:"IconButton-module_warning__DhbfD",whiteText:"IconButton-module_whiteText__111Ju",default:"IconButton-module_default__j2U57",borderedPrimary:"IconButton-module_borderedPrimary__DHXJQ",borderedSecondary:"IconButton-module_borderedSecondary__13GNA",flexWide:"IconButton-module_flexWide__BGOfY",slidein:"IconButton-module_slidein__Rmpl5",fadeInOut:"IconButton-module_fadeInOut__Z2E5a",heightAnimation:"IconButton-module_heightAnimation__JnqnZ",fadein:"IconButton-module_fadein__uX9ut",floatAnimation:"IconButton-module_floatAnimation__N-INw",bottomSheet:"IconButton-module_bottomSheet__kVxXt"},N={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW",bottomSheet:"Tooltip-module_bottomSheet__zxZ-Y"};const w=({hint:o,children:t,position:n="top"})=>e.jsxs("div",{className:N.tooltip,children:[!!o&&e.jsx("div",{className:`${N.hint} ${N[n]}`,children:e.jsx("span",{children:o})}),t]}),y=({icon:t,onClick:n,type:l=exports.UIElementType.DEFAULT,needConfirm:a=!1,noPadding:s=!1,isLoading:_=!1,size:r="sm",confirmPosition:m="top",isActive:c=!1,isDisabled:u=!1,confirmMessage:h,yesTitle:x,noTitle:g,tooltip:p})=>{const[f,v]=o.useState(!1),j=u||_?void 0:n;return e.jsx((({children:o})=>p?e.jsx(w,{hint:p,children:o}):e.jsx(e.Fragment,{children:o})),{children:e.jsxs("div",{className:i(S,{iconButton:!0,noPadding:s,active:c,isDisabled:u},[S[l],S[r]]),onClick:a?()=>v(!f):j,children:[e.jsx(d,{isLoading:_,icon:t,size:r}),f&&e.jsx((()=>e.jsxs("div",{className:`${S.confirm} ${S[m]}`,children:[e.jsx("div",{className:S.confirmMessage,children:h||"Are you sure?"}),e.jsxs("div",{className:S.confirmActions,children:[e.jsx(D,{type:exports.UIElementType.DANGER,onClick:()=>v(!1),label:g||"No",size:"xs"}),e.jsx(D,{type:exports.UIElementType.SUCCESS,onClick:j,label:x||"Yes",size:"xs"})]})]})),{})]})})};var B={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy",bottomSheet:"ListItem-module_bottomSheet__CNVf3"};var T={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",sm:"Link-module_sm__FcTWO",md:"Link-module_md__mmLj-",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5",bottomSheet:"Link-module_bottomSheet__thn4L"};"function"==typeof SuppressedError&&SuppressedError;var O={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",prefix:"Input-module_prefix__-1end",addon:"Input-module_addon__1cKdz",pointer:"Input-module_pointer__EsKoB",error:"Input-module_error__38tit",avatar:"Input-module_avatar__GJUWC",autoCompleteContent:"Input-module_autoCompleteContent__4anQc",reversed:"Input-module_reversed__dU1hV",transparent:"Input-module_transparent__ko36m",small:"Input-module_small__5vYiK",xsmall:"Input-module_xsmall__-9hXW",hasPrefix:"Input-module_hasPrefix__fU508",hasAddon:"Input-module_hasAddon__mruPW",darkMode:"Input-module_darkMode__DLx4Y",flexWide:"Input-module_flexWide__4Wn1k",slidein:"Input-module_slidein__XYim1",fadeInOut:"Input-module_fadeInOut__bnAwc",heightAnimation:"Input-module_heightAnimation__tmt9Z",fadein:"Input-module_fadein__1HtqV",floatAnimation:"Input-module_floatAnimation__sYawG",bottomSheet:"Input-module_bottomSheet__sdVE5"};const W=(e,o)=>{const t=new FileReader;t.onload=()=>{o(t.result)},t.readAsDataURL(e)};var E;exports.InputType=void 0,(E=exports.InputType||(exports.InputType={})).TEXT="text",E.PASSWORD="password",E.EMAIL="email",E.NUMBER="number",E.URL="url",E.TEL="tel",E.DATE="date",E.DATETIME="datetime",E.SELECT="select",E.COLOR_PICKER="color-picker",E.TEXT_AREA="text-area",E.AVATAR_UPLOAD="avatar-upload",E.UPLOAD_IMAGE_ICON="upload-image-icon",E.DND="dnd",E.CHECKBOX="checkbox";const P=({isLoading:o,value:t,isDisabled:n,placeholder:i,options:l,name:a,onBlur:s,onFocus:_,onChange:r,preIcon:m,addonIcon:c,addonAction:u})=>e.jsxs(e.Fragment,{children:[m&&e.jsx("div",{className:O.preIcon,children:e.jsx(d,{icon:m,isLoading:o})}),e.jsxs("select",{className:O.field,value:t,onBlur:s,onFocus:_,onChange:r,name:a,disabled:n,children:[i&&e.jsx("option",{value:"",children:i}),l.map((({label:o,value:t})=>e.jsx("option",{value:t,children:o},t)))]}),c&&e.jsx("div",{className:u?`${O.addon} ${O.pointer}`:O.addon,onClick:u,children:e.jsx(d,{icon:c,isLoading:o})})]});var M={container:"DnD-module_container__zFojN",dropZone:"DnD-module_dropZone__OJnfw",placeholder:"DnD-module_placeholder__Fkhl4",dropLabel:"DnD-module_dropLabel__TDGan",input:"DnD-module_input__FKtwE",selectedImage:"DnD-module_selectedImage__DsvPl",removeImage:"DnD-module_removeImage__zMc3L",rectangle:"DnD-module_rectangle__cnjIE",square:"DnD-module_square__mc3tn",circle:"DnD-module_circle__kXFaZ",isDragOver:"DnD-module_isDragOver__vfTwp",flexWide:"DnD-module_flexWide__sqZP0",slidein:"DnD-module_slidein__bPiSA",fadeInOut:"DnD-module_fadeInOut__QCEYD",heightAnimation:"DnD-module_heightAnimation__OGSUd",fadein:"DnD-module_fadein__eyNza",floatAnimation:"DnD-module_floatAnimation__PwKWB",bottomSheet:"DnD-module_bottomSheet__vsEm2"};const H=({value:t,placeholder:n,isMultiUpload:l,dndShape:d="rectangle",isDisabled:a,className:s,onFilesSelect:_,onFileSelect:m})=>{const[c,u]=o.useState(!1),h=e=>{if(e&&e.length>0){if(l&&_)return _(e);const o=e[0];W(o,(e=>{m&&m(o,e)}))}};return e.jsx("div",{className:i(M,{container:!0,isDragOver:c}),children:e.jsx("div",{onDrop:e=>{if(e.preventDefault(),a)return;const o=e.dataTransfer.files;h(o)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:i(M,{dropZone:!0},[M[d],s]),children:t?e.jsxs("div",{className:M.selectedImage,children:[e.jsx("img",{src:String(t),alt:n}),e.jsx("div",{className:M.removeImage,children:e.jsx(y,{onClick:()=>{m&&m(null,"")},icon:r,type:exports.UIElementType.BORDERED_PRIMARY})})]}):e.jsxs("label",{className:M.dropLabel,children:[e.jsx("span",{className:M.placeholder,children:n||"Drop file"}),e.jsx("input",{type:"file",className:M.input,hidden:!0,onChange:e=>{const o=e.target;h(o.files)},disabled:a})]})})})};var R={container:"TextArea-module_container__uff42",field:"TextArea-module_field__kapQk",hasPrefix:"TextArea-module_hasPrefix__flVwo",prefix:"TextArea-module_prefix__vGIaC",flexWide:"TextArea-module_flexWide__staBL",slidein:"TextArea-module_slidein__-OBuL",fadeInOut:"TextArea-module_fadeInOut__aNBV4",heightAnimation:"TextArea-module_heightAnimation__mZG0q",fadein:"TextArea-module_fadein__30AAW",floatAnimation:"TextArea-module_floatAnimation__x6a8y",bottomSheet:"TextArea-module_bottomSheet__xLBCQ"};const F=({value:o,placeholder:t,autoFocus:n,ref:l,isDisabled:d,prefix:a,rows:s=3,onBlur:_,onFocus:r,onChange:m})=>e.jsxs("div",{className:i(R,{container:!0,hasPrefix:!!a}),children:[!!a&&e.jsx("div",{className:R.prefix,children:e.jsx("span",{children:a})}),e.jsx("textarea",{className:R.field,value:o,placeholder:t,onBlur:_,onFocus:r,onChange:m,autoFocus:n,ref:l,disabled:d,rows:s})]});var z={};const U=()=>e.jsx("div",{className:z.container,children:"CHECKBOX"}),G=o.forwardRef((function(t,n){var{type:l=exports.InputType.TEXT,label:a,placeholder:s,value:_,required:r=!1,addonIcon:m,preIcon:u,addonText:h,labelAddon:x,errorMessage:g,options:p=[],fullWidth:f,avatarSize:v,source:j,autoCompleteContent:I,autoCompleteReverse:b=!1,noMargin:A=!1,isDisabled:L=!1,isLoading:C=!1,isMultiUpload:D=!1,autoFocus:S=!1,theme:N="oval",size:w="medium",isDarkMode:y=!1,dndShape:B,name:T,prefix:E,rows:M,className:R,onBlur:z,onFocus:G,onChange:V,addonAction:Y,onEnter:X,onEsc:Z,onFileSelect:q,onFilesSelect:K}=t,Q=function(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)o.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(t[n[i]]=e[n[i]])}return t}(t,["type","label","placeholder","value","required","addonIcon","preIcon","addonText","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","dndShape","name","prefix","rows","className","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const J=L||C,$=e=>{switch(e.key){case"Enter":X&&X();break;case"Escape":Z&&Z()}},ee=e=>{const o=e.target.files[0];W(o,(e=>{q&&q(o,e)}))},oe=e=>{const o=e.target;K&&K(o.files)};return e.jsxs("div",{className:i(O,{input:!0,full:!!f,noMargin:A,hasAddon:!!m||!!h,hasPrefix:!!E,darkMode:y},[O[N],O[w]]),children:[a&&e.jsxs("label",{children:[e.jsx("span",{className:r?O.required:"",children:a}),!!x&&e.jsx("div",{className:O.labelAddon,children:x})]}),e.jsx("div",{className:O.container,children:(()=>{switch(l){case exports.InputType.SELECT:return e.jsx(P,{preIcon:u,isLoading:C,value:_,isDisabled:L,placeholder:s,options:p,onBlur:z,onFocus:G,onChange:V,addonAction:Y,addonIcon:m,name:T});case exports.InputType.DND:return e.jsx(H,{onFilesSelect:K,onFileSelect:q,placeholder:s,value:_,dndShape:B,isDisabled:L,isMultiUpload:D,className:R});case exports.InputType.COLOR_PICKER:return e.jsx("input",Object.assign({className:`${O.field} ${O.colorPicker}`,type:"color",value:_,placeholder:s,onBlur:z,onFocus:G,onChange:V,disabled:J,ref:n},Q));case exports.InputType.TEXT_AREA:return e.jsx(F,{value:_,placeholder:s,onBlur:z,onFocus:G,onChange:V,autoFocus:S,ref:n,prefix:E,rows:M});case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(k,{size:v,source:j,isLoading:C,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:D?oe:ee,ref:n,className:O.avatar,disabled:J,multiple:D})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(d,{icon:c,isLoading:C,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:D?oe:ee,ref:n,className:O.avatar,disabled:J,multiple:D})]});case exports.InputType.CHECKBOX:return e.jsx(U,{});default:return e.jsxs(o.Fragment,{children:[!!E&&e.jsx("div",{className:O.prefix,children:e.jsx("span",{children:E})}),e.jsx("input",Object.assign({className:O.field,type:l,placeholder:s,value:_,onBlur:z,onFocus:G,onChange:V,onKeyUp:$,ref:n,disabled:J,autoFocus:S,name:T},Q)),m&&e.jsx("div",{className:Y?`${O.addon} ${O.pointer}`:O.addon,onClick:Y,children:e.jsx(d,{icon:m,isLoading:C})}),h&&e.jsx("div",{className:Y?`${O.addon} ${O.pointer}`:O.addon,onClick:Y,children:h})]})}})()}),!!g&&e.jsx("div",{className:O.error,children:g}),!!I&&e.jsx("div",{className:i(O,{autoCompleteContent:!0,reversed:b}),children:I})]})}));var V={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5",bottomSheet:"DropDown-module_bottomSheet__9ABZ-"};const Y=(e,t)=>{const n=o=>{e.current&&!e.current.contains(o.target)&&t()};o.useEffect((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[])},X=({containerRef:n,contentRef:i,isOpen:l=!1,renderChild:d,onClose:a})=>{const s={isOpen:!1,top:0,left:0,bottom:0,right:0},[_,r]=o.useState(s),m={position:"absolute",top:_.top,left:_.left,bottom:_.bottom,right:_.right,zIndex:111},c=()=>{r(s),a()};return Y(n,(()=>c())),o.useEffect((()=>{if(l)return(()=>{var e,o,t,l,d,a,s;const{top:_,left:m,height:c,width:u}=null!==(t=null===(o=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==t?t:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:x}=window,g=h-(_+c),p=_,f=m,v=x-(m+u),j=null!==(d=null===(l=null==i?void 0:i.current)||void 0===l?void 0:l.clientHeight)&&void 0!==d?d:200,I=null!==(s=null===(a=null==i?void 0:i.current)||void 0===a?void 0:a.clientWidth)&&void 0!==s?s:200;let b="auto",A="auto",k="auto",L="auto";g<j&&p>=j?L=h-_-c+20:A=_+c+5,v<I&&f>=I?k=x-m:b=m;const C={top:A,left:b,right:k,bottom:L};r(Object.assign(Object.assign({},C),{isOpen:!0}))})();c()}),[l,null==n?void 0:n.current]),_.isOpen?t.createPortal(e.jsx("div",{style:m,onClick:e=>{e.stopPropagation()},children:d(_)}),document.getElementById("portals")):null},Z=({children:o})=>e.jsx("div",{className:V.menu,children:o});var q={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh",bottomSheet:"LoadingItem-module_bottomSheet__bR0jg"};var K={container:"Accordion-module_container__6rGl0",header:"Accordion-module_header__AYOT5",body:"Accordion-module_body__4IgEa",content:"Accordion-module_content__RyBzl",isOpen:"Accordion-module_isOpen__Bmf-c",flexWide:"Accordion-module_flexWide__Pmyu-",slidein:"Accordion-module_slidein__NIsrY",fadeInOut:"Accordion-module_fadeInOut__Ub-rg",heightAnimation:"Accordion-module_heightAnimation__nT1oQ",fadein:"Accordion-module_fadein__KprHu",floatAnimation:"Accordion-module_floatAnimation__d-fsP",bottomSheet:"Accordion-module_bottomSheet__BpfZl"};const Q=({title:t,content:n})=>{const[l,a]=o.useState(!1);return e.jsxs("div",{className:i(K,{container:!0,isOpen:l}),onClick:()=>a(!l),children:[e.jsxs("div",{className:K.header,children:[e.jsx("h3",{children:t}),e.jsx(d,{icon:l?f:v,size:"md"})]}),e.jsx("div",{className:K.body,children:e.jsx("div",{className:K.content,children:n})})]})};var J={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",fullWidth:"Card-module_fullWidth__HpLSP",fullHeight:"Card-module_fullHeight__Ngt-E",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu",bottomSheet:"Card-module_bottomSheet__d7HOh"},$={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm",bottomSheet:"Heading-module_bottomSheet__4Xdnv"};const ee=({size:o="md",title:t,subtitle:n})=>e.jsxs("div",{className:$.heading,children:[e.jsx("div",{className:`${$.title} ${$[o]}`,children:t}),n&&e.jsx("div",{className:$.subtitle,children:n})]});var oe={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP",bottomSheet:"CookieBanner-module_bottomSheet__Amht0"};const te=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var ne;!function(e){e.SEEN="seen"}(ne||(ne={}));var ie={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",fullWidth:"Container-module_fullWidth__BIlSl",flexWide:"Container-module_flexWide__UYxLw",slidein:"Container-module_slidein__2HqKN",fadeInOut:"Container-module_fadeInOut__OfzxZ",heightAnimation:"Container-module_heightAnimation__UR715",fadein:"Container-module_fadein__9rDYD",floatAnimation:"Container-module_floatAnimation__6Lcjo",bottomSheet:"Container-module_bottomSheet__5c8vI"};const le=({className:o="",children:t,noPadding:n=!1,fullWidth:l=!1})=>e.jsx("div",{className:i(ie,{container:!0,noPadding:n,fullWidth:l},[o]),children:t});var de="Header-module_header__qxHtx",ae="Header-module_content__DV-in",se="Header-module_logo__xO2bW",_e="Header-module_mobileLogo__eNvSP",re="Header-module_actions__ZlACk",me="Header-module_mobileMenuIcon__pFpba",ce="Header-module_menu__Yw9r6",ue="Header-module_mobileMenu__4S-NE";var he={container:"Section-module_container__3n1V-",header:"Section-module_header__uP6hi",subtitle:"Section-module_subtitle__8Y9SH",gradient:"Section-module_gradient__xroL-",black:"Section-module_black__xbyiN",dark:"Section-module_dark__5IiQW",flexWide:"Section-module_flexWide__jFoW4",slidein:"Section-module_slidein__gRGLr",fadeInOut:"Section-module_fadeInOut__yLFY5",heightAnimation:"Section-module_heightAnimation__7ap3B",fadein:"Section-module_fadein__Jbv0F",floatAnimation:"Section-module_floatAnimation__g2TfT",bottomSheet:"Section-module_bottomSheet__ZV5zI"};const xe=({title:o,subtitle:t,theme:n="light",children:l,className:d})=>e.jsxs("div",{className:i(he,{container:!0},[he[n],d]),children:[e.jsxs("div",{className:he.header,children:[e.jsx("h2",{children:o}),!!t&&e.jsx("div",{className:he.subtitle,children:t})]}),e.jsx("div",{className:he.body,children:l})]});var ge="FAQ-module_container__Kht11";var pe={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI",bottomSheet:"ContactsList-module_bottomSheet__JVwPq"};var fe={description:"Description-module_description__ENVu-",xl:"Description-module_xl__GtUSA",lg:"Description-module_lg__ENF-W",m:"Description-module_m__RqjBl",s:"Description-module_s__RAro3",xs:"Description-module_xs__0chE0",noSpacing:"Description-module_noSpacing__746UN",lighter:"Description-module_lighter__y-rC3",flexWide:"Description-module_flexWide__CEoWm",slidein:"Description-module_slidein__ZJBnB",fadeInOut:"Description-module_fadeInOut__ZdTzP",heightAnimation:"Description-module_heightAnimation__v2n3a",fadein:"Description-module_fadein__bPsva",floatAnimation:"Description-module_floatAnimation__Cq8oz",bottomSheet:"Description-module_bottomSheet__J4Of1"};var ve={alert:"AlertBox-module_alert__y9n9e",inline:"AlertBox-module_inline__upbhQ",error:"AlertBox-module_error__anhZO",success:"AlertBox-module_success__80DOT",icon:"AlertBox-module_icon__FLy1Y",actions:"AlertBox-module_actions__fgPt7","supeer-icon-button":"AlertBox-module_supeer-icon-button__8oUJ8",message:"AlertBox-module_message__ssD6S",flexWide:"AlertBox-module_flexWide__isTSZ",slidein:"AlertBox-module_slidein__BNFh5",fadeInOut:"AlertBox-module_fadeInOut__DW6jj",heightAnimation:"AlertBox-module_heightAnimation__AMoVU",fadein:"AlertBox-module_fadein__5wonR",floatAnimation:"AlertBox-module_floatAnimation__rXaKh",bottomSheet:"AlertBox-module_bottomSheet__hjf6R"};var je="Loading-module_loading__7gLQd",Ie="Loading-module_image__gig5S";var be={container:"Row-module_container__XmQql",fullHeight:"Row-module_fullHeight__Inxzs",fullWidth:"Row-module_fullWidth__cz2RH"};const Ae=({alignItems:o="center",justifyContent:t="flex-start",flexWrap:n="nowrap",gap:l=1,fullHeight:d=!1,fullWidth:a=!0,children:s,className:_})=>e.jsx("div",{className:i(be,{container:!0,fullHeight:d,fullWidth:a},[_]),style:{alignItems:o,justifyContent:t,flexWrap:n,gap:`${l}rem`},children:s});var ke={container:"Column-module_container__Sqvfx",fullHeight:"Column-module_fullHeight__W87C5",fullWidth:"Column-module_fullWidth__lUQrj"};const Le=({alignItems:o="flex-start",justifyContent:t="flex-start",gap:n=1,fullHeight:l=!1,fullWidth:d=!0,children:a,marginBottom:s=0,className:_})=>e.jsx("div",{className:i(ke,{container:!0,fullHeight:l,fullWidth:d},[_]),style:{alignItems:o,justifyContent:t,gap:`${n}rem`,marginBottom:`${s}rem`},children:a});var Ce={container:"Flex-module_container__f80QI",grow:"Flex-module_grow__z7OVe",fullHeight:"Flex-module_fullHeight__d4p45",fullWidth:"Flex-module_fullWidth__m4XF-",item:"Flex-module_item__GwWE3",shrink:"Flex-module_shrink__LwfYE"};const De=({children:o,grow:t,shrink:n,className:l,fullHeight:d,fullWidth:a,flex:s})=>e.jsx("div",{className:i(Ce,{item:!0,grow:t,shrink:n,fullHeight:d,fullWidth:a},[l]),style:{flex:s},children:o}),Se=({children:o,alignItems:t,justifyContent:n,flexWrap:l,gap:d,className:a,direction:s,grow:_,fullHeight:r,fullWidth:m})=>e.jsx("div",{className:i(Ce,{container:!0,fullHeight:r,fullWidth:m,grow:_},[a]),style:{alignItems:t,justifyContent:n,flexWrap:l,flexDirection:s,gap:`${d}rem`},children:o});De.displayName="Flex.Item",Se.Item=De;var Ne={container:"IconLink-module_container__DPEQm",xxs:"IconLink-module_xxs__VR--q",xs:"IconLink-module_xs__7kP8f",sm:"IconLink-module_sm__VTyu1",md:"IconLink-module_md__YaLm6",lg:"IconLink-module_lg__mEFFB",xl:"IconLink-module_xl__SFhG7",xxl:"IconLink-module_xxl__bxRt7",xxxl:"IconLink-module_xxxl__-ah4f",circle:"IconLink-module_circle__SszO0",light:"IconLink-module_light__ntSbm",dark:"IconLink-module_dark__3JP27",flexWide:"IconLink-module_flexWide__kFlaC",slidein:"IconLink-module_slidein__L3sxO",fadeInOut:"IconLink-module_fadeInOut__UZw3F",heightAnimation:"IconLink-module_heightAnimation__XWKzZ",fadein:"IconLink-module_fadein__mu-Q-",floatAnimation:"IconLink-module_floatAnimation__Upk7f",bottomSheet:"IconLink-module_bottomSheet__RGR-Q"};var we="Carousel-module_container__voMge",ye="Carousel-module_carousel__cXGTr",Be="Carousel-module_item__umQ-j";var Te={box:"Chip-module_box__bPxl6",large:"Chip-module_large__vYrP6",small:"Chip-module_small__53iJq",clickable:"Chip-module_clickable__dzpKp",light:"Chip-module_light__29AuI",active:"Chip-module_active__BlTSF",lightDark:"Chip-module_lightDark__XNFQ7",lightDanger:"Chip-module_lightDanger__rLWTT",lightInfo:"Chip-module_lightInfo__lhtRG",lightPrimary:"Chip-module_lightPrimary__YzHWA",lightSecondary:"Chip-module_lightSecondary__qXcsD",lightWarning:"Chip-module_lightWarning__DDYW3",lightSuccess:"Chip-module_lightSuccess__n5gp5",primary:"Chip-module_primary__rvetC",secondary:"Chip-module_secondary__pLu90",danger:"Chip-module_danger__OJzar",dark:"Chip-module_dark__OOepT",info:"Chip-module_info__gtJS1",success:"Chip-module_success__0GXdc",warning:"Chip-module_warning__NBLbz",whiteText:"Chip-module_whiteText__zg28n",default:"Chip-module_default__AZUs1",borderedPrimary:"Chip-module_borderedPrimary__bRpmY",borderedSecondary:"Chip-module_borderedSecondary__JgMYX",flexWide:"Chip-module_flexWide__j8zBM",slidein:"Chip-module_slidein__qMh2s",fadeInOut:"Chip-module_fadeInOut__X5Sw2",heightAnimation:"Chip-module_heightAnimation__OA0dv",fadein:"Chip-module_fadein__CkDEY",floatAnimation:"Chip-module_floatAnimation__PMaOv",bottomSheet:"Chip-module_bottomSheet__RAUmm"};var Oe={container:"Modal-module_container__UCuJv",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9",footer:"Modal-module_footer__Oyz-R",full:"Modal-module_full__13hJb",medium:"Modal-module_medium__JRDXg",large:"Modal-module_large__O42Af",noFooter:"Modal-module_noFooter__GYvYN",noBodyPadding:"Modal-module_noBodyPadding__Pdh9C",bottomSheet:"Modal-module_bottomSheet__7Aj5f",flexWide:"Modal-module_flexWide__VReva",slidein:"Modal-module_slidein__ndLPJ",fadeInOut:"Modal-module_fadeInOut__c5Sgq",heightAnimation:"Modal-module_heightAnimation__E3smD",fadein:"Modal-module_fadein__vroAa",floatAnimation:"Modal-module_floatAnimation__dU3VL"};const We=o.forwardRef((function({title:o,content:t,header:n,footer:l,size:d="small",noBodyPadding:a=!1,onClose:s},_){return e.jsxs("div",{className:i(Oe,{container:!0,noFooter:!l,noBodyPadding:a},[Oe[d]]),ref:_,children:[!o&&n&&e.jsx("div",{className:Oe.header,children:n}),o&&e.jsx("div",{className:Oe.header,children:e.jsxs(Ae,{alignItems:"center",justifyContent:"space-between",children:[e.jsx("span",{children:o}),s&&e.jsx(y,{icon:r,onClick:s})]})}),e.jsx("div",{className:Oe.body,children:t}),l&&e.jsx("div",{className:Oe.footer,children:l})]})}));var Ee={text:"Text-module_text__XXjeA",bodyText:"Text-module_bodyText__RqN1G",medium:"Text-module_medium__FoS2D",bold:"Text-module_bold__ZRBJh",small:"Text-module_small__-48A8",muted:"Text-module_muted__y62HX",h1:"Text-module_h1__qG6Jy",h2:"Text-module_h2__iPght",h3:"Text-module_h3__J0LDJ",h4:"Text-module_h4__4t9ri",h5:"Text-module_h5__ltcQp",flexWide:"Text-module_flexWide__fCAfU",slidein:"Text-module_slidein__ccSy8",fadeInOut:"Text-module_fadeInOut__JByvu",heightAnimation:"Text-module_heightAnimation__5YkEI",fadein:"Text-module_fadein__Fcz-y",floatAnimation:"Text-module_floatAnimation__2IgQs",bottomSheet:"Text-module_bottomSheet__rF2CA"};var Pe={container:"Sidebar-module_container__bFisq",content:"Sidebar-module_content__vZb3P",brand:"Sidebar-module_brand__VRO-7",logout:"Sidebar-module_logout__UVk40",menuItem:"Sidebar-module_menuItem__gfM9S",isActive:"Sidebar-module_isActive__E4MAv",children:"Sidebar-module_children__MddxS",flexWide:"Sidebar-module_flexWide__Znxtb",slidein:"Sidebar-module_slidein__HO12l",fadeInOut:"Sidebar-module_fadeInOut__1JeD4",heightAnimation:"Sidebar-module_heightAnimation__ZA4xz",fadein:"Sidebar-module_fadein__DOVw-",floatAnimation:"Sidebar-module_floatAnimation__lcIqC",bottomSheet:"Sidebar-module_bottomSheet__sx52t"},Me={};const He=({children:o,hasSubmenu:t=!1,path:n,LibLink:l,className:d,onSelectParent:a})=>t?e.jsx("div",{className:i(Me,{parent:!0},[d]),onClick:()=>a(n),children:o}):e.jsx(l,{to:n,className:i(Me,{parent:!0},[d]),onClick:()=>a(null),children:o});var Re="PageLoading-module_container__ZRh7g";var Fe={container:"Table-module_container__BsXT7",left:"Table-module_left__MPER1",right:"Table-module_right__gIcbO",center:"Table-module_center__sEdB2",centered:"Table-module_centered__liK0J",muted:"Table-module_muted__175Ax",flexWide:"Table-module_flexWide__ZT7bf",slidein:"Table-module_slidein__iS-HW",fadeInOut:"Table-module_fadeInOut__kkH6U",heightAnimation:"Table-module_heightAnimation__m6BZj",fadein:"Table-module_fadein__6ldtc",floatAnimation:"Table-module_floatAnimation__MN-bL",bottomSheet:"Table-module_bottomSheet__IIfBx"};exports.Accordion=Q,exports.AlertBox=({message:o,onClear:t,onReload:n,type:l,inline:a=!1})=>e.jsxs("div",{className:i(ve,{alert:!0,inline:a},[ve[l]]),children:[e.jsx("div",{className:ve.icon,children:e.jsx(d,{icon:m,size:"md",theme:"dark"})}),e.jsx("div",{className:ve.message,children:o}),e.jsxs("div",{className:ve.actions,children:[n&&e.jsx(y,{icon:j,onClick:n,type:exports.UIElementType.WHITE_TEXT}),e.jsx(y,{icon:r,onClick:t,type:exports.UIElementType.WHITE_TEXT})]})]}),exports.Avatar=k,exports.Button=D,exports.Card=({title:o,subtitle:t,children:n,toolbar:l,footer:d,separated:a=!1,borderTopWidth:s,borderTopColor:_,noBottomMargin:r=!1,noBodyPadding:m=!1,fullHeight:c=!1,fullWidth:u=!1})=>{const h=s?`${s}px solid ${_}`:"none";return e.jsxs("div",{className:i(J,{card:!0,separated:a,noBottomMargin:r,noBodyPadding:m,fullHeight:c,fullWidth:u}),style:Object.assign({},s&&{borderTop:h}),children:[(l||o)&&e.jsxs("div",{className:J.header,children:[e.jsxs("div",{className:J.headerInfo,children:[o&&e.jsx("div",{className:J.headerTitle,children:e.jsx(ee,{size:"sm",title:o})}),t&&e.jsx("div",{className:J.headerSubtitle,children:t})]}),l&&e.jsx("div",{className:J.headerToolbar,children:l})]}),e.jsx("div",{className:J.body,children:n}),d&&e.jsx("div",{className:J.footer,children:d})]})},exports.Carousel=({children:t,gap:n=2,onGetRef:i})=>{const l=o.useRef(null),[d,a]=o.useState(!1),[s,_]=o.useState(0),[r,m]=o.useState(0),c=()=>{a(!1)};return o.useEffect((()=>{(null==l?void 0:l.current)&&i&&i(l)}),[null==l?void 0:l.current,i]),e.jsx("div",{className:we,children:e.jsx("div",{className:ye,ref:l,onMouseDown:e=>{var o,t;a(!0),_(e.pageX-((null===(o=l.current)||void 0===o?void 0:o.offsetLeft)||0)),m((null===(t=l.current)||void 0===t?void 0:t.scrollLeft)||0)},onMouseLeave:c,onMouseUp:c,onMouseMove:e=>{var o;if(!d)return;const t=e.pageX-((null===(o=l.current)||void 0===o?void 0:o.offsetLeft)||0)-s;l.current&&(l.current.scrollLeft=r-t)},style:{gap:`${n}rem`,cursor:d?"grabbing":"grab"},children:t})})},exports.CarouselItem=({children:o})=>e.jsx("div",{className:Be,children:o}),exports.Chip=({onClick:o,className:t="",children:n,type:l=exports.UIElementType.LIGHT,size:d="medium",active:a=!1})=>e.jsx("div",{className:i(Te,{box:!0,clickable:!!o,active:a},[Te[l],Te[d],t]),onClick:o,children:n}),exports.Column=Le,exports.ContactsList=({domain:o,socialLinks:t,address:n,reportLabel:i,writeUsLabel:l,followUsLabel:a,addressLabel:s})=>e.jsxs("div",{className:pe.container,children:[e.jsxs("div",{className:pe.contact,children:[e.jsx("div",{className:pe.icon,children:e.jsx(d,{icon:p,size:"xl"})}),e.jsxs("div",{className:pe.content,children:[e.jsx("div",{className:pe.title,children:i||"Report"}),e.jsx("div",{className:pe.value,children:e.jsxs("a",{href:`mailto:feedback@${o}`,children:["feedback@",o]})})]})]}),e.jsxs("div",{className:pe.contact,children:[e.jsx("div",{className:pe.icon,children:e.jsx(d,{icon:h,size:"xl"})}),e.jsxs("div",{className:pe.content,children:[e.jsx("div",{className:pe.title,children:l||"Write us"}),e.jsx("div",{className:pe.value,children:e.jsxs("a",{href:`mailto:contact@${o}`,children:["contact@",o]})})]})]}),e.jsxs("div",{className:pe.contact,children:[e.jsx("div",{className:pe.icon,children:e.jsx(d,{icon:I,size:"xl"})}),e.jsxs("div",{className:pe.content,children:[e.jsx("div",{className:pe.title,children:a||"Follow us"}),e.jsx("div",{className:pe.value,children:e.jsx("ul",{children:t.map((({url:o,icon:t})=>e.jsx("li",{children:e.jsx("a",{href:o,target:"_blank",children:e.jsx(d,{icon:t,size:"md"})})},o)))})})]})]}),e.jsxs("div",{className:pe.contact,children:[e.jsx("div",{className:pe.icon,children:e.jsx(d,{icon:x,size:"xl"})}),e.jsxs("div",{className:pe.content,children:[e.jsx("div",{className:pe.title,children:s||"Address"}),e.jsx("div",{className:pe.value,children:n})]})]})]}),exports.Container=le,exports.CookieBanner=({appName:t})=>{const[n,i]=o.useState(!1);return o.useEffect((()=>{const e=te.getCookieBannerState();i(e!==ne.SEEN)}),[]),n?e.jsxs("div",{className:oe.container,children:[e.jsxs("div",{className:oe.content,children:["As ",t,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e.jsx("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e.jsx("div",{className:oe.actions,children:e.jsx(D,{label:"Continue",onClick:()=>{i(!1),te.saveCookieBannerState(ne.SEEN)}})})]}):null},exports.Description=({size:o="m",text:t,noSpacing:n=!1,className:l="",lighter:d=!1})=>e.jsx("div",{className:i(fe,{description:!0,noSpacing:n,lighter:d},[fe[o],l]),children:t}),exports.DropDown=({action:t,menu:n,type:l=exports.UIElementType.DEFAULT,closeRef:d,actionSize:a="medium"})=>{const s=o.useRef(null),_=o.useRef(null),r=o.useRef(null),[m,c]=o.useState(!1),u=()=>c(!1);return o.useEffect((()=>{(null==d?void 0:d.current)&&(d.current={close:()=>u()})}),[d]),e.jsxs("div",{className:V.container,ref:s,children:[e.jsx("div",{className:i(V,{action:!0},[V[l],V[a]]),ref:r,onClick:()=>c(!m),children:t}),e.jsx(X,{containerRef:s,contentRef:_,isOpen:m,onClose:u,renderChild:()=>e.jsx("div",{className:V.menuContainer,ref:_,children:e.jsx(Z,{children:n})})})]})},exports.FAQ=({items:o,title:t})=>e.jsx(xe,{title:t||"Frequently asked questions",children:e.jsx("div",{className:ge,children:o.map((({title:o,content:t})=>e.jsx(Q,{title:o,content:t},o)))})}),exports.Flex=Se,exports.Header=({logo:t,menu:n,actions:i=null})=>{const[l,d]=o.useState(!1);return e.jsxs("header",{className:de,children:[e.jsx(le,{children:e.jsxs("div",{className:ae,children:[e.jsx("a",{href:"/",className:se,children:t}),e.jsx("a",{href:"/",className:_e,children:t}),!!n&&e.jsx("div",{className:ce,children:n}),e.jsxs("div",{className:re,children:[i,!!n&&e.jsx("div",{className:me,children:e.jsx(y,{icon:l?r:g,onClick:()=>d(!l),size:"lg"})})]})]})}),l&&e.jsx("div",{className:ue,children:n})]})},exports.Heading=ee,exports.IconButton=y,exports.IconLink=({icon:o,shape:t,target:n,size:l="xs",href:a,theme:s="light",title:_=""})=>e.jsx("a",{className:i(Ne,{container:!0},[Ne[t],Ne[l],Ne[s]]),href:a,target:n,rel:"noopener noreferrer",title:_,children:e.jsx(d,{icon:o,size:l,theme:s})}),exports.Input=G,exports.Link=({href:o,title:t,target:n="_self",type:l=exports.UIElementType.DEFAULT,padding:a="zero",hasChevron:s=!1,fullWidth:r=!1})=>e.jsxs("a",{href:o,target:n,rel:"noopener noreferrer",className:i(T,{link:!0,fullWidth:r},[T[l],T[a]]),children:[e.jsx("span",{children:t})," ",s&&e.jsx(d,{icon:_})]}),exports.ListItem=({title:o,subtitle:t,actionTitle:n="",action:l,completed:a,indicator:_,hasSeparator:r=!1,hasDashedSeparator:m=!1,isActionPending:c=!1})=>e.jsxs("div",{className:i(B,{listItem:!0,separator:r,dashedSeparator:m}),children:[e.jsxs("div",{className:B.content,children:[_&&e.jsx("div",{className:i(B,{indicator:!0},[B[_]])}),e.jsxs("div",{className:B.data,children:[e.jsx("div",{className:B.title,children:o}),t&&e.jsx("div",{className:B.subtitle,children:t})]})]}),l&&e.jsx(D,{onClick:l,className:B.action,label:n,isLoading:c}),a&&e.jsx("div",{className:B.completed,children:e.jsx(d,{icon:s})})]}),exports.Loading=({image:o})=>e.jsx("div",{className:je,children:e.jsx("img",{src:o,alt:"Loading...",className:Ie})}),exports.LoadingItem=({shape:o="square",size:t="md",width:n,height:l})=>e.jsx("div",{className:i(q,{container:!0},[q[o],q[t]]),style:{width:n,height:l}}),exports.Modal=We,exports.PageLoading=({loadingGif:o=""})=>e.jsx("div",{className:Re,children:e.jsx("img",{src:o,alt:"Loading..."})}),exports.Row=Ae,exports.SVGIcon=d,exports.Section=xe,exports.Sidebar=({avatar:o,brandName:t,isChildrenVisible:n,menuChildren:l,logoutHint:a,user:s=null,menuItems:_=[],LibLink:r,onSelectParent:m,onLogout:c})=>e.jsxs("aside",{className:Pe.container,children:[e.jsxs("div",{className:Pe.content,children:[e.jsx(He,{LibLink:r,path:"/",onSelectParent:m,children:e.jsx("div",{className:Pe.brand,children:e.jsx(w,{hint:t,position:"right",children:o})})}),e.jsx(Le,{alignItems:"center",children:_.map((({path:o,title:t,shortTitle:n,icon:l,hasSubmenu:a,isActive:s},_)=>e.jsxs(He,{LibLink:r,path:o||"",onSelectParent:m,hasSubmenu:a,className:i(Pe,{menuItem:!0,isActive:s}),children:[l&&e.jsx(d,{icon:l}),e.jsx("span",{children:n||t})]},_)))}),e.jsxs(Le,{className:Pe.bottom,justifyContent:"flex-start",alignItems:"center",children:[s&&e.jsx("div",{className:Pe.user,children:s}),e.jsx("div",{className:Pe.logout,onClick:c,children:e.jsx(w,{hint:a||"Logout",position:"right",children:e.jsx(d,{icon:u})})})]})]}),e.jsx("div",{className:i(Pe,{children:!0,isActive:!!n}),children:l})]}),exports.Table=({children:o})=>e.jsx("div",{className:Fe.container,children:e.jsx("table",{children:o})}),exports.TableBody=({children:o})=>e.jsx("tbody",{children:o}),exports.TableCell=({children:o,centered:t=!1,muted:n=!1})=>e.jsx("td",{className:i(Fe,{centered:t,muted:n}),children:o}),exports.TableHead=({children:o})=>e.jsx("thead",{children:o}),exports.TableHeadCell=({children:o,align:t="left"})=>e.jsx("th",{className:Fe[t],children:o}),exports.TableRow=({children:o})=>e.jsx("tr",{children:o}),exports.Text=({variant:o="bodyText",color:t="normal",children:n})=>{const l=(()=>{switch(o){case"h1":case"h2":case"h3":case"h4":case"h5":return o;default:return"div"}})();return e.jsx(l,{className:i(Ee,{text:!0},[Ee[o],Ee[t]]),children:n})},exports.Tooltip=w,exports.classNames=i,exports.getDataTableHeadAlign=(e,o)=>0===e?"left":e===o-1?"right":"center",exports.useClickOutside=Y,exports.useClickOutsideRef=e=>{const t=o.useRef(null),n=o.useCallback((o=>{t.current&&!t.current.contains(o.target)&&e()}),[e]);return o.useEffect((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[n]),t}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sorocraft/ui", | ||
"version": "1.0.72", | ||
"version": "1.0.73", | ||
"description": "UI Library by sorocraft.com", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1043743
2439