@sorocraft/ui 1.0.41 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Input/DnD.d.ts +4 -0
- package/dist/components/Input/Input.d.ts +3 -44
- package/dist/components/Input/Input.types.d.ts +44 -2
- package/dist/components/Input/Select.d.ts +4 -0
- package/dist/components/Loading/Loading.d.ts +5 -0
- package/dist/components/Loading/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/dist/utils/input.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InputProps } from "./Input.types";
|
|
2
|
+
type Props = Pick<InputProps, "isLoading" | "value" | "isDisabled" | "onChange" | "placeholder" | "label" | "isMultiUpload" | "onFilesSelect" | "onFileSelect">;
|
|
3
|
+
declare const DnD: ({ value, placeholder, isMultiUpload, onFilesSelect, onFileSelect }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default DnD;
|
|
@@ -1,45 +1,4 @@
|
|
|
1
|
-
import { FC
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import { onChangeEventType, onFocusEventType } from "./Input.types";
|
|
5
|
-
interface SelectOption {
|
|
6
|
-
label: string;
|
|
7
|
-
value: string | number;
|
|
8
|
-
}
|
|
9
|
-
interface Props {
|
|
10
|
-
label?: string;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
type?: string;
|
|
13
|
-
value?: string;
|
|
14
|
-
addonIcon?: IconType | null;
|
|
15
|
-
preIcon?: IconType | null;
|
|
16
|
-
required?: boolean;
|
|
17
|
-
name?: string;
|
|
18
|
-
errorMessage?: string;
|
|
19
|
-
options?: SelectOption[];
|
|
20
|
-
fullWidth?: boolean;
|
|
21
|
-
source?: string | null;
|
|
22
|
-
avatarSize?: SIZE;
|
|
23
|
-
labelAddon?: ReactElement;
|
|
24
|
-
autoCompleteContent?: ReactElement | null;
|
|
25
|
-
autoCompleteReverse?: boolean;
|
|
26
|
-
noMargin?: boolean;
|
|
27
|
-
isDisabled?: boolean;
|
|
28
|
-
isLoading?: boolean;
|
|
29
|
-
isMultiUpload?: boolean;
|
|
30
|
-
autoFocus?: boolean;
|
|
31
|
-
theme?: "oval" | "transparent";
|
|
32
|
-
size?: "xsmall" | "small" | "medium" | "large";
|
|
33
|
-
isDarkMode?: boolean;
|
|
34
|
-
onChange?: (e: onChangeEventType) => void;
|
|
35
|
-
onBlur?: (e: onFocusEventType) => void;
|
|
36
|
-
onFocus?: (e: onFocusEventType) => void;
|
|
37
|
-
addonAction?: () => void;
|
|
38
|
-
onEnter?: () => void;
|
|
39
|
-
onEsc?: () => void;
|
|
40
|
-
onFileSelect?: (file: File, url?: string) => void;
|
|
41
|
-
onFilesSelect?: (files: FileList | null) => void;
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
}
|
|
44
|
-
declare const Input: FC<Props>;
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { InputProps } from "./Input.types";
|
|
3
|
+
declare const Input: FC<InputProps>;
|
|
45
4
|
export default Input;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { ChangeEvent, FocusEvent, KeyboardEvent } from "react";
|
|
1
|
+
import { ChangeEvent, FocusEvent, KeyboardEvent, ReactElement } from "react";
|
|
2
|
+
import { IconType } from "../SVGIcon/SVGIcon.types";
|
|
3
|
+
import { SIZE } from "src/models/ui";
|
|
2
4
|
export declare enum InputType {
|
|
3
5
|
TEXT = "text",
|
|
4
6
|
PASSWORD = "password",
|
|
@@ -12,8 +14,48 @@ export declare enum InputType {
|
|
|
12
14
|
COLOR_PICKER = "color-picker",
|
|
13
15
|
TEXT_AREA = "text-area",
|
|
14
16
|
AVATAR_UPLOAD = "avatar-upload",
|
|
15
|
-
UPLOAD_IMAGE_ICON = "upload-image-icon"
|
|
17
|
+
UPLOAD_IMAGE_ICON = "upload-image-icon",
|
|
18
|
+
DND = "dnd"
|
|
16
19
|
}
|
|
17
20
|
export type onChangeEventType = ChangeEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
|
18
21
|
export type onFocusEventType = FocusEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
|
19
22
|
export type onEnterEventType = KeyboardEvent<HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement>;
|
|
23
|
+
export interface SelectOption {
|
|
24
|
+
label: string;
|
|
25
|
+
value: string | number;
|
|
26
|
+
}
|
|
27
|
+
export interface InputProps {
|
|
28
|
+
label?: string;
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
type?: string;
|
|
31
|
+
value?: string;
|
|
32
|
+
addonIcon?: IconType | null;
|
|
33
|
+
preIcon?: IconType | null;
|
|
34
|
+
required?: boolean;
|
|
35
|
+
name?: string;
|
|
36
|
+
errorMessage?: string;
|
|
37
|
+
options?: SelectOption[];
|
|
38
|
+
fullWidth?: boolean;
|
|
39
|
+
source?: string | null;
|
|
40
|
+
avatarSize?: SIZE;
|
|
41
|
+
labelAddon?: ReactElement;
|
|
42
|
+
autoCompleteContent?: ReactElement | null;
|
|
43
|
+
autoCompleteReverse?: boolean;
|
|
44
|
+
noMargin?: boolean;
|
|
45
|
+
isDisabled?: boolean;
|
|
46
|
+
isLoading?: boolean;
|
|
47
|
+
isMultiUpload?: boolean;
|
|
48
|
+
autoFocus?: boolean;
|
|
49
|
+
theme?: "oval" | "transparent";
|
|
50
|
+
size?: "xsmall" | "small" | "medium" | "large";
|
|
51
|
+
isDarkMode?: boolean;
|
|
52
|
+
onChange?: (e: onChangeEventType) => void;
|
|
53
|
+
onBlur?: (e: onFocusEventType) => void;
|
|
54
|
+
onFocus?: (e: onFocusEventType) => void;
|
|
55
|
+
addonAction?: () => void;
|
|
56
|
+
onEnter?: () => void;
|
|
57
|
+
onEsc?: () => void;
|
|
58
|
+
onFileSelect?: (file: File, url?: string) => void;
|
|
59
|
+
onFilesSelect?: (files: FileList | null) => void;
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { InputProps } from "./Input.types";
|
|
2
|
+
type Props = Pick<InputProps, "preIcon" | "isLoading" | "value" | "isDisabled" | "onBlur" | "onFocus" | "onChange" | "placeholder" | "options">;
|
|
3
|
+
declare const Select: ({ isLoading, value, isDisabled, placeholder, options, onBlur, onFocus, onChange, preIcon, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default Select;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Loading';
|
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { default as FAQ } from "./components/FAQ";
|
|
|
19
19
|
export { default as ContactsList } from "./components/ContactsList";
|
|
20
20
|
export { default as Description } from "./components/Description";
|
|
21
21
|
export { default as AlertBox } from "./components/AlertBox";
|
|
22
|
+
export { default as Loading } from "./components/Loading";
|
|
22
23
|
export * from "./components/SVGIcon/SVGIcon.types";
|
|
23
24
|
export * from "./components/Input/Input.types";
|
|
24
25
|
export * from "./components/DropDown/DropDown.types";
|
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as n,Fragment as i,forwardRef as t,useEffect as l,useRef as a,useCallback as d}from"react";import _ from"react-dom";var r={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 s=(e,o,n=[])=>{let i=[];for(const n in o)o[n]&&i.push(e[n]);return(null==n?void 0:n.length)>0&&(i=i.concat(n)),i.join(" ")};var c={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr"};const u=({icon:o,size:n="sm",className:i="",isLoading:t=!1})=>{const l=(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:s(c,{container:!0,isLoading:t},[i]),children:e(o,{className:i,width:l,height:l,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},m=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"})]})),h=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"})})),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:"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"})})),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:"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"})})),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:"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"})})),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:"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"})})),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:"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"})})),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:"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"})})),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:"M5 12h14"})})),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:"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"})})),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:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),B=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),C=({source:n=null,alt:i="avatar",size:t="sm",onClick:l,className:a,isEditable:d=!1,overlayIcon:_,inline:c=!1,isLoading:h=!1,overlayText:g})=>{const p=()=>{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:s(r,{avatar:!0,clickable:!!l||d,editable:d,inline:c,loading:h},[r[t],a]),onClick:l,style:{width:p(),height:p()},children:[n?e("img",{src:n,alt:i,className:r.image,width:p(),height:p()}):e(u,{size:t,icon:B}),d&&e("div",{className:r.editIcon,children:e(u,{isLoading:h,icon:h?D:m})}),(!!_||g)&&o("div",{className:r.overlay,children:[!!_&&e(u,{isLoading:h,icon:h?D:_}),!!g&&e("div",{className:r.overlayText,children:g})]})]})};var y,O={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.DANGER="danger",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e.LIGHT="light",e.DEFAULT="default",e.DARK="dark",e.LIGHT_PRIMARY="lightPrimary",e.LIGHT_SUCCESS="lightSuccess",e.LIGHT_WARNING="lightWarning",e.LIGHT_INFO="lightInfo",e.LIGHT_DANGER="lightDanger",e.LIGHT_DARK="lightDark",e.LIGHT_SECONDARY="lightSecondary",e.WHITE_TEXT="whiteText",e.BORDERED_PRIMARY="borderedPrimary",e.BORDERED_SECONDARY="borderedSecondary"}(y||(y={}));const S=({type:t=y.PRIMARY,onClick:l,label:a,icon:d,fullWidth:_=!1,isLoading:r,disabled:c,className:m,needConfirm:h=!1,size:g="md"})=>{const[p,f]=n(!1);return o("div",{className:s(O,{container:!0,fullWidth:_}),children:[e("button",{className:s(O,{button:!0,loading:!!r},[O[t],O[g],m]),onClick:h?()=>f(!p):l,disabled:r||c,children:r?e(i,{children:"Loading..."}):o("div",{className:O.label,children:[d&&e(u,{icon:d}),e("span",{children:a})]})}),p&&o("div",{className:O.confirm,children:[e("div",{className:O.confirmMessage,children:"Are you sure?"}),o("div",{className:O.confirmActions,children:[e(S,{type:y.DANGER,onClick:()=>f(!1),label:"No",size:"xs"}),e(S,{type:y.SUCCESS,onClick:()=>{f(!1),l()},label:"Yes",size:"xs"})]})]})]})};var W={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 T=({icon:i,onClick:t,type:l=y.DEFAULT,needConfirm:a=!1,noPadding:d=!1,isLoading:_=!1,size:r="sm",confirmPosition:c="top"})=>{const[m,h]=n(!1);return o("div",{className:s(W,{iconButton:!0,noPadding:d},[W[l],W[r]]),onClick:_?void 0:a?()=>h(!m):t,children:[e(u,{isLoading:_,icon:i,size:r}),m&&o("div",{className:`${W.confirm} ${W[c]}`,children:[e("div",{className:W.confirmMessage,children:"Are you sure?"}),o("div",{className:W.confirmActions,children:[e(S,{type:y.DANGER,onClick:()=>h(!1),label:"No",size:"xs"}),e(S,{type:y.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:a,indicator:d,hasSeparator:_=!1,hasDashedSeparator:r=!1,isActionPending:c=!1})=>o("div",{className:s(E,{listItem:!0,separator:_,dashedSeparator:r}),children:[o("div",{className:E.content,children:[d&&e("div",{className:s(E,{indicator:!0},[E[d]])}),o("div",{className:E.data,children:[e("div",{className:E.title,children:n}),i&&e("div",{className:E.subtitle,children:i})]})]}),l&&e(S,{onClick:l,className:E.action,label:t,isLoading:c}),a&&e("div",{className:E.completed,children:e(u,{icon:h})})]});var M={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",s:"Link-module_s__Ojcbu",m:"Link-module_m__KQ9M4",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=y.DEFAULT,padding:a="zero",hasChevron:d=!1,fullWidth:_=!1})=>o("a",{href:n,target:t,rel:"noopener noreferrer",className:s(M,{link:!0,fullWidth:_},[M[l],M[a]]),children:[e("span",{children:i})," ",d&&e(u,{icon:g})]});"function"==typeof SuppressedError&&SuppressedError;var R,z={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",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"}(R||(R={}));const H=t((function(n,t){var{type:l=R.TEXT,label:a,placeholder:d,value:_,required:r=!1,addonIcon:c,preIcon:m,labelAddon:h,errorMessage:g,options:p=[],fullWidth:f,avatarSize:x,source:I,autoCompleteContent:A,autoCompleteReverse:k=!1,noMargin:L=!1,isDisabled:w=!1,isLoading:b=!1,isMultiUpload:N=!1,autoFocus:D=!1,theme:B="oval",size:y="medium",isDarkMode:O=!1,onBlur:S,onFocus:W,onChange:T,addonAction:E,onEnter:P,onEsc:M,onFileSelect:j,onFilesSelect:H}=n,G=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","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const F=w||b,U=e=>{switch(e.key){case"Enter":P&&P();break;case"Escape":M&&M()}},Y=e=>{const o=e.target.files[0],n=new FileReader;n.onload=()=>{j&&j(o,n.result)},n.readAsDataURL(o)},V=e=>{const o=e.target;H&&H(o.files)};return o("div",{className:s(z,{input:!0,full:!!f,noMargin:L,hasAddon:!!c,darkMode:O},[z[B],z[y]]),children:[a&&o("label",{children:[e("span",{className:r?z.required:"",children:a}),!!h&&e("div",{className:z.labelAddon,children:h})]}),e("div",{className:z.container,children:(()=>{switch(l){case R.SELECT:return o(i,{children:[m&&e("div",{className:z.preIcon,children:e(u,{icon:m,isLoading:b})}),o("select",Object.assign({className:z.field,value:_,onBlur:S,onFocus:W,onChange:T,ref:t},G,{children:[d&&e("option",{value:"",children:d}),p.map((({label:o,value:n})=>e("option",{value:n,children:o},n)))]}))]});case R.COLOR_PICKER:return e("input",Object.assign({className:`${z.field} ${z.colorPicker}`,type:"color",value:_,placeholder:d,onBlur:S,onFocus:W,onChange:T,disabled:F,ref:t},G));case R.TEXT_AREA:return e("textarea",Object.assign({className:z.field,value:_,placeholder:d,onBlur:S,onFocus:W,onChange:T,autoFocus:D,ref:t},G));case R.AVATAR_UPLOAD:return o("label",{htmlFor:"avatar-upload",children:[e(C,{size:x,source:I,isLoading:b,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:N?V:Y,ref:t,className:z.avatar,disabled:F,multiple:N})]});case R.UPLOAD_IMAGE_ICON:return o("label",{htmlFor:"upload-image-icon",children:[e(u,{icon:v,isLoading:b,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:N?V:Y,ref:t,className:z.avatar,disabled:F,multiple:N})]});default:return o(i,{children:[e("input",Object.assign({className:z.field,type:l,placeholder:d,value:_,onBlur:S,onFocus:W,onChange:T,onKeyUp:U,ref:t,disabled:F,autoFocus:D},G)),c&&e("div",{className:E?`${z.addon} ${z.pointer}`:z.addon,onClick:E,children:e(u,{icon:c,isLoading:b})})]})}})()}),!!g&&e("div",{className:z.error,children:g}),!!A&&e("div",{className:s(z,{autoCompleteContent:!0,reversed:k}),children:A})]})}));var G={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 F=(e,o)=>{const n=n=>{e.current&&!e.current.contains(n.target)&&o()};l((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[])},U=e=>{const o=a(null),n=d((n=>{o.current&&!o.current.contains(n.target)&&e()}),[e]);return l((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[n]),o},Y=({containerRef:o,contentRef:i,isOpen:t=!1,renderChild:a,onClose:d})=>{const r={isOpen:!1,top:0,left:0,bottom:0,right:0},[s,c]=n(r),u={position:"absolute",top:s.top,left:s.left,bottom:s.bottom,right:s.right,zIndex:111},m=()=>{c(r),d()};return F(o,(()=>m())),l((()=>{if(t)return(()=>{var e,n,t,l,a,d,_;const{top:r,left:s,height:u,width:m}=null!==(t=null===(n=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===n?void 0:n.call(e))&&void 0!==t?t:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:g}=window,p=h-(r+u),f=r,v=s,x=g-(s+m),I=null!==(a=null===(l=null==i?void 0:i.current)||void 0===l?void 0:l.clientHeight)&&void 0!==a?a:200,A=null!==(_=null===(d=null==i?void 0:i.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200;let k="auto",L="auto",w="auto",b="auto";p<I&&f>=I?b=h-r-u+20:L=r+u+5,x<A&&v>=A?w=g-s:k=s;const N={top:L,left:k,right:w,bottom:b};c(Object.assign(Object.assign({},N),{isOpen:!0}))})();m()}),[t,null==o?void 0:o.current]),s.isOpen?_.createPortal(e("div",{style:u,onClick:e=>{e.stopPropagation()},children:a(s)}),document.getElementById("portals")):null},V=({children:o})=>e("div",{className:G.menu,children:o}),K=({action:i,menu:t,type:d=y.DEFAULT,closeRef:_,actionSize:r="medium"})=>{const c=a(null),u=a(null),m=a(null),[h,g]=n(!1),p=()=>g(!1);return l((()=>{(null==_?void 0:_.current)&&(_.current={close:()=>p()})}),[_]),o("div",{className:G.container,ref:c,children:[e("div",{className:s(G,{action:!0},[G[d],G[r]]),ref:m,onClick:()=>g(!h),children:i}),e(Y,{containerRef:c,contentRef:u,isOpen:h,onClose:p,renderChild:()=>e("div",{className:G.menuContainer,ref:u,children:e(V,{children:t})})})]})};var X={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 Z=({shape:o="square",size:n="md",width:i,height:t})=>e("div",{className:s(X,{container:!0},[X[o],X[n]]),style:{width:i,height:t}});var q={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 Q=({title:i,content:t})=>{const[l,a]=n(!1);return o("div",{className:s(q,{container:!0,isOpen:l}),onClick:()=>a(!l),children:[o("div",{className:q.header,children:[e("h3",{children:i}),e(u,{icon:l?L:w,size:"md"})]}),e("div",{className:q.body,children:e("div",{className:q.content,children:t})})]})};var J={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 $=({hint:n,children:i,position:t="top"})=>o("div",{className:J.tooltip,children:[!!n&&e("div",{className:`${J.hint} ${J[t]}`,children:n}),i]});var ee={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"},oe={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 ne=({size:n="md",title:i,subtitle:t})=>o("div",{className:oe.heading,children:[e("div",{className:`${oe.title} ${oe[n]}`,children:i}),t&&e("div",{className:oe.subtitle,children:t})]}),ie=({title:n,subtitle:i,children:t,toolbar:l,footer:a,separated:d=!1,borderTopWidth:_,borderTopColor:r,noBottomMargin:c=!1,noBodyPadding:u=!1})=>{const m=_?`${_}px solid ${r}`:"none";return o("div",{className:s(ee,{card:!0,separated:d,noBottomMargin:c,noBodyPadding:u}),style:Object.assign({},_&&{borderTop:m}),children:[(l||n)&&o("div",{className:ee.header,children:[o("div",{className:ee.headerInfo,children:[n&&e("div",{className:ee.headerTitle,children:e(ne,{size:"sm",title:n})}),i&&e("div",{className:ee.headerSubtitle,children:i})]}),l&&e("div",{className:ee.headerToolbar,children:l})]}),e("div",{className:ee.body,children:t}),a&&e("div",{className:ee.footer,children:a})]})};var te={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 le=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var ae;!function(e){e.SEEN="seen"}(ae||(ae={}));const de=({appName:i})=>{const[t,a]=n(!1);return l((()=>{const e=le.getCookieBannerState();a(e!==ae.SEEN)}),[]),t?o("div",{className:te.container,children:[o("div",{className:te.content,children:["As ",i,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e("div",{className:te.actions,children:e(S,{label:"Continue",onClick:()=>{a(!1),le.saveCookieBannerState(ae.SEEN)}})})]}):null};var _e={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 re=({className:o="",children:n,noPadding:i=!1})=>e("div",{className:s(_e,{container:!0,noPadding:i},[o]),children:n});var se="Header-module_header__qxHtx",ce="Header-module_content__DV-in",ue="Header-module_logo__xO2bW",me="Header-module_mobileLogo__eNvSP",he="Header-module_actions__ZlACk",ge="Header-module_mobileMenuIcon__pFpba",pe="Header-module_menu__Yw9r6",fe="Header-module_mobileMenu__4S-NE";const ve=({logo:i,menu:t,actions:l=null})=>{const[a,d]=n(!1);return o("header",{className:se,children:[e(re,{children:o("div",{className:ce,children:[e("a",{href:"/",className:ue,children:i}),e("a",{href:"/",className:me,children:i}),!!t&&e("div",{className:pe,children:t}),o("div",{className:he,children:[l,!!t&&e("div",{className:ge,children:e(T,{icon:a?p:A,onClick:()=>d(!a),size:"lg"})})]})]})}),a&&e("div",{className:fe,children:t})]})};var xe={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 Ie=({title:n,subtitle:i,theme:t="light",children:l})=>o("div",{className:s(xe,{container:!0},[xe[t]]),children:[o("div",{className:xe.header,children:[e("h2",{children:n}),!!i&&e("div",{className:xe.subtitle,children:i})]}),e("div",{className:xe.body,children:l})]});var Ae="FAQ-module_container__Kht11";const ke=({items:o,title:n})=>e(Ie,{title:n||"Frequently asked questions",children:e("div",{className:Ae,children:o.map((({title:o,content:n})=>e(Q,{title:o,content:n},o)))})});var Le={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 we=({domain:n,socialLinks:i,address:t,reportLabel:l,writeUsLabel:a,followUsLabel:d,addressLabel:_})=>o("div",{className:Le.container,children:[o("div",{className:Le.contact,children:[e("div",{className:Le.icon,children:e(u,{icon:k,size:"xl"})}),o("div",{className:Le.content,children:[e("div",{className:Le.title,children:l||"Report"}),e("div",{className:Le.value,children:o("a",{href:`mailto:feedback@${n}`,children:["feedback@",n]})})]})]}),o("div",{className:Le.contact,children:[e("div",{className:Le.icon,children:e(u,{icon:x,size:"xl"})}),o("div",{className:Le.content,children:[e("div",{className:Le.title,children:a||"Write us"}),e("div",{className:Le.value,children:o("a",{href:`mailto:contact@${n}`,children:["contact@",n]})})]})]}),o("div",{className:Le.contact,children:[e("div",{className:Le.icon,children:e(u,{icon:N,size:"xl"})}),o("div",{className:Le.content,children:[e("div",{className:Le.title,children:d||"Follow us"}),e("div",{className:Le.value,children:e("ul",{children:i.map((({url:o,icon:n})=>e("li",{children:e("a",{href:o,target:"_blank",children:e(u,{icon:n,size:"md"})})},o)))})})]})]}),o("div",{className:Le.contact,children:[e("div",{className:Le.icon,children:e(u,{icon:I,size:"xl"})}),o("div",{className:Le.content,children:[e("div",{className:Le.title,children:_||"Address"}),e("div",{className:Le.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 Ne=({size:o="m",text:n,noSpacing:i=!1,className:t="",lighter:l=!1})=>e("div",{className:s(be,{description:!0,noSpacing:i,lighter:l},[be[o],t]),children:n});var De={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 Be=({message:n,onClear:i,onReload:t,type:l,inline:a=!1})=>o("div",{className:s(De,{alert:!0,inline:a},[De[l]]),children:[e("div",{className:De.icon,children:e(u,{icon:f,size:"md"})}),e("div",{className:De.message,children:n}),o("div",{className:De.actions,children:[t&&e(T,{icon:b,onClick:t,type:y.WHITE_TEXT}),e(T,{icon:p,onClick:i,type:y.WHITE_TEXT})]})]});export{Q as Accordion,Be as AlertBox,C as Avatar,S as Button,ie as Card,we as ContactsList,re as Container,de as CookieBanner,Ne as Description,K as DropDown,ke as FAQ,ve as Header,ne as Heading,T as IconButton,H as Input,R as InputType,j as Link,P as ListItem,Z as LoadingItem,u as SVGIcon,Ie as Section,$ as Tooltip,y as UIElementType,s as classNames,F as useClickOutside,U as useClickOutsideRef};
|
|
1
|
+
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 r}from"react";import _ 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",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})=>{const l=(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]),children:e(o,{className:i,width:l,height:l,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"})})),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:"m9 18 6-6-6-6"})})),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:"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"})})),A=o=>e("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})})),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:"M3 12h18M3 6h18M3 18h18"})})),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:"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"})})),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:"M5 12h14"})})),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:"M12 5v14m-7-7h14"})})),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:"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"})})),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:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),B=o=>e("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"})})),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:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),y=({source:n=null,alt:i="avatar",size:t="sm",onClick:l,className:a,isEditable:d=!1,overlayIcon:r,inline:_=!1,isLoading:u=!1,overlayText:g})=>{const p=()=>{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:_,loading:u},[s[t],a]),onClick:l,style:{width:p(),height:p()},children:[n?e("img",{src:n,alt:i,className:s.image,width:p(),height:p()}):e(m,{size:t,icon:C}),d&&e("div",{className:s.editIcon,children:e(m,{isLoading:u,icon:u?B:h})}),(!!r||g)&&o("div",{className:s.overlay,children:[!!r&&e(m,{isLoading:u,icon:u?B:r}),!!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:r=!1,isLoading:_,disabled:s,className:u,needConfirm:h=!1,size:g="md"})=>{const[p,f]=i(!1);return o("div",{className:c(S,{container:!0,fullWidth:r}),children:[e("button",{className:c(S,{button:!0,loading:!!_},[S[n],S[g],u]),onClick:h?()=>f(!p):l,disabled:_||s,children:_?e(t,{children:"Loading..."}):o("div",{className:S.label,children:[d&&e(m,{icon:d}),e("span",{children:a})]})}),p&&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:()=>f(!1),label:"No",size:"xs"}),e(W,{type:O.SUCCESS,onClick:()=>{f(!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 E=({icon:n,onClick:t,type:l=O.DEFAULT,needConfirm:a=!1,noPadding:d=!1,isLoading:r=!1,size:_="sm",confirmPosition:s="top"})=>{const[u,h]=i(!1);return o("div",{className:c(T,{iconButton:!0,noPadding:d},[T[l],T[_]]),onClick:r?void 0:a?()=>h(!u):t,children:[e(m,{isLoading:r,icon:n,size:_}),u&&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:()=>h(!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 M=({title:n,subtitle:i,actionTitle:t="",action:l,completed:a,indicator:d,hasSeparator:r=!1,hasDashedSeparator:_=!1,isActionPending:s=!1})=>o("div",{className:c(P,{listItem:!0,separator:r,dashedSeparator:_}),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 j={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",s:"Link-module_s__Ojcbu",m:"Link-module_m__KQ9M4",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"};const R=({href:n,title:i,target:t="_self",type:l=O.DEFAULT,padding:a="zero",hasChevron:d=!1,fullWidth:r=!1})=>o("a",{href:n,target:t,rel:"noopener noreferrer",className:c(j,{link:!0,fullWidth:r},[j[l],j[a]]),children:[e("span",{children:i})," ",d&&e(m,{icon:p})]});"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:a,options:d,onBlur:r,onFocus:_,onChange:s,preIcon:c})=>o(n,{children:[c&&e("div",{className:H.preIcon,children:e(m,{icon:c,isLoading:i})}),o("select",{className:H.field,value:t,onBlur:r,onFocus:_,onChange:s,disabled:l,children:[a&&e("option",{value:"",children:a}),d.map((({label:o,value:n})=>e("option",{value:n,children:o},n)))]})]});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",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,onFilesSelect:a,onFileSelect:d})=>{const[r,_]=i(!1),s=e=>{if(e&&e.length>0){if(l&&a)return a(e);const o=e[0];U(o,(e=>{d&&d(o,e)}))}};return e("div",{className:c(G,{container:!0,isDragOver:r}),children:e("div",{onDrop:e=>{e.preventDefault();const o=e.dataTransfer.files;s(o)},onDragOver:e=>{e.preventDefault()},onDragEnter:()=>_(!0),onDragLeave:()=>_(!1),className:G.dropZone,children:n?o("div",{className:G.selectedImage,children:[e("img",{src:n,alt:t}),e("div",{className:G.removeImage,children:e(E,{onClick:()=>{d&&d(null,"")},icon:f})})]}):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;s(o.files)}})]})})})},V=l((function(n,i){var{type:l=z.TEXT,label:a,placeholder:d,value:r,required:_=!1,addonIcon:s,preIcon:u,labelAddon:h,errorMessage:g,options:p=[],fullWidth:f,avatarSize:v,source:I,autoCompleteContent:A,autoCompleteReverse:D=!1,noMargin:k=!1,isDisabled:L=!1,isLoading:N=!1,isMultiUpload:w=!1,autoFocus:b=!1,theme:B="oval",size:C="medium",isDarkMode:O=!1,onBlur:S,onFocus:W,onChange:T,addonAction:E,onEnter:P,onEsc:M,onFileSelect:j,onFilesSelect:R}=n,G=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","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]);const V=L||N,K=e=>{switch(e.key){case"Enter":P&&P();break;case"Escape":M&&M()}},X=e=>{const o=e.target.files[0];U(o,(e=>{j&&j(o,e)}))},Z=e=>{const o=e.target;R&&R(o.files)};return o("div",{className:c(H,{input:!0,full:!!f,noMargin:k,hasAddon:!!s,darkMode:O},[H[B],H[C]]),children:[a&&o("label",{children:[e("span",{className:_?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:N,value:r,isDisabled:L,placeholder:d,options:p,onBlur:S,onFocus:W,onChange:T});case z.DND:return e(Y,{onFilesSelect:R,onFileSelect:j,placeholder:d,value:r});case z.COLOR_PICKER:return e("input",Object.assign({className:`${H.field} ${H.colorPicker}`,type:"color",value:r,placeholder:d,onBlur:S,onFocus:W,onChange:T,disabled:V,ref:i},G));case z.TEXT_AREA:return e("textarea",Object.assign({className:H.field,value:r,placeholder:d,onBlur:S,onFocus:W,onChange:T,autoFocus:b,ref:i},G));case z.AVATAR_UPLOAD:return o("label",{htmlFor:"avatar-upload",children:[e(y,{size:v,source:I,isLoading:N,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:w?Z:X,ref:i,className:H.avatar,disabled:V,multiple:w})]});case z.UPLOAD_IMAGE_ICON:return o("label",{htmlFor:"upload-image-icon",children:[e(m,{icon:x,isLoading:N,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:w?Z:X,ref:i,className:H.avatar,disabled:V,multiple:w})]});default:return o(t,{children:[e("input",Object.assign({className:H.field,type:l,placeholder:d,value:r,onBlur:S,onFocus:W,onChange:T,onKeyUp:K,ref:i,disabled:V,autoFocus:b},G)),s&&e("div",{className:E?`${H.addon} ${H.pointer}`:H.addon,onClick:E,children:e(m,{icon:s,isLoading:N})})]})}})()}),!!g&&e("div",{className:H.error,children:g}),!!A&&e("div",{className:c(H,{autoCompleteContent:!0,reversed:D}),children:A})]})}));var K={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 X=(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=r((n=>{o.current&&!o.current.contains(n.target)&&e()}),[e]);return a((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[n]),o},q=({containerRef:o,contentRef:n,isOpen:t=!1,renderChild:l,onClose:d})=>{const r={isOpen:!1,top:0,left:0,bottom:0,right:0},[s,c]=i(r),u={position:"absolute",top:s.top,left:s.left,bottom:s.bottom,right:s.right,zIndex:111},m=()=>{c(r),d()};return X(o,(()=>m())),a((()=>{if(t)return(()=>{var e,i,t,l,a,d,r;const{top:_,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,p=h-(_+u),f=_,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,A=null!==(r=null===(d=null==n?void 0:n.current)||void 0===d?void 0:d.clientWidth)&&void 0!==r?r:200;let D="auto",k="auto",L="auto",N="auto";p<I&&f>=I?N=h-_-u+20:k=_+u+5,x<A&&v>=A?L=g-s:D=s;const w={top:k,left:D,right:L,bottom:N};c(Object.assign(Object.assign({},w),{isOpen:!0}))})();m()}),[t,null==o?void 0:o.current]),s.isOpen?_.createPortal(e("div",{style:u,onClick:e=>{e.stopPropagation()},children:l(s)}),document.getElementById("portals")):null},Q=({children:o})=>e("div",{className:K.menu,children:o}),J=({action:n,menu:t,type:l=O.DEFAULT,closeRef:r,actionSize:_="medium"})=>{const s=d(null),u=d(null),m=d(null),[h,g]=i(!1),p=()=>g(!1);return a((()=>{(null==r?void 0:r.current)&&(r.current={close:()=>p()})}),[r]),o("div",{className:K.container,ref:s,children:[e("div",{className:c(K,{action:!0},[K[l],K[_]]),ref:m,onClick:()=>g(!h),children:n}),e(q,{containerRef:s,contentRef:u,isOpen:h,onClose:p,renderChild:()=>e("div",{className:K.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?L:N,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})]}),re=({title:n,subtitle:i,children:t,toolbar:l,footer:a,separated:d=!1,borderTopWidth:r,borderTopColor:_,noBottomMargin:s=!1,noBodyPadding:u=!1})=>{const m=r?`${r}px solid ${_}`:"none";return o("div",{className:c(le,{card:!0,separated:d,noBottomMargin:s,noBodyPadding:u}),style:Object.assign({},r&&{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 _e={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:_e.container,children:[o("div",{className:_e.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:_e.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",pe="Header-module_content__DV-in",fe="Header-module_logo__xO2bW",ve="Header-module_mobileLogo__eNvSP",xe="Header-module_actions__ZlACk",Ie="Header-module_mobileMenuIcon__pFpba",Ae="Header-module_menu__Yw9r6",De="Header-module_mobileMenu__4S-NE";const ke=({logo:n,menu:t,actions:l=null})=>{const[a,d]=i(!1);return o("header",{className:ge,children:[e(he,{children:o("div",{className:pe,children:[e("a",{href:"/",className:fe,children:n}),e("a",{href:"/",className:ve,children:n}),!!t&&e("div",{className:Ae,children:t}),o("div",{className:xe,children:[l,!!t&&e("div",{className:Ie,children:e(E,{icon:a?f:D,onClick:()=>d(!a),size:"lg"})})]})]})}),a&&e("div",{className:De,children:t})]})};var Le={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 Ne=({title:n,subtitle:i,theme:t="light",children:l})=>o("div",{className:c(Le,{container:!0},[Le[t]]),children:[o("div",{className:Le.header,children:[e("h2",{children:n}),!!i&&e("div",{className:Le.subtitle,children:i})]}),e("div",{className:Le.body,children:l})]});var we="FAQ-module_container__Kht11";const be=({items:o,title:n})=>e(Ne,{title:n||"Frequently asked questions",children:e("div",{className:we,children:o.map((({title:o,content:n})=>e(ne,{title:o,content:n},o)))})});var Be={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 Ce=({domain:n,socialLinks:i,address:t,reportLabel:l,writeUsLabel:a,followUsLabel:d,addressLabel:r})=>o("div",{className:Be.container,children:[o("div",{className:Be.contact,children:[e("div",{className:Be.icon,children:e(m,{icon:k,size:"xl"})}),o("div",{className:Be.content,children:[e("div",{className:Be.title,children:l||"Report"}),e("div",{className:Be.value,children:o("a",{href:`mailto:feedback@${n}`,children:["feedback@",n]})})]})]}),o("div",{className:Be.contact,children:[e("div",{className:Be.icon,children:e(m,{icon:I,size:"xl"})}),o("div",{className:Be.content,children:[e("div",{className:Be.title,children:a||"Write us"}),e("div",{className:Be.value,children:o("a",{href:`mailto:contact@${n}`,children:["contact@",n]})})]})]}),o("div",{className:Be.contact,children:[e("div",{className:Be.icon,children:e(m,{icon:b,size:"xl"})}),o("div",{className:Be.content,children:[e("div",{className:Be.title,children:d||"Follow us"}),e("div",{className:Be.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:Be.contact,children:[e("div",{className:Be.icon,children:e(m,{icon:A,size:"xl"})}),o("div",{className:Be.content,children:[e("div",{className:Be.title,children:r||"Address"}),e("div",{className:Be.value,children:t})]})]})]});var ye={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(ye,{description:!0,noSpacing:i,lighter:l},[ye[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"})}),e("div",{className:Se.message,children:n}),o("div",{className:Se.actions,children:[t&&e(E,{icon:w,onClick:t,type:O.WHITE_TEXT}),e(E,{icon:f,onClick:i,type:O.WHITE_TEXT})]})]});var Te="Loading-module_loading__7gLQd",Ee="Loading-module_image__gig5S";const Pe=({image:o})=>e("div",{className:Te,children:e("img",{src:o,alt:"Loading...",className:Ee})});export{ne as Accordion,We as AlertBox,y as Avatar,W as Button,re as Card,Ce as ContactsList,he as Container,ue as CookieBanner,Oe as Description,J as DropDown,be as FAQ,ke as Header,de as Heading,E as IconButton,V as Input,z as InputType,R as Link,M as ListItem,Pe as Loading,ee as LoadingItem,m as SVGIcon,Ne as Section,te as Tooltip,O as UIElementType,c as classNames,X as useClickOutside,Z as useClickOutsideRef};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|