@sorocraft/ui
Advanced tools
Comparing version 1.0.40 to 1.0.41
@@ -21,2 +21,3 @@ export { default as Avatar } from "./components/Avatar"; | ||
export { default as Description } from "./components/Description"; | ||
export { default as AlertBox } from "./components/AlertBox"; | ||
export * from "./components/SVGIcon/SVGIcon.types"; | ||
@@ -23,0 +24,0 @@ export * from "./components/Input/Input.types"; |
@@ -1,2 +0,2 @@ | ||
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:"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"})})),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:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})})),x=o=>e("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"})})),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:"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"})})),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 12h14"})})),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:"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:"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"})})),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.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"})})),N=({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:D}),d&&e("div",{className:r.editIcon,children:e(u,{isLoading:h,icon:h?b:m})}),(!!_||g)&&o("div",{className:r.overlay,children:[!!_&&e(u,{isLoading:h,icon:h?b:_}),!!g&&e("div",{className:r.overlayText,children:g})]})]})};var C,B={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"}(C||(C={}));const y=({type:t=C.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(B,{container:!0,fullWidth:_}),children:[e("button",{className:s(B,{button:!0,loading:!!r},[B[t],B[g],m]),onClick:h?()=>f(!p):l,disabled:r||c,children:r?e(i,{children:"Loading..."}):o("div",{className:B.label,children:[d&&e(u,{icon:d}),e("span",{children:a})]})}),p&&o("div",{className:B.confirm,children:[e("div",{className:B.confirmMessage,children:"Are you sure?"}),o("div",{className:B.confirmActions,children:[e(y,{type:C.DANGER,onClick:()=>f(!1),label:"No",size:"xs"}),e(y,{type:C.SUCCESS,onClick:()=>{f(!1),l()},label:"Yes",size:"xs"})]})]})]})};var O={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 S=({icon:i,onClick:t,type:l=C.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(O,{iconButton:!0,noPadding:d},[O[l],O[r]]),onClick:_?void 0:a?()=>h(!m):t,children:[e(u,{isLoading:_,icon:i,size:r}),m&&o("div",{className:`${O.confirm} ${O[c]}`,children:[e("div",{className:O.confirmMessage,children:"Are you sure?"}),o("div",{className:O.confirmActions,children:[e(y,{type:C.DANGER,onClick:()=>h(!1),label:"No",size:"xs"}),e(y,{type:C.SUCCESS,onClick:t,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"};const T=({title:n,subtitle:i,actionTitle:t="",action:l,completed:a,indicator:d,hasSeparator:_=!1,hasDashedSeparator:r=!1,isActionPending:c=!1})=>o("div",{className:s(W,{listItem:!0,separator:_,dashedSeparator:r}),children:[o("div",{className:W.content,children:[d&&e("div",{className:s(W,{indicator:!0},[W[d]])}),o("div",{className:W.data,children:[e("div",{className:W.title,children:n}),i&&e("div",{className:W.subtitle,children:i})]})]}),l&&e(y,{onClick:l,className:W.action,label:t,isLoading:c}),a&&e("div",{className:W.completed,children:e(u,{icon:h})})]});var E={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 P=({href:n,title:i,target:t="_self",type:l=C.DEFAULT,padding:a="zero",hasChevron:d=!1,fullWidth:_=!1})=>o("a",{href:n,target:t,rel:"noopener noreferrer",className:s(E,{link:!0,fullWidth:_},[E[l],E[a]]),children:[e("span",{children:i})," ",d&&e(u,{icon:g})]});"function"==typeof SuppressedError&&SuppressedError;var M,j={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"}(M||(M={}));const R=t((function(n,t){var{type:l=M.TEXT,label:a,placeholder:d,value:_,required:r=!1,addonIcon:c,preIcon:m,labelAddon:h,errorMessage:g,options:p=[],fullWidth:v,avatarSize:x,source:I,autoCompleteContent:k,autoCompleteReverse:A=!1,noMargin:L=!1,isDisabled:w=!1,isLoading:b=!1,isMultiUpload:D=!1,autoFocus:C=!1,theme:B="oval",size:y="medium",isDarkMode:O=!1,onBlur:S,onFocus:W,onChange:T,addonAction:E,onEnter:P,onEsc:R,onFileSelect:z,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":R&&R()}},Y=e=>{const o=e.target.files[0],n=new FileReader;n.onload=()=>{z&&z(o,n.result)},n.readAsDataURL(o)},V=e=>{const o=e.target;H&&H(o.files)};return o("div",{className:s(j,{input:!0,full:!!v,noMargin:L,hasAddon:!!c,darkMode:O},[j[B],j[y]]),children:[a&&o("label",{children:[e("span",{className:r?j.required:"",children:a}),!!h&&e("div",{className:j.labelAddon,children:h})]}),e("div",{className:j.container,children:(()=>{switch(l){case M.SELECT:return o(i,{children:[m&&e("div",{className:j.preIcon,children:e(u,{icon:m,isLoading:b})}),o("select",Object.assign({className:j.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 M.COLOR_PICKER:return e("input",Object.assign({className:`${j.field} ${j.colorPicker}`,type:"color",value:_,placeholder:d,onBlur:S,onFocus:W,onChange:T,disabled:F,ref:t},G));case M.TEXT_AREA:return e("textarea",Object.assign({className:j.field,value:_,placeholder:d,onBlur:S,onFocus:W,onChange:T,autoFocus:C,ref:t},G));case M.AVATAR_UPLOAD:return o("label",{htmlFor:"avatar-upload",children:[e(N,{size:x,source:I,isLoading:b,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:D?V:Y,ref:t,className:j.avatar,disabled:F,multiple:D})]});case M.UPLOAD_IMAGE_ICON:return o("label",{htmlFor:"upload-image-icon",children:[e(u,{icon:f,isLoading:b,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:D?V:Y,ref:t,className:j.avatar,disabled:F,multiple:D})]});default:return o(i,{children:[e("input",Object.assign({className:j.field,type:l,placeholder:d,value:_,onBlur:S,onFocus:W,onChange:T,onKeyUp:U,ref:t,disabled:F,autoFocus:C},G)),c&&e("div",{className:E?`${j.addon} ${j.pointer}`:j.addon,onClick:E,children:e(u,{icon:c,isLoading:b})})]})}})()}),!!g&&e("div",{className:j.error,children:g}),!!k&&e("div",{className:s(j,{autoCompleteContent:!0,reversed:A}),children:k})]})}));var z={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 H=(e,o)=>{const n=n=>{e.current&&!e.current.contains(n.target)&&o()};l((()=>(document.addEventListener("click",n),()=>{document.removeEventListener("click",n)})),[])},G=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},F=({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 H(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,k=null!==(_=null===(d=null==i?void 0:i.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200;let A="auto",L="auto",w="auto",b="auto";p<I&&f>=I?b=h-r-u+20:L=r+u+5,x<k&&v>=k?w=g-s:A=s;const D={top:L,left:A,right:w,bottom:b};c(Object.assign(Object.assign({},D),{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},U=({children:o})=>e("div",{className:z.menu,children:o}),Y=({action:i,menu:t,type:d=C.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:z.container,ref:c,children:[e("div",{className:s(z,{action:!0},[z[d],z[r]]),ref:m,onClick:()=>g(!h),children:i}),e(F,{containerRef:c,contentRef:u,isOpen:h,onClose:p,renderChild:()=>e("div",{className:z.menuContainer,ref:u,children:e(U,{children:t})})})]})};var V={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 K=({shape:o="square",size:n="md",width:i,height:t})=>e("div",{className:s(V,{container:!0},[V[o],V[n]]),style:{width:i,height:t}});var X={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(X,{container:!0,isOpen:l}),onClick:()=>a(!l),children:[o("div",{className:X.header,children:[e("h3",{children:i}),e(u,{icon:l?A:L,size:"md"})]}),e("div",{className:X.body,children:e("div",{className:X.content,children:t})})]})};var Z={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 Q=({hint:n,children:i,position:t="top"})=>o("div",{className:Z.tooltip,children:[!!n&&e("div",{className:`${Z.hint} ${Z[t]}`,children:n}),i]});var J={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu"},$={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm"};const ee=({size:n="md",title:i,subtitle:t})=>o("div",{className:$.heading,children:[e("div",{className:`${$.title} ${$[n]}`,children:i}),t&&e("div",{className:$.subtitle,children:t})]}),oe=({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(J,{card:!0,separated:d,noBottomMargin:c,noBodyPadding:u}),style:Object.assign({},_&&{borderTop:m}),children:[(l||n)&&o("div",{className:J.header,children:[o("div",{className:J.headerInfo,children:[n&&e("div",{className:J.headerTitle,children:e(ee,{size:"sm",title:n})}),i&&e("div",{className:J.headerSubtitle,children:i})]}),l&&e("div",{className:J.headerToolbar,children:l})]}),e("div",{className:J.body,children:t}),a&&e("div",{className:J.footer,children:a})]})};var ne={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 ie=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var te;!function(e){e.SEEN="seen"}(te||(te={}));const le=({appName:i})=>{const[t,a]=n(!1);return l((()=>{const e=ie.getCookieBannerState();a(e!==te.SEEN)}),[]),t?o("div",{className:ne.container,children:[o("div",{className:ne.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:ne.actions,children:e(y,{label:"Continue",onClick:()=>{a(!1),ie.saveCookieBannerState(te.SEEN)}})})]}):null};var ae={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 de=({className:o="",children:n,noPadding:i=!1})=>e("div",{className:s(ae,{container:!0,noPadding:i},[o]),children:n});var _e="Header-module_header__qxHtx",re="Header-module_content__DV-in",se="Header-module_logo__xO2bW",ce="Header-module_mobileLogo__eNvSP",ue="Header-module_actions__ZlACk",me="Header-module_mobileMenuIcon__pFpba",he="Header-module_menu__Yw9r6",ge="Header-module_mobileMenu__4S-NE";const pe=({logo:i,menu:t,actions:l=null})=>{const[a,d]=n(!1);return o("header",{className:_e,children:[e(de,{children:o("div",{className:re,children:[e("a",{href:"/",className:se,children:i}),e("a",{href:"/",className:ce,children:i}),!!t&&e("div",{className:he,children:t}),o("div",{className:ue,children:[l,!!t&&e("div",{className:me,children:e(S,{icon:a?p:I,onClick:()=>d(!a),size:"lg"})})]})]})}),a&&e("div",{className:ge,children:t})]})};var fe={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 ve=({title:n,subtitle:i,theme:t="light",children:l})=>o("div",{className:s(fe,{container:!0},[fe[t]]),children:[o("div",{className:fe.header,children:[e("h2",{children:n}),!!i&&e("div",{className:fe.subtitle,children:i})]}),e("div",{className:fe.body,children:l})]});var xe="FAQ-module_container__Kht11";const Ie=({items:o,title:n})=>e(ve,{title:n||"Frequently asked questions",children:e("div",{className:xe,children:o.map((({title:o,content:n})=>e(q,{title:o,content:n},o)))})});var ke={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 Ae=({domain:n,socialLinks:i,address:t,reportLabel:l,writeUsLabel:a,followUsLabel:d,addressLabel:_})=>o("div",{className:ke.container,children:[o("div",{className:ke.contact,children:[e("div",{className:ke.icon,children:e(u,{icon:k,size:"xl"})}),o("div",{className:ke.content,children:[e("div",{className:ke.title,children:l||"Report"}),e("div",{className:ke.value,children:o("a",{href:`mailto:feedback@${n}`,children:["feedback@",n]})})]})]}),o("div",{className:ke.contact,children:[e("div",{className:ke.icon,children:e(u,{icon:v,size:"xl"})}),o("div",{className:ke.content,children:[e("div",{className:ke.title,children:a||"Write us"}),e("div",{className:ke.value,children:o("a",{href:`mailto:contact@${n}`,children:["contact@",n]})})]})]}),o("div",{className:ke.contact,children:[e("div",{className:ke.icon,children:e(u,{icon:w,size:"xl"})}),o("div",{className:ke.content,children:[e("div",{className:ke.title,children:d||"Follow us"}),e("div",{className:ke.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:ke.contact,children:[e("div",{className:ke.icon,children:e(u,{icon:x,size:"xl"})}),o("div",{className:ke.content,children:[e("div",{className:ke.title,children:_||"Address"}),e("div",{className:ke.value,children:t})]})]})]});var Le={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 we=({size:o="m",text:n,noSpacing:i=!1,className:t="",lighter:l=!1})=>e("div",{className:s(Le,{description:!0,noSpacing:i,lighter:l},[Le[o],t]),children:n});export{q as Accordion,N as Avatar,y as Button,oe as Card,Ae as ContactsList,de as Container,le as CookieBanner,we as Description,Y as DropDown,Ie as FAQ,pe as Header,ee as Heading,S as IconButton,R as Input,M as InputType,P as Link,T as ListItem,K as LoadingItem,u as SVGIcon,ve as Section,Q as Tooltip,C as UIElementType,s as classNames,H as useClickOutside,G as useClickOutsideRef}; | ||
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}; | ||
//# sourceMappingURL=index.esm.js.map |
@@ -1,2 +0,2 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=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 l=(e,o,n=[])=>{let t=[];for(const n in o)o[n]&&t.push(e[n]);return(null==n?void 0:n.length)>0&&(t=t.concat(n)),t.join(" ")};var a={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 d=({icon:o,size:n="sm",className:t="",isLoading:i=!1})=>{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.jsx("div",{className:l(a,{container:!0,isLoading:i},[t]),children:e.jsx(o,{className:t,width:d,height:d,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},s=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"})]})),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:"M20 6 9 17l-5-5"})})),_=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),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:"M18 6 6 18M6 6l12 12"})})),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:"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"})})),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:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),k=({source:o=null,alt:n="avatar",size:t="sm",onClick:a,className:r,isEditable:_=!1,overlayIcon:c,inline:u=!1,isLoading:m=!1,overlayText:h})=>{const x=()=>{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 e.jsxs("div",{className:l(i,{avatar:!0,clickable:!!a||_,editable:_,inline:u,loading:m},[i[t],r]),onClick:a,style:{width:x(),height:x()},children:[o?e.jsx("img",{src:o,alt:n,className:i.image,width:x(),height:x()}):e.jsx(d,{size:t,icon:I}),_&&e.jsx("div",{className:i.editIcon,children:e.jsx(d,{isLoading:m,icon:m?j:s})}),(!!c||h)&&e.jsxs("div",{className:i.overlay,children:[!!c&&e.jsx(d,{isLoading:m,icon:m?j:c}),!!h&&e.jsx("div",{className:i.overlayText,children:h})]})]})};var A,L={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,(A=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",A.SECONDARY="secondary",A.DANGER="danger",A.SUCCESS="success",A.WARNING="warning",A.INFO="info",A.LIGHT="light",A.DEFAULT="default",A.DARK="dark",A.LIGHT_PRIMARY="lightPrimary",A.LIGHT_SUCCESS="lightSuccess",A.LIGHT_WARNING="lightWarning",A.LIGHT_INFO="lightInfo",A.LIGHT_DANGER="lightDanger",A.LIGHT_DARK="lightDark",A.LIGHT_SECONDARY="lightSecondary",A.WHITE_TEXT="whiteText",A.BORDERED_PRIMARY="borderedPrimary",A.BORDERED_SECONDARY="borderedSecondary";const w=({type:n=exports.UIElementType.PRIMARY,onClick:t,label:i,icon:a,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:l(L,{container:!0,fullWidth:s}),children:[e.jsx("button",{className:l(L,{button:!0,loading:!!r},[L[n],L[m],c]),onClick:u?()=>x(!h):t,disabled:r||_,children:r?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:L.label,children:[a&&e.jsx(d,{icon:a}),e.jsx("span",{children:i})]})}),h&&e.jsxs("div",{className:L.confirm,children:[e.jsx("div",{className:L.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:L.confirmActions,children:[e.jsx(w,{type:exports.UIElementType.DANGER,onClick:()=>x(!1),label:"No",size:"xs"}),e.jsx(w,{type:exports.UIElementType.SUCCESS,onClick:()=>{x(!1),t()},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 D=({icon:n,onClick:t,type:i=exports.UIElementType.DEFAULT,needConfirm:a=!1,noPadding:s=!1,isLoading:r=!1,size:_="sm",confirmPosition:c="top"})=>{const[u,m]=o.useState(!1);return e.jsxs("div",{className:l(b,{iconButton:!0,noPadding:s},[b[i],b[_]]),onClick:r?void 0:a?()=>m(!u):t,children:[e.jsx(d,{isLoading:r,icon:n,size:_}),u&&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(w,{type:exports.UIElementType.DANGER,onClick:()=>m(!1),label:"No",size:"xs"}),e.jsx(w,{type:exports.UIElementType.SUCCESS,onClick:t,label:"Yes",size:"xs"})]})]})]})};var N={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 C={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"};"function"==typeof SuppressedError&&SuppressedError;var y,B={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,(y=exports.InputType||(exports.InputType={})).TEXT="text",y.PASSWORD="password",y.EMAIL="email",y.NUMBER="number",y.URL="url",y.TEL="tel",y.DATE="date",y.DATETIME="datetime",y.SELECT="select",y.COLOR_PICKER="color-picker",y.TEXT_AREA="text-area",y.AVATAR_UPLOAD="avatar-upload",y.UPLOAD_IMAGE_ICON="upload-image-icon";const S=o.forwardRef((function(n,t){var{type:i=exports.InputType.TEXT,label:a,placeholder:s,value:r,required:_=!1,addonIcon:c,preIcon:m,labelAddon:h,errorMessage:x,options:g=[],fullWidth:p,avatarSize:f,source:v,autoCompleteContent:j,autoCompleteReverse:I=!1,noMargin:A=!1,isDisabled:L=!1,isLoading:w=!1,isMultiUpload:b=!1,autoFocus:D=!1,theme:N="oval",size:C="medium",isDarkMode:y=!1,onBlur:S,onFocus:O,onChange:T,addonAction:W,onEnter:E,onEsc:P,onFileSelect:M,onFilesSelect:R}=n,H=function(e,o){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(n[t[i]]=e[t[i]])}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 z=L||w,U=e=>{switch(e.key){case"Enter":E&&E();break;case"Escape":P&&P()}},G=e=>{const o=e.target.files[0],n=new FileReader;n.onload=()=>{M&&M(o,n.result)},n.readAsDataURL(o)},F=e=>{const o=e.target;R&&R(o.files)};return e.jsxs("div",{className:l(B,{input:!0,full:!!p,noMargin:A,hasAddon:!!c,darkMode:y},[B[N],B[C]]),children:[a&&e.jsxs("label",{children:[e.jsx("span",{className:_?B.required:"",children:a}),!!h&&e.jsx("div",{className:B.labelAddon,children:h})]}),e.jsx("div",{className:B.container,children:(()=>{switch(i){case exports.InputType.SELECT:return e.jsxs(o.Fragment,{children:[m&&e.jsx("div",{className:B.preIcon,children:e.jsx(d,{icon:m,isLoading:w})}),e.jsxs("select",Object.assign({className:B.field,value:r,onBlur:S,onFocus:O,onChange:T,ref:t},H,{children:[s&&e.jsx("option",{value:"",children:s}),g.map((({label:o,value:n})=>e.jsx("option",{value:n,children:o},n)))]}))]});case exports.InputType.COLOR_PICKER:return e.jsx("input",Object.assign({className:`${B.field} ${B.colorPicker}`,type:"color",value:r,placeholder:s,onBlur:S,onFocus:O,onChange:T,disabled:z,ref:t},H));case exports.InputType.TEXT_AREA:return e.jsx("textarea",Object.assign({className:B.field,value:r,placeholder:s,onBlur:S,onFocus:O,onChange:T,autoFocus:D,ref:t},H));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(k,{size:f,source:v,isLoading:w,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:b?F:G,ref:t,className:B.avatar,disabled:z,multiple:b})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(d,{icon:u,isLoading:w,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:b?F:G,ref:t,className:B.avatar,disabled:z,multiple:b})]});default:return e.jsxs(o.Fragment,{children:[e.jsx("input",Object.assign({className:B.field,type:i,placeholder:s,value:r,onBlur:S,onFocus:O,onChange:T,onKeyUp:U,ref:t,disabled:z,autoFocus:D},H)),c&&e.jsx("div",{className:W?`${B.addon} ${B.pointer}`:B.addon,onClick:W,children:e.jsx(d,{icon:c,isLoading:w})})]})}})()}),!!x&&e.jsx("div",{className:B.error,children:x}),!!j&&e.jsx("div",{className:l(B,{autoCompleteContent:!0,reversed:I}),children:j})]})}));var O={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 T=(e,n)=>{const t=o=>{e.current&&!e.current.contains(o.target)&&n()};o.useEffect((()=>(document.addEventListener("click",t),()=>{document.removeEventListener("click",t)})),[])},W=({containerRef:n,contentRef:i,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 T(n,(()=>u())),o.useEffect((()=>{if(l)return(()=>{var e,o,t,l,a,d,s;const{top:r,left:c,height:u,width:m}=null!==(t=null===(o=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==t?t:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:x}=window,g=h-(r+u),p=r,f=c,v=x-(c+m),j=null!==(a=null===(l=null==i?void 0:i.current)||void 0===l?void 0:l.clientHeight)&&void 0!==a?a:200,I=null!==(s=null===(d=null==i?void 0:i.current)||void 0===d?void 0:d.clientWidth)&&void 0!==s?s:200;let k="auto",A="auto",L="auto",w="auto";g<j&&p>=j?w=h-r-u+20:A=r+u+5,v<I&&f>=I?L=x-c:k=c;const b={top:A,left:k,right:L,bottom:w};_(Object.assign(Object.assign({},b),{isOpen:!0}))})();u()}),[l,null==n?void 0:n.current]),r.isOpen?t.default.createPortal(e.jsx("div",{style:c,onClick:e=>{e.stopPropagation()},children:a(r)}),document.getElementById("portals")):null},E=({children:o})=>e.jsx("div",{className:O.menu,children:o});var P={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 M={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 R=({title:n,content:t})=>{const[i,a]=o.useState(!1);return e.jsxs("div",{className:l(M,{container:!0,isOpen:i}),onClick:()=>a(!i),children:[e.jsxs("div",{className:M.header,children:[e.jsx("h3",{children:n}),e.jsx(d,{icon:i?p:f,size:"md"})]}),e.jsx("div",{className:M.body,children:e.jsx("div",{className:M.content,children:t})})]})};var H={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 z={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"},U={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 G=({size:o="md",title:n,subtitle:t})=>e.jsxs("div",{className:U.heading,children:[e.jsx("div",{className:`${U.title} ${U[o]}`,children:n}),t&&e.jsx("div",{className:U.subtitle,children:t})]});var F={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 Y=new class{constructor(){this.cookieBannerKey="sorocraft_cookie_banner"}saveCookieBannerState(e){localStorage.setItem(this.cookieBannerKey,String(e))}getCookieBannerState(){return localStorage.getItem(this.cookieBannerKey)}};var V;!function(e){e.SEEN="seen"}(V||(V={}));var K={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 q=({className:o="",children:n,noPadding:t=!1})=>e.jsx("div",{className:l(K,{container:!0,noPadding:t},[o]),children:n});var X="Header-module_header__qxHtx",Z="Header-module_content__DV-in",Q="Header-module_logo__xO2bW",J="Header-module_mobileLogo__eNvSP",$="Header-module_actions__ZlACk",ee="Header-module_mobileMenuIcon__pFpba",oe="Header-module_menu__Yw9r6",ne="Header-module_mobileMenu__4S-NE";var te={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:o,subtitle:n,theme:t="light",children:i})=>e.jsxs("div",{className:l(te,{container:!0},[te[t]]),children:[e.jsxs("div",{className:te.header,children:[e.jsx("h2",{children:o}),!!n&&e.jsx("div",{className:te.subtitle,children:n})]}),e.jsx("div",{className:te.body,children:i})]});var le="FAQ-module_container__Kht11";var ae={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 de={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"};exports.Accordion=R,exports.Avatar=k,exports.Button=w,exports.Card=({title:o,subtitle:n,children:t,toolbar:i,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:l(z,{card:!0,separated:d,noBottomMargin:_,noBodyPadding:c}),style:Object.assign({},s&&{borderTop:u}),children:[(i||o)&&e.jsxs("div",{className:z.header,children:[e.jsxs("div",{className:z.headerInfo,children:[o&&e.jsx("div",{className:z.headerTitle,children:e.jsx(G,{size:"sm",title:o})}),n&&e.jsx("div",{className:z.headerSubtitle,children:n})]}),i&&e.jsx("div",{className:z.headerToolbar,children:i})]}),e.jsx("div",{className:z.body,children:t}),a&&e.jsx("div",{className:z.footer,children:a})]})},exports.ContactsList=({domain:o,socialLinks:n,address:t,reportLabel:i,writeUsLabel:l,followUsLabel:a,addressLabel:s})=>e.jsxs("div",{className:ae.container,children:[e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(d,{icon:g,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:i||"Report"}),e.jsx("div",{className:ae.value,children:e.jsxs("a",{href:`mailto:feedback@${o}`,children:["feedback@",o]})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(d,{icon:m,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:l||"Write us"}),e.jsx("div",{className:ae.value,children:e.jsxs("a",{href:`mailto:contact@${o}`,children:["contact@",o]})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(d,{icon:v,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:a||"Follow us"}),e.jsx("div",{className:ae.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(d,{icon:n,size:"md"})})},o)))})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(d,{icon:h,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:s||"Address"}),e.jsx("div",{className:ae.value,children:t})]})]})]}),exports.Container=q,exports.CookieBanner=({appName:n})=>{const[t,i]=o.useState(!1);return o.useEffect((()=>{const e=Y.getCookieBannerState();i(e!==V.SEEN)}),[]),t?e.jsxs("div",{className:F.container,children:[e.jsxs("div",{className:F.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:F.actions,children:e.jsx(w,{label:"Continue",onClick:()=>{i(!1),Y.saveCookieBannerState(V.SEEN)}})})]}):null},exports.Description=({size:o="m",text:n,noSpacing:t=!1,className:i="",lighter:a=!1})=>e.jsx("div",{className:l(de,{description:!0,noSpacing:t,lighter:a},[de[o],i]),children:n}),exports.DropDown=({action:n,menu:t,type:i=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:O.container,ref:s,children:[e.jsx("div",{className:l(O,{action:!0},[O[i],O[d]]),ref:_,onClick:()=>u(!c),children:n}),e.jsx(W,{containerRef:s,contentRef:r,isOpen:c,onClose:m,renderChild:()=>e.jsx("div",{className:O.menuContainer,ref:r,children:e.jsx(E,{children:t})})})]})},exports.FAQ=({items:o,title:n})=>e.jsx(ie,{title:n||"Frequently asked questions",children:e.jsx("div",{className:le,children:o.map((({title:o,content:n})=>e.jsx(R,{title:o,content:n},o)))})}),exports.Header=({logo:n,menu:t,actions:i=null})=>{const[l,a]=o.useState(!1);return e.jsxs("header",{className:X,children:[e.jsx(q,{children:e.jsxs("div",{className:Z,children:[e.jsx("a",{href:"/",className:Q,children:n}),e.jsx("a",{href:"/",className:J,children:n}),!!t&&e.jsx("div",{className:oe,children:t}),e.jsxs("div",{className:$,children:[i,!!t&&e.jsx("div",{className:ee,children:e.jsx(D,{icon:l?c:x,onClick:()=>a(!l),size:"lg"})})]})]})}),l&&e.jsx("div",{className:ne,children:t})]})},exports.Heading=G,exports.IconButton=D,exports.Input=S,exports.Link=({href:o,title:n,target:t="_self",type:i=exports.UIElementType.DEFAULT,padding:a="zero",hasChevron:s=!1,fullWidth:r=!1})=>e.jsxs("a",{href:o,target:t,rel:"noopener noreferrer",className:l(C,{link:!0,fullWidth:r},[C[i],C[a]]),children:[e.jsx("span",{children:n})," ",s&&e.jsx(d,{icon:_})]}),exports.ListItem=({title:o,subtitle:n,actionTitle:t="",action:i,completed:a,indicator:s,hasSeparator:_=!1,hasDashedSeparator:c=!1,isActionPending:u=!1})=>e.jsxs("div",{className:l(N,{listItem:!0,separator:_,dashedSeparator:c}),children:[e.jsxs("div",{className:N.content,children:[s&&e.jsx("div",{className:l(N,{indicator:!0},[N[s]])}),e.jsxs("div",{className:N.data,children:[e.jsx("div",{className:N.title,children:o}),n&&e.jsx("div",{className:N.subtitle,children:n})]})]}),i&&e.jsx(w,{onClick:i,className:N.action,label:t,isLoading:u}),a&&e.jsx("div",{className:N.completed,children:e.jsx(d,{icon:r})})]}),exports.LoadingItem=({shape:o="square",size:n="md",width:t,height:i})=>e.jsx("div",{className:l(P,{container:!0},[P[o],P[n]]),style:{width:t,height:i}}),exports.SVGIcon=d,exports.Section=ie,exports.Tooltip=({hint:o,children:n,position:t="top"})=>e.jsxs("div",{className:H.tooltip,children:[!!o&&e.jsx("div",{className:`${H.hint} ${H[t]}`,children:o}),n]}),exports.classNames=l,exports.useClickOutside=T,exports.useClickOutsideRef=e=>{const n=o.useRef(null),t=o.useCallback((o=>{n.current&&!n.current.contains(o.target)&&e()}),[e]);return o.useEffect((()=>(document.addEventListener("click",t),()=>{document.removeEventListener("click",t)})),[t]),n}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=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 l=(e,o,n=[])=>{let t=[];for(const n in o)o[n]&&t.push(e[n]);return(null==n?void 0:n.length)>0&&(t=t.concat(n)),t.join(" ")};var a={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 d=({icon:o,size:n="sm",className:t="",isLoading:i=!1})=>{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.jsx("div",{className:l(a,{container:!0,isLoading:i},[t]),children:e.jsx(o,{className:t,width:d,height:d,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},s=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"})]})),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:"M20 6 9 17l-5-5"})})),_=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})})),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:"M18 6 6 18M6 6l12 12"})})),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:"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"})})),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:"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"})})),h=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})})),x=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})})),g=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})})),p=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})})),f=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})})),v=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})})),j=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 10s2.005-2.732 3.634-4.362A9 9 0 1 1 12 21a9.004 9.004 0 0 1-8.648-6.5M2 10V4m0 6h6"})})),I=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})})),A=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})})),k=o=>e.jsx("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})})),L=({source:o=null,alt:n="avatar",size:t="sm",onClick:a,className:r,isEditable:_=!1,overlayIcon:c,inline:u=!1,isLoading:m=!1,overlayText:h})=>{const x=()=>{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 e.jsxs("div",{className:l(i,{avatar:!0,clickable:!!a||_,editable:_,inline:u,loading:m},[i[t],r]),onClick:a,style:{width:x(),height:x()},children:[o?e.jsx("img",{src:o,alt:n,className:i.image,width:x(),height:x()}):e.jsx(d,{size:t,icon:k}),_&&e.jsx("div",{className:i.editIcon,children:e.jsx(d,{isLoading:m,icon:m?A:s})}),(!!c||h)&&e.jsxs("div",{className:i.overlay,children:[!!c&&e.jsx(d,{isLoading:m,icon:m?A:c}),!!h&&e.jsx("div",{className:i.overlayText,children:h})]})]})};var w,b={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,(w=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",w.SECONDARY="secondary",w.DANGER="danger",w.SUCCESS="success",w.WARNING="warning",w.INFO="info",w.LIGHT="light",w.DEFAULT="default",w.DARK="dark",w.LIGHT_PRIMARY="lightPrimary",w.LIGHT_SUCCESS="lightSuccess",w.LIGHT_WARNING="lightWarning",w.LIGHT_INFO="lightInfo",w.LIGHT_DANGER="lightDanger",w.LIGHT_DARK="lightDark",w.LIGHT_SECONDARY="lightSecondary",w.WHITE_TEXT="whiteText",w.BORDERED_PRIMARY="borderedPrimary",w.BORDERED_SECONDARY="borderedSecondary";const D=({type:n=exports.UIElementType.PRIMARY,onClick:t,label:i,icon:a,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:l(b,{container:!0,fullWidth:s}),children:[e.jsx("button",{className:l(b,{button:!0,loading:!!r},[b[n],b[m],c]),onClick:u?()=>x(!h):t,disabled:r||_,children:r?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:b.label,children:[a&&e.jsx(d,{icon:a}),e.jsx("span",{children:i})]})}),h&&e.jsxs("div",{className:b.confirm,children:[e.jsx("div",{className:b.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:b.confirmActions,children:[e.jsx(D,{type:exports.UIElementType.DANGER,onClick:()=>x(!1),label:"No",size:"xs"}),e.jsx(D,{type:exports.UIElementType.SUCCESS,onClick:()=>{x(!1),t()},label:"Yes",size:"xs"})]})]})]})};var N={iconButton:"IconButton-module_iconButton__PmpB8",noPadding:"IconButton-module_noPadding__Jd2rK",lg:"IconButton-module_lg__KG7lp",md:"IconButton-module_md__s4q7b",sm:"IconButton-module_sm__are9s",xs:"IconButton-module_xs__qYwZc",confirm:"IconButton-module_confirm__-jXH4",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 y=({icon:n,onClick:t,type:i=exports.UIElementType.DEFAULT,needConfirm:a=!1,noPadding:s=!1,isLoading:r=!1,size:_="sm",confirmPosition:c="top"})=>{const[u,m]=o.useState(!1);return e.jsxs("div",{className:l(N,{iconButton:!0,noPadding:s},[N[i],N[_]]),onClick:r?void 0:a?()=>m(!u):t,children:[e.jsx(d,{isLoading:r,icon:n,size:_}),u&&e.jsxs("div",{className:`${N.confirm} ${N[c]}`,children:[e.jsx("div",{className:N.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:N.confirmActions,children:[e.jsx(D,{type:exports.UIElementType.DANGER,onClick:()=>m(!1),label:"No",size:"xs"}),e.jsx(D,{type:exports.UIElementType.SUCCESS,onClick:t,label:"Yes",size:"xs"})]})]})]})};var C={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 B={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"};"function"==typeof SuppressedError&&SuppressedError;var S,O={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",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,(S=exports.InputType||(exports.InputType={})).TEXT="text",S.PASSWORD="password",S.EMAIL="email",S.NUMBER="number",S.URL="url",S.TEL="tel",S.DATE="date",S.DATETIME="datetime",S.SELECT="select",S.COLOR_PICKER="color-picker",S.TEXT_AREA="text-area",S.AVATAR_UPLOAD="avatar-upload",S.UPLOAD_IMAGE_ICON="upload-image-icon";const T=o.forwardRef((function(n,t){var{type:i=exports.InputType.TEXT,label:a,placeholder:s,value:r,required:_=!1,addonIcon:c,preIcon:u,labelAddon:h,errorMessage:x,options:g=[],fullWidth:p,avatarSize:f,source:v,autoCompleteContent:j,autoCompleteReverse:I=!1,noMargin:A=!1,isDisabled:k=!1,isLoading:w=!1,isMultiUpload:b=!1,autoFocus:D=!1,theme:N="oval",size:y="medium",isDarkMode:C=!1,onBlur:B,onFocus:S,onChange:T,addonAction:W,onEnter:E,onEsc:P,onFileSelect:M,onFilesSelect:R}=n,H=function(e,o){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&o.indexOf(t)<0&&(n[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)o.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(n[t[i]]=e[t[i]])}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 z=k||w,U=e=>{switch(e.key){case"Enter":E&&E();break;case"Escape":P&&P()}},F=e=>{const o=e.target.files[0],n=new FileReader;n.onload=()=>{M&&M(o,n.result)},n.readAsDataURL(o)},G=e=>{const o=e.target;R&&R(o.files)};return e.jsxs("div",{className:l(O,{input:!0,full:!!p,noMargin:A,hasAddon:!!c,darkMode:C},[O[N],O[y]]),children:[a&&e.jsxs("label",{children:[e.jsx("span",{className:_?O.required:"",children:a}),!!h&&e.jsx("div",{className:O.labelAddon,children:h})]}),e.jsx("div",{className:O.container,children:(()=>{switch(i){case exports.InputType.SELECT:return e.jsxs(o.Fragment,{children:[u&&e.jsx("div",{className:O.preIcon,children:e.jsx(d,{icon:u,isLoading:w})}),e.jsxs("select",Object.assign({className:O.field,value:r,onBlur:B,onFocus:S,onChange:T,ref:t},H,{children:[s&&e.jsx("option",{value:"",children:s}),g.map((({label:o,value:n})=>e.jsx("option",{value:n,children:o},n)))]}))]});case exports.InputType.COLOR_PICKER:return e.jsx("input",Object.assign({className:`${O.field} ${O.colorPicker}`,type:"color",value:r,placeholder:s,onBlur:B,onFocus:S,onChange:T,disabled:z,ref:t},H));case exports.InputType.TEXT_AREA:return e.jsx("textarea",Object.assign({className:O.field,value:r,placeholder:s,onBlur:B,onFocus:S,onChange:T,autoFocus:D,ref:t},H));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(L,{size:f,source:v,isLoading:w,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:b?G:F,ref:t,className:O.avatar,disabled:z,multiple:b})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(d,{icon:m,isLoading:w,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:b?G:F,ref:t,className:O.avatar,disabled:z,multiple:b})]});default:return e.jsxs(o.Fragment,{children:[e.jsx("input",Object.assign({className:O.field,type:i,placeholder:s,value:r,onBlur:B,onFocus:S,onChange:T,onKeyUp:U,ref:t,disabled:z,autoFocus:D},H)),c&&e.jsx("div",{className:W?`${O.addon} ${O.pointer}`:O.addon,onClick:W,children:e.jsx(d,{icon:c,isLoading:w})})]})}})()}),!!x&&e.jsx("div",{className:O.error,children:x}),!!j&&e.jsx("div",{className:l(O,{autoCompleteContent:!0,reversed:I}),children:j})]})}));var W={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5"};const E=(e,n)=>{const t=o=>{e.current&&!e.current.contains(o.target)&&n()};o.useEffect((()=>(document.addEventListener("click",t),()=>{document.removeEventListener("click",t)})),[])},P=({containerRef:n,contentRef:i,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 E(n,(()=>u())),o.useEffect((()=>{if(l)return(()=>{var e,o,t,l,a,d,s;const{top:r,left:c,height:u,width:m}=null!==(t=null===(o=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==t?t:{top:0,left:0,height:0,width:0},{innerHeight:h,innerWidth:x}=window,g=h-(r+u),p=r,f=c,v=x-(c+m),j=null!==(a=null===(l=null==i?void 0:i.current)||void 0===l?void 0:l.clientHeight)&&void 0!==a?a:200,I=null!==(s=null===(d=null==i?void 0:i.current)||void 0===d?void 0:d.clientWidth)&&void 0!==s?s:200;let A="auto",k="auto",L="auto",w="auto";g<j&&p>=j?w=h-r-u+20:k=r+u+5,v<I&&f>=I?L=x-c:A=c;const b={top:k,left:A,right:L,bottom:w};_(Object.assign(Object.assign({},b),{isOpen:!0}))})();u()}),[l,null==n?void 0:n.current]),r.isOpen?t.default.createPortal(e.jsx("div",{style:c,onClick:e=>{e.stopPropagation()},children:a(r)}),document.getElementById("portals")):null},M=({children:o})=>e.jsx("div",{className:W.menu,children:o});var R={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 H={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 z=({title:n,content:t})=>{const[i,a]=o.useState(!1);return e.jsxs("div",{className:l(H,{container:!0,isOpen:i}),onClick:()=>a(!i),children:[e.jsxs("div",{className:H.header,children:[e.jsx("h3",{children:n}),e.jsx(d,{icon:i?f:v,size:"md"})]}),e.jsx("div",{className:H.body,children:e.jsx("div",{className:H.content,children:t})})]})};var U={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 F={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"},G={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 Y=({size:o="md",title:n,subtitle:t})=>e.jsxs("div",{className:G.heading,children:[e.jsx("div",{className:`${G.title} ${G[o]}`,children:n}),t&&e.jsx("div",{className:G.subtitle,children:t})]});var V={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 X;!function(e){e.SEEN="seen"}(X||(X={}));var q={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 Z=({className:o="",children:n,noPadding:t=!1})=>e.jsx("div",{className:l(q,{container:!0,noPadding:t},[o]),children:n});var Q="Header-module_header__qxHtx",J="Header-module_content__DV-in",$="Header-module_logo__xO2bW",ee="Header-module_mobileLogo__eNvSP",oe="Header-module_actions__ZlACk",ne="Header-module_mobileMenuIcon__pFpba",te="Header-module_menu__Yw9r6",ie="Header-module_mobileMenu__4S-NE";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 ae=({title:o,subtitle:n,theme:t="light",children:i})=>e.jsxs("div",{className:l(le,{container:!0},[le[t]]),children:[e.jsxs("div",{className:le.header,children:[e.jsx("h2",{children:o}),!!n&&e.jsx("div",{className:le.subtitle,children:n})]}),e.jsx("div",{className:le.body,children:i})]});var de="FAQ-module_container__Kht11";var se={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 re={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 _e={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"};exports.Accordion=z,exports.AlertBox=({message:o,onClear:n,onReload:t,type:i,inline:a=!1})=>e.jsxs("div",{className:l(_e,{alert:!0,inline:a},[_e[i]]),children:[e.jsx("div",{className:_e.icon,children:e.jsx(d,{icon:u,size:"md"})}),e.jsx("div",{className:_e.message,children:o}),e.jsxs("div",{className:_e.actions,children:[t&&e.jsx(y,{icon:j,onClick:t,type:exports.UIElementType.WHITE_TEXT}),e.jsx(y,{icon:c,onClick:n,type:exports.UIElementType.WHITE_TEXT})]})]}),exports.Avatar=L,exports.Button=D,exports.Card=({title:o,subtitle:n,children:t,toolbar:i,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:l(F,{card:!0,separated:d,noBottomMargin:_,noBodyPadding:c}),style:Object.assign({},s&&{borderTop:u}),children:[(i||o)&&e.jsxs("div",{className:F.header,children:[e.jsxs("div",{className:F.headerInfo,children:[o&&e.jsx("div",{className:F.headerTitle,children:e.jsx(Y,{size:"sm",title:o})}),n&&e.jsx("div",{className:F.headerSubtitle,children:n})]}),i&&e.jsx("div",{className:F.headerToolbar,children:i})]}),e.jsx("div",{className:F.body,children:t}),a&&e.jsx("div",{className:F.footer,children:a})]})},exports.ContactsList=({domain:o,socialLinks:n,address:t,reportLabel:i,writeUsLabel:l,followUsLabel:a,addressLabel:s})=>e.jsxs("div",{className:se.container,children:[e.jsxs("div",{className:se.contact,children:[e.jsx("div",{className:se.icon,children:e.jsx(d,{icon:p,size:"xl"})}),e.jsxs("div",{className:se.content,children:[e.jsx("div",{className:se.title,children:i||"Report"}),e.jsx("div",{className:se.value,children:e.jsxs("a",{href:`mailto:feedback@${o}`,children:["feedback@",o]})})]})]}),e.jsxs("div",{className:se.contact,children:[e.jsx("div",{className:se.icon,children:e.jsx(d,{icon:h,size:"xl"})}),e.jsxs("div",{className:se.content,children:[e.jsx("div",{className:se.title,children:l||"Write us"}),e.jsx("div",{className:se.value,children:e.jsxs("a",{href:`mailto:contact@${o}`,children:["contact@",o]})})]})]}),e.jsxs("div",{className:se.contact,children:[e.jsx("div",{className:se.icon,children:e.jsx(d,{icon:I,size:"xl"})}),e.jsxs("div",{className:se.content,children:[e.jsx("div",{className:se.title,children:a||"Follow us"}),e.jsx("div",{className:se.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(d,{icon:n,size:"md"})})},o)))})})]})]}),e.jsxs("div",{className:se.contact,children:[e.jsx("div",{className:se.icon,children:e.jsx(d,{icon:x,size:"xl"})}),e.jsxs("div",{className:se.content,children:[e.jsx("div",{className:se.title,children:s||"Address"}),e.jsx("div",{className:se.value,children:t})]})]})]}),exports.Container=Z,exports.CookieBanner=({appName:n})=>{const[t,i]=o.useState(!1);return o.useEffect((()=>{const e=K.getCookieBannerState();i(e!==X.SEEN)}),[]),t?e.jsxs("div",{className:V.container,children:[e.jsxs("div",{className:V.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:V.actions,children:e.jsx(D,{label:"Continue",onClick:()=>{i(!1),K.saveCookieBannerState(X.SEEN)}})})]}):null},exports.Description=({size:o="m",text:n,noSpacing:t=!1,className:i="",lighter:a=!1})=>e.jsx("div",{className:l(re,{description:!0,noSpacing:t,lighter:a},[re[o],i]),children:n}),exports.DropDown=({action:n,menu:t,type:i=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:W.container,ref:s,children:[e.jsx("div",{className:l(W,{action:!0},[W[i],W[d]]),ref:_,onClick:()=>u(!c),children:n}),e.jsx(P,{containerRef:s,contentRef:r,isOpen:c,onClose:m,renderChild:()=>e.jsx("div",{className:W.menuContainer,ref:r,children:e.jsx(M,{children:t})})})]})},exports.FAQ=({items:o,title:n})=>e.jsx(ae,{title:n||"Frequently asked questions",children:e.jsx("div",{className:de,children:o.map((({title:o,content:n})=>e.jsx(z,{title:o,content:n},o)))})}),exports.Header=({logo:n,menu:t,actions:i=null})=>{const[l,a]=o.useState(!1);return e.jsxs("header",{className:Q,children:[e.jsx(Z,{children:e.jsxs("div",{className:J,children:[e.jsx("a",{href:"/",className:$,children:n}),e.jsx("a",{href:"/",className:ee,children:n}),!!t&&e.jsx("div",{className:te,children:t}),e.jsxs("div",{className:oe,children:[i,!!t&&e.jsx("div",{className:ne,children:e.jsx(y,{icon:l?c:g,onClick:()=>a(!l),size:"lg"})})]})]})}),l&&e.jsx("div",{className:ie,children:t})]})},exports.Heading=Y,exports.IconButton=y,exports.Input=T,exports.Link=({href:o,title:n,target:t="_self",type:i=exports.UIElementType.DEFAULT,padding:a="zero",hasChevron:s=!1,fullWidth:r=!1})=>e.jsxs("a",{href:o,target:t,rel:"noopener noreferrer",className:l(B,{link:!0,fullWidth:r},[B[i],B[a]]),children:[e.jsx("span",{children:n})," ",s&&e.jsx(d,{icon:_})]}),exports.ListItem=({title:o,subtitle:n,actionTitle:t="",action:i,completed:a,indicator:s,hasSeparator:_=!1,hasDashedSeparator:c=!1,isActionPending:u=!1})=>e.jsxs("div",{className:l(C,{listItem:!0,separator:_,dashedSeparator:c}),children:[e.jsxs("div",{className:C.content,children:[s&&e.jsx("div",{className:l(C,{indicator:!0},[C[s]])}),e.jsxs("div",{className:C.data,children:[e.jsx("div",{className:C.title,children:o}),n&&e.jsx("div",{className:C.subtitle,children:n})]})]}),i&&e.jsx(D,{onClick:i,className:C.action,label:t,isLoading:u}),a&&e.jsx("div",{className:C.completed,children:e.jsx(d,{icon:r})})]}),exports.LoadingItem=({shape:o="square",size:n="md",width:t,height:i})=>e.jsx("div",{className:l(R,{container:!0},[R[o],R[n]]),style:{width:t,height:i}}),exports.SVGIcon=d,exports.Section=ae,exports.Tooltip=({hint:o,children:n,position:t="top"})=>e.jsxs("div",{className:U.tooltip,children:[!!o&&e.jsx("div",{className:`${U.hint} ${U[t]}`,children:o}),n]}),exports.classNames=l,exports.useClickOutside=E,exports.useClickOutsideRef=e=>{const n=o.useRef(null),t=o.useCallback((o=>{n.current&&!n.current.contains(o.target)&&e()}),[e]);return o.useEffect((()=>(document.addEventListener("click",t),()=>{document.removeEventListener("click",t)})),[t]),n}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sorocraft/ui", | ||
"version": "1.0.40", | ||
"version": "1.0.41", | ||
"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
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
803889
1825