@app-studio/web 0.3.54 → 0.3.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),i=e(o),t=require("app-studio"),n=require("react-router-dom"),a=e(require("date-fns/format")),d=require("zustand");function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(this,arguments)}function l(e,o){if(null==e)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)o.indexOf(i=a[t])>=0||(n[i]=e[i]);return n}var c=t.View,s=["children","wrap","justify","isReversed"],m=function(e){var o=e.children,t=e.wrap,n=void 0===t?"wrap":t,a=e.justify,d=void 0===a?"flex-start":a,r=e.isReversed,m=void 0!==r&&r,u=l(e,s);return i.createElement(c,Object.assign({display:"flex",flexWrap:n,flexDirection:m?"row-reverse":"row",justifyContent:d},u),o)},u=function(e){return i.createElement(m,Object.assign({},e))},h=["children","wrap"],g=function(e){var o=e.children,t=e.wrap,n=l(e,h);return i.createElement(c,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:t},n),o)},p=function(e){return i.createElement(g,Object.assign({},e))},v=["size","color"],f=function(e){var o=e.size,t=void 0===o?64:o,n=l(e,v);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_down [#338]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-220.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M164.292308,6524.36583 L164.292308,6524.36583 C163.902564,6524.77071 163.902564,6525.42619 164.292308,6525.83004 L172.555873,6534.39267 C173.33636,6535.20244 174.602528,6535.20244 175.383014,6534.39267 L183.70754,6525.76791 C184.093286,6525.36716 184.098283,6524.71997 183.717533,6524.31405 C183.328789,6523.89985 182.68821,6523.89467 182.29347,6524.30266 L174.676479,6532.19636 C174.285736,6532.60124 173.653152,6532.60124 173.262409,6532.19636 L165.705379,6524.36583 C165.315635,6523.96094 164.683051,6523.96094 164.292308,6524.36583",id:"arrow_down-[#338]"})))))))},b=["size","color"],j=function(e){var o=e.size,t=void 0===o?64:o,n=l(e,b);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_up [#337]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-260.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M223.707692,6534.63378 L223.707692,6534.63378 C224.097436,6534.22888 224.097436,6533.57338 223.707692,6533.16951 L215.444127,6524.60657 C214.66364,6523.79781 213.397472,6523.79781 212.616986,6524.60657 L204.29246,6533.23165 C203.906714,6533.6324 203.901717,6534.27962 204.282467,6534.68555 C204.671211,6535.10081 205.31179,6535.10495 205.70653,6534.69695 L213.323521,6526.80297 C213.714264,6526.39807 214.346848,6526.39807 214.737591,6526.80297 L222.294621,6534.63378 C222.684365,6535.03868 223.317949,6535.03868 223.707692,6534.63378",id:"arrow_up-[#337]"})))))))},x=["size","color"],C=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,x);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"0.048"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M17.0001 9L10 16L7 13",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},_=["size","color"],E=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,_);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fill:a,d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"}))))},S=["size","color"],w=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,d=l(e,S);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",fill:a}))))},y=["size","color"],z=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,y);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({fill:a,width:t+"px",height:t+"px",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",stroke:a},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"}),i.createElement("path",{d:"M40 20h-2v-8h-8v-2h10z"}),i.createElement("path",{d:"M35 38H15c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h11v2H15c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h20c.6 0 1-.4 1-1V24h2v11c0 1.7-1.3 3-3 3z"}))))},O=["size","color"],k=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,O);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M7 12L17 12",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},H=["size","color"],I=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,d=l(e,H);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.30147 15.5771C4.77832 14.2684 3.6904 12.7726 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C14.1843 6 16.1261 7.07185 17.6986 8.42294C19.2218 9.73158 20.3097 11.2274 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18C9.81574 18 7.87402 16.9282 6.30147 15.5771ZM12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C2.00757 13.8624 3.23268 15.5772 4.99812 17.0941C6.75717 18.6054 9.14754 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C21.9925 10.1376 20.7674 8.42276 19.002 6.90595C17.2429 5.39462 14.8525 4 12 4ZM10 12C10 10.8954 10.8955 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8955 14 10 13.1046 10 12ZM12 8C9.7909 8 8.00004 9.79086 8.00004 12C8.00004 14.2091 9.7909 16 12 16C14.2092 16 16 14.2091 16 12C16 9.79086 14.2092 8 12 8Z",fill:a}))))},L={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},M=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],R=function(e){var o=e.children,a=e.href,d=void 0===a?"/":a,r=e.iconSize,c=void 0===r?"sm":r,s=e.underline,m=void 0===s?"default":s,h=e.isHovered,g=void 0!==h&&h,p=e.isExternal,v=void 0!==p&&p,f=e.colorScheme,b=void 0===f?"#0072F5":f,j=e.styles,x=void 0===j?{icon:{},text:{}}:j,C=e.setIsHovered,_=void 0===C?function(){}:C,E=l(e,M),S=function(){"hover"===m&&_(!0)};return i.createElement(n.Link,{to:d,target:v?"_blank":"_self"},i.createElement(t.Element,Object.assign({color:b,onMouseEnter:S,onMouseLeave:S,textDecoration:g||"underline"===m?"underline !important":"none"},x.text,E),i.createElement(u,{gap:3,alignItems:"center",wrap:"nowrap"},o,v&&i.createElement(z,{color:b,size:L[c],style:x.icon}))))},T=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(R,Object.assign({},n,e))},V={xs:{width:79,paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,fontWeight:600,fontSize:"xs",lineHeight:16,letterSpacing:1.25},sm:{width:128,paddingTop:10,paddingBottom:10,paddingLeft:16,paddingRight:16,fontWeight:600,fontSize:"sm",lineHeight:20,letterSpacing:1.25},md:{width:144,paddingTop:12,paddingBottom:12,paddingLeft:18,paddingRight:18,fontWeight:600,fontSize:"md",lineHeight:24,letterSpacing:1.25},lg:{width:178,paddingTop:14,paddingBottom:14,paddingLeft:22,paddingRight:22,fontWeight:600,fontSize:"lg",lineHeight:24,letterSpacing:1.25},xl:{width:220,paddingTop:16,paddingBottom:16,paddingLeft:26,paddingRight:26,fontWeight:600,fontSize:"xl",lineHeight:24,letterSpacing:1.25}},F={sharp:0,rounded:4,pillShaped:24},G={xs:{width:24,height:24,padding:12},sm:{width:24,height:24,padding:15},md:{width:36,height:36,padding:15},lg:{width:36,height:36,padding:18},xl:{width:36,height:36,padding:24}},B={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},D={fast:50,normal:100,slow:300},P=["size","speed","color"],A=["size","speed","color"],W=["size","speed","color"],N=["size","children","textColor","loaderColor","type","speed","textPosition"],K=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,P),u=t.useTheme().getColor(s),h="number"==typeof a?a:B[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),D[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:h+"px",height:h+"px",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},U=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,A),u=t.useTheme().getColor(s),h="number"==typeof a?a:B[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),D[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},Z=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,W),u=t.useTheme().getColor(s),h="number"==typeof a?a:B[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),D[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},J=function(e){var o=e.size,t=e.children,n=e.textColor,a=e.loaderColor,d=e.type,r=void 0===d?"default":d,s=e.speed,m=void 0===s?"normal":s,u=e.textPosition,h=void 0===u?"right":u,g=l(e,N),v={size:o,speed:m,color:a},f={default:i.createElement(K,Object.assign({},v)),dotted:i.createElement(U,Object.assign({},v)),quarter:i.createElement(Z,Object.assign({},v))};return i.createElement(p,Object.assign({gap:10,flexDirection:"top"===h||"bottom"===h?"column":"row"},g),("left"===h||"top"===h)&&t&&i.createElement(c,{color:n},t),f[r],("right"===h||"bottom"===h)&&t&&i.createElement(c,{color:n},t))},Y=function(e){return i.createElement(J,Object.assign({},e))},q=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick","loaderProps","loaderPosition"],Q=function(e){var o,n=e.icon,a=e.shadow,d=e.children,r=e.ariaLabel,c=e.externalHref,s=e.isAuto,m=void 0!==s&&s,h=e.isFilled,g=void 0!==h&&h,p=e.isIconRounded,v=void 0!==p&&p,f=e.isLoading,b=void 0!==f&&f,j=e.isDisabled,x=void 0!==j&&j,C=e.size,_=void 0===C?"md":C,E=e.variant,S=void 0===E?"filled":E,w=e.iconPosition,y=void 0===w?"left":w,z=e.colorScheme,O=void 0===z?"theme.primary":z,k=e.shape,H=void 0===k?"rounded":k,I=e.onClick,L=void 0===I?function(){}:I,M=e.loaderProps,R=void 0===M?{}:M,B=e.loaderPosition,D=void 0===B?"left":B,P=l(e,q),A=!(x||b),W={disabled:!A},N=A?O:"theme.disabled",K=V[_],U={filled:{backgroundColor:N,color:"color.white"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:O,color:N},link:{backgroundColor:"transparent",border:"none",color:N,textDecorationLine:"underline"},ghost:{backgroundColor:"transparent",border:"none",color:N}}[S],Z={width:m?"fit-content":g?"100%":K.width},J={padding:v?G[_].padding:V[_].padding},Q=i.createElement(u,{gap:4},b&&"left"===D&&i.createElement(Y,Object.assign({},R)),n&&"left"===y&&!b&&n,d,n&&"right"===y&&!b&&n,b&&"right"===D&&i.createElement(Y,Object.assign({},R)));return i.createElement(t.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:r,backgroundColor:N,borderRadius:F[H],onClick:null!=(o=P.onClick)?o:L,cursor:A?"pointer":"default"},W,K,U,Z,J,a,P),"link"===S&&c?i.createElement(T,{href:c,textDecorationColor:O,colorScheme:O,isExternal:!0},Q):Q)},X=function(e){var o,t={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},n=t.isHovered,a=t.setIsHovered,d=function(){return a(!n)};return i.createElement(Q,Object.assign({onMouseEnter:d,onMouseLeave:d,filter:n?"brightness(0.85)":"brightness(1)"},e))},$={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},ee=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],oe=function(e){var o=e.children,n=e.heading,a=e.isItalic,d=void 0!==a&&a,r=e.isUnderlined,c=void 0!==r&&r,s=e.isStriked,m=void 0!==s&&s,u=e.weight,h=void 0===u?"normal":u,g=e.size,p=void 0===g?"sm":g,v=l(e,ee);return i.createElement(t.Element,Object.assign({as:"label",width:"100%",fontSize:p,fontStyle:d?"italic":"normal",fontWeight:t.Typography.fontWeights[h],textDecoration:m?"line-through":c?"underline":"none"},n?$[n]:{},v),o)},ie=function(e){return i.createElement(oe,Object.assign({},e))},te={xs:{height:8,width:8},sm:{height:12,width:12},md:{height:18,width:18},lg:{height:24,width:24},xl:{height:30,width:30},"2xl":{height:36,width:36},"3xl":{height:42,width:42},"4xl":{height:48,width:48},"5xl":{height:54,width:54},"6xl":{height:60,width:60}},ne={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},ae=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],de=function(e){var o=e.id,n=e.icon,a=e.label,d=e.isChecked,c=e.onChange,s=e.onValueChange,m=e.shadow,u=void 0===m?{}:m,h=e.size,g=void 0===h?"md":h,v=e.colorScheme,f=void 0===v?"theme.primary":v,b=e.error,j=void 0!==b&&b,x=e.isSelected,_=void 0!==x&&x,E=e.isHovered,S=void 0!==E&&E,w=e.isDisabled,y=void 0!==w&&w,z=e.isReadOnly,O=void 0!==z&&z,H=e.isIndeterminate,I=void 0!==H&&H,L=e.setIsSelected,M=void 0===L?function(){}:L,R=e.setIsHovered,T=void 0===R?function(){}:R,V=e.styles,F=void 0===V?{checkbox:{},label:{}}:V,G=l(e,ae),B=function(){return T(!S)},D={container:r({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:j?"theme.error":y?"theme.disabled":"color.blueGray.700",cursor:y?"not-allowed":O?"default":"pointer"},F.label),checkbox:r({},y?{backgroundColor:"theme.disabled"}:(d||_)&&!I||I?{backgroundColor:f}:{borderWidth:2,borderColor:j?"theme.error":S?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:S?"brightness(0.9)":void 0},te[g],u,F.checkbox)};return i.createElement(ie,Object.assign({htmlFor:o,as:"div",onClick:function(){O||y||(M&&M(!_),c&&c(!d),s&&s(!d))},onMouseEnter:B,onMouseLeave:B,size:t.Typography.fontSizes[g]},D.container,G),i.createElement(p,Object.assign({},D.checkbox),I?i.createElement(k,null):(d||_)&&(null!=n?n:i.createElement(C,{size:ne[g]}))),a)},re=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],le=["children","wrap","justify","isReversed"],ce=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,d=e.justify,r=void 0===d?"flex-start":d,c=e.isReversed,s=void 0!==c&&c,m=l(e,le);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:s?"column-reverse":"column",justifyContent:r},m),o)},se=function(e){return i.createElement(ce,Object.assign({},e))},me={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},ue=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],he=function(e){var o=e.children,t=e.isSub,n=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,t&&i.createElement("sup",null,o),n&&i.createElement("sup",null,o),!t&&!n&&i.createElement(i.Fragment,null,o)):o)},ge=function(e){var t=e.text,n=e.maxLines,a=void 0===n?1:n,d=o.useRef(null),r=o.useState(t.length),l=r[0],c=r[1];o.useEffect((function(){var e=d.current;e&&function(){for(var o,i=getComputedStyle(e).lineHeight,n=("normal"!==i?parseFloat(i):20)*a,d=0,r=t.length;d<=r;)o=Math.floor((d+r)/2),e.innerText=t.substring(0,o)+"...",e.offsetHeight>n?r=o-1:d=o+1;c(r)}()}),[t,a]);var s=t.length>l?t.substring(0,l)+"...":t;return i.createElement("div",{ref:d},s)},pe=function(e){var o=e.children,n=e.heading,a=e.maxLines,d=e.isItalic,r=void 0!==d&&d,c=e.isUnderlined,s=void 0!==c&&c,m=e.isSub,u=void 0!==m&&m,h=e.isSup,g=void 0!==h&&h,p=e.isStriked,v=void 0!==p&&p,f=e.isTruncated,b=void 0!==f&&f,j=e.weight,x=void 0===j?"normal":j,C=e.size,_=void 0===C?"md":C,E=l(e,ue);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[_],lineHeight:t.Typography.lineHeights[_],fontStyle:r?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":s?"underline":"none"},u||g?{display:"inline"}:{},n?me[n]:{},E),b&&a&&"string"==typeof o?i.createElement(ge,{text:o,maxLines:a}):i.createElement(he,Object.assign({isSub:u,isSup:g},E),o))},ve=function(e){return i.createElement(pe,Object.assign({},e))},fe=["children","styles"],be=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=l(e,fe);return i.createElement(ve,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},n.helperText,a),o)},je=["children","helperText","error","styles"],xe=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,d=e.styles,r=l(e,je);return i.createElement(se,Object.assign({gap:5,position:"relative"},r),o,!a&&t&&i.createElement(be,Object.assign({},d),t),a&&i.createElement(ve,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},a))},Ce={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},_e={xs:6,sm:8,md:10,lg:12,xl:14},Ee={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},Se={paddingTop:14,paddingBottom:0,paddingLeft:16,paddingRight:36},we={paddingTop:10,paddingBottom:4,paddingLeft:16,paddingRight:36},ye=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],ze=function(e){var o=e.shadow,n=e.children,a=e.size,d=void 0===a?"md":a,r=e.shape,c=void 0===r?"default":r,s=e.variant,m=void 0===s?"default":s,h=e.error,g=void 0!==h&&h,p=e.isWithLabel,v=void 0!==p&&p,f=e.isFocused,b=void 0!==f&&f,j=e.isHovered,x=void 0!==j&&j,C=e.isDisabled,_=void 0!==C&&C,E=e.isReadOnly,S=void 0!==E&&E,w=e.colorScheme,y=void 0===w?"theme.primary":w,z=e.styles,O=void 0===z?{pickerBox:{}}:z,k=l(e,ye);return i.createElement(u,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:g?"error":!x&&!b||_?"midgray":y,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",marginBottom:5,fontSize:t.Typography.fontSizes[d],cursor:_?"not-allowed":S?"auto":"pointer"},v?Se:we,o,Ce[c],Ee[m],O.box,k),n)},Oe=["children"],ke=function(e){var o=e.children,t=l(e,Oe);return i.createElement(p,Object.assign({gap:10,right:16,zIndex:500,wrap:"nowrap",position:"absolute"},t),o)},He=["children","size","error","color","styles"],Ie=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,d=void 0!==a&&a,r=e.color,c=void 0===r?"theme.primary":r,s=e.styles,m=void 0===s?{label:{}}:s,u=l(e,He);return i.createElement(ie,Object.assign({top:6,zIndex:1e3,lineHeight:_e[n],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:d?"error":c,fontSize:_e[n]},m.label,u),o)},Le=["children"],Me=function(e){var o=e.children,t=l(e,Le);return i.createElement(se,Object.assign({width:"100%"},t),o)},Re={xs:8,sm:10,md:12,lg:14,xl:16},Te=["id","name","label","value","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","colorScheme","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setValue","styles"],Ve=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},Fe=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},Ge=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},Be=function(e){var n=e.option,a=e.size,d=void 0===a?"md":a,r=e.callback,l=void 0===r?function(){}:r,c=e.styles,s=void 0===c?{text:{}}:c,m=o.useState(!1),u=m[0],h=m[1],g=function(){return h(!u)};return i.createElement(Ge,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e&&e.stopPropagation&&e.stopPropagation(),l(n)},fontSize:t.Typography.fontSizes[d],backgroundColor:u?"trueGray.100":"transparent"},s.text),n)},De=function(e){var o=e.size,t=e.styles,n=void 0===t?{dropDown:{}}:t,a=e.options,d=e.callback,r=void 0===d?function(){}:d,l=function(e){return r(e)};return i.createElement(Ve,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},n.dropDown),a.map((function(e){return i.createElement(Be,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},Pe=function(e){var o=e.id,n=e.name,a=e.label,d=e.value,c=e.placeholder,s=e.helperText,m=e.hide,u=void 0!==m&&m,h=e.error,g=void 0!==h&&h,p=e.isHovered,v=void 0!==p&&p,b=e.isFocused,x=void 0!==b&&b,C=e.isAutoFocus,_=void 0!==C&&C,E=e.isDisabled,S=void 0!==E&&E,w=e.isReadOnly,y=void 0!==w&&w,z=e.shadow,O=void 0===z?{}:z,k=e.newOptions,H=void 0===k?[]:k,I=e.size,L=void 0===I?"md":I,M=e.variant,R=void 0===M?"default":M,T=e.shape,V=void 0===T?"default":T,F=e.colorScheme,G=void 0===F?"theme.primary":F,B=e.onChange,D=e.onBlur,P=void 0===D?function(){}:D,A=e.setHide,W=void 0===A?function(){}:A,N=e.setNewOptions,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,J=e.setIsFocused,Y=void 0===J?function(){}:J,q=e.setValue,Q=void 0===q?function(){}:q,X=e.styles,$=void 0===X?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:X,ee=l(e,Te),oe=(0,t.useTheme().getColor)("color.blueGray.700"),ie=function(){return Z(!v)},te=!(!x||!a),ne=r({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[L],backgroundColor:"transparent",color:S?"color.trueGray.600":"color.blueGray.700",cursor:S?"not-allowed":"auto"},$.field);return i.createElement(xe,{helperText:s,error:g,styles:$,onClick:function(){S||y||W(!u)}},i.createElement(ze,{label:a,size:L,error:g,shape:V,styles:$,shadow:O,variant:R,value:d,color:G,isHovered:v,isDisabled:S,isReadOnly:y,isFocused:x,isWithLabel:te,colorScheme:G,onMouseEnter:ie,onMouseLeave:ie},i.createElement(Me,null,te&&i.createElement(Ie,Object.assign({htmlFor:o,color:G,error:g},$),a),i.createElement(Fe,Object.assign({id:o,name:n,placeholder:c,readOnly:y,disabled:S,autoFocus:_,onBlur:function(e){P(e),Y(!1)},onFocus:function(){return Y(!0)}},ne,ee,{value:d,onChange:function(e){var o=e.target.value,i=re.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));u&&W(!1),K(i),B&&B(o)}}))),i.createElement(ke,null,i.createElement(u?f:j,{size:Re[L],color:oe,style:$.icon}))),!u&&i.createElement(De,{size:L,styles:$,options:H,callback:function(e){W(!u),Q(e),B&&B(e)}}))},Ae=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],We=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},Ne=function(e){var o=e.id,n=e.name,a=e.label,d=e.date,c=e.helperText,s=e.shadow,m=void 0===s?{}:s,u=e.size,h=void 0===u?"md":u,g=e.variant,p=void 0===g?"default":g,v=e.shape,f=void 0===v?"default":v,b=e.colorScheme,j=void 0===b?"theme.primary":b,x=e.styles,C=void 0===x?{box:{},label:{},helperText:{},text:{},field:{}}:x,_=e.error,E=void 0!==_&&_,S=e.isHovered,w=void 0!==S&&S,y=e.isFocused,z=void 0!==y&&y,O=e.isDisabled,k=void 0!==O&&O,H=e.isReadOnly,I=void 0!==H&&H,L=e.setDate,M=void 0===L?function(){}:L,R=e.setIsFocused,T=void 0===R?function(){}:R,V=e.setIsHovered,F=void 0===V?function(){}:V,G=e.onChange,B=e.onChangeText,D=l(e,Ae),P=!(!z||!a),A=function(){return F(!w)},W=function(e){"string"==typeof e?(M(e),B&&B(e)):(M(e.target.value),G&&G(e))},N=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:t.Typography.fontSizes[h],backgroundColor:"transparent",color:k?"color.trueGray.600":"color.blueGray.700",cursor:k?"not-allowed":I?"auto":"pointer"},C.field);return i.createElement(xe,{helperText:c,error:E,styles:C},i.createElement(ze,{label:a,size:h,error:E,shape:f,styles:C,shadow:m,variant:p,value:d,color:j,isHovered:w,isDisabled:k,isReadOnly:I,isFocused:z,isWithLabel:P,colorScheme:j,onMouseEnter:A,onMouseLeave:A},i.createElement(Me,null,P&&i.createElement(Ie,Object.assign({htmlFor:o,color:j,error:E},C),a),i.createElement(We,Object.assign({id:o,name:n,value:d,onFocus:function(){return T(!0)},onChange:W,disabled:k,readOnly:I},N,B&&{onChangeText:W},D)))))},Ke=function(e){var i=e.label,t=e.placeholder,n=e.defaultValue,a=o.useState(null!=i?i:t),d=a[0],r=a[1],l=o.useState(!1),c=l[0],s=l[1],m=o.useState(!1),u=m[0],h=m[1],g=o.useState(n||""),p=g[0],v=g[1];return o.useMemo((function(){r(c&&!p?null!=t?t:"":null!=i?i:t)}),[p,c,i,t]),{hint:d,setHint:r,isFocused:c,setIsFocused:s,isHovered:u,setIsHovered:h,setValue:v,value:p}},Ue=["id","name","label","hint","value","onChange","leftChild","rightChild","helperText","placeholder","type","onChangeText","shadow","styles","size","shape","variant","colorScheme","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setValue","onClick","onFocus","onBlur"],Ze=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},Je=function(e){var o=e.id,n=e.name,a=e.label,d=e.hint,c=e.value,s=e.onChange,m=e.leftChild,u=e.rightChild,h=e.helperText,g=e.onChangeText,p=e.shadow,v=void 0===p?{}:p,f=e.styles,b=void 0===f?{box:{},field:{},label:{},helperText:{},text:{}}:f,j=e.size,x=void 0===j?"md":j,C=e.shape,_=void 0===C?"default":C,S=e.variant,w=void 0===S?"default":S,y=e.colorScheme,z=void 0===y?"theme.primary":y,O=e.error,k=void 0!==O&&O,H=e.isFocused,I=void 0!==H&&H,L=e.isHovered,M=void 0!==L&&L,R=e.isDisabled,T=void 0!==R&&R,V=e.isReadOnly,F=void 0!==V&&V,G=e.isClearable,B=void 0===G||G,D=e.isAutoFocus,P=void 0!==D&&D,A=e.setIsFocused,W=void 0===A?function(){}:A,N=e.setIsHovered,K=void 0===N?function(){}:N,U=e.setValue,Z=void 0===U?function(){}:U,J=e.onFocus,Y=e.onBlur,q=void 0===Y?function(){}:Y,Q=l(e,Ue),X=(0,t.useTheme().getColor)("color.blueGray.700"),$=!(!I||!a),ee=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[x],lineHeight:t.Typography.fontSizes[x],backgroundColor:"transparent",color:T?"color.trueGray.600":"color.blueGray.700",cursor:T?"not-allowed":"auto"},b.field),oe=function(){return K(!M)},ie=function(e){"string"==typeof e?(Z(e),g&&g(e),s&&s(e)):(Z(e.target.value),g&&g(e.target.value),s&&s(e.target.value))};return i.createElement(xe,{helperText:h,error:k,styles:b},i.createElement(ze,{label:a,size:x,error:k,shape:_,styles:b,shadow:v,variant:w,value:c,color:z,isHovered:M,isDisabled:T,isReadOnly:F,isFocused:I,isWithLabel:$,colorScheme:z,onMouseEnter:oe,onMouseLeave:oe},m,i.createElement(Me,null,$&&i.createElement(Ie,Object.assign({htmlFor:o,color:z,error:k},b),a),i.createElement(Ze,Object.assign({id:o,name:n,value:c,readOnly:F,disabled:T,autoFocus:P,placeholder:d,onFocus:function(){W(!0),J&&J()},onBlur:function(e){q(e),W(!1)},autoComplete:"off"},ee,Q,{onChange:ie},s&&{onChange:ie}))),(u||B&&c)&&i.createElement(ke,null,u&&i.createElement(i.Fragment,null,u),B&&c&&!F&&!T&&i.createElement(E,{size:t.Typography.fontSizes[x],color:X,onClick:function(){Z(""),s&&(q({target:{name:n}}),s({target:{name:n,value:""}})),"undefined"==typeof document&&g&&g("")}}))))},Ye=["visibleIcon","hiddenIcon"],qe=["isVisible","setIsVisible"],Qe={xs:8,sm:10,md:12,lg:14,xl:16},Xe=["isHovered","setIsHovered","option","size","callback"],$e=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],eo=["option","size","removeOption"],oo=["id","name","label","value","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","colorScheme","shape","variant","styles","onChange","setHide","setValue","setIsHovered","setIsFocused"],io=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,d=e.size,r=void 0===d?"md":d,c=e.callback,s=void 0===c?function(){}:c,m=l(e,Xe),u=function(){return n(!o)};return i.createElement(t.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:u,onMouseLeave:u,fontSize:t.Typography.fontSizes[r],onClick:function(){return function(e){return s(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},m),a)},to=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,d=e.value,l=e.isDisabled,c=e.placeholder,s=e.removeOption,m=void 0===s?function(){}:s,h=r({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:l?"color.trueGray.600":"color.blueGray.700",cursor:l?"not-allowed":"auto"},a.field,a.text);return i.createElement(ve,Object.assign({},h),(""===d||d&&0===d.length)&&c?c:i.createElement(i.Fragment,null,"string"==typeof d?d:d&&d.length>0&&i.createElement(u,{gap:6},d.map((function(e){return i.createElement(ro,{key:e,option:e,removeOption:m})})))))},no=function(e){var o=e.id,n=e.name,a=e.value,d=e.onChange,r=e.isMulti,c=void 0!==r&&r,s=e.isDisabled,m=void 0!==s&&s,u=e.isReadOnly,h=void 0!==u&&u,g=e.options,p=void 0===g?[]:g,v=l(e,$e);return i.createElement(t.Element,Object.assign({id:o,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:a,disabled:m,readOnly:h,onChange:function(e){d&&d(e)},multiple:c},v),p.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},ao=function(e){var o,n=e.size,a=e.styles,d=void 0===a?{dropDown:{}}:a,r=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},m=function(e){return c(e)},u=void 0!==typeof document?{boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"}:{elevation:2,shadowColor:"rgba(0, 0, 0, 0.07)",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:1};return i.createElement(t.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e3,overflowY:"auto",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",justifyContent:"space-evenly"},u,d.dropDown),r.map((function(e){return i.createElement(io,Object.assign({key:e,size:n,option:e,callback:m},s,d.text))})))},ro=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,d=e.removeOption,r=void 0===d?function(){}:d,c=l(e,eo);return i.createElement(u,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:t.Typography.fontSizes[a],backgroundColor:"color.trueGray.300",onClick:function(e){return e.stopPropagation()}},c),i.createElement(ve,{size:a},o),i.createElement(E,{role:"close-button",color:"inherit",size:Qe[a],onClick:function(){return r(o)}}))},lo=function(e){var t=e.id,n=e.name,a=e.label,d=e.value,r=e.placeholder,c=e.helperText,s=e.hide,m=void 0!==s&&s,u=e.error,h=void 0!==u&&u,g=e.isMulti,p=void 0!==g&&g,v=e.isFocused,b=void 0!==v&&v,x=e.isHovered,C=void 0!==x&&x,_=e.isDisabled,E=void 0!==_&&_,S=e.isReadOnly,w=void 0!==S&&S,y=e.options,z=void 0===y?[]:y,O=e.shadow,k=void 0===O?{}:O,H=e.size,I=void 0===H?"md":H,L=e.colorScheme,M=void 0===L?"theme.primary":L,R=e.shape,T=void 0===R?"default":R,V=e.variant,F=void 0===V?"default":V,G=e.styles,B=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,D=e.onChange,P=void 0===D?function(){}:D,A=e.setHide,W=void 0===A?function(){}:A,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,J=e.setIsFocused,Y=void 0===J?function(){}:J,q=l(e,oo),Q=!(!b||!a),X=function(){return Z(!C)},$=o.useCallback((function(e){W(!m),p&&Array.isArray(d)?!d.includes(e)&&K([].concat(d,[e])):K(e),P&&P(e)}),[m,p,d]);return i.createElement(xe,{role:"SelectBox",helperText:c,error:h,styles:B,onClick:E||w?function(){}:function(e){e&&e.stopPropagation&&e.stopPropagation(),W(!m),Y(!b)}},i.createElement(ze,{label:a,size:I,error:h,shape:T,styles:B,shadow:k,variant:F,value:d,color:M,isHovered:C,isDisabled:E,isReadOnly:w,isFocused:b,isWithLabel:Q,colorScheme:M,onMouseEnter:X,onMouseLeave:X},i.createElement(Me,null,Q&&i.createElement(Ie,Object.assign({htmlFor:t,color:M,error:h},B),a),i.createElement(no,Object.assign({id:t,name:n,options:z,onChange:P,value:d,isDisabled:E,isReadOnly:w,isMulti:p,onFocus:function(){return Y(!0)}},q)),i.createElement(to,{size:I,styles:B,value:d,isDisabled:E,placeholder:r,removeOption:function(e){if(Array.isArray(d)&&d.includes(e)){var o=d.filter((function(o){return o!==e}));K(0===o.length?[]:o)}}})),i.createElement(ke,null,!w&&!E&&i.createElement(i.Fragment,null,i.createElement(m?f:j,{color:"inherit",size:Qe[I],style:B.icon})))),!m&&i.createElement(ao,{size:I,styles:B,options:z,callback:$}))},co={xs:{height:6,width:6},sm:{height:9,width:9},md:{height:12,width:12},lg:{height:15,width:15},xl:{height:18,width:18},"2xl":{height:21,width:21},"3xl":{height:24,width:24},"4xl":{height:27,width:27},"5xl":{height:30,width:30},"6xl":{height:33,width:33}},so={xs:{height:16,width:28},sm:{height:20,width:36},md:{height:24,width:44},lg:{height:28,width:52},xl:{height:32,width:60},"2xl":{height:36,width:68},"3xl":{height:40,width:76},"4xl":{height:44,width:84},"5xl":{height:48,width:92},"6xl":{height:52,width:100}},mo={xs:{paddingVertical:0,paddingHorizontal:2},sm:{paddingVertical:0,paddingHorizontal:3},md:{paddingVertical:0,paddingHorizontal:5},lg:{paddingVertical:0,paddingHorizontal:6},xl:{paddingVertical:0,paddingHorizontal:8},"2xl":{paddingVertical:0,paddingHorizontal:9},"3xl":{paddingVertical:0,paddingHorizontal:10},"4xl":{paddingVertical:0,paddingHorizontal:13},"5xl":{paddingVertical:0,paddingHorizontal:15},"6xl":{paddingVertical:0,paddingHorizontal:16}},uo=["id","name","inActiveChild","activeChild","shadow","size","colorScheme","on","isHovered","isChecked","isDisabled","isReadOnly","onChange","onValueChange","setOn","setIsHovered","styles"],ho=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},go=function(e){var o=e.id,t=e.name,n=e.inActiveChild,a=e.activeChild,d=e.shadow,r=void 0===d?{}:d,s=e.size,m=void 0===s?"sm":s,u=e.colorScheme,h=void 0===u?"theme.primary":u,g=e.on,p=void 0!==g&&g,v=e.isHovered,f=void 0!==v&&v,b=e.isDisabled,j=void 0!==b&&b,x=e.isReadOnly,C=void 0!==x&&x,_=e.onChange,E=e.onValueChange,S=e.setOn,w=void 0===S?function(){}:S,y=e.setIsHovered,z=void 0===y?function(){}:y,O=e.styles,k=void 0===O?{slider:{},circle:{}}:O,H=l(e,uo),I=function(e){C||(w(!p),_&&_(e.target.checked))},L=function(){return z(!f)};return i.createElement(ie,{htmlFor:o,onMouseEnter:L,onMouseLeave:L},i.createElement(ho,Object.assign({id:o,name:t,opacity:0,width:0,height:0,checked:p,onChange:I,disabled:j,readOnly:C},E&&{onValueChange:I},H)),i.createElement(c,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,marginBottom:5,filter:f&&p?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:j?"disabled":p?h:"lightgray",justifyContent:a?"space-between":p?"flex-end":"flex-start"},r,mo[m],so[m],k.slider),a&&p&&i.createElement(c,null,a),i.createElement(c,Object.assign({borderRadius:"50%",backgroundColor:"white"},co[m],k.circle)),n&&!p&&i.createElement(c,null,n)))},po=["id","name","hint","error","value","label","shadow","helperText","placeholder","defaultValue","size","shape","variant","colorScheme","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","onChangeText","setHint","setValue","setIsFocused","setIsHovered","styles"],vo=function(e){var o=e.id,n=e.name,a=e.hint,d=e.error,c=e.value,s=e.label,m=e.shadow,u=e.helperText,h=e.size,g=void 0===h?"sm":h,p=e.shape,v=void 0===p?"default":p,f=e.variant,b=void 0===f?"default":f,j=e.colorScheme,x=void 0===j?"theme.primary":j,C=e.isHovered,_=void 0!==C&&C,E=e.isFocused,S=void 0!==E&&E,w=e.isEditable,y=void 0!==w&&w,z=e.isReadOnly,O=void 0!==z&&z,k=e.isDisabled,H=void 0!==k&&k,I=e.isAutoFocus,L=void 0!==I&&I,M=e.isMultiline,R=void 0!==M&&M,T=e.maxRows,V=void 0===T?3:T,F=e.maxCols,G=void 0===F?30:F,B=e.onBlur,D=void 0===B?function(){}:B,P=e.onChange,A=e.onFocus,W=e.onChangeText,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsFocused,Z=void 0===U?function(){}:U,J=e.setIsHovered,Y=void 0===J?function(){}:J,q=e.styles,Q=void 0===q?{box:{},text:{},label:{},helperText:{},field:{}}:q,X=l(e,po),$=!(!S||!s),ee=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[g],backgroundColor:"transparent",color:H?"color.trueGray.600":"color.blueGray.700",cursor:H?"not-allowed":"auto"},Q.field),oe=function(){return Y(!_)},ie=function(e){"string"==typeof e?(K(e),W&&W(e)):(K(e.target.value),P&&P(e.target.value))};return i.createElement(xe,{helperText:u,error:d,styles:Q},i.createElement(ze,{label:s,size:g,error:d,shape:v,styles:Q,shadow:m,variant:b,value:c,color:x,isHovered:_,isDisabled:H,isReadOnly:O,isFocused:S,isWithLabel:$,colorScheme:x,onMouseEnter:oe,onMouseLeave:oe},i.createElement(Me,null,$&&i.createElement(Ie,Object.assign({htmlFor:o,color:x,error:d},Q),s),i.createElement(t.Element,Object.assign({as:"textarea",id:o,name:n,rows:V,cols:G,value:c,readOnly:O,disabled:H,autoFocus:L,editable:y,placeholder:a,onBlur:function(e){D(e),Z(!1)},onFocus:function(){Z(!0),A&&A()},onChange:ie,multiline:R},ee,X,W&&{onChangeText:ie})))))},fo=d.create((function(e){return{modal:!1,modalProps:{isVisible:!1},overlayProps:{},show:function(o,i,t){void 0===i&&(i={}),void 0===t&&(t={}),o&&(i.isVisible=!0),e((function(e){return r({},e,{modal:o,modalProps:i,overlayProps:t})}))},hide:function(){e((function(e){return r({},e,{modalProps:r({},e.modalProps,{isVisible:!1})})}))}}})),bo=function(){fo.getState().hide()},jo={sharp:{borderRadius:0},rounded:{borderRadius:4}},xo={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},Co={xs:12,sm:16,md:20,lg:24,xl:28},_o=["children","blur","isOpen","isClosePrevented","onClose","position"],Eo=["children","shadow","isFullScreen","shape"],So=["children","buttonColor","iconSize","buttonPosition"],wo=["children"],yo=["children"],zo=function(e){var o=e.children,t=e.blur,n=e.isOpen,a=void 0!==n&&n,d=e.isClosePrevented,r=void 0!==d&&d,s=e.onClose,m=void 0===s?function(){}:s,u=e.position,h=void 0===u?"center":u,g=l(e,_o),v=function(){r||m()};return i.createElement(p,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:v,visibility:a?"visible":"hidden"},i.createElement(c,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:t?"blur("+t+"px)":void 0,onClick:v},xo[h],g),o))},Oo=function(e){return i.createElement(i.Fragment,null,e.children)};Oo.Overlay=zo,Oo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,d=e.shape,r=void 0===d?"rounded":d,c=l(e,Eo),s=void 0!==typeof document?{boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.3)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowOffset:{width:0,height:2},shadowOpacity:1,shadowRadius:8};return i.createElement(se,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:a?"100%":600,height:a?"100%":"fit-content",onClick:function(e){e&&e.stopPropagation&&e.stopPropagation()}},t||s,jo[r],c),o)},Oo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,d=void 0===a?"md":a,r=e.buttonPosition,c=void 0===r?"right":r,s=l(e,So),m=i.createElement(X,{onClick:s.onClose?s.onClose:bo,colorScheme:"transparent",icon:i.createElement(E,{size:Co[d],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(u,Object.assign({justifyContent:"none"===c?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},s),"left"===c&&m,o,"right"===c&&m)},Oo.Body=function(e){var o=e.children,t=l(e,wo);return i.createElement(c,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},t),o)},Oo.Footer=function(e){var o=e.children,t=l(e,yo);return i.createElement(u,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},Oo.Layout=function(e){var t=e.modals,n=fo((function(e){return{modal:e.modal,modalProps:e.modalProps,overlayProps:e.overlayProps}}));if("boolean"==typeof n.modal)return null;var a=t[n.modal];return a?i.createElement(o.Fragment,null,i.createElement(zo,Object.assign({isOpen:n.modalProps.isVisible,onClose:bo,blur:10},n.overlayProps),void 0!==a&&i.createElement(a,Object.assign({},n.modalProps)))):(console.error(n.modal+" modal doesn't exist"),null)};var ko=["src","color"],Ho=["path"];exports.Bottom=function(e){return i.createElement(t.View,Object.assign({marginTop:"auto"},e))},exports.Button=X,exports.Center=p,exports.Checkbox=function(e){var o,t,n,a,d=(t=void 0!==(o=e.defaultIsSelected)&&o,{isHovered:(n=i.useState(!1))[0],setIsHovered:n[1],isSelected:(a=i.useState(t))[0],setIsSelected:a[1]});return i.createElement(de,Object.assign({},d,e))},exports.CountryPicker=function(e){var o,t,n,a,d,r,l,c,s,m,u,h,g,p,v=(o=e.placeholder,n=(t=i.useState(re))[0],a=t[1],r=(d=i.useState(null!=o?o:re[0].name))[0],l=d[1],s=(c=i.useState(!0))[0],m=c[1],h=(u=i.useState(!1))[0],g=u[1],{hide:s,setHide:m,newOptions:n,setNewOptions:a,isHovered:(p=i.useState(!1))[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,value:r,setValue:l});return i.createElement(Pe,Object.assign({},v,e))},exports.DatePicker=function(e){var o,t,n,d,r,l,c,s=(t=(o=i.useState(!1))[0],n=o[1],r=(d=i.useState(!1))[0],l=d[1],{date:(c=i.useState(a(new Date,"yyyy-MM-dd")))[0],setDate:c[1],isHovered:t,setIsHovered:n,isFocused:r,setIsFocused:l});return i.createElement(Ne,Object.assign({},s,e))},exports.FileImage=function(e){var o=e.path,n=l(e,Ho);return i.createElement(t.Image,Object.assign({src:o},n))},exports.FileSVG=function(e){var o=e.src,n=e.color,a=l(e,ko),d=t.useTheme().getColor,r=n?{fill:d(n),stroke:d(n)}:{};return i.createElement(p,Object.assign({},a),i.createElement(t.Image,Object.assign({},r,{content:'url("'+o+'")',width:"100%",height:"100%"})))},exports.Horizontal=u,exports.Inline=function(e){return i.createElement(t.View,Object.assign({display:"inline-flex",wordBreak:"break-word"},e))},exports.Left=function(e){return i.createElement(t.View,Object.assign({marginRight:"auto"},e))},exports.Link=T,exports.Loader=Y,exports.Modal=Oo,exports.Password=function(e){var n=e.visibleIcon,a=void 0===n?i.createElement(I,{size:14}):n,d=e.hiddenIcon,c=void 0===d?i.createElement(w,{size:14}):d,s=l(e,Ye),m=function(e){var i=Ke(e),t=o.useState(!1);return r({isVisible:t[0],setIsVisible:t[1]},i)}(s),u=m.isVisible,h=m.setIsVisible,g=l(m,qe);return i.createElement(Je,Object.assign({},s,g,{type:u?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){s.isDisabled||h(!u)}},u?a:c)}))},exports.Right=function(e){return i.createElement(t.View,Object.assign({marginLeft:"auto"},e))},exports.Select=function(e){var o,t,n,a,d,r,l,c,s,m,u,h,g=(t=(o=e).placeholder?o.isMulti?[]:"":o.options[0],a=(n=i.useState(!0))[0],d=n[1],l=(r=i.useState(!1))[0],c=r[1],m=(s=i.useState(!1))[0],u=s[1],{value:(h=i.useState(t))[0],setValue:h[1],hide:a,setHide:d,isHovered:l,setIsHovered:c,isFocused:m,setIsFocused:u});return i.createElement(lo,Object.assign({},g,e))},exports.Switch=function(e){var o,t,n,a,d,r=(t=(o=e).isDisabled,n=o.isChecked,{isHovered:(a=i.useState(!1))[0],setIsHovered:a[1],on:(d=i.useState(t?!t:n))[0],setOn:d[1]});return i.createElement(go,Object.assign({},r,e))},exports.Text=ve,exports.TextArea=function(e){var t,n,a,d,r,l,c,s,m,u,h,g,p,v,f,b,j=(a=(t=e).placeholder,d=t.defaultValue,l=(r=o.useState(null!=(n=t.label)?n:a))[0],c=r[1],m=(s=o.useState(!1))[0],u=s[1],h=o.useState(d||""),g=h[0],p=h[1],b=(v=o.useState(!1))[1],o.useMemo((function(){c(f&&!g?null!=a?a:"":null!=n?n:a)}),[g,f=v[0],n,a]),{hint:l,setHint:c,isHovered:m,setIsHovered:u,value:g,setValue:p,isFocused:f,setIsFocused:b});return i.createElement(vo,Object.assign({},j,e))},exports.TextField=function(e){var o=Ke(e);return i.createElement(Je,Object.assign({},o,e))},exports.Top=function(e){return i.createElement(t.View,Object.assign({marginBottom:"auto"},e))},exports.Vertical=se,exports.View=c,exports.hideModal=bo,exports.showModal=function(e,o,i){void 0===o&&(o={}),void 0===i&&(i={}),fo.getState().show(e,o,i)},exports.useModalStore=fo;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),i=e(o),t=require("app-studio"),n=require("react-router-dom"),a=e(require("date-fns/format")),d=require("zustand");function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(this,arguments)}function l(e,o){if(null==e)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)o.indexOf(i=a[t])>=0||(n[i]=e[i]);return n}var c=t.View,s=["children","wrap","justify","isReversed"],m=function(e){var o=e.children,t=e.wrap,n=void 0===t?"wrap":t,a=e.justify,d=void 0===a?"flex-start":a,r=e.isReversed,m=void 0!==r&&r,u=l(e,s);return i.createElement(c,Object.assign({display:"flex",flexWrap:n,flexDirection:m?"row-reverse":"row",justifyContent:d},u),o)},u=function(e){return i.createElement(m,Object.assign({},e))},h=["children","wrap"],g=function(e){var o=e.children,t=e.wrap,n=l(e,h);return i.createElement(c,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:t},n),o)},p=function(e){return i.createElement(g,Object.assign({},e))},v=["size","color"],f=function(e){var o=e.size,t=void 0===o?64:o,n=l(e,v);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_down [#338]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-220.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M164.292308,6524.36583 L164.292308,6524.36583 C163.902564,6524.77071 163.902564,6525.42619 164.292308,6525.83004 L172.555873,6534.39267 C173.33636,6535.20244 174.602528,6535.20244 175.383014,6534.39267 L183.70754,6525.76791 C184.093286,6525.36716 184.098283,6524.71997 183.717533,6524.31405 C183.328789,6523.89985 182.68821,6523.89467 182.29347,6524.30266 L174.676479,6532.19636 C174.285736,6532.60124 173.653152,6532.60124 173.262409,6532.19636 L165.705379,6524.36583 C165.315635,6523.96094 164.683051,6523.96094 164.292308,6524.36583",id:"arrow_down-[#338]"})))))))},b=["size","color"],j=function(e){var o=e.size,t=void 0===o?64:o,n=l(e,b);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_up [#337]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-260.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M223.707692,6534.63378 L223.707692,6534.63378 C224.097436,6534.22888 224.097436,6533.57338 223.707692,6533.16951 L215.444127,6524.60657 C214.66364,6523.79781 213.397472,6523.79781 212.616986,6524.60657 L204.29246,6533.23165 C203.906714,6533.6324 203.901717,6534.27962 204.282467,6534.68555 C204.671211,6535.10081 205.31179,6535.10495 205.70653,6534.69695 L213.323521,6526.80297 C213.714264,6526.39807 214.346848,6526.39807 214.737591,6526.80297 L222.294621,6534.63378 C222.684365,6535.03868 223.317949,6535.03868 223.707692,6534.63378",id:"arrow_up-[#337]"})))))))},x=["size","color"],C=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,x);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"0.048"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M17.0001 9L10 16L7 13",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},_=["size","color"],E=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,_);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fill:a,d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"}))))},S=["size","color"],w=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,d=l(e,S);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",fill:a}))))},y=["size","color"],z=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,y);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({fill:a,width:t+"px",height:t+"px",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",stroke:a},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"}),i.createElement("path",{d:"M40 20h-2v-8h-8v-2h10z"}),i.createElement("path",{d:"M35 38H15c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h11v2H15c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h20c.6 0 1-.4 1-1V24h2v11c0 1.7-1.3 3-3 3z"}))))},O=["size","color"],k=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,O);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M7 12L17 12",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},H=["size","color"],I=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,d=l(e,H);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.30147 15.5771C4.77832 14.2684 3.6904 12.7726 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C14.1843 6 16.1261 7.07185 17.6986 8.42294C19.2218 9.73158 20.3097 11.2274 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18C9.81574 18 7.87402 16.9282 6.30147 15.5771ZM12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C2.00757 13.8624 3.23268 15.5772 4.99812 17.0941C6.75717 18.6054 9.14754 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C21.9925 10.1376 20.7674 8.42276 19.002 6.90595C17.2429 5.39462 14.8525 4 12 4ZM10 12C10 10.8954 10.8955 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8955 14 10 13.1046 10 12ZM12 8C9.7909 8 8.00004 9.79086 8.00004 12C8.00004 14.2091 9.7909 16 12 16C14.2092 16 16 14.2091 16 12C16 9.79086 14.2092 8 12 8Z",fill:a}))))},L={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},M=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],R=function(e){var o=e.children,a=e.href,d=void 0===a?"/":a,r=e.iconSize,c=void 0===r?"sm":r,s=e.underline,m=void 0===s?"default":s,h=e.isHovered,g=void 0!==h&&h,p=e.isExternal,v=void 0!==p&&p,f=e.colorScheme,b=void 0===f?"#0072F5":f,j=e.styles,x=void 0===j?{icon:{},text:{}}:j,C=e.setIsHovered,_=void 0===C?function(){}:C,E=l(e,M),S=function(){"hover"===m&&_(!0)};return i.createElement(n.Link,{to:d,target:v?"_blank":"_self"},i.createElement(t.Element,Object.assign({color:b,onMouseEnter:S,onMouseLeave:S,textDecoration:g||"underline"===m?"underline !important":"none"},x.text,E),i.createElement(u,{gap:3,alignItems:"center",wrap:"nowrap"},o,v&&i.createElement(z,{color:b,size:L[c],style:x.icon}))))},T=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(R,Object.assign({},n,e))},V={xs:{width:79,paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,fontWeight:600,fontSize:"xs",lineHeight:16,letterSpacing:1.25},sm:{width:128,paddingTop:10,paddingBottom:10,paddingLeft:16,paddingRight:16,fontWeight:600,fontSize:"sm",lineHeight:20,letterSpacing:1.25},md:{width:144,paddingTop:12,paddingBottom:12,paddingLeft:18,paddingRight:18,fontWeight:600,fontSize:"md",lineHeight:24,letterSpacing:1.25},lg:{width:178,paddingTop:14,paddingBottom:14,paddingLeft:22,paddingRight:22,fontWeight:600,fontSize:"lg",lineHeight:24,letterSpacing:1.25},xl:{width:220,paddingTop:16,paddingBottom:16,paddingLeft:26,paddingRight:26,fontWeight:600,fontSize:"xl",lineHeight:24,letterSpacing:1.25}},F={sharp:0,rounded:4,pillShaped:24},G={xs:{width:24,height:24,padding:12},sm:{width:24,height:24,padding:15},md:{width:36,height:36,padding:15},lg:{width:36,height:36,padding:18},xl:{width:36,height:36,padding:24}},B={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},D={fast:50,normal:100,slow:300},P=["size","speed","color"],A=["size","speed","color"],W=["size","speed","color"],N=["size","children","textColor","loaderColor","type","speed","textPosition"],K=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,P),u=t.useTheme().getColor(s),h="number"==typeof a?a:B[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),D[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:h+"px",height:h+"px",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},U=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,A),u=t.useTheme().getColor(s),h="number"==typeof a?a:B[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),D[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},Z=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,W),u=t.useTheme().getColor(s),h="number"==typeof a?a:B[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),D[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},J=function(e){var o=e.size,t=e.children,n=e.textColor,a=e.loaderColor,d=e.type,r=void 0===d?"default":d,s=e.speed,m=void 0===s?"normal":s,u=e.textPosition,h=void 0===u?"right":u,g=l(e,N),v={size:o,speed:m,color:a},f={default:i.createElement(K,Object.assign({},v)),dotted:i.createElement(U,Object.assign({},v)),quarter:i.createElement(Z,Object.assign({},v))};return i.createElement(p,Object.assign({gap:10,flexDirection:"top"===h||"bottom"===h?"column":"row"},g),("left"===h||"top"===h)&&t&&i.createElement(c,{color:n},t),f[r],("right"===h||"bottom"===h)&&t&&i.createElement(c,{color:n},t))},Y=function(e){return i.createElement(J,Object.assign({},e))},q=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick","loaderProps","loaderPosition"],Q=function(e){var o,n=e.icon,a=e.shadow,d=e.children,r=e.ariaLabel,c=e.externalHref,s=e.isAuto,m=void 0!==s&&s,h=e.isFilled,g=void 0!==h&&h,p=e.isIconRounded,v=void 0!==p&&p,f=e.isLoading,b=void 0!==f&&f,j=e.isDisabled,x=void 0!==j&&j,C=e.size,_=void 0===C?"md":C,E=e.variant,S=void 0===E?"filled":E,w=e.iconPosition,y=void 0===w?"left":w,z=e.colorScheme,O=void 0===z?"theme.primary":z,k=e.shape,H=void 0===k?"rounded":k,I=e.onClick,L=void 0===I?function(){}:I,M=e.loaderProps,R=void 0===M?{}:M,B=e.loaderPosition,D=void 0===B?"left":B,P=l(e,q),A=!(x||b),W={disabled:!A},N=A?O:"theme.disabled",K=V[_],U={filled:{backgroundColor:N,color:"color.white"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:O,color:N},link:{backgroundColor:"transparent",border:"none",color:N,textDecorationLine:"underline"},ghost:{backgroundColor:"transparent",border:"none",color:N}}[S],Z={width:m?"fit-content":g?"100%":K.width},J={padding:v?G[_].padding:V[_].padding},Q=i.createElement(u,{gap:4},b&&"left"===D&&i.createElement(Y,Object.assign({},R)),n&&"left"===y&&!b&&n,d,n&&"right"===y&&!b&&n,b&&"right"===D&&i.createElement(Y,Object.assign({},R)));return i.createElement(t.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:r,backgroundColor:N,borderRadius:F[H],onClick:null!=(o=P.onClick)?o:L,cursor:A?"pointer":"default"},W,K,U,Z,J,a,P),"link"===S&&c?i.createElement(T,{href:c,textDecorationColor:O,colorScheme:O,isExternal:!0},Q):Q)},X=function(e){var o,t={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},n=t.isHovered,a=t.setIsHovered,d=function(){return a(!n)};return i.createElement(Q,Object.assign({onMouseEnter:d,onMouseLeave:d,filter:n?"brightness(0.85)":"brightness(1)"},e))},$={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},ee=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],oe=function(e){var o=e.children,n=e.heading,a=e.isItalic,d=void 0!==a&&a,r=e.isUnderlined,c=void 0!==r&&r,s=e.isStriked,m=void 0!==s&&s,u=e.weight,h=void 0===u?"normal":u,g=e.size,p=void 0===g?"sm":g,v=l(e,ee);return i.createElement(t.Element,Object.assign({as:"label",width:"100%",fontSize:p,fontStyle:d?"italic":"normal",fontWeight:t.Typography.fontWeights[h],textDecoration:m?"line-through":c?"underline":"none"},n?$[n]:{},v),o)},ie=function(e){return i.createElement(oe,Object.assign({},e))},te={xs:{height:8,width:8},sm:{height:12,width:12},md:{height:18,width:18},lg:{height:24,width:24},xl:{height:30,width:30},"2xl":{height:36,width:36},"3xl":{height:42,width:42},"4xl":{height:48,width:48},"5xl":{height:54,width:54},"6xl":{height:60,width:60}},ne={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},ae=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],de=function(e){var o=e.id,n=e.icon,a=e.label,d=e.isChecked,c=e.onChange,s=e.onValueChange,m=e.shadow,u=void 0===m?{}:m,h=e.size,g=void 0===h?"md":h,v=e.colorScheme,f=void 0===v?"theme.primary":v,b=e.error,j=void 0!==b&&b,x=e.isSelected,_=void 0!==x&&x,E=e.isHovered,S=void 0!==E&&E,w=e.isDisabled,y=void 0!==w&&w,z=e.isReadOnly,O=void 0!==z&&z,H=e.isIndeterminate,I=void 0!==H&&H,L=e.setIsSelected,M=void 0===L?function(){}:L,R=e.setIsHovered,T=void 0===R?function(){}:R,V=e.styles,F=void 0===V?{checkbox:{},label:{}}:V,G=l(e,ae),B=function(){return T(!S)},D={container:r({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:j?"theme.error":y?"theme.disabled":"color.blueGray.700",cursor:y?"not-allowed":O?"default":"pointer"},F.label),checkbox:r({},y?{backgroundColor:"theme.disabled"}:(d||_)&&!I||I?{backgroundColor:f}:{borderWidth:2,borderColor:j?"theme.error":S?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:S?"brightness(0.9)":void 0},te[g],u,F.checkbox)};return i.createElement(ie,Object.assign({htmlFor:o,as:"div",onClick:function(){O||y||(M&&M(!_),c&&c(!d),s&&s(!d))},onMouseEnter:B,onMouseLeave:B,size:t.Typography.fontSizes[g]},D.container,G),i.createElement(p,Object.assign({},D.checkbox),I?i.createElement(k,null):(d||_)&&(null!=n?n:i.createElement(C,{size:ne[g]}))),a)},re=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],le=["children","wrap","justify","isReversed"],ce=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,d=e.justify,r=void 0===d?"flex-start":d,c=e.isReversed,s=void 0!==c&&c,m=l(e,le);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:s?"column-reverse":"column",justifyContent:r},m),o)},se=function(e){return i.createElement(ce,Object.assign({},e))},me={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},ue=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],he=function(e){var o=e.children,t=e.isSub,n=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,t&&i.createElement("sup",null,o),n&&i.createElement("sup",null,o),!t&&!n&&i.createElement(i.Fragment,null,o)):o)},ge=function(e){var t=e.text,n=e.maxLines,a=void 0===n?1:n,d=o.useRef(null),r=o.useState(t.length),l=r[0],c=r[1];o.useEffect((function(){var e=d.current;e&&function(){for(var o,i=getComputedStyle(e).lineHeight,n=("normal"!==i?parseFloat(i):20)*a,d=0,r=t.length;d<=r;)o=Math.floor((d+r)/2),e.innerText=t.substring(0,o)+"...",e.offsetHeight>n?r=o-1:d=o+1;c(r)}()}),[t,a]);var s=t.length>l?t.substring(0,l)+"...":t;return i.createElement("div",{ref:d},s)},pe=function(e){var o=e.children,n=e.heading,a=e.maxLines,d=e.isItalic,r=void 0!==d&&d,c=e.isUnderlined,s=void 0!==c&&c,m=e.isSub,u=void 0!==m&&m,h=e.isSup,g=void 0!==h&&h,p=e.isStriked,v=void 0!==p&&p,f=e.isTruncated,b=void 0!==f&&f,j=e.weight,x=void 0===j?"normal":j,C=e.size,_=void 0===C?"md":C,E=l(e,ue);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[_],lineHeight:t.Typography.lineHeights[_],fontStyle:r?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":s?"underline":"none"},u||g?{display:"inline"}:{},n?me[n]:{},E),b&&a&&"string"==typeof o?i.createElement(ge,{text:o,maxLines:a}):i.createElement(he,Object.assign({isSub:u,isSup:g},E),o))},ve=function(e){return i.createElement(pe,Object.assign({},e))},fe=["children","styles"],be=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=l(e,fe);return i.createElement(ve,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},n.helperText,a),o)},je=["children","helperText","error","styles"],xe=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,d=e.styles,r=l(e,je);return i.createElement(se,Object.assign({gap:5,position:"relative"},r),o,!a&&t&&i.createElement(be,Object.assign({},d),t),a&&i.createElement(ve,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},a))},Ce={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},_e={xs:6,sm:8,md:10,lg:12,xl:14},Ee={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},Se={paddingTop:14,paddingBottom:0,paddingLeft:16,paddingRight:36},we={paddingTop:10,paddingBottom:4,paddingLeft:16,paddingRight:36},ye=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],ze=function(e){var o=e.shadow,n=e.children,a=e.size,d=void 0===a?"md":a,r=e.shape,c=void 0===r?"default":r,s=e.variant,m=void 0===s?"default":s,h=e.error,g=void 0!==h&&h,p=e.isWithLabel,v=void 0!==p&&p,f=e.isFocused,b=void 0!==f&&f,j=e.isHovered,x=void 0!==j&&j,C=e.isDisabled,_=void 0!==C&&C,E=e.isReadOnly,S=void 0!==E&&E,w=e.colorScheme,y=void 0===w?"theme.primary":w,z=e.styles,O=void 0===z?{pickerBox:{}}:z,k=l(e,ye);return i.createElement(u,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:g?"error":!x&&!b||_?"midgray":y,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",marginBottom:5,fontSize:t.Typography.fontSizes[d],cursor:_?"not-allowed":S?"auto":"pointer"},v?Se:we,o,Ce[c],Ee[m],O.box,k),n)},Oe=["children"],ke=function(e){var o=e.children,t=l(e,Oe);return i.createElement(p,Object.assign({gap:10,right:16,zIndex:500,wrap:"nowrap",position:"absolute"},t),o)},He=["children","size","error","color","styles"],Ie=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,d=void 0!==a&&a,r=e.color,c=void 0===r?"theme.primary":r,s=e.styles,m=void 0===s?{label:{}}:s,u=l(e,He);return i.createElement(ie,Object.assign({top:6,zIndex:1e3,lineHeight:_e[n],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:d?"error":c,fontSize:_e[n]},m.label,u),o)},Le=["children"],Me=function(e){var o=e.children,t=l(e,Le);return i.createElement(se,Object.assign({width:"100%"},t),o)},Re={xs:8,sm:10,md:12,lg:14,xl:16},Te=["id","name","label","value","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","colorScheme","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setValue","styles"],Ve=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},Fe=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},Ge=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},Be=function(e){var n=e.option,a=e.size,d=void 0===a?"md":a,r=e.callback,l=void 0===r?function(){}:r,c=e.styles,s=void 0===c?{text:{}}:c,m=o.useState(!1),u=m[0],h=m[1],g=function(){return h(!u)};return i.createElement(Ge,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e&&e.stopPropagation&&e.stopPropagation(),l(n)},fontSize:t.Typography.fontSizes[d],backgroundColor:u?"trueGray.100":"transparent"},s.text),n)},De=function(e){var o=e.size,t=e.styles,n=void 0===t?{dropDown:{}}:t,a=e.options,d=e.callback,r=void 0===d?function(){}:d,l=function(e){return r(e)};return i.createElement(Ve,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},n.dropDown),a.map((function(e){return i.createElement(Be,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},Pe=function(e){var o=e.id,n=e.name,a=e.label,d=e.value,c=e.placeholder,s=e.helperText,m=e.hide,u=void 0!==m&&m,h=e.error,g=void 0!==h&&h,p=e.isHovered,v=void 0!==p&&p,b=e.isFocused,x=void 0!==b&&b,C=e.isAutoFocus,_=void 0!==C&&C,E=e.isDisabled,S=void 0!==E&&E,w=e.isReadOnly,y=void 0!==w&&w,z=e.shadow,O=void 0===z?{}:z,k=e.newOptions,H=void 0===k?[]:k,I=e.size,L=void 0===I?"md":I,M=e.variant,R=void 0===M?"default":M,T=e.shape,V=void 0===T?"default":T,F=e.colorScheme,G=void 0===F?"theme.primary":F,B=e.onChange,D=e.onBlur,P=void 0===D?function(){}:D,A=e.setHide,W=void 0===A?function(){}:A,N=e.setNewOptions,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,J=e.setIsFocused,Y=void 0===J?function(){}:J,q=e.setValue,Q=void 0===q?function(){}:q,X=e.styles,$=void 0===X?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:X,ee=l(e,Te),oe=(0,t.useTheme().getColor)("color.blueGray.700"),ie=function(){return Z(!v)},te=!(!x||!a),ne=r({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[L],backgroundColor:"transparent",color:S?"color.trueGray.600":"color.blueGray.700",cursor:S?"not-allowed":"auto"},$.field);return i.createElement(xe,{helperText:s,error:g,styles:$,onClick:function(){S||y||W(!u)}},i.createElement(ze,{label:a,size:L,error:g,shape:V,styles:$,shadow:O,variant:R,value:d,color:G,isHovered:v,isDisabled:S,isReadOnly:y,isFocused:x,isWithLabel:te,colorScheme:G,onMouseEnter:ie,onMouseLeave:ie},i.createElement(Me,null,te&&i.createElement(Ie,Object.assign({htmlFor:o,color:G,error:g},$),a),i.createElement(Fe,Object.assign({id:o,name:n,placeholder:c,readOnly:y,disabled:S,autoFocus:_,onBlur:function(e){P(e),Y(!1)},onFocus:function(){return Y(!0)}},ne,ee,{value:d,onChange:function(e){var o=e.target.value,i=re.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));u&&W(!1),K(i),B&&B(o)}}))),i.createElement(ke,null,i.createElement(u?f:j,{size:Re[L],color:oe,style:$.icon}))),!u&&i.createElement(De,{size:L,styles:$,options:H,callback:function(e){W(!u),Q(e),B&&B(e)}}))},Ae=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],We=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},Ne=function(e){var o=e.id,n=e.name,a=e.label,d=e.date,c=e.helperText,s=e.shadow,m=void 0===s?{}:s,u=e.size,h=void 0===u?"md":u,g=e.variant,p=void 0===g?"default":g,v=e.shape,f=void 0===v?"default":v,b=e.colorScheme,j=void 0===b?"theme.primary":b,x=e.styles,C=void 0===x?{box:{},label:{},helperText:{},text:{},field:{}}:x,_=e.error,E=void 0!==_&&_,S=e.isHovered,w=void 0!==S&&S,y=e.isFocused,z=void 0!==y&&y,O=e.isDisabled,k=void 0!==O&&O,H=e.isReadOnly,I=void 0!==H&&H,L=e.setDate,M=void 0===L?function(){}:L,R=e.setIsFocused,T=void 0===R?function(){}:R,V=e.setIsHovered,F=void 0===V?function(){}:V,G=e.onChange,B=e.onChangeText,D=l(e,Ae),P=!(!z||!a),A=function(){return F(!w)},W=function(e){"string"==typeof e?(M(e),B&&B(e)):(M(e.target.value),G&&G(e))},N=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:t.Typography.fontSizes[h],backgroundColor:"transparent",color:k?"color.trueGray.600":"color.blueGray.700",cursor:k?"not-allowed":I?"auto":"pointer"},C.field);return i.createElement(xe,{helperText:c,error:E,styles:C},i.createElement(ze,{label:a,size:h,error:E,shape:f,styles:C,shadow:m,variant:p,value:d,color:j,isHovered:w,isDisabled:k,isReadOnly:I,isFocused:z,isWithLabel:P,colorScheme:j,onMouseEnter:A,onMouseLeave:A},i.createElement(Me,null,P&&i.createElement(Ie,Object.assign({htmlFor:o,color:j,error:E},C),a),i.createElement(We,Object.assign({id:o,name:n,value:d,onFocus:function(){return T(!0)},onChange:W,disabled:k,readOnly:I},N,B&&{onChangeText:W},D)))))},Ke=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),d=a[0],r=a[1],l=o.useState(!1),c=l[0],s=l[1],m=o.useState(!1),u=m[0],h=m[1],g=o.useState(n||""),p=g[0],v=g[1];return o.useMemo((function(){r(c&&!p?null!=t?t:"":null!=i?i:t)}),[p,c,i,t]),{hint:d,setHint:r,isFocused:c,setIsFocused:s,isHovered:u,setIsHovered:h,setValue:v,value:p}},Ue=["id","name","label","hint","value","onChange","leftChild","rightChild","helperText","placeholder","onChangeText","shadow","styles","size","shape","variant","colorScheme","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setValue","onClick","onFocus","onBlur"],Ze=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},Je=function(e){var o=e.id,n=e.name,a=e.label,d=e.hint,c=e.value,s=e.onChange,m=e.leftChild,u=e.rightChild,h=e.helperText,g=e.onChangeText,p=e.shadow,v=void 0===p?{}:p,f=e.styles,b=void 0===f?{box:{},field:{},label:{},helperText:{},text:{}}:f,j=e.size,x=void 0===j?"md":j,C=e.shape,_=void 0===C?"default":C,S=e.variant,w=void 0===S?"default":S,y=e.colorScheme,z=void 0===y?"theme.primary":y,O=e.error,k=void 0!==O&&O,H=e.isFocused,I=void 0!==H&&H,L=e.isHovered,M=void 0!==L&&L,R=e.isDisabled,T=void 0!==R&&R,V=e.isReadOnly,F=void 0!==V&&V,G=e.isClearable,B=void 0===G||G,D=e.isAutoFocus,P=void 0!==D&&D,A=e.setIsFocused,W=void 0===A?function(){}:A,N=e.setIsHovered,K=void 0===N?function(){}:N,U=e.setValue,Z=void 0===U?function(){}:U,J=e.onFocus,Y=e.onBlur,q=void 0===Y?function(){}:Y,Q=l(e,Ue),X=(0,t.useTheme().getColor)("color.blueGray.700"),$=!(!I||!a),ee=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[x],lineHeight:t.Typography.fontSizes[x],backgroundColor:"transparent",color:T?"color.trueGray.600":"color.blueGray.700",cursor:T?"not-allowed":"auto"},b.field),oe=function(){return K(!M)},ie=function(e){"string"==typeof e?(Z(e),g&&g(e),s&&s(e)):(Z(e.target.value),g&&g(e.target.value),s&&s(e.target.value))};return i.createElement(xe,{helperText:h,error:k,styles:b},i.createElement(ze,{label:a,size:x,error:k,shape:_,styles:b,shadow:v,variant:w,value:c,color:z,isHovered:M,isDisabled:T,isReadOnly:F,isFocused:I,isWithLabel:$,colorScheme:z,onMouseEnter:oe,onMouseLeave:oe},m,i.createElement(Me,null,$&&i.createElement(Ie,Object.assign({htmlFor:o,color:z,error:k},b),a),i.createElement(Ze,Object.assign({id:o,name:n,readOnly:F,disabled:T,autoFocus:P,placeholder:d,onFocus:function(){W(!0),J&&J()},onBlur:function(e){q(e),W(!1)},autoComplete:"off"},ee,Q,{onChange:ie,value:c},s&&{onChange:ie}))),(u||B&&c)&&i.createElement(ke,null,u&&i.createElement(i.Fragment,null,u),B&&c&&!F&&!T&&i.createElement(E,{size:t.Typography.fontSizes[x],color:X,onClick:function(){Z(""),s&&(q({target:{name:n}}),s({target:{name:n,value:""}})),"undefined"==typeof document&&g&&g("")}}))))},Ye=["visibleIcon","hiddenIcon"],qe=["isVisible","setIsVisible"],Qe={xs:8,sm:10,md:12,lg:14,xl:16},Xe=["isHovered","setIsHovered","option","size","callback"],$e=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],eo=["option","size","removeOption"],oo=["id","name","label","value","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","colorScheme","shape","variant","styles","onChange","setHide","setValue","setIsHovered","setIsFocused"],io=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,d=e.size,r=void 0===d?"md":d,c=e.callback,s=void 0===c?function(){}:c,m=l(e,Xe),u=function(){return n(!o)};return i.createElement(t.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:u,onMouseLeave:u,fontSize:t.Typography.fontSizes[r],onClick:function(){return function(e){return s(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},m),a)},to=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,d=e.value,l=e.isDisabled,c=e.placeholder,s=e.removeOption,m=void 0===s?function(){}:s,h=r({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:l?"color.trueGray.600":"color.blueGray.700",cursor:l?"not-allowed":"auto"},a.field,a.text);return i.createElement(ve,Object.assign({},h),(""===d||d&&0===d.length)&&c?c:i.createElement(i.Fragment,null,"string"==typeof d?d:d&&d.length>0&&i.createElement(u,{gap:6},d.map((function(e){return i.createElement(ro,{key:e,option:e,removeOption:m})})))))},no=function(e){var o=e.id,n=e.name,a=e.value,d=e.onChange,r=e.isMulti,c=void 0!==r&&r,s=e.isDisabled,m=void 0!==s&&s,u=e.isReadOnly,h=void 0!==u&&u,g=e.options,p=void 0===g?[]:g,v=l(e,$e);return i.createElement(t.Element,Object.assign({id:o,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:a,disabled:m,readOnly:h,onChange:function(e){d&&d(e)},multiple:c},v),p.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},ao=function(e){var o,n=e.size,a=e.styles,d=void 0===a?{dropDown:{}}:a,r=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},m=function(e){return c(e)},u=void 0!==typeof document?{boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"}:{elevation:2,shadowColor:"rgba(0, 0, 0, 0.07)",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:1};return i.createElement(t.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e3,overflowY:"auto",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",justifyContent:"space-evenly"},u,d.dropDown),r.map((function(e){return i.createElement(io,Object.assign({key:e,size:n,option:e,callback:m},s,d.text))})))},ro=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,d=e.removeOption,r=void 0===d?function(){}:d,c=l(e,eo);return i.createElement(u,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:t.Typography.fontSizes[a],backgroundColor:"color.trueGray.300",onClick:function(e){return e.stopPropagation()}},c),i.createElement(ve,{size:a},o),i.createElement(E,{role:"close-button",color:"inherit",size:Qe[a],onClick:function(){return r(o)}}))},lo=function(e){var t=e.id,n=e.name,a=e.label,d=e.value,r=e.placeholder,c=e.helperText,s=e.hide,m=void 0!==s&&s,u=e.error,h=void 0!==u&&u,g=e.isMulti,p=void 0!==g&&g,v=e.isFocused,b=void 0!==v&&v,x=e.isHovered,C=void 0!==x&&x,_=e.isDisabled,E=void 0!==_&&_,S=e.isReadOnly,w=void 0!==S&&S,y=e.options,z=void 0===y?[]:y,O=e.shadow,k=void 0===O?{}:O,H=e.size,I=void 0===H?"md":H,L=e.colorScheme,M=void 0===L?"theme.primary":L,R=e.shape,T=void 0===R?"default":R,V=e.variant,F=void 0===V?"default":V,G=e.styles,B=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,D=e.onChange,P=void 0===D?function(){}:D,A=e.setHide,W=void 0===A?function(){}:A,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,J=e.setIsFocused,Y=void 0===J?function(){}:J,q=l(e,oo),Q=!(!b||!a),X=function(){return Z(!C)},$=o.useCallback((function(e){W(!m),p&&Array.isArray(d)?!d.includes(e)&&K([].concat(d,[e])):K(e),P&&P(e)}),[m,p,d]);return i.createElement(xe,{role:"SelectBox",helperText:c,error:h,styles:B,onClick:E||w?function(){}:function(e){e&&e.stopPropagation&&e.stopPropagation(),W(!m),Y(!b)}},i.createElement(ze,{label:a,size:I,error:h,shape:T,styles:B,shadow:k,variant:F,value:d,color:M,isHovered:C,isDisabled:E,isReadOnly:w,isFocused:b,isWithLabel:Q,colorScheme:M,onMouseEnter:X,onMouseLeave:X},i.createElement(Me,null,Q&&i.createElement(Ie,Object.assign({htmlFor:t,color:M,error:h},B),a),i.createElement(no,Object.assign({id:t,name:n,options:z,onChange:P,value:d,isDisabled:E,isReadOnly:w,isMulti:p,onFocus:function(){return Y(!0)}},q)),i.createElement(to,{size:I,styles:B,value:d,isDisabled:E,placeholder:r,removeOption:function(e){if(Array.isArray(d)&&d.includes(e)){var o=d.filter((function(o){return o!==e}));K(0===o.length?[]:o)}}})),i.createElement(ke,null,!w&&!E&&i.createElement(i.Fragment,null,i.createElement(m?f:j,{color:"inherit",size:Qe[I],style:B.icon})))),!m&&i.createElement(ao,{size:I,styles:B,options:z,callback:$}))},co={xs:{height:6,width:6},sm:{height:9,width:9},md:{height:12,width:12},lg:{height:15,width:15},xl:{height:18,width:18},"2xl":{height:21,width:21},"3xl":{height:24,width:24},"4xl":{height:27,width:27},"5xl":{height:30,width:30},"6xl":{height:33,width:33}},so={xs:{height:16,width:28},sm:{height:20,width:36},md:{height:24,width:44},lg:{height:28,width:52},xl:{height:32,width:60},"2xl":{height:36,width:68},"3xl":{height:40,width:76},"4xl":{height:44,width:84},"5xl":{height:48,width:92},"6xl":{height:52,width:100}},mo={xs:{paddingVertical:0,paddingHorizontal:2},sm:{paddingVertical:0,paddingHorizontal:3},md:{paddingVertical:0,paddingHorizontal:5},lg:{paddingVertical:0,paddingHorizontal:6},xl:{paddingVertical:0,paddingHorizontal:8},"2xl":{paddingVertical:0,paddingHorizontal:9},"3xl":{paddingVertical:0,paddingHorizontal:10},"4xl":{paddingVertical:0,paddingHorizontal:13},"5xl":{paddingVertical:0,paddingHorizontal:15},"6xl":{paddingVertical:0,paddingHorizontal:16}},uo=["id","name","inActiveChild","activeChild","shadow","size","colorScheme","on","isHovered","isChecked","isDisabled","isReadOnly","onChange","onValueChange","setOn","setIsHovered","styles"],ho=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},go=function(e){var o=e.id,t=e.name,n=e.inActiveChild,a=e.activeChild,d=e.shadow,r=void 0===d?{}:d,s=e.size,m=void 0===s?"sm":s,u=e.colorScheme,h=void 0===u?"theme.primary":u,g=e.on,p=void 0!==g&&g,v=e.isHovered,f=void 0!==v&&v,b=e.isDisabled,j=void 0!==b&&b,x=e.isReadOnly,C=void 0!==x&&x,_=e.onChange,E=e.onValueChange,S=e.setOn,w=void 0===S?function(){}:S,y=e.setIsHovered,z=void 0===y?function(){}:y,O=e.styles,k=void 0===O?{slider:{},circle:{}}:O,H=l(e,uo),I=function(e){C||(w(!p),_&&_(e.target.checked))},L=function(){return z(!f)};return i.createElement(ie,{htmlFor:o,onMouseEnter:L,onMouseLeave:L},i.createElement(ho,Object.assign({id:o,name:t,opacity:0,width:0,height:0,checked:p,onChange:I,disabled:j,readOnly:C},E&&{onValueChange:I},H)),i.createElement(c,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,marginBottom:5,filter:f&&p?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:j?"disabled":p?h:"lightgray",justifyContent:a?"space-between":p?"flex-end":"flex-start"},r,mo[m],so[m],k.slider),a&&p&&i.createElement(c,null,a),i.createElement(c,Object.assign({borderRadius:"50%",backgroundColor:"white"},co[m],k.circle)),n&&!p&&i.createElement(c,null,n)))},po=["id","name","hint","error","value","label","shadow","helperText","placeholder","size","shape","variant","colorScheme","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","onChangeText","setHint","setValue","setIsFocused","setIsHovered","styles"],vo=function(e){var o=e.id,n=e.name,a=e.hint,d=e.error,c=e.value,s=e.label,m=e.shadow,u=e.helperText,h=e.size,g=void 0===h?"sm":h,p=e.shape,v=void 0===p?"default":p,f=e.variant,b=void 0===f?"default":f,j=e.colorScheme,x=void 0===j?"theme.primary":j,C=e.isHovered,_=void 0!==C&&C,E=e.isFocused,S=void 0!==E&&E,w=e.isEditable,y=void 0!==w&&w,z=e.isReadOnly,O=void 0!==z&&z,k=e.isDisabled,H=void 0!==k&&k,I=e.isAutoFocus,L=void 0!==I&&I,M=e.isMultiline,R=void 0!==M&&M,T=e.maxRows,V=void 0===T?3:T,F=e.maxCols,G=void 0===F?30:F,B=e.onBlur,D=void 0===B?function(){}:B,P=e.onChange,A=e.onFocus,W=e.onChangeText,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsFocused,Z=void 0===U?function(){}:U,J=e.setIsHovered,Y=void 0===J?function(){}:J,q=e.styles,Q=void 0===q?{box:{},text:{},label:{},helperText:{},field:{}}:q,X=l(e,po),$=!(!S||!s),ee=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[g],backgroundColor:"transparent",color:H?"color.trueGray.600":"color.blueGray.700",cursor:H?"not-allowed":"auto"},Q.field),oe=function(){return Y(!_)},ie=function(e){"string"==typeof e?(K(e),W&&W(e)):(K(e.target.value),P&&P(e.target.value))};return i.createElement(xe,{helperText:u,error:d,styles:Q},i.createElement(ze,{label:s,size:g,error:d,shape:v,styles:Q,shadow:m,variant:b,value:c,color:x,isHovered:_,isDisabled:H,isReadOnly:O,isFocused:S,isWithLabel:$,colorScheme:x,onMouseEnter:oe,onMouseLeave:oe},i.createElement(Me,null,$&&i.createElement(Ie,Object.assign({htmlFor:o,color:x,error:d},Q),s),i.createElement(t.Element,Object.assign({as:"textarea",id:o,name:n,rows:V,cols:G,value:c,readOnly:O,disabled:H,autoFocus:L,editable:y,placeholder:a,onBlur:function(e){D(e),Z(!1)},onFocus:function(){Z(!0),A&&A()},onChange:ie,multiline:R},ee,X,W&&{onChangeText:ie})))))},fo=d.create((function(e){return{modal:!1,modalProps:{isVisible:!1},overlayProps:{},show:function(o,i,t){void 0===i&&(i={}),void 0===t&&(t={}),o&&(i.isVisible=!0),e((function(e){return r({},e,{modal:o,modalProps:i,overlayProps:t})}))},hide:function(){e((function(e){return r({},e,{modalProps:r({},e.modalProps,{isVisible:!1})})}))}}})),bo=function(){fo.getState().hide()},jo={sharp:{borderRadius:0},rounded:{borderRadius:4}},xo={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},Co={xs:12,sm:16,md:20,lg:24,xl:28},_o=["children","blur","isOpen","isClosePrevented","onClose","position"],Eo=["children","shadow","isFullScreen","shape"],So=["children","buttonColor","iconSize","buttonPosition"],wo=["children"],yo=["children"],zo=function(e){var o=e.children,t=e.blur,n=e.isOpen,a=void 0!==n&&n,d=e.isClosePrevented,r=void 0!==d&&d,s=e.onClose,m=void 0===s?function(){}:s,u=e.position,h=void 0===u?"center":u,g=l(e,_o),v=function(){r||m()};return i.createElement(p,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:v,visibility:a?"visible":"hidden"},i.createElement(c,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:t?"blur("+t+"px)":void 0,onClick:v},xo[h],g),o))},Oo=function(e){return i.createElement(i.Fragment,null,e.children)};Oo.Overlay=zo,Oo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,d=e.shape,r=void 0===d?"rounded":d,c=l(e,Eo),s=void 0!==typeof document?{boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.3)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowOffset:{width:0,height:2},shadowOpacity:1,shadowRadius:8};return i.createElement(se,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:a?"100%":600,height:a?"100%":"fit-content",onClick:function(e){e&&e.stopPropagation&&e.stopPropagation()}},t||s,jo[r],c),o)},Oo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,d=void 0===a?"md":a,r=e.buttonPosition,c=void 0===r?"right":r,s=l(e,So),m=i.createElement(X,{onClick:s.onClose?s.onClose:bo,colorScheme:"transparent",icon:i.createElement(E,{size:Co[d],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(u,Object.assign({justifyContent:"none"===c?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},s),"left"===c&&m,o,"right"===c&&m)},Oo.Body=function(e){var o=e.children,t=l(e,wo);return i.createElement(c,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},t),o)},Oo.Footer=function(e){var o=e.children,t=l(e,yo);return i.createElement(u,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},Oo.Layout=function(e){var t=e.modals,n=fo((function(e){return{modal:e.modal,modalProps:e.modalProps,overlayProps:e.overlayProps}}));if("boolean"==typeof n.modal)return null;var a=t[n.modal];return a?i.createElement(o.Fragment,null,i.createElement(zo,Object.assign({isOpen:n.modalProps.isVisible,onClose:bo,blur:10},n.overlayProps),void 0!==a&&i.createElement(a,Object.assign({},n.modalProps)))):(console.error(n.modal+" modal doesn't exist"),null)};var ko=["src","color"],Ho=["path"];exports.Bottom=function(e){return i.createElement(t.View,Object.assign({marginTop:"auto"},e))},exports.Button=X,exports.Center=p,exports.Checkbox=function(e){var o,t,n,a,d=(t=void 0!==(o=e.defaultIsSelected)&&o,{isHovered:(n=i.useState(!1))[0],setIsHovered:n[1],isSelected:(a=i.useState(t))[0],setIsSelected:a[1]});return i.createElement(de,Object.assign({},d,e))},exports.CountryPicker=function(e){var o,t,n,a,d,r,l,c,s,m,u,h,g,p,v=(o=e.placeholder,n=(t=i.useState(re))[0],a=t[1],r=(d=i.useState(null!=o?o:re[0].name))[0],l=d[1],s=(c=i.useState(!0))[0],m=c[1],h=(u=i.useState(!1))[0],g=u[1],{hide:s,setHide:m,newOptions:n,setNewOptions:a,isHovered:(p=i.useState(!1))[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,value:r,setValue:l});return i.createElement(Pe,Object.assign({},v,e))},exports.DatePicker=function(e){var o,t,n,d,r,l,c,s=(t=(o=i.useState(!1))[0],n=o[1],r=(d=i.useState(!1))[0],l=d[1],{date:(c=i.useState(a(new Date,"yyyy-MM-dd")))[0],setDate:c[1],isHovered:t,setIsHovered:n,isFocused:r,setIsFocused:l});return i.createElement(Ne,Object.assign({},s,e))},exports.FileImage=function(e){var o=e.path,n=l(e,Ho);return i.createElement(t.Image,Object.assign({src:o},n))},exports.FileSVG=function(e){var o=e.src,n=e.color,a=l(e,ko),d=t.useTheme().getColor,r=n?{fill:d(n),stroke:d(n)}:{};return i.createElement(p,Object.assign({},a),i.createElement(t.Image,Object.assign({},r,{content:'url("'+o+'")',width:"100%",height:"100%"})))},exports.Horizontal=u,exports.Inline=function(e){return i.createElement(t.View,Object.assign({display:"inline-flex",wordBreak:"break-word"},e))},exports.Left=function(e){return i.createElement(t.View,Object.assign({marginRight:"auto"},e))},exports.Link=T,exports.Loader=Y,exports.Modal=Oo,exports.Password=function(e){var n=e.visibleIcon,a=void 0===n?i.createElement(I,{size:14}):n,d=e.hiddenIcon,c=void 0===d?i.createElement(w,{size:14}):d,s=l(e,Ye),m=function(e){var i=Ke(e),t=o.useState(!1);return r({isVisible:t[0],setIsVisible:t[1]},i)}(s),u=m.isVisible,h=m.setIsVisible,g=l(m,qe);return i.createElement(Je,Object.assign({},s,g,{type:u?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){s.isDisabled||h(!u)}},u?a:c)}))},exports.Right=function(e){return i.createElement(t.View,Object.assign({marginLeft:"auto"},e))},exports.Select=function(e){var o,t,n,a,d,r,l,c,s,m,u,h,g=(t=(o=e).placeholder?o.isMulti?[]:"":o.options[0],a=(n=i.useState(!0))[0],d=n[1],l=(r=i.useState(!1))[0],c=r[1],m=(s=i.useState(!1))[0],u=s[1],{value:(h=i.useState(t))[0],setValue:h[1],hide:a,setHide:d,isHovered:l,setIsHovered:c,isFocused:m,setIsFocused:u});return i.createElement(lo,Object.assign({},g,e))},exports.Switch=function(e){var o,t,n,a,d,r=(t=(o=e).isDisabled,n=o.isChecked,{isHovered:(a=i.useState(!1))[0],setIsHovered:a[1],on:(d=i.useState(t?!t:n))[0],setOn:d[1]});return i.createElement(go,Object.assign({},r,e))},exports.Text=ve,exports.TextArea=function(e){var t,n,a,d,r,l,c,s,m,u,h,g,p,v,f,b,j=(a=(t=e).placeholder,d=t.value,l=(r=o.useState(null!=(n=t.label)?n:a))[0],c=r[1],m=(s=o.useState(!1))[0],u=s[1],h=o.useState(d||""),g=h[0],p=h[1],b=(v=o.useState(!1))[1],o.useMemo((function(){c(f&&!g?null!=a?a:"":null!=n?n:a)}),[g,f=v[0],n,a]),{hint:l,setHint:c,isHovered:m,setIsHovered:u,value:g,setValue:p,isFocused:f,setIsFocused:b});return i.createElement(vo,Object.assign({},j,e))},exports.TextField=function(e){var o=Ke(e);return i.createElement(Je,Object.assign({},o,e))},exports.Top=function(e){return i.createElement(t.View,Object.assign({marginBottom:"auto"},e))},exports.Vertical=se,exports.View=c,exports.hideModal=bo,exports.showModal=function(e,o,i){void 0===o&&(o={}),void 0===i&&(i={}),fo.getState().show(e,o,i)},exports.useModalStore=fo;
2
2
  //# sourceMappingURL=web.cjs.production.min.js.map