@app-studio/web 0.1.15 → 0.2.0

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.
Files changed (180) hide show
  1. package/dist/StyleGuideWrapper.d.ts +1 -1
  2. package/dist/components/Button/Button/Button.props.d.ts +1 -1
  3. package/dist/components/Button/examples/AutoFocusButton.d.ts +2 -2
  4. package/dist/components/Button/examples/BorderedButtons.d.ts +2 -2
  5. package/dist/components/Button/examples/ColoredButtons.d.ts +2 -2
  6. package/dist/components/Button/examples/DefaultButton.d.ts +2 -2
  7. package/dist/components/Button/examples/DisabledButton.d.ts +2 -2
  8. package/dist/components/Button/examples/IconButtons.d.ts +2 -2
  9. package/dist/components/Button/examples/LoaderButtons.d.ts +2 -0
  10. package/dist/components/Button/examples/ShadowButton.d.ts +2 -2
  11. package/dist/components/Button/examples/SizeButtons.d.ts +2 -2
  12. package/dist/components/Button/examples/VariantButtons.d.ts +2 -2
  13. package/dist/components/Button/examples/index.d.ts +9 -9
  14. package/dist/components/Form/Checkbox/examples/ColorScheme.d.ts +2 -2
  15. package/dist/components/Form/Checkbox/examples/Default.d.ts +2 -2
  16. package/dist/components/Form/Checkbox/examples/DisabledInput.d.ts +2 -2
  17. package/dist/components/Form/Checkbox/examples/ErrorCheckbox.d.ts +2 -2
  18. package/dist/components/Form/Checkbox/examples/FormCheckout.d.ts +2 -2
  19. package/dist/components/Form/Checkbox/examples/IconCheckbox.d.ts +2 -2
  20. package/dist/components/Form/Checkbox/examples/IndeterminateCheckbox.d.ts +2 -2
  21. package/dist/components/Form/Checkbox/examples/ReadOnlyInput.d.ts +2 -2
  22. package/dist/components/Form/Checkbox/examples/Shadow.d.ts +2 -2
  23. package/dist/components/Form/Checkbox/examples/SizeInput.d.ts +2 -2
  24. package/dist/components/Form/Checkbox/examples/StylesInput.d.ts +2 -2
  25. package/dist/components/Form/Checkbox/examples/index.d.ts +11 -11
  26. package/dist/components/Form/CountryPicker/examples/Color.d.ts +2 -2
  27. package/dist/components/Form/CountryPicker/examples/Default.d.ts +2 -2
  28. package/dist/components/Form/CountryPicker/examples/Disabled.d.ts +2 -2
  29. package/dist/components/Form/CountryPicker/examples/Error.d.ts +2 -2
  30. package/dist/components/Form/CountryPicker/examples/Form.d.ts +2 -2
  31. package/dist/components/Form/CountryPicker/examples/Formik.d.ts +2 -2
  32. package/dist/components/Form/CountryPicker/examples/HelperText.d.ts +2 -2
  33. package/dist/components/Form/CountryPicker/examples/ReadOnlyInput.d.ts +2 -2
  34. package/dist/components/Form/CountryPicker/examples/Shadow.d.ts +2 -2
  35. package/dist/components/Form/CountryPicker/examples/Shape.d.ts +2 -2
  36. package/dist/components/Form/CountryPicker/examples/SizeInput.d.ts +2 -2
  37. package/dist/components/Form/CountryPicker/examples/StylesInput.d.ts +2 -2
  38. package/dist/components/Form/CountryPicker/examples/Variant.d.ts +2 -2
  39. package/dist/components/Form/CountryPicker/examples/index.d.ts +12 -12
  40. package/dist/components/Form/DatePicker/examples/ColorScheme.d.ts +2 -2
  41. package/dist/components/Form/DatePicker/examples/Default.d.ts +2 -2
  42. package/dist/components/Form/DatePicker/examples/DisabledInput.d.ts +2 -2
  43. package/dist/components/Form/DatePicker/examples/ErrorCheckbox.d.ts +2 -2
  44. package/dist/components/Form/DatePicker/examples/FormCheckout.d.ts +2 -2
  45. package/dist/components/Form/DatePicker/examples/Formik.d.ts +2 -2
  46. package/dist/components/Form/DatePicker/examples/ReadOnlyInput.d.ts +2 -2
  47. package/dist/components/Form/DatePicker/examples/Shadow.d.ts +2 -2
  48. package/dist/components/Form/DatePicker/examples/SizeInput.d.ts +2 -2
  49. package/dist/components/Form/DatePicker/examples/StylesInput.d.ts +2 -2
  50. package/dist/components/Form/DatePicker/examples/helperTextDatePicker.d.ts +2 -2
  51. package/dist/components/Form/DatePicker/examples/index.d.ts +11 -11
  52. package/dist/components/Form/Password/Password/Password.props.d.ts +1 -1
  53. package/dist/components/Form/Password/example/Default.d.ts +2 -2
  54. package/dist/components/Form/Password/example/DisabledInput.d.ts +2 -2
  55. package/dist/components/Form/Password/example/ErrorInput.d.ts +2 -2
  56. package/dist/components/Form/Password/example/FormikErrorInput.d.ts +2 -2
  57. package/dist/components/Form/Password/example/FormikHelperText.d.ts +2 -2
  58. package/dist/components/Form/Password/example/HelperText.d.ts +2 -2
  59. package/dist/components/Form/Select/examples/Color.d.ts +2 -2
  60. package/dist/components/Form/Select/examples/Default.d.ts +2 -2
  61. package/dist/components/Form/Select/examples/Disabled.d.ts +2 -2
  62. package/dist/components/Form/Select/examples/Error.d.ts +2 -2
  63. package/dist/components/Form/Select/examples/Form.d.ts +2 -2
  64. package/dist/components/Form/Select/examples/Formik.d.ts +2 -2
  65. package/dist/components/Form/Select/examples/HelperText.d.ts +2 -2
  66. package/dist/components/Form/Select/examples/Multiple.d.ts +2 -2
  67. package/dist/components/Form/Select/examples/ReadOnlyInput.d.ts +2 -2
  68. package/dist/components/Form/Select/examples/Shadow.d.ts +2 -2
  69. package/dist/components/Form/Select/examples/SizeInput.d.ts +2 -2
  70. package/dist/components/Form/Select/examples/StylesInput.d.ts +2 -2
  71. package/dist/components/Form/Switch/examples/ChildSwitch.d.ts +2 -2
  72. package/dist/components/Form/Switch/examples/ColorScheme.d.ts +2 -2
  73. package/dist/components/Form/Switch/examples/Default.d.ts +2 -2
  74. package/dist/components/Form/Switch/examples/DisabledInput.d.ts +2 -2
  75. package/dist/components/Form/Switch/examples/FormSwitch.d.ts +2 -2
  76. package/dist/components/Form/Switch/examples/Formik.d.ts +2 -2
  77. package/dist/components/Form/Switch/examples/ReadOnlyInput.d.ts +2 -2
  78. package/dist/components/Form/Switch/examples/Shadow.d.ts +2 -2
  79. package/dist/components/Form/Switch/examples/SizeInput.d.ts +2 -2
  80. package/dist/components/Form/Switch/examples/StylesInput.d.ts +2 -2
  81. package/dist/components/Form/TextArea/examples/ColorScheme.d.ts +2 -2
  82. package/dist/components/Form/TextArea/examples/Default.d.ts +2 -2
  83. package/dist/components/Form/TextArea/examples/DisabledInput.d.ts +2 -2
  84. package/dist/components/Form/TextArea/examples/ErrorInput.d.ts +2 -2
  85. package/dist/components/Form/TextArea/examples/FormikErrorInput.d.ts +2 -2
  86. package/dist/components/Form/TextArea/examples/FormikHelperText.d.ts +2 -2
  87. package/dist/components/Form/TextArea/examples/HelperText.d.ts +2 -2
  88. package/dist/components/Form/TextArea/examples/LabelInput.d.ts +2 -2
  89. package/dist/components/Form/TextArea/examples/MaxRowCol.d.ts +2 -2
  90. package/dist/components/Form/TextArea/examples/Placeholder.d.ts +2 -2
  91. package/dist/components/Form/TextArea/examples/ReadOnlyInput.d.ts +2 -2
  92. package/dist/components/Form/TextArea/examples/ShadowArea.d.ts +2 -2
  93. package/dist/components/Form/TextArea/examples/ShapeInput.d.ts +2 -2
  94. package/dist/components/Form/TextArea/examples/SizeInput.d.ts +2 -2
  95. package/dist/components/Form/TextArea/examples/StylesInput.d.ts +2 -2
  96. package/dist/components/Form/TextArea/examples/VariantsInputs.d.ts +2 -2
  97. package/dist/components/Form/TextArea/examples/index.d.ts +15 -15
  98. package/dist/components/Form/TextField/examples/ClearInput.d.ts +2 -2
  99. package/dist/components/Form/TextField/examples/ColorScheme.d.ts +2 -2
  100. package/dist/components/Form/TextField/examples/Default.d.ts +2 -2
  101. package/dist/components/Form/TextField/examples/DisabledInput.d.ts +2 -2
  102. package/dist/components/Form/TextField/examples/ErrorInput.d.ts +2 -2
  103. package/dist/components/Form/TextField/examples/FormikErrorInput.d.ts +2 -2
  104. package/dist/components/Form/TextField/examples/FormikHelperText.d.ts +2 -2
  105. package/dist/components/Form/TextField/examples/HelperText.d.ts +2 -2
  106. package/dist/components/Form/TextField/examples/LabelInput.d.ts +2 -2
  107. package/dist/components/Form/TextField/examples/LeftChild.d.ts +2 -2
  108. package/dist/components/Form/TextField/examples/Placeholder.d.ts +2 -2
  109. package/dist/components/Form/TextField/examples/ReadOnlyInput.d.ts +2 -2
  110. package/dist/components/Form/TextField/examples/RightChild.d.ts +2 -2
  111. package/dist/components/Form/TextField/examples/ShapeInput.d.ts +2 -2
  112. package/dist/components/Form/TextField/examples/SizeInput.d.ts +2 -2
  113. package/dist/components/Form/TextField/examples/StylesInput.d.ts +2 -2
  114. package/dist/components/Form/TextField/examples/VariantsInputs.d.ts +2 -2
  115. package/dist/components/Form/TextField/examples/index.d.ts +17 -17
  116. package/dist/components/Layout/Horizontal/examples/Default.d.ts +2 -2
  117. package/dist/components/Layout/Horizontal/examples/Justify.d.ts +2 -2
  118. package/dist/components/Layout/Horizontal/examples/Reversed.d.ts +2 -2
  119. package/dist/components/Layout/Horizontal/examples/Wrap.d.ts +2 -2
  120. package/dist/components/Layout/Horizontal/examples/index.d.ts +4 -4
  121. package/dist/components/Layout/Input/FieldContainer/FieldContainer/FieldContainer.props.d.ts +1 -1
  122. package/dist/components/Layout/Input/FieldContent/FieldContent/FieldContent.props.d.ts +1 -1
  123. package/dist/components/Layout/Input/FieldLabel/FieldLabel/FieldLabel.props.d.ts +1 -1
  124. package/dist/components/Layout/Input/FieldLayout/FieldLayout/FieldLayout.props.d.ts +1 -1
  125. package/dist/components/Layout/Input/HelperText/HelperText.props.d.ts +1 -1
  126. package/dist/components/Layout/Input/index.d.ts +7 -7
  127. package/dist/components/Layout/Vertical/examples/Default.d.ts +2 -2
  128. package/dist/components/Layout/Vertical/examples/Justify.d.ts +2 -2
  129. package/dist/components/Layout/Vertical/examples/Reversed.d.ts +2 -2
  130. package/dist/components/Layout/Vertical/examples/Wrap.d.ts +2 -2
  131. package/dist/components/Link/examples/Default.d.ts +2 -2
  132. package/dist/components/Link/examples/IsExternal.d.ts +2 -2
  133. package/dist/components/Link/examples/Underline.d.ts +2 -2
  134. package/dist/components/Loader/Loader.d.ts +1 -1
  135. package/dist/components/Loader/examples/ColorLoader.d.ts +2 -2
  136. package/dist/components/Loader/examples/DefaultLoader.d.ts +2 -2
  137. package/dist/components/Loader/examples/PositionLoader.d.ts +2 -2
  138. package/dist/components/Loader/examples/SizeLoader.d.ts +2 -2
  139. package/dist/components/Loader/examples/SpeedLoader.d.ts +2 -2
  140. package/dist/components/Loader/examples/TextLoader.d.ts +2 -2
  141. package/dist/components/Loader/examples/VariantLoader.d.ts +2 -2
  142. package/dist/components/Loader/examples/index.d.ts +7 -7
  143. package/dist/components/Modal/Examples/BlurModal.d.ts +2 -2
  144. package/dist/components/Modal/Examples/CloseButtonModal.d.ts +2 -2
  145. package/dist/components/Modal/Examples/DefaultModal.d.ts +2 -2
  146. package/dist/components/Modal/Examples/FullScreenModal.d.ts +2 -2
  147. package/dist/components/Modal/Examples/ModalPosition.d.ts +2 -2
  148. package/dist/components/Modal/Examples/PreventCloseModal.d.ts +2 -2
  149. package/dist/components/Modal/Examples/ScrollModal.d.ts +2 -2
  150. package/dist/components/Modal/Examples/ShadowModal.d.ts +2 -2
  151. package/dist/components/Modal/Examples/VariantModal.d.ts +2 -2
  152. package/dist/components/Modal/Examples/index.d.ts +9 -9
  153. package/dist/features.d.ts +2 -2
  154. package/dist/pages/button.page.d.ts +2 -2
  155. package/dist/pages/center.page.d.ts +2 -2
  156. package/dist/pages/checkbox.page.d.ts +2 -2
  157. package/dist/pages/components.page.d.ts +2 -2
  158. package/dist/pages/countryPicker.page.d.ts +2 -2
  159. package/dist/pages/datePicker.page.d.ts +2 -2
  160. package/dist/pages/home.page.d.ts +2 -2
  161. package/dist/pages/horizontal.page.d.ts +2 -2
  162. package/dist/pages/input.page.d.ts +2 -2
  163. package/dist/pages/link.page.d.ts +2 -2
  164. package/dist/pages/loader.page.d.ts +2 -2
  165. package/dist/pages/modal.page.d.ts +2 -2
  166. package/dist/pages/password.page.d.ts +2 -2
  167. package/dist/pages/select.page.d.ts +2 -2
  168. package/dist/pages/switch.page.d.ts +2 -2
  169. package/dist/pages/text.page.d.ts +2 -2
  170. package/dist/pages/textArea.page.d.ts +2 -2
  171. package/dist/pages/vertical.page.d.ts +2 -2
  172. package/dist/routes/routes.d.ts +2 -2
  173. package/dist/web.cjs.development.js +1728 -1279
  174. package/dist/web.cjs.development.js.map +1 -1
  175. package/dist/web.cjs.production.min.js +1 -1
  176. package/dist/web.cjs.production.min.js.map +1 -1
  177. package/dist/web.esm.js +1694 -1245
  178. package/dist/web.esm.js.map +1 -1
  179. package/package.json +1 -2
  180. package/dist/components/Button/examples/LoadingButtons.d.ts +0 -2
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es6.object.assign.js");var o=require("react"),i=e(o),n=require("app-studio"),a=require("./components"),t=require("./components/Form/Label/Label"),d=require("./components/Svg");require("core-js/modules/es6.array.map.js"),require("core-js/modules/es6.array.filter.js"),require("core-js/modules/es6.string.starts-with.js");var r=require("./components/Layout/Input"),l=require("./components/Svg/ArrowDown"),c=require("./components/Svg/ArrowUp"),s=e(require("date-fns/format")),m=require("./components/Layout/Input/FieldContainer/FieldContainer"),u=require("./components/Layout/Input/FieldContent/FieldContent"),h=require("./components/Layout/Input/FieldLabel/FieldLabel"),g=require("./components/Layout/Input/FieldWrapper/FieldWrapper");require("core-js/modules/es6.string.includes.js"),require("core-js/modules/es7.array.includes.js");var p=require("./components/Layout/Input/FieldIcons/FieldIcons"),v=require("./components/Layout/View/View"),f=require("react-router-dom"),j=require("./store/useModalStore");function b(e,o){if(null==e)return{};var i,n,a={},t=Object.keys(e);for(n=0;n<t.length;n++)o.indexOf(i=t[n])>=0||(a[i]=e[i]);return a}require("core-js/modules/es6.array.slice.js");var x={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}},_={sharp:0,rounded:4,pillShaped:24},y={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}},S=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick"],C=function(e){var o,t=e.icon,d=e.shadow,r=e.children,l=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.isLoading,f=void 0!==v&&v,j=e.isDisabled,C=void 0!==j&&j,w=e.size,E=void 0===w?"md":w,I=e.variant,O=void 0===I?"filled":I,H=e.iconPosition,F=void 0===H?"left":H,z=e.colorScheme,T=void 0===z?"theme.primary":z,M=e.shape,k=void 0===M?"rounded":M,L=e.onClick,R=void 0===L?function(){}:L,V=b(e,S),D=!(C||f),A={disabled:!D},G=D?T:"theme.disabled",B=x[E],P={filled:{backgroundColor:G,color:"color.white"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:T,color:G},link:{backgroundColor:"transparent",border:"none",color:G,textDecorationLine:"underline"},ghost:{backgroundColor:"transparent",border:"none",color:G}}[O],N={width:m?"fit-content":h?"100%":B.width},W={padding:p?y[E].padding:x[E].padding},K=i.createElement(i.Fragment,null,t&&"left"===F&&!f&&t,r,t&&"right"===F&&!f&&t);return i.createElement(n.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:l,backgroundColor:G,borderRadius:_[k],onClick:null!=(o=V.onClick)?o:R,cursor:D?"pointer":"default"},A,B,P,N,W,d,V),"link"===O&&c?i.createElement(a.Link,{href:c,textDecorationColor:T,colorScheme:T,isExternal:!0},K):K)},w={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}},E={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},I=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],O=function(e){var o=e.id,r=e.icon,l=e.label,c=e.isChecked,s=e.onChange,m=e.onValueChange,u=e.shadow,h=void 0===u?{}:u,g=e.size,p=void 0===g?"md":g,v=e.colorScheme,f=void 0===v?"theme.primary":v,j=e.error,x=void 0!==j&&j,_=e.isSelected,y=void 0!==_&&_,S=e.isHovered,C=void 0!==S&&S,O=e.isDisabled,H=void 0!==O&&O,F=e.isReadOnly,z=void 0!==F&&F,T=e.isIndeterminate,M=void 0!==T&&T,k=e.setIsSelected,L=void 0===k?function(){}:k,R=e.setIsHovered,V=void 0===R?function(){}:R,D=e.styles,A=void 0===D?{checkbox:{},label:{}}:D,G=b(e,I),B=function(){return V(!C)},P={container:Object.assign({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:x?"theme.error":H?"theme.disabled":"color.blueGray.700",cursor:H?"not-allowed":z?"default":"pointer"},A.label),checkbox:Object.assign({},H?{backgroundColor:"theme.disabled"}:(c||y)&&!M||M?{backgroundColor:f}:{borderWidth:2,borderColor:x?"theme.error":C?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:C?"brightness(0.9)":void 0},w[p],h,A.checkbox)};return i.createElement(t.Label,Object.assign({htmlFor:o,as:"div",onClick:function(){z||H||(void 0===c?L(!y):(s&&s(!c),m&&m(!c)))},onMouseEnter:B,onMouseLeave:B,size:n.Typography.fontSizes[p]},P.container,G),i.createElement(a.Center,Object.assign({},P.checkbox),M?i.createElement(d.IndeterminateSvg,null):(c||y)&&(null!=r?r:i.createElement(d.CheckSvg,{size:E[p]}))),l)},H=[{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"}],F={xs:8,sm:10,md:12,lg:14,xl:16},z=["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"],T=function(e){return i.createElement(n.Element,Object.assign({as:"ul"},e))},M=function(e){return i.createElement(n.Input,Object.assign({type:"country"},e))},k=function(e){return i.createElement(n.Element,Object.assign({as:"li"},e))},L=function(e){var a=e.option,t=e.size,d=void 0===t?"md":t,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(k,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e.stopPropagation(),l(a)},fontSize:n.Typography.fontSizes[d],backgroundColor:u?"trueGray.100":"transparent"},s.text),a)},R=function(e){var o=e.size,n=e.styles,a=void 0===n?{dropDown:{}}:n,t=e.options,d=e.callback,r=void 0===d?function(){}:d,l=function(e){return r(e)};return i.createElement(T,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},a.dropDown),t.map((function(e){return i.createElement(L,Object.assign({key:e.code,size:o,option:e.name,callback:l},a.text))})))},V=function(e){var a=e.id,t=e.name,d=e.label,s=e.selected,m=e.placeholder,u=e.helperText,h=e.hide,g=void 0!==h&&h,p=e.error,v=void 0!==p&&p,f=e.isHovered,j=void 0!==f&&f,x=e.isFocused,_=void 0!==x&&x,y=e.isAutoFocus,S=void 0!==y&&y,C=e.isDisabled,w=void 0!==C&&C,E=e.isReadOnly,I=void 0!==E&&E,O=e.shadow,T=void 0===O?{}:O,k=e.newOptions,L=void 0===k?[]:k,V=e.size,D=void 0===V?"md":V,A=e.variant,G=void 0===A?"default":A,B=e.shape,P=void 0===B?"default":B,N=e.colorScheme,W=void 0===N?"theme.primary":N,K=e.onChange,q=e.onBlur,U=void 0===q?function(){}:q,Z=e.setHide,J=void 0===Z?function(){}:Z,Y=e.setNewOptions,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.setIsFocused,oe=void 0===ee?function(){}:ee,ie=e.setSelected,ne=void 0===ie?function(){}:ie,ae=e.styles,te=void 0===ae?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:ae,de=b(e,z),re=(0,n.useTheme().getColor)("color.blueGray.700"),le=function(){return $(!j)};o.useEffect((function(){K&&K(s)}),[K,s]);var ce=!(!_||!d),se=Object.assign({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[D],backgroundColor:"transparent",color:w?"color.trueGray.600":"color.blueGray.700",cursor:w?"not-allowed":"auto"},te.field);return i.createElement(r.FieldContainer,{helperText:u,error:v,styles:te,onClick:function(){w||I||J(!g)}},i.createElement(r.FieldContent,{label:d,size:D,error:v,shape:P,styles:te,shadow:T,variant:G,value:s,color:W,isHovered:j,isDisabled:w,isReadOnly:I,isFocused:_,isWithLabel:ce,colorScheme:W,onMouseEnter:le,onMouseLeave:le},i.createElement(r.FieldWrapper,null,ce&&i.createElement(r.FieldLabel,Object.assign({htmlFor:a,color:W,error:v},te),d),i.createElement(M,Object.assign({id:a,name:t,placeholder:m,readOnly:I,disabled:w,autoFocus:S,onBlur:function(e){U(e),oe(!1)},onFocus:function(){return oe(!0)}},se,de,{value:s,onChange:function(e){var o=e.target.value,i=H.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));g&&J(!1),ne(e.target.value),Q(i),K&&K(e)}}))),i.createElement(r.FieldIcons,null,i.createElement(g?l.ArrowDownSvg:c.ArrowUpSvg,{size:F[D],color:re,style:te.icon}))),!g&&i.createElement(R,{size:D,styles:te,options:L,callback:function(e){J(!g),ne(e)}}))},D=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],A=function(e){return i.createElement(n.Input,Object.assign({type:"date"},e))},G=function(e){var o=e.id,a=e.name,t=e.label,d=e.date,r=e.helperText,l=e.shadow,c=void 0===l?{}:l,s=e.size,p=void 0===s?"md":s,v=e.variant,f=void 0===v?"default":v,j=e.shape,x=void 0===j?"default":j,_=e.colorScheme,y=void 0===_?"theme.primary":_,S=e.styles,C=void 0===S?{box:{},label:{},helperText:{},text:{},field:{}}:S,w=e.error,E=void 0!==w&&w,I=e.isHovered,O=void 0!==I&&I,H=e.isFocused,F=void 0!==H&&H,z=e.isDisabled,T=void 0!==z&&z,M=e.isReadOnly,k=void 0!==M&&M,L=e.setDate,R=void 0===L?function(){}:L,V=e.setIsFocused,G=void 0===V?function(){}:V,B=e.setIsHovered,P=void 0===B?function(){}:B,N=e.onChange,W=e.onChangeText,K=b(e,D),q=!(!F||!t),U=function(){return P(!O)},Z=function(e){"string"==typeof e?(R(e),W&&W(e)):(R(e.target.value),N&&N(e))},J=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:n.Typography.fontSizes[p],backgroundColor:"transparent",color:T?"trueGray.600":"blueGray.700",cursor:T?"not-allowed":k?"auto":"pointer"},C.field);return i.createElement(m.FieldContainer,{helperText:r,error:E,styles:C},i.createElement(u.FieldContent,{label:t,size:p,error:E,shape:x,styles:C,shadow:c,variant:f,value:d,color:y,isHovered:O,isDisabled:T,isReadOnly:k,isFocused:F,isWithLabel:q,colorScheme:y,onMouseEnter:U,onMouseLeave:U},i.createElement(g.FieldWrapper,null,q&&i.createElement(h.FieldLabel,Object.assign({htmlFor:o,color:y,error:E},C),t),i.createElement(A,Object.assign({id:o,name:a,value:d,onFocus:function(){return G(!0)},onChange:Z,disabled:T,readOnly:k},J,W&&{onChangeText:Z},K)))))},B=["name","visibleIcon","hiddenIcon","isDisabled","isVisible","setIsVisible"],P=function(e){var o=e.name,n=e.visibleIcon,t=e.hiddenIcon,d=e.isDisabled,r=void 0!==d&&d,l=e.isVisible,c=void 0!==l&&l,s=e.setIsVisible,m=void 0===s?function(){}:s,u=b(e,B);return i.createElement(a.TextField,Object.assign({name:o,type:c?"text":"password",rightChild:i.createElement(a.View,{onClick:function(){r||m(!c)}},c?n:t),isClearable:!1},u))},N={xs:8,sm:10,md:12,lg:14,xl:16},W=["isHovered","setIsHovered","option","size","callback"],K=["id","name","selected","onChange","isMulti","isDisabled","isReadOnly","options"],q=["option","size","removeOption"],U=["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"],Z=function(e){var o=e.isHovered,a=e.setIsHovered,t=e.option,d=e.size,r=void 0===d?"md":d,l=e.callback,c=void 0===l?function(){}:l,s=b(e,W),m=function(){return a(!o)};return i.createElement(n.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:m,onMouseLeave:m,fontSize:n.Typography.fontSizes[r],onClick:function(){return function(e){return c(e)}(t)},backgroundColor:o?"trueGray.100":"transparent"},s),t)},J=function(e){var o=e.size,t=e.styles,d=void 0===t?{field:{},text:{}}:t,r=e.selected,l=e.isDisabled,c=e.placeholder,s=e.removeOption,m=void 0===s?function(){}:s,u=Object.assign({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:n.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:l?"trueGray.600":"blueGray.700",cursor:l?"not-allowed":"auto"},d.field,d.text);return i.createElement(a.Text,Object.assign({},u),(""===r||r&&0===r.length)&&c?c:i.createElement(i.Fragment,null,"string"==typeof r?r:r&&r.length>0&&i.createElement(a.Horizontal,{gap:6},r.map((function(e){return i.createElement(X,{key:e,option:e,removeOption:m})})))))},Y=function(e){var o=e.id,a=e.name,t=e.selected,d=e.onChange,r=e.isMulti,l=void 0!==r&&r,c=e.isDisabled,s=void 0!==c&&c,m=e.isReadOnly,u=void 0!==m&&m,h=e.options,g=void 0===h?[]:h,p=b(e,K);return i.createElement(n.Element,Object.assign({id:o,name:a,as:"select",opacity:0,width:0,height:0,position:"absolute",value:t,disabled:s,readOnly:u,onChange:function(e){d&&d(e)},multiple:l},p),g.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},Q=function(e){var o,a=e.size,t=e.styles,d=void 0===t?{dropDown:{}}:t,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(n.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(Z,Object.assign({key:e,size:a,option:e,callback:m},s,d.text))})))},X=function(e){var o=e.option,t=e.size,r=void 0===t?"md":t,l=e.removeOption,c=void 0===l?function(){}:l,s=b(e,q);return i.createElement(a.Horizontal,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:n.Typography.fontSizes[r],backgroundColor:"trueGray.300",onClick:function(e){return e.stopPropagation()}},s),i.createElement(a.Text,{size:r},o),i.createElement(d.CloseSvg,{role:"close-button",color:"inherit",size:N[r],onClick:function(){return c(o)}}))},$=function(e){var n=e.id,a=e.name,t=e.label,r=e.selected,l=e.placeholder,c=e.helperText,s=e.hide,v=void 0!==s&&s,f=e.error,j=void 0!==f&&f,x=e.isMulti,_=void 0!==x&&x,y=e.isFocused,S=void 0!==y&&y,C=e.isHovered,w=void 0!==C&&C,E=e.isDisabled,I=void 0!==E&&E,O=e.isReadOnly,H=void 0!==O&&O,F=e.options,z=void 0===F?[]:F,T=e.shadow,M=void 0===T?{}:T,k=e.size,L=void 0===k?"md":k,R=e.colorScheme,V=void 0===R?"theme.primary":R,D=e.shape,A=void 0===D?"default":D,G=e.variant,B=void 0===G?"default":G,P=e.styles,W=void 0===P?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:P,K=e.onChange,q=void 0===K?function(){}:K,Z=e.setHide,X=void 0===Z?function(){}:Z,$=e.setSelected,ee=void 0===$?function(){}:$,oe=e.setIsHovered,ie=void 0===oe?function(){}:oe,ne=e.setIsFocused,ae=void 0===ne?function(){}:ne,te=b(e,U),de=!(!S||!t),re=function(){return ie(!w)},le=o.useCallback((function(e){X(!v),_&&Array.isArray(r)?!r.includes(e)&&ee([].concat(r,[e])):ee(e)}),[v,_,r]);return i.createElement(m.FieldContainer,{role:"SelectBox",helperText:c,error:j,styles:W,onClick:I||H?function(){}:function(e){e.stopPropagation(),X(!v),ae(!S)}},i.createElement(u.FieldContent,{label:t,size:L,error:j,shape:A,styles:W,shadow:M,variant:B,value:r,color:V,isHovered:w,isDisabled:I,isReadOnly:H,isFocused:S,isWithLabel:de,colorScheme:V,onMouseEnter:re,onMouseLeave:re},i.createElement(g.FieldWrapper,null,de&&i.createElement(h.FieldLabel,Object.assign({htmlFor:n,color:V,error:j},W),t),i.createElement(Y,Object.assign({id:n,name:a,options:z,onChange:q,selected:r,isDisabled:I,isReadOnly:H,isMulti:_,onFocus:function(){return ae(!0)}},te)),i.createElement(J,{size:L,styles:W,selected:r,isDisabled:I,placeholder:l,removeOption:function(e){if(Array.isArray(r)&&r.includes(e)){var o=r.filter((function(o){return o!==e}));ee(0===o.length?[]:o)}}})),i.createElement(p.FieldIcons,null,!H&&!I&&i.createElement(i.Fragment,null,i.createElement(v?d.ArrowDownSvg:d.ArrowUpSvg,{color:"inherit",size:N[L],style:W.icon})))),!v&&i.createElement(Q,{size:L,styles:W,options:z,callback:le}))},ee={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}},oe={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}},ie={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}},ne=["id","name","inActiveChild","activeChild","shadow","size","colorScheme","on","isHovered","isChecked","isDisabled","isReadOnly","onChange","onValueChange","setOn","setIsHovered","styles"],ae=function(e){return i.createElement(n.Input,Object.assign({type:"checkbox"},e))},te=function(e){var o=e.id,n=e.name,a=e.inActiveChild,d=e.activeChild,r=e.shadow,l=void 0===r?{}:r,c=e.size,s=void 0===c?"sm":c,m=e.colorScheme,u=void 0===m?"theme.primary":m,h=e.on,g=void 0!==h&&h,p=e.isHovered,f=void 0!==p&&p,j=e.isDisabled,x=void 0!==j&&j,_=e.isReadOnly,y=void 0!==_&&_,S=e.onChange,C=e.onValueChange,w=e.setOn,E=void 0===w?function(){}:w,I=e.setIsHovered,O=void 0===I?function(){}:I,H=e.styles,F=void 0===H?{slider:{},circle:{}}:H,z=b(e,ne),T=function(e){y||(E(!g),S&&S(e))},M=function(){return O(!f)};return i.createElement(t.Label,{htmlFor:o,onMouseEnter:M,onMouseLeave:M},i.createElement(ae,Object.assign({id:o,name:n,opacity:0,width:0,height:0,checked:g,onChange:T,disabled:x,readOnly:y},C&&{onValueChange:T},z)),i.createElement(v.View,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,filter:f&&g?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:x?"disabled":g?u:"lightgray",justifyContent:d?"space-between":g?"flex-end":"flex-start"},l,ie[s],oe[s],F.slider),d&&g&&i.createElement(v.View,null,d),i.createElement(v.View,Object.assign({borderRadius:"50%",backgroundColor:"white"},ee[s],F.circle)),a&&!g&&i.createElement(v.View,null,a)))},de=["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"],re=function(e){var a=e.id,t=e.name,d=e.hint,l=e.error,c=e.label,s=e.shadow,m=e.inputValue,u=e.helperText,h=e.placeholder,g=e.size,p=void 0===g?"sm":g,v=e.shape,f=void 0===v?"default":v,j=e.variant,x=void 0===j?"default":j,_=e.colorScheme,y=void 0===_?"theme.primary":_,S=e.isHovered,C=void 0!==S&&S,w=e.isFocused,E=void 0!==w&&w,I=e.isEditable,O=void 0!==I&&I,H=e.isReadOnly,F=void 0!==H&&H,z=e.isDisabled,T=void 0!==z&&z,M=e.isAutoFocus,k=void 0!==M&&M,L=e.isMultiline,R=void 0!==L&&L,V=e.maxRows,D=void 0===V?3:V,A=e.maxCols,G=void 0===A?30:A,B=e.onBlur,P=void 0===B?function(){}:B,N=e.onChange,W=e.onFocus,K=e.onChangeText,q=e.setHint,U=void 0===q?function(){}:q,Z=e.setInputValue,J=void 0===Z?function(){}:Z,Y=e.setIsFocused,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.styles,oe=void 0===ee?{box:{},text:{},label:{},helperText:{},field:{}}:ee,ie=b(e,de),ne=!(!E||!c);o.useMemo((function(){U(E&&!m?null!=h?h:"":null!=c?c:h)}),[m,E,c,h]);var ae=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[p],backgroundColor:"transparent",color:T?"trueGray.600":"blueGray.700",cursor:T?"not-allowed":"auto"},oe.field),te=function(){return $(!C)},re=function(e){"string"==typeof e?(J(e),K&&K(e)):(J(e.target.value),N&&N(e))};return i.createElement(r.FieldContainer,{helperText:u,error:l,styles:oe},i.createElement(r.FieldContent,{label:c,size:p,error:l,shape:f,styles:oe,shadow:s,variant:x,value:m,color:y,isHovered:C,isDisabled:T,isReadOnly:F,isFocused:E,isWithLabel:ne,colorScheme:y,onMouseEnter:te,onMouseLeave:te},i.createElement(r.FieldWrapper,null,ne&&i.createElement(r.FieldLabel,Object.assign({htmlFor:a,color:y,error:l},oe),c),i.createElement(n.Element,Object.assign({as:"textarea",id:a,name:t,rows:D,cols:G,value:m,readOnly:F,disabled:T,autoFocus:k,editable:O,placeholder:d,onBlur:function(e){P(e),Q(!1)},onFocus:function(){Q(!0),W&&W()},onChange:re,multiline:R},ae,ie,K&&{onChangeText:re})))))},le=["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"],ce=function(e){return i.createElement(n.Input,Object.assign({type:"text"},e))},se=function(e){var a=e.id,t=e.name,r=e.label,l=e.hint,c=e.inputValue,s=e.onChange,v=e.leftChild,f=e.rightChild,j=e.helperText,x=e.placeholder,_=e.onChangeText,y=e.shadow,S=void 0===y?{}:y,C=e.styles,w=void 0===C?{box:{},field:{},label:{},helperText:{},text:{}}:C,E=e.size,I=void 0===E?"md":E,O=e.shape,H=void 0===O?"default":O,F=e.variant,z=void 0===F?"default":F,T=e.colorScheme,M=void 0===T?"theme.primary":T,k=e.error,L=void 0!==k&&k,R=e.isFocused,V=void 0!==R&&R,D=e.isHovered,A=void 0!==D&&D,G=e.isDisabled,B=void 0!==G&&G,P=e.isReadOnly,N=void 0!==P&&P,W=e.isClearable,K=void 0===W||W,q=e.isAutoFocus,U=void 0!==q&&q,Z=e.setHint,J=void 0===Z?function(){}:Z,Y=e.setIsFocused,Q=void 0===Y?function(){}:Y,X=e.setIsHovered,$=void 0===X?function(){}:X,ee=e.setInputValue,oe=void 0===ee?function(){}:ee,ie=e.onFocus,ne=e.onBlur,ae=void 0===ne?function(){}:ne,te=b(e,le),de=(0,n.useTheme().getColor)("color.blueGray.700"),re=!(!V||!r);o.useMemo((function(){J(V&&!c?null!=x?x:"":null!=r?r:x)}),[c,V,r,x]);var se=Object.assign({margin:0,paddingVertical:8,padddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:n.Typography.fontSizes[I],backgroundColor:"transparent",color:B?"color.trueGray.600":"color.blueGray.700",cursor:B?"not-allowed":"auto"},w.field),me=function(){return $(!A)},ue=function(e){"string"==typeof e?(oe(e),_&&_(e)):(oe(e.target.value),s&&s(e))};return i.createElement(m.FieldContainer,{helperText:j,error:L,styles:w},i.createElement(u.FieldContent,{label:r,size:I,error:L,shape:H,styles:w,shadow:S,variant:z,value:c,color:M,isHovered:A,isDisabled:B,isReadOnly:N,isFocused:V,isWithLabel:re,colorScheme:M,onMouseEnter:me,onMouseLeave:me},v,i.createElement(g.FieldWrapper,null,re&&i.createElement(h.FieldLabel,Object.assign({htmlFor:a,color:M,error:L},w),r),i.createElement(ce,Object.assign({id:a,name:t,value:c,readOnly:N,disabled:B,autoFocus:U,placeholder:l,onFocus:function(){Q(!0),ie&&ie()},onBlur:function(e){ae(e),Q(!1)},autoComplete:"off"},se,te,{onChange:ue},_&&{onChangeText:ue}))),(f||K&&c)&&i.createElement(p.FieldIcons,null,f&&i.createElement(i.Fragment,null,f),K&&c&&!N&&!B&&i.createElement(d.CloseSvg,{size:n.Typography.fontSizes[I],color:de,onClick:function(){oe(""),s&&(ae({target:{name:t}}),s({target:{name:t,value:""}})),"undefined"==typeof document&&_&&_("")}}))))},me=["children","wrap"],ue=function(e){var o=e.children,n=e.wrap,a=b(e,me);return i.createElement(v.View,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:n},a),o)},he=["children","wrap","justify","isReversed"],ge=function(e){var o=e.children,n=e.wrap,t=void 0===n?"wrap":n,d=e.justify,r=void 0===d?"flex-start":d,l=e.isReversed,c=void 0!==l&&l,s=b(e,he);return i.createElement(a.View,Object.assign({display:"flex",flexWrap:t,flexDirection:c?"row-reverse":"row",justifyContent:r},s),o)},pe=["children","wrap","justify","isReversed"],ve=function(e){var o=e.children,a=e.wrap,t=void 0===a?"nowrap":a,d=e.justify,r=void 0===d?"flex-start":d,l=e.isReversed,c=void 0!==l&&l,s=b(e,pe);return i.createElement(n.View,Object.assign({display:"flex",flexWrap:t,flexDirection:c?"column-reverse":"column",justifyContent:r},s),o)},fe={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},je=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],be=function(e){var o=e.children,t=e.href,r=void 0===t?"/":t,l=e.iconSize,c=void 0===l?"sm":l,s=e.underline,m=void 0===s?"default":s,u=e.isHovered,h=void 0!==u&&u,g=e.isExternal,p=void 0!==g&&g,v=e.colorScheme,j=void 0===v?"#0072F5":v,x=e.styles,_=void 0===x?{icon:{},text:{}}:x,y=e.setIsHovered,S=void 0===y?function(){}:y,C=b(e,je),w=function(){"hover"===m&&S(!0)};return i.createElement(f.Link,{to:r,target:p?"_blank":"_self"},i.createElement(n.Element,Object.assign({color:j,onMouseEnter:w,onMouseLeave:w,textDecoration:h||"underline"===m?"underline !important":"none"},_.text,C),i.createElement(a.Horizontal,{gap:3,alignItems:"center",wrap:"nowrap"},o,p&&i.createElement(d.ExternalLinkSvg,{color:j,size:fe[c],style:_.icon}))))},xe={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},_e={fast:50,normal:100,slow:300},ye=["size","speed","color"],Se=["size","speed","color"],Ce=["size","speed","color"],we=["size","children","textColor","loaderColor","type","speed","textPosition"],Ee=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,ye),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[r]);return function(){return clearInterval(e)}}),[r]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:u+"px",height:u+"px",viewBox:"0 0 24 24",fill:"none",stroke:m,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},Ie=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,Se),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[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:u+"px",height:u+"px",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:m}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:m}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:m}))},Oe=function(e){var a=e.size,t=void 0===a?"md":a,d=e.speed,r=void 0===d?"normal":d,l=e.color,c=void 0===l?"theme.loading":l,s=b(e,Ce),m=n.useTheme().getColor(c),u="number"==typeof t?t:xe[t],h=o.useState(0),g=h[0],p=h[1];return o.useEffect((function(){var e=setInterval((function(){p((function(e){return e+45}))}),_e[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:u+"px",height:u+"px",style:{transform:"rotate("+g+"deg)"}},s),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:m,strokeWidth:"5",strokeDasharray:"1,10"}))},He=function(e){var o=e.size,n=e.children,t=e.textColor,d=e.loaderColor,r=e.type,l=void 0===r?"default":r,c=e.speed,s=void 0===c?"normal":c,m=e.textPosition,u=void 0===m?"right":m,h=b(e,we),g={size:o,speed:s,color:d},p={default:i.createElement(Ee,Object.assign({},g)),dotted:i.createElement(Ie,Object.assign({},g)),quarter:i.createElement(Oe,Object.assign({},g))};return i.createElement(a.Center,Object.assign({gap:10,flexDirection:"top"===u||"bottom"===u?"column":"row"},h),("left"===u||"top"===u)&&n&&i.createElement(a.View,{color:t},n),p[l],("right"===u||"bottom"===u)&&n&&i.createElement(a.View,{color:t},n))},Fe={sharp:{borderRadius:0},rounded:{borderRadius:4}},ze={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},Te={xs:12,sm:16,md:20,lg:24,xl:28},Me=["children","blur","isOpen","isClosePrevented","onClose","position"],ke=["children","shadow","isFullScreen","shape"],Le=["children","buttonColor","iconSize","buttonPosition"],Re=["children"],Ve=["children"],De=function(e){return i.createElement(i.Fragment,null,e.children)};De.Overlay=function(e){var n=e.children,t=e.blur,d=e.isOpen,r=void 0!==d&&d,l=e.isClosePrevented,c=void 0!==l&&l,s=e.onClose,m=void 0===s?function(){}:s,u=e.position,h=void 0===u?"center":u,g=b(e,Me),p=j.useModalStore((function(e){return e.setOpen})),f=j.useModalStore((function(e){return e.setOnClose}));if(o.useEffect((function(){f(m),r&&p()})),!r)return null;var x=function(){c||m()};return i.createElement(a.Center,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:x,visibility:r?"visible":"hidden"},i.createElement(v.View,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:x},ze[h],g),n))},De.Container=function(e){var o=e.children,n=e.shadow,t=e.isFullScreen,d=void 0!==t&&t,r=e.shape,l=void 0===r?"rounded":r,c=b(e,ke),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(a.Vertical,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:d?"100%":600,height:d?"100%":"fit-content",onClick:function(e){return e.stopPropagation()}},n||s,Fe[l],c),o)},De.Header=function(e){var o=e.children,n=e.buttonColor,t=void 0===n?"theme.primary":n,r=e.iconSize,l=void 0===r?"md":r,c=e.buttonPosition,s=void 0===c?"right":c,m=b(e,Le),u=j.useModalStore((function(e){return e.onClose})),h=i.createElement(a.Button,{onClick:u,colorScheme:"transparent",icon:i.createElement(d.CloseSvg,{size:Te[l],color:t}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(a.Horizontal,Object.assign({justifyContent:"none"===s?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},m),"left"===s&&h,o,"right"===s&&h)},De.Body=function(e){var o=e.children,n=b(e,Re);return i.createElement(v.View,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},n),o)},De.Footer=function(e){var o=e.children,n=b(e,Ve);return i.createElement(a.Horizontal,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},n),o)};var Ae={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}},Ge=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],Be=function(e){var o=e.children,n=e.isSub,a=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,n&&i.createElement("sup",null,o),a&&i.createElement("sup",null,o),!n&&!a&&i.createElement(i.Fragment,null,o)):o)},Pe=function(e){var n=e.text,a=e.maxLines,t=void 0===a?1:a,d=o.useRef(null),r=o.useState(n),l=r[0],c=r[1];return o.useEffect((function(){var e=l,o=d.current;if(o){var i=o.offsetHeight,a=getComputedStyle(o).lineHeight,r="normal"!==a?parseFloat(a):20,s=Math.ceil(r*t);i>s?e=e.slice(0,-1):i===s&&l.length!==n.length&&(e=e.slice(0,-3)+"..."),c(e)}}),[t,n,d,l]),i.createElement("div",{ref:d},l)},Ne=function(e){var o=e.children,a=e.heading,t=e.maxLines,d=e.isItalic,r=void 0!==d&&d,l=e.isUnderlined,c=void 0!==l&&l,s=e.isSub,m=void 0!==s&&s,u=e.isSup,h=void 0!==u&&u,g=e.isStriked,p=void 0!==g&&g,v=e.isTruncated,f=void 0!==v&&v,j=e.weight,x=void 0===j?"normal":j,_=e.size,y=void 0===_?"md":_,S=b(e,Ge);return i.createElement(n.Element,Object.assign({role:"text",fontSize:n.Typography.fontSizes[y],lineHeight:n.Typography.lineHeights[y],fontStyle:r?"italic":"normal",fontWeight:n.Typography.fontWeights[x],textDecoration:p?"line-through":c?"underline":"none"},m||h?{display:"inline"}:{},a?Ae[a]:{},S),f&&t&&"string"==typeof o?i.createElement(Pe,{text:o,maxLines:t}):i.createElement(Be,Object.assign({isSub:m,isSup:h},S),o))};Object.defineProperty(exports,"View",{enumerable:!0,get:function(){return n.View}}),exports.Button=function(e){var o,n={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},a=n.isHovered,t=n.setIsHovered,d=function(){return t(!a)};return i.createElement(C,Object.assign({onMouseEnter:d,onMouseLeave:d,filter:a?"brightness(0.85)":"brightness(1)"},e))},exports.Center=function(e){return i.createElement(ue,Object.assign({},e))},exports.Checkbox=function(e){var o,n,a,t,d=(n=void 0!==(o=e.defaultIsSelected)&&o,{isHovered:(a=i.useState(!1))[0],setIsHovered:a[1],isSelected:(t=i.useState(n))[0],setIsSelected:t[1]});return i.createElement(O,Object.assign({},d,e))},exports.CountryPicker=function(e){var o,n,a,t,d,r,l,c,s,m,u,h,g,p,v=(o=e.placeholder,a=(n=i.useState(H))[0],t=n[1],r=(d=i.useState(null!=o?o:H[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:a,setNewOptions:t,isHovered:(p=i.useState(!1))[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,selected:r,setSelected:l});return i.createElement(V,Object.assign({},v,e))},exports.DatePicker=function(e){var o,n,a,t,d,r,l,c=(n=(o=i.useState(!1))[0],a=o[1],d=(t=i.useState(!1))[0],r=t[1],{date:(l=i.useState(s(new Date,"yyyy-MM-dd")))[0],setDate:l[1],isHovered:n,setIsHovered:a,isFocused:d,setIsFocused:r});return i.createElement(G,Object.assign({},c,e))},exports.Horizontal=function(e){return i.createElement(ge,Object.assign({},e))},exports.Link=function(e){var n,a={isHovered:(n=o.useState(!1))[0],setIsHovered:n[1]};return i.createElement(be,Object.assign({},a,e))},exports.Loading=function(e){return i.createElement(He,Object.assign({},e))},exports.Modal=De,exports.Password=function(e){var n,a={isVisible:(n=o.useState(!1))[0],setIsVisible:n[1]};return i.createElement(P,Object.assign({},a,e))},exports.Select=function(e){var o,n,a,t,d,r,l,c,s,m,u,h,g=(n=(o=e).placeholder?o.isMulti?[]:"":o.options[0],t=(a=i.useState(!0))[0],d=a[1],l=(r=i.useState(!1))[0],c=r[1],m=(s=i.useState(!1))[0],u=s[1],{selected:(h=i.useState(n))[0],setSelected:h[1],hide:t,setHide:d,isHovered:l,setIsHovered:c,isFocused:m,setIsFocused:u});return i.createElement($,Object.assign({},g,e))},exports.Switch=function(e){var o,n,a,t,d,r=(n=(o=e).isDisabled,a=o.isChecked,{isHovered:(t=i.useState(!1))[0],setIsHovered:t[1],on:(d=i.useState(n?!n:a))[0],setOn:d[1]});return i.createElement(te,Object.assign({},r,e))},exports.Text=function(e){return i.createElement(Ne,Object.assign({},e))},exports.TextArea=function(e){var n,a,t,d,r,l,c,s,m=(t=(n=e).defaultValue,d=n.value,{hint:(r=o.useState(null!=(a=n.label)?a:n.placeholder))[0],setHint:r[1],isHovered:(l=o.useState(!1))[0],setIsHovered:l[1],inputValue:(c=o.useState(d||t||""))[0],setInputValue:c[1],isFocused:(s=o.useState(!1))[0],setIsFocused:s[1]});return i.createElement(re,Object.assign({},m,e))},exports.TextField=function(e){var n,a,t,d,r,l,c,s=(t=(n=e).value,{hint:(d=o.useState(null!=(a=n.label)?a:n.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(t||""))[0],setInputValue:c[1]});return i.createElement(se,Object.assign({},s,e))},exports.Vertical=function(e){return i.createElement(ve,Object.assign({},e))};
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0}),require("core-js/modules/es6.object.assign.js");var o=require("react"),i=e(o),t=require("app-studio"),n=require("react-router-dom");require("core-js/modules/es6.array.map.js"),require("core-js/modules/es6.array.filter.js"),require("core-js/modules/es6.string.starts-with.js"),require("core-js/modules/es6.array.slice.js");var a=e(require("date-fns/format"));require("core-js/modules/es6.string.includes.js"),require("core-js/modules/es7.array.includes.js");var d=require("./store/useModalStore");function r(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 l=["children","wrap","justify","isReversed"],c=function(e){var o=e.children,n=e.wrap,a=void 0===n?"wrap":n,d=e.justify,c=void 0===d?"flex-start":d,s=e.isReversed,m=void 0!==s&&s,u=r(e,l);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:m?"row-reverse":"row",justifyContent:c},u),o)},s=function(e){return i.createElement(c,Object.assign({},e))},m=["children","wrap"],u=function(e){var o=e.children,n=e.wrap,a=r(e,m);return i.createElement(t.View,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:n},a),o)},h=function(e){return i.createElement(u,Object.assign({},e))},g=["size","color"],p=function(e){var o=e.size,t=void 0===o?64:o,n=r(e,g);return i.createElement(h,{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]"})))))))},v=["size","color"],f=function(e){var o=e.size,t=void 0===o?64:o,n=r(e,v);return i.createElement(h,{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]"})))))))},b=["size","color"],j=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=r(e,b);return i.createElement(h,{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"}))))},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=r(e,x);return i.createElement(h,{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"}))))},_=["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=r(e,_);return i.createElement(h,{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"}))))},w=["size","color"],E=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,d=r(e,w);return i.createElement(h,{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"})," ")))},C={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},z=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],O=function(e){var o=e.children,a=e.href,d=void 0===a?"/":a,l=e.iconSize,c=void 0===l?"sm":l,m=e.underline,u=void 0===m?"default":m,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,w=r(e,z),E=function(){"hover"===u&&_(!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"===u?"underline !important":"none"},x.text,w),i.createElement(s,{gap:3,alignItems:"center",wrap:"nowrap"},o,v&&i.createElement(y,{color:b,size:C[c],style:x.icon}))))},H=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(O,Object.assign({},n,e))},I={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}},k={sharp:0,rounded:4,pillShaped:24},R={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"],T=function(e){var o,n=e.icon,a=e.shadow,d=e.children,l=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":_,w=e.iconPosition,E=void 0===w?"left":w,C=e.colorScheme,z=void 0===C?"theme.primary":C,O=e.shape,T=void 0===O?"rounded":O,L=e.onClick,V=void 0===L?function(){}:L,F=r(e,M),G=!(j||f),B={disabled:!G},D=G?z:"theme.disabled",A=I[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?R[S].padding:I[S].padding},K=i.createElement(i.Fragment,null,n&&"left"===E&&!f&&n,d,n&&"right"===E&&!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:l,backgroundColor:D,borderRadius:k[T],onClick:null!=(o=F.onClick)?o:V,cursor:G?"pointer":"default"},B,A,P,W,N,a,F),"link"===y&&c?i.createElement(H,{href:c,textDecorationColor:z,colorScheme:z,isExternal:!0},K):K)},L=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(T,Object.assign({onMouseEnter:d,onMouseLeave:d,filter:n?"brightness(0.85)":"brightness(1)"},e))},V={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}},F=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],G=function(e){var o=e.children,n=e.heading,a=e.isItalic,d=void 0!==a&&a,l=e.isUnderlined,c=void 0!==l&&l,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=r(e,F);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?V[n]:{},v),o)},B=function(e){return i.createElement(G,Object.assign({},e))},D={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}},A={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},P=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],W=function(e){var o=e.id,n=e.icon,a=e.label,d=e.isChecked,l=e.onChange,c=e.onValueChange,s=e.shadow,m=void 0===s?{}:s,u=e.size,g=void 0===u?"md":u,p=e.colorScheme,v=void 0===p?"theme.primary":p,f=e.error,b=void 0!==f&&f,x=e.isSelected,S=void 0!==x&&x,_=e.isHovered,y=void 0!==_&&_,w=e.isDisabled,C=void 0!==w&&w,z=e.isReadOnly,O=void 0!==z&&z,H=e.isIndeterminate,I=void 0!==H&&H,k=e.setIsSelected,R=void 0===k?function(){}:k,M=e.setIsHovered,T=void 0===M?function(){}:M,L=e.styles,V=void 0===L?{checkbox:{},label:{}}:L,F=r(e,P),G=function(){return T(!y)},W={container:Object.assign({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:b?"theme.error":C?"theme.disabled":"color.blueGray.700",cursor:C?"not-allowed":O?"default":"pointer"},V.label),checkbox:Object.assign({},C?{backgroundColor:"theme.disabled"}:(d||S)&&!I||I?{backgroundColor:v}:{borderWidth:2,borderColor:b?"theme.error":y?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:y?"brightness(0.9)":void 0},D[g],m,V.checkbox)};return i.createElement(B,Object.assign({htmlFor:o,as:"div",onClick:function(){O||C||(void 0===d?R(!S):(l&&l(!d),c&&c(!d)))},onMouseEnter:G,onMouseLeave:G,size:t.Typography.fontSizes[g]},W.container,F),i.createElement(h,Object.assign({},W.checkbox),I?i.createElement(E,null):(d||S)&&(null!=n?n:i.createElement(j,{size:A[g]}))),a)},N=[{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"}],K=["children","wrap","justify","isReversed"],U=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,d=e.justify,l=void 0===d?"flex-start":d,c=e.isReversed,s=void 0!==c&&c,m=r(e,K);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:s?"column-reverse":"column",justifyContent:l},m),o)},q=function(e){return i.createElement(U,Object.assign({},e))},Z={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}},J=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],Y=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)},Q=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)},X=function(e){var o=e.children,n=e.heading,a=e.maxLines,d=e.isItalic,l=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=r(e,J);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[_],lineHeight:t.Typography.lineHeights[_],fontStyle:l?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":s?"underline":"none"},u||g?{display:"inline"}:{},n?Z[n]:{},y),b&&a&&"string"==typeof o?i.createElement(Q,{text:o,maxLines:a}):i.createElement(Y,Object.assign({isSub:u,isSup:g},y),o))},$=function(e){return i.createElement(X,Object.assign({},e))},ee=["children","styles","error"],oe=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=e.error,d=void 0!==a&&a,l=r(e,ee);return i.createElement($,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:d?"theme.error":"theme.text.dark"},n.helperText,l),o)},ie=["children","helperText","error","styles"],te=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,d=e.styles,l=r(e,ie);return i.createElement(q,Object.assign({gap:5,position:"relative"},l),o,t&&i.createElement(oe,Object.assign({error:a},d),t))},ne={default:{borderTopLeftRadius:6,borderTopRightRadius:6,borderBottomLeftRadius:0,borderBottomRightRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},ae={xs:8,sm:10,md:12,lg:14,xl:16},de={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:2},unStyled:{border:"none",backgroundColor:"transparent"}},re={paddingTop:16,paddingBottom:0,paddingLeft:16,paddingRight:35},le={paddingVertical:8,paddingLeft:16,paddingRight:35},ce=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],se=function(e){var o=e.shadow,n=e.children,a=e.size,d=void 0===a?"md":a,l=e.shape,c=void 0===l?"default":l,m=e.variant,u=void 0===m?"default":m,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,w=void 0!==y&&y,E=e.colorScheme,C=void 0===E?"theme.primary":E,z=e.styles,O=void 0===z?{pickerBox:{}}:z,H=r(e,ce);return i.createElement(s,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:g?"error":!x&&!b||_?"midgray":C,backgroundColor:"trueGray.50",transition:"padding 0.2s ease",justifyContent:"space-between",fontSize:t.Typography.fontSizes[d],filter:x?"brightness(0.97)":"brightness(1)",cursor:_?"not-allowed":w?"auto":"pointer"},v?re:le,o,ne[c],de[u],O.box,H),n)},me=["children"],ue=function(e){var o=e.children,t=r(e,me);return i.createElement(h,Object.assign({gap:10,top:"50%",right:16,zIndex:500,wrap:"nowrap",position:"absolute",transform:"translateY(-50%)"},t),o)},he=["children","size","error","color","styles"],ge=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,d=void 0!==a&&a,l=e.color,c=void 0===l?"theme.primary":l,s=e.styles,m=void 0===s?{label:{}}:s,u=r(e,he);return i.createElement(B,Object.assign({top:4,zIndex:1e3,lineHeight:15,letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:d?"error":c,fontSize:ae[n]},m.label,u),o)},pe=["children"],ve=function(e){var o=e.children,t=r(e,pe);return i.createElement(q,Object.assign({width:"100%"},t),o)},fe={xs:8,sm:10,md:12,lg:14,xl:16},be=["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"],je=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},xe=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},Se=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},_e=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(Se,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)},ye=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(je,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(_e,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},we=function(e){var n=e.id,a=e.name,d=e.label,l=e.selected,c=e.placeholder,s=e.helperText,m=e.hide,u=void 0!==m&&m,h=e.error,g=void 0!==h&&h,v=e.isHovered,b=void 0!==v&&v,j=e.isFocused,x=void 0!==j&&j,S=e.isAutoFocus,_=void 0!==S&&S,y=e.isDisabled,w=void 0!==y&&y,E=e.isReadOnly,C=void 0!==E&&E,z=e.shadow,O=void 0===z?{}:z,H=e.newOptions,I=void 0===H?[]:H,k=e.size,R=void 0===k?"md":k,M=e.variant,T=void 0===M?"default":M,L=e.shape,V=void 0===L?"default":L,F=e.colorScheme,G=void 0===F?"theme.primary":F,B=e.onChange,D=e.onBlur,A=void 0===D?function(){}:D,P=e.setHide,W=void 0===P?function(){}:P,K=e.setNewOptions,U=void 0===K?function(){}:K,q=e.setIsHovered,Z=void 0===q?function(){}:q,J=e.setIsFocused,Y=void 0===J?function(){}:J,Q=e.setSelected,X=void 0===Q?function(){}:Q,$=e.styles,ee=void 0===$?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:$,oe=r(e,be),ie=(0,t.useTheme().getColor)("color.blueGray.700"),ne=function(){return Z(!b)};o.useEffect((function(){B&&B(l)}),[B,l]);var ae=!(!x||!d),de=Object.assign({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"},ee.field);return i.createElement(te,{helperText:s,error:g,styles:ee,onClick:function(){w||C||W(!u)}},i.createElement(se,{label:d,size:R,error:g,shape:V,styles:ee,shadow:O,variant:T,value:l,color:G,isHovered:b,isDisabled:w,isReadOnly:C,isFocused:x,isWithLabel:ae,colorScheme:G,onMouseEnter:ne,onMouseLeave:ne},i.createElement(ve,null,ae&&i.createElement(ge,Object.assign({htmlFor:n,color:G,error:g},ee),d),i.createElement(xe,Object.assign({id:n,name:a,placeholder:c,readOnly:C,disabled:w,autoFocus:_,onBlur:function(e){A(e),Y(!1)},onFocus:function(){return Y(!0)}},de,oe,{value:l,onChange:function(e){var o=e.target.value,i=N.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));u&&W(!1),X(e.target.value),U(i),B&&B(e)}}))),i.createElement(ue,null,i.createElement(u?p:f,{size:fe[R],color:ie,style:ee.icon}))),!u&&i.createElement(ye,{size:R,styles:ee,options:I,callback:function(e){W(!u),X(e)}}))},Ee=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Ce=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},ze=function(e){var o=e.id,n=e.name,a=e.label,d=e.date,l=e.helperText,c=e.shadow,s=void 0===c?{}:c,m=e.size,u=void 0===m?"md":m,h=e.variant,g=void 0===h?"default":h,p=e.shape,v=void 0===p?"default":p,f=e.colorScheme,b=void 0===f?"theme.primary":f,j=e.styles,x=void 0===j?{box:{},label:{},helperText:{},text:{},field:{}}:j,S=e.error,_=void 0!==S&&S,y=e.isHovered,w=void 0!==y&&y,E=e.isFocused,C=void 0!==E&&E,z=e.isDisabled,O=void 0!==z&&z,H=e.isReadOnly,I=void 0!==H&&H,k=e.setDate,R=void 0===k?function(){}:k,M=e.setIsFocused,T=void 0===M?function(){}:M,L=e.setIsHovered,V=void 0===L?function(){}:L,F=e.onChange,G=e.onChangeText,B=r(e,Ee),D=!(!C||!a),A=function(){return V(!w)},P=function(e){"string"==typeof e?(R(e),G&&G(e)):(R(e.target.value),F&&F(e))},W=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:t.Typography.fontSizes[u],backgroundColor:"transparent",color:O?"trueGray.600":"blueGray.700",cursor:O?"not-allowed":I?"auto":"pointer"},x.field);return i.createElement(te,{helperText:l,error:_,styles:x},i.createElement(se,{label:a,size:u,error:_,shape:v,styles:x,shadow:s,variant:g,value:d,color:b,isHovered:w,isDisabled:O,isReadOnly:I,isFocused:C,isWithLabel:D,colorScheme:b,onMouseEnter:A,onMouseLeave:A},i.createElement(ve,null,D&&i.createElement(ge,Object.assign({htmlFor:o,color:b,error:_},x),a),i.createElement(Ce,Object.assign({id:o,name:n,value:d,onFocus:function(){return T(!0)},onChange:P,disabled:O,readOnly:I},W,G&&{onChangeText:P},B)))))},Oe=["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"],He=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},Ie=function(e){var n=e.id,a=e.name,d=e.label,l=e.hint,c=e.inputValue,s=e.onChange,m=e.leftChild,u=e.rightChild,h=e.helperText,g=e.placeholder,p=e.onChangeText,v=e.shadow,f=void 0===v?{}:v,b=e.styles,j=void 0===b?{box:{},field:{},label:{},helperText:{},text:{}}:b,x=e.size,_=void 0===x?"md":x,y=e.shape,w=void 0===y?"default":y,E=e.variant,C=void 0===E?"default":E,z=e.colorScheme,O=void 0===z?"theme.primary":z,H=e.error,I=void 0!==H&&H,k=e.isFocused,R=void 0!==k&&k,M=e.isHovered,T=void 0!==M&&M,L=e.isDisabled,V=void 0!==L&&L,F=e.isReadOnly,G=void 0!==F&&F,B=e.isClearable,D=void 0===B||B,A=e.isAutoFocus,P=void 0!==A&&A,W=e.setHint,N=void 0===W?function(){}:W,K=e.setIsFocused,U=void 0===K?function(){}:K,q=e.setIsHovered,Z=void 0===q?function(){}:q,J=e.setInputValue,Y=void 0===J?function(){}:J,Q=e.onFocus,X=e.onBlur,$=void 0===X?function(){}:X,ee=r(e,Oe),oe=(0,t.useTheme().getColor)("color.blueGray.700"),ie=!(!R||!d);o.useMemo((function(){N(R&&!c?null!=g?g:"":null!=d?d:g)}),[c,R,d,g]);var ne=Object.assign({margin:0,paddingVertical:8,padddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[_],backgroundColor:"transparent",color:V?"color.trueGray.600":"color.blueGray.700",cursor:V?"not-allowed":"auto"},j.field),ae=function(){return Z(!T)},de=function(e){"string"==typeof e?(Y(e),p&&p(e)):(Y(e.target.value),s&&s(e))};return i.createElement(te,{helperText:h,error:I,styles:j},i.createElement(se,{label:d,size:_,error:I,shape:w,styles:j,shadow:f,variant:C,value:c,color:O,isHovered:T,isDisabled:V,isReadOnly:G,isFocused:R,isWithLabel:ie,colorScheme:O,onMouseEnter:ae,onMouseLeave:ae},m,i.createElement(ve,null,ie&&i.createElement(ge,Object.assign({htmlFor:n,color:O,error:I},j),d),i.createElement(He,Object.assign({id:n,name:a,value:c,readOnly:G,disabled:V,autoFocus:P,placeholder:l,onFocus:function(){U(!0),Q&&Q()},onBlur:function(e){$(e),U(!1)},autoComplete:"off"},ne,ee,{onChange:de},p&&{onChangeText:de}))),(u||D&&c)&&i.createElement(ue,null,u&&i.createElement(i.Fragment,null,u),D&&c&&!G&&!V&&i.createElement(S,{size:t.Typography.fontSizes[_],color:oe,onClick:function(){Y(""),s&&($({target:{name:a}}),s({target:{name:a,value:""}})),"undefined"==typeof document&&p&&p("")}}))))},ke=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(Ie,Object.assign({},s,e))},Re=["name","visibleIcon","hiddenIcon","isDisabled","isVisible","setIsVisible"],Me=function(e){var o=e.name,n=e.visibleIcon,a=e.hiddenIcon,d=e.isDisabled,l=void 0!==d&&d,c=e.isVisible,s=void 0!==c&&c,m=e.setIsVisible,u=void 0===m?function(){}:m,h=r(e,Re);return i.createElement(ke,Object.assign({name:o,type:s?"text":"password",rightChild:i.createElement(t.View,{onClick:function(){l||u(!s)}},s?n:a),isClearable:!1},h))},Te={xs:8,sm:10,md:12,lg:14,xl:16},Le=["isHovered","setIsHovered","option","size","callback"],Ve=["id","name","selected","onChange","isMulti","isDisabled","isReadOnly","options"],Fe=["option","size","removeOption"],Ge=["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"],Be=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,d=e.size,l=void 0===d?"md":d,c=e.callback,s=void 0===c?function(){}:c,m=r(e,Le),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[l],onClick:function(){return function(e){return s(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},m),a)},De=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,d=e.selected,r=e.isDisabled,l=e.placeholder,c=e.removeOption,m=void 0===c?function(){}:c,u=Object.assign({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:r?"trueGray.600":"blueGray.700",cursor:r?"not-allowed":"auto"},a.field,a.text);return i.createElement($,Object.assign({},u),(""===d||d&&0===d.length)&&l?l:i.createElement(i.Fragment,null,"string"==typeof d?d:d&&d.length>0&&i.createElement(s,{gap:6},d.map((function(e){return i.createElement(We,{key:e,option:e,removeOption:m})})))))},Ae=function(e){var o=e.id,n=e.name,a=e.selected,d=e.onChange,l=e.isMulti,c=void 0!==l&&l,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=r(e,Ve);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)})))},Pe=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(Be,Object.assign({key:e,size:n,option:e,callback:m},s,d.text))})))},We=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,d=e.removeOption,l=void 0===d?function(){}:d,c=r(e,Fe);return i.createElement(s,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:t.Typography.fontSizes[a],backgroundColor:"trueGray.300",onClick:function(e){return e.stopPropagation()}},c),i.createElement($,{size:a},o),i.createElement(S,{role:"close-button",color:"inherit",size:Te[a],onClick:function(){return l(o)}}))},Ne=function(e){var t=e.id,n=e.name,a=e.label,d=e.selected,l=e.placeholder,c=e.helperText,s=e.hide,m=void 0!==s&&s,u=e.error,h=void 0!==u&&u,g=e.isMulti,v=void 0!==g&&g,b=e.isFocused,j=void 0!==b&&b,x=e.isHovered,S=void 0!==x&&x,_=e.isDisabled,y=void 0!==_&&_,w=e.isReadOnly,E=void 0!==w&&w,C=e.options,z=void 0===C?[]:C,O=e.shadow,H=void 0===O?{}:O,I=e.size,k=void 0===I?"md":I,R=e.colorScheme,M=void 0===R?"theme.primary":R,T=e.shape,L=void 0===T?"default":T,V=e.variant,F=void 0===V?"default":V,G=e.styles,B=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,D=e.onChange,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,q=void 0===U?function(){}:U,Z=e.setIsFocused,J=void 0===Z?function(){}:Z,Y=r(e,Ge),Q=!(!j||!a),X=function(){return q(!S)},$=o.useCallback((function(e){W(!m),v&&Array.isArray(d)?!d.includes(e)&&K([].concat(d,[e])):K(e)}),[m,v,d]);return i.createElement(te,{role:"SelectBox",helperText:c,error:h,styles:B,onClick:y||E?function(){}:function(e){e.stopPropagation(),W(!m),J(!j)}},i.createElement(se,{label:a,size:k,error:h,shape:L,styles:B,shadow:H,variant:F,value:d,color:M,isHovered:S,isDisabled:y,isReadOnly:E,isFocused:j,isWithLabel:Q,colorScheme:M,onMouseEnter:X,onMouseLeave:X},i.createElement(ve,null,Q&&i.createElement(ge,Object.assign({htmlFor:t,color:M,error:h},B),a),i.createElement(Ae,Object.assign({id:t,name:n,options:z,onChange:A,selected:d,isDisabled:y,isReadOnly:E,isMulti:v,onFocus:function(){return J(!0)}},Y)),i.createElement(De,{size:k,styles:B,selected:d,isDisabled:y,placeholder:l,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(ue,null,!E&&!y&&i.createElement(i.Fragment,null,i.createElement(m?p:f,{color:"inherit",size:Te[k],style:B.icon})))),!m&&i.createElement(Pe,{size:k,styles:B,options:z,callback:$}))},Ke={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}},Ue={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}},qe={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}},Ze=["id","name","inActiveChild","activeChild","shadow","size","colorScheme","on","isHovered","isChecked","isDisabled","isReadOnly","onChange","onValueChange","setOn","setIsHovered","styles"],Je=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},Ye=function(e){var o=e.id,n=e.name,a=e.inActiveChild,d=e.activeChild,l=e.shadow,c=void 0===l?{}:l,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,w=e.setOn,E=void 0===w?function(){}:w,C=e.setIsHovered,z=void 0===C?function(){}:C,O=e.styles,H=void 0===O?{slider:{},circle:{}}:O,I=r(e,Ze),k=function(e){S||(E(!p),_&&_(e))},R=function(){return z(!f)};return i.createElement(B,{htmlFor:o,onMouseEnter:R,onMouseLeave:R},i.createElement(Je,Object.assign({id:o,name:n,opacity:0,width:0,height:0,checked:p,onChange:k,disabled:j,readOnly:S},y&&{onValueChange:k},I)),i.createElement(t.View,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:d?"space-between":p?"flex-end":"flex-start"},c,qe[m],Ue[m],H.slider),d&&p&&i.createElement(t.View,null,d),i.createElement(t.View,Object.assign({borderRadius:"50%",backgroundColor:"white"},Ke[m],H.circle)),a&&!p&&i.createElement(t.View,null,a)))},Qe=["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"],Xe=function(e){var n=e.id,a=e.name,d=e.hint,l=e.error,c=e.label,s=e.shadow,m=e.inputValue,u=e.helperText,h=e.placeholder,g=e.size,p=void 0===g?"sm":g,v=e.shape,f=void 0===v?"default":v,b=e.variant,j=void 0===b?"default":b,x=e.colorScheme,S=void 0===x?"theme.primary":x,_=e.isHovered,y=void 0!==_&&_,w=e.isFocused,E=void 0!==w&&w,C=e.isEditable,z=void 0!==C&&C,O=e.isReadOnly,H=void 0!==O&&O,I=e.isDisabled,k=void 0!==I&&I,R=e.isAutoFocus,M=void 0!==R&&R,T=e.isMultiline,L=void 0!==T&&T,V=e.maxRows,F=void 0===V?3:V,G=e.maxCols,B=void 0===G?30:G,D=e.onBlur,A=void 0===D?function(){}:D,P=e.onChange,W=e.onFocus,N=e.onChangeText,K=e.setHint,U=void 0===K?function(){}:K,q=e.setInputValue,Z=void 0===q?function(){}:q,J=e.setIsFocused,Y=void 0===J?function(){}:J,Q=e.setIsHovered,X=void 0===Q?function(){}:Q,$=e.styles,ee=void 0===$?{box:{},text:{},label:{},helperText:{},field:{}}:$,oe=r(e,Qe),ie=!(!E||!c);o.useMemo((function(){U(E&&!m?null!=h?h:"":null!=c?c:h)}),[m,E,c,h]);var ne=Object.assign({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[p],backgroundColor:"transparent",color:k?"trueGray.600":"blueGray.700",cursor:k?"not-allowed":"auto"},ee.field),ae=function(){return X(!y)},de=function(e){"string"==typeof e?(Z(e),N&&N(e)):(Z(e.target.value),P&&P(e))};return i.createElement(te,{helperText:u,error:l,styles:ee},i.createElement(se,{label:c,size:p,error:l,shape:f,styles:ee,shadow:s,variant:j,value:m,color:S,isHovered:y,isDisabled:k,isReadOnly:H,isFocused:E,isWithLabel:ie,colorScheme:S,onMouseEnter:ae,onMouseLeave:ae},i.createElement(ve,null,ie&&i.createElement(ge,Object.assign({htmlFor:n,color:S,error:l},ee),c),i.createElement(t.Element,Object.assign({as:"textarea",id:n,name:a,rows:F,cols:B,value:m,readOnly:H,disabled:k,autoFocus:M,editable:z,placeholder:d,onBlur:function(e){A(e),Y(!1)},onFocus:function(){Y(!0),W&&W()},onChange:de,multiline:L},ne,oe,N&&{onChangeText:de})))))},$e={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},eo={fast:50,normal:100,slow:300},oo=["size","speed","color"],io=["size","speed","color"],to=["size","speed","color"],no=["size","children","textColor","loaderColor","type","speed","textPosition"],ao=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,l=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=r(e,oo),u=t.useTheme().getColor(s),h="number"==typeof a?a:$e[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}))}),eo[l]);return function(){return clearInterval(e)}}),[l]),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"})))},ro=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,l=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=r(e,io),u=t.useTheme().getColor(s),h="number"==typeof a?a:$e[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}))}),eo[l]);return function(){return clearInterval(e)}}),[l]),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}))},lo=function(e){var n=e.size,a=void 0===n?"md":n,d=e.speed,l=void 0===d?"normal":d,c=e.color,s=void 0===c?"theme.loading":c,m=r(e,to),u=t.useTheme().getColor(s),h="number"==typeof a?a:$e[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}))}),eo[l]);return function(){return clearInterval(e)}}),[l]),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"}))},co=function(e){var o=e.size,n=e.children,a=e.textColor,d=e.loaderColor,l=e.type,c=void 0===l?"default":l,s=e.speed,m=void 0===s?"normal":s,u=e.textPosition,g=void 0===u?"right":u,p=r(e,no),v={size:o,speed:m,color:d},f={default:i.createElement(ao,Object.assign({},v)),dotted:i.createElement(ro,Object.assign({},v)),quarter:i.createElement(lo,Object.assign({},v))};return i.createElement(h,Object.assign({gap:10,flexDirection:"top"===g||"bottom"===g?"column":"row"},p),("left"===g||"top"===g)&&n&&i.createElement(t.View,{color:a},n),f[c],("right"===g||"bottom"===g)&&n&&i.createElement(t.View,{color:a},n))},so={sharp:{borderRadius:0},rounded:{borderRadius:4}},mo={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},uo={xs:12,sm:16,md:20,lg:24,xl:28},ho=["children","blur","isOpen","isClosePrevented","onClose","position"],go=["children","shadow","isFullScreen","shape"],po=["children","buttonColor","iconSize","buttonPosition"],vo=["children"],fo=["children"],bo=function(e){return i.createElement(i.Fragment,null,e.children)};bo.Overlay=function(e){var n=e.children,a=e.blur,l=e.isOpen,c=void 0!==l&&l,s=e.isClosePrevented,m=void 0!==s&&s,u=e.onClose,g=void 0===u?function(){}:u,p=e.position,v=void 0===p?"center":p,f=r(e,ho),b=d.useModalStore((function(e){return e.setOpen})),j=d.useModalStore((function(e){return e.setOnClose}));if(o.useEffect((function(){j(g),c&&b()})),!c)return null;var x=function(){m||g()};return i.createElement(h,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:x,visibility:c?"visible":"hidden"},i.createElement(t.View,Object.assign({cursor:"pointer",position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:a?"blur("+a+"px)":void 0,onClick:x},mo[v],f),n))},bo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,d=e.shape,l=void 0===d?"rounded":d,c=r(e,go),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(q,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,so[l],c),o)},bo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,l=void 0===a?"md":a,c=e.buttonPosition,m=void 0===c?"right":c,u=r(e,po),h=d.useModalStore((function(e){return e.onClose})),g=i.createElement(L,{onClick:h,colorScheme:"transparent",icon:i.createElement(S,{size:uo[l],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(s,Object.assign({justifyContent:"none"===m?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},u),"left"===m&&g,o,"right"===m&&g)},bo.Body=function(e){var o=e.children,n=r(e,vo);return i.createElement(t.View,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},n),o)},bo.Footer=function(e){var o=e.children,t=r(e,fo);return i.createElement(s,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},Object.defineProperty(exports,"View",{enumerable:!0,get:function(){return t.View}}),exports.Button=L,exports.Center=h,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(W,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(N))[0],a=t[1],r=(d=i.useState(null!=o?o:N[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(we,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(ze,Object.assign({},s,e))},exports.Horizontal=s,exports.Link=H,exports.Loader=function(e){return i.createElement(co,Object.assign({},e))},exports.Modal=bo,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.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(Ne,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(Ye,Object.assign({},r,e))},exports.Text=$,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(Xe,Object.assign({},m,e))},exports.TextField=ke,exports.Vertical=q;
2
2
  //# sourceMappingURL=web.cjs.production.min.js.map