@sorocraft/ui
Advanced tools
Comparing version 1.0.21 to 1.0.22
@@ -14,2 +14,3 @@ export { default as Avatar } from "./components/Avatar"; | ||
export { default as Container } from "./components/Container"; | ||
export { default as Header } from "./components/Header"; | ||
export * from "./components/SVGIcon/SVGIcon.types"; | ||
@@ -16,0 +17,0 @@ export * from "./components/Input/Input.types"; |
@@ -1,2 +0,2 @@ | ||
import{jsx as e,jsxs as o}from"react/jsx-runtime";import{useState as n,Fragment as i,forwardRef as t,useEffect as l,useRef as a,useCallback as d}from"react";import 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,o,n){void 0===n&&(n=[]);var i=[];for(var t in o)o[t]&&i.push(e[t]);return(null==n?void 0:n.length)>0&&(i=i.concat(n)),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(o){var n=o.icon,i=o.size,t=void 0===i?"sm":i,l=o.className,a=void 0===l?"":l,d=o.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 n?e("div",{className:u(c,{container:!0,isLoading:r},[a]),children:e(n,{className:a,width:_,height:_,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},s=function(){return s=Object.assign||function(e){for(var o,n=1,i=arguments.length;n<i;n++)for(var t in o=arguments[n])Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e},s.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var h,f=function(n){return o("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:"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(o){return e("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:"M20 6 9 17l-5-5"})}))},p=function(o){return e("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:"m9 18 6-6-6-6"})}))},v=function(o){return e("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:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})}))},I=function(o){return e("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:"M5 12h14"})}))},A=function(o){return e("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:"M12 5v14m-7-7h14"})}))},x=function(o){return e("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:"m8 16 4-4m0 0 4 4m-4-4v9m8-4.257A5.5 5.5 0 0 0 16.5 7a.62.62 0 0 1-.534-.302 7.5 7.5 0 1 0-11.78 9.096"})}))},k=function(o){return e("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:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})}))},L=function(n){var i=n.source,t=void 0===i?null:i,l=n.alt,a=void 0===l?"avatar":l,d=n.size,r=void 0===d?"sm":d,c=n.onClick,s=n.className,h=n.isEditable,g=void 0!==h&&h,p=n.overlayIcon,v=n.inline,I=void 0!==v&&v,A=n.isLoading,L=void 0!==A&&A,D=n.overlayText,w=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 o("div",{className:u(_,{avatar:!0,clickable:!!c||g,editable:g,inline:I,loading:L},[_[r],s]),onClick:c,style:{width:w(),height:w()},children:[t?e("img",{src:t,alt:a,className:_.image,width:w(),height:w()}):e(m,{size:r,icon:k}),g&&e("div",{className:_.editIcon,children:e(m,{isLoading:L,icon:L?x:f})}),(!!p||D)&&o("div",{className:_.overlay,children:[!!p&&e(m,{isLoading:L,icon:L?x:p}),!!D&&e("div",{className:_.overlayText,children:D})]})]})},D={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",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 w,y=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,A=t.size,x=void 0===A?"standard":A,k=n(!1),L=k[0],w=k[1];return o("div",{className:u(D,{container:!0,fullWidth:s}),children:[e("button",{className:u(D,{button:!0,loading:!!f},[D[a],D[x],p]),onClick:I?function(){return w(!L)}:d,disabled:f||g,children:f?e(i,{children:"Loading..."}):o("div",{className:D.label,children:[_&&e(m,{icon:_}),e("span",{children:r})]})}),L&&o("div",{className:D.confirm,children:[e("div",{className:D.confirmMessage,children:"Are you sure?"}),o("div",{className:D.confirmActions,children:[e(y,{type:h.DANGER,onClick:function(){return w(!1)},label:"No"}),e(y,{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,A=void 0===I?"top":I,x=n(!1),k=x[0],L=x[1];return o("div",{className:u(B,{iconButton:!0,noPadding:s},[B[d],B[v]]),onClick:g?void 0:_?function(){return L(!k)}:l,children:[e(m,{isLoading:g,icon:t,size:v}),k&&o("div",{className:"".concat(B.confirm," ").concat(B[A]),children:[e("div",{className:B.confirmMessage,children:"Are you sure?"}),o("div",{className:B.confirmActions,children:[e(y,{type:h.DANGER,onClick:function(){return L(!1)},label:"No",size:"small"}),e(y,{type:h.SUCCESS,onClick:l,label:"Yes",size:"small"})]})]})]})},b={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"},N=function(n){var i=n.title,t=n.subtitle,l=n.actionTitle,a=void 0===l?"":l,d=n.action,r=n.completed,_=n.indicator,c=n.hasSeparator,s=void 0!==c&&c,h=n.hasDashedSeparator,f=void 0!==h&&h,p=n.isActionPending,v=void 0!==p&&p;return o("div",{className:u(b,{listItem:!0,separator:s,dashedSeparator:f}),children:[o("div",{className:b.content,children:[_&&e("div",{className:u(b,{indicator:!0},[b[_]])}),o("div",{className:b.data,children:[e("div",{className:b.title,children:i}),t&&e("div",{className:b.subtitle,children:t})]})]}),d&&e(y,{onClick:d,className:b.action,label:a,isLoading:v}),r&&e("div",{className:b.completed,children:e(m,{icon:g})})]})},S={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"},O=function(n){var i=n.href,t=n.title,l=n.target,a=void 0===l?"_self":l,d=n.type,r=void 0===d?h.DEFAULT:d,_=n.padding,c=void 0===_?"zero":_,s=n.hasChevron,f=void 0!==s&&s,g=n.fullWidth;return o("a",{href:i,target:a,rel:"noopener noreferrer",className:u(S,{link:!0,fullWidth:void 0!==g&&g},[S[r],S[c]]),children:[e("span",{children:t})," ",f&&e(m,{icon:p})]})},W={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"}(w||(w={}));var E,T=t((function(n,t){var l=n.type,a=void 0===l?w.TEXT:l,d=n.label,r=n.placeholder,_=n.value,c=n.required,h=void 0!==c&&c,f=n.addonIcon,g=n.labelAddon,p=n.errorMessage,I=n.options,A=void 0===I?[]:I,x=n.fullWidth,k=n.avatarSize,D=n.source,y=n.autoCompleteContent,B=n.autoCompleteReverse,C=void 0!==B&&B,b=n.noMargin,N=void 0!==b&&b,S=n.isDisabled,O=void 0!==S&&S,E=n.isLoading,T=void 0!==E&&E,P=n.isMultiUpload,R=void 0!==P&&P,M=n.autoFocus,z=void 0!==M&&M,G=n.theme,U=void 0===G?"oval":G,Y=n.size,j=void 0===Y?"medium":Y,H=n.onBlur,F=n.onFocus,V=n.onChange,K=n.addonAction,X=n.onEnter,Z=n.onEsc,q=n.onFileSelect,Q=n.onFilesSelect,J=function(e,o){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&o.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(i=Object.getOwnPropertySymbols(e);t<i.length;t++)o.indexOf(i[t])<0&&Object.prototype.propertyIsEnumerable.call(e,i[t])&&(n[i[t]]=e[i[t]])}return n}(n,["type","label","placeholder","value","required","addonIcon","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()}},oe=function(e){var o=e.target.files[0],n=new FileReader;n.onload=function(){q&&q(o,n.result)},n.readAsDataURL(o)},ne=function(e){var o=e.target;Q&&Q(o.files)};return o("div",{className:u(W,{input:!0,full:!!x,noMargin:N,hasAddon:!!f},[W[U],W[j]]),children:[d&&o("label",{children:[e("span",{className:h?W.required:"",children:d}),!!g&&e("div",{className:W.labelAddon,children:g})]}),e("div",{className:W.container,children:function(){switch(a){case w.SELECT:return o("select",s({className:W.field,value:_,onBlur:H,onFocus:F,onChange:V,ref:t},J,{children:[e("option",{value:"",children:r}),A.map((function(o){var n=o.label,i=o.value;return e("option",{value:i,children:n},i)}))]}));case w.COLOR_PICKER:return e("input",s({className:"".concat(W.field," ").concat(W.colorPicker),type:"color",value:_,placeholder:r,onBlur:H,onFocus:F,onChange:V,disabled:$,ref:t},J));case w.TEXT_AREA:return e("textarea",s({className:W.field,value:_,placeholder:r,onBlur:H,onFocus:F,onChange:V,autoFocus:z,ref:t},J));case w.AVATAR_UPLOAD:return o("label",{htmlFor:"avatar-upload",children:[e(L,{size:k,source:D,isLoading:T,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:R?ne:oe,ref:t,className:W.avatar,disabled:$,multiple:R})]});case w.UPLOAD_IMAGE_ICON:return o("label",{htmlFor:"upload-image-icon",children:[e(m,{icon:v,isLoading:T,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:R?ne:oe,ref:t,className:W.avatar,disabled:$,multiple:R})]});default:return o(i,{children:[e("input",s({className:W.field,type:a,placeholder:r,value:_,onBlur:H,onFocus:F,onChange:V,onKeyUp:ee,ref:t,disabled:$,autoFocus:z},J)),f&&e("div",{className:K?"".concat(W.addon," ").concat(W.pointer):W.addon,onClick:K,children:e(m,{icon:f,isLoading:T})})]})}}()}),!!p&&e("div",{className:W.error,children:p}),!!y&&e("div",{className:u(W,{autoCompleteContent:!0,reversed:C}),children:y})]})})),P={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5"},R=function(e,o){var n=function(n){e.current&&!e.current.contains(n.target)&&o()};l((function(){return document.addEventListener("click",n),function(){document.removeEventListener("click",n)}}),[])},M=function(e){var o=a(null),n=d((function(n){o.current&&!o.current.contains(n.target)&&e()}),[e]);return l((function(){return document.addEventListener("click",n),function(){document.removeEventListener("click",n)}}),[n]),o},z=function(o){var i=o.containerRef,t=o.contentRef,a=o.isOpen,d=void 0!==a&&a,_=o.renderChild,u=o.onClose,c={isOpen:!1,top:0,left:0,bottom:0,right:0},m=n(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 R(i,(function(){return p()})),l((function(){if(d)return function(){var e,o,n,l,a,d,r,_=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=_.top,c=_.left,m=_.height,h=_.width,g=window.innerHeight,p=window.innerWidth,v=g-(u+m),I=u,A=c,x=p-(c+h),k=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,D="auto",w="auto",y="auto",B="auto";v<k&&I>=k?B=g-u-m+20:w=u+m+5,x<L&&A>=L?y=p-c:D=c,f(s(s({},{top:w,left:D,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},G=function(o){var n=o.children;return e("div",{className:P.menu,children:n})},U=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=n(!1),I=v[0],A=v[1],x=function(){return A(!1)};return l((function(){(null==c?void 0:c.current)&&(c.current={close:function(){return x()}})}),[c]),o("div",{className:P.container,ref:f,children:[e("div",{className:u(P,{action:!0},[P[_],P[s]]),ref:p,onClick:function(){return A(!I)},children:t}),e(z,{containerRef:f,contentRef:g,isOpen:I,onClose:x,renderChild:function(){return e("div",{className:P.menuContainer,ref:g,children:e(G,{children:d})})}})]})},Y={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"},j=function(o){var n=o.shape,i=void 0===n?"square":n,t=o.size,l=void 0===t?"md":t,a=o.width,d=o.height;return e("div",{className:u(Y,{container:!0},[Y[i],Y[l]]),style:{width:a,height:d}})},H={container:"Accordion-module_container__6rGl0",header:"Accordion-module_header__AYOT5",body:"Accordion-module_body__4IgEa",content:"Accordion-module_content__RyBzl",isOpen:"Accordion-module_isOpen__Bmf-c",flexWide:"Accordion-module_flexWide__Pmyu-",slidein:"Accordion-module_slidein__NIsrY",fadeInOut:"Accordion-module_fadeInOut__Ub-rg",heightAnimation:"Accordion-module_heightAnimation__nT1oQ",fadein:"Accordion-module_fadein__KprHu",floatAnimation:"Accordion-module_floatAnimation__d-fsP"},F=function(i){var t=i.title,l=i.content,a=n(!1),d=a[0],r=a[1];return o("div",{className:u(H,{container:!0,isOpen:d}),onClick:function(){return r(!d)},children:[o("div",{className:H.header,children:[e("h3",{children:t}),e(m,{icon:d?I:A,size:"md"})]}),e("div",{className:H.body,children:e("div",{className:H.content,children:l})})]})},V={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"},K=function(n){var i=n.hint,t=n.children,l=n.position,a=void 0===l?"top":l;return o("div",{className:V.tooltip,children:[!!i&&e("div",{className:"".concat(V.hint," ").concat(V[a]),children:i}),t]})},X={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"},Z=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"}(E||(E={}));var q=function(i){var t=i.appName,a=n(!1),d=a[0],r=a[1];return l((function(){var e=Z.getCookieBannerState();r(e!==E.SEEN)}),[]),d?o("div",{className:X.container,children:[o("div",{className:X.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:X.actions,children:e(y,{label:"Continue",onClick:function(){r(!1),Z.saveCookieBannerState(E.SEEN)}})})]}):null},Q={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",flexWide:"Container-module_flexWide__UYxLw",slidein:"Container-module_slidein__2HqKN",fadeInOut:"Container-module_fadeInOut__OfzxZ",heightAnimation:"Container-module_heightAnimation__UR715",fadein:"Container-module_fadein__9rDYD",floatAnimation:"Container-module_floatAnimation__6Lcjo"},J=function(o){var n=o.className,i=void 0===n?"":n,t=o.children,l=o.noPadding;return e("div",{className:u(Q,{container:!0,noPadding:void 0!==l&&l},[i]),children:t})},$=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{F as Accordion,L as Avatar,y as Button,J as Container,q as CookieBanner,U as DropDown,C as IconButton,T as Input,w as InputType,O as Link,N as ListItem,j as LoadingItem,m as SVGIcon,K as Tooltip,h as UIElementType,u as classNames,$ as isEmpty,R as useClickOutside,M 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,C=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(C,{type:h.DANGER,onClick:function(){return w(!1)},label:"No"}),e(C,{type:h.SUCCESS,onClick:function(){w(!1),d()},label:"Yes"})]})]})]})},N={iconButton:"IconButton-module_iconButton__PmpB8",noPadding:"IconButton-module_noPadding__Jd2rK",lg:"IconButton-module_lg__KG7lp",md:"IconButton-module_md__s4q7b",sm:"IconButton-module_sm__are9s",xs:"IconButton-module_xs__qYwZc",confirm:"IconButton-module_confirm__-jXH4",confirmActions:"IconButton-module_confirmActions__j7-Tt",bottom:"IconButton-module_bottom__AEpND",disabled:"IconButton-module_disabled__pLK-t",white:"IconButton-module_white__AzyNN",light:"IconButton-module_light__i3AET",active:"IconButton-module_active__popsF",lightDark:"IconButton-module_lightDark__d7NQy",lightDanger:"IconButton-module_lightDanger__bIg02",lightInfo:"IconButton-module_lightInfo__820It",lightPrimary:"IconButton-module_lightPrimary__SCrg-",lightSecondary:"IconButton-module_lightSecondary__vN-aS",lightWarning:"IconButton-module_lightWarning__z1iaR",lightSuccess:"IconButton-module_lightSuccess__mUSnD",primary:"IconButton-module_primary__qjfR5",secondary:"IconButton-module_secondary__-CufX",danger:"IconButton-module_danger__lz3tP",dark:"IconButton-module_dark__QiBJk",info:"IconButton-module_info__eawU-",success:"IconButton-module_success__xkDzZ",warning:"IconButton-module_warning__DhbfD",whiteText:"IconButton-module_whiteText__111Ju",default:"IconButton-module_default__j2U57",borderedPrimary:"IconButton-module_borderedPrimary__DHXJQ",borderedSecondary:"IconButton-module_borderedSecondary__13GNA",flexWide:"IconButton-module_flexWide__BGOfY",slidein:"IconButton-module_slidein__Rmpl5",fadeInOut:"IconButton-module_fadeInOut__Z2E5a",heightAnimation:"IconButton-module_heightAnimation__JnqnZ",fadein:"IconButton-module_fadein__uX9ut",floatAnimation:"IconButton-module_floatAnimation__N-INw"},b=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(N,{iconButton:!0,noPadding:s},[N[d],N[v]]),onClick:g?void 0:_?function(){return L(!A)}:l,children:[e(m,{isLoading:g,icon:t,size:v}),A&&n("div",{className:"".concat(N.confirm," ").concat(N[k]),children:[e("div",{className:N.confirmMessage,children:"Are you sure?"}),n("div",{className:N.confirmActions,children:[e(C,{type:h.DANGER,onClick:function(){return L(!1)},label:"No",size:"small"}),e(C,{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(C,{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"},E=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})]})},T={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,C=void 0!==y&&y,N=o.noMargin,b=void 0!==N&&N,S=o.isDisabled,O=void 0!==S&&S,W=o.isLoading,E=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,j=o.size,U=void 0===j?"medium":j,Y=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||E,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(T,{input:!0,full:!!x,noMargin:b,hasAddon:!!f},[T[H],T[U]]),children:[d&&n("label",{children:[e("span",{className:h?T.required:"",children:d}),!!g&&e("div",{className:T.labelAddon,children:g})]}),e("div",{className:T.container,children:function(){switch(a){case B.SELECT:return n("select",s({className:T.field,value:_,onBlur:Y,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(T.field," ").concat(T.colorPicker),type:"color",value:_,placeholder:r,onBlur:Y,onFocus:F,onChange:V,disabled:$,ref:t},J));case B.TEXT_AREA:return e("textarea",s({className:T.field,value:_,placeholder:r,onBlur:Y,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:E,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:R?oe:ne,ref:t,className:T.avatar,disabled:$,multiple:R})]});case B.UPLOAD_IMAGE_ICON:return n("label",{htmlFor:"upload-image-icon",children:[e(m,{icon:I,isLoading:E,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:R?oe:ne,ref:t,className:T.avatar,disabled:$,multiple:R})]});default:return n(i,{children:[e("input",s({className:T.field,type:a,placeholder:r,value:_,onBlur:Y,onFocus:F,onChange:V,onKeyUp:ee,ref:t,disabled:$,autoFocus:z},J)),f&&e("div",{className:K?"".concat(T.addon," ").concat(T.pointer):T.addon,onClick:K,children:e(m,{icon:f,isLoading:E})})]})}}()}),!!p&&e("div",{className:T.error,children:p}),!!w&&e("div",{className:u(T,{autoCompleteContent:!0,reversed:C}),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},j=function(n){var o=n.children;return e("div",{className:M.menu,children:o})},U=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(j,{children:d})})}})]})},Y={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(Y,{container:!0},[Y[i],Y[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"},Z=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]})},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,a=o(!1),d=a[0],r=a[1];return l((function(){var e=Q.getCookieBannerState();r(e!==P.SEEN)}),[]),d?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(C,{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,e("div",{className:ae,children:e(b,{icon:_?v:k,onClick:function(){return u(!_)},size:"lg"})})]})]})}),_&&e("div",{className:re,children:l})]})},ue=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,C as Button,ee as Container,J as CookieBanner,U as DropDown,_e as Header,b as IconButton,R as Input,B as InputType,E as Link,O as ListItem,F as LoadingItem,m as SVGIcon,Z as Tooltip,h as UIElementType,u as classNames,ue 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,u=void 0!==_&&_,s=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:u},[r]),children:e.jsx(n,{className:r,width:s,height:s,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 _,u=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"})]}))},s=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:"m4.272 20.728 6.597-6.597c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668l6.553 6.553M14 15l2.869-2.869c.396-.396.594-.594.822-.668a1 1 0 0 1 .618 0c.228.074.426.272.822.668L22 15M10 9a2 2 0 1 1-4 0 2 2 0 0 1 4 0M6.8 21h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 18.72 22 17.88 22 16.2V7.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 3 18.88 3 17.2 3H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 5.28 2 6.12 2 7.8v8.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 21 5.12 21 6.8 21"})}))},h=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"})}))},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:"M12 5v14m-7-7h14"})}))},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:"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"})}))},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:"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"})}))},x=function(o){var n=o.source,t=void 0===n?null:n,a=o.alt,r=void 0===a?"avatar":a,_=o.size,s=void 0===_?"sm":_,c=o.onClick,m=o.className,h=o.isEditable,f=void 0!==h&&h,x=o.overlayIcon,v=o.inline,I=void 0!==v&&v,A=o.isLoading,k=void 0!==A&&A,L=o.overlayText,y=function(){switch(s){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:k},[i[s],m]),onClick:c,style:{width:y(),height:y()},children:[t?e.jsx("img",{src:t,alt:r,className:i.image,width:y(),height:y()}):e.jsx(d,{size:s,icon:g}),f&&e.jsx("div",{className:i.editIcon,children:e.jsx(d,{isLoading:k,icon:k?p:u})}),(!!x||L)&&e.jsxs("div",{className:i.overlay,children:[!!x&&e.jsx(d,{isLoading:k,icon:k?p:x}),!!L&&e.jsx("div",{className:i.overlayText,children:L})]})]})},v={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 I,A=function(n){var t=n.type,i=void 0===t?exports.UIElementType.PRIMARY:t,a=n.onClick,r=n.label,_=n.icon,u=n.fullWidth,s=void 0!==u&&u,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,I=o.useState(!1),k=I[0],L=I[1];return e.jsxs("div",{className:l(v,{container:!0,fullWidth:s}),children:[e.jsx("button",{className:l(v,{button:!0,loading:!!c},[v[i],v[x],h]),onClick:p?function(){return L(!k)}:a,disabled:c||m,children:c?e.jsx(o.Fragment,{children:"Loading..."}):e.jsxs("div",{className:v.label,children:[_&&e.jsx(d,{icon:_}),e.jsx("span",{children:r})]})}),k&&e.jsxs("div",{className:v.confirm,children:[e.jsx("div",{className:v.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:v.confirmActions,children:[e.jsx(A,{type:exports.UIElementType.DANGER,onClick:function(){return L(!1)},label:"No"}),e.jsx(A,{type:exports.UIElementType.SUCCESS,onClick:function(){L(!1),a()},label:"Yes"})]})]})]})},k={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"},L={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"},y={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",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"},D={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,(I=exports.InputType||(exports.InputType={})).TEXT="text",I.PASSWORD="password",I.EMAIL="email",I.NUMBER="number",I.URL="url",I.TEL="tel",I.DATE="date",I.DATETIME="datetime",I.SELECT="select",I.COLOR_PICKER="color-picker",I.TEXT_AREA="text-area",I.AVATAR_UPLOAD="avatar-upload",I.UPLOAD_IMAGE_ICON="upload-image-icon";var j,w=o.forwardRef((function(n,t){var i=n.type,a=void 0===i?exports.InputType.TEXT:i,_=n.label,u=n.placeholder,s=n.value,c=n.required,h=void 0!==c&&c,f=n.addonIcon,p=n.labelAddon,g=n.errorMessage,v=n.options,I=void 0===v?[]:v,A=n.fullWidth,k=n.avatarSize,L=n.source,y=n.autoCompleteContent,j=n.autoCompleteReverse,w=void 0!==j&&j,B=n.noMargin,C=void 0!==B&&B,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,U=void 0===R?"oval":R,M=n.size,z=void 0===M?"medium":M,G=n.onBlur,Y=n.onFocus,F=n.onChange,H=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(D,{input:!0,full:!!A,noMargin:C,hasAddon:!!f},[D[U],D[z]]),children:[_&&e.jsxs("label",{children:[e.jsx("span",{className:h?D.required:"",children:_}),!!p&&e.jsx("div",{className:D.labelAddon,children:p})]}),e.jsx("div",{className:D.container,children:function(){switch(a){case exports.InputType.SELECT:return e.jsxs("select",r({className:D.field,value:s,onBlur:G,onFocus:Y,onChange:F,ref:t},Z,{children:[e.jsx("option",{value:"",children:u}),I.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(D.field," ").concat(D.colorPicker),type:"color",value:s,placeholder:u,onBlur:G,onFocus:Y,onChange:F,disabled:Q,ref:t},Z));case exports.InputType.TEXT_AREA:return e.jsx("textarea",r({className:D.field,value:s,placeholder:u,onBlur:G,onFocus:Y,onChange:F,autoFocus:P,ref:t},Z));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(x,{size:k,source:L,isLoading:T,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:O?ee:$,ref:t,className:D.avatar,disabled:Q,multiple:O})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(d,{icon:m,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:D.avatar,disabled:Q,multiple:O})]});default:return e.jsxs(o.Fragment,{children:[e.jsx("input",r({className:D.field,type:a,placeholder:u,value:s,onBlur:G,onFocus:Y,onChange:F,onKeyUp:J,ref:t,disabled:Q,autoFocus:P},Z)),f&&e.jsx("div",{className:H?"".concat(D.addon," ").concat(D.pointer):D.addon,onClick:H,children:e.jsx(d,{icon:f,isLoading:T})})]})}}()}),!!g&&e.jsx("div",{className:D.error,children:g}),!!y&&e.jsx("div",{className:l(D,{autoCompleteContent:!0,reversed:w}),children:y})]})})),B={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"},C=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)}}),[])},b=function(n){var i=n.containerRef,l=n.contentRef,a=n.isOpen,d=void 0!==a&&a,_=n.renderChild,u=n.onClose,s={isOpen:!1,top:0,left:0,bottom:0,right:0},c=o.useState(s),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(s),u()};return C(i,(function(){return p()})),o.useEffect((function(){if(d)return function(){var e,o,n,t,a,d,_,u=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},s=u.top,c=u.left,m=u.height,f=u.width,p=window.innerHeight,g=window.innerWidth,x=p-(s+m),v=s,I=c,A=g-(c+f),k=null!==(a=null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.clientHeight)&&void 0!==a?a:200,L=null!==(_=null===(d=null==l?void 0:l.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200,y="auto",D="auto",j="auto",w="auto";x<k&&v>=k?w=p-s-m+20:D=s+m+5,A<L&&I>=L?j=g-c:y=c,h(r(r({},{top:D,left:y,right:j,bottom:w}),{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},N=function(o){var n=o.children;return e.jsx("div",{className:B.menu,children:n})},S={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"},T={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"},E={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW"},O={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"},W=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"}(j||(j={}));var P={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"};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(T,{container:!0,isOpen:r}),onClick:function(){return _(!r)},children:[e.jsxs("div",{className:T.header,children:[e.jsx("h3",{children:t}),e.jsx(d,{icon:r?h:f,size:"md"})]}),e.jsx("div",{className:T.body,children:e.jsx("div",{className:T.content,children:i})})]})},exports.Avatar=x,exports.Button=A,exports.Container=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(P,{container:!0,noPadding:d},[t]),children:i})},exports.CookieBanner=function(n){var t=n.appName,i=o.useState(!1),l=i[0],a=i[1];return o.useEffect((function(){var e=W.getCookieBannerState();a(e!==j.SEEN)}),[]),l?e.jsxs("div",{className:O.container,children:[e.jsxs("div",{className:O.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:O.actions,children:e.jsx(A,{label:"Continue",onClick:function(){a(!1),W.saveCookieBannerState(j.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,u=void 0===_?"medium":_,s=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:B.container,ref:s,children:[e.jsx("div",{className:l(B,{action:!0},[B[d],B[u]]),ref:m,onClick:function(){return p(!f)},children:t}),e.jsx(b,{containerRef:s,contentRef:c,isOpen:f,onClose:g,renderChild:function(){return e.jsx("div",{className:B.menuContainer,ref:c,children:e.jsx(N,{children:i})})}})]})},exports.IconButton=function(n){var t=n.icon,i=n.onClick,a=n.type,r=void 0===a?exports.UIElementType.DEFAULT:a,_=n.needConfirm,u=void 0!==_&&_,s=n.noPadding,c=void 0!==s&&s,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],L=v[1];return e.jsxs("div",{className:l(k,{iconButton:!0,noPadding:c},[k[r],k[p]]),onClick:h?void 0:u?function(){return L(!I)}:i,children:[e.jsx(d,{isLoading:h,icon:t,size:p}),I&&e.jsxs("div",{className:"".concat(k.confirm," ").concat(k[x]),children:[e.jsx("div",{className:k.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:k.confirmActions,children:[e.jsx(A,{type:exports.UIElementType.DANGER,onClick:function(){return L(!1)},label:"No",size:"small"}),e.jsx(A,{type:exports.UIElementType.SUCCESS,onClick:i,label:"Yes",size:"small"})]})]})]})},exports.Input=w,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,u=o.padding,s=void 0===u?"zero":u,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(y,{link:!0,fullWidth:p},[y[_],y[s]]),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,u=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(L,{listItem:!0,separator:m,dashedSeparator:f}),children:[e.jsxs("div",{className:L.content,children:[u&&e.jsx("div",{className:l(L,{indicator:!0},[L[u]])}),e.jsxs("div",{className:L.data,children:[e.jsx("div",{className:L.title,children:n}),t&&e.jsx("div",{className:L.subtitle,children:t})]})]}),r&&e.jsx(A,{onClick:r,className:L.action,label:a,isLoading:g}),_&&e.jsx("div",{className:L.completed,children:e.jsx(d,{icon:s})})]})},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(S,{container:!0},[S[t],S[a]]),style:{width:d,height:r}})},exports.SVGIcon=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:E.tooltip,children:[!!n&&e.jsx("div",{className:"".concat(E.hint," ").concat(E[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=C,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,L=o.overlayText,j=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:j(),height:j()},children:[t?e.jsx("img",{src:t,alt:r,className:i.image,width:j(),height:j()}):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||L)&&e.jsxs("div",{className:i.overlay,children:[!!p&&e.jsx(d,{isLoading:A,icon:A?x:p}),!!L&&e.jsx("div",{className:i.overlayText,children:L})]})]})},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,L=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(L,{type:exports.UIElementType.DANGER,onClick:function(){return A(!1)},label:"No"}),e.jsx(L,{type:exports.UIElementType.SUCCESS,onClick:function(){A(!1),a()},label:"Yes"})]})]})]})},j={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(j,{iconButton:!0,noPadding:c},[j[r],j[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(j.confirm," ").concat(j[x]),children:[e.jsx("div",{className:j.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:j.confirmActions,children:[e.jsx(L,{type:exports.UIElementType.DANGER,onClick:function(){return k(!1)},label:"No",size:"small"}),e.jsx(L,{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,N=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,L=n.source,j=n.autoCompleteContent,y=n.autoCompleteReverse,w=void 0!==y&&y,D=n.noMargin,C=void 0!==D&&D,N=n.isDisabled,b=void 0!==N&&N,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=b||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:L,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}),!!j&&e.jsx("div",{className:l(B,{autoCompleteContent:!0,reversed:w}),children:j})]})})),b={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,L=null!==(_=null===(d=null==l?void 0:l.current)||void 0===d?void 0:d.clientWidth)&&void 0!==_?_:200,j="auto",y="auto",w="auto",D="auto";x<A&&v>=A?D=p-u-m+20:y=u+m+5,k<L&&I>=L?w=g-c:j=c,h(r(r({},{top:y,left:j,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:b.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";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=L,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(L,{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:b.container,ref:u,children:[e.jsx("div",{className:l(b,{action:!0},[b[d],b[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:b.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,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=N,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(L,{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.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}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sorocraft/ui", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"description": "UI Library by sorocraft.com", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
756727
131
1606