@sorocraft/ui 1.0.63 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ReactElement } from "react";
|
|
1
|
+
import { ReactElement, RefObject } from "react";
|
|
2
2
|
interface Props {
|
|
3
3
|
children: ReactElement[];
|
|
4
4
|
gap?: number;
|
|
5
|
+
onGetRef?: (ref: RefObject<HTMLDivElement>) => void;
|
|
5
6
|
}
|
|
6
|
-
declare const Carousel: ({ children, gap }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const Carousel: ({ children, gap, onGetRef }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default Carousel;
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as n,Fragment as o}from"react/jsx-runtime";import{useState as i,Fragment as l,forwardRef as t,useEffect as a,useRef as d,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,o=[])=>{let i=[];for(const o in n)n[o]&&i.push(e[o]);return(null==o?void 0:o.length)>0&&(i=i.concat(o)),i.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:o="sm",className:i="",isLoading:l=!1,theme:t="light"})=>{const a=(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}})(o);return n?e("div",{className:c(m,{container:!0,isLoading:l},[i,m[t]]),children:e(n,{className:i,width:a,height:a,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},h=o=>n("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 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"})})),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:"M3 12h18M3 6h18M3 18h18"})})),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:"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:o=null,alt:i="avatar",size:l="sm",onClick:t,className:a,isEditable:d=!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||d,editable:d,inline:r,loading:m},[s[l],a]),onClick:t,style:{width:f(),height:f()},children:[o?e("img",{src:o,alt:i,className:s.image,width:f(),height:f()}):e(u,{size:l,icon:B}),d&&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:o=W.PRIMARY,onClick:t,label:a,icon:d,fullWidth:_=!1,isLoading:r,disabled:s,className:m,needConfirm:h=!1,size:g="md"})=>{const[f,p]=i(!1);return n("div",{className:c(O,{container:!0,fullWidth:_}),children:[e("button",{className:c(O,{button:!0,loading:!!r},[O[o],O[g],m]),onClick:h?()=>p(!f):t,disabled:r||s,children:r?e(l,{children:"Loading..."}):n("div",{className:O.label,children:[d&&e(u,{icon:d}),e("span",{children:a})]})}),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",disabled:"IconButton-module_disabled__pLK-t",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"};const M=({icon:o,onClick:l,type:t=W.DEFAULT,needConfirm:a=!1,noPadding:d=!1,isLoading:_=!1,size:r="sm",confirmPosition:s="top",isActive:m=!1})=>{const[h,g]=i(!1);return n("div",{className:c(P,{iconButton:!0,noPadding:d,active:m},[P[t],P[r]]),onClick:_?void 0:a?()=>g(!h):l,children:[e(u,{isLoading:_,icon:o,size:r}),h&&n("div",{className:`${P.confirm} ${P[s]}`,children:[e("div",{className:P.confirmMessage,children:"Are you sure?"}),n("div",{className:P.confirmActions,children:[e(T,{type:W.DANGER,onClick:()=>g(!1),label:"No",size:"xs"}),e(T,{type:W.SUCCESS,onClick:l,label:"Yes",size:"xs"})]})]})]})};var E={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 H=({title:o,subtitle:i,actionTitle:l="",action:t,completed:a,indicator:d,hasSeparator:_=!1,hasDashedSeparator:r=!1,isActionPending:s=!1})=>n("div",{className:c(E,{listItem:!0,separator:_,dashedSeparator:r}),children:[n("div",{className:E.content,children:[d&&e("div",{className:c(E,{indicator:!0},[E[d]])}),n("div",{className:E.data,children:[e("div",{className:E.title,children:o}),i&&e("div",{className:E.subtitle,children:i})]})]}),t&&e(T,{onClick:t,className:E.action,label:l,isLoading:s}),a&&e("div",{className:E.completed,children:e(u,{icon:g})})]});var j={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 z=({href:o,title:i,target:l="_self",type:t=W.DEFAULT,padding:a="zero",hasChevron:d=!1,fullWidth:_=!1})=>n("a",{href:o,target:l,rel:"noopener noreferrer",className:c(j,{link:!0,fullWidth:_},[j[t],j[a]]),children:[e("span",{children:i})," ",d&&e(u,{icon:f})]});"function"==typeof SuppressedError&&SuppressedError;var R={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 F=(e,n)=>{const o=new FileReader;o.onload=()=>{n(o.result)},o.readAsDataURL(e)};var G;!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"}(G||(G={}));const U=({isLoading:i,value:l,isDisabled:t,placeholder:a,options:d,name:_,onBlur:r,onFocus:s,onChange:c,preIcon:m,addonIcon:h,addonAction:g})=>n(o,{children:[m&&e("div",{className:R.preIcon,children:e(u,{icon:m,isLoading:i})}),n("select",{className:R.field,value:l,onBlur:r,onFocus:s,onChange:c,name:_,disabled:t,children:[a&&e("option",{value:"",children:a}),d.map((({label:n,value:o})=>e("option",{value:o,children:n},o)))]}),h&&e("div",{className:g?`${R.addon} ${R.pointer}`:R.addon,onClick:g,children:e(u,{icon:h,isLoading:i})})]});var Y={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 V=({value:o,placeholder:l,isMultiUpload:t,dndShape:a="rectangle",isDisabled:d,className:_,onFilesSelect:r,onFileSelect:s})=>{const[m,u]=i(!1),h=e=>{if(e&&e.length>0){if(t&&r)return r(e);const n=e[0];F(n,(e=>{s&&s(n,e)}))}};return e("div",{className:c(Y,{container:!0,isDragOver:m}),children:e("div",{onDrop:e=>{if(e.preventDefault(),d)return;const n=e.dataTransfer.files;h(n)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:c(Y,{dropZone:!0},[Y[a],_]),children:o?n("div",{className:Y.selectedImage,children:[e("img",{src:String(o),alt:l}),e("div",{className:Y.removeImage,children:e(M,{onClick:()=>{s&&s(null,"")},icon:p,type:W.BORDERED_PRIMARY})})]}):n("label",{className:Y.dropLabel,children:[e("span",{className:Y.placeholder,children:l||"Drop file"}),e("input",{type:"file",className:Y.input,hidden:!0,onChange:e=>{const n=e.target;h(n.files)},disabled:d})]})})})};var X={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 Z=({value:o,placeholder:i,autoFocus:l,ref:t,isDisabled:a,prefix:d,rows:_=3,onBlur:r,onFocus:s,onChange:m})=>n("div",{className:c(X,{container:!0,hasPrefix:!!d}),children:[!!d&&e("div",{className:X.prefix,children:e("span",{children:d})}),e("textarea",{className:X.field,value:o,placeholder:i,onBlur:r,onFocus:s,onChange:m,autoFocus:l,ref:t,disabled:a,rows:_})]});var q={};const K=()=>e("div",{className:q.container,children:"CHECKBOX"}),J=t((function(o,i){var{type:t=G.TEXT,label:a,placeholder:d,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:L=!1,noMargin:b=!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:z,addonAction:Y,onEnter:X,onEsc:q,onFileSelect:J,onFilesSelect:Q}=o,$=function(e,n){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(i=Object.getOwnPropertySymbols(e);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(o[i[l]]=e[i[l]])}return o}(o,["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":X&&X();break;case"Escape":q&&q()}},oe=e=>{const n=e.target.files[0];F(n,(e=>{J&&J(n,e)}))},ie=e=>{const n=e.target;Q&&Q(n.files)};return n("div",{className:c(R,{input:!0,full:!!v,noMargin:b,hasAddon:!!s||!!h,hasPrefix:!!P,darkMode:W},[R[y],R[B]]),children:[a&&n("label",{children:[e("span",{className:r?R.required:"",children:a}),!!g&&e("div",{className:R.labelAddon,children:g})]}),e("div",{className:R.container,children:(()=>{switch(t){case G.SELECT:return e(U,{preIcon:m,isLoading:C,value:_,isDisabled:D,placeholder:d,options:p,onBlur:H,onFocus:j,onChange:z,addonAction:Y,addonIcon:s,name:T});case G.DND:return e(V,{onFilesSelect:Q,onFileSelect:J,placeholder:d,value:_,dndShape:O,isDisabled:D,isMultiUpload:N,className:E});case G.COLOR_PICKER:return e("input",Object.assign({className:`${R.field} ${R.colorPicker}`,type:"color",value:_,placeholder:d,onBlur:H,onFocus:j,onChange:z,disabled:ee,ref:i},$));case G.TEXT_AREA:return e(Z,{value:_,placeholder:d,onBlur:H,onFocus:j,onChange:z,autoFocus:w,ref:i,prefix:P,rows:M});case G.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?ie:oe,ref:i,className:R.avatar,disabled:ee,multiple:N})]});case G.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?ie:oe,ref:i,className:R.avatar,disabled:ee,multiple:N})]});case G.CHECKBOX:return e(K,{});default:return n(l,{children:[!!P&&e("div",{className:R.prefix,children:e("span",{children:P})}),e("input",Object.assign({className:R.field,type:t,placeholder:d,value:_,onBlur:H,onFocus:j,onChange:z,onKeyUp:ne,ref:i,disabled:ee,autoFocus:w,name:T},$)),s&&e("div",{className:Y?`${R.addon} ${R.pointer}`:R.addon,onClick:Y,children:e(u,{icon:s,isLoading:C})}),h&&e("div",{className:Y?`${R.addon} ${R.pointer}`:R.addon,onClick:Y,children:h})]})}})()}),!!f&&e("div",{className:R.error,children:f}),!!k&&e("div",{className:c(R,{autoCompleteContent:!0,reversed:L}),children:k})]})}));var Q={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 $=(e,n)=>{const o=o=>{e.current&&!e.current.contains(o.target)&&n()};a((()=>(document.addEventListener("click",o),()=>{document.removeEventListener("click",o)})),[])},ee=e=>{const n=d(null),o=_((o=>{n.current&&!n.current.contains(o.target)&&e()}),[e]);return a((()=>(document.addEventListener("click",o),()=>{document.removeEventListener("click",o)})),[o]),n},ne=({containerRef:n,contentRef:o,isOpen:l=!1,renderChild:t,onClose:d})=>{const _={isOpen:!1,top:0,left:0,bottom:0,right:0},[s,c]=i(_),m={position:"absolute",top:s.top,left:s.left,bottom:s.bottom,right:s.right,zIndex:111},u=()=>{c(_),d()};return $(n,(()=>u())),a((()=>{if(l)return(()=>{var e,i,l,t,a,d,_;const{top:r,left:s,height:m,width:u}=null!==(l=null===(i=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===i?void 0:i.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!==(a=null===(t=null==o?void 0:o.current)||void 0===t?void 0:t.clientHeight)&&void 0!==a?a:200,A=null!==(_=null===(d=null==o?void 0:o.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200;let k="auto",L="auto",b="auto",D="auto";f<I&&p>=I?D=h-r-m+20:L=r+m+5,x<A&&v>=A?b=g-s:k=s;const C={top:L,left:k,right:b,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},oe=({children:n})=>e("div",{className:Q.menu,children:n}),ie=({action:o,menu:l,type:t=W.DEFAULT,closeRef:_,actionSize:r="medium"})=>{const s=d(null),m=d(null),u=d(null),[h,g]=i(!1),f=()=>g(!1);return a((()=>{(null==_?void 0:_.current)&&(_.current={close:()=>f()})}),[_]),n("div",{className:Q.container,ref:s,children:[e("div",{className:c(Q,{action:!0},[Q[t],Q[r]]),ref:u,onClick:()=>g(!h),children:o}),e(ne,{containerRef:s,contentRef:m,isOpen:h,onClose:f,renderChild:()=>e("div",{className:Q.menuContainer,ref:m,children:e(oe,{children:l})})})]})};var le={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 te=({shape:n="square",size:o="md",width:i,height:l})=>e("div",{className:c(le,{container:!0},[le[n],le[o]]),style:{width:i,height:l}});var ae={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 de=({title:o,content:l})=>{const[t,a]=i(!1);return n("div",{className:c(ae,{container:!0,isOpen:t}),onClick:()=>a(!t),children:[n("div",{className:ae.header,children:[e("h3",{children:o}),e(u,{icon:t?D:C,size:"md"})]}),e("div",{className:ae.body,children:e("div",{className:ae.content,children:l})})]})};var _e={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 re=({hint:o,children:i,position:l="top"})=>n("div",{className:_e.tooltip,children:[!!o&&e("div",{className:`${_e.hint} ${_e[l]}`,children:o}),i]});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:o="md",title:i,subtitle:l})=>n("div",{className:ce.heading,children:[e("div",{className:`${ce.title} ${ce[o]}`,children:i}),l&&e("div",{className:ce.subtitle,children:l})]}),ue=({title:o,subtitle:i,children:l,toolbar:t,footer:a,separated:d=!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:d,noBottomMargin:s,noBodyPadding:m,fullHeight:u,fullWidth:h}),style:Object.assign({},_&&{borderTop:g}),children:[(t||o)&&n("div",{className:se.header,children:[n("div",{className:se.headerInfo,children:[o&&e("div",{className:se.headerTitle,children:e(me,{size:"sm",title:o})}),i&&e("div",{className:se.headerSubtitle,children:i})]}),t&&e("div",{className:se.headerToolbar,children:t})]}),e("div",{className:se.body,children:l}),a&&e("div",{className:se.footer,children:a})]})};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:o})=>{const[l,t]=i(!1);return a((()=>{const e=ge.getCookieBannerState();t(e!==fe.SEEN)}),[]),l?n("div",{className:he.container,children:[n("div",{className:he.content,children:["As ",o,", 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:o,noPadding:i=!1,fullWidth:l=!1})=>e("div",{className:c(ve,{container:!0,noPadding:i,fullWidth:l},[n]),children:o});var Ie="Header-module_header__qxHtx",Ae="Header-module_content__DV-in",ke="Header-module_logo__xO2bW",Le="Header-module_mobileLogo__eNvSP",be="Header-module_actions__ZlACk",De="Header-module_mobileMenuIcon__pFpba",Ce="Header-module_menu__Yw9r6",Ne="Header-module_mobileMenu__4S-NE";const we=({logo:o,menu:l,actions:t=null})=>{const[a,d]=i(!1);return n("header",{className:Ie,children:[e(xe,{children:n("div",{className:Ae,children:[e("a",{href:"/",className:ke,children:o}),e("a",{href:"/",className:Le,children:o}),!!l&&e("div",{className:Ce,children:l}),n("div",{className:be,children:[t,!!l&&e("div",{className:De,children:e(M,{icon:a?p:L,onClick:()=>d(!a),size:"lg"})})]})]})}),a&&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:o,subtitle:i,theme:l="light",children:t,className:a})=>n("div",{className:c(ye,{container:!0},[ye[l],a]),children:[n("div",{className:ye.header,children:[e("h2",{children:o}),!!i&&e("div",{className:ye.subtitle,children:i})]}),e("div",{className:ye.body,children:t})]});var Se="FAQ-module_container__Kht11";const We=({items:n,title:o})=>e(Be,{title:o||"Frequently asked questions",children:e("div",{className:Se,children:n.map((({title:n,content:o})=>e(de,{title:n,content:o},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:o,socialLinks:i,address:l,reportLabel:t,writeUsLabel:a,followUsLabel:d,addressLabel:_})=>n("div",{className:Oe.container,children:[n("div",{className:Oe.contact,children:[e("div",{className:Oe.icon,children:e(u,{icon:b,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@${o}`,children:["feedback@",o]})})]})]}),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:a||"Write us"}),e("div",{className:Oe.value,children:n("a",{href:`mailto:contact@${o}`,children:["contact@",o]})})]})]}),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:d||"Follow us"}),e("div",{className:Oe.value,children:e("ul",{children:i.map((({url:n,icon:o})=>e("li",{children:e("a",{href:n,target:"_blank",children:e(u,{icon:o,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:o,noSpacing:i=!1,className:l="",lighter:t=!1})=>e("div",{className:c(Pe,{description:!0,noSpacing:i,lighter:t},[Pe[n],l]),children:o});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:o,onClear:i,onReload:l,type:t,inline:a=!1})=>n("div",{className:c(Ee,{alert:!0,inline:a},[Ee[t]]),children:[e("div",{className:Ee.icon,children:e(u,{icon:v,size:"md",theme:"dark"})}),e("div",{className:Ee.message,children:o}),n("div",{className:Ee.actions,children:[l&&e(M,{icon:N,onClick:l,type:W.WHITE_TEXT}),e(M,{icon:p,onClick:i,type:W.WHITE_TEXT})]})]});var je="Loading-module_loading__7gLQd",ze="Loading-module_image__gig5S";const Re=({image:n})=>e("div",{className:je,children:e("img",{src:n,alt:"Loading...",className:ze})});var Fe={container:"Row-module_container__XmQql",fullHeight:"Row-module_fullHeight__Inxzs",fullWidth:"Row-module_fullWidth__cz2RH"};const Ge=({alignItems:n="center",justifyContent:o="flex-start",flexWrap:i="nowrap",gap:l=1,fullHeight:t=!1,fullWidth:a=!0,children:d})=>e("div",{className:c(Fe,{container:!0,fullHeight:t,fullWidth:a}),style:{alignItems:n,justifyContent:o,flexWrap:i,gap:`${l}rem`},children:d});var Ue={container:"Column-module_container__Sqvfx",fullHeight:"Column-module_fullHeight__W87C5",fullWidth:"Column-module_fullWidth__lUQrj"};const Ye=({alignItems:n="flex-start",justifyContent:o="flex-start",gap:i=1,fullHeight:l=!1,fullWidth:t=!0,children:a,marginBottom:d=0})=>e("div",{className:c(Ue,{container:!0,fullHeight:l,fullWidth:t}),style:{alignItems:n,justifyContent:o,gap:`${i}rem`,marginBottom:`${d}rem`},children:a});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:o,shrink:i,className:l,fullHeight:t,fullWidth:a,flex:d})=>e("div",{className:c(Ve,{item:!0,grow:o,shrink:i,fullHeight:t,fullWidth:a},[l]),style:{flex:d},children:n}),Ze=({children:n,alignItems:o,justifyContent:i,flexWrap:l,gap:t,className:a,direction:d,grow:_,fullHeight:r,fullWidth:s})=>e("div",{className:c(Ve,{container:!0,fullHeight:r,fullWidth:s,grow:_},[a]),style:{alignItems:o,justifyContent:i,flexWrap:l,flexDirection:d,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:o,target:i,size:l="xs",href:t,theme:a="light",title:d=""})=>e("a",{className:c(qe,{container:!0},[qe[o],qe[l],qe[a]]),href:t,target:i,rel:"noopener noreferrer",title:d,children:e(u,{icon:n,size:l,theme:a})});var Je="Carousel-module_container__voMge",Qe="Carousel-module_carousel__cXGTr",$e="Carousel-module_item__umQ-j";const en=({children:n,gap:o=2})=>{const l=d(null),[t,a]=i(!1),[_,r]=i(0),[s,c]=i(0),m=()=>{a(!1)};return e("div",{className:Je,children:e("div",{className:Qe,ref:l,onMouseDown:e=>{var n,o;a(!0),r(e.pageX-((null===(n=l.current)||void 0===n?void 0:n.offsetLeft)||0)),c((null===(o=l.current)||void 0===o?void 0:o.scrollLeft)||0)},onMouseLeave:m,onMouseUp:m,onMouseMove:e=>{var n;if(!t)return;const o=e.pageX-((null===(n=l.current)||void 0===n?void 0:n.offsetLeft)||0)-_;l.current&&(l.current.scrollLeft=s-o)},style:{gap:`${o}rem`,cursor:t?"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:o="",children:i,type:l=W.LIGHT,size:t="medium",active:a=!1})=>e("div",{className:c(on,{box:!0,clickable:!!n,active:a},[on[l],on[t],o]),onClick:n,children:i});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",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 an=t((function({title:o,content:i,header:l,footer:t,size:a="small",onClose:d},_){return n("div",{className:c(tn,{container:!0,noFooter:!t},[tn[a]]),ref:_,children:[!o&&l&&e("div",{className:tn.header,children:l}),o&&e("div",{className:tn.header,children:n(Ge,{alignItems:"center",justifyContent:"space-between",children:[e("span",{children:o}),d&&e(M,{icon:p,onClick:d})]})}),e("div",{className:tn.body,children:i}),t&&e("div",{className:tn.footer,children:t})]})}));var dn={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:o="normal",children:i})=>{const l=(()=>{switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":return n;default:return"div"}})();return e(l,{className:c(dn,{text:!0},[dn[n],dn[o]]),children:i})};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:o=!1,path:i,LibLink:l,className:t,onSelectParent:a})=>o?e("div",{className:c(sn,{parent:!0},[t]),onClick:()=>a(i),children:n}):e(l,{to:i,className:c(sn,{parent:!0},[t]),onClick:()=>a(null),children:n}),mn=({avatar:o,brandName:i,isChildrenVisible:l,menuChildren:t,logoutHint:a,user:d=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(re,{hint:i,position:"right",children:o})})}),e(Ye,{alignItems:"center",children:_.map((({path:o,title:i,shortTitle:l,icon:t,hasSubmenu:a,isActive:d},_)=>n(cn,{LibLink:r,path:o||"",onSelectParent:s,hasSubmenu:a,className:c(rn,{menuItem:!0,isActive:d}),children:[t&&e(u,{icon:t}),e("span",{children:l||i})]},_)))}),n(Ye,{className:rn.bottom,justifyContent:"flex-start",alignItems:"center",children:[d&&e("div",{className:rn.user,children:d}),e("div",{className:rn.logout,onClick:m,children:e(re,{hint:a||"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:o="left"})=>e("th",{className:gn[o],children:n}),xn=({children:n,centered:o=!1,muted:i=!1})=>e("td",{className:c(gn,{centered:o,muted:i}),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{de 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,ie as DropDown,We as FAQ,Ze as Flex,we as Header,me as Heading,M as IconButton,Ke as IconLink,J as Input,G as InputType,z as Link,H as ListItem,Re as Loading,te as LoadingItem,an 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,re as Tooltip,W as UIElementType,c as classNames,kn as getDataTableHeadAlign,$ as useClickOutside,ee as useClickOutsideRef};
|
|
1
|
+
import{jsx as e,jsxs as n,Fragment as o}from"react/jsx-runtime";import{useState as i,Fragment as l,forwardRef as t,useEffect as a,useRef as d,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,o=[])=>{let i=[];for(const o in n)n[o]&&i.push(e[o]);return(null==o?void 0:o.length)>0&&(i=i.concat(o)),i.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:o="sm",className:i="",isLoading:l=!1,theme:t="light"})=>{const a=(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}})(o);return n?e("div",{className:c(m,{container:!0,isLoading:l},[i,m[t]]),children:e(n,{className:i,width:a,height:a,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},h=o=>n("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 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"})})),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:"M3 12h18M3 6h18M3 18h18"})})),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:"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:o=null,alt:i="avatar",size:l="sm",onClick:t,className:a,isEditable:d=!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||d,editable:d,inline:r,loading:m},[s[l],a]),onClick:t,style:{width:f(),height:f()},children:[o?e("img",{src:o,alt:i,className:s.image,width:f(),height:f()}):e(u,{size:l,icon:B}),d&&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:o=W.PRIMARY,onClick:t,label:a,icon:d,fullWidth:_=!1,isLoading:r,disabled:s,className:m,needConfirm:h=!1,size:g="md"})=>{const[f,p]=i(!1);return n("div",{className:c(O,{container:!0,fullWidth:_}),children:[e("button",{className:c(O,{button:!0,loading:!!r},[O[o],O[g],m]),onClick:h?()=>p(!f):t,disabled:r||s,children:r?e(l,{children:"Loading..."}):n("div",{className:O.label,children:[d&&e(u,{icon:d}),e("span",{children:a})]})}),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",disabled:"IconButton-module_disabled__pLK-t",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"};const M=({icon:o,onClick:l,type:t=W.DEFAULT,needConfirm:a=!1,noPadding:d=!1,isLoading:_=!1,size:r="sm",confirmPosition:s="top",isActive:m=!1})=>{const[h,g]=i(!1);return n("div",{className:c(P,{iconButton:!0,noPadding:d,active:m},[P[t],P[r]]),onClick:_?void 0:a?()=>g(!h):l,children:[e(u,{isLoading:_,icon:o,size:r}),h&&n("div",{className:`${P.confirm} ${P[s]}`,children:[e("div",{className:P.confirmMessage,children:"Are you sure?"}),n("div",{className:P.confirmActions,children:[e(T,{type:W.DANGER,onClick:()=>g(!1),label:"No",size:"xs"}),e(T,{type:W.SUCCESS,onClick:l,label:"Yes",size:"xs"})]})]})]})};var E={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 H=({title:o,subtitle:i,actionTitle:l="",action:t,completed:a,indicator:d,hasSeparator:_=!1,hasDashedSeparator:r=!1,isActionPending:s=!1})=>n("div",{className:c(E,{listItem:!0,separator:_,dashedSeparator:r}),children:[n("div",{className:E.content,children:[d&&e("div",{className:c(E,{indicator:!0},[E[d]])}),n("div",{className:E.data,children:[e("div",{className:E.title,children:o}),i&&e("div",{className:E.subtitle,children:i})]})]}),t&&e(T,{onClick:t,className:E.action,label:l,isLoading:s}),a&&e("div",{className:E.completed,children:e(u,{icon:g})})]});var j={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 R=({href:o,title:i,target:l="_self",type:t=W.DEFAULT,padding:a="zero",hasChevron:d=!1,fullWidth:_=!1})=>n("a",{href:o,target:l,rel:"noopener noreferrer",className:c(j,{link:!0,fullWidth:_},[j[t],j[a]]),children:[e("span",{children:i})," ",d&&e(u,{icon:f})]});"function"==typeof SuppressedError&&SuppressedError;var z={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 F=(e,n)=>{const o=new FileReader;o.onload=()=>{n(o.result)},o.readAsDataURL(e)};var G;!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"}(G||(G={}));const U=({isLoading:i,value:l,isDisabled:t,placeholder:a,options:d,name:_,onBlur:r,onFocus:s,onChange:c,preIcon:m,addonIcon:h,addonAction:g})=>n(o,{children:[m&&e("div",{className:z.preIcon,children:e(u,{icon:m,isLoading:i})}),n("select",{className:z.field,value:l,onBlur:r,onFocus:s,onChange:c,name:_,disabled:t,children:[a&&e("option",{value:"",children:a}),d.map((({label:n,value:o})=>e("option",{value:o,children:n},o)))]}),h&&e("div",{className:g?`${z.addon} ${z.pointer}`:z.addon,onClick:g,children:e(u,{icon:h,isLoading:i})})]});var Y={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 V=({value:o,placeholder:l,isMultiUpload:t,dndShape:a="rectangle",isDisabled:d,className:_,onFilesSelect:r,onFileSelect:s})=>{const[m,u]=i(!1),h=e=>{if(e&&e.length>0){if(t&&r)return r(e);const n=e[0];F(n,(e=>{s&&s(n,e)}))}};return e("div",{className:c(Y,{container:!0,isDragOver:m}),children:e("div",{onDrop:e=>{if(e.preventDefault(),d)return;const n=e.dataTransfer.files;h(n)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:c(Y,{dropZone:!0},[Y[a],_]),children:o?n("div",{className:Y.selectedImage,children:[e("img",{src:String(o),alt:l}),e("div",{className:Y.removeImage,children:e(M,{onClick:()=>{s&&s(null,"")},icon:p,type:W.BORDERED_PRIMARY})})]}):n("label",{className:Y.dropLabel,children:[e("span",{className:Y.placeholder,children:l||"Drop file"}),e("input",{type:"file",className:Y.input,hidden:!0,onChange:e=>{const n=e.target;h(n.files)},disabled:d})]})})})};var X={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 Z=({value:o,placeholder:i,autoFocus:l,ref:t,isDisabled:a,prefix:d,rows:_=3,onBlur:r,onFocus:s,onChange:m})=>n("div",{className:c(X,{container:!0,hasPrefix:!!d}),children:[!!d&&e("div",{className:X.prefix,children:e("span",{children:d})}),e("textarea",{className:X.field,value:o,placeholder:i,onBlur:r,onFocus:s,onChange:m,autoFocus:l,ref:t,disabled:a,rows:_})]});var q={};const K=()=>e("div",{className:q.container,children:"CHECKBOX"}),J=t((function(o,i){var{type:t=G.TEXT,label:a,placeholder:d,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:L=!1,noMargin:b=!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:Y,onEnter:X,onEsc:q,onFileSelect:J,onFilesSelect:Q}=o,$=function(e,n){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(i=Object.getOwnPropertySymbols(e);l<i.length;l++)n.indexOf(i[l])<0&&Object.prototype.propertyIsEnumerable.call(e,i[l])&&(o[i[l]]=e[i[l]])}return o}(o,["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":X&&X();break;case"Escape":q&&q()}},oe=e=>{const n=e.target.files[0];F(n,(e=>{J&&J(n,e)}))},ie=e=>{const n=e.target;Q&&Q(n.files)};return n("div",{className:c(z,{input:!0,full:!!v,noMargin:b,hasAddon:!!s||!!h,hasPrefix:!!P,darkMode:W},[z[y],z[B]]),children:[a&&n("label",{children:[e("span",{className:r?z.required:"",children:a}),!!g&&e("div",{className:z.labelAddon,children:g})]}),e("div",{className:z.container,children:(()=>{switch(t){case G.SELECT:return e(U,{preIcon:m,isLoading:C,value:_,isDisabled:D,placeholder:d,options:p,onBlur:H,onFocus:j,onChange:R,addonAction:Y,addonIcon:s,name:T});case G.DND:return e(V,{onFilesSelect:Q,onFileSelect:J,placeholder:d,value:_,dndShape:O,isDisabled:D,isMultiUpload:N,className:E});case G.COLOR_PICKER:return e("input",Object.assign({className:`${z.field} ${z.colorPicker}`,type:"color",value:_,placeholder:d,onBlur:H,onFocus:j,onChange:R,disabled:ee,ref:i},$));case G.TEXT_AREA:return e(Z,{value:_,placeholder:d,onBlur:H,onFocus:j,onChange:R,autoFocus:w,ref:i,prefix:P,rows:M});case G.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?ie:oe,ref:i,className:z.avatar,disabled:ee,multiple:N})]});case G.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?ie:oe,ref:i,className:z.avatar,disabled:ee,multiple:N})]});case G.CHECKBOX:return e(K,{});default:return n(l,{children:[!!P&&e("div",{className:z.prefix,children:e("span",{children:P})}),e("input",Object.assign({className:z.field,type:t,placeholder:d,value:_,onBlur:H,onFocus:j,onChange:R,onKeyUp:ne,ref:i,disabled:ee,autoFocus:w,name:T},$)),s&&e("div",{className:Y?`${z.addon} ${z.pointer}`:z.addon,onClick:Y,children:e(u,{icon:s,isLoading:C})}),h&&e("div",{className:Y?`${z.addon} ${z.pointer}`:z.addon,onClick:Y,children:h})]})}})()}),!!f&&e("div",{className:z.error,children:f}),!!k&&e("div",{className:c(z,{autoCompleteContent:!0,reversed:L}),children:k})]})}));var Q={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 $=(e,n)=>{const o=o=>{e.current&&!e.current.contains(o.target)&&n()};a((()=>(document.addEventListener("click",o),()=>{document.removeEventListener("click",o)})),[])},ee=e=>{const n=d(null),o=_((o=>{n.current&&!n.current.contains(o.target)&&e()}),[e]);return a((()=>(document.addEventListener("click",o),()=>{document.removeEventListener("click",o)})),[o]),n},ne=({containerRef:n,contentRef:o,isOpen:l=!1,renderChild:t,onClose:d})=>{const _={isOpen:!1,top:0,left:0,bottom:0,right:0},[s,c]=i(_),m={position:"absolute",top:s.top,left:s.left,bottom:s.bottom,right:s.right,zIndex:111},u=()=>{c(_),d()};return $(n,(()=>u())),a((()=>{if(l)return(()=>{var e,i,l,t,a,d,_;const{top:r,left:s,height:m,width:u}=null!==(l=null===(i=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===i?void 0:i.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!==(a=null===(t=null==o?void 0:o.current)||void 0===t?void 0:t.clientHeight)&&void 0!==a?a:200,A=null!==(_=null===(d=null==o?void 0:o.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200;let k="auto",L="auto",b="auto",D="auto";f<I&&p>=I?D=h-r-m+20:L=r+m+5,x<A&&v>=A?b=g-s:k=s;const C={top:L,left:k,right:b,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},oe=({children:n})=>e("div",{className:Q.menu,children:n}),ie=({action:o,menu:l,type:t=W.DEFAULT,closeRef:_,actionSize:r="medium"})=>{const s=d(null),m=d(null),u=d(null),[h,g]=i(!1),f=()=>g(!1);return a((()=>{(null==_?void 0:_.current)&&(_.current={close:()=>f()})}),[_]),n("div",{className:Q.container,ref:s,children:[e("div",{className:c(Q,{action:!0},[Q[t],Q[r]]),ref:u,onClick:()=>g(!h),children:o}),e(ne,{containerRef:s,contentRef:m,isOpen:h,onClose:f,renderChild:()=>e("div",{className:Q.menuContainer,ref:m,children:e(oe,{children:l})})})]})};var le={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 te=({shape:n="square",size:o="md",width:i,height:l})=>e("div",{className:c(le,{container:!0},[le[n],le[o]]),style:{width:i,height:l}});var ae={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 de=({title:o,content:l})=>{const[t,a]=i(!1);return n("div",{className:c(ae,{container:!0,isOpen:t}),onClick:()=>a(!t),children:[n("div",{className:ae.header,children:[e("h3",{children:o}),e(u,{icon:t?D:C,size:"md"})]}),e("div",{className:ae.body,children:e("div",{className:ae.content,children:l})})]})};var _e={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 re=({hint:o,children:i,position:l="top"})=>n("div",{className:_e.tooltip,children:[!!o&&e("div",{className:`${_e.hint} ${_e[l]}`,children:o}),i]});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:o="md",title:i,subtitle:l})=>n("div",{className:ce.heading,children:[e("div",{className:`${ce.title} ${ce[o]}`,children:i}),l&&e("div",{className:ce.subtitle,children:l})]}),ue=({title:o,subtitle:i,children:l,toolbar:t,footer:a,separated:d=!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:d,noBottomMargin:s,noBodyPadding:m,fullHeight:u,fullWidth:h}),style:Object.assign({},_&&{borderTop:g}),children:[(t||o)&&n("div",{className:se.header,children:[n("div",{className:se.headerInfo,children:[o&&e("div",{className:se.headerTitle,children:e(me,{size:"sm",title:o})}),i&&e("div",{className:se.headerSubtitle,children:i})]}),t&&e("div",{className:se.headerToolbar,children:t})]}),e("div",{className:se.body,children:l}),a&&e("div",{className:se.footer,children:a})]})};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:o})=>{const[l,t]=i(!1);return a((()=>{const e=ge.getCookieBannerState();t(e!==fe.SEEN)}),[]),l?n("div",{className:he.container,children:[n("div",{className:he.content,children:["As ",o,", 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:o,noPadding:i=!1,fullWidth:l=!1})=>e("div",{className:c(ve,{container:!0,noPadding:i,fullWidth:l},[n]),children:o});var Ie="Header-module_header__qxHtx",Ae="Header-module_content__DV-in",ke="Header-module_logo__xO2bW",Le="Header-module_mobileLogo__eNvSP",be="Header-module_actions__ZlACk",De="Header-module_mobileMenuIcon__pFpba",Ce="Header-module_menu__Yw9r6",Ne="Header-module_mobileMenu__4S-NE";const we=({logo:o,menu:l,actions:t=null})=>{const[a,d]=i(!1);return n("header",{className:Ie,children:[e(xe,{children:n("div",{className:Ae,children:[e("a",{href:"/",className:ke,children:o}),e("a",{href:"/",className:Le,children:o}),!!l&&e("div",{className:Ce,children:l}),n("div",{className:be,children:[t,!!l&&e("div",{className:De,children:e(M,{icon:a?p:L,onClick:()=>d(!a),size:"lg"})})]})]})}),a&&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:o,subtitle:i,theme:l="light",children:t,className:a})=>n("div",{className:c(ye,{container:!0},[ye[l],a]),children:[n("div",{className:ye.header,children:[e("h2",{children:o}),!!i&&e("div",{className:ye.subtitle,children:i})]}),e("div",{className:ye.body,children:t})]});var Se="FAQ-module_container__Kht11";const We=({items:n,title:o})=>e(Be,{title:o||"Frequently asked questions",children:e("div",{className:Se,children:n.map((({title:n,content:o})=>e(de,{title:n,content:o},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:o,socialLinks:i,address:l,reportLabel:t,writeUsLabel:a,followUsLabel:d,addressLabel:_})=>n("div",{className:Oe.container,children:[n("div",{className:Oe.contact,children:[e("div",{className:Oe.icon,children:e(u,{icon:b,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@${o}`,children:["feedback@",o]})})]})]}),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:a||"Write us"}),e("div",{className:Oe.value,children:n("a",{href:`mailto:contact@${o}`,children:["contact@",o]})})]})]}),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:d||"Follow us"}),e("div",{className:Oe.value,children:e("ul",{children:i.map((({url:n,icon:o})=>e("li",{children:e("a",{href:n,target:"_blank",children:e(u,{icon:o,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:o,noSpacing:i=!1,className:l="",lighter:t=!1})=>e("div",{className:c(Pe,{description:!0,noSpacing:i,lighter:t},[Pe[n],l]),children:o});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:o,onClear:i,onReload:l,type:t,inline:a=!1})=>n("div",{className:c(Ee,{alert:!0,inline:a},[Ee[t]]),children:[e("div",{className:Ee.icon,children:e(u,{icon:v,size:"md",theme:"dark"})}),e("div",{className:Ee.message,children:o}),n("div",{className:Ee.actions,children:[l&&e(M,{icon:N,onClick:l,type:W.WHITE_TEXT}),e(M,{icon:p,onClick:i,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:o="flex-start",flexWrap:i="nowrap",gap:l=1,fullHeight:t=!1,fullWidth:a=!0,children:d})=>e("div",{className:c(Fe,{container:!0,fullHeight:t,fullWidth:a}),style:{alignItems:n,justifyContent:o,flexWrap:i,gap:`${l}rem`},children:d});var Ue={container:"Column-module_container__Sqvfx",fullHeight:"Column-module_fullHeight__W87C5",fullWidth:"Column-module_fullWidth__lUQrj"};const Ye=({alignItems:n="flex-start",justifyContent:o="flex-start",gap:i=1,fullHeight:l=!1,fullWidth:t=!0,children:a,marginBottom:d=0})=>e("div",{className:c(Ue,{container:!0,fullHeight:l,fullWidth:t}),style:{alignItems:n,justifyContent:o,gap:`${i}rem`,marginBottom:`${d}rem`},children:a});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:o,shrink:i,className:l,fullHeight:t,fullWidth:a,flex:d})=>e("div",{className:c(Ve,{item:!0,grow:o,shrink:i,fullHeight:t,fullWidth:a},[l]),style:{flex:d},children:n}),Ze=({children:n,alignItems:o,justifyContent:i,flexWrap:l,gap:t,className:a,direction:d,grow:_,fullHeight:r,fullWidth:s})=>e("div",{className:c(Ve,{container:!0,fullHeight:r,fullWidth:s,grow:_},[a]),style:{alignItems:o,justifyContent:i,flexWrap:l,flexDirection:d,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:o,target:i,size:l="xs",href:t,theme:a="light",title:d=""})=>e("a",{className:c(qe,{container:!0},[qe[o],qe[l],qe[a]]),href:t,target:i,rel:"noopener noreferrer",title:d,children:e(u,{icon:n,size:l,theme:a})});var Je="Carousel-module_container__voMge",Qe="Carousel-module_carousel__cXGTr",$e="Carousel-module_item__umQ-j";const en=({children:n,gap:o=2,onGetRef:l})=>{const t=d(null),[_,r]=i(!1),[s,c]=i(0),[m,u]=i(0),h=()=>{r(!1)};return a((()=>{(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,o;r(!0),c(e.pageX-((null===(n=t.current)||void 0===n?void 0:n.offsetLeft)||0)),u((null===(o=t.current)||void 0===o?void 0:o.scrollLeft)||0)},onMouseLeave:h,onMouseUp:h,onMouseMove:e=>{var n;if(!_)return;const o=e.pageX-((null===(n=t.current)||void 0===n?void 0:n.offsetLeft)||0)-s;t.current&&(t.current.scrollLeft=m-o)},style:{gap:`${o}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:o="",children:i,type:l=W.LIGHT,size:t="medium",active:a=!1})=>e("div",{className:c(on,{box:!0,clickable:!!n,active:a},[on[l],on[t],o]),onClick:n,children:i});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",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 an=t((function({title:o,content:i,header:l,footer:t,size:a="small",onClose:d},_){return n("div",{className:c(tn,{container:!0,noFooter:!t},[tn[a]]),ref:_,children:[!o&&l&&e("div",{className:tn.header,children:l}),o&&e("div",{className:tn.header,children:n(Ge,{alignItems:"center",justifyContent:"space-between",children:[e("span",{children:o}),d&&e(M,{icon:p,onClick:d})]})}),e("div",{className:tn.body,children:i}),t&&e("div",{className:tn.footer,children:t})]})}));var dn={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:o="normal",children:i})=>{const l=(()=>{switch(n){case"h1":case"h2":case"h3":case"h4":case"h5":return n;default:return"div"}})();return e(l,{className:c(dn,{text:!0},[dn[n],dn[o]]),children:i})};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:o=!1,path:i,LibLink:l,className:t,onSelectParent:a})=>o?e("div",{className:c(sn,{parent:!0},[t]),onClick:()=>a(i),children:n}):e(l,{to:i,className:c(sn,{parent:!0},[t]),onClick:()=>a(null),children:n}),mn=({avatar:o,brandName:i,isChildrenVisible:l,menuChildren:t,logoutHint:a,user:d=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(re,{hint:i,position:"right",children:o})})}),e(Ye,{alignItems:"center",children:_.map((({path:o,title:i,shortTitle:l,icon:t,hasSubmenu:a,isActive:d},_)=>n(cn,{LibLink:r,path:o||"",onSelectParent:s,hasSubmenu:a,className:c(rn,{menuItem:!0,isActive:d}),children:[t&&e(u,{icon:t}),e("span",{children:l||i})]},_)))}),n(Ye,{className:rn.bottom,justifyContent:"flex-start",alignItems:"center",children:[d&&e("div",{className:rn.user,children:d}),e("div",{className:rn.logout,onClick:m,children:e(re,{hint:a||"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:o="left"})=>e("th",{className:gn[o],children:n}),xn=({children:n,centered:o=!1,muted:i=!1})=>e("td",{className:c(gn,{centered:o,muted:i}),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{de 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,ie as DropDown,We as FAQ,Ze as Flex,we as Header,me as Heading,M as IconButton,Ke as IconLink,J as Input,G as InputType,R as Link,H as ListItem,ze as Loading,te as LoadingItem,an 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,re as Tooltip,W as UIElementType,c as classNames,kn as getDataTableHeadAlign,$ as useClickOutside,ee as useClickOutsideRef};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|