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