@tsed/react-formio 3.0.0-alpha.8 → 3.0.0-rc.1

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 (447) hide show
  1. package/dist/all.d.ts +0 -0
  2. package/dist/all.js +38 -0
  3. package/dist/all.js.map +1 -0
  4. package/dist/atoms/icon/Icon.d.ts +4 -3
  5. package/dist/atoms/icon/Icon.js +9 -8
  6. package/dist/atoms/icon/Icon.js.map +1 -1
  7. package/dist/chunks/_commonjsHelpers.js +30 -3
  8. package/dist/chunks/_commonjsHelpers.js.map +1 -1
  9. package/dist/chunks/index.js +33 -30
  10. package/dist/chunks/index.js.map +1 -1
  11. package/dist/chunks/index.module.js +16 -16
  12. package/dist/chunks/index.module.js.map +1 -1
  13. package/dist/chunks/index2.js +56953 -0
  14. package/dist/chunks/index2.js.map +1 -0
  15. package/dist/chunks/react-select-animated.esm.js +3616 -0
  16. package/dist/chunks/react-select-animated.esm.js.map +1 -0
  17. package/dist/contexts/FormioContext.d.ts +19 -0
  18. package/dist/contexts/FormioContext.js +35 -0
  19. package/dist/contexts/FormioContext.js.map +1 -0
  20. package/dist/hooks/keyboard.constants.d.ts +38 -0
  21. package/dist/hooks/keyboard.constants.js +7 -0
  22. package/dist/hooks/keyboard.constants.js.map +1 -0
  23. package/dist/hooks/useFormioContext.d.ts +10 -0
  24. package/dist/hooks/useFormioContext.js +12 -0
  25. package/dist/hooks/useFormioContext.js.map +1 -0
  26. package/dist/hooks/useI18n.d.ts +4 -0
  27. package/dist/hooks/useI18n.js +9 -0
  28. package/dist/hooks/useI18n.js.map +1 -0
  29. package/dist/hooks/useKeyboardControls.d.ts +12 -0
  30. package/dist/hooks/useKeyboardControls.js +35 -0
  31. package/dist/hooks/useKeyboardControls.js.map +1 -0
  32. package/dist/hooks/useTooltip.js.map +1 -1
  33. package/dist/index.d.ts +1 -6
  34. package/dist/index.js +18 -13
  35. package/dist/index.js.map +1 -1
  36. package/dist/interfaces/ComponentType.d.ts +6 -2
  37. package/dist/interfaces/FormBuilderOptions.d.ts +7 -0
  38. package/dist/interfaces/FormBuilderOptions.js +2 -0
  39. package/dist/interfaces/FormBuilderOptions.js.map +1 -0
  40. package/dist/interfaces/FormOptions.d.ts +6 -13
  41. package/dist/interfaces/FormType.d.ts +4 -11
  42. package/dist/interfaces/Operation.d.ts +13 -4
  43. package/dist/interfaces/SubmissionType.d.ts +5 -10
  44. package/dist/interfaces/index.d.ts +1 -0
  45. package/dist/molecules/alert/Alert.js.map +1 -1
  46. package/dist/molecules/button/Button.d.ts +18 -5
  47. package/dist/molecules/button/Button.js +24 -28
  48. package/dist/molecules/button/Button.js.map +1 -1
  49. package/dist/molecules/card/Card.js +9 -7
  50. package/dist/molecules/card/Card.js.map +1 -1
  51. package/dist/molecules/forms/form-control/FormControl.d.ts +14 -12
  52. package/dist/molecules/forms/form-control/FormControl.js +46 -22
  53. package/dist/molecules/forms/form-control/FormControl.js.map +1 -1
  54. package/dist/molecules/forms/input-tags/InputTags.d.ts +2 -8
  55. package/dist/molecules/forms/input-tags/InputTags.interface.d.ts +7 -0
  56. package/dist/molecules/forms/input-tags/InputTags.interface.js +2 -0
  57. package/dist/molecules/forms/input-tags/InputTags.interface.js.map +1 -0
  58. package/dist/molecules/forms/input-tags/InputTags.js +21 -27
  59. package/dist/molecules/forms/input-tags/InputTags.js.map +1 -1
  60. package/dist/molecules/forms/input-tags/all.d.ts +2 -0
  61. package/dist/molecules/forms/input-tags/all.js +9 -0
  62. package/dist/molecules/forms/input-tags/all.js.map +1 -0
  63. package/dist/molecules/forms/input-tags/components/ChoicesTags.d.ts +307 -0
  64. package/dist/molecules/forms/input-tags/components/ChoicesTags.js +51 -0
  65. package/dist/molecules/forms/input-tags/components/ChoicesTags.js.map +1 -0
  66. package/dist/molecules/forms/input-tags/components/ReactTags.d.ts +2 -0
  67. package/dist/molecules/forms/input-tags/components/ReactTags.js +1926 -0
  68. package/dist/molecules/forms/input-tags/components/ReactTags.js.map +1 -0
  69. package/dist/molecules/forms/input-text/InputText.d.ts +2 -14
  70. package/dist/molecules/forms/input-text/InputText.interface.d.ts +4 -0
  71. package/dist/molecules/forms/input-text/InputText.interface.js +2 -0
  72. package/dist/molecules/forms/input-text/InputText.interface.js.map +1 -0
  73. package/dist/molecules/forms/input-text/InputText.js +46 -56
  74. package/dist/molecules/forms/input-text/InputText.js.map +1 -1
  75. package/dist/molecules/forms/select/Select.d.ts +1 -1
  76. package/dist/molecules/forms/select/{Select.interfaces.d.ts → Select.interface.d.ts} +8 -10
  77. package/dist/molecules/forms/select/Select.interface.js +2 -0
  78. package/dist/molecules/forms/select/Select.interface.js.map +1 -0
  79. package/dist/molecules/forms/select/Select.js +9 -10
  80. package/dist/molecules/forms/select/Select.js.map +1 -1
  81. package/dist/molecules/forms/select/all.d.ts +1 -1
  82. package/dist/molecules/forms/select/all.js +1 -0
  83. package/dist/molecules/forms/select/all.js.map +1 -1
  84. package/dist/molecules/forms/select/components/ChoicesSelect.d.ts +1 -1
  85. package/dist/molecules/forms/select/components/ChoicesSelect.js +72 -83
  86. package/dist/molecules/forms/select/components/ChoicesSelect.js.map +1 -1
  87. package/dist/molecules/forms/select/components/HtmlSelect.d.ts +1 -1
  88. package/dist/molecules/forms/select/components/HtmlSelect.js +17 -16
  89. package/dist/molecules/forms/select/components/HtmlSelect.js.map +1 -1
  90. package/dist/molecules/forms/select/components/ReactSelect.d.ts +1 -1
  91. package/dist/molecules/forms/select/components/ReactSelect.js +28 -3034
  92. package/dist/molecules/forms/select/components/ReactSelect.js.map +1 -1
  93. package/dist/molecules/forms/select/components/choices.template.js +2340 -2257
  94. package/dist/molecules/forms/select/components/choices.template.js.map +1 -1
  95. package/dist/molecules/forms/select/hooks/useOptions.d.ts +3 -3
  96. package/dist/molecules/forms/select/hooks/useOptions.js +15 -15
  97. package/dist/molecules/forms/select/hooks/useOptions.js.map +1 -1
  98. package/dist/molecules/loader/Loader.d.ts +4 -4
  99. package/dist/molecules/loader/Loader.js +16 -8
  100. package/dist/molecules/loader/Loader.js.map +1 -1
  101. package/dist/molecules/modal/Modal.js +23 -24
  102. package/dist/molecules/modal/Modal.js.map +1 -1
  103. package/dist/molecules/pagination/Pagination.d.ts +7 -6
  104. package/dist/molecules/pagination/Pagination.js +48 -57
  105. package/dist/molecules/pagination/Pagination.js.map +1 -1
  106. package/dist/molecules/pagination/PaginationButton.js +10 -10
  107. package/dist/molecules/pagination/PaginationButton.js.map +1 -1
  108. package/dist/molecules/pagination/all.js +5 -4
  109. package/dist/molecules/pagination/all.js.map +1 -1
  110. package/dist/molecules/pagination/utils/getPageNumbers.js.map +1 -0
  111. package/dist/molecules/table/Table.d.ts +16 -2
  112. package/dist/molecules/table/Table.js +53 -77
  113. package/dist/molecules/table/Table.js.map +1 -1
  114. package/dist/molecules/table/all.d.ts +0 -0
  115. package/dist/molecules/table/all.js +19 -0
  116. package/dist/molecules/table/all.js.map +1 -0
  117. package/dist/molecules/table/components/DefaultArrowSort.d.ts +5 -1
  118. package/dist/molecules/table/components/DefaultArrowSort.js +17 -5
  119. package/dist/molecules/table/components/DefaultArrowSort.js.map +1 -1
  120. package/dist/molecules/table/components/DefaultCell.d.ts +5 -1
  121. package/dist/molecules/table/components/DefaultCell.js +8 -6
  122. package/dist/molecules/table/components/DefaultCell.js.map +1 -1
  123. package/dist/molecules/table/components/DefaultCellFooter.d.ts +6 -0
  124. package/dist/molecules/table/components/DefaultCellFooter.js +12 -0
  125. package/dist/molecules/table/components/DefaultCellFooter.js.map +1 -0
  126. package/dist/molecules/table/components/DefaultCellHeader.d.ts +5 -8
  127. package/dist/molecules/table/components/DefaultCellHeader.js +25 -9
  128. package/dist/molecules/table/components/DefaultCellHeader.js.map +1 -1
  129. package/dist/molecules/table/components/DefaultCellOperations.d.ts +16 -10
  130. package/dist/molecules/table/components/DefaultCellOperations.js +23 -14
  131. package/dist/molecules/table/components/DefaultCellOperations.js.map +1 -1
  132. package/dist/molecules/table/components/DefaultFilter.d.ts +11 -0
  133. package/dist/molecules/table/components/DefaultFilter.js +15 -0
  134. package/dist/molecules/table/components/DefaultFilter.js.map +1 -0
  135. package/dist/molecules/table/components/DefaultOperationButton.d.ts +16 -12
  136. package/dist/molecules/table/components/DefaultOperationButton.js +16 -31
  137. package/dist/molecules/table/components/DefaultOperationButton.js.map +1 -1
  138. package/dist/molecules/table/filters/Filters.d.js +2 -0
  139. package/dist/molecules/table/filters/Filters.d.js.map +1 -0
  140. package/dist/molecules/table/filters/RangeFilter.d.ts +3 -0
  141. package/dist/molecules/table/filters/RangeFilter.js +41 -0
  142. package/dist/molecules/table/filters/RangeFilter.js.map +1 -0
  143. package/dist/molecules/table/filters/SelectFilter.d.ts +3 -0
  144. package/dist/molecules/table/filters/SelectFilter.js +33 -0
  145. package/dist/molecules/table/filters/SelectFilter.js.map +1 -0
  146. package/dist/molecules/table/filters/TextFieldFilter.d.ts +3 -0
  147. package/dist/molecules/table/filters/TextFieldFilter.js +27 -0
  148. package/dist/molecules/table/filters/TextFieldFilter.js.map +1 -0
  149. package/dist/molecules/table/hooks/useTable.d.ts +23 -0
  150. package/dist/molecules/table/hooks/useTable.js +35 -0
  151. package/dist/molecules/table/hooks/useTable.js.map +1 -0
  152. package/dist/molecules/table/hooks/useUniqValues.d.ts +5 -0
  153. package/dist/molecules/table/hooks/useUniqValues.js +11 -0
  154. package/dist/molecules/table/hooks/useUniqValues.js.map +1 -0
  155. package/dist/molecules/table/interfaces/extends.d.ts +14 -0
  156. package/dist/molecules/table/interfaces/extends.js +2 -0
  157. package/dist/molecules/table/interfaces/extends.js.map +1 -0
  158. package/dist/molecules/table/utils/mapFormToColumns.d.ts +2 -2
  159. package/dist/molecules/table/utils/mapFormToColumns.js +34 -18
  160. package/dist/molecules/table/utils/mapFormToColumns.js.map +1 -1
  161. package/dist/molecules/tabs/Tab.d.ts +13 -0
  162. package/dist/molecules/tabs/Tab.js +66 -0
  163. package/dist/molecules/tabs/Tab.js.map +1 -0
  164. package/dist/molecules/tabs/TabList.d.ts +2 -0
  165. package/dist/molecules/tabs/TabList.js +23 -0
  166. package/dist/molecules/tabs/TabList.js.map +1 -0
  167. package/dist/molecules/tabs/TabPanel.d.ts +9 -0
  168. package/dist/molecules/tabs/TabPanel.js +27 -0
  169. package/dist/molecules/tabs/TabPanel.js.map +1 -0
  170. package/dist/molecules/tabs/Tabs.d.ts +4 -16
  171. package/dist/molecules/tabs/Tabs.js +7 -67
  172. package/dist/molecules/tabs/Tabs.js.map +1 -1
  173. package/dist/molecules/tabs/TabsBody.d.ts +1 -0
  174. package/dist/molecules/tabs/TabsBody.js +10 -0
  175. package/dist/molecules/tabs/TabsBody.js.map +1 -0
  176. package/dist/molecules/tabs/TabsLegacy.d.ts +18 -0
  177. package/dist/molecules/tabs/TabsLegacy.js +49 -0
  178. package/dist/molecules/tabs/TabsLegacy.js.map +1 -0
  179. package/dist/molecules/tabs/all.d.ts +5 -0
  180. package/dist/molecules/tabs/all.js +13 -0
  181. package/dist/molecules/tabs/all.js.map +1 -0
  182. package/dist/molecules/tabs/context/TabControl.d.ts +52 -0
  183. package/dist/molecules/tabs/context/TabControl.js +85 -0
  184. package/dist/molecules/tabs/context/TabControl.js.map +1 -0
  185. package/dist/molecules/tabs/hooks/tabControl.d.ts +44 -0
  186. package/dist/molecules/tabs/hooks/tabControl.js +34 -0
  187. package/dist/molecules/tabs/hooks/tabControl.js.map +1 -0
  188. package/dist/organisms/form/Form.js.map +1 -1
  189. package/dist/organisms/form/access/FormAccess.js +41 -41
  190. package/dist/organisms/form/access/FormAccess.js.map +1 -1
  191. package/dist/organisms/form/access/FormAccess.schema.js +1 -0
  192. package/dist/organisms/form/access/FormAccess.schema.js.map +1 -1
  193. package/dist/organisms/form/access/FormAccess.utils.js +2 -2
  194. package/dist/organisms/form/access/FormAccess.utils.js.map +1 -1
  195. package/dist/organisms/form/actions/FormAction.js +34 -0
  196. package/dist/organisms/form/actions/FormAction.js.map +1 -0
  197. package/dist/organisms/form/builder/FormBuilder.js.map +1 -1
  198. package/dist/organisms/form/builder/FormEdit.d.ts +7 -3
  199. package/dist/organisms/form/builder/FormEdit.js +46 -42
  200. package/dist/organisms/form/builder/FormEdit.js.map +1 -1
  201. package/dist/organisms/form/builder/FormEdit.reducer.js.map +1 -1
  202. package/dist/organisms/form/builder/FormEditCtas.d.ts +2 -2
  203. package/dist/organisms/form/builder/FormEditCtas.js +36 -35
  204. package/dist/organisms/form/builder/FormEditCtas.js.map +1 -1
  205. package/dist/organisms/form/builder/FormParameters.d.ts +3 -2
  206. package/dist/organisms/form/builder/FormParameters.js +19 -18
  207. package/dist/organisms/form/builder/FormParameters.js.map +1 -1
  208. package/dist/organisms/form/builder/all.js +17 -13
  209. package/dist/organisms/form/builder/all.js.map +1 -1
  210. package/dist/organisms/form/builder/useFormBuilder.d.ts +4 -4
  211. package/dist/organisms/form/builder/useFormBuilder.js +36 -33
  212. package/dist/organisms/form/builder/useFormBuilder.js.map +1 -1
  213. package/dist/organisms/form/builder/useFormEdit.d.ts +2 -2
  214. package/dist/organisms/form/builder/useFormEdit.js +1 -1
  215. package/dist/organisms/form/builder/useFormEdit.js.map +1 -1
  216. package/dist/organisms/form/exports/FormExport.d.ts +6 -0
  217. package/dist/organisms/form/exports/FormExport.js +56 -0
  218. package/dist/organisms/form/exports/FormExport.js.map +1 -0
  219. package/dist/organisms/form/preview/FormPreview.d.ts +6 -0
  220. package/dist/organisms/form/preview/FormPreview.js +12 -0
  221. package/dist/organisms/form/preview/FormPreview.js.map +1 -0
  222. package/dist/organisms/form/settings/FormSettings.js +28 -28
  223. package/dist/organisms/form/settings/FormSettings.js.map +1 -1
  224. package/dist/organisms/form/settings/FormSettings.schema.js.map +1 -1
  225. package/dist/organisms/form/settings/FormSettings.utils.js.map +1 -1
  226. package/dist/organisms/form/useForm.d.ts +2 -1
  227. package/dist/organisms/form/useForm.js +664 -661
  228. package/dist/organisms/form/useForm.js.map +1 -1
  229. package/dist/organisms/modal/RemoveModal.js +16 -17
  230. package/dist/organisms/modal/RemoveModal.js.map +1 -1
  231. package/dist/organisms/table/actions/ActionsTable.d.ts +4 -3
  232. package/dist/organisms/table/actions/ActionsTable.js +21 -33
  233. package/dist/organisms/table/actions/ActionsTable.js.map +1 -1
  234. package/dist/organisms/table/forms/FormsTable.d.ts +2 -3
  235. package/dist/organisms/table/forms/FormsTable.js +48 -27
  236. package/dist/organisms/table/forms/FormsTable.js.map +1 -1
  237. package/dist/organisms/table/forms/components/FormsCell.d.ts +5 -0
  238. package/dist/organisms/table/forms/components/FormsCell.js +50 -0
  239. package/dist/organisms/table/forms/components/FormsCell.js.map +1 -0
  240. package/dist/organisms/table/submissions/SubmissionsTable.d.ts +12 -4
  241. package/dist/organisms/table/submissions/SubmissionsTable.js +10 -17
  242. package/dist/organisms/table/submissions/SubmissionsTable.js.map +1 -1
  243. package/dist/organisms/views/FormViews.d.ts +24 -0
  244. package/dist/organisms/views/FormViews.js +97 -0
  245. package/dist/organisms/views/FormViews.js.map +1 -0
  246. package/dist/registries/components.js +12 -11
  247. package/dist/registries/components.js.map +1 -1
  248. package/dist/utils/getEventValue.js.map +1 -1
  249. package/dist/utils/iconClass.js +4 -5
  250. package/dist/utils/iconClass.js.map +1 -1
  251. package/dist/utils/mapPagination.js.map +1 -1
  252. package/dist/utils/stopPropagationWrapper.js.map +1 -1
  253. package/package.json +10 -8
  254. package/readme.md +7 -8
  255. package/src/all.ts +34 -0
  256. package/src/atoms/icon/Icon.stories.tsx +71 -22
  257. package/src/atoms/icon/Icon.tsx +14 -4
  258. package/src/contexts/FormioContext.tsx +89 -0
  259. package/src/hooks/keyboard.constants.ts +40 -0
  260. package/src/hooks/useFormioContext.ts +13 -0
  261. package/src/hooks/useI18n.ts +9 -0
  262. package/src/hooks/useKeyboardControls.spec.tsx +208 -0
  263. package/src/hooks/useKeyboardControls.ts +84 -0
  264. package/src/index.ts +17 -13
  265. package/src/interfaces/ComponentType.ts +2 -2
  266. package/src/interfaces/FormBuilderOptions.ts +9 -0
  267. package/src/interfaces/FormOptions.ts +7 -13
  268. package/src/interfaces/FormType.ts +5 -11
  269. package/src/interfaces/Operation.ts +10 -4
  270. package/src/interfaces/SubmissionType.ts +9 -8
  271. package/src/interfaces/index.ts +1 -0
  272. package/src/molecules/__fixtures__/build.js +28 -0
  273. package/src/molecules/__fixtures__/form-schema.json +76 -195
  274. package/src/molecules/__fixtures__/form-submissions.json +11846 -46
  275. package/src/molecules/__fixtures__/products.json +81539 -0
  276. package/src/molecules/button/Button.stories.tsx +1 -1
  277. package/src/molecules/button/Button.tsx +43 -24
  278. package/src/molecules/card/Card.tsx +4 -0
  279. package/src/molecules/forms/form-control/FormControl.spec.tsx +7 -4
  280. package/src/molecules/forms/form-control/FormControl.stories.tsx +4 -4
  281. package/src/molecules/forms/form-control/FormControl.tsx +46 -20
  282. package/src/molecules/forms/input-tags/InputTags.interface.ts +9 -0
  283. package/src/molecules/forms/input-tags/InputTags.tsx +20 -42
  284. package/src/molecules/forms/input-tags/all.ts +6 -0
  285. package/src/molecules/forms/input-tags/components/ChoicesTags.stories.tsx +110 -0
  286. package/src/molecules/forms/input-tags/components/ChoicesTags.tsx +72 -0
  287. package/src/molecules/forms/input-tags/components/ReactTags.stories.tsx +140 -0
  288. package/src/molecules/forms/input-tags/components/ReactTags.tsx +38 -0
  289. package/src/molecules/forms/input-text/InputText.interface.ts +5 -0
  290. package/src/molecules/forms/input-text/InputText.spec.tsx +1 -1
  291. package/src/molecules/forms/input-text/InputText.stories.tsx +4 -4
  292. package/src/molecules/forms/input-text/InputText.tsx +38 -53
  293. package/src/molecules/forms/select/{Select.interfaces.ts → Select.interface.ts} +8 -10
  294. package/src/molecules/forms/select/Select.tsx +5 -3
  295. package/src/molecules/forms/select/all.ts +2 -1
  296. package/src/molecules/forms/select/components/ChoicesSelect.stories.tsx +8 -7
  297. package/src/molecules/forms/select/components/ChoicesSelect.tsx +9 -18
  298. package/src/molecules/forms/select/components/HtmlSelect.stories.tsx +7 -7
  299. package/src/molecules/forms/select/components/HtmlSelect.tsx +3 -2
  300. package/src/molecules/forms/select/components/ReactSelect.stories.tsx +10 -8
  301. package/src/molecules/forms/select/components/ReactSelect.tsx +1 -1
  302. package/src/molecules/forms/select/hooks/useOptions.ts +6 -2
  303. package/src/molecules/loader/Loader.spec.tsx +2 -2
  304. package/src/molecules/loader/Loader.stories.tsx +7 -4
  305. package/src/molecules/loader/Loader.tsx +16 -6
  306. package/src/molecules/modal/Modal.stories.tsx +1 -1
  307. package/src/molecules/pagination/Pagination.spec.tsx +11 -11
  308. package/src/molecules/pagination/Pagination.stories.tsx +32 -10
  309. package/src/molecules/pagination/Pagination.tsx +29 -26
  310. package/src/molecules/table/Table.stories.tsx +284 -101
  311. package/src/molecules/table/Table.tsx +91 -86
  312. package/src/molecules/table/all.ts +16 -0
  313. package/src/molecules/table/components/DefaultArrowSort.tsx +20 -4
  314. package/src/molecules/table/components/DefaultCell.tsx +10 -1
  315. package/src/molecules/table/components/DefaultCellFooter.tsx +16 -0
  316. package/src/molecules/table/components/DefaultCellHeader.tsx +33 -13
  317. package/src/molecules/table/components/DefaultCellOperations.tsx +31 -20
  318. package/src/molecules/table/components/DefaultFilter.tsx +42 -0
  319. package/src/molecules/table/components/DefaultOperationButton.tsx +19 -34
  320. package/src/molecules/table/filters/Filters.d.ts +31 -0
  321. package/src/molecules/table/filters/RangeFilter.tsx +43 -0
  322. package/src/molecules/table/filters/SelectFilter.tsx +47 -0
  323. package/src/molecules/table/filters/TextFieldFilter.tsx +36 -0
  324. package/src/molecules/table/hooks/useTable.tsx +76 -0
  325. package/src/molecules/table/hooks/useUniqValues.tsx +10 -0
  326. package/src/molecules/table/interfaces/extends.ts +18 -0
  327. package/src/molecules/table/utils/mapFormToColumns.tsx +69 -26
  328. package/src/molecules/tabs/Tab.tsx +106 -0
  329. package/src/molecules/tabs/TabList.tsx +37 -0
  330. package/src/molecules/tabs/TabPanel.tsx +37 -0
  331. package/src/molecules/tabs/Tabs.spec.tsx +126 -73
  332. package/src/molecules/tabs/Tabs.stories.tsx +298 -65
  333. package/src/molecules/tabs/Tabs.tsx +10 -81
  334. package/src/molecules/tabs/TabsBody.tsx +11 -0
  335. package/src/molecules/tabs/TabsLegacy.stories.tsx +103 -0
  336. package/src/molecules/tabs/TabsLegacy.tsx +86 -0
  337. package/src/molecules/tabs/all.ts +5 -0
  338. package/src/molecules/tabs/context/TabControl.tsx +166 -0
  339. package/src/molecules/tabs/hooks/tabControl.spec.tsx +388 -0
  340. package/src/molecules/tabs/hooks/tabControl.ts +52 -0
  341. package/src/organisms/__fixtures__/form-firstname.fixture.json +1 -0
  342. package/src/organisms/__fixtures__/form.fixture.json +1 -0
  343. package/src/organisms/form/Form.stories.tsx +104 -124
  344. package/src/organisms/form/access/FormAccess.schema.ts +1 -0
  345. package/src/organisms/form/access/FormAccess.stories.tsx +6 -4
  346. package/src/organisms/form/actions/FormAction.stories.tsx +426 -0
  347. package/src/organisms/form/{action → actions}/FormAction.tsx +2 -2
  348. package/src/organisms/form/builder/FormBuilder.stories.tsx +7 -4
  349. package/src/organisms/form/builder/FormEdit.reducer.spec.ts +136 -0
  350. package/src/organisms/form/builder/FormEdit.stories.tsx +16 -13
  351. package/src/organisms/form/builder/FormEdit.tsx +15 -7
  352. package/src/organisms/form/builder/FormEditCtas.tsx +10 -10
  353. package/src/organisms/form/builder/FormParameters.tsx +8 -4
  354. package/src/organisms/form/builder/all.ts +4 -0
  355. package/src/organisms/form/builder/useFormBuilder.ts +12 -7
  356. package/src/organisms/form/builder/useFormEdit.ts +3 -3
  357. package/src/organisms/form/exports/FormExport.stories.tsx +68 -0
  358. package/src/organisms/form/exports/FormExport.tsx +61 -0
  359. package/src/organisms/form/preview/FormPreview.stories.tsx +58 -0
  360. package/src/organisms/form/preview/FormPreview.tsx +23 -0
  361. package/src/organisms/form/settings/FormSettings.component.spec.tsx +3 -1
  362. package/src/organisms/form/settings/FormSettings.stories.tsx +2 -2
  363. package/src/organisms/form/settings/FormSettings.tsx +6 -6
  364. package/src/organisms/form/useForm.ts +2 -3
  365. package/src/organisms/modal/RemoveModal.stories.tsx +1 -1
  366. package/src/organisms/table/actions/ActionsTable.spec.tsx +7 -5
  367. package/src/organisms/table/actions/ActionsTable.stories.tsx +48 -45
  368. package/src/organisms/table/actions/ActionsTable.tsx +14 -18
  369. package/src/organisms/table/forms/FormsTable.stories.tsx +2 -0
  370. package/src/organisms/table/forms/FormsTable.tsx +53 -23
  371. package/src/organisms/table/forms/components/FormsCell.tsx +53 -0
  372. package/src/organisms/table/submissions/SubmissionsTable.stories.tsx +101 -57
  373. package/src/organisms/table/submissions/SubmissionsTable.tsx +12 -5
  374. package/src/organisms/views/FormViews.stories.tsx +221 -0
  375. package/src/organisms/views/FormViews.tsx +148 -0
  376. package/src/registries/components.ts +7 -1
  377. package/src/utils/iconClass.ts +1 -3
  378. package/vite.config.mts +2 -2
  379. package/dist/molecules/forms/select/Select.interfaces.js +0 -2
  380. package/dist/molecules/forms/select/Select.interfaces.js.map +0 -1
  381. package/dist/molecules/table/components/DefaultCells.d.ts +0 -4
  382. package/dist/molecules/table/components/DefaultCells.js +0 -23
  383. package/dist/molecules/table/components/DefaultCells.js.map +0 -1
  384. package/dist/molecules/table/components/DefaultRow.d.ts +0 -12
  385. package/dist/molecules/table/components/DefaultRow.js +0 -26
  386. package/dist/molecules/table/components/DefaultRow.js.map +0 -1
  387. package/dist/molecules/table/components/DragNDropContainer.d.ts +0 -4
  388. package/dist/molecules/table/components/DragNDropContainer.js +0 -10
  389. package/dist/molecules/table/components/DragNDropContainer.js.map +0 -1
  390. package/dist/molecules/table/filters/DefaultColumnFilter.d.ts +0 -10
  391. package/dist/molecules/table/filters/DefaultColumnFilter.js +0 -29
  392. package/dist/molecules/table/filters/DefaultColumnFilter.js.map +0 -1
  393. package/dist/molecules/table/filters/SelectColumnFilter.d.ts +0 -10
  394. package/dist/molecules/table/filters/SelectColumnFilter.js +0 -34
  395. package/dist/molecules/table/filters/SelectColumnFilter.js.map +0 -1
  396. package/dist/molecules/table/filters/SliderColumnFilter.d.ts +0 -9
  397. package/dist/molecules/table/filters/SliderColumnFilter.js +0 -27
  398. package/dist/molecules/table/filters/SliderColumnFilter.js.map +0 -1
  399. package/dist/molecules/table/hooks/useCustomTable.d.ts +0 -128
  400. package/dist/molecules/table/hooks/useCustomTable.js +0 -130
  401. package/dist/molecules/table/hooks/useCustomTable.js.map +0 -1
  402. package/dist/molecules/table/hooks/useDragnDropRow.d.ts +0 -272
  403. package/dist/molecules/table/hooks/useDragnDropRow.js +0 -40
  404. package/dist/molecules/table/hooks/useDragnDropRow.js.map +0 -1
  405. package/dist/molecules/table/hooks/useOperations.d.ts +0 -11
  406. package/dist/molecules/table/hooks/useOperations.js +0 -25
  407. package/dist/molecules/table/hooks/useOperations.js.map +0 -1
  408. package/dist/molecules/table/index.d.ts +0 -15
  409. package/dist/molecules/table/index.js +0 -35
  410. package/dist/molecules/table/index.js.map +0 -1
  411. package/dist/molecules/table/utils/getPageNumbers.js.map +0 -1
  412. package/dist/molecules/table/utils/swapElements.d.ts +0 -1
  413. package/dist/molecules/table/utils/swapElements.js +0 -5
  414. package/dist/molecules/table/utils/swapElements.js.map +0 -1
  415. package/dist/organisms/form/action/FormAction.js +0 -32
  416. package/dist/organisms/form/action/FormAction.js.map +0 -1
  417. package/dist/organisms/table/forms/components/FormCell.d.ts +0 -6
  418. package/dist/organisms/table/forms/components/FormCell.js +0 -50
  419. package/dist/organisms/table/forms/components/FormCell.js.map +0 -1
  420. package/dist/typings.d.js +0 -2
  421. package/dist/typings.d.js.map +0 -1
  422. package/src/molecules/forms/input-tags/InputTags.stories.tsx +0 -81
  423. package/src/molecules/table/components/DefaultCells.tsx +0 -30
  424. package/src/molecules/table/components/DefaultRow.tsx +0 -52
  425. package/src/molecules/table/components/DragNDropContainer.tsx +0 -7
  426. package/src/molecules/table/filters/DefaultColumnFilter.spec.tsx +0 -33
  427. package/src/molecules/table/filters/DefaultColumnFilter.tsx +0 -38
  428. package/src/molecules/table/filters/SelectColumnFilter.spec.tsx +0 -68
  429. package/src/molecules/table/filters/SelectColumnFilter.tsx +0 -51
  430. package/src/molecules/table/filters/SliderColumnFilter.tsx +0 -28
  431. package/src/molecules/table/hooks/useCustomTable.tsx +0 -268
  432. package/src/molecules/table/hooks/useDragnDropRow.ts +0 -80
  433. package/src/molecules/table/hooks/useOperations.tsx +0 -39
  434. package/src/molecules/table/index.ts +0 -15
  435. package/src/molecules/table/utils/swapElements.spec.ts +0 -7
  436. package/src/molecules/table/utils/swapElements.ts +0 -7
  437. package/src/organisms/form/action/FormAction.stories.tsx +0 -364
  438. package/src/organisms/table/forms/components/FormCell.tsx +0 -47
  439. package/src/typings.d.ts +0 -3
  440. package/tsconfig.app.json +0 -11
  441. package/tsconfig.json +0 -21
  442. package/tsconfig.node.json +0 -13
  443. package/tsconfig.spec.json +0 -14
  444. /package/dist/molecules/{table → pagination}/utils/getPageNumbers.d.ts +0 -0
  445. /package/dist/molecules/{table → pagination}/utils/getPageNumbers.js +0 -0
  446. /package/dist/organisms/form/{action → actions}/FormAction.d.ts +0 -0
  447. /package/src/molecules/{table → pagination}/utils/getPageNumbers.ts +0 -0
@@ -0,0 +1,1926 @@
1
+ import { jsx as at } from "react/jsx-runtime";
2
+ import { t as it, _ as ot, a as st, b as rt, c as lt, d as ct, m as Fe, s as Ae, v as ee, e as dt, f as pt, g as ft, p as gt, o as bt, n as vt, h as mt, j as ht, k as It, l as Ct, q as Et, r as Ft, u as At, w as Vt, x as Ot, y as Dt, z as St, A as xt, B as yt, C as Bt, D as Mt, E as Gt, F as Lt, G as Rt, H as G, I as Wt, J as ae, K as Zt, L as Xt, M as wt, N as Ve, O as Oe, P as V, Q as Tt, R as Nt, S as me, T as Pt, U as Z, V as kt, W as Ht, X as se, i as Jt } from "../../../../chunks/react-select-animated.esm.js";
3
+ import * as C from "react";
4
+ import { Component as Yt, Fragment as be, useMemo as j, useRef as $, useCallback as X, useEffect as Ne, useState as re, forwardRef as zt } from "react";
5
+ import "react-dom";
6
+ import { registerComponent as _t } from "../../../../registries/components.js";
7
+ function Ut(u, n) {
8
+ if (!(u instanceof n)) throw new TypeError("Cannot call a class as a function");
9
+ }
10
+ function De(u, n) {
11
+ for (var s = 0; s < n.length; s++) {
12
+ var o = n[s];
13
+ o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(u, it(o.key), o);
14
+ }
15
+ }
16
+ function jt(u, n, s) {
17
+ return n && De(u.prototype, n), s && De(u, s), Object.defineProperty(u, "prototype", {
18
+ writable: !1
19
+ }), u;
20
+ }
21
+ function Qt(u, n) {
22
+ if (typeof n != "function" && n !== null) throw new TypeError("Super expression must either be null or a function");
23
+ u.prototype = Object.create(n && n.prototype, {
24
+ constructor: {
25
+ value: u,
26
+ writable: !0,
27
+ configurable: !0
28
+ }
29
+ }), Object.defineProperty(u, "prototype", {
30
+ writable: !1
31
+ }), n && ot(u, n);
32
+ }
33
+ function ie(u) {
34
+ return ie = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(n) {
35
+ return n.__proto__ || Object.getPrototypeOf(n);
36
+ }, ie(u);
37
+ }
38
+ function Pe() {
39
+ try {
40
+ var u = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
41
+ }));
42
+ } catch {
43
+ }
44
+ return (Pe = function() {
45
+ return !!u;
46
+ })();
47
+ }
48
+ function $t(u, n) {
49
+ if (n && (st(n) == "object" || typeof n == "function")) return n;
50
+ if (n !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
51
+ return rt(u);
52
+ }
53
+ function Kt(u) {
54
+ var n = Pe();
55
+ return function() {
56
+ var s, o = ie(u);
57
+ if (n) {
58
+ var e = ie(this).constructor;
59
+ s = Reflect.construct(o, arguments, e);
60
+ } else s = o.apply(this, arguments);
61
+ return $t(this, s);
62
+ };
63
+ }
64
+ function qt(u) {
65
+ if (Array.isArray(u)) return lt(u);
66
+ }
67
+ function en(u) {
68
+ if (typeof Symbol < "u" && u[Symbol.iterator] != null || u["@@iterator"] != null) return Array.from(u);
69
+ }
70
+ function tn() {
71
+ throw new TypeError(`Invalid attempt to spread non-iterable instance.
72
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
73
+ }
74
+ function K(u) {
75
+ return qt(u) || en(u) || ct(u) || tn();
76
+ }
77
+ function nn() {
78
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
79
+ }
80
+ var un = process.env.NODE_ENV === "production" ? {
81
+ name: "7pg0cj-a11yText",
82
+ styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"
83
+ } : {
84
+ name: "1f43avz-a11yText-A11yText",
85
+ styles: "label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap;label:A11yText;",
86
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkExMXlUZXh0LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFPSSIsImZpbGUiOiJBMTF5VGV4dC50c3giLCJzb3VyY2VzQ29udGVudCI6WyIvKiogQGpzeCBqc3ggKi9cbmltcG9ydCB7IEpTWCB9IGZyb20gJ3JlYWN0JztcbmltcG9ydCB7IGpzeCB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcblxuLy8gQXNzaXN0aXZlIHRleHQgdG8gZGVzY3JpYmUgdmlzdWFsIGVsZW1lbnRzLiBIaWRkZW4gZm9yIHNpZ2h0ZWQgdXNlcnMuXG5jb25zdCBBMTF5VGV4dCA9IChwcm9wczogSlNYLkludHJpbnNpY0VsZW1lbnRzWydzcGFuJ10pID0+IChcbiAgPHNwYW5cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAnYTExeVRleHQnLFxuICAgICAgekluZGV4OiA5OTk5LFxuICAgICAgYm9yZGVyOiAwLFxuICAgICAgY2xpcDogJ3JlY3QoMXB4LCAxcHgsIDFweCwgMXB4KScsXG4gICAgICBoZWlnaHQ6IDEsXG4gICAgICB3aWR0aDogMSxcbiAgICAgIHBvc2l0aW9uOiAnYWJzb2x1dGUnLFxuICAgICAgb3ZlcmZsb3c6ICdoaWRkZW4nLFxuICAgICAgcGFkZGluZzogMCxcbiAgICAgIHdoaXRlU3BhY2U6ICdub3dyYXAnLFxuICAgIH19XG4gICAgey4uLnByb3BzfVxuICAvPlxuKTtcblxuZXhwb3J0IGRlZmF1bHQgQTExeVRleHQ7XG4iXX0= */",
87
+ toString: nn
88
+ }, an = function(n) {
89
+ return Z("span", V({
90
+ css: un
91
+ }, n));
92
+ }, Se = an, on = {
93
+ guidance: function(n) {
94
+ var s = n.isSearchable, o = n.isMulti, e = n.tabSelectsValue, i = n.context, c = n.isInitialFocus;
95
+ switch (i) {
96
+ case "menu":
97
+ return "Use Up and Down to choose options, press Enter to select the currently focused option, press Escape to exit the menu".concat(e ? ", press Tab to select the option and exit the menu" : "", ".");
98
+ case "input":
99
+ return c ? "".concat(n["aria-label"] || "Select", " is focused ").concat(s ? ",type to refine list" : "", ", press Down to open the menu, ").concat(o ? " press left to focus selected values" : "") : "";
100
+ case "value":
101
+ return "Use left and right to toggle between focused values, press Backspace to remove the currently focused value";
102
+ default:
103
+ return "";
104
+ }
105
+ },
106
+ onChange: function(n) {
107
+ var s = n.action, o = n.label, e = o === void 0 ? "" : o, i = n.labels, c = n.isDisabled;
108
+ switch (s) {
109
+ case "deselect-option":
110
+ case "pop-value":
111
+ case "remove-value":
112
+ return "option ".concat(e, ", deselected.");
113
+ case "clear":
114
+ return "All selected options have been cleared.";
115
+ case "initial-input-focus":
116
+ return "option".concat(i.length > 1 ? "s" : "", " ").concat(i.join(","), ", selected.");
117
+ case "select-option":
118
+ return c ? "option ".concat(e, " is disabled. Select another option.") : "option ".concat(e, ", selected.");
119
+ default:
120
+ return "";
121
+ }
122
+ },
123
+ onFocus: function(n) {
124
+ var s = n.context, o = n.focused, e = n.options, i = n.label, c = i === void 0 ? "" : i, d = n.selectValue, t = n.isDisabled, a = n.isSelected, r = n.isAppleDevice, l = function(b, p) {
125
+ return b && b.length ? "".concat(b.indexOf(p) + 1, " of ").concat(b.length) : "";
126
+ };
127
+ if (s === "value" && d)
128
+ return "value ".concat(c, " focused, ").concat(l(d, o), ".");
129
+ if (s === "menu" && r) {
130
+ var g = t ? " disabled" : "", f = "".concat(a ? " selected" : "").concat(g);
131
+ return "".concat(c).concat(f, ", ").concat(l(e, o), ".");
132
+ }
133
+ return "";
134
+ },
135
+ onFilter: function(n) {
136
+ var s = n.inputValue, o = n.resultsMessage;
137
+ return "".concat(o).concat(s ? " for search term " + s : "", ".");
138
+ }
139
+ }, sn = function(n) {
140
+ var s = n.ariaSelection, o = n.focusedOption, e = n.focusedValue, i = n.focusableOptions, c = n.isFocused, d = n.selectValue, t = n.selectProps, a = n.id, r = n.isAppleDevice, l = t.ariaLiveMessages, g = t.getOptionLabel, f = t.inputValue, v = t.isMulti, b = t.isOptionDisabled, p = t.isSearchable, m = t.menuIsOpen, E = t.options, F = t.screenReaderStatus, I = t.tabSelectsValue, A = t.isLoading, S = t["aria-label"], O = t["aria-live"], h = j(function() {
141
+ return G(G({}, on), l || {});
142
+ }, [l]), D = j(function() {
143
+ var x = "";
144
+ if (s && h.onChange) {
145
+ var B = s.option, P = s.options, w = s.removedValue, Y = s.removedValues, z = s.value, te = function(J) {
146
+ return Array.isArray(J) ? null : J;
147
+ }, y = w || B || te(z), W = y ? g(y) : "", H = P || Y || void 0, _ = H ? H.map(g) : [], N = G({
148
+ // multiSelected items are usually items that have already been selected
149
+ // or set by the user as a default value so we assume they are not disabled
150
+ isDisabled: y && b(y, d),
151
+ label: W,
152
+ labels: _
153
+ }, s);
154
+ x = h.onChange(N);
155
+ }
156
+ return x;
157
+ }, [s, h, b, d, g]), L = j(function() {
158
+ var x = "", B = o || e, P = !!(o && d && d.includes(o));
159
+ if (B && h.onFocus) {
160
+ var w = {
161
+ focused: B,
162
+ label: g(B),
163
+ isDisabled: b(B, d),
164
+ isSelected: P,
165
+ options: i,
166
+ context: B === o ? "menu" : "value",
167
+ selectValue: d,
168
+ isAppleDevice: r
169
+ };
170
+ x = h.onFocus(w);
171
+ }
172
+ return x;
173
+ }, [o, e, g, b, h, i, d, r]), R = j(function() {
174
+ var x = "";
175
+ if (m && E.length && !A && h.onFilter) {
176
+ var B = F({
177
+ count: i.length
178
+ });
179
+ x = h.onFilter({
180
+ inputValue: f,
181
+ resultsMessage: B
182
+ });
183
+ }
184
+ return x;
185
+ }, [i, f, m, h, E, F, A]), M = s?.action === "initial-input-focus", T = j(function() {
186
+ var x = "";
187
+ if (h.guidance) {
188
+ var B = e ? "value" : m ? "menu" : "input";
189
+ x = h.guidance({
190
+ "aria-label": S,
191
+ context: B,
192
+ isDisabled: o && b(o, d),
193
+ isMulti: v,
194
+ isSearchable: p,
195
+ tabSelectsValue: I,
196
+ isInitialFocus: M
197
+ });
198
+ }
199
+ return x;
200
+ }, [S, o, e, v, b, p, m, h, d, I, M]), k = Z(be, null, Z("span", {
201
+ id: "aria-selection"
202
+ }, D), Z("span", {
203
+ id: "aria-focused"
204
+ }, L), Z("span", {
205
+ id: "aria-results"
206
+ }, R), Z("span", {
207
+ id: "aria-guidance"
208
+ }, T));
209
+ return Z(be, null, Z(Se, {
210
+ id: a
211
+ }, M && k), Z(Se, {
212
+ "aria-live": O,
213
+ "aria-atomic": "false",
214
+ "aria-relevant": "additions text",
215
+ role: "log"
216
+ }, c && !M && k));
217
+ }, rn = sn, ve = [{
218
+ base: "A",
219
+ letters: "AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"
220
+ }, {
221
+ base: "AA",
222
+ letters: "Ꜳ"
223
+ }, {
224
+ base: "AE",
225
+ letters: "ÆǼǢ"
226
+ }, {
227
+ base: "AO",
228
+ letters: "Ꜵ"
229
+ }, {
230
+ base: "AU",
231
+ letters: "Ꜷ"
232
+ }, {
233
+ base: "AV",
234
+ letters: "ꜸꜺ"
235
+ }, {
236
+ base: "AY",
237
+ letters: "Ꜽ"
238
+ }, {
239
+ base: "B",
240
+ letters: "BⒷBḂḄḆɃƂƁ"
241
+ }, {
242
+ base: "C",
243
+ letters: "CⒸCĆĈĊČÇḈƇȻꜾ"
244
+ }, {
245
+ base: "D",
246
+ letters: "DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"
247
+ }, {
248
+ base: "DZ",
249
+ letters: "DZDŽ"
250
+ }, {
251
+ base: "Dz",
252
+ letters: "DzDž"
253
+ }, {
254
+ base: "E",
255
+ letters: "EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"
256
+ }, {
257
+ base: "F",
258
+ letters: "FⒻFḞƑꝻ"
259
+ }, {
260
+ base: "G",
261
+ letters: "GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"
262
+ }, {
263
+ base: "H",
264
+ letters: "HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"
265
+ }, {
266
+ base: "I",
267
+ letters: "IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"
268
+ }, {
269
+ base: "J",
270
+ letters: "JⒿJĴɈ"
271
+ }, {
272
+ base: "K",
273
+ letters: "KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"
274
+ }, {
275
+ base: "L",
276
+ letters: "LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"
277
+ }, {
278
+ base: "LJ",
279
+ letters: "LJ"
280
+ }, {
281
+ base: "Lj",
282
+ letters: "Lj"
283
+ }, {
284
+ base: "M",
285
+ letters: "MⓂMḾṀṂⱮƜ"
286
+ }, {
287
+ base: "N",
288
+ letters: "NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"
289
+ }, {
290
+ base: "NJ",
291
+ letters: "NJ"
292
+ }, {
293
+ base: "Nj",
294
+ letters: "Nj"
295
+ }, {
296
+ base: "O",
297
+ letters: "OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"
298
+ }, {
299
+ base: "OI",
300
+ letters: "Ƣ"
301
+ }, {
302
+ base: "OO",
303
+ letters: "Ꝏ"
304
+ }, {
305
+ base: "OU",
306
+ letters: "Ȣ"
307
+ }, {
308
+ base: "P",
309
+ letters: "PⓅPṔṖƤⱣꝐꝒꝔ"
310
+ }, {
311
+ base: "Q",
312
+ letters: "QⓆQꝖꝘɊ"
313
+ }, {
314
+ base: "R",
315
+ letters: "RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"
316
+ }, {
317
+ base: "S",
318
+ letters: "SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"
319
+ }, {
320
+ base: "T",
321
+ letters: "TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"
322
+ }, {
323
+ base: "TZ",
324
+ letters: "Ꜩ"
325
+ }, {
326
+ base: "U",
327
+ letters: "UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"
328
+ }, {
329
+ base: "V",
330
+ letters: "VⓋVṼṾƲꝞɅ"
331
+ }, {
332
+ base: "VY",
333
+ letters: "Ꝡ"
334
+ }, {
335
+ base: "W",
336
+ letters: "WⓌWẀẂŴẆẄẈⱲ"
337
+ }, {
338
+ base: "X",
339
+ letters: "XⓍXẊẌ"
340
+ }, {
341
+ base: "Y",
342
+ letters: "YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"
343
+ }, {
344
+ base: "Z",
345
+ letters: "ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"
346
+ }, {
347
+ base: "a",
348
+ letters: "aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"
349
+ }, {
350
+ base: "aa",
351
+ letters: "ꜳ"
352
+ }, {
353
+ base: "ae",
354
+ letters: "æǽǣ"
355
+ }, {
356
+ base: "ao",
357
+ letters: "ꜵ"
358
+ }, {
359
+ base: "au",
360
+ letters: "ꜷ"
361
+ }, {
362
+ base: "av",
363
+ letters: "ꜹꜻ"
364
+ }, {
365
+ base: "ay",
366
+ letters: "ꜽ"
367
+ }, {
368
+ base: "b",
369
+ letters: "bⓑbḃḅḇƀƃɓ"
370
+ }, {
371
+ base: "c",
372
+ letters: "cⓒcćĉċčçḉƈȼꜿↄ"
373
+ }, {
374
+ base: "d",
375
+ letters: "dⓓdḋďḍḑḓḏđƌɖɗꝺ"
376
+ }, {
377
+ base: "dz",
378
+ letters: "dzdž"
379
+ }, {
380
+ base: "e",
381
+ letters: "eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"
382
+ }, {
383
+ base: "f",
384
+ letters: "fⓕfḟƒꝼ"
385
+ }, {
386
+ base: "g",
387
+ letters: "gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"
388
+ }, {
389
+ base: "h",
390
+ letters: "hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"
391
+ }, {
392
+ base: "hv",
393
+ letters: "ƕ"
394
+ }, {
395
+ base: "i",
396
+ letters: "iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"
397
+ }, {
398
+ base: "j",
399
+ letters: "jⓙjĵǰɉ"
400
+ }, {
401
+ base: "k",
402
+ letters: "kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"
403
+ }, {
404
+ base: "l",
405
+ letters: "lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"
406
+ }, {
407
+ base: "lj",
408
+ letters: "lj"
409
+ }, {
410
+ base: "m",
411
+ letters: "mⓜmḿṁṃɱɯ"
412
+ }, {
413
+ base: "n",
414
+ letters: "nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"
415
+ }, {
416
+ base: "nj",
417
+ letters: "nj"
418
+ }, {
419
+ base: "o",
420
+ letters: "oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"
421
+ }, {
422
+ base: "oi",
423
+ letters: "ƣ"
424
+ }, {
425
+ base: "ou",
426
+ letters: "ȣ"
427
+ }, {
428
+ base: "oo",
429
+ letters: "ꝏ"
430
+ }, {
431
+ base: "p",
432
+ letters: "pⓟpṕṗƥᵽꝑꝓꝕ"
433
+ }, {
434
+ base: "q",
435
+ letters: "qⓠqɋꝗꝙ"
436
+ }, {
437
+ base: "r",
438
+ letters: "rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"
439
+ }, {
440
+ base: "s",
441
+ letters: "sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"
442
+ }, {
443
+ base: "t",
444
+ letters: "tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"
445
+ }, {
446
+ base: "tz",
447
+ letters: "ꜩ"
448
+ }, {
449
+ base: "u",
450
+ letters: "uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"
451
+ }, {
452
+ base: "v",
453
+ letters: "vⓥvṽṿʋꝟʌ"
454
+ }, {
455
+ base: "vy",
456
+ letters: "ꝡ"
457
+ }, {
458
+ base: "w",
459
+ letters: "wⓦwẁẃŵẇẅẘẉⱳ"
460
+ }, {
461
+ base: "x",
462
+ letters: "xⓧxẋẍ"
463
+ }, {
464
+ base: "y",
465
+ letters: "yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"
466
+ }, {
467
+ base: "z",
468
+ letters: "zⓩzźẑżžẓẕƶȥɀⱬꝣ"
469
+ }], ln = new RegExp("[" + ve.map(function(u) {
470
+ return u.letters;
471
+ }).join("") + "]", "g"), ke = {};
472
+ for (var le = 0; le < ve.length; le++)
473
+ for (var ce = ve[le], de = 0; de < ce.letters.length; de++)
474
+ ke[ce.letters[de]] = ce.base;
475
+ var He = function(n) {
476
+ return n.replace(ln, function(s) {
477
+ return ke[s];
478
+ });
479
+ }, cn = Xt(He), xe = function(n) {
480
+ return n.replace(/^\s+|\s+$/g, "");
481
+ }, dn = function(n) {
482
+ return "".concat(n.label, " ").concat(n.value);
483
+ }, pn = function(n) {
484
+ return function(s, o) {
485
+ if (s.data.__isNew__) return !0;
486
+ var e = G({
487
+ ignoreCase: !0,
488
+ ignoreAccents: !0,
489
+ stringify: dn,
490
+ trim: !0,
491
+ matchFrom: "any"
492
+ }, n), i = e.ignoreCase, c = e.ignoreAccents, d = e.stringify, t = e.trim, a = e.matchFrom, r = t ? xe(o) : o, l = t ? xe(d(s)) : d(s);
493
+ return i && (r = r.toLowerCase(), l = l.toLowerCase()), c && (r = cn(r), l = He(l)), a === "start" ? l.substr(0, r.length) === r : l.indexOf(r) > -1;
494
+ };
495
+ }, fn = ["innerRef"];
496
+ function gn(u) {
497
+ var n = u.innerRef, s = me(u, fn), o = Pt(s, "onExited", "in", "enter", "exit", "appear");
498
+ return Z("input", V({
499
+ ref: n
500
+ }, o, {
501
+ css: /* @__PURE__ */ kt({
502
+ label: "dummyInput",
503
+ // get rid of any default styles
504
+ background: 0,
505
+ border: 0,
506
+ // important! this hides the flashing cursor
507
+ caretColor: "transparent",
508
+ fontSize: "inherit",
509
+ gridArea: "1 / 1 / 2 / 3",
510
+ outline: 0,
511
+ padding: 0,
512
+ // important! without `width` browsers won't allow focus
513
+ width: 1,
514
+ // remove cursor on desktop
515
+ color: "transparent",
516
+ // remove cursor on mobile whilst maintaining "scroll into view" behaviour
517
+ left: -100,
518
+ opacity: 0,
519
+ position: "relative",
520
+ transform: "scale(.01)"
521
+ }, process.env.NODE_ENV === "production" ? "" : ";label:DummyInput;", process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIkR1bW15SW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXlCTSIsImZpbGUiOiJEdW1teUlucHV0LnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsgSlNYLCBSZWYgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5pbXBvcnQgeyByZW1vdmVQcm9wcyB9IGZyb20gJy4uL3V0aWxzJztcblxuZXhwb3J0IGRlZmF1bHQgZnVuY3Rpb24gRHVtbXlJbnB1dCh7XG4gIGlubmVyUmVmLFxuICAuLi5wcm9wc1xufTogSlNYLkludHJpbnNpY0VsZW1lbnRzWydpbnB1dCddICYge1xuICByZWFkb25seSBpbm5lclJlZjogUmVmPEhUTUxJbnB1dEVsZW1lbnQ+O1xufSkge1xuICAvLyBSZW1vdmUgYW5pbWF0aW9uIHByb3BzIG5vdCBtZWFudCBmb3IgSFRNTCBlbGVtZW50c1xuICBjb25zdCBmaWx0ZXJlZFByb3BzID0gcmVtb3ZlUHJvcHMoXG4gICAgcHJvcHMsXG4gICAgJ29uRXhpdGVkJyxcbiAgICAnaW4nLFxuICAgICdlbnRlcicsXG4gICAgJ2V4aXQnLFxuICAgICdhcHBlYXInXG4gICk7XG5cbiAgcmV0dXJuIChcbiAgICA8aW5wdXRcbiAgICAgIHJlZj17aW5uZXJSZWZ9XG4gICAgICB7Li4uZmlsdGVyZWRQcm9wc31cbiAgICAgIGNzcz17e1xuICAgICAgICBsYWJlbDogJ2R1bW15SW5wdXQnLFxuICAgICAgICAvLyBnZXQgcmlkIG9mIGFueSBkZWZhdWx0IHN0eWxlc1xuICAgICAgICBiYWNrZ3JvdW5kOiAwLFxuICAgICAgICBib3JkZXI6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgdGhpcyBoaWRlcyB0aGUgZmxhc2hpbmcgY3Vyc29yXG4gICAgICAgIGNhcmV0Q29sb3I6ICd0cmFuc3BhcmVudCcsXG4gICAgICAgIGZvbnRTaXplOiAnaW5oZXJpdCcsXG4gICAgICAgIGdyaWRBcmVhOiAnMSAvIDEgLyAyIC8gMycsXG4gICAgICAgIG91dGxpbmU6IDAsXG4gICAgICAgIHBhZGRpbmc6IDAsXG4gICAgICAgIC8vIGltcG9ydGFudCEgd2l0aG91dCBgd2lkdGhgIGJyb3dzZXJzIHdvbid0IGFsbG93IGZvY3VzXG4gICAgICAgIHdpZHRoOiAxLFxuXG4gICAgICAgIC8vIHJlbW92ZSBjdXJzb3Igb24gZGVza3RvcFxuICAgICAgICBjb2xvcjogJ3RyYW5zcGFyZW50JyxcblxuICAgICAgICAvLyByZW1vdmUgY3Vyc29yIG9uIG1vYmlsZSB3aGlsc3QgbWFpbnRhaW5pbmcgXCJzY3JvbGwgaW50byB2aWV3XCIgYmVoYXZpb3VyXG4gICAgICAgIGxlZnQ6IC0xMDAsXG4gICAgICAgIG9wYWNpdHk6IDAsXG4gICAgICAgIHBvc2l0aW9uOiAncmVsYXRpdmUnLFxuICAgICAgICB0cmFuc2Zvcm06ICdzY2FsZSguMDEpJyxcbiAgICAgIH19XG4gICAgLz5cbiAgKTtcbn1cbiJdfQ== */")
522
+ }));
523
+ }
524
+ var bn = function(n) {
525
+ n.cancelable && n.preventDefault(), n.stopPropagation();
526
+ };
527
+ function vn(u) {
528
+ var n = u.isEnabled, s = u.onBottomArrive, o = u.onBottomLeave, e = u.onTopArrive, i = u.onTopLeave, c = $(!1), d = $(!1), t = $(0), a = $(null), r = X(function(p, m) {
529
+ if (a.current !== null) {
530
+ var E = a.current, F = E.scrollTop, I = E.scrollHeight, A = E.clientHeight, S = a.current, O = m > 0, h = I - A - F, D = !1;
531
+ h > m && c.current && (o && o(p), c.current = !1), O && d.current && (i && i(p), d.current = !1), O && m > h ? (s && !c.current && s(p), S.scrollTop = I, D = !0, c.current = !0) : !O && -m > F && (e && !d.current && e(p), S.scrollTop = 0, D = !0, d.current = !0), D && bn(p);
532
+ }
533
+ }, [s, o, e, i]), l = X(function(p) {
534
+ r(p, p.deltaY);
535
+ }, [r]), g = X(function(p) {
536
+ t.current = p.changedTouches[0].clientY;
537
+ }, []), f = X(function(p) {
538
+ var m = t.current - p.changedTouches[0].clientY;
539
+ r(p, m);
540
+ }, [r]), v = X(function(p) {
541
+ if (p) {
542
+ var m = Ht ? {
543
+ passive: !1
544
+ } : !1;
545
+ p.addEventListener("wheel", l, m), p.addEventListener("touchstart", g, m), p.addEventListener("touchmove", f, m);
546
+ }
547
+ }, [f, g, l]), b = X(function(p) {
548
+ p && (p.removeEventListener("wheel", l, !1), p.removeEventListener("touchstart", g, !1), p.removeEventListener("touchmove", f, !1));
549
+ }, [f, g, l]);
550
+ return Ne(function() {
551
+ if (n) {
552
+ var p = a.current;
553
+ return v(p), function() {
554
+ b(p);
555
+ };
556
+ }
557
+ }, [n, v, b]), function(p) {
558
+ a.current = p;
559
+ };
560
+ }
561
+ var ye = ["boxSizing", "height", "overflow", "paddingRight", "position"], Be = {
562
+ boxSizing: "border-box",
563
+ // account for possible declaration `width: 100%;` on body
564
+ overflow: "hidden",
565
+ position: "relative",
566
+ height: "100%"
567
+ };
568
+ function Me(u) {
569
+ u.cancelable && u.preventDefault();
570
+ }
571
+ function Ge(u) {
572
+ u.stopPropagation();
573
+ }
574
+ function Le() {
575
+ var u = this.scrollTop, n = this.scrollHeight, s = u + this.offsetHeight;
576
+ u === 0 ? this.scrollTop = 1 : s === n && (this.scrollTop = u - 1);
577
+ }
578
+ function Re() {
579
+ return "ontouchstart" in window || navigator.maxTouchPoints;
580
+ }
581
+ var We = !!(typeof window < "u" && window.document && window.document.createElement), q = 0, Q = {
582
+ capture: !1,
583
+ passive: !1
584
+ };
585
+ function mn(u) {
586
+ var n = u.isEnabled, s = u.accountForScrollbars, o = s === void 0 ? !0 : s, e = $({}), i = $(null), c = X(function(t) {
587
+ if (We) {
588
+ var a = document.body, r = a && a.style;
589
+ if (o && ye.forEach(function(v) {
590
+ var b = r && r[v];
591
+ e.current[v] = b;
592
+ }), o && q < 1) {
593
+ var l = parseInt(e.current.paddingRight, 10) || 0, g = document.body ? document.body.clientWidth : 0, f = window.innerWidth - g + l || 0;
594
+ Object.keys(Be).forEach(function(v) {
595
+ var b = Be[v];
596
+ r && (r[v] = b);
597
+ }), r && (r.paddingRight = "".concat(f, "px"));
598
+ }
599
+ a && Re() && (a.addEventListener("touchmove", Me, Q), t && (t.addEventListener("touchstart", Le, Q), t.addEventListener("touchmove", Ge, Q))), q += 1;
600
+ }
601
+ }, [o]), d = X(function(t) {
602
+ if (We) {
603
+ var a = document.body, r = a && a.style;
604
+ q = Math.max(q - 1, 0), o && q < 1 && ye.forEach(function(l) {
605
+ var g = e.current[l];
606
+ r && (r[l] = g);
607
+ }), a && Re() && (a.removeEventListener("touchmove", Me, Q), t && (t.removeEventListener("touchstart", Le, Q), t.removeEventListener("touchmove", Ge, Q)));
608
+ }
609
+ }, [o]);
610
+ return Ne(function() {
611
+ if (n) {
612
+ var t = i.current;
613
+ return c(t), function() {
614
+ d(t);
615
+ };
616
+ }
617
+ }, [n, c, d]), function(t) {
618
+ i.current = t;
619
+ };
620
+ }
621
+ function hn() {
622
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
623
+ }
624
+ var In = function(n) {
625
+ var s = n.target;
626
+ return s.ownerDocument.activeElement && s.ownerDocument.activeElement.blur();
627
+ }, Cn = process.env.NODE_ENV === "production" ? {
628
+ name: "1kfdb0e",
629
+ styles: "position:fixed;left:0;bottom:0;right:0;top:0"
630
+ } : {
631
+ name: "bp8cua-ScrollManager",
632
+ styles: "position:fixed;left:0;bottom:0;right:0;top:0;label:ScrollManager;",
633
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNjcm9sbE1hbmFnZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQW9EVSIsImZpbGUiOiJTY3JvbGxNYW5hZ2VyLnRzeCIsInNvdXJjZXNDb250ZW50IjpbIi8qKiBAanN4IGpzeCAqL1xuaW1wb3J0IHsganN4IH0gZnJvbSAnQGVtb3Rpb24vcmVhY3QnO1xuaW1wb3J0IHsgRnJhZ21lbnQsIFJlYWN0RWxlbWVudCwgUmVmQ2FsbGJhY2ssIE1vdXNlRXZlbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgdXNlU2Nyb2xsQ2FwdHVyZSBmcm9tICcuL3VzZVNjcm9sbENhcHR1cmUnO1xuaW1wb3J0IHVzZVNjcm9sbExvY2sgZnJvbSAnLi91c2VTY3JvbGxMb2NrJztcblxuaW50ZXJmYWNlIFByb3BzIHtcbiAgcmVhZG9ubHkgY2hpbGRyZW46IChyZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PikgPT4gUmVhY3RFbGVtZW50O1xuICByZWFkb25seSBsb2NrRW5hYmxlZDogYm9vbGVhbjtcbiAgcmVhZG9ubHkgY2FwdHVyZUVuYWJsZWQ6IGJvb2xlYW47XG4gIHJlYWRvbmx5IG9uQm90dG9tQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Cb3R0b21MZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG4gIHJlYWRvbmx5IG9uVG9wQXJyaXZlPzogKGV2ZW50OiBXaGVlbEV2ZW50IHwgVG91Y2hFdmVudCkgPT4gdm9pZDtcbiAgcmVhZG9ubHkgb25Ub3BMZWF2ZT86IChldmVudDogV2hlZWxFdmVudCB8IFRvdWNoRXZlbnQpID0+IHZvaWQ7XG59XG5cbmNvbnN0IGJsdXJTZWxlY3RJbnB1dCA9IChldmVudDogTW91c2VFdmVudDxIVE1MRGl2RWxlbWVudD4pID0+IHtcbiAgY29uc3QgZWxlbWVudCA9IGV2ZW50LnRhcmdldCBhcyBIVE1MRGl2RWxlbWVudDtcbiAgcmV0dXJuIChcbiAgICBlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCAmJlxuICAgIChlbGVtZW50Lm93bmVyRG9jdW1lbnQuYWN0aXZlRWxlbWVudCBhcyBIVE1MRWxlbWVudCkuYmx1cigpXG4gICk7XG59O1xuXG5leHBvcnQgZGVmYXVsdCBmdW5jdGlvbiBTY3JvbGxNYW5hZ2VyKHtcbiAgY2hpbGRyZW4sXG4gIGxvY2tFbmFibGVkLFxuICBjYXB0dXJlRW5hYmxlZCA9IHRydWUsXG4gIG9uQm90dG9tQXJyaXZlLFxuICBvbkJvdHRvbUxlYXZlLFxuICBvblRvcEFycml2ZSxcbiAgb25Ub3BMZWF2ZSxcbn06IFByb3BzKSB7XG4gIGNvbnN0IHNldFNjcm9sbENhcHR1cmVUYXJnZXQgPSB1c2VTY3JvbGxDYXB0dXJlKHtcbiAgICBpc0VuYWJsZWQ6IGNhcHR1cmVFbmFibGVkLFxuICAgIG9uQm90dG9tQXJyaXZlLFxuICAgIG9uQm90dG9tTGVhdmUsXG4gICAgb25Ub3BBcnJpdmUsXG4gICAgb25Ub3BMZWF2ZSxcbiAgfSk7XG4gIGNvbnN0IHNldFNjcm9sbExvY2tUYXJnZXQgPSB1c2VTY3JvbGxMb2NrKHsgaXNFbmFibGVkOiBsb2NrRW5hYmxlZCB9KTtcblxuICBjb25zdCB0YXJnZXRSZWY6IFJlZkNhbGxiYWNrPEhUTUxFbGVtZW50PiA9IChlbGVtZW50KSA9PiB7XG4gICAgc2V0U2Nyb2xsQ2FwdHVyZVRhcmdldChlbGVtZW50KTtcbiAgICBzZXRTY3JvbGxMb2NrVGFyZ2V0KGVsZW1lbnQpO1xuICB9O1xuXG4gIHJldHVybiAoXG4gICAgPEZyYWdtZW50PlxuICAgICAge2xvY2tFbmFibGVkICYmIChcbiAgICAgICAgPGRpdlxuICAgICAgICAgIG9uQ2xpY2s9e2JsdXJTZWxlY3RJbnB1dH1cbiAgICAgICAgICBjc3M9e3sgcG9zaXRpb246ICdmaXhlZCcsIGxlZnQ6IDAsIGJvdHRvbTogMCwgcmlnaHQ6IDAsIHRvcDogMCB9fVxuICAgICAgICAvPlxuICAgICAgKX1cbiAgICAgIHtjaGlsZHJlbih0YXJnZXRSZWYpfVxuICAgIDwvRnJhZ21lbnQ+XG4gICk7XG59XG4iXX0= */",
634
+ toString: hn
635
+ };
636
+ function En(u) {
637
+ var n = u.children, s = u.lockEnabled, o = u.captureEnabled, e = o === void 0 ? !0 : o, i = u.onBottomArrive, c = u.onBottomLeave, d = u.onTopArrive, t = u.onTopLeave, a = vn({
638
+ isEnabled: e,
639
+ onBottomArrive: i,
640
+ onBottomLeave: c,
641
+ onTopArrive: d,
642
+ onTopLeave: t
643
+ }), r = mn({
644
+ isEnabled: s
645
+ }), l = function(f) {
646
+ a(f), r(f);
647
+ };
648
+ return Z(be, null, s && Z("div", {
649
+ onClick: In,
650
+ css: Cn
651
+ }), n(l));
652
+ }
653
+ function Fn() {
654
+ return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
655
+ }
656
+ var An = process.env.NODE_ENV === "production" ? {
657
+ name: "1a0ro4n-requiredInput",
658
+ styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"
659
+ } : {
660
+ name: "5kkxb2-requiredInput-RequiredInput",
661
+ styles: "label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%;label:RequiredInput;",
662
+ map: "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlJlcXVpcmVkSW5wdXQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWNJIiwiZmlsZSI6IlJlcXVpcmVkSW5wdXQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiLyoqIEBqc3gganN4ICovXG5pbXBvcnQgeyBGb2N1c0V2ZW50SGFuZGxlciwgRnVuY3Rpb25Db21wb25lbnQgfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyBqc3ggfSBmcm9tICdAZW1vdGlvbi9yZWFjdCc7XG5cbmNvbnN0IFJlcXVpcmVkSW5wdXQ6IEZ1bmN0aW9uQ29tcG9uZW50PHtcbiAgcmVhZG9ubHkgbmFtZT86IHN0cmluZztcbiAgcmVhZG9ubHkgb25Gb2N1czogRm9jdXNFdmVudEhhbmRsZXI8SFRNTElucHV0RWxlbWVudD47XG59PiA9ICh7IG5hbWUsIG9uRm9jdXMgfSkgPT4gKFxuICA8aW5wdXRcbiAgICByZXF1aXJlZFxuICAgIG5hbWU9e25hbWV9XG4gICAgdGFiSW5kZXg9ey0xfVxuICAgIGFyaWEtaGlkZGVuPVwidHJ1ZVwiXG4gICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICBjc3M9e3tcbiAgICAgIGxhYmVsOiAncmVxdWlyZWRJbnB1dCcsXG4gICAgICBvcGFjaXR5OiAwLFxuICAgICAgcG9pbnRlckV2ZW50czogJ25vbmUnLFxuICAgICAgcG9zaXRpb246ICdhYnNvbHV0ZScsXG4gICAgICBib3R0b206IDAsXG4gICAgICBsZWZ0OiAwLFxuICAgICAgcmlnaHQ6IDAsXG4gICAgICB3aWR0aDogJzEwMCUnLFxuICAgIH19XG4gICAgLy8gUHJldmVudCBgU3dpdGNoaW5nIGZyb20gdW5jb250cm9sbGVkIHRvIGNvbnRyb2xsZWRgIGVycm9yXG4gICAgdmFsdWU9XCJcIlxuICAgIG9uQ2hhbmdlPXsoKSA9PiB7fX1cbiAgLz5cbik7XG5cbmV4cG9ydCBkZWZhdWx0IFJlcXVpcmVkSW5wdXQ7XG4iXX0= */",
663
+ toString: Fn
664
+ }, Vn = function(n) {
665
+ var s = n.name, o = n.onFocus;
666
+ return Z("input", {
667
+ required: !0,
668
+ name: s,
669
+ tabIndex: -1,
670
+ "aria-hidden": "true",
671
+ onFocus: o,
672
+ css: An,
673
+ value: "",
674
+ onChange: function() {
675
+ }
676
+ });
677
+ }, On = Vn;
678
+ function he(u) {
679
+ var n;
680
+ return typeof window < "u" && window.navigator != null ? u.test(((n = window.navigator.userAgentData) === null || n === void 0 ? void 0 : n.platform) || window.navigator.platform) : !1;
681
+ }
682
+ function Dn() {
683
+ return he(/^iPhone/i);
684
+ }
685
+ function Je() {
686
+ return he(/^Mac/i);
687
+ }
688
+ function Sn() {
689
+ return he(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
690
+ Je() && navigator.maxTouchPoints > 1;
691
+ }
692
+ function xn() {
693
+ return Dn() || Sn();
694
+ }
695
+ function yn() {
696
+ return Je() || xn();
697
+ }
698
+ var Bn = function(n) {
699
+ return n.label;
700
+ }, Ye = function(n) {
701
+ return n.label;
702
+ }, ze = function(n) {
703
+ return n.value;
704
+ }, Mn = function(n) {
705
+ return !!n.isDisabled;
706
+ }, Gn = {
707
+ clearIndicator: Lt,
708
+ container: Gt,
709
+ control: Mt,
710
+ dropdownIndicator: Bt,
711
+ group: yt,
712
+ groupHeading: xt,
713
+ indicatorsContainer: St,
714
+ indicatorSeparator: Dt,
715
+ input: Ot,
716
+ loadingIndicator: Vt,
717
+ loadingMessage: At,
718
+ menu: Ft,
719
+ menuList: Et,
720
+ menuPortal: Ct,
721
+ multiValue: It,
722
+ multiValueLabel: ht,
723
+ multiValueRemove: mt,
724
+ noOptionsMessage: vt,
725
+ option: bt,
726
+ placeholder: gt,
727
+ singleValue: ft,
728
+ valueContainer: pt
729
+ }, Ln = {
730
+ primary: "#2684FF",
731
+ primary75: "#4C9AFF",
732
+ primary50: "#B2D4FF",
733
+ primary25: "#DEEBFF",
734
+ danger: "#DE350B",
735
+ dangerLight: "#FFBDAD",
736
+ neutral0: "hsl(0, 0%, 100%)",
737
+ neutral5: "hsl(0, 0%, 95%)",
738
+ neutral10: "hsl(0, 0%, 90%)",
739
+ neutral20: "hsl(0, 0%, 80%)",
740
+ neutral30: "hsl(0, 0%, 70%)",
741
+ neutral40: "hsl(0, 0%, 60%)",
742
+ neutral50: "hsl(0, 0%, 50%)",
743
+ neutral60: "hsl(0, 0%, 40%)",
744
+ neutral70: "hsl(0, 0%, 30%)",
745
+ neutral80: "hsl(0, 0%, 20%)",
746
+ neutral90: "hsl(0, 0%, 10%)"
747
+ }, Rn = 4, _e = 4, Wn = 38, Zn = _e * 2, Xn = {
748
+ baseUnit: _e,
749
+ controlHeight: Wn,
750
+ menuGutter: Zn
751
+ }, pe = {
752
+ borderRadius: Rn,
753
+ colors: Ln,
754
+ spacing: Xn
755
+ }, wn = {
756
+ "aria-live": "polite",
757
+ backspaceRemovesValue: !0,
758
+ blurInputOnSelect: Ve(),
759
+ captureMenuScroll: !Ve(),
760
+ classNames: {},
761
+ closeMenuOnSelect: !0,
762
+ closeMenuOnScroll: !1,
763
+ components: {},
764
+ controlShouldRenderValue: !0,
765
+ escapeClearsValue: !1,
766
+ filterOption: pn(),
767
+ formatGroupLabel: Bn,
768
+ getOptionLabel: Ye,
769
+ getOptionValue: ze,
770
+ isDisabled: !1,
771
+ isLoading: !1,
772
+ isMulti: !1,
773
+ isRtl: !1,
774
+ isSearchable: !0,
775
+ isOptionDisabled: Mn,
776
+ loadingMessage: function() {
777
+ return "Loading...";
778
+ },
779
+ maxMenuHeight: 300,
780
+ minMenuHeight: 140,
781
+ menuIsOpen: !1,
782
+ menuPlacement: "bottom",
783
+ menuPosition: "absolute",
784
+ menuShouldBlockScroll: !1,
785
+ menuShouldScrollIntoView: !wt(),
786
+ noOptionsMessage: function() {
787
+ return "No options";
788
+ },
789
+ openMenuOnFocus: !1,
790
+ openMenuOnClick: !0,
791
+ options: [],
792
+ pageSize: 5,
793
+ placeholder: "Select...",
794
+ screenReaderStatus: function(n) {
795
+ var s = n.count;
796
+ return "".concat(s, " result").concat(s !== 1 ? "s" : "", " available");
797
+ },
798
+ styles: {},
799
+ tabIndex: 0,
800
+ tabSelectsValue: !0,
801
+ unstyled: !1
802
+ };
803
+ function Ze(u, n, s, o) {
804
+ var e = Qe(u, n, s), i = $e(u, n, s), c = je(u, n), d = oe(u, n);
805
+ return {
806
+ type: "option",
807
+ data: n,
808
+ isDisabled: e,
809
+ isSelected: i,
810
+ label: c,
811
+ value: d,
812
+ index: o
813
+ };
814
+ }
815
+ function ue(u, n) {
816
+ return u.options.map(function(s, o) {
817
+ if ("options" in s) {
818
+ var e = s.options.map(function(c, d) {
819
+ return Ze(u, c, n, d);
820
+ }).filter(function(c) {
821
+ return we(u, c);
822
+ });
823
+ return e.length > 0 ? {
824
+ type: "group",
825
+ data: s,
826
+ options: e,
827
+ index: o
828
+ } : void 0;
829
+ }
830
+ var i = Ze(u, s, n, o);
831
+ return we(u, i) ? i : void 0;
832
+ }).filter(Zt);
833
+ }
834
+ function Ue(u) {
835
+ return u.reduce(function(n, s) {
836
+ return s.type === "group" ? n.push.apply(n, K(s.options.map(function(o) {
837
+ return o.data;
838
+ }))) : n.push(s.data), n;
839
+ }, []);
840
+ }
841
+ function Xe(u, n) {
842
+ return u.reduce(function(s, o) {
843
+ return o.type === "group" ? s.push.apply(s, K(o.options.map(function(e) {
844
+ return {
845
+ data: e.data,
846
+ id: "".concat(n, "-").concat(o.index, "-").concat(e.index)
847
+ };
848
+ }))) : s.push({
849
+ data: o.data,
850
+ id: "".concat(n, "-").concat(o.index)
851
+ }), s;
852
+ }, []);
853
+ }
854
+ function Tn(u, n) {
855
+ return Ue(ue(u, n));
856
+ }
857
+ function we(u, n) {
858
+ var s = u.inputValue, o = s === void 0 ? "" : s, e = n.data, i = n.isSelected, c = n.label, d = n.value;
859
+ return (!qe(u) || !i) && Ke(u, {
860
+ label: c,
861
+ value: d,
862
+ data: e
863
+ }, o);
864
+ }
865
+ function Nn(u, n) {
866
+ var s = u.focusedValue, o = u.selectValue, e = o.indexOf(s);
867
+ if (e > -1) {
868
+ var i = n.indexOf(s);
869
+ if (i > -1)
870
+ return s;
871
+ if (e < n.length)
872
+ return n[e];
873
+ }
874
+ return null;
875
+ }
876
+ function Pn(u, n) {
877
+ var s = u.focusedOption;
878
+ return s && n.indexOf(s) > -1 ? s : n[0];
879
+ }
880
+ var fe = function(n, s) {
881
+ var o, e = (o = n.find(function(i) {
882
+ return i.data === s;
883
+ })) === null || o === void 0 ? void 0 : o.id;
884
+ return e || null;
885
+ }, je = function(n, s) {
886
+ return n.getOptionLabel(s);
887
+ }, oe = function(n, s) {
888
+ return n.getOptionValue(s);
889
+ };
890
+ function Qe(u, n, s) {
891
+ return typeof u.isOptionDisabled == "function" ? u.isOptionDisabled(n, s) : !1;
892
+ }
893
+ function $e(u, n, s) {
894
+ if (s.indexOf(n) > -1) return !0;
895
+ if (typeof u.isOptionSelected == "function")
896
+ return u.isOptionSelected(n, s);
897
+ var o = oe(u, n);
898
+ return s.some(function(e) {
899
+ return oe(u, e) === o;
900
+ });
901
+ }
902
+ function Ke(u, n, s) {
903
+ return u.filterOption ? u.filterOption(n, s) : !0;
904
+ }
905
+ var qe = function(n) {
906
+ var s = n.hideSelectedOptions, o = n.isMulti;
907
+ return s === void 0 ? o : s;
908
+ }, kn = 1, et = /* @__PURE__ */ (function(u) {
909
+ Qt(s, u);
910
+ var n = Kt(s);
911
+ function s(o) {
912
+ var e;
913
+ if (Ut(this, s), e = n.call(this, o), e.state = {
914
+ ariaSelection: null,
915
+ focusedOption: null,
916
+ focusedOptionId: null,
917
+ focusableOptionsWithIds: [],
918
+ focusedValue: null,
919
+ inputIsHidden: !1,
920
+ isFocused: !1,
921
+ selectValue: [],
922
+ clearFocusValueOnUpdate: !1,
923
+ prevWasFocused: !1,
924
+ inputIsHiddenAfterUpdate: void 0,
925
+ prevProps: void 0,
926
+ instancePrefix: ""
927
+ }, e.blockOptionHover = !1, e.isComposing = !1, e.commonProps = void 0, e.initialTouchX = 0, e.initialTouchY = 0, e.openAfterFocus = !1, e.scrollToFocusedOptionOnUpdate = !1, e.userIsDragging = void 0, e.isAppleDevice = yn(), e.controlRef = null, e.getControlRef = function(t) {
928
+ e.controlRef = t;
929
+ }, e.focusedOptionRef = null, e.getFocusedOptionRef = function(t) {
930
+ e.focusedOptionRef = t;
931
+ }, e.menuListRef = null, e.getMenuListRef = function(t) {
932
+ e.menuListRef = t;
933
+ }, e.inputRef = null, e.getInputRef = function(t) {
934
+ e.inputRef = t;
935
+ }, e.focus = e.focusInput, e.blur = e.blurInput, e.onChange = function(t, a) {
936
+ var r = e.props, l = r.onChange, g = r.name;
937
+ a.name = g, e.ariaOnChange(t, a), l(t, a);
938
+ }, e.setValue = function(t, a, r) {
939
+ var l = e.props, g = l.closeMenuOnSelect, f = l.isMulti, v = l.inputValue;
940
+ e.onInputChange("", {
941
+ action: "set-value",
942
+ prevInputValue: v
943
+ }), g && (e.setState({
944
+ inputIsHiddenAfterUpdate: !f
945
+ }), e.onMenuClose()), e.setState({
946
+ clearFocusValueOnUpdate: !0
947
+ }), e.onChange(t, {
948
+ action: a,
949
+ option: r
950
+ });
951
+ }, e.selectOption = function(t) {
952
+ var a = e.props, r = a.blurInputOnSelect, l = a.isMulti, g = a.name, f = e.state.selectValue, v = l && e.isOptionSelected(t, f), b = e.isOptionDisabled(t, f);
953
+ if (v) {
954
+ var p = e.getOptionValue(t);
955
+ e.setValue(Fe(f.filter(function(m) {
956
+ return e.getOptionValue(m) !== p;
957
+ })), "deselect-option", t);
958
+ } else if (!b)
959
+ l ? e.setValue(Fe([].concat(K(f), [t])), "select-option", t) : e.setValue(Ae(t), "select-option");
960
+ else {
961
+ e.ariaOnChange(Ae(t), {
962
+ action: "select-option",
963
+ option: t,
964
+ name: g
965
+ });
966
+ return;
967
+ }
968
+ r && e.blurInput();
969
+ }, e.removeValue = function(t) {
970
+ var a = e.props.isMulti, r = e.state.selectValue, l = e.getOptionValue(t), g = r.filter(function(v) {
971
+ return e.getOptionValue(v) !== l;
972
+ }), f = ee(a, g, g[0] || null);
973
+ e.onChange(f, {
974
+ action: "remove-value",
975
+ removedValue: t
976
+ }), e.focusInput();
977
+ }, e.clearValue = function() {
978
+ var t = e.state.selectValue;
979
+ e.onChange(ee(e.props.isMulti, [], null), {
980
+ action: "clear",
981
+ removedValues: t
982
+ });
983
+ }, e.popValue = function() {
984
+ var t = e.props.isMulti, a = e.state.selectValue, r = a[a.length - 1], l = a.slice(0, a.length - 1), g = ee(t, l, l[0] || null);
985
+ r && e.onChange(g, {
986
+ action: "pop-value",
987
+ removedValue: r
988
+ });
989
+ }, e.getFocusedOptionId = function(t) {
990
+ return fe(e.state.focusableOptionsWithIds, t);
991
+ }, e.getFocusableOptionsWithIds = function() {
992
+ return Xe(ue(e.props, e.state.selectValue), e.getElementId("option"));
993
+ }, e.getValue = function() {
994
+ return e.state.selectValue;
995
+ }, e.cx = function() {
996
+ for (var t = arguments.length, a = new Array(t), r = 0; r < t; r++)
997
+ a[r] = arguments[r];
998
+ return dt.apply(void 0, [e.props.classNamePrefix].concat(a));
999
+ }, e.getOptionLabel = function(t) {
1000
+ return je(e.props, t);
1001
+ }, e.getOptionValue = function(t) {
1002
+ return oe(e.props, t);
1003
+ }, e.getStyles = function(t, a) {
1004
+ var r = e.props.unstyled, l = Gn[t](a, r);
1005
+ l.boxSizing = "border-box";
1006
+ var g = e.props.styles[t];
1007
+ return g ? g(l, a) : l;
1008
+ }, e.getClassNames = function(t, a) {
1009
+ var r, l;
1010
+ return (r = (l = e.props.classNames)[t]) === null || r === void 0 ? void 0 : r.call(l, a);
1011
+ }, e.getElementId = function(t) {
1012
+ return "".concat(e.state.instancePrefix, "-").concat(t);
1013
+ }, e.getComponents = function() {
1014
+ return Rt(e.props);
1015
+ }, e.buildCategorizedOptions = function() {
1016
+ return ue(e.props, e.state.selectValue);
1017
+ }, e.getCategorizedOptions = function() {
1018
+ return e.props.menuIsOpen ? e.buildCategorizedOptions() : [];
1019
+ }, e.buildFocusableOptions = function() {
1020
+ return Ue(e.buildCategorizedOptions());
1021
+ }, e.getFocusableOptions = function() {
1022
+ return e.props.menuIsOpen ? e.buildFocusableOptions() : [];
1023
+ }, e.ariaOnChange = function(t, a) {
1024
+ e.setState({
1025
+ ariaSelection: G({
1026
+ value: t
1027
+ }, a)
1028
+ });
1029
+ }, e.onMenuMouseDown = function(t) {
1030
+ t.button === 0 && (t.stopPropagation(), t.preventDefault(), e.focusInput());
1031
+ }, e.onMenuMouseMove = function(t) {
1032
+ e.blockOptionHover = !1;
1033
+ }, e.onControlMouseDown = function(t) {
1034
+ if (!t.defaultPrevented) {
1035
+ var a = e.props.openMenuOnClick;
1036
+ e.state.isFocused ? e.props.menuIsOpen ? t.target.tagName !== "INPUT" && t.target.tagName !== "TEXTAREA" && e.onMenuClose() : a && e.openMenu("first") : (a && (e.openAfterFocus = !0), e.focusInput()), t.target.tagName !== "INPUT" && t.target.tagName !== "TEXTAREA" && t.preventDefault();
1037
+ }
1038
+ }, e.onDropdownIndicatorMouseDown = function(t) {
1039
+ if (!(t && t.type === "mousedown" && t.button !== 0) && !e.props.isDisabled) {
1040
+ var a = e.props, r = a.isMulti, l = a.menuIsOpen;
1041
+ e.focusInput(), l ? (e.setState({
1042
+ inputIsHiddenAfterUpdate: !r
1043
+ }), e.onMenuClose()) : e.openMenu("first"), t.preventDefault();
1044
+ }
1045
+ }, e.onClearIndicatorMouseDown = function(t) {
1046
+ t && t.type === "mousedown" && t.button !== 0 || (e.clearValue(), t.preventDefault(), e.openAfterFocus = !1, t.type === "touchend" ? e.focusInput() : setTimeout(function() {
1047
+ return e.focusInput();
1048
+ }));
1049
+ }, e.onScroll = function(t) {
1050
+ typeof e.props.closeMenuOnScroll == "boolean" ? t.target instanceof HTMLElement && Wt(t.target) && e.props.onMenuClose() : typeof e.props.closeMenuOnScroll == "function" && e.props.closeMenuOnScroll(t) && e.props.onMenuClose();
1051
+ }, e.onCompositionStart = function() {
1052
+ e.isComposing = !0;
1053
+ }, e.onCompositionEnd = function() {
1054
+ e.isComposing = !1;
1055
+ }, e.onTouchStart = function(t) {
1056
+ var a = t.touches, r = a && a.item(0);
1057
+ r && (e.initialTouchX = r.clientX, e.initialTouchY = r.clientY, e.userIsDragging = !1);
1058
+ }, e.onTouchMove = function(t) {
1059
+ var a = t.touches, r = a && a.item(0);
1060
+ if (r) {
1061
+ var l = Math.abs(r.clientX - e.initialTouchX), g = Math.abs(r.clientY - e.initialTouchY), f = 5;
1062
+ e.userIsDragging = l > f || g > f;
1063
+ }
1064
+ }, e.onTouchEnd = function(t) {
1065
+ e.userIsDragging || (e.controlRef && !e.controlRef.contains(t.target) && e.menuListRef && !e.menuListRef.contains(t.target) && e.blurInput(), e.initialTouchX = 0, e.initialTouchY = 0);
1066
+ }, e.onControlTouchEnd = function(t) {
1067
+ e.userIsDragging || e.onControlMouseDown(t);
1068
+ }, e.onClearIndicatorTouchEnd = function(t) {
1069
+ e.userIsDragging || e.onClearIndicatorMouseDown(t);
1070
+ }, e.onDropdownIndicatorTouchEnd = function(t) {
1071
+ e.userIsDragging || e.onDropdownIndicatorMouseDown(t);
1072
+ }, e.handleInputChange = function(t) {
1073
+ var a = e.props.inputValue, r = t.currentTarget.value;
1074
+ e.setState({
1075
+ inputIsHiddenAfterUpdate: !1
1076
+ }), e.onInputChange(r, {
1077
+ action: "input-change",
1078
+ prevInputValue: a
1079
+ }), e.props.menuIsOpen || e.onMenuOpen();
1080
+ }, e.onInputFocus = function(t) {
1081
+ e.props.onFocus && e.props.onFocus(t), e.setState({
1082
+ inputIsHiddenAfterUpdate: !1,
1083
+ isFocused: !0
1084
+ }), (e.openAfterFocus || e.props.openMenuOnFocus) && e.openMenu("first"), e.openAfterFocus = !1;
1085
+ }, e.onInputBlur = function(t) {
1086
+ var a = e.props.inputValue;
1087
+ if (e.menuListRef && e.menuListRef.contains(document.activeElement)) {
1088
+ e.inputRef.focus();
1089
+ return;
1090
+ }
1091
+ e.props.onBlur && e.props.onBlur(t), e.onInputChange("", {
1092
+ action: "input-blur",
1093
+ prevInputValue: a
1094
+ }), e.onMenuClose(), e.setState({
1095
+ focusedValue: null,
1096
+ isFocused: !1
1097
+ });
1098
+ }, e.onOptionHover = function(t) {
1099
+ if (!(e.blockOptionHover || e.state.focusedOption === t)) {
1100
+ var a = e.getFocusableOptions(), r = a.indexOf(t);
1101
+ e.setState({
1102
+ focusedOption: t,
1103
+ focusedOptionId: r > -1 ? e.getFocusedOptionId(t) : null
1104
+ });
1105
+ }
1106
+ }, e.shouldHideSelectedOptions = function() {
1107
+ return qe(e.props);
1108
+ }, e.onValueInputFocus = function(t) {
1109
+ t.preventDefault(), t.stopPropagation(), e.focus();
1110
+ }, e.onKeyDown = function(t) {
1111
+ var a = e.props, r = a.isMulti, l = a.backspaceRemovesValue, g = a.escapeClearsValue, f = a.inputValue, v = a.isClearable, b = a.isDisabled, p = a.menuIsOpen, m = a.onKeyDown, E = a.tabSelectsValue, F = a.openMenuOnFocus, I = e.state, A = I.focusedOption, S = I.focusedValue, O = I.selectValue;
1112
+ if (!b && !(typeof m == "function" && (m(t), t.defaultPrevented))) {
1113
+ switch (e.blockOptionHover = !0, t.key) {
1114
+ case "ArrowLeft":
1115
+ if (!r || f) return;
1116
+ e.focusValue("previous");
1117
+ break;
1118
+ case "ArrowRight":
1119
+ if (!r || f) return;
1120
+ e.focusValue("next");
1121
+ break;
1122
+ case "Delete":
1123
+ case "Backspace":
1124
+ if (f) return;
1125
+ if (S)
1126
+ e.removeValue(S);
1127
+ else {
1128
+ if (!l) return;
1129
+ r ? e.popValue() : v && e.clearValue();
1130
+ }
1131
+ break;
1132
+ case "Tab":
1133
+ if (e.isComposing || t.shiftKey || !p || !E || !A || // don't capture the event if the menu opens on focus and the focused
1134
+ // option is already selected; it breaks the flow of navigation
1135
+ F && e.isOptionSelected(A, O))
1136
+ return;
1137
+ e.selectOption(A);
1138
+ break;
1139
+ case "Enter":
1140
+ if (t.keyCode === 229)
1141
+ break;
1142
+ if (p) {
1143
+ if (!A || e.isComposing) return;
1144
+ e.selectOption(A);
1145
+ break;
1146
+ }
1147
+ return;
1148
+ case "Escape":
1149
+ p ? (e.setState({
1150
+ inputIsHiddenAfterUpdate: !1
1151
+ }), e.onInputChange("", {
1152
+ action: "menu-close",
1153
+ prevInputValue: f
1154
+ }), e.onMenuClose()) : v && g && e.clearValue();
1155
+ break;
1156
+ case " ":
1157
+ if (f)
1158
+ return;
1159
+ if (!p) {
1160
+ e.openMenu("first");
1161
+ break;
1162
+ }
1163
+ if (!A) return;
1164
+ e.selectOption(A);
1165
+ break;
1166
+ case "ArrowUp":
1167
+ p ? e.focusOption("up") : e.openMenu("last");
1168
+ break;
1169
+ case "ArrowDown":
1170
+ p ? e.focusOption("down") : e.openMenu("first");
1171
+ break;
1172
+ case "PageUp":
1173
+ if (!p) return;
1174
+ e.focusOption("pageup");
1175
+ break;
1176
+ case "PageDown":
1177
+ if (!p) return;
1178
+ e.focusOption("pagedown");
1179
+ break;
1180
+ case "Home":
1181
+ if (!p) return;
1182
+ e.focusOption("first");
1183
+ break;
1184
+ case "End":
1185
+ if (!p) return;
1186
+ e.focusOption("last");
1187
+ break;
1188
+ default:
1189
+ return;
1190
+ }
1191
+ t.preventDefault();
1192
+ }
1193
+ }, e.state.instancePrefix = "react-select-" + (e.props.instanceId || ++kn), e.state.selectValue = ae(o.value), o.menuIsOpen && e.state.selectValue.length) {
1194
+ var i = e.getFocusableOptionsWithIds(), c = e.buildFocusableOptions(), d = c.indexOf(e.state.selectValue[0]);
1195
+ e.state.focusableOptionsWithIds = i, e.state.focusedOption = c[d], e.state.focusedOptionId = fe(i, c[d]);
1196
+ }
1197
+ return e;
1198
+ }
1199
+ return jt(s, [{
1200
+ key: "componentDidMount",
1201
+ value: function() {
1202
+ this.startListeningComposition(), this.startListeningToTouch(), this.props.closeMenuOnScroll && document && document.addEventListener && document.addEventListener("scroll", this.onScroll, !0), this.props.autoFocus && this.focusInput(), this.props.menuIsOpen && this.state.focusedOption && this.menuListRef && this.focusedOptionRef && Oe(this.menuListRef, this.focusedOptionRef);
1203
+ }
1204
+ }, {
1205
+ key: "componentDidUpdate",
1206
+ value: function(e) {
1207
+ var i = this.props, c = i.isDisabled, d = i.menuIsOpen, t = this.state.isFocused;
1208
+ // ensure focus is restored correctly when the control becomes enabled
1209
+ (t && !c && e.isDisabled || // ensure focus is on the Input when the menu opens
1210
+ t && d && !e.menuIsOpen) && this.focusInput(), t && c && !e.isDisabled ? this.setState({
1211
+ isFocused: !1
1212
+ }, this.onMenuClose) : !t && !c && e.isDisabled && this.inputRef === document.activeElement && this.setState({
1213
+ isFocused: !0
1214
+ }), this.menuListRef && this.focusedOptionRef && this.scrollToFocusedOptionOnUpdate && (Oe(this.menuListRef, this.focusedOptionRef), this.scrollToFocusedOptionOnUpdate = !1);
1215
+ }
1216
+ }, {
1217
+ key: "componentWillUnmount",
1218
+ value: function() {
1219
+ this.stopListeningComposition(), this.stopListeningToTouch(), document.removeEventListener("scroll", this.onScroll, !0);
1220
+ }
1221
+ // ==============================
1222
+ // Consumer Handlers
1223
+ // ==============================
1224
+ }, {
1225
+ key: "onMenuOpen",
1226
+ value: function() {
1227
+ this.props.onMenuOpen();
1228
+ }
1229
+ }, {
1230
+ key: "onMenuClose",
1231
+ value: function() {
1232
+ this.onInputChange("", {
1233
+ action: "menu-close",
1234
+ prevInputValue: this.props.inputValue
1235
+ }), this.props.onMenuClose();
1236
+ }
1237
+ }, {
1238
+ key: "onInputChange",
1239
+ value: function(e, i) {
1240
+ this.props.onInputChange(e, i);
1241
+ }
1242
+ // ==============================
1243
+ // Methods
1244
+ // ==============================
1245
+ }, {
1246
+ key: "focusInput",
1247
+ value: function() {
1248
+ this.inputRef && this.inputRef.focus();
1249
+ }
1250
+ }, {
1251
+ key: "blurInput",
1252
+ value: function() {
1253
+ this.inputRef && this.inputRef.blur();
1254
+ }
1255
+ // aliased for consumers
1256
+ }, {
1257
+ key: "openMenu",
1258
+ value: function(e) {
1259
+ var i = this, c = this.state, d = c.selectValue, t = c.isFocused, a = this.buildFocusableOptions(), r = e === "first" ? 0 : a.length - 1;
1260
+ if (!this.props.isMulti) {
1261
+ var l = a.indexOf(d[0]);
1262
+ l > -1 && (r = l);
1263
+ }
1264
+ this.scrollToFocusedOptionOnUpdate = !(t && this.menuListRef), this.setState({
1265
+ inputIsHiddenAfterUpdate: !1,
1266
+ focusedValue: null,
1267
+ focusedOption: a[r],
1268
+ focusedOptionId: this.getFocusedOptionId(a[r])
1269
+ }, function() {
1270
+ return i.onMenuOpen();
1271
+ });
1272
+ }
1273
+ }, {
1274
+ key: "focusValue",
1275
+ value: function(e) {
1276
+ var i = this.state, c = i.selectValue, d = i.focusedValue;
1277
+ if (this.props.isMulti) {
1278
+ this.setState({
1279
+ focusedOption: null
1280
+ });
1281
+ var t = c.indexOf(d);
1282
+ d || (t = -1);
1283
+ var a = c.length - 1, r = -1;
1284
+ if (c.length) {
1285
+ switch (e) {
1286
+ case "previous":
1287
+ t === 0 ? r = 0 : t === -1 ? r = a : r = t - 1;
1288
+ break;
1289
+ case "next":
1290
+ t > -1 && t < a && (r = t + 1);
1291
+ break;
1292
+ }
1293
+ this.setState({
1294
+ inputIsHidden: r !== -1,
1295
+ focusedValue: c[r]
1296
+ });
1297
+ }
1298
+ }
1299
+ }
1300
+ }, {
1301
+ key: "focusOption",
1302
+ value: function() {
1303
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "first", i = this.props.pageSize, c = this.state.focusedOption, d = this.getFocusableOptions();
1304
+ if (d.length) {
1305
+ var t = 0, a = d.indexOf(c);
1306
+ c || (a = -1), e === "up" ? t = a > 0 ? a - 1 : d.length - 1 : e === "down" ? t = (a + 1) % d.length : e === "pageup" ? (t = a - i, t < 0 && (t = 0)) : e === "pagedown" ? (t = a + i, t > d.length - 1 && (t = d.length - 1)) : e === "last" && (t = d.length - 1), this.scrollToFocusedOptionOnUpdate = !0, this.setState({
1307
+ focusedOption: d[t],
1308
+ focusedValue: null,
1309
+ focusedOptionId: this.getFocusedOptionId(d[t])
1310
+ });
1311
+ }
1312
+ }
1313
+ }, {
1314
+ key: "getTheme",
1315
+ value: (
1316
+ // ==============================
1317
+ // Getters
1318
+ // ==============================
1319
+ function() {
1320
+ return this.props.theme ? typeof this.props.theme == "function" ? this.props.theme(pe) : G(G({}, pe), this.props.theme) : pe;
1321
+ }
1322
+ )
1323
+ }, {
1324
+ key: "getCommonProps",
1325
+ value: function() {
1326
+ var e = this.clearValue, i = this.cx, c = this.getStyles, d = this.getClassNames, t = this.getValue, a = this.selectOption, r = this.setValue, l = this.props, g = l.isMulti, f = l.isRtl, v = l.options, b = this.hasValue();
1327
+ return {
1328
+ clearValue: e,
1329
+ cx: i,
1330
+ getStyles: c,
1331
+ getClassNames: d,
1332
+ getValue: t,
1333
+ hasValue: b,
1334
+ isMulti: g,
1335
+ isRtl: f,
1336
+ options: v,
1337
+ selectOption: a,
1338
+ selectProps: l,
1339
+ setValue: r,
1340
+ theme: this.getTheme()
1341
+ };
1342
+ }
1343
+ }, {
1344
+ key: "hasValue",
1345
+ value: function() {
1346
+ var e = this.state.selectValue;
1347
+ return e.length > 0;
1348
+ }
1349
+ }, {
1350
+ key: "hasOptions",
1351
+ value: function() {
1352
+ return !!this.getFocusableOptions().length;
1353
+ }
1354
+ }, {
1355
+ key: "isClearable",
1356
+ value: function() {
1357
+ var e = this.props, i = e.isClearable, c = e.isMulti;
1358
+ return i === void 0 ? c : i;
1359
+ }
1360
+ }, {
1361
+ key: "isOptionDisabled",
1362
+ value: function(e, i) {
1363
+ return Qe(this.props, e, i);
1364
+ }
1365
+ }, {
1366
+ key: "isOptionSelected",
1367
+ value: function(e, i) {
1368
+ return $e(this.props, e, i);
1369
+ }
1370
+ }, {
1371
+ key: "filterOption",
1372
+ value: function(e, i) {
1373
+ return Ke(this.props, e, i);
1374
+ }
1375
+ }, {
1376
+ key: "formatOptionLabel",
1377
+ value: function(e, i) {
1378
+ if (typeof this.props.formatOptionLabel == "function") {
1379
+ var c = this.props.inputValue, d = this.state.selectValue;
1380
+ return this.props.formatOptionLabel(e, {
1381
+ context: i,
1382
+ inputValue: c,
1383
+ selectValue: d
1384
+ });
1385
+ } else
1386
+ return this.getOptionLabel(e);
1387
+ }
1388
+ }, {
1389
+ key: "formatGroupLabel",
1390
+ value: function(e) {
1391
+ return this.props.formatGroupLabel(e);
1392
+ }
1393
+ // ==============================
1394
+ // Mouse Handlers
1395
+ // ==============================
1396
+ }, {
1397
+ key: "startListeningComposition",
1398
+ value: (
1399
+ // ==============================
1400
+ // Composition Handlers
1401
+ // ==============================
1402
+ function() {
1403
+ document && document.addEventListener && (document.addEventListener("compositionstart", this.onCompositionStart, !1), document.addEventListener("compositionend", this.onCompositionEnd, !1));
1404
+ }
1405
+ )
1406
+ }, {
1407
+ key: "stopListeningComposition",
1408
+ value: function() {
1409
+ document && document.removeEventListener && (document.removeEventListener("compositionstart", this.onCompositionStart), document.removeEventListener("compositionend", this.onCompositionEnd));
1410
+ }
1411
+ }, {
1412
+ key: "startListeningToTouch",
1413
+ value: (
1414
+ // ==============================
1415
+ // Touch Handlers
1416
+ // ==============================
1417
+ function() {
1418
+ document && document.addEventListener && (document.addEventListener("touchstart", this.onTouchStart, !1), document.addEventListener("touchmove", this.onTouchMove, !1), document.addEventListener("touchend", this.onTouchEnd, !1));
1419
+ }
1420
+ )
1421
+ }, {
1422
+ key: "stopListeningToTouch",
1423
+ value: function() {
1424
+ document && document.removeEventListener && (document.removeEventListener("touchstart", this.onTouchStart), document.removeEventListener("touchmove", this.onTouchMove), document.removeEventListener("touchend", this.onTouchEnd));
1425
+ }
1426
+ }, {
1427
+ key: "renderInput",
1428
+ value: (
1429
+ // ==============================
1430
+ // Renderers
1431
+ // ==============================
1432
+ function() {
1433
+ var e = this.props, i = e.isDisabled, c = e.isSearchable, d = e.inputId, t = e.inputValue, a = e.tabIndex, r = e.form, l = e.menuIsOpen, g = e.required, f = this.getComponents(), v = f.Input, b = this.state, p = b.inputIsHidden, m = b.ariaSelection, E = this.commonProps, F = d || this.getElementId("input"), I = G(G(G({
1434
+ "aria-autocomplete": "list",
1435
+ "aria-expanded": l,
1436
+ "aria-haspopup": !0,
1437
+ "aria-errormessage": this.props["aria-errormessage"],
1438
+ "aria-invalid": this.props["aria-invalid"],
1439
+ "aria-label": this.props["aria-label"],
1440
+ "aria-labelledby": this.props["aria-labelledby"],
1441
+ "aria-required": g,
1442
+ role: "combobox",
1443
+ "aria-activedescendant": this.isAppleDevice ? void 0 : this.state.focusedOptionId || ""
1444
+ }, l && {
1445
+ "aria-controls": this.getElementId("listbox")
1446
+ }), !c && {
1447
+ "aria-readonly": !0
1448
+ }), this.hasValue() ? m?.action === "initial-input-focus" && {
1449
+ "aria-describedby": this.getElementId("live-region")
1450
+ } : {
1451
+ "aria-describedby": this.getElementId("placeholder")
1452
+ });
1453
+ return c ? /* @__PURE__ */ C.createElement(v, V({}, E, {
1454
+ autoCapitalize: "none",
1455
+ autoComplete: "off",
1456
+ autoCorrect: "off",
1457
+ id: F,
1458
+ innerRef: this.getInputRef,
1459
+ isDisabled: i,
1460
+ isHidden: p,
1461
+ onBlur: this.onInputBlur,
1462
+ onChange: this.handleInputChange,
1463
+ onFocus: this.onInputFocus,
1464
+ spellCheck: "false",
1465
+ tabIndex: a,
1466
+ form: r,
1467
+ type: "text",
1468
+ value: t
1469
+ }, I)) : /* @__PURE__ */ C.createElement(gn, V({
1470
+ id: F,
1471
+ innerRef: this.getInputRef,
1472
+ onBlur: this.onInputBlur,
1473
+ onChange: Tt,
1474
+ onFocus: this.onInputFocus,
1475
+ disabled: i,
1476
+ tabIndex: a,
1477
+ inputMode: "none",
1478
+ form: r,
1479
+ value: ""
1480
+ }, I));
1481
+ }
1482
+ )
1483
+ }, {
1484
+ key: "renderPlaceholderOrValue",
1485
+ value: function() {
1486
+ var e = this, i = this.getComponents(), c = i.MultiValue, d = i.MultiValueContainer, t = i.MultiValueLabel, a = i.MultiValueRemove, r = i.SingleValue, l = i.Placeholder, g = this.commonProps, f = this.props, v = f.controlShouldRenderValue, b = f.isDisabled, p = f.isMulti, m = f.inputValue, E = f.placeholder, F = this.state, I = F.selectValue, A = F.focusedValue, S = F.isFocused;
1487
+ if (!this.hasValue() || !v)
1488
+ return m ? null : /* @__PURE__ */ C.createElement(l, V({}, g, {
1489
+ key: "placeholder",
1490
+ isDisabled: b,
1491
+ isFocused: S,
1492
+ innerProps: {
1493
+ id: this.getElementId("placeholder")
1494
+ }
1495
+ }), E);
1496
+ if (p)
1497
+ return I.map(function(h, D) {
1498
+ var L = h === A, R = "".concat(e.getOptionLabel(h), "-").concat(e.getOptionValue(h));
1499
+ return /* @__PURE__ */ C.createElement(c, V({}, g, {
1500
+ components: {
1501
+ Container: d,
1502
+ Label: t,
1503
+ Remove: a
1504
+ },
1505
+ isFocused: L,
1506
+ isDisabled: b,
1507
+ key: R,
1508
+ index: D,
1509
+ removeProps: {
1510
+ onClick: function() {
1511
+ return e.removeValue(h);
1512
+ },
1513
+ onTouchEnd: function() {
1514
+ return e.removeValue(h);
1515
+ },
1516
+ onMouseDown: function(T) {
1517
+ T.preventDefault();
1518
+ }
1519
+ },
1520
+ data: h
1521
+ }), e.formatOptionLabel(h, "value"));
1522
+ });
1523
+ if (m)
1524
+ return null;
1525
+ var O = I[0];
1526
+ return /* @__PURE__ */ C.createElement(r, V({}, g, {
1527
+ data: O,
1528
+ isDisabled: b
1529
+ }), this.formatOptionLabel(O, "value"));
1530
+ }
1531
+ }, {
1532
+ key: "renderClearIndicator",
1533
+ value: function() {
1534
+ var e = this.getComponents(), i = e.ClearIndicator, c = this.commonProps, d = this.props, t = d.isDisabled, a = d.isLoading, r = this.state.isFocused;
1535
+ if (!this.isClearable() || !i || t || !this.hasValue() || a)
1536
+ return null;
1537
+ var l = {
1538
+ onMouseDown: this.onClearIndicatorMouseDown,
1539
+ onTouchEnd: this.onClearIndicatorTouchEnd,
1540
+ "aria-hidden": "true"
1541
+ };
1542
+ return /* @__PURE__ */ C.createElement(i, V({}, c, {
1543
+ innerProps: l,
1544
+ isFocused: r
1545
+ }));
1546
+ }
1547
+ }, {
1548
+ key: "renderLoadingIndicator",
1549
+ value: function() {
1550
+ var e = this.getComponents(), i = e.LoadingIndicator, c = this.commonProps, d = this.props, t = d.isDisabled, a = d.isLoading, r = this.state.isFocused;
1551
+ if (!i || !a) return null;
1552
+ var l = {
1553
+ "aria-hidden": "true"
1554
+ };
1555
+ return /* @__PURE__ */ C.createElement(i, V({}, c, {
1556
+ innerProps: l,
1557
+ isDisabled: t,
1558
+ isFocused: r
1559
+ }));
1560
+ }
1561
+ }, {
1562
+ key: "renderIndicatorSeparator",
1563
+ value: function() {
1564
+ var e = this.getComponents(), i = e.DropdownIndicator, c = e.IndicatorSeparator;
1565
+ if (!i || !c) return null;
1566
+ var d = this.commonProps, t = this.props.isDisabled, a = this.state.isFocused;
1567
+ return /* @__PURE__ */ C.createElement(c, V({}, d, {
1568
+ isDisabled: t,
1569
+ isFocused: a
1570
+ }));
1571
+ }
1572
+ }, {
1573
+ key: "renderDropdownIndicator",
1574
+ value: function() {
1575
+ var e = this.getComponents(), i = e.DropdownIndicator;
1576
+ if (!i) return null;
1577
+ var c = this.commonProps, d = this.props.isDisabled, t = this.state.isFocused, a = {
1578
+ onMouseDown: this.onDropdownIndicatorMouseDown,
1579
+ onTouchEnd: this.onDropdownIndicatorTouchEnd,
1580
+ "aria-hidden": "true"
1581
+ };
1582
+ return /* @__PURE__ */ C.createElement(i, V({}, c, {
1583
+ innerProps: a,
1584
+ isDisabled: d,
1585
+ isFocused: t
1586
+ }));
1587
+ }
1588
+ }, {
1589
+ key: "renderMenu",
1590
+ value: function() {
1591
+ var e = this, i = this.getComponents(), c = i.Group, d = i.GroupHeading, t = i.Menu, a = i.MenuList, r = i.MenuPortal, l = i.LoadingMessage, g = i.NoOptionsMessage, f = i.Option, v = this.commonProps, b = this.state.focusedOption, p = this.props, m = p.captureMenuScroll, E = p.inputValue, F = p.isLoading, I = p.loadingMessage, A = p.minMenuHeight, S = p.maxMenuHeight, O = p.menuIsOpen, h = p.menuPlacement, D = p.menuPosition, L = p.menuPortalTarget, R = p.menuShouldBlockScroll, M = p.menuShouldScrollIntoView, T = p.noOptionsMessage, k = p.onMenuScrollToTop, x = p.onMenuScrollToBottom;
1592
+ if (!O) return null;
1593
+ var B = function(W, H) {
1594
+ var _ = W.type, N = W.data, U = W.isDisabled, J = W.isSelected, ne = W.label, tt = W.value, Ie = b === N, Ce = U ? void 0 : function() {
1595
+ return e.onOptionHover(N);
1596
+ }, nt = U ? void 0 : function() {
1597
+ return e.selectOption(N);
1598
+ }, Ee = "".concat(e.getElementId("option"), "-").concat(H), ut = {
1599
+ id: Ee,
1600
+ onClick: nt,
1601
+ onMouseMove: Ce,
1602
+ onMouseOver: Ce,
1603
+ tabIndex: -1,
1604
+ role: "option",
1605
+ "aria-selected": e.isAppleDevice ? void 0 : J
1606
+ // is not supported on Apple devices
1607
+ };
1608
+ return /* @__PURE__ */ C.createElement(f, V({}, v, {
1609
+ innerProps: ut,
1610
+ data: N,
1611
+ isDisabled: U,
1612
+ isSelected: J,
1613
+ key: Ee,
1614
+ label: ne,
1615
+ type: _,
1616
+ value: tt,
1617
+ isFocused: Ie,
1618
+ innerRef: Ie ? e.getFocusedOptionRef : void 0
1619
+ }), e.formatOptionLabel(W.data, "menu"));
1620
+ }, P;
1621
+ if (this.hasOptions())
1622
+ P = this.getCategorizedOptions().map(function(y) {
1623
+ if (y.type === "group") {
1624
+ var W = y.data, H = y.options, _ = y.index, N = "".concat(e.getElementId("group"), "-").concat(_), U = "".concat(N, "-heading");
1625
+ return /* @__PURE__ */ C.createElement(c, V({}, v, {
1626
+ key: N,
1627
+ data: W,
1628
+ options: H,
1629
+ Heading: d,
1630
+ headingProps: {
1631
+ id: U,
1632
+ data: y.data
1633
+ },
1634
+ label: e.formatGroupLabel(y.data)
1635
+ }), y.options.map(function(J) {
1636
+ return B(J, "".concat(_, "-").concat(J.index));
1637
+ }));
1638
+ } else if (y.type === "option")
1639
+ return B(y, "".concat(y.index));
1640
+ });
1641
+ else if (F) {
1642
+ var w = I({
1643
+ inputValue: E
1644
+ });
1645
+ if (w === null) return null;
1646
+ P = /* @__PURE__ */ C.createElement(l, v, w);
1647
+ } else {
1648
+ var Y = T({
1649
+ inputValue: E
1650
+ });
1651
+ if (Y === null) return null;
1652
+ P = /* @__PURE__ */ C.createElement(g, v, Y);
1653
+ }
1654
+ var z = {
1655
+ minMenuHeight: A,
1656
+ maxMenuHeight: S,
1657
+ menuPlacement: h,
1658
+ menuPosition: D,
1659
+ menuShouldScrollIntoView: M
1660
+ }, te = /* @__PURE__ */ C.createElement(Nt, V({}, v, z), function(y) {
1661
+ var W = y.ref, H = y.placerProps, _ = H.placement, N = H.maxHeight;
1662
+ return /* @__PURE__ */ C.createElement(t, V({}, v, z, {
1663
+ innerRef: W,
1664
+ innerProps: {
1665
+ onMouseDown: e.onMenuMouseDown,
1666
+ onMouseMove: e.onMenuMouseMove
1667
+ },
1668
+ isLoading: F,
1669
+ placement: _
1670
+ }), /* @__PURE__ */ C.createElement(En, {
1671
+ captureEnabled: m,
1672
+ onTopArrive: k,
1673
+ onBottomArrive: x,
1674
+ lockEnabled: R
1675
+ }, function(U) {
1676
+ return /* @__PURE__ */ C.createElement(a, V({}, v, {
1677
+ innerRef: function(ne) {
1678
+ e.getMenuListRef(ne), U(ne);
1679
+ },
1680
+ innerProps: {
1681
+ role: "listbox",
1682
+ "aria-multiselectable": v.isMulti,
1683
+ id: e.getElementId("listbox")
1684
+ },
1685
+ isLoading: F,
1686
+ maxHeight: N,
1687
+ focusedOption: b
1688
+ }), P);
1689
+ }));
1690
+ });
1691
+ return L || D === "fixed" ? /* @__PURE__ */ C.createElement(r, V({}, v, {
1692
+ appendTo: L,
1693
+ controlElement: this.controlRef,
1694
+ menuPlacement: h,
1695
+ menuPosition: D
1696
+ }), te) : te;
1697
+ }
1698
+ }, {
1699
+ key: "renderFormField",
1700
+ value: function() {
1701
+ var e = this, i = this.props, c = i.delimiter, d = i.isDisabled, t = i.isMulti, a = i.name, r = i.required, l = this.state.selectValue;
1702
+ if (r && !this.hasValue() && !d)
1703
+ return /* @__PURE__ */ C.createElement(On, {
1704
+ name: a,
1705
+ onFocus: this.onValueInputFocus
1706
+ });
1707
+ if (!(!a || d))
1708
+ if (t)
1709
+ if (c) {
1710
+ var g = l.map(function(b) {
1711
+ return e.getOptionValue(b);
1712
+ }).join(c);
1713
+ return /* @__PURE__ */ C.createElement("input", {
1714
+ name: a,
1715
+ type: "hidden",
1716
+ value: g
1717
+ });
1718
+ } else {
1719
+ var f = l.length > 0 ? l.map(function(b, p) {
1720
+ return /* @__PURE__ */ C.createElement("input", {
1721
+ key: "i-".concat(p),
1722
+ name: a,
1723
+ type: "hidden",
1724
+ value: e.getOptionValue(b)
1725
+ });
1726
+ }) : /* @__PURE__ */ C.createElement("input", {
1727
+ name: a,
1728
+ type: "hidden",
1729
+ value: ""
1730
+ });
1731
+ return /* @__PURE__ */ C.createElement("div", null, f);
1732
+ }
1733
+ else {
1734
+ var v = l[0] ? this.getOptionValue(l[0]) : "";
1735
+ return /* @__PURE__ */ C.createElement("input", {
1736
+ name: a,
1737
+ type: "hidden",
1738
+ value: v
1739
+ });
1740
+ }
1741
+ }
1742
+ }, {
1743
+ key: "renderLiveRegion",
1744
+ value: function() {
1745
+ var e = this.commonProps, i = this.state, c = i.ariaSelection, d = i.focusedOption, t = i.focusedValue, a = i.isFocused, r = i.selectValue, l = this.getFocusableOptions();
1746
+ return /* @__PURE__ */ C.createElement(rn, V({}, e, {
1747
+ id: this.getElementId("live-region"),
1748
+ ariaSelection: c,
1749
+ focusedOption: d,
1750
+ focusedValue: t,
1751
+ isFocused: a,
1752
+ selectValue: r,
1753
+ focusableOptions: l,
1754
+ isAppleDevice: this.isAppleDevice
1755
+ }));
1756
+ }
1757
+ }, {
1758
+ key: "render",
1759
+ value: function() {
1760
+ var e = this.getComponents(), i = e.Control, c = e.IndicatorsContainer, d = e.SelectContainer, t = e.ValueContainer, a = this.props, r = a.className, l = a.id, g = a.isDisabled, f = a.menuIsOpen, v = this.state.isFocused, b = this.commonProps = this.getCommonProps();
1761
+ return /* @__PURE__ */ C.createElement(d, V({}, b, {
1762
+ className: r,
1763
+ innerProps: {
1764
+ id: l,
1765
+ onKeyDown: this.onKeyDown
1766
+ },
1767
+ isDisabled: g,
1768
+ isFocused: v
1769
+ }), this.renderLiveRegion(), /* @__PURE__ */ C.createElement(i, V({}, b, {
1770
+ innerRef: this.getControlRef,
1771
+ innerProps: {
1772
+ onMouseDown: this.onControlMouseDown,
1773
+ onTouchEnd: this.onControlTouchEnd
1774
+ },
1775
+ isDisabled: g,
1776
+ isFocused: v,
1777
+ menuIsOpen: f
1778
+ }), /* @__PURE__ */ C.createElement(t, V({}, b, {
1779
+ isDisabled: g
1780
+ }), this.renderPlaceholderOrValue(), this.renderInput()), /* @__PURE__ */ C.createElement(c, V({}, b, {
1781
+ isDisabled: g
1782
+ }), this.renderClearIndicator(), this.renderLoadingIndicator(), this.renderIndicatorSeparator(), this.renderDropdownIndicator())), this.renderMenu(), this.renderFormField());
1783
+ }
1784
+ }], [{
1785
+ key: "getDerivedStateFromProps",
1786
+ value: function(e, i) {
1787
+ var c = i.prevProps, d = i.clearFocusValueOnUpdate, t = i.inputIsHiddenAfterUpdate, a = i.ariaSelection, r = i.isFocused, l = i.prevWasFocused, g = i.instancePrefix, f = e.options, v = e.value, b = e.menuIsOpen, p = e.inputValue, m = e.isMulti, E = ae(v), F = {};
1788
+ if (c && (v !== c.value || f !== c.options || b !== c.menuIsOpen || p !== c.inputValue)) {
1789
+ var I = b ? Tn(e, E) : [], A = b ? Xe(ue(e, E), "".concat(g, "-option")) : [], S = d ? Nn(i, E) : null, O = Pn(i, I), h = fe(A, O);
1790
+ F = {
1791
+ selectValue: E,
1792
+ focusedOption: O,
1793
+ focusedOptionId: h,
1794
+ focusableOptionsWithIds: A,
1795
+ focusedValue: S,
1796
+ clearFocusValueOnUpdate: !1
1797
+ };
1798
+ }
1799
+ var D = t != null && e !== c ? {
1800
+ inputIsHidden: t,
1801
+ inputIsHiddenAfterUpdate: void 0
1802
+ } : {}, L = a, R = r && l;
1803
+ return r && !R && (L = {
1804
+ value: ee(m, E, E[0] || null),
1805
+ options: E,
1806
+ action: "initial-input-focus"
1807
+ }, R = !l), a?.action === "initial-input-focus" && (L = null), G(G(G({}, F), D), {}, {
1808
+ prevProps: e,
1809
+ ariaSelection: L,
1810
+ prevWasFocused: R
1811
+ });
1812
+ }
1813
+ }]), s;
1814
+ })(Yt);
1815
+ et.defaultProps = wn;
1816
+ var Hn = ["defaultInputValue", "defaultMenuIsOpen", "defaultValue", "inputValue", "menuIsOpen", "onChange", "onInputChange", "onMenuClose", "onMenuOpen", "value"];
1817
+ function Jn(u) {
1818
+ var n = u.defaultInputValue, s = n === void 0 ? "" : n, o = u.defaultMenuIsOpen, e = o === void 0 ? !1 : o, i = u.defaultValue, c = i === void 0 ? null : i, d = u.inputValue, t = u.menuIsOpen, a = u.onChange, r = u.onInputChange, l = u.onMenuClose, g = u.onMenuOpen, f = u.value, v = me(u, Hn), b = re(d !== void 0 ? d : s), p = se(b, 2), m = p[0], E = p[1], F = re(t !== void 0 ? t : e), I = se(F, 2), A = I[0], S = I[1], O = re(f !== void 0 ? f : c), h = se(O, 2), D = h[0], L = h[1], R = X(function(w, Y) {
1819
+ typeof a == "function" && a(w, Y), L(w);
1820
+ }, [a]), M = X(function(w, Y) {
1821
+ var z;
1822
+ typeof r == "function" && (z = r(w, Y)), E(z !== void 0 ? z : w);
1823
+ }, [r]), T = X(function() {
1824
+ typeof g == "function" && g(), S(!0);
1825
+ }, [g]), k = X(function() {
1826
+ typeof l == "function" && l(), S(!1);
1827
+ }, [l]), x = d !== void 0 ? d : m, B = t !== void 0 ? t : A, P = f !== void 0 ? f : D;
1828
+ return G(G({}, v), {}, {
1829
+ inputValue: x,
1830
+ menuIsOpen: B,
1831
+ onChange: R,
1832
+ onInputChange: M,
1833
+ onMenuClose: k,
1834
+ onMenuOpen: T,
1835
+ value: P
1836
+ });
1837
+ }
1838
+ var Yn = ["allowCreateWhileLoading", "createOptionPosition", "formatCreateLabel", "isValidNewOption", "getNewOptionData", "onCreateOption", "options", "onChange"], Te = function() {
1839
+ var n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", s = arguments.length > 1 ? arguments[1] : void 0, o = arguments.length > 2 ? arguments[2] : void 0, e = String(n).toLowerCase(), i = String(o.getOptionValue(s)).toLowerCase(), c = String(o.getOptionLabel(s)).toLowerCase();
1840
+ return i === e || c === e;
1841
+ }, ge = {
1842
+ formatCreateLabel: function(n) {
1843
+ return 'Create "'.concat(n, '"');
1844
+ },
1845
+ isValidNewOption: function(n, s, o, e) {
1846
+ return !(!n || s.some(function(i) {
1847
+ return Te(n, i, e);
1848
+ }) || o.some(function(i) {
1849
+ return Te(n, i, e);
1850
+ }));
1851
+ },
1852
+ getNewOptionData: function(n, s) {
1853
+ return {
1854
+ label: s,
1855
+ value: n,
1856
+ __isNew__: !0
1857
+ };
1858
+ }
1859
+ };
1860
+ function zn(u) {
1861
+ var n = u.allowCreateWhileLoading, s = n === void 0 ? !1 : n, o = u.createOptionPosition, e = o === void 0 ? "last" : o, i = u.formatCreateLabel, c = i === void 0 ? ge.formatCreateLabel : i, d = u.isValidNewOption, t = d === void 0 ? ge.isValidNewOption : d, a = u.getNewOptionData, r = a === void 0 ? ge.getNewOptionData : a, l = u.onCreateOption, g = u.options, f = g === void 0 ? [] : g, v = u.onChange, b = me(u, Yn), p = b.getOptionValue, m = p === void 0 ? ze : p, E = b.getOptionLabel, F = E === void 0 ? Ye : E, I = b.inputValue, A = b.isLoading, S = b.isMulti, O = b.value, h = b.name, D = j(function() {
1862
+ return t(I, ae(O), f, {
1863
+ getOptionValue: m,
1864
+ getOptionLabel: F
1865
+ }) ? r(I, c(I)) : void 0;
1866
+ }, [c, r, F, m, I, t, f, O]), L = j(function() {
1867
+ return (s || !A) && D ? e === "first" ? [D].concat(K(f)) : [].concat(K(f), [D]) : f;
1868
+ }, [s, e, A, D, f]), R = X(function(M, T) {
1869
+ if (T.action !== "select-option")
1870
+ return v(M, T);
1871
+ var k = Array.isArray(M) ? M : [M];
1872
+ if (k[k.length - 1] === D) {
1873
+ if (l) l(I);
1874
+ else {
1875
+ var x = r(I, I), B = {
1876
+ action: "create-option",
1877
+ name: h,
1878
+ option: x
1879
+ };
1880
+ v(ee(S, [].concat(K(ae(O)), [x]), x), B);
1881
+ }
1882
+ return;
1883
+ }
1884
+ v(M, T);
1885
+ }, [r, I, S, h, D, l, v, O]);
1886
+ return G(G({}, b), {}, {
1887
+ options: L,
1888
+ onChange: R
1889
+ });
1890
+ }
1891
+ var _n = /* @__PURE__ */ zt(function(u, n) {
1892
+ var s = Jn(u), o = zn(s);
1893
+ return /* @__PURE__ */ C.createElement(et, V({
1894
+ ref: n
1895
+ }, o));
1896
+ }), Un = _n;
1897
+ const jn = Jt();
1898
+ function Qn(u) {
1899
+ const { value: n = [], placeholder: s, customProperties: o = {} } = u;
1900
+ return /* @__PURE__ */ at(
1901
+ Un,
1902
+ {
1903
+ ...o,
1904
+ id: u.id,
1905
+ placeholder: s,
1906
+ className: "react-select-container",
1907
+ classNamePrefix: "react-select",
1908
+ name: u.name || "",
1909
+ components: jn,
1910
+ isDisabled: u.disabled,
1911
+ isMulti: !0,
1912
+ value: n.map((e) => ({ label: e, value: e })),
1913
+ onChange: (e) => {
1914
+ u.onChange?.(
1915
+ u.name,
1916
+ e.map(({ value: i }) => i)
1917
+ );
1918
+ }
1919
+ }
1920
+ );
1921
+ }
1922
+ _t("InputTags.react", Qn);
1923
+ export {
1924
+ Qn as ReactTags
1925
+ };
1926
+ //# sourceMappingURL=ReactTags.js.map