@app-studio/web 0.3.25 → 0.3.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),i=e(o),t=require("app-studio"),n=require("react-router-dom"),a=e(require("date-fns/format")),d=require("zustand");function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(this,arguments)}function l(e,o){if(null==e)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)o.indexOf(i=a[t])>=0||(n[i]=e[i]);return n}var c=t.View,s=["children","wrap","justify","isReversed"],m=function(e){var o=e.children,t=e.wrap,n=void 0===t?"wrap":t,a=e.justify,d=void 0===a?"flex-start":a,r=e.isReversed,m=void 0!==r&&r,u=l(e,s);return i.createElement(c,Object.assign({display:"flex",flexWrap:n,flexDirection:m?"row-reverse":"row",justifyContent:d},u),o)},u=function(e){return i.createElement(m,Object.assign({},e))},h=["children","wrap"],g=function(e){var o=e.children,t=e.wrap,n=l(e,h);return i.createElement(c,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:t},n),o)},p=function(e){return i.createElement(g,Object.assign({},e))},v=["size","color"],f=function(e){var o=e.size,t=void 0===o?64:o,n=l(e,v);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_down [#338]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-220.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M164.292308,6524.36583 L164.292308,6524.36583 C163.902564,6524.77071 163.902564,6525.42619 164.292308,6525.83004 L172.555873,6534.39267 C173.33636,6535.20244 174.602528,6535.20244 175.383014,6534.39267 L183.70754,6525.76791 C184.093286,6525.36716 184.098283,6524.71997 183.717533,6524.31405 C183.328789,6523.89985 182.68821,6523.89467 182.29347,6524.30266 L174.676479,6532.19636 C174.285736,6532.60124 173.653152,6532.60124 173.262409,6532.19636 L165.705379,6524.36583 C165.315635,6523.96094 164.683051,6523.96094 164.292308,6524.36583",id:"arrow_down-[#338]"})))))))},b=["size","color"],j=function(e){var o=e.size,t=void 0===o?64:o,n=l(e,b);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_up [#337]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-260.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M223.707692,6534.63378 L223.707692,6534.63378 C224.097436,6534.22888 224.097436,6533.57338 223.707692,6533.16951 L215.444127,6524.60657 C214.66364,6523.79781 213.397472,6523.79781 212.616986,6524.60657 L204.29246,6533.23165 C203.906714,6533.6324 203.901717,6534.27962 204.282467,6534.68555 C204.671211,6535.10081 205.31179,6535.10495 205.70653,6534.69695 L213.323521,6526.80297 C213.714264,6526.39807 214.346848,6526.39807 214.737591,6526.80297 L222.294621,6534.63378 C222.684365,6535.03868 223.317949,6535.03868 223.707692,6534.63378",id:"arrow_up-[#337]"})))))))},x=["size","color"],_=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,x);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"0.048"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M17.0001 9L10 16L7 13",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},S=["size","color"],y=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,S);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fill:a,d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"}))))},E=["size","color"],w=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,E);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({fill:a,width:t+"px",height:t+"px",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",stroke:a},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"}),i.createElement("path",{d:"M40 20h-2v-8h-8v-2h10z"}),i.createElement("path",{d:"M35 38H15c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h11v2H15c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h20c.6 0 1-.4 1-1V24h2v11c0 1.7-1.3 3-3 3z"}))))},C=["size","color"],z=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,C);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M7 12L17 12",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},O={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},I=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],H=function(e){var o=e.children,a=e.href,d=void 0===a?"/":a,r=e.iconSize,c=void 0===r?"sm":r,s=e.underline,m=void 0===s?"default":s,h=e.isHovered,g=void 0!==h&&h,p=e.isExternal,v=void 0!==p&&p,f=e.colorScheme,b=void 0===f?"#0072F5":f,j=e.styles,x=void 0===j?{icon:{},text:{}}:j,_=e.setIsHovered,S=void 0===_?function(){}:_,y=l(e,I),E=function(){"hover"===m&&S(!0)};return i.createElement(n.Link,{to:d,target:v?"_blank":"_self"},i.createElement(t.Element,Object.assign({color:b,onMouseEnter:E,onMouseLeave:E,textDecoration:g||"underline"===m?"underline !important":"none"},x.text,y),i.createElement(u,{gap:3,alignItems:"center",wrap:"nowrap"},o,v&&i.createElement(w,{color:b,size:O[c],style:x.icon}))))},k=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(H,Object.assign({},n,e))},T={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}},R={sharp:0,rounded:4,pillShaped:24},L={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}},M=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoader","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick"],F=function(e){var o,n=e.icon,a=e.shadow,d=e.children,r=e.ariaLabel,c=e.externalHref,s=e.isAuto,m=void 0!==s&&s,u=e.isFilled,h=void 0!==u&&u,g=e.isIconRounded,p=void 0!==g&&g,v=e.isLoader,f=void 0!==v&&v,b=e.isDisabled,j=void 0!==b&&b,x=e.size,_=void 0===x?"md":x,S=e.variant,y=void 0===S?"filled":S,E=e.iconPosition,w=void 0===E?"left":E,C=e.colorScheme,z=void 0===C?"theme.primary":C,O=e.shape,I=void 0===O?"rounded":O,H=e.onClick,F=void 0===H?function(){}:H,V=l(e,M),G=!(j||f),B={disabled:!G},D=G?z:"theme.disabled",A=T[_],P={filled:{backgroundColor:D,color:"color.white"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:z,color:D},link:{backgroundColor:"transparent",border:"none",color:D,textDecorationLine:"underline"},ghost:{backgroundColor:"transparent",border:"none",color:D}}[y],W={width:m?"fit-content":h?"100%":A.width},N={padding:p?L[_].padding:T[_].padding},K=i.createElement(i.Fragment,null,n&&"left"===w&&!f&&n,d,n&&"right"===w&&!f&&n);return i.createElement(t.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:r,backgroundColor:D,borderRadius:R[I],onClick:null!=(o=V.onClick)?o:F,cursor:G?"pointer":"default"},B,A,P,W,N,a,V),"link"===y&&c?i.createElement(k,{href:c,textDecorationColor:z,colorScheme:z,isExternal:!0},K):K)},V=function(e){var o,t={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},n=t.isHovered,a=t.setIsHovered,d=function(){return a(!n)};return i.createElement(F,Object.assign({onMouseEnter:d,onMouseLeave:d,filter:n?"brightness(0.85)":"brightness(1)"},e))},G={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}},B=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],D=function(e){var o=e.children,n=e.heading,a=e.isItalic,d=void 0!==a&&a,r=e.isUnderlined,c=void 0!==r&&r,s=e.isStriked,m=void 0!==s&&s,u=e.weight,h=void 0===u?"normal":u,g=e.size,p=void 0===g?"sm":g,v=l(e,B);return i.createElement(t.Element,Object.assign({as:"label",width:"100%",fontSize:p,fontStyle:d?"italic":"normal",fontWeight:t.Typography.fontWeights[h],textDecoration:m?"line-through":c?"underline":"none"},n?G[n]:{},v),o)},A=function(e){return i.createElement(D,Object.assign({},e))},P={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}},W={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},N=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],K=function(e){var o=e.id,n=e.icon,a=e.label,d=e.isChecked,c=e.onChange,s=e.onValueChange,m=e.shadow,u=void 0===m?{}:m,h=e.size,g=void 0===h?"md":h,v=e.colorScheme,f=void 0===v?"theme.primary":v,b=e.error,j=void 0!==b&&b,x=e.isSelected,S=void 0!==x&&x,y=e.isHovered,E=void 0!==y&&y,w=e.isDisabled,C=void 0!==w&&w,O=e.isReadOnly,I=void 0!==O&&O,H=e.isIndeterminate,k=void 0!==H&&H,T=e.setIsSelected,R=void 0===T?function(){}:T,L=e.setIsHovered,M=void 0===L?function(){}:L,F=e.styles,V=void 0===F?{checkbox:{},label:{}}:F,G=l(e,N),B=function(){return M(!E)},D={container:r({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:j?"theme.error":C?"theme.disabled":"color.blueGray.700",cursor:C?"not-allowed":I?"default":"pointer"},V.label),checkbox:r({},C?{backgroundColor:"theme.disabled"}:(d||S)&&!k||k?{backgroundColor:f}:{borderWidth:2,borderColor:j?"theme.error":E?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:E?"brightness(0.9)":void 0},P[g],u,V.checkbox)};return i.createElement(A,Object.assign({htmlFor:o,as:"div",onClick:function(){I||C||(void 0===d?R(!S):(c&&c(!d),s&&s(!d)))},onMouseEnter:B,onMouseLeave:B,size:t.Typography.fontSizes[g]},D.container,G),i.createElement(p,Object.assign({},D.checkbox),k?i.createElement(z,null):(d||S)&&(null!=n?n:i.createElement(_,{size:W[g]}))),a)},U=[{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"}],Z=["children","wrap","justify","isReversed"],J=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,d=e.justify,r=void 0===d?"flex-start":d,c=e.isReversed,s=void 0!==c&&c,m=l(e,Z);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:s?"column-reverse":"column",justifyContent:r},m),o)},Y=function(e){return i.createElement(J,Object.assign({},e))},q={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}},Q=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],X=function(e){var o=e.children,t=e.isSub,n=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,t&&i.createElement("sup",null,o),n&&i.createElement("sup",null,o),!t&&!n&&i.createElement(i.Fragment,null,o)):o)},$=function(e){var t=e.text,n=e.maxLines,a=void 0===n?1:n,d=o.useRef(null),r=o.useState(t),l=r[0],c=r[1];return o.useEffect((function(){var e=l,o=d.current;if(o){var i=o.offsetHeight,n=getComputedStyle(o).lineHeight,r="normal"!==n?parseFloat(n):20,s=Math.ceil(r*a);i>s?e=e.slice(0,-1):i===s&&l.length!==t.length&&(e=e.slice(0,-3)+"..."),c(e)}}),[a,t,d,l]),i.createElement("div",{ref:d},l)},ee=function(e){var o=e.children,n=e.heading,a=e.maxLines,d=e.isItalic,r=void 0!==d&&d,c=e.isUnderlined,s=void 0!==c&&c,m=e.isSub,u=void 0!==m&&m,h=e.isSup,g=void 0!==h&&h,p=e.isStriked,v=void 0!==p&&p,f=e.isTruncated,b=void 0!==f&&f,j=e.weight,x=void 0===j?"normal":j,_=e.size,S=void 0===_?"md":_,y=l(e,Q);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[S],lineHeight:t.Typography.lineHeights[S],fontStyle:r?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":s?"underline":"none"},u||g?{display:"inline"}:{},n?q[n]:{},y),b&&a&&"string"==typeof o?i.createElement($,{text:o,maxLines:a}):i.createElement(X,Object.assign({isSub:u,isSup:g},y),o))},oe=function(e){return i.createElement(ee,Object.assign({},e))},ie=["children","styles"],te=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=l(e,ie);return i.createElement(oe,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},n.helperText,a),o)},ne=["children","helperText","error","styles"],ae=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,d=e.styles,r=l(e,ne);return i.createElement(Y,Object.assign({gap:5,position:"relative"},r),o,!a&&t&&i.createElement(te,Object.assign({},d),t),a&&i.createElement(oe,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},a))},de={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},re={xs:6,sm:8,md:10,lg:12,xl:14},le={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},ce={paddingTop:12,paddingBottom:2,paddingLeft:18,paddingRight:36},se={paddingTop:10,paddingBottom:4,paddingLeft:18,paddingRight:36},me=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],ue=function(e){var o=e.shadow,n=e.children,a=e.size,d=void 0===a?"md":a,r=e.shape,c=void 0===r?"default":r,s=e.variant,m=void 0===s?"default":s,h=e.error,g=void 0!==h&&h,p=e.isWithLabel,v=void 0!==p&&p,f=e.isFocused,b=void 0!==f&&f,j=e.isHovered,x=void 0!==j&&j,_=e.isDisabled,S=void 0!==_&&_,y=e.isReadOnly,E=void 0!==y&&y,w=e.colorScheme,C=void 0===w?"theme.primary":w,z=e.styles,O=void 0===z?{pickerBox:{}}:z,I=l(e,me);return i.createElement(u,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:g?"error":!x&&!b||S?"midgray":C,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",fontSize:t.Typography.fontSizes[d],cursor:S?"not-allowed":E?"auto":"pointer"},v?ce:se,o,de[c],le[m],O.box,I),n)},he=["children"],ge=function(e){var o=e.children,t=l(e,he);return i.createElement(p,Object.assign({gap:10,top:"50%",right:16,zIndex:500,wrap:"nowrap",position:"absolute",transform:"translateY(-50%)"},t),o)},pe=["children","size","error","color","styles"],ve=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,d=void 0!==a&&a,r=e.color,c=void 0===r?"theme.primary":r,s=e.styles,m=void 0===s?{label:{}}:s,u=l(e,pe);return i.createElement(A,Object.assign({top:0,zIndex:1e3,lineHeight:14,letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:d?"error":c,fontSize:re[n]},m.label,u),o)},fe=["children"],be=function(e){var o=e.children,t=l(e,fe);return i.createElement(Y,Object.assign({width:"100%"},t),o)},je={xs:8,sm:10,md:12,lg:14,xl:16},xe=["id","name","label","selected","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","colorScheme","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setSelected","styles"],_e=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},Se=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},ye=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},Ee=function(e){var n=e.option,a=e.size,d=void 0===a?"md":a,r=e.callback,l=void 0===r?function(){}:r,c=e.styles,s=void 0===c?{text:{}}:c,m=o.useState(!1),u=m[0],h=m[1],g=function(){return h(!u)};return i.createElement(ye,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e.stopPropagation(),l(n)},fontSize:t.Typography.fontSizes[d],backgroundColor:u?"trueGray.100":"transparent"},s.text),n)},we=function(e){var o=e.size,t=e.styles,n=void 0===t?{dropDown:{}}:t,a=e.options,d=e.callback,r=void 0===d?function(){}:d,l=function(e){return r(e)};return i.createElement(_e,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},n.dropDown),a.map((function(e){return i.createElement(Ee,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},Ce=function(e){var n=e.id,a=e.name,d=e.label,c=e.selected,s=e.placeholder,m=e.helperText,u=e.hide,h=void 0!==u&&u,g=e.error,p=void 0!==g&&g,v=e.isHovered,b=void 0!==v&&v,x=e.isFocused,_=void 0!==x&&x,S=e.isAutoFocus,y=void 0!==S&&S,E=e.isDisabled,w=void 0!==E&&E,C=e.isReadOnly,z=void 0!==C&&C,O=e.shadow,I=void 0===O?{}:O,H=e.newOptions,k=void 0===H?[]:H,T=e.size,R=void 0===T?"md":T,L=e.variant,M=void 0===L?"default":L,F=e.shape,V=void 0===F?"default":F,G=e.colorScheme,B=void 0===G?"theme.primary":G,D=e.onChange,A=e.onBlur,P=void 0===A?function(){}:A,W=e.setHide,N=void 0===W?function(){}:W,K=e.setNewOptions,Z=void 0===K?function(){}:K,J=e.setIsHovered,Y=void 0===J?function(){}:J,q=e.setIsFocused,Q=void 0===q?function(){}:q,X=e.setSelected,$=void 0===X?function(){}:X,ee=e.styles,oe=void 0===ee?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:ee,ie=l(e,xe),te=(0,t.useTheme().getColor)("color.blueGray.700"),ne=function(){return Y(!b)};o.useEffect((function(){D&&D(c)}),[D,c]);var de=!(!_||!d),re=r({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[R],backgroundColor:"transparent",color:w?"color.trueGray.600":"color.blueGray.700",cursor:w?"not-allowed":"auto"},oe.field);return i.createElement(ae,{helperText:m,error:p,styles:oe,onClick:function(){w||z||N(!h)}},i.createElement(ue,{label:d,size:R,error:p,shape:V,styles:oe,shadow:I,variant:M,value:c,color:B,isHovered:b,isDisabled:w,isReadOnly:z,isFocused:_,isWithLabel:de,colorScheme:B,onMouseEnter:ne,onMouseLeave:ne},i.createElement(be,null,de&&i.createElement(ve,Object.assign({htmlFor:n,color:B,error:p},oe),d),i.createElement(Se,Object.assign({id:n,name:a,placeholder:s,readOnly:z,disabled:w,autoFocus:y,onBlur:function(e){P(e),Q(!1)},onFocus:function(){return Q(!0)}},re,ie,{value:c,onChange:function(e){var o=e.target.value,i=U.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));h&&N(!1),$(e.target.value),Z(i),D&&D(e)}}))),i.createElement(ge,null,i.createElement(h?f:j,{size:je[R],color:te,style:oe.icon}))),!h&&i.createElement(we,{size:R,styles:oe,options:k,callback:function(e){N(!h),$(e)}}))},ze=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Oe=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},Ie=function(e){var o=e.id,n=e.name,a=e.label,d=e.date,c=e.helperText,s=e.shadow,m=void 0===s?{}:s,u=e.size,h=void 0===u?"md":u,g=e.variant,p=void 0===g?"default":g,v=e.shape,f=void 0===v?"default":v,b=e.colorScheme,j=void 0===b?"theme.primary":b,x=e.styles,_=void 0===x?{box:{},label:{},helperText:{},text:{},field:{}}:x,S=e.error,y=void 0!==S&&S,E=e.isHovered,w=void 0!==E&&E,C=e.isFocused,z=void 0!==C&&C,O=e.isDisabled,I=void 0!==O&&O,H=e.isReadOnly,k=void 0!==H&&H,T=e.setDate,R=void 0===T?function(){}:T,L=e.setIsFocused,M=void 0===L?function(){}:L,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.onChange,B=e.onChangeText,D=l(e,ze),A=!(!z||!a),P=function(){return V(!w)},W=function(e){"string"==typeof e?(R(e),B&&B(e)):(R(e.target.value),G&&G(e))},N=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:t.Typography.fontSizes[h],backgroundColor:"transparent",color:I?"color.trueGray.600":"color.blueGray.700",cursor:I?"not-allowed":k?"auto":"pointer"},_.field);return i.createElement(ae,{helperText:c,error:y,styles:_},i.createElement(ue,{label:a,size:h,error:y,shape:f,styles:_,shadow:m,variant:p,value:d,color:j,isHovered:w,isDisabled:I,isReadOnly:k,isFocused:z,isWithLabel:A,colorScheme:j,onMouseEnter:P,onMouseLeave:P},i.createElement(be,null,A&&i.createElement(ve,Object.assign({htmlFor:o,color:j,error:y},_),a),i.createElement(Oe,Object.assign({id:o,name:n,value:d,onFocus:function(){return M(!0)},onChange:W,disabled:I,readOnly:k},N,B&&{onChangeText:W},D)))))},He=["id","name","label","value","hint","inputValue","onChange","leftChild","rightChild","helperText","placeholder","onChangeText","shadow","styles","size","shape","variant","colorScheme","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setInputValue","onClick","onFocus","onBlur"],ke=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},Te=function(e){var n=e.id,a=e.name,d=e.label,c=e.hint,s=e.inputValue,m=e.onChange,u=e.leftChild,h=e.rightChild,g=e.helperText,p=e.placeholder,v=e.onChangeText,f=e.shadow,b=void 0===f?{}:f,j=e.styles,x=void 0===j?{box:{},field:{},label:{},helperText:{},text:{}}:j,_=e.size,S=void 0===_?"md":_,E=e.shape,w=void 0===E?"default":E,C=e.variant,z=void 0===C?"default":C,O=e.colorScheme,I=void 0===O?"theme.primary":O,H=e.error,k=void 0!==H&&H,T=e.isFocused,R=void 0!==T&&T,L=e.isHovered,M=void 0!==L&&L,F=e.isDisabled,V=void 0!==F&&F,G=e.isReadOnly,B=void 0!==G&&G,D=e.isClearable,A=void 0===D||D,P=e.isAutoFocus,W=void 0!==P&&P,N=e.setHint,K=void 0===N?function(){}:N,U=e.setIsFocused,Z=void 0===U?function(){}:U,J=e.setIsHovered,Y=void 0===J?function(){}:J,q=e.setInputValue,Q=void 0===q?function(){}:q,X=e.onFocus,$=e.onBlur,ee=void 0===$?function(){}:$,oe=l(e,He),ie=(0,t.useTheme().getColor)("color.blueGray.700"),te=!(!R||!d);o.useMemo((function(){K(R&&!s?null!=p?p:"":null!=d?d:p)}),[s,R,d,p]);var ne=r({margin:0,paddingVertical:8,padddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[S],backgroundColor:"transparent",color:V?"color.trueGray.600":"color.blueGray.700",cursor:V?"not-allowed":"auto"},x.field),de=function(){return Y(!M)},re=function(e){"string"==typeof e?(Q(e),v&&v(e)):(Q(e.target.value),m&&m(e))};return i.createElement(ae,{helperText:g,error:k,styles:x},i.createElement(ue,{label:d,size:S,error:k,shape:w,styles:x,shadow:b,variant:z,value:s,color:I,isHovered:M,isDisabled:V,isReadOnly:B,isFocused:R,isWithLabel:te,colorScheme:I,onMouseEnter:de,onMouseLeave:de},u,i.createElement(be,null,te&&i.createElement(ve,Object.assign({htmlFor:n,color:I,error:k},x),d),i.createElement(ke,Object.assign({id:n,name:a,value:s,readOnly:B,disabled:V,autoFocus:W,placeholder:c,onFocus:function(){Z(!0),X&&X()},onBlur:function(e){ee(e),Z(!1)},autoComplete:"off"},ne,oe,{onChange:re},v&&{onChangeText:re}))),(h||A&&s)&&i.createElement(ge,null,h&&i.createElement(i.Fragment,null,h),A&&s&&!B&&!V&&i.createElement(y,{size:t.Typography.fontSizes[S],color:ie,onClick:function(){Q(""),m&&(ee({target:{name:a}}),m({target:{name:a,value:""}})),"undefined"==typeof document&&v&&v("")}}))))},Re=function(e){var t,n,a,d,r,l,c,s=(a=(t=e).value,{hint:(d=o.useState(null!=(n=t.label)?n:t.placeholder))[0],setHint:d[1],isFocused:(r=o.useState(!1))[0],setIsFocused:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(a||""))[0],setInputValue:c[1]});return i.createElement(Te,Object.assign({},s,e))},Le=["name","visibleIcon","hiddenIcon","isDisabled","isVisible","setIsVisible"],Me=function(e){var o=e.name,t=e.visibleIcon,n=e.hiddenIcon,a=e.isDisabled,d=void 0!==a&&a,r=e.isVisible,s=void 0!==r&&r,m=e.setIsVisible,u=void 0===m?function(){}:m,h=l(e,Le);return i.createElement(Re,Object.assign({name:o,type:s?"text":"password",rightChild:i.createElement(c,{onClick:function(){d||u(!s)}},s?t:n),isClearable:!1},h))},Fe={xs:8,sm:10,md:12,lg:14,xl:16},Ve=["isHovered","setIsHovered","option","size","callback"],Ge=["id","name","selected","onChange","isMulti","isDisabled","isReadOnly","options"],Be=["option","size","removeOption"],De=["id","name","label","selected","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","colorScheme","shape","variant","styles","onChange","setHide","setSelected","setIsHovered","setIsFocused"],Ae=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,d=e.size,r=void 0===d?"md":d,c=e.callback,s=void 0===c?function(){}:c,m=l(e,Ve),u=function(){return n(!o)};return i.createElement(t.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:u,onMouseLeave:u,fontSize:t.Typography.fontSizes[r],onClick:function(){return function(e){return s(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},m),a)},Pe=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,d=e.selected,l=e.isDisabled,c=e.placeholder,s=e.removeOption,m=void 0===s?function(){}:s,h=r({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:l?"color.trueGray.600":"color.blueGray.700",cursor:l?"not-allowed":"auto"},a.field,a.text);return i.createElement(oe,Object.assign({},h),(""===d||d&&0===d.length)&&c?c:i.createElement(i.Fragment,null,"string"==typeof d?d:d&&d.length>0&&i.createElement(u,{gap:6},d.map((function(e){return i.createElement(Ke,{key:e,option:e,removeOption:m})})))))},We=function(e){var o=e.id,n=e.name,a=e.selected,d=e.onChange,r=e.isMulti,c=void 0!==r&&r,s=e.isDisabled,m=void 0!==s&&s,u=e.isReadOnly,h=void 0!==u&&u,g=e.options,p=void 0===g?[]:g,v=l(e,Ge);return i.createElement(t.Element,Object.assign({id:o,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:a,disabled:m,readOnly:h,onChange:function(e){d&&d(e)},multiple:c},v),p.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},Ne=function(e){var o,n=e.size,a=e.styles,d=void 0===a?{dropDown:{}}:a,r=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},m=function(e){return c(e)},u=void 0!==typeof document?{boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"}:{elevation:2,shadowColor:"rgba(0, 0, 0, 0.07)",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:1};return i.createElement(t.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e3,overflowY:"auto",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",justifyContent:"space-evenly"},u,d.dropDown),r.map((function(e){return i.createElement(Ae,Object.assign({key:e,size:n,option:e,callback:m},s,d.text))})))},Ke=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,d=e.removeOption,r=void 0===d?function(){}:d,c=l(e,Be);return i.createElement(u,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:t.Typography.fontSizes[a],backgroundColor:"color.trueGray.300",onClick:function(e){return e.stopPropagation()}},c),i.createElement(oe,{size:a},o),i.createElement(y,{role:"close-button",color:"inherit",size:Fe[a],onClick:function(){return r(o)}}))},Ue=function(e){var t=e.id,n=e.name,a=e.label,d=e.selected,r=e.placeholder,c=e.helperText,s=e.hide,m=void 0!==s&&s,u=e.error,h=void 0!==u&&u,g=e.isMulti,p=void 0!==g&&g,v=e.isFocused,b=void 0!==v&&v,x=e.isHovered,_=void 0!==x&&x,S=e.isDisabled,y=void 0!==S&&S,E=e.isReadOnly,w=void 0!==E&&E,C=e.options,z=void 0===C?[]:C,O=e.shadow,I=void 0===O?{}:O,H=e.size,k=void 0===H?"md":H,T=e.colorScheme,R=void 0===T?"theme.primary":T,L=e.shape,M=void 0===L?"default":L,F=e.variant,V=void 0===F?"default":F,G=e.styles,B=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,D=e.onChange,A=void 0===D?function(){}:D,P=e.setHide,W=void 0===P?function(){}:P,N=e.setSelected,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,J=e.setIsFocused,Y=void 0===J?function(){}:J,q=l(e,De),Q=!(!b||!a),X=function(){return Z(!_)},$=o.useCallback((function(e){W(!m),p&&Array.isArray(d)?!d.includes(e)&&K([].concat(d,[e])):K(e)}),[m,p,d]);return i.createElement(ae,{role:"SelectBox",helperText:c,error:h,styles:B,onClick:y||w?function(){}:function(e){e.stopPropagation(),W(!m),Y(!b)}},i.createElement(ue,{label:a,size:k,error:h,shape:M,styles:B,shadow:I,variant:V,value:d,color:R,isHovered:_,isDisabled:y,isReadOnly:w,isFocused:b,isWithLabel:Q,colorScheme:R,onMouseEnter:X,onMouseLeave:X},i.createElement(be,null,Q&&i.createElement(ve,Object.assign({htmlFor:t,color:R,error:h},B),a),i.createElement(We,Object.assign({id:t,name:n,options:z,onChange:A,selected:d,isDisabled:y,isReadOnly:w,isMulti:p,onFocus:function(){return Y(!0)}},q)),i.createElement(Pe,{size:k,styles:B,selected:d,isDisabled:y,placeholder:r,removeOption:function(e){if(Array.isArray(d)&&d.includes(e)){var o=d.filter((function(o){return o!==e}));K(0===o.length?[]:o)}}})),i.createElement(ge,null,!w&&!y&&i.createElement(i.Fragment,null,i.createElement(m?f:j,{color:"inherit",size:Fe[k],style:B.icon})))),!m&&i.createElement(Ne,{size:k,styles:B,options:z,callback:$}))},Ze={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}},Je={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}},Ye={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}},qe=["id","name","inActiveChild","activeChild","shadow","size","colorScheme","on","isHovered","isChecked","isDisabled","isReadOnly","onChange","onValueChange","setOn","setIsHovered","styles"],Qe=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},Xe=function(e){var o=e.id,t=e.name,n=e.inActiveChild,a=e.activeChild,d=e.shadow,r=void 0===d?{}:d,s=e.size,m=void 0===s?"sm":s,u=e.colorScheme,h=void 0===u?"theme.primary":u,g=e.on,p=void 0!==g&&g,v=e.isHovered,f=void 0!==v&&v,b=e.isDisabled,j=void 0!==b&&b,x=e.isReadOnly,_=void 0!==x&&x,S=e.onChange,y=e.onValueChange,E=e.setOn,w=void 0===E?function(){}:E,C=e.setIsHovered,z=void 0===C?function(){}:C,O=e.styles,I=void 0===O?{slider:{},circle:{}}:O,H=l(e,qe),k=function(e){_||(w(!p),S&&S(e))},T=function(){return z(!f)};return i.createElement(A,{htmlFor:o,onMouseEnter:T,onMouseLeave:T},i.createElement(Qe,Object.assign({id:o,name:t,opacity:0,width:0,height:0,checked:p,onChange:k,disabled:j,readOnly:_},y&&{onValueChange:k},H)),i.createElement(c,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,filter:f&&p?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:j?"disabled":p?h:"lightgray",justifyContent:a?"space-between":p?"flex-end":"flex-start"},r,Ye[m],Je[m],I.slider),a&&p&&i.createElement(c,null,a),i.createElement(c,Object.assign({borderRadius:"50%",backgroundColor:"white"},Ze[m],I.circle)),n&&!p&&i.createElement(c,null,n)))},$e=["id","name","hint","error","value","label","shadow","inputValue","helperText","placeholder","defaultValue","size","shape","variant","colorScheme","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","onChangeText","setHint","setInputValue","setIsFocused","setIsHovered","styles"],eo=function(e){var n=e.id,a=e.name,d=e.hint,c=e.error,s=e.label,m=e.shadow,u=e.inputValue,h=e.helperText,g=e.placeholder,p=e.size,v=void 0===p?"sm":p,f=e.shape,b=void 0===f?"default":f,j=e.variant,x=void 0===j?"default":j,_=e.colorScheme,S=void 0===_?"theme.primary":_,y=e.isHovered,E=void 0!==y&&y,w=e.isFocused,C=void 0!==w&&w,z=e.isEditable,O=void 0!==z&&z,I=e.isReadOnly,H=void 0!==I&&I,k=e.isDisabled,T=void 0!==k&&k,R=e.isAutoFocus,L=void 0!==R&&R,M=e.isMultiline,F=void 0!==M&&M,V=e.maxRows,G=void 0===V?3:V,B=e.maxCols,D=void 0===B?30:B,A=e.onBlur,P=void 0===A?function(){}:A,W=e.onChange,N=e.onFocus,K=e.onChangeText,U=e.setHint,Z=void 0===U?function(){}:U,J=e.setInputValue,Y=void 0===J?function(){}:J,q=e.setIsFocused,Q=void 0===q?function(){}:q,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.styles,oe=void 0===ee?{box:{},text:{},label:{},helperText:{},field:{}}:ee,ie=l(e,$e),te=!(!C||!s);o.useMemo((function(){Z(C&&!u?null!=g?g:"":null!=s?s:g)}),[u,C,s,g]);var ne=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[v],backgroundColor:"transparent",color:T?"color.trueGray.600":"color.blueGray.700",cursor:T?"not-allowed":"auto"},oe.field),de=function(){return $(!E)},re=function(e){"string"==typeof e?(Y(e),K&&K(e)):(Y(e.target.value),W&&W(e))};return i.createElement(ae,{helperText:h,error:c,styles:oe},i.createElement(ue,{label:s,size:v,error:c,shape:b,styles:oe,shadow:m,variant:x,value:u,color:S,isHovered:E,isDisabled:T,isReadOnly:H,isFocused:C,isWithLabel:te,colorScheme:S,onMouseEnter:de,onMouseLeave:de},i.createElement(be,null,te&&i.createElement(ve,Object.assign({htmlFor:n,color:S,error:c},oe),s),i.createElement(t.Element,Object.assign({as:"textarea",id:n,name:a,rows:G,cols:D,value:u,readOnly:H,disabled:T,autoFocus:L,editable:O,placeholder:d,onBlur:function(e){P(e),Q(!1)},onFocus:function(){Q(!0),N&&N()},onChange:re,multiline:F},ne,ie,K&&{onChangeText:re})))))},oo={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},io={fast:50,normal:100,slow:300},to=["size","speed","color"],no=["size","speed","color"],ao=["size","speed","color"],ro=["size","children","textColor","loaderColor","type","speed","textPosition"],lo=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,to),u=t.useTheme().getColor(s),h="number"==typeof a?a:oo[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),io[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:h+"px",height:h+"px",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},co=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,no),u=t.useTheme().getColor(s),h="number"==typeof a?a:oo[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),io[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},so=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,ao),u=t.useTheme().getColor(s),h="number"==typeof a?a:oo[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),io[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},mo=function(e){var o=e.size,t=e.children,n=e.textColor,a=e.loaderColor,d=e.type,r=void 0===d?"default":d,s=e.speed,m=void 0===s?"normal":s,u=e.textPosition,h=void 0===u?"right":u,g=l(e,ro),v={size:o,speed:m,color:a},f={default:i.createElement(lo,Object.assign({},v)),dotted:i.createElement(co,Object.assign({},v)),quarter:i.createElement(so,Object.assign({},v))};return i.createElement(p,Object.assign({gap:10,flexDirection:"top"===h||"bottom"===h?"column":"row"},g),("left"===h||"top"===h)&&t&&i.createElement(c,{color:n},t),f[r],("right"===h||"bottom"===h)&&t&&i.createElement(c,{color:n},t))},uo=d.create((function(e){return{modal:!1,modalProps:{isVisible:!1},overlayProps:{},show:function(o,i,t){void 0===i&&(i={}),void 0===t&&(t={}),o&&(i.isVisible=!0),e((function(e){return r({},e,{modal:o,modalProps:i,overlayProps:t})}))},hide:function(){e((function(e){return r({},e,{modalProps:{isVisible:!1}})}))}}})),ho=function(){uo.getState().hide()},go={sharp:{borderRadius:0},rounded:{borderRadius:4}},po={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},vo={xs:12,sm:16,md:20,lg:24,xl:28},fo=["children","blur","isOpen","isClosePrevented","onClose","position"],bo=["children","shadow","isFullScreen","shape"],jo=["children","buttonColor","iconSize","buttonPosition"],xo=["children"],_o=["children"],So=function(e){var o=e.children,t=e.blur,n=e.isOpen,a=void 0!==n&&n,d=e.isClosePrevented,r=void 0!==d&&d,s=e.onClose,m=void 0===s?function(){}:s,u=e.position,h=void 0===u?"center":u,g=l(e,fo),v=function(){r||m()};return i.createElement(p,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:v,visibility:a?"visible":"hidden"},i.createElement(c,Object.assign({cursor:"pointer",position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:t?"blur("+t+"px)":void 0,onClick:v},po[h],g),o))},yo=function(e){return i.createElement(i.Fragment,null,e.children)};yo.Overlay=So,yo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,d=e.shape,r=void 0===d?"rounded":d,c=l(e,bo),s=void 0!==typeof document?{boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.3)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowOffset:{width:0,height:2},shadowOpacity:1,shadowRadius:8};return i.createElement(Y,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:a?"100%":600,height:a?"100%":"fit-content",onClick:function(e){return e.stopPropagation()}},t||s,go[r],c),o)},yo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,d=void 0===a?"md":a,r=e.buttonPosition,c=void 0===r?"right":r,s=l(e,jo),m=i.createElement(V,{onClick:s.onClose?s.onClose:ho,colorScheme:"transparent",icon:i.createElement(y,{size:vo[d],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(u,Object.assign({justifyContent:"none"===c?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},s),"left"===c&&m,o,"right"===c&&m)},yo.Body=function(e){var o=e.children,t=l(e,xo);return i.createElement(c,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},t),o)},yo.Footer=function(e){var o=e.children,t=l(e,_o);return i.createElement(u,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},yo.Layout=function(e){var t=e.modals,n=uo((function(e){return{modal:e.modal,modalProps:e.modalProps,overlayProps:e.overlayProps}}));if("boolean"==typeof n.modal)return null;var a=t[n.modal];return a?i.createElement(o.Fragment,null,i.createElement(So,Object.assign({isOpen:n.modalProps.isVisible,onClose:ho,blur:10},n.overlayProps),void 0!==a&&i.createElement(a,Object.assign({},n.modalProps)))):(console.error(n.modal+" modal doesn't exist"),null)};var Eo=["src","color"],wo=["path"];exports.Bottom=function(e){return i.createElement(t.View,Object.assign({marginTop:"auto"},e))},exports.Button=V,exports.Center=p,exports.Checkbox=function(e){var o,t,n,a,d=(t=void 0!==(o=e.defaultIsSelected)&&o,{isHovered:(n=i.useState(!1))[0],setIsHovered:n[1],isSelected:(a=i.useState(t))[0],setIsSelected:a[1]});return i.createElement(K,Object.assign({},d,e))},exports.CountryPicker=function(e){var o,t,n,a,d,r,l,c,s,m,u,h,g,p,v=(o=e.placeholder,n=(t=i.useState(U))[0],a=t[1],r=(d=i.useState(null!=o?o:U[0].name))[0],l=d[1],s=(c=i.useState(!0))[0],m=c[1],h=(u=i.useState(!1))[0],g=u[1],{hide:s,setHide:m,newOptions:n,setNewOptions:a,isHovered:(p=i.useState(!1))[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,selected:r,setSelected:l});return i.createElement(Ce,Object.assign({},v,e))},exports.DatePicker=function(e){var o,t,n,d,r,l,c,s=(t=(o=i.useState(!1))[0],n=o[1],r=(d=i.useState(!1))[0],l=d[1],{date:(c=i.useState(a(new Date,"yyyy-MM-dd")))[0],setDate:c[1],isHovered:t,setIsHovered:n,isFocused:r,setIsFocused:l});return i.createElement(Ie,Object.assign({},s,e))},exports.FileImage=function(e){var o=e.path,n=l(e,wo);return i.createElement(t.Image,Object.assign({src:o},n))},exports.FileSVG=function(e){var o=e.src,n=e.color,a=l(e,Eo),d=t.useTheme().getColor,r=n?{fill:d(n),stroke:d(n)}:{};return i.createElement(p,Object.assign({},a),i.createElement(t.Image,Object.assign({},r,{content:'url("'+o+'")',width:"100%",height:"100%"})))},exports.Horizontal=u,exports.Inline=function(e){return i.createElement(t.View,Object.assign({display:"inline-flex",wordBreak:"break-word"},e))},exports.Left=function(e){return i.createElement(t.View,Object.assign({marginRight:"auto"},e))},exports.Link=k,exports.Loader=function(e){return i.createElement(mo,Object.assign({},e))},exports.Modal=yo,exports.Password=function(e){var t,n={isVisible:(t=o.useState(!1))[0],setIsVisible:t[1]};return i.createElement(Me,Object.assign({},n,e))},exports.Right=function(e){return i.createElement(t.View,Object.assign({marginLeft:"auto"},e))},exports.Select=function(e){var o,t,n,a,d,r,l,c,s,m,u,h,g=(t=(o=e).placeholder?o.isMulti?[]:"":o.options[0],a=(n=i.useState(!0))[0],d=n[1],l=(r=i.useState(!1))[0],c=r[1],m=(s=i.useState(!1))[0],u=s[1],{selected:(h=i.useState(t))[0],setSelected:h[1],hide:a,setHide:d,isHovered:l,setIsHovered:c,isFocused:m,setIsFocused:u});return i.createElement(Ue,Object.assign({},g,e))},exports.Switch=function(e){var o,t,n,a,d,r=(t=(o=e).isDisabled,n=o.isChecked,{isHovered:(a=i.useState(!1))[0],setIsHovered:a[1],on:(d=i.useState(t?!t:n))[0],setOn:d[1]});return i.createElement(Xe,Object.assign({},r,e))},exports.Text=oe,exports.TextArea=function(e){var t,n,a,d,r,l,c,s,m=(a=(t=e).defaultValue,d=t.value,{hint:(r=o.useState(null!=(n=t.label)?n:t.placeholder))[0],setHint:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(d||a||""))[0],setInputValue:c[1],isFocused:(s=o.useState(!1))[0],setIsFocused:s[1]});return i.createElement(eo,Object.assign({},m,e))},exports.TextField=Re,exports.Top=function(e){return i.createElement(t.View,Object.assign({marginBottom:"auto"},e))},exports.Vertical=Y,exports.View=c;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),i=e(o),t=require("app-studio"),n=require("react-router-dom"),a=e(require("date-fns/format")),d=require("zustand");function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(this,arguments)}function l(e,o){if(null==e)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)o.indexOf(i=a[t])>=0||(n[i]=e[i]);return n}var c=t.View,s=["children","wrap","justify","isReversed"],m=function(e){var o=e.children,t=e.wrap,n=void 0===t?"wrap":t,a=e.justify,d=void 0===a?"flex-start":a,r=e.isReversed,m=void 0!==r&&r,u=l(e,s);return i.createElement(c,Object.assign({display:"flex",flexWrap:n,flexDirection:m?"row-reverse":"row",justifyContent:d},u),o)},u=function(e){return i.createElement(m,Object.assign({},e))},h=["children","wrap"],g=function(e){var o=e.children,t=e.wrap,n=l(e,h);return i.createElement(c,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:t},n),o)},p=function(e){return i.createElement(g,Object.assign({},e))},v=["size","color"],f=function(e){var o=e.size,t=void 0===o?64:o,n=l(e,v);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_down [#338]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-220.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M164.292308,6524.36583 L164.292308,6524.36583 C163.902564,6524.77071 163.902564,6525.42619 164.292308,6525.83004 L172.555873,6534.39267 C173.33636,6535.20244 174.602528,6535.20244 175.383014,6534.39267 L183.70754,6525.76791 C184.093286,6525.36716 184.098283,6524.71997 183.717533,6524.31405 C183.328789,6523.89985 182.68821,6523.89467 182.29347,6524.30266 L174.676479,6532.19636 C174.285736,6532.60124 173.653152,6532.60124 173.262409,6532.19636 L165.705379,6524.36583 C165.315635,6523.96094 164.683051,6523.96094 164.292308,6524.36583",id:"arrow_down-[#338]"})))))))},b=["size","color"],j=function(e){var o=e.size,t=void 0===o?64:o,n=l(e,b);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_up [#337]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-260.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M223.707692,6534.63378 L223.707692,6534.63378 C224.097436,6534.22888 224.097436,6533.57338 223.707692,6533.16951 L215.444127,6524.60657 C214.66364,6523.79781 213.397472,6523.79781 212.616986,6524.60657 L204.29246,6533.23165 C203.906714,6533.6324 203.901717,6534.27962 204.282467,6534.68555 C204.671211,6535.10081 205.31179,6535.10495 205.70653,6534.69695 L213.323521,6526.80297 C213.714264,6526.39807 214.346848,6526.39807 214.737591,6526.80297 L222.294621,6534.63378 C222.684365,6535.03868 223.317949,6535.03868 223.707692,6534.63378",id:"arrow_up-[#337]"})))))))},x=["size","color"],S=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,x);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"0.048"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M17.0001 9L10 16L7 13",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},_=["size","color"],y=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,_);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fill:a,d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"}))))},E=["size","color"],w=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,E);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({fill:a,width:t+"px",height:t+"px",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",stroke:a},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"}),i.createElement("path",{d:"M40 20h-2v-8h-8v-2h10z"}),i.createElement("path",{d:"M35 38H15c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h11v2H15c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h20c.6 0 1-.4 1-1V24h2v11c0 1.7-1.3 3-3 3z"}))))},C=["size","color"],z=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=l(e,C);return i.createElement(p,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},d),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M7 12L17 12",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},O={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},I=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],H=function(e){var o=e.children,a=e.href,d=void 0===a?"/":a,r=e.iconSize,c=void 0===r?"sm":r,s=e.underline,m=void 0===s?"default":s,h=e.isHovered,g=void 0!==h&&h,p=e.isExternal,v=void 0!==p&&p,f=e.colorScheme,b=void 0===f?"#0072F5":f,j=e.styles,x=void 0===j?{icon:{},text:{}}:j,S=e.setIsHovered,_=void 0===S?function(){}:S,y=l(e,I),E=function(){"hover"===m&&_(!0)};return i.createElement(n.Link,{to:d,target:v?"_blank":"_self"},i.createElement(t.Element,Object.assign({color:b,onMouseEnter:E,onMouseLeave:E,textDecoration:g||"underline"===m?"underline !important":"none"},x.text,y),i.createElement(u,{gap:3,alignItems:"center",wrap:"nowrap"},o,v&&i.createElement(w,{color:b,size:O[c],style:x.icon}))))},k=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(H,Object.assign({},n,e))},T={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}},R={sharp:0,rounded:4,pillShaped:24},L={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}},M=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoader","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick"],F=function(e){var o,n=e.icon,a=e.shadow,d=e.children,r=e.ariaLabel,c=e.externalHref,s=e.isAuto,m=void 0!==s&&s,u=e.isFilled,h=void 0!==u&&u,g=e.isIconRounded,p=void 0!==g&&g,v=e.isLoader,f=void 0!==v&&v,b=e.isDisabled,j=void 0!==b&&b,x=e.size,S=void 0===x?"md":x,_=e.variant,y=void 0===_?"filled":_,E=e.iconPosition,w=void 0===E?"left":E,C=e.colorScheme,z=void 0===C?"theme.primary":C,O=e.shape,I=void 0===O?"rounded":O,H=e.onClick,F=void 0===H?function(){}:H,V=l(e,M),G=!(j||f),B={disabled:!G},D=G?z:"theme.disabled",A=T[S],P={filled:{backgroundColor:D,color:"color.white"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:z,color:D},link:{backgroundColor:"transparent",border:"none",color:D,textDecorationLine:"underline"},ghost:{backgroundColor:"transparent",border:"none",color:D}}[y],W={width:m?"fit-content":h?"100%":A.width},N={padding:p?L[S].padding:T[S].padding},K=i.createElement(i.Fragment,null,n&&"left"===w&&!f&&n,d,n&&"right"===w&&!f&&n);return i.createElement(t.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:r,backgroundColor:D,borderRadius:R[I],onClick:null!=(o=V.onClick)?o:F,cursor:G?"pointer":"default"},B,A,P,W,N,a,V),"link"===y&&c?i.createElement(k,{href:c,textDecorationColor:z,colorScheme:z,isExternal:!0},K):K)},V=function(e){var o,t={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},n=t.isHovered,a=t.setIsHovered,d=function(){return a(!n)};return i.createElement(F,Object.assign({onMouseEnter:d,onMouseLeave:d,filter:n?"brightness(0.85)":"brightness(1)"},e))},G={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}},B=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],D=function(e){var o=e.children,n=e.heading,a=e.isItalic,d=void 0!==a&&a,r=e.isUnderlined,c=void 0!==r&&r,s=e.isStriked,m=void 0!==s&&s,u=e.weight,h=void 0===u?"normal":u,g=e.size,p=void 0===g?"sm":g,v=l(e,B);return i.createElement(t.Element,Object.assign({as:"label",width:"100%",fontSize:p,fontStyle:d?"italic":"normal",fontWeight:t.Typography.fontWeights[h],textDecoration:m?"line-through":c?"underline":"none"},n?G[n]:{},v),o)},A=function(e){return i.createElement(D,Object.assign({},e))},P={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}},W={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},N=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],K=function(e){var o=e.id,n=e.icon,a=e.label,d=e.isChecked,c=e.onChange,s=e.onValueChange,m=e.shadow,u=void 0===m?{}:m,h=e.size,g=void 0===h?"md":h,v=e.colorScheme,f=void 0===v?"theme.primary":v,b=e.error,j=void 0!==b&&b,x=e.isSelected,_=void 0!==x&&x,y=e.isHovered,E=void 0!==y&&y,w=e.isDisabled,C=void 0!==w&&w,O=e.isReadOnly,I=void 0!==O&&O,H=e.isIndeterminate,k=void 0!==H&&H,T=e.setIsSelected,R=void 0===T?function(){}:T,L=e.setIsHovered,M=void 0===L?function(){}:L,F=e.styles,V=void 0===F?{checkbox:{},label:{}}:F,G=l(e,N),B=function(){return M(!E)},D={container:r({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:j?"theme.error":C?"theme.disabled":"color.blueGray.700",cursor:C?"not-allowed":I?"default":"pointer"},V.label),checkbox:r({},C?{backgroundColor:"theme.disabled"}:(d||_)&&!k||k?{backgroundColor:f}:{borderWidth:2,borderColor:j?"theme.error":E?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:E?"brightness(0.9)":void 0},P[g],u,V.checkbox)};return i.createElement(A,Object.assign({htmlFor:o,as:"div",onClick:function(){I||C||(void 0===d?R(!_):(c&&c(!d),s&&s(!d)))},onMouseEnter:B,onMouseLeave:B,size:t.Typography.fontSizes[g]},D.container,G),i.createElement(p,Object.assign({},D.checkbox),k?i.createElement(z,null):(d||_)&&(null!=n?n:i.createElement(S,{size:W[g]}))),a)},U=[{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"}],Z=["children","wrap","justify","isReversed"],J=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,d=e.justify,r=void 0===d?"flex-start":d,c=e.isReversed,s=void 0!==c&&c,m=l(e,Z);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:s?"column-reverse":"column",justifyContent:r},m),o)},Y=function(e){return i.createElement(J,Object.assign({},e))},q={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}},Q=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],X=function(e){var o=e.children,t=e.isSub,n=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,t&&i.createElement("sup",null,o),n&&i.createElement("sup",null,o),!t&&!n&&i.createElement(i.Fragment,null,o)):o)},$=function(e){var t=e.text,n=e.maxLines,a=void 0===n?1:n,d=o.useRef(null),r=o.useState(t),l=r[0],c=r[1];return o.useEffect((function(){var e=l,o=d.current;if(o){var i=o.offsetHeight,n=getComputedStyle(o).lineHeight,r="normal"!==n?parseFloat(n):20,s=Math.ceil(r*a);i>s?e=e.slice(0,-1):i===s&&l.length!==t.length&&(e=e.slice(0,-3)+"..."),c(e)}}),[a,t,d,l]),i.createElement("div",{ref:d},l)},ee=function(e){var o=e.children,n=e.heading,a=e.maxLines,d=e.isItalic,r=void 0!==d&&d,c=e.isUnderlined,s=void 0!==c&&c,m=e.isSub,u=void 0!==m&&m,h=e.isSup,g=void 0!==h&&h,p=e.isStriked,v=void 0!==p&&p,f=e.isTruncated,b=void 0!==f&&f,j=e.weight,x=void 0===j?"normal":j,S=e.size,_=void 0===S?"md":S,y=l(e,Q);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[_],lineHeight:t.Typography.lineHeights[_],fontStyle:r?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":s?"underline":"none"},u||g?{display:"inline"}:{},n?q[n]:{},y),b&&a&&"string"==typeof o?i.createElement($,{text:o,maxLines:a}):i.createElement(X,Object.assign({isSub:u,isSup:g},y),o))},oe=function(e){return i.createElement(ee,Object.assign({},e))},ie=["children","styles"],te=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=l(e,ie);return i.createElement(oe,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},n.helperText,a),o)},ne=["children","helperText","error","styles"],ae=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,d=e.styles,r=l(e,ne);return i.createElement(Y,Object.assign({gap:5,position:"relative"},r),o,!a&&t&&i.createElement(te,Object.assign({},d),t),a&&i.createElement(oe,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},a))},de={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},re={xs:6,sm:8,md:10,lg:12,xl:14},le={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},ce={paddingTop:14,paddingBottom:0,paddingLeft:18,paddingRight:36},se={paddingTop:10,paddingBottom:4,paddingLeft:18,paddingRight:36},me=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],ue=function(e){var o=e.shadow,n=e.children,a=e.size,d=void 0===a?"md":a,r=e.shape,c=void 0===r?"default":r,s=e.variant,m=void 0===s?"default":s,h=e.error,g=void 0!==h&&h,p=e.isWithLabel,v=void 0!==p&&p,f=e.isFocused,b=void 0!==f&&f,j=e.isHovered,x=void 0!==j&&j,S=e.isDisabled,_=void 0!==S&&S,y=e.isReadOnly,E=void 0!==y&&y,w=e.colorScheme,C=void 0===w?"theme.primary":w,z=e.styles,O=void 0===z?{pickerBox:{}}:z,I=l(e,me);return i.createElement(u,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:g?"error":!x&&!b||_?"midgray":C,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",fontSize:t.Typography.fontSizes[d],cursor:_?"not-allowed":E?"auto":"pointer"},v?ce:se,o,de[c],le[m],O.box,I),n)},he=["children"],ge=function(e){var o=e.children,t=l(e,he);return i.createElement(p,Object.assign({gap:10,top:"50%",right:16,zIndex:500,wrap:"nowrap",position:"absolute",transform:"translateY(-50%)"},t),o)},pe=["children","size","error","color","styles"],ve=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,d=void 0!==a&&a,r=e.color,c=void 0===r?"theme.primary":r,s=e.styles,m=void 0===s?{label:{}}:s,u=l(e,pe);return i.createElement(A,Object.assign({top:6,zIndex:1e3,lineHeight:re[n],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:d?"error":c,fontSize:re[n]},m.label,u),o)},fe=["children"],be=function(e){var o=e.children,t=l(e,fe);return i.createElement(Y,Object.assign({width:"100%"},t),o)},je={xs:8,sm:10,md:12,lg:14,xl:16},xe=["id","name","label","selected","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","colorScheme","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setSelected","styles"],Se=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},_e=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},ye=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},Ee=function(e){var n=e.option,a=e.size,d=void 0===a?"md":a,r=e.callback,l=void 0===r?function(){}:r,c=e.styles,s=void 0===c?{text:{}}:c,m=o.useState(!1),u=m[0],h=m[1],g=function(){return h(!u)};return i.createElement(ye,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e.stopPropagation(),l(n)},fontSize:t.Typography.fontSizes[d],backgroundColor:u?"trueGray.100":"transparent"},s.text),n)},we=function(e){var o=e.size,t=e.styles,n=void 0===t?{dropDown:{}}:t,a=e.options,d=e.callback,r=void 0===d?function(){}:d,l=function(e){return r(e)};return i.createElement(Se,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},n.dropDown),a.map((function(e){return i.createElement(Ee,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},Ce=function(e){var n=e.id,a=e.name,d=e.label,c=e.selected,s=e.placeholder,m=e.helperText,u=e.hide,h=void 0!==u&&u,g=e.error,p=void 0!==g&&g,v=e.isHovered,b=void 0!==v&&v,x=e.isFocused,S=void 0!==x&&x,_=e.isAutoFocus,y=void 0!==_&&_,E=e.isDisabled,w=void 0!==E&&E,C=e.isReadOnly,z=void 0!==C&&C,O=e.shadow,I=void 0===O?{}:O,H=e.newOptions,k=void 0===H?[]:H,T=e.size,R=void 0===T?"md":T,L=e.variant,M=void 0===L?"default":L,F=e.shape,V=void 0===F?"default":F,G=e.colorScheme,B=void 0===G?"theme.primary":G,D=e.onChange,A=e.onBlur,P=void 0===A?function(){}:A,W=e.setHide,N=void 0===W?function(){}:W,K=e.setNewOptions,Z=void 0===K?function(){}:K,J=e.setIsHovered,Y=void 0===J?function(){}:J,q=e.setIsFocused,Q=void 0===q?function(){}:q,X=e.setSelected,$=void 0===X?function(){}:X,ee=e.styles,oe=void 0===ee?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:ee,ie=l(e,xe),te=(0,t.useTheme().getColor)("color.blueGray.700"),ne=function(){return Y(!b)};o.useEffect((function(){D&&D(c)}),[D,c]);var de=!(!S||!d),re=r({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[R],backgroundColor:"transparent",color:w?"color.trueGray.600":"color.blueGray.700",cursor:w?"not-allowed":"auto"},oe.field);return i.createElement(ae,{helperText:m,error:p,styles:oe,onClick:function(){w||z||N(!h)}},i.createElement(ue,{label:d,size:R,error:p,shape:V,styles:oe,shadow:I,variant:M,value:c,color:B,isHovered:b,isDisabled:w,isReadOnly:z,isFocused:S,isWithLabel:de,colorScheme:B,onMouseEnter:ne,onMouseLeave:ne},i.createElement(be,null,de&&i.createElement(ve,Object.assign({htmlFor:n,color:B,error:p},oe),d),i.createElement(_e,Object.assign({id:n,name:a,placeholder:s,readOnly:z,disabled:w,autoFocus:y,onBlur:function(e){P(e),Q(!1)},onFocus:function(){return Q(!0)}},re,ie,{value:c,onChange:function(e){var o=e.target.value,i=U.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));h&&N(!1),$(e.target.value),Z(i),D&&D(e)}}))),i.createElement(ge,null,i.createElement(h?f:j,{size:je[R],color:te,style:oe.icon}))),!h&&i.createElement(we,{size:R,styles:oe,options:k,callback:function(e){N(!h),$(e)}}))},ze=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Oe=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},Ie=function(e){var o=e.id,n=e.name,a=e.label,d=e.date,c=e.helperText,s=e.shadow,m=void 0===s?{}:s,u=e.size,h=void 0===u?"md":u,g=e.variant,p=void 0===g?"default":g,v=e.shape,f=void 0===v?"default":v,b=e.colorScheme,j=void 0===b?"theme.primary":b,x=e.styles,S=void 0===x?{box:{},label:{},helperText:{},text:{},field:{}}:x,_=e.error,y=void 0!==_&&_,E=e.isHovered,w=void 0!==E&&E,C=e.isFocused,z=void 0!==C&&C,O=e.isDisabled,I=void 0!==O&&O,H=e.isReadOnly,k=void 0!==H&&H,T=e.setDate,R=void 0===T?function(){}:T,L=e.setIsFocused,M=void 0===L?function(){}:L,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.onChange,B=e.onChangeText,D=l(e,ze),A=!(!z||!a),P=function(){return V(!w)},W=function(e){"string"==typeof e?(R(e),B&&B(e)):(R(e.target.value),G&&G(e))},N=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:t.Typography.fontSizes[h],backgroundColor:"transparent",color:I?"color.trueGray.600":"color.blueGray.700",cursor:I?"not-allowed":k?"auto":"pointer"},S.field);return i.createElement(ae,{helperText:c,error:y,styles:S},i.createElement(ue,{label:a,size:h,error:y,shape:f,styles:S,shadow:m,variant:p,value:d,color:j,isHovered:w,isDisabled:I,isReadOnly:k,isFocused:z,isWithLabel:A,colorScheme:j,onMouseEnter:P,onMouseLeave:P},i.createElement(be,null,A&&i.createElement(ve,Object.assign({htmlFor:o,color:j,error:y},S),a),i.createElement(Oe,Object.assign({id:o,name:n,value:d,onFocus:function(){return M(!0)},onChange:W,disabled:I,readOnly:k},N,B&&{onChangeText:W},D)))))},He=["id","name","label","value","hint","inputValue","onChange","leftChild","rightChild","helperText","placeholder","onChangeText","shadow","styles","size","shape","variant","colorScheme","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setInputValue","onClick","onFocus","onBlur"],ke=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},Te=function(e){var n=e.id,a=e.name,d=e.label,c=e.hint,s=e.inputValue,m=e.onChange,u=e.leftChild,h=e.rightChild,g=e.helperText,p=e.placeholder,v=e.onChangeText,f=e.shadow,b=void 0===f?{}:f,j=e.styles,x=void 0===j?{box:{},field:{},label:{},helperText:{},text:{}}:j,S=e.size,_=void 0===S?"md":S,E=e.shape,w=void 0===E?"default":E,C=e.variant,z=void 0===C?"default":C,O=e.colorScheme,I=void 0===O?"theme.primary":O,H=e.error,k=void 0!==H&&H,T=e.isFocused,R=void 0!==T&&T,L=e.isHovered,M=void 0!==L&&L,F=e.isDisabled,V=void 0!==F&&F,G=e.isReadOnly,B=void 0!==G&&G,D=e.isClearable,A=void 0===D||D,P=e.isAutoFocus,W=void 0!==P&&P,N=e.setHint,K=void 0===N?function(){}:N,U=e.setIsFocused,Z=void 0===U?function(){}:U,J=e.setIsHovered,Y=void 0===J?function(){}:J,q=e.setInputValue,Q=void 0===q?function(){}:q,X=e.onFocus,$=e.onBlur,ee=void 0===$?function(){}:$,oe=l(e,He),ie=(0,t.useTheme().getColor)("color.blueGray.700"),te=!(!R||!d);o.useMemo((function(){K(R&&!s?null!=p?p:"":null!=d?d:p)}),[s,R,d,p]);var ne=r({margin:0,paddingVertical:8,padddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[_],lineHeight:t.Typography.fontSizes[_],backgroundColor:"transparent",color:V?"color.trueGray.600":"color.blueGray.700",cursor:V?"not-allowed":"auto"},x.field),de=function(){return Y(!M)},re=function(e){"string"==typeof e?(Q(e),v&&v(e)):(Q(e.target.value),m&&m(e))};return i.createElement(ae,{helperText:g,error:k,styles:x},i.createElement(ue,{label:d,size:_,error:k,shape:w,styles:x,shadow:b,variant:z,value:s,color:I,isHovered:M,isDisabled:V,isReadOnly:B,isFocused:R,isWithLabel:te,colorScheme:I,onMouseEnter:de,onMouseLeave:de},u,i.createElement(be,null,te&&i.createElement(ve,Object.assign({htmlFor:n,color:I,error:k},x),d),i.createElement(ke,Object.assign({id:n,name:a,value:s,readOnly:B,disabled:V,autoFocus:W,placeholder:c,onFocus:function(){Z(!0),X&&X()},onBlur:function(e){ee(e),Z(!1)},autoComplete:"off"},ne,oe,{onChange:re},v&&{onChangeText:re}))),(h||A&&s)&&i.createElement(ge,null,h&&i.createElement(i.Fragment,null,h),A&&s&&!B&&!V&&i.createElement(y,{size:t.Typography.fontSizes[_],color:ie,onClick:function(){Q(""),m&&(ee({target:{name:a}}),m({target:{name:a,value:""}})),"undefined"==typeof document&&v&&v("")}}))))},Re=function(e){var t,n,a,d,r,l,c,s=(a=(t=e).value,{hint:(d=o.useState(null!=(n=t.label)?n:t.placeholder))[0],setHint:d[1],isFocused:(r=o.useState(!1))[0],setIsFocused:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(a||""))[0],setInputValue:c[1]});return i.createElement(Te,Object.assign({},s,e))},Le=["name","visibleIcon","hiddenIcon","isDisabled","isVisible","setIsVisible"],Me=function(e){var o=e.name,t=e.visibleIcon,n=e.hiddenIcon,a=e.isDisabled,d=void 0!==a&&a,r=e.isVisible,s=void 0!==r&&r,m=e.setIsVisible,u=void 0===m?function(){}:m,h=l(e,Le);return i.createElement(Re,Object.assign({name:o,type:s?"text":"password",rightChild:i.createElement(c,{onClick:function(){d||u(!s)}},s?t:n),isClearable:!1},h))},Fe={xs:8,sm:10,md:12,lg:14,xl:16},Ve=["isHovered","setIsHovered","option","size","callback"],Ge=["id","name","selected","onChange","isMulti","isDisabled","isReadOnly","options"],Be=["option","size","removeOption"],De=["id","name","label","selected","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","colorScheme","shape","variant","styles","onChange","setHide","setSelected","setIsHovered","setIsFocused"],Ae=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,d=e.size,r=void 0===d?"md":d,c=e.callback,s=void 0===c?function(){}:c,m=l(e,Ve),u=function(){return n(!o)};return i.createElement(t.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:u,onMouseLeave:u,fontSize:t.Typography.fontSizes[r],onClick:function(){return function(e){return s(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},m),a)},Pe=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,d=e.selected,l=e.isDisabled,c=e.placeholder,s=e.removeOption,m=void 0===s?function(){}:s,h=r({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:l?"color.trueGray.600":"color.blueGray.700",cursor:l?"not-allowed":"auto"},a.field,a.text);return i.createElement(oe,Object.assign({},h),(""===d||d&&0===d.length)&&c?c:i.createElement(i.Fragment,null,"string"==typeof d?d:d&&d.length>0&&i.createElement(u,{gap:6},d.map((function(e){return i.createElement(Ke,{key:e,option:e,removeOption:m})})))))},We=function(e){var o=e.id,n=e.name,a=e.selected,d=e.onChange,r=e.isMulti,c=void 0!==r&&r,s=e.isDisabled,m=void 0!==s&&s,u=e.isReadOnly,h=void 0!==u&&u,g=e.options,p=void 0===g?[]:g,v=l(e,Ge);return i.createElement(t.Element,Object.assign({id:o,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:a,disabled:m,readOnly:h,onChange:function(e){d&&d(e)},multiple:c},v),p.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},Ne=function(e){var o,n=e.size,a=e.styles,d=void 0===a?{dropDown:{}}:a,r=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},m=function(e){return c(e)},u=void 0!==typeof document?{boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"}:{elevation:2,shadowColor:"rgba(0, 0, 0, 0.07)",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:1};return i.createElement(t.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e3,overflowY:"auto",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",justifyContent:"space-evenly"},u,d.dropDown),r.map((function(e){return i.createElement(Ae,Object.assign({key:e,size:n,option:e,callback:m},s,d.text))})))},Ke=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,d=e.removeOption,r=void 0===d?function(){}:d,c=l(e,Be);return i.createElement(u,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:t.Typography.fontSizes[a],backgroundColor:"color.trueGray.300",onClick:function(e){return e.stopPropagation()}},c),i.createElement(oe,{size:a},o),i.createElement(y,{role:"close-button",color:"inherit",size:Fe[a],onClick:function(){return r(o)}}))},Ue=function(e){var t=e.id,n=e.name,a=e.label,d=e.selected,r=e.placeholder,c=e.helperText,s=e.hide,m=void 0!==s&&s,u=e.error,h=void 0!==u&&u,g=e.isMulti,p=void 0!==g&&g,v=e.isFocused,b=void 0!==v&&v,x=e.isHovered,S=void 0!==x&&x,_=e.isDisabled,y=void 0!==_&&_,E=e.isReadOnly,w=void 0!==E&&E,C=e.options,z=void 0===C?[]:C,O=e.shadow,I=void 0===O?{}:O,H=e.size,k=void 0===H?"md":H,T=e.colorScheme,R=void 0===T?"theme.primary":T,L=e.shape,M=void 0===L?"default":L,F=e.variant,V=void 0===F?"default":F,G=e.styles,B=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,D=e.onChange,A=void 0===D?function(){}:D,P=e.setHide,W=void 0===P?function(){}:P,N=e.setSelected,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,J=e.setIsFocused,Y=void 0===J?function(){}:J,q=l(e,De),Q=!(!b||!a),X=function(){return Z(!S)},$=o.useCallback((function(e){W(!m),p&&Array.isArray(d)?!d.includes(e)&&K([].concat(d,[e])):K(e)}),[m,p,d]);return i.createElement(ae,{role:"SelectBox",helperText:c,error:h,styles:B,onClick:y||w?function(){}:function(e){e.stopPropagation(),W(!m),Y(!b)}},i.createElement(ue,{label:a,size:k,error:h,shape:M,styles:B,shadow:I,variant:V,value:d,color:R,isHovered:S,isDisabled:y,isReadOnly:w,isFocused:b,isWithLabel:Q,colorScheme:R,onMouseEnter:X,onMouseLeave:X},i.createElement(be,null,Q&&i.createElement(ve,Object.assign({htmlFor:t,color:R,error:h},B),a),i.createElement(We,Object.assign({id:t,name:n,options:z,onChange:A,selected:d,isDisabled:y,isReadOnly:w,isMulti:p,onFocus:function(){return Y(!0)}},q)),i.createElement(Pe,{size:k,styles:B,selected:d,isDisabled:y,placeholder:r,removeOption:function(e){if(Array.isArray(d)&&d.includes(e)){var o=d.filter((function(o){return o!==e}));K(0===o.length?[]:o)}}})),i.createElement(ge,null,!w&&!y&&i.createElement(i.Fragment,null,i.createElement(m?f:j,{color:"inherit",size:Fe[k],style:B.icon})))),!m&&i.createElement(Ne,{size:k,styles:B,options:z,callback:$}))},Ze={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}},Je={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}},Ye={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}},qe=["id","name","inActiveChild","activeChild","shadow","size","colorScheme","on","isHovered","isChecked","isDisabled","isReadOnly","onChange","onValueChange","setOn","setIsHovered","styles"],Qe=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},Xe=function(e){var o=e.id,t=e.name,n=e.inActiveChild,a=e.activeChild,d=e.shadow,r=void 0===d?{}:d,s=e.size,m=void 0===s?"sm":s,u=e.colorScheme,h=void 0===u?"theme.primary":u,g=e.on,p=void 0!==g&&g,v=e.isHovered,f=void 0!==v&&v,b=e.isDisabled,j=void 0!==b&&b,x=e.isReadOnly,S=void 0!==x&&x,_=e.onChange,y=e.onValueChange,E=e.setOn,w=void 0===E?function(){}:E,C=e.setIsHovered,z=void 0===C?function(){}:C,O=e.styles,I=void 0===O?{slider:{},circle:{}}:O,H=l(e,qe),k=function(e){S||(w(!p),_&&_(e))},T=function(){return z(!f)};return i.createElement(A,{htmlFor:o,onMouseEnter:T,onMouseLeave:T},i.createElement(Qe,Object.assign({id:o,name:t,opacity:0,width:0,height:0,checked:p,onChange:k,disabled:j,readOnly:S},y&&{onValueChange:k},H)),i.createElement(c,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,filter:f&&p?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:j?"disabled":p?h:"lightgray",justifyContent:a?"space-between":p?"flex-end":"flex-start"},r,Ye[m],Je[m],I.slider),a&&p&&i.createElement(c,null,a),i.createElement(c,Object.assign({borderRadius:"50%",backgroundColor:"white"},Ze[m],I.circle)),n&&!p&&i.createElement(c,null,n)))},$e=["id","name","hint","error","value","label","shadow","inputValue","helperText","placeholder","defaultValue","size","shape","variant","colorScheme","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","onChangeText","setHint","setInputValue","setIsFocused","setIsHovered","styles"],eo=function(e){var n=e.id,a=e.name,d=e.hint,c=e.error,s=e.label,m=e.shadow,u=e.inputValue,h=e.helperText,g=e.placeholder,p=e.size,v=void 0===p?"sm":p,f=e.shape,b=void 0===f?"default":f,j=e.variant,x=void 0===j?"default":j,S=e.colorScheme,_=void 0===S?"theme.primary":S,y=e.isHovered,E=void 0!==y&&y,w=e.isFocused,C=void 0!==w&&w,z=e.isEditable,O=void 0!==z&&z,I=e.isReadOnly,H=void 0!==I&&I,k=e.isDisabled,T=void 0!==k&&k,R=e.isAutoFocus,L=void 0!==R&&R,M=e.isMultiline,F=void 0!==M&&M,V=e.maxRows,G=void 0===V?3:V,B=e.maxCols,D=void 0===B?30:B,A=e.onBlur,P=void 0===A?function(){}:A,W=e.onChange,N=e.onFocus,K=e.onChangeText,U=e.setHint,Z=void 0===U?function(){}:U,J=e.setInputValue,Y=void 0===J?function(){}:J,q=e.setIsFocused,Q=void 0===q?function(){}:q,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.styles,oe=void 0===ee?{box:{},text:{},label:{},helperText:{},field:{}}:ee,ie=l(e,$e),te=!(!C||!s);o.useMemo((function(){Z(C&&!u?null!=g?g:"":null!=s?s:g)}),[u,C,s,g]);var ne=r({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[v],backgroundColor:"transparent",color:T?"color.trueGray.600":"color.blueGray.700",cursor:T?"not-allowed":"auto"},oe.field),de=function(){return $(!E)},re=function(e){"string"==typeof e?(Y(e),K&&K(e)):(Y(e.target.value),W&&W(e))};return i.createElement(ae,{helperText:h,error:c,styles:oe},i.createElement(ue,{label:s,size:v,error:c,shape:b,styles:oe,shadow:m,variant:x,value:u,color:_,isHovered:E,isDisabled:T,isReadOnly:H,isFocused:C,isWithLabel:te,colorScheme:_,onMouseEnter:de,onMouseLeave:de},i.createElement(be,null,te&&i.createElement(ve,Object.assign({htmlFor:n,color:_,error:c},oe),s),i.createElement(t.Element,Object.assign({as:"textarea",id:n,name:a,rows:G,cols:D,value:u,readOnly:H,disabled:T,autoFocus:L,editable:O,placeholder:d,onBlur:function(e){P(e),Q(!1)},onFocus:function(){Q(!0),N&&N()},onChange:re,multiline:F},ne,ie,K&&{onChangeText:re})))))},oo={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},io={fast:50,normal:100,slow:300},to=["size","speed","color"],no=["size","speed","color"],ao=["size","speed","color"],ro=["size","children","textColor","loaderColor","type","speed","textPosition"],lo=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,to),u=t.useTheme().getColor(s),h="number"==typeof a?a:oo[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),io[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:h+"px",height:h+"px",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},co=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,no),u=t.useTheme().getColor(s),h="number"==typeof a?a:oo[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),io[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},so=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,r=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=l(e,ao),u=t.useTheme().getColor(s),h="number"==typeof a?a:oo[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),io[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},mo=function(e){var o=e.size,t=e.children,n=e.textColor,a=e.loaderColor,d=e.type,r=void 0===d?"default":d,s=e.speed,m=void 0===s?"normal":s,u=e.textPosition,h=void 0===u?"right":u,g=l(e,ro),v={size:o,speed:m,color:a},f={default:i.createElement(lo,Object.assign({},v)),dotted:i.createElement(co,Object.assign({},v)),quarter:i.createElement(so,Object.assign({},v))};return i.createElement(p,Object.assign({gap:10,flexDirection:"top"===h||"bottom"===h?"column":"row"},g),("left"===h||"top"===h)&&t&&i.createElement(c,{color:n},t),f[r],("right"===h||"bottom"===h)&&t&&i.createElement(c,{color:n},t))},uo=d.create((function(e){return{modal:!1,modalProps:{isVisible:!1},overlayProps:{},show:function(o,i,t){void 0===i&&(i={}),void 0===t&&(t={}),o&&(i.isVisible=!0),e((function(e){return r({},e,{modal:o,modalProps:i,overlayProps:t})}))},hide:function(){e((function(e){return r({},e,{modalProps:{isVisible:!1}})}))}}})),ho=function(){uo.getState().hide()},go={sharp:{borderRadius:0},rounded:{borderRadius:4}},po={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},vo={xs:12,sm:16,md:20,lg:24,xl:28},fo=["children","blur","isOpen","isClosePrevented","onClose","position"],bo=["children","shadow","isFullScreen","shape"],jo=["children","buttonColor","iconSize","buttonPosition"],xo=["children"],So=["children"],_o=function(e){var o=e.children,t=e.blur,n=e.isOpen,a=void 0!==n&&n,d=e.isClosePrevented,r=void 0!==d&&d,s=e.onClose,m=void 0===s?function(){}:s,u=e.position,h=void 0===u?"center":u,g=l(e,fo),v=function(){r||m()};return i.createElement(p,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:v,visibility:a?"visible":"hidden"},i.createElement(c,Object.assign({cursor:"pointer",position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:t?"blur("+t+"px)":void 0,onClick:v},po[h],g),o))},yo=function(e){return i.createElement(i.Fragment,null,e.children)};yo.Overlay=_o,yo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,d=e.shape,r=void 0===d?"rounded":d,c=l(e,bo),s=void 0!==typeof document?{boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.3)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowOffset:{width:0,height:2},shadowOpacity:1,shadowRadius:8};return i.createElement(Y,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:a?"100%":600,height:a?"100%":"fit-content",onClick:function(e){return e.stopPropagation()}},t||s,go[r],c),o)},yo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,d=void 0===a?"md":a,r=e.buttonPosition,c=void 0===r?"right":r,s=l(e,jo),m=i.createElement(V,{onClick:s.onClose?s.onClose:ho,colorScheme:"transparent",icon:i.createElement(y,{size:vo[d],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(u,Object.assign({justifyContent:"none"===c?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},s),"left"===c&&m,o,"right"===c&&m)},yo.Body=function(e){var o=e.children,t=l(e,xo);return i.createElement(c,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},t),o)},yo.Footer=function(e){var o=e.children,t=l(e,So);return i.createElement(u,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},yo.Layout=function(e){var t=e.modals,n=uo((function(e){return{modal:e.modal,modalProps:e.modalProps,overlayProps:e.overlayProps}}));if("boolean"==typeof n.modal)return null;var a=t[n.modal];return a?i.createElement(o.Fragment,null,i.createElement(_o,Object.assign({isOpen:n.modalProps.isVisible,onClose:ho,blur:10},n.overlayProps),void 0!==a&&i.createElement(a,Object.assign({},n.modalProps)))):(console.error(n.modal+" modal doesn't exist"),null)};var Eo=["src","color"],wo=["path"];exports.Bottom=function(e){return i.createElement(t.View,Object.assign({marginTop:"auto"},e))},exports.Button=V,exports.Center=p,exports.Checkbox=function(e){var o,t,n,a,d=(t=void 0!==(o=e.defaultIsSelected)&&o,{isHovered:(n=i.useState(!1))[0],setIsHovered:n[1],isSelected:(a=i.useState(t))[0],setIsSelected:a[1]});return i.createElement(K,Object.assign({},d,e))},exports.CountryPicker=function(e){var o,t,n,a,d,r,l,c,s,m,u,h,g,p,v=(o=e.placeholder,n=(t=i.useState(U))[0],a=t[1],r=(d=i.useState(null!=o?o:U[0].name))[0],l=d[1],s=(c=i.useState(!0))[0],m=c[1],h=(u=i.useState(!1))[0],g=u[1],{hide:s,setHide:m,newOptions:n,setNewOptions:a,isHovered:(p=i.useState(!1))[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,selected:r,setSelected:l});return i.createElement(Ce,Object.assign({},v,e))},exports.DatePicker=function(e){var o,t,n,d,r,l,c,s=(t=(o=i.useState(!1))[0],n=o[1],r=(d=i.useState(!1))[0],l=d[1],{date:(c=i.useState(a(new Date,"yyyy-MM-dd")))[0],setDate:c[1],isHovered:t,setIsHovered:n,isFocused:r,setIsFocused:l});return i.createElement(Ie,Object.assign({},s,e))},exports.FileImage=function(e){var o=e.path,n=l(e,wo);return i.createElement(t.Image,Object.assign({src:o},n))},exports.FileSVG=function(e){var o=e.src,n=e.color,a=l(e,Eo),d=t.useTheme().getColor,r=n?{fill:d(n),stroke:d(n)}:{};return i.createElement(p,Object.assign({},a),i.createElement(t.Image,Object.assign({},r,{content:'url("'+o+'")',width:"100%",height:"100%"})))},exports.Horizontal=u,exports.Inline=function(e){return i.createElement(t.View,Object.assign({display:"inline-flex",wordBreak:"break-word"},e))},exports.Left=function(e){return i.createElement(t.View,Object.assign({marginRight:"auto"},e))},exports.Link=k,exports.Loader=function(e){return i.createElement(mo,Object.assign({},e))},exports.Modal=yo,exports.Password=function(e){var t,n={isVisible:(t=o.useState(!1))[0],setIsVisible:t[1]};return i.createElement(Me,Object.assign({},n,e))},exports.Right=function(e){return i.createElement(t.View,Object.assign({marginLeft:"auto"},e))},exports.Select=function(e){var o,t,n,a,d,r,l,c,s,m,u,h,g=(t=(o=e).placeholder?o.isMulti?[]:"":o.options[0],a=(n=i.useState(!0))[0],d=n[1],l=(r=i.useState(!1))[0],c=r[1],m=(s=i.useState(!1))[0],u=s[1],{selected:(h=i.useState(t))[0],setSelected:h[1],hide:a,setHide:d,isHovered:l,setIsHovered:c,isFocused:m,setIsFocused:u});return i.createElement(Ue,Object.assign({},g,e))},exports.Switch=function(e){var o,t,n,a,d,r=(t=(o=e).isDisabled,n=o.isChecked,{isHovered:(a=i.useState(!1))[0],setIsHovered:a[1],on:(d=i.useState(t?!t:n))[0],setOn:d[1]});return i.createElement(Xe,Object.assign({},r,e))},exports.Text=oe,exports.TextArea=function(e){var t,n,a,d,r,l,c,s,m=(a=(t=e).defaultValue,d=t.value,{hint:(r=o.useState(null!=(n=t.label)?n:t.placeholder))[0],setHint:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(d||a||""))[0],setInputValue:c[1],isFocused:(s=o.useState(!1))[0],setIsFocused:s[1]});return i.createElement(eo,Object.assign({},m,e))},exports.TextField=Re,exports.Top=function(e){return i.createElement(t.View,Object.assign({marginBottom:"auto"},e))},exports.Vertical=Y,exports.View=c;
2
2
  //# sourceMappingURL=web.cjs.production.min.js.map