@tsed/react-formio 3.0.0-alpha.1 → 3.0.0-alpha.11

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