@sorocraft/ui
Advanced tools
Comparing version 1.0.46 to 1.0.47
@@ -53,2 +53,3 @@ import { ChangeEvent, FocusEvent, KeyboardEvent, ReactElement } from "react"; | ||
dndShape?: "square" | "circle" | "rectangle"; | ||
prefix?: string; | ||
onChange?: (e: onChangeEventType) => void; | ||
@@ -55,0 +56,0 @@ onBlur?: (e: onFocusEventType) => void; |
@@ -1,11 +0,12 @@ | ||
import { ReactElement } from "react"; | ||
import { ReactNode } from "react"; | ||
interface Props { | ||
alignItems?: "flex-start" | "center" | "flex-end"; | ||
justifyContent?: "flex-start" | "center" | "flex-end" | "space-between" | "space-around"; | ||
flexWrap?: "wrap" | "nowrap"; | ||
gap?: number; | ||
fullHeight?: boolean; | ||
fullWidth?: boolean; | ||
children: ReactElement[]; | ||
children: ReactNode[]; | ||
} | ||
declare const Row: ({ alignItems, justifyContent, gap, fullHeight, fullWidth, children, }: Props) => import("react/jsx-runtime").JSX.Element; | ||
declare const Row: ({ alignItems, justifyContent, flexWrap, gap, fullHeight, fullWidth, children, }: Props) => import("react/jsx-runtime").JSX.Element; | ||
export default Row; |
@@ -37,3 +37,4 @@ export { default as Avatar } from "./components/Avatar"; | ||
export * from "./models/modal"; | ||
export * from "./models/form"; | ||
export * from "./utils/styling"; | ||
export * from "./utils/view"; |
@@ -1,2 +0,2 @@ | ||
import{jsx as e,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as i,Fragment as t,forwardRef as l,useEffect as d,useRef as a,useCallback as _}from"react";import r from"react-dom";var s={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi"};const c=(e,o,n=[])=>{let i=[];for(const n in o)o[n]&&i.push(e[n]);return(null==n?void 0:n.length)>0&&(i=i.concat(n)),i.join(" ")};var u={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 m=({icon:o,size:n="sm",className:i="",isLoading:t=!1,theme:l="light"})=>{const d=(e=>{switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}})(n);return o?e("div",{className:c(u,{container:!0,isLoading:t},[i,u[l]]),children:e(o,{className:i,width:d,height:d,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},h=n=>o("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})),g=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})})),f=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),p=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})})),v=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6"})})),x=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})})),I=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})})),k=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),A=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),L=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})})),D=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),C=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),b=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),N=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),w=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),y=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),B=({source:n=null,alt:i="avatar",size:t="sm",onClick:l,className:d,isEditable:a=!1,overlayIcon:_,inline:r=!1,isLoading:u=!1,overlayText:g})=>{const f=()=>{switch(t){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return o("div",{className:c(s,{avatar:!0,clickable:!!l||a,editable:a,inline:r,loading:u},[s[t],d]),onClick:l,style:{width:f(),height:f()},children:[n?e("img",{src:n,alt:i,className:s.image,width:f(),height:f()}):e(m,{size:t,icon:y}),a&&e("div",{className:s.editIcon,children:e(m,{isLoading:u,icon:u?w:h})}),(!!_||g)&&o("div",{className:s.overlay,children:[!!_&&e(m,{isLoading:u,icon:u?w:_}),!!g&&e("div",{className:s.overlayText,children:g})]})]})};var O,S={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"}(O||(O={}));const W=({type:n=O.PRIMARY,onClick:l,label:d,icon:a,fullWidth:_=!1,isLoading:r,disabled:s,className:u,needConfirm:h=!1,size:g="md"})=>{const[f,p]=i(!1);return o("div",{className:c(S,{container:!0,fullWidth:_}),children:[e("button",{className:c(S,{button:!0,loading:!!r},[S[n],S[g],u]),onClick:h?()=>p(!f):l,disabled:r||s,children:r?e(t,{children:"Loading..."}):o("div",{className:S.label,children:[a&&e(m,{icon:a}),e("span",{children:d})]})}),f&&o("div",{className:S.confirm,children:[e("div",{className:S.confirmMessage,children:"Are you sure?"}),o("div",{className:S.confirmActions,children:[e(W,{type:O.DANGER,onClick:()=>p(!1),label:"No",size:"xs"}),e(W,{type:O.SUCCESS,onClick:()=>{p(!1),l()},label:"Yes",size:"xs"})]})]})]})};var T={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",confirmActions:"IconButton-module_confirmActions__j7-Tt",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:n,onClick:t,type:l=O.DEFAULT,needConfirm:d=!1,noPadding:a=!1,isLoading:_=!1,size:r="sm",confirmPosition:s="top",isActive:u=!1})=>{const[h,g]=i(!1);return o("div",{className:c(T,{iconButton:!0,noPadding:a,active:u},[T[l],T[r]]),onClick:_?void 0:d?()=>g(!h):t,children:[e(m,{isLoading:_,icon:n,size:r}),h&&o("div",{className:`${T.confirm} ${T[s]}`,children:[e("div",{className:T.confirmMessage,children:"Are you sure?"}),o("div",{className:T.confirmActions,children:[e(W,{type:O.DANGER,onClick:()=>g(!1),label:"No",size:"xs"}),e(W,{type:O.SUCCESS,onClick:t,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 P=({title:n,subtitle:i,actionTitle:t="",action:l,completed:d,indicator:a,hasSeparator:_=!1,hasDashedSeparator:r=!1,isActionPending:s=!1})=>o("div",{className:c(E,{listItem:!0,separator:_,dashedSeparator:r}),children:[o("div",{className:E.content,children:[a&&e("div",{className:c(E,{indicator:!0},[E[a]])}),o("div",{className:E.data,children:[e("div",{className:E.title,children:n}),i&&e("div",{className:E.subtitle,children:i})]})]}),l&&e(W,{onClick:l,className:E.action,label:t,isLoading:s}),d&&e("div",{className:E.completed,children:e(m,{icon:g})})]});var R={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 j=({href:n,title:i,target:t="_self",type:l=O.DEFAULT,padding:d="zero",hasChevron:a=!1,fullWidth:_=!1})=>o("a",{href:n,target:t,rel:"noopener noreferrer",className:c(R,{link:!0,fullWidth:_},[R[l],R[d]]),children:[e("span",{children:i})," ",a&&e(m,{icon:f})]});"function"==typeof SuppressedError&&SuppressedError;var z,H={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",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",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"};!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"}(z||(z={}));const F=({isLoading:i,value:t,isDisabled:l,placeholder:d,options:a,name:_,onBlur:r,onFocus:s,onChange:c,preIcon:u,addonIcon:h,addonAction:g})=>o(n,{children:[u&&e("div",{className:H.preIcon,children:e(m,{icon:u,isLoading:i})}),o("select",{className:H.field,value:t,onBlur:r,onFocus:s,onChange:c,name:_,disabled:l,children:[d&&e("option",{value:"",children:d}),a.map((({label:o,value:n})=>e("option",{value:n,children:o},n)))]}),h&&e("div",{className:g?`${H.addon} ${H.pointer}`:H.addon,onClick:g,children:e(m,{icon:h,isLoading:i})})]});var G={container:"DnD-module_container__178UB",dropZone:"DnD-module_dropZone__t5iYt",placeholder:"DnD-module_placeholder__rC8G8",dropLabel:"DnD-module_dropLabel__l7Q3I",input:"DnD-module_input__aI9lN",selectedImage:"DnD-module_selectedImage__uLIc1",removeImage:"DnD-module_removeImage__GpZ8O",rectangle:"DnD-module_rectangle__ZB4vp",square:"DnD-module_square__ZBdqt",circle:"DnD-module_circle__JI4JP",isDragOver:"DnD-module_isDragOver__nSoIt",flexWide:"DnD-module_flexWide__y5aLE",slidein:"DnD-module_slidein__2-9YD",fadeInOut:"DnD-module_fadeInOut__NMUqy",heightAnimation:"DnD-module_heightAnimation__fWGqR",fadein:"DnD-module_fadein__Q2v61",floatAnimation:"DnD-module_floatAnimation__o-6Ub"};const U=(e,o)=>{const n=new FileReader;n.onload=()=>{o(n.result)},n.readAsDataURL(e)},Y=({value:n,placeholder:t,isMultiUpload:l,dndShape:d="rectangle",isDisabled:a,onFilesSelect:_,onFileSelect:r})=>{const[s,u]=i(!1),m=e=>{if(e&&e.length>0){if(l&&_)return _(e);const o=e[0];U(o,(e=>{r&&r(o,e)}))}};return e("div",{className:c(G,{container:!0,isDragOver:s}),children:e("div",{onDrop:e=>{if(e.preventDefault(),a)return;const o=e.dataTransfer.files;m(o)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:c(G,{dropZone:!0},[G[d]]),children:n?o("div",{className:G.selectedImage,children:[e("img",{src:n,alt:t}),e("div",{className:G.removeImage,children:e(M,{onClick:()=>{r&&r(null,"")},icon:p,type:O.BORDERED_PRIMARY})})]}):o("label",{className:G.dropLabel,children:[e("span",{className:G.placeholder,children:t||"Drop file"}),e("input",{type:"file",className:G.input,hidden:!0,onChange:e=>{const o=e.target;m(o.files)},disabled:a})]})})})},V=l((function(n,i){var{type:l=z.TEXT,label:d,placeholder:a,value:_,required:r=!1,addonIcon:s,preIcon:u,labelAddon:h,errorMessage:g,options:f=[],fullWidth:p,avatarSize:v,source:I,autoCompleteContent:k,autoCompleteReverse:A=!1,noMargin:L=!1,isDisabled:D=!1,isLoading:C=!1,isMultiUpload:b=!1,autoFocus:N=!1,theme:w="oval",size:y="medium",isDarkMode:O=!1,dndShape:S,name:W,onBlur:T,onFocus:M,onChange:E,addonAction:P,onEnter:R,onEsc:j,onFileSelect:G,onFilesSelect:V}=n,X=function(e,o){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(n[i[t]]=e[i[t]])}return n}(n,["type","label","placeholder","value","required","addonIcon","preIcon","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","dndShape","name","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const q=D||C,Z=e=>{switch(e.key){case"Enter":R&&R();break;case"Escape":j&&j()}},K=e=>{const o=e.target.files[0];U(o,(e=>{G&&G(o,e)}))},Q=e=>{const o=e.target;V&&V(o.files)};return o("div",{className:c(H,{input:!0,full:!!p,noMargin:L,hasAddon:!!s,darkMode:O},[H[w],H[y]]),children:[d&&o("label",{children:[e("span",{className:r?H.required:"",children:d}),!!h&&e("div",{className:H.labelAddon,children:h})]}),e("div",{className:H.container,children:(()=>{switch(l){case z.SELECT:return e(F,{preIcon:u,isLoading:C,value:_,isDisabled:D,placeholder:a,options:f,onBlur:T,onFocus:M,onChange:E,addonAction:P,addonIcon:s,name:W});case z.DND:return e(Y,{onFilesSelect:V,onFileSelect:G,placeholder:a,value:_,dndShape:S});case z.COLOR_PICKER:return e("input",Object.assign({className:`${H.field} ${H.colorPicker}`,type:"color",value:_,placeholder:a,onBlur:T,onFocus:M,onChange:E,disabled:q,ref:i},X));case z.TEXT_AREA:return e("textarea",Object.assign({className:H.field,value:_,placeholder:a,onBlur:T,onFocus:M,onChange:E,autoFocus:N,ref:i},X));case z.AVATAR_UPLOAD:return o("label",{htmlFor:"avatar-upload",children:[e(B,{size:v,source:I,isLoading:C,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:b?Q:K,ref:i,className:H.avatar,disabled:q,multiple:b})]});case z.UPLOAD_IMAGE_ICON:return o("label",{htmlFor:"upload-image-icon",children:[e(m,{icon:x,isLoading:C,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:b?Q:K,ref:i,className:H.avatar,disabled:q,multiple:b})]});default:return o(t,{children:[e("input",Object.assign({className:H.field,type:l,placeholder:a,value:_,onBlur:T,onFocus:M,onChange:E,onKeyUp:Z,ref:i,disabled:q,autoFocus:N,name:W},X)),s&&e("div",{className:P?`${H.addon} ${H.pointer}`:H.addon,onClick:P,children:e(m,{icon:s,isLoading:C})})]})}})()}),!!g&&e("div",{className:H.error,children:g}),!!k&&e("div",{className:c(H,{autoCompleteContent:!0,reversed:A}),children:k})]})}));var X={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 q=(e,o)=>{const n=n=>{e.current&&!e.current.contains(n.target)&&o()};d((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[])},Z=e=>{const o=a(null),n=_((n=>{o.current&&!o.current.contains(n.target)&&e()}),[e]);return d((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[n]),o},K=({containerRef:o,contentRef:n,isOpen:t=!1,renderChild:l,onClose:a})=>{const _={isOpen:!1,top:0,left:0,bottom:0,right:0},[s,c]=i(_),u={position:"absolute",top:s.top,left:s.left,bottom:s.bottom,right:s.right,zIndex:111},m=()=>{c(_),a()};return q(o,(()=>m())),d((()=>{if(t)return(()=>{var e,i,t,l,d,a,_;const{top:r,left:s,height:u,width:m}=null!==(t=null===(i=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===i?void 0:i.call(e))&&void 0!==t?t:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:g}=window,f=h-(r+u),p=r,v=s,x=g-(s+m),I=null!==(d=null===(l=null==n?void 0:n.current)||void 0===l?void 0:l.clientHeight)&&void 0!==d?d:200,k=null!==(_=null===(a=null==n?void 0:n.current)||void 0===a?void 0:a.clientWidth)&&void 0!==_?_:200;let A="auto",L="auto",D="auto",C="auto";f<I&&p>=I?C=h-r-u+20:L=r+u+5,x<k&&v>=k?D=g-s:A=s;const b={top:L,left:A,right:D,bottom:C};c(Object.assign(Object.assign({},b),{isOpen:!0}))})();m()}),[t,null==o?void 0:o.current]),s.isOpen?r.createPortal(e("div",{style:u,onClick:e=>{e.stopPropagation()},children:l(s)}),document.getElementById("portals")):null},Q=({children:o})=>e("div",{className:X.menu,children:o}),J=({action:n,menu:t,type:l=O.DEFAULT,closeRef:_,actionSize:r="medium"})=>{const s=a(null),u=a(null),m=a(null),[h,g]=i(!1),f=()=>g(!1);return d((()=>{(null==_?void 0:_.current)&&(_.current={close:()=>f()})}),[_]),o("div",{className:X.container,ref:s,children:[e("div",{className:c(X,{action:!0},[X[l],X[r]]),ref:m,onClick:()=>g(!h),children:n}),e(K,{containerRef:s,contentRef:u,isOpen:h,onClose:f,renderChild:()=>e("div",{className:X.menuContainer,ref:u,children:e(Q,{children:t})})})]})};var $={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 ee=({shape:o="square",size:n="md",width:i,height:t})=>e("div",{className:c($,{container:!0},[$[o],$[n]]),style:{width:i,height:t}});var oe={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 ne=({title:n,content:t})=>{const[l,d]=i(!1);return o("div",{className:c(oe,{container:!0,isOpen:l}),onClick:()=>d(!l),children:[o("div",{className:oe.header,children:[e("h3",{children:n}),e(m,{icon:l?D:C,size:"md"})]}),e("div",{className:oe.body,children:e("div",{className:oe.content,children:t})})]})};var ie={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 te=({hint:n,children:i,position:t="top"})=>o("div",{className:ie.tooltip,children:[!!n&&e("div",{className:`${ie.hint} ${ie[t]}`,children:n}),i]});var le={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",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"},de={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 ae=({size:n="md",title:i,subtitle:t})=>o("div",{className:de.heading,children:[e("div",{className:`${de.title} ${de[n]}`,children:i}),t&&e("div",{className:de.subtitle,children:t})]}),_e=({title:n,subtitle:i,children:t,toolbar:l,footer:d,separated:a=!1,borderTopWidth:_,borderTopColor:r,noBottomMargin:s=!1,noBodyPadding:u=!1})=>{const m=_?`${_}px solid ${r}`:"none";return o("div",{className:c(le,{card:!0,separated:a,noBottomMargin:s,noBodyPadding:u}),style:Object.assign({},_&&{borderTop:m}),children:[(l||n)&&o("div",{className:le.header,children:[o("div",{className:le.headerInfo,children:[n&&e("div",{className:le.headerTitle,children:e(ae,{size:"sm",title:n})}),i&&e("div",{className:le.headerSubtitle,children:i})]}),l&&e("div",{className:le.headerToolbar,children:l})]}),e("div",{className:le.body,children:t}),d&&e("div",{className:le.footer,children:d})]})};var re={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 se=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var ce;!function(e){e.SEEN="seen"}(ce||(ce={}));const ue=({appName:n})=>{const[t,l]=i(!1);return d((()=>{const e=se.getCookieBannerState();l(e!==ce.SEEN)}),[]),t?o("div",{className:re.container,children:[o("div",{className:re.content,children:["As ",n,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e("div",{className:re.actions,children:e(W,{label:"Continue",onClick:()=>{l(!1),se.saveCookieBannerState(ce.SEEN)}})})]}):null};var me={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",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 he=({className:o="",children:n,noPadding:i=!1})=>e("div",{className:c(me,{container:!0,noPadding:i},[o]),children:n});var ge="Header-module_header__qxHtx",fe="Header-module_content__DV-in",pe="Header-module_logo__xO2bW",ve="Header-module_mobileLogo__eNvSP",xe="Header-module_actions__ZlACk",Ie="Header-module_mobileMenuIcon__pFpba",ke="Header-module_menu__Yw9r6",Ae="Header-module_mobileMenu__4S-NE";const Le=({logo:n,menu:t,actions:l=null})=>{const[d,a]=i(!1);return o("header",{className:ge,children:[e(he,{children:o("div",{className:fe,children:[e("a",{href:"/",className:pe,children:n}),e("a",{href:"/",className:ve,children:n}),!!t&&e("div",{className:ke,children:t}),o("div",{className:xe,children:[l,!!t&&e("div",{className:Ie,children:e(M,{icon:d?p:A,onClick:()=>a(!d),size:"lg"})})]})]})}),d&&e("div",{className:Ae,children:t})]})};var De={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",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 Ce=({title:n,subtitle:i,theme:t="light",children:l})=>o("div",{className:c(De,{container:!0},[De[t]]),children:[o("div",{className:De.header,children:[e("h2",{children:n}),!!i&&e("div",{className:De.subtitle,children:i})]}),e("div",{className:De.body,children:l})]});var be="FAQ-module_container__Kht11";const Ne=({items:o,title:n})=>e(Ce,{title:n||"Frequently asked questions",children:e("div",{className:be,children:o.map((({title:o,content:n})=>e(ne,{title:o,content:n},o)))})});var we={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"};const ye=({domain:n,socialLinks:i,address:t,reportLabel:l,writeUsLabel:d,followUsLabel:a,addressLabel:_})=>o("div",{className:we.container,children:[o("div",{className:we.contact,children:[e("div",{className:we.icon,children:e(m,{icon:L,size:"xl"})}),o("div",{className:we.content,children:[e("div",{className:we.title,children:l||"Report"}),e("div",{className:we.value,children:o("a",{href:`mailto:feedback@${n}`,children:["feedback@",n]})})]})]}),o("div",{className:we.contact,children:[e("div",{className:we.icon,children:e(m,{icon:I,size:"xl"})}),o("div",{className:we.content,children:[e("div",{className:we.title,children:d||"Write us"}),e("div",{className:we.value,children:o("a",{href:`mailto:contact@${n}`,children:["contact@",n]})})]})]}),o("div",{className:we.contact,children:[e("div",{className:we.icon,children:e(m,{icon:N,size:"xl"})}),o("div",{className:we.content,children:[e("div",{className:we.title,children:a||"Follow us"}),e("div",{className:we.value,children:e("ul",{children:i.map((({url:o,icon:n})=>e("li",{children:e("a",{href:o,target:"_blank",children:e(m,{icon:n,size:"md"})})},o)))})})]})]}),o("div",{className:we.contact,children:[e("div",{className:we.icon,children:e(m,{icon:k,size:"xl"})}),o("div",{className:we.content,children:[e("div",{className:we.title,children:_||"Address"}),e("div",{className:we.value,children:t})]})]})]});var Be={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 Oe=({size:o="m",text:n,noSpacing:i=!1,className:t="",lighter:l=!1})=>e("div",{className:c(Be,{description:!0,noSpacing:i,lighter:l},[Be[o],t]),children:n});var Se={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 We=({message:n,onClear:i,onReload:t,type:l,inline:d=!1})=>o("div",{className:c(Se,{alert:!0,inline:d},[Se[l]]),children:[e("div",{className:Se.icon,children:e(m,{icon:v,size:"md",theme:"dark"})}),e("div",{className:Se.message,children:n}),o("div",{className:Se.actions,children:[t&&e(M,{icon:b,onClick:t,type:O.WHITE_TEXT}),e(M,{icon:p,onClick:i,type:O.WHITE_TEXT})]})]});var Te="Loading-module_loading__7gLQd",Me="Loading-module_image__gig5S";const Ee=({image:o})=>e("div",{className:Te,children:e("img",{src:o,alt:"Loading...",className:Me})});var Pe={container:"Row-module_container__YDvu0",fullHeight:"Row-module_fullHeight__WqzPm",fullWidth:"Row-module_fullWidth__YDAac"};const Re=({alignItems:o="center",justifyContent:n="flex-start",gap:i=1,fullHeight:t=!1,fullWidth:l=!0,children:d})=>e("div",{className:c(Pe,{container:!0,fullHeight:t,fullWidth:l}),style:{alignItems:o,justifyContent:n,gap:`${i}rem`},children:d});var je={container:"Column-module_container__7CuWT",fullHeight:"Column-module_fullHeight__K6DgR",fullWidth:"Column-module_fullWidth__60vVA"};const ze=({alignItems:o="flex-start",justifyContent:n="flex-start",gap:i=1,fullHeight:t=!1,fullWidth:l=!0,children:d})=>e("div",{className:c(je,{container:!0,fullHeight:t,fullWidth:l}),style:{alignItems:o,justifyContent:n,gap:`${i}rem`},children:d});var He={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 Fe=({icon:o,shape:n,target:i,size:t="xs",href:l,theme:d="light",title:a=""})=>e("a",{className:c(He,{container:!0},[He[n],He[t],He[d]]),href:l,target:i,rel:"noopener noreferrer",title:a,children:e(m,{icon:o,size:t,theme:d})});var Ge="Carousel-module_container__voMge",Ue="Carousel-module_carousel__cXGTr",Ye="Carousel-module_item__umQ-j";const Ve=({children:o,gap:n=2})=>{const t=a(null),[l,d]=i(!1),[_,r]=i(0),[s,c]=i(0),u=()=>{d(!1)};return e("div",{className:Ge,children:e("div",{className:Ue,ref:t,onMouseDown:e=>{var o,n;d(!0),r(e.pageX-((null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)),c((null===(n=t.current)||void 0===n?void 0:n.scrollLeft)||0)},onMouseLeave:u,onMouseUp:u,onMouseMove:e=>{var o;if(!l)return;const n=e.pageX-((null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)-_;t.current&&(t.current.scrollLeft=s-n)},style:{gap:`${n}rem`,cursor:l?"grabbing":"grab"},children:o})})},Xe=({children:o})=>e("div",{className:Ye,children:o});var qe={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 Ze=({onClick:o,className:n="",children:i,type:t=O.LIGHT,size:l="medium",active:d=!1})=>e("div",{className:c(qe,{box:!0,clickable:!!o,active:d},[qe[t],qe[l],n]),onClick:o,children:i});var Ke={container:"Modal-module_container__UCuJv",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9",footer:"Modal-module_footer__Oyz-R",fullWidth:"Modal-module_fullWidth__jaM2v",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 Qe=l((function({title:n,content:i,header:t,footer:l,fullWidth:d=!1},a){return o("div",{className:c(Ke,{container:!0,fullWidth:d}),ref:a,children:[e("div",{className:Ke.header,children:t||e("div",{className:Ke.headerContent,children:e("div",{className:Ke.title,children:n})})}),e("div",{className:Ke.body,children:i}),l&&e("div",{className:Ke.footer,children:l})]})}));export{ne as Accordion,We as AlertBox,B as Avatar,W as Button,_e as Card,Ve as Carousel,Xe as CarouselItem,Ze as Chip,ze as Column,ye as ContactsList,he as Container,ue as CookieBanner,Oe as Description,J as DropDown,Ne as FAQ,Le as Header,ae as Heading,M as IconButton,Fe as IconLink,V as Input,z as InputType,j as Link,P as ListItem,Ee as Loading,ee as LoadingItem,Qe as Modal,Re as Row,m as SVGIcon,Ce as Section,te as Tooltip,O as UIElementType,c as classNames,q as useClickOutside,Z as useClickOutsideRef}; | ||
import{jsx as e,jsxs as o,Fragment as n}from"react/jsx-runtime";import{useState as i,Fragment as t,forwardRef as l,useEffect as 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,o,n=[])=>{let i=[];for(const n in o)o[n]&&i.push(e[n]);return(null==n?void 0:n.length)>0&&(i=i.concat(n)),i.join(" ")};var u={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 m=({icon:o,size:n="sm",className:i="",isLoading:t=!1,theme:l="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}})(n);return o?e("div",{className:c(u,{container:!0,isLoading:t},[i,u[l]]),children:e(o,{className:i,width:a,height:a,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},h=n=>o("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:[e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})),g=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})})),f=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),p=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})})),v=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6"})})),x=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})})),I=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})})),k=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),A=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),L=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})})),D=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),C=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),b=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),N=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),w=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),y=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),B=({source:n=null,alt:i="avatar",size:t="sm",onClick:l,className:a,isEditable:d=!1,overlayIcon:_,inline:r=!1,isLoading:u=!1,overlayText:g})=>{const f=()=>{switch(t){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return o("div",{className:c(s,{avatar:!0,clickable:!!l||d,editable:d,inline:r,loading:u},[s[t],a]),onClick:l,style:{width:f(),height:f()},children:[n?e("img",{src:n,alt:i,className:s.image,width:f(),height:f()}):e(m,{size:t,icon:y}),d&&e("div",{className:s.editIcon,children:e(m,{isLoading:u,icon:u?w:h})}),(!!_||g)&&o("div",{className:s.overlay,children:[!!_&&e(m,{isLoading:u,icon:u?w:_}),!!g&&e("div",{className:s.overlayText,children:g})]})]})};var O,S={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"}(O||(O={}));const W=({type:n=O.PRIMARY,onClick:l,label:a,icon:d,fullWidth:_=!1,isLoading:r,disabled:s,className:u,needConfirm:h=!1,size:g="md"})=>{const[f,p]=i(!1);return o("div",{className:c(S,{container:!0,fullWidth:_}),children:[e("button",{className:c(S,{button:!0,loading:!!r},[S[n],S[g],u]),onClick:h?()=>p(!f):l,disabled:r||s,children:r?e(t,{children:"Loading..."}):o("div",{className:S.label,children:[d&&e(m,{icon:d}),e("span",{children:a})]})}),f&&o("div",{className:S.confirm,children:[e("div",{className:S.confirmMessage,children:"Are you sure?"}),o("div",{className:S.confirmActions,children:[e(W,{type:O.DANGER,onClick:()=>p(!1),label:"No",size:"xs"}),e(W,{type:O.SUCCESS,onClick:()=>{p(!1),l()},label:"Yes",size:"xs"})]})]})]})};var T={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",confirmActions:"IconButton-module_confirmActions__j7-Tt",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:n,onClick:t,type:l=O.DEFAULT,needConfirm:a=!1,noPadding:d=!1,isLoading:_=!1,size:r="sm",confirmPosition:s="top",isActive:u=!1})=>{const[h,g]=i(!1);return o("div",{className:c(T,{iconButton:!0,noPadding:d,active:u},[T[l],T[r]]),onClick:_?void 0:a?()=>g(!h):t,children:[e(m,{isLoading:_,icon:n,size:r}),h&&o("div",{className:`${T.confirm} ${T[s]}`,children:[e("div",{className:T.confirmMessage,children:"Are you sure?"}),o("div",{className:T.confirmActions,children:[e(W,{type:O.DANGER,onClick:()=>g(!1),label:"No",size:"xs"}),e(W,{type:O.SUCCESS,onClick:t,label:"Yes",size:"xs"})]})]})]})};var P={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 E=({title:n,subtitle:i,actionTitle:t="",action:l,completed:a,indicator:d,hasSeparator:_=!1,hasDashedSeparator:r=!1,isActionPending:s=!1})=>o("div",{className:c(P,{listItem:!0,separator:_,dashedSeparator:r}),children:[o("div",{className:P.content,children:[d&&e("div",{className:c(P,{indicator:!0},[P[d]])}),o("div",{className:P.data,children:[e("div",{className:P.title,children:n}),i&&e("div",{className:P.subtitle,children:i})]})]}),l&&e(W,{onClick:l,className:P.action,label:t,isLoading:s}),a&&e("div",{className:P.completed,children:e(m,{icon:g})})]});var R={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 j=({href:n,title:i,target:t="_self",type:l=O.DEFAULT,padding:a="zero",hasChevron:d=!1,fullWidth:_=!1})=>o("a",{href:n,target:t,rel:"noopener noreferrer",className:c(R,{link:!0,fullWidth:_},[R[l],R[a]]),children:[e("span",{children:i})," ",d&&e(m,{icon:f})]});"function"==typeof SuppressedError&&SuppressedError;var z,H={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"};!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"}(z||(z={}));const F=({isLoading:i,value:t,isDisabled:l,placeholder:a,options:d,name:_,onBlur:r,onFocus:s,onChange:c,preIcon:u,addonIcon:h,addonAction:g})=>o(n,{children:[u&&e("div",{className:H.preIcon,children:e(m,{icon:u,isLoading:i})}),o("select",{className:H.field,value:t,onBlur:r,onFocus:s,onChange:c,name:_,disabled:l,children:[a&&e("option",{value:"",children:a}),d.map((({label:o,value:n})=>e("option",{value:n,children:o},n)))]}),h&&e("div",{className:g?`${H.addon} ${H.pointer}`:H.addon,onClick:g,children:e(m,{icon:h,isLoading:i})})]});var G={container:"DnD-module_container__178UB",dropZone:"DnD-module_dropZone__t5iYt",placeholder:"DnD-module_placeholder__rC8G8",dropLabel:"DnD-module_dropLabel__l7Q3I",input:"DnD-module_input__aI9lN",selectedImage:"DnD-module_selectedImage__uLIc1",removeImage:"DnD-module_removeImage__GpZ8O",rectangle:"DnD-module_rectangle__ZB4vp",square:"DnD-module_square__ZBdqt",circle:"DnD-module_circle__JI4JP",isDragOver:"DnD-module_isDragOver__nSoIt",flexWide:"DnD-module_flexWide__y5aLE",slidein:"DnD-module_slidein__2-9YD",fadeInOut:"DnD-module_fadeInOut__NMUqy",heightAnimation:"DnD-module_heightAnimation__fWGqR",fadein:"DnD-module_fadein__Q2v61",floatAnimation:"DnD-module_floatAnimation__o-6Ub"};const U=(e,o)=>{const n=new FileReader;n.onload=()=>{o(n.result)},n.readAsDataURL(e)},Y=({value:n,placeholder:t,isMultiUpload:l,dndShape:a="rectangle",isDisabled:d,onFilesSelect:_,onFileSelect:r})=>{const[s,u]=i(!1),m=e=>{if(e&&e.length>0){if(l&&_)return _(e);const o=e[0];U(o,(e=>{r&&r(o,e)}))}};return e("div",{className:c(G,{container:!0,isDragOver:s}),children:e("div",{onDrop:e=>{if(e.preventDefault(),d)return;const o=e.dataTransfer.files;m(o)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:c(G,{dropZone:!0},[G[a]]),children:n?o("div",{className:G.selectedImage,children:[e("img",{src:n,alt:t}),e("div",{className:G.removeImage,children:e(M,{onClick:()=>{r&&r(null,"")},icon:p,type:O.BORDERED_PRIMARY})})]}):o("label",{className:G.dropLabel,children:[e("span",{className:G.placeholder,children:t||"Drop file"}),e("input",{type:"file",className:G.input,hidden:!0,onChange:e=>{const o=e.target;m(o.files)},disabled:d})]})})})},V=l((function(n,i){var{type:l=z.TEXT,label:a,placeholder:d,value:_,required:r=!1,addonIcon:s,preIcon:u,labelAddon:h,errorMessage:g,options:f=[],fullWidth:p,avatarSize:v,source:I,autoCompleteContent:k,autoCompleteReverse:A=!1,noMargin:L=!1,isDisabled:D=!1,isLoading:C=!1,isMultiUpload:b=!1,autoFocus:N=!1,theme:w="oval",size:y="medium",isDarkMode:O=!1,dndShape:S,name:W,prefix:T,onBlur:M,onFocus:P,onChange:E,addonAction:R,onEnter:j,onEsc:G,onFileSelect:V,onFilesSelect:X}=n,q=function(e,o){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(n[i[t]]=e[i[t]])}return n}(n,["type","label","placeholder","value","required","addonIcon","preIcon","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","dndShape","name","prefix","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const Z=D||C,K=e=>{switch(e.key){case"Enter":j&&j();break;case"Escape":G&&G()}},Q=e=>{const o=e.target.files[0];U(o,(e=>{V&&V(o,e)}))},J=e=>{const o=e.target;X&&X(o.files)};return o("div",{className:c(H,{input:!0,full:!!p,noMargin:L,hasAddon:!!s,hasPrefix:!!T,darkMode:O},[H[w],H[y]]),children:[a&&o("label",{children:[e("span",{className:r?H.required:"",children:a}),!!h&&e("div",{className:H.labelAddon,children:h})]}),e("div",{className:H.container,children:(()=>{switch(l){case z.SELECT:return e(F,{preIcon:u,isLoading:C,value:_,isDisabled:D,placeholder:d,options:f,onBlur:M,onFocus:P,onChange:E,addonAction:R,addonIcon:s,name:W});case z.DND:return e(Y,{onFilesSelect:X,onFileSelect:V,placeholder:d,value:_,dndShape:S});case z.COLOR_PICKER:return e("input",Object.assign({className:`${H.field} ${H.colorPicker}`,type:"color",value:_,placeholder:d,onBlur:M,onFocus:P,onChange:E,disabled:Z,ref:i},q));case z.TEXT_AREA:return e("textarea",Object.assign({className:H.field,value:_,placeholder:d,onBlur:M,onFocus:P,onChange:E,autoFocus:N,ref:i},q));case z.AVATAR_UPLOAD:return o("label",{htmlFor:"avatar-upload",children:[e(B,{size:v,source:I,isLoading:C,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:b?J:Q,ref:i,className:H.avatar,disabled:Z,multiple:b})]});case z.UPLOAD_IMAGE_ICON:return o("label",{htmlFor:"upload-image-icon",children:[e(m,{icon:x,isLoading:C,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:b?J:Q,ref:i,className:H.avatar,disabled:Z,multiple:b})]});default:return o(t,{children:[!!T&&e("div",{className:H.prefix,children:e("span",{children:T})}),e("input",Object.assign({className:H.field,type:l,placeholder:d,value:_,onBlur:M,onFocus:P,onChange:E,onKeyUp:K,ref:i,disabled:Z,autoFocus:N,name:W},q)),s&&e("div",{className:R?`${H.addon} ${H.pointer}`:H.addon,onClick:R,children:e(m,{icon:s,isLoading:C})})]})}})()}),!!g&&e("div",{className:H.error,children:g}),!!k&&e("div",{className:c(H,{autoCompleteContent:!0,reversed:A}),children:k})]})}));var X={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 q=(e,o)=>{const n=n=>{e.current&&!e.current.contains(n.target)&&o()};a((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[])},Z=e=>{const o=d(null),n=_((n=>{o.current&&!o.current.contains(n.target)&&e()}),[e]);return a((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[n]),o},K=({containerRef:o,contentRef:n,isOpen:t=!1,renderChild:l,onClose:d})=>{const _={isOpen:!1,top:0,left:0,bottom:0,right:0},[s,c]=i(_),u={position:"absolute",top:s.top,left:s.left,bottom:s.bottom,right:s.right,zIndex:111},m=()=>{c(_),d()};return q(o,(()=>m())),a((()=>{if(t)return(()=>{var e,i,t,l,a,d,_;const{top:r,left:s,height:u,width:m}=null!==(t=null===(i=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===i?void 0:i.call(e))&&void 0!==t?t:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:g}=window,f=h-(r+u),p=r,v=s,x=g-(s+m),I=null!==(a=null===(l=null==n?void 0:n.current)||void 0===l?void 0:l.clientHeight)&&void 0!==a?a:200,k=null!==(_=null===(d=null==n?void 0:n.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200;let A="auto",L="auto",D="auto",C="auto";f<I&&p>=I?C=h-r-u+20:L=r+u+5,x<k&&v>=k?D=g-s:A=s;const b={top:L,left:A,right:D,bottom:C};c(Object.assign(Object.assign({},b),{isOpen:!0}))})();m()}),[t,null==o?void 0:o.current]),s.isOpen?r.createPortal(e("div",{style:u,onClick:e=>{e.stopPropagation()},children:l(s)}),document.getElementById("portals")):null},Q=({children:o})=>e("div",{className:X.menu,children:o}),J=({action:n,menu:t,type:l=O.DEFAULT,closeRef:_,actionSize:r="medium"})=>{const s=d(null),u=d(null),m=d(null),[h,g]=i(!1),f=()=>g(!1);return a((()=>{(null==_?void 0:_.current)&&(_.current={close:()=>f()})}),[_]),o("div",{className:X.container,ref:s,children:[e("div",{className:c(X,{action:!0},[X[l],X[r]]),ref:m,onClick:()=>g(!h),children:n}),e(K,{containerRef:s,contentRef:u,isOpen:h,onClose:f,renderChild:()=>e("div",{className:X.menuContainer,ref:u,children:e(Q,{children:t})})})]})};var $={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 ee=({shape:o="square",size:n="md",width:i,height:t})=>e("div",{className:c($,{container:!0},[$[o],$[n]]),style:{width:i,height:t}});var oe={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 ne=({title:n,content:t})=>{const[l,a]=i(!1);return o("div",{className:c(oe,{container:!0,isOpen:l}),onClick:()=>a(!l),children:[o("div",{className:oe.header,children:[e("h3",{children:n}),e(m,{icon:l?D:C,size:"md"})]}),e("div",{className:oe.body,children:e("div",{className:oe.content,children:t})})]})};var ie={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 te=({hint:n,children:i,position:t="top"})=>o("div",{className:ie.tooltip,children:[!!n&&e("div",{className:`${ie.hint} ${ie[t]}`,children:n}),i]});var le={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",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"},ae={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 de=({size:n="md",title:i,subtitle:t})=>o("div",{className:ae.heading,children:[e("div",{className:`${ae.title} ${ae[n]}`,children:i}),t&&e("div",{className:ae.subtitle,children:t})]}),_e=({title:n,subtitle:i,children:t,toolbar:l,footer:a,separated:d=!1,borderTopWidth:_,borderTopColor:r,noBottomMargin:s=!1,noBodyPadding:u=!1})=>{const m=_?`${_}px solid ${r}`:"none";return o("div",{className:c(le,{card:!0,separated:d,noBottomMargin:s,noBodyPadding:u}),style:Object.assign({},_&&{borderTop:m}),children:[(l||n)&&o("div",{className:le.header,children:[o("div",{className:le.headerInfo,children:[n&&e("div",{className:le.headerTitle,children:e(de,{size:"sm",title:n})}),i&&e("div",{className:le.headerSubtitle,children:i})]}),l&&e("div",{className:le.headerToolbar,children:l})]}),e("div",{className:le.body,children:t}),a&&e("div",{className:le.footer,children:a})]})};var re={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 se=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var ce;!function(e){e.SEEN="seen"}(ce||(ce={}));const ue=({appName:n})=>{const[t,l]=i(!1);return a((()=>{const e=se.getCookieBannerState();l(e!==ce.SEEN)}),[]),t?o("div",{className:re.container,children:[o("div",{className:re.content,children:["As ",n,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e("div",{className:re.actions,children:e(W,{label:"Continue",onClick:()=>{l(!1),se.saveCookieBannerState(ce.SEEN)}})})]}):null};var me={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",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 he=({className:o="",children:n,noPadding:i=!1})=>e("div",{className:c(me,{container:!0,noPadding:i},[o]),children:n});var ge="Header-module_header__qxHtx",fe="Header-module_content__DV-in",pe="Header-module_logo__xO2bW",ve="Header-module_mobileLogo__eNvSP",xe="Header-module_actions__ZlACk",Ie="Header-module_mobileMenuIcon__pFpba",ke="Header-module_menu__Yw9r6",Ae="Header-module_mobileMenu__4S-NE";const Le=({logo:n,menu:t,actions:l=null})=>{const[a,d]=i(!1);return o("header",{className:ge,children:[e(he,{children:o("div",{className:fe,children:[e("a",{href:"/",className:pe,children:n}),e("a",{href:"/",className:ve,children:n}),!!t&&e("div",{className:ke,children:t}),o("div",{className:xe,children:[l,!!t&&e("div",{className:Ie,children:e(M,{icon:a?p:A,onClick:()=>d(!a),size:"lg"})})]})]})}),a&&e("div",{className:Ae,children:t})]})};var De={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",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 Ce=({title:n,subtitle:i,theme:t="light",children:l})=>o("div",{className:c(De,{container:!0},[De[t]]),children:[o("div",{className:De.header,children:[e("h2",{children:n}),!!i&&e("div",{className:De.subtitle,children:i})]}),e("div",{className:De.body,children:l})]});var be="FAQ-module_container__Kht11";const Ne=({items:o,title:n})=>e(Ce,{title:n||"Frequently asked questions",children:e("div",{className:be,children:o.map((({title:o,content:n})=>e(ne,{title:o,content:n},o)))})});var we={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"};const ye=({domain:n,socialLinks:i,address:t,reportLabel:l,writeUsLabel:a,followUsLabel:d,addressLabel:_})=>o("div",{className:we.container,children:[o("div",{className:we.contact,children:[e("div",{className:we.icon,children:e(m,{icon:L,size:"xl"})}),o("div",{className:we.content,children:[e("div",{className:we.title,children:l||"Report"}),e("div",{className:we.value,children:o("a",{href:`mailto:feedback@${n}`,children:["feedback@",n]})})]})]}),o("div",{className:we.contact,children:[e("div",{className:we.icon,children:e(m,{icon:I,size:"xl"})}),o("div",{className:we.content,children:[e("div",{className:we.title,children:a||"Write us"}),e("div",{className:we.value,children:o("a",{href:`mailto:contact@${n}`,children:["contact@",n]})})]})]}),o("div",{className:we.contact,children:[e("div",{className:we.icon,children:e(m,{icon:N,size:"xl"})}),o("div",{className:we.content,children:[e("div",{className:we.title,children:d||"Follow us"}),e("div",{className:we.value,children:e("ul",{children:i.map((({url:o,icon:n})=>e("li",{children:e("a",{href:o,target:"_blank",children:e(m,{icon:n,size:"md"})})},o)))})})]})]}),o("div",{className:we.contact,children:[e("div",{className:we.icon,children:e(m,{icon:k,size:"xl"})}),o("div",{className:we.content,children:[e("div",{className:we.title,children:_||"Address"}),e("div",{className:we.value,children:t})]})]})]});var Be={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 Oe=({size:o="m",text:n,noSpacing:i=!1,className:t="",lighter:l=!1})=>e("div",{className:c(Be,{description:!0,noSpacing:i,lighter:l},[Be[o],t]),children:n});var Se={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 We=({message:n,onClear:i,onReload:t,type:l,inline:a=!1})=>o("div",{className:c(Se,{alert:!0,inline:a},[Se[l]]),children:[e("div",{className:Se.icon,children:e(m,{icon:v,size:"md",theme:"dark"})}),e("div",{className:Se.message,children:n}),o("div",{className:Se.actions,children:[t&&e(M,{icon:b,onClick:t,type:O.WHITE_TEXT}),e(M,{icon:p,onClick:i,type:O.WHITE_TEXT})]})]});var Te="Loading-module_loading__7gLQd",Me="Loading-module_image__gig5S";const Pe=({image:o})=>e("div",{className:Te,children:e("img",{src:o,alt:"Loading...",className:Me})});var Ee={container:"Row-module_container__YDvu0",fullHeight:"Row-module_fullHeight__WqzPm",fullWidth:"Row-module_fullWidth__YDAac"};const Re=({alignItems:o="center",justifyContent:n="flex-start",flexWrap:i="nowrap",gap:t=1,fullHeight:l=!1,fullWidth:a=!0,children:d})=>e("div",{className:c(Ee,{container:!0,fullHeight:l,fullWidth:a}),style:{alignItems:o,justifyContent:n,flexWrap:i,gap:`${t}rem`},children:d});var je={container:"Column-module_container__7CuWT",fullHeight:"Column-module_fullHeight__K6DgR",fullWidth:"Column-module_fullWidth__60vVA"};const ze=({alignItems:o="flex-start",justifyContent:n="flex-start",gap:i=1,fullHeight:t=!1,fullWidth:l=!0,children:a})=>e("div",{className:c(je,{container:!0,fullHeight:t,fullWidth:l}),style:{alignItems:o,justifyContent:n,gap:`${i}rem`},children:a});var He={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 Fe=({icon:o,shape:n,target:i,size:t="xs",href:l,theme:a="light",title:d=""})=>e("a",{className:c(He,{container:!0},[He[n],He[t],He[a]]),href:l,target:i,rel:"noopener noreferrer",title:d,children:e(m,{icon:o,size:t,theme:a})});var Ge="Carousel-module_container__voMge",Ue="Carousel-module_carousel__cXGTr",Ye="Carousel-module_item__umQ-j";const Ve=({children:o,gap:n=2})=>{const t=d(null),[l,a]=i(!1),[_,r]=i(0),[s,c]=i(0),u=()=>{a(!1)};return e("div",{className:Ge,children:e("div",{className:Ue,ref:t,onMouseDown:e=>{var o,n;a(!0),r(e.pageX-((null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)),c((null===(n=t.current)||void 0===n?void 0:n.scrollLeft)||0)},onMouseLeave:u,onMouseUp:u,onMouseMove:e=>{var o;if(!l)return;const n=e.pageX-((null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)-_;t.current&&(t.current.scrollLeft=s-n)},style:{gap:`${n}rem`,cursor:l?"grabbing":"grab"},children:o})})},Xe=({children:o})=>e("div",{className:Ye,children:o});var qe={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 Ze=({onClick:o,className:n="",children:i,type:t=O.LIGHT,size:l="medium",active:a=!1})=>e("div",{className:c(qe,{box:!0,clickable:!!o,active:a},[qe[t],qe[l],n]),onClick:o,children:i});var Ke={container:"Modal-module_container__UCuJv",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9",footer:"Modal-module_footer__Oyz-R",fullWidth:"Modal-module_fullWidth__jaM2v",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 Qe=l((function({title:n,content:i,header:t,footer:l,fullWidth:a=!1},d){return o("div",{className:c(Ke,{container:!0,fullWidth:a}),ref:d,children:[t&&e("div",{className:Ke.header,children:t}),e("div",{className:Ke.body,children:i}),l&&e("div",{className:Ke.footer,children:l})]})}));export{ne as Accordion,We as AlertBox,B as Avatar,W as Button,_e as Card,Ve as Carousel,Xe as CarouselItem,Ze as Chip,ze as Column,ye as ContactsList,he as Container,ue as CookieBanner,Oe as Description,J as DropDown,Ne as FAQ,Le as Header,de as Heading,M as IconButton,Fe as IconLink,V as Input,z as InputType,j as Link,E as ListItem,Pe as Loading,ee as LoadingItem,Qe as Modal,Re as Row,m as SVGIcon,Ce as Section,te as Tooltip,O as UIElementType,c as classNames,q as useClickOutside,Z as useClickOutsideRef}; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";var e=require("react/jsx-runtime"),o=require("react"),n=require("react-dom"),i={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi"};const t=(e,o,n=[])=>{let i=[];for(const n in o)o[n]&&i.push(e[n]);return(null==n?void 0:n.length)>0&&(i=i.concat(n)),i.join(" ")};var l={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",dark:"SVGIcon-module_dark__4QbUi",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr"};const a=({icon:o,size:n="sm",className:i="",isLoading:a=!1,theme:d="light"})=>{const s=(e=>{switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}})(n);return o?e.jsx("div",{className:t(l,{container:!0,isLoading:a},[i,l[d]]),children:e.jsx(o,{className:i,width:s,height:s,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},d=o=>e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:[e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})),s=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})})),r=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),_=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})})),c=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6"})})),u=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})})),m=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),h=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})})),g=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),x=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),p=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),f=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),v=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"})})),I=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),j=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),k=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),A=({source:o=null,alt:n="avatar",size:l="sm",onClick:s,className:r,isEditable:_=!1,overlayIcon:c,inline:u=!1,isLoading:m=!1,overlayText:h})=>{const g=()=>{switch(l){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return e.jsxs("div",{className:t(i,{avatar:!0,clickable:!!s||_,editable:_,inline:u,loading:m},[i[l],r]),onClick:s,style:{width:g(),height:g()},children:[o?e.jsx("img",{src:o,alt:n,className:i.image,width:g(),height:g()}):e.jsx(a,{size:l,icon:k}),_&&e.jsx("div",{className:i.editIcon,children:e.jsx(a,{isLoading:m,icon:m?j:d})}),(!!c||h)&&e.jsxs("div",{className:i.overlay,children:[!!c&&e.jsx(a,{isLoading:m,icon:m?j:c}),!!h&&e.jsx("div",{className:i.overlayText,children:h})]})]})};var L,D={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};exports.UIElementType=void 0,(L=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",L.SECONDARY="secondary",L.DANGER="danger",L.SUCCESS="success",L.WARNING="warning",L.INFO="info",L.LIGHT="light",L.DEFAULT="default",L.DARK="dark",L.LIGHT_PRIMARY="lightPrimary",L.LIGHT_SUCCESS="lightSuccess",L.LIGHT_WARNING="lightWarning",L.LIGHT_INFO="lightInfo",L.LIGHT_DANGER="lightDanger",L.LIGHT_DARK="lightDark",L.LIGHT_SECONDARY="lightSecondary",L.WHITE_TEXT="whiteText",L.BORDERED_PRIMARY="borderedPrimary",L.BORDERED_SECONDARY="borderedSecondary";const C=({type:n=exports.UIElementType.PRIMARY,onClick:i,label:l,icon:d,fullWidth:s=!1,isLoading:r,disabled:_,className:c,needConfirm:u=!1,size:m="md"})=>{const[h,g]=o.useState(!1);return e.jsxs("div",{className:t(D,{container:!0,fullWidth:s}),children:[e.jsx("button",{className:t(D,{button:!0,loading:!!r},[D[n],D[m],c]),onClick:u?()=>g(!h):i,disabled:r||_,children:r?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:D.label,children:[d&&e.jsx(a,{icon:d}),e.jsx("span",{children:l})]})}),h&&e.jsxs("div",{className:D.confirm,children:[e.jsx("div",{className:D.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:D.confirmActions,children:[e.jsx(C,{type:exports.UIElementType.DANGER,onClick:()=>g(!1),label:"No",size:"xs"}),e.jsx(C,{type:exports.UIElementType.SUCCESS,onClick:()=>{g(!1),i()},label:"Yes",size:"xs"})]})]})]})};var b={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",confirmActions:"IconButton-module_confirmActions__j7-Tt",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 N=({icon:n,onClick:i,type:l=exports.UIElementType.DEFAULT,needConfirm:d=!1,noPadding:s=!1,isLoading:r=!1,size:_="sm",confirmPosition:c="top",isActive:u=!1})=>{const[m,h]=o.useState(!1);return e.jsxs("div",{className:t(b,{iconButton:!0,noPadding:s,active:u},[b[l],b[_]]),onClick:r?void 0:d?()=>h(!m):i,children:[e.jsx(a,{isLoading:r,icon:n,size:_}),m&&e.jsxs("div",{className:`${b.confirm} ${b[c]}`,children:[e.jsx("div",{className:b.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:b.confirmActions,children:[e.jsx(C,{type:exports.UIElementType.DANGER,onClick:()=>h(!1),label:"No",size:"xs"}),e.jsx(C,{type:exports.UIElementType.SUCCESS,onClick:i,label:"Yes",size:"xs"})]})]})]})};var w={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy"};var y={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",sm:"Link-module_sm__FcTWO",md:"Link-module_md__mmLj-",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"};"function"==typeof SuppressedError&&SuppressedError;var B,S={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",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",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"};exports.InputType=void 0,(B=exports.InputType||(exports.InputType={})).TEXT="text",B.PASSWORD="password",B.EMAIL="email",B.NUMBER="number",B.URL="url",B.TEL="tel",B.DATE="date",B.DATETIME="datetime",B.SELECT="select",B.COLOR_PICKER="color-picker",B.TEXT_AREA="text-area",B.AVATAR_UPLOAD="avatar-upload",B.UPLOAD_IMAGE_ICON="upload-image-icon",B.DND="dnd";const O=({isLoading:o,value:n,isDisabled:i,placeholder:t,options:l,name:d,onBlur:s,onFocus:r,onChange:_,preIcon:c,addonIcon:u,addonAction:m})=>e.jsxs(e.Fragment,{children:[c&&e.jsx("div",{className:S.preIcon,children:e.jsx(a,{icon:c,isLoading:o})}),e.jsxs("select",{className:S.field,value:n,onBlur:s,onFocus:r,onChange:_,name:d,disabled:i,children:[t&&e.jsx("option",{value:"",children:t}),l.map((({label:o,value:n})=>e.jsx("option",{value:n,children:o},n)))]}),u&&e.jsx("div",{className:m?`${S.addon} ${S.pointer}`:S.addon,onClick:m,children:e.jsx(a,{icon:u,isLoading:o})})]});var W={container:"DnD-module_container__178UB",dropZone:"DnD-module_dropZone__t5iYt",placeholder:"DnD-module_placeholder__rC8G8",dropLabel:"DnD-module_dropLabel__l7Q3I",input:"DnD-module_input__aI9lN",selectedImage:"DnD-module_selectedImage__uLIc1",removeImage:"DnD-module_removeImage__GpZ8O",rectangle:"DnD-module_rectangle__ZB4vp",square:"DnD-module_square__ZBdqt",circle:"DnD-module_circle__JI4JP",isDragOver:"DnD-module_isDragOver__nSoIt",flexWide:"DnD-module_flexWide__y5aLE",slidein:"DnD-module_slidein__2-9YD",fadeInOut:"DnD-module_fadeInOut__NMUqy",heightAnimation:"DnD-module_heightAnimation__fWGqR",fadein:"DnD-module_fadein__Q2v61",floatAnimation:"DnD-module_floatAnimation__o-6Ub"};const T=(e,o)=>{const n=new FileReader;n.onload=()=>{o(n.result)},n.readAsDataURL(e)},E=({value:n,placeholder:i,isMultiUpload:l,dndShape:a="rectangle",isDisabled:d,onFilesSelect:s,onFileSelect:r})=>{const[c,u]=o.useState(!1),m=e=>{if(e&&e.length>0){if(l&&s)return s(e);const o=e[0];T(o,(e=>{r&&r(o,e)}))}};return e.jsx("div",{className:t(W,{container:!0,isDragOver:c}),children:e.jsx("div",{onDrop:e=>{if(e.preventDefault(),d)return;const o=e.dataTransfer.files;m(o)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:t(W,{dropZone:!0},[W[a]]),children:n?e.jsxs("div",{className:W.selectedImage,children:[e.jsx("img",{src:n,alt:i}),e.jsx("div",{className:W.removeImage,children:e.jsx(N,{onClick:()=>{r&&r(null,"")},icon:_,type:exports.UIElementType.BORDERED_PRIMARY})})]}):e.jsxs("label",{className:W.dropLabel,children:[e.jsx("span",{className:W.placeholder,children:i||"Drop file"}),e.jsx("input",{type:"file",className:W.input,hidden:!0,onChange:e=>{const o=e.target;m(o.files)},disabled:d})]})})})},M=o.forwardRef((function(n,i){var{type:l=exports.InputType.TEXT,label:d,placeholder:s,value:r,required:_=!1,addonIcon:c,preIcon:m,labelAddon:h,errorMessage:g,options:x=[],fullWidth:p,avatarSize:f,source:v,autoCompleteContent:I,autoCompleteReverse:j=!1,noMargin:k=!1,isDisabled:L=!1,isLoading:D=!1,isMultiUpload:C=!1,autoFocus:b=!1,theme:N="oval",size:w="medium",isDarkMode:y=!1,dndShape:B,name:W,onBlur:M,onFocus:P,onChange:R,addonAction:z,onEnter:H,onEsc:U,onFileSelect:F,onFilesSelect:G}=n,Y=function(e,o){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(n[i[t]]=e[i[t]])}return n}(n,["type","label","placeholder","value","required","addonIcon","preIcon","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","dndShape","name","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const V=L||D,X=e=>{switch(e.key){case"Enter":H&&H();break;case"Escape":U&&U()}},q=e=>{const o=e.target.files[0];T(o,(e=>{F&&F(o,e)}))},Z=e=>{const o=e.target;G&&G(o.files)};return e.jsxs("div",{className:t(S,{input:!0,full:!!p,noMargin:k,hasAddon:!!c,darkMode:y},[S[N],S[w]]),children:[d&&e.jsxs("label",{children:[e.jsx("span",{className:_?S.required:"",children:d}),!!h&&e.jsx("div",{className:S.labelAddon,children:h})]}),e.jsx("div",{className:S.container,children:(()=>{switch(l){case exports.InputType.SELECT:return e.jsx(O,{preIcon:m,isLoading:D,value:r,isDisabled:L,placeholder:s,options:x,onBlur:M,onFocus:P,onChange:R,addonAction:z,addonIcon:c,name:W});case exports.InputType.DND:return e.jsx(E,{onFilesSelect:G,onFileSelect:F,placeholder:s,value:r,dndShape:B});case exports.InputType.COLOR_PICKER:return e.jsx("input",Object.assign({className:`${S.field} ${S.colorPicker}`,type:"color",value:r,placeholder:s,onBlur:M,onFocus:P,onChange:R,disabled:V,ref:i},Y));case exports.InputType.TEXT_AREA:return e.jsx("textarea",Object.assign({className:S.field,value:r,placeholder:s,onBlur:M,onFocus:P,onChange:R,autoFocus:b,ref:i},Y));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(A,{size:f,source:v,isLoading:D,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:C?Z:q,ref:i,className:S.avatar,disabled:V,multiple:C})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(a,{icon:u,isLoading:D,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:C?Z:q,ref:i,className:S.avatar,disabled:V,multiple:C})]});default:return e.jsxs(o.Fragment,{children:[e.jsx("input",Object.assign({className:S.field,type:l,placeholder:s,value:r,onBlur:M,onFocus:P,onChange:R,onKeyUp:X,ref:i,disabled:V,autoFocus:b,name:W},Y)),c&&e.jsx("div",{className:z?`${S.addon} ${S.pointer}`:S.addon,onClick:z,children:e.jsx(a,{icon:c,isLoading:D})})]})}})()}),!!g&&e.jsx("div",{className:S.error,children:g}),!!I&&e.jsx("div",{className:t(S,{autoCompleteContent:!0,reversed:j}),children:I})]})}));var P={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 R=(e,n)=>{const i=o=>{e.current&&!e.current.contains(o.target)&&n()};o.useEffect((()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)})),[])},z=({containerRef:i,contentRef:t,isOpen:l=!1,renderChild:a,onClose:d})=>{const s={isOpen:!1,top:0,left:0,bottom:0,right:0},[r,_]=o.useState(s),c={position:"absolute",top:r.top,left:r.left,bottom:r.bottom,right:r.right,zIndex:111},u=()=>{_(s),d()};return R(i,(()=>u())),o.useEffect((()=>{if(l)return(()=>{var e,o,n,l,a,d,s;const{top:r,left:c,height:u,width:m}=null!==(n=null===(o=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==n?n:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:g}=window,x=h-(r+u),p=r,f=c,v=g-(c+m),I=null!==(a=null===(l=null==t?void 0:t.current)||void 0===l?void 0:l.clientHeight)&&void 0!==a?a:200,j=null!==(s=null===(d=null==t?void 0:t.current)||void 0===d?void 0:d.clientWidth)&&void 0!==s?s:200;let k="auto",A="auto",L="auto",D="auto";x<I&&p>=I?D=h-r-u+20:A=r+u+5,v<j&&f>=j?L=g-c:k=c;const C={top:A,left:k,right:L,bottom:D};_(Object.assign(Object.assign({},C),{isOpen:!0}))})();u()}),[l,null==i?void 0:i.current]),r.isOpen?n.createPortal(e.jsx("div",{style:c,onClick:e=>{e.stopPropagation()},children:a(r)}),document.getElementById("portals")):null},H=({children:o})=>e.jsx("div",{className:P.menu,children:o});var U={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"};var F={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 G=({title:n,content:i})=>{const[l,d]=o.useState(!1);return e.jsxs("div",{className:t(F,{container:!0,isOpen:l}),onClick:()=>d(!l),children:[e.jsxs("div",{className:F.header,children:[e.jsx("h3",{children:n}),e.jsx(a,{icon:l?p:f,size:"md"})]}),e.jsx("div",{className:F.body,children:e.jsx("div",{className:F.content,children:i})})]})};var Y={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"};var V={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",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"},X={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 q=({size:o="md",title:n,subtitle:i})=>e.jsxs("div",{className:X.heading,children:[e.jsx("div",{className:`${X.title} ${X[o]}`,children:n}),i&&e.jsx("div",{className:X.subtitle,children:i})]});var Z={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 K=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var Q;!function(e){e.SEEN="seen"}(Q||(Q={}));var J={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",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 $=({className:o="",children:n,noPadding:i=!1})=>e.jsx("div",{className:t(J,{container:!0,noPadding:i},[o]),children:n});var ee="Header-module_header__qxHtx",oe="Header-module_content__DV-in",ne="Header-module_logo__xO2bW",ie="Header-module_mobileLogo__eNvSP",te="Header-module_actions__ZlACk",le="Header-module_mobileMenuIcon__pFpba",ae="Header-module_menu__Yw9r6",de="Header-module_mobileMenu__4S-NE";var se={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",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 re=({title:o,subtitle:n,theme:i="light",children:l})=>e.jsxs("div",{className:t(se,{container:!0},[se[i]]),children:[e.jsxs("div",{className:se.header,children:[e.jsx("h2",{children:o}),!!n&&e.jsx("div",{className:se.subtitle,children:n})]}),e.jsx("div",{className:se.body,children:l})]});var _e="FAQ-module_container__Kht11";var ce={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"};var ue={description:"Description-module_description__ENVu-",xl:"Description-module_xl__GtUSA",lg:"Description-module_lg__ENF-W",m:"Description-module_m__RqjBl",s:"Description-module_s__RAro3",xs:"Description-module_xs__0chE0",noSpacing:"Description-module_noSpacing__746UN",lighter:"Description-module_lighter__y-rC3",flexWide:"Description-module_flexWide__CEoWm",slidein:"Description-module_slidein__ZJBnB",fadeInOut:"Description-module_fadeInOut__ZdTzP",heightAnimation:"Description-module_heightAnimation__v2n3a",fadein:"Description-module_fadein__bPsva",floatAnimation:"Description-module_floatAnimation__Cq8oz"};var me={alert:"AlertBox-module_alert__y9n9e",inline:"AlertBox-module_inline__upbhQ",error:"AlertBox-module_error__anhZO",success:"AlertBox-module_success__80DOT",icon:"AlertBox-module_icon__FLy1Y",actions:"AlertBox-module_actions__fgPt7","supeer-icon-button":"AlertBox-module_supeer-icon-button__8oUJ8",message:"AlertBox-module_message__ssD6S",flexWide:"AlertBox-module_flexWide__isTSZ",slidein:"AlertBox-module_slidein__BNFh5",fadeInOut:"AlertBox-module_fadeInOut__DW6jj",heightAnimation:"AlertBox-module_heightAnimation__AMoVU",fadein:"AlertBox-module_fadein__5wonR",floatAnimation:"AlertBox-module_floatAnimation__rXaKh"};var he="Loading-module_loading__7gLQd",ge="Loading-module_image__gig5S";var xe={container:"Row-module_container__YDvu0",fullHeight:"Row-module_fullHeight__WqzPm",fullWidth:"Row-module_fullWidth__YDAac"};var pe={container:"Column-module_container__7CuWT",fullHeight:"Column-module_fullHeight__K6DgR",fullWidth:"Column-module_fullWidth__60vVA"};var fe={container:"IconLink-module_container__DPEQm",xxs:"IconLink-module_xxs__VR--q",xs:"IconLink-module_xs__7kP8f",sm:"IconLink-module_sm__VTyu1",md:"IconLink-module_md__YaLm6",lg:"IconLink-module_lg__mEFFB",xl:"IconLink-module_xl__SFhG7",xxl:"IconLink-module_xxl__bxRt7",xxxl:"IconLink-module_xxxl__-ah4f",circle:"IconLink-module_circle__SszO0",light:"IconLink-module_light__ntSbm",dark:"IconLink-module_dark__3JP27",flexWide:"IconLink-module_flexWide__kFlaC",slidein:"IconLink-module_slidein__L3sxO",fadeInOut:"IconLink-module_fadeInOut__UZw3F",heightAnimation:"IconLink-module_heightAnimation__XWKzZ",fadein:"IconLink-module_fadein__mu-Q-",floatAnimation:"IconLink-module_floatAnimation__Upk7f"};var ve="Carousel-module_container__voMge",Ie="Carousel-module_carousel__cXGTr",je="Carousel-module_item__umQ-j";var ke={box:"Chip-module_box__bPxl6",large:"Chip-module_large__vYrP6",small:"Chip-module_small__53iJq",clickable:"Chip-module_clickable__dzpKp",light:"Chip-module_light__29AuI",active:"Chip-module_active__BlTSF",lightDark:"Chip-module_lightDark__XNFQ7",lightDanger:"Chip-module_lightDanger__rLWTT",lightInfo:"Chip-module_lightInfo__lhtRG",lightPrimary:"Chip-module_lightPrimary__YzHWA",lightSecondary:"Chip-module_lightSecondary__qXcsD",lightWarning:"Chip-module_lightWarning__DDYW3",lightSuccess:"Chip-module_lightSuccess__n5gp5",primary:"Chip-module_primary__rvetC",secondary:"Chip-module_secondary__pLu90",danger:"Chip-module_danger__OJzar",dark:"Chip-module_dark__OOepT",info:"Chip-module_info__gtJS1",success:"Chip-module_success__0GXdc",warning:"Chip-module_warning__NBLbz",whiteText:"Chip-module_whiteText__zg28n",default:"Chip-module_default__AZUs1",borderedPrimary:"Chip-module_borderedPrimary__bRpmY",borderedSecondary:"Chip-module_borderedSecondary__JgMYX",flexWide:"Chip-module_flexWide__j8zBM",slidein:"Chip-module_slidein__qMh2s",fadeInOut:"Chip-module_fadeInOut__X5Sw2",heightAnimation:"Chip-module_heightAnimation__OA0dv",fadein:"Chip-module_fadein__CkDEY",floatAnimation:"Chip-module_floatAnimation__PMaOv"};var Ae={container:"Modal-module_container__UCuJv",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9",footer:"Modal-module_footer__Oyz-R",fullWidth:"Modal-module_fullWidth__jaM2v",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 Le=o.forwardRef((function({title:o,content:n,header:i,footer:l,fullWidth:a=!1},d){return e.jsxs("div",{className:t(Ae,{container:!0,fullWidth:a}),ref:d,children:[e.jsx("div",{className:Ae.header,children:i||e.jsx("div",{className:Ae.headerContent,children:e.jsx("div",{className:Ae.title,children:o})})}),e.jsx("div",{className:Ae.body,children:n}),l&&e.jsx("div",{className:Ae.footer,children:l})]})}));exports.Accordion=G,exports.AlertBox=({message:o,onClear:n,onReload:i,type:l,inline:d=!1})=>e.jsxs("div",{className:t(me,{alert:!0,inline:d},[me[l]]),children:[e.jsx("div",{className:me.icon,children:e.jsx(a,{icon:c,size:"md",theme:"dark"})}),e.jsx("div",{className:me.message,children:o}),e.jsxs("div",{className:me.actions,children:[i&&e.jsx(N,{icon:v,onClick:i,type:exports.UIElementType.WHITE_TEXT}),e.jsx(N,{icon:_,onClick:n,type:exports.UIElementType.WHITE_TEXT})]})]}),exports.Avatar=A,exports.Button=C,exports.Card=({title:o,subtitle:n,children:i,toolbar:l,footer:a,separated:d=!1,borderTopWidth:s,borderTopColor:r,noBottomMargin:_=!1,noBodyPadding:c=!1})=>{const u=s?`${s}px solid ${r}`:"none";return e.jsxs("div",{className:t(V,{card:!0,separated:d,noBottomMargin:_,noBodyPadding:c}),style:Object.assign({},s&&{borderTop:u}),children:[(l||o)&&e.jsxs("div",{className:V.header,children:[e.jsxs("div",{className:V.headerInfo,children:[o&&e.jsx("div",{className:V.headerTitle,children:e.jsx(q,{size:"sm",title:o})}),n&&e.jsx("div",{className:V.headerSubtitle,children:n})]}),l&&e.jsx("div",{className:V.headerToolbar,children:l})]}),e.jsx("div",{className:V.body,children:i}),a&&e.jsx("div",{className:V.footer,children:a})]})},exports.Carousel=({children:n,gap:i=2})=>{const t=o.useRef(null),[l,a]=o.useState(!1),[d,s]=o.useState(0),[r,_]=o.useState(0),c=()=>{a(!1)};return e.jsx("div",{className:ve,children:e.jsx("div",{className:Ie,ref:t,onMouseDown:e=>{var o,n;a(!0),s(e.pageX-((null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)),_((null===(n=t.current)||void 0===n?void 0:n.scrollLeft)||0)},onMouseLeave:c,onMouseUp:c,onMouseMove:e=>{var o;if(!l)return;const n=e.pageX-((null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)-d;t.current&&(t.current.scrollLeft=r-n)},style:{gap:`${i}rem`,cursor:l?"grabbing":"grab"},children:n})})},exports.CarouselItem=({children:o})=>e.jsx("div",{className:je,children:o}),exports.Chip=({onClick:o,className:n="",children:i,type:l=exports.UIElementType.LIGHT,size:a="medium",active:d=!1})=>e.jsx("div",{className:t(ke,{box:!0,clickable:!!o,active:d},[ke[l],ke[a],n]),onClick:o,children:i}),exports.Column=({alignItems:o="flex-start",justifyContent:n="flex-start",gap:i=1,fullHeight:l=!1,fullWidth:a=!0,children:d})=>e.jsx("div",{className:t(pe,{container:!0,fullHeight:l,fullWidth:a}),style:{alignItems:o,justifyContent:n,gap:`${i}rem`},children:d}),exports.ContactsList=({domain:o,socialLinks:n,address:i,reportLabel:t,writeUsLabel:l,followUsLabel:d,addressLabel:s})=>e.jsxs("div",{className:ce.container,children:[e.jsxs("div",{className:ce.contact,children:[e.jsx("div",{className:ce.icon,children:e.jsx(a,{icon:x,size:"xl"})}),e.jsxs("div",{className:ce.content,children:[e.jsx("div",{className:ce.title,children:t||"Report"}),e.jsx("div",{className:ce.value,children:e.jsxs("a",{href:`mailto:feedback@${o}`,children:["feedback@",o]})})]})]}),e.jsxs("div",{className:ce.contact,children:[e.jsx("div",{className:ce.icon,children:e.jsx(a,{icon:m,size:"xl"})}),e.jsxs("div",{className:ce.content,children:[e.jsx("div",{className:ce.title,children:l||"Write us"}),e.jsx("div",{className:ce.value,children:e.jsxs("a",{href:`mailto:contact@${o}`,children:["contact@",o]})})]})]}),e.jsxs("div",{className:ce.contact,children:[e.jsx("div",{className:ce.icon,children:e.jsx(a,{icon:I,size:"xl"})}),e.jsxs("div",{className:ce.content,children:[e.jsx("div",{className:ce.title,children:d||"Follow us"}),e.jsx("div",{className:ce.value,children:e.jsx("ul",{children:n.map((({url:o,icon:n})=>e.jsx("li",{children:e.jsx("a",{href:o,target:"_blank",children:e.jsx(a,{icon:n,size:"md"})})},o)))})})]})]}),e.jsxs("div",{className:ce.contact,children:[e.jsx("div",{className:ce.icon,children:e.jsx(a,{icon:h,size:"xl"})}),e.jsxs("div",{className:ce.content,children:[e.jsx("div",{className:ce.title,children:s||"Address"}),e.jsx("div",{className:ce.value,children:i})]})]})]}),exports.Container=$,exports.CookieBanner=({appName:n})=>{const[i,t]=o.useState(!1);return o.useEffect((()=>{const e=K.getCookieBannerState();t(e!==Q.SEEN)}),[]),i?e.jsxs("div",{className:Z.container,children:[e.jsxs("div",{className:Z.content,children:["As ",n,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e.jsx("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e.jsx("div",{className:Z.actions,children:e.jsx(C,{label:"Continue",onClick:()=>{t(!1),K.saveCookieBannerState(Q.SEEN)}})})]}):null},exports.Description=({size:o="m",text:n,noSpacing:i=!1,className:l="",lighter:a=!1})=>e.jsx("div",{className:t(ue,{description:!0,noSpacing:i,lighter:a},[ue[o],l]),children:n}),exports.DropDown=({action:n,menu:i,type:l=exports.UIElementType.DEFAULT,closeRef:a,actionSize:d="medium"})=>{const s=o.useRef(null),r=o.useRef(null),_=o.useRef(null),[c,u]=o.useState(!1),m=()=>u(!1);return o.useEffect((()=>{(null==a?void 0:a.current)&&(a.current={close:()=>m()})}),[a]),e.jsxs("div",{className:P.container,ref:s,children:[e.jsx("div",{className:t(P,{action:!0},[P[l],P[d]]),ref:_,onClick:()=>u(!c),children:n}),e.jsx(z,{containerRef:s,contentRef:r,isOpen:c,onClose:m,renderChild:()=>e.jsx("div",{className:P.menuContainer,ref:r,children:e.jsx(H,{children:i})})})]})},exports.FAQ=({items:o,title:n})=>e.jsx(re,{title:n||"Frequently asked questions",children:e.jsx("div",{className:_e,children:o.map((({title:o,content:n})=>e.jsx(G,{title:o,content:n},o)))})}),exports.Header=({logo:n,menu:i,actions:t=null})=>{const[l,a]=o.useState(!1);return e.jsxs("header",{className:ee,children:[e.jsx($,{children:e.jsxs("div",{className:oe,children:[e.jsx("a",{href:"/",className:ne,children:n}),e.jsx("a",{href:"/",className:ie,children:n}),!!i&&e.jsx("div",{className:ae,children:i}),e.jsxs("div",{className:te,children:[t,!!i&&e.jsx("div",{className:le,children:e.jsx(N,{icon:l?_:g,onClick:()=>a(!l),size:"lg"})})]})]})}),l&&e.jsx("div",{className:de,children:i})]})},exports.Heading=q,exports.IconButton=N,exports.IconLink=({icon:o,shape:n,target:i,size:l="xs",href:d,theme:s="light",title:r=""})=>e.jsx("a",{className:t(fe,{container:!0},[fe[n],fe[l],fe[s]]),href:d,target:i,rel:"noopener noreferrer",title:r,children:e.jsx(a,{icon:o,size:l,theme:s})}),exports.Input=M,exports.Link=({href:o,title:n,target:i="_self",type:l=exports.UIElementType.DEFAULT,padding:d="zero",hasChevron:s=!1,fullWidth:_=!1})=>e.jsxs("a",{href:o,target:i,rel:"noopener noreferrer",className:t(y,{link:!0,fullWidth:_},[y[l],y[d]]),children:[e.jsx("span",{children:n})," ",s&&e.jsx(a,{icon:r})]}),exports.ListItem=({title:o,subtitle:n,actionTitle:i="",action:l,completed:d,indicator:r,hasSeparator:_=!1,hasDashedSeparator:c=!1,isActionPending:u=!1})=>e.jsxs("div",{className:t(w,{listItem:!0,separator:_,dashedSeparator:c}),children:[e.jsxs("div",{className:w.content,children:[r&&e.jsx("div",{className:t(w,{indicator:!0},[w[r]])}),e.jsxs("div",{className:w.data,children:[e.jsx("div",{className:w.title,children:o}),n&&e.jsx("div",{className:w.subtitle,children:n})]})]}),l&&e.jsx(C,{onClick:l,className:w.action,label:i,isLoading:u}),d&&e.jsx("div",{className:w.completed,children:e.jsx(a,{icon:s})})]}),exports.Loading=({image:o})=>e.jsx("div",{className:he,children:e.jsx("img",{src:o,alt:"Loading...",className:ge})}),exports.LoadingItem=({shape:o="square",size:n="md",width:i,height:l})=>e.jsx("div",{className:t(U,{container:!0},[U[o],U[n]]),style:{width:i,height:l}}),exports.Modal=Le,exports.Row=({alignItems:o="center",justifyContent:n="flex-start",gap:i=1,fullHeight:l=!1,fullWidth:a=!0,children:d})=>e.jsx("div",{className:t(xe,{container:!0,fullHeight:l,fullWidth:a}),style:{alignItems:o,justifyContent:n,gap:`${i}rem`},children:d}),exports.SVGIcon=a,exports.Section=re,exports.Tooltip=({hint:o,children:n,position:i="top"})=>e.jsxs("div",{className:Y.tooltip,children:[!!o&&e.jsx("div",{className:`${Y.hint} ${Y[i]}`,children:o}),n]}),exports.classNames=t,exports.useClickOutside=R,exports.useClickOutsideRef=e=>{const n=o.useRef(null),i=o.useCallback((o=>{n.current&&!n.current.contains(o.target)&&e()}),[e]);return o.useEffect((()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)})),[i]),n}; | ||
"use strict";var e=require("react/jsx-runtime"),o=require("react"),n=require("react-dom"),i={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi"};const t=(e,o,n=[])=>{let i=[];for(const n in o)o[n]&&i.push(e[n]);return(null==n?void 0:n.length)>0&&(i=i.concat(n)),i.join(" ")};var l={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",dark:"SVGIcon-module_dark__4QbUi",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr"};const a=({icon:o,size:n="sm",className:i="",isLoading:a=!1,theme:d="light"})=>{const s=(e=>{switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}})(n);return o?e.jsx("div",{className:t(l,{container:!0,isLoading:a},[i,l[d]]),children:e.jsx(o,{className:i,width:s,height:s,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},d=o=>e.jsxs("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:[e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]})),s=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})})),r=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),_=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})})),c=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M19 15.744a4.502 4.502 0 0 0-1.08-8.725 6.002 6.002 0 0 0-11.84 0A4.5 4.5 0 0 0 5 15.744M13 10l-4 6h6l-4 6"})})),u=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})})),m=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),h=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),x=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),g=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"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"})})),p=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),f=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),v=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"})})),I=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),j=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),k=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),A=({source:o=null,alt:n="avatar",size:l="sm",onClick:s,className:r,isEditable:_=!1,overlayIcon:c,inline:u=!1,isLoading:m=!1,overlayText:h})=>{const x=()=>{switch(l){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return e.jsxs("div",{className:t(i,{avatar:!0,clickable:!!s||_,editable:_,inline:u,loading:m},[i[l],r]),onClick:s,style:{width:x(),height:x()},children:[o?e.jsx("img",{src:o,alt:n,className:i.image,width:x(),height:x()}):e.jsx(a,{size:l,icon:k}),_&&e.jsx("div",{className:i.editIcon,children:e.jsx(a,{isLoading:m,icon:m?j:d})}),(!!c||h)&&e.jsxs("div",{className:i.overlay,children:[!!c&&e.jsx(a,{isLoading:m,icon:m?j:c}),!!h&&e.jsx("div",{className:i.overlayText,children:h})]})]})};var L,D={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};exports.UIElementType=void 0,(L=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",L.SECONDARY="secondary",L.DANGER="danger",L.SUCCESS="success",L.WARNING="warning",L.INFO="info",L.LIGHT="light",L.DEFAULT="default",L.DARK="dark",L.LIGHT_PRIMARY="lightPrimary",L.LIGHT_SUCCESS="lightSuccess",L.LIGHT_WARNING="lightWarning",L.LIGHT_INFO="lightInfo",L.LIGHT_DANGER="lightDanger",L.LIGHT_DARK="lightDark",L.LIGHT_SECONDARY="lightSecondary",L.WHITE_TEXT="whiteText",L.BORDERED_PRIMARY="borderedPrimary",L.BORDERED_SECONDARY="borderedSecondary";const C=({type:n=exports.UIElementType.PRIMARY,onClick:i,label:l,icon:d,fullWidth:s=!1,isLoading:r,disabled:_,className:c,needConfirm:u=!1,size:m="md"})=>{const[h,x]=o.useState(!1);return e.jsxs("div",{className:t(D,{container:!0,fullWidth:s}),children:[e.jsx("button",{className:t(D,{button:!0,loading:!!r},[D[n],D[m],c]),onClick:u?()=>x(!h):i,disabled:r||_,children:r?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:D.label,children:[d&&e.jsx(a,{icon:d}),e.jsx("span",{children:l})]})}),h&&e.jsxs("div",{className:D.confirm,children:[e.jsx("div",{className:D.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:D.confirmActions,children:[e.jsx(C,{type:exports.UIElementType.DANGER,onClick:()=>x(!1),label:"No",size:"xs"}),e.jsx(C,{type:exports.UIElementType.SUCCESS,onClick:()=>{x(!1),i()},label:"Yes",size:"xs"})]})]})]})};var b={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",confirmActions:"IconButton-module_confirmActions__j7-Tt",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 N=({icon:n,onClick:i,type:l=exports.UIElementType.DEFAULT,needConfirm:d=!1,noPadding:s=!1,isLoading:r=!1,size:_="sm",confirmPosition:c="top",isActive:u=!1})=>{const[m,h]=o.useState(!1);return e.jsxs("div",{className:t(b,{iconButton:!0,noPadding:s,active:u},[b[l],b[_]]),onClick:r?void 0:d?()=>h(!m):i,children:[e.jsx(a,{isLoading:r,icon:n,size:_}),m&&e.jsxs("div",{className:`${b.confirm} ${b[c]}`,children:[e.jsx("div",{className:b.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:b.confirmActions,children:[e.jsx(C,{type:exports.UIElementType.DANGER,onClick:()=>h(!1),label:"No",size:"xs"}),e.jsx(C,{type:exports.UIElementType.SUCCESS,onClick:i,label:"Yes",size:"xs"})]})]})]})};var w={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy"};var y={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",sm:"Link-module_sm__FcTWO",md:"Link-module_md__mmLj-",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"};"function"==typeof SuppressedError&&SuppressedError;var B,S={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"};exports.InputType=void 0,(B=exports.InputType||(exports.InputType={})).TEXT="text",B.PASSWORD="password",B.EMAIL="email",B.NUMBER="number",B.URL="url",B.TEL="tel",B.DATE="date",B.DATETIME="datetime",B.SELECT="select",B.COLOR_PICKER="color-picker",B.TEXT_AREA="text-area",B.AVATAR_UPLOAD="avatar-upload",B.UPLOAD_IMAGE_ICON="upload-image-icon",B.DND="dnd";const O=({isLoading:o,value:n,isDisabled:i,placeholder:t,options:l,name:d,onBlur:s,onFocus:r,onChange:_,preIcon:c,addonIcon:u,addonAction:m})=>e.jsxs(e.Fragment,{children:[c&&e.jsx("div",{className:S.preIcon,children:e.jsx(a,{icon:c,isLoading:o})}),e.jsxs("select",{className:S.field,value:n,onBlur:s,onFocus:r,onChange:_,name:d,disabled:i,children:[t&&e.jsx("option",{value:"",children:t}),l.map((({label:o,value:n})=>e.jsx("option",{value:n,children:o},n)))]}),u&&e.jsx("div",{className:m?`${S.addon} ${S.pointer}`:S.addon,onClick:m,children:e.jsx(a,{icon:u,isLoading:o})})]});var W={container:"DnD-module_container__178UB",dropZone:"DnD-module_dropZone__t5iYt",placeholder:"DnD-module_placeholder__rC8G8",dropLabel:"DnD-module_dropLabel__l7Q3I",input:"DnD-module_input__aI9lN",selectedImage:"DnD-module_selectedImage__uLIc1",removeImage:"DnD-module_removeImage__GpZ8O",rectangle:"DnD-module_rectangle__ZB4vp",square:"DnD-module_square__ZBdqt",circle:"DnD-module_circle__JI4JP",isDragOver:"DnD-module_isDragOver__nSoIt",flexWide:"DnD-module_flexWide__y5aLE",slidein:"DnD-module_slidein__2-9YD",fadeInOut:"DnD-module_fadeInOut__NMUqy",heightAnimation:"DnD-module_heightAnimation__fWGqR",fadein:"DnD-module_fadein__Q2v61",floatAnimation:"DnD-module_floatAnimation__o-6Ub"};const T=(e,o)=>{const n=new FileReader;n.onload=()=>{o(n.result)},n.readAsDataURL(e)},E=({value:n,placeholder:i,isMultiUpload:l,dndShape:a="rectangle",isDisabled:d,onFilesSelect:s,onFileSelect:r})=>{const[c,u]=o.useState(!1),m=e=>{if(e&&e.length>0){if(l&&s)return s(e);const o=e[0];T(o,(e=>{r&&r(o,e)}))}};return e.jsx("div",{className:t(W,{container:!0,isDragOver:c}),children:e.jsx("div",{onDrop:e=>{if(e.preventDefault(),d)return;const o=e.dataTransfer.files;m(o)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>u(!0),onDragLeave:()=>u(!1),className:t(W,{dropZone:!0},[W[a]]),children:n?e.jsxs("div",{className:W.selectedImage,children:[e.jsx("img",{src:n,alt:i}),e.jsx("div",{className:W.removeImage,children:e.jsx(N,{onClick:()=>{r&&r(null,"")},icon:_,type:exports.UIElementType.BORDERED_PRIMARY})})]}):e.jsxs("label",{className:W.dropLabel,children:[e.jsx("span",{className:W.placeholder,children:i||"Drop file"}),e.jsx("input",{type:"file",className:W.input,hidden:!0,onChange:e=>{const o=e.target;m(o.files)},disabled:d})]})})})},M=o.forwardRef((function(n,i){var{type:l=exports.InputType.TEXT,label:d,placeholder:s,value:r,required:_=!1,addonIcon:c,preIcon:m,labelAddon:h,errorMessage:x,options:g=[],fullWidth:p,avatarSize:f,source:v,autoCompleteContent:I,autoCompleteReverse:j=!1,noMargin:k=!1,isDisabled:L=!1,isLoading:D=!1,isMultiUpload:C=!1,autoFocus:b=!1,theme:N="oval",size:w="medium",isDarkMode:y=!1,dndShape:B,name:W,prefix:M,onBlur:P,onFocus:R,onChange:z,addonAction:H,onEnter:U,onEsc:F,onFileSelect:G,onFilesSelect:Y}=n,V=function(e,o){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(n[i[t]]=e[i[t]])}return n}(n,["type","label","placeholder","value","required","addonIcon","preIcon","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","dndShape","name","prefix","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const X=L||D,q=e=>{switch(e.key){case"Enter":U&&U();break;case"Escape":F&&F()}},Z=e=>{const o=e.target.files[0];T(o,(e=>{G&&G(o,e)}))},K=e=>{const o=e.target;Y&&Y(o.files)};return e.jsxs("div",{className:t(S,{input:!0,full:!!p,noMargin:k,hasAddon:!!c,hasPrefix:!!M,darkMode:y},[S[N],S[w]]),children:[d&&e.jsxs("label",{children:[e.jsx("span",{className:_?S.required:"",children:d}),!!h&&e.jsx("div",{className:S.labelAddon,children:h})]}),e.jsx("div",{className:S.container,children:(()=>{switch(l){case exports.InputType.SELECT:return e.jsx(O,{preIcon:m,isLoading:D,value:r,isDisabled:L,placeholder:s,options:g,onBlur:P,onFocus:R,onChange:z,addonAction:H,addonIcon:c,name:W});case exports.InputType.DND:return e.jsx(E,{onFilesSelect:Y,onFileSelect:G,placeholder:s,value:r,dndShape:B});case exports.InputType.COLOR_PICKER:return e.jsx("input",Object.assign({className:`${S.field} ${S.colorPicker}`,type:"color",value:r,placeholder:s,onBlur:P,onFocus:R,onChange:z,disabled:X,ref:i},V));case exports.InputType.TEXT_AREA:return e.jsx("textarea",Object.assign({className:S.field,value:r,placeholder:s,onBlur:P,onFocus:R,onChange:z,autoFocus:b,ref:i},V));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(A,{size:f,source:v,isLoading:D,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:C?K:Z,ref:i,className:S.avatar,disabled:X,multiple:C})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(a,{icon:u,isLoading:D,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:C?K:Z,ref:i,className:S.avatar,disabled:X,multiple:C})]});default:return e.jsxs(o.Fragment,{children:[!!M&&e.jsx("div",{className:S.prefix,children:e.jsx("span",{children:M})}),e.jsx("input",Object.assign({className:S.field,type:l,placeholder:s,value:r,onBlur:P,onFocus:R,onChange:z,onKeyUp:q,ref:i,disabled:X,autoFocus:b,name:W},V)),c&&e.jsx("div",{className:H?`${S.addon} ${S.pointer}`:S.addon,onClick:H,children:e.jsx(a,{icon:c,isLoading:D})})]})}})()}),!!x&&e.jsx("div",{className:S.error,children:x}),!!I&&e.jsx("div",{className:t(S,{autoCompleteContent:!0,reversed:j}),children:I})]})}));var P={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 R=(e,n)=>{const i=o=>{e.current&&!e.current.contains(o.target)&&n()};o.useEffect((()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)})),[])},z=({containerRef:i,contentRef:t,isOpen:l=!1,renderChild:a,onClose:d})=>{const s={isOpen:!1,top:0,left:0,bottom:0,right:0},[r,_]=o.useState(s),c={position:"absolute",top:r.top,left:r.left,bottom:r.bottom,right:r.right,zIndex:111},u=()=>{_(s),d()};return R(i,(()=>u())),o.useEffect((()=>{if(l)return(()=>{var e,o,n,l,a,d,s;const{top:r,left:c,height:u,width:m}=null!==(n=null===(o=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==n?n:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:x}=window,g=h-(r+u),p=r,f=c,v=x-(c+m),I=null!==(a=null===(l=null==t?void 0:t.current)||void 0===l?void 0:l.clientHeight)&&void 0!==a?a:200,j=null!==(s=null===(d=null==t?void 0:t.current)||void 0===d?void 0:d.clientWidth)&&void 0!==s?s:200;let k="auto",A="auto",L="auto",D="auto";g<I&&p>=I?D=h-r-u+20:A=r+u+5,v<j&&f>=j?L=x-c:k=c;const C={top:A,left:k,right:L,bottom:D};_(Object.assign(Object.assign({},C),{isOpen:!0}))})();u()}),[l,null==i?void 0:i.current]),r.isOpen?n.createPortal(e.jsx("div",{style:c,onClick:e=>{e.stopPropagation()},children:a(r)}),document.getElementById("portals")):null},H=({children:o})=>e.jsx("div",{className:P.menu,children:o});var U={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"};var F={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 G=({title:n,content:i})=>{const[l,d]=o.useState(!1);return e.jsxs("div",{className:t(F,{container:!0,isOpen:l}),onClick:()=>d(!l),children:[e.jsxs("div",{className:F.header,children:[e.jsx("h3",{children:n}),e.jsx(a,{icon:l?p:f,size:"md"})]}),e.jsx("div",{className:F.body,children:e.jsx("div",{className:F.content,children:i})})]})};var Y={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"};var V={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",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"},X={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 q=({size:o="md",title:n,subtitle:i})=>e.jsxs("div",{className:X.heading,children:[e.jsx("div",{className:`${X.title} ${X[o]}`,children:n}),i&&e.jsx("div",{className:X.subtitle,children:i})]});var Z={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 K=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var Q;!function(e){e.SEEN="seen"}(Q||(Q={}));var J={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",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 $=({className:o="",children:n,noPadding:i=!1})=>e.jsx("div",{className:t(J,{container:!0,noPadding:i},[o]),children:n});var ee="Header-module_header__qxHtx",oe="Header-module_content__DV-in",ne="Header-module_logo__xO2bW",ie="Header-module_mobileLogo__eNvSP",te="Header-module_actions__ZlACk",le="Header-module_mobileMenuIcon__pFpba",ae="Header-module_menu__Yw9r6",de="Header-module_mobileMenu__4S-NE";var se={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",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 re=({title:o,subtitle:n,theme:i="light",children:l})=>e.jsxs("div",{className:t(se,{container:!0},[se[i]]),children:[e.jsxs("div",{className:se.header,children:[e.jsx("h2",{children:o}),!!n&&e.jsx("div",{className:se.subtitle,children:n})]}),e.jsx("div",{className:se.body,children:l})]});var _e="FAQ-module_container__Kht11";var ce={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"};var ue={description:"Description-module_description__ENVu-",xl:"Description-module_xl__GtUSA",lg:"Description-module_lg__ENF-W",m:"Description-module_m__RqjBl",s:"Description-module_s__RAro3",xs:"Description-module_xs__0chE0",noSpacing:"Description-module_noSpacing__746UN",lighter:"Description-module_lighter__y-rC3",flexWide:"Description-module_flexWide__CEoWm",slidein:"Description-module_slidein__ZJBnB",fadeInOut:"Description-module_fadeInOut__ZdTzP",heightAnimation:"Description-module_heightAnimation__v2n3a",fadein:"Description-module_fadein__bPsva",floatAnimation:"Description-module_floatAnimation__Cq8oz"};var me={alert:"AlertBox-module_alert__y9n9e",inline:"AlertBox-module_inline__upbhQ",error:"AlertBox-module_error__anhZO",success:"AlertBox-module_success__80DOT",icon:"AlertBox-module_icon__FLy1Y",actions:"AlertBox-module_actions__fgPt7","supeer-icon-button":"AlertBox-module_supeer-icon-button__8oUJ8",message:"AlertBox-module_message__ssD6S",flexWide:"AlertBox-module_flexWide__isTSZ",slidein:"AlertBox-module_slidein__BNFh5",fadeInOut:"AlertBox-module_fadeInOut__DW6jj",heightAnimation:"AlertBox-module_heightAnimation__AMoVU",fadein:"AlertBox-module_fadein__5wonR",floatAnimation:"AlertBox-module_floatAnimation__rXaKh"};var he="Loading-module_loading__7gLQd",xe="Loading-module_image__gig5S";var ge={container:"Row-module_container__YDvu0",fullHeight:"Row-module_fullHeight__WqzPm",fullWidth:"Row-module_fullWidth__YDAac"};var pe={container:"Column-module_container__7CuWT",fullHeight:"Column-module_fullHeight__K6DgR",fullWidth:"Column-module_fullWidth__60vVA"};var fe={container:"IconLink-module_container__DPEQm",xxs:"IconLink-module_xxs__VR--q",xs:"IconLink-module_xs__7kP8f",sm:"IconLink-module_sm__VTyu1",md:"IconLink-module_md__YaLm6",lg:"IconLink-module_lg__mEFFB",xl:"IconLink-module_xl__SFhG7",xxl:"IconLink-module_xxl__bxRt7",xxxl:"IconLink-module_xxxl__-ah4f",circle:"IconLink-module_circle__SszO0",light:"IconLink-module_light__ntSbm",dark:"IconLink-module_dark__3JP27",flexWide:"IconLink-module_flexWide__kFlaC",slidein:"IconLink-module_slidein__L3sxO",fadeInOut:"IconLink-module_fadeInOut__UZw3F",heightAnimation:"IconLink-module_heightAnimation__XWKzZ",fadein:"IconLink-module_fadein__mu-Q-",floatAnimation:"IconLink-module_floatAnimation__Upk7f"};var ve="Carousel-module_container__voMge",Ie="Carousel-module_carousel__cXGTr",je="Carousel-module_item__umQ-j";var ke={box:"Chip-module_box__bPxl6",large:"Chip-module_large__vYrP6",small:"Chip-module_small__53iJq",clickable:"Chip-module_clickable__dzpKp",light:"Chip-module_light__29AuI",active:"Chip-module_active__BlTSF",lightDark:"Chip-module_lightDark__XNFQ7",lightDanger:"Chip-module_lightDanger__rLWTT",lightInfo:"Chip-module_lightInfo__lhtRG",lightPrimary:"Chip-module_lightPrimary__YzHWA",lightSecondary:"Chip-module_lightSecondary__qXcsD",lightWarning:"Chip-module_lightWarning__DDYW3",lightSuccess:"Chip-module_lightSuccess__n5gp5",primary:"Chip-module_primary__rvetC",secondary:"Chip-module_secondary__pLu90",danger:"Chip-module_danger__OJzar",dark:"Chip-module_dark__OOepT",info:"Chip-module_info__gtJS1",success:"Chip-module_success__0GXdc",warning:"Chip-module_warning__NBLbz",whiteText:"Chip-module_whiteText__zg28n",default:"Chip-module_default__AZUs1",borderedPrimary:"Chip-module_borderedPrimary__bRpmY",borderedSecondary:"Chip-module_borderedSecondary__JgMYX",flexWide:"Chip-module_flexWide__j8zBM",slidein:"Chip-module_slidein__qMh2s",fadeInOut:"Chip-module_fadeInOut__X5Sw2",heightAnimation:"Chip-module_heightAnimation__OA0dv",fadein:"Chip-module_fadein__CkDEY",floatAnimation:"Chip-module_floatAnimation__PMaOv"};var Ae={container:"Modal-module_container__UCuJv",header:"Modal-module_header__NS30G",body:"Modal-module_body__3zIj9",footer:"Modal-module_footer__Oyz-R",fullWidth:"Modal-module_fullWidth__jaM2v",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 Le=o.forwardRef((function({title:o,content:n,header:i,footer:l,fullWidth:a=!1},d){return e.jsxs("div",{className:t(Ae,{container:!0,fullWidth:a}),ref:d,children:[i&&e.jsx("div",{className:Ae.header,children:i}),e.jsx("div",{className:Ae.body,children:n}),l&&e.jsx("div",{className:Ae.footer,children:l})]})}));exports.Accordion=G,exports.AlertBox=({message:o,onClear:n,onReload:i,type:l,inline:d=!1})=>e.jsxs("div",{className:t(me,{alert:!0,inline:d},[me[l]]),children:[e.jsx("div",{className:me.icon,children:e.jsx(a,{icon:c,size:"md",theme:"dark"})}),e.jsx("div",{className:me.message,children:o}),e.jsxs("div",{className:me.actions,children:[i&&e.jsx(N,{icon:v,onClick:i,type:exports.UIElementType.WHITE_TEXT}),e.jsx(N,{icon:_,onClick:n,type:exports.UIElementType.WHITE_TEXT})]})]}),exports.Avatar=A,exports.Button=C,exports.Card=({title:o,subtitle:n,children:i,toolbar:l,footer:a,separated:d=!1,borderTopWidth:s,borderTopColor:r,noBottomMargin:_=!1,noBodyPadding:c=!1})=>{const u=s?`${s}px solid ${r}`:"none";return e.jsxs("div",{className:t(V,{card:!0,separated:d,noBottomMargin:_,noBodyPadding:c}),style:Object.assign({},s&&{borderTop:u}),children:[(l||o)&&e.jsxs("div",{className:V.header,children:[e.jsxs("div",{className:V.headerInfo,children:[o&&e.jsx("div",{className:V.headerTitle,children:e.jsx(q,{size:"sm",title:o})}),n&&e.jsx("div",{className:V.headerSubtitle,children:n})]}),l&&e.jsx("div",{className:V.headerToolbar,children:l})]}),e.jsx("div",{className:V.body,children:i}),a&&e.jsx("div",{className:V.footer,children:a})]})},exports.Carousel=({children:n,gap:i=2})=>{const t=o.useRef(null),[l,a]=o.useState(!1),[d,s]=o.useState(0),[r,_]=o.useState(0),c=()=>{a(!1)};return e.jsx("div",{className:ve,children:e.jsx("div",{className:Ie,ref:t,onMouseDown:e=>{var o,n;a(!0),s(e.pageX-((null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)),_((null===(n=t.current)||void 0===n?void 0:n.scrollLeft)||0)},onMouseLeave:c,onMouseUp:c,onMouseMove:e=>{var o;if(!l)return;const n=e.pageX-((null===(o=t.current)||void 0===o?void 0:o.offsetLeft)||0)-d;t.current&&(t.current.scrollLeft=r-n)},style:{gap:`${i}rem`,cursor:l?"grabbing":"grab"},children:n})})},exports.CarouselItem=({children:o})=>e.jsx("div",{className:je,children:o}),exports.Chip=({onClick:o,className:n="",children:i,type:l=exports.UIElementType.LIGHT,size:a="medium",active:d=!1})=>e.jsx("div",{className:t(ke,{box:!0,clickable:!!o,active:d},[ke[l],ke[a],n]),onClick:o,children:i}),exports.Column=({alignItems:o="flex-start",justifyContent:n="flex-start",gap:i=1,fullHeight:l=!1,fullWidth:a=!0,children:d})=>e.jsx("div",{className:t(pe,{container:!0,fullHeight:l,fullWidth:a}),style:{alignItems:o,justifyContent:n,gap:`${i}rem`},children:d}),exports.ContactsList=({domain:o,socialLinks:n,address:i,reportLabel:t,writeUsLabel:l,followUsLabel:d,addressLabel:s})=>e.jsxs("div",{className:ce.container,children:[e.jsxs("div",{className:ce.contact,children:[e.jsx("div",{className:ce.icon,children:e.jsx(a,{icon:g,size:"xl"})}),e.jsxs("div",{className:ce.content,children:[e.jsx("div",{className:ce.title,children:t||"Report"}),e.jsx("div",{className:ce.value,children:e.jsxs("a",{href:`mailto:feedback@${o}`,children:["feedback@",o]})})]})]}),e.jsxs("div",{className:ce.contact,children:[e.jsx("div",{className:ce.icon,children:e.jsx(a,{icon:m,size:"xl"})}),e.jsxs("div",{className:ce.content,children:[e.jsx("div",{className:ce.title,children:l||"Write us"}),e.jsx("div",{className:ce.value,children:e.jsxs("a",{href:`mailto:contact@${o}`,children:["contact@",o]})})]})]}),e.jsxs("div",{className:ce.contact,children:[e.jsx("div",{className:ce.icon,children:e.jsx(a,{icon:I,size:"xl"})}),e.jsxs("div",{className:ce.content,children:[e.jsx("div",{className:ce.title,children:d||"Follow us"}),e.jsx("div",{className:ce.value,children:e.jsx("ul",{children:n.map((({url:o,icon:n})=>e.jsx("li",{children:e.jsx("a",{href:o,target:"_blank",children:e.jsx(a,{icon:n,size:"md"})})},o)))})})]})]}),e.jsxs("div",{className:ce.contact,children:[e.jsx("div",{className:ce.icon,children:e.jsx(a,{icon:h,size:"xl"})}),e.jsxs("div",{className:ce.content,children:[e.jsx("div",{className:ce.title,children:s||"Address"}),e.jsx("div",{className:ce.value,children:i})]})]})]}),exports.Container=$,exports.CookieBanner=({appName:n})=>{const[i,t]=o.useState(!1);return o.useEffect((()=>{const e=K.getCookieBannerState();t(e!==Q.SEEN)}),[]),i?e.jsxs("div",{className:Z.container,children:[e.jsxs("div",{className:Z.content,children:["As ",n,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e.jsx("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e.jsx("div",{className:Z.actions,children:e.jsx(C,{label:"Continue",onClick:()=>{t(!1),K.saveCookieBannerState(Q.SEEN)}})})]}):null},exports.Description=({size:o="m",text:n,noSpacing:i=!1,className:l="",lighter:a=!1})=>e.jsx("div",{className:t(ue,{description:!0,noSpacing:i,lighter:a},[ue[o],l]),children:n}),exports.DropDown=({action:n,menu:i,type:l=exports.UIElementType.DEFAULT,closeRef:a,actionSize:d="medium"})=>{const s=o.useRef(null),r=o.useRef(null),_=o.useRef(null),[c,u]=o.useState(!1),m=()=>u(!1);return o.useEffect((()=>{(null==a?void 0:a.current)&&(a.current={close:()=>m()})}),[a]),e.jsxs("div",{className:P.container,ref:s,children:[e.jsx("div",{className:t(P,{action:!0},[P[l],P[d]]),ref:_,onClick:()=>u(!c),children:n}),e.jsx(z,{containerRef:s,contentRef:r,isOpen:c,onClose:m,renderChild:()=>e.jsx("div",{className:P.menuContainer,ref:r,children:e.jsx(H,{children:i})})})]})},exports.FAQ=({items:o,title:n})=>e.jsx(re,{title:n||"Frequently asked questions",children:e.jsx("div",{className:_e,children:o.map((({title:o,content:n})=>e.jsx(G,{title:o,content:n},o)))})}),exports.Header=({logo:n,menu:i,actions:t=null})=>{const[l,a]=o.useState(!1);return e.jsxs("header",{className:ee,children:[e.jsx($,{children:e.jsxs("div",{className:oe,children:[e.jsx("a",{href:"/",className:ne,children:n}),e.jsx("a",{href:"/",className:ie,children:n}),!!i&&e.jsx("div",{className:ae,children:i}),e.jsxs("div",{className:te,children:[t,!!i&&e.jsx("div",{className:le,children:e.jsx(N,{icon:l?_:x,onClick:()=>a(!l),size:"lg"})})]})]})}),l&&e.jsx("div",{className:de,children:i})]})},exports.Heading=q,exports.IconButton=N,exports.IconLink=({icon:o,shape:n,target:i,size:l="xs",href:d,theme:s="light",title:r=""})=>e.jsx("a",{className:t(fe,{container:!0},[fe[n],fe[l],fe[s]]),href:d,target:i,rel:"noopener noreferrer",title:r,children:e.jsx(a,{icon:o,size:l,theme:s})}),exports.Input=M,exports.Link=({href:o,title:n,target:i="_self",type:l=exports.UIElementType.DEFAULT,padding:d="zero",hasChevron:s=!1,fullWidth:_=!1})=>e.jsxs("a",{href:o,target:i,rel:"noopener noreferrer",className:t(y,{link:!0,fullWidth:_},[y[l],y[d]]),children:[e.jsx("span",{children:n})," ",s&&e.jsx(a,{icon:r})]}),exports.ListItem=({title:o,subtitle:n,actionTitle:i="",action:l,completed:d,indicator:r,hasSeparator:_=!1,hasDashedSeparator:c=!1,isActionPending:u=!1})=>e.jsxs("div",{className:t(w,{listItem:!0,separator:_,dashedSeparator:c}),children:[e.jsxs("div",{className:w.content,children:[r&&e.jsx("div",{className:t(w,{indicator:!0},[w[r]])}),e.jsxs("div",{className:w.data,children:[e.jsx("div",{className:w.title,children:o}),n&&e.jsx("div",{className:w.subtitle,children:n})]})]}),l&&e.jsx(C,{onClick:l,className:w.action,label:i,isLoading:u}),d&&e.jsx("div",{className:w.completed,children:e.jsx(a,{icon:s})})]}),exports.Loading=({image:o})=>e.jsx("div",{className:he,children:e.jsx("img",{src:o,alt:"Loading...",className:xe})}),exports.LoadingItem=({shape:o="square",size:n="md",width:i,height:l})=>e.jsx("div",{className:t(U,{container:!0},[U[o],U[n]]),style:{width:i,height:l}}),exports.Modal=Le,exports.Row=({alignItems:o="center",justifyContent:n="flex-start",flexWrap:i="nowrap",gap:l=1,fullHeight:a=!1,fullWidth:d=!0,children:s})=>e.jsx("div",{className:t(ge,{container:!0,fullHeight:a,fullWidth:d}),style:{alignItems:o,justifyContent:n,flexWrap:i,gap:`${l}rem`},children:s}),exports.SVGIcon=a,exports.Section=re,exports.Tooltip=({hint:o,children:n,position:i="top"})=>e.jsxs("div",{className:Y.tooltip,children:[!!o&&e.jsx("div",{className:`${Y.hint} ${Y[i]}`,children:o}),n]}),exports.classNames=t,exports.useClickOutside=R,exports.useClickOutsideRef=e=>{const n=o.useRef(null),i=o.useCallback((o=>{n.current&&!n.current.contains(o.target)&&e()}),[e]);return o.useEffect((()=>(document.addEventListener("click",i),()=>{document.removeEventListener("click",i)})),[i]),n}; | ||
//# sourceMappingURL=index.js.map |
export interface ModalParams { | ||
[key: string]: any; | ||
} | ||
export interface Modal { | ||
export interface ModalType { | ||
id: string; | ||
params: ModalParams; | ||
params?: ModalParams; | ||
} | ||
export interface DrawerType { | ||
id: string; | ||
params?: ModalParams; | ||
} |
{ | ||
"name": "@sorocraft/ui", | ||
"version": "1.0.46", | ||
"version": "1.0.47", | ||
"description": "UI Library by sorocraft.com", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
179
940120
2157