@app-studio/web 0.3.64 → 0.3.65

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 (139) hide show
  1. package/dist/bot/Bot.d.ts +13 -0
  2. package/dist/bot/Cache.d.ts +13 -0
  3. package/dist/bot/Config.d.ts +13 -0
  4. package/dist/bot/ContentFetcher.d.ts +9 -0
  5. package/dist/bot/DocuCode.d.ts +12 -0
  6. package/dist/bot/FileHandler.d.ts +18 -0
  7. package/dist/bot/OpenAIConnector.d.ts +24 -0
  8. package/dist/bot/data.d.ts +19 -0
  9. package/dist/bot/extractors.d.ts +8 -0
  10. package/dist/bot/index.d.ts +1 -0
  11. package/dist/bot/prompt/1-project.d.ts +1 -0
  12. package/dist/bot/prompt/2-response.d.ts +1 -0
  13. package/dist/bot/prompt/3-comment.d.ts +1 -0
  14. package/dist/components/Alert/Alert/Alert.props.d.ts +9 -0
  15. package/dist/components/Alert/Alert/Alert.state.d.ts +5 -0
  16. package/dist/components/Alert/Alert/Alert.style.d.ts +47 -0
  17. package/dist/components/Alert/Alert/Alert.type.d.ts +8 -0
  18. package/dist/components/Alert/Alert/Alert.view.d.ts +3 -0
  19. package/dist/components/Alert/Alert.d.ts +3 -0
  20. package/dist/components/Alert/examples/default.d.ts +2 -0
  21. package/dist/components/Alert/examples/icon.d.ts +2 -0
  22. package/dist/components/Alert/examples/index.d.ts +4 -0
  23. package/dist/components/Alert/examples/styles.d.ts +2 -0
  24. package/dist/components/Alert/examples/variant.d.ts +2 -0
  25. package/dist/components/AspectRatio/AspectRatio/AspectRatio.props.d.ts +6 -0
  26. package/dist/components/AspectRatio/AspectRatio/AspectRatio.view.d.ts +3 -0
  27. package/dist/components/AspectRatio/AspectRatio.d.ts +3 -0
  28. package/dist/components/AspectRatio/examples/default.d.ts +2 -0
  29. package/dist/components/AspectRatio/examples/index.d.ts +2 -0
  30. package/dist/components/AspectRatio/examples/ratio.d.ts +2 -0
  31. package/dist/components/Avatar/Avatar/Avatar.props.d.ts +12 -0
  32. package/dist/components/Avatar/Avatar/Avatar.state.d.ts +5 -0
  33. package/dist/components/Avatar/Avatar/Avatar.style.d.ts +2 -0
  34. package/dist/components/Avatar/Avatar/Avatar.type.d.ts +7 -0
  35. package/dist/components/Avatar/Avatar/Avatar.view.d.ts +3 -0
  36. package/dist/components/Avatar/Avatar.d.ts +3 -0
  37. package/dist/components/Avatar/examples/default.d.ts +2 -0
  38. package/dist/components/Avatar/examples/fallback.d.ts +2 -0
  39. package/dist/components/Avatar/examples/index.d.ts +4 -0
  40. package/dist/components/Avatar/examples/size.d.ts +2 -0
  41. package/dist/components/Avatar/examples/styles.d.ts +2 -0
  42. package/dist/components/Badge/Badge/Badge.props.d.ts +11 -0
  43. package/dist/components/Badge/Badge/Badge.style.d.ts +8 -0
  44. package/dist/components/Badge/Badge/Badge.type.d.ts +9 -0
  45. package/dist/components/Badge/Badge/Badge.view.d.ts +4 -0
  46. package/dist/components/Badge/Badge.d.ts +3 -0
  47. package/dist/components/Badge/examples/colorScheme.d.ts +2 -0
  48. package/dist/components/Badge/examples/content.d.ts +2 -0
  49. package/dist/components/Badge/examples/default.d.ts +2 -0
  50. package/dist/components/Badge/examples/index.d.ts +8 -0
  51. package/dist/components/Badge/examples/position.d.ts +2 -0
  52. package/dist/components/Badge/examples/shape.d.ts +2 -0
  53. package/dist/components/Badge/examples/size.d.ts +2 -0
  54. package/dist/components/Badge/examples/styles.d.ts +2 -0
  55. package/dist/components/Badge/examples/variant.d.ts +2 -0
  56. package/dist/components/Button/Button/Button.props.d.ts +2 -1
  57. package/dist/components/Button/examples/effect.d.ts +2 -0
  58. package/dist/components/Button/examples/index.d.ts +11 -9
  59. package/dist/components/Form/Checkbox/examples/index.d.ts +11 -11
  60. package/dist/components/Form/CountryPicker/examples/index.d.ts +12 -12
  61. package/dist/components/Form/DatePicker/examples/index.d.ts +10 -10
  62. package/dist/components/Form/Password/Password/Password.state.d.ts +2 -2
  63. package/dist/components/Form/Select/examples/index.d.ts +11 -0
  64. package/dist/components/Form/Switch/Switch/Switch.state.d.ts +2 -2
  65. package/dist/components/Form/Switch/examples/index.d.ts +9 -0
  66. package/dist/components/Form/TextArea/examples/index.d.ts +14 -13
  67. package/dist/components/Form/TextField/examples/colorScheme.d.ts +2 -0
  68. package/dist/components/Form/TextField/examples/index.d.ts +15 -15
  69. package/dist/components/Form/TextField/examples/isClearable.d.ts +2 -0
  70. package/dist/components/Formik/examples/index.d.ts +3 -4
  71. package/dist/components/Layout/Horizontal/examples/index.d.ts +4 -4
  72. package/dist/components/Link/examples/index.d.ts +3 -0
  73. package/dist/components/Loader/examples/index.d.ts +7 -7
  74. package/dist/components/Svg/DustBin.d.ts +1 -0
  75. package/dist/components/Svg/Warning.d.ts +8 -0
  76. package/dist/components/Svg/index.d.ts +1 -0
  77. package/dist/components/Tabs/Tabs/Tabs.props.d.ts +12 -0
  78. package/dist/components/Tabs/Tabs/Tabs.state.d.ts +8 -0
  79. package/dist/components/Tabs/Tabs/Tabs.view.d.ts +3 -0
  80. package/dist/components/Tabs/Tabs.d.ts +3 -0
  81. package/dist/components/Tabs/examples/default.d.ts +2 -0
  82. package/dist/components/Tabs/examples/index.d.ts +2 -0
  83. package/dist/components/Tabs/examples/styles.d.ts +2 -0
  84. package/dist/components/Toggle/Toggle/Toggle.props.d.ts +18 -0
  85. package/dist/components/Toggle/Toggle/Toggle.state.d.ts +7 -0
  86. package/dist/components/Toggle/Toggle/Toggle.style.d.ts +2 -0
  87. package/dist/components/Toggle/Toggle/Toggle.type.d.ts +2 -0
  88. package/dist/components/Toggle/Toggle/Toggle.view.d.ts +4 -0
  89. package/dist/components/Toggle/Toggle.d.ts +3 -0
  90. package/dist/components/Toggle/examples/colorScheme.d.ts +2 -0
  91. package/dist/components/Toggle/examples/default.d.ts +2 -0
  92. package/dist/components/Toggle/examples/index.d.ts +7 -0
  93. package/dist/components/Toggle/examples/isDisabled.d.ts +2 -0
  94. package/dist/components/Toggle/examples/isToggled.d.ts +2 -0
  95. package/dist/components/Toggle/examples/onToggle.d.ts +2 -0
  96. package/dist/components/Toggle/examples/shape.d.ts +2 -0
  97. package/dist/components/Toggle/examples/variant.d.ts +2 -0
  98. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.props.d.ts +16 -0
  99. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.state.d.ts +5 -0
  100. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.style.d.ts +2 -0
  101. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.type.d.ts +10 -0
  102. package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.view.d.ts +3 -0
  103. package/dist/components/ToggleGroup/ToggleGroup.d.ts +3 -0
  104. package/dist/components/ToggleGroup/examples/colorScheme.d.ts +2 -0
  105. package/dist/components/ToggleGroup/examples/default.d.ts +2 -0
  106. package/dist/components/ToggleGroup/examples/index.d.ts +6 -0
  107. package/dist/components/ToggleGroup/examples/items.d.ts +2 -0
  108. package/dist/components/ToggleGroup/examples/onToggleChange.d.ts +2 -0
  109. package/dist/components/ToggleGroup/examples/shape.d.ts +2 -0
  110. package/dist/components/ToggleGroup/examples/variant.d.ts +2 -0
  111. package/dist/components/index.d.ts +7 -0
  112. package/dist/pages/alert.page.d.ts +3 -0
  113. package/dist/pages/aspectRatio.page.d.ts +3 -0
  114. package/dist/pages/avatar.page.d.ts +3 -0
  115. package/dist/pages/badge.page.d.ts +3 -0
  116. package/dist/pages/tabs.page.d.ts +3 -0
  117. package/dist/pages/toggle.page.d.ts +3 -0
  118. package/dist/pages/toggleGroup.page.d.ts +3 -0
  119. package/dist/web.cjs.development.js +683 -45
  120. package/dist/web.cjs.development.js.map +1 -1
  121. package/dist/web.cjs.production.min.js +1 -1
  122. package/dist/web.cjs.production.min.js.map +1 -1
  123. package/dist/web.esm.js +677 -46
  124. package/dist/web.esm.js.map +1 -1
  125. package/package.json +15 -3
  126. package/dist/components/Form/TextField/examples/ClearInput.d.ts +0 -2
  127. package/dist/components/Form/TextField/examples/ColorScheme.d.ts +0 -2
  128. package/dist/components/Layout/Vertical/examples/index.d.ts +0 -5
  129. /package/dist/components/Button/examples/{AutoFocusButton.d.ts → autofocus.d.ts} +0 -0
  130. /package/dist/components/Button/examples/{ColoredButtons.d.ts → colorScheme.d.ts} +0 -0
  131. /package/dist/components/Button/examples/{DefaultButton.d.ts → default.d.ts} +0 -0
  132. /package/dist/components/Button/examples/{IconButtons.d.ts → icon.d.ts} +0 -0
  133. /package/dist/components/Button/examples/{BorderedButtons.d.ts → isAuto.d.ts} +0 -0
  134. /package/dist/components/Button/examples/{DisabledButton.d.ts → isDisabled.d.ts} +0 -0
  135. /package/dist/components/Button/examples/{LoaderButtons.d.ts → loaderProps.d.ts} +0 -0
  136. /package/dist/components/Button/examples/{ShadowButton.d.ts → shadow.d.ts} +0 -0
  137. /package/dist/components/Button/examples/{SizeButtons.d.ts → size.d.ts} +0 -0
  138. /package/dist/components/Button/examples/{VariantButtons.d.ts → variant.d.ts} +0 -0
  139. /package/dist/pages/{input.page.d.ts → textfield.page.d.ts} +0 -0
@@ -1,2 +1,2 @@
1
- "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),i=e(o),t=require("app-studio"),n=require("react-router-dom"),a=e(require("date-fns/format")),r=require("formik"),d=require("zustand");function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(this,arguments)}function c(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 s=t.View,m=["children","wrap","justify","isReversed"],u=function(e){var o=e.children,t=e.wrap,n=void 0===t?"wrap":t,a=e.justify,r=void 0===a?"flex-start":a,d=e.isReversed,l=void 0!==d&&d,u=c(e,m);return i.createElement(s,Object.assign({display:"flex",flexWrap:n,flexDirection:l?"row-reverse":"row",justifyContent:r},u),o)},h=function(e){return i.createElement(u,Object.assign({},e))},g=["children","wrap"],p=function(e){var o=e.children,t=e.wrap,n=c(e,g);return i.createElement(s,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:t},n),o)},v=function(e){return i.createElement(p,Object.assign({},e))},f=["size","color"],b=function(e){var o=e.size,t=void 0===o?64:o,n=c(e,f);return i.createElement(v,{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]"})))))))},j=["size","color"],x=function(e){var o=e.size,t=void 0===o?64:o,n=c(e,j);return i.createElement(v,{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]"})))))))},C=["size","color"],E=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=c(e,C);return i.createElement(v,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"0.048"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M17.0001 9L10 16L7 13",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},y=["size","color"],w=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=c(e,y);return i.createElement(v,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fill:a,d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"}))))},S=["size","color"],_=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,r=c(e,S);return i.createElement(v,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",fill:a}))))},z=["size","color"],O=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=c(e,z);return i.createElement(v,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({fill:a,width:t+"px",height:t+"px",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",stroke:a},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"}),i.createElement("path",{d:"M40 20h-2v-8h-8v-2h10z"}),i.createElement("path",{d:"M35 38H15c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h11v2H15c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h20c.6 0 1-.4 1-1V24h2v11c0 1.7-1.3 3-3 3z"}))))},k=["size","color"],I=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=c(e,k);return i.createElement(v,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M7 12L17 12",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},H=["size","color"],R=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,r=c(e,H);return i.createElement(v,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.30147 15.5771C4.77832 14.2684 3.6904 12.7726 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C14.1843 6 16.1261 7.07185 17.6986 8.42294C19.2218 9.73158 20.3097 11.2274 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18C9.81574 18 7.87402 16.9282 6.30147 15.5771ZM12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C2.00757 13.8624 3.23268 15.5772 4.99812 17.0941C6.75717 18.6054 9.14754 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C21.9925 10.1376 20.7674 8.42276 19.002 6.90595C17.2429 5.39462 14.8525 4 12 4ZM10 12C10 10.8954 10.8955 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8955 14 10 13.1046 10 12ZM12 8C9.7909 8 8.00004 9.79086 8.00004 12C8.00004 14.2091 9.7909 16 12 16C14.2092 16 16 14.2091 16 12C16 9.79086 14.2092 8 12 8Z",fill:a}))))},T={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},L=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],M=function(e){var o=e.children,a=e.href,r=void 0===a?"/":a,d=e.iconSize,l=void 0===d?"sm":d,s=e.underline,m=void 0===s?"default":s,u=e.isHovered,g=void 0!==u&&u,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,C=e.setIsHovered,E=void 0===C?function(){}:C,y=c(e,L),w=function(){"hover"===m&&E(!0)};return i.createElement(n.Link,{to:r,target:v?"_blank":"_self"},i.createElement(t.Element,Object.assign({color:b,onMouseEnter:w,onMouseLeave:w,textDecoration:g||"underline"===m?"underline !important":"none"},x.text,y),i.createElement(h,{gap:3,alignItems:"center",wrap:"nowrap"},o,v&&i.createElement(O,{color:b,size:T[l],style:x.icon}))))},F=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(M,Object.assign({},n,e))},V={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}},G={sharp:0,rounded:4,pillShaped:24},B={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}},P={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},D={fast:50,normal:100,slow:300},A=["size","speed","color"],W=["size","speed","color"],N=["size","speed","color"],K=["size","children","textColor","loaderColor","type","speed","textPosition"],U=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,s=void 0===l?"theme.loading":l,m=c(e,A),u=t.useTheme().getColor(s),h="number"==typeof a?a:P[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}))}),D[d]);return function(){return clearInterval(e)}}),[d]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:h+"px",height:h+"px",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+p+"deg)"}},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"})))},Z=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,s=void 0===l?"theme.loading":l,m=c(e,W),u=t.useTheme().getColor(s),h="number"==typeof a?a:P[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}))}),D[d]);return function(){return clearInterval(e)}}),[d]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},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}))},J=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,s=void 0===l?"theme.loading":l,m=c(e,N),u=t.useTheme().getColor(s),h="number"==typeof a?a:P[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}))}),D[d]);return function(){return clearInterval(e)}}),[d]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},m),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},Y=function(e){var o=e.size,t=e.children,n=e.textColor,a=e.loaderColor,r=e.type,d=void 0===r?"default":r,l=e.speed,m=void 0===l?"normal":l,u=e.textPosition,h=void 0===u?"right":u,g=c(e,K),p={size:o,speed:m,color:a},f={default:i.createElement(U,Object.assign({},p)),dotted:i.createElement(Z,Object.assign({},p)),quarter:i.createElement(J,Object.assign({},p))};return i.createElement(v,Object.assign({gap:10,flexDirection:"top"===h||"bottom"===h?"column":"row"},g),("left"===h||"top"===h)&&t&&i.createElement(s,{color:n},t),f[d],("right"===h||"bottom"===h)&&t&&i.createElement(s,{color:n},t))},q=function(e){return i.createElement(Y,Object.assign({},e))},Q=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick","loaderProps","loaderPosition"],X=function(e){var o,n=e.icon,a=e.shadow,r=e.children,d=e.ariaLabel,l=e.externalHref,s=e.isAuto,m=void 0!==s&&s,u=e.isFilled,g=void 0!==u&&u,p=e.isIconRounded,v=void 0!==p&&p,f=e.isLoading,b=void 0!==f&&f,j=e.isDisabled,x=void 0!==j&&j,C=e.size,E=void 0===C?"md":C,y=e.variant,w=void 0===y?"filled":y,S=e.iconPosition,_=void 0===S?"left":S,z=e.colorScheme,O=void 0===z?"theme.primary":z,k=e.shape,I=void 0===k?"rounded":k,H=e.onClick,R=void 0===H?function(){}:H,T=e.loaderProps,L=void 0===T?{}:T,M=e.loaderPosition,P=void 0===M?"left":M,D=c(e,Q),A=!(x||b),W={disabled:!A},N=A?O:"theme.disabled",K=V[E],U={filled:{backgroundColor:N,color:"color.white"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:O,color:N},link:{backgroundColor:"transparent",border:"none",color:N,textDecorationLine:"underline"},ghost:{backgroundColor:"transparent",border:"none",color:N}}[w],Z={width:m?"fit-content":g?"100%":K.width},J={padding:v?B[E].padding:V[E].padding},Y=i.createElement(h,{gap:4},b&&"left"===P&&i.createElement(q,Object.assign({},L)),n&&"left"===_&&!b&&n,r,n&&"right"===_&&!b&&n,b&&"right"===P&&i.createElement(q,Object.assign({},L)));return i.createElement(t.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:d,backgroundColor:N,borderRadius:G[I],onClick:null!=(o=D.onClick)?o:R,cursor:A?"pointer":"default"},W,K,U,Z,J,a,D),"link"===w&&l?i.createElement(F,{href:l,textDecorationColor:O,colorScheme:O,isExternal:!0},Y):Y)},$=function(e){var o,t={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},n=t.isHovered,a=t.setIsHovered,r=function(){return a(!n)};return i.createElement(X,Object.assign({onMouseEnter:r,onMouseLeave:r,filter:n?"brightness(0.85)":"brightness(1)"},e))},ee=function(e){var o=e.defaultIsSelected,t=void 0!==o&&o,n=i.useState(!1),a=n[0],r=n[1],d=i.useState(t);return{isHovered:a,setIsHovered:r,isSelected:d[0],setIsSelected:d[1]}},oe={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}},ie=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],te=function(e){var o=e.children,n=e.heading,a=e.isItalic,r=void 0!==a&&a,d=e.isUnderlined,l=void 0!==d&&d,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=c(e,ie);return i.createElement(t.Element,Object.assign({as:"label",width:"100%",fontSize:p,fontStyle:r?"italic":"normal",fontWeight:t.Typography.fontWeights[h],textDecoration:m?"line-through":l?"underline":"none"},n?oe[n]:{},v),o)},ne=function(e){return i.createElement(te,Object.assign({},e))},ae={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}},re={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},de=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],le=function(e){var o=e.id,n=e.icon,a=e.label,r=e.isChecked,d=e.onChange,s=e.onValueChange,m=e.shadow,u=void 0===m?{}:m,h=e.labelPosition,g=void 0===h?"right":h,p=e.size,f=void 0===p?"md":p,b=e.colorScheme,j=void 0===b?"theme.primary":b,x=e.error,C=void 0!==x&&x,y=e.isSelected,w=void 0!==y&&y,S=e.isHovered,_=void 0!==S&&S,z=e.isDisabled,O=void 0!==z&&z,k=e.isReadOnly,H=void 0!==k&&k,R=e.isIndeterminate,T=void 0!==R&&R,L=e.setIsSelected,M=void 0===L?function(){}:L,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.styles,B=void 0===G?{checkbox:{},label:{}}:G,P=c(e,de),D=function(){return V(!_)},A={container:l({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:C?"theme.error":O?"theme.disabled":"color.blueGray.700",cursor:O?"not-allowed":H?"default":"pointer"},B.label),checkbox:l({},O?{backgroundColor:"theme.disabled"}:(r||w)&&!T||T?{backgroundColor:j}:{borderWidth:2,borderColor:C?"theme.error":_?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:_?"brightness(0.9)":void 0},ae[f],u,B.checkbox)};return i.createElement(ne,Object.assign({htmlFor:o,as:"div",onClick:function(){H||O||(M&&M(!w),d&&d(!r),s&&s(!r))},onMouseEnter:D,onMouseLeave:D,size:t.Typography.fontSizes[f]},A.container,P),"left"===g&&a&&i.createElement(t.View,null,a),i.createElement(v,Object.assign({},A.checkbox),T?i.createElement(I,null):(r||w)&&(null!=n?n:i.createElement(E,{size:re[f]}))),"right"===g&&a&&i.createElement(t.View,null,a))},ce=[{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"}],se=function(e){var o=e.placeholder,t=i.useState(ce),n=t[0],a=t[1],r=i.useState(null!=o?o:ce[0].name),d=r[0],l=r[1],c=i.useState(!0),s=c[0],m=c[1],u=i.useState(!1),h=u[0],g=u[1],p=i.useState(!1);return{hide:s,setHide:m,newOptions:n,setNewOptions:a,isHovered:p[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,value:d,setValue:l}},me=["children","wrap","justify","isReversed"],ue=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,r=e.justify,d=void 0===r?"flex-start":r,l=e.isReversed,s=void 0!==l&&l,m=c(e,me);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:s?"column-reverse":"column",justifyContent:d},m),o)},he=function(e){return i.createElement(ue,Object.assign({},e))},ge={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},pe=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],ve=function(e){var o=e.children,t=e.isSub,n=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,t&&i.createElement("sup",null,o),n&&i.createElement("sup",null,o),!t&&!n&&i.createElement(i.Fragment,null,o)):o)},fe=function(e){var t=e.text,n=e.maxLines,a=void 0===n?1:n,r=o.useRef(null),d=o.useState(t.length),l=d[0],c=d[1];o.useEffect((function(){var e=r.current;e&&function(){for(var o,i=getComputedStyle(e).lineHeight,n=("normal"!==i?parseFloat(i):20)*a,r=0,d=t.length;r<=d;)o=Math.floor((r+d)/2),e.innerText=t.substring(0,o)+"...",e.offsetHeight>n?d=o-1:r=o+1;c(d)}()}),[t,a]);var s=t.length>l?t.substring(0,l)+"...":t;return i.createElement("div",{ref:r},s)},be=function(e){var o=e.children,n=e.heading,a=e.maxLines,r=e.isItalic,d=void 0!==r&&r,l=e.isUnderlined,s=void 0!==l&&l,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,C=e.size,E=void 0===C?"md":C,y=c(e,pe);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[E],lineHeight:t.Typography.lineHeights[E],fontStyle:d?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":s?"underline":"none"},u||g?{display:"inline"}:{},n?ge[n]:{},y),b&&a&&"string"==typeof o?i.createElement(fe,{text:o,maxLines:a}):i.createElement(ve,Object.assign({isSub:u,isSup:g},y),o))},je=function(e){return i.createElement(be,Object.assign({},e))},xe=["children","styles"],Ce=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=c(e,xe);return i.createElement(je,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},n.helperText,a),o)},Ee=["children","helperText","error","styles"],ye=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,r=e.styles,d=c(e,Ee);return i.createElement(he,Object.assign({gap:5,position:"relative"},d),o,!a&&t&&i.createElement(Ce,Object.assign({},r),t),a&&i.createElement(je,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},a))},we={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},Se={xs:6,sm:8,md:10,lg:12,xl:14},_e={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},ze={paddingTop:14,paddingBottom:0,paddingLeft:16,paddingRight:36},Oe={paddingTop:10,paddingBottom:4,paddingLeft:16,paddingRight:36},ke=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],Ie=function(e){var o=e.shadow,n=e.children,a=e.size,r=void 0===a?"md":a,d=e.shape,l=void 0===d?"default":d,s=e.variant,m=void 0===s?"default":s,u=e.error,g=void 0!==u&&u,p=e.isWithLabel,v=void 0!==p&&p,f=e.isFocused,b=void 0!==f&&f,j=e.isHovered,x=void 0!==j&&j,C=e.isDisabled,E=void 0!==C&&C,y=e.isReadOnly,w=void 0!==y&&y,S=e.colorScheme,_=void 0===S?"theme.primary":S,z=e.styles,O=void 0===z?{pickerBox:{}}:z,k=c(e,ke);return i.createElement(h,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:g?"error":!x&&!b||E?"midgray":_,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",marginBottom:5,fontSize:t.Typography.fontSizes[r],cursor:E?"not-allowed":w?"auto":"pointer"},v?ze:Oe,o,we[l],_e[m],O.box,k),n)},He=["children"],Re=function(e){var o=e.children,t=c(e,He);return i.createElement(v,Object.assign({gap:10,right:16,zIndex:500,wrap:"nowrap",position:"absolute"},t),o)},Te=["children","size","error","color","styles"],Le=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,r=void 0!==a&&a,d=e.color,l=void 0===d?"theme.primary":d,s=e.styles,m=void 0===s?{label:{}}:s,u=c(e,Te);return i.createElement(ne,Object.assign({top:6,zIndex:1e3,lineHeight:Se[n],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:r?"error":l,fontSize:Se[n]},m.label,u),o)},Me=["children"],Fe=function(e){var o=e.children,t=c(e,Me);return i.createElement(he,Object.assign({width:"100%"},t),o)},Ve={xs:8,sm:10,md:12,lg:14,xl:16},Ge=["id","name","label","value","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","colorScheme","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setValue","styles"],Be=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},Pe=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},De=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},Ae=function(e){var n=e.option,a=e.size,r=void 0===a?"md":a,d=e.callback,l=void 0===d?function(){}:d,c=e.styles,s=void 0===c?{text:{}}:c,m=o.useState(!1),u=m[0],h=m[1],g=function(){return h(!u)};return i.createElement(De,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e&&e.stopPropagation&&e.stopPropagation(),l(n)},fontSize:t.Typography.fontSizes[r],backgroundColor:u?"trueGray.100":"transparent"},s.text),n)},We=function(e){var o=e.size,t=e.styles,n=void 0===t?{dropDown:{}}:t,a=e.options,r=e.callback,d=void 0===r?function(){}:r,l=function(e){return d(e)};return i.createElement(Be,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(Ae,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},Ne=function(e){var o=e.id,n=e.name,a=e.label,r=e.value,d=e.placeholder,s=e.helperText,m=e.hide,u=void 0!==m&&m,h=e.error,g=void 0!==h&&h,p=e.isHovered,v=void 0!==p&&p,f=e.isFocused,j=void 0!==f&&f,C=e.isAutoFocus,E=void 0!==C&&C,y=e.isDisabled,w=void 0!==y&&y,S=e.isReadOnly,_=void 0!==S&&S,z=e.shadow,O=void 0===z?{}:z,k=e.newOptions,I=void 0===k?[]:k,H=e.size,R=void 0===H?"md":H,T=e.variant,L=void 0===T?"default":T,M=e.shape,F=void 0===M?"default":M,V=e.colorScheme,G=void 0===V?"theme.primary":V,B=e.onChange,P=e.onBlur,D=void 0===P?function(){}:P,A=e.setHide,W=void 0===A?function(){}:A,N=e.setNewOptions,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,J=e.setIsFocused,Y=void 0===J?function(){}:J,q=e.setValue,Q=void 0===q?function(){}:q,X=e.styles,$=void 0===X?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:X,ee=c(e,Ge),oe=(0,t.useTheme().getColor)("color.blueGray.700"),ie=function(){return Z(!v)},te=!(!j||!a),ne=l({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"},$.field);return i.createElement(ye,{helperText:s,error:g,styles:$,onClick:function(){w||_||W(!u)}},i.createElement(Ie,{label:a,size:R,error:g,shape:F,styles:$,shadow:O,variant:L,value:r,color:G,isHovered:v,isDisabled:w,isReadOnly:_,isFocused:j,isWithLabel:te,colorScheme:G,onMouseEnter:ie,onMouseLeave:ie},i.createElement(Fe,null,te&&i.createElement(Le,Object.assign({htmlFor:o,color:G,error:g},$),a),i.createElement(Pe,Object.assign({id:o,name:n,placeholder:d,readOnly:_,disabled:w,autoFocus:E,onBlur:function(e){D(e),Y(!1)},onFocus:function(){return Y(!0)}},ne,ee,{value:r,onChange:function(e){var o=e.target.value,i=ce.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));u&&W(!1),K(i),B&&B(o)}}))),i.createElement(Re,null,i.createElement(u?b:x,{size:Ve[R],color:oe,style:$.icon}))),!u&&i.createElement(We,{size:R,styles:$,options:I,callback:function(e){W(!u),Q(e),B&&B(e)}}))},Ke=function(){var e=i.useState(!1),o=e[0],t=e[1],n=i.useState(!1),r=n[0],d=n[1],l=i.useState(a(new Date,"yyyy-MM-dd"));return{date:l[0],setDate:l[1],isHovered:o,setIsHovered:t,isFocused:r,setIsFocused:d}},Ue=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Ze=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},Je=function(e){var o=e.id,n=e.name,a=e.label,r=e.date,d=e.helperText,s=e.shadow,m=void 0===s?{}:s,u=e.size,h=void 0===u?"md":u,g=e.variant,p=void 0===g?"default":g,v=e.shape,f=void 0===v?"default":v,b=e.colorScheme,j=void 0===b?"theme.primary":b,x=e.styles,C=void 0===x?{box:{},label:{},helperText:{},text:{},field:{}}:x,E=e.error,y=void 0!==E&&E,w=e.isHovered,S=void 0!==w&&w,_=e.isFocused,z=void 0!==_&&_,O=e.isDisabled,k=void 0!==O&&O,I=e.isReadOnly,H=void 0!==I&&I,R=e.setDate,T=void 0===R?function(){}:R,L=e.setIsFocused,M=void 0===L?function(){}:L,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.onChange,B=e.onChangeText,P=c(e,Ue),D=!(!z||!a),A=function(){return V(!S)},W=function(e){"string"==typeof e?(T(e),B&&B(e)):(T(e.target.value),G&&G(e))},N=l({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:t.Typography.fontSizes[h],backgroundColor:"transparent",color:k?"color.trueGray.600":"color.blueGray.700",cursor:k?"not-allowed":H?"auto":"pointer"},C.field);return i.createElement(ye,{helperText:d,error:y,styles:C},i.createElement(Ie,{label:a,size:h,error:y,shape:f,styles:C,shadow:m,variant:p,value:r,color:j,isHovered:S,isDisabled:k,isReadOnly:H,isFocused:z,isWithLabel:D,colorScheme:j,onMouseEnter:A,onMouseLeave:A},i.createElement(Fe,null,D&&i.createElement(Le,Object.assign({htmlFor:o,color:j,error:y},C),a),i.createElement(Ze,Object.assign({id:o,name:n,value:r,onFocus:function(){return M(!0)},onChange:W,disabled:k,readOnly:H},N,B&&{onChangeText:W},P)))))},Ye=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),r=a[0],d=a[1],l=o.useState(!1),c=l[0],s=l[1],m=o.useState(!1),u=m[0],h=m[1],g=o.useState(n),p=g[0],v=g[1];return o.useMemo((function(){d(c&&!p?null!=t?t:"":null!=i?i:t)}),[p,c,i,t]),{hint:r,setHint:d,isFocused:c,setIsFocused:s,isHovered:u,setIsHovered:h,setValue:v,value:p}},qe=function(e){var i=Ye(e),t=o.useState(!1);return l({isVisible:t[0],setIsVisible:t[1]},e,i)},Qe=["id","name","label","hint","value","onChange","leftChild","rightChild","helperText","placeholder","onChangeText","shadow","styles","size","shape","variant","colorScheme","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setValue","onClick","onFocus","onBlur"],Xe=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},$e=function(e){var o=e.id,n=e.name,a=e.label,r=e.hint,d=e.value,s=e.onChange,m=e.leftChild,u=e.rightChild,h=e.helperText,g=e.onChangeText,p=e.shadow,v=void 0===p?{}:p,f=e.styles,b=void 0===f?{box:{},field:{},label:{},helperText:{},text:{}}:f,j=e.size,x=void 0===j?"md":j,C=e.shape,E=void 0===C?"default":C,y=e.variant,S=void 0===y?"default":y,_=e.colorScheme,z=void 0===_?"theme.primary":_,O=e.error,k=void 0!==O&&O,I=e.isFocused,H=void 0!==I&&I,R=e.isHovered,T=void 0!==R&&R,L=e.isDisabled,M=void 0!==L&&L,F=e.isReadOnly,V=void 0!==F&&F,G=e.isClearable,B=void 0===G||G,P=e.isAutoFocus,D=void 0!==P&&P,A=e.setIsFocused,W=void 0===A?function(){}:A,N=e.setIsHovered,K=void 0===N?function(){}:N,U=e.setValue,Z=void 0===U?function(){}:U,J=e.onFocus,Y=e.onBlur,q=void 0===Y?function(){}:Y,Q=c(e,Qe),X=(0,t.useTheme().getColor)("color.blueGray.700"),$=!(!H||!a),ee=l({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[x],lineHeight:t.Typography.fontSizes[x],backgroundColor:"transparent",color:M?"color.trueGray.600":"color.blueGray.700",cursor:M?"not-allowed":"auto"},b.field),oe=function(){return K(!T)};return i.createElement(ye,{helperText:h,error:k,styles:b},i.createElement(Ie,{label:a,size:x,error:k,shape:E,styles:b,shadow:v,variant:S,value:d,color:z,isHovered:T,isDisabled:M,isReadOnly:V,isFocused:H,isWithLabel:$,colorScheme:z,onMouseEnter:oe,onMouseLeave:oe},m,i.createElement(Fe,null,$&&i.createElement(Le,Object.assign({htmlFor:o,color:z,error:k},b),a),i.createElement(Xe,Object.assign({id:o,name:n,readOnly:V,disabled:M,autoFocus:D,placeholder:r,onFocus:function(){W(!0),J&&J()},onBlur:function(e){q&&q(e),W(!1)},autoComplete:"off"},ee,Q,{onChange:function(e){"string"==typeof e?(Z(e),g&&g(e),s&&s(e)):(Z(e.target.value),g&&g(e.target.value),s&&s(e.target.value))},value:d}))),(u||B&&d)&&i.createElement(Re,null,B&&d&&!V&&!M&&i.createElement(w,{size:t.Typography.fontSizes[x],color:X,onClick:function(){Z(""),s&&(q({target:{name:n}}),g&&g(""),s&&s("")),"undefined"==typeof document&&g&&g("")}}),u&&i.createElement(i.Fragment,null,u))))},eo=["visibleIcon","hiddenIcon"],oo=["isVisible","setIsVisible"],io=function(e){var o=e.placeholder?e.isMulti?[]:"":e.options[0],t=i.useState(!0),n=t[0],a=t[1],r=i.useState(!1),d=r[0],l=r[1],c=i.useState(!1),s=c[0],m=c[1],u=i.useState(o);return{value:u[0],setValue:u[1],hide:n,setHide:a,isHovered:d,setIsHovered:l,isFocused:s,setIsFocused:m}},to={xs:8,sm:10,md:12,lg:14,xl:16},no=["isHovered","setIsHovered","option","size","callback"],ao=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],ro=["option","size","removeOption"],lo=["id","name","label","value","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","colorScheme","shape","variant","styles","onChange","setHide","setValue","setIsHovered","setIsFocused"],co=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,r=e.size,d=void 0===r?"md":r,l=e.callback,s=void 0===l?function(){}:l,m=c(e,no),u=function(){return n(!o)};return i.createElement(t.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:u,onMouseLeave:u,fontSize:t.Typography.fontSizes[d],onClick:function(){return function(e){return s(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},m),a)},so=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,r=e.value,d=e.isDisabled,c=e.placeholder,s=e.removeOption,m=void 0===s?function(){}:s,u=l({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:d?"color.trueGray.600":"color.blueGray.700",cursor:d?"not-allowed":"auto"},a.field,a.text);return i.createElement(je,Object.assign({},u),(""===r||r&&0===r.length)&&c?c:i.createElement(i.Fragment,null,"string"==typeof r?r:r&&r.length>0&&i.createElement(h,{gap:6},r.map((function(e){return i.createElement(ho,{key:e,option:e,removeOption:m})})))))},mo=function(e){var o=e.id,n=e.name,a=e.value,r=e.onChange,d=e.isMulti,l=void 0!==d&&d,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=c(e,ao);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){r&&r(e)},multiple:l},v),p.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},uo=function(e){var o,n=e.size,a=e.styles,r=void 0===a?{dropDown:{}}:a,d=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},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,r.dropDown),d.map((function(e){return i.createElement(co,Object.assign({key:e,size:n,option:e,callback:m},s,r.text))})))},ho=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,r=e.removeOption,d=void 0===r?function(){}:r,l=c(e,ro);return i.createElement(h,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:t.Typography.fontSizes[a],backgroundColor:"color.trueGray.300",onClick:function(e){return e.stopPropagation()}},l),i.createElement(je,{size:a},o),i.createElement(w,{role:"close-button",color:"inherit",size:to[a],onClick:function(){return d(o)}}))},go=function(e){var t=e.id,n=e.name,a=e.label,r=e.value,d=e.placeholder,l=e.helperText,s=e.hide,m=void 0!==s&&s,u=e.error,h=void 0!==u&&u,g=e.isMulti,p=void 0!==g&&g,v=e.isFocused,f=void 0!==v&&v,j=e.isHovered,C=void 0!==j&&j,E=e.isDisabled,y=void 0!==E&&E,w=e.isReadOnly,S=void 0!==w&&w,_=e.options,z=void 0===_?[]:_,O=e.shadow,k=void 0===O?{}:O,I=e.size,H=void 0===I?"md":I,R=e.colorScheme,T=void 0===R?"theme.primary":R,L=e.shape,M=void 0===L?"default":L,F=e.variant,V=void 0===F?"default":F,G=e.styles,B=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,P=e.onChange,D=void 0===P?function(){}:P,A=e.setHide,W=void 0===A?function(){}:A,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,J=e.setIsFocused,Y=void 0===J?function(){}:J,q=c(e,lo),Q=!(!f||!a),X=function(){return Z(!C)},$=o.useCallback((function(e){W(!m),p&&Array.isArray(r)?!r.includes(e)&&K([].concat(r,[e])):K(e),D&&D(e)}),[m,p,r]);return i.createElement(ye,{role:"SelectBox",helperText:l,error:h,styles:B,onClick:y||S?function(){}:function(e){e&&e.stopPropagation&&e.stopPropagation(),W(!m),Y(!f)}},i.createElement(Ie,{label:a,size:H,error:h,shape:M,styles:B,shadow:k,variant:V,value:r,color:T,isHovered:C,isDisabled:y,isReadOnly:S,isFocused:f,isWithLabel:Q,colorScheme:T,onMouseEnter:X,onMouseLeave:X},i.createElement(Fe,null,Q&&i.createElement(Le,Object.assign({htmlFor:t,color:T,error:h},B),a),i.createElement(mo,Object.assign({id:t,name:n,options:z,onChange:D,value:r,isDisabled:y,isReadOnly:S,isMulti:p,onFocus:function(){return Y(!0)}},q)),i.createElement(so,{size:H,styles:B,value:r,isDisabled:y,placeholder:d,removeOption:function(e){if(Array.isArray(r)&&r.includes(e)){var o=r.filter((function(o){return o!==e}));K(0===o.length?[]:o)}}})),i.createElement(Re,null,!S&&!y&&i.createElement(i.Fragment,null,i.createElement(m?b:x,{color:"inherit",size:to[H],style:B.icon})))),!m&&i.createElement(uo,{size:H,styles:B,options:z,callback:$}))},po=function(e){var o=e.isDisabled,t=e.isChecked,n=i.useState(!1),a=n[0],r=n[1],d=i.useState(o?!o:t);return{isHovered:a,setIsHovered:r,on:d[0],setOn:d[1]}},vo={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}},fo={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}},bo={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}},jo=["id","name","label","inActiveChild","activeChild","labelPosition","shadow","size","colorScheme","value","isHovered","isDisabled","isReadOnly","onChange","setValue","setIsHovered","styles"],xo=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},Co=function(e){var o=e.id,t=e.name,n=e.label,a=e.inActiveChild,r=e.activeChild,d=e.labelPosition,m=void 0===d?"right":d,u=e.shadow,h=void 0===u?{}:u,g=e.size,p=void 0===g?"sm":g,v=e.colorScheme,f=void 0===v?"theme.primary":v,b=e.value,j=void 0!==b&&b,x=e.isHovered,C=void 0!==x&&x,E=e.isDisabled,y=void 0!==E&&E,w=e.isReadOnly,S=void 0!==w&&w,_=e.onChange,z=e.setValue,O=void 0===z?function(){}:z,k=e.setIsHovered,I=void 0===k?function(){}:k,H=e.styles,R=void 0===H?{slider:{},circle:{},label:{}}:H,T=c(e,jo),L=function(){return I(!C)},M={container:l({gap:10,display:"flex",height:"fit-content",width:"fit-content",cursor:y?"not-allowed":S?"default":"pointer"},R.label)};return i.createElement(ne,Object.assign({htmlFor:o,onMouseEnter:L,onMouseLeave:L},M.container,T),i.createElement(xo,Object.assign({id:o,name:t,opacity:0,width:0,height:0,checked:j,onChange:function(e){S||(O(!j),_&&_(e.target.checked))},disabled:y,readOnly:S},T)),"left"===m&&n&&i.createElement(s,null,n),i.createElement(s,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,marginBottom:5,filter:C&&j?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:y?"disabled":j?f:"lightgray",justifyContent:r?"space-between":j?"flex-end":"flex-start"},h,bo[p],fo[p],R.slider),r&&j&&i.createElement(s,null,r),i.createElement(s,Object.assign({borderRadius:"50%",backgroundColor:"white"},vo[p],R.circle)),a&&!j&&i.createElement(s,null,a)),"right"===m&&n&&i.createElement(s,null,n))},Eo=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),r=a[0],d=a[1],l=o.useState(!1),c=l[0],s=l[1],m=o.useState(n||""),u=m[0],h=m[1],g=o.useState(!1),p=g[0],v=g[1];return o.useMemo((function(){d(p&&!u?null!=t?t:"":null!=i?i:t)}),[u,p,i,t]),{hint:r,setHint:d,isHovered:c,setIsHovered:s,value:u,setValue:h,isFocused:p,setIsFocused:v}},yo=["id","name","hint","error","value","label","shadow","helperText","placeholder","size","shape","variant","colorScheme","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","onChangeText","setHint","setValue","setIsFocused","setIsHovered","styles"],wo=function(e){var o=e.id,n=e.name,a=e.hint,r=e.error,d=e.value,s=e.label,m=e.shadow,u=e.helperText,h=e.size,g=void 0===h?"sm":h,p=e.shape,v=void 0===p?"default":p,f=e.variant,b=void 0===f?"default":f,j=e.colorScheme,x=void 0===j?"theme.primary":j,C=e.isHovered,E=void 0!==C&&C,y=e.isFocused,w=void 0!==y&&y,S=e.isEditable,_=void 0!==S&&S,z=e.isReadOnly,O=void 0!==z&&z,k=e.isDisabled,I=void 0!==k&&k,H=e.isAutoFocus,R=void 0!==H&&H,T=e.isMultiline,L=void 0!==T&&T,M=e.maxRows,F=void 0===M?3:M,V=e.maxCols,G=void 0===V?30:V,B=e.onBlur,P=void 0===B?function(){}:B,D=e.onChange,A=e.onFocus,W=e.onChangeText,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsFocused,Z=void 0===U?function(){}:U,J=e.setIsHovered,Y=void 0===J?function(){}:J,q=e.styles,Q=void 0===q?{box:{},text:{},label:{},helperText:{},field:{}}:q,X=c(e,yo),$=!(!w||!s),ee=l({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[g],backgroundColor:"transparent",color:I?"color.trueGray.600":"color.blueGray.700",cursor:I?"not-allowed":"auto"},Q.field),oe=function(){return Y(!E)},ie=function(e){"string"==typeof e?(K(e),W&&W(e)):(K(e.target.value),D&&D(e.target.value))};return i.createElement(ye,{helperText:u,error:r,styles:Q},i.createElement(Ie,{label:s,size:g,error:r,shape:v,styles:Q,shadow:m,variant:b,value:d,color:x,isHovered:E,isDisabled:I,isReadOnly:O,isFocused:w,isWithLabel:$,colorScheme:x,onMouseEnter:oe,onMouseLeave:oe},i.createElement(Fe,null,$&&i.createElement(Le,Object.assign({htmlFor:o,color:x,error:r},Q),s),i.createElement(t.Element,Object.assign({as:"textarea",id:o,name:n,rows:F,cols:G,value:d,readOnly:O,disabled:I,autoFocus:R,editable:_,placeholder:a,onBlur:function(e){P(e),Z(!1)},onFocus:function(){Z(!0),A&&A()},onChange:ie,multiline:L},ee,X,W&&{onChangeText:ie})))))},So=o.createContext({active:!1,focusNextInput:function(){},setInputRef:function(){},handleSubmitEditing:function(){},getReturnKeyType:function(){return"next"}}),_o=["name","type"],zo=function(e){var i=e.name,t=e.type,n=c(e,_o),a=o.useContext(So),d=r.useFormikContext(),s=d.values,m=d.setFieldTouched,u=d.setFieldValue,h=d.touched[i]||d.submitCount>0?d.errors[i]:void 0,g=function(e){"Enter"===e.key&&(e.preventDefault(),a.focusNextInput(i))},p=["text","password","email","digits"].includes(t);return l({},function(e){switch(e){case"email":return{autoCorrect:"off",keyboardType:"email-address",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{keyboardType:"phone-pad"};case"name":return{autoCorrect:"off"};default:return{}}}(t),n,{value:s[i],error:h,onBlur:function(){m(i,!0)},onKeyPress:g},p?{onChangeText:function(e){u(i,e),null==n.onChangeText||n.onChangeText(e)}}:{onChange:function(e){u(i,e),null==n.onChange||n.onChange(e)}},a.active?{handleKeyPress:g}:{})},Oo=["value"],ko=["value"],Io=["visibleIcon","hiddenIcon"],Ho=["isVisible","setIsVisible"],Ro=d.create((function(e){return{modal:!1,modalProps:{isVisible:!1},overlayProps:{},show:function(o,i,t){void 0===i&&(i={}),void 0===t&&(t={}),o&&(i.isVisible=!0),e((function(e){return l({},e,{modal:o,modalProps:i,overlayProps:t})}))},hide:function(){e((function(e){return l({},e,{modalProps:l({},e.modalProps,{isVisible:!1})})}))}}})),To=function(){Ro.getState().hide()},Lo={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"}},Fo={xs:12,sm:16,md:20,lg:24,xl:28},Vo=["children","blur","isOpen","isClosePrevented","onClose","position"],Go=["children","shadow","isFullScreen","shape"],Bo=["children","buttonColor","iconSize","buttonPosition"],Po=["children"],Do=["children"],Ao=function(e){var o=e.children,t=e.blur,n=e.isOpen,a=void 0!==n&&n,r=e.isClosePrevented,d=void 0!==r&&r,l=e.onClose,m=void 0===l?function(){}:l,u=e.position,h=void 0===u?"center":u,g=c(e,Vo),p=function(){d||m()};return i.createElement(v,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:p,visibility:a?"visible":"hidden"},i.createElement(s,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:t?"blur("+t+"px)":void 0,onClick:p},Mo[h],g),o))},Wo=function(e){return i.createElement(i.Fragment,null,e.children)};Wo.Overlay=Ao,Wo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,r=e.shape,d=void 0===r?"rounded":r,l=c(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(he,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:a?"100%":600,height:a?"100%":"fit-content",onClick:function(e){e&&e.stopPropagation&&e.stopPropagation()}},t||s,Lo[d],l),o)},Wo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,r=void 0===a?"md":a,d=e.buttonPosition,l=void 0===d?"right":d,s=c(e,Bo),m=i.createElement($,{onClick:s.onClose?s.onClose:To,colorScheme:"transparent",icon:i.createElement(w,{size:Fo[r],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(h,Object.assign({justifyContent:"none"===l?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},s),"left"===l&&m,o,"right"===l&&m)},Wo.Body=function(e){var o=e.children,t=c(e,Po);return i.createElement(s,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},t),o)},Wo.Footer=function(e){var o=e.children,t=c(e,Do);return i.createElement(h,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},Wo.Layout=function(e){var t=e.modals,n=Ro((function(e){return{modal:e.modal,modalProps:e.modalProps,overlayProps:e.overlayProps}}));if("boolean"==typeof n.modal)return null;var a=t[n.modal];return a?i.createElement(o.Fragment,null,i.createElement(Ao,Object.assign({isOpen:n.modalProps.isVisible,onClose:To,blur:10},n.overlayProps),void 0!==a&&i.createElement(a,Object.assign({},n.modalProps)))):(console.error(n.modal+" modal doesn't exist"),null)};var No=["src","color"],Ko=["path"];exports.Bottom=function(e){return i.createElement(t.View,Object.assign({marginTop:"auto"},e))},exports.Button=$,exports.Center=v,exports.Checkbox=function(e){var o=ee(e);return i.createElement(le,Object.assign({},o,e))},exports.CountryPicker=function(e){var o=se(e);return i.createElement(Ne,Object.assign({},o,e))},exports.DatePicker=function(e){var o=Ke();return i.createElement(Je,Object.assign({},o,e))},exports.FileImage=function(e){var o=e.path,n=c(e,Ko);return i.createElement(t.Image,Object.assign({src:o},n))},exports.FileSVG=function(e){var o=e.src,n=e.color,a=c(e,No),r=t.useTheme().getColor,d=n?{fill:r(n),stroke:r(n)}:{};return i.createElement(v,Object.assign({},a),i.createElement(t.Image,Object.assign({},d,{content:'url("'+o+'")',width:"100%",height:"100%"})))},exports.FormikCheckbox=function(e){var o=zo(e),t=o.value,n=c(o,Oo);n.isChecked=t;var a=ee(e);return i.createElement(le,Object.assign({},a,n))},exports.FormikCountryPicker=function(e){var o=zo(e),t=se(e);return i.createElement(Ne,Object.assign({},t,o))},exports.FormikDatePicker=function(e){var o=zo(e),t=Ke();return i.createElement(Je,Object.assign({},t,o))},exports.FormikForm=function(e){var n=e.children,a=e.autoFocus,d=void 0!==a&&a,l=e.initFocus,c=r.useFormikContext(),s=o.useRef({}),m=o.useRef([]),u=function(e){if(d){var o,i=m.current.indexOf(e)+1;i<m.current.length?null==(o=s.current[m.current[i]])||o.focus():c.onSubmit&&c.onSubmit(c.values)}},h={active:d,focusNextInput:u,setInputRef:function(e,o){s.current[e]=o,m.current.includes(e)||m.current.push(e)},handleSubmitEditing:u,getReturnKeyType:function(e){return m.current.indexOf(e)===m.current.length-1?"done":"next"}};return o.useEffect((function(){var e;if(d)if(l&&s.current[l])null==(e=s.current[l])||e.focus();else if(m.current[0]){var o;null==(o=s.current[m.current[0]])||o.focus()}}),[d,l]),i.createElement(So.Provider,{value:h},i.createElement(t.Form,null,n))},exports.FormikPassword=function(e){var o=e.visibleIcon,n=void 0===o?i.createElement(R,{size:14}):o,a=e.hiddenIcon,r=void 0===a?i.createElement(_,{size:14}):a,d=c(e,Io),l=zo(d),s=qe(l),m=s.isVisible,u=s.setIsVisible,h=c(s,Ho);return i.createElement($e,Object.assign({},h,{type:m?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){d.isDisabled||u(!m)}},m?n:r)}))},exports.FormikSelect=function(e){var o=zo(e);o.selected=o.value;var t=io(e);return i.createElement(go,Object.assign({},t,o))},exports.FormikSwitch=function(e){var o=zo(e),t=po(e);return i.createElement(Co,Object.assign({},t,o))},exports.FormikTextArea=function(e){var o=zo(e),t=Eo(e);return i.createElement(wo,Object.assign({},t,o))},exports.FormikTextField=function(e){var o=zo(e),t=c(Ye(e),ko);return i.createElement($e,Object.assign({},t,o))},exports.Horizontal=h,exports.Inline=function(e){return i.createElement(t.View,Object.assign({display:"inline-flex",wordBreak:"break-word"},e))},exports.Left=function(e){return i.createElement(t.View,Object.assign({marginRight:"auto"},e))},exports.Link=F,exports.Loader=q,exports.Modal=Wo,exports.Password=function(e){var o=e.visibleIcon,n=void 0===o?i.createElement(R,{size:14}):o,a=e.hiddenIcon,r=void 0===a?i.createElement(_,{size:14}):a,d=c(e,eo),l=qe(d),s=l.isVisible,m=l.setIsVisible,u=c(l,oo);return i.createElement($e,Object.assign({},u,{type:s?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){d.isDisabled||m(!s)}},s?n:r)}))},exports.Right=function(e){return i.createElement(t.View,Object.assign({marginLeft:"auto"},e))},exports.Select=function(e){var o=io(e);return i.createElement(go,Object.assign({},o,e))},exports.Switch=function(e){var o=po(e);return i.createElement(Co,Object.assign({},o,e))},exports.Text=je,exports.TextArea=function(e){var o=Eo(e);return i.createElement(wo,Object.assign({},o,e))},exports.TextField=function(e){var o=Ye(e);return i.createElement($e,Object.assign({},o,e))},exports.Top=function(e){return i.createElement(t.View,Object.assign({marginBottom:"auto"},e))},exports.Vertical=he,exports.View=s,exports.hideModal=To,exports.showModal=function(e,o,i){void 0===o&&(o={}),void 0===i&&(i={}),Ro.getState().show(e,o,i)},exports.useModalStore=Ro;
1
+ "use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var o=require("react"),i=e(o),t=require("app-studio"),n=require("react-router-dom"),a=e(require("date-fns/format")),r=require("formik"),d=require("zustand"),l=require("src/components/Layout/View/View"),c=require("src/components"),s=require("src/components/Svg");function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e[t]=i[t])}return e}).apply(this,arguments)}function m(e,o){if(null==e)return{};var i,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)o.indexOf(i=a[t])>=0||(n[i]=e[i]);return n}var h=t.View,g=["children","wrap","justify","isReversed"],p=function(e){var o=e.children,t=e.wrap,n=void 0===t?"wrap":t,a=e.justify,r=void 0===a?"flex-start":a,d=e.isReversed,l=void 0!==d&&d,c=m(e,g);return i.createElement(h,Object.assign({display:"flex",flexWrap:n,flexDirection:l?"row-reverse":"row",justifyContent:r},c),o)},v=function(e){return i.createElement(p,Object.assign({},e))},f=["children","wrap"],b=function(e){var o=e.children,t=e.wrap,n=m(e,f);return i.createElement(h,Object.assign({display:"flex",justifyContent:"center",alignItems:"center",flexWrap:t},n),o)},j=function(e){return i.createElement(b,Object.assign({},e))},x=["size","color"],C=function(e){var o=e.size,t=void 0===o?64:o,n=m(e,x);return i.createElement(j,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_down [#338]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-220.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M164.292308,6524.36583 L164.292308,6524.36583 C163.902564,6524.77071 163.902564,6525.42619 164.292308,6525.83004 L172.555873,6534.39267 C173.33636,6535.20244 174.602528,6535.20244 175.383014,6534.39267 L183.70754,6525.76791 C184.093286,6525.36716 184.098283,6524.71997 183.717533,6524.31405 C183.328789,6523.89985 182.68821,6523.89467 182.29347,6524.30266 L174.676479,6532.19636 C174.285736,6532.60124 173.653152,6532.60124 173.262409,6532.19636 L165.705379,6524.36583 C165.315635,6523.96094 164.683051,6523.96094 164.292308,6524.36583",id:"arrow_down-[#338]"})))))))},E=["size","color"],S=function(e){var o=e.size,t=void 0===o?64:o,n=m(e,E);return i.createElement(j,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 -4.5 20 20",version:"1.1",fill:"#000000"},n),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("title",null,"arrow_up [#337]")," ",i.createElement("desc",null,"Created with Sketch."),i.createElement("defs",null," "),i.createElement("g",{id:"Page-1",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},i.createElement("g",{id:"Dribbble-Light-Preview",transform:"translate(-260.000000, -6684.000000)",fill:"#000000"},i.createElement("g",{id:"icons",transform:"translate(56.000000, 160.000000)"},i.createElement("path",{d:"M223.707692,6534.63378 L223.707692,6534.63378 C224.097436,6534.22888 224.097436,6533.57338 223.707692,6533.16951 L215.444127,6524.60657 C214.66364,6523.79781 213.397472,6523.79781 212.616986,6524.60657 L204.29246,6533.23165 C203.906714,6533.6324 203.901717,6534.27962 204.282467,6534.68555 C204.671211,6535.10081 205.31179,6535.10495 205.70653,6534.69695 L213.323521,6526.80297 C213.714264,6526.39807 214.346848,6526.39807 214.737591,6526.80297 L222.294621,6534.63378 C222.684365,6535.03868 223.317949,6535.03868 223.707692,6534.63378",id:"arrow_up-[#337]"})))))))},y=["size","color"],w=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=m(e,y);return i.createElement(j,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round",stroke:"#CCCCCC",strokeWidth:"0.048"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M17.0001 9L10 16L7 13",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))))},_=["size","color"],k=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=m(e,_);return i.createElement(j,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({width:t+"px",height:t+"px",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",fill:"#000000"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fill:a,d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"}))))},z=["size","color"],O=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,r=m(e,z);return i.createElement(j,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.7071 5.70711C20.0976 5.31658 20.0976 4.68342 19.7071 4.29289C19.3166 3.90237 18.6834 3.90237 18.2929 4.29289L14.032 8.55382C13.4365 8.20193 12.7418 8 12 8C9.79086 8 8 9.79086 8 12C8 12.7418 8.20193 13.4365 8.55382 14.032L4.29289 18.2929C3.90237 18.6834 3.90237 19.3166 4.29289 19.7071C4.68342 20.0976 5.31658 20.0976 5.70711 19.7071L9.96803 15.4462C10.5635 15.7981 11.2582 16 12 16C14.2091 16 16 14.2091 16 12C16 11.2582 15.7981 10.5635 15.4462 9.96803L19.7071 5.70711ZM12.518 10.0677C12.3528 10.0236 12.1792 10 12 10C10.8954 10 10 10.8954 10 12C10 12.1792 10.0236 12.3528 10.0677 12.518L12.518 10.0677ZM11.482 13.9323L13.9323 11.482C13.9764 11.6472 14 11.8208 14 12C14 13.1046 13.1046 14 12 14C11.8208 14 11.6472 13.9764 11.482 13.9323ZM15.7651 4.8207C14.6287 4.32049 13.3675 4 12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C1.92276 13.7326 2.86706 15.0637 4.21194 16.3739L5.62626 14.9596C4.4555 13.8229 3.61144 12.6531 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C12.7719 6 13.5135 6.13385 14.2193 6.36658L15.7651 4.8207ZM12 18C11.2282 18 10.4866 17.8661 9.78083 17.6334L8.23496 19.1793C9.37136 19.6795 10.6326 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C22.0773 10.2674 21.133 8.93627 19.7881 7.62611L18.3738 9.04043C19.5446 10.1771 20.3887 11.3469 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18Z",fill:a}))))},T=["size","color"],I=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=m(e,T);return i.createElement(j,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({fill:a,width:t+"px",height:t+"px",viewBox:"0 0 50 50",xmlns:"http://www.w3.org/2000/svg",stroke:a},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M38.288 10.297l1.414 1.415-14.99 14.99-1.414-1.414z"}),i.createElement("path",{d:"M40 20h-2v-8h-8v-2h10z"}),i.createElement("path",{d:"M35 38H15c-1.7 0-3-1.3-3-3V15c0-1.7 1.3-3 3-3h11v2H15c-.6 0-1 .4-1 1v20c0 .6.4 1 1 1h20c.6 0 1-.4 1-1V24h2v11c0 1.7-1.3 3-3 3z"}))))},H=["size","color"],R=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"white":n,r=m(e,H);return i.createElement(j,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M7 12L17 12",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})," ")))},L=["size","color"],M=function(e){var o=e.size,t=void 0===o?64:o,n=e.color,a=void 0===n?"#2F4858":n,r=m(e,L);return i.createElement(j,{width:t+"px",height:t+"px"},i.createElement("svg",Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.30147 15.5771C4.77832 14.2684 3.6904 12.7726 3.18002 12C3.6904 11.2274 4.77832 9.73158 6.30147 8.42294C7.87402 7.07185 9.81574 6 12 6C14.1843 6 16.1261 7.07185 17.6986 8.42294C19.2218 9.73158 20.3097 11.2274 20.8201 12C20.3097 12.7726 19.2218 14.2684 17.6986 15.5771C16.1261 16.9282 14.1843 18 12 18C9.81574 18 7.87402 16.9282 6.30147 15.5771ZM12 4C9.14754 4 6.75717 5.39462 4.99812 6.90595C3.23268 8.42276 2.00757 10.1376 1.46387 10.9698C1.05306 11.5985 1.05306 12.4015 1.46387 13.0302C2.00757 13.8624 3.23268 15.5772 4.99812 17.0941C6.75717 18.6054 9.14754 20 12 20C14.8525 20 17.2429 18.6054 19.002 17.0941C20.7674 15.5772 21.9925 13.8624 22.5362 13.0302C22.947 12.4015 22.947 11.5985 22.5362 10.9698C21.9925 10.1376 20.7674 8.42276 19.002 6.90595C17.2429 5.39462 14.8525 4 12 4ZM10 12C10 10.8954 10.8955 10 12 10C13.1046 10 14 10.8954 14 12C14 13.1046 13.1046 14 12 14C10.8955 14 10 13.1046 10 12ZM12 8C9.7909 8 8.00004 9.79086 8.00004 12C8.00004 14.2091 9.7909 16 12 16C14.2092 16 16 14.2091 16 12C16 9.79086 14.2092 8 12 8Z",fill:a}))))},F={xs:12,sm:14,md:16,lg:18,xl:20,"2xl":24,"3xl":30,"4xl":36,"5xl":48,"6xl":64},V=["children","href","iconSize","underline","isHovered","isExternal","colorScheme","styles","setIsHovered"],G=function(e){var o=e.children,a=e.href,r=void 0===a?"/":a,d=e.iconSize,l=void 0===d?"sm":d,c=e.underline,s=void 0===c?"default":c,u=e.isHovered,h=void 0!==u&&u,g=e.isExternal,p=void 0!==g&&g,f=e.colorScheme,b=void 0===f?"#0072F5":f,j=e.styles,x=void 0===j?{icon:{},text:{}}:j,C=e.setIsHovered,E=void 0===C?function(){}:C,S=m(e,V),y=function(){"hover"===s&&E(!0)};return i.createElement(n.Link,{to:r,target:p?"_blank":"_self"},i.createElement(t.Element,Object.assign({color:b,onMouseEnter:y,onMouseLeave:y,textDecoration:h||"underline"===s?"underline !important":"none"},x.text,S),i.createElement(v,{gap:3,alignItems:"center",wrap:"nowrap"},o,p&&i.createElement(I,{color:b,size:F[l],style:x.icon}))))},D=function(e){var t,n={isHovered:(t=o.useState(!1))[0],setIsHovered:t[1]};return i.createElement(G,Object.assign({},n,e))},B={xs:{width:79,paddingTop:8,paddingBottom:8,paddingLeft:12,paddingRight:12,fontWeight:600,fontSize:"xs",lineHeight:16,letterSpacing:1.25},sm:{width:128,paddingTop:10,paddingBottom:10,paddingLeft:16,paddingRight:16,fontWeight:600,fontSize:"sm",lineHeight:20,letterSpacing:1.25},md:{width:144,paddingTop:12,paddingBottom:12,paddingLeft:18,paddingRight:18,fontWeight:600,fontSize:"md",lineHeight:24,letterSpacing:1.25},lg:{width:178,paddingTop:14,paddingBottom:14,paddingLeft:22,paddingRight:22,fontWeight:600,fontSize:"lg",lineHeight:24,letterSpacing:1.25},xl:{width:220,paddingTop:16,paddingBottom:16,paddingLeft:26,paddingRight:26,fontWeight:600,fontSize:"xl",lineHeight:24,letterSpacing:1.25}},A={sharp:0,rounded:4,pillShaped:24},P={xs:{width:24,height:24,padding:12},sm:{width:24,height:24,padding:15},md:{width:36,height:36,padding:15},lg:{width:36,height:36,padding:18},xl:{width:36,height:36,padding:24}},W={xs:14,sm:18,md:22,lg:26,xl:30,"2xl":40,"3xl":50,"4xl":60,"5xl":70,"6xl":80},N={fast:50,normal:100,slow:300},K=["size","speed","color"],U=["size","speed","color"],Z=["size","speed","color"],q=["size","children","textColor","loaderColor","type","speed","textPosition"],J=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,s=m(e,K),u=t.useTheme().getColor(c),h="number"==typeof a?a:W[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),N[d]);return function(){return clearInterval(e)}}),[d]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:h+"px",height:h+"px",viewBox:"0 0 24 24",fill:"none",stroke:u,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",style:{transform:"rotate("+p+"deg)"}},s),i.createElement("g",{id:"SVGRepo_bgCarrier",strokeWidth:"0"}),i.createElement("g",{id:"SVGRepo_tracerCarrier",strokeLinecap:"round",strokeLinejoin:"round"}),i.createElement("g",{id:"SVGRepo_iconCarrier"},i.createElement("path",{d:"M21 12a9 9 0 11-6.219-8.56"})))},Y=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,s=m(e,U),u=t.useTheme().getColor(c),h="number"==typeof a?a:W[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),N[d]);return function(){return clearInterval(e)}}),[d]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},s),i.createElement("circle",{cx:"10",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"25",cy:"25",r:"4",fill:u}),i.createElement("circle",{cx:"40",cy:"25",r:"4",fill:u}))},Q=function(e){var n=e.size,a=void 0===n?"md":n,r=e.speed,d=void 0===r?"normal":r,l=e.color,c=void 0===l?"theme.loading":l,s=m(e,Z),u=t.useTheme().getColor(c),h="number"==typeof a?a:W[a],g=o.useState(0),p=g[0],v=g[1];return o.useEffect((function(){var e=setInterval((function(){v((function(e){return e+45}))}),N[d]);return function(){return clearInterval(e)}}),[d]),i.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",width:h+"px",height:h+"px",style:{transform:"rotate("+p+"deg)"}},s),i.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",stroke:u,strokeWidth:"5",strokeDasharray:"1,10"}))},X=function(e){var o=e.size,t=e.children,n=e.textColor,a=e.loaderColor,r=e.type,d=void 0===r?"default":r,l=e.speed,c=void 0===l?"normal":l,s=e.textPosition,u=void 0===s?"right":s,g=m(e,q),p={size:o,speed:c,color:a},v={default:i.createElement(J,Object.assign({},p)),dotted:i.createElement(Y,Object.assign({},p)),quarter:i.createElement(Q,Object.assign({},p))};return i.createElement(j,Object.assign({gap:10,flexDirection:"top"===u||"bottom"===u?"column":"row"},g),("left"===u||"top"===u)&&t&&i.createElement(h,{color:n},t),v[d],("right"===u||"bottom"===u)&&t&&i.createElement(h,{color:n},t))},$=function(e){return i.createElement(X,Object.assign({},e))},ee=["icon","shadow","children","ariaLabel","externalHref","isAuto","isFilled","isIconRounded","isLoading","isDisabled","size","variant","iconPosition","colorScheme","shape","onClick","loaderProps","loaderPosition","effect","isHovered"],oe=function(e){var o,n=e.icon,a=e.shadow,r=e.children,d=e.ariaLabel,l=e.externalHref,c=e.isAuto,s=void 0!==c&&c,u=e.isFilled,h=void 0!==u&&u,g=e.isIconRounded,p=void 0!==g&&g,f=e.isLoading,b=void 0!==f&&f,j=e.isDisabled,x=void 0!==j&&j,C=e.size,E=void 0===C?"md":C,S=e.variant,y=void 0===S?"filled":S,w=e.iconPosition,_=void 0===w?"left":w,k=e.colorScheme,z=void 0===k?"theme.primary":k,O=e.shape,T=void 0===O?"rounded":O,I=e.onClick,H=void 0===I?function(){}:I,R=e.loaderProps,L=void 0===R?{}:R,M=e.loaderPosition,F=void 0===M?"left":M,V=e.effect,G=void 0===V?"default":V,W=e.isHovered,N=m(e,ee),K=!(x||b),U={disabled:!K},Z=K?z:"theme.disabled",q=W&&"hover"===G,J=W&&"reverse"===G,Y=B[E],Q={filled:{backgroundColor:J?"transparent":Z,color:J?Z:"color.white",borderWidth:1,borderStyle:"solid",borderColor:J?Z:"transparent"},outline:{backgroundColor:J?Z:"transparent",borderWidth:1,borderStyle:"solid",borderColor:J?Z:z,color:J?"white":Z},link:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:J?Z:"transparent",color:Z,textDecoration:J?"none":"underline"},ghost:{backgroundColor:J?Z:"transparent",color:J?"color.white":Z,borderWidth:1,borderStyle:"solid",borderColor:J?Z:"transparent"}}[y],X={width:s?"fit-content":h?"100%":Y.width},oe={padding:p?P[E].padding:B[E].padding},ie=i.createElement(v,{gap:10},b&&"left"===F&&i.createElement($,Object.assign({},L)),n&&"left"===_&&!b&&n,r,n&&"right"===_&&!b&&n,b&&"right"===F&&i.createElement($,Object.assign({},L)));return i.createElement(t.Element,Object.assign({gap:8,as:"button",role:"button",border:"none",color:"color.white",display:"flex",alignItems:"center",justifyContent:"center",ariaLabel:d,backgroundColor:Z,borderRadius:A[T],onClick:null!=(o=N.onClick)?o:H,cursor:K?"pointer":"default",filter:q?"brightness(0.85)":"brightness(1)",transition:q&&!N.isDisabled?"transform 0.3s ease":"",transform:q&&!N.isDisabled?"translateY(-5px)":""},U,Y,Q,X,oe,a,N),"link"===y&&l?i.createElement(D,{href:l,textDecorationColor:z,colorScheme:z,isExternal:!0},ie):ie)},ie=function(e){var o,t={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},n=t.isHovered,a=t.setIsHovered,r=function(){return a(!n)};return i.createElement(oe,Object.assign({isHovered:n,setIsHovered:a,onMouseEnter:r,onMouseLeave:r},e))},te=function(e){var o=e.defaultIsSelected,t=void 0!==o&&o,n=i.useState(!1),a=n[0],r=n[1],d=i.useState(t);return{isHovered:a,setIsHovered:r,isSelected:d[0],setIsSelected:d[1]}},ne={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},ae=["children","heading","isItalic","isUnderlined","isStriked","weight","size"],re=function(e){var o=e.children,n=e.heading,a=e.isItalic,r=void 0!==a&&a,d=e.isUnderlined,l=void 0!==d&&d,c=e.isStriked,s=void 0!==c&&c,u=e.weight,h=void 0===u?"normal":u,g=e.size,p=void 0===g?"sm":g,v=m(e,ae);return i.createElement(t.Element,Object.assign({as:"label",width:"100%",fontSize:p,fontStyle:r?"italic":"normal",fontWeight:t.Typography.fontWeights[h],textDecoration:s?"line-through":l?"underline":"none"},n?ne[n]:{},v),o)},de=function(e){return i.createElement(re,Object.assign({},e))},le={xs:{height:8,width:8},sm:{height:12,width:12},md:{height:18,width:18},lg:{height:24,width:24},xl:{height:30,width:30},"2xl":{height:36,width:36},"3xl":{height:42,width:42},"4xl":{height:48,width:48},"5xl":{height:54,width:54},"6xl":{height:60,width:60}},ce={xs:6,sm:12,md:18,lg:24,xl:30,"2xl":36,"3xl":42,"4xl":48,"5xl":54,"6xl":60},se=["id","icon","name","label","isChecked","onChange","onValueChange","shadow","labelPosition","size","colorScheme","error","isSelected","isHovered","isDisabled","isReadOnly","isIndeterminate","defaultIsSelected","setIsSelected","setIsHovered","styles"],ue=function(e){var o=e.id,n=e.icon,a=e.label,r=e.isChecked,d=e.onChange,l=e.onValueChange,c=e.shadow,s=void 0===c?{}:c,h=e.labelPosition,g=void 0===h?"right":h,p=e.size,v=void 0===p?"md":p,f=e.colorScheme,b=void 0===f?"theme.primary":f,x=e.error,C=void 0!==x&&x,E=e.isSelected,S=void 0!==E&&E,y=e.isHovered,_=void 0!==y&&y,k=e.isDisabled,z=void 0!==k&&k,O=e.isReadOnly,T=void 0!==O&&O,I=e.isIndeterminate,H=void 0!==I&&I,L=e.setIsSelected,M=void 0===L?function(){}:L,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.styles,D=void 0===G?{checkbox:{},label:{}}:G,B=m(e,se),A=function(){return V(!_)},P={container:u({gap:10,display:"flex",alignItems:"center",height:"fit-content",width:"fit-content",color:C?"theme.error":z?"theme.disabled":"color.blueGray.700",cursor:z?"not-allowed":T?"default":"pointer"},D.label),checkbox:u({},z?{backgroundColor:"theme.disabled"}:(r||S)&&!H||H?{backgroundColor:b}:{borderWidth:2,borderColor:C?"theme.error":_?"color.gray.500":"color.gray.300",borderStyle:"solid"},{borderRadius:3,filter:_?"brightness(0.9)":void 0},le[v],s,D.checkbox)};return i.createElement(de,Object.assign({htmlFor:o,as:"div",onClick:function(){T||z||(M&&M(!S),d&&d(!r),l&&l(!r))},onMouseEnter:A,onMouseLeave:A,size:t.Typography.fontSizes[v]},P.container,B),"left"===g&&a&&i.createElement(t.View,null,a),i.createElement(j,Object.assign({},P.checkbox),H?i.createElement(R,null):(r||S)&&(null!=n?n:i.createElement(w,{size:ce[v]}))),"right"===g&&a&&i.createElement(t.View,null,a))},me=[{name:"Afghanistan",dial_code:"+93",emoji:"🇦🇫",code:"AF"},{name:"Aland Islands",dial_code:"+358",emoji:"🇦🇽",code:"AX"},{name:"Albania",dial_code:"+355",emoji:"🇦🇱",code:"AL"},{name:"Algeria",dial_code:"+213",emoji:"🇩🇿",code:"DZ"},{name:"AmericanSamoa",dial_code:"+1684",emoji:"🇦🇸",code:"AS"},{name:"Andorra",dial_code:"+376",emoji:"🇦🇩",code:"AD"},{name:"Angola",dial_code:"+244",emoji:"🇦🇴",code:"AO"},{name:"Anguilla",dial_code:"+1264",emoji:"🇦🇮",code:"AI"},{name:"Antarctica",dial_code:"+672",emoji:"🇦🇶",code:"AQ"},{name:"Antigua and Barbuda",dial_code:"+1268",emoji:"🇦🇬",code:"AG"},{name:"Argentina",dial_code:"+54",emoji:"🇦🇷",code:"AR"},{name:"Armenia",dial_code:"+374",emoji:"🇦🇲",code:"AM"},{name:"Aruba",dial_code:"+297",emoji:"🇦🇼",code:"AW"},{name:"Australia",dial_code:"+61",emoji:"🇦🇺",code:"AU"},{name:"Austria",dial_code:"+43",emoji:"🇦🇹",code:"AT"},{name:"Azerbaijan",dial_code:"+994",emoji:"🇦🇿",code:"AZ"},{name:"Bahamas",dial_code:"+1242",emoji:"🇧🇸",code:"BS"},{name:"Bahrain",dial_code:"+973",emoji:"🇧🇭",code:"BH"},{name:"Bangladesh",dial_code:"+880",emoji:"🇧🇩",code:"BD"},{name:"Barbados",dial_code:"+1246",emoji:"🇧🇧",code:"BB"},{name:"Belarus",dial_code:"+375",emoji:"🇧🇾",code:"BY"},{name:"Belgium",dial_code:"+32",emoji:"🇧🇪",code:"BE"},{name:"Belize",dial_code:"+501",emoji:"🇧🇿",code:"BZ"},{name:"Benin",dial_code:"+229",emoji:"🇧🇯",code:"BJ"},{name:"Bermuda",dial_code:"+1441",emoji:"🇧🇲",code:"BM"},{name:"Bhutan",dial_code:"+975",emoji:"🇧🇹",code:"BT"},{name:"Bolivia, Plurinational State of",dial_code:"+591",emoji:"🇧🇴",code:"BO"},{name:"Bosnia and Herzegovina",dial_code:"+387",emoji:"🇧🇦",code:"BA"},{name:"Botswana",dial_code:"+267",emoji:"🇧🇼",code:"BW"},{name:"Brazil",dial_code:"+55",emoji:"🇧🇷",code:"BR"},{name:"British Indian Ocean Territory",dial_code:"+246",emoji:"🇮🇴",code:"IO"},{name:"Brunei Darussalam",dial_code:"+673",emoji:"🇧🇳",code:"BN"},{name:"Bulgaria",dial_code:"+359",emoji:"🇧🇬",code:"BG"},{name:"Burkina Faso",dial_code:"+226",emoji:"🇧🇫",code:"BF"},{name:"Burundi",dial_code:"+257",emoji:"🇧🇮",code:"BI"},{name:"Cambodia",dial_code:"+855",emoji:"🇰🇭",code:"KH"},{name:"Cameroon",dial_code:"+237",emoji:"🇨🇲",code:"CM"},{name:"Canada",dial_code:"+1",emoji:"🇨🇦",code:"CA"},{name:"Cape Verde",dial_code:"+238",emoji:"🇨🇻",code:"CV"},{name:"Cayman Islands",dial_code:"+345",emoji:"🇰🇾",code:"KY"},{name:"Central African Republic",dial_code:"+236",emoji:"🇨🇫",code:"CF"},{name:"Chad",dial_code:"+235",emoji:"🇹🇩",code:"TD"},{name:"Chile",dial_code:"+56",emoji:"🇨🇱",code:"CL"},{name:"China",dial_code:"+86",emoji:"🇨🇳",code:"CN"},{name:"Christmas Island",dial_code:"+61",emoji:"🇨🇽",code:"CX"},{name:"Cocos (Keeling) Islands",dial_code:"+61",emoji:"🇨🇨",code:"CC"},{name:"Colombia",dial_code:"+57",emoji:"🇨🇴",code:"CO"},{name:"Comoros",dial_code:"+269",emoji:"🇰🇲",code:"KM"},{name:"Congo",dial_code:"+242",emoji:"🇨🇬",code:"CG"},{name:"Congo, The Democratic Republic of the Congo",dial_code:"+243",emoji:"🇨🇩",code:"CD"},{name:"Cook Islands",dial_code:"+682",emoji:"🇨🇰",code:"CK"},{name:"Costa Rica",dial_code:"+506",emoji:"🇨🇷",code:"CR"},{name:"Cote d'Ivoire",dial_code:"+225",emoji:"🇨🇮",code:"CI"},{name:"Croatia",dial_code:"+385",emoji:"🇭🇷",code:"HR"},{name:"Cuba",dial_code:"+53",emoji:"🇨🇺",code:"CU"},{name:"Cyprus",dial_code:"+357",emoji:"🇨🇾",code:"CY"},{name:"Czech Republic",dial_code:"+420",emoji:"🇨🇿",code:"CZ"},{name:"Denmark",dial_code:"+45",emoji:"🇩🇰",code:"DK"},{name:"Djibouti",dial_code:"+253",emoji:"🇩🇯",code:"DJ"},{name:"Dominica",dial_code:"+1767",emoji:"🇩🇲",code:"DM"},{name:"Dominican Republic",dial_code:"+1849",emoji:"🇩🇴",code:"DO"},{name:"Ecuador",dial_code:"+593",emoji:"🇪🇨",code:"EC"},{name:"Egypt",dial_code:"+20",emoji:"🇪🇬",code:"EG"},{name:"El Salvador",dial_code:"+503",emoji:"🇸🇻",code:"SV"},{name:"Equatorial Guinea",dial_code:"+240",emoji:"🇬🇶",code:"GQ"},{name:"Eritrea",dial_code:"+291",emoji:"🇪🇷",code:"ER"},{name:"Estonia",dial_code:"+372",emoji:"🇪🇪",code:"EE"},{name:"Ethiopia",dial_code:"+251",emoji:"🇪🇹",code:"ET"},{name:"Falkland Islands (Malvinas)",dial_code:"+500",emoji:"🇫🇰",code:"FK"},{name:"Faroe Islands",dial_code:"+298",emoji:"🇫🇴",code:"FO"},{name:"Fiji",dial_code:"+679",emoji:"🇫🇯",code:"FJ"},{name:"Finland",dial_code:"+358",emoji:"🇫🇮",code:"FI"},{name:"France",dial_code:"+33",emoji:"🇫🇷",code:"FR"},{name:"French Guiana",dial_code:"+594",emoji:"🇬🇫",code:"GF"},{name:"French Polynesia",dial_code:"+689",emoji:"🇵🇫",code:"PF"},{name:"Gabon",dial_code:"+241",emoji:"🇬🇦",code:"GA"},{name:"Gambia",dial_code:"+220",emoji:"🇬🇲",code:"GM"},{name:"Georgia",dial_code:"+995",emoji:"🇬🇪",code:"GE"},{name:"Germany",dial_code:"+49",emoji:"🇩🇪",code:"DE"},{name:"Ghana",dial_code:"+233",emoji:"🇬🇭",code:"GH"},{name:"Gibraltar",dial_code:"+350",emoji:"🇬🇮",code:"GI"},{name:"Greece",dial_code:"+30",emoji:"🇬🇷",code:"GR"},{name:"Greenland",dial_code:"+299",emoji:"🇬🇱",code:"GL"},{name:"Grenada",dial_code:"+1473",emoji:"🇬🇩",code:"GD"},{name:"Guadeloupe",dial_code:"+590",emoji:"🇬🇵",code:"GP"},{name:"Guam",dial_code:"+1671",emoji:"🇬🇺",code:"GU"},{name:"Guatemala",dial_code:"+502",emoji:"🇬🇹",code:"GT"},{name:"Guernsey",dial_code:"+44",emoji:"🇬🇬",code:"GG"},{name:"Guinea",dial_code:"+224",emoji:"🇬🇳",code:"GN"},{name:"Guinea-Bissau",dial_code:"+245",emoji:"🇬🇼",code:"GW"},{name:"Guyana",dial_code:"+595",emoji:"🇬🇾",code:"GY"},{name:"Haiti",dial_code:"+509",emoji:"🇭🇹",code:"HT"},{name:"Holy See (Vatican City State)",dial_code:"+379",emoji:"🇻🇦",code:"VA"},{name:"Honduras",dial_code:"+504",emoji:"🇭🇳",code:"HN"},{name:"Hong Kong",dial_code:"+852",emoji:"🇭🇰",code:"HK"},{name:"Hungary",dial_code:"+36",emoji:"🇭🇺",code:"HU"},{name:"Iceland",dial_code:"+354",emoji:"🇮🇸",code:"IS"},{name:"India",dial_code:"+91",emoji:"🇮🇳",code:"IN"},{name:"Indonesia",dial_code:"+62",emoji:"🇮🇩",code:"ID"},{name:"Iran, Islamic Republic of Persian Gulf",dial_code:"+98",emoji:"🇮🇷",code:"IR"},{name:"Iraq",dial_code:"+964",emoji:"🇮🇷",code:"IQ"},{name:"Ireland",dial_code:"+353",emoji:"🇮🇪",code:"IE"},{name:"Isle of Man",dial_code:"+44",emoji:"🇮🇲",code:"IM"},{name:"Israel",dial_code:"+972",emoji:"🇮🇱",code:"IL"},{name:"Italy",dial_code:"+39",emoji:"🇮🇹",code:"IT"},{name:"Jamaica",dial_code:"+1876",emoji:"🇯🇲",code:"JM"},{name:"Japan",dial_code:"+81",emoji:"🇯🇵",code:"JP"},{name:"Jersey",dial_code:"+44",emoji:"🇯🇪",code:"JE"},{name:"Jordan",dial_code:"+962",emoji:"🇯🇴",code:"JO"},{name:"Kazakhstan",dial_code:"+77",emoji:"🇰🇿",code:"KZ"},{name:"Kenya",dial_code:"+254",emoji:"🇰🇪",code:"KE"},{name:"Kiribati",dial_code:"+686",emoji:"🇰🇮",code:"KI"},{name:"Korea, Democratic People's Republic of Korea",dial_code:"+850",emoji:"🇰🇵",code:"KP"},{name:"Korea, Republic of South Korea",dial_code:"+82",emoji:"🇰🇷",code:"KR"},{name:"Kuwait",dial_code:"+965",emoji:"🇰🇼",code:"KW"},{name:"Kyrgyzstan",dial_code:"+996",emoji:"🇰🇬",code:"KG"},{name:"Laos",dial_code:"+856",emoji:"🇱🇦",code:"LA"},{name:"Latvia",dial_code:"+371",emoji:"🇱🇻",code:"LV"},{name:"Lebanon",dial_code:"+961",emoji:"🇱🇧",code:"LB"},{name:"Lesotho",dial_code:"+266",emoji:"🇱🇸",code:"LS"},{name:"Liberia",dial_code:"+231",emoji:"🇱🇷",code:"LR"},{name:"Libyan Arab Jamahiriya",dial_code:"+218",emoji:"🇱🇾",code:"LY"},{name:"Liechtenstein",dial_code:"+423",emoji:"🇱🇮",code:"LI"},{name:"Lithuania",dial_code:"+370",emoji:"🇱🇹",code:"LT"},{name:"Luxembourg",dial_code:"+352",emoji:"🇱🇺",code:"LU"},{name:"Macao",dial_code:"+853",emoji:"🇲🇴",code:"MO"},{name:"Macedonia",dial_code:"+389",emoji:"🇲🇰",code:"MK"},{name:"Madagascar",dial_code:"+261",emoji:"🇲🇬",code:"MG"},{name:"Malawi",dial_code:"+265",emoji:"🇲🇼",code:"MW"},{name:"Malaysia",dial_code:"+60",emoji:"🇲🇾",code:"MY"},{name:"Maldives",dial_code:"+960",emoji:"🇲🇻",code:"MV"},{name:"Mali",dial_code:"+223",emoji:"🇲🇱",code:"ML"},{name:"Malta",dial_code:"+356",emoji:"🇲🇹",code:"MT"},{name:"Marshall Islands",dial_code:"+692",emoji:"🇲🇭",code:"MH"},{name:"Martinique",dial_code:"+596",emoji:"🇲🇶",code:"MQ"},{name:"Mauritania",dial_code:"+222",emoji:"🇲🇷",code:"MR"},{name:"Mauritius",dial_code:"+230",emoji:"🇲🇺",code:"MU"},{name:"Mayotte",dial_code:"+262",emoji:"🇾🇹",code:"YT"},{name:"Mexico",dial_code:"+52",emoji:"🇲🇽",code:"MX"},{name:"Micronesia, Federated States of Micronesia",dial_code:"+691",emoji:"🇫🇲",code:"FM"},{name:"Moldova",dial_code:"+373",emoji:"🇲🇩",code:"MD"},{name:"Monaco",dial_code:"+377",emoji:"🇲🇨",code:"MC"},{name:"Mongolia",dial_code:"+976",emoji:"🇲🇳",code:"MN"},{name:"Montenegro",dial_code:"+382",emoji:"🇲🇪",code:"ME"},{name:"Montserrat",dial_code:"+1664",emoji:"🇲🇸",code:"MS"},{name:"Morocco",dial_code:"+212",emoji:"🇲🇦",code:"MA"},{name:"Mozambique",dial_code:"+258",emoji:"🇲🇿",code:"MZ"},{name:"Myanmar",dial_code:"+95",emoji:"🇲🇲",code:"MM"},{name:"Namibia",emoji:"🇳🇦",dial_code:"+264",code:"NA"},{name:"Nauru",dial_code:"+674",emoji:"🇳🇷",code:"NR"},{name:"Nepal",dial_code:"+977",emoji:"🇳🇵",code:"NP"},{name:"Netherlands",dial_code:"+31",emoji:"🇳🇱",code:"NL"},{name:"Netherlands Antilles",dial_code:"+599",emoji:"🇧🇶",code:"AN"},{name:"New Caledonia",dial_code:"+687",emoji:"🇳🇨",code:"NC"},{name:"New Zealand",dial_code:"+64",emoji:"🇳🇿",code:"NZ"},{name:"Nicaragua",dial_code:"+505",emoji:"🇳🇮",code:"NI"},{name:"Niger",dial_code:"+227",emoji:"🇳🇪",code:"NE"},{name:"Nigeria",dial_code:"+234",emoji:"🇳🇬",code:"NG"},{name:"Niue",dial_code:"+683",emoji:"🇳🇺",code:"NU"},{name:"Norfolk Island",dial_code:"+672",emoji:"🇳🇫",code:"NF"},{name:"Northern Mariana Islands",dial_code:"+1670",emoji:"🇲🇵",code:"MP"},{name:"Norway",dial_code:"+47",emoji:"🇳🇴",code:"NO"},{name:"Oman",dial_code:"+968",emoji:"🇴🇲",code:"OM"},{name:"Pakistan",dial_code:"+92",emoji:"🇵🇰",code:"PK"},{name:"Palau",dial_code:"+680",emoji:"🇵🇼",code:"PW"},{name:"Palestinian Territory, Occupied",dial_code:"+970",emoji:"🇵🇸",code:"PS"},{name:"Panama",dial_code:"+507",emoji:"🇵🇦",code:"PA"},{name:"Papua New Guinea",dial_code:"+675",emoji:"🇵🇬",code:"PG"},{name:"Paraguay",dial_code:"+595",emoji:"🇵🇾",code:"PY"},{name:"Peru",dial_code:"+51",emoji:"🇵🇪",code:"PE"},{name:"Philippines",dial_code:"+63",emoji:"🇵🇭",code:"PH"},{name:"Pitcairn",dial_code:"+872",emoji:"🇵🇳",code:"PN"},{name:"Poland",dial_code:"+48",emoji:"🇵🇱",code:"PL"},{name:"Portugal",dial_code:"+351",emoji:"🇵🇹",code:"PT"},{name:"Puerto Rico",dial_code:"+1939",emoji:"🇵🇷",code:"PR"},{name:"Qatar",dial_code:"+974",emoji:"🇶🇦",code:"QA"},{name:"Romania",dial_code:"+40",emoji:"🇷🇴",code:"RO"},{name:"Russia",dial_code:"+7",emoji:"🇷🇺",code:"RU"},{name:"Rwanda",dial_code:"+250",emoji:"🇷🇼",code:"RW"},{name:"Reunion",dial_code:"+262",emoji:"🇷🇪",code:"RE"},{name:"Saint Barthelemy",dial_code:"+590",emoji:"🇧🇱",code:"BL"},{name:"Saint Helena, Ascension and Tristan Da Cunha",dial_code:"+290",emoji:"🇸🇭",code:"SH"},{name:"Saint Kitts and Nevis",dial_code:"+1869",emoji:"🇰🇳",code:"KN"},{name:"Saint Lucia",dial_code:"+1758",emoji:"🇱🇨",code:"LC"},{name:"Saint Martin",dial_code:"+590",emoji:"🇲🇫",code:"MF"},{name:"Saint Pierre and Miquelon",dial_code:"+508",emoji:"🇵🇲",code:"PM"},{name:"Saint Vincent and the Grenadines",dial_code:"+1784",emoji:"🇻🇨",code:"VC"},{name:"Samoa",dial_code:"+685",emoji:"🇼🇸",code:"WS"},{name:"San Marino",dial_code:"+378",emoji:"🇸🇲",code:"SM"},{name:"Sao Tome and Principe",dial_code:"+239",emoji:"🇸🇹",code:"ST"},{name:"Saudi Arabia",dial_code:"+966",emoji:"🇸🇦",code:"SA"},{name:"Senegal",dial_code:"+221",emoji:"🇸🇳",code:"SN"},{name:"Serbia",dial_code:"+381",emoji:"🇷🇸",code:"RS"},{name:"Seychelles",dial_code:"+248",emoji:"🇸🇨",code:"SC"},{name:"Sierra Leone",dial_code:"+232",emoji:"🇸🇱",code:"SL"},{name:"Singapore",dial_code:"+65",emoji:"🇸🇬",code:"SG"},{name:"Slovakia",dial_code:"+421",emoji:"🇸🇰",code:"SK"},{name:"Slovenia",dial_code:"+386",emoji:"🇸🇮",code:"SI"},{name:"Solomon Islands",dial_code:"+677",emoji:"🇸🇧",code:"SB"},{name:"Somalia",dial_code:"+252",emoji:"🇸🇴",code:"SO"},{name:"South Africa",dial_code:"+27",emoji:"🇿🇦",code:"ZA"},{name:"South Sudan",dial_code:"+211",emoji:"🇸🇸",code:"SS"},{name:"South Georgia and the South Sandwich Islands",dial_code:"+500",emoji:"🇬🇸",code:"GS"},{name:"Spain",dial_code:"+34",emoji:"🇪🇸",code:"ES"},{name:"Sri Lanka",dial_code:"+94",emoji:"🇱🇰",code:"LK"},{name:"Sudan",dial_code:"+249",emoji:"🇸🇩",code:"SD"},{name:"Suriname",dial_code:"+597",emoji:"🇸🇷",code:"SR"},{name:"Svalbard and Jan Mayen",dial_code:"+47",emoji:"🇸🇯",code:"SJ"},{name:"Swaziland",dial_code:"+268",emoji:"🇸🇿",code:"SZ"},{name:"Sweden",dial_code:"+46",emoji:"🇸🇪",code:"SE"},{name:"Switzerland",dial_code:"+41",emoji:"🇨🇭",code:"CH"},{name:"Syrian Arab Republic",dial_code:"+963",emoji:"🇸🇾",code:"SY"},{name:"Taiwan",dial_code:"+886",emoji:"🇹🇼",code:"TW"},{name:"Tajikistan",dial_code:"+992",emoji:"🇹🇯",code:"TJ"},{name:"Tanzania, United Republic of Tanzania",dial_code:"+255",emoji:"🇹🇿",code:"TZ"},{name:"Thailand",dial_code:"+66",emoji:"🇹🇭",code:"TH"},{name:"Timor-Leste",dial_code:"+670",emoji:"🇹🇱",code:"TL"},{name:"Togo",dial_code:"+228",emoji:"🇹🇬",code:"TG"},{name:"Tokelau",dial_code:"+690",emoji:"🇹🇰",code:"TK"},{name:"Tonga",dial_code:"+676",emoji:"🇹🇴",code:"TO"},{name:"Trinidad and Tobago",dial_code:"+1868",emoji:"🇹🇹",code:"TT"},{name:"Tunisia",dial_code:"+216",emoji:"🇹🇳",code:"TN"},{name:"Turkey",dial_code:"+90",emoji:"🇹🇷",code:"TR"},{name:"Turkmenistan",dial_code:"+993",emoji:"🇹🇲",code:"TM"},{name:"Turks and Caicos Islands",dial_code:"+1649",emoji:"🇹🇨",code:"TC"},{name:"Tuvalu",dial_code:"+688",emoji:"🇹🇻",code:"TV"},{name:"Uganda",dial_code:"+256",emoji:"🇺🇬",code:"UG"},{name:"Ukraine",dial_code:"+380",emoji:"🇺🇦",code:"UA"},{name:"United Arab Emirates",dial_code:"+971",emoji:"🇦🇪",code:"AE"},{name:"United Kingdom",dial_code:"+44",emoji:"🇬🇧",code:"GB"},{name:"United States",dial_code:"+1",emoji:"🇺🇸",code:"US"},{name:"Uruguay",dial_code:"+598",emoji:"🇺🇾",code:"UY"},{name:"Uzbekistan",dial_code:"+998",emoji:"🇺🇿",code:"UZ"},{name:"Vanuatu",dial_code:"+678",emoji:"🇻🇺",code:"VU"},{name:"Venezuela, Bolivarian Republic of Venezuela",dial_code:"+58",emoji:"🇻🇪",code:"VE"},{name:"Vietnam",dial_code:"+84",emoji:"🇻🇳",code:"VN"},{name:"Virgin Islands, British",dial_code:"+1284",emoji:"🇻🇬",code:"VG"},{name:"Virgin Islands, U.S.",dial_code:"+1340",emoji:"🇻🇮",code:"VI"},{name:"Wallis and Futuna",dial_code:"+681",emoji:"🇼🇫",code:"WF"},{name:"Yemen",dial_code:"+967",emoji:"🇾🇪",code:"YE"},{name:"Zambia",dial_code:"+260",emoji:"🇿🇲",code:"ZM"},{name:"Zimbabwe",dial_code:"+263",emoji:"🇿🇼",code:"ZW"}],he=function(e){var o=e.placeholder,t=i.useState(me),n=t[0],a=t[1],r=i.useState(null!=o?o:me[0].name),d=r[0],l=r[1],c=i.useState(!0),s=c[0],u=c[1],m=i.useState(!1),h=m[0],g=m[1],p=i.useState(!1);return{hide:s,setHide:u,newOptions:n,setNewOptions:a,isHovered:p[0],setIsHovered:p[1],isFocused:h,setIsFocused:g,value:d,setValue:l}},ge={h1:{fontSize:96,lineHeight:112,letterSpacing:-1.5},h2:{fontSize:60,lineHeight:71,letterSpacing:-.5},h3:{fontSize:48,lineHeight:57,letterSpacing:0},h4:{fontSize:34,lineHeight:40,letterSpacing:.25},h5:{fontSize:24,lineHeight:28,letterSpacing:0},h6:{fontSize:20,lineHeight:24,letterSpacing:.15}},pe=["children","heading","maxLines","isItalic","isUnderlined","isSub","isSup","isStriked","isTruncated","weight","size"],ve=function(e){var o=e.children,t=e.isSub,n=e.isSup;return i.createElement(i.Fragment,null,"string"==typeof o?i.createElement(i.Fragment,null,t&&i.createElement("sup",null,o),n&&i.createElement("sup",null,o),!t&&!n&&i.createElement(i.Fragment,null,o)):o)},fe=function(e){var t=e.text,n=e.maxLines,a=void 0===n?1:n,r=o.useRef(null),d=o.useState(t.length),l=d[0],c=d[1];o.useEffect((function(){var e=r.current;e&&function(){for(var o,i=getComputedStyle(e).lineHeight,n=("normal"!==i?parseFloat(i):20)*a,r=0,d=t.length;r<=d;)o=Math.floor((r+d)/2),e.innerText=t.substring(0,o)+"...",e.offsetHeight>n?d=o-1:r=o+1;c(d)}()}),[t,a]);var s=t.length>l?t.substring(0,l)+"...":t;return i.createElement("div",{ref:r},s)},be=function(e){var o=e.children,n=e.heading,a=e.maxLines,r=e.isItalic,d=void 0!==r&&r,l=e.isUnderlined,c=void 0!==l&&l,s=e.isSub,u=void 0!==s&&s,h=e.isSup,g=void 0!==h&&h,p=e.isStriked,v=void 0!==p&&p,f=e.isTruncated,b=void 0!==f&&f,j=e.weight,x=void 0===j?"normal":j,C=e.size,E=void 0===C?"md":C,S=m(e,pe);return i.createElement(t.Element,Object.assign({role:"text",fontSize:t.Typography.fontSizes[E],lineHeight:t.Typography.lineHeights[E],fontStyle:d?"italic":"normal",fontWeight:t.Typography.fontWeights[x],textDecoration:v?"line-through":c?"underline":"none"},u||g?{display:"inline"}:{},n?ge[n]:{},S),b&&a&&"string"==typeof o?i.createElement(fe,{text:o,maxLines:a}):i.createElement(ve,Object.assign({isSub:u,isSup:g},S),o))},je=function(e){return i.createElement(be,Object.assign({},e))},xe=["children","styles"],Ce=function(e){var o=e.children,t=e.styles,n=void 0===t?{helperText:{}}:t,a=m(e,xe);return i.createElement(je,Object.assign({size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.text.dark"},n.helperText,a),o)},Ee=["children","wrap","justify","isReversed"],Se=function(e){var o=e.children,n=e.wrap,a=void 0===n?"nowrap":n,r=e.justify,d=void 0===r?"flex-start":r,l=e.isReversed,c=void 0!==l&&l,s=m(e,Ee);return i.createElement(t.View,Object.assign({display:"flex",flexWrap:a,flexDirection:c?"column-reverse":"column",justifyContent:d},s),o)},ye=function(e){return i.createElement(Se,Object.assign({},e))},we=["children","helperText","error","styles"],_e=function(e){var o=e.children,t=e.helperText,n=e.error,a=void 0!==n&&n,r=e.styles,d=m(e,we);return i.createElement(ye,Object.assign({gap:5,position:"relative"},d),o,!a&&t&&i.createElement(Ce,Object.assign({},r),t),a&&i.createElement(je,{size:"xs",marginVertical:0,marginHorizontal:0,color:"theme.error"},a))},ke={default:{borderRadius:0},sharp:{borderRadius:0},rounded:{borderRadius:4},pillShaped:{borderRadius:24}},ze={xs:6,sm:8,md:10,lg:12,xl:14},Oe={outline:{borderWidth:1},default:{borderWidth:0,borderBottomWidth:1},none:{border:"none",backgroundColor:"transparent"}},Te={paddingTop:14,paddingBottom:0,paddingLeft:16,paddingRight:36},Ie={paddingTop:10,paddingBottom:4,paddingLeft:16,paddingRight:36},He=["label","shadow","children","value","size","shape","variant","error","isWithLabel","isFocused","isHovered","isDisabled","isReadOnly","colorScheme","styles"],Re=function(e){var o=e.shadow,n=e.children,a=e.size,r=void 0===a?"md":a,d=e.shape,l=void 0===d?"default":d,c=e.variant,s=void 0===c?"default":c,u=e.error,h=void 0!==u&&u,g=e.isWithLabel,p=void 0!==g&&g,f=e.isFocused,b=void 0!==f&&f,j=e.isHovered,x=void 0!==j&&j,C=e.isDisabled,E=void 0!==C&&C,S=e.isReadOnly,y=void 0!==S&&S,w=e.colorScheme,_=void 0===w?"theme.primary":w,k=e.styles,z=void 0===k?{pickerBox:{}}:k,O=m(e,He);return i.createElement(v,Object.assign({gap:10,width:"100%",display:"flex",wrap:"nowrap",borderStyle:"solid",alignItems:"center",borderColor:h?"error":!x&&!b||E?"midgray":_,backgroundColor:"color.white",transition:"padding 0.2s ease",justifyContent:"space-between",marginBottom:5,fontSize:t.Typography.fontSizes[r],cursor:E?"not-allowed":y?"auto":"pointer"},p?Te:Ie,o,ke[l],Oe[s],z.box,O),n)},Le=["children"],Me=function(e){var o=e.children,t=m(e,Le);return i.createElement(j,Object.assign({gap:10,right:16,zIndex:500,wrap:"nowrap",position:"absolute"},t),o)},Fe=["children","size","error","color","styles"],Ve=function(e){var o=e.children,t=e.size,n=void 0===t?"md":t,a=e.error,r=void 0!==a&&a,d=e.color,l=void 0===d?"theme.primary":d,c=e.styles,s=void 0===c?{label:{}}:c,u=m(e,Fe);return i.createElement(de,Object.assign({top:6,zIndex:1e3,lineHeight:ze[n],letterSpacing:.25,whiteSpace:"noWrap",position:"absolute",color:r?"error":l,fontSize:ze[n]},s.label,u),o)},Ge=["children"],De=function(e){var o=e.children,t=m(e,Ge);return i.createElement(ye,Object.assign({width:"100%"},t),o)},Be={xs:8,sm:10,md:12,lg:14,xl:16},Ae=["id","name","label","value","placeholder","helperText","hide","error","isHovered","isFocused","isAutoFocus","isDisabled","isReadOnly","shadow","newOptions","size","variant","shape","colorScheme","onChange","onBlur","setHide","setNewOptions","setIsHovered","setIsFocused","setValue","styles"],Pe=function(e){return i.createElement(t.Element,Object.assign({as:"ul"},e))},We=function(e){return i.createElement(t.Input,Object.assign({type:"country"},e))},Ne=function(e){return i.createElement(t.Element,Object.assign({as:"li"},e))},Ke=function(e){var n=e.option,a=e.size,r=void 0===a?"md":a,d=e.callback,l=void 0===d?function(){}:d,c=e.styles,s=void 0===c?{text:{}}:c,u=o.useState(!1),m=u[0],h=u[1],g=function(){return h(!m)};return i.createElement(Ne,Object.assign({margin:0,role:"DropDownItem",listStyleType:"none",paddingVertical:6,paddingHorizontal:12,onMouseEnter:g,onMouseLeave:g,onClick:function(e){e&&e.stopPropagation&&e.stopPropagation(),l(n)},fontSize:t.Typography.fontSizes[r],backgroundColor:m?"trueGray.100":"transparent"},s.text),n)},Ue=function(e){var o=e.size,t=e.styles,n=void 0===t?{dropDown:{}}:t,a=e.options,r=e.callback,d=void 0===r?function(){}:r,l=function(e){return d(e)};return i.createElement(Pe,Object.assign({role:"dropDown",margin:0,padding:0,top:"100%",width:"100%",display:"flex",zIndex:1e3,overflow:"auto",maxHeight:"300px",borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"},n.dropDown),a.map((function(e){return i.createElement(Ke,Object.assign({key:e.code,size:o,option:e.name,callback:l},n.text))})))},Ze=function(e){var o=e.id,n=e.name,a=e.label,r=e.value,d=e.placeholder,l=e.helperText,c=e.hide,s=void 0!==c&&c,h=e.error,g=void 0!==h&&h,p=e.isHovered,v=void 0!==p&&p,f=e.isFocused,b=void 0!==f&&f,j=e.isAutoFocus,x=void 0!==j&&j,E=e.isDisabled,y=void 0!==E&&E,w=e.isReadOnly,_=void 0!==w&&w,k=e.shadow,z=void 0===k?{}:k,O=e.newOptions,T=void 0===O?[]:O,I=e.size,H=void 0===I?"md":I,R=e.variant,L=void 0===R?"default":R,M=e.shape,F=void 0===M?"default":M,V=e.colorScheme,G=void 0===V?"theme.primary":V,D=e.onChange,B=e.onBlur,A=void 0===B?function(){}:B,P=e.setHide,W=void 0===P?function(){}:P,N=e.setNewOptions,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,q=e.setIsFocused,J=void 0===q?function(){}:q,Y=e.setValue,Q=void 0===Y?function(){}:Y,X=e.styles,$=void 0===X?{text:{},icon:{},label:{},dropDown:{},helperText:{},box:{}}:X,ee=m(e,Ae),oe=(0,t.useTheme().getColor)("color.blueGray.700"),ie=function(){return Z(!v)},te=!(!b||!a),ne=u({margin:0,paddingVerical:8,paddingHorizonatl:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[H],backgroundColor:"transparent",color:y?"color.trueGray.600":"color.blueGray.700",cursor:y?"not-allowed":"auto"},$.field);return i.createElement(_e,{helperText:l,error:g,styles:$,onClick:function(){y||_||W(!s)}},i.createElement(Re,{label:a,size:H,error:g,shape:F,styles:$,shadow:z,variant:L,value:r,color:G,isHovered:v,isDisabled:y,isReadOnly:_,isFocused:b,isWithLabel:te,colorScheme:G,onMouseEnter:ie,onMouseLeave:ie},i.createElement(De,null,te&&i.createElement(Ve,Object.assign({htmlFor:o,color:G,error:g},$),a),i.createElement(We,Object.assign({id:o,name:n,placeholder:d,readOnly:_,disabled:y,autoFocus:x,onBlur:function(e){A(e),J(!1)},onFocus:function(){return J(!0)}},ne,ee,{value:r,onChange:function(e){var o=e.target.value,i=me.filter((function(e){return e.name.toLowerCase().startsWith(o.toLowerCase())}));s&&W(!1),K(i),D&&D(o)}}))),i.createElement(Me,null,i.createElement(s?C:S,{size:Be[H],color:oe,style:$.icon}))),!s&&i.createElement(Ue,{size:H,styles:$,options:T,callback:function(e){W(!s),Q(e),D&&D(e)}}))},qe=function(){var e=i.useState(!1),o=e[0],t=e[1],n=i.useState(!1),r=n[0],d=n[1],l=i.useState(a(new Date,"yyyy-MM-dd"));return{date:l[0],setDate:l[1],isHovered:o,setIsHovered:t,isFocused:r,setIsFocused:d}},Je=["id","icon","name","label","date","children","helperText","shadow","size","variant","shape","colorScheme","styles","error","isHovered","isFocused","isDisabled","isReadOnly","setDate","setIsFocused","setIsHovered","onChange","onChangeText"],Ye=function(e){return i.createElement(t.Input,Object.assign({type:"date"},e))},Qe=function(e){var o=e.id,n=e.name,a=e.label,r=e.date,d=e.helperText,l=e.shadow,c=void 0===l?{}:l,s=e.size,h=void 0===s?"md":s,g=e.variant,p=void 0===g?"default":g,v=e.shape,f=void 0===v?"default":v,b=e.colorScheme,j=void 0===b?"theme.primary":b,x=e.styles,C=void 0===x?{box:{},label:{},helperText:{},text:{},field:{}}:x,E=e.error,S=void 0!==E&&E,y=e.isHovered,w=void 0!==y&&y,_=e.isFocused,k=void 0!==_&&_,z=e.isDisabled,O=void 0!==z&&z,T=e.isReadOnly,I=void 0!==T&&T,H=e.setDate,R=void 0===H?function(){}:H,L=e.setIsFocused,M=void 0===L?function(){}:L,F=e.setIsHovered,V=void 0===F?function(){}:F,G=e.onChange,D=e.onChangeText,B=m(e,Je),A=!(!k||!a),P=function(){return V(!w)},W=function(e){"string"==typeof e?(R(e),D&&D(e)):(R(e.target.value),G&&G(e))},N=u({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none",backgroundColor:"transparent"}},fontSize:t.Typography.fontSizes[h],backgroundColor:"transparent",color:O?"color.trueGray.600":"color.blueGray.700",cursor:O?"not-allowed":I?"auto":"pointer"},C.field);return i.createElement(_e,{helperText:d,error:S,styles:C},i.createElement(Re,{label:a,size:h,error:S,shape:f,styles:C,shadow:c,variant:p,value:r,color:j,isHovered:w,isDisabled:O,isReadOnly:I,isFocused:k,isWithLabel:A,colorScheme:j,onMouseEnter:P,onMouseLeave:P},i.createElement(De,null,A&&i.createElement(Ve,Object.assign({htmlFor:o,color:j,error:S},C),a),i.createElement(Ye,Object.assign({id:o,name:n,value:r,onFocus:function(){return M(!0)},onChange:W,disabled:O,readOnly:I},N,D&&{onChangeText:W},B)))))},Xe=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),r=a[0],d=a[1],l=o.useState(!1),c=l[0],s=l[1],u=o.useState(!1),m=u[0],h=u[1],g=o.useState(n),p=g[0],v=g[1];return o.useMemo((function(){d(c&&!p?null!=t?t:"":null!=i?i:t)}),[p,c,i,t]),{hint:r,setHint:d,isFocused:c,setIsFocused:s,isHovered:m,setIsHovered:h,setValue:v,value:p}},$e=function(e){var i=Xe(e),t=o.useState(!1);return u({isVisible:t[0],setIsVisible:t[1]},e,i)},eo=["id","name","label","hint","value","onChange","leftChild","rightChild","helperText","placeholder","onChangeText","shadow","styles","size","shape","variant","colorScheme","error","isFocused","isHovered","isDisabled","isReadOnly","isClearable","isAutoFocus","setHint","setIsFocused","setIsHovered","setValue","onClick","onFocus","onBlur"],oo=function(e){return i.createElement(t.Input,Object.assign({type:"text"},e))},io=function(e){var o=e.id,n=e.name,a=e.label,r=e.hint,d=e.value,l=e.onChange,c=e.leftChild,s=e.rightChild,h=e.helperText,g=e.onChangeText,p=e.shadow,v=void 0===p?{}:p,f=e.styles,b=void 0===f?{box:{},field:{},label:{},helperText:{},text:{}}:f,j=e.size,x=void 0===j?"md":j,C=e.shape,E=void 0===C?"default":C,S=e.variant,y=void 0===S?"default":S,w=e.colorScheme,_=void 0===w?"theme.primary":w,z=e.error,O=void 0!==z&&z,T=e.isFocused,I=void 0!==T&&T,H=e.isHovered,R=void 0!==H&&H,L=e.isDisabled,M=void 0!==L&&L,F=e.isReadOnly,V=void 0!==F&&F,G=e.isClearable,D=void 0===G||G,B=e.isAutoFocus,A=void 0!==B&&B,P=e.setIsFocused,W=void 0===P?function(){}:P,N=e.setIsHovered,K=void 0===N?function(){}:N,U=e.setValue,Z=void 0===U?function(){}:U,q=e.onFocus,J=e.onBlur,Y=void 0===J?function(){}:J,Q=m(e,eo),X=(0,t.useTheme().getColor)("color.blueGray.700"),$=!(!I||!a),ee=u({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[x],lineHeight:t.Typography.fontSizes[x],backgroundColor:"transparent",color:M?"color.trueGray.600":"color.blueGray.700",cursor:M?"not-allowed":"auto"},b.field),oe=function(){return K(!R)};return i.createElement(_e,{helperText:h,error:O,styles:b},i.createElement(Re,{label:a,size:x,error:O,shape:E,styles:b,shadow:v,variant:y,value:d,color:_,isHovered:R,isDisabled:M,isReadOnly:V,isFocused:I,isWithLabel:$,colorScheme:_,onMouseEnter:oe,onMouseLeave:oe},c,i.createElement(De,null,$&&i.createElement(Ve,Object.assign({htmlFor:o,color:_,error:O},b),a),i.createElement(oo,Object.assign({id:o,name:n,readOnly:V,disabled:M,autoFocus:A,placeholder:r,onFocus:function(){W(!0),q&&q()},onBlur:function(e){Y&&Y(e),W(!1)},autoComplete:"off"},ee,Q,{onChange:function(e){"string"==typeof e?(Z(e),g&&g(e),l&&l(e)):(Z(e.target.value),g&&g(e.target.value),l&&l(e.target.value))},value:d}))),(s||D&&d)&&i.createElement(Me,null,D&&d&&!V&&!M&&i.createElement(k,{size:t.Typography.fontSizes[x],color:X,onClick:function(){Z(""),l&&(Y({target:{name:n}}),g&&g(""),l&&l("")),"undefined"==typeof document&&g&&g("")}}),s&&i.createElement(i.Fragment,null,s))))},to=["visibleIcon","hiddenIcon"],no=["isVisible","setIsVisible"],ao=function(e){var o=e.placeholder?e.isMulti?[]:"":e.options[0],t=i.useState(!0),n=t[0],a=t[1],r=i.useState(!1),d=r[0],l=r[1],c=i.useState(!1),s=c[0],u=c[1],m=i.useState(o);return{value:m[0],setValue:m[1],hide:n,setHide:a,isHovered:d,setIsHovered:l,isFocused:s,setIsFocused:u}},ro={xs:8,sm:10,md:12,lg:14,xl:16},lo=["isHovered","setIsHovered","option","size","callback"],co=["id","name","value","onChange","isMulti","isDisabled","isReadOnly","options"],so=["option","size","removeOption"],uo=["id","name","label","value","placeholder","helperText","hide","error","isMulti","isFocused","isHovered","isDisabled","isReadOnly","options","shadow","size","colorScheme","shape","variant","styles","onChange","setHide","setValue","setIsHovered","setIsFocused"],mo=function(e){var o=e.isHovered,n=e.setIsHovered,a=e.option,r=e.size,d=void 0===r?"md":r,l=e.callback,c=void 0===l?function(){}:l,s=m(e,lo),u=function(){return n(!o)};return i.createElement(t.Element,Object.assign({as:"li",margin:0,paddingVertical:8,paddingHorizontal:12,listStyleType:"none",onMouseEnter:u,onMouseLeave:u,fontSize:t.Typography.fontSizes[d],onClick:function(){return function(e){return c(e)}(a)},backgroundColor:o?"trueGray.100":"transparent"},s),a)},ho=function(e){var o=e.size,n=e.styles,a=void 0===n?{field:{},text:{}}:n,r=e.value,d=e.isDisabled,l=e.placeholder,c=e.removeOption,s=void 0===c?function(){}:c,m=u({margin:0,width:"95%",heigth:"100%",border:"none",paddingVertical:8,paddingHorizontal:0,fontSize:t.Typography.fontSizes[void 0===o?"md":o],backgroundColor:"transparent",color:d?"color.trueGray.600":"color.blueGray.700",cursor:d?"not-allowed":"auto"},a.field,a.text);return i.createElement(je,Object.assign({},m),(""===r||r&&0===r.length)&&l?l:i.createElement(i.Fragment,null,"string"==typeof r?r:r&&r.length>0&&i.createElement(v,{gap:6},r.map((function(e){return i.createElement(vo,{key:e,option:e,removeOption:s})})))))},go=function(e){var o=e.id,n=e.name,a=e.value,r=e.onChange,d=e.isMulti,l=void 0!==d&&d,c=e.isDisabled,s=void 0!==c&&c,u=e.isReadOnly,h=void 0!==u&&u,g=e.options,p=void 0===g?[]:g,v=m(e,co);return i.createElement(t.Element,Object.assign({id:o,name:n,as:"select",opacity:0,width:0,height:0,position:"absolute",value:a,disabled:s,readOnly:h,onChange:function(e){r&&r(e)},multiple:l},v),p.map((function(e){return i.createElement("option",{key:e,value:e},e)})))},po=function(e){var o,n=e.size,a=e.styles,r=void 0===a?{dropDown:{}}:a,d=e.options,l=e.callback,c=void 0===l?function(){}:l,s={isHovered:(o=i.useState(!1))[0],setIsHovered:o[1]},u=function(e){return c(e)},m=void 0!==typeof document?{boxShadow:"rgba(0, 0, 0, 0.07) 0px 1px 1px, rgba(0, 0, 0, 0.07) 0px 2px 2px, rgba(0, 0, 0, 0.07) 0px 4px 4px, rgba(0, 0, 0, 0.07) 0px 8px 8px, rgba(0, 0, 0, 0.07) 0px 16px 16px"}:{elevation:2,shadowColor:"rgba(0, 0, 0, 0.07)",shadowOffset:{width:0,height:1},shadowOpacity:1,shadowRadius:1};return i.createElement(t.Element,Object.assign({as:"ul",role:"dropdown",top:"100%",width:"100%",display:"flex",zIndex:1e3,overflowY:"auto",marginTop:5,marginLeft:0,marginRight:0,marginBottom:0,padding:0,borderRadius:4,position:"absolute",flexDirection:"column",backgroundColor:"white",justifyContent:"space-evenly"},m,r.dropDown),d.map((function(e){return i.createElement(mo,Object.assign({key:e,size:n,option:e,callback:u},s,r.text))})))},vo=function(e){var o=e.option,n=e.size,a=void 0===n?"md":n,r=e.removeOption,d=void 0===r?function(){}:r,l=m(e,so);return i.createElement(v,Object.assign({gap:10,padding:6,borderRadius:4,alignItems:"center",fontSize:t.Typography.fontSizes[a],backgroundColor:"color.trueGray.300",onClick:function(e){return e.stopPropagation()}},l),i.createElement(je,{size:a},o),i.createElement(k,{role:"close-button",color:"inherit",size:ro[a],onClick:function(){return d(o)}}))},fo=function(e){var t=e.id,n=e.name,a=e.label,r=e.value,d=e.placeholder,l=e.helperText,c=e.hide,s=void 0!==c&&c,u=e.error,h=void 0!==u&&u,g=e.isMulti,p=void 0!==g&&g,v=e.isFocused,f=void 0!==v&&v,b=e.isHovered,j=void 0!==b&&b,x=e.isDisabled,E=void 0!==x&&x,y=e.isReadOnly,w=void 0!==y&&y,_=e.options,k=void 0===_?[]:_,z=e.shadow,O=void 0===z?{}:z,T=e.size,I=void 0===T?"md":T,H=e.colorScheme,R=void 0===H?"theme.primary":H,L=e.shape,M=void 0===L?"default":L,F=e.variant,V=void 0===F?"default":F,G=e.styles,D=void 0===G?{text:{},icon:{},dropDown:{},selectBox:{},label:{},helperText:{}}:G,B=e.onChange,A=void 0===B?function(){}:B,P=e.setHide,W=void 0===P?function(){}:P,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsHovered,Z=void 0===U?function(){}:U,q=e.setIsFocused,J=void 0===q?function(){}:q,Y=m(e,uo),Q=!(!f||!a),X=function(){return Z(!j)},$=o.useCallback((function(e){W(!s),p&&Array.isArray(r)?!r.includes(e)&&K([].concat(r,[e])):K(e),A&&A(e)}),[s,p,r]);return i.createElement(_e,{role:"SelectBox",helperText:l,error:h,styles:D,onClick:E||w?function(){}:function(e){e&&e.stopPropagation&&e.stopPropagation(),W(!s),J(!f)}},i.createElement(Re,{label:a,size:I,error:h,shape:M,styles:D,shadow:O,variant:V,value:r,color:R,isHovered:j,isDisabled:E,isReadOnly:w,isFocused:f,isWithLabel:Q,colorScheme:R,onMouseEnter:X,onMouseLeave:X},i.createElement(De,null,Q&&i.createElement(Ve,Object.assign({htmlFor:t,color:R,error:h},D),a),i.createElement(go,Object.assign({id:t,name:n,options:k,onChange:A,value:r,isDisabled:E,isReadOnly:w,isMulti:p,onFocus:function(){return J(!0)}},Y)),i.createElement(ho,{size:I,styles:D,value:r,isDisabled:E,placeholder:d,removeOption:function(e){if(Array.isArray(r)&&r.includes(e)){var o=r.filter((function(o){return o!==e}));K(0===o.length?[]:o)}}})),i.createElement(Me,null,!w&&!E&&i.createElement(i.Fragment,null,i.createElement(s?C:S,{color:"inherit",size:ro[I],style:D.icon})))),!s&&i.createElement(po,{size:I,styles:D,options:k,callback:$}))},bo=function(e){var o=e.isDisabled,t=e.isChecked,n=i.useState(!1),a=n[0],r=n[1],d=i.useState(o?!o:t);return{isHovered:a,setIsHovered:r,on:d[0],setOn:d[1]}},jo={xs:{height:6,width:6},sm:{height:9,width:9},md:{height:12,width:12},lg:{height:15,width:15},xl:{height:18,width:18},"2xl":{height:21,width:21},"3xl":{height:24,width:24},"4xl":{height:27,width:27},"5xl":{height:30,width:30},"6xl":{height:33,width:33}},xo={xs:{height:16,width:28},sm:{height:20,width:36},md:{height:24,width:44},lg:{height:28,width:52},xl:{height:32,width:60},"2xl":{height:36,width:68},"3xl":{height:40,width:76},"4xl":{height:44,width:84},"5xl":{height:48,width:92},"6xl":{height:52,width:100}},Co={xs:{paddingVertical:0,paddingHorizontal:2},sm:{paddingVertical:0,paddingHorizontal:3},md:{paddingVertical:0,paddingHorizontal:5},lg:{paddingVertical:0,paddingHorizontal:6},xl:{paddingVertical:0,paddingHorizontal:8},"2xl":{paddingVertical:0,paddingHorizontal:9},"3xl":{paddingVertical:0,paddingHorizontal:10},"4xl":{paddingVertical:0,paddingHorizontal:13},"5xl":{paddingVertical:0,paddingHorizontal:15},"6xl":{paddingVertical:0,paddingHorizontal:16}},Eo=["id","name","label","inActiveChild","activeChild","labelPosition","shadow","size","colorScheme","value","isHovered","isDisabled","isReadOnly","onChange","setValue","setIsHovered","styles"],So=function(e){return i.createElement(t.Input,Object.assign({type:"checkbox"},e))},yo=function(e){var o=e.id,t=e.name,n=e.label,a=e.inActiveChild,r=e.activeChild,d=e.labelPosition,l=void 0===d?"right":d,c=e.shadow,s=void 0===c?{}:c,g=e.size,p=void 0===g?"sm":g,v=e.colorScheme,f=void 0===v?"theme.primary":v,b=e.value,j=void 0!==b&&b,x=e.isHovered,C=void 0!==x&&x,E=e.isDisabled,S=void 0!==E&&E,y=e.isReadOnly,w=void 0!==y&&y,_=e.onChange,k=e.setValue,z=void 0===k?function(){}:k,O=e.setIsHovered,T=void 0===O?function(){}:O,I=e.styles,H=void 0===I?{slider:{},circle:{},label:{}}:I,R=m(e,Eo),L=function(){return T(!C)},M={container:u({gap:10,display:"flex",height:"fit-content",width:"fit-content",cursor:S?"not-allowed":w?"default":"pointer"},H.label)};return i.createElement(de,Object.assign({htmlFor:o,onMouseEnter:L,onMouseLeave:L},M.container,R),i.createElement(So,Object.assign({id:o,name:t,opacity:0,width:0,height:0,checked:j,onChange:function(e){w||(z(!j),_&&_(e.target.checked))},disabled:S,readOnly:w},R)),"left"===l&&n&&i.createElement(h,null,n),i.createElement(h,Object.assign({display:"flex",cursor:"pointer",alignItems:"center",borderRadius:24,marginBottom:5,filter:C&&j?"brightness(0.9)":"brightness(1)",transition:"justify-content 0.3s cubic-bezier(0.4, 0, 0.2, 1)",backgroundColor:S?"disabled":j?f:"lightgray",justifyContent:r?"space-between":j?"flex-end":"flex-start"},s,Co[p],xo[p],H.slider),r&&j&&i.createElement(h,null,r),i.createElement(h,Object.assign({borderRadius:"50%",backgroundColor:"white"},jo[p],H.circle)),a&&!j&&i.createElement(h,null,a)),"right"===l&&n&&i.createElement(h,null,n))},wo=function(e){var i=e.label,t=e.placeholder,n=e.value,a=o.useState(null!=i?i:t),r=a[0],d=a[1],l=o.useState(!1),c=l[0],s=l[1],u=o.useState(n||""),m=u[0],h=u[1],g=o.useState(!1),p=g[0],v=g[1];return o.useMemo((function(){d(p&&!m?null!=t?t:"":null!=i?i:t)}),[m,p,i,t]),{hint:r,setHint:d,isHovered:c,setIsHovered:s,value:m,setValue:h,isFocused:p,setIsFocused:v}},_o=["id","name","hint","error","value","label","shadow","helperText","placeholder","size","shape","variant","colorScheme","isHovered","isFocused","isEditable","isReadOnly","isDisabled","isAutoFocus","isMultiline","maxRows","maxCols","onBlur","onChange","onFocus","onChangeText","setHint","setValue","setIsFocused","setIsHovered","styles"],ko=function(e){var o=e.id,n=e.name,a=e.hint,r=e.error,d=e.value,l=e.label,c=e.shadow,s=e.helperText,h=e.size,g=void 0===h?"sm":h,p=e.shape,v=void 0===p?"default":p,f=e.variant,b=void 0===f?"default":f,j=e.colorScheme,x=void 0===j?"theme.primary":j,C=e.isHovered,E=void 0!==C&&C,S=e.isFocused,y=void 0!==S&&S,w=e.isEditable,_=void 0!==w&&w,k=e.isReadOnly,z=void 0!==k&&k,O=e.isDisabled,T=void 0!==O&&O,I=e.isAutoFocus,H=void 0!==I&&I,R=e.isMultiline,L=void 0!==R&&R,M=e.maxRows,F=void 0===M?3:M,V=e.maxCols,G=void 0===V?30:V,D=e.onBlur,B=void 0===D?function(){}:D,A=e.onChange,P=e.onFocus,W=e.onChangeText,N=e.setValue,K=void 0===N?function(){}:N,U=e.setIsFocused,Z=void 0===U?function(){}:U,q=e.setIsHovered,J=void 0===q?function(){}:q,Y=e.styles,Q=void 0===Y?{box:{},text:{},label:{},helperText:{},field:{}}:Y,X=m(e,_o),$=!(!y||!l),ee=u({margin:0,paddingVertical:8,paddingHorizontal:0,width:"100%",heigth:"100%",border:"none",on:{focus:{outline:"none"}},fontSize:t.Typography.fontSizes[g],backgroundColor:"transparent",color:T?"color.trueGray.600":"color.blueGray.700",cursor:T?"not-allowed":"auto"},Q.field),oe=function(){return J(!E)},ie=function(e){"string"==typeof e?(K(e),W&&W(e)):(K(e.target.value),A&&A(e.target.value))};return i.createElement(_e,{helperText:s,error:r,styles:Q},i.createElement(Re,{label:l,size:g,error:r,shape:v,styles:Q,shadow:c,variant:b,value:d,color:x,isHovered:E,isDisabled:T,isReadOnly:z,isFocused:y,isWithLabel:$,colorScheme:x,onMouseEnter:oe,onMouseLeave:oe},i.createElement(De,null,$&&i.createElement(Ve,Object.assign({htmlFor:o,color:x,error:r},Q),l),i.createElement(t.Element,Object.assign({as:"textarea",id:o,name:n,rows:F,cols:G,value:d,readOnly:z,disabled:T,autoFocus:H,editable:_,placeholder:a,onBlur:function(e){B(e),Z(!1)},onFocus:function(){Z(!0),P&&P()},onChange:ie,multiline:L},ee,X,W&&{onChangeText:ie})))))},zo=o.createContext({active:!1,focusNextInput:function(){},setInputRef:function(){},handleSubmitEditing:function(){},getReturnKeyType:function(){return"next"}}),Oo=["name","type"],To=function(e){var i=e.name,t=e.type,n=m(e,Oo),a=o.useContext(zo),d=r.useFormikContext(),l=d.values,c=d.setFieldTouched,s=d.setFieldValue,h=d.touched[i]||d.submitCount>0?d.errors[i]:void 0,g=function(e){"Enter"===e.key&&(e.preventDefault(),a.focusNextInput(i))},p=["text","password","email","digits"].includes(t);return u({},function(e){switch(e){case"email":return{autoCorrect:"off",keyboardType:"email-address",autoCapitalize:"none"};case"password":return{autoCorrect:"off",secureTextEntry:!0,autoCapitalize:"none"};case"digits":return{keyboardType:"phone-pad"};case"name":return{autoCorrect:"off"};default:return{}}}(t),n,{value:l[i],error:h,onBlur:function(){c(i,!0)},onKeyPress:g},p?{onChangeText:function(e){s(i,e),null==n.onChangeText||n.onChangeText(e)}}:{onChange:function(e){s(i,e),null==n.onChange||n.onChange(e)}},a.active?{handleKeyPress:g}:{})},Io=["value"],Ho=["value"],Ro=["visibleIcon","hiddenIcon"],Lo=["isVisible","setIsVisible"],Mo=d.create((function(e){return{modal:!1,modalProps:{isVisible:!1},overlayProps:{},show:function(o,i,t){void 0===i&&(i={}),void 0===t&&(t={}),o&&(i.isVisible=!0),e((function(e){return u({},e,{modal:o,modalProps:i,overlayProps:t})}))},hide:function(){e((function(e){return u({},e,{modalProps:u({},e.modalProps,{isVisible:!1})})}))}}})),Fo=function(){Mo.getState().hide()},Vo={sharp:{borderRadius:0},rounded:{borderRadius:4}},Go={center:{justifyContent:"center",alignItems:"center"},top:{justifyContent:"center"},right:{justifyContent:"flex-end",alignItems:"center"},bottom:{justifyContent:"center",alignItems:"flex-end"},left:{alignItems:"center"}},Do={xs:12,sm:16,md:20,lg:24,xl:28},Bo=["children","blur","isOpen","isClosePrevented","onClose","position"],Ao=["children","shadow","isFullScreen","shape"],Po=["children","buttonColor","iconSize","buttonPosition"],Wo=["children"],No=["children"],Ko=function(e){var o=e.children,t=e.blur,n=e.isOpen,a=void 0!==n&&n,r=e.isClosePrevented,d=void 0!==r&&r,l=e.onClose,c=void 0===l?function(){}:l,s=e.position,u=void 0===s?"center":s,g=m(e,Bo),p=function(){d||c()};return i.createElement(j,{position:"fixed",top:0,left:0,width:"100%",height:"100%",zIndex:1e3,onClick:p,visibility:a?"visible":"hidden"},i.createElement(h,Object.assign({position:"absolute",top:0,left:0,zIndex:1e3,width:"100vw",height:"100vh",display:"flex",backgroundColor:"blackAlpha.500",backdropFilter:t?"blur("+t+"px)":void 0,onClick:p},Go[u],g),o))},Uo=function(e){return i.createElement(i.Fragment,null,e.children)};Uo.Overlay=Ko,Uo.Container=function(e){var o=e.children,t=e.shadow,n=e.isFullScreen,a=void 0!==n&&n,r=e.shape,d=void 0===r?"rounded":r,l=m(e,Ao),c=void 0!==typeof document?{boxShadow:"0px 2px 8px rgba(0, 0, 0, 0.3)"}:{elevation:5,shadowColor:"rgba(0, 0, 0, 0.3)",shadowOffset:{width:0,height:2},shadowOpacity:1,shadowRadius:8};return i.createElement(ye,Object.assign({cursor:"default",overflow:"hidden",backgroundColor:"white",width:a?"100%":600,height:a?"100%":"fit-content",onClick:function(e){e&&e.stopPropagation&&e.stopPropagation()}},t||c,Vo[d],l),o)},Uo.Header=function(e){var o=e.children,t=e.buttonColor,n=void 0===t?"theme.primary":t,a=e.iconSize,r=void 0===a?"md":a,d=e.buttonPosition,l=void 0===d?"right":d,c=m(e,Po),s=i.createElement(ie,{onClick:c.onClose?c.onClose:Fo,colorScheme:"transparent",icon:i.createElement(k,{size:Do[r],color:n}),padding:0,margin:0,filter:"none",isAuto:!0});return i.createElement(v,Object.assign({justifyContent:"none"===l?"center":"space-between",alignItems:"center",paddingVertical:15,paddingHorizontal:20},c),"left"===l&&s,o,"right"===l&&s)},Uo.Body=function(e){var o=e.children,t=m(e,Wo);return i.createElement(h,Object.assign({overflowY:"auto",paddingVertical:15,paddingHorizontal:20},{borderBottomWidth:2,borderTopWidth:2,borderColor:"rgba(250, 250, 250, 1)",borderStyle:"solid"},t),o)},Uo.Footer=function(e){var o=e.children,t=m(e,No);return i.createElement(v,Object.assign({marginTop:"auto",alignItems:"center",justifyContent:"flex-end",paddingVertical:15,paddingHorizontal:20},t),o)},Uo.Layout=function(e){var t=e.modals,n=Mo((function(e){return{modal:e.modal,modalProps:e.modalProps,overlayProps:e.overlayProps}}));if("boolean"==typeof n.modal)return null;var a=t[n.modal];return a?i.createElement(o.Fragment,null,i.createElement(Ko,Object.assign({isOpen:n.modalProps.isVisible,onClose:Fo,blur:10},n.overlayProps),void 0!==a&&i.createElement(a,Object.assign({},n.modalProps)))):(console.error(n.modal+" modal doesn't exist"),null)};var Zo=["src","color"],qo=["path"],Jo=function(e){var o=e.tabs,t=e.styles,n=e.isActive,a=e.setIsActive,r=e.tabsState,d=e.setTabsState;return i.createElement(c.Horizontal,Object.assign({width:"100w",height:"100%"},null==t?void 0:t.container),i.createElement(c.Horizontal,Object.assign({marginBottom:20},null==t?void 0:t.headerTabs),o.map((function(e,r){return i.createElement(c.Button,Object.assign({key:e.title,onClick:function(){!function(e){var i=[].concat(o),t=i.splice(e,1);i.unshift(t[0]),d(i),a(i[0])}(r)},variant:n.value===e.value?"filled":"ghost",shape:"pillShaped",cursor:"pointer",isAuto:!0},null==t?void 0:t.tab,n.value===e.value?null==t?void 0:t.activeTab:{}),i.createElement(c.Text,Object.assign({},null==t?void 0:t.title,n.value===e.value?null==t?void 0:t.activeText:{}),e.title))}))),i.createElement(l.View,Object.assign({width:"100%",height:"100%"},null==t?void 0:t.content),r.map((function(e,o){return function(e){return e.value===r[0].value}(e)&&i.createElement(l.View,{key:o},e.content)}))))},Yo=function(e){var t,n,a,r=e.tabs,d=e.styles,l={isActive:(n=o.useState((t=r)[0]))[0],setIsActive:n[1],tabsState:(a=o.useState(t))[0],setTabsState:a[1]};return i.createElement(Jo,{tabs:r,styles:d,isActive:l.isActive,tabsState:l.tabsState,setTabsState:l.setTabsState,setIsActive:l.setIsActive})},Qo=i.memo(Yo),Xo={default:{container:{backgroundColor:"white",border:"color.blackAlpha.800"},content:{color:"color.blackAlpha.800"}},info:{container:{backgroundColor:"color.blue.200",border:"color.blue.400"},content:{color:"#60a5fa"}},success:{container:{backgroundColor:"color.green.200",border:"color.green.400"},content:{color:"#22c55e"}},error:{container:{backgroundColor:"color.red.200",border:"color.red.400"},content:{color:"#ef4444"}},warning:{container:{backgroundColor:"color.orange.200",border:"color.orange.400"},content:{color:"#f97316"}}},$o=function(e){var o,t=e.icon,n=e.title,a=e.styles,r=e.description,d=e.variant,l=void 0===d?"default":d;return i.createElement(c.Horizontal,Object.assign({gap:15,borderRadius:10,borderWidth:1,borderStyle:"solid",padding:16,wrap:"nowrap",borderColor:Xo[l].container.border},null==a?void 0:a.container),i.createElement(c.View,{alignSelf:"center"},t||i.createElement(s.WarningSvg,{size:24,color:null!=(o=null==a?void 0:a.icon.color)?o:Xo[l].content.color})),i.createElement(c.Vertical,{gap:10},i.createElement(c.Text,Object.assign({fontSize:"16px",color:Xo[l].content.color},null==a?void 0:a.title),n),i.createElement(c.Text,Object.assign({fontSize:"14px",color:Xo[l].content.color},null==a?void 0:a.description),r)))},ei=["ratio","children"],oi=function(e){var o=e.ratio,t=void 0===o?16/9:o,n=e.children,a=m(e,ei);return i.createElement(c.Center,Object.assign({width:"100%",position:"relative",overflow:"hidden",paddingTop:1/t*100+"%",borderRadius:8},a),i.createElement(c.View,{position:"absolute",top:0,right:0,bottom:0,left:0},n))},ii=["ratio","children"],ti={xs:24,sm:32,md:48,lg:64,xl:80},ni=function(e){var o=e.src,n=e.size,a=void 0===n?"md":n,r=e.fallback,d=void 0===r?"IM":r,l=e.styles,s=e.imageError,m=e.setImageError,h=ti[a],g=u({objectFit:"cover"},(null==l?void 0:l.image)||{});return i.createElement(c.Center,Object.assign({role:"avatar",width:h,height:h,borderRadius:"50%",overflow:"hidden",borderWidth:"1px",borderStyle:"solid",borderColor:s?"black":"transparent",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.25)"},null==l?void 0:l.container),s?i.createElement(c.Text,Object.assign({size:a},null==l?void 0:l.fallback),d):i.createElement(t.Image,{alt:"IM",src:o,style:g,width:h,height:h,onError:function(){return m(!0)}}))},ai={xs:{minWidth:"20px",height:"20px",padding:"0 6px"},sm:{minWidth:"24px",height:"24px",padding:"0 8px"},md:{minWidth:"28px",height:"28px",padding:"0 10px"},lg:{minWidth:"32px",height:"32px",padding:"0 12px"},xl:{minWidth:"36px",height:"36px",padding:"0 14px"}},ri={sharp:0,rounded:4,pillShaped:24},di={"top-right":{top:0,right:0,position:"absolute"},"top-left":{top:0,left:0,position:"absolute"},"bottom-right":{bottom:0,right:0,position:"absolute"},"bottom-left":{bottom:0,left:0,position:"absolute"}},li=function(e){var o=e.content,t=e.position,n=e.shape,a=e.colorScheme,r=void 0===a?"theme.primary":a,d=e.variant,l=e.size,s=void 0===l?"md":l,m=e.styles,h=u({width:"fit-content",borderRadius:ri[void 0===n?"pillShaped":n]},ai[s],{filled:{backgroundColor:r,color:"color.white",borderWidth:1,borderStyle:"solid",borderColor:"transparent"},outline:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:r,color:r},link:{backgroundColor:"transparent",borderWidth:1,borderStyle:"solid",borderColor:"transparent",color:r,textDecoration:"underline"},ghost:{backgroundColor:"transparent",color:r,borderWidth:1,borderStyle:"solid",borderColor:"transparent"}}[void 0===d?"filled":d],t?di[t]:{},null==m?void 0:m.container);return i.createElement(c.Center,Object.assign({role:"badge"},h),i.createElement(c.Text,Object.assign({role:"badgeText",size:s},null==m?void 0:m.text),o))},ci={sharp:0,rounded:4,pillShaped:24},si=["children","shape","colorScheme","variant","isHovered","setIsHovered","isDisabled","isToggle","setIsToggled","onToggle"],ui=function(e){var o=e.children,t=e.shape,n=void 0===t?"rounded":t,a=e.colorScheme,r=void 0===a?"color.trueGray.400":a,d=e.variant,l=void 0===d?"ghost":d,s=e.isHovered,u=e.setIsHovered,h=e.isDisabled,g=e.isToggle,p=e.setIsToggled,v=e.onToggle,f=m(e,si),b=h?"theme.disabled":r,j=!(!g&&!s);return i.createElement(c.Center,Object.assign({role:"Toggle",padding:"pillShaped"===n?"10px 12px":"8px",width:"fit-content",color:j?"color.white":b,backgroundColor:j?b:"transparent",onMouseEnter:function(){return u(!0)},onMouseLeave:function(){return u(!1)},cursor:h?"not-allowed":"pointer",borderRadius:ci[n],onClick:function(){h||p((function(e){var o=!e;return v&&v(o),o}))}},{outline:{borderWidth:1,borderStyle:"solid",borderColor:r},link:{borderWidth:1,borderStyle:"solid",borderColor:j?b:"transparent",textDecoration:"underline"},ghost:{}}[l],f),o)},mi=["children","shape","colorScheme","variant","isDisabled","isToggled","onToggle"],hi=function(e){var t=e.items,n=e.onToggleChange,a=e.activeToggles,r=e.setActiveToggles,d=e.shape,l=void 0===d?"rounded":d,s=e.variant,u=void 0===s?"ghost":s,m=e.colorScheme,h=void 0===m?"color.trueGray.400":m,g=o.useCallback((function(e,o){r((function(i){var t;return t=o?i.includes(e)?i:[].concat(i,[e]):i.filter((function(o){return o!==e})),null==n||n(t),t}))}),[n,r]);return i.createElement(c.Horizontal,{role:"ToggleGroup",display:"flex",gap:5},t.map((function(e){return i.createElement(c.Toggle,{role:"toggle-"+e.id,key:e.id,colorScheme:h,shape:l,variant:u,isToggled:a.includes(e.id)||e.isActive,onToggle:function(o){return g(e.id,o)},isDisabled:e.isDisabled,isIntern:!0},e.value)})))};exports.Alert=function(e){return i.createElement($o,{icon:e.icon,title:e.title,styles:e.styles,description:e.description,variant:e.variant})},exports.AspectRatio=function(e){var o=e.ratio,t=e.children,n=m(e,ii);return i.createElement(oi,Object.assign({ratio:o},n),t)},exports.Avatar=function(e){var t,n=e.src,a=e.size,r=e.styles,d=e.fallback,l={imageError:(t=o.useState(!1))[0],setImageError:t[1]};return i.createElement(ni,{src:n,size:a,styles:r,fallback:d,imageError:l.imageError,setImageError:l.setImageError})},exports.Badge=function(e){return i.createElement(li,{content:e.content,shape:e.shape,colorScheme:e.colorScheme,position:e.position,variant:e.variant,size:e.size,styles:e.styles})},exports.Bottom=function(e){return i.createElement(t.View,Object.assign({marginTop:"auto"},e))},exports.Button=ie,exports.Center=j,exports.Checkbox=function(e){var o=te(e);return i.createElement(ue,Object.assign({},o,e))},exports.CountryPicker=function(e){var o=he(e);return i.createElement(Ze,Object.assign({},o,e))},exports.DatePicker=function(e){var o=qe();return i.createElement(Qe,Object.assign({},o,e))},exports.FileImage=function(e){var o=e.path,n=m(e,qo);return i.createElement(t.Image,Object.assign({src:o},n))},exports.FileSVG=function(e){var o=e.src,n=e.color,a=m(e,Zo),r=t.useTheme().getColor,d=n?{fill:r(n),stroke:r(n)}:{};return i.createElement(j,Object.assign({},a),i.createElement(t.Image,Object.assign({},d,{content:'url("'+o+'")',width:"100%",height:"100%"})))},exports.FormikCheckbox=function(e){var o=To(e),t=o.value,n=m(o,Io);n.isChecked=t;var a=te(e);return i.createElement(ue,Object.assign({},a,n))},exports.FormikCountryPicker=function(e){var o=To(e),t=he(e);return i.createElement(Ze,Object.assign({},t,o))},exports.FormikDatePicker=function(e){var o=To(e),t=qe();return i.createElement(Qe,Object.assign({},t,o))},exports.FormikForm=function(e){var n=e.children,a=e.autoFocus,d=void 0!==a&&a,l=e.initFocus,c=r.useFormikContext(),s=o.useRef({}),u=o.useRef([]),m=function(e){if(d){var o,i=u.current.indexOf(e)+1;i<u.current.length?null==(o=s.current[u.current[i]])||o.focus():c.onSubmit&&c.onSubmit(c.values)}},h={active:d,focusNextInput:m,setInputRef:function(e,o){s.current[e]=o,u.current.includes(e)||u.current.push(e)},handleSubmitEditing:m,getReturnKeyType:function(e){return u.current.indexOf(e)===u.current.length-1?"done":"next"}};return o.useEffect((function(){var e;if(d)if(l&&s.current[l])null==(e=s.current[l])||e.focus();else if(u.current[0]){var o;null==(o=s.current[u.current[0]])||o.focus()}}),[d,l]),i.createElement(zo.Provider,{value:h},i.createElement(t.Form,null,n))},exports.FormikPassword=function(e){var o=e.visibleIcon,n=void 0===o?i.createElement(M,{size:14}):o,a=e.hiddenIcon,r=void 0===a?i.createElement(O,{size:14}):a,d=m(e,Ro),l=To(d),c=$e(l),s=c.isVisible,u=c.setIsVisible,h=m(c,Lo);return i.createElement(io,Object.assign({},h,{type:s?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){d.isDisabled||u(!s)}},s?n:r)}))},exports.FormikSelect=function(e){var o=To(e);o.selected=o.value;var t=ao(e);return i.createElement(fo,Object.assign({},t,o))},exports.FormikSwitch=function(e){var o=To(e),t=bo(e);return i.createElement(yo,Object.assign({},t,o))},exports.FormikTextArea=function(e){var o=To(e),t=wo(e);return i.createElement(ko,Object.assign({},t,o))},exports.FormikTextField=function(e){var o=To(e),t=m(Xe(e),Ho);return i.createElement(io,Object.assign({},t,o))},exports.Horizontal=v,exports.Inline=function(e){return i.createElement(t.View,Object.assign({display:"inline-flex",wordBreak:"break-word"},e))},exports.Left=function(e){return i.createElement(t.View,Object.assign({marginRight:"auto"},e))},exports.Link=D,exports.Loader=$,exports.Modal=Uo,exports.Password=function(e){var o=e.visibleIcon,n=void 0===o?i.createElement(M,{size:14}):o,a=e.hiddenIcon,r=void 0===a?i.createElement(O,{size:14}):a,d=m(e,to),l=$e(d),c=l.isVisible,s=l.setIsVisible,u=m(l,no);return i.createElement(io,Object.assign({},u,{type:c?"text":"password",isClearable:!1,rightChild:i.createElement(t.View,{onClick:function(){d.isDisabled||s(!c)}},c?n:r)}))},exports.Right=function(e){return i.createElement(t.View,Object.assign({marginLeft:"auto"},e))},exports.Select=function(e){var o=ao(e);return i.createElement(fo,Object.assign({},o,e))},exports.Switch=function(e){var o=bo(e);return i.createElement(yo,Object.assign({},o,e))},exports.Tabs=Qo,exports.Text=je,exports.TextArea=function(e){var o=wo(e);return i.createElement(ko,Object.assign({},o,e))},exports.TextField=function(e){var o=Xe(e);return i.createElement(io,Object.assign({},o,e))},exports.Toggle=function(e){var t=e.children,n=e.shape,a=e.colorScheme,r=e.variant,d=e.isDisabled,l=e.isToggled,c=void 0!==l&&l,s=e.onToggle,u=m(e,mi),h=function(e){var i=o.useState(!1),t=i[0],n=i[1],a=o.useState(e);return{isHovered:t,setIsHovered:n,isToggle:a[0],setIsToggled:a[1]}}(c),g=h.isHovered,p=h.setIsHovered,v=h.isToggle,f=h.setIsToggled;return o.useEffect((function(){f(c)}),[c]),i.createElement(ui,Object.assign({shape:n,colorScheme:a,variant:r,isDisabled:d,isHovered:g,setIsHovered:p,isToggle:v,setIsToggled:f,onToggle:s},u),t)},exports.ToggleGroup=function(e){var t,n=e.items,a=e.shape,r=e.colorScheme,d=e.variant,l=e.onToggleChange,c={activeToggles:(t=o.useState([]))[0],setActiveToggles:t[1]};return i.createElement(hi,{items:n,shape:a,colorScheme:r,variant:d,activeToggles:c.activeToggles,setActiveToggles:c.setActiveToggles,onToggleChange:l})},exports.Top=function(e){return i.createElement(t.View,Object.assign({marginBottom:"auto"},e))},exports.Vertical=ye,exports.View=h,exports.hideModal=Fo,exports.showModal=function(e,o,i){void 0===o&&(o={}),void 0===i&&(i={}),Mo.getState().show(e,o,i)},exports.useModalStore=Mo;
2
2
  //# sourceMappingURL=web.cjs.production.min.js.map