Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sorocraft/ui

Package Overview
Dependencies
Maintainers
0
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sorocraft/ui - npm Package Compare versions

Comparing version 1.0.25 to 1.0.26

dist/components/FAQ/FAQ.d.ts

2

dist/index.d.ts

@@ -16,5 +16,7 @@ export { default as Avatar } from "./components/Avatar";

export { default as Section } from "./components/Section";
export { default as FAQ } from "./components/FAQ";
export * from "./components/SVGIcon/SVGIcon.types";
export * from "./components/Input/Input.types";
export * from "./components/DropDown/DropDown.types";
export * from "./components/FAQ/FAQ.types";
export * from "./models/ui";

@@ -21,0 +23,0 @@ export * from "./utils/styling";

2

dist/index.esm.js

@@ -1,2 +0,2 @@

import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useState as o,Fragment as i,forwardRef as t,useEffect as l,useRef as d,useCallback as a}from"react";import r from"react-dom";var _={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"},u=function(e,n,o){void 0===o&&(o=[]);var i=[];for(var t in n)n[t]&&i.push(e[t]);return(null==o?void 0:o.length)>0&&(i=i.concat(o)),i.join(" ")},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"},m=function(n){var o=n.icon,i=n.size,t=void 0===i?"sm":i,l=n.className,d=void 0===l?"":l,a=n.isLoading,r=void 0!==a&&a,_=function(e){switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}}(t);return o?e("div",{className:u(c,{container:!0,isLoading:r},[d]),children:e(o,{className:d,width:_,height:_,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},s=function(){return s=Object.assign||function(e){for(var n,o=1,i=arguments.length;o<i;o++)for(var t in n=arguments[o])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},s.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var h,f=function(o){return n("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:[e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]}))},g=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})}))},p=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})}))},v=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})}))},I=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})}))},k=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})}))},x=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})}))},A=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})}))},L=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})}))},w=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})}))},D=function(o){var i=o.source,t=void 0===i?null:i,l=o.alt,d=void 0===l?"avatar":l,a=o.size,r=void 0===a?"sm":a,c=o.onClick,s=o.className,h=o.isEditable,g=void 0!==h&&h,p=o.overlayIcon,v=o.inline,I=void 0!==v&&v,k=o.isLoading,x=void 0!==k&&k,A=o.overlayText,D=function(){switch(r){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return n("div",{className:u(_,{avatar:!0,clickable:!!c||g,editable:g,inline:I,loading:x},[_[r],s]),onClick:c,style:{width:D(),height:D()},children:[t?e("img",{src:t,alt:d,className:_.image,width:D(),height:D()}):e(m,{size:r,icon:w}),g&&e("div",{className:_.editIcon,children:e(m,{isLoading:x,icon:x?L:f})}),(!!p||A)&&n("div",{className:_.overlay,children:[!!p&&e(m,{isLoading:x,icon:x?L:p}),!!A&&e("div",{className:_.overlayText,children:A})]})]})},y={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",small:"Button-module_small__zfmcP",xsmall:"Button-module_xsmall__QS3d-",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"}(h||(h={}));var B,N=function(t){var l=t.type,d=void 0===l?h.PRIMARY:l,a=t.onClick,r=t.label,_=t.icon,c=t.fullWidth,s=void 0!==c&&c,f=t.isLoading,g=t.disabled,p=t.className,v=t.needConfirm,I=void 0!==v&&v,k=t.size,x=void 0===k?"standard":k,A=o(!1),L=A[0],w=A[1];return n("div",{className:u(y,{container:!0,fullWidth:s}),children:[e("button",{className:u(y,{button:!0,loading:!!f},[y[d],y[x],p]),onClick:I?function(){return w(!L)}:a,disabled:f||g,children:f?e(i,{children:"Loading..."}):n("div",{className:y.label,children:[_&&e(m,{icon:_}),e("span",{children:r})]})}),L&&n("div",{className:y.confirm,children:[e("div",{className:y.confirmMessage,children:"Are you sure?"}),n("div",{className:y.confirmActions,children:[e(N,{type:h.DANGER,onClick:function(){return w(!1)},label:"No"}),e(N,{type:h.SUCCESS,onClick:function(){w(!1),a()},label:"Yes"})]})]})]})},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"},C=function(i){var t=i.icon,l=i.onClick,d=i.type,a=void 0===d?h.DEFAULT:d,r=i.needConfirm,_=void 0!==r&&r,c=i.noPadding,s=void 0!==c&&c,f=i.isLoading,g=void 0!==f&&f,p=i.size,v=void 0===p?"sm":p,I=i.confirmPosition,k=void 0===I?"top":I,x=o(!1),A=x[0],L=x[1];return n("div",{className:u(b,{iconButton:!0,noPadding:s},[b[a],b[v]]),onClick:g?void 0:_?function(){return L(!A)}:l,children:[e(m,{isLoading:g,icon:t,size:v}),A&&n("div",{className:"".concat(b.confirm," ").concat(b[k]),children:[e("div",{className:b.confirmMessage,children:"Are you sure?"}),n("div",{className:b.confirmActions,children:[e(N,{type:h.DANGER,onClick:function(){return L(!1)},label:"No",size:"small"}),e(N,{type:h.SUCCESS,onClick:l,label:"Yes",size:"small"})]})]})]})},S={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy"},O=function(o){var i=o.title,t=o.subtitle,l=o.actionTitle,d=void 0===l?"":l,a=o.action,r=o.completed,_=o.indicator,c=o.hasSeparator,s=void 0!==c&&c,h=o.hasDashedSeparator,f=void 0!==h&&h,p=o.isActionPending,v=void 0!==p&&p;return n("div",{className:u(S,{listItem:!0,separator:s,dashedSeparator:f}),children:[n("div",{className:S.content,children:[_&&e("div",{className:u(S,{indicator:!0},[S[_]])}),n("div",{className:S.data,children:[e("div",{className:S.title,children:i}),t&&e("div",{className:S.subtitle,children:t})]})]}),a&&e(N,{onClick:a,className:S.action,label:d,isLoading:v}),r&&e("div",{className:S.completed,children:e(m,{icon:g})})]})},W={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"},T=function(o){var i=o.href,t=o.title,l=o.target,d=void 0===l?"_self":l,a=o.type,r=void 0===a?h.DEFAULT:a,_=o.padding,c=void 0===_?"zero":_,s=o.hasChevron,f=void 0!==s&&s,g=o.fullWidth;return n("a",{href:i,target:d,rel:"noopener noreferrer",className:u(W,{link:!0,fullWidth:void 0!==g&&g},[W[r],W[c]]),children:[e("span",{children:t})," ",f&&e(m,{icon:p})]})},E={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",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"}(B||(B={}));var P,R=t((function(o,t){var l=o.type,d=void 0===l?B.TEXT:l,a=o.label,r=o.placeholder,_=o.value,c=o.required,h=void 0!==c&&c,f=o.addonIcon,g=o.labelAddon,p=o.errorMessage,v=o.options,k=void 0===v?[]:v,x=o.fullWidth,A=o.avatarSize,L=o.source,w=o.autoCompleteContent,y=o.autoCompleteReverse,N=void 0!==y&&y,b=o.noMargin,C=void 0!==b&&b,S=o.isDisabled,O=void 0!==S&&S,W=o.isLoading,T=void 0!==W&&W,P=o.isMultiUpload,R=void 0!==P&&P,M=o.autoFocus,z=void 0!==M&&M,G=o.theme,H=void 0===G?"oval":G,Y=o.size,j=void 0===Y?"medium":Y,U=o.onBlur,F=o.onFocus,V=o.onChange,K=o.addonAction,X=o.onEnter,Z=o.onEsc,q=o.onFileSelect,Q=o.onFilesSelect,J=function(e,n){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)n.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(o[i[t]]=e[i[t]])}return o}(o,["type","label","placeholder","value","required","addonIcon","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]),$=O||T,ee=function(e){switch(e.key){case"Enter":X&&X();break;case"Escape":Z&&Z()}},ne=function(e){var n=e.target.files[0],o=new FileReader;o.onload=function(){q&&q(n,o.result)},o.readAsDataURL(n)},oe=function(e){var n=e.target;Q&&Q(n.files)};return n("div",{className:u(E,{input:!0,full:!!x,noMargin:C,hasAddon:!!f},[E[H],E[j]]),children:[a&&n("label",{children:[e("span",{className:h?E.required:"",children:a}),!!g&&e("div",{className:E.labelAddon,children:g})]}),e("div",{className:E.container,children:function(){switch(d){case B.SELECT:return n("select",s({className:E.field,value:_,onBlur:U,onFocus:F,onChange:V,ref:t},J,{children:[e("option",{value:"",children:r}),k.map((function(n){var o=n.label,i=n.value;return e("option",{value:i,children:o},i)}))]}));case B.COLOR_PICKER:return e("input",s({className:"".concat(E.field," ").concat(E.colorPicker),type:"color",value:_,placeholder:r,onBlur:U,onFocus:F,onChange:V,disabled:$,ref:t},J));case B.TEXT_AREA:return e("textarea",s({className:E.field,value:_,placeholder:r,onBlur:U,onFocus:F,onChange:V,autoFocus:z,ref:t},J));case B.AVATAR_UPLOAD:return n("label",{htmlFor:"avatar-upload",children:[e(D,{size:A,source:L,isLoading:T,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:R?oe:ne,ref:t,className:E.avatar,disabled:$,multiple:R})]});case B.UPLOAD_IMAGE_ICON:return n("label",{htmlFor:"upload-image-icon",children:[e(m,{icon:I,isLoading:T,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:R?oe:ne,ref:t,className:E.avatar,disabled:$,multiple:R})]});default:return n(i,{children:[e("input",s({className:E.field,type:d,placeholder:r,value:_,onBlur:U,onFocus:F,onChange:V,onKeyUp:ee,ref:t,disabled:$,autoFocus:z},J)),f&&e("div",{className:K?"".concat(E.addon," ").concat(E.pointer):E.addon,onClick:K,children:e(m,{icon:f,isLoading:T})})]})}}()}),!!p&&e("div",{className:E.error,children:p}),!!w&&e("div",{className:u(E,{autoCompleteContent:!0,reversed:N}),children:w})]})})),M={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"},z=function(e,n){var o=function(o){e.current&&!e.current.contains(o.target)&&n()};l((function(){return document.addEventListener("click",o),function(){document.removeEventListener("click",o)}}),[])},G=function(e){var n=d(null),o=a((function(o){n.current&&!n.current.contains(o.target)&&e()}),[e]);return l((function(){return document.addEventListener("click",o),function(){document.removeEventListener("click",o)}}),[o]),n},H=function(n){var i=n.containerRef,t=n.contentRef,d=n.isOpen,a=void 0!==d&&d,_=n.renderChild,u=n.onClose,c={isOpen:!1,top:0,left:0,bottom:0,right:0},m=o(c),h=m[0],f=m[1],g={position:"absolute",top:h.top,left:h.left,bottom:h.bottom,right:h.right,zIndex:111},p=function(){f(c),u()};return z(i,(function(){return p()})),l((function(){if(a)return function(){var e,n,o,l,d,a,r,_=null!==(o=null===(n=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===n?void 0:n.call(e))&&void 0!==o?o:{top:0,left:0,height:0,width:0},u=_.top,c=_.left,m=_.height,h=_.width,g=window.innerHeight,p=window.innerWidth,v=g-(u+m),I=u,k=c,x=p-(c+h),A=null!==(d=null===(l=null==t?void 0:t.current)||void 0===l?void 0:l.clientHeight)&&void 0!==d?d:200,L=null!==(r=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.clientWidth)&&void 0!==r?r:200,w="auto",D="auto",y="auto",B="auto";v<A&&I>=A?B=g-u-m+20:D=u+m+5,x<L&&k>=L?y=p-c:w=c,f(s(s({},{top:D,left:w,right:y,bottom:B}),{isOpen:!0}))}();p()}),[a,null==i?void 0:i.current]),h.isOpen?r.createPortal(e("div",{style:g,onClick:function(e){e.stopPropagation()},children:_(h)}),document.getElementById("portals")):null},Y=function(n){var o=n.children;return e("div",{className:M.menu,children:o})},j=function(i){var t=i.action,a=i.menu,r=i.type,_=void 0===r?h.DEFAULT:r,c=i.closeRef,m=i.actionSize,s=void 0===m?"medium":m,f=d(null),g=d(null),p=d(null),v=o(!1),I=v[0],k=v[1],x=function(){return k(!1)};return l((function(){(null==c?void 0:c.current)&&(c.current={close:function(){return x()}})}),[c]),n("div",{className:M.container,ref:f,children:[e("div",{className:u(M,{action:!0},[M[_],M[s]]),ref:p,onClick:function(){return k(!I)},children:t}),e(H,{containerRef:f,contentRef:g,isOpen:I,onClose:x,renderChild:function(){return e("div",{className:M.menuContainer,ref:g,children:e(Y,{children:a})})}})]})},U={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"},F=function(n){var o=n.shape,i=void 0===o?"square":o,t=n.size,l=void 0===t?"md":t,d=n.width,a=n.height;return e("div",{className:u(U,{container:!0},[U[i],U[l]]),style:{width:d,height:a}})},V={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"},K=function(i){var t=i.title,l=i.content,d=o(!1),a=d[0],r=d[1];return n("div",{className:u(V,{container:!0,isOpen:a}),onClick:function(){return r(!a)},children:[n("div",{className:V.header,children:[e("h3",{children:t}),e(m,{icon:a?x:A,size:"md"})]}),e("div",{className:V.body,children:e("div",{className:V.content,children:l})})]})},X={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"},Z=function(o){var i=o.hint,t=o.children,l=o.position,d=void 0===l?"top":l;return n("div",{className:X.tooltip,children:[!!i&&e("div",{className:"".concat(X.hint," ").concat(X[d]),children:i}),t]})},q={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"},Q=new(function(){function e(){this.cookieBannerKey="sorocraft_cookie_banner"}return e.prototype.saveCookieBannerState=function(e){localStorage.setItem(this.cookieBannerKey,String(e))},e.prototype.getCookieBannerState=function(){return localStorage.getItem(this.cookieBannerKey)},e}());!function(e){e.SEEN="seen"}(P||(P={}));var J=function(i){var t=i.appName,d=o(!1),a=d[0],r=d[1];return l((function(){var e=Q.getCookieBannerState();r(e!==P.SEEN)}),[]),a?n("div",{className:q.container,children:[n("div",{className:q.content,children:["As ",t,", 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:q.actions,children:e(N,{label:"Continue",onClick:function(){r(!1),Q.saveCookieBannerState(P.SEEN)}})})]}):null},$={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"},ee=function(n){var o=n.className,i=void 0===o?"":o,t=n.children,l=n.noPadding;return e("div",{className:u($,{container:!0,noPadding:void 0!==l&&l},[i]),children:t})},ne="Header-module_header__qxHtx",oe="Header-module_content__DV-in",ie="Header-module_logo__xO2bW",te="Header-module_mobileLogo__eNvSP",le="Header-module_actions__ZlACk",de="Header-module_mobileMenuIcon__pFpba",ae="Header-module_menu__Yw9r6",re="Header-module_mobileMenu__4S-NE",_e=function(i){var t=i.logo,l=i.menu,d=i.actions,a=void 0===d?null:d,r=o(!1),_=r[0],u=r[1];return n("header",{className:ne,children:[e(ee,{children:n("div",{className:oe,children:[e("a",{href:"/",className:ie,children:t}),e("a",{href:"/",className:te,children:t}),!!l&&e("div",{className:ae,children:l}),n("div",{className:le,children:[a,!!l&&e("div",{className:de,children:e(C,{icon:_?v:k,onClick:function(){return u(!_)},size:"lg"})})]})]})}),_&&e("div",{className:re,children:l})]})},ue={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"},ce=function(o){var i=o.title,t=o.subtitle,l=o.theme,d=void 0===l?"light":l,a=o.children;return n("div",{className:u(ue,{container:!0},[ue[d]]),children:[n("div",{className:ue.header,children:[e("h2",{children:i}),!!t&&e("div",{className:ue.subtitle,children:t})]}),e("div",{className:ue.body,children:a})]})},me=function(e){return null==e||("object"==typeof e?Array.isArray(e)?0===e.length:e instanceof Set||e instanceof Map?0===e.size:0===Object.keys(e).length:"string"==typeof e&&0===e.length)};export{K as Accordion,D as Avatar,N as Button,ee as Container,J as CookieBanner,j as DropDown,_e as Header,C as IconButton,R as Input,B as InputType,T as Link,O as ListItem,F as LoadingItem,m as SVGIcon,ce as Section,Z as Tooltip,h as UIElementType,u as classNames,me as isEmpty,z as useClickOutside,G as useClickOutsideRef};
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useState as o,Fragment as i,forwardRef as t,useEffect as l,useRef as a,useCallback as d}from"react";import r from"react-dom";var _={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"},u=function(e,n,o){void 0===o&&(o=[]);var i=[];for(var t in n)n[t]&&i.push(e[t]);return(null==o?void 0:o.length)>0&&(i=i.concat(o)),i.join(" ")},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"},m=function(n){var o=n.icon,i=n.size,t=void 0===i?"sm":i,l=n.className,a=void 0===l?"":l,d=n.isLoading,r=void 0!==d&&d,_=function(e){switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}}(t);return o?e("div",{className:u(c,{container:!0,isLoading:r},[a]),children:e(o,{className:a,width:_,height:_,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},s=function(){return s=Object.assign||function(e){for(var n,o=1,i=arguments.length;o<i;o++)for(var t in n=arguments[o])Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},s.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var h,f=function(o){return n("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},o,{children:[e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M2 8.377c0-.35 0-.525.015-.673a3 3 0 0 1 2.69-2.69C4.851 5 5.035 5 5.404 5c.143 0 .214 0 .274-.004a2 2 0 0 0 1.735-1.25c.023-.056.044-.12.086-.246.042-.127.063-.19.086-.246a2 2 0 0 1 1.735-1.25C9.38 2 9.448 2 9.58 2h4.838c.133 0 .2 0 .26.004a2 2 0 0 1 1.735 1.25c.023.056.044.12.086.246.042.127.063.19.086.246a2 2 0 0 0 1.735 1.25c.06.004.131.004.273.004.37 0 .554 0 .702.015a3 3 0 0 1 2.69 2.69c.014.147.014.322.014.672V16.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C19.72 21 18.88 21 17.2 21H6.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C2 18.72 2 17.88 2 16.2z"}),e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 16.5a4 4 0 1 0 0-8 4 4 0 0 0 0 8"})]}))},g=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})}))},p=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})}))},v=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})}))},I=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})}))},k=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})}))},x=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})}))},A=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})}))},L=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})}))},w=function(n){return e("svg",s({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})}))},D=function(o){var i=o.source,t=void 0===i?null:i,l=o.alt,a=void 0===l?"avatar":l,d=o.size,r=void 0===d?"sm":d,c=o.onClick,s=o.className,h=o.isEditable,g=void 0!==h&&h,p=o.overlayIcon,v=o.inline,I=void 0!==v&&v,k=o.isLoading,x=void 0!==k&&k,A=o.overlayText,D=function(){switch(r){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return n("div",{className:u(_,{avatar:!0,clickable:!!c||g,editable:g,inline:I,loading:x},[_[r],s]),onClick:c,style:{width:D(),height:D()},children:[t?e("img",{src:t,alt:a,className:_.image,width:D(),height:D()}):e(m,{size:r,icon:w}),g&&e("div",{className:_.editIcon,children:e(m,{isLoading:x,icon:x?L:f})}),(!!p||A)&&n("div",{className:_.overlay,children:[!!p&&e(m,{isLoading:x,icon:x?L:p}),!!A&&e("div",{className:_.overlayText,children:A})]})]})},y={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",small:"Button-module_small__zfmcP",xsmall:"Button-module_xsmall__QS3d-",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"}(h||(h={}));var B,N=function(t){var l=t.type,a=void 0===l?h.PRIMARY:l,d=t.onClick,r=t.label,_=t.icon,c=t.fullWidth,s=void 0!==c&&c,f=t.isLoading,g=t.disabled,p=t.className,v=t.needConfirm,I=void 0!==v&&v,k=t.size,x=void 0===k?"standard":k,A=o(!1),L=A[0],w=A[1];return n("div",{className:u(y,{container:!0,fullWidth:s}),children:[e("button",{className:u(y,{button:!0,loading:!!f},[y[a],y[x],p]),onClick:I?function(){return w(!L)}:d,disabled:f||g,children:f?e(i,{children:"Loading..."}):n("div",{className:y.label,children:[_&&e(m,{icon:_}),e("span",{children:r})]})}),L&&n("div",{className:y.confirm,children:[e("div",{className:y.confirmMessage,children:"Are you sure?"}),n("div",{className:y.confirmActions,children:[e(N,{type:h.DANGER,onClick:function(){return w(!1)},label:"No"}),e(N,{type:h.SUCCESS,onClick:function(){w(!1),d()},label:"Yes"})]})]})]})},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"},C=function(i){var t=i.icon,l=i.onClick,a=i.type,d=void 0===a?h.DEFAULT:a,r=i.needConfirm,_=void 0!==r&&r,c=i.noPadding,s=void 0!==c&&c,f=i.isLoading,g=void 0!==f&&f,p=i.size,v=void 0===p?"sm":p,I=i.confirmPosition,k=void 0===I?"top":I,x=o(!1),A=x[0],L=x[1];return n("div",{className:u(b,{iconButton:!0,noPadding:s},[b[d],b[v]]),onClick:g?void 0:_?function(){return L(!A)}:l,children:[e(m,{isLoading:g,icon:t,size:v}),A&&n("div",{className:"".concat(b.confirm," ").concat(b[k]),children:[e("div",{className:b.confirmMessage,children:"Are you sure?"}),n("div",{className:b.confirmActions,children:[e(N,{type:h.DANGER,onClick:function(){return L(!1)},label:"No",size:"small"}),e(N,{type:h.SUCCESS,onClick:l,label:"Yes",size:"small"})]})]})]})},S={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy"},O=function(o){var i=o.title,t=o.subtitle,l=o.actionTitle,a=void 0===l?"":l,d=o.action,r=o.completed,_=o.indicator,c=o.hasSeparator,s=void 0!==c&&c,h=o.hasDashedSeparator,f=void 0!==h&&h,p=o.isActionPending,v=void 0!==p&&p;return n("div",{className:u(S,{listItem:!0,separator:s,dashedSeparator:f}),children:[n("div",{className:S.content,children:[_&&e("div",{className:u(S,{indicator:!0},[S[_]])}),n("div",{className:S.data,children:[e("div",{className:S.title,children:i}),t&&e("div",{className:S.subtitle,children:t})]})]}),d&&e(N,{onClick:d,className:S.action,label:a,isLoading:v}),r&&e("div",{className:S.completed,children:e(m,{icon:g})})]})},W={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"},T=function(o){var i=o.href,t=o.title,l=o.target,a=void 0===l?"_self":l,d=o.type,r=void 0===d?h.DEFAULT:d,_=o.padding,c=void 0===_?"zero":_,s=o.hasChevron,f=void 0!==s&&s,g=o.fullWidth;return n("a",{href:i,target:a,rel:"noopener noreferrer",className:u(W,{link:!0,fullWidth:void 0!==g&&g},[W[r],W[c]]),children:[e("span",{children:t})," ",f&&e(m,{icon:p})]})},E={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",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"}(B||(B={}));var P,R=t((function(o,t){var l=o.type,a=void 0===l?B.TEXT:l,d=o.label,r=o.placeholder,_=o.value,c=o.required,h=void 0!==c&&c,f=o.addonIcon,g=o.labelAddon,p=o.errorMessage,v=o.options,k=void 0===v?[]:v,x=o.fullWidth,A=o.avatarSize,L=o.source,w=o.autoCompleteContent,y=o.autoCompleteReverse,N=void 0!==y&&y,b=o.noMargin,C=void 0!==b&&b,S=o.isDisabled,O=void 0!==S&&S,W=o.isLoading,T=void 0!==W&&W,P=o.isMultiUpload,R=void 0!==P&&P,M=o.autoFocus,z=void 0!==M&&M,G=o.theme,H=void 0===G?"oval":G,Y=o.size,j=void 0===Y?"medium":Y,U=o.onBlur,F=o.onFocus,V=o.onChange,K=o.addonAction,X=o.onEnter,q=o.onEsc,Z=o.onFileSelect,Q=o.onFilesSelect,J=function(e,n){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)n.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(o[i[t]]=e[i[t]])}return o}(o,["type","label","placeholder","value","required","addonIcon","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]),$=O||T,ee=function(e){switch(e.key){case"Enter":X&&X();break;case"Escape":q&&q()}},ne=function(e){var n=e.target.files[0],o=new FileReader;o.onload=function(){Z&&Z(n,o.result)},o.readAsDataURL(n)},oe=function(e){var n=e.target;Q&&Q(n.files)};return n("div",{className:u(E,{input:!0,full:!!x,noMargin:C,hasAddon:!!f},[E[H],E[j]]),children:[d&&n("label",{children:[e("span",{className:h?E.required:"",children:d}),!!g&&e("div",{className:E.labelAddon,children:g})]}),e("div",{className:E.container,children:function(){switch(a){case B.SELECT:return n("select",s({className:E.field,value:_,onBlur:U,onFocus:F,onChange:V,ref:t},J,{children:[e("option",{value:"",children:r}),k.map((function(n){var o=n.label,i=n.value;return e("option",{value:i,children:o},i)}))]}));case B.COLOR_PICKER:return e("input",s({className:"".concat(E.field," ").concat(E.colorPicker),type:"color",value:_,placeholder:r,onBlur:U,onFocus:F,onChange:V,disabled:$,ref:t},J));case B.TEXT_AREA:return e("textarea",s({className:E.field,value:_,placeholder:r,onBlur:U,onFocus:F,onChange:V,autoFocus:z,ref:t},J));case B.AVATAR_UPLOAD:return n("label",{htmlFor:"avatar-upload",children:[e(D,{size:A,source:L,isLoading:T,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:R?oe:ne,ref:t,className:E.avatar,disabled:$,multiple:R})]});case B.UPLOAD_IMAGE_ICON:return n("label",{htmlFor:"upload-image-icon",children:[e(m,{icon:I,isLoading:T,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:R?oe:ne,ref:t,className:E.avatar,disabled:$,multiple:R})]});default:return n(i,{children:[e("input",s({className:E.field,type:a,placeholder:r,value:_,onBlur:U,onFocus:F,onChange:V,onKeyUp:ee,ref:t,disabled:$,autoFocus:z},J)),f&&e("div",{className:K?"".concat(E.addon," ").concat(E.pointer):E.addon,onClick:K,children:e(m,{icon:f,isLoading:T})})]})}}()}),!!p&&e("div",{className:E.error,children:p}),!!w&&e("div",{className:u(E,{autoCompleteContent:!0,reversed:N}),children:w})]})})),M={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"},z=function(e,n){var o=function(o){e.current&&!e.current.contains(o.target)&&n()};l((function(){return document.addEventListener("click",o),function(){document.removeEventListener("click",o)}}),[])},G=function(e){var n=a(null),o=d((function(o){n.current&&!n.current.contains(o.target)&&e()}),[e]);return l((function(){return document.addEventListener("click",o),function(){document.removeEventListener("click",o)}}),[o]),n},H=function(n){var i=n.containerRef,t=n.contentRef,a=n.isOpen,d=void 0!==a&&a,_=n.renderChild,u=n.onClose,c={isOpen:!1,top:0,left:0,bottom:0,right:0},m=o(c),h=m[0],f=m[1],g={position:"absolute",top:h.top,left:h.left,bottom:h.bottom,right:h.right,zIndex:111},p=function(){f(c),u()};return z(i,(function(){return p()})),l((function(){if(d)return function(){var e,n,o,l,a,d,r,_=null!==(o=null===(n=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===n?void 0:n.call(e))&&void 0!==o?o:{top:0,left:0,height:0,width:0},u=_.top,c=_.left,m=_.height,h=_.width,g=window.innerHeight,p=window.innerWidth,v=g-(u+m),I=u,k=c,x=p-(c+h),A=null!==(a=null===(l=null==t?void 0:t.current)||void 0===l?void 0:l.clientHeight)&&void 0!==a?a:200,L=null!==(r=null===(d=null==t?void 0:t.current)||void 0===d?void 0:d.clientWidth)&&void 0!==r?r:200,w="auto",D="auto",y="auto",B="auto";v<A&&I>=A?B=g-u-m+20:D=u+m+5,x<L&&k>=L?y=p-c:w=c,f(s(s({},{top:D,left:w,right:y,bottom:B}),{isOpen:!0}))}();p()}),[d,null==i?void 0:i.current]),h.isOpen?r.createPortal(e("div",{style:g,onClick:function(e){e.stopPropagation()},children:_(h)}),document.getElementById("portals")):null},Y=function(n){var o=n.children;return e("div",{className:M.menu,children:o})},j=function(i){var t=i.action,d=i.menu,r=i.type,_=void 0===r?h.DEFAULT:r,c=i.closeRef,m=i.actionSize,s=void 0===m?"medium":m,f=a(null),g=a(null),p=a(null),v=o(!1),I=v[0],k=v[1],x=function(){return k(!1)};return l((function(){(null==c?void 0:c.current)&&(c.current={close:function(){return x()}})}),[c]),n("div",{className:M.container,ref:f,children:[e("div",{className:u(M,{action:!0},[M[_],M[s]]),ref:p,onClick:function(){return k(!I)},children:t}),e(H,{containerRef:f,contentRef:g,isOpen:I,onClose:x,renderChild:function(){return e("div",{className:M.menuContainer,ref:g,children:e(Y,{children:d})})}})]})},U={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"},F=function(n){var o=n.shape,i=void 0===o?"square":o,t=n.size,l=void 0===t?"md":t,a=n.width,d=n.height;return e("div",{className:u(U,{container:!0},[U[i],U[l]]),style:{width:a,height:d}})},V={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"},K=function(i){var t=i.title,l=i.content,a=o(!1),d=a[0],r=a[1];return n("div",{className:u(V,{container:!0,isOpen:d}),onClick:function(){return r(!d)},children:[n("div",{className:V.header,children:[e("h3",{children:t}),e(m,{icon:d?x:A,size:"md"})]}),e("div",{className:V.body,children:e("div",{className:V.content,children:l})})]})},X={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"},q=function(o){var i=o.hint,t=o.children,l=o.position,a=void 0===l?"top":l;return n("div",{className:X.tooltip,children:[!!i&&e("div",{className:"".concat(X.hint," ").concat(X[a]),children:i}),t]})},Z={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP"},Q=new(function(){function e(){this.cookieBannerKey="sorocraft_cookie_banner"}return e.prototype.saveCookieBannerState=function(e){localStorage.setItem(this.cookieBannerKey,String(e))},e.prototype.getCookieBannerState=function(){return localStorage.getItem(this.cookieBannerKey)},e}());!function(e){e.SEEN="seen"}(P||(P={}));var J=function(i){var t=i.appName,a=o(!1),d=a[0],r=a[1];return l((function(){var e=Q.getCookieBannerState();r(e!==P.SEEN)}),[]),d?n("div",{className:Z.container,children:[n("div",{className:Z.content,children:["As ",t,", 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:Z.actions,children:e(N,{label:"Continue",onClick:function(){r(!1),Q.saveCookieBannerState(P.SEEN)}})})]}):null},$={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"},ee=function(n){var o=n.className,i=void 0===o?"":o,t=n.children,l=n.noPadding;return e("div",{className:u($,{container:!0,noPadding:void 0!==l&&l},[i]),children:t})},ne="Header-module_header__qxHtx",oe="Header-module_content__DV-in",ie="Header-module_logo__xO2bW",te="Header-module_mobileLogo__eNvSP",le="Header-module_actions__ZlACk",ae="Header-module_mobileMenuIcon__pFpba",de="Header-module_menu__Yw9r6",re="Header-module_mobileMenu__4S-NE",_e=function(i){var t=i.logo,l=i.menu,a=i.actions,d=void 0===a?null:a,r=o(!1),_=r[0],u=r[1];return n("header",{className:ne,children:[e(ee,{children:n("div",{className:oe,children:[e("a",{href:"/",className:ie,children:t}),e("a",{href:"/",className:te,children:t}),!!l&&e("div",{className:de,children:l}),n("div",{className:le,children:[d,!!l&&e("div",{className:ae,children:e(C,{icon:_?v:k,onClick:function(){return u(!_)},size:"lg"})})]})]})}),_&&e("div",{className:re,children:l})]})},ue={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"},ce=function(o){var i=o.title,t=o.subtitle,l=o.theme,a=void 0===l?"light":l,d=o.children;return n("div",{className:u(ue,{container:!0},[ue[a]]),children:[n("div",{className:ue.header,children:[e("h2",{children:i}),!!t&&e("div",{className:ue.subtitle,children:t})]}),e("div",{className:ue.body,children:d})]})},me="FAQ-module_container__Kht11",se=function(n){var o=n.faqItems;return e(ce,{title:"Frequently asked questions",children:e("div",{className:me,children:o.map((function(n){var o=n.title,i=n.content;return e(K,{title:o,content:i},o)}))})})},he=function(e){return null==e||("object"==typeof e?Array.isArray(e)?0===e.length:e instanceof Set||e instanceof Map?0===e.size:0===Object.keys(e).length:"string"==typeof e&&0===e.length)};export{K as Accordion,D as Avatar,N as Button,ee as Container,J as CookieBanner,j as DropDown,se as FAQ,_e as Header,C as IconButton,R as Input,B as InputType,T as Link,O as ListItem,F as LoadingItem,m as SVGIcon,ce as Section,q as Tooltip,h as UIElementType,u as classNames,he as isEmpty,z as useClickOutside,G 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"},l=function(e,o,n){void 0===n&&(n=[]);var t=[];for(var i in o)o[i]&&t.push(e[i]);return(null==n?void 0:n.length)>0&&(t=t.concat(n)),t.join(" ")},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"},d=function(o){var n=o.icon,t=o.size,i=void 0===t?"sm":t,d=o.className,r=void 0===d?"":d,_=o.isLoading,s=void 0!==_&&_,u=function(e){switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}}(i);return n?e.jsx("div",{className:l(a,{container:!0,isLoading:s},[r]),children:e.jsx(n,{className:r,width:u,height:u,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},r=function(){return r=Object.assign||function(e){for(var o,n=1,t=arguments.length;n<t;n++)for(var i in o=arguments[n])Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i]);return e},r.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var _,s=function(o){return e.jsxs("svg",r({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"})]}))},u=function(o){return e.jsx("svg",r({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"})}))},c=function(o){return e.jsx("svg",r({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"})}))},m=function(o){return e.jsx("svg",r({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"})}))},h=function(o){return e.jsx("svg",r({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"})}))},f=function(o){return e.jsx("svg",r({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=function(o){return e.jsx("svg",r({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"})}))},g=function(o){return e.jsx("svg",r({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"})}))},x=function(o){return e.jsx("svg",r({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"})}))},v=function(o){return e.jsx("svg",r({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"})}))},I=function(o){var n=o.source,t=void 0===n?null:n,a=o.alt,r=void 0===a?"avatar":a,_=o.size,u=void 0===_?"sm":_,c=o.onClick,m=o.className,h=o.isEditable,f=void 0!==h&&h,p=o.overlayIcon,g=o.inline,I=void 0!==g&&g,k=o.isLoading,A=void 0!==k&&k,j=o.overlayText,L=function(){switch(u){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:!!c||f,editable:f,inline:I,loading:A},[i[u],m]),onClick:c,style:{width:L(),height:L()},children:[t?e.jsx("img",{src:t,alt:r,className:i.image,width:L(),height:L()}):e.jsx(d,{size:u,icon:v}),f&&e.jsx("div",{className:i.editIcon,children:e.jsx(d,{isLoading:A,icon:A?x:s})}),(!!p||j)&&e.jsxs("div",{className:i.overlay,children:[!!p&&e.jsx(d,{isLoading:A,icon:A?x:p}),!!j&&e.jsx("div",{className:i.overlayText,children:j})]})]})},k={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",small:"Button-module_small__zfmcP",xsmall:"Button-module_xsmall__QS3d-",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,(_=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",_.SECONDARY="secondary",_.DANGER="danger",_.SUCCESS="success",_.WARNING="warning",_.INFO="info",_.LIGHT="light",_.DEFAULT="default",_.DARK="dark",_.LIGHT_PRIMARY="lightPrimary",_.LIGHT_SUCCESS="lightSuccess",_.LIGHT_WARNING="lightWarning",_.LIGHT_INFO="lightInfo",_.LIGHT_DANGER="lightDanger",_.LIGHT_DARK="lightDark",_.LIGHT_SECONDARY="lightSecondary",_.WHITE_TEXT="whiteText",_.BORDERED_PRIMARY="borderedPrimary",_.BORDERED_SECONDARY="borderedSecondary";var A,j=function(n){var t=n.type,i=void 0===t?exports.UIElementType.PRIMARY:t,a=n.onClick,r=n.label,_=n.icon,s=n.fullWidth,u=void 0!==s&&s,c=n.isLoading,m=n.disabled,h=n.className,f=n.needConfirm,p=void 0!==f&&f,g=n.size,x=void 0===g?"standard":g,v=o.useState(!1),I=v[0],A=v[1];return e.jsxs("div",{className:l(k,{container:!0,fullWidth:u}),children:[e.jsx("button",{className:l(k,{button:!0,loading:!!c},[k[i],k[x],h]),onClick:p?function(){return A(!I)}:a,disabled:c||m,children:c?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:k.label,children:[_&&e.jsx(d,{icon:_}),e.jsx("span",{children:r})]})}),I&&e.jsxs("div",{className:k.confirm,children:[e.jsx("div",{className:k.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:k.confirmActions,children:[e.jsx(j,{type:exports.UIElementType.DANGER,onClick:function(){return A(!1)},label:"No"}),e.jsx(j,{type:exports.UIElementType.SUCCESS,onClick:function(){A(!1),a()},label:"Yes"})]})]})]})},L={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"},y=function(n){var t=n.icon,i=n.onClick,a=n.type,r=void 0===a?exports.UIElementType.DEFAULT:a,_=n.needConfirm,s=void 0!==_&&_,u=n.noPadding,c=void 0!==u&&u,m=n.isLoading,h=void 0!==m&&m,f=n.size,p=void 0===f?"sm":f,g=n.confirmPosition,x=void 0===g?"top":g,v=o.useState(!1),I=v[0],k=v[1];return e.jsxs("div",{className:l(L,{iconButton:!0,noPadding:c},[L[r],L[p]]),onClick:h?void 0:s?function(){return k(!I)}:i,children:[e.jsx(d,{isLoading:h,icon:t,size:p}),I&&e.jsxs("div",{className:"".concat(L.confirm," ").concat(L[x]),children:[e.jsx("div",{className:L.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:L.confirmActions,children:[e.jsx(j,{type:exports.UIElementType.DANGER,onClick:function(){return k(!1)},label:"No",size:"small"}),e.jsx(j,{type:exports.UIElementType.SUCCESS,onClick:i,label:"Yes",size:"small"})]})]})]})},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"},D={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"},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",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,(A=exports.InputType||(exports.InputType={})).TEXT="text",A.PASSWORD="password",A.EMAIL="email",A.NUMBER="number",A.URL="url",A.TEL="tel",A.DATE="date",A.DATETIME="datetime",A.SELECT="select",A.COLOR_PICKER="color-picker",A.TEXT_AREA="text-area",A.AVATAR_UPLOAD="avatar-upload",A.UPLOAD_IMAGE_ICON="upload-image-icon";var C,b=o.forwardRef((function(n,t){var i=n.type,a=void 0===i?exports.InputType.TEXT:i,_=n.label,s=n.placeholder,u=n.value,c=n.required,m=void 0!==c&&c,f=n.addonIcon,p=n.labelAddon,g=n.errorMessage,x=n.options,v=void 0===x?[]:x,k=n.fullWidth,A=n.avatarSize,j=n.source,L=n.autoCompleteContent,y=n.autoCompleteReverse,w=void 0!==y&&y,D=n.noMargin,C=void 0!==D&&D,b=n.isDisabled,N=void 0!==b&&b,S=n.isLoading,T=void 0!==S&&S,E=n.isMultiUpload,O=void 0!==E&&E,W=n.autoFocus,P=void 0!==W&&W,R=n.theme,M=void 0===R?"oval":R,U=n.size,z=void 0===U?"medium":U,G=n.onBlur,H=n.onFocus,Y=n.onChange,F=n.addonAction,V=n.onEnter,K=n.onEsc,X=n.onFileSelect,q=n.onFilesSelect,Z=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","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]),Q=N||T,J=function(e){switch(e.key){case"Enter":V&&V();break;case"Escape":K&&K()}},$=function(e){var o=e.target.files[0],n=new FileReader;n.onload=function(){X&&X(o,n.result)},n.readAsDataURL(o)},ee=function(e){var o=e.target;q&&q(o.files)};return e.jsxs("div",{className:l(B,{input:!0,full:!!k,noMargin:C,hasAddon:!!f},[B[M],B[z]]),children:[_&&e.jsxs("label",{children:[e.jsx("span",{className:m?B.required:"",children:_}),!!p&&e.jsx("div",{className:B.labelAddon,children:p})]}),e.jsx("div",{className:B.container,children:function(){switch(a){case exports.InputType.SELECT:return e.jsxs("select",r({className:B.field,value:u,onBlur:G,onFocus:H,onChange:Y,ref:t},Z,{children:[e.jsx("option",{value:"",children:s}),v.map((function(o){var n=o.label,t=o.value;return e.jsx("option",{value:t,children:n},t)}))]}));case exports.InputType.COLOR_PICKER:return e.jsx("input",r({className:"".concat(B.field," ").concat(B.colorPicker),type:"color",value:u,placeholder:s,onBlur:G,onFocus:H,onChange:Y,disabled:Q,ref:t},Z));case exports.InputType.TEXT_AREA:return e.jsx("textarea",r({className:B.field,value:u,placeholder:s,onBlur:G,onFocus:H,onChange:Y,autoFocus:P,ref:t},Z));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(I,{size:A,source:j,isLoading:T,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:O?ee:$,ref:t,className:B.avatar,disabled:Q,multiple:O})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(d,{icon:h,isLoading:T,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:O?ee:$,ref:t,className:B.avatar,disabled:Q,multiple:O})]});default:return e.jsxs(o.Fragment,{children:[e.jsx("input",r({className:B.field,type:a,placeholder:s,value:u,onBlur:G,onFocus:H,onChange:Y,onKeyUp:J,ref:t,disabled:Q,autoFocus:P},Z)),f&&e.jsx("div",{className:F?"".concat(B.addon," ").concat(B.pointer):B.addon,onClick:F,children:e.jsx(d,{icon:f,isLoading:T})})]})}}()}),!!g&&e.jsx("div",{className:B.error,children:g}),!!L&&e.jsx("div",{className:l(B,{autoCompleteContent:!0,reversed:w}),children:L})]})})),N={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"},S=function(e,n){var t=function(o){e.current&&!e.current.contains(o.target)&&n()};o.useEffect((function(){return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}),[])},T=function(n){var i=n.containerRef,l=n.contentRef,a=n.isOpen,d=void 0!==a&&a,_=n.renderChild,s=n.onClose,u={isOpen:!1,top:0,left:0,bottom:0,right:0},c=o.useState(u),m=c[0],h=c[1],f={position:"absolute",top:m.top,left:m.left,bottom:m.bottom,right:m.right,zIndex:111},p=function(){h(u),s()};return S(i,(function(){return p()})),o.useEffect((function(){if(d)return function(){var e,o,n,t,a,d,_,s=null!==(n=null===(o=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==n?n:{top:0,left:0,height:0,width:0},u=s.top,c=s.left,m=s.height,f=s.width,p=window.innerHeight,g=window.innerWidth,x=p-(u+m),v=u,I=c,k=g-(c+f),A=null!==(a=null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.clientHeight)&&void 0!==a?a:200,j=null!==(_=null===(d=null==l?void 0:l.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200,L="auto",y="auto",w="auto",D="auto";x<A&&v>=A?D=p-u-m+20:y=u+m+5,k<j&&I>=j?w=g-c:L=c,h(r(r({},{top:y,left:L,right:w,bottom:D}),{isOpen:!0}))}();p()}),[d,null==i?void 0:i.current]),m.isOpen?t.default.createPortal(e.jsx("div",{style:f,onClick:function(e){e.stopPropagation()},children:_(m)}),document.getElementById("portals")):null},E=function(o){var n=o.children;return e.jsx("div",{className:N.menu,children:n})},O={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"},W={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"},P={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"},R={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"},M=new(function(){function e(){this.cookieBannerKey="sorocraft_cookie_banner"}return e.prototype.saveCookieBannerState=function(e){localStorage.setItem(this.cookieBannerKey,String(e))},e.prototype.getCookieBannerState=function(){return localStorage.getItem(this.cookieBannerKey)},e}());!function(e){e.SEEN="seen"}(C||(C={}));var U={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"},z=function(o){var n=o.className,t=void 0===n?"":n,i=o.children,a=o.noPadding,d=void 0!==a&&a;return e.jsx("div",{className:l(U,{container:!0,noPadding:d},[t]),children:i})},G="Header-module_header__qxHtx",H="Header-module_content__DV-in",Y="Header-module_logo__xO2bW",F="Header-module_mobileLogo__eNvSP",V="Header-module_actions__ZlACk",K="Header-module_mobileMenuIcon__pFpba",X="Header-module_menu__Yw9r6",q="Header-module_mobileMenu__4S-NE",Z={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"};exports.Accordion=function(n){var t=n.title,i=n.content,a=o.useState(!1),r=a[0],_=a[1];return e.jsxs("div",{className:l(W,{container:!0,isOpen:r}),onClick:function(){return _(!r)},children:[e.jsxs("div",{className:W.header,children:[e.jsx("h3",{children:t}),e.jsx(d,{icon:r?p:g,size:"md"})]}),e.jsx("div",{className:W.body,children:e.jsx("div",{className:W.content,children:i})})]})},exports.Avatar=I,exports.Button=j,exports.Container=z,exports.CookieBanner=function(n){var t=n.appName,i=o.useState(!1),l=i[0],a=i[1];return o.useEffect((function(){var e=M.getCookieBannerState();a(e!==C.SEEN)}),[]),l?e.jsxs("div",{className:R.container,children:[e.jsxs("div",{className:R.content,children:["As ",t,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e.jsx("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e.jsx("div",{className:R.actions,children:e.jsx(j,{label:"Continue",onClick:function(){a(!1),M.saveCookieBannerState(C.SEEN)}})})]}):null},exports.DropDown=function(n){var t=n.action,i=n.menu,a=n.type,d=void 0===a?exports.UIElementType.DEFAULT:a,r=n.closeRef,_=n.actionSize,s=void 0===_?"medium":_,u=o.useRef(null),c=o.useRef(null),m=o.useRef(null),h=o.useState(!1),f=h[0],p=h[1],g=function(){return p(!1)};return o.useEffect((function(){(null==r?void 0:r.current)&&(r.current={close:function(){return g()}})}),[r]),e.jsxs("div",{className:N.container,ref:u,children:[e.jsx("div",{className:l(N,{action:!0},[N[d],N[s]]),ref:m,onClick:function(){return p(!f)},children:t}),e.jsx(T,{containerRef:u,contentRef:c,isOpen:f,onClose:g,renderChild:function(){return e.jsx("div",{className:N.menuContainer,ref:c,children:e.jsx(E,{children:i})})}})]})},exports.Header=function(n){var t=n.logo,i=n.menu,l=n.actions,a=void 0===l?null:l,d=o.useState(!1),r=d[0],_=d[1];return e.jsxs("header",{className:G,children:[e.jsx(z,{children:e.jsxs("div",{className:H,children:[e.jsx("a",{href:"/",className:Y,children:t}),e.jsx("a",{href:"/",className:F,children:t}),!!i&&e.jsx("div",{className:X,children:i}),e.jsxs("div",{className:V,children:[a,!!i&&e.jsx("div",{className:K,children:e.jsx(y,{icon:r?m:f,onClick:function(){return _(!r)},size:"lg"})})]})]})}),r&&e.jsx("div",{className:q,children:i})]})},exports.IconButton=y,exports.Input=b,exports.Link=function(o){var n=o.href,t=o.title,i=o.target,a=void 0===i?"_self":i,r=o.type,_=void 0===r?exports.UIElementType.DEFAULT:r,s=o.padding,u=void 0===s?"zero":s,m=o.hasChevron,h=void 0!==m&&m,f=o.fullWidth,p=void 0!==f&&f;return e.jsxs("a",{href:n,target:a,rel:"noopener noreferrer",className:l(D,{link:!0,fullWidth:p},[D[_],D[u]]),children:[e.jsx("span",{children:t})," ",h&&e.jsx(d,{icon:c})]})},exports.ListItem=function(o){var n=o.title,t=o.subtitle,i=o.actionTitle,a=void 0===i?"":i,r=o.action,_=o.completed,s=o.indicator,c=o.hasSeparator,m=void 0!==c&&c,h=o.hasDashedSeparator,f=void 0!==h&&h,p=o.isActionPending,g=void 0!==p&&p;return e.jsxs("div",{className:l(w,{listItem:!0,separator:m,dashedSeparator:f}),children:[e.jsxs("div",{className:w.content,children:[s&&e.jsx("div",{className:l(w,{indicator:!0},[w[s]])}),e.jsxs("div",{className:w.data,children:[e.jsx("div",{className:w.title,children:n}),t&&e.jsx("div",{className:w.subtitle,children:t})]})]}),r&&e.jsx(j,{onClick:r,className:w.action,label:a,isLoading:g}),_&&e.jsx("div",{className:w.completed,children:e.jsx(d,{icon:u})})]})},exports.LoadingItem=function(o){var n=o.shape,t=void 0===n?"square":n,i=o.size,a=void 0===i?"md":i,d=o.width,r=o.height;return e.jsx("div",{className:l(O,{container:!0},[O[t],O[a]]),style:{width:d,height:r}})},exports.SVGIcon=d,exports.Section=function(o){var n=o.title,t=o.subtitle,i=o.theme,a=void 0===i?"light":i,d=o.children;return e.jsxs("div",{className:l(Z,{container:!0},[Z[a]]),children:[e.jsxs("div",{className:Z.header,children:[e.jsx("h2",{children:n}),!!t&&e.jsx("div",{className:Z.subtitle,children:t})]}),e.jsx("div",{className:Z.body,children:d})]})},exports.Tooltip=function(o){var n=o.hint,t=o.children,i=o.position,l=void 0===i?"top":i;return e.jsxs("div",{className:P.tooltip,children:[!!n&&e.jsx("div",{className:"".concat(P.hint," ").concat(P[l]),children:n}),t]})},exports.classNames=l,exports.isEmpty=function(e){return null==e||("object"==typeof e?Array.isArray(e)?0===e.length:e instanceof Set||e instanceof Map?0===e.size:0===Object.keys(e).length:"string"==typeof e&&0===e.length)},exports.useClickOutside=S,exports.useClickOutsideRef=function(e){var n=o.useRef(null),t=o.useCallback((function(o){n.current&&!n.current.contains(o.target)&&e()}),[e]);return o.useEffect((function(){return document.addEventListener("click",t),function(){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"},l=function(e,o,n){void 0===n&&(n=[]);var t=[];for(var i in o)o[i]&&t.push(e[i]);return(null==n?void 0:n.length)>0&&(t=t.concat(n)),t.join(" ")},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"},d=function(o){var n=o.icon,t=o.size,i=void 0===t?"sm":t,d=o.className,r=void 0===d?"":d,_=o.isLoading,s=void 0!==_&&_,u=function(e){switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}}(i);return n?e.jsx("div",{className:l(a,{container:!0,isLoading:s},[r]),children:e.jsx(n,{className:r,width:u,height:u,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},r=function(){return r=Object.assign||function(e){for(var o,n=1,t=arguments.length;n<t;n++)for(var i in o=arguments[n])Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i]);return e},r.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var _,s=function(o){return e.jsxs("svg",r({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"})]}))},u=function(o){return e.jsx("svg",r({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"})}))},c=function(o){return e.jsx("svg",r({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"})}))},m=function(o){return e.jsx("svg",r({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"})}))},h=function(o){return e.jsx("svg",r({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"})}))},f=function(o){return e.jsx("svg",r({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=function(o){return e.jsx("svg",r({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"})}))},g=function(o){return e.jsx("svg",r({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"})}))},x=function(o){return e.jsx("svg",r({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"})}))},v=function(o){return e.jsx("svg",r({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"})}))},I=function(o){var n=o.source,t=void 0===n?null:n,a=o.alt,r=void 0===a?"avatar":a,_=o.size,u=void 0===_?"sm":_,c=o.onClick,m=o.className,h=o.isEditable,f=void 0!==h&&h,p=o.overlayIcon,g=o.inline,I=void 0!==g&&g,k=o.isLoading,A=void 0!==k&&k,j=o.overlayText,L=function(){switch(u){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:!!c||f,editable:f,inline:I,loading:A},[i[u],m]),onClick:c,style:{width:L(),height:L()},children:[t?e.jsx("img",{src:t,alt:r,className:i.image,width:L(),height:L()}):e.jsx(d,{size:u,icon:v}),f&&e.jsx("div",{className:i.editIcon,children:e.jsx(d,{isLoading:A,icon:A?x:s})}),(!!p||j)&&e.jsxs("div",{className:i.overlay,children:[!!p&&e.jsx(d,{isLoading:A,icon:A?x:p}),!!j&&e.jsx("div",{className:i.overlayText,children:j})]})]})},k={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",small:"Button-module_small__zfmcP",xsmall:"Button-module_xsmall__QS3d-",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,(_=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",_.SECONDARY="secondary",_.DANGER="danger",_.SUCCESS="success",_.WARNING="warning",_.INFO="info",_.LIGHT="light",_.DEFAULT="default",_.DARK="dark",_.LIGHT_PRIMARY="lightPrimary",_.LIGHT_SUCCESS="lightSuccess",_.LIGHT_WARNING="lightWarning",_.LIGHT_INFO="lightInfo",_.LIGHT_DANGER="lightDanger",_.LIGHT_DARK="lightDark",_.LIGHT_SECONDARY="lightSecondary",_.WHITE_TEXT="whiteText",_.BORDERED_PRIMARY="borderedPrimary",_.BORDERED_SECONDARY="borderedSecondary";var A,j=function(n){var t=n.type,i=void 0===t?exports.UIElementType.PRIMARY:t,a=n.onClick,r=n.label,_=n.icon,s=n.fullWidth,u=void 0!==s&&s,c=n.isLoading,m=n.disabled,h=n.className,f=n.needConfirm,p=void 0!==f&&f,g=n.size,x=void 0===g?"standard":g,v=o.useState(!1),I=v[0],A=v[1];return e.jsxs("div",{className:l(k,{container:!0,fullWidth:u}),children:[e.jsx("button",{className:l(k,{button:!0,loading:!!c},[k[i],k[x],h]),onClick:p?function(){return A(!I)}:a,disabled:c||m,children:c?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:k.label,children:[_&&e.jsx(d,{icon:_}),e.jsx("span",{children:r})]})}),I&&e.jsxs("div",{className:k.confirm,children:[e.jsx("div",{className:k.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:k.confirmActions,children:[e.jsx(j,{type:exports.UIElementType.DANGER,onClick:function(){return A(!1)},label:"No"}),e.jsx(j,{type:exports.UIElementType.SUCCESS,onClick:function(){A(!1),a()},label:"Yes"})]})]})]})},L={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"},y=function(n){var t=n.icon,i=n.onClick,a=n.type,r=void 0===a?exports.UIElementType.DEFAULT:a,_=n.needConfirm,s=void 0!==_&&_,u=n.noPadding,c=void 0!==u&&u,m=n.isLoading,h=void 0!==m&&m,f=n.size,p=void 0===f?"sm":f,g=n.confirmPosition,x=void 0===g?"top":g,v=o.useState(!1),I=v[0],k=v[1];return e.jsxs("div",{className:l(L,{iconButton:!0,noPadding:c},[L[r],L[p]]),onClick:h?void 0:s?function(){return k(!I)}:i,children:[e.jsx(d,{isLoading:h,icon:t,size:p}),I&&e.jsxs("div",{className:"".concat(L.confirm," ").concat(L[x]),children:[e.jsx("div",{className:L.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:L.confirmActions,children:[e.jsx(j,{type:exports.UIElementType.DANGER,onClick:function(){return k(!1)},label:"No",size:"small"}),e.jsx(j,{type:exports.UIElementType.SUCCESS,onClick:i,label:"Yes",size:"small"})]})]})]})},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"},D={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"},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",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,(A=exports.InputType||(exports.InputType={})).TEXT="text",A.PASSWORD="password",A.EMAIL="email",A.NUMBER="number",A.URL="url",A.TEL="tel",A.DATE="date",A.DATETIME="datetime",A.SELECT="select",A.COLOR_PICKER="color-picker",A.TEXT_AREA="text-area",A.AVATAR_UPLOAD="avatar-upload",A.UPLOAD_IMAGE_ICON="upload-image-icon";var C,b=o.forwardRef((function(n,t){var i=n.type,a=void 0===i?exports.InputType.TEXT:i,_=n.label,s=n.placeholder,u=n.value,c=n.required,m=void 0!==c&&c,f=n.addonIcon,p=n.labelAddon,g=n.errorMessage,x=n.options,v=void 0===x?[]:x,k=n.fullWidth,A=n.avatarSize,j=n.source,L=n.autoCompleteContent,y=n.autoCompleteReverse,w=void 0!==y&&y,D=n.noMargin,C=void 0!==D&&D,b=n.isDisabled,N=void 0!==b&&b,S=n.isLoading,T=void 0!==S&&S,E=n.isMultiUpload,O=void 0!==E&&E,W=n.autoFocus,P=void 0!==W&&W,R=n.theme,M=void 0===R?"oval":R,U=n.size,z=void 0===U?"medium":U,G=n.onBlur,H=n.onFocus,Y=n.onChange,F=n.addonAction,V=n.onEnter,K=n.onEsc,q=n.onFileSelect,X=n.onFilesSelect,Z=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","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]),Q=N||T,J=function(e){switch(e.key){case"Enter":V&&V();break;case"Escape":K&&K()}},$=function(e){var o=e.target.files[0],n=new FileReader;n.onload=function(){q&&q(o,n.result)},n.readAsDataURL(o)},ee=function(e){var o=e.target;X&&X(o.files)};return e.jsxs("div",{className:l(B,{input:!0,full:!!k,noMargin:C,hasAddon:!!f},[B[M],B[z]]),children:[_&&e.jsxs("label",{children:[e.jsx("span",{className:m?B.required:"",children:_}),!!p&&e.jsx("div",{className:B.labelAddon,children:p})]}),e.jsx("div",{className:B.container,children:function(){switch(a){case exports.InputType.SELECT:return e.jsxs("select",r({className:B.field,value:u,onBlur:G,onFocus:H,onChange:Y,ref:t},Z,{children:[e.jsx("option",{value:"",children:s}),v.map((function(o){var n=o.label,t=o.value;return e.jsx("option",{value:t,children:n},t)}))]}));case exports.InputType.COLOR_PICKER:return e.jsx("input",r({className:"".concat(B.field," ").concat(B.colorPicker),type:"color",value:u,placeholder:s,onBlur:G,onFocus:H,onChange:Y,disabled:Q,ref:t},Z));case exports.InputType.TEXT_AREA:return e.jsx("textarea",r({className:B.field,value:u,placeholder:s,onBlur:G,onFocus:H,onChange:Y,autoFocus:P,ref:t},Z));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(I,{size:A,source:j,isLoading:T,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:O?ee:$,ref:t,className:B.avatar,disabled:Q,multiple:O})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(d,{icon:h,isLoading:T,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:O?ee:$,ref:t,className:B.avatar,disabled:Q,multiple:O})]});default:return e.jsxs(o.Fragment,{children:[e.jsx("input",r({className:B.field,type:a,placeholder:s,value:u,onBlur:G,onFocus:H,onChange:Y,onKeyUp:J,ref:t,disabled:Q,autoFocus:P},Z)),f&&e.jsx("div",{className:F?"".concat(B.addon," ").concat(B.pointer):B.addon,onClick:F,children:e.jsx(d,{icon:f,isLoading:T})})]})}}()}),!!g&&e.jsx("div",{className:B.error,children:g}),!!L&&e.jsx("div",{className:l(B,{autoCompleteContent:!0,reversed:w}),children:L})]})})),N={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"},S=function(e,n){var t=function(o){e.current&&!e.current.contains(o.target)&&n()};o.useEffect((function(){return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}),[])},T=function(n){var i=n.containerRef,l=n.contentRef,a=n.isOpen,d=void 0!==a&&a,_=n.renderChild,s=n.onClose,u={isOpen:!1,top:0,left:0,bottom:0,right:0},c=o.useState(u),m=c[0],h=c[1],f={position:"absolute",top:m.top,left:m.left,bottom:m.bottom,right:m.right,zIndex:111},p=function(){h(u),s()};return S(i,(function(){return p()})),o.useEffect((function(){if(d)return function(){var e,o,n,t,a,d,_,s=null!==(n=null===(o=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===o?void 0:o.call(e))&&void 0!==n?n:{top:0,left:0,height:0,width:0},u=s.top,c=s.left,m=s.height,f=s.width,p=window.innerHeight,g=window.innerWidth,x=p-(u+m),v=u,I=c,k=g-(c+f),A=null!==(a=null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.clientHeight)&&void 0!==a?a:200,j=null!==(_=null===(d=null==l?void 0:l.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200,L="auto",y="auto",w="auto",D="auto";x<A&&v>=A?D=p-u-m+20:y=u+m+5,k<j&&I>=j?w=g-c:L=c,h(r(r({},{top:y,left:L,right:w,bottom:D}),{isOpen:!0}))}();p()}),[d,null==i?void 0:i.current]),m.isOpen?t.default.createPortal(e.jsx("div",{style:f,onClick:function(e){e.stopPropagation()},children:_(m)}),document.getElementById("portals")):null},E=function(o){var n=o.children;return e.jsx("div",{className:N.menu,children:n})},O={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"},W={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"},P=function(n){var t=n.title,i=n.content,a=o.useState(!1),r=a[0],_=a[1];return e.jsxs("div",{className:l(W,{container:!0,isOpen:r}),onClick:function(){return _(!r)},children:[e.jsxs("div",{className:W.header,children:[e.jsx("h3",{children:t}),e.jsx(d,{icon:r?p:g,size:"md"})]}),e.jsx("div",{className:W.body,children:e.jsx("div",{className:W.content,children:i})})]})},R={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"},M={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"},U=new(function(){function e(){this.cookieBannerKey="sorocraft_cookie_banner"}return e.prototype.saveCookieBannerState=function(e){localStorage.setItem(this.cookieBannerKey,String(e))},e.prototype.getCookieBannerState=function(){return localStorage.getItem(this.cookieBannerKey)},e}());!function(e){e.SEEN="seen"}(C||(C={}));var z={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"},G=function(o){var n=o.className,t=void 0===n?"":n,i=o.children,a=o.noPadding,d=void 0!==a&&a;return e.jsx("div",{className:l(z,{container:!0,noPadding:d},[t]),children:i})},H="Header-module_header__qxHtx",Y="Header-module_content__DV-in",F="Header-module_logo__xO2bW",V="Header-module_mobileLogo__eNvSP",K="Header-module_actions__ZlACk",q="Header-module_mobileMenuIcon__pFpba",X="Header-module_menu__Yw9r6",Z="Header-module_mobileMenu__4S-NE",Q={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"},J=function(o){var n=o.title,t=o.subtitle,i=o.theme,a=void 0===i?"light":i,d=o.children;return e.jsxs("div",{className:l(Q,{container:!0},[Q[a]]),children:[e.jsxs("div",{className:Q.header,children:[e.jsx("h2",{children:n}),!!t&&e.jsx("div",{className:Q.subtitle,children:t})]}),e.jsx("div",{className:Q.body,children:d})]})},$="FAQ-module_container__Kht11";exports.Accordion=P,exports.Avatar=I,exports.Button=j,exports.Container=G,exports.CookieBanner=function(n){var t=n.appName,i=o.useState(!1),l=i[0],a=i[1];return o.useEffect((function(){var e=U.getCookieBannerState();a(e!==C.SEEN)}),[]),l?e.jsxs("div",{className:M.container,children:[e.jsxs("div",{className:M.content,children:["As ",t,", we do not use any cookies ourselves, but some of our service providers may. Please check our ",e.jsx("a",{href:"/privacy",children:"Privacy Policy"})," page for more details."]}),e.jsx("div",{className:M.actions,children:e.jsx(j,{label:"Continue",onClick:function(){a(!1),U.saveCookieBannerState(C.SEEN)}})})]}):null},exports.DropDown=function(n){var t=n.action,i=n.menu,a=n.type,d=void 0===a?exports.UIElementType.DEFAULT:a,r=n.closeRef,_=n.actionSize,s=void 0===_?"medium":_,u=o.useRef(null),c=o.useRef(null),m=o.useRef(null),h=o.useState(!1),f=h[0],p=h[1],g=function(){return p(!1)};return o.useEffect((function(){(null==r?void 0:r.current)&&(r.current={close:function(){return g()}})}),[r]),e.jsxs("div",{className:N.container,ref:u,children:[e.jsx("div",{className:l(N,{action:!0},[N[d],N[s]]),ref:m,onClick:function(){return p(!f)},children:t}),e.jsx(T,{containerRef:u,contentRef:c,isOpen:f,onClose:g,renderChild:function(){return e.jsx("div",{className:N.menuContainer,ref:c,children:e.jsx(E,{children:i})})}})]})},exports.FAQ=function(o){var n=o.faqItems;return e.jsx(J,{title:"Frequently asked questions",children:e.jsx("div",{className:$,children:n.map((function(o){var n=o.title,t=o.content;return e.jsx(P,{title:n,content:t},n)}))})})},exports.Header=function(n){var t=n.logo,i=n.menu,l=n.actions,a=void 0===l?null:l,d=o.useState(!1),r=d[0],_=d[1];return e.jsxs("header",{className:H,children:[e.jsx(G,{children:e.jsxs("div",{className:Y,children:[e.jsx("a",{href:"/",className:F,children:t}),e.jsx("a",{href:"/",className:V,children:t}),!!i&&e.jsx("div",{className:X,children:i}),e.jsxs("div",{className:K,children:[a,!!i&&e.jsx("div",{className:q,children:e.jsx(y,{icon:r?m:f,onClick:function(){return _(!r)},size:"lg"})})]})]})}),r&&e.jsx("div",{className:Z,children:i})]})},exports.IconButton=y,exports.Input=b,exports.Link=function(o){var n=o.href,t=o.title,i=o.target,a=void 0===i?"_self":i,r=o.type,_=void 0===r?exports.UIElementType.DEFAULT:r,s=o.padding,u=void 0===s?"zero":s,m=o.hasChevron,h=void 0!==m&&m,f=o.fullWidth,p=void 0!==f&&f;return e.jsxs("a",{href:n,target:a,rel:"noopener noreferrer",className:l(D,{link:!0,fullWidth:p},[D[_],D[u]]),children:[e.jsx("span",{children:t})," ",h&&e.jsx(d,{icon:c})]})},exports.ListItem=function(o){var n=o.title,t=o.subtitle,i=o.actionTitle,a=void 0===i?"":i,r=o.action,_=o.completed,s=o.indicator,c=o.hasSeparator,m=void 0!==c&&c,h=o.hasDashedSeparator,f=void 0!==h&&h,p=o.isActionPending,g=void 0!==p&&p;return e.jsxs("div",{className:l(w,{listItem:!0,separator:m,dashedSeparator:f}),children:[e.jsxs("div",{className:w.content,children:[s&&e.jsx("div",{className:l(w,{indicator:!0},[w[s]])}),e.jsxs("div",{className:w.data,children:[e.jsx("div",{className:w.title,children:n}),t&&e.jsx("div",{className:w.subtitle,children:t})]})]}),r&&e.jsx(j,{onClick:r,className:w.action,label:a,isLoading:g}),_&&e.jsx("div",{className:w.completed,children:e.jsx(d,{icon:u})})]})},exports.LoadingItem=function(o){var n=o.shape,t=void 0===n?"square":n,i=o.size,a=void 0===i?"md":i,d=o.width,r=o.height;return e.jsx("div",{className:l(O,{container:!0},[O[t],O[a]]),style:{width:d,height:r}})},exports.SVGIcon=d,exports.Section=J,exports.Tooltip=function(o){var n=o.hint,t=o.children,i=o.position,l=void 0===i?"top":i;return e.jsxs("div",{className:R.tooltip,children:[!!n&&e.jsx("div",{className:"".concat(R.hint," ").concat(R[l]),children:n}),t]})},exports.classNames=l,exports.isEmpty=function(e){return null==e||("object"==typeof e?Array.isArray(e)?0===e.length:e instanceof Set||e instanceof Map?0===e.size:0===Object.keys(e).length:"string"==typeof e&&0===e.length)},exports.useClickOutside=S,exports.useClickOutsideRef=function(e){var n=o.useRef(null),t=o.useCallback((function(o){n.current&&!n.current.contains(o.target)&&e()}),[e]);return o.useEffect((function(){return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}),[t]),n};
//# sourceMappingURL=index.js.map
{
"name": "@sorocraft/ui",
"version": "1.0.25",
"version": "1.0.26",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc