@servicetitan/anvil2 1.1.2 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (425) hide show
  1. package/{Alert-149d9037.js → Alert-017471de.js} +19 -20
  2. package/Alert-017471de.js.map +1 -0
  3. package/Alert-3ae85e66.cjs +2 -0
  4. package/{Alert-149d9037.js.map → Alert-3ae85e66.cjs.map} +1 -1
  5. package/Alert.cjs +1 -1
  6. package/Alert.js +1 -1
  7. package/{Announcement-f14d030c.js → Announcement-0ef0c8f7.js} +26 -27
  8. package/{Announcement-f14d030c.js.map → Announcement-0ef0c8f7.js.map} +1 -1
  9. package/Announcement-3540ab95.cjs +2 -0
  10. package/{Announcement-9d19ebaa.cjs.map → Announcement-3540ab95.cjs.map} +1 -1
  11. package/Announcement.cjs +1 -1
  12. package/Announcement.js +1 -1
  13. package/AnvilProvider.cjs +1 -1
  14. package/AnvilProvider.js +1 -1
  15. package/Avatar.cjs +1 -1
  16. package/Avatar.cjs.map +1 -1
  17. package/Avatar.js +1 -1
  18. package/Badge-29ed0c9e.cjs +2 -0
  19. package/{Badge-7a10a62b.cjs.map → Badge-29ed0c9e.cjs.map} +1 -1
  20. package/{Badge-bc79fd97.js → Badge-2dc92a40.js} +9 -9
  21. package/{Badge-bc79fd97.js.map → Badge-2dc92a40.js.map} +1 -1
  22. package/Badge.cjs +1 -1
  23. package/Badge.js +1 -1
  24. package/{Button-6c5781ad.js → Button-dbbb8dc0.js} +135 -125
  25. package/Button-dbbb8dc0.js.map +1 -0
  26. package/Button-df4be721.cjs +2 -0
  27. package/Button-df4be721.cjs.map +1 -0
  28. package/Button.cjs +1 -1
  29. package/Button.cjs.map +1 -1
  30. package/Button.js +9 -9
  31. package/Button.js.map +1 -1
  32. package/ButtonCompound.cjs +1 -1
  33. package/ButtonCompound.cjs.map +1 -1
  34. package/ButtonCompound.js +7 -7
  35. package/ButtonCompound.js.map +1 -1
  36. package/ButtonLink.cjs +1 -1
  37. package/ButtonLink.cjs.map +1 -1
  38. package/ButtonLink.js +8 -8
  39. package/ButtonLink.js.map +1 -1
  40. package/ButtonToggle.cjs +1 -1
  41. package/ButtonToggle.cjs.map +1 -1
  42. package/ButtonToggle.js +6 -6
  43. package/ButtonToggle.js.map +1 -1
  44. package/{Calendar-43e494d5.cjs → Calendar-e0743dcf.cjs} +2 -2
  45. package/{Calendar-43e494d5.cjs.map → Calendar-e0743dcf.cjs.map} +1 -1
  46. package/{Calendar-485d6695.js → Calendar-fc2373b7.js} +81 -81
  47. package/{Calendar-485d6695.js.map → Calendar-fc2373b7.js.map} +1 -1
  48. package/Calendar.cjs +1 -1
  49. package/Calendar.js +1 -1
  50. package/{Card-bd9bce0c.cjs → Card-42198f6c.cjs} +2 -2
  51. package/{Card-bd9bce0c.cjs.map → Card-42198f6c.cjs.map} +1 -1
  52. package/{Card-8c481846.js → Card-d7d23388.js} +9 -9
  53. package/{Card-8c481846.js.map → Card-d7d23388.js.map} +1 -1
  54. package/Card.cjs +1 -1
  55. package/Card.js +1 -1
  56. package/Checkbox-949d5f00.cjs +2 -0
  57. package/{Checkbox-68e81b7f.cjs.map → Checkbox-949d5f00.cjs.map} +1 -1
  58. package/{Checkbox-34dd779e.js → Checkbox-e2b0e7d0.js} +22 -22
  59. package/{Checkbox-34dd779e.js.map → Checkbox-e2b0e7d0.js.map} +1 -1
  60. package/Checkbox.cjs +1 -1
  61. package/Checkbox.js +1 -1
  62. package/Chip-c1c9ff14.cjs +2 -0
  63. package/{Chip-f0c9f7a2.js.map → Chip-c1c9ff14.cjs.map} +1 -1
  64. package/{Chip-f0c9f7a2.js → Chip-dbc470f4.js} +14 -14
  65. package/Chip-dbc470f4.js.map +1 -0
  66. package/Chip.cjs +1 -1
  67. package/Chip.js +1 -1
  68. package/Combobox.cjs +1 -1
  69. package/Combobox.cjs.map +1 -1
  70. package/Combobox.js +2 -2
  71. package/Combobox.js.map +1 -1
  72. package/Details.cjs +1 -1
  73. package/Details.cjs.map +1 -1
  74. package/Details.js +11 -11
  75. package/Details.js.map +1 -1
  76. package/Dialog.cjs +1 -1
  77. package/Dialog.cjs.map +1 -1
  78. package/Dialog.js +14 -14
  79. package/Dialog.js.map +1 -1
  80. package/{Divider-bb317cfa.js → Divider-6e94652c.js} +15 -15
  81. package/{Divider-bb317cfa.js.map → Divider-6e94652c.js.map} +1 -1
  82. package/Divider-9719b490.cjs +2 -0
  83. package/{Divider-054344df.cjs.map → Divider-9719b490.cjs.map} +1 -1
  84. package/Divider.cjs +1 -1
  85. package/Divider.js +1 -1
  86. package/Drawer-989d1d8a.cjs +2 -0
  87. package/Drawer-989d1d8a.cjs.map +1 -0
  88. package/Drawer-b81924d3.js +200 -0
  89. package/Drawer-b81924d3.js.map +1 -0
  90. package/Drawer.cjs +1 -1
  91. package/Drawer.js +1 -1
  92. package/{Flex-8986d95b.js → Flex-15fbb5a2.js} +8 -8
  93. package/{Flex-8986d95b.js.map → Flex-15fbb5a2.js.map} +1 -1
  94. package/{Flex-2c1b5dac.cjs → Flex-740ea6ba.cjs} +2 -2
  95. package/{Flex-2c1b5dac.cjs.map → Flex-740ea6ba.cjs.map} +1 -1
  96. package/Flex.cjs +1 -1
  97. package/Flex.js +1 -1
  98. package/{Grid-082b0fe7.js → Grid-043bde66.js} +12 -12
  99. package/{Grid-082b0fe7.js.map → Grid-043bde66.js.map} +1 -1
  100. package/{Grid-758a3a1a.cjs → Grid-674805a9.cjs} +2 -2
  101. package/{Grid-758a3a1a.cjs.map → Grid-674805a9.cjs.map} +1 -1
  102. package/Grid.cjs +1 -1
  103. package/Grid.js +1 -1
  104. package/{Helper-74a1f07f-13255568.js → Helper-74a1f07f-18441e16.js} +3 -3
  105. package/{Helper-74a1f07f-13255568.js.map → Helper-74a1f07f-18441e16.js.map} +1 -1
  106. package/{Helper-74a1f07f-18d0650d.cjs → Helper-74a1f07f-2aeadeae.cjs} +2 -2
  107. package/{Helper-74a1f07f-18d0650d.cjs.map → Helper-74a1f07f-2aeadeae.cjs.map} +1 -1
  108. package/{Icon-fe240903.js → Icon-7dc0db59.js} +14 -14
  109. package/{Icon-fe240903.js.map → Icon-7dc0db59.js.map} +1 -1
  110. package/Icon-d02abfdd.cjs +2 -0
  111. package/{Icon-cc1f63c3.cjs.map → Icon-d02abfdd.cjs.map} +1 -1
  112. package/Icon.cjs +1 -1
  113. package/Icon.js +1 -1
  114. package/Layout.cjs +1 -1
  115. package/Layout.cjs.map +1 -1
  116. package/Layout.js +20 -20
  117. package/Layout.js.map +1 -1
  118. package/Link.cjs +1 -1
  119. package/Link.cjs.map +1 -1
  120. package/Link.js +8 -8
  121. package/Link.js.map +1 -1
  122. package/ListView-b33a9948.cjs +2 -0
  123. package/ListView-b33a9948.cjs.map +1 -0
  124. package/{ListView-4c587048.js → ListView-dac3c924.js} +110 -103
  125. package/ListView-dac3c924.js.map +1 -0
  126. package/ListView.cjs +1 -1
  127. package/ListView.js +1 -1
  128. package/Listbox-7a43984b.js +394 -0
  129. package/Listbox-7a43984b.js.map +1 -0
  130. package/Listbox-873403e9.cjs +2 -0
  131. package/{Listbox-415bb4d7.cjs.map → Listbox-873403e9.cjs.map} +1 -1
  132. package/Listbox.cjs +1 -1
  133. package/Listbox.js +1 -1
  134. package/LocalizationProvider.cjs +1 -1
  135. package/LocalizationProvider.js +1 -1
  136. package/{Menu-5543f2ba.js → Menu-0a24f1ba.js} +41 -41
  137. package/{Menu-5543f2ba.js.map → Menu-0a24f1ba.js.map} +1 -1
  138. package/{Menu-a1e56e6b.cjs → Menu-869a24e2.cjs} +2 -2
  139. package/{Menu-a1e56e6b.cjs.map → Menu-869a24e2.cjs.map} +1 -1
  140. package/Menu.cjs +1 -1
  141. package/Menu.js +1 -1
  142. package/Overflow.cjs +1 -1
  143. package/Overflow.cjs.map +1 -1
  144. package/Overflow.js +23 -257
  145. package/Overflow.js.map +1 -1
  146. package/Page.cjs +1 -1
  147. package/Page.cjs.map +1 -1
  148. package/Page.d.ts +8 -5
  149. package/Page.js +166 -110
  150. package/Page.js.map +1 -1
  151. package/Popover.cjs +1 -1
  152. package/Popover.cjs.map +1 -1
  153. package/Popover.js +16 -16
  154. package/Popover.js.map +1 -1
  155. package/ProgressBar-2589ad1b.cjs +2 -0
  156. package/ProgressBar-2589ad1b.cjs.map +1 -0
  157. package/ProgressBar-f9325dbe.js +295 -0
  158. package/ProgressBar-f9325dbe.js.map +1 -0
  159. package/ProgressBar.cjs +1 -1
  160. package/ProgressBar.css +1 -1
  161. package/ProgressBar.js +1 -1
  162. package/{Radio-67ac4216.js → Radio-c81308ef.js} +11 -11
  163. package/{Radio-67ac4216.js.map → Radio-c81308ef.js.map} +1 -1
  164. package/Radio-e11ee699.cjs +2 -0
  165. package/{Radio-470d07a0.cjs.map → Radio-e11ee699.cjs.map} +1 -1
  166. package/Radio.cjs +1 -1
  167. package/Radio.js +1 -1
  168. package/SideNav-369bf761.cjs +21 -0
  169. package/SideNav-369bf761.cjs.map +1 -0
  170. package/SideNav-94ab00f0.js +935 -0
  171. package/SideNav-94ab00f0.js.map +1 -0
  172. package/SideNav.cjs +5 -5
  173. package/SideNav.cjs.map +1 -1
  174. package/SideNav.js +78 -80
  175. package/SideNav.js.map +1 -1
  176. package/SrOnly-0c13a721.js +13 -0
  177. package/{SrOnly-8b5e28e8.js.map → SrOnly-0c13a721.js.map} +1 -1
  178. package/SrOnly-ecf7240b.cjs +2 -0
  179. package/{SrOnly-d8f3425a.cjs.map → SrOnly-ecf7240b.cjs.map} +1 -1
  180. package/SrOnly.cjs +1 -1
  181. package/SrOnly.js +1 -1
  182. package/{Stepper-5bd46b4f.js → Stepper-54e47376.js} +25 -25
  183. package/{Stepper-5bd46b4f.js.map → Stepper-54e47376.js.map} +1 -1
  184. package/Stepper-e26d5bac.cjs +2 -0
  185. package/{Stepper-b4e986d2.cjs.map → Stepper-e26d5bac.cjs.map} +1 -1
  186. package/Stepper.cjs +1 -1
  187. package/Stepper.js +1 -1
  188. package/{Switch-5dbf0a8f.js → Switch-c4977b9b.js} +9 -9
  189. package/{Switch-5dbf0a8f.js.map → Switch-c4977b9b.js.map} +1 -1
  190. package/Switch-f1d54e52.cjs +2 -0
  191. package/{Switch-cb344773.cjs.map → Switch-f1d54e52.cjs.map} +1 -1
  192. package/Switch.cjs +1 -1
  193. package/Switch.js +1 -1
  194. package/{Tab-2e6cd67f.js → Tab-120468a3.js} +13 -13
  195. package/{Tab-2e6cd67f.js.map → Tab-120468a3.js.map} +1 -1
  196. package/Tab-3de6894a.cjs +10 -0
  197. package/{Tab-3d8a05c4.cjs.map → Tab-3de6894a.cjs.map} +1 -1
  198. package/Tab.cjs +1 -1
  199. package/Tab.js +1 -1
  200. package/{Text-ba9bbdb2.js → Text-a7747376.js} +9 -9
  201. package/{Text-ba9bbdb2.js.map → Text-a7747376.js.map} +1 -1
  202. package/Text-eefa573a.cjs +2 -0
  203. package/{Text-559b1249.cjs.map → Text-eefa573a.cjs.map} +1 -1
  204. package/Text.cjs +1 -1
  205. package/Text.js +1 -1
  206. package/TextField.cjs +1 -1
  207. package/TextField.cjs.map +1 -1
  208. package/TextField.js +17 -17
  209. package/TextField.js.map +1 -1
  210. package/Textarea.cjs +1 -1
  211. package/Textarea.cjs.map +1 -1
  212. package/Textarea.js +9 -9
  213. package/Textarea.js.map +1 -1
  214. package/ThemeProvider.cjs +1 -1
  215. package/ThemeProvider.js +1 -1
  216. package/Toast-4bab713a.cjs +9 -0
  217. package/{Toast-7681ec28.cjs.map → Toast-4bab713a.cjs.map} +1 -1
  218. package/{Toast-1ea8f149.js → Toast-5b02b7c0.js} +42 -42
  219. package/{Toast-1ea8f149.js.map → Toast-5b02b7c0.js.map} +1 -1
  220. package/Toast.cjs +1 -1
  221. package/Toast.js +1 -1
  222. package/Tooltip.cjs +1 -1
  223. package/Tooltip.cjs.map +1 -1
  224. package/Tooltip.js +19 -19
  225. package/Tooltip.js.map +1 -1
  226. package/anvil2.cjs +1 -1
  227. package/anvil2.d.ts +8 -5
  228. package/anvil2.js +184 -190
  229. package/anvil2.js.map +1 -1
  230. package/check_circle-48e002d3-0554de7d.js +8 -0
  231. package/check_circle-48e002d3-0554de7d.js.map +1 -0
  232. package/check_circle-48e002d3-57364fcd.cjs +2 -0
  233. package/check_circle-48e002d3-57364fcd.cjs.map +1 -0
  234. package/{floating-ui.react-b6b33700.js → floating-ui.react-3f85fcd1.js} +24 -24
  235. package/{floating-ui.react-b6b33700.js.map → floating-ui.react-3f85fcd1.js.map} +1 -1
  236. package/{index-f42fb342.cjs → index-0c3dd58b.cjs} +2 -2
  237. package/{index-f42fb342.cjs.map → index-0c3dd58b.cjs.map} +1 -1
  238. package/index-30317fba.cjs +2 -0
  239. package/{index-54bf6a94.cjs.map → index-30317fba.cjs.map} +1 -1
  240. package/index-43f4d750.cjs +23 -0
  241. package/index-43f4d750.cjs.map +1 -0
  242. package/{index-47be8b32.js → index-5654965e.js} +18 -18
  243. package/{index-47be8b32.js.map → index-5654965e.js.map} +1 -1
  244. package/{index-ef2e9d11.cjs → index-67d20edb.cjs} +2 -2
  245. package/{index-ef2e9d11.cjs.map → index-67d20edb.cjs.map} +1 -1
  246. package/index-91597e0a.js +4589 -0
  247. package/index-91597e0a.js.map +1 -0
  248. package/{index-e1f04536-df16a5fd.js → index-d46fa8de-997b6b08.js} +5 -5
  249. package/index-d46fa8de-997b6b08.js.map +1 -0
  250. package/{index-e1f04536-fde0e811.cjs → index-d46fa8de-cc49032b.cjs} +2 -2
  251. package/index-d46fa8de-cc49032b.cjs.map +1 -0
  252. package/{index-c6e22bb9.js → index-e0f6271a.js} +6 -6
  253. package/{index-c6e22bb9.js.map → index-e0f6271a.js.map} +1 -1
  254. package/{index-e54f92d0.js → index-ebc2776c.js} +4 -4
  255. package/{index-e54f92d0.js.map → index-ebc2776c.js.map} +1 -1
  256. package/{Avatar-6c7f18b3.js → index-f3ce3681-94450aba.js} +32 -32
  257. package/index-f3ce3681-94450aba.js.map +1 -0
  258. package/index-f3ce3681-b0bee9d9.cjs +2 -0
  259. package/index-f3ce3681-b0bee9d9.cjs.map +1 -0
  260. package/index2.css +1 -1
  261. package/index3.css +1 -1
  262. package/package.json +4 -4
  263. package/{primitive-430182c9.cjs → primitive-898a5f6f.cjs} +2 -2
  264. package/{primitive-430182c9.cjs.map → primitive-898a5f6f.cjs.map} +1 -1
  265. package/{primitive-51a35076.js → primitive-90e4e69c.js} +7 -6
  266. package/{primitive-51a35076.js.map → primitive-90e4e69c.js.map} +1 -1
  267. package/token.cjs +1 -1
  268. package/token.js +1 -1
  269. package/ui-react-c38ec008.js +53 -0
  270. package/ui-react-c38ec008.js.map +1 -0
  271. package/ui-react-ec7c804b.cjs +2 -0
  272. package/ui-react-ec7c804b.cjs.map +1 -0
  273. package/useAccessibleColor.cjs +1 -1
  274. package/useAccessibleColor.js +35 -44
  275. package/useAccessibleColor.js.map +1 -1
  276. package/{useLayoutPropsUtil-e307abc7-9cffb4b6.cjs → useLayoutPropsUtil-e307abc7-3826ee09.cjs} +2 -2
  277. package/{useLayoutPropsUtil-e307abc7-9cffb4b6.cjs.map → useLayoutPropsUtil-e307abc7-3826ee09.cjs.map} +1 -1
  278. package/{useLayoutPropsUtil-e307abc7-053ab281.js → useLayoutPropsUtil-e307abc7-cbe2fb6d.js} +2 -2
  279. package/{useLayoutPropsUtil-e307abc7-053ab281.js.map → useLayoutPropsUtil-e307abc7-cbe2fb6d.js.map} +1 -1
  280. package/useLinkStyles.cjs +1 -1
  281. package/useLinkStyles.js +34 -41
  282. package/useLinkStyles.js.map +1 -1
  283. package/useMergeRefs.cjs +1 -1
  284. package/useMergeRefs.js +35 -42
  285. package/useMergeRefs.js.map +1 -1
  286. package/{usePrefersColorScheme-129544ad-8a88962d.cjs → usePrefersColorScheme-129544ad-59e2e284.cjs} +2 -2
  287. package/{usePrefersColorScheme-129544ad-8a88962d.cjs.map → usePrefersColorScheme-129544ad-59e2e284.cjs.map} +1 -1
  288. package/{usePrefersColorScheme-129544ad-d4fd2894.js → usePrefersColorScheme-129544ad-cab6fc3f.js} +2 -2
  289. package/{usePrefersColorScheme-129544ad-d4fd2894.js.map → usePrefersColorScheme-129544ad-cab6fc3f.js.map} +1 -1
  290. package/usePrefersColorScheme.cjs +1 -1
  291. package/usePrefersColorScheme.js +35 -41
  292. package/usePrefersColorScheme.js.map +1 -1
  293. package/useSwipe.cjs +1 -1
  294. package/useSwipe.js +35 -42
  295. package/useSwipe.js.map +1 -1
  296. package/Alert-7d5182e8.cjs +0 -2
  297. package/Alert-7d5182e8.cjs.map +0 -1
  298. package/Announcement-9d19ebaa.cjs +0 -2
  299. package/Avatar-4c63ee62.cjs +0 -2
  300. package/Avatar-4c63ee62.cjs.map +0 -1
  301. package/Avatar-6c7f18b3.js.map +0 -1
  302. package/Badge-7a10a62b.cjs +0 -2
  303. package/Button-6c5781ad.js.map +0 -1
  304. package/Button-c99ab366.cjs +0 -2
  305. package/Button-c99ab366.cjs.map +0 -1
  306. package/Checkbox-68e81b7f.cjs +0 -2
  307. package/Chip-1cf2342f.cjs +0 -2
  308. package/Chip-1cf2342f.cjs.map +0 -1
  309. package/Combobox-8f603bb1.js +0 -3411
  310. package/Combobox-8f603bb1.js.map +0 -1
  311. package/Combobox-d05b6240.cjs +0 -23
  312. package/Combobox-d05b6240.cjs.map +0 -1
  313. package/Combobox.css +0 -1
  314. package/Details-b9417257.cjs +0 -2
  315. package/Details-b9417257.cjs.map +0 -1
  316. package/Details-fc119a54.js +0 -123
  317. package/Details-fc119a54.js.map +0 -1
  318. package/Details.css +0 -1
  319. package/Dialog-a43a0c3e.cjs +0 -2
  320. package/Dialog-a43a0c3e.cjs.map +0 -1
  321. package/Dialog-b677386c.js +0 -193
  322. package/Dialog-b677386c.js.map +0 -1
  323. package/Dialog.css +0 -1
  324. package/Divider-054344df.cjs +0 -2
  325. package/Drawer-04434c29.cjs +0 -2
  326. package/Drawer-04434c29.cjs.map +0 -1
  327. package/Drawer-adf9e6ba.js +0 -190
  328. package/Drawer-adf9e6ba.js.map +0 -1
  329. package/Icon-cc1f63c3.cjs +0 -2
  330. package/Label-71d61154.js +0 -47
  331. package/Label-71d61154.js.map +0 -1
  332. package/Label-dc809b80.cjs +0 -2
  333. package/Label-dc809b80.cjs.map +0 -1
  334. package/Label.css +0 -1
  335. package/Link-0073e9fb.cjs +0 -2
  336. package/Link-0073e9fb.cjs.map +0 -1
  337. package/Link-60e4b146.js +0 -58
  338. package/Link-60e4b146.js.map +0 -1
  339. package/Link.css +0 -1
  340. package/ListView-216f9c1f.cjs +0 -2
  341. package/ListView-216f9c1f.cjs.map +0 -1
  342. package/ListView-4c587048.js.map +0 -1
  343. package/ListView.module-3868990a-7ce1f78e.js +0 -11
  344. package/ListView.module-3868990a-7ce1f78e.js.map +0 -1
  345. package/ListView.module-3868990a-95f714ae.cjs +0 -2
  346. package/ListView.module-3868990a-95f714ae.cjs.map +0 -1
  347. package/Listbox-415bb4d7.cjs +0 -2
  348. package/Listbox-e8a20120.js +0 -386
  349. package/Listbox-e8a20120.js.map +0 -1
  350. package/Listbox.module-98274ee1-1a954c60.js +0 -13
  351. package/Listbox.module-98274ee1-1a954c60.js.map +0 -1
  352. package/Listbox.module-98274ee1-cacb3419.cjs +0 -2
  353. package/Listbox.module-98274ee1-cacb3419.cjs.map +0 -1
  354. package/Popover-69c5fcac.cjs +0 -2
  355. package/Popover-69c5fcac.cjs.map +0 -1
  356. package/Popover-825e44a8.js +0 -247
  357. package/Popover-825e44a8.js.map +0 -1
  358. package/Popover.css +0 -1
  359. package/ProgressBar-62c48252.js +0 -119
  360. package/ProgressBar-62c48252.js.map +0 -1
  361. package/ProgressBar-65cfdc86.cjs +0 -2
  362. package/ProgressBar-65cfdc86.cjs.map +0 -1
  363. package/Radio-470d07a0.cjs +0 -2
  364. package/SideNav-144e66fa.js +0 -236
  365. package/SideNav-144e66fa.js.map +0 -1
  366. package/SideNav-7715e11e.cjs +0 -2
  367. package/SideNav-7715e11e.cjs.map +0 -1
  368. package/Spinner-e6a0837b-26d0d1e9.cjs +0 -2
  369. package/Spinner-e6a0837b-26d0d1e9.cjs.map +0 -1
  370. package/Spinner-e6a0837b-33d456d3.js +0 -17
  371. package/Spinner-e6a0837b-33d456d3.js.map +0 -1
  372. package/SrOnly-8b5e28e8.js +0 -13
  373. package/SrOnly-d8f3425a.cjs +0 -2
  374. package/Stepper-b4e986d2.cjs +0 -2
  375. package/Switch-cb344773.cjs +0 -2
  376. package/Tab-3d8a05c4.cjs +0 -10
  377. package/Text-559b1249.cjs +0 -2
  378. package/TextField-3fb2612b.js +0 -133
  379. package/TextField-3fb2612b.js.map +0 -1
  380. package/TextField-eea0cce9.cjs +0 -2
  381. package/TextField-eea0cce9.cjs.map +0 -1
  382. package/TextField.css +0 -1
  383. package/Textarea-1abf4541.js +0 -246
  384. package/Textarea-1abf4541.js.map +0 -1
  385. package/Textarea-68aa3b5b.cjs +0 -2
  386. package/Textarea-68aa3b5b.cjs.map +0 -1
  387. package/Textarea.css +0 -1
  388. package/Toast-7681ec28.cjs +0 -9
  389. package/Tooltip-41f8b278.js +0 -149
  390. package/Tooltip-41f8b278.js.map +0 -1
  391. package/Tooltip-4ae8e730.cjs +0 -2
  392. package/Tooltip-4ae8e730.cjs.map +0 -1
  393. package/Tooltip.css +0 -1
  394. package/check_circle-48e002d3-0d49b2da.cjs +0 -2
  395. package/check_circle-48e002d3-0d49b2da.cjs.map +0 -1
  396. package/check_circle-48e002d3-5838521c.js +0 -7
  397. package/check_circle-48e002d3-5838521c.js.map +0 -1
  398. package/chevron_right-5b0931b5-96f8a9c6.cjs +0 -2
  399. package/chevron_right-5b0931b5-96f8a9c6.cjs.map +0 -1
  400. package/chevron_right-5b0931b5-ac35ad56.js +0 -6
  401. package/chevron_right-5b0931b5-ac35ad56.js.map +0 -1
  402. package/extends-459a4c4f.cjs +0 -2
  403. package/extends-459a4c4f.cjs.map +0 -1
  404. package/extends-c44c2a9d.js +0 -27
  405. package/extends-c44c2a9d.js.map +0 -1
  406. package/getKeyboardFocusableElements-ea0e208d-58a00025.js +0 -14
  407. package/getKeyboardFocusableElements-ea0e208d-58a00025.js.map +0 -1
  408. package/getKeyboardFocusableElements-ea0e208d-aba1bd01.cjs +0 -2
  409. package/getKeyboardFocusableElements-ea0e208d-aba1bd01.cjs.map +0 -1
  410. package/getLabelFromChildren-42ea107c.cjs +0 -2
  411. package/getLabelFromChildren-42ea107c.cjs.map +0 -1
  412. package/getLabelFromChildren-8fd8adc7.js +0 -11
  413. package/getLabelFromChildren-8fd8adc7.js.map +0 -1
  414. package/index-54bf6a94.cjs +0 -2
  415. package/index-8f87ccce.js +0 -678
  416. package/index-8f87ccce.js.map +0 -1
  417. package/index-9367b3ff.cjs +0 -21
  418. package/index-9367b3ff.cjs.map +0 -1
  419. package/index-e1f04536-df16a5fd.js.map +0 -1
  420. package/index-e1f04536-fde0e811.cjs.map +0 -1
  421. package/info-af4c0112-9f16129f.cjs +0 -2
  422. package/info-af4c0112-9f16129f.cjs.map +0 -1
  423. package/info-af4c0112-f73c8f68.js +0 -6
  424. package/info-af4c0112-f73c8f68.js.map +0 -1
  425. /package/{Avatar.css → index-f3ce3681.css} +0 -0
@@ -0,0 +1,4589 @@
1
+ import "./index3.css";
2
+ import "./Alert-017471de.js";
3
+ import "./Announcement-0ef0c8f7.js";
4
+ import "./index-f3ce3681-94450aba.js";
5
+ import "./Badge-2dc92a40.js";
6
+ import { C as qe, l as Vr } from "./Button-dbbb8dc0.js";
7
+ import "./Calendar-fc2373b7.js";
8
+ import "./Card-d7d23388.js";
9
+ import { r as Ar } from "./Checkbox-e2b0e7d0.js";
10
+ import { $ as an } from "./Chip-dbc470f4.js";
11
+ import "./Divider-6e94652c.js";
12
+ import { a as Hr } from "./Drawer-b81924d3.js";
13
+ import { j as vt } from "./Flex-15fbb5a2.js";
14
+ import "./Grid-043bde66.js";
15
+ import { I as xt } from "./Icon-7dc0db59.js";
16
+ import { u as bt } from "./ProgressBar-f9325dbe.js";
17
+ import { a as Pn } from "./Listbox-7a43984b.js";
18
+ import { t as _t } from "./ListView-dac3c924.js";
19
+ import "./Menu-0a24f1ba.js";
20
+ import "./Radio-c81308ef.js";
21
+ import { P as I, _ as $, b as ve, a as jr } from "./SideNav-94ab00f0.js";
22
+ import { p as Mn } from "./SrOnly-0c13a721.js";
23
+ import { f as v } from "./jsx-runtime-944c88e2-e73fa629.js";
24
+ import { c as ae } from "./index-e0f6271a.js";
25
+ import "./Stepper-54e47376.js";
26
+ import "./Switch-c4977b9b.js";
27
+ import "./Tab-120468a3.js";
28
+ import { E as Tn } from "./Text-a7747376.js";
29
+ import "./Toast-5b02b7c0.js";
30
+ import "./index-06c0bdf0.js";
31
+ import * as _e from "react";
32
+ import st, { useRef as Q, useCallback as ee, useEffect as de, useMemo as Me, cloneElement as Kr, Component as $r, useLayoutEffect as wt, useReducer as Fr, createContext as dt, forwardRef as ce, useContext as Te, useState as J, useId as Ie } from "react";
33
+ import { J as Se } from "./useLayoutPropsUtil-e307abc7-cbe2fb6d.js";
34
+ import { U as Lr, T as Br } from "./index-d46fa8de-997b6b08.js";
35
+ import "./usePrefersColorScheme-129544ad-cab6fc3f.js";
36
+ import "./index-5654965e.js";
37
+ import "./LocalizationProvider.js";
38
+ import { u as Be, v as zr, w as Ur, z as Wr, e as qr, h as Yr, o as Gr, g as Xr, f as Jr, s as Qr, l as Zr, B as eo, k as to, i as no, j as ro, n as oo, m as io, r as so } from "./floating-ui.react-3f85fcd1.js";
39
+ import { g as lo } from "./_commonjsHelpers-c5d32002.js";
40
+ import { a as Vn } from "./close-064c8acc-7e0b4df7.js";
41
+ import { a as ao } from "./check-5f087ea0-b5474547.js";
42
+ import { v as Et } from "./Helper-74a1f07f-18441e16.js";
43
+ /* empty css */import "./useSwipe-82769b09-835234e6.js";
44
+ function un(e) {
45
+ if (e === void 0)
46
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
47
+ return e;
48
+ }
49
+ var It = { exports: {} }, G = {};
50
+ /**
51
+ * @license React
52
+ * react-is.production.min.js
53
+ *
54
+ * Copyright (c) Facebook, Inc. and its affiliates.
55
+ *
56
+ * This source code is licensed under the MIT license found in the
57
+ * LICENSE file in the root directory of this source tree.
58
+ */
59
+ var dn;
60
+ function uo() {
61
+ if (dn)
62
+ return G;
63
+ dn = 1;
64
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), x;
65
+ x = Symbol.for("react.module.reference");
66
+ function S(g) {
67
+ if (typeof g == "object" && g !== null) {
68
+ var D = g.$$typeof;
69
+ switch (D) {
70
+ case e:
71
+ switch (g = g.type, g) {
72
+ case r:
73
+ case o:
74
+ case i:
75
+ case u:
76
+ case l:
77
+ return g;
78
+ default:
79
+ switch (g = g && g.$$typeof, g) {
80
+ case a:
81
+ case s:
82
+ case d:
83
+ case b:
84
+ case h:
85
+ case t:
86
+ return g;
87
+ default:
88
+ return D;
89
+ }
90
+ }
91
+ case n:
92
+ return D;
93
+ }
94
+ }
95
+ }
96
+ return G.ContextConsumer = s, G.ContextProvider = t, G.Element = e, G.ForwardRef = d, G.Fragment = r, G.Lazy = b, G.Memo = h, G.Portal = n, G.Profiler = o, G.StrictMode = i, G.Suspense = u, G.SuspenseList = l, G.isAsyncMode = function() {
97
+ return !1;
98
+ }, G.isConcurrentMode = function() {
99
+ return !1;
100
+ }, G.isContextConsumer = function(g) {
101
+ return S(g) === s;
102
+ }, G.isContextProvider = function(g) {
103
+ return S(g) === t;
104
+ }, G.isElement = function(g) {
105
+ return typeof g == "object" && g !== null && g.$$typeof === e;
106
+ }, G.isForwardRef = function(g) {
107
+ return S(g) === d;
108
+ }, G.isFragment = function(g) {
109
+ return S(g) === r;
110
+ }, G.isLazy = function(g) {
111
+ return S(g) === b;
112
+ }, G.isMemo = function(g) {
113
+ return S(g) === h;
114
+ }, G.isPortal = function(g) {
115
+ return S(g) === n;
116
+ }, G.isProfiler = function(g) {
117
+ return S(g) === o;
118
+ }, G.isStrictMode = function(g) {
119
+ return S(g) === i;
120
+ }, G.isSuspense = function(g) {
121
+ return S(g) === u;
122
+ }, G.isSuspenseList = function(g) {
123
+ return S(g) === l;
124
+ }, G.isValidElementType = function(g) {
125
+ return typeof g == "string" || typeof g == "function" || g === r || g === o || g === i || g === u || g === l || g === y || typeof g == "object" && g !== null && (g.$$typeof === b || g.$$typeof === h || g.$$typeof === t || g.$$typeof === s || g.$$typeof === d || g.$$typeof === x || g.getModuleId !== void 0);
126
+ }, G.typeOf = S, G;
127
+ }
128
+ var X = {};
129
+ /**
130
+ * @license React
131
+ * react-is.development.js
132
+ *
133
+ * Copyright (c) Facebook, Inc. and its affiliates.
134
+ *
135
+ * This source code is licensed under the MIT license found in the
136
+ * LICENSE file in the root directory of this source tree.
137
+ */
138
+ var cn;
139
+ function co() {
140
+ return cn || (cn = 1, process.env.NODE_ENV !== "production" && function() {
141
+ var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), a = Symbol.for("react.server_context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), l = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), b = Symbol.for("react.lazy"), y = Symbol.for("react.offscreen"), x = !1, S = !1, g = !1, D = !1, c = !1, f;
142
+ f = Symbol.for("react.module.reference");
143
+ function p(C) {
144
+ return !!(typeof C == "string" || typeof C == "function" || C === r || C === o || c || C === i || C === u || C === l || D || C === y || x || S || g || typeof C == "object" && C !== null && (C.$$typeof === b || C.$$typeof === h || C.$$typeof === t || C.$$typeof === s || C.$$typeof === d || // This needs to include all possible module reference object
145
+ // types supported by any Flight configuration anywhere since
146
+ // we don't know which Flight build this will end up being used
147
+ // with.
148
+ C.$$typeof === f || C.getModuleId !== void 0));
149
+ }
150
+ function _(C) {
151
+ if (typeof C == "object" && C !== null) {
152
+ var he = C.$$typeof;
153
+ switch (he) {
154
+ case e:
155
+ var oe = C.type;
156
+ switch (oe) {
157
+ case r:
158
+ case o:
159
+ case i:
160
+ case u:
161
+ case l:
162
+ return oe;
163
+ default:
164
+ var Ve = oe && oe.$$typeof;
165
+ switch (Ve) {
166
+ case a:
167
+ case s:
168
+ case d:
169
+ case b:
170
+ case h:
171
+ case t:
172
+ return Ve;
173
+ default:
174
+ return he;
175
+ }
176
+ }
177
+ case n:
178
+ return he;
179
+ }
180
+ }
181
+ }
182
+ var m = s, N = t, E = e, P = d, M = r, O = b, k = h, V = n, R = o, F = i, L = u, K = l, z = !1, Z = !1;
183
+ function j(C) {
184
+ return z || (z = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
185
+ }
186
+ function W(C) {
187
+ return Z || (Z = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
188
+ }
189
+ function Y(C) {
190
+ return _(C) === s;
191
+ }
192
+ function re(C) {
193
+ return _(C) === t;
194
+ }
195
+ function T(C) {
196
+ return typeof C == "object" && C !== null && C.$$typeof === e;
197
+ }
198
+ function A(C) {
199
+ return _(C) === d;
200
+ }
201
+ function w(C) {
202
+ return _(C) === r;
203
+ }
204
+ function H(C) {
205
+ return _(C) === b;
206
+ }
207
+ function U(C) {
208
+ return _(C) === h;
209
+ }
210
+ function q(C) {
211
+ return _(C) === n;
212
+ }
213
+ function B(C) {
214
+ return _(C) === o;
215
+ }
216
+ function se(C) {
217
+ return _(C) === i;
218
+ }
219
+ function le(C) {
220
+ return _(C) === u;
221
+ }
222
+ function ue(C) {
223
+ return _(C) === l;
224
+ }
225
+ X.ContextConsumer = m, X.ContextProvider = N, X.Element = E, X.ForwardRef = P, X.Fragment = M, X.Lazy = O, X.Memo = k, X.Portal = V, X.Profiler = R, X.StrictMode = F, X.Suspense = L, X.SuspenseList = K, X.isAsyncMode = j, X.isConcurrentMode = W, X.isContextConsumer = Y, X.isContextProvider = re, X.isElement = T, X.isForwardRef = A, X.isFragment = w, X.isLazy = H, X.isMemo = U, X.isPortal = q, X.isProfiler = B, X.isStrictMode = se, X.isSuspense = le, X.isSuspenseList = ue, X.isValidElementType = p, X.typeOf = _;
226
+ }()), X;
227
+ }
228
+ process.env.NODE_ENV === "production" ? It.exports = uo() : It.exports = co();
229
+ var pn = It.exports;
230
+ const fn = (e) => typeof e == "object" && e != null && e.nodeType === 1, hn = (e, n) => (!n || e !== "hidden") && e !== "visible" && e !== "clip", gt = (e, n) => {
231
+ if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
232
+ const r = getComputedStyle(e, null);
233
+ return hn(r.overflowY, n) || hn(r.overflowX, n) || ((i) => {
234
+ const o = ((t) => {
235
+ if (!t.ownerDocument || !t.ownerDocument.defaultView)
236
+ return null;
237
+ try {
238
+ return t.ownerDocument.defaultView.frameElement;
239
+ } catch {
240
+ return null;
241
+ }
242
+ })(i);
243
+ return !!o && (o.clientHeight < i.scrollHeight || o.clientWidth < i.scrollWidth);
244
+ })(e);
245
+ }
246
+ return !1;
247
+ }, nt = (e, n, r, i, o, t, s, a) => t < e && s > n || t > e && s < n ? 0 : t <= e && a <= r || s >= n && a >= r ? t - e - i : s > n && a < r || t < e && a > r ? s - n + o : 0, po = (e) => {
248
+ const n = e.parentElement;
249
+ return n ?? (e.getRootNode().host || null);
250
+ }, fo = (e, n) => {
251
+ var r, i, o, t;
252
+ if (typeof document > "u")
253
+ return [];
254
+ const { scrollMode: s, block: a, inline: d, boundary: u, skipOverflowHiddenElements: l } = n, h = typeof u == "function" ? u : (L) => L !== u;
255
+ if (!fn(e))
256
+ throw new TypeError("Invalid target");
257
+ const b = document.scrollingElement || document.documentElement, y = [];
258
+ let x = e;
259
+ for (; fn(x) && h(x); ) {
260
+ if (x = po(x), x === b) {
261
+ y.push(x);
262
+ break;
263
+ }
264
+ x != null && x === document.body && gt(x) && !gt(document.documentElement) || x != null && gt(x, l) && y.push(x);
265
+ }
266
+ const S = (i = (r = window.visualViewport) == null ? void 0 : r.width) != null ? i : innerWidth, g = (t = (o = window.visualViewport) == null ? void 0 : o.height) != null ? t : innerHeight, { scrollX: D, scrollY: c } = window, { height: f, width: p, top: _, right: m, bottom: N, left: E } = e.getBoundingClientRect(), { top: P, right: M, bottom: O, left: k } = ((L) => {
267
+ const K = window.getComputedStyle(L);
268
+ return { top: parseFloat(K.scrollMarginTop) || 0, right: parseFloat(K.scrollMarginRight) || 0, bottom: parseFloat(K.scrollMarginBottom) || 0, left: parseFloat(K.scrollMarginLeft) || 0 };
269
+ })(e);
270
+ let V = a === "start" || a === "nearest" ? _ - P : a === "end" ? N + O : _ + f / 2 - P + O, R = d === "center" ? E + p / 2 - k + M : d === "end" ? m + M : E - k;
271
+ const F = [];
272
+ for (let L = 0; L < y.length; L++) {
273
+ const K = y[L], { height: z, width: Z, top: j, right: W, bottom: Y, left: re } = K.getBoundingClientRect();
274
+ if (s === "if-needed" && _ >= 0 && E >= 0 && N <= g && m <= S && _ >= j && N <= Y && E >= re && m <= W)
275
+ return F;
276
+ const T = getComputedStyle(K), A = parseInt(T.borderLeftWidth, 10), w = parseInt(T.borderTopWidth, 10), H = parseInt(T.borderRightWidth, 10), U = parseInt(T.borderBottomWidth, 10);
277
+ let q = 0, B = 0;
278
+ const se = "offsetWidth" in K ? K.offsetWidth - K.clientWidth - A - H : 0, le = "offsetHeight" in K ? K.offsetHeight - K.clientHeight - w - U : 0, ue = "offsetWidth" in K ? K.offsetWidth === 0 ? 0 : Z / K.offsetWidth : 0, C = "offsetHeight" in K ? K.offsetHeight === 0 ? 0 : z / K.offsetHeight : 0;
279
+ if (b === K)
280
+ q = a === "start" ? V : a === "end" ? V - g : a === "nearest" ? nt(c, c + g, g, w, U, c + V, c + V + f, f) : V - g / 2, B = d === "start" ? R : d === "center" ? R - S / 2 : d === "end" ? R - S : nt(D, D + S, S, A, H, D + R, D + R + p, p), q = Math.max(0, q + c), B = Math.max(0, B + D);
281
+ else {
282
+ q = a === "start" ? V - j - w : a === "end" ? V - Y + U + le : a === "nearest" ? nt(j, Y, z, w, U + le, V, V + f, f) : V - (j + z / 2) + le / 2, B = d === "start" ? R - re - A : d === "center" ? R - (re + Z / 2) + se / 2 : d === "end" ? R - W + H + se : nt(re, W, Z, A, H + se, R, R + p, p);
283
+ const { scrollLeft: he, scrollTop: oe } = K;
284
+ q = C === 0 ? 0 : Math.max(0, Math.min(oe + q / C, K.scrollHeight - z / C + le)), B = ue === 0 ? 0 : Math.max(0, Math.min(he + B / ue, K.scrollWidth - Z / ue + se)), V += oe - q, R += he - B;
285
+ }
286
+ F.push({ el: K, top: q, left: B });
287
+ }
288
+ return F;
289
+ };
290
+ var Fe = function() {
291
+ return Fe = Object.assign || function(n) {
292
+ for (var r, i = 1, o = arguments.length; i < o; i++) {
293
+ r = arguments[i];
294
+ for (var t in r)
295
+ Object.prototype.hasOwnProperty.call(r, t) && (n[t] = r[t]);
296
+ }
297
+ return n;
298
+ }, Fe.apply(this, arguments);
299
+ };
300
+ var ho = 0;
301
+ function gn(e) {
302
+ return typeof e == "function" ? e : me;
303
+ }
304
+ function me() {
305
+ }
306
+ function An(e, n) {
307
+ if (e) {
308
+ var r = fo(e, {
309
+ boundary: n,
310
+ block: "nearest",
311
+ scrollMode: "if-needed"
312
+ });
313
+ r.forEach(function(i) {
314
+ var o = i.el, t = i.top, s = i.left;
315
+ o.scrollTop = t, o.scrollLeft = s;
316
+ });
317
+ }
318
+ }
319
+ function mn(e, n, r) {
320
+ var i = e === n || n instanceof r.Node && e.contains && e.contains(n);
321
+ return i;
322
+ }
323
+ function Ct(e, n) {
324
+ var r;
325
+ function i() {
326
+ r && clearTimeout(r);
327
+ }
328
+ function o() {
329
+ for (var t = arguments.length, s = new Array(t), a = 0; a < t; a++)
330
+ s[a] = arguments[a];
331
+ i(), r = setTimeout(function() {
332
+ r = null, e.apply(void 0, s);
333
+ }, n);
334
+ }
335
+ return o.cancel = i, o;
336
+ }
337
+ function ne() {
338
+ for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
339
+ n[r] = arguments[r];
340
+ return function(i) {
341
+ for (var o = arguments.length, t = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
342
+ t[s - 1] = arguments[s];
343
+ return n.some(function(a) {
344
+ return a && a.apply(void 0, [i].concat(t)), i.preventDownshiftDefault || i.hasOwnProperty("nativeEvent") && i.nativeEvent.preventDownshiftDefault;
345
+ });
346
+ };
347
+ }
348
+ function Re() {
349
+ for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
350
+ n[r] = arguments[r];
351
+ return function(i) {
352
+ n.forEach(function(o) {
353
+ typeof o == "function" ? o(i) : o && (o.current = i);
354
+ });
355
+ };
356
+ }
357
+ function Hn() {
358
+ return String(ho++);
359
+ }
360
+ function jn(e) {
361
+ var n = e.isOpen, r = e.resultCount, i = e.previousResultCount;
362
+ return n ? r ? r !== i ? r + " result" + (r === 1 ? " is" : "s are") + " available, use up and down arrow keys to navigate. Press Enter key to select." : "" : "No results are available." : "";
363
+ }
364
+ function vn(e, n) {
365
+ return e = Array.isArray(e) ? (
366
+ /* istanbul ignore next (preact) */
367
+ e[0]
368
+ ) : e, !e && n ? n : e;
369
+ }
370
+ function Kn(e) {
371
+ return typeof e.type == "string";
372
+ }
373
+ function $n(e) {
374
+ return e.props;
375
+ }
376
+ function go(e, n) {
377
+ console.error('The property "' + n + '" is required in "' + e + '"');
378
+ }
379
+ var mo = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
380
+ function rt(e) {
381
+ e === void 0 && (e = {});
382
+ var n = {};
383
+ return mo.forEach(function(r) {
384
+ e.hasOwnProperty(r) && (n[r] = e[r]);
385
+ }), n;
386
+ }
387
+ function Ye(e, n) {
388
+ return !e || !n ? e : Object.keys(e).reduce(function(r, i) {
389
+ return r[i] = lt(n, i) ? n[i] : e[i], r;
390
+ }, {});
391
+ }
392
+ function lt(e, n) {
393
+ return e[n] !== void 0;
394
+ }
395
+ function Ge(e) {
396
+ var n = e.key, r = e.keyCode;
397
+ return r >= 37 && r <= 40 && n.indexOf("Arrow") !== 0 ? "Arrow" + n : n;
398
+ }
399
+ function vo(e) {
400
+ return Object.prototype.toString.call(e) === "[object Object]";
401
+ }
402
+ function Pe(e, n, r, i, o) {
403
+ o === void 0 && (o = !1);
404
+ var t = r.length;
405
+ if (t === 0)
406
+ return -1;
407
+ var s = t - 1;
408
+ (typeof e != "number" || e < 0 || e > s) && (e = n > 0 ? -1 : s + 1);
409
+ var a = e + n;
410
+ a < 0 ? a = o ? s : 0 : a > s && (a = o ? 0 : s);
411
+ var d = Le(a, n < 0, r, i, o);
412
+ return d === -1 ? e >= t ? -1 : e : d;
413
+ }
414
+ function Le(e, n, r, i, o) {
415
+ o === void 0 && (o = !1);
416
+ var t = r.length;
417
+ if (n) {
418
+ for (var s = e; s >= 0; s--)
419
+ if (!i(r[s], s))
420
+ return s;
421
+ } else
422
+ for (var a = e; a < t; a++)
423
+ if (!i(r[a], a))
424
+ return a;
425
+ return o ? Le(n ? t - 1 : 0, n, r, i) : -1;
426
+ }
427
+ function at(e, n, r, i) {
428
+ return i === void 0 && (i = !0), r && n.some(function(o) {
429
+ return o && (mn(o, e, r) || i && mn(o, r.document.activeElement, r));
430
+ });
431
+ }
432
+ var St = me;
433
+ process.env.NODE_ENV !== "production" && (St = function(n, r, i) {
434
+ var o = "This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";
435
+ Object.keys(n).forEach(function(t) {
436
+ r[t] !== void 0 && i[t] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + t + '" to be uncontrolled. ' + o) : r[t] === void 0 && i[t] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + t + '" to be controlled. ' + o);
437
+ });
438
+ });
439
+ var _o = Ct(function(e) {
440
+ Fn(e).textContent = "";
441
+ }, 500);
442
+ function Fn(e) {
443
+ var n = e.getElementById("a11y-status-message");
444
+ return n || (n = e.createElement("div"), n.setAttribute("id", "a11y-status-message"), n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("aria-relevant", "additions text"), Object.assign(n.style, {
445
+ border: "0",
446
+ clip: "rect(0 0 0 0)",
447
+ height: "1px",
448
+ margin: "-1px",
449
+ overflow: "hidden",
450
+ padding: "0",
451
+ position: "absolute",
452
+ width: "1px"
453
+ }), e.body.appendChild(n), n);
454
+ }
455
+ function Ot(e, n) {
456
+ if (!(!e || !n)) {
457
+ var r = Fn(n);
458
+ r.textContent = e, _o(n);
459
+ }
460
+ }
461
+ var Ln = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Bn = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, zn = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, ot = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, it = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, Un = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, Wn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, qn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, Yn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, Gn = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, Xn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Jn = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Qn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, yt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Zn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, er = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, tr = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, Io = /* @__PURE__ */ Object.freeze({
462
+ __proto__: null,
463
+ unknown: Ln,
464
+ mouseUp: Bn,
465
+ itemMouseEnter: zn,
466
+ keyDownArrowUp: ot,
467
+ keyDownArrowDown: it,
468
+ keyDownEscape: Un,
469
+ keyDownEnter: Wn,
470
+ keyDownHome: qn,
471
+ keyDownEnd: Yn,
472
+ clickItem: Gn,
473
+ blurInput: Xn,
474
+ changeInput: Jn,
475
+ keyDownSpaceButton: Qn,
476
+ clickButton: yt,
477
+ blurButton: Zn,
478
+ controlledPropUpdatedSelectedItem: er,
479
+ touchEnd: tr
480
+ }), yo = ["refKey", "ref"], xo = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], bo = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], wo = ["refKey", "ref"], Eo = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], Co = /* @__PURE__ */ function() {
481
+ var e = /* @__PURE__ */ function(n) {
482
+ jr(r, n);
483
+ function r(o) {
484
+ var t;
485
+ t = n.call(this, o) || this, t.id = t.props.id || "downshift-" + Hn(), t.menuId = t.props.menuId || t.id + "-menu", t.labelId = t.props.labelId || t.id + "-label", t.inputId = t.props.inputId || t.id + "-input", t.getItemId = t.props.getItemId || function(c) {
486
+ return t.id + "-item-" + c;
487
+ }, t.items = [], t.itemCount = null, t.previousResultCount = 0, t.timeoutIds = [], t.internalSetTimeout = function(c, f) {
488
+ var p = setTimeout(function() {
489
+ t.timeoutIds = t.timeoutIds.filter(function(_) {
490
+ return _ !== p;
491
+ }), c();
492
+ }, f);
493
+ t.timeoutIds.push(p);
494
+ }, t.setItemCount = function(c) {
495
+ t.itemCount = c;
496
+ }, t.unsetItemCount = function() {
497
+ t.itemCount = null;
498
+ }, t.isItemDisabled = function(c, f) {
499
+ var p = t.getItemNodeFromIndex(f);
500
+ return p && p.hasAttribute("disabled");
501
+ }, t.setHighlightedIndex = function(c, f) {
502
+ c === void 0 && (c = t.props.defaultHighlightedIndex), f === void 0 && (f = {}), f = rt(f), t.internalSetState($({
503
+ highlightedIndex: c
504
+ }, f));
505
+ }, t.clearSelection = function(c) {
506
+ t.internalSetState({
507
+ selectedItem: null,
508
+ inputValue: "",
509
+ highlightedIndex: t.props.defaultHighlightedIndex,
510
+ isOpen: t.props.defaultIsOpen
511
+ }, c);
512
+ }, t.selectItem = function(c, f, p) {
513
+ f = rt(f), t.internalSetState($({
514
+ isOpen: t.props.defaultIsOpen,
515
+ highlightedIndex: t.props.defaultHighlightedIndex,
516
+ selectedItem: c,
517
+ inputValue: t.props.itemToString(c)
518
+ }, f), p);
519
+ }, t.selectItemAtIndex = function(c, f, p) {
520
+ var _ = t.items[c];
521
+ _ != null && t.selectItem(_, f, p);
522
+ }, t.selectHighlightedItem = function(c, f) {
523
+ return t.selectItemAtIndex(t.getState().highlightedIndex, c, f);
524
+ }, t.internalSetState = function(c, f) {
525
+ var p, _, m = {}, N = typeof c == "function";
526
+ return !N && c.hasOwnProperty("inputValue") && t.props.onInputValueChange(c.inputValue, $({}, t.getStateAndHelpers(), c)), t.setState(function(E) {
527
+ var P;
528
+ E = t.getState(E);
529
+ var M = N ? c(E) : c;
530
+ M = t.props.stateReducer(E, M), p = M.hasOwnProperty("selectedItem");
531
+ var O = {};
532
+ return p && M.selectedItem !== E.selectedItem && (_ = M.selectedItem), (P = M).type || (P.type = Ln), Object.keys(M).forEach(function(k) {
533
+ E[k] !== M[k] && (m[k] = M[k]), k !== "type" && (M[k], lt(t.props, k) || (O[k] = M[k]));
534
+ }), N && M.hasOwnProperty("inputValue") && t.props.onInputValueChange(M.inputValue, $({}, t.getStateAndHelpers(), M)), O;
535
+ }, function() {
536
+ gn(f)();
537
+ var E = Object.keys(m).length > 1;
538
+ E && t.props.onStateChange(m, t.getStateAndHelpers()), p && t.props.onSelect(c.selectedItem, t.getStateAndHelpers()), _ !== void 0 && t.props.onChange(_, t.getStateAndHelpers()), t.props.onUserAction(m, t.getStateAndHelpers());
539
+ });
540
+ }, t.rootRef = function(c) {
541
+ return t._rootNode = c;
542
+ }, t.getRootProps = function(c, f) {
543
+ var p, _ = c === void 0 ? {} : c, m = _.refKey, N = m === void 0 ? "ref" : m, E = _.ref, P = ve(_, yo), M = f === void 0 ? {} : f, O = M.suppressRefError, k = O === void 0 ? !1 : O;
544
+ t.getRootProps.called = !0, t.getRootProps.refKey = N, t.getRootProps.suppressRefError = k;
545
+ var V = t.getState(), R = V.isOpen;
546
+ return $((p = {}, p[N] = Re(E, t.rootRef), p.role = "combobox", p["aria-expanded"] = R, p["aria-haspopup"] = "listbox", p["aria-owns"] = R ? t.menuId : void 0, p["aria-labelledby"] = t.labelId, p), P);
547
+ }, t.keyDownHandlers = {
548
+ ArrowDown: function(f) {
549
+ var p = this;
550
+ if (f.preventDefault(), this.getState().isOpen) {
551
+ var _ = f.shiftKey ? 5 : 1;
552
+ this.moveHighlightedIndex(_, {
553
+ type: it
554
+ });
555
+ } else
556
+ this.internalSetState({
557
+ isOpen: !0,
558
+ type: it
559
+ }, function() {
560
+ var m = p.getItemCount();
561
+ if (m > 0) {
562
+ var N = p.getState(), E = N.highlightedIndex, P = Pe(E, 1, {
563
+ length: m
564
+ }, p.isItemDisabled, !0);
565
+ p.setHighlightedIndex(P, {
566
+ type: it
567
+ });
568
+ }
569
+ });
570
+ },
571
+ ArrowUp: function(f) {
572
+ var p = this;
573
+ if (f.preventDefault(), this.getState().isOpen) {
574
+ var _ = f.shiftKey ? -5 : -1;
575
+ this.moveHighlightedIndex(_, {
576
+ type: ot
577
+ });
578
+ } else
579
+ this.internalSetState({
580
+ isOpen: !0,
581
+ type: ot
582
+ }, function() {
583
+ var m = p.getItemCount();
584
+ if (m > 0) {
585
+ var N = p.getState(), E = N.highlightedIndex, P = Pe(E, -1, {
586
+ length: m
587
+ }, p.isItemDisabled, !0);
588
+ p.setHighlightedIndex(P, {
589
+ type: ot
590
+ });
591
+ }
592
+ });
593
+ },
594
+ Enter: function(f) {
595
+ if (f.which !== 229) {
596
+ var p = this.getState(), _ = p.isOpen, m = p.highlightedIndex;
597
+ if (_ && m != null) {
598
+ f.preventDefault();
599
+ var N = this.items[m], E = this.getItemNodeFromIndex(m);
600
+ if (N == null || E && E.hasAttribute("disabled"))
601
+ return;
602
+ this.selectHighlightedItem({
603
+ type: Wn
604
+ });
605
+ }
606
+ }
607
+ },
608
+ Escape: function(f) {
609
+ f.preventDefault(), this.reset($({
610
+ type: Un
611
+ }, !this.state.isOpen && {
612
+ selectedItem: null,
613
+ inputValue: ""
614
+ }));
615
+ }
616
+ }, t.buttonKeyDownHandlers = $({}, t.keyDownHandlers, {
617
+ " ": function(f) {
618
+ f.preventDefault(), this.toggleMenu({
619
+ type: Qn
620
+ });
621
+ }
622
+ }), t.inputKeyDownHandlers = $({}, t.keyDownHandlers, {
623
+ Home: function(f) {
624
+ var p = this.getState(), _ = p.isOpen;
625
+ if (_) {
626
+ f.preventDefault();
627
+ var m = this.getItemCount();
628
+ if (!(m <= 0 || !_)) {
629
+ var N = Le(0, !1, {
630
+ length: m
631
+ }, this.isItemDisabled);
632
+ this.setHighlightedIndex(N, {
633
+ type: qn
634
+ });
635
+ }
636
+ }
637
+ },
638
+ End: function(f) {
639
+ var p = this.getState(), _ = p.isOpen;
640
+ if (_) {
641
+ f.preventDefault();
642
+ var m = this.getItemCount();
643
+ if (!(m <= 0 || !_)) {
644
+ var N = Le(m - 1, !0, {
645
+ length: m
646
+ }, this.isItemDisabled);
647
+ this.setHighlightedIndex(N, {
648
+ type: Yn
649
+ });
650
+ }
651
+ }
652
+ }
653
+ }), t.getToggleButtonProps = function(c) {
654
+ var f = c === void 0 ? {} : c, p = f.onClick;
655
+ f.onPress;
656
+ var _ = f.onKeyDown, m = f.onKeyUp, N = f.onBlur, E = ve(f, xo), P = t.getState(), M = P.isOpen, O = {
657
+ onClick: ne(p, t.buttonHandleClick),
658
+ onKeyDown: ne(_, t.buttonHandleKeyDown),
659
+ onKeyUp: ne(m, t.buttonHandleKeyUp),
660
+ onBlur: ne(N, t.buttonHandleBlur)
661
+ }, k = E.disabled ? {} : O;
662
+ return $({
663
+ type: "button",
664
+ role: "button",
665
+ "aria-label": M ? "close menu" : "open menu",
666
+ "aria-haspopup": !0,
667
+ "data-toggle": !0
668
+ }, k, E);
669
+ }, t.buttonHandleKeyUp = function(c) {
670
+ c.preventDefault();
671
+ }, t.buttonHandleKeyDown = function(c) {
672
+ var f = Ge(c);
673
+ t.buttonKeyDownHandlers[f] && t.buttonKeyDownHandlers[f].call(un(t), c);
674
+ }, t.buttonHandleClick = function(c) {
675
+ if (c.preventDefault(), t.props.environment) {
676
+ var f = t.props.environment.document, p = f.body, _ = f.activeElement;
677
+ p && p === _ && c.target.focus();
678
+ }
679
+ process.env.NODE_ENV === "test" ? t.toggleMenu({
680
+ type: yt
681
+ }) : t.internalSetTimeout(function() {
682
+ return t.toggleMenu({
683
+ type: yt
684
+ });
685
+ });
686
+ }, t.buttonHandleBlur = function(c) {
687
+ var f = c.target;
688
+ t.internalSetTimeout(function() {
689
+ if (!(t.isMouseDown || !t.props.environment)) {
690
+ var p = t.props.environment.document.activeElement;
691
+ (p == null || p.id !== t.inputId) && p !== f && t.reset({
692
+ type: Zn
693
+ });
694
+ }
695
+ });
696
+ }, t.getLabelProps = function(c) {
697
+ return $({
698
+ htmlFor: t.inputId,
699
+ id: t.labelId
700
+ }, c);
701
+ }, t.getInputProps = function(c) {
702
+ var f = c === void 0 ? {} : c, p = f.onKeyDown, _ = f.onBlur, m = f.onChange, N = f.onInput;
703
+ f.onChangeText;
704
+ var E = ve(f, bo), P, M = {};
705
+ P = "onChange";
706
+ var O = t.getState(), k = O.inputValue, V = O.isOpen, R = O.highlightedIndex;
707
+ if (!E.disabled) {
708
+ var F;
709
+ M = (F = {}, F[P] = ne(m, N, t.inputHandleChange), F.onKeyDown = ne(p, t.inputHandleKeyDown), F.onBlur = ne(_, t.inputHandleBlur), F);
710
+ }
711
+ return $({
712
+ "aria-autocomplete": "list",
713
+ "aria-activedescendant": V && typeof R == "number" && R >= 0 ? t.getItemId(R) : void 0,
714
+ "aria-controls": V ? t.menuId : void 0,
715
+ "aria-labelledby": E && E["aria-label"] ? void 0 : t.labelId,
716
+ // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
717
+ // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
718
+ autoComplete: "off",
719
+ value: k,
720
+ id: t.inputId
721
+ }, M, E);
722
+ }, t.inputHandleKeyDown = function(c) {
723
+ var f = Ge(c);
724
+ f && t.inputKeyDownHandlers[f] && t.inputKeyDownHandlers[f].call(un(t), c);
725
+ }, t.inputHandleChange = function(c) {
726
+ t.internalSetState({
727
+ type: Jn,
728
+ isOpen: !0,
729
+ inputValue: c.target.value,
730
+ highlightedIndex: t.props.defaultHighlightedIndex
731
+ });
732
+ }, t.inputHandleBlur = function() {
733
+ t.internalSetTimeout(function() {
734
+ var c;
735
+ if (!(t.isMouseDown || !t.props.environment)) {
736
+ var f = t.props.environment.document.activeElement, p = (f == null || (c = f.dataset) == null ? void 0 : c.toggle) && t._rootNode && t._rootNode.contains(f);
737
+ p || t.reset({
738
+ type: Xn
739
+ });
740
+ }
741
+ });
742
+ }, t.menuRef = function(c) {
743
+ t._menuNode = c;
744
+ }, t.getMenuProps = function(c, f) {
745
+ var p, _ = c === void 0 ? {} : c, m = _.refKey, N = m === void 0 ? "ref" : m, E = _.ref, P = ve(_, wo), M = f === void 0 ? {} : f, O = M.suppressRefError, k = O === void 0 ? !1 : O;
746
+ return t.getMenuProps.called = !0, t.getMenuProps.refKey = N, t.getMenuProps.suppressRefError = k, $((p = {}, p[N] = Re(E, t.menuRef), p.role = "listbox", p["aria-labelledby"] = P && P["aria-label"] ? void 0 : t.labelId, p.id = t.menuId, p), P);
747
+ }, t.getItemProps = function(c) {
748
+ var f, p = c === void 0 ? {} : c, _ = p.onMouseMove, m = p.onMouseDown, N = p.onClick;
749
+ p.onPress;
750
+ var E = p.index, P = p.item, M = P === void 0 ? process.env.NODE_ENV === "production" ? (
751
+ /* istanbul ignore next */
752
+ void 0
753
+ ) : go("getItemProps", "item") : P, O = ve(p, Eo);
754
+ E === void 0 ? (t.items.push(M), E = t.items.indexOf(M)) : t.items[E] = M;
755
+ var k = "onClick", V = N, R = (f = {
756
+ // onMouseMove is used over onMouseEnter here. onMouseMove
757
+ // is only triggered on actual mouse movement while onMouseEnter
758
+ // can fire on DOM changes, interrupting keyboard navigation
759
+ onMouseMove: ne(_, function() {
760
+ E !== t.getState().highlightedIndex && (t.setHighlightedIndex(E, {
761
+ type: zn
762
+ }), t.avoidScrolling = !0, t.internalSetTimeout(function() {
763
+ return t.avoidScrolling = !1;
764
+ }, 250));
765
+ }),
766
+ onMouseDown: ne(m, function(L) {
767
+ L.preventDefault();
768
+ })
769
+ }, f[k] = ne(V, function() {
770
+ t.selectItemAtIndex(E, {
771
+ type: Gn
772
+ });
773
+ }), f), F = O.disabled ? {
774
+ onMouseDown: R.onMouseDown
775
+ } : R;
776
+ return $({
777
+ id: t.getItemId(E),
778
+ role: "option",
779
+ "aria-selected": t.getState().highlightedIndex === E
780
+ }, F, O);
781
+ }, t.clearItems = function() {
782
+ t.items = [];
783
+ }, t.reset = function(c, f) {
784
+ c === void 0 && (c = {}), c = rt(c), t.internalSetState(function(p) {
785
+ var _ = p.selectedItem;
786
+ return $({
787
+ isOpen: t.props.defaultIsOpen,
788
+ highlightedIndex: t.props.defaultHighlightedIndex,
789
+ inputValue: t.props.itemToString(_)
790
+ }, c);
791
+ }, f);
792
+ }, t.toggleMenu = function(c, f) {
793
+ c === void 0 && (c = {}), c = rt(c), t.internalSetState(function(p) {
794
+ var _ = p.isOpen;
795
+ return $({
796
+ isOpen: !_
797
+ }, _ && {
798
+ highlightedIndex: t.props.defaultHighlightedIndex
799
+ }, c);
800
+ }, function() {
801
+ var p = t.getState(), _ = p.isOpen, m = p.highlightedIndex;
802
+ _ && t.getItemCount() > 0 && typeof m == "number" && t.setHighlightedIndex(m, c), gn(f)();
803
+ });
804
+ }, t.openMenu = function(c) {
805
+ t.internalSetState({
806
+ isOpen: !0
807
+ }, c);
808
+ }, t.closeMenu = function(c) {
809
+ t.internalSetState({
810
+ isOpen: !1
811
+ }, c);
812
+ }, t.updateStatus = Ct(function() {
813
+ var c;
814
+ if ((c = t.props) != null && (c = c.environment) != null && c.document) {
815
+ var f = t.getState(), p = t.items[f.highlightedIndex], _ = t.getItemCount(), m = t.props.getA11yStatusMessage($({
816
+ itemToString: t.props.itemToString,
817
+ previousResultCount: t.previousResultCount,
818
+ resultCount: _,
819
+ highlightedItem: p
820
+ }, f));
821
+ t.previousResultCount = _, Ot(m, t.props.environment.document);
822
+ }
823
+ }, 200);
824
+ var s = t.props, a = s.defaultHighlightedIndex, d = s.initialHighlightedIndex, u = d === void 0 ? a : d, l = s.defaultIsOpen, h = s.initialIsOpen, b = h === void 0 ? l : h, y = s.initialInputValue, x = y === void 0 ? "" : y, S = s.initialSelectedItem, g = S === void 0 ? null : S, D = t.getState({
825
+ highlightedIndex: u,
826
+ isOpen: b,
827
+ inputValue: x,
828
+ selectedItem: g
829
+ });
830
+ return D.selectedItem != null && t.props.initialInputValue === void 0 && (D.inputValue = t.props.itemToString(D.selectedItem)), t.state = D, t;
831
+ }
832
+ var i = r.prototype;
833
+ return i.internalClearTimeouts = function() {
834
+ this.timeoutIds.forEach(function(t) {
835
+ clearTimeout(t);
836
+ }), this.timeoutIds = [];
837
+ }, i.getState = function(t) {
838
+ return t === void 0 && (t = this.state), Ye(t, this.props);
839
+ }, i.getItemCount = function() {
840
+ var t = this.items.length;
841
+ return this.itemCount != null ? t = this.itemCount : this.props.itemCount !== void 0 && (t = this.props.itemCount), t;
842
+ }, i.getItemNodeFromIndex = function(t) {
843
+ return this.props.environment ? this.props.environment.document.getElementById(this.getItemId(t)) : null;
844
+ }, i.scrollHighlightedItemIntoView = function() {
845
+ {
846
+ var t = this.getItemNodeFromIndex(this.getState().highlightedIndex);
847
+ this.props.scrollIntoView(t, this._menuNode);
848
+ }
849
+ }, i.moveHighlightedIndex = function(t, s) {
850
+ var a = this.getItemCount(), d = this.getState(), u = d.highlightedIndex;
851
+ if (a > 0) {
852
+ var l = Pe(u, t, {
853
+ length: a
854
+ }, this.isItemDisabled, !0);
855
+ this.setHighlightedIndex(l, s);
856
+ }
857
+ }, i.getStateAndHelpers = function() {
858
+ var t = this.getState(), s = t.highlightedIndex, a = t.inputValue, d = t.selectedItem, u = t.isOpen, l = this.props.itemToString, h = this.id, b = this.getRootProps, y = this.getToggleButtonProps, x = this.getLabelProps, S = this.getMenuProps, g = this.getInputProps, D = this.getItemProps, c = this.openMenu, f = this.closeMenu, p = this.toggleMenu, _ = this.selectItem, m = this.selectItemAtIndex, N = this.selectHighlightedItem, E = this.setHighlightedIndex, P = this.clearSelection, M = this.clearItems, O = this.reset, k = this.setItemCount, V = this.unsetItemCount, R = this.internalSetState;
859
+ return {
860
+ // prop getters
861
+ getRootProps: b,
862
+ getToggleButtonProps: y,
863
+ getLabelProps: x,
864
+ getMenuProps: S,
865
+ getInputProps: g,
866
+ getItemProps: D,
867
+ // actions
868
+ reset: O,
869
+ openMenu: c,
870
+ closeMenu: f,
871
+ toggleMenu: p,
872
+ selectItem: _,
873
+ selectItemAtIndex: m,
874
+ selectHighlightedItem: N,
875
+ setHighlightedIndex: E,
876
+ clearSelection: P,
877
+ clearItems: M,
878
+ setItemCount: k,
879
+ unsetItemCount: V,
880
+ setState: R,
881
+ // props
882
+ itemToString: l,
883
+ // derived
884
+ id: h,
885
+ // state
886
+ highlightedIndex: s,
887
+ inputValue: a,
888
+ isOpen: u,
889
+ selectedItem: d
890
+ };
891
+ }, i.componentDidMount = function() {
892
+ var t = this;
893
+ if (process.env.NODE_ENV !== "production" && this.getMenuProps.called && !this.getMenuProps.suppressRefError && _n(this._menuNode, this.getMenuProps), !this.props.environment)
894
+ this.cleanup = function() {
895
+ t.internalClearTimeouts();
896
+ };
897
+ else {
898
+ var s = function() {
899
+ t.isMouseDown = !0;
900
+ }, a = function(y) {
901
+ t.isMouseDown = !1;
902
+ var x = at(y.target, [t._rootNode, t._menuNode], t.props.environment);
903
+ !x && t.getState().isOpen && t.reset({
904
+ type: Bn
905
+ }, function() {
906
+ return t.props.onOuterClick(t.getStateAndHelpers());
907
+ });
908
+ }, d = function() {
909
+ t.isTouchMove = !1;
910
+ }, u = function() {
911
+ t.isTouchMove = !0;
912
+ }, l = function(y) {
913
+ var x = at(y.target, [t._rootNode, t._menuNode], t.props.environment, !1);
914
+ !t.isTouchMove && !x && t.getState().isOpen && t.reset({
915
+ type: tr
916
+ }, function() {
917
+ return t.props.onOuterClick(t.getStateAndHelpers());
918
+ });
919
+ }, h = this.props.environment;
920
+ h.addEventListener("mousedown", s), h.addEventListener("mouseup", a), h.addEventListener("touchstart", d), h.addEventListener("touchmove", u), h.addEventListener("touchend", l), this.cleanup = function() {
921
+ t.internalClearTimeouts(), t.updateStatus.cancel(), h.removeEventListener("mousedown", s), h.removeEventListener("mouseup", a), h.removeEventListener("touchstart", d), h.removeEventListener("touchmove", u), h.removeEventListener("touchend", l);
922
+ };
923
+ }
924
+ }, i.shouldScroll = function(t, s) {
925
+ var a = this.props.highlightedIndex === void 0 ? this.getState() : this.props, d = a.highlightedIndex, u = s.highlightedIndex === void 0 ? t : s, l = u.highlightedIndex, h = d && this.getState().isOpen && !t.isOpen, b = d !== l;
926
+ return h || b;
927
+ }, i.componentDidUpdate = function(t, s) {
928
+ process.env.NODE_ENV !== "production" && (St(this.state, t, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && _n(this._menuNode, this.getMenuProps)), lt(this.props, "selectedItem") && this.props.selectedItemChanged(t.selectedItem, this.props.selectedItem) && this.internalSetState({
929
+ type: er,
930
+ inputValue: this.props.itemToString(this.props.selectedItem)
931
+ }), !this.avoidScrolling && this.shouldScroll(s, t) && this.scrollHighlightedItemIntoView(), this.updateStatus();
932
+ }, i.componentWillUnmount = function() {
933
+ this.cleanup();
934
+ }, i.render = function() {
935
+ var t = vn(this.props.children, me);
936
+ this.clearItems(), this.getRootProps.called = !1, this.getRootProps.refKey = void 0, this.getRootProps.suppressRefError = void 0, this.getMenuProps.called = !1, this.getMenuProps.refKey = void 0, this.getMenuProps.suppressRefError = void 0, this.getLabelProps.called = !1, this.getInputProps.called = !1;
937
+ var s = vn(t(this.getStateAndHelpers()));
938
+ if (!s)
939
+ return null;
940
+ if (this.getRootProps.called || this.props.suppressRefError)
941
+ return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && So(s, this.getRootProps), s;
942
+ if (Kn(s))
943
+ return /* @__PURE__ */ Kr(s, this.getRootProps($n(s)));
944
+ if (process.env.NODE_ENV !== "production")
945
+ throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
946
+ }, r;
947
+ }($r);
948
+ return e.defaultProps = {
949
+ defaultHighlightedIndex: null,
950
+ defaultIsOpen: !1,
951
+ getA11yStatusMessage: jn,
952
+ itemToString: function(r) {
953
+ return r == null ? "" : (process.env.NODE_ENV !== "production" && vo(r) && !r.hasOwnProperty("toString") && console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.", "The object that was passed:", r), String(r));
954
+ },
955
+ onStateChange: me,
956
+ onInputValueChange: me,
957
+ onUserAction: me,
958
+ onChange: me,
959
+ onSelect: me,
960
+ onOuterClick: me,
961
+ selectedItemChanged: function(r, i) {
962
+ return r !== i;
963
+ },
964
+ environment: (
965
+ /* istanbul ignore next (ssr) */
966
+ typeof window > "u" ? void 0 : window
967
+ ),
968
+ stateReducer: function(r, i) {
969
+ return i;
970
+ },
971
+ suppressRefError: !1,
972
+ scrollIntoView: An
973
+ }, e.stateChangeTypes = Io, e;
974
+ }();
975
+ process.env.NODE_ENV !== "production" && (Co.propTypes = {
976
+ children: I.func,
977
+ defaultHighlightedIndex: I.number,
978
+ defaultIsOpen: I.bool,
979
+ initialHighlightedIndex: I.number,
980
+ initialSelectedItem: I.any,
981
+ initialInputValue: I.string,
982
+ initialIsOpen: I.bool,
983
+ getA11yStatusMessage: I.func,
984
+ itemToString: I.func,
985
+ onChange: I.func,
986
+ onSelect: I.func,
987
+ onStateChange: I.func,
988
+ onInputValueChange: I.func,
989
+ onUserAction: I.func,
990
+ onOuterClick: I.func,
991
+ selectedItemChanged: I.func,
992
+ stateReducer: I.func,
993
+ itemCount: I.number,
994
+ id: I.string,
995
+ environment: I.shape({
996
+ addEventListener: I.func.isRequired,
997
+ removeEventListener: I.func.isRequired,
998
+ document: I.shape({
999
+ createElement: I.func.isRequired,
1000
+ getElementById: I.func.isRequired,
1001
+ activeElement: I.any.isRequired,
1002
+ body: I.any.isRequired
1003
+ }).isRequired,
1004
+ Node: I.func.isRequired
1005
+ }),
1006
+ suppressRefError: I.bool,
1007
+ scrollIntoView: I.func,
1008
+ // things we keep in state for uncontrolled components
1009
+ // but can accept as props for controlled components
1010
+ /* eslint-disable react/no-unused-prop-types */
1011
+ selectedItem: I.any,
1012
+ isOpen: I.bool,
1013
+ inputValue: I.string,
1014
+ highlightedIndex: I.number,
1015
+ labelId: I.string,
1016
+ inputId: I.string,
1017
+ menuId: I.string,
1018
+ getItemId: I.func
1019
+ /* eslint-enable react/no-unused-prop-types */
1020
+ });
1021
+ function _n(e, n) {
1022
+ var r = n.refKey;
1023
+ e || console.error('downshift: The ref prop "' + r + '" from getMenuProps was not applied correctly on your menu element.');
1024
+ }
1025
+ function So(e, n) {
1026
+ var r = n.refKey, i = r !== "ref", o = !Kn(e);
1027
+ o && !i && !pn.isForwardRef(e) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !o && i && console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + r + '"'), !pn.isForwardRef(e) && !$n(e)[r] && console.error('downshift: You must apply the ref prop "' + r + '" from getRootProps onto your root element.');
1028
+ }
1029
+ var Oo = ["highlightedIndex", "items", "environment"], nr = {
1030
+ highlightedIndex: -1,
1031
+ isOpen: !1,
1032
+ selectedItem: null,
1033
+ inputValue: ""
1034
+ };
1035
+ function Do(e, n, r) {
1036
+ var i = e.props, o = e.type, t = {};
1037
+ Object.keys(n).forEach(function(s) {
1038
+ No(s, e, n, r), r[s] !== n[s] && (t[s] = r[s]);
1039
+ }), i.onStateChange && Object.keys(t).length && i.onStateChange($({
1040
+ type: o
1041
+ }, t));
1042
+ }
1043
+ function No(e, n, r, i) {
1044
+ var o = n.props, t = n.type, s = "on" + Dt(e) + "Change";
1045
+ o[s] && i[e] !== void 0 && i[e] !== r[e] && o[s]($({
1046
+ type: t
1047
+ }, i));
1048
+ }
1049
+ function Ro(e, n) {
1050
+ return n.changes;
1051
+ }
1052
+ function ko(e) {
1053
+ var n = e.selectedItem, r = e.itemToString;
1054
+ return n ? r(n) + " has been selected." : "";
1055
+ }
1056
+ var Po = Ct(function(e, n) {
1057
+ Ot(e(), n);
1058
+ }, 200), Mo = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? wt : de, To = "useId" in st ? function(n) {
1059
+ var r = n.id, i = n.labelId, o = n.menuId, t = n.getItemId, s = n.toggleButtonId, a = n.inputId, d = "downshift-" + st.useId();
1060
+ r || (r = d);
1061
+ var u = Q({
1062
+ labelId: i || r + "-label",
1063
+ menuId: o || r + "-menu",
1064
+ getItemId: t || function(l) {
1065
+ return r + "-item-" + l;
1066
+ },
1067
+ toggleButtonId: s || r + "-toggle-button",
1068
+ inputId: a || r + "-input"
1069
+ });
1070
+ return u.current;
1071
+ } : function(n) {
1072
+ var r = n.id, i = r === void 0 ? "downshift-" + Hn() : r, o = n.labelId, t = n.menuId, s = n.getItemId, a = n.toggleButtonId, d = n.inputId, u = Q({
1073
+ labelId: o || i + "-label",
1074
+ menuId: t || i + "-menu",
1075
+ getItemId: s || function(l) {
1076
+ return i + "-item-" + l;
1077
+ },
1078
+ toggleButtonId: a || i + "-toggle-button",
1079
+ inputId: d || i + "-input"
1080
+ });
1081
+ return u.current;
1082
+ };
1083
+ function rr(e, n, r, i) {
1084
+ var o, t;
1085
+ if (e === void 0) {
1086
+ if (n === void 0)
1087
+ throw new Error(i);
1088
+ o = r[n], t = n;
1089
+ } else
1090
+ t = n === void 0 ? r.indexOf(e) : n, o = e;
1091
+ return [o, t];
1092
+ }
1093
+ function Dt(e) {
1094
+ return "" + e.slice(0, 1).toUpperCase() + e.slice(1);
1095
+ }
1096
+ function Nt(e) {
1097
+ var n = Q(e);
1098
+ return n.current = e, n;
1099
+ }
1100
+ function or(e, n, r, i) {
1101
+ var o = Q(), t = Q(), s = ee(function(y, x) {
1102
+ t.current = x, y = Ye(y, x.props);
1103
+ var S = e(y, x), g = x.props.stateReducer(y, $({}, x, {
1104
+ changes: S
1105
+ }));
1106
+ return g;
1107
+ }, [e]), a = Fr(s, n, r), d = a[0], u = a[1], l = Nt(n), h = ee(function(y) {
1108
+ return u($({
1109
+ props: l.current
1110
+ }, y));
1111
+ }, [l]), b = t.current;
1112
+ return de(function() {
1113
+ var y = Ye(o.current, b == null ? void 0 : b.props), x = b && o.current && !i(y, d);
1114
+ x && Do(b, y, d), o.current = d;
1115
+ }, [d, b, i]), [d, h];
1116
+ }
1117
+ function Vo(e, n, r, i) {
1118
+ var o = or(e, n, r, i), t = o[0], s = o[1];
1119
+ return [Ye(t, n), s];
1120
+ }
1121
+ var He = {
1122
+ itemToString: function(n) {
1123
+ return n ? String(n) : "";
1124
+ },
1125
+ itemToKey: function(n) {
1126
+ return n;
1127
+ },
1128
+ stateReducer: Ro,
1129
+ getA11ySelectionMessage: ko,
1130
+ scrollIntoView: An,
1131
+ environment: (
1132
+ /* istanbul ignore next (ssr) */
1133
+ typeof window > "u" ? void 0 : window
1134
+ )
1135
+ };
1136
+ function be(e, n, r) {
1137
+ r === void 0 && (r = nr);
1138
+ var i = e["default" + Dt(n)];
1139
+ return i !== void 0 ? i : r[n];
1140
+ }
1141
+ function je(e, n, r) {
1142
+ r === void 0 && (r = nr);
1143
+ var i = e[n];
1144
+ if (i !== void 0)
1145
+ return i;
1146
+ var o = e["initial" + Dt(n)];
1147
+ return o !== void 0 ? o : be(e, n, r);
1148
+ }
1149
+ function Ao(e) {
1150
+ var n = je(e, "selectedItem"), r = je(e, "isOpen"), i = je(e, "highlightedIndex"), o = je(e, "inputValue");
1151
+ return {
1152
+ highlightedIndex: i < 0 && n && r ? e.items.findIndex(function(t) {
1153
+ return e.itemToKey(t) === e.itemToKey(n);
1154
+ }) : i,
1155
+ isOpen: r,
1156
+ selectedItem: n,
1157
+ inputValue: o
1158
+ };
1159
+ }
1160
+ function We(e, n, r) {
1161
+ var i = e.items, o = e.initialHighlightedIndex, t = e.defaultHighlightedIndex, s = e.itemToKey, a = n.selectedItem, d = n.highlightedIndex;
1162
+ return i.length === 0 ? -1 : o !== void 0 && d === o ? o : t !== void 0 ? t : a ? i.findIndex(function(u) {
1163
+ return s(a) === s(u);
1164
+ }) : r === 0 ? -1 : r < 0 ? i.length - 1 : 0;
1165
+ }
1166
+ function Ho(e, n, r) {
1167
+ var i = Q({
1168
+ isMouseDown: !1,
1169
+ isTouchMove: !1,
1170
+ isTouchEnd: !1
1171
+ });
1172
+ return de(function() {
1173
+ if (!e)
1174
+ return me;
1175
+ var o = n.map(function(l) {
1176
+ return l.current;
1177
+ });
1178
+ function t() {
1179
+ i.current.isTouchEnd = !1, i.current.isMouseDown = !0;
1180
+ }
1181
+ function s(l) {
1182
+ i.current.isMouseDown = !1, at(l.target, o, e) || r();
1183
+ }
1184
+ function a() {
1185
+ i.current.isTouchEnd = !1, i.current.isTouchMove = !1;
1186
+ }
1187
+ function d() {
1188
+ i.current.isTouchMove = !0;
1189
+ }
1190
+ function u(l) {
1191
+ i.current.isTouchEnd = !0, !i.current.isTouchMove && !at(l.target, o, e, !1) && r();
1192
+ }
1193
+ return e.addEventListener("mousedown", t), e.addEventListener("mouseup", s), e.addEventListener("touchstart", a), e.addEventListener("touchmove", d), e.addEventListener("touchend", u), function() {
1194
+ e.removeEventListener("mousedown", t), e.removeEventListener("mouseup", s), e.removeEventListener("touchstart", a), e.removeEventListener("touchmove", d), e.removeEventListener("touchend", u);
1195
+ };
1196
+ }, [e, r]), i.current;
1197
+ }
1198
+ var Rt = function() {
1199
+ return me;
1200
+ };
1201
+ process.env.NODE_ENV !== "production" && (Rt = function() {
1202
+ for (var n = Q(!0), r = arguments.length, i = new Array(r), o = 0; o < r; o++)
1203
+ i[o] = arguments[o];
1204
+ var t = Q(i.reduce(function(a, d) {
1205
+ return a[d] = {}, a;
1206
+ }, {}));
1207
+ de(function() {
1208
+ Object.keys(t.current).forEach(function(a) {
1209
+ var d = t.current[a];
1210
+ if (n.current && !Object.keys(d).length) {
1211
+ console.error("downshift: You forgot to call the " + a + " getter function on your component / element.");
1212
+ return;
1213
+ }
1214
+ var u = d.suppressRefError, l = d.refKey, h = d.elementRef;
1215
+ (!h || !h.current) && !u && console.error('downshift: The ref prop "' + l + '" from ' + a + " was not applied correctly on your element.");
1216
+ }), n.current = !1;
1217
+ });
1218
+ var s = ee(function(a, d, u, l) {
1219
+ t.current[a] = {
1220
+ suppressRefError: d,
1221
+ refKey: u,
1222
+ elementRef: l
1223
+ };
1224
+ }, []);
1225
+ return s;
1226
+ });
1227
+ function In(e, n, r) {
1228
+ var i = r.highlightedIndex, o = r.items, t = r.environment, s = ve(r, Oo), a = Xe();
1229
+ de(function() {
1230
+ a || !(t != null && t.document) || Po(function() {
1231
+ return e($({
1232
+ highlightedIndex: i,
1233
+ highlightedItem: o[i],
1234
+ resultCount: o.length
1235
+ }, s));
1236
+ }, t.document);
1237
+ }, n);
1238
+ }
1239
+ function jo(e) {
1240
+ var n = e.highlightedIndex, r = e.isOpen, i = e.itemRefs, o = e.getItemNodeFromIndex, t = e.menuElement, s = e.scrollIntoView, a = Q(!0);
1241
+ return Mo(function() {
1242
+ n < 0 || !r || !Object.keys(i.current).length || (a.current === !1 ? a.current = !0 : s(o(n), t));
1243
+ }, [n]), a;
1244
+ }
1245
+ var kt = me;
1246
+ process.env.NODE_ENV !== "production" && (kt = function(n) {
1247
+ var r = n.props, i = n.state, o = Q(r), t = Xe();
1248
+ de(function() {
1249
+ t || (St(i, o.current, r), o.current = r);
1250
+ }, [i, r, t]);
1251
+ });
1252
+ function yn(e, n, r) {
1253
+ var i;
1254
+ r === void 0 && (r = !0);
1255
+ var o = ((i = e.items) == null ? void 0 : i.length) && n >= 0;
1256
+ return $({
1257
+ isOpen: !1,
1258
+ highlightedIndex: -1
1259
+ }, o && $({
1260
+ selectedItem: e.items[n],
1261
+ isOpen: be(e, "isOpen"),
1262
+ highlightedIndex: be(e, "highlightedIndex")
1263
+ }, r && {
1264
+ inputValue: e.itemToString(e.items[n])
1265
+ }));
1266
+ }
1267
+ function Ko(e, n) {
1268
+ return e.isOpen === n.isOpen && e.inputValue === n.inputValue && e.highlightedIndex === n.highlightedIndex && e.selectedItem === n.selectedItem;
1269
+ }
1270
+ function Xe() {
1271
+ var e = st.useRef(!0);
1272
+ return st.useEffect(function() {
1273
+ return e.current = !1, function() {
1274
+ e.current = !0;
1275
+ };
1276
+ }, []), e.current;
1277
+ }
1278
+ var ir = {
1279
+ environment: I.shape({
1280
+ addEventListener: I.func.isRequired,
1281
+ removeEventListener: I.func.isRequired,
1282
+ document: I.shape({
1283
+ createElement: I.func.isRequired,
1284
+ getElementById: I.func.isRequired,
1285
+ activeElement: I.any.isRequired,
1286
+ body: I.any.isRequired
1287
+ }).isRequired,
1288
+ Node: I.func.isRequired
1289
+ }),
1290
+ itemToString: I.func,
1291
+ itemToKey: I.func,
1292
+ stateReducer: I.func
1293
+ }, sr = $({}, ir, {
1294
+ getA11yStatusMessage: I.func,
1295
+ highlightedIndex: I.number,
1296
+ defaultHighlightedIndex: I.number,
1297
+ initialHighlightedIndex: I.number,
1298
+ isOpen: I.bool,
1299
+ defaultIsOpen: I.bool,
1300
+ initialIsOpen: I.bool,
1301
+ selectedItem: I.any,
1302
+ initialSelectedItem: I.any,
1303
+ defaultSelectedItem: I.any,
1304
+ id: I.string,
1305
+ labelId: I.string,
1306
+ menuId: I.string,
1307
+ getItemId: I.func,
1308
+ toggleButtonId: I.string,
1309
+ onSelectedItemChange: I.func,
1310
+ onHighlightedIndexChange: I.func,
1311
+ onStateChange: I.func,
1312
+ onIsOpenChange: I.func,
1313
+ scrollIntoView: I.func
1314
+ });
1315
+ function $o(e, n, r) {
1316
+ var i = n.type, o = n.props, t;
1317
+ switch (i) {
1318
+ case r.ItemMouseMove:
1319
+ t = {
1320
+ highlightedIndex: n.disabled ? -1 : n.index
1321
+ };
1322
+ break;
1323
+ case r.MenuMouseLeave:
1324
+ t = {
1325
+ highlightedIndex: -1
1326
+ };
1327
+ break;
1328
+ case r.ToggleButtonClick:
1329
+ case r.FunctionToggleMenu:
1330
+ t = {
1331
+ isOpen: !e.isOpen,
1332
+ highlightedIndex: e.isOpen ? -1 : We(o, e, 0)
1333
+ };
1334
+ break;
1335
+ case r.FunctionOpenMenu:
1336
+ t = {
1337
+ isOpen: !0,
1338
+ highlightedIndex: We(o, e, 0)
1339
+ };
1340
+ break;
1341
+ case r.FunctionCloseMenu:
1342
+ t = {
1343
+ isOpen: !1
1344
+ };
1345
+ break;
1346
+ case r.FunctionSetHighlightedIndex:
1347
+ t = {
1348
+ highlightedIndex: n.highlightedIndex
1349
+ };
1350
+ break;
1351
+ case r.FunctionSetInputValue:
1352
+ t = {
1353
+ inputValue: n.inputValue
1354
+ };
1355
+ break;
1356
+ case r.FunctionReset:
1357
+ t = {
1358
+ highlightedIndex: be(o, "highlightedIndex"),
1359
+ isOpen: be(o, "isOpen"),
1360
+ selectedItem: be(o, "selectedItem"),
1361
+ inputValue: be(o, "inputValue")
1362
+ };
1363
+ break;
1364
+ default:
1365
+ throw new Error("Reducer called without proper action type.");
1366
+ }
1367
+ return $({}, e, t);
1368
+ }
1369
+ Fe(Fe({}, sr), { items: I.array.isRequired, isItemDisabled: I.func, getA11ySelectionMessage: I.func });
1370
+ function Fo(e) {
1371
+ var n = e.isOpen, r = e.resultCount, i = e.previousResultCount;
1372
+ return n ? r ? r !== i ? "".concat(r, " result").concat(r === 1 ? " is" : "s are", " available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select.") : "" : "No results are available." : "";
1373
+ }
1374
+ Fe(Fe({}, He), { getA11yStatusMessage: Fo, isItemDisabled: function() {
1375
+ return !1;
1376
+ } });
1377
+ process.env.NODE_ENV;
1378
+ process.env.NODE_ENV;
1379
+ process.env.NODE_ENV;
1380
+ process.env.NODE_ENV;
1381
+ process.env.NODE_ENV;
1382
+ process.env.NODE_ENV;
1383
+ process.env.NODE_ENV;
1384
+ process.env.NODE_ENV;
1385
+ process.env.NODE_ENV;
1386
+ process.env.NODE_ENV;
1387
+ process.env.NODE_ENV;
1388
+ process.env.NODE_ENV;
1389
+ process.env.NODE_ENV;
1390
+ process.env.NODE_ENV;
1391
+ process.env.NODE_ENV;
1392
+ process.env.NODE_ENV;
1393
+ process.env.NODE_ENV;
1394
+ process.env.NODE_ENV;
1395
+ process.env.NODE_ENV;
1396
+ process.env.NODE_ENV;
1397
+ process.env.NODE_ENV;
1398
+ process.env.NODE_ENV;
1399
+ process.env.NODE_ENV;
1400
+ var Pt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, Mt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, Tt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, Vt = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, At = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, Ht = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, jt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, Kt = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, $t = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, ut = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, Ft = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, lr = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, ar = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, Lt = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, ur = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, dr = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, cr = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, pr = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, fr = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, Bt = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, hr = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, gr = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, zt = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, mr = /* @__PURE__ */ Object.freeze({
1401
+ __proto__: null,
1402
+ InputKeyDownArrowDown: Pt,
1403
+ InputKeyDownArrowUp: Mt,
1404
+ InputKeyDownEscape: Tt,
1405
+ InputKeyDownHome: Vt,
1406
+ InputKeyDownEnd: At,
1407
+ InputKeyDownPageUp: Ht,
1408
+ InputKeyDownPageDown: jt,
1409
+ InputKeyDownEnter: Kt,
1410
+ InputChange: $t,
1411
+ InputBlur: ut,
1412
+ InputClick: Ft,
1413
+ MenuMouseLeave: lr,
1414
+ ItemMouseMove: ar,
1415
+ ItemClick: Lt,
1416
+ ToggleButtonClick: ur,
1417
+ FunctionToggleMenu: dr,
1418
+ FunctionOpenMenu: cr,
1419
+ FunctionCloseMenu: pr,
1420
+ FunctionSetHighlightedIndex: fr,
1421
+ FunctionSelectItem: Bt,
1422
+ FunctionSetInputValue: hr,
1423
+ FunctionReset: gr,
1424
+ ControlledPropUpdatedSelectedItem: zt
1425
+ });
1426
+ function Lo(e) {
1427
+ var n = Ao(e), r = n.selectedItem, i = n.inputValue;
1428
+ return i === "" && r && e.defaultInputValue === void 0 && e.initialInputValue === void 0 && e.inputValue === void 0 && (i = e.itemToString(r)), $({}, n, {
1429
+ inputValue: i
1430
+ });
1431
+ }
1432
+ var Bo = $({}, sr, {
1433
+ items: I.array.isRequired,
1434
+ isItemDisabled: I.func,
1435
+ selectedItemChanged: I.func,
1436
+ getA11ySelectionMessage: I.func,
1437
+ inputValue: I.string,
1438
+ defaultInputValue: I.string,
1439
+ initialInputValue: I.string,
1440
+ inputId: I.string,
1441
+ onInputValueChange: I.func
1442
+ });
1443
+ function zo(e, n, r, i) {
1444
+ var o = Q(), t = or(e, n, r, i), s = t[0], a = t[1], d = Xe();
1445
+ return de(function() {
1446
+ if (lt(n, "selectedItem")) {
1447
+ if (!d) {
1448
+ var u;
1449
+ n.selectedItemChanged === void 0 ? u = n.itemToKey(n.selectedItem) !== n.itemToKey(o.current) : (console.warn('The "selectedItemChanged" is deprecated. Please use "itemToKey instead". https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/README.md#selecteditemchanged'), u = n.selectedItemChanged(o.current, n.selectedItem)), u && a({
1450
+ type: zt,
1451
+ inputValue: n.itemToString(n.selectedItem)
1452
+ });
1453
+ }
1454
+ o.current = s.selectedItem === o.current ? n.selectedItem : s.selectedItem;
1455
+ }
1456
+ }, [s.selectedItem, n.selectedItem]), [Ye(s, n), a];
1457
+ }
1458
+ var vr = me;
1459
+ process.env.NODE_ENV !== "production" && (vr = function(n, r) {
1460
+ I.checkPropTypes(Bo, n, "prop", r.name);
1461
+ });
1462
+ var Uo = $({}, He, {
1463
+ getA11yStatusMessage: jn,
1464
+ isItemDisabled: function() {
1465
+ return !1;
1466
+ }
1467
+ });
1468
+ function Wo(e, n) {
1469
+ var r, i = n.type, o = n.props, t = n.altKey, s;
1470
+ switch (i) {
1471
+ case Lt:
1472
+ s = {
1473
+ isOpen: be(o, "isOpen"),
1474
+ highlightedIndex: be(o, "highlightedIndex"),
1475
+ selectedItem: o.items[n.index],
1476
+ inputValue: o.itemToString(o.items[n.index])
1477
+ };
1478
+ break;
1479
+ case Pt:
1480
+ e.isOpen ? s = {
1481
+ highlightedIndex: Pe(e.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
1482
+ } : s = {
1483
+ highlightedIndex: t && e.selectedItem == null ? -1 : We(o, e, 1),
1484
+ isOpen: o.items.length >= 0
1485
+ };
1486
+ break;
1487
+ case Mt:
1488
+ e.isOpen ? t ? s = yn(o, e.highlightedIndex) : s = {
1489
+ highlightedIndex: Pe(e.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
1490
+ } : s = {
1491
+ highlightedIndex: We(o, e, -1),
1492
+ isOpen: o.items.length >= 0
1493
+ };
1494
+ break;
1495
+ case Kt:
1496
+ s = yn(o, e.highlightedIndex);
1497
+ break;
1498
+ case Tt:
1499
+ s = $({
1500
+ isOpen: !1,
1501
+ highlightedIndex: -1
1502
+ }, !e.isOpen && {
1503
+ selectedItem: null,
1504
+ inputValue: ""
1505
+ });
1506
+ break;
1507
+ case Ht:
1508
+ s = {
1509
+ highlightedIndex: Pe(e.highlightedIndex, -10, o.items, o.isItemDisabled, !0)
1510
+ };
1511
+ break;
1512
+ case jt:
1513
+ s = {
1514
+ highlightedIndex: Pe(e.highlightedIndex, 10, o.items, o.isItemDisabled, !0)
1515
+ };
1516
+ break;
1517
+ case Vt:
1518
+ s = {
1519
+ highlightedIndex: Le(0, !1, o.items, o.isItemDisabled)
1520
+ };
1521
+ break;
1522
+ case At:
1523
+ s = {
1524
+ highlightedIndex: Le(o.items.length - 1, !0, o.items, o.isItemDisabled)
1525
+ };
1526
+ break;
1527
+ case ut:
1528
+ s = $({
1529
+ isOpen: !1,
1530
+ highlightedIndex: -1
1531
+ }, e.highlightedIndex >= 0 && ((r = o.items) == null ? void 0 : r.length) && n.selectItem && {
1532
+ selectedItem: o.items[e.highlightedIndex],
1533
+ inputValue: o.itemToString(o.items[e.highlightedIndex])
1534
+ });
1535
+ break;
1536
+ case $t:
1537
+ s = {
1538
+ isOpen: !0,
1539
+ highlightedIndex: be(o, "highlightedIndex"),
1540
+ inputValue: n.inputValue
1541
+ };
1542
+ break;
1543
+ case Ft:
1544
+ s = {
1545
+ isOpen: !e.isOpen,
1546
+ highlightedIndex: e.isOpen ? -1 : We(o, e, 0)
1547
+ };
1548
+ break;
1549
+ case Bt:
1550
+ s = {
1551
+ selectedItem: n.selectedItem,
1552
+ inputValue: o.itemToString(n.selectedItem)
1553
+ };
1554
+ break;
1555
+ case zt:
1556
+ s = {
1557
+ inputValue: n.inputValue
1558
+ };
1559
+ break;
1560
+ default:
1561
+ return $o(e, n, mr);
1562
+ }
1563
+ return $({}, e, s);
1564
+ }
1565
+ var qo = ["onMouseLeave", "refKey", "ref"], Yo = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Go = ["onClick", "onPress", "refKey", "ref"], Xo = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
1566
+ ge.stateChangeTypes = mr;
1567
+ function ge(e) {
1568
+ e === void 0 && (e = {}), vr(e, ge);
1569
+ var n = $({}, Uo, e), r = n.items, i = n.scrollIntoView, o = n.environment, t = n.getA11yStatusMessage, s = n.getA11ySelectionMessage, a = n.itemToString, d = zo(Wo, n, Lo, Ko), u = d[0], l = d[1], h = u.isOpen, b = u.highlightedIndex, y = u.selectedItem, x = u.inputValue, S = Q(null), g = Q({}), D = Q(null), c = Q(null), f = Xe(), p = To(n), _ = Q(), m = Nt({
1570
+ state: u,
1571
+ props: n
1572
+ }), N = ee(function(T) {
1573
+ return g.current[p.getItemId(T)];
1574
+ }, [p]);
1575
+ In(t, [h, b, x, r], $({
1576
+ previousResultCount: _.current,
1577
+ items: r,
1578
+ environment: o,
1579
+ itemToString: a
1580
+ }, u)), In(s, [y], $({
1581
+ previousResultCount: _.current,
1582
+ items: r,
1583
+ environment: o,
1584
+ itemToString: a
1585
+ }, u));
1586
+ var E = jo({
1587
+ menuElement: S.current,
1588
+ highlightedIndex: b,
1589
+ isOpen: h,
1590
+ itemRefs: g,
1591
+ scrollIntoView: i,
1592
+ getItemNodeFromIndex: N
1593
+ });
1594
+ kt({
1595
+ props: n,
1596
+ state: u
1597
+ }), de(function() {
1598
+ var T = je(n, "isOpen");
1599
+ T && D.current && D.current.focus();
1600
+ }, []), de(function() {
1601
+ f || (_.current = r.length);
1602
+ });
1603
+ var P = Ho(o, [c, S, D], ee(function() {
1604
+ m.current.state.isOpen && l({
1605
+ type: ut,
1606
+ selectItem: !1
1607
+ });
1608
+ }, [l, m])), M = Rt("getInputProps", "getMenuProps");
1609
+ de(function() {
1610
+ h || (g.current = {});
1611
+ }, [h]), de(function() {
1612
+ var T;
1613
+ !h || !(o != null && o.document) || !(D != null && (T = D.current) != null && T.focus) || o.document.activeElement !== D.current && D.current.focus();
1614
+ }, [h, o]);
1615
+ var O = Me(function() {
1616
+ return {
1617
+ ArrowDown: function(A) {
1618
+ A.preventDefault(), l({
1619
+ type: Pt,
1620
+ altKey: A.altKey
1621
+ });
1622
+ },
1623
+ ArrowUp: function(A) {
1624
+ A.preventDefault(), l({
1625
+ type: Mt,
1626
+ altKey: A.altKey
1627
+ });
1628
+ },
1629
+ Home: function(A) {
1630
+ m.current.state.isOpen && (A.preventDefault(), l({
1631
+ type: Vt
1632
+ }));
1633
+ },
1634
+ End: function(A) {
1635
+ m.current.state.isOpen && (A.preventDefault(), l({
1636
+ type: At
1637
+ }));
1638
+ },
1639
+ Escape: function(A) {
1640
+ var w = m.current.state;
1641
+ (w.isOpen || w.inputValue || w.selectedItem || w.highlightedIndex > -1) && (A.preventDefault(), l({
1642
+ type: Tt
1643
+ }));
1644
+ },
1645
+ Enter: function(A) {
1646
+ var w = m.current.state;
1647
+ !w.isOpen || A.which === 229 || (A.preventDefault(), l({
1648
+ type: Kt
1649
+ }));
1650
+ },
1651
+ PageUp: function(A) {
1652
+ m.current.state.isOpen && (A.preventDefault(), l({
1653
+ type: Ht
1654
+ }));
1655
+ },
1656
+ PageDown: function(A) {
1657
+ m.current.state.isOpen && (A.preventDefault(), l({
1658
+ type: jt
1659
+ }));
1660
+ }
1661
+ };
1662
+ }, [l, m]), k = ee(function(T) {
1663
+ return $({
1664
+ id: p.labelId,
1665
+ htmlFor: p.inputId
1666
+ }, T);
1667
+ }, [p]), V = ee(function(T, A) {
1668
+ var w, H = T === void 0 ? {} : T, U = H.onMouseLeave, q = H.refKey, B = q === void 0 ? "ref" : q, se = H.ref, le = ve(H, qo), ue = A === void 0 ? {} : A, C = ue.suppressRefError, he = C === void 0 ? !1 : C;
1669
+ return M("getMenuProps", he, B, S), $((w = {}, w[B] = Re(se, function(oe) {
1670
+ S.current = oe;
1671
+ }), w.id = p.menuId, w.role = "listbox", w["aria-labelledby"] = le && le["aria-label"] ? void 0 : "" + p.labelId, w.onMouseLeave = ne(U, function() {
1672
+ l({
1673
+ type: lr
1674
+ });
1675
+ }), w), le);
1676
+ }, [l, M, p]), R = ee(function(T) {
1677
+ var A, w, H = T === void 0 ? {} : T, U = H.item, q = H.index, B = H.refKey, se = B === void 0 ? "ref" : B, le = H.ref, ue = H.onMouseMove, C = H.onMouseDown, he = H.onClick;
1678
+ H.onPress;
1679
+ var oe = H.disabled, Ve = ve(H, Yo);
1680
+ oe !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
1681
+ var ze = m.current, Ze = ze.props, we = ze.state, et = rr(U, q, Ze.items, "Pass either item or index to getItemProps!"), ft = et[0], Ee = et[1], Ue = Ze.isItemDisabled(ft, Ee), ht = "onClick", tt = he, Oe = function() {
1682
+ P.isTouchEnd || Ee === we.highlightedIndex || (E.current = !1, l({
1683
+ type: ar,
1684
+ index: Ee,
1685
+ disabled: Ue
1686
+ }));
1687
+ }, ke = function() {
1688
+ l({
1689
+ type: Lt,
1690
+ index: Ee
1691
+ });
1692
+ }, De = function(Tr) {
1693
+ return Tr.preventDefault();
1694
+ };
1695
+ return $((A = {}, A[se] = Re(le, function(ye) {
1696
+ ye && (g.current[p.getItemId(Ee)] = ye);
1697
+ }), A["aria-disabled"] = Ue, A["aria-selected"] = "" + (Ee === we.highlightedIndex), A.id = p.getItemId(Ee), A.role = "option", A), !Ue && (w = {}, w[ht] = ne(tt, ke), w), {
1698
+ onMouseMove: ne(ue, Oe),
1699
+ onMouseDown: ne(C, De)
1700
+ }, Ve);
1701
+ }, [l, p, m, P, E]), F = ee(function(T) {
1702
+ var A, w = T === void 0 ? {} : T, H = w.onClick;
1703
+ w.onPress;
1704
+ var U = w.refKey, q = U === void 0 ? "ref" : U, B = w.ref, se = ve(w, Go), le = m.current.state, ue = function() {
1705
+ l({
1706
+ type: ur
1707
+ });
1708
+ };
1709
+ return $((A = {}, A[q] = Re(B, function(C) {
1710
+ c.current = C;
1711
+ }), A["aria-controls"] = p.menuId, A["aria-expanded"] = le.isOpen, A.id = p.toggleButtonId, A.tabIndex = -1, A), !se.disabled && $({}, {
1712
+ onClick: ne(H, ue)
1713
+ }), se);
1714
+ }, [l, m, p]), L = ee(function(T, A) {
1715
+ var w, H = T === void 0 ? {} : T, U = H.onKeyDown, q = H.onChange, B = H.onInput, se = H.onBlur;
1716
+ H.onChangeText;
1717
+ var le = H.onClick, ue = H.refKey, C = ue === void 0 ? "ref" : ue, he = H.ref, oe = ve(H, Xo), Ve = A === void 0 ? {} : A, ze = Ve.suppressRefError, Ze = ze === void 0 ? !1 : ze;
1718
+ M("getInputProps", Ze, C, D);
1719
+ var we = m.current.state, et = function(De) {
1720
+ var ye = Ge(De);
1721
+ ye && O[ye] && O[ye](De);
1722
+ }, ft = function(De) {
1723
+ l({
1724
+ type: $t,
1725
+ inputValue: De.target.value
1726
+ });
1727
+ }, Ee = function(De) {
1728
+ if (o != null && o.document && we.isOpen && !P.isMouseDown) {
1729
+ var ye = De.relatedTarget === null && o.document.activeElement !== o.document.body;
1730
+ l({
1731
+ type: ut,
1732
+ selectItem: !ye
1733
+ });
1734
+ }
1735
+ }, Ue = function() {
1736
+ l({
1737
+ type: Ft
1738
+ });
1739
+ }, ht = "onChange", tt = {};
1740
+ if (!oe.disabled) {
1741
+ var Oe;
1742
+ tt = (Oe = {}, Oe[ht] = ne(q, B, ft), Oe.onKeyDown = ne(U, et), Oe.onBlur = ne(se, Ee), Oe.onClick = ne(le, Ue), Oe);
1743
+ }
1744
+ return $((w = {}, w[C] = Re(he, function(ke) {
1745
+ D.current = ke;
1746
+ }), w["aria-activedescendant"] = we.isOpen && we.highlightedIndex > -1 ? p.getItemId(we.highlightedIndex) : "", w["aria-autocomplete"] = "list", w["aria-controls"] = p.menuId, w["aria-expanded"] = we.isOpen, w["aria-labelledby"] = oe && oe["aria-label"] ? void 0 : p.labelId, w.autoComplete = "off", w.id = p.inputId, w.role = "combobox", w.value = we.inputValue, w), tt, oe);
1747
+ }, [l, p, o, O, m, P, M]), K = ee(function() {
1748
+ l({
1749
+ type: dr
1750
+ });
1751
+ }, [l]), z = ee(function() {
1752
+ l({
1753
+ type: pr
1754
+ });
1755
+ }, [l]), Z = ee(function() {
1756
+ l({
1757
+ type: cr
1758
+ });
1759
+ }, [l]), j = ee(function(T) {
1760
+ l({
1761
+ type: fr,
1762
+ highlightedIndex: T
1763
+ });
1764
+ }, [l]), W = ee(function(T) {
1765
+ l({
1766
+ type: Bt,
1767
+ selectedItem: T
1768
+ });
1769
+ }, [l]), Y = ee(function(T) {
1770
+ l({
1771
+ type: hr,
1772
+ inputValue: T
1773
+ });
1774
+ }, [l]), re = ee(function() {
1775
+ l({
1776
+ type: gr
1777
+ });
1778
+ }, [l]);
1779
+ return {
1780
+ // prop getters.
1781
+ getItemProps: R,
1782
+ getLabelProps: k,
1783
+ getMenuProps: V,
1784
+ getInputProps: L,
1785
+ getToggleButtonProps: F,
1786
+ // actions.
1787
+ toggleMenu: K,
1788
+ openMenu: Z,
1789
+ closeMenu: z,
1790
+ setHighlightedIndex: j,
1791
+ setInputValue: Y,
1792
+ selectItem: W,
1793
+ reset: re,
1794
+ // state.
1795
+ highlightedIndex: b,
1796
+ isOpen: h,
1797
+ selectedItem: y,
1798
+ inputValue: x
1799
+ };
1800
+ }
1801
+ var _r = {
1802
+ activeIndex: -1,
1803
+ selectedItems: []
1804
+ };
1805
+ function xn(e, n) {
1806
+ return je(e, n, _r);
1807
+ }
1808
+ function bn(e, n) {
1809
+ return be(e, n, _r);
1810
+ }
1811
+ function Jo(e) {
1812
+ var n = xn(e, "activeIndex"), r = xn(e, "selectedItems");
1813
+ return {
1814
+ activeIndex: n,
1815
+ selectedItems: r
1816
+ };
1817
+ }
1818
+ function wn(e) {
1819
+ if (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey)
1820
+ return !1;
1821
+ var n = e.target;
1822
+ return !(n instanceof HTMLInputElement && // if element is a text input
1823
+ n.value !== "" && // and we have text in it
1824
+ // and cursor is either not at the start or is currently highlighting text.
1825
+ (n.selectionStart !== 0 || n.selectionEnd !== 0));
1826
+ }
1827
+ function Qo(e) {
1828
+ var n = e.removedSelectedItem, r = e.itemToString;
1829
+ return r(n) + " has been removed.";
1830
+ }
1831
+ function Zo(e, n) {
1832
+ return e.selectedItems === n.selectedItems && e.activeIndex === n.activeIndex;
1833
+ }
1834
+ var ei = $({}, ir, {
1835
+ selectedItems: I.array,
1836
+ initialSelectedItems: I.array,
1837
+ defaultSelectedItems: I.array,
1838
+ getA11yRemovalMessage: I.func,
1839
+ activeIndex: I.number,
1840
+ initialActiveIndex: I.number,
1841
+ defaultActiveIndex: I.number,
1842
+ onActiveIndexChange: I.func,
1843
+ onSelectedItemsChange: I.func,
1844
+ keyNavigationNext: I.string,
1845
+ keyNavigationPrevious: I.string
1846
+ }), ti = {
1847
+ itemToString: He.itemToString,
1848
+ itemToKey: He.itemToKey,
1849
+ stateReducer: He.stateReducer,
1850
+ environment: He.environment,
1851
+ getA11yRemovalMessage: Qo,
1852
+ keyNavigationNext: "ArrowRight",
1853
+ keyNavigationPrevious: "ArrowLeft"
1854
+ }, Ir = me;
1855
+ process.env.NODE_ENV !== "production" && (Ir = function(n, r) {
1856
+ I.checkPropTypes(ei, n, "prop", r.name);
1857
+ });
1858
+ var Ut = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0, Wt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_delete__" : 1, qt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_backspace__" : 2, Yt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_next__" : 3, Gt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_previous__" : 4, Xt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_navigation_previous__" : 5, Jt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_backspace__" : 6, Qt = process.env.NODE_ENV !== "production" ? "__dropdown_click__" : 7, Zt = process.env.NODE_ENV !== "production" ? "__function_add_selected_item__" : 8, en = process.env.NODE_ENV !== "production" ? "__function_remove_selected_item__" : 9, tn = process.env.NODE_ENV !== "production" ? "__function_set_selected_items__" : 10, nn = process.env.NODE_ENV !== "production" ? "__function_set_active_index__" : 11, rn = process.env.NODE_ENV !== "production" ? "__function_reset__" : 12, ni = /* @__PURE__ */ Object.freeze({
1859
+ __proto__: null,
1860
+ SelectedItemClick: Ut,
1861
+ SelectedItemKeyDownDelete: Wt,
1862
+ SelectedItemKeyDownBackspace: qt,
1863
+ SelectedItemKeyDownNavigationNext: Yt,
1864
+ SelectedItemKeyDownNavigationPrevious: Gt,
1865
+ DropdownKeyDownNavigationPrevious: Xt,
1866
+ DropdownKeyDownBackspace: Jt,
1867
+ DropdownClick: Qt,
1868
+ FunctionAddSelectedItem: Zt,
1869
+ FunctionRemoveSelectedItem: en,
1870
+ FunctionSetSelectedItems: tn,
1871
+ FunctionSetActiveIndex: nn,
1872
+ FunctionReset: rn
1873
+ });
1874
+ function ri(e, n) {
1875
+ var r = n.type, i = n.index, o = n.props, t = n.selectedItem, s = e.activeIndex, a = e.selectedItems, d;
1876
+ switch (r) {
1877
+ case Ut:
1878
+ d = {
1879
+ activeIndex: i
1880
+ };
1881
+ break;
1882
+ case Gt:
1883
+ d = {
1884
+ activeIndex: s - 1 < 0 ? 0 : s - 1
1885
+ };
1886
+ break;
1887
+ case Yt:
1888
+ d = {
1889
+ activeIndex: s + 1 >= a.length ? -1 : s + 1
1890
+ };
1891
+ break;
1892
+ case qt:
1893
+ case Wt: {
1894
+ if (s < 0)
1895
+ break;
1896
+ var u = s;
1897
+ a.length === 1 ? u = -1 : s === a.length - 1 && (u = a.length - 2), d = $({
1898
+ selectedItems: [].concat(a.slice(0, s), a.slice(s + 1))
1899
+ }, {
1900
+ activeIndex: u
1901
+ });
1902
+ break;
1903
+ }
1904
+ case Xt:
1905
+ d = {
1906
+ activeIndex: a.length - 1
1907
+ };
1908
+ break;
1909
+ case Jt:
1910
+ d = {
1911
+ selectedItems: a.slice(0, a.length - 1)
1912
+ };
1913
+ break;
1914
+ case Zt:
1915
+ d = {
1916
+ selectedItems: [].concat(a, [t])
1917
+ };
1918
+ break;
1919
+ case Qt:
1920
+ d = {
1921
+ activeIndex: -1
1922
+ };
1923
+ break;
1924
+ case en: {
1925
+ var l = s, h = a.findIndex(function(x) {
1926
+ return o.itemToKey(x) === o.itemToKey(t);
1927
+ });
1928
+ if (h < 0)
1929
+ break;
1930
+ a.length === 1 ? l = -1 : h === a.length - 1 && (l = a.length - 2), d = {
1931
+ selectedItems: [].concat(a.slice(0, h), a.slice(h + 1)),
1932
+ activeIndex: l
1933
+ };
1934
+ break;
1935
+ }
1936
+ case tn: {
1937
+ var b = n.selectedItems;
1938
+ d = {
1939
+ selectedItems: b
1940
+ };
1941
+ break;
1942
+ }
1943
+ case nn: {
1944
+ var y = n.activeIndex;
1945
+ d = {
1946
+ activeIndex: y
1947
+ };
1948
+ break;
1949
+ }
1950
+ case rn:
1951
+ d = {
1952
+ activeIndex: bn(o, "activeIndex"),
1953
+ selectedItems: bn(o, "selectedItems")
1954
+ };
1955
+ break;
1956
+ default:
1957
+ throw new Error("Reducer called without proper action type.");
1958
+ }
1959
+ return $({}, e, d);
1960
+ }
1961
+ var oi = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], ii = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
1962
+ Ne.stateChangeTypes = ni;
1963
+ function Ne(e) {
1964
+ e === void 0 && (e = {}), Ir(e, Ne);
1965
+ var n = $({}, ti, e), r = n.getA11yRemovalMessage, i = n.itemToString, o = n.environment, t = n.keyNavigationNext, s = n.keyNavigationPrevious, a = Vo(ri, n, Jo, Zo), d = a[0], u = a[1], l = d.activeIndex, h = d.selectedItems, b = Xe(), y = Q(null), x = Q(h), S = Q();
1966
+ S.current = [];
1967
+ var g = Nt({
1968
+ state: d,
1969
+ props: n
1970
+ });
1971
+ de(function() {
1972
+ if (!(b || !(o != null && o.document))) {
1973
+ if (h.length < x.current.length) {
1974
+ var O = x.current.find(function(k) {
1975
+ return h.findIndex(function(V) {
1976
+ return n.itemToKey(V) === n.itemToKey(k);
1977
+ }) < 0;
1978
+ });
1979
+ Ot(r({
1980
+ itemToString: i,
1981
+ resultCount: h.length,
1982
+ removedSelectedItem: O,
1983
+ activeIndex: l,
1984
+ activeSelectedItem: h[l]
1985
+ }), o.document);
1986
+ }
1987
+ x.current = h;
1988
+ }
1989
+ }, [h.length]), de(function() {
1990
+ b || (l === -1 && y.current ? y.current.focus() : S.current[l] && S.current[l].focus());
1991
+ }, [l]), kt({
1992
+ props: n,
1993
+ state: d
1994
+ });
1995
+ var D = Rt("getDropdownProps"), c = Me(function() {
1996
+ var O;
1997
+ return O = {}, O[s] = function() {
1998
+ u({
1999
+ type: Gt
2000
+ });
2001
+ }, O[t] = function() {
2002
+ u({
2003
+ type: Yt
2004
+ });
2005
+ }, O.Delete = function() {
2006
+ u({
2007
+ type: Wt
2008
+ });
2009
+ }, O.Backspace = function() {
2010
+ u({
2011
+ type: qt
2012
+ });
2013
+ }, O;
2014
+ }, [u, t, s]), f = Me(function() {
2015
+ var O;
2016
+ return O = {}, O[s] = function(k) {
2017
+ wn(k) && u({
2018
+ type: Xt
2019
+ });
2020
+ }, O.Backspace = function(V) {
2021
+ wn(V) && u({
2022
+ type: Jt
2023
+ });
2024
+ }, O;
2025
+ }, [u, s]), p = ee(function(O) {
2026
+ var k, V = O === void 0 ? {} : O, R = V.refKey, F = R === void 0 ? "ref" : R, L = V.ref, K = V.onClick, z = V.onKeyDown, Z = V.selectedItem, j = V.index, W = ve(V, oi), Y = g.current.state, re = rr(Z, j, Y.selectedItems, "Pass either item or index to getSelectedItemProps!"), T = re[1], A = T > -1 && T === Y.activeIndex, w = function() {
2027
+ u({
2028
+ type: Ut,
2029
+ index: T
2030
+ });
2031
+ }, H = function(q) {
2032
+ var B = Ge(q);
2033
+ B && c[B] && c[B](q);
2034
+ };
2035
+ return $((k = {}, k[F] = Re(L, function(U) {
2036
+ U && S.current.push(U);
2037
+ }), k.tabIndex = A ? 0 : -1, k.onClick = ne(K, w), k.onKeyDown = ne(z, H), k), W);
2038
+ }, [u, g, c]), _ = ee(function(O, k) {
2039
+ var V, R = O === void 0 ? {} : O, F = R.refKey, L = F === void 0 ? "ref" : F, K = R.ref, z = R.onKeyDown, Z = R.onClick, j = R.preventKeyAction, W = j === void 0 ? !1 : j, Y = ve(R, ii), re = k === void 0 ? {} : k, T = re.suppressRefError, A = T === void 0 ? !1 : T;
2040
+ D("getDropdownProps", A, L, y);
2041
+ var w = function(q) {
2042
+ var B = Ge(q);
2043
+ B && f[B] && f[B](q);
2044
+ }, H = function() {
2045
+ u({
2046
+ type: Qt
2047
+ });
2048
+ };
2049
+ return $((V = {}, V[L] = Re(K, function(U) {
2050
+ U && (y.current = U);
2051
+ }), V), !W && {
2052
+ onKeyDown: ne(z, w),
2053
+ onClick: ne(Z, H)
2054
+ }, Y);
2055
+ }, [u, f, D]), m = ee(function(O) {
2056
+ u({
2057
+ type: Zt,
2058
+ selectedItem: O
2059
+ });
2060
+ }, [u]), N = ee(function(O) {
2061
+ u({
2062
+ type: en,
2063
+ selectedItem: O
2064
+ });
2065
+ }, [u]), E = ee(function(O) {
2066
+ u({
2067
+ type: tn,
2068
+ selectedItems: O
2069
+ });
2070
+ }, [u]), P = ee(function(O) {
2071
+ u({
2072
+ type: nn,
2073
+ activeIndex: O
2074
+ });
2075
+ }, [u]), M = ee(function() {
2076
+ u({
2077
+ type: rn
2078
+ });
2079
+ }, [u]);
2080
+ return {
2081
+ getSelectedItemProps: p,
2082
+ getDropdownProps: _,
2083
+ addSelectedItem: m,
2084
+ removeSelectedItem: N,
2085
+ setSelectedItems: E,
2086
+ setActiveIndex: P,
2087
+ reset: M,
2088
+ selectedItems: h,
2089
+ activeIndex: l
2090
+ };
2091
+ }
2092
+ var ct = { exports: {} }, yr = {
2093
+ À: "A",
2094
+ Á: "A",
2095
+ Â: "A",
2096
+ Ã: "A",
2097
+ Ä: "A",
2098
+ Å: "A",
2099
+ Ấ: "A",
2100
+ Ắ: "A",
2101
+ Ẳ: "A",
2102
+ Ẵ: "A",
2103
+ Ặ: "A",
2104
+ Æ: "AE",
2105
+ Ầ: "A",
2106
+ Ằ: "A",
2107
+ Ȃ: "A",
2108
+ Ả: "A",
2109
+ Ạ: "A",
2110
+ Ẩ: "A",
2111
+ Ẫ: "A",
2112
+ Ậ: "A",
2113
+ Ç: "C",
2114
+ Ḉ: "C",
2115
+ È: "E",
2116
+ É: "E",
2117
+ Ê: "E",
2118
+ Ë: "E",
2119
+ Ế: "E",
2120
+ Ḗ: "E",
2121
+ Ề: "E",
2122
+ Ḕ: "E",
2123
+ Ḝ: "E",
2124
+ Ȇ: "E",
2125
+ Ẻ: "E",
2126
+ Ẽ: "E",
2127
+ Ẹ: "E",
2128
+ Ể: "E",
2129
+ Ễ: "E",
2130
+ Ệ: "E",
2131
+ Ì: "I",
2132
+ Í: "I",
2133
+ Î: "I",
2134
+ Ï: "I",
2135
+ Ḯ: "I",
2136
+ Ȋ: "I",
2137
+ Ỉ: "I",
2138
+ Ị: "I",
2139
+ Ð: "D",
2140
+ Ñ: "N",
2141
+ Ò: "O",
2142
+ Ó: "O",
2143
+ Ô: "O",
2144
+ Õ: "O",
2145
+ Ö: "O",
2146
+ Ø: "O",
2147
+ Ố: "O",
2148
+ Ṍ: "O",
2149
+ Ṓ: "O",
2150
+ Ȏ: "O",
2151
+ Ỏ: "O",
2152
+ Ọ: "O",
2153
+ Ổ: "O",
2154
+ Ỗ: "O",
2155
+ Ộ: "O",
2156
+ Ờ: "O",
2157
+ Ở: "O",
2158
+ Ỡ: "O",
2159
+ Ớ: "O",
2160
+ Ợ: "O",
2161
+ Ù: "U",
2162
+ Ú: "U",
2163
+ Û: "U",
2164
+ Ü: "U",
2165
+ Ủ: "U",
2166
+ Ụ: "U",
2167
+ Ử: "U",
2168
+ Ữ: "U",
2169
+ Ự: "U",
2170
+ Ý: "Y",
2171
+ à: "a",
2172
+ á: "a",
2173
+ â: "a",
2174
+ ã: "a",
2175
+ ä: "a",
2176
+ å: "a",
2177
+ ấ: "a",
2178
+ ắ: "a",
2179
+ ẳ: "a",
2180
+ ẵ: "a",
2181
+ ặ: "a",
2182
+ æ: "ae",
2183
+ ầ: "a",
2184
+ ằ: "a",
2185
+ ȃ: "a",
2186
+ ả: "a",
2187
+ ạ: "a",
2188
+ ẩ: "a",
2189
+ ẫ: "a",
2190
+ ậ: "a",
2191
+ ç: "c",
2192
+ ḉ: "c",
2193
+ è: "e",
2194
+ é: "e",
2195
+ ê: "e",
2196
+ ë: "e",
2197
+ ế: "e",
2198
+ ḗ: "e",
2199
+ ề: "e",
2200
+ ḕ: "e",
2201
+ ḝ: "e",
2202
+ ȇ: "e",
2203
+ ẻ: "e",
2204
+ ẽ: "e",
2205
+ ẹ: "e",
2206
+ ể: "e",
2207
+ ễ: "e",
2208
+ ệ: "e",
2209
+ ì: "i",
2210
+ í: "i",
2211
+ î: "i",
2212
+ ï: "i",
2213
+ ḯ: "i",
2214
+ ȋ: "i",
2215
+ ỉ: "i",
2216
+ ị: "i",
2217
+ ð: "d",
2218
+ ñ: "n",
2219
+ ò: "o",
2220
+ ó: "o",
2221
+ ô: "o",
2222
+ õ: "o",
2223
+ ö: "o",
2224
+ ø: "o",
2225
+ ố: "o",
2226
+ ṍ: "o",
2227
+ ṓ: "o",
2228
+ ȏ: "o",
2229
+ ỏ: "o",
2230
+ ọ: "o",
2231
+ ổ: "o",
2232
+ ỗ: "o",
2233
+ ộ: "o",
2234
+ ờ: "o",
2235
+ ở: "o",
2236
+ ỡ: "o",
2237
+ ớ: "o",
2238
+ ợ: "o",
2239
+ ù: "u",
2240
+ ú: "u",
2241
+ û: "u",
2242
+ ü: "u",
2243
+ ủ: "u",
2244
+ ụ: "u",
2245
+ ử: "u",
2246
+ ữ: "u",
2247
+ ự: "u",
2248
+ ý: "y",
2249
+ ÿ: "y",
2250
+ Ā: "A",
2251
+ ā: "a",
2252
+ Ă: "A",
2253
+ ă: "a",
2254
+ Ą: "A",
2255
+ ą: "a",
2256
+ Ć: "C",
2257
+ ć: "c",
2258
+ Ĉ: "C",
2259
+ ĉ: "c",
2260
+ Ċ: "C",
2261
+ ċ: "c",
2262
+ Č: "C",
2263
+ č: "c",
2264
+ C̆: "C",
2265
+ c̆: "c",
2266
+ Ď: "D",
2267
+ ď: "d",
2268
+ Đ: "D",
2269
+ đ: "d",
2270
+ Ē: "E",
2271
+ ē: "e",
2272
+ Ĕ: "E",
2273
+ ĕ: "e",
2274
+ Ė: "E",
2275
+ ė: "e",
2276
+ Ę: "E",
2277
+ ę: "e",
2278
+ Ě: "E",
2279
+ ě: "e",
2280
+ Ĝ: "G",
2281
+ Ǵ: "G",
2282
+ ĝ: "g",
2283
+ ǵ: "g",
2284
+ Ğ: "G",
2285
+ ğ: "g",
2286
+ Ġ: "G",
2287
+ ġ: "g",
2288
+ Ģ: "G",
2289
+ ģ: "g",
2290
+ Ĥ: "H",
2291
+ ĥ: "h",
2292
+ Ħ: "H",
2293
+ ħ: "h",
2294
+ Ḫ: "H",
2295
+ ḫ: "h",
2296
+ Ĩ: "I",
2297
+ ĩ: "i",
2298
+ Ī: "I",
2299
+ ī: "i",
2300
+ Ĭ: "I",
2301
+ ĭ: "i",
2302
+ Į: "I",
2303
+ į: "i",
2304
+ İ: "I",
2305
+ ı: "i",
2306
+ IJ: "IJ",
2307
+ ij: "ij",
2308
+ Ĵ: "J",
2309
+ ĵ: "j",
2310
+ Ķ: "K",
2311
+ ķ: "k",
2312
+ Ḱ: "K",
2313
+ ḱ: "k",
2314
+ K̆: "K",
2315
+ k̆: "k",
2316
+ Ĺ: "L",
2317
+ ĺ: "l",
2318
+ Ļ: "L",
2319
+ ļ: "l",
2320
+ Ľ: "L",
2321
+ ľ: "l",
2322
+ Ŀ: "L",
2323
+ ŀ: "l",
2324
+ Ł: "l",
2325
+ ł: "l",
2326
+ Ḿ: "M",
2327
+ ḿ: "m",
2328
+ M̆: "M",
2329
+ m̆: "m",
2330
+ Ń: "N",
2331
+ ń: "n",
2332
+ Ņ: "N",
2333
+ ņ: "n",
2334
+ Ň: "N",
2335
+ ň: "n",
2336
+ ʼn: "n",
2337
+ N̆: "N",
2338
+ n̆: "n",
2339
+ Ō: "O",
2340
+ ō: "o",
2341
+ Ŏ: "O",
2342
+ ŏ: "o",
2343
+ Ő: "O",
2344
+ ő: "o",
2345
+ Œ: "OE",
2346
+ œ: "oe",
2347
+ P̆: "P",
2348
+ p̆: "p",
2349
+ Ŕ: "R",
2350
+ ŕ: "r",
2351
+ Ŗ: "R",
2352
+ ŗ: "r",
2353
+ Ř: "R",
2354
+ ř: "r",
2355
+ R̆: "R",
2356
+ r̆: "r",
2357
+ Ȓ: "R",
2358
+ ȓ: "r",
2359
+ Ś: "S",
2360
+ ś: "s",
2361
+ Ŝ: "S",
2362
+ ŝ: "s",
2363
+ Ş: "S",
2364
+ Ș: "S",
2365
+ ș: "s",
2366
+ ş: "s",
2367
+ Š: "S",
2368
+ š: "s",
2369
+ Ţ: "T",
2370
+ ţ: "t",
2371
+ ț: "t",
2372
+ Ț: "T",
2373
+ Ť: "T",
2374
+ ť: "t",
2375
+ Ŧ: "T",
2376
+ ŧ: "t",
2377
+ T̆: "T",
2378
+ t̆: "t",
2379
+ Ũ: "U",
2380
+ ũ: "u",
2381
+ Ū: "U",
2382
+ ū: "u",
2383
+ Ŭ: "U",
2384
+ ŭ: "u",
2385
+ Ů: "U",
2386
+ ů: "u",
2387
+ Ű: "U",
2388
+ ű: "u",
2389
+ Ų: "U",
2390
+ ų: "u",
2391
+ Ȗ: "U",
2392
+ ȗ: "u",
2393
+ V̆: "V",
2394
+ v̆: "v",
2395
+ Ŵ: "W",
2396
+ ŵ: "w",
2397
+ Ẃ: "W",
2398
+ ẃ: "w",
2399
+ X̆: "X",
2400
+ x̆: "x",
2401
+ Ŷ: "Y",
2402
+ ŷ: "y",
2403
+ Ÿ: "Y",
2404
+ Y̆: "Y",
2405
+ y̆: "y",
2406
+ Ź: "Z",
2407
+ ź: "z",
2408
+ Ż: "Z",
2409
+ ż: "z",
2410
+ Ž: "Z",
2411
+ ž: "z",
2412
+ ſ: "s",
2413
+ ƒ: "f",
2414
+ Ơ: "O",
2415
+ ơ: "o",
2416
+ Ư: "U",
2417
+ ư: "u",
2418
+ Ǎ: "A",
2419
+ ǎ: "a",
2420
+ Ǐ: "I",
2421
+ ǐ: "i",
2422
+ Ǒ: "O",
2423
+ ǒ: "o",
2424
+ Ǔ: "U",
2425
+ ǔ: "u",
2426
+ Ǖ: "U",
2427
+ ǖ: "u",
2428
+ Ǘ: "U",
2429
+ ǘ: "u",
2430
+ Ǚ: "U",
2431
+ ǚ: "u",
2432
+ Ǜ: "U",
2433
+ ǜ: "u",
2434
+ Ứ: "U",
2435
+ ứ: "u",
2436
+ Ṹ: "U",
2437
+ ṹ: "u",
2438
+ Ǻ: "A",
2439
+ ǻ: "a",
2440
+ Ǽ: "AE",
2441
+ ǽ: "ae",
2442
+ Ǿ: "O",
2443
+ ǿ: "o",
2444
+ Þ: "TH",
2445
+ þ: "th",
2446
+ Ṕ: "P",
2447
+ ṕ: "p",
2448
+ Ṥ: "S",
2449
+ ṥ: "s",
2450
+ X́: "X",
2451
+ x́: "x",
2452
+ Ѓ: "Г",
2453
+ ѓ: "г",
2454
+ Ќ: "К",
2455
+ ќ: "к",
2456
+ A̋: "A",
2457
+ a̋: "a",
2458
+ E̋: "E",
2459
+ e̋: "e",
2460
+ I̋: "I",
2461
+ i̋: "i",
2462
+ Ǹ: "N",
2463
+ ǹ: "n",
2464
+ Ồ: "O",
2465
+ ồ: "o",
2466
+ Ṑ: "O",
2467
+ ṑ: "o",
2468
+ Ừ: "U",
2469
+ ừ: "u",
2470
+ Ẁ: "W",
2471
+ ẁ: "w",
2472
+ Ỳ: "Y",
2473
+ ỳ: "y",
2474
+ Ȁ: "A",
2475
+ ȁ: "a",
2476
+ Ȅ: "E",
2477
+ ȅ: "e",
2478
+ Ȉ: "I",
2479
+ ȉ: "i",
2480
+ Ȍ: "O",
2481
+ ȍ: "o",
2482
+ Ȑ: "R",
2483
+ ȑ: "r",
2484
+ Ȕ: "U",
2485
+ ȕ: "u",
2486
+ B̌: "B",
2487
+ b̌: "b",
2488
+ Č̣: "C",
2489
+ č̣: "c",
2490
+ Ê̌: "E",
2491
+ ê̌: "e",
2492
+ F̌: "F",
2493
+ f̌: "f",
2494
+ Ǧ: "G",
2495
+ ǧ: "g",
2496
+ Ȟ: "H",
2497
+ ȟ: "h",
2498
+ J̌: "J",
2499
+ ǰ: "j",
2500
+ Ǩ: "K",
2501
+ ǩ: "k",
2502
+ M̌: "M",
2503
+ m̌: "m",
2504
+ P̌: "P",
2505
+ p̌: "p",
2506
+ Q̌: "Q",
2507
+ q̌: "q",
2508
+ Ř̩: "R",
2509
+ ř̩: "r",
2510
+ Ṧ: "S",
2511
+ ṧ: "s",
2512
+ V̌: "V",
2513
+ v̌: "v",
2514
+ W̌: "W",
2515
+ w̌: "w",
2516
+ X̌: "X",
2517
+ x̌: "x",
2518
+ Y̌: "Y",
2519
+ y̌: "y",
2520
+ A̧: "A",
2521
+ a̧: "a",
2522
+ B̧: "B",
2523
+ b̧: "b",
2524
+ Ḑ: "D",
2525
+ ḑ: "d",
2526
+ Ȩ: "E",
2527
+ ȩ: "e",
2528
+ Ɛ̧: "E",
2529
+ ɛ̧: "e",
2530
+ Ḩ: "H",
2531
+ ḩ: "h",
2532
+ I̧: "I",
2533
+ i̧: "i",
2534
+ Ɨ̧: "I",
2535
+ ɨ̧: "i",
2536
+ M̧: "M",
2537
+ m̧: "m",
2538
+ O̧: "O",
2539
+ o̧: "o",
2540
+ Q̧: "Q",
2541
+ q̧: "q",
2542
+ U̧: "U",
2543
+ u̧: "u",
2544
+ X̧: "X",
2545
+ x̧: "x",
2546
+ Z̧: "Z",
2547
+ z̧: "z",
2548
+ й: "и",
2549
+ Й: "И",
2550
+ ё: "е",
2551
+ Ё: "Е"
2552
+ }, xr = Object.keys(yr).join("|"), si = new RegExp(xr, "g"), li = new RegExp(xr, "");
2553
+ function ai(e) {
2554
+ return yr[e];
2555
+ }
2556
+ var br = function(e) {
2557
+ return e.replace(si, ai);
2558
+ }, ui = function(e) {
2559
+ return !!e.match(li);
2560
+ };
2561
+ ct.exports = br;
2562
+ ct.exports.has = ui;
2563
+ ct.exports.remove = br;
2564
+ var di = ct.exports;
2565
+ const ci = /* @__PURE__ */ lo(di);
2566
+ /**
2567
+ * @name match-sorter
2568
+ * @license MIT license.
2569
+ * @copyright (c) 2020 Kent C. Dodds
2570
+ * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
2571
+ */
2572
+ const fe = {
2573
+ CASE_SENSITIVE_EQUAL: 7,
2574
+ EQUAL: 6,
2575
+ STARTS_WITH: 5,
2576
+ WORD_STARTS_WITH: 4,
2577
+ CONTAINS: 3,
2578
+ ACRONYM: 2,
2579
+ MATCHES: 1,
2580
+ NO_MATCH: 0
2581
+ }, pi = (e, n) => String(e.rankedValue).localeCompare(String(n.rankedValue));
2582
+ function on(e, n, r) {
2583
+ r === void 0 && (r = {});
2584
+ const {
2585
+ keys: i,
2586
+ threshold: o = fe.MATCHES,
2587
+ baseSort: t = pi,
2588
+ sorter: s = (u) => u.sort((l, h) => mi(l, h, t))
2589
+ } = r, a = e.reduce(d, []);
2590
+ return s(a).map((u) => {
2591
+ let {
2592
+ item: l
2593
+ } = u;
2594
+ return l;
2595
+ });
2596
+ function d(u, l, h) {
2597
+ const b = fi(l, i, n, r), {
2598
+ rank: y,
2599
+ keyThreshold: x = o
2600
+ } = b;
2601
+ return y >= x && u.push({
2602
+ ...b,
2603
+ item: l,
2604
+ index: h
2605
+ }), u;
2606
+ }
2607
+ }
2608
+ on.rankings = fe;
2609
+ function fi(e, n, r, i) {
2610
+ if (!n) {
2611
+ const t = e;
2612
+ return {
2613
+ // ends up being duplicate of 'item' in matches but consistent
2614
+ rankedValue: t,
2615
+ rank: En(t, r, i),
2616
+ keyIndex: -1,
2617
+ keyThreshold: i.threshold
2618
+ };
2619
+ }
2620
+ return Ii(e, n).reduce((t, s, a) => {
2621
+ let {
2622
+ rank: d,
2623
+ rankedValue: u,
2624
+ keyIndex: l,
2625
+ keyThreshold: h
2626
+ } = t, {
2627
+ itemValue: b,
2628
+ attributes: y
2629
+ } = s, x = En(b, r, i), S = u;
2630
+ const {
2631
+ minRanking: g,
2632
+ maxRanking: D,
2633
+ threshold: c
2634
+ } = y;
2635
+ return x < g && x >= fe.MATCHES ? x = g : x > D && (x = D), x > d && (d = x, l = a, h = c, S = b), {
2636
+ rankedValue: S,
2637
+ rank: d,
2638
+ keyIndex: l,
2639
+ keyThreshold: h
2640
+ };
2641
+ }, {
2642
+ rankedValue: e,
2643
+ rank: fe.NO_MATCH,
2644
+ keyIndex: -1,
2645
+ keyThreshold: i.threshold
2646
+ });
2647
+ }
2648
+ function En(e, n, r) {
2649
+ return e = Cn(e, r), n = Cn(n, r), n.length > e.length ? fe.NO_MATCH : e === n ? fe.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), n = n.toLowerCase(), e === n ? fe.EQUAL : e.startsWith(n) ? fe.STARTS_WITH : e.includes(` ${n}`) ? fe.WORD_STARTS_WITH : e.includes(n) ? fe.CONTAINS : n.length === 1 ? fe.NO_MATCH : hi(e).includes(n) ? fe.ACRONYM : gi(e, n));
2650
+ }
2651
+ function hi(e) {
2652
+ let n = "";
2653
+ return e.split(" ").forEach((i) => {
2654
+ i.split("-").forEach((t) => {
2655
+ n += t.substr(0, 1);
2656
+ });
2657
+ }), n;
2658
+ }
2659
+ function gi(e, n) {
2660
+ let r = 0, i = 0;
2661
+ function o(d, u, l) {
2662
+ for (let h = l, b = u.length; h < b; h++)
2663
+ if (u[h] === d)
2664
+ return r += 1, h + 1;
2665
+ return -1;
2666
+ }
2667
+ function t(d) {
2668
+ const u = 1 / d, l = r / n.length;
2669
+ return fe.MATCHES + l * u;
2670
+ }
2671
+ const s = o(n[0], e, 0);
2672
+ if (s < 0)
2673
+ return fe.NO_MATCH;
2674
+ i = s;
2675
+ for (let d = 1, u = n.length; d < u; d++) {
2676
+ const l = n[d];
2677
+ if (i = o(l, e, i), !(i > -1))
2678
+ return fe.NO_MATCH;
2679
+ }
2680
+ const a = i - s;
2681
+ return t(a);
2682
+ }
2683
+ function mi(e, n, r) {
2684
+ const {
2685
+ rank: t,
2686
+ keyIndex: s
2687
+ } = e, {
2688
+ rank: a,
2689
+ keyIndex: d
2690
+ } = n;
2691
+ return t === a ? s === d ? r(e, n) : s < d ? -1 : 1 : t > a ? -1 : 1;
2692
+ }
2693
+ function Cn(e, n) {
2694
+ let {
2695
+ keepDiacritics: r
2696
+ } = n;
2697
+ return e = `${e}`, r || (e = ci(e)), e;
2698
+ }
2699
+ function vi(e, n) {
2700
+ typeof n == "object" && (n = n.key);
2701
+ let r;
2702
+ if (typeof n == "function")
2703
+ r = n(e);
2704
+ else if (e == null)
2705
+ r = null;
2706
+ else if (Object.hasOwnProperty.call(e, n))
2707
+ r = e[n];
2708
+ else {
2709
+ if (n.includes("."))
2710
+ return _i(n, e);
2711
+ r = null;
2712
+ }
2713
+ return r == null ? [] : Array.isArray(r) ? r : [String(r)];
2714
+ }
2715
+ function _i(e, n) {
2716
+ const r = e.split(".");
2717
+ let i = [n];
2718
+ for (let o = 0, t = r.length; o < t; o++) {
2719
+ const s = r[o];
2720
+ let a = [];
2721
+ for (let d = 0, u = i.length; d < u; d++) {
2722
+ const l = i[d];
2723
+ if (l != null)
2724
+ if (Object.hasOwnProperty.call(l, s)) {
2725
+ const h = l[s];
2726
+ h != null && a.push(h);
2727
+ } else
2728
+ s === "*" && (a = a.concat(l));
2729
+ }
2730
+ i = a;
2731
+ }
2732
+ return Array.isArray(i[0]) ? [].concat(...i) : i;
2733
+ }
2734
+ function Ii(e, n) {
2735
+ const r = [];
2736
+ for (let i = 0, o = n.length; i < o; i++) {
2737
+ const t = n[i], s = yi(t), a = vi(e, t);
2738
+ for (let d = 0, u = a.length; d < u; d++)
2739
+ r.push({
2740
+ itemValue: a[d],
2741
+ attributes: s
2742
+ });
2743
+ }
2744
+ return r;
2745
+ }
2746
+ const Sn = {
2747
+ maxRanking: 1 / 0,
2748
+ minRanking: -1 / 0
2749
+ };
2750
+ function yi(e) {
2751
+ return typeof e == "string" ? Sn : {
2752
+ ...Sn,
2753
+ ...e
2754
+ };
2755
+ }
2756
+ function xi({
2757
+ defaultOpen: e,
2758
+ placement: n = "bottom",
2759
+ modal: r,
2760
+ open: i,
2761
+ onOpenChange: o,
2762
+ onClose: t,
2763
+ disableCloseOnClickOutside: s,
2764
+ disableCloseOnEscape: a,
2765
+ openOnHover: d,
2766
+ fillAvailableHeight: u,
2767
+ matchReferenceWidth: l,
2768
+ fixedWidth: h,
2769
+ disableCaret: b,
2770
+ noPadding: y,
2771
+ disableShift: x,
2772
+ disableFlip: S,
2773
+ disableFlipFallback: g,
2774
+ disableAutoUpdate: D,
2775
+ disableFocusLock: c
2776
+ } = {}) {
2777
+ const [f, p] = J(e), [_, m] = J(), [N, E] = J(), P = i ?? f, M = o ?? p, O = Q(null), k = qr({
2778
+ placement: n,
2779
+ open: P,
2780
+ onOpenChange: M,
2781
+ whileElementsMounted: D ? void 0 : Yr,
2782
+ middleware: [
2783
+ Gr(8),
2784
+ Xr({
2785
+ padding: 5,
2786
+ apply({ rects: Z, availableHeight: j, elements: W }) {
2787
+ Object.assign(W.floating.style, {
2788
+ ...l ? { width: `${Z.reference.width}px` } : h ? { width: "40dvw" } : {},
2789
+ ...u ? (
2790
+ // { maxHeight: "60dvh" }
2791
+ // Minimum height is 236px before flip
2792
+ { maxHeight: `${Math.max(236, j - 20)}px` }
2793
+ ) : {},
2794
+ zIndex: 1
2795
+ });
2796
+ }
2797
+ }),
2798
+ Jr({
2799
+ mainAxis: !S,
2800
+ crossAxis: !1,
2801
+ fallbackAxisSideDirection: g ? "none" : "end",
2802
+ padding: 5
2803
+ }),
2804
+ Qr({
2805
+ padding: 5,
2806
+ mainAxis: !x,
2807
+ crossAxis: !1,
2808
+ limiter: Zr({
2809
+ mainAxis: !x
2810
+ })
2811
+ }),
2812
+ eo({ element: b ? null : O, padding: 5 })
2813
+ ]
2814
+ }), V = k.context, R = to(V, {
2815
+ enabled: i == null && !d
2816
+ }), F = no(V, {
2817
+ enabled: i == null && !!d,
2818
+ handleClose: ro()
2819
+ }), L = oo(V, {
2820
+ escapeKey: !a,
2821
+ outsidePress: () => s ? !1 : (t == null || t(), !0)
2822
+ }), K = io(V), z = so([R, F, L, K]);
2823
+ return Me(
2824
+ () => ({
2825
+ open: P,
2826
+ setOpen: M,
2827
+ onClose: t,
2828
+ ...z,
2829
+ ...k,
2830
+ modal: r,
2831
+ labelId: _,
2832
+ descriptionId: N,
2833
+ setLabelId: m,
2834
+ setDescriptionId: E,
2835
+ arrowRef: O,
2836
+ disableCaret: b,
2837
+ noPadding: y,
2838
+ fillAvailableHeight: u,
2839
+ matchReferenceWidth: l,
2840
+ fixedWidth: h,
2841
+ disableFlipFallback: g,
2842
+ disableAutoUpdate: D,
2843
+ disableFocusLock: c
2844
+ }),
2845
+ [
2846
+ P,
2847
+ M,
2848
+ t,
2849
+ z,
2850
+ k,
2851
+ r,
2852
+ _,
2853
+ N,
2854
+ b,
2855
+ y,
2856
+ u,
2857
+ l,
2858
+ h,
2859
+ g,
2860
+ D,
2861
+ c
2862
+ ]
2863
+ );
2864
+ }
2865
+ const wr = dt(null), Je = () => {
2866
+ const e = Te(wr);
2867
+ if (e == null)
2868
+ throw new Error("Popover components must be wrapped in <Popover />");
2869
+ return e;
2870
+ }, bi = function(e) {
2871
+ const { children: n } = e, r = Je(), i = Q(null), o = Be([r.refs.setReference, i]);
2872
+ return n({
2873
+ "data-state": r.open ? "open" : "closed",
2874
+ ...r.getReferenceProps({ ref: o })
2875
+ });
2876
+ }, wi = "_content_euuwv_4", Ei = "_arrow_euuwv_26", mt = {
2877
+ content: wi,
2878
+ arrow: Ei,
2879
+ "no-padding": "_no-padding_euuwv_37"
2880
+ }, Ci = ce(
2881
+ function({ className: e, style: n, ...r }, i) {
2882
+ const {
2883
+ context: o,
2884
+ theme: t,
2885
+ mode: s,
2886
+ disableCaret: a,
2887
+ noPadding: d,
2888
+ onClose: u,
2889
+ disableFocusLock: l,
2890
+ ...h
2891
+ } = Je(), b = Be([h.refs.setFloating, i]);
2892
+ if (!o.open)
2893
+ return null;
2894
+ const y = ae(e, mt.content, {
2895
+ [mt["no-padding"]]: d
2896
+ }), x = (S) => {
2897
+ S.code === "Escape" && (u == null || u());
2898
+ };
2899
+ return /* @__PURE__ */ v.jsx(zr, { children: /* @__PURE__ */ v.jsx(
2900
+ Ur,
2901
+ {
2902
+ context: o,
2903
+ modal: h.modal,
2904
+ order: ["reference", "content"],
2905
+ disabled: l,
2906
+ children: /* @__PURE__ */ v.jsx(Lr, { theme: t, mode: s, children: /* @__PURE__ */ v.jsxs(
2907
+ "div",
2908
+ {
2909
+ ref: b,
2910
+ style: { ...h.floatingStyles, ...n },
2911
+ "aria-labelledby": h.labelId,
2912
+ "aria-describedby": h.descriptionId,
2913
+ className: y,
2914
+ ...h.getFloatingProps(r),
2915
+ onKeyDown: x,
2916
+ role: "presentation",
2917
+ children: [
2918
+ !a && /* @__PURE__ */ v.jsx(
2919
+ Wr,
2920
+ {
2921
+ ref: h.arrowRef,
2922
+ context: o,
2923
+ className: mt.arrow
2924
+ }
2925
+ ),
2926
+ r.children
2927
+ ]
2928
+ }
2929
+ ) })
2930
+ }
2931
+ ) });
2932
+ }
2933
+ ), Si = ce(
2934
+ function(e, n) {
2935
+ const { setOpen: r, onClose: i } = Je();
2936
+ return /* @__PURE__ */ v.jsx(
2937
+ qe,
2938
+ {
2939
+ ref: n,
2940
+ ...e,
2941
+ onClick: (o) => {
2942
+ var t;
2943
+ (t = e.onClick) == null || t.call(e, o), i == null || i(), r(!1);
2944
+ }
2945
+ }
2946
+ );
2947
+ }
2948
+ ), Oi = ce(
2949
+ function(e, n) {
2950
+ const { children: r, size: i, ...o } = e, t = Je(), s = r.ref, a = Be([
2951
+ t.refs.setReference,
2952
+ n,
2953
+ s
2954
+ ]);
2955
+ return /* @__PURE__ */ v.jsx(
2956
+ qe,
2957
+ {
2958
+ ref: a,
2959
+ size: i,
2960
+ "data-state": t.open ? "open" : "closed",
2961
+ ...t.getReferenceProps(o),
2962
+ children: r
2963
+ }
2964
+ );
2965
+ }
2966
+ );
2967
+ function Di({
2968
+ children: e,
2969
+ modal: n,
2970
+ ...r
2971
+ }) {
2972
+ const i = xi({ modal: n, ...r }), { theme: o, mode: t = "light" } = Te(Br), s = Me(
2973
+ () => ({ ...i, theme: o, mode: t }),
2974
+ [t, i, o]
2975
+ );
2976
+ return /* @__PURE__ */ v.jsx(wr.Provider, { value: s, children: e });
2977
+ }
2978
+ const sn = Object.assign(Di, {
2979
+ Trigger: bi,
2980
+ Close: Si,
2981
+ Content: Ci,
2982
+ Button: Oi
2983
+ }), Er = (e) => /* @__PURE__ */ _e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ _e.createElement("path", { d: "M9.29 6.71a.996.996 0 0 0 0 1.41L13.17 12l-3.88 3.88a.996.996 0 1 0 1.41 1.41l4.59-4.59a.996.996 0 0 0 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z" })), Ni = "_combobox_1jt3w_2", Ri = "_input_1jt3w_30", ki = "_error_1jt3w_61", Pi = "_small_1jt3w_86", Mi = "_large_1jt3w_89", Ti = "_disabled_1jt3w_113", Vi = "_chip_1jt3w_162", Ai = "_prefix_1jt3w_217", Hi = "_suffix_1jt3w_218", ji = "_empty_1jt3w_260", te = {
2984
+ combobox: Ni,
2985
+ "search-field": "_search-field_1jt3w_6",
2986
+ "popover-content": "_popover-content_1jt3w_21",
2987
+ "input-wrapper": "_input-wrapper_1jt3w_30",
2988
+ input: Ri,
2989
+ error: ki,
2990
+ "buttons-wrapper": "_buttons-wrapper_1jt3w_69",
2991
+ small: Pi,
2992
+ large: Mi,
2993
+ "close-button-wrapper": "_close-button-wrapper_1jt3w_93",
2994
+ "close-button": "_close-button_1jt3w_93",
2995
+ "loading-infinite": "_loading-infinite_1jt3w_113",
2996
+ "loading-progress": "_loading-progress_1jt3w_113",
2997
+ disabled: Ti,
2998
+ "toggle-button-wrapper": "_toggle-button-wrapper_1jt3w_117",
2999
+ "toggle-button": "_toggle-button_1jt3w_117",
3000
+ "rows-wrapper": "_rows-wrapper_1jt3w_151",
3001
+ "chip-wrapper": "_chip-wrapper_1jt3w_162",
3002
+ chip: Vi,
3003
+ prefix: Ai,
3004
+ suffix: Hi,
3005
+ "listview-option": "_listview-option_1jt3w_255",
3006
+ empty: ji
3007
+ }, ln = dt(null), Qe = function() {
3008
+ const e = Te(
3009
+ ln
3010
+ );
3011
+ if (e == null)
3012
+ throw new Error("useCombobox must be wrapped in <Combobox />");
3013
+ return e;
3014
+ }, Ki = function(e) {
3015
+ const { multiple: n = !1, ...r } = e;
3016
+ return n ? /* @__PURE__ */ v.jsx(Fi, { ...r }) : /* @__PURE__ */ v.jsx($i, { ...r });
3017
+ }, $i = function(e) {
3018
+ const { layoutStyles: n, componentProps: r } = Se(e), {
3019
+ className: i,
3020
+ style: o,
3021
+ children: t,
3022
+ open: s,
3023
+ items: a,
3024
+ itemToString: d,
3025
+ onChange: u,
3026
+ onSelectedItemChange: l,
3027
+ disableCloseOnClickOutside: h = !1,
3028
+ filterOptions: b,
3029
+ ...y
3030
+ } = r, [x, S] = J(a), [g, D] = J(!1), [c, f] = J(!1), [p, _] = J(!1), [m, N] = J([]);
3031
+ function E(j) {
3032
+ return d && j ? d(j) : j ? String(j) : "";
3033
+ }
3034
+ const {
3035
+ isOpen: P,
3036
+ getLabelProps: M,
3037
+ getInputProps: O,
3038
+ getToggleButtonProps: k,
3039
+ getMenuProps: V,
3040
+ getItemProps: R,
3041
+ highlightedIndex: F,
3042
+ selectedItem: L,
3043
+ selectItem: K,
3044
+ setInputValue: z,
3045
+ inputValue: Z
3046
+ } = ge({
3047
+ ...y,
3048
+ items: x,
3049
+ itemToString(j) {
3050
+ return E(j);
3051
+ },
3052
+ onInputValueChange({ inputValue: j, type: W }) {
3053
+ W === ge.stateChangeTypes.InputKeyDownEnter || W === ge.stateChangeTypes.ItemClick ? S(a) : j != null && j !== "" ? S(on(a, j, b)) : S(a);
3054
+ },
3055
+ onSelectedItemChange({ selectedItem: j, ...W }) {
3056
+ u != null && u(j || null), l != null && l({ selectedItem: j, ...W });
3057
+ },
3058
+ onIsOpenChange({ isOpen: j, inputValue: W, selectedItem: Y }) {
3059
+ j === !1 && W === "" ? K(null) : j === !1 && z(Y != null ? E(Y) : "");
3060
+ },
3061
+ stateReducer(j, { type: W, changes: Y }) {
3062
+ switch (W) {
3063
+ case ge.stateChangeTypes.InputBlur:
3064
+ return h ? {
3065
+ ...Y,
3066
+ isOpen: j.isOpen,
3067
+ highlightedIndex: j.highlightedIndex
3068
+ } : Y;
3069
+ default:
3070
+ return Y;
3071
+ }
3072
+ },
3073
+ isItemDisabled(j) {
3074
+ return g || !!(j && j instanceof Object && "disabled" in j && j.disabled || j && j instanceof Object && "readOnly" in j && j.readOnly || m.includes(j));
3075
+ }
3076
+ });
3077
+ return /* @__PURE__ */ v.jsx(
3078
+ ln.Provider,
3079
+ {
3080
+ value: {
3081
+ multiple: !1,
3082
+ items: x,
3083
+ itemToString: E,
3084
+ isOpen: P,
3085
+ getLabelProps: M,
3086
+ getInputProps: O,
3087
+ getToggleButtonProps: k,
3088
+ getMenuProps: V,
3089
+ getItemProps: R,
3090
+ highlightedIndex: F,
3091
+ selectedItem: L,
3092
+ selectedItems: [],
3093
+ disabledItems: m,
3094
+ setDisabledItems: N,
3095
+ getSelectedItemProps: void 0,
3096
+ getDropdownProps: void 0,
3097
+ reset: void 0,
3098
+ removeSelectedItem: void 0,
3099
+ selectItem: K,
3100
+ inputValue: Z,
3101
+ isDisabledOrReadOnly: g,
3102
+ setIsDisabledOrReadOnly: D,
3103
+ hasDisabledPopover: c,
3104
+ setHasDisabledPopover: f,
3105
+ hasEmpty: p,
3106
+ setHasEmpty: _
3107
+ },
3108
+ children: /* @__PURE__ */ v.jsx("div", { className: i, style: { ...o, ...n }, children: /* @__PURE__ */ v.jsx(
3109
+ sn,
3110
+ {
3111
+ open: s === !0 ? s : P,
3112
+ noPadding: !0,
3113
+ disableCaret: !0,
3114
+ fillAvailableHeight: !0,
3115
+ disableFlipFallback: !0,
3116
+ matchReferenceWidth: !0,
3117
+ children: t
3118
+ }
3119
+ ) })
3120
+ }
3121
+ );
3122
+ }, Fi = function(e) {
3123
+ const { layoutStyles: n, componentProps: r } = Se(e), {
3124
+ className: i,
3125
+ style: o,
3126
+ children: t,
3127
+ open: s,
3128
+ items: a,
3129
+ itemToString: d,
3130
+ onChange: u,
3131
+ onSelectedItemChange: l,
3132
+ disableCloseOnClickOutside: h = !1,
3133
+ filterOptions: b,
3134
+ ...y
3135
+ } = r, [x, S] = J(a), [g, D] = J(!1), [c, f] = J(!1), [p, _] = J(!1), [m, N] = J(""), [E, P] = J([]), [M, O] = J([]), { getSelectedItemProps: k, getDropdownProps: V, reset: R, removeSelectedItem: F } = Ne({
3136
+ selectedItems: E,
3137
+ onStateChange({ selectedItems: w, type: H }) {
3138
+ switch (H) {
3139
+ case Ne.stateChangeTypes.SelectedItemKeyDownBackspace:
3140
+ case Ne.stateChangeTypes.SelectedItemKeyDownDelete:
3141
+ case Ne.stateChangeTypes.DropdownKeyDownBackspace:
3142
+ case Ne.stateChangeTypes.FunctionRemoveSelectedItem:
3143
+ u != null && u(w ?? []), P(w ?? []);
3144
+ break;
3145
+ case Ne.stateChangeTypes.FunctionReset:
3146
+ u != null && u([]), P([]), N("");
3147
+ break;
3148
+ }
3149
+ }
3150
+ });
3151
+ function L(w) {
3152
+ return d && w ? d(w) : w ? String(w) : "";
3153
+ }
3154
+ const {
3155
+ isOpen: K,
3156
+ getLabelProps: z,
3157
+ getInputProps: Z,
3158
+ getToggleButtonProps: j,
3159
+ getMenuProps: W,
3160
+ getItemProps: Y,
3161
+ highlightedIndex: re,
3162
+ selectedItem: T,
3163
+ selectItem: A
3164
+ } = ge({
3165
+ ...y,
3166
+ items: x,
3167
+ itemToString(w) {
3168
+ return L(w);
3169
+ },
3170
+ selectedItem: null,
3171
+ inputValue: m,
3172
+ onInputValueChange({ inputValue: w, type: H }) {
3173
+ H === ge.stateChangeTypes.InputKeyDownEnter || H === ge.stateChangeTypes.ItemClick ? S(a) : w != null && w !== "" ? S(on(a, w, b)) : S(a);
3174
+ },
3175
+ onIsOpenChange({ isOpen: w }) {
3176
+ w === !1 && N("");
3177
+ },
3178
+ stateReducer(w, { type: H, changes: U }) {
3179
+ switch (H) {
3180
+ case ge.stateChangeTypes.InputBlur:
3181
+ return h ? {
3182
+ ...U,
3183
+ isOpen: w.isOpen,
3184
+ highlightedIndex: w.highlightedIndex
3185
+ } : U;
3186
+ default:
3187
+ return U;
3188
+ }
3189
+ },
3190
+ isItemDisabled(w) {
3191
+ return g || !!(w && w instanceof Object && "disabled" in w && w.disabled || w && w instanceof Object && "readOnly" in w && w.readOnly || M.includes(w));
3192
+ },
3193
+ onStateChange({
3194
+ inputValue: w = "",
3195
+ type: H,
3196
+ selectedItem: U
3197
+ }) {
3198
+ switch (H) {
3199
+ case ge.stateChangeTypes.InputKeyDownEnter:
3200
+ case ge.stateChangeTypes.ItemClick:
3201
+ case ge.stateChangeTypes.InputBlur:
3202
+ if (U) {
3203
+ const q = E.includes(U) ? E.filter((B) => B !== U) : [...E, U];
3204
+ u != null && u(q), P(q), N("");
3205
+ }
3206
+ break;
3207
+ case ge.stateChangeTypes.InputChange:
3208
+ N(w);
3209
+ break;
3210
+ }
3211
+ }
3212
+ });
3213
+ return /* @__PURE__ */ v.jsx(
3214
+ ln.Provider,
3215
+ {
3216
+ value: {
3217
+ multiple: !0,
3218
+ items: x,
3219
+ itemToString: L,
3220
+ isOpen: K,
3221
+ getLabelProps: z,
3222
+ getInputProps: Z,
3223
+ getToggleButtonProps: j,
3224
+ getMenuProps: W,
3225
+ getItemProps: Y,
3226
+ highlightedIndex: re,
3227
+ selectedItem: T,
3228
+ selectedItems: E,
3229
+ disabledItems: M,
3230
+ setDisabledItems: O,
3231
+ getSelectedItemProps: k,
3232
+ getDropdownProps: V,
3233
+ reset: R,
3234
+ removeSelectedItem: F,
3235
+ selectItem: A,
3236
+ inputValue: m,
3237
+ isDisabledOrReadOnly: g,
3238
+ setIsDisabledOrReadOnly: D,
3239
+ hasDisabledPopover: c,
3240
+ setHasDisabledPopover: f,
3241
+ hasEmpty: p,
3242
+ setHasEmpty: _
3243
+ },
3244
+ children: /* @__PURE__ */ v.jsx("div", { className: i, style: { ...o, ...n }, children: /* @__PURE__ */ v.jsx(
3245
+ sn,
3246
+ {
3247
+ open: s === !0 ? s : K,
3248
+ noPadding: !0,
3249
+ disableCaret: !0,
3250
+ fillAvailableHeight: !0,
3251
+ disableFlipFallback: !0,
3252
+ matchReferenceWidth: !0,
3253
+ children: t
3254
+ }
3255
+ ) })
3256
+ }
3257
+ );
3258
+ }, Li = ({
3259
+ className: e,
3260
+ label: n,
3261
+ size: r,
3262
+ error: i,
3263
+ hint: o,
3264
+ description: t,
3265
+ required: s,
3266
+ moreInfo: a,
3267
+ openMoreInfo: d,
3268
+ disabled: u,
3269
+ readOnly: l,
3270
+ prefix: h,
3271
+ suffix: b,
3272
+ maxRows: y,
3273
+ ...x
3274
+ }) => {
3275
+ const {
3276
+ isOpen: S,
3277
+ itemToString: g,
3278
+ getLabelProps: D,
3279
+ getInputProps: c,
3280
+ getToggleButtonProps: f,
3281
+ selectedItems: p,
3282
+ getSelectedItemProps: _,
3283
+ getDropdownProps: m,
3284
+ reset: N,
3285
+ removeSelectedItem: E,
3286
+ selectItem: P,
3287
+ inputValue: M,
3288
+ setIsDisabledOrReadOnly: O,
3289
+ hasDisabledPopover: k
3290
+ } = Qe(), V = Je(), R = ae(te["input-wrapper"], {
3291
+ [te.small]: r === "small",
3292
+ [te.large]: r === "large"
3293
+ }), F = Ie(), L = Ie(), K = ae(te.input, e, {
3294
+ [te.error]: i
3295
+ });
3296
+ de(() => (O(!!(u || l)), () => {
3297
+ O(!1);
3298
+ }), [u, l, O]);
3299
+ let z = `label${F} `;
3300
+ z += ` helper${L}`;
3301
+ const Z = typeof i != "boolean" ? i : void 0, j = Q(null), [W, Y] = J(!1), [re, T] = J(!1), [A, w] = J(
3302
+ null
3303
+ ), [H, U] = J(0);
3304
+ wt(() => {
3305
+ var B, se;
3306
+ if (y !== void 0) {
3307
+ if (W === !1)
3308
+ Y(!0), T(!1), w(null), U((le) => le + 1);
3309
+ else if ((B = j == null ? void 0 : j.current) != null && B.children) {
3310
+ const le = (se = j == null ? void 0 : j.current) == null ? void 0 : se.children, ue = Array.from(le).reduce(
3311
+ (C, he) => {
3312
+ const oe = he.getBoundingClientRect().top;
3313
+ return C.length ? C[C.length - 1].top === oe ? [
3314
+ ...C.slice(0, -1),
3315
+ { count: C[C.length - 1].count + 1, top: oe }
3316
+ ] : C[C.length - 1].top !== oe ? [...C, { count: 1, top: oe }] : C : [{ count: 1, top: oe }];
3317
+ },
3318
+ []
3319
+ );
3320
+ if (!ue[1] || A === 0)
3321
+ Y(!1);
3322
+ else {
3323
+ if (T(!0), A == null) {
3324
+ const C = Math.max(
3325
+ ue[0].count + ue[1].count - 2,
3326
+ 0
3327
+ );
3328
+ w(C);
3329
+ } else
3330
+ w(A - 1);
3331
+ U((C) => C + 1);
3332
+ }
3333
+ }
3334
+ }
3335
+ }, [p.length, y, H]);
3336
+ const q = re && y != null && A !== null ? A : p.length;
3337
+ return /* @__PURE__ */ v.jsxs("div", { className: te["search-field"], children: [
3338
+ /* @__PURE__ */ v.jsxs("div", { children: [
3339
+ /* @__PURE__ */ v.jsx(
3340
+ bt,
3341
+ {
3342
+ ...D({
3343
+ id: F,
3344
+ required: s,
3345
+ moreInfo: a,
3346
+ openMoreInfo: d
3347
+ }),
3348
+ children: n
3349
+ }
3350
+ ),
3351
+ /* @__PURE__ */ v.jsxs(
3352
+ "div",
3353
+ {
3354
+ className: R,
3355
+ ref: V.refs.setReference,
3356
+ children: [
3357
+ /* @__PURE__ */ v.jsxs("div", { className: te["buttons-wrapper"], children: [
3358
+ M || p.length ? /* @__PURE__ */ v.jsx("div", { className: te["close-button-wrapper"], children: /* @__PURE__ */ v.jsx(
3359
+ qe,
3360
+ {
3361
+ "aria-label": "clear selection",
3362
+ appearance: "ghost",
3363
+ size: "small",
3364
+ icon: Vn,
3365
+ className: te["close-button"],
3366
+ onClick: () => {
3367
+ N != null ? N() : P(null);
3368
+ },
3369
+ tabIndex: -1,
3370
+ disabled: u || l
3371
+ }
3372
+ ) }) : null,
3373
+ k ? null : /* @__PURE__ */ v.jsx("div", { className: te["toggle-button-wrapper"], children: /* @__PURE__ */ v.jsx(
3374
+ qe,
3375
+ {
3376
+ "aria-label": "toggle menu",
3377
+ ...f({
3378
+ icon: Er,
3379
+ className: te["toggle-button"],
3380
+ disabled: u || l
3381
+ }),
3382
+ appearance: "ghost",
3383
+ size: "small"
3384
+ }
3385
+ ) })
3386
+ ] }),
3387
+ /* @__PURE__ */ v.jsxs("div", { className: te["rows-wrapper"], ref: j, children: [
3388
+ p.length && E != null && _ != null ? p.slice(0, q).map((B, se) => {
3389
+ const { onClick: le, ...ue } = _({
3390
+ selectedItem: B,
3391
+ index: se
3392
+ });
3393
+ return /* @__PURE__ */ v.jsx(
3394
+ "div",
3395
+ {
3396
+ className: te["chip-wrapper"],
3397
+ children: /* @__PURE__ */ v.jsx(
3398
+ an,
3399
+ {
3400
+ ...ue,
3401
+ label: g(B),
3402
+ onClose: () => E(B),
3403
+ className: te.chip,
3404
+ title: g(B)
3405
+ }
3406
+ )
3407
+ },
3408
+ `selected-item-${se}`
3409
+ );
3410
+ }) : null,
3411
+ re && y != null ? /* @__PURE__ */ v.jsx("div", { className: te["chip-wrapper"], children: /* @__PURE__ */ v.jsx(
3412
+ an,
3413
+ {
3414
+ label: `+${p.length - q}`,
3415
+ className: te.chip,
3416
+ title: p.slice(q).map((B) => g(B)).join(", ")
3417
+ }
3418
+ ) }) : null,
3419
+ /* @__PURE__ */ v.jsxs(
3420
+ vt,
3421
+ {
3422
+ flex: "1 1 100px",
3423
+ alignItems: "center",
3424
+ style: { width: "100px" },
3425
+ children: [
3426
+ h ? /* @__PURE__ */ v.jsx("div", { className: te.prefix, children: h }) : null,
3427
+ /* @__PURE__ */ v.jsx(
3428
+ "input",
3429
+ {
3430
+ ...m != null ? c(
3431
+ m({
3432
+ ...x,
3433
+ className: K,
3434
+ disabled: u,
3435
+ readOnly: l,
3436
+ required: s,
3437
+ autoComplete: "off",
3438
+ "aria-labelledby": z,
3439
+ preventKeyAction: S
3440
+ })
3441
+ ) : c({
3442
+ ...x,
3443
+ className: K,
3444
+ disabled: u,
3445
+ readOnly: l,
3446
+ required: s,
3447
+ autoComplete: "off",
3448
+ "aria-labelledby": z
3449
+ })
3450
+ }
3451
+ ),
3452
+ b ? /* @__PURE__ */ v.jsx("div", { className: te.suffix, children: b }) : null
3453
+ ]
3454
+ }
3455
+ )
3456
+ ] })
3457
+ ]
3458
+ }
3459
+ )
3460
+ ] }),
3461
+ o || Z || t ? /* @__PURE__ */ v.jsx(
3462
+ Et,
3463
+ {
3464
+ id: L,
3465
+ errorMessage: Z,
3466
+ hint: o,
3467
+ description: t
3468
+ }
3469
+ ) : null
3470
+ ] });
3471
+ }, Bi = function({
3472
+ children: e,
3473
+ className: n,
3474
+ disablePopover: r = !1,
3475
+ ...i
3476
+ }) {
3477
+ const {
3478
+ items: o,
3479
+ highlightedIndex: t,
3480
+ selectedItem: s,
3481
+ selectedItems: a,
3482
+ setHasDisabledPopover: d,
3483
+ getMenuProps: u,
3484
+ getItemProps: l,
3485
+ isDisabledOrReadOnly: h
3486
+ } = Qe(), b = ae(
3487
+ te["popover-content"],
3488
+ n
3489
+ );
3490
+ return de(() => (d(r), () => {
3491
+ d(!1);
3492
+ }), [r, d]), r ? /* @__PURE__ */ v.jsx("div", { ...i, className: b, children: e ? e({
3493
+ items: o,
3494
+ highlightedIndex: t,
3495
+ selectedItem: s,
3496
+ getMenuProps: u,
3497
+ getItemProps: l,
3498
+ listProps: {
3499
+ ...u({}, { suppressRefError: !0 }),
3500
+ style: {
3501
+ display: o.length ? "" : "none",
3502
+ overflow: "auto"
3503
+ }
3504
+ },
3505
+ options: o.map((y, x) => ({
3506
+ optionProps: {
3507
+ ...l({
3508
+ item: y,
3509
+ index: x
3510
+ }),
3511
+ selected: s === y || a.includes(y),
3512
+ disabled: h
3513
+ // also see "isItemDisabled" function
3514
+ },
3515
+ item: y,
3516
+ index: x
3517
+ }))
3518
+ }) : null }) : /* @__PURE__ */ v.jsx(sn.Content, { ...i, className: b, children: e ? e({
3519
+ items: o,
3520
+ highlightedIndex: t,
3521
+ selectedItem: s,
3522
+ getMenuProps: u,
3523
+ getItemProps: l,
3524
+ listProps: {
3525
+ ...u({}, { suppressRefError: !0 }),
3526
+ style: {
3527
+ display: o.length ? void 0 : "none",
3528
+ overflow: "auto"
3529
+ }
3530
+ },
3531
+ options: o.map((y, x) => ({
3532
+ optionProps: {
3533
+ ...l({
3534
+ item: y,
3535
+ index: x
3536
+ }),
3537
+ selected: s === y || a.includes(y),
3538
+ disabled: h
3539
+ // also see "isItemDisabled" function
3540
+ },
3541
+ item: y,
3542
+ index: x
3543
+ }))
3544
+ }) : null });
3545
+ }, zi = function({
3546
+ children: e,
3547
+ ...n
3548
+ }) {
3549
+ const { getMenuProps: r, multiple: i, items: o, hasEmpty: t } = Qe();
3550
+ return i ? /* @__PURE__ */ v.jsx(
3551
+ "div",
3552
+ {
3553
+ ...r(n),
3554
+ className: _t.listview,
3555
+ style: {
3556
+ display: o.length ? void 0 : "none",
3557
+ overflow: "scroll"
3558
+ },
3559
+ children: e
3560
+ }
3561
+ ) : /* @__PURE__ */ v.jsxs(v.Fragment, { children: [
3562
+ /* @__PURE__ */ v.jsx(
3563
+ "ul",
3564
+ {
3565
+ ...r(n),
3566
+ className: Pn.listbox,
3567
+ style: {
3568
+ display: o.length ? void 0 : "none",
3569
+ overflow: "scroll"
3570
+ },
3571
+ children: e
3572
+ }
3573
+ ),
3574
+ !o.length && !t ? /* @__PURE__ */ v.jsx("div", { className: te.empty, children: /* @__PURE__ */ v.jsx(Tn, { subdued: !0, size: "small", children: "No results found" }) }) : null
3575
+ ] });
3576
+ }, Ui = function({
3577
+ children: e,
3578
+ disabled: n,
3579
+ item: r,
3580
+ index: i,
3581
+ ...o
3582
+ }) {
3583
+ const {
3584
+ getItemProps: t,
3585
+ multiple: s,
3586
+ selectedItem: a,
3587
+ selectedItems: d,
3588
+ disabledItems: u,
3589
+ setDisabledItems: l
3590
+ } = Qe(), h = n || r && r instanceof Object && "disabled" in r && r.disabled;
3591
+ return de(() => (n && !u.includes(r) ? l([...u, r]) : u.includes(r) && l(u.filter((b) => b === r)), () => {
3592
+ u.includes(r) && l(u.filter((b) => b === r));
3593
+ }), [r, n, l]), s ? /* @__PURE__ */ v.jsx(
3594
+ "div",
3595
+ {
3596
+ ...t({
3597
+ item: r,
3598
+ index: i,
3599
+ ...o
3600
+ }),
3601
+ className: ae(
3602
+ te["listview-option"],
3603
+ _t["listview-option"]
3604
+ ),
3605
+ children: /* @__PURE__ */ v.jsxs("div", { className: ae(te.cell, _t.cell), children: [
3606
+ /* @__PURE__ */ v.jsx(
3607
+ Ar,
3608
+ {
3609
+ checked: d.includes(r),
3610
+ "aria-label": "Select",
3611
+ ...h ? { disabled: !0 } : {}
3612
+ }
3613
+ ),
3614
+ e
3615
+ ] })
3616
+ }
3617
+ ) : /* @__PURE__ */ v.jsxs(
3618
+ "li",
3619
+ {
3620
+ ...t({
3621
+ item: r,
3622
+ index: i,
3623
+ ...o
3624
+ }),
3625
+ className: Pn.option,
3626
+ ...h ? { "aria-disabled": !0 } : {},
3627
+ children: [
3628
+ /* @__PURE__ */ v.jsx("span", { children: e }),
3629
+ /* @__PURE__ */ v.jsx(
3630
+ xt,
3631
+ {
3632
+ "aria-hidden": !0,
3633
+ svg: ao,
3634
+ inherit: !0,
3635
+ className: te.Icon,
3636
+ style: { opacity: a === r ? 1 : 0 }
3637
+ }
3638
+ )
3639
+ ]
3640
+ }
3641
+ );
3642
+ }, Wi = function({
3643
+ children: e
3644
+ }) {
3645
+ const { items: n, setHasEmpty: r } = Qe();
3646
+ return de(() => (r(!0), () => {
3647
+ r(!1);
3648
+ })), n.length ? null : e;
3649
+ }, jl = Object.assign(Ki, {
3650
+ SearchField: Li,
3651
+ Content: Bi,
3652
+ List: zi,
3653
+ Item: Ui,
3654
+ Empty: Wi
3655
+ });
3656
+ const qi = "_summary_y9p7y_4", Yi = "_arrow_y9p7y_49", Gi = "_content_y9p7y_17", Xi = "_expanded_y9p7y_90", Ke = {
3657
+ summary: qi,
3658
+ "content-wrapper": "_content-wrapper_y9p7y_17",
3659
+ arrow: Yi,
3660
+ content: Gi,
3661
+ "is-expanded": "_is-expanded_y9p7y_87",
3662
+ expanded: Xi
3663
+ }, pt = dt({
3664
+ id: "",
3665
+ isExpanded: !1,
3666
+ expanded: () => {
3667
+ },
3668
+ close: () => {
3669
+ },
3670
+ toggle: () => {
3671
+ }
3672
+ }), Ji = ce(
3673
+ function(e, n) {
3674
+ const { layoutStyles: r, componentProps: i } = Se(e), {
3675
+ children: o,
3676
+ id: t,
3677
+ expanded: s,
3678
+ defaultExpanded: a = !1,
3679
+ style: d,
3680
+ ...u
3681
+ } = i, l = Ie(), [h, b] = J(a);
3682
+ function y() {
3683
+ b(!0);
3684
+ }
3685
+ function x() {
3686
+ b(!1);
3687
+ }
3688
+ function S() {
3689
+ b((c) => !c);
3690
+ }
3691
+ const g = {
3692
+ ...d,
3693
+ ...r
3694
+ }, D = Me(
3695
+ () => ({
3696
+ id: t ?? l,
3697
+ isExpanded: s ?? h,
3698
+ expanded: y,
3699
+ close: x,
3700
+ toggle: S
3701
+ }),
3702
+ [l, t, h, s]
3703
+ );
3704
+ return /* @__PURE__ */ v.jsx(pt.Provider, { value: D, children: /* @__PURE__ */ v.jsx("div", { "data-anv": "Details", ref: n, style: g, ...u, children: o }) });
3705
+ }
3706
+ ), Qi = ce(function({ children: e, onClick: n, className: r, ...i }, o) {
3707
+ const { id: t, isExpanded: s, toggle: a } = Te(pt), d = (...l) => {
3708
+ n == null || n(...l), a();
3709
+ }, u = ae(Ke.summary, r);
3710
+ return /* @__PURE__ */ v.jsxs(
3711
+ "button",
3712
+ {
3713
+ "data-anv": "DetailsSummary",
3714
+ "aria-controls": t,
3715
+ "aria-expanded": s,
3716
+ className: u,
3717
+ onClick: d,
3718
+ ref: o,
3719
+ ...i,
3720
+ children: [
3721
+ /* @__PURE__ */ v.jsx(Zi, {}),
3722
+ " ",
3723
+ /* @__PURE__ */ v.jsx("span", { children: e })
3724
+ ]
3725
+ }
3726
+ );
3727
+ }), Zi = ce(
3728
+ function({ className: e, ...n }, r) {
3729
+ const { isExpanded: i } = Te(pt), o = ae(
3730
+ Ke.arrow,
3731
+ { [Ke["is-expanded"]]: i },
3732
+ e
3733
+ );
3734
+ return /* @__PURE__ */ v.jsx("span", { className: o, ref: r, ...n, children: /* @__PURE__ */ v.jsx(xt, { size: "large", svg: Er }) });
3735
+ }
3736
+ ), es = ce(
3737
+ function({
3738
+ className: e,
3739
+ children: n,
3740
+ height: r,
3741
+ maxHeight: i,
3742
+ style: o,
3743
+ ...t
3744
+ }, s) {
3745
+ const { id: a, isExpanded: d } = Te(pt), u = {
3746
+ height: r,
3747
+ maxHeight: i,
3748
+ ...r || i ? { overflow: "auto" } : {},
3749
+ ...o
3750
+ };
3751
+ return /* @__PURE__ */ v.jsx(
3752
+ "div",
3753
+ {
3754
+ "data-anv": "DetailsContent",
3755
+ id: a,
3756
+ className: ae(Ke["content-wrapper"], {
3757
+ [Ke.expanded]: d
3758
+ }),
3759
+ ref: s,
3760
+ children: /* @__PURE__ */ v.jsx("div", { className: Ke.content, children: /* @__PURE__ */ v.jsx("div", { className: e, style: u, ...t, children: n }) })
3761
+ }
3762
+ );
3763
+ }
3764
+ ), Kl = Object.assign(Ji, {
3765
+ Summary: Qi,
3766
+ Content: es
3767
+ });
3768
+ const ts = "_dialog_lklpe_4", ns = "_container_lklpe_19", rs = "_content_lklpe_28", os = "_remove_lklpe_40", is = "_header_lklpe_49", ss = "_footer_lklpe_68", ls = "_large_lklpe_78", as = "_fullscreen_lklpe_78", us = "_sticky_lklpe_98", xe = {
3769
+ dialog: ts,
3770
+ "close-dialog": "_close-dialog_lklpe_1",
3771
+ container: ns,
3772
+ content: rs,
3773
+ "open-dialog": "_open-dialog_lklpe_1",
3774
+ "open-backdrop": "_open-backdrop_lklpe_1",
3775
+ remove: os,
3776
+ "close-backdrop": "_close-backdrop_lklpe_1",
3777
+ header: is,
3778
+ "close-container": "_close-container_lklpe_61",
3779
+ footer: ss,
3780
+ large: ls,
3781
+ fullscreen: as,
3782
+ sticky: us,
3783
+ "close-button": "_close-button_lklpe_104"
3784
+ }, Cr = ce((e, n) => {
3785
+ const { onClick: r, ...i } = e, { close: o } = ds(), t = (s) => {
3786
+ o(), r == null || r(s);
3787
+ };
3788
+ return /* @__PURE__ */ v.jsx(
3789
+ qe,
3790
+ {
3791
+ "aria-label": "Close dialog",
3792
+ onClick: t,
3793
+ ref: n,
3794
+ ...i
3795
+ }
3796
+ );
3797
+ });
3798
+ Cr.displayName = "DialogCancelButton";
3799
+ const Sr = ce(
3800
+ (e, n) => {
3801
+ const { children: r, ...i } = e;
3802
+ return /* @__PURE__ */ v.jsxs("header", { className: xe.header, ref: n, ...i, children: [
3803
+ /* @__PURE__ */ v.jsx(Tn, { variant: "headline", el: "h1", children: r }),
3804
+ /* @__PURE__ */ v.jsx("span", { className: xe["close-container"], children: /* @__PURE__ */ v.jsx(
3805
+ Cr,
3806
+ {
3807
+ className: xe["close-button"],
3808
+ size: "small",
3809
+ appearance: "ghost",
3810
+ "aria-label": "Close dialog",
3811
+ icon: Vn
3812
+ }
3813
+ ) })
3814
+ ] });
3815
+ }
3816
+ );
3817
+ Sr.displayName = "DialogHeader";
3818
+ const Or = ce(
3819
+ (e, n) => {
3820
+ const { children: r, sticky: i = !1, ...o } = e, t = ae(xe.footer, {
3821
+ [xe.sticky]: i
3822
+ });
3823
+ return /* @__PURE__ */ v.jsx("footer", { className: t, ref: n, ...o, children: r });
3824
+ }
3825
+ );
3826
+ Or.displayName = "DialogFooter";
3827
+ const Dr = ce(
3828
+ (e, n) => {
3829
+ const { children: r, ...i } = e, o = ae(xe.content, {});
3830
+ return /* @__PURE__ */ v.jsx("div", { className: o, ref: n, ...i, children: r });
3831
+ }
3832
+ );
3833
+ Dr.displayName = "DialogContent";
3834
+ const Nr = dt(null), Rr = ce(
3835
+ (e, n) => {
3836
+ const {
3837
+ className: r,
3838
+ open: i = !1,
3839
+ children: o,
3840
+ onOpen: t,
3841
+ onClose: s,
3842
+ onCancel: a,
3843
+ onClick: d,
3844
+ onKeyDown: u,
3845
+ fullScreen: l = !1,
3846
+ disableCloseOnEscape: h = !1,
3847
+ disableCloseOnClickOutside: b = !1,
3848
+ size: y,
3849
+ ...x
3850
+ } = e, S = Q(null), g = Q(null), D = Q(null), c = Ie(), [f, p] = J(!1), _ = ae([xe.dialog], r, {
3851
+ [xe.fullscreen]: l,
3852
+ [xe.remove]: f,
3853
+ [xe.large]: y === "large"
3854
+ }), m = Hr(S.current), N = m[0], E = m[m.length - 1], P = ee(() => {
3855
+ var R;
3856
+ if (D.current) {
3857
+ const F = (D.current.dataset.dialogsOpen ? D.current.dataset.dialogsOpen.split(" ") : []).filter((L) => L !== c);
3858
+ F.length === 0 ? (D.current.removeAttribute("data-dialogs-open"), (R = D.current) == null || R.classList.remove("dialog-open")) : D.current.dataset.dialogsOpen = F.join(" ");
3859
+ }
3860
+ }, [c]);
3861
+ de(() => {
3862
+ var R, F, L, K;
3863
+ if (i) {
3864
+ if (t == null || t(), (R = S.current) == null || R.showModal(), !D.current) {
3865
+ const z = (F = S.current) == null ? void 0 : F.closest("body");
3866
+ z && (D.current = z);
3867
+ }
3868
+ if (!((L = S.current) != null && L.querySelector(":focus")) && (N == null || N.focus()), (K = D.current) == null || K.classList.add("dialog-open"), D.current) {
3869
+ const z = D.current.dataset.dialogsOpen ? D.current.dataset.dialogsOpen.split(" ") : [];
3870
+ if (z.includes(c))
3871
+ return;
3872
+ z.push(c), D.current.dataset.dialogsOpen = z.join(" ");
3873
+ }
3874
+ return;
3875
+ }
3876
+ p(!0), setTimeout(() => {
3877
+ var z;
3878
+ (z = S.current) == null || z.close(), P(), p(!1);
3879
+ }, 200);
3880
+ }, [N, c, t, i, P]);
3881
+ const M = (R) => {
3882
+ R.preventDefault(), !h && (s == null || s());
3883
+ }, O = (R) => {
3884
+ var F;
3885
+ d == null || d(R);
3886
+ const L = R.target;
3887
+ if (!((F = g.current) != null && F.contains(L))) {
3888
+ if (R.preventDefault(), b)
3889
+ return;
3890
+ s == null || s();
3891
+ }
3892
+ }, k = (R) => {
3893
+ if (u == null || u(R), R.code === "Tab") {
3894
+ if (R.shiftKey && R.target === N) {
3895
+ R.preventDefault(), E == null || E.focus();
3896
+ return;
3897
+ }
3898
+ if (R.target === E && !R.shiftKey) {
3899
+ R.preventDefault(), N == null || N.focus();
3900
+ return;
3901
+ }
3902
+ }
3903
+ }, V = Me(() => ({ close: () => {
3904
+ p(!0), setTimeout(() => {
3905
+ var R;
3906
+ P(), (R = S.current) == null || R.close(), s == null || s();
3907
+ }, 200);
3908
+ } }), [s, P]);
3909
+ return (
3910
+ // dialog element does seem to be interactive on MDN guideline
3911
+ // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
3912
+ /* @__PURE__ */ v.jsx(
3913
+ "dialog",
3914
+ {
3915
+ className: _,
3916
+ "data-anv": "Dialog",
3917
+ ref: Be([n, S]),
3918
+ onCancel: M,
3919
+ onClick: O,
3920
+ onKeyDown: k,
3921
+ ...x,
3922
+ children: /* @__PURE__ */ v.jsx(Nr.Provider, { value: V, children: /* @__PURE__ */ v.jsx("section", { ref: g, className: xe.container, children: o }) })
3923
+ }
3924
+ )
3925
+ );
3926
+ }
3927
+ );
3928
+ function ds() {
3929
+ const e = Te(Nr);
3930
+ if (!e)
3931
+ throw new Error(
3932
+ "useDialogContext must be used within a DialogContextProvider"
3933
+ );
3934
+ return e;
3935
+ }
3936
+ Rr.displayName = "Dialog";
3937
+ const $l = Object.assign(Rr, {
3938
+ Header: Sr,
3939
+ Footer: Or,
3940
+ Content: Dr
3941
+ });
3942
+ const cs = "_link_ctdzp_4", ps = "_secondary_ctdzp_36", fs = "_quiet_ctdzp_45", $e = {
3943
+ link: cs,
3944
+ secondary: ps,
3945
+ quiet: fs
3946
+ }, hs = (e) => /* @__PURE__ */ _e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ _e.createElement("path", { d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h5c.55 0 1-.45 1-1s-.45-1-1-1H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-6c0-.55-.45-1-1-1s-1 .45-1 1v5c0 .55-.45 1-1 1zM14 4c0 .55.45 1 1 1h2.59l-9.13 9.13a.996.996 0 1 0 1.41 1.41L19 6.41V9c0 .55.45 1 1 1s1-.45 1-1V4c0-.55-.45-1-1-1h-5c-.55 0-1 .45-1 1z" })), gs = ce((e, n) => {
3947
+ const { layoutStyles: r, componentProps: i } = Se(e), {
3948
+ children: o,
3949
+ className: t,
3950
+ appearance: s = "primary",
3951
+ quiet: a,
3952
+ style: d,
3953
+ ...u
3954
+ } = i, l = ae([$e.link], t, {
3955
+ [$e.quiet]: a,
3956
+ [$e.secondary]: s === "secondary"
3957
+ }), h = {
3958
+ ...d,
3959
+ ...r
3960
+ };
3961
+ return /* @__PURE__ */ v.jsxs(
3962
+ "a",
3963
+ {
3964
+ className: l,
3965
+ rel: "noopener noreferrer",
3966
+ "data-anv": "Link",
3967
+ ref: n,
3968
+ style: h,
3969
+ ...u,
3970
+ children: [
3971
+ o,
3972
+ u.target === "_blank" && /* @__PURE__ */ v.jsx(xt, { inherit: !0, svg: hs })
3973
+ ]
3974
+ }
3975
+ );
3976
+ });
3977
+ gs.displayName = "Link";
3978
+ const Fl = (e) => {
3979
+ const { layoutStyles: n, componentProps: r } = Se(e), { className: i, appearance: o = "primary", quiet: t, style: s } = r, a = ae([$e.link], i, {
3980
+ [$e.quiet]: t,
3981
+ [$e.secondary]: o === "secondary"
3982
+ }), d = {
3983
+ ...s,
3984
+ ...n
3985
+ };
3986
+ return { linkClassNames: a, styleCombined: d };
3987
+ };
3988
+ const ms = "_overflow_yy7jp_2", vs = "_expanded_yy7jp_2", _s = "_content_yy7jp_55", Is = "_horizontal_yy7jp_96", ie = {
3989
+ overflow: ms,
3990
+ expanded: vs,
3991
+ "shadow-top": "_shadow-top_yy7jp_2",
3992
+ "shadow-right": "_shadow-right_yy7jp_6",
3993
+ "shadow-bottom": "_shadow-bottom_yy7jp_10",
3994
+ "shadow-left": "_shadow-left_yy7jp_14",
3995
+ "overflow-text": "_overflow-text_yy7jp_21",
3996
+ "expand-button": "_expand-button_yy7jp_34",
3997
+ content: _s,
3998
+ horizontal: Is
3999
+ }, kr = ce(
4000
+ (e, n) => {
4001
+ const { row: r = 1, ...i } = e, { layoutStyles: o, componentProps: t } = Se(i), [s, a] = J(!1), { className: d, style: u, children: l, ...h } = t, b = {
4002
+ ...u,
4003
+ ...o,
4004
+ "--overflow-text-row": s ? "initial" : r
4005
+ };
4006
+ if ("expandable" in e && e.expandable === !0) {
4007
+ const {
4008
+ expandable: x,
4009
+ expandText: S,
4010
+ collapseText: g,
4011
+ onExpand: D,
4012
+ onCollapse: c,
4013
+ ...f
4014
+ } = h, p = S ?? "Show more...", _ = g ?? "Show less...", m = (E) => {
4015
+ if (a((P) => !P), s) {
4016
+ c == null || c(E);
4017
+ return;
4018
+ }
4019
+ D == null || D(E);
4020
+ }, N = ae(
4021
+ [ie["overflow-text"]],
4022
+ [ie.expandable],
4023
+ {
4024
+ [ie.expanded]: s
4025
+ }
4026
+ );
4027
+ return /* @__PURE__ */ v.jsxs(
4028
+ "div",
4029
+ {
4030
+ ref: n,
4031
+ className: N,
4032
+ style: b,
4033
+ ...f,
4034
+ children: [
4035
+ /* @__PURE__ */ v.jsx("div", { className: ie.content, children: l }),
4036
+ /* @__PURE__ */ v.jsx(
4037
+ "button",
4038
+ {
4039
+ className: ie["expand-button"],
4040
+ onClick: m,
4041
+ "aria-hidden": !0,
4042
+ children: s ? _ : p
4043
+ }
4044
+ )
4045
+ ]
4046
+ }
4047
+ );
4048
+ }
4049
+ const y = ae([ie["overflow-text"]]);
4050
+ return /* @__PURE__ */ v.jsx(
4051
+ "div",
4052
+ {
4053
+ ref: n,
4054
+ className: y,
4055
+ style: b,
4056
+ ...h,
4057
+ children: /* @__PURE__ */ v.jsx("div", { className: ie.content, children: l })
4058
+ }
4059
+ );
4060
+ }
4061
+ );
4062
+ kr.displayName = "OverflowText";
4063
+ const Pr = ce(
4064
+ (e, n) => {
4065
+ const { layoutStyles: r, componentProps: i } = Se(e), {
4066
+ children: o,
4067
+ className: t,
4068
+ direction: s = "column",
4069
+ style: a,
4070
+ height: d,
4071
+ width: u,
4072
+ truncate: l,
4073
+ gap: h,
4074
+ ...b
4075
+ } = i, y = Q(null), [x, S] = J(!1), [g, D] = J({
4076
+ left: !1,
4077
+ right: !1,
4078
+ top: !1,
4079
+ bottom: !1
4080
+ });
4081
+ de(() => {
4082
+ if (!y.current)
4083
+ return;
4084
+ if (s === "row") {
4085
+ const N = y.current.offsetWidth < y.current.scrollWidth;
4086
+ D((E) => ({
4087
+ ...E,
4088
+ right: N
4089
+ }));
4090
+ return;
4091
+ }
4092
+ const m = y.current.offsetHeight < y.current.scrollHeight;
4093
+ D((N) => ({
4094
+ ...N,
4095
+ bottom: m
4096
+ }));
4097
+ }, [s]);
4098
+ const c = () => {
4099
+ if (!y.current)
4100
+ return;
4101
+ const m = y.current;
4102
+ if (s === "row") {
4103
+ const P = m.scrollLeft > 0, M = m.scrollLeft < m.scrollWidth - m.offsetWidth;
4104
+ D({
4105
+ left: P,
4106
+ right: M,
4107
+ top: !1,
4108
+ bottom: !1
4109
+ });
4110
+ return;
4111
+ }
4112
+ const N = m.scrollTop > 0, E = m.scrollTop < m.scrollHeight - m.offsetHeight;
4113
+ D({
4114
+ top: N,
4115
+ bottom: E,
4116
+ left: !1,
4117
+ right: !1
4118
+ });
4119
+ }, f = ae([ie.overflow], {
4120
+ [ie.vertical]: s === "column",
4121
+ [ie.horizontal]: s === "row",
4122
+ [ie.expanded]: x
4123
+ });
4124
+ if (l) {
4125
+ const m = {
4126
+ ...a,
4127
+ ...r
4128
+ }, N = {
4129
+ minHeight: d ?? void 0
4130
+ }, E = typeof l == "object" ? l.expandText : "Show more...", P = typeof l == "object" ? l.collapseText : "Show less...", M = (O) => {
4131
+ var k, V;
4132
+ if (S((R) => !R), setTimeout(() => {
4133
+ c();
4134
+ }, 100), typeof l == "object") {
4135
+ if (x) {
4136
+ (k = l.onCollapse) == null || k.call(l, O);
4137
+ return;
4138
+ }
4139
+ (V = l.onExpand) == null || V.call(l, O);
4140
+ }
4141
+ };
4142
+ return /* @__PURE__ */ v.jsxs(
4143
+ "div",
4144
+ {
4145
+ ref: n,
4146
+ style: m,
4147
+ className: f,
4148
+ ...b,
4149
+ children: [
4150
+ g.top ? /* @__PURE__ */ v.jsx("div", { className: ie["shadow-top"] }) : null,
4151
+ g.left ? /* @__PURE__ */ v.jsx("div", { className: ie["shadow-left"] }) : null,
4152
+ /* @__PURE__ */ v.jsx(
4153
+ vt,
4154
+ {
4155
+ className: ie.content,
4156
+ onScroll: c,
4157
+ style: N,
4158
+ ref: y,
4159
+ direction: s,
4160
+ gap: h,
4161
+ tabIndex: 0,
4162
+ children: o
4163
+ }
4164
+ ),
4165
+ g.bottom ? /* @__PURE__ */ v.jsx("div", { className: ie["shadow-bottom"] }) : null,
4166
+ g.right ? /* @__PURE__ */ v.jsx("div", { className: ie["shadow-right"] }) : null,
4167
+ /* @__PURE__ */ v.jsx(
4168
+ "button",
4169
+ {
4170
+ className: ie["expand-button"],
4171
+ onClick: M,
4172
+ children: x ? P : E
4173
+ }
4174
+ )
4175
+ ]
4176
+ }
4177
+ );
4178
+ }
4179
+ const p = {
4180
+ ...a,
4181
+ ...r
4182
+ }, _ = {
4183
+ minHeight: d ?? void 0
4184
+ };
4185
+ return /* @__PURE__ */ v.jsxs(
4186
+ "div",
4187
+ {
4188
+ ref: n,
4189
+ style: p,
4190
+ className: f,
4191
+ ...b,
4192
+ children: [
4193
+ g.left ? /* @__PURE__ */ v.jsx("div", { className: ie["shadow-left"] }) : null,
4194
+ g.top ? /* @__PURE__ */ v.jsx("div", { className: ie["shadow-top"] }) : null,
4195
+ /* @__PURE__ */ v.jsx(
4196
+ vt,
4197
+ {
4198
+ className: ie.content,
4199
+ onScroll: c,
4200
+ ref: y,
4201
+ style: _,
4202
+ direction: s,
4203
+ gap: h,
4204
+ tabIndex: 0,
4205
+ children: o
4206
+ }
4207
+ ),
4208
+ g.bottom ? /* @__PURE__ */ v.jsx("div", { className: ie["shadow-bottom"] }) : null,
4209
+ g.right ? /* @__PURE__ */ v.jsx("div", { className: ie["shadow-right"] }) : null
4210
+ ]
4211
+ }
4212
+ );
4213
+ }
4214
+ );
4215
+ Pr.displayName = "Overflow";
4216
+ const Ll = Object.assign(Pr, {
4217
+ Text: kr
4218
+ });
4219
+ var ys = wt, xs = function(n) {
4220
+ var r = _e.useRef(n);
4221
+ return ys(function() {
4222
+ r.current = n;
4223
+ }), r;
4224
+ }, On = function(n, r) {
4225
+ if (typeof n == "function") {
4226
+ n(r);
4227
+ return;
4228
+ }
4229
+ n.current = r;
4230
+ }, bs = function(n, r) {
4231
+ var i = Q();
4232
+ return ee(function(o) {
4233
+ n.current = o, i.current && On(i.current, null), i.current = r, r && On(r, o);
4234
+ }, [r]);
4235
+ }, Dn = {
4236
+ "min-height": "0",
4237
+ "max-height": "none",
4238
+ height: "0",
4239
+ visibility: "hidden",
4240
+ overflow: "hidden",
4241
+ position: "absolute",
4242
+ "z-index": "-1000",
4243
+ top: "0",
4244
+ right: "0"
4245
+ }, ws = function(n) {
4246
+ Object.keys(Dn).forEach(function(r) {
4247
+ n.style.setProperty(r, Dn[r], "important");
4248
+ });
4249
+ }, Nn = ws, pe = null, Rn = function(n, r) {
4250
+ var i = n.scrollHeight;
4251
+ return r.sizingStyle.boxSizing === "border-box" ? i + r.borderSize : i - r.paddingSize;
4252
+ };
4253
+ function Es(e, n, r, i) {
4254
+ r === void 0 && (r = 1), i === void 0 && (i = 1 / 0), pe || (pe = document.createElement("textarea"), pe.setAttribute("tabindex", "-1"), pe.setAttribute("aria-hidden", "true"), Nn(pe)), pe.parentNode === null && document.body.appendChild(pe);
4255
+ var o = e.paddingSize, t = e.borderSize, s = e.sizingStyle, a = s.boxSizing;
4256
+ Object.keys(s).forEach(function(b) {
4257
+ var y = b;
4258
+ pe.style[y] = s[y];
4259
+ }), Nn(pe), pe.value = n;
4260
+ var d = Rn(pe, e);
4261
+ pe.value = n, d = Rn(pe, e), pe.value = "x";
4262
+ var u = pe.scrollHeight - o, l = u * r;
4263
+ a === "border-box" && (l = l + o + t), d = Math.max(l, d);
4264
+ var h = u * i;
4265
+ return a === "border-box" && (h = h + o + t), d = Math.min(h, d), [d, u];
4266
+ }
4267
+ var kn = function() {
4268
+ }, Cs = function(n, r) {
4269
+ return n.reduce(function(i, o) {
4270
+ return i[o] = r[o], i;
4271
+ }, {});
4272
+ }, Ss = [
4273
+ "borderBottomWidth",
4274
+ "borderLeftWidth",
4275
+ "borderRightWidth",
4276
+ "borderTopWidth",
4277
+ "boxSizing",
4278
+ "fontFamily",
4279
+ "fontSize",
4280
+ "fontStyle",
4281
+ "fontWeight",
4282
+ "letterSpacing",
4283
+ "lineHeight",
4284
+ "paddingBottom",
4285
+ "paddingLeft",
4286
+ "paddingRight",
4287
+ "paddingTop",
4288
+ // non-standard
4289
+ "tabSize",
4290
+ "textIndent",
4291
+ // non-standard
4292
+ "textRendering",
4293
+ "textTransform",
4294
+ "width",
4295
+ "wordBreak"
4296
+ ], Os = !!document.documentElement.currentStyle, Ds = function(n) {
4297
+ var r = window.getComputedStyle(n);
4298
+ if (r === null)
4299
+ return null;
4300
+ var i = Cs(Ss, r), o = i.boxSizing;
4301
+ if (o === "")
4302
+ return null;
4303
+ Os && o === "border-box" && (i.width = parseFloat(i.width) + parseFloat(i.borderRightWidth) + parseFloat(i.borderLeftWidth) + parseFloat(i.paddingRight) + parseFloat(i.paddingLeft) + "px");
4304
+ var t = parseFloat(i.paddingBottom) + parseFloat(i.paddingTop), s = parseFloat(i.borderBottomWidth) + parseFloat(i.borderTopWidth);
4305
+ return {
4306
+ sizingStyle: i,
4307
+ paddingSize: t,
4308
+ borderSize: s
4309
+ };
4310
+ }, Ns = Ds;
4311
+ function Mr(e, n, r) {
4312
+ var i = xs(r);
4313
+ _e.useLayoutEffect(function() {
4314
+ var o = function(s) {
4315
+ return i.current(s);
4316
+ };
4317
+ if (e)
4318
+ return e.addEventListener(n, o), function() {
4319
+ return e.removeEventListener(n, o);
4320
+ };
4321
+ }, []);
4322
+ }
4323
+ var Rs = function(n) {
4324
+ Mr(window, "resize", n);
4325
+ }, ks = function(n) {
4326
+ Mr(document.fonts, "loadingdone", n);
4327
+ }, Ps = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], Ms = function(n, r) {
4328
+ var i = n.cacheMeasurements, o = n.maxRows, t = n.minRows, s = n.onChange, a = s === void 0 ? kn : s, d = n.onHeightChange, u = d === void 0 ? kn : d, l = ve(n, Ps), h = l.value !== void 0, b = _e.useRef(null), y = bs(b, r), x = _e.useRef(0), S = _e.useRef(), g = function() {
4329
+ var f = b.current, p = i && S.current ? S.current : Ns(f);
4330
+ if (p) {
4331
+ S.current = p;
4332
+ var _ = Es(p, f.value || f.placeholder || "x", t, o), m = _[0], N = _[1];
4333
+ x.current !== m && (x.current = m, f.style.setProperty("height", m + "px", "important"), u(m, {
4334
+ rowHeight: N
4335
+ }));
4336
+ }
4337
+ }, D = function(f) {
4338
+ h || g(), a(f);
4339
+ };
4340
+ return _e.useLayoutEffect(g), Rs(g), ks(g), /* @__PURE__ */ _e.createElement("textarea", $({}, l, {
4341
+ onChange: D,
4342
+ ref: y
4343
+ }));
4344
+ }, Ts = /* @__PURE__ */ _e.forwardRef(Ms);
4345
+ const Vs = "_textarea_5cep3_4", As = "_counter_5cep3_50", Hs = "_error_5cep3_62", js = "_disabled_5cep3_69", Ks = "_readonly_5cep3_79", Ae = {
4346
+ textarea: Vs,
4347
+ "has-cols": "_has-cols_5cep3_23",
4348
+ counter: As,
4349
+ error: Hs,
4350
+ disabled: js,
4351
+ "disable-resize": "_disable-resize_5cep3_76",
4352
+ readonly: Ks
4353
+ }, $s = ce(
4354
+ (e, n) => {
4355
+ const { layoutStyles: r, componentProps: i } = Se(e), {
4356
+ className: o,
4357
+ disableResize: t,
4358
+ error: s,
4359
+ // errorAriaLive: errorAriaLiveProp = "assertive",
4360
+ hint: a,
4361
+ description: d,
4362
+ label: u,
4363
+ moreInfo: l,
4364
+ onChange: h,
4365
+ required: b,
4366
+ showCounter: y,
4367
+ onFocus: x,
4368
+ onBlur: S,
4369
+ id: g,
4370
+ maxLength: D,
4371
+ autoHeight: c,
4372
+ labelProps: f,
4373
+ placeholder: p,
4374
+ style: _,
4375
+ ...m
4376
+ } = i, N = Q(null), [E, P] = J(0), [M, O] = J(!1), [k, V] = J(!1), [R, F] = J("off");
4377
+ de(() => {
4378
+ var H;
4379
+ P(((H = N.current) == null ? void 0 : H.defaultValue.length) ?? 0);
4380
+ }, []);
4381
+ const L = (H) => {
4382
+ h == null || h(H, { value: H.target.value }), E !== H.target.value.length && O(!0), P(H.target.value.length);
4383
+ }, K = (H) => {
4384
+ x == null || x(H), V(!0);
4385
+ }, z = (H) => {
4386
+ S == null || S(H), V(!1), F("off"), O(!1);
4387
+ }, Z = Ie(), j = g ?? Z, W = Ie(), Y = Ie(), re = typeof s != "boolean" ? s : void 0, T = ae([Ae.textarea], o, {
4388
+ [Ae.error]: s,
4389
+ [Ae["disable-resize"]]: t,
4390
+ [Ae.disabled]: m.disabled,
4391
+ [Ae.readonly]: m.readOnly,
4392
+ [Ae["has-cols"]]: m.cols != null
4393
+ }), A = { ..._, ...r }, w = c ? Ts : "textarea";
4394
+ return /* @__PURE__ */ v.jsxs(
4395
+ "div",
4396
+ {
4397
+ className: T,
4398
+ "data-anv": "Textarea",
4399
+ style: A,
4400
+ children: [
4401
+ u ? /* @__PURE__ */ v.jsx(
4402
+ bt,
4403
+ {
4404
+ htmlFor: j,
4405
+ moreInfo: l,
4406
+ openMoreInfo: k,
4407
+ required: b,
4408
+ ...f,
4409
+ children: u
4410
+ }
4411
+ ) : null,
4412
+ /* @__PURE__ */ v.jsx(
4413
+ w,
4414
+ {
4415
+ rows: 3,
4416
+ onChange: L,
4417
+ onFocus: K,
4418
+ onBlur: z,
4419
+ ref: Be([n, N]),
4420
+ required: b,
4421
+ maxLength: D,
4422
+ id: j,
4423
+ placeholder: p,
4424
+ ...m,
4425
+ "aria-describedby": [Y, W].join(" "),
4426
+ "aria-invalid": s ? !!s : void 0
4427
+ }
4428
+ ),
4429
+ a || y || re || d ? /* @__PURE__ */ v.jsx(
4430
+ Et,
4431
+ {
4432
+ id: W,
4433
+ hint: a,
4434
+ maxLength: D,
4435
+ inputLength: E,
4436
+ isTyping: M,
4437
+ showCounter: y,
4438
+ errorMessage: re,
4439
+ errorAriaLive: R,
4440
+ description: d
4441
+ }
4442
+ ) : null,
4443
+ /* @__PURE__ */ v.jsx(Mn, { "aria-hidden": !0, id: Y, children: p })
4444
+ ]
4445
+ }
4446
+ );
4447
+ }
4448
+ );
4449
+ $s.displayName = "Textarea";
4450
+ const Fs = "_textfield_aoz91_4", Ls = "_input_aoz91_17", Bs = "_prefix_aoz91_43", zs = "_suffix_aoz91_44", Us = "_small_aoz91_101", Ws = "_large_aoz91_104", qs = "_error_aoz91_113", Ce = {
4451
+ textfield: Fs,
4452
+ input: Ls,
4453
+ "input-wrapper": "_input-wrapper_aoz91_30",
4454
+ prefix: Bs,
4455
+ suffix: zs,
4456
+ "loading-spinner": "_loading-spinner_aoz91_63",
4457
+ small: Us,
4458
+ large: Ws,
4459
+ error: qs
4460
+ }, Ys = ce(
4461
+ function(e, n) {
4462
+ const { layoutStyles: r, componentProps: i } = Se(e), {
4463
+ className: o,
4464
+ error: t,
4465
+ errorAriaLive: s = "assertive",
4466
+ label: a,
4467
+ moreInfo: d,
4468
+ prefix: u,
4469
+ suffix: l,
4470
+ size: h,
4471
+ type: b = "text",
4472
+ required: y,
4473
+ onFocus: x,
4474
+ onBlur: S,
4475
+ id: g,
4476
+ description: D,
4477
+ hint: c,
4478
+ loading: f,
4479
+ disabled: p,
4480
+ labelProps: _,
4481
+ style: m,
4482
+ placeholder: N,
4483
+ ...E
4484
+ } = i, [P, M] = J(!1), [O, k] = J("off"), V = (T) => {
4485
+ x == null || x(T), M(!0), k(s);
4486
+ }, R = (T) => {
4487
+ S == null || S(T), M(!1), k("off");
4488
+ }, F = Ie(), L = g ?? F, K = Ie(), z = Ie(), Z = Ie(), j = Ie(), W = Q(null), Y = typeof t != "boolean" ? t : void 0, re = { ...m, ...r };
4489
+ return /* @__PURE__ */ v.jsxs("div", { className: ae(Ce.textfield, o), style: re, children: [
4490
+ a ? /* @__PURE__ */ v.jsx(
4491
+ bt,
4492
+ {
4493
+ moreInfo: d,
4494
+ openMoreInfo: P,
4495
+ required: y,
4496
+ htmlFor: L,
4497
+ ..._,
4498
+ children: a
4499
+ }
4500
+ ) : null,
4501
+ /* @__PURE__ */ v.jsxs(
4502
+ "div",
4503
+ {
4504
+ className: ae(Ce["input-wrapper"], {
4505
+ [Ce.small]: h === "small",
4506
+ [Ce.large]: h === "large"
4507
+ }),
4508
+ role: "presentation",
4509
+ onClick: () => {
4510
+ var T;
4511
+ return (T = W.current) == null ? void 0 : T.focus();
4512
+ },
4513
+ children: [
4514
+ u ? /* @__PURE__ */ v.jsx(
4515
+ "div",
4516
+ {
4517
+ "aria-hidden": !0,
4518
+ className: Ce.prefix,
4519
+ id: `prefix${K}`,
4520
+ children: u
4521
+ }
4522
+ ) : null,
4523
+ /* @__PURE__ */ v.jsx(
4524
+ "input",
4525
+ {
4526
+ id: L,
4527
+ className: ae(Ce.input, {
4528
+ [Ce.error]: t
4529
+ }),
4530
+ onFocus: V,
4531
+ onBlur: R,
4532
+ ref: Be([n, W]),
4533
+ required: y,
4534
+ placeholder: N,
4535
+ type: b,
4536
+ disabled: p,
4537
+ ...E,
4538
+ "aria-describedby": [j, Z].join(" "),
4539
+ "aria-invalid": t ? !!t : void 0
4540
+ }
4541
+ ),
4542
+ f ? /* @__PURE__ */ v.jsx(Vr, { className: Ce["loading-spinner"] }) : null,
4543
+ l ? /* @__PURE__ */ v.jsx(
4544
+ "div",
4545
+ {
4546
+ className: Ce.suffix,
4547
+ "aria-hidden": !0,
4548
+ id: `suffix${z}`,
4549
+ children: l
4550
+ }
4551
+ ) : null
4552
+ ]
4553
+ }
4554
+ ),
4555
+ c || Y || D ? /* @__PURE__ */ v.jsx(
4556
+ Et,
4557
+ {
4558
+ id: Z,
4559
+ hint: c,
4560
+ errorMessage: Y,
4561
+ errorAriaLive: O,
4562
+ description: D
4563
+ }
4564
+ ) : null,
4565
+ /* @__PURE__ */ v.jsx(Mn, { "aria-hidden": !0, id: j, children: N })
4566
+ ] });
4567
+ }
4568
+ ), Bl = Object.assign(Ys, {});
4569
+ export {
4570
+ Kl as $,
4571
+ Or as E,
4572
+ Sr as H,
4573
+ kr as I,
4574
+ $l as O,
4575
+ Fl as R,
4576
+ Dr as S,
4577
+ Oi as a,
4578
+ Bl as b,
4579
+ $s as c,
4580
+ Ll as e,
4581
+ Ci as h,
4582
+ Si as j,
4583
+ gs as q,
4584
+ bi as v,
4585
+ Cr as w,
4586
+ jl as x,
4587
+ sn as z
4588
+ };
4589
+ //# sourceMappingURL=index-91597e0a.js.map