@app-studio/web 0.8.16 → 0.8.17
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/index.d.ts +1 -0
- package/dist/web.cjs.development.js +284 -251
- 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 +284 -252
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +284 -251
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -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}),require("core-js/modules/es.symbol.description.js");var t=require("react"),o=e(t);require("core-js/modules/es.object.assign.js");var a=require("app-studio");require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.parse-float.js"),require("core-js/modules/web.dom-collections.iterator.js");var i=require("react-router-dom");require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.string.starts-with.js");var r=e(require("date-fns/format")),n=require("formik"),l=require("zustand"),d=a.View;function s(e,t){if(null==e)return{};var o={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;o[a]=e[a]}return o}var c={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}},m=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],g=e=>{var{children:t,isSub:a,isSup:i}=e;return o.createElement(o.Fragment,null,"string"==typeof t?o.createElement(o.Fragment,null,a&&o.createElement("sup",null,t),i&&o.createElement("sup",null,t),!a&&!i&&o.createElement(o.Fragment,null,t)):t)},u=e=>{var{text:a,maxLines:i=1}=e,r=t.useRef(null),[n,l]=t.useState(a.length);t.useEffect(()=>{var e=r.current;e&&(()=>{for(var t,o=getComputedStyle(e).lineHeight,r=("normal"!==o?parseFloat(o):20)*i,n=0,d=a.length;n<=d;)t=Math.floor((n+d)/2),e.innerText=a.substring(0,t)+"...",e.offsetHeight>r?d=t-1:n=t+1;l(d)})()},[a,i]);var d=a.length>n?a.substring(0,n)+"...":a;return o.createElement("div",{ref:r},d)},h=e=>{var{children:t,heading:i,maxLines:r,isItalic:n=!1,isUnderlined:l=!1,isSub:d=!1,isSup:h=!1,isStriked:p=!1,isTruncated:b=!1,weight:v="normal",size:x="md"}=e,j=s(e,m);return o.createElement(a.Element,Object.assign({role:"text",fontSize:a.Typography.fontSizes[x],lineHeight:a.Typography.lineHeights[x],fontStyle:n?"italic":"normal",fontWeight:a.Typography.fontWeights[v],textDecoration:p?"line-through":l?"underline":"none"},d||h?{display:"inline"}:{},i?c[i]:{},j),b&&r&&"string"==typeof t?o.createElement(u,{text:t,maxLines:r}):o.createElement(g,Object.assign({isSub:d,isSup:h},j),t))},p=e=>o.createElement(h,Object.assign({},e)),b=["justifyContent","isReversed"],v=e=>{var{justifyContent:t="flex-start",isReversed:i=!1}=e,r=s(e,b);return o.createElement(a.View,Object.assign({display:"flex",justifyContent:t,flexDirection:i?"column-reverse":"column"},r))},x=e=>o.createElement(v,Object.assign({},e)),j=e=>o.createElement(a.View,Object.assign({display:"flex",flexDirection:e.isReversed?"row-reverse":"row"},e)),E=e=>o.createElement(a.View,Object.assign({display:"flex",justifyContent:"center",alignItems:"center"},e)),C=e=>o.createElement(E,Object.assign({},e)),f=["size","color"],w=e=>{var{size:t=64,color:a="white"}=e,i=s(e,f);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("title",null,"arrow_down [#338]")," ",o.createElement("desc",null,"Created with Sketch."),o.createElement("defs",null," "),o.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-220.000000, -6684.000000)",fill:"#000000"},o.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},o.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]"})))))))},S=["size","color"],y=e=>{var{size:t=64,color:a="white"}=e,i=s(e,S);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("title",null,"arrow_up [#337]")," ",o.createElement("desc",null,"Created with Sketch."),o.createElement("defs",null," "),o.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-260.000000, -6684.000000)",fill:"#000000"},o.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},o.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]"})))))))},_=["size","color"],O=e=>{var{size:t=64,color:a="white"}=e,i=s(e,_);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"0.048"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M17.0001 9L10 16L7 13",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},z=["size","color"],k=e=>{var{size:t=64,color:a="white"}=e,i=s(e,z);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.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"}))))},I=["size","color"],T=e=>{var{size:t=64,color:a="#2F4858"}=e,i=s(e,I);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.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}))))},H=["size","color"],R=e=>{var{size:t=64,color:a="white"}=e,i=s(e,H);return o.createElement(C,{width:t+"px",height:t+"px"},o.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},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"}),o.createElement("path",{d:"M40 20h-2v-8h-8v-2h10z"}),o.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"}))))},M=["size","color"],L=e=>{var{size:t=64,color:a="white"}=e,i=s(e,M);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M7 12L17 12",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},V=["size","color"],F=e=>{var{size:t=64,color:a="#2F4858"}=e,i=s(e,V);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.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}))))},G=["size","color"],B=e=>{var{size:t=64,color:a="white"}=e,i=s(e,G);return o.createElement(C,{width:t+"px",height:t+"px"},o.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},i),o.createElement("g",{id:"SVGRepo_bgCarrier"}),o.createElement("g",{id:"SVGRepo_tracerCarrier"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("g",null,o.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"})))))))},D=["size","color"],P=e=>{var{size:t=64,color:a="white"}=e,i=s(e,D);return o.createElement(C,{width:t+"px",height:t+"px"},o.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 484.8 484.8",fill:a},i),o.createElement("g",{id:"SVGRepo_bgCarrier"}),o.createElement("g",{id:"SVGRepo_tracerCarrier"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("path",{d:"M242.4,0C108.6,0,0,108.6,0,242.4S108.6,484.8,242.4,484.8S484.8,376.2,484.8,242.4S376.2,0,242.4,0z M198.4,358.8l-120-120L84,228l114.4,114.4l188-188l28.8,28.8L198.4,358.8z",fill:a}))))))},A=["size","color"],W=e=>{var{size:t=64,color:a="white"}=e,i=s(e,A);return o.createElement(C,{width:t+"px",height:t+"px"},o.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},i),o.createElement("g",{id:"SVGRepo_bgCarrier"}),o.createElement("g",{id:"SVGRepo_tracerCarrier"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("g",null,o.createElement("path",{d:"M96.073,3.515C43.19,3.515,0,46.705,0,99.587s43.19,96.072,96.073,96.072s96.073-43.19,96.073-96.072 S148.955,3.515,96.073,3.515z M101.468,154.072h-15.447V120.57h15.447V154.072z M101.468,111.875h-15.447V49.54h15.447V111.875z"})))))))},N=["size","color"],K=e=>{var{size:t=64,color:a="white"}=e,i=s(e,N);return o.createElement(C,{width:t+"px",height:t+"px"},o.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 510 510",fill:a},i),o.createElement("g",{id:"SVGRepo_bgCarrier"}),o.createElement("g",{id:"SVGRepo_tracerCarrier"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("path",{d:"M255,0C114.615,0,0,114.615,0,255s114.615,255,255,255s255-114.615,255-255S395.385,0,255,0z M255,459c-114.75,0-207-92.25-207-207c0-114.75,92.25-207,207-207c114.75,0,207,92.25,207,207C462,366.75,369.75,459,255,459z",fill:a}),o.createElement("path",{d:"M255,140.25c11.05,0,20-8.95,20-20s-8.95-20-20-20s-20,8.95-20,20S243.95,140.25,255,140.25z",fill:a}),o.createElement("path",{d:"M265,357c0,11.05-8.95,20-20,20s-20-8.95-20-20v-175c0-11.05,8.95-20,20-20s20,8.95,20,20V357z",fill:a}))))))},U={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"}}},Z=e=>{var t,{icon:a,title:i,styles:r,description:n,variant:l="default"}=e;return o.createElement(j,Object.assign({gap:15,borderRadius:10,borderWidth:1,borderStyle:"solid",padding:16,flexWrap:"nowrap"},null==r?void 0:r.container),o.createElement(d,{alignSelf:"center"},a||o.createElement(B,{size:24,color:null!=(t=null==r?void 0:r.icon.color)?t:U[l].content.color})),o.createElement(x,{gap:10},o.createElement(p,Object.assign({fontSize:"16px",color:U[l].content.color},null==r?void 0:r.title),i),o.createElement(p,Object.assign({fontSize:"14px",color:U[l].content.color},null==r?void 0:r.description),n)))},q=["ratio","children"],Y=e=>{var{ratio:t=16/9,children:a}=e,i=s(e,q);return o.createElement(C,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},i),o.createElement(d,{position:"absolute",top:0,right:0,bottom:0,left:0},a))},J=["ratio","children"],Q={xs:24,sm:32,md:48,lg:64,xl:80},X=e=>{var{src:t,size:i="md",fallback:r="IM",styles:n,imageError:l,setImageError:d}=e,s=Q[i],c=Object.assign({objectFit:"cover"},(null==n?void 0:n.image)||{});return o.createElement(C,Object.assign({role:"avatar",width:s,height:s,borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:l?"black":"transparent",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.25)"},null==n?void 0:n.container),l?o.createElement(p,Object.assign({size:i},null==n?void 0:n.fallback),r):o.createElement(a.Image,{alt:"IM",src:t,style:c,width:s,height:s,onError:()=>d(!0)}))},$={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"}},ee={sharp:0,rounded:4,pillShaped:24},te={"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"}},oe=e=>{var{content:t,position:a,shape:i="pillShaped",colorScheme:r="theme.primary",variant:n="filled",size:l="md",styles:d}=e,s=Object.assign({width:"fit-content",borderRadius:ee[i]},$[l],{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"}}[n],a?te[a]:{},null==d?void 0:d.container);return o.createElement(C,Object.assign({role:"badge"},s),o.createElement(p,Object.assign({role:"badgeText",size:l},null==d?void 0:d.text),t))},ae={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},ie=["children","href","iconSize","underline","isHovered","isExternal","styles","setIsHovered"],re=e=>{var{children:t,href:r="/",iconSize:n="sm",underline:l="default",isHovered:d=!1,isExternal:c=!1,styles:m={icon:{},text:{}},setIsHovered:g=(()=>{})}=e,u=s(e,ie),h=()=>{"hover"===l&&g(!0)};return o.createElement(i.Link,{to:r,target:c?"_blank":"_self"},o.createElement(a.Element,Object.assign({onMouseEnter:h,onMouseLeave:h,textDecoration:d||"underline"===l?"underline !important":"none"},m.text,u),o.createElement(j,{gap:3,alignItems:"center",flexWrap:"nowrap"},t,c&&o.createElement(R,{size:ae[n],style:m.icon}))))},ne=e=>{var a=(()=>{var[e,o]=t.useState(!1);return{isHovered:e,setIsHovered:o}})();return o.createElement(re,Object.assign({},a,e))},le={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}},de={sharp:0,rounded:4,pillShaped:24},se={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}},ce={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},me={fast:50,normal:100,slow:300},ge=["size","speed","color"],ue=["size","speed","color"],he=["size","speed","color"],pe=["size","children","textColor","loaderColor","type","speed","textPosition"],be=e=>{var{size:i="md",speed:r="normal",color:n="theme.loading"}=e,l=s(e,ge),d=a.useTheme().getColor(n),c="number"==typeof i?i:ce[i],[m,g]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{g(e=>e+45)},me[r]);return()=>clearInterval(e)},[r]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:c+"px",height:c+"px",viewBox:"0 0 24 24",fill:"none",stroke:d,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+m+"deg)"}},l),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},ve=e=>{var{size:i="md",speed:r="normal",color:n="theme.loading"}=e,l=s(e,ue),d=a.useTheme().getColor(n),c="number"==typeof i?i:ce[i],[m,g]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{g(e=>e+45)},me[r]);return()=>clearInterval(e)},[r]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:c+"px",height:c+"px",style:{transform:"rotate("+m+"deg)"}},l),o.createElement("circle",{cx:"10",cy:"25",r:"4",fill:d}),o.createElement("circle",{cx:"25",cy:"25",r:"4",fill:d}),o.createElement("circle",{cx:"40",cy:"25",r:"4",fill:d}))},xe=e=>{var{size:i="md",speed:r="normal",color:n="theme.loading"}=e,l=s(e,he),d=a.useTheme().getColor(n),c="number"==typeof i?i:ce[i],[m,g]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{g(e=>e+45)},me[r]);return()=>clearInterval(e)},[r]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:c+"px",height:c+"px",style:{transform:"rotate("+m+"deg)"}},l),o.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:d,strokeWidth:"5",strokeDasharray:"1,10"}))},je=e=>{var{size:t,children:a,textColor:i,loaderColor:r,type:n="default",speed:l="normal",textPosition:c="right"}=e,m=s(e,pe),g={size:t,speed:l,color:r},u={default:o.createElement(be,Object.assign({},g)),dotted:o.createElement(ve,Object.assign({},g)),quarter:o.createElement(xe,Object.assign({},g))};return o.createElement(C,Object.assign({gap:10,flexDirection:"top"===c||"bottom"===c?"column":"row"},m),("left"===c||"top"===c)&&a&&o.createElement(d,{color:i},a),u[n],("right"===c||"bottom"===c)&&a&&o.createElement(d,{color:i},a))},Ee=e=>o.createElement(je,Object.assign({},e)),Ce=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick","loaderProps","loaderPosition","effect","isHovered","setIsHovered"],fe=require("contrast"),we=e=>{var t,{icon:i,shadow:r,children:n,ariaLabel:l,externalHref:d,isAuto:c=!1,isFilled:m=!1,isIconRounded:g=!1,isLoading:u=!1,isDisabled:h=!1,size:p="md",variant:b="filled",iconPosition:v="left",colorScheme:x="theme.primary",shape:E="rounded",onClick:C=(()=>{}),loaderProps:f={},loaderPosition:w="left",effect:S="default",isHovered:y,setIsHovered:_=(()=>{})}=e,O=s(e,Ce),{getColor:z}=a.useTheme(),k=()=>_(!y),I=!(h||u),T={disabled:!I},H=I?x:"theme.disabled",R=y&&"hover"===S,M=y&&"reverse"===S,L="light"==fe(z(H)),V=le[p],F={filled:{backgroundColor:M?"transparent":H,color:M?L?"white":H:L?H:"white",borderWidth:1,borderStyle:"solid",borderColor:M?H:"transparent"},outline:{backgroundColor:M?H:"transparent",borderWidth:1,borderStyle:"solid",borderColor:M?H:x,color:M?"white":H},link:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:M?H:"transparent",color:H,textDecoration:M?"none":"underline"},ghost:{backgroundColor:M?H:"transparent",color:M?"white":H,borderWidth:1,borderStyle:"solid",borderColor:M?H:"transparent"}}[b],G={width:c?"fit-content":m?"100%":V.width},B=g?se[p]:le[p],D=o.createElement(j,{gap:10},u&&"left"===w&&o.createElement(Ee,Object.assign({},f)),i&&"left"===v&&!u&&i,n,i&&"right"===v&&!u&&i,u&&"right"===w&&o.createElement(Ee,Object.assign({},f)));return o.createElement(a.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center","aria-label":l,backgroundColor:H,borderRadius:de[E],onClick:null!=(t=O.onClick)?t:C,onMouseEnter:k,onMouseLeave:k,cursor:I?"pointer":"default",filter:R?"brightness(0.85)":"brightness(1)"},R&&!O.isDisabled?{transition:"transform 0.3s ease",transform:"translateY(-5px)"}:{},T,V,F,G,O.padding||O.paddingHorizontal||O.paddingVertical||O.paddingLeft||O.paddingRight||O.paddingTop||O.paddingBottom?{}:B,r,O),"link"===b&&d?o.createElement(ne,{href:d,textDecorationColor:x,colorScheme:x,isExternal:!0},D):D)},Se=e=>{var{isHovered:t,setIsHovered:a}=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),i=()=>a(!t);return o.createElement(we,Object.assign({isHovered:t,setIsHovered:a,onMouseEnter:i,onMouseLeave:i},e))},ye=["src","color"],_e=["path"],Oe=e=>{var{placeholder:t,isMulti:a,options:i}=e,r=t?a?[]:"":i[0].value,[n,l]=o.useState(!0),[d,s]=o.useState(!1),[c,m]=o.useState(!1),[g,u]=o.useState(r),[h,p]=o.useState(0);return{value:g,setValue:u,hide:n,setHide:l,isHovered:d,setIsHovered:s,isFocused:c,setIsFocused:m,highlightedIndex:h,setHighlightedIndex:p}},ze=["children","styles"],ke=e=>{var{children:t,styles:a={helperText:{}}}=e,i=s(e,ze);return o.createElement(p,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},a.helperText,i),t)},Ie=["children","helperText","error","styles"],Te=e=>{var{children:t,helperText:a,error:i=!1,styles:r}=e,n=s(e,Ie);return o.createElement(x,Object.assign({gap:5,position:"relative"},n),t,!i&&a&&o.createElement(ke,Object.assign({},r),a),i&&o.createElement(p,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},i))},He={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},Re={xs:6,sm:8,md:10,lg:12,xl:14},Me={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},Le={paddingTop:14,paddingBottom:0,paddingLeft:16,paddingRight:36},Ve={paddingTop:10,paddingBottom:4,paddingLeft:16,paddingRight:36},Fe=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],Ge=e=>{var{shadow:t,children:i,size:r="md",shape:n="default",variant:l="default",error:d=!1,isWithLabel:c=!1,isFocused:m=!1,isHovered:g=!1,isDisabled:u=!1,isReadOnly:h=!1,colorScheme:p="theme.primary",styles:b={pickerBox:{}}}=e,v=s(e,Fe);return o.createElement(j,Object.assign({gap:10,width:"100%",display:"flex",flexWrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:d?"error":!g&&!m||u?"midgray":p,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",marginBottom:5,fontSize:a.Typography.fontSizes[r],cursor:u?"not-allowed":h?"auto":"pointer"},c?Le:Ve,t,He[n],Me[l],b.box,v),i)},Be=["children"],De=e=>{var{children:t}=e,a=s(e,Be);return o.createElement(C,Object.assign({gap:10,right:16,zIndex:500,flexWrap:"nowrap",position:"absolute"},a),t)},Pe={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"],We=e=>{var{children:t,heading:i,isItalic:r=!1,isUnderlined:n=!1,isStriked:l=!1,weight:d="normal",size:c="sm"}=e,m=s(e,Ae);return o.createElement(a.Element,Object.assign({as:"label",width:"100%",fontSize:c,fontStyle:r?"italic":"normal",fontWeight:a.Typography.fontWeights[d],textDecoration:l?"line-through":n?"underline":"none"},i?Pe[i]:{},m),t)},Ne=e=>o.createElement(We,Object.assign({},e)),Ke=["children","size","error","color","styles","helperText"],Ue=e=>{var{children:t,size:a="md",error:i=!1,color:r="theme.primary",styles:n={label:{}}}=e,l=s(e,Ke);return o.createElement(Ne,Object.assign({top:6,zIndex:1e3,lineHeight:Re[a],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:i?"error":r,fontSize:Re[a]},n.label,l),t)},Ze=["children"],qe=e=>{var{children:t}=e,a=s(e,Ze);return o.createElement(x,Object.assign({width:"100%"},a),t)},Ye={xs:8,sm:10,md:12,lg:14,xl:16},Je=["isHovered","setIsHovered","option","size","callback","style"],Qe=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],Xe=["option","size","removeOption"],$e=["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","setHighlightedIndex","highlightedIndex"],et=e=>{var{isHovered:t,setIsHovered:i,option:r,size:n="md",callback:l=(()=>{}),style:d}=e,c=s(e,Je),m=()=>i(!t);return o.createElement(a.Element,Object.assign({as:"li",margin:0,paddingVertical:10,paddingHorizontal:12,listStyleType:"none",onMouseEnter:m,onMouseLeave:m,onClick:()=>(e=>l(e))(r.value),backgroundColor:t?"trueGray.100":"transparent"},c),o.createElement(p,Object.assign({fontSize:a.Typography.fontSizes[n]},d),r.label))},tt=e=>{var t,{size:i="md",styles:r={field:{},text:{}},value:n,isDisabled:l,placeholder:d,removeOption:s=(()=>{}),options:c}=e,m=Object.assign({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:a.Typography.fontSizes[i],backgroundColor:"transparent",color:l?"color.trueGray.600":"color.blueGray.700",cursor:l?"not-allowed":"auto"},r.field,r.text),g=c.find(e=>e.value===n);return o.createElement(p,Object.assign({},m),(""===n||n&&0===n.length)&&d?d:o.createElement(o.Fragment,null,"string"==typeof n?null!=(t=null==g?void 0:g.label)?t:n:n&&n.length>0&&o.createElement(j,{gap:6},n.map(e=>o.createElement(it,{key:e,option:e,removeOption:s})))))},ot=e=>{var{id:t,name:i,value:r,onChange:n,isMulti:l=!1,isDisabled:d=!1,isReadOnly:c=!1,options:m=[]}=e,g=s(e,Qe);return o.createElement(a.Element,Object.assign({id:t,name:i,as:"select",opacity:0,width:0,height:0,position:"absolute",value:r,disabled:d,readOnly:c,onChange:e=>{n&&n(e)},multiple:l},g),m.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label)))},at=e=>{var{size:t,styles:i={dropDown:{}},options:r,callback:n=(()=>{}),highlightedIndex:l,setHighlightedIndex:d}=e,s=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),c=e=>n(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 o.createElement(a.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e5,overflowY:"scroll",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",maxHeight:"200px",style:{scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}},m,i.dropDown),r.map((e,a)=>o.createElement(et,Object.assign({key:e.value,size:t,style:i.text,option:e,callback:c,backgroundColor:a===l?"color.gray.100":"transparent",onMouseEnter:()=>d(a)},s))))},it=e=>{var{option:t,size:i="md",removeOption:r=(()=>{})}=e,n=s(e,Xe);return o.createElement(j,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:a.Typography.fontSizes[i],backgroundColor:"color.trueGray.300",onClick:e=>e.stopPropagation()},n),o.createElement(p,{size:i},t),o.createElement(k,{role:"close-button",color:"inherit",size:Ye[i],onClick:()=>r(t)}))},rt=e=>{var{id:a,name:i,label:r,value:n,placeholder:l,helperText:d,hide:c=!1,error:m=!1,isMulti:g=!1,isFocused:u=!1,isHovered:h=!1,isDisabled:p=!1,isReadOnly:b=!1,options:v=[],shadow:x={},size:j="md",colorScheme:E="theme.primary",shape:C="default",variant:f="default",styles:S={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:_=(()=>{}),setHide:O=(()=>{}),setValue:z=(()=>{}),setIsHovered:k=(()=>{}),setIsFocused:I=(()=>{}),setHighlightedIndex:T,highlightedIndex:H}=e,R=s(e,$e),M=!(!u||!r),L=()=>k(!h),V=t.useCallback(e=>{O(!c),g&&Array.isArray(n)?!n.includes(e)&&z([...n,e]):z(e),_&&_(e)},[c,g,n]);return o.createElement(Te,{role:"SelectBox",helperText:d,error:m,styles:S,onClick:p||b?()=>{}:e=>{e&&e.stopPropagation&&e.stopPropagation(),O(!c),I(!u)}},o.createElement(Ge,{label:r,size:j,error:m,shape:C,styles:S,shadow:x,variant:f,value:n,color:E,isHovered:h,isDisabled:p,isReadOnly:b,isFocused:u,isWithLabel:M,colorScheme:E,onMouseEnter:L,onMouseLeave:L},o.createElement(qe,null,M&&o.createElement(Ue,Object.assign({htmlFor:a,color:E,error:m},S),r),o.createElement(ot,Object.assign({id:a,name:i,options:v,onChange:_,value:n,isDisabled:p,isReadOnly:b,isMulti:g,onFocus:()=>I(!0)},R)),o.createElement(tt,{options:v,size:j,styles:S,value:n,isDisabled:p,placeholder:l,removeOption:e=>{if(Array.isArray(n)&&n.includes(e)){var t=n.filter(t=>t!==e);z(0===t.length?[]:t)}}})),o.createElement(De,null,!b&&!p&&o.createElement(o.Fragment,null,o.createElement(c?w:y,{color:"inherit",size:Ye[j],style:S.icon})))),!c&&o.createElement(at,{size:j,styles:S,options:v,callback:V,highlightedIndex:H,setHighlightedIndex:T}))},nt=e=>{var{isDisabled:t,isChecked:a}=e,[i,r]=o.useState(!1),[n,l]=o.useState(t?!t:a);return{isHovered:i,setIsHovered:r,on:n,setOn:l}},lt={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}},dt={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}},st={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}},ct=["id","name","label","inActiveChild","activeChild","labelPosition","shadow","size","colorScheme","value","isHovered","isDisabled","isReadOnly","on","setOn","onChange","setValue","setIsHovered","helperText","styles"],mt=e=>o.createElement(a.Input,Object.assign({type:"checkbox"},e)),gt=e=>{var{id:t,name:a,label:i,inActiveChild:r,activeChild:n,labelPosition:l="right",shadow:c={},size:m="sm",colorScheme:g="theme.primary",value:u=!1,isHovered:h=!1,isDisabled:p=!1,isReadOnly:b=!1,on:v,setOn:x,onChange:j,setValue:E=(()=>{}),setIsHovered:C=(()=>{}),styles:f={slider:{},circle:{},label:{}}}=e,w=s(e,ct),S=()=>C(!h),y={container:Object.assign({gap:10,display:"flex",height:"fit-content",width:"fit-content",cursor:p?"not-allowed":b?"default":"pointer"},f.label)};return o.createElement(Ne,Object.assign({htmlFor:t,onMouseEnter:S,onMouseLeave:S},y.container,w),o.createElement(mt,Object.assign({id:t,name:a,opacity:0,width:0,height:0,checked:u,onChange:e=>{b||(E(!u),x(!v),j&&j(e.target.checked))},disabled:p,readOnly:b},w)),"left"===l&&i&&o.createElement(d,null,i),o.createElement(d,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,marginBottom:5,filter:h&&u?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:p?"disabled":u?g:"lightgray",justifyContent:n?"space-between":u?"flex-end":"flex-start"},c,st[m],dt[m],f.slider),n&&u&&o.createElement(d,null,n),o.createElement(d,Object.assign({borderRadius:"50%",backgroundColor:"white"},lt[m],f.circle)),r&&!u&&o.createElement(d,null,r)),"right"===l&&i&&o.createElement(d,null,i))},ut=e=>{var{label:o,placeholder:a,value:i}=e,[r,n]=t.useState(null!=o?o:a),[l,d]=t.useState(!1),[s,c]=t.useState(i||""),[m,g]=t.useState(!1);return t.useMemo(()=>{n(m&&!s?null!=a?a:"":null!=o?o:a)},[s,m,o,a]),{hint:r,setHint:n,isHovered:l,setIsHovered:d,value:s,setValue:c,isFocused:m,setIsFocused:g}},ht=["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"],pt=e=>{var{id:t,name:i,hint:r,error:n,value:l,label:d,shadow:c,helperText:m,size:g="sm",shape:u="default",variant:h="default",colorScheme:p="theme.primary",isHovered:b=!1,isFocused:v=!1,isEditable:x=!1,isReadOnly:j=!1,isDisabled:E=!1,isAutoFocus:C=!1,isMultiline:f=!1,maxRows:w=3,maxCols:S=30,onBlur:y=(()=>{}),onChange:_,onFocus:O,onChangeText:z,setHint:k=(()=>{}),setValue:I=(()=>{}),setIsFocused:T=(()=>{}),setIsHovered:H=(()=>{}),styles:R={box:{},text:{},label:{},helperText:{},field:{}}}=e,M=s(e,ht),L=!(!v||!d),V=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:a.Typography.fontSizes[g],backgroundColor:"transparent",color:E?"color.trueGray.600":"color.blueGray.700",cursor:E?"not-allowed":"auto"},R.field),F=()=>H(!b),G=e=>{"string"==typeof e?(I(e),z&&z(e),_&&_(e)):(I(e.target.value),z&&z(e.target.value),_&&_(e.target.value))};return o.createElement(Te,{helperText:m,error:n,styles:R},o.createElement(Ge,{label:d,size:g,error:n,shape:u,styles:R,shadow:c,variant:h,value:l,color:p,isHovered:b,isDisabled:E,isReadOnly:j,isFocused:v,isWithLabel:L,colorScheme:p,onMouseEnter:F,onMouseLeave:F},o.createElement(qe,null,L&&o.createElement(Ue,Object.assign({htmlFor:t,color:p,error:n},R),d),o.createElement(a.Element,Object.assign({as:"textarea",id:t,name:i,rows:w,cols:S,value:l,readOnly:j,disabled:E,autoFocus:C,editable:x,placeholder:r,onBlur:e=>{y(e),T(!1)},onFocus:()=>{T(!0),O&&O()},multiline:f},V,M,{onChange:G,onChangeText:G})))))},bt=e=>{var{label:o,placeholder:a,value:i}=e,[r,n]=t.useState(null!=o?o:a),[l,d]=t.useState(!1),[s,c]=t.useState(!1),[m,g]=t.useState(i);return t.useMemo(()=>{n(l&&!m?null!=a?a:"":null!=o?o:a)},[m,l,o,a]),{hint:r,setHint:n,isFocused:l,setIsFocused:d,isHovered:s,setIsHovered:c,setValue:g,value:m}},vt=["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"],xt=e=>o.createElement(a.Input,Object.assign({type:"text"},e)),jt=e=>{var{id:t,name:i,label:r,hint:n,value:l,onChange:d,leftChild:c,rightChild:m,helperText:g,onChangeText:u,shadow:h={},styles:p={box:{},field:{},label:{},helperText:{},text:{}},size:b="md",shape:v="default",variant:x="default",colorScheme:j="theme.primary",error:E=!1,isFocused:C=!1,isHovered:f=!1,isDisabled:w=!1,isReadOnly:S=!1,isClearable:y=!0,isAutoFocus:_=!1,setHint:O=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:I=(()=>{}),setValue:T=(()=>{}),onClick:H=(()=>{}),onFocus:R,onBlur:M=(()=>{})}=e,L=s(e,vt),{getColor:V}=a.useTheme(),F=V("color.blueGray.700"),G=!(!C||!r),B=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:a.Typography.fontSizes[b],lineHeight:a.Typography.fontSizes[b],backgroundColor:"transparent",color:w?"color.trueGray.600":"color.blueGray.700",cursor:w?"not-allowed":"auto"},p.field),D=()=>I(!f);return o.createElement(Te,{helperText:g,error:E,styles:p},o.createElement(Ge,{label:r,size:b,error:E,shape:v,styles:p,shadow:h,variant:x,value:l,color:j,isHovered:f,isDisabled:w,isReadOnly:S,isFocused:C,isWithLabel:G,colorScheme:j,onMouseEnter:D,onMouseLeave:D},c,o.createElement(qe,null,G&&o.createElement(Ue,Object.assign({htmlFor:t,color:j,error:E},p),r),o.createElement(xt,Object.assign({id:t,name:i,readOnly:S,disabled:w,autoFocus:_,placeholder:n,onFocus:()=>{z(!0),R&&R()},onBlur:e=>{M&&M(e),z(!1)},autoComplete:"off"},B,L,{onChange:e=>{"string"==typeof e?(T(e),u&&u(e),d&&d(e)):(T(e.target.value),u&&u(e.target.value),d&&d(e.target.value))},value:l}))),(m||y&&l)&&o.createElement(De,null,y&&l&&!S&&!w&&o.createElement(k,{size:a.Typography.fontSizes[b],color:F,onClick:()=>{T(""),d&&(M({target:{name:i}}),u&&u(""),d&&d("")),"undefined"==typeof document&&u&&u("")}}),m&&o.createElement(o.Fragment,null,m))))},Et=e=>{var{defaultIsSelected:t=!1}=e,[a,i]=o.useState(!1),[r,n]=o.useState(t);return{isHovered:a,setIsHovered:i,isSelected:r,setIsSelected:n}},Ct={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}},ft={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},wt=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles","infoText","helperText"],St=e=>{var{id:t,icon:i,label:r,isChecked:n,onChange:l,onValueChange:d,shadow:c={},labelPosition:m="right",size:g="md",colorScheme:u="theme.primary",error:h=!1,isSelected:b=!1,isHovered:v=!1,isDisabled:E=!1,isReadOnly:f=!1,isIndeterminate:w=!1,defaultIsSelected:S=!1,setIsSelected:y=(()=>{}),setIsHovered:_=(()=>{}),styles:z={checkbox:{},label:{}},infoText:k}=e,I=s(e,wt),T=()=>_(!v),H={container:Object.assign({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:h?"theme.error":E?"theme.disabled":"color.blueGray.700",cursor:E?"not-allowed":f?"default":"pointer"},z.label),checkbox:Object.assign({},E?{backgroundColor:"theme.disabled"}:(n||b)&&!w||w?{backgroundColor:u}:{borderWidth:2,borderColor:h?"theme.error":v?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3},v?{filter:"brightness(0.9)"}:{},Ct[g],c,z.checkbox)};return o.createElement(Ne,Object.assign({htmlFor:t,as:"div",onClick:()=>{f||E||(y&&y(!b),l&&l(!n),d&&d(!n))},onMouseEnter:T,onMouseLeave:T,size:a.Typography.fontSizes[g]},H.container,I),o.createElement(x,{gap:8},o.createElement(j,{gap:10,alignItems:"center"},"left"===m&&r&&o.createElement(p,Object.assign({size:g},null==z?void 0:z.label),r),o.createElement(C,Object.assign({},H.checkbox),w?o.createElement(L,null):(n||b)&&(null!=i?i:o.createElement(O,{size:ft[g]}))),"right"===m&&r&&o.createElement(p,Object.assign({size:g},null==z?void 0:z.label),r)),k&&o.createElement(p,Object.assign({marginLeft:"left"===m?0:27,color:"color.gray.400",size:"sm"},null==z?void 0:z.infoText),k)))},yt=[{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"}],_t=e=>{var{placeholder:t}=e,[a,i]=o.useState(yt),[r,n]=o.useState(null!=t?t:yt[0].name),[l,d]=o.useState(!0),[s,c]=o.useState(!1),[m,g]=o.useState(!1);return{hide:l,setHide:d,newOptions:a,setNewOptions:i,isHovered:m,setIsHovered:g,isFocused:s,setIsFocused:c,value:r,setValue:n}},Ot={xs:8,sm:10,md:12,lg:14,xl:16},zt=["size"],kt=["size"],It=["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"],Tt=e=>{var t=s(e,zt);return o.createElement(a.Element,Object.assign({as:"ul"},t))},Ht=e=>o.createElement(a.Input,Object.assign({type:"country"},e)),Rt=e=>{var t=s(e,kt);return o.createElement(a.Element,Object.assign({as:"li"},t))},Mt=e=>{var{option:i,size:r="md",callback:n=(()=>{}),styles:l={text:{}}}=e,[d,s]=t.useState(!1),c=()=>s(!d);return o.createElement(Rt,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:c,onMouseLeave:c,onClick:e=>{e&&e.stopPropagation&&e.stopPropagation(),n(i)},fontSize:a.Typography.fontSizes[r],backgroundColor:d?"trueGray.100":"transparent"},l.text),i)},Lt=e=>{var{size:t,styles:a={dropDown:{}},options:i,callback:r=(()=>{})}=e,n=e=>r(e);return o.createElement(Tt,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"},a.dropDown),i.map(e=>o.createElement(Mt,Object.assign({key:e.code,size:t,option:e.name,callback:n},a.text))))},Vt=e=>{var{id:t,name:i,label:r,value:n,placeholder:l,helperText:d,hide:c=!1,error:m=!1,isHovered:g=!1,isFocused:u=!1,isAutoFocus:h=!1,isDisabled:p=!1,isReadOnly:b=!1,shadow:v={},newOptions:x=[],size:j="md",variant:E="default",shape:C="default",colorScheme:f="theme.primary",onChange:S,onBlur:_=(()=>{}),setHide:O=(()=>{}),setNewOptions:z=(()=>{}),setIsHovered:k=(()=>{}),setIsFocused:I=(()=>{}),setValue:T=(()=>{}),styles:H={text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}}=e,R=s(e,It),{getColor:M}=a.useTheme(),L=M("color.blueGray.700"),V=()=>k(!g),F=!(!u||!r),G=Object.assign({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:a.Typography.fontSizes[j],backgroundColor:"transparent",color:p?"color.trueGray.600":"color.blueGray.700",cursor:p?"not-allowed":"auto"},H.field);return o.createElement(Te,{helperText:d,error:m,styles:H,onClick:()=>{p||b||O(!c)}},o.createElement(Ge,{label:r,size:j,error:m,shape:C,styles:H,shadow:v,variant:E,value:n,color:f,isHovered:g,isDisabled:p,isReadOnly:b,isFocused:u,isWithLabel:F,colorScheme:f,onMouseEnter:V,onMouseLeave:V},o.createElement(qe,null,F&&o.createElement(Ue,Object.assign({htmlFor:t,color:f,error:m},H),r),o.createElement(Ht,Object.assign({id:t,name:i,placeholder:l,readOnly:b,disabled:p,autoFocus:h,onBlur:e=>{_(e),I(!1)},onFocus:()=>I(!0)},G,R,{value:n,onChange:e=>{var t=e.target.value,o=yt.filter(e=>e.name.toLowerCase().startsWith(t.toLowerCase()));c&&O(!1),z(o),S&&S(t)}}))),o.createElement(De,null,o.createElement(c?w:y,{size:Ot[j],color:L,style:H.icon}))),!c&&o.createElement(Lt,{size:j,styles:H,options:x,callback:e=>{O(!c),T(e),S&&S(e)}}))},Ft=()=>{var[e,t]=o.useState(!1),[a,i]=o.useState(!1),[n,l]=o.useState(r(new Date,"yyyy-MM-dd"));return{date:n,setDate:l,isHovered:e,setIsHovered:t,isFocused:a,setIsFocused:i}},Gt=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Bt=e=>o.createElement(a.Input,Object.assign({type:"date"},e)),Dt=e=>{var{id:t,name:i,label:r,date:n,helperText:l,shadow:d={},size:c="md",variant:m="default",shape:g="default",colorScheme:u="theme.primary",styles:h={box:{},label:{},helperText:{},text:{},field:{}},error:p=!1,isHovered:b=!1,isFocused:v=!1,isDisabled:x=!1,isReadOnly:j=!1,setDate:E=(()=>{}),setIsFocused:C=(()=>{}),setIsHovered:f=(()=>{}),onChange:w,onChangeText:S}=e,y=s(e,Gt),_=!(!v||!r),O=()=>f(!b),z=e=>{"string"==typeof e?(E(e),S&&S(e)):(E(e.target.value),w&&w(e.target.value))},k=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:a.Typography.fontSizes[c],backgroundColor:"transparent",color:x?"color.trueGray.600":"color.blueGray.700",cursor:x?"not-allowed":j?"auto":"pointer"},h.field);return o.createElement(Te,{helperText:l,error:p,styles:h},o.createElement(Ge,{label:r,size:c,error:p,shape:g,styles:h,shadow:d,variant:m,value:n,color:u,isHovered:b,isDisabled:x,isReadOnly:j,isFocused:v,isWithLabel:_,colorScheme:u,onMouseEnter:O,onMouseLeave:O},o.createElement(qe,null,_&&o.createElement(Ue,Object.assign({htmlFor:t,color:u,error:p},h),r),o.createElement(Bt,Object.assign({id:t,name:i,onFocus:()=>C(!0),disabled:x,readOnly:j},k,y,S&&{onChangeText:z},{onChange:z})))))},Pt=e=>{var o=bt(e),[a,i]=t.useState(!1);return Object.assign({isVisible:a,setIsVisible:i},e,o)},At=["visibleIcon","hiddenIcon"],Wt=["isVisible","setIsVisible"],Nt=["children","autoFocus","initFocus","onChange"],Kt=t.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),Ut=["name","type"],Zt=e=>{var{name:o,type:a}=e,i=s(e,Ut),r=t.useContext(Kt),{touched:l,errors:d,submitCount:c,values:m,setFieldTouched:g,setFieldValue:u}=n.useFormikContext(),h=e=>{"Enter"===e.key&&(e.preventDefault(),r.focusNextInput(o))},p=["text","password","email","digits"].includes(a),b=n.getIn(l,o)||c>0?n.getIn(d,o):void 0,v=n.getIn(m,o);return Object.assign({},(e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}})(a),i,{value:v,error:b,onBlur:()=>{g(o,!0)},onKeyPress:h},p?{onChangeText:e=>{u(o,e),null==i.onChangeText||i.onChangeText(e)}}:{onChange:e=>{u(o,e),null==i.onChange||i.onChange(e)}},r.active?{handleKeyPress:h}:{})},qt=["value"],Yt=["value"],Jt=["visibleIcon","hiddenIcon"],Qt=["isVisible","setIsVisible"],Xt=["size","color"],$t=e=>{var{size:t=16,color:a="#c0c0c0"}=e,i=s(e,Xt);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -0.5 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"}," ",o.createElement("path",{d:"M5.5 12.5L10.167 17L19.5 8",stroke:"#444444",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},eo=["size","color"],to=e=>{var{size:t=14,color:a="#c0c0c0"}=e,i=s(e,eo);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({fill:"#c0c0c0",width:t+"px",height:t+"px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488.4 488.4",stroke:a},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"9.279599999999999"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("path",{d:"M0,203.25c0,112.1,91.2,203.2,203.2,203.2c51.6,0,98.8-19.4,134.7-51.2l129.5,129.5c2.4,2.4,5.5,3.6,8.7,3.6 s6.3-1.2,8.7-3.6c4.8-4.8,4.8-12.5,0-17.3l-129.6-129.5c31.8-35.9,51.2-83,51.2-134.7c0-112.1-91.2-203.2-203.2-203.2 S0,91.15,0,203.25z M381.9,203.25c0,98.5-80.2,178.7-178.7,178.7s-178.7-80.2-178.7-178.7s80.2-178.7,178.7-178.7 S381.9,104.65,381.9,203.25z"})," ")))))},oo=["placeholder","items","showTick","onSelect","searchEnabled","left","right","label","filteredItems","setSelectedItem","selectedItem","highlightedIndex","setHighlightedIndex","searchQuery","setSearchQuery","setFilteredItems","styles","isDropdownVisible","setIsDropdownVisible"],ao=e=>{var{placeholder:a,items:i,showTick:r=!0,onSelect:n,searchEnabled:l=!0,left:c,right:m,label:g,filteredItems:u,setSelectedItem:h,selectedItem:b,highlightedIndex:v,setHighlightedIndex:x,searchQuery:E,setSearchQuery:C,setFilteredItems:f,styles:w,isDropdownVisible:S,setIsDropdownVisible:y}=e,_=s(e,oo);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"combobox-dropdown"===(null==e?void 0:e.id))&&y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),o.createElement(j,Object.assign({role:"combobox",flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%"},_),g&&o.createElement(p,{styles:null==w?void 0:w.label,htmlFor:_.id},g),o.createElement(d,{position:"relative"},o.createElement(j,Object.assign({cursor:"pointer",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",padding:"12px",display:"flex",alignItems:"center",borderRadius:"4px",justifyContent:"space-between",minWidth:300,flexWrap:"nowrap"},null==w?void 0:w.container),o.createElement(j,Object.assign({gap:15,alignItems:"center",position:"relative",width:"100%",onClick:()=>y(!S)},null==w?void 0:w.labelContainer),c,o.createElement(p,Object.assign({weight:"medium",flexGrow:1},null==w?void 0:w.label),b.label)),m,S&&o.createElement(d,Object.assign({id:"combobox-dropdown",position:"absolute",backgroundColor:"white",boxShadow:"rgba(0, 0 ,0 ,0.16) 0px 1px 4px",width:"100%",overflowY:"auto",zIndex:1e4,bottom:-8,left:0,transform:"translateY(100%)",marginTop:"4px",borderRadius:"4px"},null==w?void 0:w.dropdown),l&&o.createElement(jt,{id:_.id,name:_.name,width:"100%",type:"search",value:E,onChange:e=>(e=>{if(C(e),""===e)f(i);else{var t=i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()));f(t)}x(0)})(e),hint:a,isClearable:!1,leftChild:o.createElement(to,{size:12}),styles:{box:Object.assign({width:"100%",padding:"6px 12px",borderBottom:u.length>0?"1px solid #ccc":"1px solid transparent"},null==w?void 0:w.text)}}),u.length>0&&o.createElement(d,{margin:0,padding:4},u.map((e,t)=>o.createElement(j,Object.assign({justifyContent:"space-between",key:e.value,padding:"12px",cursor:"pointer",borderRadius:4,backgroundColor:t===v?"color.gray.100":"transparent",onMouseEnter:()=>x(t),onClick:()=>(e=>{h(e),null==n||n(e),y(!1)})(e)},null==w?void 0:w.item),o.createElement(p,null,e.label),o.createElement(o.Fragment,null,e.icon&&e.icon,e.value===b.value&&r&&!e.icon&&o.createElement($t,null)))))))))},io=["items","placeholder","searchPlaceholder"],ro=l.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,styles:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:function(t,o,a,i,r,n,l,d,s){return void 0===o&&(o=""),void 0===a&&(a=""),e({visible:!0,variant:t,title:o,subtitle:a,isClosable:i,styles:r,action:n,actionText:l,showIcon:d,timeout:s})},hide:()=>e({visible:!1})})),no=()=>{ro.getState().hide()},lo={info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},icon:{color:"color.blue.500",name:"InformationSvg"},content:{color:"color.blue.500"},close:{color:"color.blue.500",name:"CloseSvg"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},icon:{color:"color.green.500",name:"CheckCircleSvg"},content:{color:"color.green.500"},close:{color:"color.green.500",name:"CloseSvg"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},icon:{color:"color.red.500",name:"ErrrorSvg"},content:{color:"color.red.500"},close:{color:"color.red.500",name:"CloseSvg"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},icon:{color:"color.orange.500",name:"ErrrorSvg"},content:{color:"color.orange.500"},close:{color:"color.orange.500",name:"CloseSvg"}}},so=e=>{var a,i,{variant:r,hide:n,title:l,subtitle:s,theme:c,action:m,actionText:g,showIcon:u=!1,isClosable:h=!1,timeout:b=3e3,styles:v}=e;t.useEffect(()=>{if(b&&!h){var e=setTimeout(()=>{n()},b);return()=>{clearTimeout(e)}}},[]);var E=null!=c?c:lo,C=!(!m||!g),f={borderWidth:1,borderStyle:"solid",borderRadius:8,borderColor:""+E[r].container.border},w={info:"#3b82f6",success:"#4ade80",warning:"#f97316",error:"#ef4444"}[r],S={info:o.createElement(W,Object.assign({size:24,color:w},null==v?void 0:v.icon)),success:o.createElement(P,Object.assign({size:24,color:w},null==v?void 0:v.icon)),warning:o.createElement(B,Object.assign({size:24,color:w},null==v?void 0:v.icon)),error:o.createElement(K,Object.assign({size:24,color:w},null==v?void 0:v.icon))}[r],y=u&&S;return o.createElement(j,Object.assign({role:"messageContent",gap:16,width:400,flexWrap:"nowrap",position:"relative",alignItems:"center",padding:"14px 24px 14px 14px",color:""+E[r].content.color,backgroundColor:""+E[r].container.backgroundColor,onClick:h?()=>{}:()=>{n()}},f,null==v?void 0:v.container),y&&S,o.createElement(x,{gap:8,width:"100%"},o.createElement(p,Object.assign({size:"md",weight:"semiBold"},null==v?void 0:v.title),l),s&&o.createElement(p,Object.assign({size:"sm"},null==v?void 0:v.subtitle),s)),C&&o.createElement(p,Object.assign({marginRight:10,onClick:m,padding:"6px 10px",whiteSpace:"nowrap"},f,null==v?void 0:v.actionText),g),h&&o.createElement(d,Object.assign({position:"absolute",zIndex:1e4,right:8,top:6,onClick:()=>{n()}},null==v||null==(a=v.closingIcon)?void 0:a.container),o.createElement(k,Object.assign({size:18,color:w},null==v||null==(i=v.closingIcon)?void 0:i.icon))))},co=l.create(e=>({modal:!1,modalProps:{isVisible:!1},overlayProps:{},show:function(t,o,a){void 0===o&&(o={}),void 0===a&&(a={}),t&&(o.isVisible=!0),e(e=>Object.assign({},e,{modal:t,modalProps:o,overlayProps:a}))},hide:()=>{e(e=>Object.assign({},e,{modalProps:Object.assign({},e.modalProps,{isVisible:!1})}))}})),mo=()=>{co.getState().hide()},go={sharp:{borderRadius:0},rounded:{borderRadius:4}},uo={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},ho={xs:12,sm:16,md:20,lg:24,xl:28},po=["children","blur","isOpen","isClosePrevented","onClose","position"],bo=["children","shadow","isFullScreen","shape"],vo=["children","buttonColor","iconSize","buttonPosition"],xo=["children"],jo=["children"],Eo=e=>{var{children:t,blur:a,isOpen:i=!1,isClosePrevented:r=!1,onClose:n=(()=>{}),position:l="center"}=e,c=s(e,po),m=()=>{r||n()};return o.createElement(C,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:m,visibility:i?"visible":"hidden"},o.createElement(d,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"color.blackAlpha.500",backdropFilter:a?"blur("+a+"px)":void 0,onClick:m},uo[l],c),t))},Co=e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)};Co.Overlay=Eo,Co.Container=e=>{var{children:t,shadow:a,isFullScreen:i=!1,shape:r="rounded"}=e,n=s(e,bo),l=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 o.createElement(x,Object.assign({cursor:"default",backgroundColor:"white",width:i?"100%":600,height:i?"100%":"fit-content",onClick:e=>{e&&e.stopPropagation&&e.stopPropagation()}},a||l,go[r],n),t)},Co.Header=e=>{var{children:t,buttonColor:a="theme.primary",iconSize:i="md",buttonPosition:r="right"}=e,n=s(e,vo),l=o.createElement(Se,{onClick:n.onClose?n.onClose:mo,colorScheme:"transparent",icon:o.createElement(k,{size:ho[i],color:a}),padding:0,margin:0,filter:"none",width:0});return o.createElement(j,Object.assign({justifyContent:"none"===r?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},n),"left"===r&&l,t,"right"===r&&l)},Co.Body=e=>{var{children:t}=e,a=s(e,xo);return o.createElement(d,Object.assign({paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},a),t)},Co.Footer=e=>{var{children:t}=e,a=s(e,jo);return o.createElement(j,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},a),t)},Co.Layout=e=>{var{modals:a}=e,i=co(e=>{var{modal:t,modalProps:o,overlayProps:a}=e;return{modal:t,modalProps:o,overlayProps:a}});if("boolean"==typeof i.modal)return null;var r=a[i.modal];return r?o.createElement(t.Fragment,null,o.createElement(Eo,Object.assign({isOpen:i.modalProps.isVisible,onClose:mo,blur:10},i.overlayProps),void 0!==r&&o.createElement(r,Object.assign({},i.modalProps)))):(console.error(i.modal+" modal doesn't exist"),null)};var fo={},wo=o.createContext(fo),So=e=>{var{children:t,styles:a=fo}=e;return o.createElement(wo.Provider,{value:a},t)},yo=()=>o.useContext(wo),_o=e=>{var t=yo();return o.createElement(a.Element,Object.assign({as:"table",borderCollapse:"collapse"},t.table,e))},Oo=e=>{var t=yo();return o.createElement(a.Element,Object.assign({as:"thead",borderBottom:"0.5px solid #ddd",textAlign:"left",color:"color.gray.400"},t.thead,e))},zo=e=>{var t=yo();return o.createElement(a.Element,Object.assign({as:"th",padding:"14px",whiteSpace:"nowrap",fontWeight:"500"},t.th,e))},ko=e=>{var t=yo();return o.createElement(a.Element,Object.assign({as:"tr"},t.tr,e))},Io=e=>{var t=yo();return o.createElement(a.Element,Object.assign({as:"td",padding:"14px",whiteSpace:"nowrap",fontWeight:e.isFirstColumn?"400":"300"},t.td,e))},To=e=>{var t=yo();return o.createElement(a.Element,Object.assign({as:"tbody"},t.tbody,e))},Ho=e=>{var t=yo();return o.createElement(a.Element,Object.assign({as:"tfoot"},t.tfoot,e))},Ro=e=>{var t=yo();return o.createElement(a.Element,Object.assign({as:"caption",margin:"10px 0",color:"color.gray.400"},t.caption,e))},Mo=e=>{var{children:t,styles:a}=e;return o.createElement(So,{styles:a},t)};Mo.Head=Oo,Mo.HeadCell=zo,Mo.Body=To,Mo.Row=ko,Mo.Cell=Io,Mo.Footer=Ho,Mo.Caption=Ro,Mo.Container=_o,Mo.Template=e=>{var{data:t,columns:a,footer:i,caption:r}=e;return o.createElement(_o,{role:"Table"},r&&o.createElement(Ro,null,r),o.createElement(Oo,null,o.createElement(ko,null,a.map(e=>o.createElement(zo,{key:e.field},e.title)))),o.createElement(To,null,t.map((e,t)=>o.createElement(ko,{key:t},a.map((t,a)=>o.createElement(Io,{key:t.field,isFirstColumn:0===a},e[t.field]))))),i&&o.createElement(Ho,null,o.createElement(ko,null,i.map((e,t)=>o.createElement(Io,Object.assign({key:t},e.props),e.value)))))};var Lo=e=>{var{tabs:t,styles:a,isActive:i,setIsActive:r,tabsState:n,setTabsState:l}=e;return o.createElement(j,Object.assign({width:"100w",height:"100%"},null==a?void 0:a.container),o.createElement(j,Object.assign({marginBottom:20},null==a?void 0:a.headerTabs),t.map((e,n)=>o.createElement(Se,Object.assign({key:e.title,onClick:()=>{(e=>{var o=[...t],a=o.splice(e,1);o.unshift(a[0]),l(o),r(o[0])})(n)},variant:i.value===e.value?"filled":"ghost",shape:"pillShaped",cursor:"pointer",isAuto:!0},null==a?void 0:a.tab,i.value===e.value?null==a?void 0:a.activeTab:{}),o.createElement(p,Object.assign({},null==a?void 0:a.title,i.value===e.value?null==a?void 0:a.activeText:{}),e.title)))),o.createElement(d,Object.assign({width:"100%",height:"100%"},null==a?void 0:a.content),n.map((e,t)=>(e=>e.value===n[0].value)(e)&&o.createElement(d,{key:t},e.content))))},Vo=o.memo(e=>{var{tabs:a,styles:i}=e,{isActive:r,setIsActive:n,tabsState:l,setTabsState:d}=(e=>{var[o,a]=t.useState(e[0]),[i,r]=t.useState(e);return{isActive:o,setIsActive:a,tabsState:i,setTabsState:r}})(a);return o.createElement(Lo,{tabs:a,styles:i,isActive:r,tabsState:l,setTabsState:d,setIsActive:n})}),Fo={sharp:0,rounded:4,pillShaped:24},Go=["children","shape","colorScheme","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle"],Bo=e=>{var{children:t,shape:a="rounded",colorScheme:i="color.trueGray.400",variant:r="ghost",isHovered:n,setIsHovered:l,isDisabled:d,isToggle:c,setIsToggled:m,onToggle:g}=e,u=s(e,Go),h=d?"theme.disabled":i,p=!(!c&&!n);return o.createElement(C,Object.assign({role:"Toggle",padding:"pillShaped"===a?"10px 12px":"8px",width:"fit-content",color:p?"color.white":h,backgroundColor:p?h:"transparent",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),cursor:d?"not-allowed":"pointer",borderRadius:Fo[a],onClick:()=>{d||m(e=>{var t=!e;return g&&g(t),t})}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:i},link:{borderWidth:1,borderStyle:"solid",borderColor:p?h:"transparent",textDecoration:"underline"},ghost:{}}[r],u),t)},Do=["children","shape","colorScheme","variant","isDisabled","isToggled","onToggle"],Po=e=>{var{children:a,shape:i,colorScheme:r,variant:n,isDisabled:l,isToggled:d=!1,onToggle:c}=e,m=s(e,Do),{isHovered:g,setIsHovered:u,isToggle:h,setIsToggled:p}=(e=>{var[o,a]=t.useState(!1),[i,r]=t.useState(e);return{isHovered:o,setIsHovered:a,isToggle:i,setIsToggled:r}})(d);return t.useEffect(()=>{p(d)},[d]),o.createElement(Bo,Object.assign({shape:i,colorScheme:r,variant:n,isDisabled:l,isHovered:g,setIsHovered:u,isToggle:h,setIsToggled:p,onToggle:c},m),a)},Ao=e=>{var{items:a,onToggleChange:i,activeToggles:r,setActiveToggles:n,shape:l="rounded",variant:d="ghost",colorScheme:s="color.trueGray.400"}=e,c=t.useCallback((e,t)=>{n(o=>{var a;return a=t?o.includes(e)?o:[...o,e]:o.filter(t=>t!==e),null==i||i(a),a})},[i,n]);return o.createElement(j,{role:"ToggleGroup",display:"flex",gap:5},a.map(e=>o.createElement(Po,{role:"toggle-"+e.id,key:e.id,colorScheme:s,shape:l,variant:d,isToggled:r.includes(e.id)||e.isActive,onToggle:t=>c(e.id,t),isDisabled:e.isDisabled},e.value)))};exports.Alert=e=>{var{icon:t,title:a,styles:i,description:r,variant:n}=e;return o.createElement(Z,{icon:t,title:a,styles:i,description:r,variant:n})},exports.AspectRatio=e=>{var{ratio:t,children:a}=e,i=s(e,J);return o.createElement(Y,Object.assign({ratio:t},i),a)},exports.Avatar=e=>{var{src:a,size:i,styles:r,fallback:n}=e,{imageError:l,setImageError:d}=(()=>{var[e,o]=t.useState(!1);return{imageError:e,setImageError:o}})();return o.createElement(X,{src:a,size:i,styles:r,fallback:n,imageError:l,setImageError:d})},exports.Badge=e=>{var{content:t,shape:a,colorScheme:i,position:r,variant:n,size:l,styles:d}=e;return o.createElement(oe,{content:t,shape:a,colorScheme:i,position:r,variant:n,size:l,styles:d})},exports.Bottom=e=>o.createElement(a.View,Object.assign({marginTop:"auto"},e)),exports.Button=Se,exports.Center=C,exports.Checkbox=e=>{var t=Et(e);return o.createElement(St,Object.assign({},t,e))},exports.CountryPicker=e=>{var t=_t(e);return o.createElement(Vt,Object.assign({},t,e))},exports.DatePicker=e=>{var t=Ft();return o.createElement(Dt,Object.assign({},t,e))},exports.FileImage=e=>{var{path:t}=e,i=s(e,_e);return o.createElement(a.Image,Object.assign({src:t},i))},exports.FileSVG=e=>{var{src:t,color:i}=e,r=s(e,ye),{getColor:n}=a.useTheme(),l=i?{fill:n(i),stroke:n(i)}:{};return o.createElement(C,Object.assign({},r),o.createElement(a.Image,Object.assign({},l,{content:'url("'+t+'")',width:"100%",height:"100%"})))},exports.FormikCheckbox=e=>{var t=Zt(e),{value:a}=t,i=s(t,qt);i.isChecked=a;var r=Et(e);return o.createElement(St,Object.assign({},r,i))},exports.FormikComboBox=e=>{var{items:a,placeholder:i,searchPlaceholder:r}=e,n=s(e,io),l=Zt(n),d=((e,o,a)=>{var[i,r]=t.useState(e),[n,l]=t.useState(o?{value:o,label:o}:e[0]),[d,s]=t.useState(0),[c,m]=t.useState(null!=a?a:""),[g,u]=t.useState(!1);return{filteredItems:i,setFilteredItems:r,selectedItem:n,setSelectedItem:l,highlightedIndex:d,setHighlightedIndex:s,searchQuery:c,setSearchQuery:m,isDropdownVisible:g,setIsDropdownVisible:u}})(a,i,r);return o.createElement(ao,Object.assign({},d,l,{onSelect:e=>{l.onChange(e)}}))},exports.FormikCountryPicker=e=>{var t=Zt(e),a=_t(e);return o.createElement(Vt,Object.assign({},a,t))},exports.FormikDatePicker=e=>{var t=Zt(e),a=Ft();return o.createElement(Dt,Object.assign({},a,t))},exports.FormikForm=e=>{var{children:i,autoFocus:r=!1,initFocus:l,onChange:d=(()=>{})}=e,c=s(e,Nt),m=n.useFormikContext();t.useEffect(()=>{d(m.values)},[m.values]);var g=t.useRef({}),u=t.useRef([]),h=e=>{if(r){var t,o=u.current.indexOf(e)+1;o<u.current.length?null==(t=g.current[u.current[o]])||t.focus():m.onSubmit&&m.onSubmit(m.values)}},p={active:r,focusNextInput:h,setInputRef:(e,t)=>{g.current[e]=t,u.current.includes(e)||u.current.push(e)},handleSubmitEditing:h,getReturnKeyType:e=>u.current.indexOf(e)===u.current.length-1?"done":"next"};return t.useEffect(()=>{var e;if(r)if(l&&g.current[l])null==(e=g.current[l])||e.focus();else if(u.current[0]){var t;null==(t=g.current[u.current[0]])||t.focus()}},[r,l]),o.createElement(Kt.Provider,{value:p},o.createElement(a.Form,Object.assign({},c),i))},exports.FormikPassword=e=>{var{visibleIcon:t=o.createElement(F,{size:14}),hiddenIcon:i=o.createElement(T,{size:14})}=e,r=s(e,Jt),n=Zt(r),l=Pt(n),{isVisible:d,setIsVisible:c}=l,m=s(l,Qt);return o.createElement(jt,Object.assign({},m,{type:d?"text":"password",isClearable:!1,rightChild:o.createElement(a.View,{onClick:()=>{r.isDisabled||c(!d)}},d?t:i)}))},exports.FormikSelect=e=>{var t=Zt(e);t.selected=t.value;var a=Oe(e);return o.createElement(rt,Object.assign({},a,t))},exports.FormikSwitch=e=>{var t=Zt(e),a=nt(e);return o.createElement(gt,Object.assign({},a,t))},exports.FormikTextArea=e=>{var t=Zt(e),a=ut(e);return o.createElement(pt,Object.assign({},a,t))},exports.FormikTextField=e=>{var t=Zt(e),a=s(bt(e),Yt);return o.createElement(jt,Object.assign({},a,t))},exports.Horizontal=j,exports.Inline=e=>o.createElement(a.View,Object.assign({display:"inline-flex",wordBreak:"break-word"},e)),exports.Left=e=>o.createElement(a.View,Object.assign({marginRight:"auto"},e)),exports.Link=ne,exports.Loader=Ee,exports.MessageLayout=e=>{var{container:t,theme:a,position:i="topRight"}=e,{visible:r,title:n,variant:l,subtitle:s,isClosable:c,styles:m,action:g,actionText:u,showIcon:h,timeout:p}=ro(),b={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[i],v=()=>o.createElement(so,{variant:l,subtitle:s,show:r,title:n,theme:a,isClosable:c,styles:m,action:g,actionText:u,showIcon:h,timeout:p,hide:()=>no()}),x=t?o.cloneElement(t,{},v()):o.createElement(d,Object.assign({position:"absolute",zIndex:1e4},b),v());return r?x:null},exports.MessageView=so,exports.Modal=Co,exports.Password=e=>{var{visibleIcon:t=o.createElement(F,{size:14}),hiddenIcon:i=o.createElement(T,{size:14})}=e,r=s(e,At),n=Pt(r),{isVisible:l,setIsVisible:d}=n,c=s(n,Wt);return o.createElement(jt,Object.assign({},c,{type:l?"text":"password",isClearable:!1,rightChild:o.createElement(a.View,{onClick:()=>{r.isDisabled||d(!l)}},l?t:i)}))},exports.Right=e=>o.createElement(a.View,Object.assign({marginLeft:"auto"},e)),exports.Select=e=>{var t=Oe(e);return o.createElement(rt,Object.assign({},t,e))},exports.Switch=e=>{var t=nt(e);return o.createElement(gt,Object.assign({},t,e))},exports.Table=Mo,exports.Tabs=Vo,exports.Text=p,exports.TextArea=e=>{var t=ut(e);return o.createElement(pt,Object.assign({},t,e))},exports.TextField=e=>{var t=bt(e);return o.createElement(jt,Object.assign({},t,e))},exports.Toggle=Po,exports.ToggleGroup=e=>{var{items:a,shape:i,colorScheme:r,variant:n,onToggleChange:l}=e,{activeToggles:d,setActiveToggles:s}=(()=>{var[e,o]=t.useState([]);return{activeToggles:e,setActiveToggles:o}})();return o.createElement(Ao,{items:a,shape:i,colorScheme:r,variant:n,activeToggles:d,setActiveToggles:s,onToggleChange:l})},exports.Top=e=>o.createElement(a.View,Object.assign({marginBottom:"auto"},e)),exports.Vertical=x,exports.View=d,exports.hideMessage=no,exports.hideModal=mo,exports.showMessage=(e,t,o,a)=>{ro.getState().show(e,t,o,null==a?void 0:a.isClosable,null==a?void 0:a.styles,null==a?void 0:a.action,null==a?void 0:a.actionText,null==a?void 0:a.showIcon,null==a?void 0:a.timeout)},exports.showModal=function(e,t,o){void 0===t&&(t={}),void 0===o&&(o={}),co.getState().show(e,t,o)},exports.useMessageStore=ro,exports.useModalStore=co;
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es.symbol.description.js");var t=require("react"),o=e(t);require("core-js/modules/es.object.assign.js");var a=require("app-studio");require("core-js/modules/es.array.iterator.js"),require("core-js/modules/es.parse-float.js"),require("core-js/modules/web.dom-collections.iterator.js");var i=require("react-router-dom");require("core-js/modules/es.array.includes.js"),require("core-js/modules/es.string.includes.js"),require("core-js/modules/es.string.starts-with.js");var r=e(require("date-fns/format")),n=require("formik"),l=require("zustand"),d=a.View;function s(e,t){if(null==e)return{};var o={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.includes(a))continue;o[a]=e[a]}return o}var c={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}},m=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],g=e=>{var{children:t,isSub:a,isSup:i}=e;return o.createElement(o.Fragment,null,"string"==typeof t?o.createElement(o.Fragment,null,a&&o.createElement("sup",null,t),i&&o.createElement("sup",null,t),!a&&!i&&o.createElement(o.Fragment,null,t)):t)},u=e=>{var{text:a,maxLines:i=1}=e,r=t.useRef(null),[n,l]=t.useState(a.length);t.useEffect(()=>{var e=r.current;e&&(()=>{for(var t,o=getComputedStyle(e).lineHeight,r=("normal"!==o?parseFloat(o):20)*i,n=0,d=a.length;n<=d;)t=Math.floor((n+d)/2),e.innerText=a.substring(0,t)+"...",e.offsetHeight>r?d=t-1:n=t+1;l(d)})()},[a,i]);var d=a.length>n?a.substring(0,n)+"...":a;return o.createElement("div",{ref:r},d)},h=e=>{var{children:t,heading:i,maxLines:r,isItalic:n=!1,isUnderlined:l=!1,isSub:d=!1,isSup:h=!1,isStriked:p=!1,isTruncated:b=!1,weight:v="normal",size:x="md"}=e,j=s(e,m);return o.createElement(a.Element,Object.assign({role:"text",fontSize:a.Typography.fontSizes[x],lineHeight:a.Typography.lineHeights[x],fontStyle:n?"italic":"normal",fontWeight:a.Typography.fontWeights[v],textDecoration:p?"line-through":l?"underline":"none"},d||h?{display:"inline"}:{},i?c[i]:{},j),b&&r&&"string"==typeof t?o.createElement(u,{text:t,maxLines:r}):o.createElement(g,Object.assign({isSub:d,isSup:h},j),t))},p=e=>o.createElement(h,Object.assign({},e)),b=["justifyContent","isReversed"],v=e=>{var{justifyContent:t="flex-start",isReversed:i=!1}=e,r=s(e,b);return o.createElement(a.View,Object.assign({display:"flex",justifyContent:t,flexDirection:i?"column-reverse":"column"},r))},x=e=>o.createElement(v,Object.assign({},e)),j=e=>o.createElement(a.View,Object.assign({display:"flex",flexDirection:e.isReversed?"row-reverse":"row"},e)),E=e=>o.createElement(a.View,Object.assign({display:"flex",justifyContent:"center",alignItems:"center"},e)),C=e=>o.createElement(E,Object.assign({},e)),f=["size","color"],w=e=>{var{size:t=64,color:a="white"}=e,i=s(e,f);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("title",null,"arrow_down [#338]")," ",o.createElement("desc",null,"Created with Sketch."),o.createElement("defs",null," "),o.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-220.000000, -6684.000000)",fill:"#000000"},o.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},o.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]"})))))))},S=["size","color"],y=e=>{var{size:t=64,color:a="white"}=e,i=s(e,S);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("title",null,"arrow_up [#337]")," ",o.createElement("desc",null,"Created with Sketch."),o.createElement("defs",null," "),o.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},o.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-260.000000, -6684.000000)",fill:"#000000"},o.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},o.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]"})))))))},_=["size","color"],O=e=>{var{size:t=64,color:a="white"}=e,i=s(e,_);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"0.048"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M17.0001 9L10 16L7 13",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},z=["size","color"],k=e=>{var{size:t=64,color:a="white"}=e,i=s(e,z);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.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"}))))},I=["size","color"],T=e=>{var{size:t=64,color:a="#2F4858"}=e,i=s(e,I);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.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}))))},H=["size","color"],R=e=>{var{size:t=64,color:a="white"}=e,i=s(e,H);return o.createElement(C,{width:t+"px",height:t+"px"},o.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},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"}),o.createElement("path",{d:"M40 20h-2v-8h-8v-2h10z"}),o.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"}))))},M=["size","color"],L=e=>{var{size:t=64,color:a="white"}=e,i=s(e,M);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M7 12L17 12",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},V=["size","color"],F=e=>{var{size:t=64,color:a="#2F4858"}=e,i=s(e,V);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.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}))))},G=["size","color"],B=e=>{var{size:t=64,color:a="white"}=e,i=s(e,G);return o.createElement(C,{width:t+"px",height:t+"px"},o.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},i),o.createElement("g",{id:"SVGRepo_bgCarrier"}),o.createElement("g",{id:"SVGRepo_tracerCarrier"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("g",null,o.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"})))))))},D=["size","color"],P=e=>{var{size:t=64,color:a="white"}=e,i=s(e,D);return o.createElement(C,{width:t+"px",height:t+"px"},o.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 484.8 484.8",fill:a},i),o.createElement("g",{id:"SVGRepo_bgCarrier"}),o.createElement("g",{id:"SVGRepo_tracerCarrier"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("path",{d:"M242.4,0C108.6,0,0,108.6,0,242.4S108.6,484.8,242.4,484.8S484.8,376.2,484.8,242.4S376.2,0,242.4,0z M198.4,358.8l-120-120L84,228l114.4,114.4l188-188l28.8,28.8L198.4,358.8z",fill:a}))))))},A=["size","color"],W=e=>{var{size:t=64,color:a="white"}=e,i=s(e,A);return o.createElement(C,{width:t+"px",height:t+"px"},o.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},i),o.createElement("g",{id:"SVGRepo_bgCarrier"}),o.createElement("g",{id:"SVGRepo_tracerCarrier"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("g",null,o.createElement("path",{d:"M96.073,3.515C43.19,3.515,0,46.705,0,99.587s43.19,96.072,96.073,96.072s96.073-43.19,96.073-96.072 S148.955,3.515,96.073,3.515z M101.468,154.072h-15.447V120.57h15.447V154.072z M101.468,111.875h-15.447V49.54h15.447V111.875z"})))))))},N=["size","color"],K=e=>{var{size:t=64,color:a="white"}=e,i=s(e,N);return o.createElement(C,{width:t+"px",height:t+"px"},o.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 510 510",fill:a},i),o.createElement("g",{id:"SVGRepo_bgCarrier"}),o.createElement("g",{id:"SVGRepo_tracerCarrier"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("path",{d:"M255,0C114.615,0,0,114.615,0,255s114.615,255,255,255s255-114.615,255-255S395.385,0,255,0z M255,459c-114.75,0-207-92.25-207-207c0-114.75,92.25-207,207-207c114.75,0,207,92.25,207,207C462,366.75,369.75,459,255,459z",fill:a}),o.createElement("path",{d:"M255,140.25c11.05,0,20-8.95,20-20s-8.95-20-20-20s-20,8.95-20,20S243.95,140.25,255,140.25z",fill:a}),o.createElement("path",{d:"M265,357c0,11.05-8.95,20-20,20s-20-8.95-20-20v-175c0-11.05,8.95-20,20-20s20,8.95,20,20V357z",fill:a}))))))},U={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"}}},Z=e=>{var t,{icon:a,title:i,styles:r,description:n,variant:l="default"}=e;return o.createElement(j,Object.assign({gap:15,borderRadius:10,borderWidth:1,borderStyle:"solid",padding:16,flexWrap:"nowrap"},null==r?void 0:r.container),o.createElement(d,{alignSelf:"center"},a||o.createElement(B,{size:24,color:null!=(t=null==r?void 0:r.icon.color)?t:U[l].content.color})),o.createElement(x,{gap:10},o.createElement(p,Object.assign({fontSize:"16px",color:U[l].content.color},null==r?void 0:r.title),i),o.createElement(p,Object.assign({fontSize:"14px",color:U[l].content.color},null==r?void 0:r.description),n)))},q=["ratio","children"],Y=e=>{var{ratio:t=16/9,children:a}=e,i=s(e,q);return o.createElement(C,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},i),o.createElement(d,{position:"absolute",top:0,right:0,bottom:0,left:0},a))},J=["ratio","children"],Q={xs:24,sm:32,md:48,lg:64,xl:80},X=e=>{var{src:t,size:i="md",fallback:r="IM",styles:n,imageError:l,setImageError:d}=e,s=Q[i],c=Object.assign({objectFit:"cover"},(null==n?void 0:n.image)||{});return o.createElement(C,Object.assign({role:"avatar",width:s,height:s,borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:l?"black":"transparent",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.25)"},null==n?void 0:n.container),l?o.createElement(p,Object.assign({size:i},null==n?void 0:n.fallback),r):o.createElement(a.Image,{alt:"IM",src:t,style:c,width:s,height:s,onError:()=>d(!0)}))},$={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"}},ee={sharp:0,rounded:4,pillShaped:24},te={"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"}},oe=e=>{var{content:t,position:a,shape:i="pillShaped",colorScheme:r="theme.primary",variant:n="filled",size:l="md",styles:d}=e,s=Object.assign({width:"fit-content",borderRadius:ee[i]},$[l],{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"}}[n],a?te[a]:{},null==d?void 0:d.container);return o.createElement(C,Object.assign({role:"badge"},s),o.createElement(p,Object.assign({role:"badgeText",size:l},null==d?void 0:d.text),t))},ae={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},ie=["children","href","iconSize","underline","isHovered","isExternal","styles","setIsHovered"],re=e=>{var{children:t,href:r="/",iconSize:n="sm",underline:l="default",isHovered:d=!1,isExternal:c=!1,styles:m={icon:{},text:{}},setIsHovered:g=(()=>{})}=e,u=s(e,ie),h=()=>{"hover"===l&&g(!0)};return o.createElement(i.Link,{to:r,target:c?"_blank":"_self"},o.createElement(a.Element,Object.assign({onMouseEnter:h,onMouseLeave:h,textDecoration:d||"underline"===l?"underline !important":"none"},m.text,u),o.createElement(j,{gap:3,alignItems:"center",flexWrap:"nowrap"},t,c&&o.createElement(R,{size:ae[n],style:m.icon}))))},ne=e=>{var a=(()=>{var[e,o]=t.useState(!1);return{isHovered:e,setIsHovered:o}})();return o.createElement(re,Object.assign({},a,e))},le={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}},de={sharp:0,rounded:4,pillShaped:24},se={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}},ce={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},me={fast:50,normal:100,slow:300},ge=["size","speed","color"],ue=["size","speed","color"],he=["size","speed","color"],pe=["size","children","textColor","loaderColor","type","speed","textPosition"],be=e=>{var{size:i="md",speed:r="normal",color:n="theme.loading"}=e,l=s(e,ge),d=a.useTheme().getColor(n),c="number"==typeof i?i:ce[i],[m,g]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{g(e=>e+45)},me[r]);return()=>clearInterval(e)},[r]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:c+"px",height:c+"px",viewBox:"0 0 24 24",fill:"none",stroke:d,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+m+"deg)"}},l),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},ve=e=>{var{size:i="md",speed:r="normal",color:n="theme.loading"}=e,l=s(e,ue),d=a.useTheme().getColor(n),c="number"==typeof i?i:ce[i],[m,g]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{g(e=>e+45)},me[r]);return()=>clearInterval(e)},[r]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:c+"px",height:c+"px",style:{transform:"rotate("+m+"deg)"}},l),o.createElement("circle",{cx:"10",cy:"25",r:"4",fill:d}),o.createElement("circle",{cx:"25",cy:"25",r:"4",fill:d}),o.createElement("circle",{cx:"40",cy:"25",r:"4",fill:d}))},xe=e=>{var{size:i="md",speed:r="normal",color:n="theme.loading"}=e,l=s(e,he),d=a.useTheme().getColor(n),c="number"==typeof i?i:ce[i],[m,g]=t.useState(0);return t.useEffect(()=>{var e=setInterval(()=>{g(e=>e+45)},me[r]);return()=>clearInterval(e)},[r]),o.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:c+"px",height:c+"px",style:{transform:"rotate("+m+"deg)"}},l),o.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:d,strokeWidth:"5",strokeDasharray:"1,10"}))},je=e=>{var{size:t,children:a,textColor:i,loaderColor:r,type:n="default",speed:l="normal",textPosition:c="right"}=e,m=s(e,pe),g={size:t,speed:l,color:r},u={default:o.createElement(be,Object.assign({},g)),dotted:o.createElement(ve,Object.assign({},g)),quarter:o.createElement(xe,Object.assign({},g))};return o.createElement(C,Object.assign({gap:10,flexDirection:"top"===c||"bottom"===c?"column":"row"},m),("left"===c||"top"===c)&&a&&o.createElement(d,{color:i},a),u[n],("right"===c||"bottom"===c)&&a&&o.createElement(d,{color:i},a))},Ee=e=>o.createElement(je,Object.assign({},e)),Ce=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick","loaderProps","loaderPosition","effect","isHovered","setIsHovered"],fe=require("contrast"),we=e=>{var t,{icon:i,shadow:r,children:n,ariaLabel:l,externalHref:d,isAuto:c=!1,isFilled:m=!1,isIconRounded:g=!1,isLoading:u=!1,isDisabled:h=!1,size:p="md",variant:b="filled",iconPosition:v="left",colorScheme:x="theme.primary",shape:E="rounded",onClick:C=(()=>{}),loaderProps:f={},loaderPosition:w="left",effect:S="default",isHovered:y,setIsHovered:_=(()=>{})}=e,O=s(e,Ce),{getColor:z}=a.useTheme(),k=()=>_(!y),I=!(h||u),T={disabled:!I},H=I?x:"theme.disabled",R=y&&"hover"===S,M=y&&"reverse"===S,L="light"==fe(z(H)),V=le[p],F={filled:{backgroundColor:M?"transparent":H,color:M?L?"white":H:L?H:"white",borderWidth:1,borderStyle:"solid",borderColor:M?H:"transparent"},outline:{backgroundColor:M?H:"transparent",borderWidth:1,borderStyle:"solid",borderColor:M?H:x,color:M?"white":H},link:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:M?H:"transparent",color:H,textDecoration:M?"none":"underline"},ghost:{backgroundColor:M?H:"transparent",color:M?"white":H,borderWidth:1,borderStyle:"solid",borderColor:M?H:"transparent"}}[b],G={width:c?"fit-content":m?"100%":V.width},B=g?se[p]:le[p],D=o.createElement(j,{gap:10},u&&"left"===w&&o.createElement(Ee,Object.assign({},f)),i&&"left"===v&&!u&&i,n,i&&"right"===v&&!u&&i,u&&"right"===w&&o.createElement(Ee,Object.assign({},f)));return o.createElement(a.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center","aria-label":l,backgroundColor:H,borderRadius:de[E],onClick:null!=(t=O.onClick)?t:C,onMouseEnter:k,onMouseLeave:k,cursor:I?"pointer":"default",filter:R?"brightness(0.85)":"brightness(1)"},R&&!O.isDisabled?{transition:"transform 0.3s ease",transform:"translateY(-5px)"}:{},T,V,F,G,O.padding||O.paddingHorizontal||O.paddingVertical||O.paddingLeft||O.paddingRight||O.paddingTop||O.paddingBottom?{}:B,r,O),"link"===b&&d?o.createElement(ne,{href:d,textDecorationColor:x,colorScheme:x,isExternal:!0},D):D)},Se=e=>{var{isHovered:t,setIsHovered:a}=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),i=()=>a(!t);return o.createElement(we,Object.assign({isHovered:t,setIsHovered:a,onMouseEnter:i,onMouseLeave:i},e))},ye=["src","color"],_e=["path"],Oe=e=>{var{placeholder:t,isMulti:a,options:i}=e,r=t?a?[]:"":i[0].value,[n,l]=o.useState(!0),[d,s]=o.useState(!1),[c,m]=o.useState(!1),[g,u]=o.useState(r),[h,p]=o.useState(0);return{value:g,setValue:u,hide:n,setHide:l,isHovered:d,setIsHovered:s,isFocused:c,setIsFocused:m,highlightedIndex:h,setHighlightedIndex:p}},ze=["children","styles"],ke=e=>{var{children:t,styles:a={helperText:{}}}=e,i=s(e,ze);return o.createElement(p,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},a.helperText,i),t)},Ie=["children","helperText","error","styles"],Te=e=>{var{children:t,helperText:a,error:i=!1,styles:r}=e,n=s(e,Ie);return o.createElement(x,Object.assign({gap:5,position:"relative"},n),t,!i&&a&&o.createElement(ke,Object.assign({},r),a),i&&o.createElement(p,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},i))},He={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},Re={xs:6,sm:8,md:10,lg:12,xl:14},Me={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},Le={paddingTop:14,paddingBottom:0,paddingLeft:16,paddingRight:36},Ve={paddingTop:10,paddingBottom:4,paddingLeft:16,paddingRight:36},Fe=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],Ge=e=>{var{shadow:t,children:i,size:r="md",shape:n="default",variant:l="default",error:d=!1,isWithLabel:c=!1,isFocused:m=!1,isHovered:g=!1,isDisabled:u=!1,isReadOnly:h=!1,colorScheme:p="theme.primary",styles:b={pickerBox:{}}}=e,v=s(e,Fe);return o.createElement(j,Object.assign({gap:10,width:"100%",display:"flex",flexWrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:d?"error":!g&&!m||u?"midgray":p,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",marginBottom:5,fontSize:a.Typography.fontSizes[r],cursor:u?"not-allowed":h?"auto":"pointer"},c?Le:Ve,t,He[n],Me[l],b.box,v),i)},Be=["children"],De=e=>{var{children:t}=e,a=s(e,Be);return o.createElement(C,Object.assign({gap:10,right:16,zIndex:500,flexWrap:"nowrap",position:"absolute"},a),t)},Pe={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"],We=e=>{var{children:t,heading:i,isItalic:r=!1,isUnderlined:n=!1,isStriked:l=!1,weight:d="normal",size:c="sm"}=e,m=s(e,Ae);return o.createElement(a.Element,Object.assign({as:"label",width:"100%",fontSize:c,fontStyle:r?"italic":"normal",fontWeight:a.Typography.fontWeights[d],textDecoration:l?"line-through":n?"underline":"none"},i?Pe[i]:{},m),t)},Ne=e=>o.createElement(We,Object.assign({},e)),Ke=["children","size","error","color","styles","helperText"],Ue=e=>{var{children:t,size:a="md",error:i=!1,color:r="theme.primary",styles:n={label:{}}}=e,l=s(e,Ke);return o.createElement(Ne,Object.assign({top:6,zIndex:1e3,lineHeight:Re[a],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:i?"error":r,fontSize:Re[a]},n.label,l),t)},Ze=["children"],qe=e=>{var{children:t}=e,a=s(e,Ze);return o.createElement(x,Object.assign({width:"100%"},a),t)},Ye={xs:8,sm:10,md:12,lg:14,xl:16},Je=["isHovered","setIsHovered","option","size","callback","style"],Qe=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],Xe=["option","size","removeOption"],$e=["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","setHighlightedIndex","highlightedIndex"],et=e=>{var{isHovered:t,setIsHovered:i,option:r,size:n="md",callback:l=(()=>{}),style:d}=e,c=s(e,Je),m=()=>i(!t);return o.createElement(a.Element,Object.assign({as:"li",margin:0,paddingVertical:10,paddingHorizontal:12,listStyleType:"none",onMouseEnter:m,onMouseLeave:m,onClick:()=>(e=>l(e))(r.value),backgroundColor:t?"trueGray.100":"transparent"},c),o.createElement(p,Object.assign({fontSize:a.Typography.fontSizes[n]},d),r.label))},tt=e=>{var t,{size:i="md",styles:r={field:{},text:{}},value:n,isDisabled:l,placeholder:d,removeOption:s=(()=>{}),options:c}=e,m=Object.assign({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:a.Typography.fontSizes[i],backgroundColor:"transparent",color:l?"color.trueGray.600":"color.blueGray.700",cursor:l?"not-allowed":"auto"},r.field,r.text),g=c.find(e=>e.value===n);return o.createElement(p,Object.assign({},m),(""===n||n&&0===n.length)&&d?d:o.createElement(o.Fragment,null,"string"==typeof n?null!=(t=null==g?void 0:g.label)?t:n:n&&n.length>0&&o.createElement(j,{gap:6},n.map(e=>o.createElement(it,{key:e,option:e,removeOption:s})))))},ot=e=>{var{id:t,name:i,value:r,onChange:n,isMulti:l=!1,isDisabled:d=!1,isReadOnly:c=!1,options:m=[]}=e,g=s(e,Qe);return o.createElement(a.Element,Object.assign({id:t,name:i,as:"select",opacity:0,width:0,height:0,position:"absolute",value:r,disabled:d,readOnly:c,onChange:e=>{n&&n(e)},multiple:l},g),m.map(e=>o.createElement("option",{key:e.value,value:e.value},e.label)))},at=e=>{var{size:t,styles:i={dropDown:{}},options:r,callback:n=(()=>{}),highlightedIndex:l,setHighlightedIndex:d}=e,s=(()=>{var[e,t]=o.useState(!1);return{isHovered:e,setIsHovered:t}})(),c=e=>n(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 o.createElement(a.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e5,overflowY:"scroll",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",maxHeight:"200px",style:{scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none"}}},m,i.dropDown),r.map((e,a)=>o.createElement(et,Object.assign({key:e.value,size:t,style:i.text,option:e,callback:c,backgroundColor:a===l?"color.gray.100":"transparent",onMouseEnter:()=>d(a)},s))))},it=e=>{var{option:t,size:i="md",removeOption:r=(()=>{})}=e,n=s(e,Xe);return o.createElement(j,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:a.Typography.fontSizes[i],backgroundColor:"color.trueGray.300",onClick:e=>e.stopPropagation()},n),o.createElement(p,{size:i},t),o.createElement(k,{role:"close-button",color:"inherit",size:Ye[i],onClick:()=>r(t)}))},rt=e=>{var{id:a,name:i,label:r,value:n,placeholder:l,helperText:d,hide:c=!1,error:m=!1,isMulti:g=!1,isFocused:u=!1,isHovered:h=!1,isDisabled:p=!1,isReadOnly:b=!1,options:v=[],shadow:x={},size:j="md",colorScheme:E="theme.primary",shape:C="default",variant:f="default",styles:S={text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}},onChange:_=(()=>{}),setHide:O=(()=>{}),setValue:z=(()=>{}),setIsHovered:k=(()=>{}),setIsFocused:I=(()=>{}),setHighlightedIndex:T,highlightedIndex:H}=e,R=s(e,$e),M=!(!u||!r),L=()=>k(!h),V=t.useCallback(e=>{O(!c),g&&Array.isArray(n)?!n.includes(e)&&z([...n,e]):z(e),_&&_(e)},[c,g,n]);return o.createElement(Te,{role:"SelectBox",helperText:d,error:m,styles:S,onClick:p||b?()=>{}:e=>{e&&e.stopPropagation&&e.stopPropagation(),O(!c),I(!u)}},o.createElement(Ge,{label:r,size:j,error:m,shape:C,styles:S,shadow:x,variant:f,value:n,color:E,isHovered:h,isDisabled:p,isReadOnly:b,isFocused:u,isWithLabel:M,colorScheme:E,onMouseEnter:L,onMouseLeave:L},o.createElement(qe,null,M&&o.createElement(Ue,Object.assign({htmlFor:a,color:E,error:m},S),r),o.createElement(ot,Object.assign({id:a,name:i,options:v,onChange:_,value:n,isDisabled:p,isReadOnly:b,isMulti:g,onFocus:()=>I(!0)},R)),o.createElement(tt,{options:v,size:j,styles:S,value:n,isDisabled:p,placeholder:l,removeOption:e=>{if(Array.isArray(n)&&n.includes(e)){var t=n.filter(t=>t!==e);z(0===t.length?[]:t)}}})),o.createElement(De,null,!b&&!p&&o.createElement(o.Fragment,null,o.createElement(c?w:y,{color:"inherit",size:Ye[j],style:S.icon})))),!c&&o.createElement(at,{size:j,styles:S,options:v,callback:V,highlightedIndex:H,setHighlightedIndex:T}))},nt=e=>{var{isDisabled:t,isChecked:a}=e,[i,r]=o.useState(!1),[n,l]=o.useState(t?!t:a);return{isHovered:i,setIsHovered:r,on:n,setOn:l}},lt={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}},dt={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}},st={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}},ct=["id","name","label","inActiveChild","activeChild","labelPosition","shadow","size","colorScheme","value","isHovered","isDisabled","isReadOnly","on","setOn","onChange","setValue","setIsHovered","helperText","styles"],mt=e=>o.createElement(a.Input,Object.assign({type:"checkbox"},e)),gt=e=>{var{id:t,name:a,label:i,inActiveChild:r,activeChild:n,labelPosition:l="right",shadow:c={},size:m="sm",colorScheme:g="theme.primary",value:u=!1,isHovered:h=!1,isDisabled:p=!1,isReadOnly:b=!1,on:v,setOn:x,onChange:j,setValue:E=(()=>{}),setIsHovered:C=(()=>{}),styles:f={slider:{},circle:{},label:{}}}=e,w=s(e,ct),S=()=>C(!h),y={container:Object.assign({gap:10,display:"flex",height:"fit-content",width:"fit-content",cursor:p?"not-allowed":b?"default":"pointer"},f.label)};return o.createElement(Ne,Object.assign({htmlFor:t,onMouseEnter:S,onMouseLeave:S},y.container,w),o.createElement(mt,Object.assign({id:t,name:a,opacity:0,width:0,height:0,checked:u,onChange:e=>{b||(E(!u),x(!v),j&&j(e.target.checked))},disabled:p,readOnly:b},w)),"left"===l&&i&&o.createElement(d,null,i),o.createElement(d,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,marginBottom:5,filter:h&&u?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:p?"disabled":u?g:"lightgray",justifyContent:n?"space-between":u?"flex-end":"flex-start"},c,st[m],dt[m],f.slider),n&&u&&o.createElement(d,null,n),o.createElement(d,Object.assign({borderRadius:"50%",backgroundColor:"white"},lt[m],f.circle)),r&&!u&&o.createElement(d,null,r)),"right"===l&&i&&o.createElement(d,null,i))},ut=e=>{var{label:o,placeholder:a,value:i}=e,[r,n]=t.useState(null!=o?o:a),[l,d]=t.useState(!1),[s,c]=t.useState(i||""),[m,g]=t.useState(!1);return t.useMemo(()=>{n(m&&!s?null!=a?a:"":null!=o?o:a)},[s,m,o,a]),{hint:r,setHint:n,isHovered:l,setIsHovered:d,value:s,setValue:c,isFocused:m,setIsFocused:g}},ht=["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"],pt=e=>{var{id:t,name:i,hint:r,error:n,value:l,label:d,shadow:c,helperText:m,size:g="sm",shape:u="default",variant:h="default",colorScheme:p="theme.primary",isHovered:b=!1,isFocused:v=!1,isEditable:x=!1,isReadOnly:j=!1,isDisabled:E=!1,isAutoFocus:C=!1,isMultiline:f=!1,maxRows:w=3,maxCols:S=30,onBlur:y=(()=>{}),onChange:_,onFocus:O,onChangeText:z,setHint:k=(()=>{}),setValue:I=(()=>{}),setIsFocused:T=(()=>{}),setIsHovered:H=(()=>{}),styles:R={box:{},text:{},label:{},helperText:{},field:{}}}=e,M=s(e,ht),L=!(!v||!d),V=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:a.Typography.fontSizes[g],backgroundColor:"transparent",color:E?"color.trueGray.600":"color.blueGray.700",cursor:E?"not-allowed":"auto"},R.field),F=()=>H(!b),G=e=>{"string"==typeof e?(I(e),z&&z(e),_&&_(e)):(I(e.target.value),z&&z(e.target.value),_&&_(e.target.value))};return o.createElement(Te,{helperText:m,error:n,styles:R},o.createElement(Ge,{label:d,size:g,error:n,shape:u,styles:R,shadow:c,variant:h,value:l,color:p,isHovered:b,isDisabled:E,isReadOnly:j,isFocused:v,isWithLabel:L,colorScheme:p,onMouseEnter:F,onMouseLeave:F},o.createElement(qe,null,L&&o.createElement(Ue,Object.assign({htmlFor:t,color:p,error:n},R),d),o.createElement(a.Element,Object.assign({as:"textarea",id:t,name:i,rows:w,cols:S,value:l,readOnly:j,disabled:E,autoFocus:C,editable:x,placeholder:r,onBlur:e=>{y(e),T(!1)},onFocus:()=>{T(!0),O&&O()},multiline:f},V,M,{onChange:G,onChangeText:G})))))},bt=e=>{var{label:o,placeholder:a,value:i}=e,[r,n]=t.useState(null!=o?o:a),[l,d]=t.useState(!1),[s,c]=t.useState(!1),[m,g]=t.useState(i);return t.useMemo(()=>{n(l&&!m?null!=a?a:"":null!=o?o:a)},[m,l,o,a]),{hint:r,setHint:n,isFocused:l,setIsFocused:d,isHovered:s,setIsHovered:c,setValue:g,value:m}},vt=["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"],xt=e=>o.createElement(a.Input,Object.assign({type:"text"},e)),jt=e=>{var{id:t,name:i,label:r,hint:n,value:l,onChange:d,leftChild:c,rightChild:m,helperText:g,onChangeText:u,shadow:h={},styles:p={box:{},field:{},label:{},helperText:{},text:{}},size:b="md",shape:v="default",variant:x="default",colorScheme:j="theme.primary",error:E=!1,isFocused:C=!1,isHovered:f=!1,isDisabled:w=!1,isReadOnly:S=!1,isClearable:y=!0,isAutoFocus:_=!1,setHint:O=(()=>{}),setIsFocused:z=(()=>{}),setIsHovered:I=(()=>{}),setValue:T=(()=>{}),onClick:H=(()=>{}),onFocus:R,onBlur:M=(()=>{})}=e,L=s(e,vt),{getColor:V}=a.useTheme(),F=V("color.blueGray.700"),G=!(!C||!r),B=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:a.Typography.fontSizes[b],lineHeight:a.Typography.fontSizes[b],backgroundColor:"transparent",color:w?"color.trueGray.600":"color.blueGray.700",cursor:w?"not-allowed":"auto"},p.field),D=()=>I(!f);return o.createElement(Te,{helperText:g,error:E,styles:p},o.createElement(Ge,{label:r,size:b,error:E,shape:v,styles:p,shadow:h,variant:x,value:l,color:j,isHovered:f,isDisabled:w,isReadOnly:S,isFocused:C,isWithLabel:G,colorScheme:j,onMouseEnter:D,onMouseLeave:D},c,o.createElement(qe,null,G&&o.createElement(Ue,Object.assign({htmlFor:t,color:j,error:E},p),r),o.createElement(xt,Object.assign({id:t,name:i,readOnly:S,disabled:w,autoFocus:_,placeholder:n,onFocus:()=>{z(!0),R&&R()},onBlur:e=>{M&&M(e),z(!1)},autoComplete:"off"},B,L,{onChange:e=>{"string"==typeof e?(T(e),u&&u(e),d&&d(e)):(T(e.target.value),u&&u(e.target.value),d&&d(e.target.value))},value:l}))),(m||y&&l)&&o.createElement(De,null,y&&l&&!S&&!w&&o.createElement(k,{size:a.Typography.fontSizes[b],color:F,onClick:()=>{T(""),d&&(M({target:{name:i}}),u&&u(""),d&&d("")),"undefined"==typeof document&&u&&u("")}}),m&&o.createElement(o.Fragment,null,m))))},Et=e=>{var{defaultIsSelected:t=!1}=e,[a,i]=o.useState(!1),[r,n]=o.useState(t);return{isHovered:a,setIsHovered:i,isSelected:r,setIsSelected:n}},Ct={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}},ft={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},wt=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles","infoText","helperText"],St=e=>{var{id:t,icon:i,label:r,isChecked:n,onChange:l,onValueChange:d,shadow:c={},labelPosition:m="right",size:g="md",colorScheme:u="theme.primary",error:h=!1,isSelected:b=!1,isHovered:v=!1,isDisabled:E=!1,isReadOnly:f=!1,isIndeterminate:w=!1,defaultIsSelected:S=!1,setIsSelected:y=(()=>{}),setIsHovered:_=(()=>{}),styles:z={checkbox:{},label:{}},infoText:k}=e,I=s(e,wt),T=()=>_(!v),H={container:Object.assign({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:h?"theme.error":E?"theme.disabled":"color.blueGray.700",cursor:E?"not-allowed":f?"default":"pointer"},z.label),checkbox:Object.assign({},E?{backgroundColor:"theme.disabled"}:(n||b)&&!w||w?{backgroundColor:u}:{borderWidth:2,borderColor:h?"theme.error":v?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3},v?{filter:"brightness(0.9)"}:{},Ct[g],c,z.checkbox)};return o.createElement(Ne,Object.assign({htmlFor:t,as:"div",onClick:()=>{f||E||(y&&y(!b),l&&l(!n),d&&d(!n))},onMouseEnter:T,onMouseLeave:T,size:a.Typography.fontSizes[g]},H.container,I),o.createElement(x,{gap:8},o.createElement(j,{gap:10,alignItems:"center"},"left"===m&&r&&o.createElement(p,Object.assign({size:g},null==z?void 0:z.label),r),o.createElement(C,Object.assign({},H.checkbox),w?o.createElement(L,null):(n||b)&&(null!=i?i:o.createElement(O,{size:ft[g]}))),"right"===m&&r&&o.createElement(p,Object.assign({size:g},null==z?void 0:z.label),r)),k&&o.createElement(p,Object.assign({marginLeft:"left"===m?0:27,color:"color.gray.400",size:"sm"},null==z?void 0:z.infoText),k)))},yt=[{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"}],_t=e=>{var{placeholder:t}=e,[a,i]=o.useState(yt),[r,n]=o.useState(null!=t?t:yt[0].name),[l,d]=o.useState(!0),[s,c]=o.useState(!1),[m,g]=o.useState(!1);return{hide:l,setHide:d,newOptions:a,setNewOptions:i,isHovered:m,setIsHovered:g,isFocused:s,setIsFocused:c,value:r,setValue:n}},Ot={xs:8,sm:10,md:12,lg:14,xl:16},zt=["size"],kt=["size"],It=["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"],Tt=e=>{var t=s(e,zt);return o.createElement(a.Element,Object.assign({as:"ul"},t))},Ht=e=>o.createElement(a.Input,Object.assign({type:"country"},e)),Rt=e=>{var t=s(e,kt);return o.createElement(a.Element,Object.assign({as:"li"},t))},Mt=e=>{var{option:i,size:r="md",callback:n=(()=>{}),styles:l={text:{}}}=e,[d,s]=t.useState(!1),c=()=>s(!d);return o.createElement(Rt,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:c,onMouseLeave:c,onClick:e=>{e&&e.stopPropagation&&e.stopPropagation(),n(i)},fontSize:a.Typography.fontSizes[r],backgroundColor:d?"trueGray.100":"transparent"},l.text),i)},Lt=e=>{var{size:t,styles:a={dropDown:{}},options:i,callback:r=(()=>{})}=e,n=e=>r(e);return o.createElement(Tt,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"},a.dropDown),i.map(e=>o.createElement(Mt,Object.assign({key:e.code,size:t,option:e.name,callback:n},a.text))))},Vt=e=>{var{id:t,name:i,label:r,value:n,placeholder:l,helperText:d,hide:c=!1,error:m=!1,isHovered:g=!1,isFocused:u=!1,isAutoFocus:h=!1,isDisabled:p=!1,isReadOnly:b=!1,shadow:v={},newOptions:x=[],size:j="md",variant:E="default",shape:C="default",colorScheme:f="theme.primary",onChange:S,onBlur:_=(()=>{}),setHide:O=(()=>{}),setNewOptions:z=(()=>{}),setIsHovered:k=(()=>{}),setIsFocused:I=(()=>{}),setValue:T=(()=>{}),styles:H={text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}}=e,R=s(e,It),{getColor:M}=a.useTheme(),L=M("color.blueGray.700"),V=()=>k(!g),F=!(!u||!r),G=Object.assign({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:a.Typography.fontSizes[j],backgroundColor:"transparent",color:p?"color.trueGray.600":"color.blueGray.700",cursor:p?"not-allowed":"auto"},H.field);return o.createElement(Te,{helperText:d,error:m,styles:H,onClick:()=>{p||b||O(!c)}},o.createElement(Ge,{label:r,size:j,error:m,shape:C,styles:H,shadow:v,variant:E,value:n,color:f,isHovered:g,isDisabled:p,isReadOnly:b,isFocused:u,isWithLabel:F,colorScheme:f,onMouseEnter:V,onMouseLeave:V},o.createElement(qe,null,F&&o.createElement(Ue,Object.assign({htmlFor:t,color:f,error:m},H),r),o.createElement(Ht,Object.assign({id:t,name:i,placeholder:l,readOnly:b,disabled:p,autoFocus:h,onBlur:e=>{_(e),I(!1)},onFocus:()=>I(!0)},G,R,{value:n,onChange:e=>{var t=e.target.value,o=yt.filter(e=>e.name.toLowerCase().startsWith(t.toLowerCase()));c&&O(!1),z(o),S&&S(t)}}))),o.createElement(De,null,o.createElement(c?w:y,{size:Ot[j],color:L,style:H.icon}))),!c&&o.createElement(Lt,{size:j,styles:H,options:x,callback:e=>{O(!c),T(e),S&&S(e)}}))},Ft=()=>{var[e,t]=o.useState(!1),[a,i]=o.useState(!1),[n,l]=o.useState(r(new Date,"yyyy-MM-dd"));return{date:n,setDate:l,isHovered:e,setIsHovered:t,isFocused:a,setIsFocused:i}},Gt=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Bt=e=>o.createElement(a.Input,Object.assign({type:"date"},e)),Dt=e=>{var{id:t,name:i,label:r,date:n,helperText:l,shadow:d={},size:c="md",variant:m="default",shape:g="default",colorScheme:u="theme.primary",styles:h={box:{},label:{},helperText:{},text:{},field:{}},error:p=!1,isHovered:b=!1,isFocused:v=!1,isDisabled:x=!1,isReadOnly:j=!1,setDate:E=(()=>{}),setIsFocused:C=(()=>{}),setIsHovered:f=(()=>{}),onChange:w,onChangeText:S}=e,y=s(e,Gt),_=!(!v||!r),O=()=>f(!b),z=e=>{"string"==typeof e?(E(e),S&&S(e)):(E(e.target.value),w&&w(e.target.value))},k=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:a.Typography.fontSizes[c],backgroundColor:"transparent",color:x?"color.trueGray.600":"color.blueGray.700",cursor:x?"not-allowed":j?"auto":"pointer"},h.field);return o.createElement(Te,{helperText:l,error:p,styles:h},o.createElement(Ge,{label:r,size:c,error:p,shape:g,styles:h,shadow:d,variant:m,value:n,color:u,isHovered:b,isDisabled:x,isReadOnly:j,isFocused:v,isWithLabel:_,colorScheme:u,onMouseEnter:O,onMouseLeave:O},o.createElement(qe,null,_&&o.createElement(Ue,Object.assign({htmlFor:t,color:u,error:p},h),r),o.createElement(Bt,Object.assign({id:t,name:i,onFocus:()=>C(!0),disabled:x,readOnly:j},k,y,S&&{onChangeText:z},{onChange:z})))))},Pt=e=>{var o=bt(e),[a,i]=t.useState(!1);return Object.assign({isVisible:a,setIsVisible:i},e,o)},At=["visibleIcon","hiddenIcon"],Wt=["isVisible","setIsVisible"],Nt=(e,o,a)=>{var[i,r]=t.useState(e),[n,l]=t.useState(o?{value:o,label:o}:e[0]),[d,s]=t.useState(0),[c,m]=t.useState(null!=a?a:""),[g,u]=t.useState(!1);return{filteredItems:i,setFilteredItems:r,selectedItem:n,setSelectedItem:l,highlightedIndex:d,setHighlightedIndex:s,searchQuery:c,setSearchQuery:m,isDropdownVisible:g,setIsDropdownVisible:u}},Kt=["size","color"],Ut=e=>{var{size:t=16,color:a="#c0c0c0"}=e,i=s(e,Kt);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -0.5 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"}," ",o.createElement("path",{d:"M5.5 12.5L10.167 17L19.5 8",stroke:"#444444",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},Zt=["size","color"],qt=e=>{var{size:t=14,color:a="#c0c0c0"}=e,i=s(e,Zt);return o.createElement(C,{width:t+"px",height:t+"px"},o.createElement("svg",Object.assign({fill:"#c0c0c0",width:t+"px",height:t+"px",version:"1.1",id:"Capa_1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 488.4 488.4",stroke:a},i),o.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"9.279599999999999"}),o.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),o.createElement("g",{id:"SVGRepo_iconCarrier"},o.createElement("g",null,o.createElement("g",null,o.createElement("path",{d:"M0,203.25c0,112.1,91.2,203.2,203.2,203.2c51.6,0,98.8-19.4,134.7-51.2l129.5,129.5c2.4,2.4,5.5,3.6,8.7,3.6 s6.3-1.2,8.7-3.6c4.8-4.8,4.8-12.5,0-17.3l-129.6-129.5c31.8-35.9,51.2-83,51.2-134.7c0-112.1-91.2-203.2-203.2-203.2 S0,91.15,0,203.25z M381.9,203.25c0,98.5-80.2,178.7-178.7,178.7s-178.7-80.2-178.7-178.7s80.2-178.7,178.7-178.7 S381.9,104.65,381.9,203.25z"})," ")))))},Yt=["placeholder","items","showTick","onSelect","searchEnabled","left","right","label","filteredItems","setSelectedItem","selectedItem","highlightedIndex","setHighlightedIndex","searchQuery","setSearchQuery","setFilteredItems","styles","isDropdownVisible","setIsDropdownVisible"],Jt=e=>{var{placeholder:a,items:i,showTick:r=!0,onSelect:n,searchEnabled:l=!0,left:c,right:m,label:g,filteredItems:u,setSelectedItem:h,selectedItem:b,highlightedIndex:v,setHighlightedIndex:x,searchQuery:E,setSearchQuery:C,setFilteredItems:f,styles:w,isDropdownVisible:S,setIsDropdownVisible:y}=e,_=s(e,Yt);return t.useEffect(()=>{var e=e=>{!e.composedPath().some(e=>"combobox-dropdown"===(null==e?void 0:e.id))&&y(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),o.createElement(j,Object.assign({role:"combobox",flexWrap:"nowrap",gap:15,alignItems:"center",width:"100%"},_),g&&o.createElement(p,{styles:null==w?void 0:w.label,htmlFor:_.id},g),o.createElement(d,{position:"relative"},o.createElement(j,Object.assign({cursor:"pointer",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.16) 0px 1px 4px",padding:"12px",display:"flex",alignItems:"center",borderRadius:"4px",justifyContent:"space-between",minWidth:300,flexWrap:"nowrap"},null==w?void 0:w.container),o.createElement(j,Object.assign({gap:15,alignItems:"center",position:"relative",width:"100%",onClick:()=>y(!S)},null==w?void 0:w.labelContainer),c,o.createElement(p,Object.assign({weight:"medium",flexGrow:1},null==w?void 0:w.label),b.label)),m,S&&o.createElement(d,Object.assign({id:"combobox-dropdown",position:"absolute",backgroundColor:"white",boxShadow:"rgba(0, 0 ,0 ,0.16) 0px 1px 4px",width:"100%",overflowY:"auto",zIndex:1e4,bottom:-8,left:0,transform:"translateY(100%)",marginTop:"4px",borderRadius:"4px"},null==w?void 0:w.dropdown),l&&o.createElement(jt,{id:_.id,name:_.name,width:"100%",type:"search",value:E,onChange:e=>(e=>{if(C(e),""===e)f(i);else{var t=i.filter(t=>t.label.toLowerCase().includes(e.toLowerCase()));f(t)}x(0)})(e),hint:a,isClearable:!1,leftChild:o.createElement(qt,{size:12}),styles:{box:Object.assign({width:"100%",padding:"6px 12px",borderBottom:u.length>0?"1px solid #ccc":"1px solid transparent"},null==w?void 0:w.text)}}),u.length>0&&o.createElement(d,{margin:0,padding:4},u.map((e,t)=>o.createElement(j,Object.assign({justifyContent:"space-between",key:e.value,padding:"12px",cursor:"pointer",borderRadius:4,backgroundColor:t===v?"color.gray.100":"transparent",onMouseEnter:()=>x(t),onClick:()=>(e=>{h(e),null==n||n(e),y(!1)})(e)},null==w?void 0:w.item),o.createElement(p,null,e.label),o.createElement(o.Fragment,null,e.icon&&e.icon,e.value===b.value&&r&&!e.icon&&o.createElement(Ut,null)))))))))},Qt=["id","name","items","placeholder","searchPlaceholder"],Xt=["children","autoFocus","initFocus","onChange"],$t=t.createContext({active:!1,focusNextInput:()=>{},setInputRef:()=>{},handleSubmitEditing:()=>{},getReturnKeyType:()=>"next"}),eo=["name","type"],to=e=>{var{name:o,type:a}=e,i=s(e,eo),r=t.useContext($t),{touched:l,errors:d,submitCount:c,values:m,setFieldTouched:g,setFieldValue:u}=n.useFormikContext(),h=e=>{"Enter"===e.key&&(e.preventDefault(),r.focusNextInput(o))},p=["text","password","email","digits"].includes(a),b=n.getIn(l,o)||c>0?n.getIn(d,o):void 0,v=n.getIn(m,o);return Object.assign({},(e=>{switch(e){case"email":return{autoCorrect:"off",inputMode:"email",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{inputMode:"tel"};case"numeric":return{inputMode:"numeric"};case"name":return{autoCorrect:"off"};default:return{}}})(a),i,{value:v,error:b,onBlur:()=>{g(o,!0)},onKeyPress:h},p?{onChangeText:e=>{u(o,e),null==i.onChangeText||i.onChangeText(e)}}:{onChange:e=>{u(o,e),null==i.onChange||i.onChange(e)}},r.active?{handleKeyPress:h}:{})},oo=["value"],ao=["value"],io=["visibleIcon","hiddenIcon"],ro=["isVisible","setIsVisible"],no=["items","placeholder","searchPlaceholder"],lo=l.create(e=>({visible:!1,title:"",subtitle:"",variant:"info",isClosable:!1,styles:{},action:()=>{},actionText:"",showIcon:!1,timeout:3e3,show:function(t,o,a,i,r,n,l,d,s){return void 0===o&&(o=""),void 0===a&&(a=""),e({visible:!0,variant:t,title:o,subtitle:a,isClosable:i,styles:r,action:n,actionText:l,showIcon:d,timeout:s})},hide:()=>e({visible:!1})})),so=()=>{lo.getState().hide()},co={info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},icon:{color:"color.blue.500",name:"InformationSvg"},content:{color:"color.blue.500"},close:{color:"color.blue.500",name:"CloseSvg"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},icon:{color:"color.green.500",name:"CheckCircleSvg"},content:{color:"color.green.500"},close:{color:"color.green.500",name:"CloseSvg"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},icon:{color:"color.red.500",name:"ErrrorSvg"},content:{color:"color.red.500"},close:{color:"color.red.500",name:"CloseSvg"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},icon:{color:"color.orange.500",name:"ErrrorSvg"},content:{color:"color.orange.500"},close:{color:"color.orange.500",name:"CloseSvg"}}},mo=e=>{var a,i,{variant:r,hide:n,title:l,subtitle:s,theme:c,action:m,actionText:g,showIcon:u=!1,isClosable:h=!1,timeout:b=3e3,styles:v}=e;t.useEffect(()=>{if(b&&!h){var e=setTimeout(()=>{n()},b);return()=>{clearTimeout(e)}}},[]);var E=null!=c?c:co,C=!(!m||!g),f={borderWidth:1,borderStyle:"solid",borderRadius:8,borderColor:""+E[r].container.border},w={info:"#3b82f6",success:"#4ade80",warning:"#f97316",error:"#ef4444"}[r],S={info:o.createElement(W,Object.assign({size:24,color:w},null==v?void 0:v.icon)),success:o.createElement(P,Object.assign({size:24,color:w},null==v?void 0:v.icon)),warning:o.createElement(B,Object.assign({size:24,color:w},null==v?void 0:v.icon)),error:o.createElement(K,Object.assign({size:24,color:w},null==v?void 0:v.icon))}[r],y=u&&S;return o.createElement(j,Object.assign({role:"messageContent",gap:16,width:400,flexWrap:"nowrap",position:"relative",alignItems:"center",padding:"14px 24px 14px 14px",color:""+E[r].content.color,backgroundColor:""+E[r].container.backgroundColor,onClick:h?()=>{}:()=>{n()}},f,null==v?void 0:v.container),y&&S,o.createElement(x,{gap:8,width:"100%"},o.createElement(p,Object.assign({size:"md",weight:"semiBold"},null==v?void 0:v.title),l),s&&o.createElement(p,Object.assign({size:"sm"},null==v?void 0:v.subtitle),s)),C&&o.createElement(p,Object.assign({marginRight:10,onClick:m,padding:"6px 10px",whiteSpace:"nowrap"},f,null==v?void 0:v.actionText),g),h&&o.createElement(d,Object.assign({position:"absolute",zIndex:1e4,right:8,top:6,onClick:()=>{n()}},null==v||null==(a=v.closingIcon)?void 0:a.container),o.createElement(k,Object.assign({size:18,color:w},null==v||null==(i=v.closingIcon)?void 0:i.icon))))},go=l.create(e=>({modal:!1,modalProps:{isVisible:!1},overlayProps:{},show:function(t,o,a){void 0===o&&(o={}),void 0===a&&(a={}),t&&(o.isVisible=!0),e(e=>Object.assign({},e,{modal:t,modalProps:o,overlayProps:a}))},hide:()=>{e(e=>Object.assign({},e,{modalProps:Object.assign({},e.modalProps,{isVisible:!1})}))}})),uo=()=>{go.getState().hide()},ho={sharp:{borderRadius:0},rounded:{borderRadius:4}},po={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},bo={xs:12,sm:16,md:20,lg:24,xl:28},vo=["children","blur","isOpen","isClosePrevented","onClose","position"],xo=["children","shadow","isFullScreen","shape"],jo=["children","buttonColor","iconSize","buttonPosition"],Eo=["children"],Co=["children"],fo=e=>{var{children:t,blur:a,isOpen:i=!1,isClosePrevented:r=!1,onClose:n=(()=>{}),position:l="center"}=e,c=s(e,vo),m=()=>{r||n()};return o.createElement(C,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:m,visibility:i?"visible":"hidden"},o.createElement(d,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"color.blackAlpha.500",backdropFilter:a?"blur("+a+"px)":void 0,onClick:m},po[l],c),t))},wo=e=>{var{children:t}=e;return o.createElement(o.Fragment,null,t)};wo.Overlay=fo,wo.Container=e=>{var{children:t,shadow:a,isFullScreen:i=!1,shape:r="rounded"}=e,n=s(e,xo),l=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 o.createElement(x,Object.assign({cursor:"default",backgroundColor:"white",width:i?"100%":600,height:i?"100%":"fit-content",onClick:e=>{e&&e.stopPropagation&&e.stopPropagation()}},a||l,ho[r],n),t)},wo.Header=e=>{var{children:t,buttonColor:a="theme.primary",iconSize:i="md",buttonPosition:r="right"}=e,n=s(e,jo),l=o.createElement(Se,{onClick:n.onClose?n.onClose:uo,colorScheme:"transparent",icon:o.createElement(k,{size:bo[i],color:a}),padding:0,margin:0,filter:"none",width:0});return o.createElement(j,Object.assign({justifyContent:"none"===r?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},n),"left"===r&&l,t,"right"===r&&l)},wo.Body=e=>{var{children:t}=e,a=s(e,Eo);return o.createElement(d,Object.assign({paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},a),t)},wo.Footer=e=>{var{children:t}=e,a=s(e,Co);return o.createElement(j,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},a),t)},wo.Layout=e=>{var{modals:a}=e,i=go(e=>{var{modal:t,modalProps:o,overlayProps:a}=e;return{modal:t,modalProps:o,overlayProps:a}});if("boolean"==typeof i.modal)return null;var r=a[i.modal];return r?o.createElement(t.Fragment,null,o.createElement(fo,Object.assign({isOpen:i.modalProps.isVisible,onClose:uo,blur:10},i.overlayProps),void 0!==r&&o.createElement(r,Object.assign({},i.modalProps)))):(console.error(i.modal+" modal doesn't exist"),null)};var So={},yo=o.createContext(So),_o=e=>{var{children:t,styles:a=So}=e;return o.createElement(yo.Provider,{value:a},t)},Oo=()=>o.useContext(yo),zo=e=>{var t=Oo();return o.createElement(a.Element,Object.assign({as:"table",borderCollapse:"collapse"},t.table,e))},ko=e=>{var t=Oo();return o.createElement(a.Element,Object.assign({as:"thead",borderBottom:"0.5px solid #ddd",textAlign:"left",color:"color.gray.400"},t.thead,e))},Io=e=>{var t=Oo();return o.createElement(a.Element,Object.assign({as:"th",padding:"14px",whiteSpace:"nowrap",fontWeight:"500"},t.th,e))},To=e=>{var t=Oo();return o.createElement(a.Element,Object.assign({as:"tr"},t.tr,e))},Ho=e=>{var t=Oo();return o.createElement(a.Element,Object.assign({as:"td",padding:"14px",whiteSpace:"nowrap",fontWeight:e.isFirstColumn?"400":"300"},t.td,e))},Ro=e=>{var t=Oo();return o.createElement(a.Element,Object.assign({as:"tbody"},t.tbody,e))},Mo=e=>{var t=Oo();return o.createElement(a.Element,Object.assign({as:"tfoot"},t.tfoot,e))},Lo=e=>{var t=Oo();return o.createElement(a.Element,Object.assign({as:"caption",margin:"10px 0",color:"color.gray.400"},t.caption,e))},Vo=e=>{var{children:t,styles:a}=e;return o.createElement(_o,{styles:a},t)};Vo.Head=ko,Vo.HeadCell=Io,Vo.Body=Ro,Vo.Row=To,Vo.Cell=Ho,Vo.Footer=Mo,Vo.Caption=Lo,Vo.Container=zo,Vo.Template=e=>{var{data:t,columns:a,footer:i,caption:r}=e;return o.createElement(zo,{role:"Table"},r&&o.createElement(Lo,null,r),o.createElement(ko,null,o.createElement(To,null,a.map(e=>o.createElement(Io,{key:e.field},e.title)))),o.createElement(Ro,null,t.map((e,t)=>o.createElement(To,{key:t},a.map((t,a)=>o.createElement(Ho,{key:t.field,isFirstColumn:0===a},e[t.field]))))),i&&o.createElement(Mo,null,o.createElement(To,null,i.map((e,t)=>o.createElement(Ho,Object.assign({key:t},e.props),e.value)))))};var Fo=e=>{var{tabs:t,styles:a,isActive:i,setIsActive:r,tabsState:n,setTabsState:l}=e;return o.createElement(j,Object.assign({width:"100w",height:"100%"},null==a?void 0:a.container),o.createElement(j,Object.assign({marginBottom:20},null==a?void 0:a.headerTabs),t.map((e,n)=>o.createElement(Se,Object.assign({key:e.title,onClick:()=>{(e=>{var o=[...t],a=o.splice(e,1);o.unshift(a[0]),l(o),r(o[0])})(n)},variant:i.value===e.value?"filled":"ghost",shape:"pillShaped",cursor:"pointer",isAuto:!0},null==a?void 0:a.tab,i.value===e.value?null==a?void 0:a.activeTab:{}),o.createElement(p,Object.assign({},null==a?void 0:a.title,i.value===e.value?null==a?void 0:a.activeText:{}),e.title)))),o.createElement(d,Object.assign({width:"100%",height:"100%"},null==a?void 0:a.content),n.map((e,t)=>(e=>e.value===n[0].value)(e)&&o.createElement(d,{key:t},e.content))))},Go=o.memo(e=>{var{tabs:a,styles:i}=e,{isActive:r,setIsActive:n,tabsState:l,setTabsState:d}=(e=>{var[o,a]=t.useState(e[0]),[i,r]=t.useState(e);return{isActive:o,setIsActive:a,tabsState:i,setTabsState:r}})(a);return o.createElement(Fo,{tabs:a,styles:i,isActive:r,tabsState:l,setTabsState:d,setIsActive:n})}),Bo={sharp:0,rounded:4,pillShaped:24},Do=["children","shape","colorScheme","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle"],Po=e=>{var{children:t,shape:a="rounded",colorScheme:i="color.trueGray.400",variant:r="ghost",isHovered:n,setIsHovered:l,isDisabled:d,isToggle:c,setIsToggled:m,onToggle:g}=e,u=s(e,Do),h=d?"theme.disabled":i,p=!(!c&&!n);return o.createElement(C,Object.assign({role:"Toggle",padding:"pillShaped"===a?"10px 12px":"8px",width:"fit-content",color:p?"color.white":h,backgroundColor:p?h:"transparent",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),cursor:d?"not-allowed":"pointer",borderRadius:Bo[a],onClick:()=>{d||m(e=>{var t=!e;return g&&g(t),t})}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:i},link:{borderWidth:1,borderStyle:"solid",borderColor:p?h:"transparent",textDecoration:"underline"},ghost:{}}[r],u),t)},Ao=["children","shape","colorScheme","variant","isDisabled","isToggled","onToggle"],Wo=e=>{var{children:a,shape:i,colorScheme:r,variant:n,isDisabled:l,isToggled:d=!1,onToggle:c}=e,m=s(e,Ao),{isHovered:g,setIsHovered:u,isToggle:h,setIsToggled:p}=(e=>{var[o,a]=t.useState(!1),[i,r]=t.useState(e);return{isHovered:o,setIsHovered:a,isToggle:i,setIsToggled:r}})(d);return t.useEffect(()=>{p(d)},[d]),o.createElement(Po,Object.assign({shape:i,colorScheme:r,variant:n,isDisabled:l,isHovered:g,setIsHovered:u,isToggle:h,setIsToggled:p,onToggle:c},m),a)},No=e=>{var{items:a,onToggleChange:i,activeToggles:r,setActiveToggles:n,shape:l="rounded",variant:d="ghost",colorScheme:s="color.trueGray.400"}=e,c=t.useCallback((e,t)=>{n(o=>{var a;return a=t?o.includes(e)?o:[...o,e]:o.filter(t=>t!==e),null==i||i(a),a})},[i,n]);return o.createElement(j,{role:"ToggleGroup",display:"flex",gap:5},a.map(e=>o.createElement(Wo,{role:"toggle-"+e.id,key:e.id,colorScheme:s,shape:l,variant:d,isToggled:r.includes(e.id)||e.isActive,onToggle:t=>c(e.id,t),isDisabled:e.isDisabled},e.value)))};exports.Alert=e=>{var{icon:t,title:a,styles:i,description:r,variant:n}=e;return o.createElement(Z,{icon:t,title:a,styles:i,description:r,variant:n})},exports.AspectRatio=e=>{var{ratio:t,children:a}=e,i=s(e,J);return o.createElement(Y,Object.assign({ratio:t},i),a)},exports.Avatar=e=>{var{src:a,size:i,styles:r,fallback:n}=e,{imageError:l,setImageError:d}=(()=>{var[e,o]=t.useState(!1);return{imageError:e,setImageError:o}})();return o.createElement(X,{src:a,size:i,styles:r,fallback:n,imageError:l,setImageError:d})},exports.Badge=e=>{var{content:t,shape:a,colorScheme:i,position:r,variant:n,size:l,styles:d}=e;return o.createElement(oe,{content:t,shape:a,colorScheme:i,position:r,variant:n,size:l,styles:d})},exports.Bottom=e=>o.createElement(a.View,Object.assign({marginTop:"auto"},e)),exports.Button=Se,exports.Center=C,exports.Checkbox=e=>{var t=Et(e);return o.createElement(St,Object.assign({},t,e))},exports.ComboBox=e=>{var{id:t,name:a,items:i,placeholder:r,searchPlaceholder:n}=e,l=s(e,Qt),d=Nt(i,r,n);return o.createElement(Jt,Object.assign({id:t,name:a,items:i},d,l))},exports.CountryPicker=e=>{var t=_t(e);return o.createElement(Vt,Object.assign({},t,e))},exports.DatePicker=e=>{var t=Ft();return o.createElement(Dt,Object.assign({},t,e))},exports.FileImage=e=>{var{path:t}=e,i=s(e,_e);return o.createElement(a.Image,Object.assign({src:t},i))},exports.FileSVG=e=>{var{src:t,color:i}=e,r=s(e,ye),{getColor:n}=a.useTheme(),l=i?{fill:n(i),stroke:n(i)}:{};return o.createElement(C,Object.assign({},r),o.createElement(a.Image,Object.assign({},l,{content:'url("'+t+'")',width:"100%",height:"100%"})))},exports.FormikCheckbox=e=>{var t=to(e),{value:a}=t,i=s(t,oo);i.isChecked=a;var r=Et(e);return o.createElement(St,Object.assign({},r,i))},exports.FormikComboBox=e=>{var{items:t,placeholder:a,searchPlaceholder:i}=e,r=s(e,no),n=to(r),l=Nt(t,a,i);return o.createElement(Jt,Object.assign({},l,n,{onSelect:e=>{n.onChange(e)}}))},exports.FormikCountryPicker=e=>{var t=to(e),a=_t(e);return o.createElement(Vt,Object.assign({},a,t))},exports.FormikDatePicker=e=>{var t=to(e),a=Ft();return o.createElement(Dt,Object.assign({},a,t))},exports.FormikForm=e=>{var{children:i,autoFocus:r=!1,initFocus:l,onChange:d=(()=>{})}=e,c=s(e,Xt),m=n.useFormikContext();t.useEffect(()=>{d(m.values)},[m.values]);var g=t.useRef({}),u=t.useRef([]),h=e=>{if(r){var t,o=u.current.indexOf(e)+1;o<u.current.length?null==(t=g.current[u.current[o]])||t.focus():m.onSubmit&&m.onSubmit(m.values)}},p={active:r,focusNextInput:h,setInputRef:(e,t)=>{g.current[e]=t,u.current.includes(e)||u.current.push(e)},handleSubmitEditing:h,getReturnKeyType:e=>u.current.indexOf(e)===u.current.length-1?"done":"next"};return t.useEffect(()=>{var e;if(r)if(l&&g.current[l])null==(e=g.current[l])||e.focus();else if(u.current[0]){var t;null==(t=g.current[u.current[0]])||t.focus()}},[r,l]),o.createElement($t.Provider,{value:p},o.createElement(a.Form,Object.assign({},c),i))},exports.FormikPassword=e=>{var{visibleIcon:t=o.createElement(F,{size:14}),hiddenIcon:i=o.createElement(T,{size:14})}=e,r=s(e,io),n=to(r),l=Pt(n),{isVisible:d,setIsVisible:c}=l,m=s(l,ro);return o.createElement(jt,Object.assign({},m,{type:d?"text":"password",isClearable:!1,rightChild:o.createElement(a.View,{onClick:()=>{r.isDisabled||c(!d)}},d?t:i)}))},exports.FormikSelect=e=>{var t=to(e);t.selected=t.value;var a=Oe(e);return o.createElement(rt,Object.assign({},a,t))},exports.FormikSwitch=e=>{var t=to(e),a=nt(e);return o.createElement(gt,Object.assign({},a,t))},exports.FormikTextArea=e=>{var t=to(e),a=ut(e);return o.createElement(pt,Object.assign({},a,t))},exports.FormikTextField=e=>{var t=to(e),a=s(bt(e),ao);return o.createElement(jt,Object.assign({},a,t))},exports.Horizontal=j,exports.Inline=e=>o.createElement(a.View,Object.assign({display:"inline-flex",wordBreak:"break-word"},e)),exports.Left=e=>o.createElement(a.View,Object.assign({marginRight:"auto"},e)),exports.Link=ne,exports.Loader=Ee,exports.MessageLayout=e=>{var{container:t,theme:a,position:i="topRight"}=e,{visible:r,title:n,variant:l,subtitle:s,isClosable:c,styles:m,action:g,actionText:u,showIcon:h,timeout:p}=lo(),b={topLeft:{top:6,left:8},topRight:{top:6,right:8},bottomLeft:{bottom:8,left:6},bottomRight:{bottom:8,right:6}}[i],v=()=>o.createElement(mo,{variant:l,subtitle:s,show:r,title:n,theme:a,isClosable:c,styles:m,action:g,actionText:u,showIcon:h,timeout:p,hide:()=>so()}),x=t?o.cloneElement(t,{},v()):o.createElement(d,Object.assign({position:"absolute",zIndex:1e4},b),v());return r?x:null},exports.MessageView=mo,exports.Modal=wo,exports.Password=e=>{var{visibleIcon:t=o.createElement(F,{size:14}),hiddenIcon:i=o.createElement(T,{size:14})}=e,r=s(e,At),n=Pt(r),{isVisible:l,setIsVisible:d}=n,c=s(n,Wt);return o.createElement(jt,Object.assign({},c,{type:l?"text":"password",isClearable:!1,rightChild:o.createElement(a.View,{onClick:()=>{r.isDisabled||d(!l)}},l?t:i)}))},exports.Right=e=>o.createElement(a.View,Object.assign({marginLeft:"auto"},e)),exports.Select=e=>{var t=Oe(e);return o.createElement(rt,Object.assign({},t,e))},exports.Switch=e=>{var t=nt(e);return o.createElement(gt,Object.assign({},t,e))},exports.Table=Vo,exports.Tabs=Go,exports.Text=p,exports.TextArea=e=>{var t=ut(e);return o.createElement(pt,Object.assign({},t,e))},exports.TextField=e=>{var t=bt(e);return o.createElement(jt,Object.assign({},t,e))},exports.Toggle=Wo,exports.ToggleGroup=e=>{var{items:a,shape:i,colorScheme:r,variant:n,onToggleChange:l}=e,{activeToggles:d,setActiveToggles:s}=(()=>{var[e,o]=t.useState([]);return{activeToggles:e,setActiveToggles:o}})();return o.createElement(No,{items:a,shape:i,colorScheme:r,variant:n,activeToggles:d,setActiveToggles:s,onToggleChange:l})},exports.Top=e=>o.createElement(a.View,Object.assign({marginBottom:"auto"},e)),exports.Vertical=x,exports.View=d,exports.hideMessage=so,exports.hideModal=uo,exports.showMessage=(e,t,o,a)=>{lo.getState().show(e,t,o,null==a?void 0:a.isClosable,null==a?void 0:a.styles,null==a?void 0:a.action,null==a?void 0:a.actionText,null==a?void 0:a.showIcon,null==a?void 0:a.timeout)},exports.showModal=function(e,t,o){void 0===t&&(t={}),void 0===o&&(o={}),go.getState().show(e,t,o)},exports.useMessageStore=lo,exports.useModalStore=go;
|
|
2
2
|
//# sourceMappingURL=web.cjs.production.min.js.map
|