@app-studio/web 0.3.66 → 0.3.68
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.
- package/dist/components/Tabs/Tabs/Tabs.state.d.ts +1 -1
- package/dist/web.cjs.development.js +111 -84
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +109 -82
- package/dist/web.esm.js.map +1 -1
- package/package.json +2 -2
|
@@ -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")),r=require("formik"),d=require("zustand"),l=require("src/components/Layout/View/View"),c=require("src/components"),s=require("src/components/Svg");function u(){return(u=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 m(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 h=t.View,g=["children","wrap","justify","isReversed"],p=function(e){var o=e.children,t=e.wrap,n=void 0===t?"wrap":t,a=e.justify,r=void 0===a?"flex-start":a,d=e.isReversed,l=void 0!==d&&d,c=m(e,g);return i.createElement(h,Object.assign({display:"flex",flexWrap:n,flexDirection:l?"row-reverse":"row",justifyContent:r},c),o)},v=function(e){return i.createElement(p,Object.assign({},e))},f=["children","wrap"],b=function(e){var o=e.children,t=e.wrap,n=m(e,f);return i.createElement(h,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:t},n),o)},j=function(e){return i.createElement(b,Object.assign({},e))},x=["size","color"],C=function(e){var o=e.size,t=void 0===o?64:o,n=m(e,x);return i.createElement(j,{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]"})))))))},E=["size","color"],S=function(e){var o=e.size,t=void 0===o?64:o,n=m(e,E);return i.createElement(j,{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]"})))))))},y=["size","color"],w=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=m(e,y);return i.createElement(j,{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"},r),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"],k=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=m(e,_);return i.createElement(j,{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"},r),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"}))))},z=["size","color"],O=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,r=m(e,z);return i.createElement(j,{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"},r),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}))))},T=["size","color"],I=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=m(e,T);return i.createElement(j,{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},r),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"}))))},H=["size","color"],R=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=m(e,H);return i.createElement(j,{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"},r),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"})," ")))},L=["size","color"],M=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,r=m(e,L);return i.createElement(j,{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"},r),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}))))},F={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},V=["children","href","iconSize","underline","isHovered","isExternal","styles","setIsHovered"],G=function(e){var o=e.children,a=e.href,r=void 0===a?"/":a,d=e.iconSize,l=void 0===d?"sm":d,c=e.underline,s=void 0===c?"default":c,u=e.isHovered,h=void 0!==u&&u,g=e.isExternal,p=void 0!==g&&g,f=e.styles,b=void 0===f?{icon:{},text:{}}:f,j=e.setIsHovered,x=void 0===j?function(){}:j,C=m(e,V),E=function(){"hover"===s&&x(!0)};return i.createElement(n.Link,{to:r,target:p?"_blank":"_self"},i.createElement(t.Element,Object.assign({onMouseEnter:E,onMouseLeave:E,textDecoration:h||"underline"===s?"underline !important":"none"},b.text,C),i.createElement(v,{gap:3,alignItems:"center",wrap:"nowrap"},o,p&&i.createElement(I,{size:F[l],style:b.icon}))))},D=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(G,Object.assign({},n,e))},B={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}},A={sharp:0,rounded:4,pillShaped:24},P={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}},W={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},N={fast:50,normal:100,slow:300},K=["size","speed","color"],U=["size","speed","color"],Z=["size","speed","color"],q=["size","children","textColor","loaderColor","type","speed","textPosition"],J=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,s=m(e,K),u=t.useTheme().getColor(c),h="number"==typeof a?a:W[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}))}),N[d]);return function(){return clearInterval(e)}}),[d]),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)"}},s),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"})))},Y=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,s=m(e,U),u=t.useTheme().getColor(c),h="number"==typeof a?a:W[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}))}),N[d]);return function(){return clearInterval(e)}}),[d]),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)"}},s),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}))},Q=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,s=m(e,Z),u=t.useTheme().getColor(c),h="number"==typeof a?a:W[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}))}),N[d]);return function(){return clearInterval(e)}}),[d]),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)"}},s),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},X=function(e){var o=e.size,t=e.children,n=e.textColor,a=e.loaderColor,r=e.type,d=void 0===r?"default":r,l=e.speed,c=void 0===l?"normal":l,s=e.textPosition,u=void 0===s?"right":s,g=m(e,q),p={size:o,speed:c,color:a},v={default:i.createElement(J,Object.assign({},p)),dotted:i.createElement(Y,Object.assign({},p)),quarter:i.createElement(Q,Object.assign({},p))};return i.createElement(j,Object.assign({gap:10,flexDirection:"top"===u||"bottom"===u?"column":"row"},g),("left"===u||"top"===u)&&t&&i.createElement(h,{color:n},t),v[d],("right"===u||"bottom"===u)&&t&&i.createElement(h,{color:n},t))},$=function(e){return i.createElement(X,Object.assign({},e))},ee=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick","loaderProps","loaderPosition","effect","isHovered"],oe=function(e){var o,n=e.icon,a=e.shadow,r=e.children,d=e.ariaLabel,l=e.externalHref,c=e.isAuto,s=void 0!==c&&c,u=e.isFilled,h=void 0!==u&&u,g=e.isIconRounded,p=void 0!==g&&g,f=e.isLoading,b=void 0!==f&&f,j=e.isDisabled,x=void 0!==j&&j,C=e.size,E=void 0===C?"md":C,S=e.variant,y=void 0===S?"filled":S,w=e.iconPosition,_=void 0===w?"left":w,k=e.colorScheme,z=void 0===k?"theme.primary":k,O=e.shape,T=void 0===O?"rounded":O,I=e.onClick,H=void 0===I?function(){}:I,R=e.loaderProps,L=void 0===R?{}:R,M=e.loaderPosition,F=void 0===M?"left":M,V=e.effect,G=void 0===V?"default":V,W=e.isHovered,N=m(e,ee),K=!(x||b),U={disabled:!K},Z=K?z:"theme.disabled",q=W&&"hover"===G,J=W&&"reverse"===G,Y=B[E],Q={filled:{backgroundColor:J?"transparent":Z,color:J?Z:"color.white",borderWidth:1,borderStyle:"solid",borderColor:J?Z:"transparent"},outline:{backgroundColor:J?Z:"transparent",borderWidth:1,borderStyle:"solid",borderColor:J?Z:z,color:J?"white":Z},link:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:J?Z:"transparent",color:Z,textDecoration:J?"none":"underline"},ghost:{backgroundColor:J?Z:"transparent",color:J?"color.white":Z,borderWidth:1,borderStyle:"solid",borderColor:J?Z:"transparent"}}[y],X={width:s?"fit-content":h?"100%":Y.width},oe={padding:p?P[E].padding:B[E].padding},ie=i.createElement(v,{gap:10},b&&"left"===F&&i.createElement($,Object.assign({},L)),n&&"left"===_&&!b&&n,r,n&&"right"===_&&!b&&n,b&&"right"===F&&i.createElement($,Object.assign({},L)));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:d,backgroundColor:Z,borderRadius:A[T],onClick:null!=(o=N.onClick)?o:H,cursor:K?"pointer":"default",filter:q?"brightness(0.85)":"brightness(1)",transition:q&&!N.isDisabled?"transform 0.3s ease":"",transform:q&&!N.isDisabled?"translateY(-5px)":""},U,Y,Q,X,oe,a,N),"link"===y&&l?i.createElement(D,{href:l,textDecorationColor:z,colorScheme:z,isExternal:!0},ie):ie)},ie=function(e){var o,t={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},n=t.isHovered,a=t.setIsHovered,r=function(){return a(!n)};return i.createElement(oe,Object.assign({isHovered:n,setIsHovered:a,onMouseEnter:r,onMouseLeave:r},e))},te=function(e){var o=e.defaultIsSelected,t=void 0!==o&&o,n=i.useState(!1),a=n[0],r=n[1],d=i.useState(t);return{isHovered:a,setIsHovered:r,isSelected:d[0],setIsSelected:d[1]}},ne={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}},ae=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],re=function(e){var o=e.children,n=e.heading,a=e.isItalic,r=void 0!==a&&a,d=e.isUnderlined,l=void 0!==d&&d,c=e.isStriked,s=void 0!==c&&c,u=e.weight,h=void 0===u?"normal":u,g=e.size,p=void 0===g?"sm":g,v=m(e,ae);return i.createElement(t.Element,Object.assign({as:"label",width:"100%",fontSize:p,fontStyle:r?"italic":"normal",fontWeight:t.Typography.fontWeights[h],textDecoration:s?"line-through":l?"underline":"none"},n?ne[n]:{},v),o)},de=function(e){return i.createElement(re,Object.assign({},e))},le={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}},ce={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},se=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],ue=function(e){var o=e.id,n=e.icon,a=e.label,r=e.isChecked,d=e.onChange,l=e.onValueChange,c=e.shadow,s=void 0===c?{}:c,h=e.labelPosition,g=void 0===h?"right":h,p=e.size,v=void 0===p?"md":p,f=e.colorScheme,b=void 0===f?"theme.primary":f,x=e.error,C=void 0!==x&&x,E=e.isSelected,S=void 0!==E&&E,y=e.isHovered,_=void 0!==y&&y,k=e.isDisabled,z=void 0!==k&&k,O=e.isReadOnly,T=void 0!==O&&O,I=e.isIndeterminate,H=void 0!==I&&I,L=e.setIsSelected,M=void 0===L?function(){}:L,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.styles,D=void 0===G?{checkbox:{},label:{}}:G,B=m(e,se),A=function(){return V(!_)},P={container:u({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:C?"theme.error":z?"theme.disabled":"color.blueGray.700",cursor:z?"not-allowed":T?"default":"pointer"},D.label),checkbox:u({},z?{backgroundColor:"theme.disabled"}:(r||S)&&!H||H?{backgroundColor:b}:{borderWidth:2,borderColor:C?"theme.error":_?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:_?"brightness(0.9)":void 0},le[v],s,D.checkbox)};return i.createElement(de,Object.assign({htmlFor:o,as:"div",onClick:function(){T||z||(M&&M(!S),d&&d(!r),l&&l(!r))},onMouseEnter:A,onMouseLeave:A,size:t.Typography.fontSizes[v]},P.container,B),"left"===g&&a&&i.createElement(t.View,null,a),i.createElement(j,Object.assign({},P.checkbox),H?i.createElement(R,null):(r||S)&&(null!=n?n:i.createElement(w,{size:ce[v]}))),"right"===g&&a&&i.createElement(t.View,null,a))},me=[{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"}],he=function(e){var o=e.placeholder,t=i.useState(me),n=t[0],a=t[1],r=i.useState(null!=o?o:me[0].name),d=r[0],l=r[1],c=i.useState(!0),s=c[0],u=c[1],m=i.useState(!1),h=m[0],g=m[1],p=i.useState(!1);return{hide:s,setHide:u,newOptions:n,setNewOptions:a,isHovered:p[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,value:d,setValue:l}},ge={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}},pe=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],ve=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)},fe=function(e){var t=e.text,n=e.maxLines,a=void 0===n?1:n,r=o.useRef(null),d=o.useState(t.length),l=d[0],c=d[1];o.useEffect((function(){var e=r.current;e&&function(){for(var o,i=getComputedStyle(e).lineHeight,n=("normal"!==i?parseFloat(i):20)*a,r=0,d=t.length;r<=d;)o=Math.floor((r+d)/2),e.innerText=t.substring(0,o)+"...",e.offsetHeight>n?d=o-1:r=o+1;c(d)}()}),[t,a]);var s=t.length>l?t.substring(0,l)+"...":t;return i.createElement("div",{ref:r},s)},be=function(e){var o=e.children,n=e.heading,a=e.maxLines,r=e.isItalic,d=void 0!==r&&r,l=e.isUnderlined,c=void 0!==l&&l,s=e.isSub,u=void 0!==s&&s,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,E=void 0===C?"md":C,S=m(e,pe);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[E],lineHeight:t.Typography.lineHeights[E],fontStyle:d?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":c?"underline":"none"},u||g?{display:"inline"}:{},n?ge[n]:{},S),b&&a&&"string"==typeof o?i.createElement(fe,{text:o,maxLines:a}):i.createElement(ve,Object.assign({isSub:u,isSup:g},S),o))},je=function(e){return i.createElement(be,Object.assign({},e))},xe=["children","styles"],Ce=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=m(e,xe);return i.createElement(je,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},n.helperText,a),o)},Ee=["children","wrap","justify","isReversed"],Se=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,r=e.justify,d=void 0===r?"flex-start":r,l=e.isReversed,c=void 0!==l&&l,s=m(e,Ee);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:c?"column-reverse":"column",justifyContent:d},s),o)},ye=function(e){return i.createElement(Se,Object.assign({},e))},we=["children","helperText","error","styles"],_e=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,r=e.styles,d=m(e,we);return i.createElement(ye,Object.assign({gap:5,position:"relative"},d),o,!a&&t&&i.createElement(Ce,Object.assign({},r),t),a&&i.createElement(je,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},a))},ke={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},ze={xs:6,sm:8,md:10,lg:12,xl:14},Oe={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},Te={paddingTop:14,paddingBottom:0,paddingLeft:16,paddingRight:36},Ie={paddingTop:10,paddingBottom:4,paddingLeft:16,paddingRight:36},He=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],Re=function(e){var o=e.shadow,n=e.children,a=e.size,r=void 0===a?"md":a,d=e.shape,l=void 0===d?"default":d,c=e.variant,s=void 0===c?"default":c,u=e.error,h=void 0!==u&&u,g=e.isWithLabel,p=void 0!==g&&g,f=e.isFocused,b=void 0!==f&&f,j=e.isHovered,x=void 0!==j&&j,C=e.isDisabled,E=void 0!==C&&C,S=e.isReadOnly,y=void 0!==S&&S,w=e.colorScheme,_=void 0===w?"theme.primary":w,k=e.styles,z=void 0===k?{pickerBox:{}}:k,O=m(e,He);return i.createElement(v,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:h?"error":!x&&!b||E?"midgray":_,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",marginBottom:5,fontSize:t.Typography.fontSizes[r],cursor:E?"not-allowed":y?"auto":"pointer"},p?Te:Ie,o,ke[l],Oe[s],z.box,O),n)},Le=["children"],Me=function(e){var o=e.children,t=m(e,Le);return i.createElement(j,Object.assign({gap:10,right:16,zIndex:500,wrap:"nowrap",position:"absolute"},t),o)},Fe=["children","size","error","color","styles"],Ve=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,r=void 0!==a&&a,d=e.color,l=void 0===d?"theme.primary":d,c=e.styles,s=void 0===c?{label:{}}:c,u=m(e,Fe);return i.createElement(de,Object.assign({top:6,zIndex:1e3,lineHeight:ze[n],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:r?"error":l,fontSize:ze[n]},s.label,u),o)},Ge=["children"],De=function(e){var o=e.children,t=m(e,Ge);return i.createElement(ye,Object.assign({width:"100%"},t),o)},Be={xs:8,sm:10,md:12,lg:14,xl:16},Ae=["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"],Pe=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},We=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},Ne=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},Ke=function(e){var n=e.option,a=e.size,r=void 0===a?"md":a,d=e.callback,l=void 0===d?function(){}:d,c=e.styles,s=void 0===c?{text:{}}:c,u=o.useState(!1),m=u[0],h=u[1],g=function(){return h(!m)};return i.createElement(Ne,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[r],backgroundColor:m?"trueGray.100":"transparent"},s.text),n)},Ue=function(e){var o=e.size,t=e.styles,n=void 0===t?{dropDown:{}}:t,a=e.options,r=e.callback,d=void 0===r?function(){}:r,l=function(e){return d(e)};return i.createElement(Pe,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(Ke,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},Ze=function(e){var o=e.id,n=e.name,a=e.label,r=e.value,d=e.placeholder,l=e.helperText,c=e.hide,s=void 0!==c&&c,h=e.error,g=void 0!==h&&h,p=e.isHovered,v=void 0!==p&&p,f=e.isFocused,b=void 0!==f&&f,j=e.isAutoFocus,x=void 0!==j&&j,E=e.isDisabled,y=void 0!==E&&E,w=e.isReadOnly,_=void 0!==w&&w,k=e.shadow,z=void 0===k?{}:k,O=e.newOptions,T=void 0===O?[]:O,I=e.size,H=void 0===I?"md":I,R=e.variant,L=void 0===R?"default":R,M=e.shape,F=void 0===M?"default":M,V=e.colorScheme,G=void 0===V?"theme.primary":V,D=e.onChange,B=e.onBlur,A=void 0===B?function(){}:B,P=e.setHide,W=void 0===P?function(){}:P,N=e.setNewOptions,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,q=e.setIsFocused,J=void 0===q?function(){}:q,Y=e.setValue,Q=void 0===Y?function(){}:Y,X=e.styles,$=void 0===X?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:X,ee=m(e,Ae),oe=(0,t.useTheme().getColor)("color.blueGray.700"),ie=function(){return Z(!v)},te=!(!b||!a),ne=u({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[H],backgroundColor:"transparent",color:y?"color.trueGray.600":"color.blueGray.700",cursor:y?"not-allowed":"auto"},$.field);return i.createElement(_e,{helperText:l,error:g,styles:$,onClick:function(){y||_||W(!s)}},i.createElement(Re,{label:a,size:H,error:g,shape:F,styles:$,shadow:z,variant:L,value:r,color:G,isHovered:v,isDisabled:y,isReadOnly:_,isFocused:b,isWithLabel:te,colorScheme:G,onMouseEnter:ie,onMouseLeave:ie},i.createElement(De,null,te&&i.createElement(Ve,Object.assign({htmlFor:o,color:G,error:g},$),a),i.createElement(We,Object.assign({id:o,name:n,placeholder:d,readOnly:_,disabled:y,autoFocus:x,onBlur:function(e){A(e),J(!1)},onFocus:function(){return J(!0)}},ne,ee,{value:r,onChange:function(e){var o=e.target.value,i=me.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));s&&W(!1),K(i),D&&D(o)}}))),i.createElement(Me,null,i.createElement(s?C:S,{size:Be[H],color:oe,style:$.icon}))),!s&&i.createElement(Ue,{size:H,styles:$,options:T,callback:function(e){W(!s),Q(e),D&&D(e)}}))},qe=function(){var e=i.useState(!1),o=e[0],t=e[1],n=i.useState(!1),r=n[0],d=n[1],l=i.useState(a(new Date,"yyyy-MM-dd"));return{date:l[0],setDate:l[1],isHovered:o,setIsHovered:t,isFocused:r,setIsFocused:d}},Je=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Ye=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},Qe=function(e){var o=e.id,n=e.name,a=e.label,r=e.date,d=e.helperText,l=e.shadow,c=void 0===l?{}:l,s=e.size,h=void 0===s?"md":s,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=e.error,S=void 0!==E&&E,y=e.isHovered,w=void 0!==y&&y,_=e.isFocused,k=void 0!==_&&_,z=e.isDisabled,O=void 0!==z&&z,T=e.isReadOnly,I=void 0!==T&&T,H=e.setDate,R=void 0===H?function(){}:H,L=e.setIsFocused,M=void 0===L?function(){}:L,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.onChange,D=e.onChangeText,B=m(e,Je),A=!(!k||!a),P=function(){return V(!w)},W=function(e){"string"==typeof e?(R(e),D&&D(e)):(R(e.target.value),G&&G(e))},N=u({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:O?"color.trueGray.600":"color.blueGray.700",cursor:O?"not-allowed":I?"auto":"pointer"},C.field);return i.createElement(_e,{helperText:d,error:S,styles:C},i.createElement(Re,{label:a,size:h,error:S,shape:f,styles:C,shadow:c,variant:p,value:r,color:j,isHovered:w,isDisabled:O,isReadOnly:I,isFocused:k,isWithLabel:A,colorScheme:j,onMouseEnter:P,onMouseLeave:P},i.createElement(De,null,A&&i.createElement(Ve,Object.assign({htmlFor:o,color:j,error:S},C),a),i.createElement(Ye,Object.assign({id:o,name:n,value:r,onFocus:function(){return M(!0)},onChange:W,disabled:O,readOnly:I},N,D&&{onChangeText:W},B)))))},Xe=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),r=a[0],d=a[1],l=o.useState(!1),c=l[0],s=l[1],u=o.useState(!1),m=u[0],h=u[1],g=o.useState(n),p=g[0],v=g[1];return o.useMemo((function(){d(c&&!p?null!=t?t:"":null!=i?i:t)}),[p,c,i,t]),{hint:r,setHint:d,isFocused:c,setIsFocused:s,isHovered:m,setIsHovered:h,setValue:v,value:p}},$e=function(e){var i=Xe(e),t=o.useState(!1);return u({isVisible:t[0],setIsVisible:t[1]},e,i)},eo=["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"],oo=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},io=function(e){var o=e.id,n=e.name,a=e.label,r=e.hint,d=e.value,l=e.onChange,c=e.leftChild,s=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,E=void 0===C?"default":C,S=e.variant,y=void 0===S?"default":S,w=e.colorScheme,_=void 0===w?"theme.primary":w,z=e.error,O=void 0!==z&&z,T=e.isFocused,I=void 0!==T&&T,H=e.isHovered,R=void 0!==H&&H,L=e.isDisabled,M=void 0!==L&&L,F=e.isReadOnly,V=void 0!==F&&F,G=e.isClearable,D=void 0===G||G,B=e.isAutoFocus,A=void 0!==B&&B,P=e.setIsFocused,W=void 0===P?function(){}:P,N=e.setIsHovered,K=void 0===N?function(){}:N,U=e.setValue,Z=void 0===U?function(){}:U,q=e.onFocus,J=e.onBlur,Y=void 0===J?function(){}:J,Q=m(e,eo),X=(0,t.useTheme().getColor)("color.blueGray.700"),$=!(!I||!a),ee=u({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:M?"color.trueGray.600":"color.blueGray.700",cursor:M?"not-allowed":"auto"},b.field),oe=function(){return K(!R)};return i.createElement(_e,{helperText:h,error:O,styles:b},i.createElement(Re,{label:a,size:x,error:O,shape:E,styles:b,shadow:v,variant:y,value:d,color:_,isHovered:R,isDisabled:M,isReadOnly:V,isFocused:I,isWithLabel:$,colorScheme:_,onMouseEnter:oe,onMouseLeave:oe},c,i.createElement(De,null,$&&i.createElement(Ve,Object.assign({htmlFor:o,color:_,error:O},b),a),i.createElement(oo,Object.assign({id:o,name:n,readOnly:V,disabled:M,autoFocus:A,placeholder:r,onFocus:function(){W(!0),q&&q()},onBlur:function(e){Y&&Y(e),W(!1)},autoComplete:"off"},ee,Q,{onChange:function(e){"string"==typeof e?(Z(e),g&&g(e),l&&l(e)):(Z(e.target.value),g&&g(e.target.value),l&&l(e.target.value))},value:d}))),(s||D&&d)&&i.createElement(Me,null,D&&d&&!V&&!M&&i.createElement(k,{size:t.Typography.fontSizes[x],color:X,onClick:function(){Z(""),l&&(Y({target:{name:n}}),g&&g(""),l&&l("")),"undefined"==typeof document&&g&&g("")}}),s&&i.createElement(i.Fragment,null,s))))},to=["visibleIcon","hiddenIcon"],no=["isVisible","setIsVisible"],ao=function(e){var o=e.placeholder?e.isMulti?[]:"":e.options[0],t=i.useState(!0),n=t[0],a=t[1],r=i.useState(!1),d=r[0],l=r[1],c=i.useState(!1),s=c[0],u=c[1],m=i.useState(o);return{value:m[0],setValue:m[1],hide:n,setHide:a,isHovered:d,setIsHovered:l,isFocused:s,setIsFocused:u}},ro={xs:8,sm:10,md:12,lg:14,xl:16},lo=["isHovered","setIsHovered","option","size","callback"],co=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],so=["option","size","removeOption"],uo=["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"],mo=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,r=e.size,d=void 0===r?"md":r,l=e.callback,c=void 0===l?function(){}:l,s=m(e,lo),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[d],onClick:function(){return function(e){return c(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},s),a)},ho=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,r=e.value,d=e.isDisabled,l=e.placeholder,c=e.removeOption,s=void 0===c?function(){}:c,m=u({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:d?"color.trueGray.600":"color.blueGray.700",cursor:d?"not-allowed":"auto"},a.field,a.text);return i.createElement(je,Object.assign({},m),(""===r||r&&0===r.length)&&l?l:i.createElement(i.Fragment,null,"string"==typeof r?r:r&&r.length>0&&i.createElement(v,{gap:6},r.map((function(e){return i.createElement(vo,{key:e,option:e,removeOption:s})})))))},go=function(e){var o=e.id,n=e.name,a=e.value,r=e.onChange,d=e.isMulti,l=void 0!==d&&d,c=e.isDisabled,s=void 0!==c&&c,u=e.isReadOnly,h=void 0!==u&&u,g=e.options,p=void 0===g?[]:g,v=m(e,co);return i.createElement(t.Element,Object.assign({id:o,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:a,disabled:s,readOnly:h,onChange:function(e){r&&r(e)},multiple:l},v),p.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},po=function(e){var o,n=e.size,a=e.styles,r=void 0===a?{dropDown:{}}:a,d=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},u=function(e){return c(e)},m=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"},m,r.dropDown),d.map((function(e){return i.createElement(mo,Object.assign({key:e,size:n,option:e,callback:u},s,r.text))})))},vo=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,r=e.removeOption,d=void 0===r?function(){}:r,l=m(e,so);return i.createElement(v,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()}},l),i.createElement(je,{size:a},o),i.createElement(k,{role:"close-button",color:"inherit",size:ro[a],onClick:function(){return d(o)}}))},fo=function(e){var t=e.id,n=e.name,a=e.label,r=e.value,d=e.placeholder,l=e.helperText,c=e.hide,s=void 0!==c&&c,u=e.error,h=void 0!==u&&u,g=e.isMulti,p=void 0!==g&&g,v=e.isFocused,f=void 0!==v&&v,b=e.isHovered,j=void 0!==b&&b,x=e.isDisabled,E=void 0!==x&&x,y=e.isReadOnly,w=void 0!==y&&y,_=e.options,k=void 0===_?[]:_,z=e.shadow,O=void 0===z?{}:z,T=e.size,I=void 0===T?"md":T,H=e.colorScheme,R=void 0===H?"theme.primary":H,L=e.shape,M=void 0===L?"default":L,F=e.variant,V=void 0===F?"default":F,G=e.styles,D=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,B=e.onChange,A=void 0===B?function(){}:B,P=e.setHide,W=void 0===P?function(){}:P,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,q=e.setIsFocused,J=void 0===q?function(){}:q,Y=m(e,uo),Q=!(!f||!a),X=function(){return Z(!j)},$=o.useCallback((function(e){W(!s),p&&Array.isArray(r)?!r.includes(e)&&K([].concat(r,[e])):K(e),A&&A(e)}),[s,p,r]);return i.createElement(_e,{role:"SelectBox",helperText:l,error:h,styles:D,onClick:E||w?function(){}:function(e){e&&e.stopPropagation&&e.stopPropagation(),W(!s),J(!f)}},i.createElement(Re,{label:a,size:I,error:h,shape:M,styles:D,shadow:O,variant:V,value:r,color:R,isHovered:j,isDisabled:E,isReadOnly:w,isFocused:f,isWithLabel:Q,colorScheme:R,onMouseEnter:X,onMouseLeave:X},i.createElement(De,null,Q&&i.createElement(Ve,Object.assign({htmlFor:t,color:R,error:h},D),a),i.createElement(go,Object.assign({id:t,name:n,options:k,onChange:A,value:r,isDisabled:E,isReadOnly:w,isMulti:p,onFocus:function(){return J(!0)}},Y)),i.createElement(ho,{size:I,styles:D,value:r,isDisabled:E,placeholder:d,removeOption:function(e){if(Array.isArray(r)&&r.includes(e)){var o=r.filter((function(o){return o!==e}));K(0===o.length?[]:o)}}})),i.createElement(Me,null,!w&&!E&&i.createElement(i.Fragment,null,i.createElement(s?C:S,{color:"inherit",size:ro[I],style:D.icon})))),!s&&i.createElement(po,{size:I,styles:D,options:k,callback:$}))},bo=function(e){var o=e.isDisabled,t=e.isChecked,n=i.useState(!1),a=n[0],r=n[1],d=i.useState(o?!o:t);return{isHovered:a,setIsHovered:r,on:d[0],setOn:d[1]}},jo={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}},xo={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}},Co={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}},Eo=["id","name","label","inActiveChild","activeChild","labelPosition","shadow","size","colorScheme","value","isHovered","isDisabled","isReadOnly","onChange","setValue","setIsHovered","styles"],So=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},yo=function(e){var o=e.id,t=e.name,n=e.label,a=e.inActiveChild,r=e.activeChild,d=e.labelPosition,l=void 0===d?"right":d,c=e.shadow,s=void 0===c?{}:c,g=e.size,p=void 0===g?"sm":g,v=e.colorScheme,f=void 0===v?"theme.primary":v,b=e.value,j=void 0!==b&&b,x=e.isHovered,C=void 0!==x&&x,E=e.isDisabled,S=void 0!==E&&E,y=e.isReadOnly,w=void 0!==y&&y,_=e.onChange,k=e.setValue,z=void 0===k?function(){}:k,O=e.setIsHovered,T=void 0===O?function(){}:O,I=e.styles,H=void 0===I?{slider:{},circle:{},label:{}}:I,R=m(e,Eo),L=function(){return T(!C)},M={container:u({gap:10,display:"flex",height:"fit-content",width:"fit-content",cursor:S?"not-allowed":w?"default":"pointer"},H.label)};return i.createElement(de,Object.assign({htmlFor:o,onMouseEnter:L,onMouseLeave:L},M.container,R),i.createElement(So,Object.assign({id:o,name:t,opacity:0,width:0,height:0,checked:j,onChange:function(e){w||(z(!j),_&&_(e.target.checked))},disabled:S,readOnly:w},R)),"left"===l&&n&&i.createElement(h,null,n),i.createElement(h,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,marginBottom:5,filter:C&&j?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:S?"disabled":j?f:"lightgray",justifyContent:r?"space-between":j?"flex-end":"flex-start"},s,Co[p],xo[p],H.slider),r&&j&&i.createElement(h,null,r),i.createElement(h,Object.assign({borderRadius:"50%",backgroundColor:"white"},jo[p],H.circle)),a&&!j&&i.createElement(h,null,a)),"right"===l&&n&&i.createElement(h,null,n))},wo=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),r=a[0],d=a[1],l=o.useState(!1),c=l[0],s=l[1],u=o.useState(n||""),m=u[0],h=u[1],g=o.useState(!1),p=g[0],v=g[1];return o.useMemo((function(){d(p&&!m?null!=t?t:"":null!=i?i:t)}),[m,p,i,t]),{hint:r,setHint:d,isHovered:c,setIsHovered:s,value:m,setValue:h,isFocused:p,setIsFocused:v}},_o=["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"],ko=function(e){var o=e.id,n=e.name,a=e.hint,r=e.error,d=e.value,l=e.label,c=e.shadow,s=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,E=void 0!==C&&C,S=e.isFocused,y=void 0!==S&&S,w=e.isEditable,_=void 0!==w&&w,k=e.isReadOnly,z=void 0!==k&&k,O=e.isDisabled,T=void 0!==O&&O,I=e.isAutoFocus,H=void 0!==I&&I,R=e.isMultiline,L=void 0!==R&&R,M=e.maxRows,F=void 0===M?3:M,V=e.maxCols,G=void 0===V?30:V,D=e.onBlur,B=void 0===D?function(){}:D,A=e.onChange,P=e.onFocus,W=e.onChangeText,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsFocused,Z=void 0===U?function(){}:U,q=e.setIsHovered,J=void 0===q?function(){}:q,Y=e.styles,Q=void 0===Y?{box:{},text:{},label:{},helperText:{},field:{}}:Y,X=m(e,_o),$=!(!y||!l),ee=u({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[g],backgroundColor:"transparent",color:T?"color.trueGray.600":"color.blueGray.700",cursor:T?"not-allowed":"auto"},Q.field),oe=function(){return J(!E)},ie=function(e){"string"==typeof e?(K(e),W&&W(e)):(K(e.target.value),A&&A(e.target.value))};return i.createElement(_e,{helperText:s,error:r,styles:Q},i.createElement(Re,{label:l,size:g,error:r,shape:v,styles:Q,shadow:c,variant:b,value:d,color:x,isHovered:E,isDisabled:T,isReadOnly:z,isFocused:y,isWithLabel:$,colorScheme:x,onMouseEnter:oe,onMouseLeave:oe},i.createElement(De,null,$&&i.createElement(Ve,Object.assign({htmlFor:o,color:x,error:r},Q),l),i.createElement(t.Element,Object.assign({as:"textarea",id:o,name:n,rows:F,cols:G,value:d,readOnly:z,disabled:T,autoFocus:H,editable:_,placeholder:a,onBlur:function(e){B(e),Z(!1)},onFocus:function(){Z(!0),P&&P()},onChange:ie,multiline:L},ee,X,W&&{onChangeText:ie})))))},zo=o.createContext({active:!1,focusNextInput:function(){},setInputRef:function(){},handleSubmitEditing:function(){},getReturnKeyType:function(){return"next"}}),Oo=["name","type"],To=function(e){var i=e.name,t=e.type,n=m(e,Oo),a=o.useContext(zo),d=r.useFormikContext(),l=d.values,c=d.setFieldTouched,s=d.setFieldValue,h=d.touched[i]||d.submitCount>0?d.errors[i]:void 0,g=function(e){"Enter"===e.key&&(e.preventDefault(),a.focusNextInput(i))},p=["text","password","email","digits"].includes(t);return u({},function(e){switch(e){case"email":return{autoCorrect:"off",keyboardType:"email-address",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{keyboardType:"phone-pad"};case"name":return{autoCorrect:"off"};default:return{}}}(t),n,{value:l[i],error:h,onBlur:function(){c(i,!0)},onKeyPress:g},p?{onChangeText:function(e){s(i,e),null==n.onChangeText||n.onChangeText(e)}}:{onChange:function(e){s(i,e),null==n.onChange||n.onChange(e)}},a.active?{handleKeyPress:g}:{})},Io=["value"],Ho=["value"],Ro=["visibleIcon","hiddenIcon"],Lo=["isVisible","setIsVisible"],Mo=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 u({},e,{modal:o,modalProps:i,overlayProps:t})}))},hide:function(){e((function(e){return u({},e,{modalProps:u({},e.modalProps,{isVisible:!1})})}))}}})),Fo=function(){Mo.getState().hide()},Vo={sharp:{borderRadius:0},rounded:{borderRadius:4}},Go={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},Do={xs:12,sm:16,md:20,lg:24,xl:28},Bo=["children","blur","isOpen","isClosePrevented","onClose","position"],Ao=["children","shadow","isFullScreen","shape"],Po=["children","buttonColor","iconSize","buttonPosition"],Wo=["children"],No=["children"],Ko=function(e){var o=e.children,t=e.blur,n=e.isOpen,a=void 0!==n&&n,r=e.isClosePrevented,d=void 0!==r&&r,l=e.onClose,c=void 0===l?function(){}:l,s=e.position,u=void 0===s?"center":s,g=m(e,Bo),p=function(){d||c()};return i.createElement(j,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:p,visibility:a?"visible":"hidden"},i.createElement(h,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:p},Go[u],g),o))},Uo=function(e){return i.createElement(i.Fragment,null,e.children)};Uo.Overlay=Ko,Uo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,r=e.shape,d=void 0===r?"rounded":r,l=m(e,Ao),c=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(ye,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||c,Vo[d],l),o)},Uo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,r=void 0===a?"md":a,d=e.buttonPosition,l=void 0===d?"right":d,c=m(e,Po),s=i.createElement(ie,{onClick:c.onClose?c.onClose:Fo,colorScheme:"transparent",icon:i.createElement(k,{size:Do[r],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(v,Object.assign({justifyContent:"none"===l?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},c),"left"===l&&s,o,"right"===l&&s)},Uo.Body=function(e){var o=e.children,t=m(e,Wo);return i.createElement(h,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},t),o)},Uo.Footer=function(e){var o=e.children,t=m(e,No);return i.createElement(v,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},Uo.Layout=function(e){var t=e.modals,n=Mo((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(Ko,Object.assign({isOpen:n.modalProps.isVisible,onClose:Fo,blur:10},n.overlayProps),void 0!==a&&i.createElement(a,Object.assign({},n.modalProps)))):(console.error(n.modal+" modal doesn't exist"),null)};var Zo=["src","color"],qo=["path"],Jo=function(e){var o=e.tabs,t=e.styles,n=e.isActive,a=e.setIsActive,r=e.tabsState,d=e.setTabsState;return i.createElement(c.Horizontal,Object.assign({width:"100w",height:"100%"},null==t?void 0:t.container),i.createElement(c.Horizontal,Object.assign({marginBottom:20},null==t?void 0:t.headerTabs),o.map((function(e,r){return i.createElement(c.Button,Object.assign({key:e.title,onClick:function(){!function(e){var i=[].concat(o),t=i.splice(e,1);i.unshift(t[0]),d(i),a(i[0])}(r)},variant:n.value===e.value?"filled":"ghost",shape:"pillShaped",cursor:"pointer",isAuto:!0},null==t?void 0:t.tab,n.value===e.value?null==t?void 0:t.activeTab:{}),i.createElement(c.Text,Object.assign({},null==t?void 0:t.title,n.value===e.value?null==t?void 0:t.activeText:{}),e.title))}))),i.createElement(l.View,Object.assign({width:"100%",height:"100%"},null==t?void 0:t.content),r.map((function(e,o){return function(e){return e.value===r[0].value}(e)&&i.createElement(l.View,{key:o},e.content)}))))},Yo=function(e){var t,n,a,r=e.tabs,d=e.styles,l={isActive:(n=o.useState((t=r)[0]))[0],setIsActive:n[1],tabsState:(a=o.useState(t))[0],setTabsState:a[1]};return i.createElement(Jo,{tabs:r,styles:d,isActive:l.isActive,tabsState:l.tabsState,setTabsState:l.setTabsState,setIsActive:l.setIsActive})},Qo=i.memo(Yo),Xo={default:{container:{backgroundColor:"white",border:"color.blackAlpha.800"},content:{color:"color.blackAlpha.800"}},info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},content:{color:"#60a5fa"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},content:{color:"#22c55e"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},content:{color:"#ef4444"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},content:{color:"#f97316"}}},$o=function(e){var o,t=e.icon,n=e.title,a=e.styles,r=e.description,d=e.variant,l=void 0===d?"default":d;return i.createElement(c.Horizontal,Object.assign({gap:15,borderRadius:10,borderWidth:1,borderStyle:"solid",padding:16,wrap:"nowrap",borderColor:Xo[l].container.border},null==a?void 0:a.container),i.createElement(c.View,{alignSelf:"center"},t||i.createElement(s.WarningSvg,{size:24,color:null!=(o=null==a?void 0:a.icon.color)?o:Xo[l].content.color})),i.createElement(c.Vertical,{gap:10},i.createElement(c.Text,Object.assign({fontSize:"16px",color:Xo[l].content.color},null==a?void 0:a.title),n),i.createElement(c.Text,Object.assign({fontSize:"14px",color:Xo[l].content.color},null==a?void 0:a.description),r)))},ei=["ratio","children"],oi=function(e){var o=e.ratio,t=void 0===o?16/9:o,n=e.children,a=m(e,ei);return i.createElement(c.Center,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},a),i.createElement(c.View,{position:"absolute",top:0,right:0,bottom:0,left:0},n))},ii=["ratio","children"],ti={xs:24,sm:32,md:48,lg:64,xl:80},ni=function(e){var o=e.src,n=e.size,a=void 0===n?"md":n,r=e.fallback,d=void 0===r?"IM":r,l=e.styles,s=e.imageError,m=e.setImageError,h=ti[a],g=u({objectFit:"cover"},(null==l?void 0:l.image)||{});return i.createElement(c.Center,Object.assign({role:"avatar",width:h,height:h,borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:s?"black":"transparent",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.25)"},null==l?void 0:l.container),s?i.createElement(c.Text,Object.assign({size:a},null==l?void 0:l.fallback),d):i.createElement(t.Image,{alt:"IM",src:o,style:g,width:h,height:h,onError:function(){return m(!0)}}))},ai={xs:{minWidth:"20px",height:"20px",padding:"0 6px"},sm:{minWidth:"24px",height:"24px",padding:"0 8px"},md:{minWidth:"28px",height:"28px",padding:"0 10px"},lg:{minWidth:"32px",height:"32px",padding:"0 12px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px"}},ri={sharp:0,rounded:4,pillShaped:24},di={"top-right":{top:0,right:0,position:"absolute"},"top-left":{top:0,left:0,position:"absolute"},"bottom-right":{bottom:0,right:0,position:"absolute"},"bottom-left":{bottom:0,left:0,position:"absolute"}},li=function(e){var o=e.content,t=e.position,n=e.shape,a=e.colorScheme,r=void 0===a?"theme.primary":a,d=e.variant,l=e.size,s=void 0===l?"md":l,m=e.styles,h=u({width:"fit-content",borderRadius:ri[void 0===n?"pillShaped":n]},ai[s],{filled:{backgroundColor:r,color:"color.white",borderWidth:1,borderStyle:"solid",borderColor:"transparent"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:r,color:r},link:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"transparent",color:r,textDecoration:"underline"},ghost:{backgroundColor:"transparent",color:r,borderWidth:1,borderStyle:"solid",borderColor:"transparent"}}[void 0===d?"filled":d],t?di[t]:{},null==m?void 0:m.container);return i.createElement(c.Center,Object.assign({role:"badge"},h),i.createElement(c.Text,Object.assign({role:"badgeText",size:s},null==m?void 0:m.text),o))},ci={sharp:0,rounded:4,pillShaped:24},si=["children","shape","colorScheme","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle"],ui=function(e){var o=e.children,t=e.shape,n=void 0===t?"rounded":t,a=e.colorScheme,r=void 0===a?"color.trueGray.400":a,d=e.variant,l=void 0===d?"ghost":d,s=e.isHovered,u=e.setIsHovered,h=e.isDisabled,g=e.isToggle,p=e.setIsToggled,v=e.onToggle,f=m(e,si),b=h?"theme.disabled":r,j=!(!g&&!s);return i.createElement(c.Center,Object.assign({role:"Toggle",padding:"pillShaped"===n?"10px 12px":"8px",width:"fit-content",color:j?"color.white":b,backgroundColor:j?b:"transparent",onMouseEnter:function(){return u(!0)},onMouseLeave:function(){return u(!1)},cursor:h?"not-allowed":"pointer",borderRadius:ci[n],onClick:function(){h||p((function(e){var o=!e;return v&&v(o),o}))}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:r},link:{borderWidth:1,borderStyle:"solid",borderColor:j?b:"transparent",textDecoration:"underline"},ghost:{}}[l],f),o)},mi=["children","shape","colorScheme","variant","isDisabled","isToggled","onToggle"],hi=function(e){var t=e.items,n=e.onToggleChange,a=e.activeToggles,r=e.setActiveToggles,d=e.shape,l=void 0===d?"rounded":d,s=e.variant,u=void 0===s?"ghost":s,m=e.colorScheme,h=void 0===m?"color.trueGray.400":m,g=o.useCallback((function(e,o){r((function(i){var t;return t=o?i.includes(e)?i:[].concat(i,[e]):i.filter((function(o){return o!==e})),null==n||n(t),t}))}),[n,r]);return i.createElement(c.Horizontal,{role:"ToggleGroup",display:"flex",gap:5},t.map((function(e){return i.createElement(c.Toggle,{role:"toggle-"+e.id,key:e.id,colorScheme:h,shape:l,variant:u,isToggled:a.includes(e.id)||e.isActive,onToggle:function(o){return g(e.id,o)},isDisabled:e.isDisabled,isIntern:!0},e.value)})))};exports.Alert=function(e){return i.createElement($o,{icon:e.icon,title:e.title,styles:e.styles,description:e.description,variant:e.variant})},exports.AspectRatio=function(e){var o=e.ratio,t=e.children,n=m(e,ii);return i.createElement(oi,Object.assign({ratio:o},n),t)},exports.Avatar=function(e){var t,n=e.src,a=e.size,r=e.styles,d=e.fallback,l={imageError:(t=o.useState(!1))[0],setImageError:t[1]};return i.createElement(ni,{src:n,size:a,styles:r,fallback:d,imageError:l.imageError,setImageError:l.setImageError})},exports.Badge=function(e){return i.createElement(li,{content:e.content,shape:e.shape,colorScheme:e.colorScheme,position:e.position,variant:e.variant,size:e.size,styles:e.styles})},exports.Bottom=function(e){return i.createElement(t.View,Object.assign({marginTop:"auto"},e))},exports.Button=ie,exports.Center=j,exports.Checkbox=function(e){var o=te(e);return i.createElement(ue,Object.assign({},o,e))},exports.CountryPicker=function(e){var o=he(e);return i.createElement(Ze,Object.assign({},o,e))},exports.DatePicker=function(e){var o=qe();return i.createElement(Qe,Object.assign({},o,e))},exports.FileImage=function(e){var o=e.path,n=m(e,qo);return i.createElement(t.Image,Object.assign({src:o},n))},exports.FileSVG=function(e){var o=e.src,n=e.color,a=m(e,Zo),r=t.useTheme().getColor,d=n?{fill:r(n),stroke:r(n)}:{};return i.createElement(j,Object.assign({},a),i.createElement(t.Image,Object.assign({},d,{content:'url("'+o+'")',width:"100%",height:"100%"})))},exports.FormikCheckbox=function(e){var o=To(e),t=o.value,n=m(o,Io);n.isChecked=t;var a=te(e);return i.createElement(ue,Object.assign({},a,n))},exports.FormikCountryPicker=function(e){var o=To(e),t=he(e);return i.createElement(Ze,Object.assign({},t,o))},exports.FormikDatePicker=function(e){var o=To(e),t=qe();return i.createElement(Qe,Object.assign({},t,o))},exports.FormikForm=function(e){var n=e.children,a=e.autoFocus,d=void 0!==a&&a,l=e.initFocus,c=r.useFormikContext(),s=o.useRef({}),u=o.useRef([]),m=function(e){if(d){var o,i=u.current.indexOf(e)+1;i<u.current.length?null==(o=s.current[u.current[i]])||o.focus():c.onSubmit&&c.onSubmit(c.values)}},h={active:d,focusNextInput:m,setInputRef:function(e,o){s.current[e]=o,u.current.includes(e)||u.current.push(e)},handleSubmitEditing:m,getReturnKeyType:function(e){return u.current.indexOf(e)===u.current.length-1?"done":"next"}};return o.useEffect((function(){var e;if(d)if(l&&s.current[l])null==(e=s.current[l])||e.focus();else if(u.current[0]){var o;null==(o=s.current[u.current[0]])||o.focus()}}),[d,l]),i.createElement(zo.Provider,{value:h},i.createElement(t.Form,null,n))},exports.FormikPassword=function(e){var o=e.visibleIcon,n=void 0===o?i.createElement(M,{size:14}):o,a=e.hiddenIcon,r=void 0===a?i.createElement(O,{size:14}):a,d=m(e,Ro),l=To(d),c=$e(l),s=c.isVisible,u=c.setIsVisible,h=m(c,Lo);return i.createElement(io,Object.assign({},h,{type:s?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){d.isDisabled||u(!s)}},s?n:r)}))},exports.FormikSelect=function(e){var o=To(e);o.selected=o.value;var t=ao(e);return i.createElement(fo,Object.assign({},t,o))},exports.FormikSwitch=function(e){var o=To(e),t=bo(e);return i.createElement(yo,Object.assign({},t,o))},exports.FormikTextArea=function(e){var o=To(e),t=wo(e);return i.createElement(ko,Object.assign({},t,o))},exports.FormikTextField=function(e){var o=To(e),t=m(Xe(e),Ho);return i.createElement(io,Object.assign({},t,o))},exports.Horizontal=v,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=D,exports.Loader=$,exports.Modal=Uo,exports.Password=function(e){var o=e.visibleIcon,n=void 0===o?i.createElement(M,{size:14}):o,a=e.hiddenIcon,r=void 0===a?i.createElement(O,{size:14}):a,d=m(e,to),l=$e(d),c=l.isVisible,s=l.setIsVisible,u=m(l,no);return i.createElement(io,Object.assign({},u,{type:c?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){d.isDisabled||s(!c)}},c?n:r)}))},exports.Right=function(e){return i.createElement(t.View,Object.assign({marginLeft:"auto"},e))},exports.Select=function(e){var o=ao(e);return i.createElement(fo,Object.assign({},o,e))},exports.Switch=function(e){var o=bo(e);return i.createElement(yo,Object.assign({},o,e))},exports.Tabs=Qo,exports.Text=je,exports.TextArea=function(e){var o=wo(e);return i.createElement(ko,Object.assign({},o,e))},exports.TextField=function(e){var o=Xe(e);return i.createElement(io,Object.assign({},o,e))},exports.Toggle=function(e){var t=e.children,n=e.shape,a=e.colorScheme,r=e.variant,d=e.isDisabled,l=e.isToggled,c=void 0!==l&&l,s=e.onToggle,u=m(e,mi),h=function(e){var i=o.useState(!1),t=i[0],n=i[1],a=o.useState(e);return{isHovered:t,setIsHovered:n,isToggle:a[0],setIsToggled:a[1]}}(c),g=h.isHovered,p=h.setIsHovered,v=h.isToggle,f=h.setIsToggled;return o.useEffect((function(){f(c)}),[c]),i.createElement(ui,Object.assign({shape:n,colorScheme:a,variant:r,isDisabled:d,isHovered:g,setIsHovered:p,isToggle:v,setIsToggled:f,onToggle:s},u),t)},exports.ToggleGroup=function(e){var t,n=e.items,a=e.shape,r=e.colorScheme,d=e.variant,l=e.onToggleChange,c={activeToggles:(t=o.useState([]))[0],setActiveToggles:t[1]};return i.createElement(hi,{items:n,shape:a,colorScheme:r,variant:d,activeToggles:c.activeToggles,setActiveToggles:c.setActiveToggles,onToggleChange:l})},exports.Top=function(e){return i.createElement(t.View,Object.assign({marginBottom:"auto"},e))},exports.Vertical=ye,exports.View=h,exports.hideModal=Fo,exports.showModal=function(e,o,i){void 0===o&&(o={}),void 0===i&&(i={}),Mo.getState().show(e,o,i)},exports.useModalStore=Mo;
|
|
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")),r=require("formik"),d=require("zustand"),l=require("src/components/Layout/Horizontal/Horizontal");function c(){return(c=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 s(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 u=t.View,m=["children","wrap","justify","isReversed"],h=function(e){var o=e.children,t=e.wrap,n=void 0===t?"wrap":t,a=e.justify,r=void 0===a?"flex-start":a,d=e.isReversed,l=void 0!==d&&d,c=s(e,m);return i.createElement(u,Object.assign({display:"flex",flexWrap:n,flexDirection:l?"row-reverse":"row",justifyContent:r},c),o)},g=function(e){return i.createElement(h,Object.assign({},e))},p=["children","wrap"],v=function(e){var o=e.children,t=e.wrap,n=s(e,p);return i.createElement(u,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:t},n),o)},f=function(e){return i.createElement(v,Object.assign({},e))},b=["size","color"],j=function(e){var o=e.size,t=void 0===o?64:o,n=s(e,b);return i.createElement(f,{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]"})))))))},x=["size","color"],C=function(e){var o=e.size,t=void 0===o?64:o,n=s(e,x);return i.createElement(f,{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]"})))))))},E=["size","color"],S=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=s(e,E);return i.createElement(f,{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"},r),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"}))))},y=["size","color"],w=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=s(e,y);return i.createElement(f,{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"},r),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"}))))},_=["size","color"],z=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,r=s(e,_);return i.createElement(f,{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"},r),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}))))},k=["size","color"],O=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=s(e,k);return i.createElement(f,{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},r),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"}))))},I=["size","color"],T=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=s(e,I);return i.createElement(f,{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"},r),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"],R=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,r=s(e,H);return i.createElement(f,{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"},r),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}))))},M=["size","color"],L=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=s(e,M);return i.createElement(f,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({height:t+"px",width:t+"px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 192.146 192.146",fill:a},r),i.createElement("g",{id:"SVGRepo_bgCarrier"}),i.createElement("g",{id:"SVGRepo_tracerCarrier"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("g",null,i.createElement("g",null,i.createElement("g",null,i.createElement("path",{d:"M108.186,144.372c0,7.054-4.729,12.32-12.037,12.32h-0.254c-7.054,0-11.92-5.266-11.92-12.32 c0-7.298,5.012-12.31,12.174-12.31C103.311,132.062,108.059,137.054,108.186,144.372z M88.44,125.301h15.447l2.951-61.298H85.46 L88.44,125.301z M190.372,177.034c-2.237,3.664-6.214,5.921-10.493,5.921H12.282c-4.426,0-8.51-2.384-10.698-6.233 c-2.159-3.849-2.11-8.549,0.147-12.349l84.111-149.22c2.208-3.722,6.204-5.96,10.522-5.96h0.332 c4.445,0.107,8.441,2.618,10.513,6.546l83.515,149.229C192.717,168.768,192.629,173.331,190.372,177.034z M179.879,170.634 L96.354,21.454L12.292,170.634H179.879z"})))))))},F={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},V=["children","href","iconSize","underline","isHovered","isExternal","styles","setIsHovered"],G=function(e){var o=e.children,a=e.href,r=void 0===a?"/":a,d=e.iconSize,l=void 0===d?"sm":d,c=e.underline,u=void 0===c?"default":c,m=e.isHovered,h=void 0!==m&&m,p=e.isExternal,v=void 0!==p&&p,f=e.styles,b=void 0===f?{icon:{},text:{}}:f,j=e.setIsHovered,x=void 0===j?function(){}:j,C=s(e,V),E=function(){"hover"===u&&x(!0)};return i.createElement(n.Link,{to:r,target:v?"_blank":"_self"},i.createElement(t.Element,Object.assign({onMouseEnter:E,onMouseLeave:E,textDecoration:h||"underline"===u?"underline !important":"none"},b.text,C),i.createElement(g,{gap:3,alignItems:"center",wrap:"nowrap"},o,v&&i.createElement(O,{size:F[l],style:b.icon}))))},D=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(G,Object.assign({},n,e))},B={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}},A={sharp:0,rounded:4,pillShaped:24},P={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}},W={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},N={fast:50,normal:100,slow:300},K=["size","speed","color"],U=["size","speed","color"],Z=["size","speed","color"],J=["size","children","textColor","loaderColor","type","speed","textPosition"],Y=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,u=s(e,K),m=t.useTheme().getColor(c),h="number"==typeof a?a:W[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}))}),N[d]);return function(){return clearInterval(e)}}),[d]),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:m,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+p+"deg)"}},u),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"})))},q=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,u=s(e,U),m=t.useTheme().getColor(c),h="number"==typeof a?a:W[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}))}),N[d]);return function(){return clearInterval(e)}}),[d]),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)"}},u),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:m}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:m}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:m}))},Q=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,u=s(e,Z),m=t.useTheme().getColor(c),h="number"==typeof a?a:W[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}))}),N[d]);return function(){return clearInterval(e)}}),[d]),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)"}},u),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:m,strokeWidth:"5",strokeDasharray:"1,10"}))},X=function(e){var o=e.size,t=e.children,n=e.textColor,a=e.loaderColor,r=e.type,d=void 0===r?"default":r,l=e.speed,c=void 0===l?"normal":l,m=e.textPosition,h=void 0===m?"right":m,g=s(e,J),p={size:o,speed:c,color:a},v={default:i.createElement(Y,Object.assign({},p)),dotted:i.createElement(q,Object.assign({},p)),quarter:i.createElement(Q,Object.assign({},p))};return i.createElement(f,Object.assign({gap:10,flexDirection:"top"===h||"bottom"===h?"column":"row"},g),("left"===h||"top"===h)&&t&&i.createElement(u,{color:n},t),v[d],("right"===h||"bottom"===h)&&t&&i.createElement(u,{color:n},t))},$=function(e){return i.createElement(X,Object.assign({},e))},ee=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick","loaderProps","loaderPosition","effect","isHovered"],oe=function(e){var o,n=e.icon,a=e.shadow,r=e.children,d=e.ariaLabel,l=e.externalHref,c=e.isAuto,u=void 0!==c&&c,m=e.isFilled,h=void 0!==m&&m,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,E=void 0===C?"md":C,S=e.variant,y=void 0===S?"filled":S,w=e.iconPosition,_=void 0===w?"left":w,z=e.colorScheme,k=void 0===z?"theme.primary":z,O=e.shape,I=void 0===O?"rounded":O,T=e.onClick,H=void 0===T?function(){}:T,R=e.loaderProps,M=void 0===R?{}:R,L=e.loaderPosition,F=void 0===L?"left":L,V=e.effect,G=void 0===V?"default":V,W=e.isHovered,N=s(e,ee),K=!(x||b),U={disabled:!K},Z=K?k:"theme.disabled",J=W&&"hover"===G,Y=W&&"reverse"===G,q=B[E],Q={filled:{backgroundColor:Y?"transparent":Z,color:Y?Z:"color.white",borderWidth:1,borderStyle:"solid",borderColor:Y?Z:"transparent"},outline:{backgroundColor:Y?Z:"transparent",borderWidth:1,borderStyle:"solid",borderColor:Y?Z:k,color:Y?"white":Z},link:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:Y?Z:"transparent",color:Z,textDecoration:Y?"none":"underline"},ghost:{backgroundColor:Y?Z:"transparent",color:Y?"color.white":Z,borderWidth:1,borderStyle:"solid",borderColor:Y?Z:"transparent"}}[y],X={width:u?"fit-content":h?"100%":q.width},oe={padding:v?P[E].padding:B[E].padding},ie=i.createElement(g,{gap:10},b&&"left"===F&&i.createElement($,Object.assign({},M)),n&&"left"===_&&!b&&n,r,n&&"right"===_&&!b&&n,b&&"right"===F&&i.createElement($,Object.assign({},M)));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:d,backgroundColor:Z,borderRadius:A[I],onClick:null!=(o=N.onClick)?o:H,cursor:K?"pointer":"default",filter:J?"brightness(0.85)":"brightness(1)",transition:J&&!N.isDisabled?"transform 0.3s ease":"",transform:J&&!N.isDisabled?"translateY(-5px)":""},U,q,Q,X,oe,a,N),"link"===y&&l?i.createElement(D,{href:l,textDecorationColor:k,colorScheme:k,isExternal:!0},ie):ie)},ie=function(e){var o,t={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},n=t.isHovered,a=t.setIsHovered,r=function(){return a(!n)};return i.createElement(oe,Object.assign({isHovered:n,setIsHovered:a,onMouseEnter:r,onMouseLeave:r},e))},te=function(e){var o=e.defaultIsSelected,t=void 0!==o&&o,n=i.useState(!1),a=n[0],r=n[1],d=i.useState(t);return{isHovered:a,setIsHovered:r,isSelected:d[0],setIsSelected:d[1]}},ne={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}},ae=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],re=function(e){var o=e.children,n=e.heading,a=e.isItalic,r=void 0!==a&&a,d=e.isUnderlined,l=void 0!==d&&d,c=e.isStriked,u=void 0!==c&&c,m=e.weight,h=void 0===m?"normal":m,g=e.size,p=void 0===g?"sm":g,v=s(e,ae);return i.createElement(t.Element,Object.assign({as:"label",width:"100%",fontSize:p,fontStyle:r?"italic":"normal",fontWeight:t.Typography.fontWeights[h],textDecoration:u?"line-through":l?"underline":"none"},n?ne[n]:{},v),o)},de=function(e){return i.createElement(re,Object.assign({},e))},le={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}},ce={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},se=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],ue=function(e){var o=e.id,n=e.icon,a=e.label,r=e.isChecked,d=e.onChange,l=e.onValueChange,u=e.shadow,m=void 0===u?{}:u,h=e.labelPosition,g=void 0===h?"right":h,p=e.size,v=void 0===p?"md":p,b=e.colorScheme,j=void 0===b?"theme.primary":b,x=e.error,C=void 0!==x&&x,E=e.isSelected,y=void 0!==E&&E,w=e.isHovered,_=void 0!==w&&w,z=e.isDisabled,k=void 0!==z&&z,O=e.isReadOnly,I=void 0!==O&&O,H=e.isIndeterminate,R=void 0!==H&&H,M=e.setIsSelected,L=void 0===M?function(){}:M,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.styles,D=void 0===G?{checkbox:{},label:{}}:G,B=s(e,se),A=function(){return V(!_)},P={container:c({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:C?"theme.error":k?"theme.disabled":"color.blueGray.700",cursor:k?"not-allowed":I?"default":"pointer"},D.label),checkbox:c({},k?{backgroundColor:"theme.disabled"}:(r||y)&&!R||R?{backgroundColor:j}:{borderWidth:2,borderColor:C?"theme.error":_?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:_?"brightness(0.9)":void 0},le[v],m,D.checkbox)};return i.createElement(de,Object.assign({htmlFor:o,as:"div",onClick:function(){I||k||(L&&L(!y),d&&d(!r),l&&l(!r))},onMouseEnter:A,onMouseLeave:A,size:t.Typography.fontSizes[v]},P.container,B),"left"===g&&a&&i.createElement(t.View,null,a),i.createElement(f,Object.assign({},P.checkbox),R?i.createElement(T,null):(r||y)&&(null!=n?n:i.createElement(S,{size:ce[v]}))),"right"===g&&a&&i.createElement(t.View,null,a))},me=[{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"}],he=function(e){var o=e.placeholder,t=i.useState(me),n=t[0],a=t[1],r=i.useState(null!=o?o:me[0].name),d=r[0],l=r[1],c=i.useState(!0),s=c[0],u=c[1],m=i.useState(!1),h=m[0],g=m[1],p=i.useState(!1);return{hide:s,setHide:u,newOptions:n,setNewOptions:a,isHovered:p[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,value:d,setValue:l}},ge={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}},pe=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],ve=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)},fe=function(e){var t=e.text,n=e.maxLines,a=void 0===n?1:n,r=o.useRef(null),d=o.useState(t.length),l=d[0],c=d[1];o.useEffect((function(){var e=r.current;e&&function(){for(var o,i=getComputedStyle(e).lineHeight,n=("normal"!==i?parseFloat(i):20)*a,r=0,d=t.length;r<=d;)o=Math.floor((r+d)/2),e.innerText=t.substring(0,o)+"...",e.offsetHeight>n?d=o-1:r=o+1;c(d)}()}),[t,a]);var s=t.length>l?t.substring(0,l)+"...":t;return i.createElement("div",{ref:r},s)},be=function(e){var o=e.children,n=e.heading,a=e.maxLines,r=e.isItalic,d=void 0!==r&&r,l=e.isUnderlined,c=void 0!==l&&l,u=e.isSub,m=void 0!==u&&u,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,E=void 0===C?"md":C,S=s(e,pe);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[E],lineHeight:t.Typography.lineHeights[E],fontStyle:d?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":c?"underline":"none"},m||g?{display:"inline"}:{},n?ge[n]:{},S),b&&a&&"string"==typeof o?i.createElement(fe,{text:o,maxLines:a}):i.createElement(ve,Object.assign({isSub:m,isSup:g},S),o))},je=function(e){return i.createElement(be,Object.assign({},e))},xe=["children","styles"],Ce=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=s(e,xe);return i.createElement(je,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},n.helperText,a),o)},Ee=["children","wrap","justify","isReversed"],Se=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,r=e.justify,d=void 0===r?"flex-start":r,l=e.isReversed,c=void 0!==l&&l,u=s(e,Ee);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:c?"column-reverse":"column",justifyContent:d},u),o)},ye=function(e){return i.createElement(Se,Object.assign({},e))},we=["children","helperText","error","styles"],_e=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,r=e.styles,d=s(e,we);return i.createElement(ye,Object.assign({gap:5,position:"relative"},d),o,!a&&t&&i.createElement(Ce,Object.assign({},r),t),a&&i.createElement(je,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},a))},ze={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},ke={xs:6,sm:8,md:10,lg:12,xl:14},Oe={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},Ie={paddingTop:14,paddingBottom:0,paddingLeft:16,paddingRight:36},Te={paddingTop:10,paddingBottom:4,paddingLeft:16,paddingRight:36},He=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],Re=function(e){var o=e.shadow,n=e.children,a=e.size,r=void 0===a?"md":a,d=e.shape,l=void 0===d?"default":d,c=e.variant,u=void 0===c?"default":c,m=e.error,h=void 0!==m&&m,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,E=void 0!==C&&C,S=e.isReadOnly,y=void 0!==S&&S,w=e.colorScheme,_=void 0===w?"theme.primary":w,z=e.styles,k=void 0===z?{pickerBox:{}}:z,O=s(e,He);return i.createElement(g,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:h?"error":!x&&!b||E?"midgray":_,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",marginBottom:5,fontSize:t.Typography.fontSizes[r],cursor:E?"not-allowed":y?"auto":"pointer"},v?Ie:Te,o,ze[l],Oe[u],k.box,O),n)},Me=["children"],Le=function(e){var o=e.children,t=s(e,Me);return i.createElement(f,Object.assign({gap:10,right:16,zIndex:500,wrap:"nowrap",position:"absolute"},t),o)},Fe=["children","size","error","color","styles"],Ve=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,r=void 0!==a&&a,d=e.color,l=void 0===d?"theme.primary":d,c=e.styles,u=void 0===c?{label:{}}:c,m=s(e,Fe);return i.createElement(de,Object.assign({top:6,zIndex:1e3,lineHeight:ke[n],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:r?"error":l,fontSize:ke[n]},u.label,m),o)},Ge=["children"],De=function(e){var o=e.children,t=s(e,Ge);return i.createElement(ye,Object.assign({width:"100%"},t),o)},Be={xs:8,sm:10,md:12,lg:14,xl:16},Ae=["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"],Pe=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},We=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},Ne=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},Ke=function(e){var n=e.option,a=e.size,r=void 0===a?"md":a,d=e.callback,l=void 0===d?function(){}:d,c=e.styles,s=void 0===c?{text:{}}:c,u=o.useState(!1),m=u[0],h=u[1],g=function(){return h(!m)};return i.createElement(Ne,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[r],backgroundColor:m?"trueGray.100":"transparent"},s.text),n)},Ue=function(e){var o=e.size,t=e.styles,n=void 0===t?{dropDown:{}}:t,a=e.options,r=e.callback,d=void 0===r?function(){}:r,l=function(e){return d(e)};return i.createElement(Pe,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(Ke,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},Ze=function(e){var o=e.id,n=e.name,a=e.label,r=e.value,d=e.placeholder,l=e.helperText,u=e.hide,m=void 0!==u&&u,h=e.error,g=void 0!==h&&h,p=e.isHovered,v=void 0!==p&&p,f=e.isFocused,b=void 0!==f&&f,x=e.isAutoFocus,E=void 0!==x&&x,S=e.isDisabled,y=void 0!==S&&S,w=e.isReadOnly,_=void 0!==w&&w,z=e.shadow,k=void 0===z?{}:z,O=e.newOptions,I=void 0===O?[]:O,T=e.size,H=void 0===T?"md":T,R=e.variant,M=void 0===R?"default":R,L=e.shape,F=void 0===L?"default":L,V=e.colorScheme,G=void 0===V?"theme.primary":V,D=e.onChange,B=e.onBlur,A=void 0===B?function(){}:B,P=e.setHide,W=void 0===P?function(){}:P,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=s(e,Ae),oe=(0,t.useTheme().getColor)("color.blueGray.700"),ie=function(){return Z(!v)},te=!(!b||!a),ne=c({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[H],backgroundColor:"transparent",color:y?"color.trueGray.600":"color.blueGray.700",cursor:y?"not-allowed":"auto"},$.field);return i.createElement(_e,{helperText:l,error:g,styles:$,onClick:function(){y||_||W(!m)}},i.createElement(Re,{label:a,size:H,error:g,shape:F,styles:$,shadow:k,variant:M,value:r,color:G,isHovered:v,isDisabled:y,isReadOnly:_,isFocused:b,isWithLabel:te,colorScheme:G,onMouseEnter:ie,onMouseLeave:ie},i.createElement(De,null,te&&i.createElement(Ve,Object.assign({htmlFor:o,color:G,error:g},$),a),i.createElement(We,Object.assign({id:o,name:n,placeholder:d,readOnly:_,disabled:y,autoFocus:E,onBlur:function(e){A(e),Y(!1)},onFocus:function(){return Y(!0)}},ne,ee,{value:r,onChange:function(e){var o=e.target.value,i=me.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));m&&W(!1),K(i),D&&D(o)}}))),i.createElement(Le,null,i.createElement(m?j:C,{size:Be[H],color:oe,style:$.icon}))),!m&&i.createElement(Ue,{size:H,styles:$,options:I,callback:function(e){W(!m),Q(e),D&&D(e)}}))},Je=function(){var e=i.useState(!1),o=e[0],t=e[1],n=i.useState(!1),r=n[0],d=n[1],l=i.useState(a(new Date,"yyyy-MM-dd"));return{date:l[0],setDate:l[1],isHovered:o,setIsHovered:t,isFocused:r,setIsFocused:d}},Ye=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],qe=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},Qe=function(e){var o=e.id,n=e.name,a=e.label,r=e.date,d=e.helperText,l=e.shadow,u=void 0===l?{}:l,m=e.size,h=void 0===m?"md":m,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=e.error,S=void 0!==E&&E,y=e.isHovered,w=void 0!==y&&y,_=e.isFocused,z=void 0!==_&&_,k=e.isDisabled,O=void 0!==k&&k,I=e.isReadOnly,T=void 0!==I&&I,H=e.setDate,R=void 0===H?function(){}:H,M=e.setIsFocused,L=void 0===M?function(){}:M,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.onChange,D=e.onChangeText,B=s(e,Ye),A=!(!z||!a),P=function(){return V(!w)},W=function(e){"string"==typeof e?(R(e),D&&D(e)):(R(e.target.value),G&&G(e))},N=c({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:O?"color.trueGray.600":"color.blueGray.700",cursor:O?"not-allowed":T?"auto":"pointer"},C.field);return i.createElement(_e,{helperText:d,error:S,styles:C},i.createElement(Re,{label:a,size:h,error:S,shape:f,styles:C,shadow:u,variant:p,value:r,color:j,isHovered:w,isDisabled:O,isReadOnly:T,isFocused:z,isWithLabel:A,colorScheme:j,onMouseEnter:P,onMouseLeave:P},i.createElement(De,null,A&&i.createElement(Ve,Object.assign({htmlFor:o,color:j,error:S},C),a),i.createElement(qe,Object.assign({id:o,name:n,value:r,onFocus:function(){return L(!0)},onChange:W,disabled:O,readOnly:T},N,D&&{onChangeText:W},B)))))},Xe=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),r=a[0],d=a[1],l=o.useState(!1),c=l[0],s=l[1],u=o.useState(!1),m=u[0],h=u[1],g=o.useState(n),p=g[0],v=g[1];return o.useMemo((function(){d(c&&!p?null!=t?t:"":null!=i?i:t)}),[p,c,i,t]),{hint:r,setHint:d,isFocused:c,setIsFocused:s,isHovered:m,setIsHovered:h,setValue:v,value:p}},$e=function(e){var i=Xe(e),t=o.useState(!1);return c({isVisible:t[0],setIsVisible:t[1]},e,i)},eo=["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"],oo=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},io=function(e){var o=e.id,n=e.name,a=e.label,r=e.hint,d=e.value,l=e.onChange,u=e.leftChild,m=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,E=void 0===C?"default":C,S=e.variant,y=void 0===S?"default":S,_=e.colorScheme,z=void 0===_?"theme.primary":_,k=e.error,O=void 0!==k&&k,I=e.isFocused,T=void 0!==I&&I,H=e.isHovered,R=void 0!==H&&H,M=e.isDisabled,L=void 0!==M&&M,F=e.isReadOnly,V=void 0!==F&&F,G=e.isClearable,D=void 0===G||G,B=e.isAutoFocus,A=void 0!==B&&B,P=e.setIsFocused,W=void 0===P?function(){}:P,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=s(e,eo),X=(0,t.useTheme().getColor)("color.blueGray.700"),$=!(!T||!a),ee=c({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:L?"color.trueGray.600":"color.blueGray.700",cursor:L?"not-allowed":"auto"},b.field),oe=function(){return K(!R)};return i.createElement(_e,{helperText:h,error:O,styles:b},i.createElement(Re,{label:a,size:x,error:O,shape:E,styles:b,shadow:v,variant:y,value:d,color:z,isHovered:R,isDisabled:L,isReadOnly:V,isFocused:T,isWithLabel:$,colorScheme:z,onMouseEnter:oe,onMouseLeave:oe},u,i.createElement(De,null,$&&i.createElement(Ve,Object.assign({htmlFor:o,color:z,error:O},b),a),i.createElement(oo,Object.assign({id:o,name:n,readOnly:V,disabled:L,autoFocus:A,placeholder:r,onFocus:function(){W(!0),J&&J()},onBlur:function(e){q&&q(e),W(!1)},autoComplete:"off"},ee,Q,{onChange:function(e){"string"==typeof e?(Z(e),g&&g(e),l&&l(e)):(Z(e.target.value),g&&g(e.target.value),l&&l(e.target.value))},value:d}))),(m||D&&d)&&i.createElement(Le,null,D&&d&&!V&&!L&&i.createElement(w,{size:t.Typography.fontSizes[x],color:X,onClick:function(){Z(""),l&&(q({target:{name:n}}),g&&g(""),l&&l("")),"undefined"==typeof document&&g&&g("")}}),m&&i.createElement(i.Fragment,null,m))))},to=["visibleIcon","hiddenIcon"],no=["isVisible","setIsVisible"],ao=function(e){var o=e.placeholder?e.isMulti?[]:"":e.options[0],t=i.useState(!0),n=t[0],a=t[1],r=i.useState(!1),d=r[0],l=r[1],c=i.useState(!1),s=c[0],u=c[1],m=i.useState(o);return{value:m[0],setValue:m[1],hide:n,setHide:a,isHovered:d,setIsHovered:l,isFocused:s,setIsFocused:u}},ro={xs:8,sm:10,md:12,lg:14,xl:16},lo=["isHovered","setIsHovered","option","size","callback"],co=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],so=["option","size","removeOption"],uo=["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"],mo=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,r=e.size,d=void 0===r?"md":r,l=e.callback,c=void 0===l?function(){}:l,u=s(e,lo),m=function(){return n(!o)};return i.createElement(t.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:m,onMouseLeave:m,fontSize:t.Typography.fontSizes[d],onClick:function(){return function(e){return c(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},u),a)},ho=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,r=e.value,d=e.isDisabled,l=e.placeholder,s=e.removeOption,u=void 0===s?function(){}:s,m=c({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:d?"color.trueGray.600":"color.blueGray.700",cursor:d?"not-allowed":"auto"},a.field,a.text);return i.createElement(je,Object.assign({},m),(""===r||r&&0===r.length)&&l?l:i.createElement(i.Fragment,null,"string"==typeof r?r:r&&r.length>0&&i.createElement(g,{gap:6},r.map((function(e){return i.createElement(vo,{key:e,option:e,removeOption:u})})))))},go=function(e){var o=e.id,n=e.name,a=e.value,r=e.onChange,d=e.isMulti,l=void 0!==d&&d,c=e.isDisabled,u=void 0!==c&&c,m=e.isReadOnly,h=void 0!==m&&m,g=e.options,p=void 0===g?[]:g,v=s(e,co);return i.createElement(t.Element,Object.assign({id:o,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:a,disabled:u,readOnly:h,onChange:function(e){r&&r(e)},multiple:l},v),p.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},po=function(e){var o,n=e.size,a=e.styles,r=void 0===a?{dropDown:{}}:a,d=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},u=function(e){return c(e)},m=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"},m,r.dropDown),d.map((function(e){return i.createElement(mo,Object.assign({key:e,size:n,option:e,callback:u},s,r.text))})))},vo=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,r=e.removeOption,d=void 0===r?function(){}:r,l=s(e,so);return i.createElement(g,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()}},l),i.createElement(je,{size:a},o),i.createElement(w,{role:"close-button",color:"inherit",size:ro[a],onClick:function(){return d(o)}}))},fo=function(e){var t=e.id,n=e.name,a=e.label,r=e.value,d=e.placeholder,l=e.helperText,c=e.hide,u=void 0!==c&&c,m=e.error,h=void 0!==m&&m,g=e.isMulti,p=void 0!==g&&g,v=e.isFocused,f=void 0!==v&&v,b=e.isHovered,x=void 0!==b&&b,E=e.isDisabled,S=void 0!==E&&E,y=e.isReadOnly,w=void 0!==y&&y,_=e.options,z=void 0===_?[]:_,k=e.shadow,O=void 0===k?{}:k,I=e.size,T=void 0===I?"md":I,H=e.colorScheme,R=void 0===H?"theme.primary":H,M=e.shape,L=void 0===M?"default":M,F=e.variant,V=void 0===F?"default":F,G=e.styles,D=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,B=e.onChange,A=void 0===B?function(){}:B,P=e.setHide,W=void 0===P?function(){}:P,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=s(e,uo),Q=!(!f||!a),X=function(){return Z(!x)},$=o.useCallback((function(e){W(!u),p&&Array.isArray(r)?!r.includes(e)&&K([].concat(r,[e])):K(e),A&&A(e)}),[u,p,r]);return i.createElement(_e,{role:"SelectBox",helperText:l,error:h,styles:D,onClick:S||w?function(){}:function(e){e&&e.stopPropagation&&e.stopPropagation(),W(!u),Y(!f)}},i.createElement(Re,{label:a,size:T,error:h,shape:L,styles:D,shadow:O,variant:V,value:r,color:R,isHovered:x,isDisabled:S,isReadOnly:w,isFocused:f,isWithLabel:Q,colorScheme:R,onMouseEnter:X,onMouseLeave:X},i.createElement(De,null,Q&&i.createElement(Ve,Object.assign({htmlFor:t,color:R,error:h},D),a),i.createElement(go,Object.assign({id:t,name:n,options:z,onChange:A,value:r,isDisabled:S,isReadOnly:w,isMulti:p,onFocus:function(){return Y(!0)}},q)),i.createElement(ho,{size:T,styles:D,value:r,isDisabled:S,placeholder:d,removeOption:function(e){if(Array.isArray(r)&&r.includes(e)){var o=r.filter((function(o){return o!==e}));K(0===o.length?[]:o)}}})),i.createElement(Le,null,!w&&!S&&i.createElement(i.Fragment,null,i.createElement(u?j:C,{color:"inherit",size:ro[T],style:D.icon})))),!u&&i.createElement(po,{size:T,styles:D,options:z,callback:$}))},bo=function(e){var o=e.isDisabled,t=e.isChecked,n=i.useState(!1),a=n[0],r=n[1],d=i.useState(o?!o:t);return{isHovered:a,setIsHovered:r,on:d[0],setOn:d[1]}},jo={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}},xo={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}},Co={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}},Eo=["id","name","label","inActiveChild","activeChild","labelPosition","shadow","size","colorScheme","value","isHovered","isDisabled","isReadOnly","onChange","setValue","setIsHovered","styles"],So=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},yo=function(e){var o=e.id,t=e.name,n=e.label,a=e.inActiveChild,r=e.activeChild,d=e.labelPosition,l=void 0===d?"right":d,m=e.shadow,h=void 0===m?{}:m,g=e.size,p=void 0===g?"sm":g,v=e.colorScheme,f=void 0===v?"theme.primary":v,b=e.value,j=void 0!==b&&b,x=e.isHovered,C=void 0!==x&&x,E=e.isDisabled,S=void 0!==E&&E,y=e.isReadOnly,w=void 0!==y&&y,_=e.onChange,z=e.setValue,k=void 0===z?function(){}:z,O=e.setIsHovered,I=void 0===O?function(){}:O,T=e.styles,H=void 0===T?{slider:{},circle:{},label:{}}:T,R=s(e,Eo),M=function(){return I(!C)},L={container:c({gap:10,display:"flex",height:"fit-content",width:"fit-content",cursor:S?"not-allowed":w?"default":"pointer"},H.label)};return i.createElement(de,Object.assign({htmlFor:o,onMouseEnter:M,onMouseLeave:M},L.container,R),i.createElement(So,Object.assign({id:o,name:t,opacity:0,width:0,height:0,checked:j,onChange:function(e){w||(k(!j),_&&_(e.target.checked))},disabled:S,readOnly:w},R)),"left"===l&&n&&i.createElement(u,null,n),i.createElement(u,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,marginBottom:5,filter:C&&j?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:S?"disabled":j?f:"lightgray",justifyContent:r?"space-between":j?"flex-end":"flex-start"},h,Co[p],xo[p],H.slider),r&&j&&i.createElement(u,null,r),i.createElement(u,Object.assign({borderRadius:"50%",backgroundColor:"white"},jo[p],H.circle)),a&&!j&&i.createElement(u,null,a)),"right"===l&&n&&i.createElement(u,null,n))},wo=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),r=a[0],d=a[1],l=o.useState(!1),c=l[0],s=l[1],u=o.useState(n||""),m=u[0],h=u[1],g=o.useState(!1),p=g[0],v=g[1];return o.useMemo((function(){d(p&&!m?null!=t?t:"":null!=i?i:t)}),[m,p,i,t]),{hint:r,setHint:d,isHovered:c,setIsHovered:s,value:m,setValue:h,isFocused:p,setIsFocused:v}},_o=["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"],zo=function(e){var o=e.id,n=e.name,a=e.hint,r=e.error,d=e.value,l=e.label,u=e.shadow,m=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,E=void 0!==C&&C,S=e.isFocused,y=void 0!==S&&S,w=e.isEditable,_=void 0!==w&&w,z=e.isReadOnly,k=void 0!==z&&z,O=e.isDisabled,I=void 0!==O&&O,T=e.isAutoFocus,H=void 0!==T&&T,R=e.isMultiline,M=void 0!==R&&R,L=e.maxRows,F=void 0===L?3:L,V=e.maxCols,G=void 0===V?30:V,D=e.onBlur,B=void 0===D?function(){}:D,A=e.onChange,P=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=s(e,_o),$=!(!y||!l),ee=c({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[g],backgroundColor:"transparent",color:I?"color.trueGray.600":"color.blueGray.700",cursor:I?"not-allowed":"auto"},Q.field),oe=function(){return Y(!E)},ie=function(e){"string"==typeof e?(K(e),W&&W(e)):(K(e.target.value),A&&A(e.target.value))};return i.createElement(_e,{helperText:m,error:r,styles:Q},i.createElement(Re,{label:l,size:g,error:r,shape:v,styles:Q,shadow:u,variant:b,value:d,color:x,isHovered:E,isDisabled:I,isReadOnly:k,isFocused:y,isWithLabel:$,colorScheme:x,onMouseEnter:oe,onMouseLeave:oe},i.createElement(De,null,$&&i.createElement(Ve,Object.assign({htmlFor:o,color:x,error:r},Q),l),i.createElement(t.Element,Object.assign({as:"textarea",id:o,name:n,rows:F,cols:G,value:d,readOnly:k,disabled:I,autoFocus:H,editable:_,placeholder:a,onBlur:function(e){B(e),Z(!1)},onFocus:function(){Z(!0),P&&P()},onChange:ie,multiline:M},ee,X,W&&{onChangeText:ie})))))},ko=o.createContext({active:!1,focusNextInput:function(){},setInputRef:function(){},handleSubmitEditing:function(){},getReturnKeyType:function(){return"next"}}),Oo=["name","type"],Io=function(e){var i=e.name,t=e.type,n=s(e,Oo),a=o.useContext(ko),d=r.useFormikContext(),l=d.values,u=d.setFieldTouched,m=d.setFieldValue,h=d.touched[i]||d.submitCount>0?d.errors[i]:void 0,g=function(e){"Enter"===e.key&&(e.preventDefault(),a.focusNextInput(i))},p=["text","password","email","digits"].includes(t);return c({},function(e){switch(e){case"email":return{autoCorrect:"off",keyboardType:"email-address",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{keyboardType:"phone-pad"};case"name":return{autoCorrect:"off"};default:return{}}}(t),n,{value:l[i],error:h,onBlur:function(){u(i,!0)},onKeyPress:g},p?{onChangeText:function(e){m(i,e),null==n.onChangeText||n.onChangeText(e)}}:{onChange:function(e){m(i,e),null==n.onChange||n.onChange(e)}},a.active?{handleKeyPress:g}:{})},To=["value"],Ho=["value"],Ro=["visibleIcon","hiddenIcon"],Mo=["isVisible","setIsVisible"],Lo=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 c({},e,{modal:o,modalProps:i,overlayProps:t})}))},hide:function(){e((function(e){return c({},e,{modalProps:c({},e.modalProps,{isVisible:!1})})}))}}})),Fo=function(){Lo.getState().hide()},Vo={sharp:{borderRadius:0},rounded:{borderRadius:4}},Go={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},Do={xs:12,sm:16,md:20,lg:24,xl:28},Bo=["children","blur","isOpen","isClosePrevented","onClose","position"],Ao=["children","shadow","isFullScreen","shape"],Po=["children","buttonColor","iconSize","buttonPosition"],Wo=["children"],No=["children"],Ko=function(e){var o=e.children,t=e.blur,n=e.isOpen,a=void 0!==n&&n,r=e.isClosePrevented,d=void 0!==r&&r,l=e.onClose,c=void 0===l?function(){}:l,m=e.position,h=void 0===m?"center":m,g=s(e,Bo),p=function(){d||c()};return i.createElement(f,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:p,visibility:a?"visible":"hidden"},i.createElement(u,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:p},Go[h],g),o))},Uo=function(e){return i.createElement(i.Fragment,null,e.children)};Uo.Overlay=Ko,Uo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,r=e.shape,d=void 0===r?"rounded":r,l=s(e,Ao),c=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(ye,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||c,Vo[d],l),o)},Uo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,r=void 0===a?"md":a,d=e.buttonPosition,l=void 0===d?"right":d,c=s(e,Po),u=i.createElement(ie,{onClick:c.onClose?c.onClose:Fo,colorScheme:"transparent",icon:i.createElement(w,{size:Do[r],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(g,Object.assign({justifyContent:"none"===l?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},c),"left"===l&&u,o,"right"===l&&u)},Uo.Body=function(e){var o=e.children,t=s(e,Wo);return i.createElement(u,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},t),o)},Uo.Footer=function(e){var o=e.children,t=s(e,No);return i.createElement(g,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},Uo.Layout=function(e){var t=e.modals,n=Lo((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(Ko,Object.assign({isOpen:n.modalProps.isVisible,onClose:Fo,blur:10},n.overlayProps),void 0!==a&&i.createElement(a,Object.assign({},n.modalProps)))):(console.error(n.modal+" modal doesn't exist"),null)};var Zo=["src","color"],Jo=["path"],Yo=function(e){var o=e.tabs,t=e.styles,n=e.isActive,a=e.setIsActive,r=e.tabsState,d=e.setTabsState;return i.createElement(g,Object.assign({width:"100w",height:"100%"},null==t?void 0:t.container),i.createElement(g,Object.assign({marginBottom:20},null==t?void 0:t.headerTabs),o.map((function(e,r){return i.createElement(ie,Object.assign({key:e.title,onClick:function(){!function(e){var i=[].concat(o),t=i.splice(e,1);i.unshift(t[0]),d(i),a(i[0])}(r)},variant:n.value===e.value?"filled":"ghost",shape:"pillShaped",cursor:"pointer",isAuto:!0},null==t?void 0:t.tab,n.value===e.value?null==t?void 0:t.activeTab:{}),i.createElement(je,Object.assign({},null==t?void 0:t.title,n.value===e.value?null==t?void 0:t.activeText:{}),e.title))}))),i.createElement(u,Object.assign({width:"100%",height:"100%"},null==t?void 0:t.content),r.map((function(e,o){return function(e){return e.value===r[0].value}(e)&&i.createElement(u,{key:o},e.content)}))))},qo=function(e){var t,n,a,r=e.tabs,d=e.styles,l={isActive:(n=o.useState((t=r)[0]))[0],setIsActive:n[1],tabsState:(a=o.useState(t))[0],setTabsState:a[1]};return i.createElement(Yo,{tabs:r,styles:d,isActive:l.isActive,tabsState:l.tabsState,setTabsState:l.setTabsState,setIsActive:l.setIsActive})},Qo=i.memo(qo),Xo={default:{container:{backgroundColor:"white",border:"color.blackAlpha.800"},content:{color:"color.blackAlpha.800"}},info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},content:{color:"#60a5fa"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},content:{color:"#22c55e"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},content:{color:"#ef4444"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},content:{color:"#f97316"}}},$o=function(e){var o,t=e.icon,n=e.title,a=e.styles,r=e.description,d=e.variant,l=void 0===d?"default":d;return i.createElement(g,Object.assign({gap:15,borderRadius:10,borderWidth:1,borderStyle:"solid",padding:16,wrap:"nowrap",borderColor:Xo[l].container.border},null==a?void 0:a.container),i.createElement(u,{alignSelf:"center"},t||i.createElement(L,{size:24,color:null!=(o=null==a?void 0:a.icon.color)?o:Xo[l].content.color})),i.createElement(ye,{gap:10},i.createElement(je,Object.assign({fontSize:"16px",color:Xo[l].content.color},null==a?void 0:a.title),n),i.createElement(je,Object.assign({fontSize:"14px",color:Xo[l].content.color},null==a?void 0:a.description),r)))},ei=["ratio","children"],oi=function(e){var o=e.ratio,t=void 0===o?16/9:o,n=e.children,a=s(e,ei);return i.createElement(f,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},a),i.createElement(u,{position:"absolute",top:0,right:0,bottom:0,left:0},n))},ii=["ratio","children"],ti={xs:24,sm:32,md:48,lg:64,xl:80},ni=function(e){var o=e.src,n=e.size,a=void 0===n?"md":n,r=e.fallback,d=void 0===r?"IM":r,l=e.styles,s=e.imageError,u=e.setImageError,m=ti[a],h=c({objectFit:"cover"},(null==l?void 0:l.image)||{});return i.createElement(f,Object.assign({role:"avatar",width:m,height:m,borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:s?"black":"transparent",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.25)"},null==l?void 0:l.container),s?i.createElement(je,Object.assign({size:a},null==l?void 0:l.fallback),d):i.createElement(t.Image,{alt:"IM",src:o,style:h,width:m,height:m,onError:function(){return u(!0)}}))},ai={xs:{minWidth:"20px",height:"20px",padding:"0 6px"},sm:{minWidth:"24px",height:"24px",padding:"0 8px"},md:{minWidth:"28px",height:"28px",padding:"0 10px"},lg:{minWidth:"32px",height:"32px",padding:"0 12px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px"}},ri={sharp:0,rounded:4,pillShaped:24},di={"top-right":{top:0,right:0,position:"absolute"},"top-left":{top:0,left:0,position:"absolute"},"bottom-right":{bottom:0,right:0,position:"absolute"},"bottom-left":{bottom:0,left:0,position:"absolute"}},li=function(e){var o=e.content,t=e.position,n=e.shape,a=e.colorScheme,r=void 0===a?"theme.primary":a,d=e.variant,l=e.size,s=void 0===l?"md":l,u=e.styles,m=c({width:"fit-content",borderRadius:ri[void 0===n?"pillShaped":n]},ai[s],{filled:{backgroundColor:r,color:"color.white",borderWidth:1,borderStyle:"solid",borderColor:"transparent"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:r,color:r},link:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"transparent",color:r,textDecoration:"underline"},ghost:{backgroundColor:"transparent",color:r,borderWidth:1,borderStyle:"solid",borderColor:"transparent"}}[void 0===d?"filled":d],t?di[t]:{},null==u?void 0:u.container);return i.createElement(f,Object.assign({role:"badge"},m),i.createElement(je,Object.assign({role:"badgeText",size:s},null==u?void 0:u.text),o))},ci={sharp:0,rounded:4,pillShaped:24},si=["children","shape","colorScheme","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle"],ui=function(e){var o=e.children,t=e.shape,n=void 0===t?"rounded":t,a=e.colorScheme,r=void 0===a?"color.trueGray.400":a,d=e.variant,l=void 0===d?"ghost":d,c=e.isHovered,u=e.setIsHovered,m=e.isDisabled,h=e.isToggle,g=e.setIsToggled,p=e.onToggle,v=s(e,si),b=m?"theme.disabled":r,j=!(!h&&!c);return i.createElement(f,Object.assign({role:"Toggle",padding:"pillShaped"===n?"10px 12px":"8px",width:"fit-content",color:j?"color.white":b,backgroundColor:j?b:"transparent",onMouseEnter:function(){return u(!0)},onMouseLeave:function(){return u(!1)},cursor:m?"not-allowed":"pointer",borderRadius:ci[n],onClick:function(){m||g((function(e){var o=!e;return p&&p(o),o}))}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:r},link:{borderWidth:1,borderStyle:"solid",borderColor:j?b:"transparent",textDecoration:"underline"},ghost:{}}[l],v),o)},mi=["children","shape","colorScheme","variant","isDisabled","isToggled","onToggle"],hi=function(e){var t=e.children,n=e.shape,a=e.colorScheme,r=e.variant,d=e.isDisabled,l=e.isToggled,c=void 0!==l&&l,u=e.onToggle,m=s(e,mi),h=function(e){var i=o.useState(!1),t=i[0],n=i[1],a=o.useState(e);return{isHovered:t,setIsHovered:n,isToggle:a[0],setIsToggled:a[1]}}(c),g=h.isHovered,p=h.setIsHovered,v=h.isToggle,f=h.setIsToggled;return o.useEffect((function(){f(c)}),[c]),i.createElement(ui,Object.assign({shape:n,colorScheme:a,variant:r,isDisabled:d,isHovered:g,setIsHovered:p,isToggle:v,setIsToggled:f,onToggle:u},m),t)},gi=function(e){var t=e.items,n=e.onToggleChange,a=e.activeToggles,r=e.setActiveToggles,d=e.shape,c=void 0===d?"rounded":d,s=e.variant,u=void 0===s?"ghost":s,m=e.colorScheme,h=void 0===m?"color.trueGray.400":m,g=o.useCallback((function(e,o){r((function(i){var t;return t=o?i.includes(e)?i:[].concat(i,[e]):i.filter((function(o){return o!==e})),null==n||n(t),t}))}),[n,r]);return i.createElement(l.Horizontal,{role:"ToggleGroup",display:"flex",gap:5},t.map((function(e){return i.createElement(hi,{role:"toggle-"+e.id,key:e.id,colorScheme:h,shape:c,variant:u,isToggled:a.includes(e.id)||e.isActive,onToggle:function(o){return g(e.id,o)},isDisabled:e.isDisabled,isIntern:!0},e.value)})))};exports.Alert=function(e){return i.createElement($o,{icon:e.icon,title:e.title,styles:e.styles,description:e.description,variant:e.variant})},exports.AspectRatio=function(e){var o=e.ratio,t=e.children,n=s(e,ii);return i.createElement(oi,Object.assign({ratio:o},n),t)},exports.Avatar=function(e){var t,n=e.src,a=e.size,r=e.styles,d=e.fallback,l={imageError:(t=o.useState(!1))[0],setImageError:t[1]};return i.createElement(ni,{src:n,size:a,styles:r,fallback:d,imageError:l.imageError,setImageError:l.setImageError})},exports.Badge=function(e){return i.createElement(li,{content:e.content,shape:e.shape,colorScheme:e.colorScheme,position:e.position,variant:e.variant,size:e.size,styles:e.styles})},exports.Bottom=function(e){return i.createElement(t.View,Object.assign({marginTop:"auto"},e))},exports.Button=ie,exports.Center=f,exports.Checkbox=function(e){var o=te(e);return i.createElement(ue,Object.assign({},o,e))},exports.CountryPicker=function(e){var o=he(e);return i.createElement(Ze,Object.assign({},o,e))},exports.DatePicker=function(e){var o=Je();return i.createElement(Qe,Object.assign({},o,e))},exports.FileImage=function(e){var o=e.path,n=s(e,Jo);return i.createElement(t.Image,Object.assign({src:o},n))},exports.FileSVG=function(e){var o=e.src,n=e.color,a=s(e,Zo),r=t.useTheme().getColor,d=n?{fill:r(n),stroke:r(n)}:{};return i.createElement(f,Object.assign({},a),i.createElement(t.Image,Object.assign({},d,{content:'url("'+o+'")',width:"100%",height:"100%"})))},exports.FormikCheckbox=function(e){var o=Io(e),t=o.value,n=s(o,To);n.isChecked=t;var a=te(e);return i.createElement(ue,Object.assign({},a,n))},exports.FormikCountryPicker=function(e){var o=Io(e),t=he(e);return i.createElement(Ze,Object.assign({},t,o))},exports.FormikDatePicker=function(e){var o=Io(e),t=Je();return i.createElement(Qe,Object.assign({},t,o))},exports.FormikForm=function(e){var n=e.children,a=e.autoFocus,d=void 0!==a&&a,l=e.initFocus,c=r.useFormikContext(),s=o.useRef({}),u=o.useRef([]),m=function(e){if(d){var o,i=u.current.indexOf(e)+1;i<u.current.length?null==(o=s.current[u.current[i]])||o.focus():c.onSubmit&&c.onSubmit(c.values)}},h={active:d,focusNextInput:m,setInputRef:function(e,o){s.current[e]=o,u.current.includes(e)||u.current.push(e)},handleSubmitEditing:m,getReturnKeyType:function(e){return u.current.indexOf(e)===u.current.length-1?"done":"next"}};return o.useEffect((function(){var e;if(d)if(l&&s.current[l])null==(e=s.current[l])||e.focus();else if(u.current[0]){var o;null==(o=s.current[u.current[0]])||o.focus()}}),[d,l]),i.createElement(ko.Provider,{value:h},i.createElement(t.Form,null,n))},exports.FormikPassword=function(e){var o=e.visibleIcon,n=void 0===o?i.createElement(R,{size:14}):o,a=e.hiddenIcon,r=void 0===a?i.createElement(z,{size:14}):a,d=s(e,Ro),l=Io(d),c=$e(l),u=c.isVisible,m=c.setIsVisible,h=s(c,Mo);return i.createElement(io,Object.assign({},h,{type:u?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){d.isDisabled||m(!u)}},u?n:r)}))},exports.FormikSelect=function(e){var o=Io(e);o.selected=o.value;var t=ao(e);return i.createElement(fo,Object.assign({},t,o))},exports.FormikSwitch=function(e){var o=Io(e),t=bo(e);return i.createElement(yo,Object.assign({},t,o))},exports.FormikTextArea=function(e){var o=Io(e),t=wo(e);return i.createElement(zo,Object.assign({},t,o))},exports.FormikTextField=function(e){var o=Io(e),t=s(Xe(e),Ho);return i.createElement(io,Object.assign({},t,o))},exports.Horizontal=g,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=D,exports.Loader=$,exports.Modal=Uo,exports.Password=function(e){var o=e.visibleIcon,n=void 0===o?i.createElement(R,{size:14}):o,a=e.hiddenIcon,r=void 0===a?i.createElement(z,{size:14}):a,d=s(e,to),l=$e(d),c=l.isVisible,u=l.setIsVisible,m=s(l,no);return i.createElement(io,Object.assign({},m,{type:c?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){d.isDisabled||u(!c)}},c?n:r)}))},exports.Right=function(e){return i.createElement(t.View,Object.assign({marginLeft:"auto"},e))},exports.Select=function(e){var o=ao(e);return i.createElement(fo,Object.assign({},o,e))},exports.Switch=function(e){var o=bo(e);return i.createElement(yo,Object.assign({},o,e))},exports.Tabs=Qo,exports.Text=je,exports.TextArea=function(e){var o=wo(e);return i.createElement(zo,Object.assign({},o,e))},exports.TextField=function(e){var o=Xe(e);return i.createElement(io,Object.assign({},o,e))},exports.Toggle=hi,exports.ToggleGroup=function(e){var t,n=e.items,a=e.shape,r=e.colorScheme,d=e.variant,l=e.onToggleChange,c={activeToggles:(t=o.useState([]))[0],setActiveToggles:t[1]};return i.createElement(gi,{items:n,shape:a,colorScheme:r,variant:d,activeToggles:c.activeToggles,setActiveToggles:c.setActiveToggles,onToggleChange:l})},exports.Top=function(e){return i.createElement(t.View,Object.assign({marginBottom:"auto"},e))},exports.Vertical=ye,exports.View=u,exports.hideModal=Fo,exports.showModal=function(e,o,i){void 0===o&&(o={}),void 0===i&&(i={}),Lo.getState().show(e,o,i)},exports.useModalStore=Lo;
|
|
2
2
|
//# sourceMappingURL=web.cjs.production.min.js.map
|