@sorocraft/ui
Advanced tools
Comparing version 1.0.34 to 1.0.35
@@ -1,2 +0,2 @@ | ||
import{jsx as e,jsxs as n}from"react/jsx-runtime";import{useState as o,Fragment as i,forwardRef as t,useEffect as l,useRef as d,useCallback as a}from"react";import r from"react-dom";var _={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi"},u=function(e,n,o){void 0===o&&(o=[]);var i=[];for(var t in n)n[t]&&i.push(e[t]);return(null==o?void 0:o.length)>0&&(i=i.concat(o)),i.join(" ")},c={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr"},s=function(n){var o=n.icon,i=n.size,t=void 0===i?"sm":i,l=n.className,d=void 0===l?"":l,a=n.isLoading,r=void 0!==a&&a,_=function(e){switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}}(t);return o?e("div",{className:u(c,{container:!0,isLoading:r},[d]),children:e(o,{className:d,width:_,height:_,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},m=function(){return m=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},m.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var h,f=function(o){return n("svg",m({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",m({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"})}))},v=function(n){return e("svg",m({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"})}))},p=function(n){return e("svg",m({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"})}))},x=function(n){return e("svg",m({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"})}))},I=function(n){return e("svg",m({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 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})}))},k=function(n){return e("svg",m({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 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})}))},A=function(n){return e("svg",m({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"})}))},L=function(n){return e("svg",m({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 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})}))},w=function(n){return e("svg",m({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"})}))},N=function(n){return e("svg",m({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"})}))},C=function(n){return e("svg",m({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:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})}))},D=function(n){return e("svg",m({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"})}))},b=function(n){return e("svg",m({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"})}))},y=function(o){var i=o.source,t=void 0===i?null:i,l=o.alt,d=void 0===l?"avatar":l,a=o.size,r=void 0===a?"sm":a,c=o.onClick,m=o.className,h=o.isEditable,g=void 0!==h&&h,v=o.overlayIcon,p=o.inline,x=void 0!==p&&p,I=o.isLoading,k=void 0!==I&&I,A=o.overlayText,L=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:x,loading:k},[_[r],m]),onClick:c,style:{width:L(),height:L()},children:[t?e("img",{src:t,alt:d,className:_.image,width:L(),height:L()}):e(s,{size:r,icon:b}),g&&e("div",{className:_.editIcon,children:e(s,{isLoading:k,icon:k?D:f})}),(!!v||A)&&n("div",{className:_.overlay,children:[!!v&&e(s,{isLoading:k,icon:k?D:v}),!!A&&e("div",{className:_.overlayText,children:A})]})]})},B={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.DANGER="danger",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e.LIGHT="light",e.DEFAULT="default",e.DARK="dark",e.LIGHT_PRIMARY="lightPrimary",e.LIGHT_SUCCESS="lightSuccess",e.LIGHT_WARNING="lightWarning",e.LIGHT_INFO="lightInfo",e.LIGHT_DANGER="lightDanger",e.LIGHT_DARK="lightDark",e.LIGHT_SECONDARY="lightSecondary",e.WHITE_TEXT="whiteText",e.BORDERED_PRIMARY="borderedPrimary",e.BORDERED_SECONDARY="borderedSecondary"}(h||(h={}));var S,O=function(t){var l=t.type,d=void 0===l?h.PRIMARY:l,a=t.onClick,r=t.label,_=t.icon,c=t.fullWidth,m=void 0!==c&&c,f=t.isLoading,g=t.disabled,v=t.className,p=t.needConfirm,x=void 0!==p&&p,I=t.size,k=void 0===I?"md":I,A=o(!1),L=A[0],w=A[1];return n("div",{className:u(B,{container:!0,fullWidth:m}),children:[e("button",{className:u(B,{button:!0,loading:!!f},[B[d],B[k],v]),onClick:x?function(){return w(!L)}:a,disabled:f||g,children:f?e(i,{children:"Loading..."}):n("div",{className:B.label,children:[_&&e(s,{icon:_}),e("span",{children:r})]})}),L&&n("div",{className:B.confirm,children:[e("div",{className:B.confirmMessage,children:"Are you sure?"}),n("div",{className:B.confirmActions,children:[e(O,{type:h.DANGER,onClick:function(){return w(!1)},label:"No",size:"xs"}),e(O,{type:h.SUCCESS,onClick:function(){w(!1),a()},label:"Yes",size:"xs"})]})]})]})},W={iconButton:"IconButton-module_iconButton__PmpB8",noPadding:"IconButton-module_noPadding__Jd2rK",lg:"IconButton-module_lg__KG7lp",md:"IconButton-module_md__s4q7b",sm:"IconButton-module_sm__are9s",xs:"IconButton-module_xs__qYwZc",confirm:"IconButton-module_confirm__-jXH4",confirmActions:"IconButton-module_confirmActions__j7-Tt",bottom:"IconButton-module_bottom__AEpND",disabled:"IconButton-module_disabled__pLK-t",white:"IconButton-module_white__AzyNN",light:"IconButton-module_light__i3AET",active:"IconButton-module_active__popsF",lightDark:"IconButton-module_lightDark__d7NQy",lightDanger:"IconButton-module_lightDanger__bIg02",lightInfo:"IconButton-module_lightInfo__820It",lightPrimary:"IconButton-module_lightPrimary__SCrg-",lightSecondary:"IconButton-module_lightSecondary__vN-aS",lightWarning:"IconButton-module_lightWarning__z1iaR",lightSuccess:"IconButton-module_lightSuccess__mUSnD",primary:"IconButton-module_primary__qjfR5",secondary:"IconButton-module_secondary__-CufX",danger:"IconButton-module_danger__lz3tP",dark:"IconButton-module_dark__QiBJk",info:"IconButton-module_info__eawU-",success:"IconButton-module_success__xkDzZ",warning:"IconButton-module_warning__DhbfD",whiteText:"IconButton-module_whiteText__111Ju",default:"IconButton-module_default__j2U57",borderedPrimary:"IconButton-module_borderedPrimary__DHXJQ",borderedSecondary:"IconButton-module_borderedSecondary__13GNA",flexWide:"IconButton-module_flexWide__BGOfY",slidein:"IconButton-module_slidein__Rmpl5",fadeInOut:"IconButton-module_fadeInOut__Z2E5a",heightAnimation:"IconButton-module_heightAnimation__JnqnZ",fadein:"IconButton-module_fadein__uX9ut",floatAnimation:"IconButton-module_floatAnimation__N-INw"},T=function(i){var t=i.icon,l=i.onClick,d=i.type,a=void 0===d?h.DEFAULT:d,r=i.needConfirm,_=void 0!==r&&r,c=i.noPadding,m=void 0!==c&&c,f=i.isLoading,g=void 0!==f&&f,v=i.size,p=void 0===v?"sm":v,x=i.confirmPosition,I=void 0===x?"top":x,k=o(!1),A=k[0],L=k[1];return n("div",{className:u(W,{iconButton:!0,noPadding:m},[W[a],W[p]]),onClick:g?void 0:_?function(){return L(!A)}:l,children:[e(s,{isLoading:g,icon:t,size:p}),A&&n("div",{className:"".concat(W.confirm," ").concat(W[I]),children:[e("div",{className:W.confirmMessage,children:"Are you sure?"}),n("div",{className:W.confirmActions,children:[e(O,{type:h.DANGER,onClick:function(){return L(!1)},label:"No",size:"xs"}),e(O,{type:h.SUCCESS,onClick:l,label:"Yes",size:"xs"})]})]})]})},E={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy"},P=function(o){var i=o.title,t=o.subtitle,l=o.actionTitle,d=void 0===l?"":l,a=o.action,r=o.completed,_=o.indicator,c=o.hasSeparator,m=void 0!==c&&c,h=o.hasDashedSeparator,f=void 0!==h&&h,v=o.isActionPending,p=void 0!==v&&v;return n("div",{className:u(E,{listItem:!0,separator:m,dashedSeparator:f}),children:[n("div",{className:E.content,children:[_&&e("div",{className:u(E,{indicator:!0},[E[_]])}),n("div",{className:E.data,children:[e("div",{className:E.title,children:i}),t&&e("div",{className:E.subtitle,children:t})]})]}),a&&e(O,{onClick:a,className:E.action,label:d,isLoading:p}),r&&e("div",{className:E.completed,children:e(s,{icon:g})})]})},M={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",s:"Link-module_s__Ojcbu",m:"Link-module_m__KQ9M4",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"},H=function(o){var i=o.href,t=o.title,l=o.target,d=void 0===l?"_self":l,a=o.type,r=void 0===a?h.DEFAULT:a,_=o.padding,c=void 0===_?"zero":_,m=o.hasChevron,f=void 0!==m&&m,g=o.fullWidth;return n("a",{href:i,target:d,rel:"noopener noreferrer",className:u(M,{link:!0,fullWidth:void 0!==g&&g},[M[r],M[c]]),children:[e("span",{children:t})," ",f&&e(s,{icon:v})]})},R={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",addon:"Input-module_addon__1cKdz",pointer:"Input-module_pointer__EsKoB",error:"Input-module_error__38tit",avatar:"Input-module_avatar__GJUWC",autoCompleteContent:"Input-module_autoCompleteContent__4anQc",reversed:"Input-module_reversed__dU1hV",transparent:"Input-module_transparent__ko36m",small:"Input-module_small__5vYiK",xsmall:"Input-module_xsmall__-9hXW",hasAddon:"Input-module_hasAddon__mruPW",darkMode:"Input-module_darkMode__DLx4Y",flexWide:"Input-module_flexWide__4Wn1k",slidein:"Input-module_slidein__XYim1",fadeInOut:"Input-module_fadeInOut__bnAwc",heightAnimation:"Input-module_heightAnimation__tmt9Z",fadein:"Input-module_fadein__1HtqV",floatAnimation:"Input-module_floatAnimation__sYawG"};!function(e){e.TEXT="text",e.PASSWORD="password",e.EMAIL="email",e.NUMBER="number",e.URL="url",e.TEL="tel",e.DATE="date",e.DATETIME="datetime",e.SELECT="select",e.COLOR_PICKER="color-picker",e.TEXT_AREA="text-area",e.AVATAR_UPLOAD="avatar-upload",e.UPLOAD_IMAGE_ICON="upload-image-icon"}(S||(S={}));var z,j=t((function(o,t){var l=o.type,d=void 0===l?S.TEXT:l,a=o.label,r=o.placeholder,_=o.value,c=o.required,h=void 0!==c&&c,f=o.addonIcon,g=o.labelAddon,v=o.errorMessage,p=o.options,I=void 0===p?[]:p,k=o.fullWidth,A=o.avatarSize,L=o.source,w=o.autoCompleteContent,N=o.autoCompleteReverse,C=void 0!==N&&N,D=o.noMargin,b=void 0!==D&&D,B=o.isDisabled,O=void 0!==B&&B,W=o.isLoading,T=void 0!==W&&W,E=o.isMultiUpload,P=void 0!==E&&E,M=o.autoFocus,H=void 0!==M&&M,z=o.theme,j=void 0===z?"oval":z,G=o.size,F=void 0===G?"medium":G,Y=o.isDarkMode,U=void 0!==Y&&Y,V=o.onBlur,K=o.onFocus,X=o.onChange,q=o.addonAction,Z=o.onEnter,Q=o.onEsc,J=o.onFileSelect,$=o.onFilesSelect,ee=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","isDarkMode","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]),ne=O||T,oe=function(e){switch(e.key){case"Enter":Z&&Z();break;case"Escape":Q&&Q()}},ie=function(e){var n=e.target.files[0],o=new FileReader;o.onload=function(){J&&J(n,o.result)},o.readAsDataURL(n)},te=function(e){var n=e.target;$&&$(n.files)};return n("div",{className:u(R,{input:!0,full:!!k,noMargin:b,hasAddon:!!f,darkMode:U},[R[j],R[F]]),children:[a&&n("label",{children:[e("span",{className:h?R.required:"",children:a}),!!g&&e("div",{className:R.labelAddon,children:g})]}),e("div",{className:R.container,children:function(){switch(d){case S.SELECT:return n("select",m({className:R.field,value:_,onBlur:V,onFocus:K,onChange:X,ref:t},ee,{children:[e("option",{value:"",children:r}),I.map((function(n){var o=n.label,i=n.value;return e("option",{value:i,children:o},i)}))]}));case S.COLOR_PICKER:return e("input",m({className:"".concat(R.field," ").concat(R.colorPicker),type:"color",value:_,placeholder:r,onBlur:V,onFocus:K,onChange:X,disabled:ne,ref:t},ee));case S.TEXT_AREA:return e("textarea",m({className:R.field,value:_,placeholder:r,onBlur:V,onFocus:K,onChange:X,autoFocus:H,ref:t},ee));case S.AVATAR_UPLOAD:return n("label",{htmlFor:"avatar-upload",children:[e(y,{size:A,source:L,isLoading:T,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:P?te:ie,ref:t,className:R.avatar,disabled:ne,multiple:P})]});case S.UPLOAD_IMAGE_ICON:return n("label",{htmlFor:"upload-image-icon",children:[e(s,{icon:x,isLoading:T,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:P?te:ie,ref:t,className:R.avatar,disabled:ne,multiple:P})]});default:return n(i,{children:[e("input",m({className:R.field,type:d,placeholder:r,value:_,onBlur:V,onFocus:K,onChange:X,onKeyUp:oe,ref:t,disabled:ne,autoFocus:H},ee)),f&&e("div",{className:q?"".concat(R.addon," ").concat(R.pointer):R.addon,onClick:q,children:e(s,{icon:f,isLoading:T})})]})}}()}),!!v&&e("div",{className:R.error,children:v}),!!w&&e("div",{className:u(R,{autoCompleteContent:!0,reversed:C}),children:w})]})})),G={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5"},F=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)}}),[])},Y=function(e){var n=d(null),o=a((function(o){n.current&&!n.current.contains(o.target)&&e()}),[e]);return l((function(){return document.addEventListener("click",o),function(){document.removeEventListener("click",o)}}),[o]),n},U=function(n){var i=n.containerRef,t=n.contentRef,d=n.isOpen,a=void 0!==d&&d,_=n.renderChild,u=n.onClose,c={isOpen:!1,top:0,left:0,bottom:0,right:0},s=o(c),h=s[0],f=s[1],g=o(!1),v=g[0],p=g[1],x={position:"absolute",top:h.top,left:h.left,bottom:h.bottom,right:h.right,zIndex:111},I=function(){f(c),u()};return F(i,(function(){return I()})),l((function(){if(a)return function(){var e,n,o,l,d,a,r,_=null!==(o=null===(n=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===n?void 0:n.call(e))&&void 0!==o?o:{top:0,left:0,height:0,width:0},u=_.top,c=_.left,s=_.height,h=_.width,g=window.innerHeight,v=window.innerWidth,p=g-(u+s),x=u,I=c,k=v-(c+h),A=null!==(d=null===(l=null==t?void 0:t.current)||void 0===l?void 0:l.clientHeight)&&void 0!==d?d:200,L=null!==(r=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.clientWidth)&&void 0!==r?r:200,w="auto",N="auto",C="auto",D="auto";p<A&&x>=A?D=g-u-s+20:N=u+s+5,k<L&&I>=L?C=v-c:w=c,f(m(m({},{top:N,left:w,right:C,bottom:D}),{isOpen:!0}))}();I()}),[a,null==i?void 0:i.current]),l((function(){return p(!0)}),[]),h.isOpen&&v?r.createPortal(e("div",{style:x,onClick:function(e){e.stopPropagation()},children:_(h)}),document.getElementById("portals")):null},V=function(n){var o=n.children;return e("div",{className:G.menu,children:o})},K=function(i){var t=i.action,a=i.menu,r=i.type,_=void 0===r?h.DEFAULT:r,c=i.closeRef,s=i.actionSize,m=void 0===s?"medium":s,f=d(null),g=d(null),v=d(null),p=o(!1),x=p[0],I=p[1],k=function(){return I(!1)};return l((function(){(null==c?void 0:c.current)&&(c.current={close:function(){return k()}})}),[c]),n("div",{className:G.container,ref:f,children:[e("div",{className:u(G,{action:!0},[G[_],G[m]]),ref:v,onClick:function(){return I(!x)},children:t}),e(U,{containerRef:f,contentRef:g,isOpen:x,onClose:k,renderChild:function(){return e("div",{className:G.menuContainer,ref:g,children:e(V,{children:a})})}})]})},X={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"},q=function(n){var o=n.shape,i=void 0===o?"square":o,t=n.size,l=void 0===t?"md":t,d=n.width,a=n.height;return e("div",{className:u(X,{container:!0},[X[i],X[l]]),style:{width:d,height:a}})},Z={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"},Q=function(i){var t=i.title,l=i.content,d=o(!1),a=d[0],r=d[1];return n("div",{className:u(Z,{container:!0,isOpen:a}),onClick:function(){return r(!a)},children:[n("div",{className:Z.header,children:[e("h3",{children:t}),e(s,{icon:a?w:N,size:"md"})]}),e("div",{className:Z.body,children:e("div",{className:Z.content,children:l})})]})},J={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW"},$=function(o){var i=o.hint,t=o.children,l=o.position,d=void 0===l?"top":l;return n("div",{className:J.tooltip,children:[!!i&&e("div",{className:"".concat(J.hint," ").concat(J[d]),children:i}),t]})},ee={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu"},ne={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm"},oe=function(o){var i=o.size,t=void 0===i?"md":i,l=o.title,d=o.subtitle;return n("div",{className:ne.heading,children:[e("div",{className:"".concat(ne.title," ").concat(ne[t]),children:l}),d&&e("div",{className:ne.subtitle,children:d})]})},ie=function(o){var i=o.title,t=o.subtitle,l=o.children,d=o.toolbar,a=o.footer,r=o.separated,_=void 0!==r&&r,c=o.borderTopWidth,s=o.borderTopColor,h=o.noBottomMargin,f=void 0!==h&&h,g=o.noBodyPadding,v=void 0!==g&&g,p=c?"".concat(c,"px solid ").concat(s):"none";return n("div",{className:u(ee,{card:!0,separated:_,noBottomMargin:f,noBodyPadding:v}),style:m({},c&&{borderTop:p}),children:[(d||i)&&n("div",{className:ee.header,children:[n("div",{className:ee.headerInfo,children:[i&&e("div",{className:ee.headerTitle,children:e(oe,{size:"sm",title:i})}),t&&e("div",{className:ee.headerSubtitle,children:t})]}),d&&e("div",{className:ee.headerToolbar,children:d})]}),e("div",{className:ee.body,children:l}),a&&e("div",{className:ee.footer,children:a})]})},te={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP"},le=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"}(z||(z={}));var de=function(i){var t=i.appName,d=o(!1),a=d[0],r=d[1];return l((function(){var e=le.getCookieBannerState();r(e!==z.SEEN)}),[]),a?n("div",{className:te.container,children:[n("div",{className:te.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:te.actions,children:e(O,{label:"Continue",onClick:function(){r(!1),le.saveCookieBannerState(z.SEEN)}})})]}):null},ae={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",flexWide:"Container-module_flexWide__UYxLw",slidein:"Container-module_slidein__2HqKN",fadeInOut:"Container-module_fadeInOut__OfzxZ",heightAnimation:"Container-module_heightAnimation__UR715",fadein:"Container-module_fadein__9rDYD",floatAnimation:"Container-module_floatAnimation__6Lcjo"},re=function(n){var o=n.className,i=void 0===o?"":o,t=n.children,l=n.noPadding;return e("div",{className:u(ae,{container:!0,noPadding:void 0!==l&&l},[i]),children:t})},_e="Header-module_header__qxHtx",ue="Header-module_content__DV-in",ce="Header-module_logo__xO2bW",se="Header-module_mobileLogo__eNvSP",me="Header-module_actions__ZlACk",he="Header-module_mobileMenuIcon__pFpba",fe="Header-module_menu__Yw9r6",ge="Header-module_mobileMenu__4S-NE",ve=function(i){var t=i.logo,l=i.menu,d=i.actions,a=void 0===d?null:d,r=o(!1),_=r[0],u=r[1];return n("header",{className:_e,children:[e(re,{children:n("div",{className:ue,children:[e("a",{href:"/",className:ce,children:t}),e("a",{href:"/",className:se,children:t}),!!l&&e("div",{className:fe,children:l}),n("div",{className:me,children:[a,!!l&&e("div",{className:he,children:e(T,{icon:_?p:A,onClick:function(){return u(!_)},size:"lg"})})]})]})}),_&&e("div",{className:ge,children:l})]})},pe={container:"Section-module_container__3n1V-",header:"Section-module_header__uP6hi",subtitle:"Section-module_subtitle__8Y9SH",gradient:"Section-module_gradient__xroL-",black:"Section-module_black__xbyiN",flexWide:"Section-module_flexWide__jFoW4",slidein:"Section-module_slidein__gRGLr",fadeInOut:"Section-module_fadeInOut__yLFY5",heightAnimation:"Section-module_heightAnimation__7ap3B",fadein:"Section-module_fadein__Jbv0F",floatAnimation:"Section-module_floatAnimation__g2TfT"},xe=function(o){var i=o.title,t=o.subtitle,l=o.theme,d=void 0===l?"light":l,a=o.children;return n("div",{className:u(pe,{container:!0},[pe[d]]),children:[n("div",{className:pe.header,children:[e("h2",{children:i}),!!t&&e("div",{className:pe.subtitle,children:t})]}),e("div",{className:pe.body,children:a})]})},Ie="FAQ-module_container__Kht11",ke=function(n){var o=n.items,i=n.title;return e(xe,{title:i||"Frequently asked questions",children:e("div",{className:Ie,children:o.map((function(n){var o=n.title,i=n.content;return e(Q,{title:o,content:i},o)}))})})},Ae={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"},Le=function(o){var i=o.domain,t=o.socialLinks,l=o.address,d=o.reportLabel,a=o.writeUsLabel,r=o.followUsLabel,_=o.addressLabel;return n("div",{className:Ae.container,children:[n("div",{className:Ae.contact,children:[e("div",{className:Ae.icon,children:e(s,{icon:L,size:"xl"})}),n("div",{className:Ae.content,children:[e("div",{className:Ae.title,children:d||"Report"}),e("div",{className:Ae.value,children:n("a",{href:"mailto:feedback@".concat(i),children:["feedback@",i]})})]})]}),n("div",{className:Ae.contact,children:[e("div",{className:Ae.icon,children:e(s,{icon:I,size:"xl"})}),n("div",{className:Ae.content,children:[e("div",{className:Ae.title,children:a||"Write us"}),e("div",{className:Ae.value,children:n("a",{href:"mailto:contact@".concat(i),children:["contact@",i]})})]})]}),n("div",{className:Ae.contact,children:[e("div",{className:Ae.icon,children:e(s,{icon:C,size:"xl"})}),n("div",{className:Ae.content,children:[e("div",{className:Ae.title,children:r||"Follow us"}),e("div",{className:Ae.value,children:e("ul",{children:t.map((function(n){var o=n.url,i=n.icon;return e("li",{children:e("a",{href:o,target:"_blank",children:e(s,{icon:i,size:"md"})})},o)}))})})]})]}),n("div",{className:Ae.contact,children:[e("div",{className:Ae.icon,children:e(s,{icon:k,size:"xl"})}),n("div",{className:Ae.content,children:[e("div",{className:Ae.title,children:_||"Address"}),e("div",{className:Ae.value,children:l})]})]})]})},we=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)},Ne=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i,Ce=function(e){return!!e&&Ne.test(e)};export{Q as Accordion,y as Avatar,O as Button,ie as Card,Le as ContactsList,re as Container,de as CookieBanner,K as DropDown,ke as FAQ,ve as Header,oe as Heading,T as IconButton,j as Input,S as InputType,H as Link,P as ListItem,q as LoadingItem,s as SVGIcon,xe as Section,$ as Tooltip,h as UIElementType,Ce as checkIsValidEmail,u as classNames,we as isEmpty,F as useClickOutside,Y 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 d,useCallback as a}from"react";import r from"react-dom";var _={avatar:"Avatar-module_avatar__5-kP8",image:"Avatar-module_image__HFFlp",clickable:"Avatar-module_clickable__DD7pl",editable:"Avatar-module_editable__CpXtw",editIcon:"Avatar-module_editIcon__ULUa1",overlay:"Avatar-module_overlay__d95aK",overlayText:"Avatar-module_overlayText__NgsFM",loading:"Avatar-module_loading__9gBDd",xxs:"Avatar-module_xxs__zCCH6",xs:"Avatar-module_xs__1SMBv",sm:"Avatar-module_sm__8TB22",md:"Avatar-module_md__zeW0d",lg:"Avatar-module_lg__MWKN-",xl:"Avatar-module_xl__KCqIL",xxl:"Avatar-module_xxl__ox6gi",xxxl:"Avatar-module_xxxl__9Cc7C",inline:"Avatar-module_inline__H0AhD",flexWide:"Avatar-module_flexWide__GQYaQ",slidein:"Avatar-module_slidein__KV8Ih",fadeInOut:"Avatar-module_fadeInOut__2M9tv",heightAnimation:"Avatar-module_heightAnimation__RCYYu",fadein:"Avatar-module_fadein__lENH2",floatAnimation:"Avatar-module_floatAnimation__PNWhi"},u=function(e,n,o){void 0===o&&(o=[]);var i=[];for(var t in n)n[t]&&i.push(e[t]);return(null==o?void 0:o.length)>0&&(i=i.concat(o)),i.join(" ")},c={container:"SVGIcon-module_container__z2RN5",isLoading:"SVGIcon-module_isLoading__8BhuU",fadeInOut:"SVGIcon-module_fadeInOut__EgbCf",flexWide:"SVGIcon-module_flexWide__IfOOF",slidein:"SVGIcon-module_slidein__RT6-4",heightAnimation:"SVGIcon-module_heightAnimation__CmY-x",fadein:"SVGIcon-module_fadein__Y2P5U",floatAnimation:"SVGIcon-module_floatAnimation__kH3Tr"},s=function(n){var o=n.icon,i=n.size,t=void 0===i?"sm":i,l=n.className,d=void 0===l?"":l,a=n.isLoading,r=void 0!==a&&a,_=function(e){switch(e){case"xxs":return 8;case"xs":return 12;case"sm":default:return 16;case"md":return 24;case"lg":return 32;case"xl":return 48;case"xxl":return 64;case"xxxl":return 128}}(t);return o?e("div",{className:u(c,{container:!0,isLoading:r},[d]),children:e(o,{className:d,width:_,height:_,viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid meet"})}):null},m=function(){return m=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},m.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var h,f=function(o){return n("svg",m({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",m({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"})}))},v=function(n){return e("svg",m({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"})}))},p=function(n){return e("svg",m({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"})}))},x=function(n){return e("svg",m({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"})}))},I=function(n){return e("svg",m({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 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})}))},k=function(n){return e("svg",m({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 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})}))},A=function(n){return e("svg",m({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"})}))},L=function(n){return e("svg",m({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 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})}))},w=function(n){return e("svg",m({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"})}))},N=function(n){return e("svg",m({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"})}))},C=function(n){return e("svg",m({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:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})}))},D=function(n){return e("svg",m({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"})}))},b=function(n){return e("svg",m({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"})}))},y=function(o){var i=o.source,t=void 0===i?null:i,l=o.alt,d=void 0===l?"avatar":l,a=o.size,r=void 0===a?"sm":a,c=o.onClick,m=o.className,h=o.isEditable,g=void 0!==h&&h,v=o.overlayIcon,p=o.inline,x=void 0!==p&&p,I=o.isLoading,k=void 0!==I&&I,A=o.overlayText,L=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:x,loading:k},[_[r],m]),onClick:c,style:{width:L(),height:L()},children:[t?e("img",{src:t,alt:d,className:_.image,width:L(),height:L()}):e(s,{size:r,icon:b}),g&&e("div",{className:_.editIcon,children:e(s,{isLoading:k,icon:k?D:f})}),(!!v||A)&&n("div",{className:_.overlay,children:[!!v&&e(s,{isLoading:k,icon:k?D:v}),!!A&&e("div",{className:_.overlayText,children:A})]})]})},B={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};!function(e){e.PRIMARY="primary",e.SECONDARY="secondary",e.DANGER="danger",e.SUCCESS="success",e.WARNING="warning",e.INFO="info",e.LIGHT="light",e.DEFAULT="default",e.DARK="dark",e.LIGHT_PRIMARY="lightPrimary",e.LIGHT_SUCCESS="lightSuccess",e.LIGHT_WARNING="lightWarning",e.LIGHT_INFO="lightInfo",e.LIGHT_DANGER="lightDanger",e.LIGHT_DARK="lightDark",e.LIGHT_SECONDARY="lightSecondary",e.WHITE_TEXT="whiteText",e.BORDERED_PRIMARY="borderedPrimary",e.BORDERED_SECONDARY="borderedSecondary"}(h||(h={}));var S,O=function(t){var l=t.type,d=void 0===l?h.PRIMARY:l,a=t.onClick,r=t.label,_=t.icon,c=t.fullWidth,m=void 0!==c&&c,f=t.isLoading,g=t.disabled,v=t.className,p=t.needConfirm,x=void 0!==p&&p,I=t.size,k=void 0===I?"md":I,A=o(!1),L=A[0],w=A[1];return n("div",{className:u(B,{container:!0,fullWidth:m}),children:[e("button",{className:u(B,{button:!0,loading:!!f},[B[d],B[k],v]),onClick:x?function(){return w(!L)}:a,disabled:f||g,children:f?e(i,{children:"Loading..."}):n("div",{className:B.label,children:[_&&e(s,{icon:_}),e("span",{children:r})]})}),L&&n("div",{className:B.confirm,children:[e("div",{className:B.confirmMessage,children:"Are you sure?"}),n("div",{className:B.confirmActions,children:[e(O,{type:h.DANGER,onClick:function(){return w(!1)},label:"No",size:"xs"}),e(O,{type:h.SUCCESS,onClick:function(){w(!1),a()},label:"Yes",size:"xs"})]})]})]})},W={iconButton:"IconButton-module_iconButton__PmpB8",noPadding:"IconButton-module_noPadding__Jd2rK",lg:"IconButton-module_lg__KG7lp",md:"IconButton-module_md__s4q7b",sm:"IconButton-module_sm__are9s",xs:"IconButton-module_xs__qYwZc",confirm:"IconButton-module_confirm__-jXH4",confirmActions:"IconButton-module_confirmActions__j7-Tt",bottom:"IconButton-module_bottom__AEpND",disabled:"IconButton-module_disabled__pLK-t",white:"IconButton-module_white__AzyNN",light:"IconButton-module_light__i3AET",active:"IconButton-module_active__popsF",lightDark:"IconButton-module_lightDark__d7NQy",lightDanger:"IconButton-module_lightDanger__bIg02",lightInfo:"IconButton-module_lightInfo__820It",lightPrimary:"IconButton-module_lightPrimary__SCrg-",lightSecondary:"IconButton-module_lightSecondary__vN-aS",lightWarning:"IconButton-module_lightWarning__z1iaR",lightSuccess:"IconButton-module_lightSuccess__mUSnD",primary:"IconButton-module_primary__qjfR5",secondary:"IconButton-module_secondary__-CufX",danger:"IconButton-module_danger__lz3tP",dark:"IconButton-module_dark__QiBJk",info:"IconButton-module_info__eawU-",success:"IconButton-module_success__xkDzZ",warning:"IconButton-module_warning__DhbfD",whiteText:"IconButton-module_whiteText__111Ju",default:"IconButton-module_default__j2U57",borderedPrimary:"IconButton-module_borderedPrimary__DHXJQ",borderedSecondary:"IconButton-module_borderedSecondary__13GNA",flexWide:"IconButton-module_flexWide__BGOfY",slidein:"IconButton-module_slidein__Rmpl5",fadeInOut:"IconButton-module_fadeInOut__Z2E5a",heightAnimation:"IconButton-module_heightAnimation__JnqnZ",fadein:"IconButton-module_fadein__uX9ut",floatAnimation:"IconButton-module_floatAnimation__N-INw"},T=function(i){var t=i.icon,l=i.onClick,d=i.type,a=void 0===d?h.DEFAULT:d,r=i.needConfirm,_=void 0!==r&&r,c=i.noPadding,m=void 0!==c&&c,f=i.isLoading,g=void 0!==f&&f,v=i.size,p=void 0===v?"sm":v,x=i.confirmPosition,I=void 0===x?"top":x,k=o(!1),A=k[0],L=k[1];return n("div",{className:u(W,{iconButton:!0,noPadding:m},[W[a],W[p]]),onClick:g?void 0:_?function(){return L(!A)}:l,children:[e(s,{isLoading:g,icon:t,size:p}),A&&n("div",{className:"".concat(W.confirm," ").concat(W[I]),children:[e("div",{className:W.confirmMessage,children:"Are you sure?"}),n("div",{className:W.confirmActions,children:[e(O,{type:h.DANGER,onClick:function(){return L(!1)},label:"No",size:"xs"}),e(O,{type:h.SUCCESS,onClick:l,label:"Yes",size:"xs"})]})]})]})},E={listItem:"ListItem-module_listItem__ljWE5",separator:"ListItem-module_separator__CIXS1",dashedSeparator:"ListItem-module_dashedSeparator__SYWNX",content:"ListItem-module_content__mPC1D",data:"ListItem-module_data__e0N6V",title:"ListItem-module_title__YkOz9",subtitle:"ListItem-module_subtitle__5flJp",indicator:"ListItem-module_indicator__BwMsO",success:"ListItem-module_success__lgO8z",info:"ListItem-module_info__MKMBu",warning:"ListItem-module_warning__8P-nA",danger:"ListItem-module_danger__sWYOu",primary:"ListItem-module_primary__-bA-W",completed:"ListItem-module_completed__ovBl4",flexWide:"ListItem-module_flexWide__-0Q5a",slidein:"ListItem-module_slidein__dGxX-",fadeInOut:"ListItem-module_fadeInOut__Yuwsd",heightAnimation:"ListItem-module_heightAnimation__aVO2o",fadein:"ListItem-module_fadein__GSr23",floatAnimation:"ListItem-module_floatAnimation__efvAy"},P=function(o){var i=o.title,t=o.subtitle,l=o.actionTitle,d=void 0===l?"":l,a=o.action,r=o.completed,_=o.indicator,c=o.hasSeparator,m=void 0!==c&&c,h=o.hasDashedSeparator,f=void 0!==h&&h,v=o.isActionPending,p=void 0!==v&&v;return n("div",{className:u(E,{listItem:!0,separator:m,dashedSeparator:f}),children:[n("div",{className:E.content,children:[_&&e("div",{className:u(E,{indicator:!0},[E[_]])}),n("div",{className:E.data,children:[e("div",{className:E.title,children:i}),t&&e("div",{className:E.subtitle,children:t})]})]}),a&&e(O,{onClick:a,className:E.action,label:d,isLoading:p}),r&&e("div",{className:E.completed,children:e(s,{icon:g})})]})},M={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",s:"Link-module_s__Ojcbu",m:"Link-module_m__KQ9M4",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"},H=function(o){var i=o.href,t=o.title,l=o.target,d=void 0===l?"_self":l,a=o.type,r=void 0===a?h.DEFAULT:a,_=o.padding,c=void 0===_?"zero":_,m=o.hasChevron,f=void 0!==m&&m,g=o.fullWidth;return n("a",{href:i,target:d,rel:"noopener noreferrer",className:u(M,{link:!0,fullWidth:void 0!==g&&g},[M[r],M[c]]),children:[e("span",{children:t})," ",f&&e(s,{icon:v})]})},R={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",addon:"Input-module_addon__1cKdz",pointer:"Input-module_pointer__EsKoB",error:"Input-module_error__38tit",avatar:"Input-module_avatar__GJUWC",autoCompleteContent:"Input-module_autoCompleteContent__4anQc",reversed:"Input-module_reversed__dU1hV",transparent:"Input-module_transparent__ko36m",small:"Input-module_small__5vYiK",xsmall:"Input-module_xsmall__-9hXW",hasAddon:"Input-module_hasAddon__mruPW",darkMode:"Input-module_darkMode__DLx4Y",flexWide:"Input-module_flexWide__4Wn1k",slidein:"Input-module_slidein__XYim1",fadeInOut:"Input-module_fadeInOut__bnAwc",heightAnimation:"Input-module_heightAnimation__tmt9Z",fadein:"Input-module_fadein__1HtqV",floatAnimation:"Input-module_floatAnimation__sYawG"};!function(e){e.TEXT="text",e.PASSWORD="password",e.EMAIL="email",e.NUMBER="number",e.URL="url",e.TEL="tel",e.DATE="date",e.DATETIME="datetime",e.SELECT="select",e.COLOR_PICKER="color-picker",e.TEXT_AREA="text-area",e.AVATAR_UPLOAD="avatar-upload",e.UPLOAD_IMAGE_ICON="upload-image-icon"}(S||(S={}));var z,j=t((function(o,t){var l=o.type,d=void 0===l?S.TEXT:l,a=o.label,r=o.placeholder,_=o.value,c=o.required,h=void 0!==c&&c,f=o.addonIcon,g=o.labelAddon,v=o.errorMessage,p=o.options,I=void 0===p?[]:p,k=o.fullWidth,A=o.avatarSize,L=o.source,w=o.autoCompleteContent,N=o.autoCompleteReverse,C=void 0!==N&&N,D=o.noMargin,b=void 0!==D&&D,B=o.isDisabled,O=void 0!==B&&B,W=o.isLoading,T=void 0!==W&&W,E=o.isMultiUpload,P=void 0!==E&&E,M=o.autoFocus,H=void 0!==M&&M,z=o.theme,j=void 0===z?"oval":z,G=o.size,F=void 0===G?"medium":G,Y=o.isDarkMode,U=void 0!==Y&&Y,V=o.onBlur,K=o.onFocus,X=o.onChange,q=o.addonAction,Z=o.onEnter,Q=o.onEsc,J=o.onFileSelect,$=o.onFilesSelect,ee=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","isDarkMode","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]),ne=O||T,oe=function(e){switch(e.key){case"Enter":Z&&Z();break;case"Escape":Q&&Q()}},ie=function(e){var n=e.target.files[0],o=new FileReader;o.onload=function(){J&&J(n,o.result)},o.readAsDataURL(n)},te=function(e){var n=e.target;$&&$(n.files)};return n("div",{className:u(R,{input:!0,full:!!k,noMargin:b,hasAddon:!!f,darkMode:U},[R[j],R[F]]),children:[a&&n("label",{children:[e("span",{className:h?R.required:"",children:a}),!!g&&e("div",{className:R.labelAddon,children:g})]}),e("div",{className:R.container,children:function(){switch(d){case S.SELECT:return n("select",m({className:R.field,value:_,onBlur:V,onFocus:K,onChange:X,ref:t},ee,{children:[e("option",{value:"",children:r}),I.map((function(n){var o=n.label,i=n.value;return e("option",{value:i,children:o},i)}))]}));case S.COLOR_PICKER:return e("input",m({className:"".concat(R.field," ").concat(R.colorPicker),type:"color",value:_,placeholder:r,onBlur:V,onFocus:K,onChange:X,disabled:ne,ref:t},ee));case S.TEXT_AREA:return e("textarea",m({className:R.field,value:_,placeholder:r,onBlur:V,onFocus:K,onChange:X,autoFocus:H,ref:t},ee));case S.AVATAR_UPLOAD:return n("label",{htmlFor:"avatar-upload",children:[e(y,{size:A,source:L,isLoading:T,isEditable:!0}),e("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:P?te:ie,ref:t,className:R.avatar,disabled:ne,multiple:P})]});case S.UPLOAD_IMAGE_ICON:return n("label",{htmlFor:"upload-image-icon",children:[e(s,{icon:x,isLoading:T,size:"md"}),e("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:P?te:ie,ref:t,className:R.avatar,disabled:ne,multiple:P})]});default:return n(i,{children:[e("input",m({className:R.field,type:d,placeholder:r,value:_,onBlur:V,onFocus:K,onChange:X,onKeyUp:oe,ref:t,disabled:ne,autoFocus:H},ee)),f&&e("div",{className:q?"".concat(R.addon," ").concat(R.pointer):R.addon,onClick:q,children:e(s,{icon:f,isLoading:T})})]})}}()}),!!v&&e("div",{className:R.error,children:v}),!!w&&e("div",{className:u(R,{autoCompleteContent:!0,reversed:C}),children:w})]})})),G={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5"},F=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)}}),[])},Y=function(e){var n=d(null),o=a((function(o){n.current&&!n.current.contains(o.target)&&e()}),[e]);return l((function(){return document.addEventListener("click",o),function(){document.removeEventListener("click",o)}}),[o]),n},U=function(n){var i=n.containerRef,t=n.contentRef,d=n.isOpen,a=void 0!==d&&d,_=n.renderChild,u=n.onClose,c={isOpen:!1,top:0,left:0,bottom:0,right:0},s=o(c),h=s[0],f=s[1],g={position:"absolute",top:h.top,left:h.left,bottom:h.bottom,right:h.right,zIndex:111},v=function(){f(c),u()};return F(i,(function(){return v()})),l((function(){if(a)return function(){var e,n,o,l,d,a,r,_=null!==(o=null===(n=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e.getBoundingClientRect)||void 0===n?void 0:n.call(e))&&void 0!==o?o:{top:0,left:0,height:0,width:0},u=_.top,c=_.left,s=_.height,h=_.width,g=window.innerHeight,v=window.innerWidth,p=g-(u+s),x=u,I=c,k=v-(c+h),A=null!==(d=null===(l=null==t?void 0:t.current)||void 0===l?void 0:l.clientHeight)&&void 0!==d?d:200,L=null!==(r=null===(a=null==t?void 0:t.current)||void 0===a?void 0:a.clientWidth)&&void 0!==r?r:200,w="auto",N="auto",C="auto",D="auto";p<A&&x>=A?D=g-u-s+20:N=u+s+5,k<L&&I>=L?C=v-c:w=c,f(m(m({},{top:N,left:w,right:C,bottom:D}),{isOpen:!0}))}();v()}),[a,null==i?void 0:i.current]),h.isOpen?r.createPortal(e("div",{style:g,onClick:function(e){e.stopPropagation()},children:_(h)}),document.getElementById("portals")):null},V=function(n){var o=n.children;return e("div",{className:G.menu,children:o})},K=function(i){var t=i.action,a=i.menu,r=i.type,_=void 0===r?h.DEFAULT:r,c=i.closeRef,s=i.actionSize,m=void 0===s?"medium":s,f=d(null),g=d(null),v=d(null),p=o(!1),x=p[0],I=p[1],k=function(){return I(!1)};return l((function(){(null==c?void 0:c.current)&&(c.current={close:function(){return k()}})}),[c]),n("div",{className:G.container,ref:f,children:[e("div",{className:u(G,{action:!0},[G[_],G[m]]),ref:v,onClick:function(){return I(!x)},children:t}),e(U,{containerRef:f,contentRef:g,isOpen:x,onClose:k,renderChild:function(){return e("div",{className:G.menuContainer,ref:g,children:e(V,{children:a})})}})]})},X={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"},q=function(n){var o=n.shape,i=void 0===o?"square":o,t=n.size,l=void 0===t?"md":t,d=n.width,a=n.height;return e("div",{className:u(X,{container:!0},[X[i],X[l]]),style:{width:d,height:a}})},Z={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"},Q=function(i){var t=i.title,l=i.content,d=o(!1),a=d[0],r=d[1];return n("div",{className:u(Z,{container:!0,isOpen:a}),onClick:function(){return r(!a)},children:[n("div",{className:Z.header,children:[e("h3",{children:t}),e(s,{icon:a?w:N,size:"md"})]}),e("div",{className:Z.body,children:e("div",{className:Z.content,children:l})})]})},J={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW"},$=function(o){var i=o.hint,t=o.children,l=o.position,d=void 0===l?"top":l;return n("div",{className:J.tooltip,children:[!!i&&e("div",{className:"".concat(J.hint," ").concat(J[d]),children:i}),t]})},ee={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu"},ne={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm"},oe=function(o){var i=o.size,t=void 0===i?"md":i,l=o.title,d=o.subtitle;return n("div",{className:ne.heading,children:[e("div",{className:"".concat(ne.title," ").concat(ne[t]),children:l}),d&&e("div",{className:ne.subtitle,children:d})]})},ie=function(o){var i=o.title,t=o.subtitle,l=o.children,d=o.toolbar,a=o.footer,r=o.separated,_=void 0!==r&&r,c=o.borderTopWidth,s=o.borderTopColor,h=o.noBottomMargin,f=void 0!==h&&h,g=o.noBodyPadding,v=void 0!==g&&g,p=c?"".concat(c,"px solid ").concat(s):"none";return n("div",{className:u(ee,{card:!0,separated:_,noBottomMargin:f,noBodyPadding:v}),style:m({},c&&{borderTop:p}),children:[(d||i)&&n("div",{className:ee.header,children:[n("div",{className:ee.headerInfo,children:[i&&e("div",{className:ee.headerTitle,children:e(oe,{size:"sm",title:i})}),t&&e("div",{className:ee.headerSubtitle,children:t})]}),d&&e("div",{className:ee.headerToolbar,children:d})]}),e("div",{className:ee.body,children:l}),a&&e("div",{className:ee.footer,children:a})]})},te={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP"},le=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"}(z||(z={}));var de=function(i){var t=i.appName,d=o(!1),a=d[0],r=d[1];return l((function(){var e=le.getCookieBannerState();r(e!==z.SEEN)}),[]),a?n("div",{className:te.container,children:[n("div",{className:te.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:te.actions,children:e(O,{label:"Continue",onClick:function(){r(!1),le.saveCookieBannerState(z.SEEN)}})})]}):null},ae={container:"Container-module_container__exPuE",noPadding:"Container-module_noPadding__lpIsj",flexWide:"Container-module_flexWide__UYxLw",slidein:"Container-module_slidein__2HqKN",fadeInOut:"Container-module_fadeInOut__OfzxZ",heightAnimation:"Container-module_heightAnimation__UR715",fadein:"Container-module_fadein__9rDYD",floatAnimation:"Container-module_floatAnimation__6Lcjo"},re=function(n){var o=n.className,i=void 0===o?"":o,t=n.children,l=n.noPadding;return e("div",{className:u(ae,{container:!0,noPadding:void 0!==l&&l},[i]),children:t})},_e="Header-module_header__qxHtx",ue="Header-module_content__DV-in",ce="Header-module_logo__xO2bW",se="Header-module_mobileLogo__eNvSP",me="Header-module_actions__ZlACk",he="Header-module_mobileMenuIcon__pFpba",fe="Header-module_menu__Yw9r6",ge="Header-module_mobileMenu__4S-NE",ve=function(i){var t=i.logo,l=i.menu,d=i.actions,a=void 0===d?null:d,r=o(!1),_=r[0],u=r[1];return n("header",{className:_e,children:[e(re,{children:n("div",{className:ue,children:[e("a",{href:"/",className:ce,children:t}),e("a",{href:"/",className:se,children:t}),!!l&&e("div",{className:fe,children:l}),n("div",{className:me,children:[a,!!l&&e("div",{className:he,children:e(T,{icon:_?p:A,onClick:function(){return u(!_)},size:"lg"})})]})]})}),_&&e("div",{className:ge,children:l})]})},pe={container:"Section-module_container__3n1V-",header:"Section-module_header__uP6hi",subtitle:"Section-module_subtitle__8Y9SH",gradient:"Section-module_gradient__xroL-",black:"Section-module_black__xbyiN",flexWide:"Section-module_flexWide__jFoW4",slidein:"Section-module_slidein__gRGLr",fadeInOut:"Section-module_fadeInOut__yLFY5",heightAnimation:"Section-module_heightAnimation__7ap3B",fadein:"Section-module_fadein__Jbv0F",floatAnimation:"Section-module_floatAnimation__g2TfT"},xe=function(o){var i=o.title,t=o.subtitle,l=o.theme,d=void 0===l?"light":l,a=o.children;return n("div",{className:u(pe,{container:!0},[pe[d]]),children:[n("div",{className:pe.header,children:[e("h2",{children:i}),!!t&&e("div",{className:pe.subtitle,children:t})]}),e("div",{className:pe.body,children:a})]})},Ie="FAQ-module_container__Kht11",ke=function(n){var o=n.items,i=n.title;return e(xe,{title:i||"Frequently asked questions",children:e("div",{className:Ie,children:o.map((function(n){var o=n.title,i=n.content;return e(Q,{title:o,content:i},o)}))})})},Ae={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"},Le=function(o){var i=o.domain,t=o.socialLinks,l=o.address,d=o.reportLabel,a=o.writeUsLabel,r=o.followUsLabel,_=o.addressLabel;return n("div",{className:Ae.container,children:[n("div",{className:Ae.contact,children:[e("div",{className:Ae.icon,children:e(s,{icon:L,size:"xl"})}),n("div",{className:Ae.content,children:[e("div",{className:Ae.title,children:d||"Report"}),e("div",{className:Ae.value,children:n("a",{href:"mailto:feedback@".concat(i),children:["feedback@",i]})})]})]}),n("div",{className:Ae.contact,children:[e("div",{className:Ae.icon,children:e(s,{icon:I,size:"xl"})}),n("div",{className:Ae.content,children:[e("div",{className:Ae.title,children:a||"Write us"}),e("div",{className:Ae.value,children:n("a",{href:"mailto:contact@".concat(i),children:["contact@",i]})})]})]}),n("div",{className:Ae.contact,children:[e("div",{className:Ae.icon,children:e(s,{icon:C,size:"xl"})}),n("div",{className:Ae.content,children:[e("div",{className:Ae.title,children:r||"Follow us"}),e("div",{className:Ae.value,children:e("ul",{children:t.map((function(n){var o=n.url,i=n.icon;return e("li",{children:e("a",{href:o,target:"_blank",children:e(s,{icon:i,size:"md"})})},o)}))})})]})]}),n("div",{className:Ae.contact,children:[e("div",{className:Ae.icon,children:e(s,{icon:k,size:"xl"})}),n("div",{className:Ae.content,children:[e("div",{className:Ae.title,children:_||"Address"}),e("div",{className:Ae.value,children:l})]})]})]})},we=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)},Ne=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i,Ce=function(e){return!!e&&Ne.test(e)};export{Q as Accordion,y as Avatar,O as Button,ie as Card,Le as ContactsList,re as Container,de as CookieBanner,K as DropDown,ke as FAQ,ve as Header,oe as Heading,T as IconButton,j as Input,S as InputType,H as Link,P as ListItem,q as LoadingItem,s as SVGIcon,xe as Section,$ as Tooltip,h as UIElementType,Ce as checkIsValidEmail,u as classNames,we as isEmpty,F as useClickOutside,Y 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"),n=require("react");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(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,n,o){void 0===o&&(o=[]);var t=[];for(var i in n)n[i]&&t.push(e[i]);return(null==o?void 0:o.length)>0&&(t=t.concat(o)),t.join(" ")},d={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"},a=function(n){var o=n.icon,t=n.size,i=void 0===t?"sm":t,a=n.className,r=void 0===a?"":a,s=n.isLoading,_=void 0!==s&&s,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 o?e.jsx("div",{className:l(d,{container:!0,isLoading:_},[r]),children:e.jsx(o,{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 n,o=1,t=arguments.length;o<t;o++)for(var i in n=arguments[o])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},r.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var s,_=function(n){return e.jsxs("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{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(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})}))},c=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})}))},m=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})}))},h=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{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"})}))},x=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})}))},f=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})}))},g=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})}))},p=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})}))},v=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})}))},I=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})}))},j=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})}))},k=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{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"})}))},A=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})}))},L=function(n){var o=n.source,t=void 0===o?null:o,d=n.alt,r=void 0===d?"avatar":d,s=n.size,u=void 0===s?"sm":s,c=n.onClick,m=n.className,h=n.isEditable,x=void 0!==h&&h,f=n.overlayIcon,g=n.inline,p=void 0!==g&&g,v=n.isLoading,I=void 0!==v&&v,j=n.overlayText,L=function(){switch(u){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return e.jsxs("div",{className:l(i,{avatar:!0,clickable:!!c||x,editable:x,inline:p,loading:I},[i[u],m]),onClick:c,style:{width:L(),height:L()},children:[t?e.jsx("img",{src:t,alt:r,className:i.image,width:L(),height:L()}):e.jsx(a,{size:u,icon:A}),x&&e.jsx("div",{className:i.editIcon,children:e.jsx(a,{isLoading:I,icon:I?k:_})}),(!!f||j)&&e.jsxs("div",{className:i.overlay,children:[!!f&&e.jsx(a,{isLoading:I,icon:I?k:f}),!!j&&e.jsx("div",{className:i.overlayText,children:j})]})]})},w={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};exports.UIElementType=void 0,(s=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",s.SECONDARY="secondary",s.DANGER="danger",s.SUCCESS="success",s.WARNING="warning",s.INFO="info",s.LIGHT="light",s.DEFAULT="default",s.DARK="dark",s.LIGHT_PRIMARY="lightPrimary",s.LIGHT_SUCCESS="lightSuccess",s.LIGHT_WARNING="lightWarning",s.LIGHT_INFO="lightInfo",s.LIGHT_DANGER="lightDanger",s.LIGHT_DARK="lightDark",s.LIGHT_SECONDARY="lightSecondary",s.WHITE_TEXT="whiteText",s.BORDERED_PRIMARY="borderedPrimary",s.BORDERED_SECONDARY="borderedSecondary";var y,N=function(o){var t=o.type,i=void 0===t?exports.UIElementType.PRIMARY:t,d=o.onClick,r=o.label,s=o.icon,_=o.fullWidth,u=void 0!==_&&_,c=o.isLoading,m=o.disabled,h=o.className,x=o.needConfirm,f=void 0!==x&&x,g=o.size,p=void 0===g?"md":g,v=n.useState(!1),I=v[0],j=v[1];return e.jsxs("div",{className:l(w,{container:!0,fullWidth:u}),children:[e.jsx("button",{className:l(w,{button:!0,loading:!!c},[w[i],w[p],h]),onClick:f?function(){return j(!I)}:d,disabled:c||m,children:c?e.jsx(n.Fragment,{children:"Loading..."}):e.jsxs("div",{className:w.label,children:[s&&e.jsx(a,{icon:s}),e.jsx("span",{children:r})]})}),I&&e.jsxs("div",{className:w.confirm,children:[e.jsx("div",{className:w.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:w.confirmActions,children:[e.jsx(N,{type:exports.UIElementType.DANGER,onClick:function(){return j(!1)},label:"No",size:"xs"}),e.jsx(N,{type:exports.UIElementType.SUCCESS,onClick:function(){j(!1),d()},label:"Yes",size:"xs"})]})]})]})},C={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"},D=function(o){var t=o.icon,i=o.onClick,d=o.type,r=void 0===d?exports.UIElementType.DEFAULT:d,s=o.needConfirm,_=void 0!==s&&s,u=o.noPadding,c=void 0!==u&&u,m=o.isLoading,h=void 0!==m&&m,x=o.size,f=void 0===x?"sm":x,g=o.confirmPosition,p=void 0===g?"top":g,v=n.useState(!1),I=v[0],j=v[1];return e.jsxs("div",{className:l(C,{iconButton:!0,noPadding:c},[C[r],C[f]]),onClick:h?void 0:_?function(){return j(!I)}:i,children:[e.jsx(a,{isLoading:h,icon:t,size:f}),I&&e.jsxs("div",{className:"".concat(C.confirm," ").concat(C[p]),children:[e.jsx("div",{className:C.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:C.confirmActions,children:[e.jsx(N,{type:exports.UIElementType.DANGER,onClick:function(){return j(!1)},label:"No",size:"xs"}),e.jsx(N,{type:exports.UIElementType.SUCCESS,onClick:i,label:"Yes",size:"xs"})]})]})]})},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"},B={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",s:"Link-module_s__Ojcbu",m:"Link-module_m__KQ9M4",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"},S={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",addon:"Input-module_addon__1cKdz",pointer:"Input-module_pointer__EsKoB",error:"Input-module_error__38tit",avatar:"Input-module_avatar__GJUWC",autoCompleteContent:"Input-module_autoCompleteContent__4anQc",reversed:"Input-module_reversed__dU1hV",transparent:"Input-module_transparent__ko36m",small:"Input-module_small__5vYiK",xsmall:"Input-module_xsmall__-9hXW",hasAddon:"Input-module_hasAddon__mruPW",darkMode:"Input-module_darkMode__DLx4Y",flexWide:"Input-module_flexWide__4Wn1k",slidein:"Input-module_slidein__XYim1",fadeInOut:"Input-module_fadeInOut__bnAwc",heightAnimation:"Input-module_heightAnimation__tmt9Z",fadein:"Input-module_fadein__1HtqV",floatAnimation:"Input-module_floatAnimation__sYawG"};exports.InputType=void 0,(y=exports.InputType||(exports.InputType={})).TEXT="text",y.PASSWORD="password",y.EMAIL="email",y.NUMBER="number",y.URL="url",y.TEL="tel",y.DATE="date",y.DATETIME="datetime",y.SELECT="select",y.COLOR_PICKER="color-picker",y.TEXT_AREA="text-area",y.AVATAR_UPLOAD="avatar-upload",y.UPLOAD_IMAGE_ICON="upload-image-icon";var T,O=n.forwardRef((function(o,t){var i=o.type,d=void 0===i?exports.InputType.TEXT:i,s=o.label,_=o.placeholder,u=o.value,c=o.required,m=void 0!==c&&c,x=o.addonIcon,f=o.labelAddon,g=o.errorMessage,p=o.options,v=void 0===p?[]:p,I=o.fullWidth,j=o.avatarSize,k=o.source,A=o.autoCompleteContent,w=o.autoCompleteReverse,y=void 0!==w&&w,N=o.noMargin,C=void 0!==N&&N,D=o.isDisabled,b=void 0!==D&&D,B=o.isLoading,T=void 0!==B&&B,O=o.isMultiUpload,W=void 0!==O&&O,E=o.autoFocus,P=void 0!==E&&E,M=o.theme,R=void 0===M?"oval":M,H=o.size,z=void 0===H?"medium":H,U=o.isDarkMode,G=void 0!==U&&U,F=o.onBlur,Y=o.onFocus,V=o.onChange,K=o.addonAction,X=o.onEnter,q=o.onEsc,Z=o.onFileSelect,Q=o.onFilesSelect,J=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(o[t[i]]=e[t[i]])}return o}(o,["type","label","placeholder","value","required","addonIcon","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]),$=b||T,ee=function(e){switch(e.key){case"Enter":X&&X();break;case"Escape":q&&q()}},ne=function(e){var n=e.target.files[0],o=new FileReader;o.onload=function(){Z&&Z(n,o.result)},o.readAsDataURL(n)},oe=function(e){var n=e.target;Q&&Q(n.files)};return e.jsxs("div",{className:l(S,{input:!0,full:!!I,noMargin:C,hasAddon:!!x,darkMode:G},[S[R],S[z]]),children:[s&&e.jsxs("label",{children:[e.jsx("span",{className:m?S.required:"",children:s}),!!f&&e.jsx("div",{className:S.labelAddon,children:f})]}),e.jsx("div",{className:S.container,children:function(){switch(d){case exports.InputType.SELECT:return e.jsxs("select",r({className:S.field,value:u,onBlur:F,onFocus:Y,onChange:V,ref:t},J,{children:[e.jsx("option",{value:"",children:_}),v.map((function(n){var o=n.label,t=n.value;return e.jsx("option",{value:t,children:o},t)}))]}));case exports.InputType.COLOR_PICKER:return e.jsx("input",r({className:"".concat(S.field," ").concat(S.colorPicker),type:"color",value:u,placeholder:_,onBlur:F,onFocus:Y,onChange:V,disabled:$,ref:t},J));case exports.InputType.TEXT_AREA:return e.jsx("textarea",r({className:S.field,value:u,placeholder:_,onBlur:F,onFocus:Y,onChange:V,autoFocus:P,ref:t},J));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(L,{size:j,source:k,isLoading:T,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:W?oe:ne,ref:t,className:S.avatar,disabled:$,multiple:W})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(a,{icon:h,isLoading:T,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:W?oe:ne,ref:t,className:S.avatar,disabled:$,multiple:W})]});default:return e.jsxs(n.Fragment,{children:[e.jsx("input",r({className:S.field,type:d,placeholder:_,value:u,onBlur:F,onFocus:Y,onChange:V,onKeyUp:ee,ref:t,disabled:$,autoFocus:P},J)),x&&e.jsx("div",{className:K?"".concat(S.addon," ").concat(S.pointer):S.addon,onClick:K,children:e.jsx(a,{icon:x,isLoading:T})})]})}}()}),!!g&&e.jsx("div",{className:S.error,children:g}),!!A&&e.jsx("div",{className:l(S,{autoCompleteContent:!0,reversed:y}),children:A})]})})),W={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5"},E=function(e,o){var t=function(n){e.current&&!e.current.contains(n.target)&&o()};n.useEffect((function(){return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}),[])},P=function(o){var i=o.containerRef,l=o.contentRef,d=o.isOpen,a=void 0!==d&&d,s=o.renderChild,_=o.onClose,u={isOpen:!1,top:0,left:0,bottom:0,right:0},c=n.useState(u),m=c[0],h=c[1],x=n.useState(!1),f=x[0],g=x[1],p={position:"absolute",top:m.top,left:m.left,bottom:m.bottom,right:m.right,zIndex:111},v=function(){h(u),_()};return E(i,(function(){return v()})),n.useEffect((function(){if(a)return function(){var e,n,o,t,d,a,s,_=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,x=_.width,f=window.innerHeight,g=window.innerWidth,p=f-(u+m),v=u,I=c,j=g-(c+x),k=null!==(d=null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.clientHeight)&&void 0!==d?d:200,A=null!==(s=null===(a=null==l?void 0:l.current)||void 0===a?void 0:a.clientWidth)&&void 0!==s?s:200,L="auto",w="auto",y="auto",N="auto";p<k&&v>=k?N=f-u-m+20:w=u+m+5,j<A&&I>=A?y=g-c:L=c,h(r(r({},{top:w,left:L,right:y,bottom:N}),{isOpen:!0}))}();v()}),[a,null==i?void 0:i.current]),n.useEffect((function(){return g(!0)}),[]),m.isOpen&&f?t.default.createPortal(e.jsx("div",{style:p,onClick:function(e){e.stopPropagation()},children:s(m)}),document.getElementById("portals")):null},M=function(n){var o=n.children;return e.jsx("div",{className:W.menu,children:o})},R={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"},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"},z=function(o){var t=o.title,i=o.content,d=n.useState(!1),r=d[0],s=d[1];return e.jsxs("div",{className:l(H,{container:!0,isOpen:r}),onClick:function(){return s(!r)},children:[e.jsxs("div",{className:H.header,children:[e.jsx("h3",{children:t}),e.jsx(a,{icon:r?v:I,size:"md"})]}),e.jsx("div",{className:H.body,children:e.jsx("div",{className:H.content,children:i})})]})},U={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW"},G={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu"},F={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm"},Y=function(n){var o=n.size,t=void 0===o?"md":o,i=n.title,l=n.subtitle;return e.jsxs("div",{className:F.heading,children:[e.jsx("div",{className:"".concat(F.title," ").concat(F[t]),children:i}),l&&e.jsx("div",{className:F.subtitle,children:l})]})},V={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP"},K=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"}(T||(T={}));var X={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"},q=function(n){var o=n.className,t=void 0===o?"":o,i=n.children,d=n.noPadding,a=void 0!==d&&d;return e.jsx("div",{className:l(X,{container:!0,noPadding:a},[t]),children:i})},Z="Header-module_header__qxHtx",Q="Header-module_content__DV-in",J="Header-module_logo__xO2bW",$="Header-module_mobileLogo__eNvSP",ee="Header-module_actions__ZlACk",ne="Header-module_mobileMenuIcon__pFpba",oe="Header-module_menu__Yw9r6",te="Header-module_mobileMenu__4S-NE",ie={container:"Section-module_container__3n1V-",header:"Section-module_header__uP6hi",subtitle:"Section-module_subtitle__8Y9SH",gradient:"Section-module_gradient__xroL-",black:"Section-module_black__xbyiN",flexWide:"Section-module_flexWide__jFoW4",slidein:"Section-module_slidein__gRGLr",fadeInOut:"Section-module_fadeInOut__yLFY5",heightAnimation:"Section-module_heightAnimation__7ap3B",fadein:"Section-module_fadein__Jbv0F",floatAnimation:"Section-module_floatAnimation__g2TfT"},le=function(n){var o=n.title,t=n.subtitle,i=n.theme,d=void 0===i?"light":i,a=n.children;return e.jsxs("div",{className:l(ie,{container:!0},[ie[d]]),children:[e.jsxs("div",{className:ie.header,children:[e.jsx("h2",{children:o}),!!t&&e.jsx("div",{className:ie.subtitle,children:t})]}),e.jsx("div",{className:ie.body,children:a})]})},de="FAQ-module_container__Kht11",ae={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"},re=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i;exports.Accordion=z,exports.Avatar=L,exports.Button=N,exports.Card=function(n){var o=n.title,t=n.subtitle,i=n.children,d=n.toolbar,a=n.footer,s=n.separated,_=void 0!==s&&s,u=n.borderTopWidth,c=n.borderTopColor,m=n.noBottomMargin,h=void 0!==m&&m,x=n.noBodyPadding,f=void 0!==x&&x,g=u?"".concat(u,"px solid ").concat(c):"none";return e.jsxs("div",{className:l(G,{card:!0,separated:_,noBottomMargin:h,noBodyPadding:f}),style:r({},u&&{borderTop:g}),children:[(d||o)&&e.jsxs("div",{className:G.header,children:[e.jsxs("div",{className:G.headerInfo,children:[o&&e.jsx("div",{className:G.headerTitle,children:e.jsx(Y,{size:"sm",title:o})}),t&&e.jsx("div",{className:G.headerSubtitle,children:t})]}),d&&e.jsx("div",{className:G.headerToolbar,children:d})]}),e.jsx("div",{className:G.body,children:i}),a&&e.jsx("div",{className:G.footer,children:a})]})},exports.ContactsList=function(n){var o=n.domain,t=n.socialLinks,i=n.address,l=n.reportLabel,d=n.writeUsLabel,r=n.followUsLabel,s=n.addressLabel;return e.jsxs("div",{className:ae.container,children:[e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(a,{icon:p,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:l||"Report"}),e.jsx("div",{className:ae.value,children:e.jsxs("a",{href:"mailto:feedback@".concat(o),children:["feedback@",o]})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(a,{icon:x,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:d||"Write us"}),e.jsx("div",{className:ae.value,children:e.jsxs("a",{href:"mailto:contact@".concat(o),children:["contact@",o]})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(a,{icon:j,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:r||"Follow us"}),e.jsx("div",{className:ae.value,children:e.jsx("ul",{children:t.map((function(n){var o=n.url,t=n.icon;return e.jsx("li",{children:e.jsx("a",{href:o,target:"_blank",children:e.jsx(a,{icon:t,size:"md"})})},o)}))})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(a,{icon:f,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:s||"Address"}),e.jsx("div",{className:ae.value,children:i})]})]})]})},exports.Container=q,exports.CookieBanner=function(o){var t=o.appName,i=n.useState(!1),l=i[0],d=i[1];return n.useEffect((function(){var e=K.getCookieBannerState();d(e!==T.SEEN)}),[]),l?e.jsxs("div",{className:V.container,children:[e.jsxs("div",{className:V.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:V.actions,children:e.jsx(N,{label:"Continue",onClick:function(){d(!1),K.saveCookieBannerState(T.SEEN)}})})]}):null},exports.DropDown=function(o){var t=o.action,i=o.menu,d=o.type,a=void 0===d?exports.UIElementType.DEFAULT:d,r=o.closeRef,s=o.actionSize,_=void 0===s?"medium":s,u=n.useRef(null),c=n.useRef(null),m=n.useRef(null),h=n.useState(!1),x=h[0],f=h[1],g=function(){return f(!1)};return n.useEffect((function(){(null==r?void 0:r.current)&&(r.current={close:function(){return g()}})}),[r]),e.jsxs("div",{className:W.container,ref:u,children:[e.jsx("div",{className:l(W,{action:!0},[W[a],W[_]]),ref:m,onClick:function(){return f(!x)},children:t}),e.jsx(P,{containerRef:u,contentRef:c,isOpen:x,onClose:g,renderChild:function(){return e.jsx("div",{className:W.menuContainer,ref:c,children:e.jsx(M,{children:i})})}})]})},exports.FAQ=function(n){var o=n.items,t=n.title;return e.jsx(le,{title:t||"Frequently asked questions",children:e.jsx("div",{className:de,children:o.map((function(n){var o=n.title,t=n.content;return e.jsx(z,{title:o,content:t},o)}))})})},exports.Header=function(o){var t=o.logo,i=o.menu,l=o.actions,d=void 0===l?null:l,a=n.useState(!1),r=a[0],s=a[1];return e.jsxs("header",{className:Z,children:[e.jsx(q,{children:e.jsxs("div",{className:Q,children:[e.jsx("a",{href:"/",className:J,children:t}),e.jsx("a",{href:"/",className:$,children:t}),!!i&&e.jsx("div",{className:oe,children:i}),e.jsxs("div",{className:ee,children:[d,!!i&&e.jsx("div",{className:ne,children:e.jsx(D,{icon:r?m:g,onClick:function(){return s(!r)},size:"lg"})})]})]})}),r&&e.jsx("div",{className:te,children:i})]})},exports.Heading=Y,exports.IconButton=D,exports.Input=O,exports.Link=function(n){var o=n.href,t=n.title,i=n.target,d=void 0===i?"_self":i,r=n.type,s=void 0===r?exports.UIElementType.DEFAULT:r,_=n.padding,u=void 0===_?"zero":_,m=n.hasChevron,h=void 0!==m&&m,x=n.fullWidth,f=void 0!==x&&x;return e.jsxs("a",{href:o,target:d,rel:"noopener noreferrer",className:l(B,{link:!0,fullWidth:f},[B[s],B[u]]),children:[e.jsx("span",{children:t})," ",h&&e.jsx(a,{icon:c})]})},exports.ListItem=function(n){var o=n.title,t=n.subtitle,i=n.actionTitle,d=void 0===i?"":i,r=n.action,s=n.completed,_=n.indicator,c=n.hasSeparator,m=void 0!==c&&c,h=n.hasDashedSeparator,x=void 0!==h&&h,f=n.isActionPending,g=void 0!==f&&f;return e.jsxs("div",{className:l(b,{listItem:!0,separator:m,dashedSeparator:x}),children:[e.jsxs("div",{className:b.content,children:[_&&e.jsx("div",{className:l(b,{indicator:!0},[b[_]])}),e.jsxs("div",{className:b.data,children:[e.jsx("div",{className:b.title,children:o}),t&&e.jsx("div",{className:b.subtitle,children:t})]})]}),r&&e.jsx(N,{onClick:r,className:b.action,label:d,isLoading:g}),s&&e.jsx("div",{className:b.completed,children:e.jsx(a,{icon:u})})]})},exports.LoadingItem=function(n){var o=n.shape,t=void 0===o?"square":o,i=n.size,d=void 0===i?"md":i,a=n.width,r=n.height;return e.jsx("div",{className:l(R,{container:!0},[R[t],R[d]]),style:{width:a,height:r}})},exports.SVGIcon=a,exports.Section=le,exports.Tooltip=function(n){var o=n.hint,t=n.children,i=n.position,l=void 0===i?"top":i;return e.jsxs("div",{className:U.tooltip,children:[!!o&&e.jsx("div",{className:"".concat(U.hint," ").concat(U[l]),children:o}),t]})},exports.checkIsValidEmail=function(e){return!!e&&re.test(e)},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=E,exports.useClickOutsideRef=function(e){var o=n.useRef(null),t=n.useCallback((function(n){o.current&&!o.current.contains(n.target)&&e()}),[e]);return n.useEffect((function(){return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}),[t]),o}; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),n=require("react");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=o(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,n,o){void 0===o&&(o=[]);var t=[];for(var i in n)n[i]&&t.push(e[i]);return(null==o?void 0:o.length)>0&&(t=t.concat(o)),t.join(" ")},d={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"},a=function(n){var o=n.icon,t=n.size,i=void 0===t?"sm":t,a=n.className,r=void 0===a?"":a,s=n.isLoading,_=void 0!==s&&s,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 o?e.jsx("div",{className:l(d,{container:!0,isLoading:_},[r]),children:e.jsx(o,{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 n,o=1,t=arguments.length;o<t;o++)for(var i in n=arguments[o])Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i]);return e},r.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var s,_=function(n){return e.jsxs("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{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(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M20 6 9 17l-5-5"})}))},c=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m9 18 6-6-6-6"})}))},m=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M18 6 6 18M6 6l12 12"})}))},h=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{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"})}))},x=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"m2 7 8.165 5.715c.661.463.992.695 1.351.784a2 2 0 0 0 .968 0c.36-.09.69-.32 1.351-.784L22 7M6.8 20h10.4c1.68 0 2.52 0 3.162-.327a3 3 0 0 0 1.311-1.311C22 17.72 22 16.88 22 15.2V8.8c0-1.68 0-2.52-.327-3.162a3 3 0 0 0-1.311-1.311C19.72 4 18.88 4 17.2 4H6.8c-1.68 0-2.52 0-3.162.327a3 3 0 0 0-1.311 1.311C2 6.28 2 7.12 2 8.8v6.4c0 1.68 0 2.52.327 3.162a3 3 0 0 0 1.311 1.311C4.28 20 5.12 20 6.8 20"})}))},f=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 14.286c-1.851.817-3 1.955-3 3.214C2 19.985 6.477 22 12 22s10-2.015 10-4.5c0-1.259-1.149-2.397-3-3.214M18 8c0 4.064-4.5 6-6 9-1.5-3-6-4.936-6-9a6 6 0 1 1 12 0m-5 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0"})}))},g=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3 12h18M3 6h18M3 18h18"})}))},p=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 9.5h4M8 13h7m-2.5 7a8.5 8.5 0 1 0-8.057-5.783c.108.32.162.481.172.604a.9.9 0 0 1-.028.326c-.03.12-.098.245-.232.494l-1.636 3.027c-.233.432-.35.648-.324.815a.5.5 0 0 0 .234.35c.144.087.388.062.876.011l5.121-.529c.155-.016.233-.024.303-.021s.12.009.187.024c.069.016.155.05.329.116A8.5 8.5 0 0 0 12.5 20"})}))},v=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 12h14"})}))},I=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 5v14m-7-7h14"})}))},j=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M7 22V11m-5 2v7a2 2 0 0 0 2 2h13.426a3 3 0 0 0 2.965-2.544l1.077-7A3 3 0 0 0 18.503 9H15a1 1 0 0 1-1-1V4.466A2.466 2.466 0 0 0 11.534 2a.82.82 0 0 0-.75.488l-3.52 7.918A1 1 0 0 1 6.35 11H4a2 2 0 0 0-2 2"})}))},k=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{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"})}))},A=function(n){return e.jsx("svg",r({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},n,{children:e.jsx("path",{stroke:"#000",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5.316 19.438A4 4 0 0 1 9 17h6a4 4 0 0 1 3.684 2.438M16 9.5a4 4 0 1 1-8 0 4 4 0 0 1 8 0m6 2.5c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10"})}))},L=function(n){var o=n.source,t=void 0===o?null:o,d=n.alt,r=void 0===d?"avatar":d,s=n.size,u=void 0===s?"sm":s,c=n.onClick,m=n.className,h=n.isEditable,x=void 0!==h&&h,f=n.overlayIcon,g=n.inline,p=void 0!==g&&g,v=n.isLoading,I=void 0!==v&&v,j=n.overlayText,L=function(){switch(u){case"xxxl":return 512;case"xxl":return 256;case"xl":return 128;case"lg":return 96;case"md":return 64;case"xs":return 32;case"xxs":return 24;default:return 48}};return e.jsxs("div",{className:l(i,{avatar:!0,clickable:!!c||x,editable:x,inline:p,loading:I},[i[u],m]),onClick:c,style:{width:L(),height:L()},children:[t?e.jsx("img",{src:t,alt:r,className:i.image,width:L(),height:L()}):e.jsx(a,{size:u,icon:A}),x&&e.jsx("div",{className:i.editIcon,children:e.jsx(a,{isLoading:I,icon:I?k:_})}),(!!f||j)&&e.jsxs("div",{className:i.overlay,children:[!!f&&e.jsx(a,{isLoading:I,icon:I?k:f}),!!j&&e.jsx("div",{className:i.overlayText,children:j})]})]})},w={container:"Button-module_container__0j8md",confirm:"Button-module_confirm__N5z4A",confirmActions:"Button-module_confirmActions__Xh7kN",button:"Button-module_button__18Bed",label:"Button-module_label__1PsXG",light:"Button-module_light__oUjYe",lightDark:"Button-module_lightDark__vucG6",active:"Button-module_active__UeHD7",lightDanger:"Button-module_lightDanger__aDpy8",lightInfo:"Button-module_lightInfo__oCfFI",lightPrimary:"Button-module_lightPrimary__f7-kQ",lightSecondary:"Button-module_lightSecondary__YK-QR",lightWarning:"Button-module_lightWarning__-Ogcg",lightSuccess:"Button-module_lightSuccess__gSt46",primary:"Button-module_primary__st6yY",secondary:"Button-module_secondary__j-3rj",danger:"Button-module_danger__Hxs5n",dark:"Button-module_dark__T7dl8",info:"Button-module_info__2z1ZG",success:"Button-module_success__CHTsg",warning:"Button-module_warning__1voOb",whiteText:"Button-module_whiteText__12xTM",default:"Button-module_default__TZZU2",borderedPrimary:"Button-module_borderedPrimary__KrZVT",borderedSecondary:"Button-module_borderedSecondary__UPNks",xs:"Button-module_xs__OaJDb",sm:"Button-module_sm__RXFPY",md:"Button-module_md__nDnOD",lg:"Button-module_lg__qD-Qh",xl:"Button-module_xl__S-bZp",xxl:"Button-module_xxl__J-6aP",fullWidth:"Button-module_fullWidth__AHpSl",flexWide:"Button-module_flexWide__xDrEF",slidein:"Button-module_slidein__ofhlO",fadeInOut:"Button-module_fadeInOut__nAOqm",heightAnimation:"Button-module_heightAnimation__fLFCd",fadein:"Button-module_fadein__pspkB",floatAnimation:"Button-module_floatAnimation__0PYtT"};exports.UIElementType=void 0,(s=exports.UIElementType||(exports.UIElementType={})).PRIMARY="primary",s.SECONDARY="secondary",s.DANGER="danger",s.SUCCESS="success",s.WARNING="warning",s.INFO="info",s.LIGHT="light",s.DEFAULT="default",s.DARK="dark",s.LIGHT_PRIMARY="lightPrimary",s.LIGHT_SUCCESS="lightSuccess",s.LIGHT_WARNING="lightWarning",s.LIGHT_INFO="lightInfo",s.LIGHT_DANGER="lightDanger",s.LIGHT_DARK="lightDark",s.LIGHT_SECONDARY="lightSecondary",s.WHITE_TEXT="whiteText",s.BORDERED_PRIMARY="borderedPrimary",s.BORDERED_SECONDARY="borderedSecondary";var y,N=function(o){var t=o.type,i=void 0===t?exports.UIElementType.PRIMARY:t,d=o.onClick,r=o.label,s=o.icon,_=o.fullWidth,u=void 0!==_&&_,c=o.isLoading,m=o.disabled,h=o.className,x=o.needConfirm,f=void 0!==x&&x,g=o.size,p=void 0===g?"md":g,v=n.useState(!1),I=v[0],j=v[1];return e.jsxs("div",{className:l(w,{container:!0,fullWidth:u}),children:[e.jsx("button",{className:l(w,{button:!0,loading:!!c},[w[i],w[p],h]),onClick:f?function(){return j(!I)}:d,disabled:c||m,children:c?e.jsx(n.Fragment,{children:"Loading..."}):e.jsxs("div",{className:w.label,children:[s&&e.jsx(a,{icon:s}),e.jsx("span",{children:r})]})}),I&&e.jsxs("div",{className:w.confirm,children:[e.jsx("div",{className:w.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:w.confirmActions,children:[e.jsx(N,{type:exports.UIElementType.DANGER,onClick:function(){return j(!1)},label:"No",size:"xs"}),e.jsx(N,{type:exports.UIElementType.SUCCESS,onClick:function(){j(!1),d()},label:"Yes",size:"xs"})]})]})]})},C={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"},D=function(o){var t=o.icon,i=o.onClick,d=o.type,r=void 0===d?exports.UIElementType.DEFAULT:d,s=o.needConfirm,_=void 0!==s&&s,u=o.noPadding,c=void 0!==u&&u,m=o.isLoading,h=void 0!==m&&m,x=o.size,f=void 0===x?"sm":x,g=o.confirmPosition,p=void 0===g?"top":g,v=n.useState(!1),I=v[0],j=v[1];return e.jsxs("div",{className:l(C,{iconButton:!0,noPadding:c},[C[r],C[f]]),onClick:h?void 0:_?function(){return j(!I)}:i,children:[e.jsx(a,{isLoading:h,icon:t,size:f}),I&&e.jsxs("div",{className:"".concat(C.confirm," ").concat(C[p]),children:[e.jsx("div",{className:C.confirmMessage,children:"Are you sure?"}),e.jsxs("div",{className:C.confirmActions,children:[e.jsx(N,{type:exports.UIElementType.DANGER,onClick:function(){return j(!1)},label:"No",size:"xs"}),e.jsx(N,{type:exports.UIElementType.SUCCESS,onClick:i,label:"Yes",size:"xs"})]})]})]})},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"},B={link:"Link-module_link__35Vo1",fullWidth:"Link-module_fullWidth__eg45D",zero:"Link-module_zero__e-EXa",xxs:"Link-module_xxs__DLzl2",xs:"Link-module_xs__K3V8L",s:"Link-module_s__Ojcbu",m:"Link-module_m__KQ9M4",lg:"Link-module_lg__R71ff",xl:"Link-module_xl__q05MB",xxl:"Link-module_xxl__VZVxK",xxxl:"Link-module_xxxl__91qsW",light:"Link-module_light__Ji8kV",active:"Link-module_active__iCkL0",lightDark:"Link-module_lightDark__1fDCG",lightDanger:"Link-module_lightDanger__lB9Tb",lightInfo:"Link-module_lightInfo__h5lfu",lightPrimary:"Link-module_lightPrimary__aZxve",lightSecondary:"Link-module_lightSecondary__QHh0c",lightWarning:"Link-module_lightWarning__iOuMw",lightSuccess:"Link-module_lightSuccess__zDBp0",primary:"Link-module_primary__CE3uj",secondary:"Link-module_secondary__KSolI",danger:"Link-module_danger__ugf9r",dark:"Link-module_dark__ap0Ls",info:"Link-module_info__9skpg",success:"Link-module_success__DwP-V",warning:"Link-module_warning__FhhXi",whiteText:"Link-module_whiteText__t7SOQ",default:"Link-module_default__3TBlr",borderedPrimary:"Link-module_borderedPrimary__RfPen",borderedSecondary:"Link-module_borderedSecondary__xTeGX",flexWide:"Link-module_flexWide__3A6ZB",slidein:"Link-module_slidein__kBzO4",fadeInOut:"Link-module_fadeInOut__zas8c",heightAnimation:"Link-module_heightAnimation__N7y-w",fadein:"Link-module_fadein__WxUdb",floatAnimation:"Link-module_floatAnimation__XrwU5"},S={input:"Input-module_input__505b7",full:"Input-module_full__h2smD",noMargin:"Input-module_noMargin__ysWuN",container:"Input-module_container__itXJp",colorPicker:"Input-module_colorPicker__Efa-c",required:"Input-module_required__kHc93",addon:"Input-module_addon__1cKdz",pointer:"Input-module_pointer__EsKoB",error:"Input-module_error__38tit",avatar:"Input-module_avatar__GJUWC",autoCompleteContent:"Input-module_autoCompleteContent__4anQc",reversed:"Input-module_reversed__dU1hV",transparent:"Input-module_transparent__ko36m",small:"Input-module_small__5vYiK",xsmall:"Input-module_xsmall__-9hXW",hasAddon:"Input-module_hasAddon__mruPW",darkMode:"Input-module_darkMode__DLx4Y",flexWide:"Input-module_flexWide__4Wn1k",slidein:"Input-module_slidein__XYim1",fadeInOut:"Input-module_fadeInOut__bnAwc",heightAnimation:"Input-module_heightAnimation__tmt9Z",fadein:"Input-module_fadein__1HtqV",floatAnimation:"Input-module_floatAnimation__sYawG"};exports.InputType=void 0,(y=exports.InputType||(exports.InputType={})).TEXT="text",y.PASSWORD="password",y.EMAIL="email",y.NUMBER="number",y.URL="url",y.TEL="tel",y.DATE="date",y.DATETIME="datetime",y.SELECT="select",y.COLOR_PICKER="color-picker",y.TEXT_AREA="text-area",y.AVATAR_UPLOAD="avatar-upload",y.UPLOAD_IMAGE_ICON="upload-image-icon";var T,O=n.forwardRef((function(o,t){var i=o.type,d=void 0===i?exports.InputType.TEXT:i,s=o.label,_=o.placeholder,u=o.value,c=o.required,m=void 0!==c&&c,x=o.addonIcon,f=o.labelAddon,g=o.errorMessage,p=o.options,v=void 0===p?[]:p,I=o.fullWidth,j=o.avatarSize,k=o.source,A=o.autoCompleteContent,w=o.autoCompleteReverse,y=void 0!==w&&w,N=o.noMargin,C=void 0!==N&&N,D=o.isDisabled,b=void 0!==D&&D,B=o.isLoading,T=void 0!==B&&B,O=o.isMultiUpload,W=void 0!==O&&O,E=o.autoFocus,P=void 0!==E&&E,M=o.theme,R=void 0===M?"oval":M,H=o.size,z=void 0===H?"medium":H,U=o.isDarkMode,G=void 0!==U&&U,F=o.onBlur,Y=o.onFocus,V=o.onChange,K=o.addonAction,X=o.onEnter,q=o.onEsc,Z=o.onFileSelect,Q=o.onFilesSelect,J=function(e,n){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.indexOf(t)<0&&(o[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)n.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(o[t[i]]=e[t[i]])}return o}(o,["type","label","placeholder","value","required","addonIcon","labelAddon","errorMessage","options","fullWidth","avatarSize","source","autoCompleteContent","autoCompleteReverse","noMargin","isDisabled","isLoading","isMultiUpload","autoFocus","theme","size","isDarkMode","onBlur","onFocus","onChange","addonAction","onEnter","onEsc","onFileSelect","onFilesSelect"]),$=b||T,ee=function(e){switch(e.key){case"Enter":X&&X();break;case"Escape":q&&q()}},ne=function(e){var n=e.target.files[0],o=new FileReader;o.onload=function(){Z&&Z(n,o.result)},o.readAsDataURL(n)},oe=function(e){var n=e.target;Q&&Q(n.files)};return e.jsxs("div",{className:l(S,{input:!0,full:!!I,noMargin:C,hasAddon:!!x,darkMode:G},[S[R],S[z]]),children:[s&&e.jsxs("label",{children:[e.jsx("span",{className:m?S.required:"",children:s}),!!f&&e.jsx("div",{className:S.labelAddon,children:f})]}),e.jsx("div",{className:S.container,children:function(){switch(d){case exports.InputType.SELECT:return e.jsxs("select",r({className:S.field,value:u,onBlur:F,onFocus:Y,onChange:V,ref:t},J,{children:[e.jsx("option",{value:"",children:_}),v.map((function(n){var o=n.label,t=n.value;return e.jsx("option",{value:t,children:o},t)}))]}));case exports.InputType.COLOR_PICKER:return e.jsx("input",r({className:"".concat(S.field," ").concat(S.colorPicker),type:"color",value:u,placeholder:_,onBlur:F,onFocus:Y,onChange:V,disabled:$,ref:t},J));case exports.InputType.TEXT_AREA:return e.jsx("textarea",r({className:S.field,value:u,placeholder:_,onBlur:F,onFocus:Y,onChange:V,autoFocus:P,ref:t},J));case exports.InputType.AVATAR_UPLOAD:return e.jsxs("label",{htmlFor:"avatar-upload",children:[e.jsx(L,{size:j,source:k,isLoading:T,isEditable:!0}),e.jsx("input",{type:"file",name:"avatar-upload",id:"avatar-upload",accept:"image/*",onChange:W?oe:ne,ref:t,className:S.avatar,disabled:$,multiple:W})]});case exports.InputType.UPLOAD_IMAGE_ICON:return e.jsxs("label",{htmlFor:"upload-image-icon",children:[e.jsx(a,{icon:h,isLoading:T,size:"md"}),e.jsx("input",{type:"file",name:"upload-image-icon",id:"upload-image-icon",accept:"image/*",onChange:W?oe:ne,ref:t,className:S.avatar,disabled:$,multiple:W})]});default:return e.jsxs(n.Fragment,{children:[e.jsx("input",r({className:S.field,type:d,placeholder:_,value:u,onBlur:F,onFocus:Y,onChange:V,onKeyUp:ee,ref:t,disabled:$,autoFocus:P},J)),x&&e.jsx("div",{className:K?"".concat(S.addon," ").concat(S.pointer):S.addon,onClick:K,children:e.jsx(a,{icon:x,isLoading:T})})]})}}()}),!!g&&e.jsx("div",{className:S.error,children:g}),!!A&&e.jsx("div",{className:l(S,{autoCompleteContent:!0,reversed:y}),children:A})]})})),W={menu:"DropDown-module_menu__gRW7p",container:"DropDown-module_container__ms9Bn",action:"DropDown-module_action__D8KuY",light:"DropDown-module_light__6NSjI",active:"DropDown-module_active__rGcA2",lightDark:"DropDown-module_lightDark__Ctspk",lightDanger:"DropDown-module_lightDanger__FaZ6G",lightInfo:"DropDown-module_lightInfo__DMaJO",lightPrimary:"DropDown-module_lightPrimary__sobOp",lightSecondary:"DropDown-module_lightSecondary__PB0m-",lightWarning:"DropDown-module_lightWarning__mkeGN",lightSuccess:"DropDown-module_lightSuccess__QNoVS",primary:"DropDown-module_primary__9-x6Y",secondary:"DropDown-module_secondary__HBses",danger:"DropDown-module_danger__ZbPY6",dark:"DropDown-module_dark__3YhdZ",info:"DropDown-module_info__5qwW6",success:"DropDown-module_success__NbhHj",warning:"DropDown-module_warning__MrYwV",whiteText:"DropDown-module_whiteText__eVLut",default:"DropDown-module_default__D0DNi",borderedPrimary:"DropDown-module_borderedPrimary__oTb-J",borderedSecondary:"DropDown-module_borderedSecondary__GqWsA",xsmall:"DropDown-module_xsmall__Mc6Zx",small:"DropDown-module_small__Goyza",large:"DropDown-module_large__P5F--",flexWide:"DropDown-module_flexWide__ySVZv",slidein:"DropDown-module_slidein__ZYDXA",fadeInOut:"DropDown-module_fadeInOut__hjIWL",heightAnimation:"DropDown-module_heightAnimation__EUum9",fadein:"DropDown-module_fadein__D2VO0",floatAnimation:"DropDown-module_floatAnimation__z5DD5"},E=function(e,o){var t=function(n){e.current&&!e.current.contains(n.target)&&o()};n.useEffect((function(){return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}),[])},P=function(o){var i=o.containerRef,l=o.contentRef,d=o.isOpen,a=void 0!==d&&d,s=o.renderChild,_=o.onClose,u={isOpen:!1,top:0,left:0,bottom:0,right:0},c=n.useState(u),m=c[0],h=c[1],x={position:"absolute",top:m.top,left:m.left,bottom:m.bottom,right:m.right,zIndex:111},f=function(){h(u),_()};return E(i,(function(){return f()})),n.useEffect((function(){if(a)return function(){var e,n,o,t,d,a,s,_=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,x=_.width,f=window.innerHeight,g=window.innerWidth,p=f-(u+m),v=u,I=c,j=g-(c+x),k=null!==(d=null===(t=null==l?void 0:l.current)||void 0===t?void 0:t.clientHeight)&&void 0!==d?d:200,A=null!==(s=null===(a=null==l?void 0:l.current)||void 0===a?void 0:a.clientWidth)&&void 0!==s?s:200,L="auto",w="auto",y="auto",N="auto";p<k&&v>=k?N=f-u-m+20:w=u+m+5,j<A&&I>=A?y=g-c:L=c,h(r(r({},{top:w,left:L,right:y,bottom:N}),{isOpen:!0}))}();f()}),[a,null==i?void 0:i.current]),m.isOpen?t.default.createPortal(e.jsx("div",{style:x,onClick:function(e){e.stopPropagation()},children:s(m)}),document.getElementById("portals")):null},M=function(n){var o=n.children;return e.jsx("div",{className:W.menu,children:o})},R={container:"LoadingItem-module_container__ujRaI",fadeInOut:"LoadingItem-module_fadeInOut__HDJT8",square:"LoadingItem-module_square__OucYB",xxs:"LoadingItem-module_xxs__kTYcZ",xs:"LoadingItem-module_xs__sISZM",sm:"LoadingItem-module_sm__hsDHD",md:"LoadingItem-module_md__bU5yA",lg:"LoadingItem-module_lg__9sK4b",xl:"LoadingItem-module_xl__O0kH8",xxl:"LoadingItem-module_xxl__tIjdb",xxxl:"LoadingItem-module_xxxl__h73z5",xxxxl:"LoadingItem-module_xxxxl__XTzwy",flexWide:"LoadingItem-module_flexWide__sIJC3",slidein:"LoadingItem-module_slidein__8J982",heightAnimation:"LoadingItem-module_heightAnimation__cUh26",fadein:"LoadingItem-module_fadein__-CmLg",floatAnimation:"LoadingItem-module_floatAnimation__gQ2jh"},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"},z=function(o){var t=o.title,i=o.content,d=n.useState(!1),r=d[0],s=d[1];return e.jsxs("div",{className:l(H,{container:!0,isOpen:r}),onClick:function(){return s(!r)},children:[e.jsxs("div",{className:H.header,children:[e.jsx("h3",{children:t}),e.jsx(a,{icon:r?v:I,size:"md"})]}),e.jsx("div",{className:H.body,children:e.jsx("div",{className:H.content,children:i})})]})},U={tooltip:"Tooltip-module_tooltip__LjRUX",hint:"Tooltip-module_hint__ZdhCh",top:"Tooltip-module_top__HZqEk",bottom:"Tooltip-module_bottom__hrxCa",right:"Tooltip-module_right__LGQTD",left:"Tooltip-module_left__-LZ0w",flexWide:"Tooltip-module_flexWide__dQnBf",slidein:"Tooltip-module_slidein__Yziit",fadeInOut:"Tooltip-module_fadeInOut__glWW2",heightAnimation:"Tooltip-module_heightAnimation__5cr8-",fadein:"Tooltip-module_fadein__NGjXx",floatAnimation:"Tooltip-module_floatAnimation__R4QxW"},G={card:"Card-module_card__LzN-3",header:"Card-module_header__j-c-9",subtitle:"Card-module_subtitle__RVMlO",body:"Card-module_body__v78vB",footer:"Card-module_footer__FjLbG",separated:"Card-module_separated__XYi-z",noBottomMargin:"Card-module_noBottomMargin__X7Gc1",noBodyPadding:"Card-module_noBodyPadding__Qwkyx",flexWide:"Card-module_flexWide__qc7xl",slidein:"Card-module_slidein__9OQew",fadeInOut:"Card-module_fadeInOut__nlrXf",heightAnimation:"Card-module_heightAnimation__edaK-",fadein:"Card-module_fadein__8Bpsl",floatAnimation:"Card-module_floatAnimation__fuwcu"},F={heading:"Heading-module_heading__zKyv7",title:"Heading-module_title__poNb0",xl:"Heading-module_xl__EUHx8",lg:"Heading-module_lg__BzP-H",md:"Heading-module_md__etFxz",sm:"Heading-module_sm__DW8pt",xs:"Heading-module_xs__1cGtZ",subtitle:"Heading-module_subtitle__siosa",flexWide:"Heading-module_flexWide__kdze4",slidein:"Heading-module_slidein__aveKx",fadeInOut:"Heading-module_fadeInOut__-4cOS",heightAnimation:"Heading-module_heightAnimation__r9l4u",fadein:"Heading-module_fadein__yua3s",floatAnimation:"Heading-module_floatAnimation__OA9Sm"},Y=function(n){var o=n.size,t=void 0===o?"md":o,i=n.title,l=n.subtitle;return e.jsxs("div",{className:F.heading,children:[e.jsx("div",{className:"".concat(F.title," ").concat(F[t]),children:i}),l&&e.jsx("div",{className:F.subtitle,children:l})]})},V={container:"CookieBanner-module_container__4UQ-V",content:"CookieBanner-module_content__upuyM",flexWide:"CookieBanner-module_flexWide__Vft50",slidein:"CookieBanner-module_slidein__NxJr8",fadeInOut:"CookieBanner-module_fadeInOut__4-sCu",heightAnimation:"CookieBanner-module_heightAnimation__vqvzX",fadein:"CookieBanner-module_fadein__-ogfe",floatAnimation:"CookieBanner-module_floatAnimation__UCwtP"},K=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"}(T||(T={}));var X={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"},q=function(n){var o=n.className,t=void 0===o?"":o,i=n.children,d=n.noPadding,a=void 0!==d&&d;return e.jsx("div",{className:l(X,{container:!0,noPadding:a},[t]),children:i})},Z="Header-module_header__qxHtx",Q="Header-module_content__DV-in",J="Header-module_logo__xO2bW",$="Header-module_mobileLogo__eNvSP",ee="Header-module_actions__ZlACk",ne="Header-module_mobileMenuIcon__pFpba",oe="Header-module_menu__Yw9r6",te="Header-module_mobileMenu__4S-NE",ie={container:"Section-module_container__3n1V-",header:"Section-module_header__uP6hi",subtitle:"Section-module_subtitle__8Y9SH",gradient:"Section-module_gradient__xroL-",black:"Section-module_black__xbyiN",flexWide:"Section-module_flexWide__jFoW4",slidein:"Section-module_slidein__gRGLr",fadeInOut:"Section-module_fadeInOut__yLFY5",heightAnimation:"Section-module_heightAnimation__7ap3B",fadein:"Section-module_fadein__Jbv0F",floatAnimation:"Section-module_floatAnimation__g2TfT"},le=function(n){var o=n.title,t=n.subtitle,i=n.theme,d=void 0===i?"light":i,a=n.children;return e.jsxs("div",{className:l(ie,{container:!0},[ie[d]]),children:[e.jsxs("div",{className:ie.header,children:[e.jsx("h2",{children:o}),!!t&&e.jsx("div",{className:ie.subtitle,children:t})]}),e.jsx("div",{className:ie.body,children:a})]})},de="FAQ-module_container__Kht11",ae={container:"ContactsList-module_container__rwdG-",contact:"ContactsList-module_contact__S5Q5T",title:"ContactsList-module_title__2h1V2",value:"ContactsList-module_value__JksBF",flexWide:"ContactsList-module_flexWide__y3ESG",slidein:"ContactsList-module_slidein__WCW87",fadeInOut:"ContactsList-module_fadeInOut__SFFum",heightAnimation:"ContactsList-module_heightAnimation__wjNjX",fadein:"ContactsList-module_fadein__CVVKr",floatAnimation:"ContactsList-module_floatAnimation__JNgpI"},re=/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/i;exports.Accordion=z,exports.Avatar=L,exports.Button=N,exports.Card=function(n){var o=n.title,t=n.subtitle,i=n.children,d=n.toolbar,a=n.footer,s=n.separated,_=void 0!==s&&s,u=n.borderTopWidth,c=n.borderTopColor,m=n.noBottomMargin,h=void 0!==m&&m,x=n.noBodyPadding,f=void 0!==x&&x,g=u?"".concat(u,"px solid ").concat(c):"none";return e.jsxs("div",{className:l(G,{card:!0,separated:_,noBottomMargin:h,noBodyPadding:f}),style:r({},u&&{borderTop:g}),children:[(d||o)&&e.jsxs("div",{className:G.header,children:[e.jsxs("div",{className:G.headerInfo,children:[o&&e.jsx("div",{className:G.headerTitle,children:e.jsx(Y,{size:"sm",title:o})}),t&&e.jsx("div",{className:G.headerSubtitle,children:t})]}),d&&e.jsx("div",{className:G.headerToolbar,children:d})]}),e.jsx("div",{className:G.body,children:i}),a&&e.jsx("div",{className:G.footer,children:a})]})},exports.ContactsList=function(n){var o=n.domain,t=n.socialLinks,i=n.address,l=n.reportLabel,d=n.writeUsLabel,r=n.followUsLabel,s=n.addressLabel;return e.jsxs("div",{className:ae.container,children:[e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(a,{icon:p,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:l||"Report"}),e.jsx("div",{className:ae.value,children:e.jsxs("a",{href:"mailto:feedback@".concat(o),children:["feedback@",o]})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(a,{icon:x,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:d||"Write us"}),e.jsx("div",{className:ae.value,children:e.jsxs("a",{href:"mailto:contact@".concat(o),children:["contact@",o]})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(a,{icon:j,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:r||"Follow us"}),e.jsx("div",{className:ae.value,children:e.jsx("ul",{children:t.map((function(n){var o=n.url,t=n.icon;return e.jsx("li",{children:e.jsx("a",{href:o,target:"_blank",children:e.jsx(a,{icon:t,size:"md"})})},o)}))})})]})]}),e.jsxs("div",{className:ae.contact,children:[e.jsx("div",{className:ae.icon,children:e.jsx(a,{icon:f,size:"xl"})}),e.jsxs("div",{className:ae.content,children:[e.jsx("div",{className:ae.title,children:s||"Address"}),e.jsx("div",{className:ae.value,children:i})]})]})]})},exports.Container=q,exports.CookieBanner=function(o){var t=o.appName,i=n.useState(!1),l=i[0],d=i[1];return n.useEffect((function(){var e=K.getCookieBannerState();d(e!==T.SEEN)}),[]),l?e.jsxs("div",{className:V.container,children:[e.jsxs("div",{className:V.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:V.actions,children:e.jsx(N,{label:"Continue",onClick:function(){d(!1),K.saveCookieBannerState(T.SEEN)}})})]}):null},exports.DropDown=function(o){var t=o.action,i=o.menu,d=o.type,a=void 0===d?exports.UIElementType.DEFAULT:d,r=o.closeRef,s=o.actionSize,_=void 0===s?"medium":s,u=n.useRef(null),c=n.useRef(null),m=n.useRef(null),h=n.useState(!1),x=h[0],f=h[1],g=function(){return f(!1)};return n.useEffect((function(){(null==r?void 0:r.current)&&(r.current={close:function(){return g()}})}),[r]),e.jsxs("div",{className:W.container,ref:u,children:[e.jsx("div",{className:l(W,{action:!0},[W[a],W[_]]),ref:m,onClick:function(){return f(!x)},children:t}),e.jsx(P,{containerRef:u,contentRef:c,isOpen:x,onClose:g,renderChild:function(){return e.jsx("div",{className:W.menuContainer,ref:c,children:e.jsx(M,{children:i})})}})]})},exports.FAQ=function(n){var o=n.items,t=n.title;return e.jsx(le,{title:t||"Frequently asked questions",children:e.jsx("div",{className:de,children:o.map((function(n){var o=n.title,t=n.content;return e.jsx(z,{title:o,content:t},o)}))})})},exports.Header=function(o){var t=o.logo,i=o.menu,l=o.actions,d=void 0===l?null:l,a=n.useState(!1),r=a[0],s=a[1];return e.jsxs("header",{className:Z,children:[e.jsx(q,{children:e.jsxs("div",{className:Q,children:[e.jsx("a",{href:"/",className:J,children:t}),e.jsx("a",{href:"/",className:$,children:t}),!!i&&e.jsx("div",{className:oe,children:i}),e.jsxs("div",{className:ee,children:[d,!!i&&e.jsx("div",{className:ne,children:e.jsx(D,{icon:r?m:g,onClick:function(){return s(!r)},size:"lg"})})]})]})}),r&&e.jsx("div",{className:te,children:i})]})},exports.Heading=Y,exports.IconButton=D,exports.Input=O,exports.Link=function(n){var o=n.href,t=n.title,i=n.target,d=void 0===i?"_self":i,r=n.type,s=void 0===r?exports.UIElementType.DEFAULT:r,_=n.padding,u=void 0===_?"zero":_,m=n.hasChevron,h=void 0!==m&&m,x=n.fullWidth,f=void 0!==x&&x;return e.jsxs("a",{href:o,target:d,rel:"noopener noreferrer",className:l(B,{link:!0,fullWidth:f},[B[s],B[u]]),children:[e.jsx("span",{children:t})," ",h&&e.jsx(a,{icon:c})]})},exports.ListItem=function(n){var o=n.title,t=n.subtitle,i=n.actionTitle,d=void 0===i?"":i,r=n.action,s=n.completed,_=n.indicator,c=n.hasSeparator,m=void 0!==c&&c,h=n.hasDashedSeparator,x=void 0!==h&&h,f=n.isActionPending,g=void 0!==f&&f;return e.jsxs("div",{className:l(b,{listItem:!0,separator:m,dashedSeparator:x}),children:[e.jsxs("div",{className:b.content,children:[_&&e.jsx("div",{className:l(b,{indicator:!0},[b[_]])}),e.jsxs("div",{className:b.data,children:[e.jsx("div",{className:b.title,children:o}),t&&e.jsx("div",{className:b.subtitle,children:t})]})]}),r&&e.jsx(N,{onClick:r,className:b.action,label:d,isLoading:g}),s&&e.jsx("div",{className:b.completed,children:e.jsx(a,{icon:u})})]})},exports.LoadingItem=function(n){var o=n.shape,t=void 0===o?"square":o,i=n.size,d=void 0===i?"md":i,a=n.width,r=n.height;return e.jsx("div",{className:l(R,{container:!0},[R[t],R[d]]),style:{width:a,height:r}})},exports.SVGIcon=a,exports.Section=le,exports.Tooltip=function(n){var o=n.hint,t=n.children,i=n.position,l=void 0===i?"top":i;return e.jsxs("div",{className:U.tooltip,children:[!!o&&e.jsx("div",{className:"".concat(U.hint," ").concat(U[l]),children:o}),t]})},exports.checkIsValidEmail=function(e){return!!e&&re.test(e)},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=E,exports.useClickOutsideRef=function(e){var o=n.useRef(null),t=n.useCallback((function(n){o.current&&!o.current.contains(n.target)&&e()}),[e]);return n.useEffect((function(){return document.addEventListener("click",t),function(){document.removeEventListener("click",t)}}),[t]),o}; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@sorocraft/ui", | ||
"version": "1.0.34", | ||
"version": "1.0.35", | ||
"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
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
828590
1777