@servicetitan/anvil2 0.8.3 → 0.9.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 (499) hide show
  1. package/Alert-5cd1ce63.cjs +2 -0
  2. package/Alert-5cd1ce63.cjs.map +1 -0
  3. package/Alert-8b719ddf.js +87 -0
  4. package/Alert-8b719ddf.js.map +1 -0
  5. package/Alert.cjs +1 -1
  6. package/Alert.css +1 -1
  7. package/Alert.d.ts +10 -1
  8. package/Alert.js +1 -1
  9. package/Announcement-1a53f381.cjs +2 -0
  10. package/Announcement-1a53f381.cjs.map +1 -0
  11. package/Announcement-69af0ed1.js +86 -0
  12. package/Announcement-69af0ed1.js.map +1 -0
  13. package/Announcement.cjs +1 -1
  14. package/Announcement.css +1 -1
  15. package/Announcement.d.ts +10 -1
  16. package/Announcement.js +1 -1
  17. package/AnvilProvider.cjs +1 -1
  18. package/AnvilProvider.js +1 -1
  19. package/Avatar-077e77c4.js +121 -0
  20. package/Avatar-077e77c4.js.map +1 -0
  21. package/Avatar-d947aa19.cjs +2 -0
  22. package/Avatar-d947aa19.cjs.map +1 -0
  23. package/Avatar.cjs +1 -1
  24. package/Avatar.css +1 -1
  25. package/Avatar.d.ts +2 -2
  26. package/Avatar.js +6 -6
  27. package/Badge-8694a644.cjs +2 -0
  28. package/Badge-8694a644.cjs.map +1 -0
  29. package/Badge-d9278856.js +32 -0
  30. package/Badge-d9278856.js.map +1 -0
  31. package/Badge.cjs +1 -1
  32. package/Badge.css +1 -1
  33. package/Badge.js +1 -1
  34. package/Button-c4133e06.js +274 -0
  35. package/Button-c4133e06.js.map +1 -0
  36. package/Button-e9847a15.cjs +2 -0
  37. package/Button-e9847a15.cjs.map +1 -0
  38. package/Button.cjs +1 -1
  39. package/Button.css +1 -1
  40. package/Button.js +1 -1
  41. package/ButtonCompound.cjs +1 -1
  42. package/ButtonCompound.d.ts +2 -1
  43. package/ButtonCompound.js +1 -1
  44. package/ButtonLink.cjs +1 -1
  45. package/ButtonLink.d.ts +3 -2
  46. package/ButtonLink.js +1 -1
  47. package/ButtonToggle.cjs +1 -1
  48. package/ButtonToggle.js +1 -1
  49. package/{Calendar-4d7aca93.js → Calendar-19935376.js} +135 -135
  50. package/{Calendar-4d7aca93.js.map → Calendar-19935376.js.map} +1 -1
  51. package/Calendar-9a357309.cjs +2 -0
  52. package/{Calendar-e1d1d08b.cjs.map → Calendar-9a357309.cjs.map} +1 -1
  53. package/Calendar.cjs +1 -1
  54. package/Calendar.d.ts +6 -6
  55. package/Calendar.js +1 -1
  56. package/Card-32980e28.cjs +2 -0
  57. package/Card-32980e28.cjs.map +1 -0
  58. package/Card-f006730b.js +48 -0
  59. package/Card-f006730b.js.map +1 -0
  60. package/Card.cjs +1 -1
  61. package/Card.css +1 -1
  62. package/Card.js +1 -1
  63. package/Checkbox-0c62f83d.cjs +2 -0
  64. package/Checkbox-0c62f83d.cjs.map +1 -0
  65. package/Checkbox-f9ced9f9.js +146 -0
  66. package/Checkbox-f9ced9f9.js.map +1 -0
  67. package/Checkbox.cjs +1 -1
  68. package/Checkbox.css +1 -1
  69. package/Checkbox.js +1 -1
  70. package/Chip-10abfc56.js +59 -0
  71. package/Chip-10abfc56.js.map +1 -0
  72. package/Chip-ebd82bbe.cjs +2 -0
  73. package/Chip-ebd82bbe.cjs.map +1 -0
  74. package/Chip.cjs +1 -1
  75. package/Chip.css +1 -1
  76. package/Chip.d.ts +4 -2
  77. package/Chip.js +1 -1
  78. package/Combobox.cjs +1 -1
  79. package/Combobox.cjs.map +1 -1
  80. package/Combobox.d.ts +24 -5
  81. package/Combobox.js +24 -12
  82. package/Combobox.js.map +1 -1
  83. package/Details-6430d0dc.cjs +2 -0
  84. package/Details-6430d0dc.cjs.map +1 -0
  85. package/Details-6adfaafb.js +122 -0
  86. package/Details-6adfaafb.js.map +1 -0
  87. package/Details.cjs +1 -1
  88. package/Details.css +1 -1
  89. package/Details.d.ts +4 -12
  90. package/Details.js +1 -1
  91. package/Dialog-14e5961e.js +192 -0
  92. package/Dialog-14e5961e.js.map +1 -0
  93. package/Dialog-5d8fd59d.cjs +2 -0
  94. package/Dialog-5d8fd59d.cjs.map +1 -0
  95. package/Dialog.cjs +1 -1
  96. package/Dialog.d.ts +5 -4
  97. package/Dialog.js +1 -1
  98. package/{Divider-38187d6d.js → Divider-a01f8c9f.js} +32 -32
  99. package/Divider-a01f8c9f.js.map +1 -0
  100. package/Divider-fb2fb1dc.cjs +2 -0
  101. package/Divider-fb2fb1dc.cjs.map +1 -0
  102. package/Divider.cjs +1 -1
  103. package/Divider.css +1 -1
  104. package/Divider.d.ts +1 -1
  105. package/Divider.js +1 -1
  106. package/Drawer-28124c33.cjs +2 -0
  107. package/Drawer-28124c33.cjs.map +1 -0
  108. package/Drawer-f17c709d.js +190 -0
  109. package/Drawer-f17c709d.js.map +1 -0
  110. package/Drawer.cjs +1 -1
  111. package/Drawer.d.ts +4 -3
  112. package/Drawer.js +4 -4
  113. package/Flex-103266ff.js +35 -0
  114. package/Flex-103266ff.js.map +1 -0
  115. package/Flex-72db37e1.cjs +2 -0
  116. package/Flex-72db37e1.cjs.map +1 -0
  117. package/Flex.cjs +1 -1
  118. package/Flex.css +1 -1
  119. package/Flex.d.ts +6 -72
  120. package/Flex.js +1 -1
  121. package/Grid-62766148.cjs +2 -0
  122. package/Grid-62766148.cjs.map +1 -0
  123. package/Grid-bb280e0f.js +44 -0
  124. package/Grid-bb280e0f.js.map +1 -0
  125. package/Grid.cjs +1 -1
  126. package/Grid.css +1 -1
  127. package/Grid.d.ts +0 -72
  128. package/Grid.js +1 -1
  129. package/{Label-9db08425.js → Label-8200cf8f.js} +5 -5
  130. package/{Label-9db08425.js.map → Label-8200cf8f.js.map} +1 -1
  131. package/{Label-07b0f38c.cjs → Label-9349bc7d.cjs} +2 -2
  132. package/{Label-07b0f38c.cjs.map → Label-9349bc7d.cjs.map} +1 -1
  133. package/Layout.cjs +1 -1
  134. package/Layout.js +23 -23
  135. package/Layout.js.map +1 -1
  136. package/Link-16c5761c.cjs +2 -0
  137. package/Link-16c5761c.cjs.map +1 -0
  138. package/Link-73d4183f.js +46 -0
  139. package/Link-73d4183f.js.map +1 -0
  140. package/Link.cjs +1 -1
  141. package/Link.css +1 -1
  142. package/Link.js +1 -1
  143. package/ListView-2057fc20.cjs +2 -0
  144. package/ListView-2057fc20.cjs.map +1 -0
  145. package/{ListView-29cf9116.js → ListView-97a459d8.js} +128 -133
  146. package/ListView-97a459d8.js.map +1 -0
  147. package/ListView.cjs +1 -1
  148. package/ListView.css +1 -1
  149. package/ListView.js +1 -1
  150. package/ListView.module-608fe45b-1962692d.cjs +2 -0
  151. package/ListView.module-608fe45b-1962692d.cjs.map +1 -0
  152. package/ListView.module-608fe45b-b1e6395c.js +11 -0
  153. package/ListView.module-608fe45b-b1e6395c.js.map +1 -0
  154. package/Listbox-9c59ffc4.cjs +2 -0
  155. package/Listbox-9c59ffc4.cjs.map +1 -0
  156. package/Listbox-b0e5fdc3.js +308 -0
  157. package/Listbox-b0e5fdc3.js.map +1 -0
  158. package/Listbox.cjs +1 -1
  159. package/Listbox.js +12 -12
  160. package/LocalizationProvider.cjs +1 -1
  161. package/LocalizationProvider.cjs.map +1 -1
  162. package/LocalizationProvider.js +16 -15
  163. package/LocalizationProvider.js.map +1 -1
  164. package/{Menu-ab1b5fb6.js → Menu-44563169.js} +65 -64
  165. package/Menu-44563169.js.map +1 -0
  166. package/Menu-54dcf183.cjs +2 -0
  167. package/Menu-54dcf183.cjs.map +1 -0
  168. package/Menu.cjs +1 -1
  169. package/Menu.js +1 -1
  170. package/Overflow.cjs +1 -1
  171. package/Overflow.cjs.map +1 -1
  172. package/Overflow.js +108 -108
  173. package/Overflow.js.map +1 -1
  174. package/Page.cjs +1 -1
  175. package/Page.js +13 -13
  176. package/Page.js.map +1 -1
  177. package/{Popover-c03e96a7.js → Popover-43b95d09.js} +29 -28
  178. package/{Popover-c03e96a7.js.map → Popover-43b95d09.js.map} +1 -1
  179. package/Popover-708f4752.cjs +2 -0
  180. package/{Popover-01a92903.cjs.map → Popover-708f4752.cjs.map} +1 -1
  181. package/Popover.cjs +1 -1
  182. package/Popover.d.ts +8 -8
  183. package/Popover.js +1 -1
  184. package/{ProgressBar-ef621dd5.js → ProgressBar-3cd0c29c.js} +23 -23
  185. package/{ProgressBar-ef621dd5.js.map → ProgressBar-3cd0c29c.js.map} +1 -1
  186. package/ProgressBar-dc37000f.cjs +2 -0
  187. package/{ProgressBar-4f893820.cjs.map → ProgressBar-dc37000f.cjs.map} +1 -1
  188. package/ProgressBar.cjs +1 -1
  189. package/ProgressBar.js +1 -1
  190. package/README.md +9 -10
  191. package/Radio-20074a6b.cjs +2 -0
  192. package/Radio-20074a6b.cjs.map +1 -0
  193. package/{Radio-dab030c5.js → Radio-23738e1c.js} +27 -27
  194. package/Radio-23738e1c.js.map +1 -0
  195. package/Radio.cjs +1 -1
  196. package/Radio.css +1 -1
  197. package/Radio.js +1 -1
  198. package/SideNav-4b221089.cjs +2 -0
  199. package/SideNav-4b221089.cjs.map +1 -0
  200. package/SideNav-c841edde.js +235 -0
  201. package/SideNav-c841edde.js.map +1 -0
  202. package/SideNav.cjs +3 -3
  203. package/SideNav.css +1 -1
  204. package/SideNav.d.ts +4 -2
  205. package/SideNav.js +29 -29
  206. package/Spinner-86f0c106-3fb26339.cjs +2 -0
  207. package/{Spinner-041df00b-fd40dc86.cjs.map → Spinner-86f0c106-3fb26339.cjs.map} +1 -1
  208. package/Spinner-86f0c106-66c213d1.js +13 -0
  209. package/Spinner-86f0c106-66c213d1.js.map +1 -0
  210. package/SrOnly-69d90781.cjs +2 -0
  211. package/{SrOnly-ed780dfc.cjs.map → SrOnly-69d90781.cjs.map} +1 -1
  212. package/{SrOnly-219e862e.js → SrOnly-f331a0ad.js} +2 -2
  213. package/{SrOnly-219e862e.js.map → SrOnly-f331a0ad.js.map} +1 -1
  214. package/SrOnly.cjs +1 -1
  215. package/SrOnly.js +1 -1
  216. package/Stepper-b842a6b6.cjs +2 -0
  217. package/Stepper-b842a6b6.cjs.map +1 -0
  218. package/Stepper-e11afee4.js +373 -0
  219. package/Stepper-e11afee4.js.map +1 -0
  220. package/Stepper.cjs +1 -1
  221. package/Stepper.cjs.map +1 -1
  222. package/Stepper.css +1 -1
  223. package/Stepper.d.ts +39 -46
  224. package/Stepper.js +13 -13
  225. package/Stepper.js.map +1 -1
  226. package/{Switch-de621e8b.js → Switch-9322c398.js} +23 -23
  227. package/Switch-9322c398.js.map +1 -0
  228. package/Switch-971a1ffd.cjs +2 -0
  229. package/Switch-971a1ffd.cjs.map +1 -0
  230. package/Switch.cjs +1 -1
  231. package/Switch.css +1 -1
  232. package/Switch.js +1 -1
  233. package/Tab-94869ee7.cjs +10 -0
  234. package/Tab-94869ee7.cjs.map +1 -0
  235. package/{Tab-2efb0b29.js → Tab-e9280c87.js} +122 -122
  236. package/Tab-e9280c87.js.map +1 -0
  237. package/Tab.cjs +1 -1
  238. package/Tab.css +1 -1
  239. package/Tab.js +12 -12
  240. package/Text-d853921e.cjs +2 -0
  241. package/Text-d853921e.cjs.map +1 -0
  242. package/Text-e245e792.js +103 -0
  243. package/Text-e245e792.js.map +1 -0
  244. package/Text.cjs +1 -1
  245. package/Text.css +1 -1
  246. package/Text.js +1 -1
  247. package/TextField-0c2f3002.js +116 -0
  248. package/TextField-0c2f3002.js.map +1 -0
  249. package/TextField-b9883000.cjs +2 -0
  250. package/TextField-b9883000.cjs.map +1 -0
  251. package/TextField.cjs +1 -1
  252. package/TextField.css +1 -1
  253. package/TextField.js +1 -1
  254. package/Textarea-18b37e30.cjs +2 -0
  255. package/Textarea-18b37e30.cjs.map +1 -0
  256. package/Textarea-a573df75.js +114 -0
  257. package/Textarea-a573df75.js.map +1 -0
  258. package/Textarea.cjs +1 -1
  259. package/Textarea.css +1 -1
  260. package/Textarea.js +2 -2
  261. package/ThemeProvider.cjs +1 -1
  262. package/ThemeProvider.js +1 -1
  263. package/Tooltip-7bfe77c3.cjs +2 -0
  264. package/{Tooltip-ce4148a7.cjs.map → Tooltip-7bfe77c3.cjs.map} +1 -1
  265. package/{Tooltip-6f564b63.js → Tooltip-97a82aea.js} +30 -29
  266. package/Tooltip-97a82aea.js.map +1 -0
  267. package/Tooltip.cjs +1 -1
  268. package/Tooltip.js +1 -1
  269. package/anvil2.cjs +1 -1
  270. package/anvil2.d.ts +156 -290
  271. package/anvil2.js +90 -90
  272. package/check-5f087ea0-2609382e.cjs +2 -0
  273. package/check-5f087ea0-2609382e.cjs.map +1 -0
  274. package/check-5f087ea0-b5474547.js +6 -0
  275. package/check-5f087ea0-b5474547.js.map +1 -0
  276. package/check_circle-48e002d3-0d49b2da.cjs +2 -0
  277. package/check_circle-48e002d3-0d49b2da.cjs.map +1 -0
  278. package/check_circle-48e002d3-5838521c.js +7 -0
  279. package/check_circle-48e002d3-5838521c.js.map +1 -0
  280. package/chevron_right-5b0931b5-96f8a9c6.cjs +2 -0
  281. package/chevron_right-5b0931b5-96f8a9c6.cjs.map +1 -0
  282. package/chevron_right-5b0931b5-ac35ad56.js +6 -0
  283. package/chevron_right-5b0931b5-ac35ad56.js.map +1 -0
  284. package/close-064c8acc-4984cc86.cjs +2 -0
  285. package/close-064c8acc-4984cc86.cjs.map +1 -0
  286. package/close-064c8acc-7e0b4df7.js +6 -0
  287. package/close-064c8acc-7e0b4df7.js.map +1 -0
  288. package/{index-ccf0845b.js → floating-ui.react-20365654.js} +7774 -7984
  289. package/floating-ui.react-20365654.js.map +1 -0
  290. package/floating-ui.react-34d1b069.cjs +174 -0
  291. package/floating-ui.react-34d1b069.cjs.map +1 -0
  292. package/index-1f072fda.cjs +2 -0
  293. package/index-1f072fda.cjs.map +1 -0
  294. package/index-27ae68a3.cjs +2 -0
  295. package/index-27ae68a3.cjs.map +1 -0
  296. package/{index-b6ca5fc4.js → index-39087e81.js} +2 -2
  297. package/{index-b6ca5fc4.js.map → index-39087e81.js.map} +1 -1
  298. package/{index-8a331c33.cjs → index-67e83237.cjs} +2 -2
  299. package/{index-8a331c33.cjs.map → index-67e83237.cjs.map} +1 -1
  300. package/index-87a65c62.js +54 -0
  301. package/index-87a65c62.js.map +1 -0
  302. package/index-87fe0e18.js +37 -0
  303. package/index-87fe0e18.js.map +1 -0
  304. package/index-a0500942.cjs +2 -0
  305. package/index-a0500942.cjs.map +1 -0
  306. package/index-a062ce5a.js +480 -0
  307. package/index-a062ce5a.js.map +1 -0
  308. package/{index-5af41bd1.cjs → index-d3c6e880.cjs} +2 -2
  309. package/{index-5af41bd1.cjs.map → index-d3c6e880.cjs.map} +1 -1
  310. package/index-e2190769-803bc72d.cjs +23 -0
  311. package/index-e2190769-803bc72d.cjs.map +1 -0
  312. package/index-e2190769-db3e4fe9.js +3402 -0
  313. package/index-e2190769-db3e4fe9.js.map +1 -0
  314. package/index-e2190769.css +1 -0
  315. package/index-eb47459e-08bc2254.js +192 -0
  316. package/index-eb47459e-08bc2254.js.map +1 -0
  317. package/index-eb47459e-ded51408.cjs +2 -0
  318. package/index-eb47459e-ded51408.cjs.map +1 -0
  319. package/index-eb47459e.css +1 -0
  320. package/{index-4a524f55.js → index-efd117f9.js} +2 -2
  321. package/{index-4a524f55.js.map → index-efd117f9.js.map} +1 -1
  322. package/index2.css +1 -1
  323. package/info-af4c0112-9f16129f.cjs +2 -0
  324. package/info-af4c0112-9f16129f.cjs.map +1 -0
  325. package/{close-f5f4f7c7-ab2930de.js → info-af4c0112-f73c8f68.js} +2 -2
  326. package/info-af4c0112-f73c8f68.js.map +1 -0
  327. package/package.json +2 -2
  328. package/tinycolor-3b50a250.cjs +2 -0
  329. package/tinycolor-3b50a250.cjs.map +1 -0
  330. package/tinycolor-d415b1fd.js +712 -0
  331. package/tinycolor-d415b1fd.js.map +1 -0
  332. package/token.cjs +1 -1
  333. package/token.js +1 -1
  334. package/useAccessibleColor.cjs +6 -6
  335. package/useAccessibleColor.cjs.map +1 -1
  336. package/useAccessibleColor.js +291 -286
  337. package/useAccessibleColor.js.map +1 -1
  338. package/useBreakpoint-633dc5b4-4eec948e.cjs +2 -0
  339. package/useBreakpoint-633dc5b4-4eec948e.cjs.map +1 -0
  340. package/useBreakpoint-633dc5b4-f67b4090.js +183 -0
  341. package/useBreakpoint-633dc5b4-f67b4090.js.map +1 -0
  342. package/{usePrefersColorScheme-129544ad-f17399b0.js → usePrefersColorScheme-129544ad-3ba4632b.js} +2 -2
  343. package/{usePrefersColorScheme-129544ad-f17399b0.js.map → usePrefersColorScheme-129544ad-3ba4632b.js.map} +1 -1
  344. package/usePrefersColorScheme-129544ad-96356659.cjs +2 -0
  345. package/{usePrefersColorScheme-129544ad-b018d158.cjs.map → usePrefersColorScheme-129544ad-96356659.cjs.map} +1 -1
  346. package/usePrefersColorScheme.cjs +1 -1
  347. package/usePrefersColorScheme.js +38 -38
  348. package/useSwipe.cjs +1 -1
  349. package/useSwipe.js +40 -39
  350. package/useSwipe.js.map +1 -1
  351. package/Alert-34e59155.cjs +0 -2
  352. package/Alert-34e59155.cjs.map +0 -1
  353. package/Alert-824b3ad4.js +0 -88
  354. package/Alert-824b3ad4.js.map +0 -1
  355. package/Announcement-ba080c3e.js +0 -87
  356. package/Announcement-ba080c3e.js.map +0 -1
  357. package/Announcement-f76d3977.cjs +0 -2
  358. package/Announcement-f76d3977.cjs.map +0 -1
  359. package/Avatar-22bb74ca.js +0 -118
  360. package/Avatar-22bb74ca.js.map +0 -1
  361. package/Avatar-4e72aaae.cjs +0 -2
  362. package/Avatar-4e72aaae.cjs.map +0 -1
  363. package/Badge-da23aed3.js +0 -33
  364. package/Badge-da23aed3.js.map +0 -1
  365. package/Badge-ecee5e54.cjs +0 -2
  366. package/Badge-ecee5e54.cjs.map +0 -1
  367. package/Button-66b9c955.js +0 -274
  368. package/Button-66b9c955.js.map +0 -1
  369. package/Button-bf9d62af.cjs +0 -2
  370. package/Button-bf9d62af.cjs.map +0 -1
  371. package/Calendar-e1d1d08b.cjs +0 -2
  372. package/Card-407156d2.cjs +0 -2
  373. package/Card-407156d2.cjs.map +0 -1
  374. package/Card-6ded141e.js +0 -48
  375. package/Card-6ded141e.js.map +0 -1
  376. package/Checkbox-4cfbca71.cjs +0 -2
  377. package/Checkbox-4cfbca71.cjs.map +0 -1
  378. package/Checkbox-8d294c5e.js +0 -146
  379. package/Checkbox-8d294c5e.js.map +0 -1
  380. package/Chip-2c170535.js +0 -56
  381. package/Chip-2c170535.js.map +0 -1
  382. package/Chip-befa36a3.cjs +0 -2
  383. package/Chip-befa36a3.cjs.map +0 -1
  384. package/Combobox-087839e6.cjs +0 -23
  385. package/Combobox-087839e6.cjs.map +0 -1
  386. package/Combobox-8913ce4e.js +0 -2771
  387. package/Combobox-8913ce4e.js.map +0 -1
  388. package/Combobox.css +0 -1
  389. package/Details-54b5e7aa.js +0 -120
  390. package/Details-54b5e7aa.js.map +0 -1
  391. package/Details-c03ffac1.cjs +0 -2
  392. package/Details-c03ffac1.cjs.map +0 -1
  393. package/Dialog-d409d130.js +0 -180
  394. package/Dialog-d409d130.js.map +0 -1
  395. package/Dialog-d53be5d6.cjs +0 -2
  396. package/Dialog-d53be5d6.cjs.map +0 -1
  397. package/Divider-076892dc.cjs +0 -2
  398. package/Divider-076892dc.cjs.map +0 -1
  399. package/Divider-38187d6d.js.map +0 -1
  400. package/Drawer-ddd7914b.js +0 -178
  401. package/Drawer-ddd7914b.js.map +0 -1
  402. package/Drawer-ef353cb7.cjs +0 -2
  403. package/Drawer-ef353cb7.cjs.map +0 -1
  404. package/Flex-516baf92.cjs +0 -2
  405. package/Flex-516baf92.cjs.map +0 -1
  406. package/Flex-f1146ad5.js +0 -70
  407. package/Flex-f1146ad5.js.map +0 -1
  408. package/Grid-234bc5d1.js +0 -78
  409. package/Grid-234bc5d1.js.map +0 -1
  410. package/Grid-b47a9218.cjs +0 -2
  411. package/Grid-b47a9218.cjs.map +0 -1
  412. package/Link-0f117696.cjs +0 -2
  413. package/Link-0f117696.cjs.map +0 -1
  414. package/Link-e07677c7.js +0 -46
  415. package/Link-e07677c7.js.map +0 -1
  416. package/ListView-29cf9116.js.map +0 -1
  417. package/ListView-650be398.cjs +0 -2
  418. package/ListView-650be398.cjs.map +0 -1
  419. package/Listbox-30a94e14.cjs +0 -2
  420. package/Listbox-30a94e14.cjs.map +0 -1
  421. package/Listbox-b3bdffa7.js +0 -319
  422. package/Listbox-b3bdffa7.js.map +0 -1
  423. package/Listbox.css +0 -1
  424. package/Menu-8b2d56a2.cjs +0 -2
  425. package/Menu-8b2d56a2.cjs.map +0 -1
  426. package/Menu-ab1b5fb6.js.map +0 -1
  427. package/Popover-01a92903.cjs +0 -2
  428. package/ProgressBar-4f893820.cjs +0 -2
  429. package/Radio-5e9e9c5d.cjs +0 -2
  430. package/Radio-5e9e9c5d.cjs.map +0 -1
  431. package/Radio-dab030c5.js.map +0 -1
  432. package/SideNav-a46daccc.cjs +0 -2
  433. package/SideNav-a46daccc.cjs.map +0 -1
  434. package/SideNav-abd95834.js +0 -229
  435. package/SideNav-abd95834.js.map +0 -1
  436. package/Spinner-041df00b-fa2fcb57.js +0 -13
  437. package/Spinner-041df00b-fa2fcb57.js.map +0 -1
  438. package/Spinner-041df00b-fd40dc86.cjs +0 -2
  439. package/SrOnly-ed780dfc.cjs +0 -2
  440. package/Stepper-a7c03bda.cjs +0 -2
  441. package/Stepper-a7c03bda.cjs.map +0 -1
  442. package/Stepper-acc83b95.js +0 -276
  443. package/Stepper-acc83b95.js.map +0 -1
  444. package/Switch-bad8af12.cjs +0 -2
  445. package/Switch-bad8af12.cjs.map +0 -1
  446. package/Switch-de621e8b.js.map +0 -1
  447. package/Tab-2efb0b29.js.map +0 -1
  448. package/Tab-a7f56361.cjs +0 -10
  449. package/Tab-a7f56361.cjs.map +0 -1
  450. package/Text-10643eec.js +0 -103
  451. package/Text-10643eec.js.map +0 -1
  452. package/Text-2c217682.cjs +0 -2
  453. package/Text-2c217682.cjs.map +0 -1
  454. package/TextField-0e4b1063.cjs +0 -2
  455. package/TextField-0e4b1063.cjs.map +0 -1
  456. package/TextField-72d16321.js +0 -116
  457. package/TextField-72d16321.js.map +0 -1
  458. package/Textarea-218e3338.cjs +0 -2
  459. package/Textarea-218e3338.cjs.map +0 -1
  460. package/Textarea-9332ebd4.js +0 -113
  461. package/Textarea-9332ebd4.js.map +0 -1
  462. package/Tooltip-6f564b63.js.map +0 -1
  463. package/Tooltip-ce4148a7.cjs +0 -2
  464. package/check-f9f67964-2b87008b.js +0 -6
  465. package/check-f9f67964-2b87008b.js.map +0 -1
  466. package/check-f9f67964-e51192c1.cjs +0 -2
  467. package/check-f9f67964-e51192c1.cjs.map +0 -1
  468. package/check_circle-90af612d-38543d6c.js +0 -7
  469. package/check_circle-90af612d-38543d6c.js.map +0 -1
  470. package/check_circle-90af612d-4c004082.cjs +0 -2
  471. package/check_circle-90af612d-4c004082.cjs.map +0 -1
  472. package/chevron_right-b743a9af-b94b3829.js +0 -6
  473. package/chevron_right-b743a9af-b94b3829.js.map +0 -1
  474. package/chevron_right-b743a9af-f20c75aa.cjs +0 -2
  475. package/chevron_right-b743a9af-f20c75aa.cjs.map +0 -1
  476. package/close-f5f4f7c7-0bca1fc8.cjs +0 -2
  477. package/close-f5f4f7c7-0bca1fc8.cjs.map +0 -1
  478. package/close-f5f4f7c7-ab2930de.js.map +0 -1
  479. package/index-34a59514-84846dd5.cjs +0 -2
  480. package/index-34a59514-84846dd5.cjs.map +0 -1
  481. package/index-34a59514-87e04c7f.js +0 -196
  482. package/index-34a59514-87e04c7f.js.map +0 -1
  483. package/index-34a59514.css +0 -1
  484. package/index-4deb58f0.cjs +0 -2
  485. package/index-4deb58f0.cjs.map +0 -1
  486. package/index-870600c9.cjs +0 -174
  487. package/index-870600c9.cjs.map +0 -1
  488. package/index-bbef83ec.js +0 -1240
  489. package/index-bbef83ec.js.map +0 -1
  490. package/index-ccf0845b.js.map +0 -1
  491. package/info-b9dceed3-01b23ff8.js +0 -6
  492. package/info-b9dceed3-01b23ff8.js.map +0 -1
  493. package/info-b9dceed3-085625d7.cjs +0 -2
  494. package/info-b9dceed3-085625d7.cjs.map +0 -1
  495. package/sizeToToken-ec2a44d1-7f023360.cjs +0 -2
  496. package/sizeToToken-ec2a44d1-7f023360.cjs.map +0 -1
  497. package/sizeToToken-ec2a44d1-bd89b4fa.js +0 -12
  498. package/sizeToToken-ec2a44d1-bd89b4fa.js.map +0 -1
  499. package/usePrefersColorScheme-129544ad-b018d158.cjs +0 -2
@@ -1,2771 +0,0 @@
1
- import "./Combobox.css";
2
- import { f as q } from "./jsx-runtime-944c88e2-e73fa629.js";
3
- import Ke, { useRef as X, useCallback as Y, useEffect as te, useMemo as xn, cloneElement as Cn, Component as Dn, useLayoutEffect as Sn, useReducer as Nn, createContext as Mn, useState as Pe, useId as mt, useContext as Rn } from "react";
4
- import { P as f, _ as N, a as se, b as Vn } from "./index-064ddc3d.js";
5
- import { q as ze } from "./index-b6ca5fc4.js";
6
- import { g as Pn } from "./_commonjsHelpers-10dfc225.js";
7
- import { B as Pt, P as An } from "./Popover-c03e96a7.js";
8
- import { j as Tn } from "./Label-9db08425.js";
9
- import { k as vt } from "./Button-66b9c955.js";
10
- import { m as kn } from "./close-f5f4f7c7-ab2930de.js";
11
- import { h as Hn } from "./chevron_right-b743a9af-b94b3829.js";
12
- import { W as Kn, V as $n } from "./index-34a59514-87e04c7f.js";
13
- function _t(t) {
14
- if (t === void 0)
15
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
16
- return t;
17
- }
18
- var Ge = { exports: {} }, H = {};
19
- /**
20
- * @license React
21
- * react-is.production.min.js
22
- *
23
- * Copyright (c) Facebook, Inc. and its affiliates.
24
- *
25
- * This source code is licensed under the MIT license found in the
26
- * LICENSE file in the root directory of this source tree.
27
- */
28
- var It;
29
- function Ln() {
30
- if (It)
31
- return H;
32
- It = 1;
33
- var t = 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"), e = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), b;
34
- b = Symbol.for("react.module.reference");
35
- function R(h) {
36
- if (typeof h == "object" && h !== null) {
37
- var P = h.$$typeof;
38
- switch (P) {
39
- case t:
40
- switch (h = h.type, h) {
41
- case r:
42
- case o:
43
- case i:
44
- case g:
45
- case d:
46
- return h;
47
- default:
48
- switch (h = h && h.$$typeof, h) {
49
- case l:
50
- case s:
51
- case c:
52
- case E:
53
- case v:
54
- case e:
55
- return h;
56
- default:
57
- return P;
58
- }
59
- }
60
- case n:
61
- return P;
62
- }
63
- }
64
- }
65
- return H.ContextConsumer = s, H.ContextProvider = e, H.Element = t, H.ForwardRef = c, H.Fragment = r, H.Lazy = E, H.Memo = v, H.Portal = n, H.Profiler = o, H.StrictMode = i, H.Suspense = g, H.SuspenseList = d, H.isAsyncMode = function() {
66
- return !1;
67
- }, H.isConcurrentMode = function() {
68
- return !1;
69
- }, H.isContextConsumer = function(h) {
70
- return R(h) === s;
71
- }, H.isContextProvider = function(h) {
72
- return R(h) === e;
73
- }, H.isElement = function(h) {
74
- return typeof h == "object" && h !== null && h.$$typeof === t;
75
- }, H.isForwardRef = function(h) {
76
- return R(h) === c;
77
- }, H.isFragment = function(h) {
78
- return R(h) === r;
79
- }, H.isLazy = function(h) {
80
- return R(h) === E;
81
- }, H.isMemo = function(h) {
82
- return R(h) === v;
83
- }, H.isPortal = function(h) {
84
- return R(h) === n;
85
- }, H.isProfiler = function(h) {
86
- return R(h) === o;
87
- }, H.isStrictMode = function(h) {
88
- return R(h) === i;
89
- }, H.isSuspense = function(h) {
90
- return R(h) === g;
91
- }, H.isSuspenseList = function(h) {
92
- return R(h) === d;
93
- }, H.isValidElementType = function(h) {
94
- return typeof h == "string" || typeof h == "function" || h === r || h === o || h === i || h === g || h === d || h === w || typeof h == "object" && h !== null && (h.$$typeof === E || h.$$typeof === v || h.$$typeof === e || h.$$typeof === s || h.$$typeof === c || h.$$typeof === b || h.getModuleId !== void 0);
95
- }, H.typeOf = R, H;
96
- }
97
- var K = {};
98
- /**
99
- * @license React
100
- * react-is.development.js
101
- *
102
- * Copyright (c) Facebook, Inc. and its affiliates.
103
- *
104
- * This source code is licensed under the MIT license found in the
105
- * LICENSE file in the root directory of this source tree.
106
- */
107
- var Et;
108
- function Fn() {
109
- return Et || (Et = 1, process.env.NODE_ENV !== "production" && function() {
110
- var t = 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"), e = Symbol.for("react.provider"), s = Symbol.for("react.context"), l = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), v = Symbol.for("react.memo"), E = Symbol.for("react.lazy"), w = Symbol.for("react.offscreen"), b = !1, R = !1, h = !1, P = !1, u = !1, p;
111
- p = Symbol.for("react.module.reference");
112
- function a(I) {
113
- return !!(typeof I == "string" || typeof I == "function" || I === r || I === o || u || I === i || I === g || I === d || P || I === w || b || R || h || typeof I == "object" && I !== null && (I.$$typeof === E || I.$$typeof === v || I.$$typeof === e || I.$$typeof === s || I.$$typeof === c || // This needs to include all possible module reference object
114
- // types supported by any Flight configuration anywhere since
115
- // we don't know which Flight build this will end up being used
116
- // with.
117
- I.$$typeof === p || I.getModuleId !== void 0));
118
- }
119
- function m(I) {
120
- if (typeof I == "object" && I !== null) {
121
- var oe = I.$$typeof;
122
- switch (oe) {
123
- case t:
124
- var G = I.type;
125
- switch (G) {
126
- case r:
127
- case o:
128
- case i:
129
- case g:
130
- case d:
131
- return G;
132
- default:
133
- var Ee = G && G.$$typeof;
134
- switch (Ee) {
135
- case l:
136
- case s:
137
- case c:
138
- case E:
139
- case v:
140
- case e:
141
- return Ee;
142
- default:
143
- return oe;
144
- }
145
- }
146
- case n:
147
- return oe;
148
- }
149
- }
150
- }
151
- var _ = s, M = e, y = t, V = c, x = r, T = E, k = v, L = n, D = o, F = i, W = g, $ = d, le = !1, ae = !1;
152
- function pe(I) {
153
- return le || (le = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
154
- }
155
- function me(I) {
156
- return ae || (ae = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
157
- }
158
- function ve(I) {
159
- return m(I) === s;
160
- }
161
- function fe(I) {
162
- return m(I) === e;
163
- }
164
- function S(I) {
165
- return typeof I == "object" && I !== null && I.$$typeof === t;
166
- }
167
- function O(I) {
168
- return m(I) === c;
169
- }
170
- function C(I) {
171
- return m(I) === r;
172
- }
173
- function A(I) {
174
- return m(I) === E;
175
- }
176
- function Q(I) {
177
- return m(I) === v;
178
- }
179
- function B(I) {
180
- return m(I) === n;
181
- }
182
- function U(I) {
183
- return m(I) === o;
184
- }
185
- function J(I) {
186
- return m(I) === i;
187
- }
188
- function z(I) {
189
- return m(I) === g;
190
- }
191
- function ee(I) {
192
- return m(I) === d;
193
- }
194
- K.ContextConsumer = _, K.ContextProvider = M, K.Element = y, K.ForwardRef = V, K.Fragment = x, K.Lazy = T, K.Memo = k, K.Portal = L, K.Profiler = D, K.StrictMode = F, K.Suspense = W, K.SuspenseList = $, K.isAsyncMode = pe, K.isConcurrentMode = me, K.isContextConsumer = ve, K.isContextProvider = fe, K.isElement = S, K.isForwardRef = O, K.isFragment = C, K.isLazy = A, K.isMemo = Q, K.isPortal = B, K.isProfiler = U, K.isStrictMode = J, K.isSuspense = z, K.isSuspenseList = ee, K.isValidElementType = a, K.typeOf = m;
195
- }()), K;
196
- }
197
- process.env.NODE_ENV === "production" ? Ge.exports = Ln() : Ge.exports = Fn();
198
- var yt = Ge.exports;
199
- const bt = (t) => typeof t == "object" && t != null && t.nodeType === 1, wt = (t, n) => (!n || t !== "hidden") && t !== "visible" && t !== "clip", qe = (t, n) => {
200
- if (t.clientHeight < t.scrollHeight || t.clientWidth < t.scrollWidth) {
201
- const r = getComputedStyle(t, null);
202
- return wt(r.overflowY, n) || wt(r.overflowX, n) || ((i) => {
203
- const o = ((e) => {
204
- if (!e.ownerDocument || !e.ownerDocument.defaultView)
205
- return null;
206
- try {
207
- return e.ownerDocument.defaultView.frameElement;
208
- } catch {
209
- return null;
210
- }
211
- })(i);
212
- return !!o && (o.clientHeight < i.scrollHeight || o.clientWidth < i.scrollWidth);
213
- })(t);
214
- }
215
- return !1;
216
- }, Ae = (t, n, r, i, o, e, s, l) => e < t && s > n || e > t && s < n ? 0 : e <= t && l <= r || s >= n && l >= r ? e - t - i : s > n && l < r || e < t && l > r ? s - n + o : 0, Un = (t) => {
217
- const n = t.parentElement;
218
- return n ?? (t.getRootNode().host || null);
219
- }, Bn = (t, n) => {
220
- var r, i, o, e;
221
- if (typeof document > "u")
222
- return [];
223
- const { scrollMode: s, block: l, inline: c, boundary: g, skipOverflowHiddenElements: d } = n, v = typeof g == "function" ? g : (W) => W !== g;
224
- if (!bt(t))
225
- throw new TypeError("Invalid target");
226
- const E = document.scrollingElement || document.documentElement, w = [];
227
- let b = t;
228
- for (; bt(b) && v(b); ) {
229
- if (b = Un(b), b === E) {
230
- w.push(b);
231
- break;
232
- }
233
- b != null && b === document.body && qe(b) && !qe(document.documentElement) || b != null && qe(b, d) && w.push(b);
234
- }
235
- const R = (i = (r = window.visualViewport) == null ? void 0 : r.width) != null ? i : innerWidth, h = (e = (o = window.visualViewport) == null ? void 0 : o.height) != null ? e : innerHeight, { scrollX: P, scrollY: u } = window, { height: p, width: a, top: m, right: _, bottom: M, left: y } = t.getBoundingClientRect(), { top: V, right: x, bottom: T, left: k } = ((W) => {
236
- const $ = window.getComputedStyle(W);
237
- return { top: parseFloat($.scrollMarginTop) || 0, right: parseFloat($.scrollMarginRight) || 0, bottom: parseFloat($.scrollMarginBottom) || 0, left: parseFloat($.scrollMarginLeft) || 0 };
238
- })(t);
239
- let L = l === "start" || l === "nearest" ? m - V : l === "end" ? M + T : m + p / 2 - V + T, D = c === "center" ? y + a / 2 - k + x : c === "end" ? _ + x : y - k;
240
- const F = [];
241
- for (let W = 0; W < w.length; W++) {
242
- const $ = w[W], { height: le, width: ae, top: pe, right: me, bottom: ve, left: fe } = $.getBoundingClientRect();
243
- if (s === "if-needed" && m >= 0 && y >= 0 && M <= h && _ <= R && m >= pe && M <= ve && y >= fe && _ <= me)
244
- return F;
245
- const S = getComputedStyle($), O = parseInt(S.borderLeftWidth, 10), C = parseInt(S.borderTopWidth, 10), A = parseInt(S.borderRightWidth, 10), Q = parseInt(S.borderBottomWidth, 10);
246
- let B = 0, U = 0;
247
- const J = "offsetWidth" in $ ? $.offsetWidth - $.clientWidth - O - A : 0, z = "offsetHeight" in $ ? $.offsetHeight - $.clientHeight - C - Q : 0, ee = "offsetWidth" in $ ? $.offsetWidth === 0 ? 0 : ae / $.offsetWidth : 0, I = "offsetHeight" in $ ? $.offsetHeight === 0 ? 0 : le / $.offsetHeight : 0;
248
- if (E === $)
249
- B = l === "start" ? L : l === "end" ? L - h : l === "nearest" ? Ae(u, u + h, h, C, Q, u + L, u + L + p, p) : L - h / 2, U = c === "start" ? D : c === "center" ? D - R / 2 : c === "end" ? D - R : Ae(P, P + R, R, O, A, P + D, P + D + a, a), B = Math.max(0, B + u), U = Math.max(0, U + P);
250
- else {
251
- B = l === "start" ? L - pe - C : l === "end" ? L - ve + Q + z : l === "nearest" ? Ae(pe, ve, le, C, Q + z, L, L + p, p) : L - (pe + le / 2) + z / 2, U = c === "start" ? D - fe - O : c === "center" ? D - (fe + ae / 2) + J / 2 : c === "end" ? D - me + A + J : Ae(fe, me, ae, O, A + J, D, D + a, a);
252
- const { scrollLeft: oe, scrollTop: G } = $;
253
- B = I === 0 ? 0 : Math.max(0, Math.min(G + B / I, $.scrollHeight - le / I + z)), U = ee === 0 ? 0 : Math.max(0, Math.min(oe + U / ee, $.scrollWidth - ae / ee + J)), L += G - B, D += oe - U;
254
- }
255
- F.push({ el: $, top: B, left: U });
256
- }
257
- return F;
258
- };
259
- var Oe = function() {
260
- return Oe = Object.assign || function(n) {
261
- for (var r, i = 1, o = arguments.length; i < o; i++) {
262
- r = arguments[i];
263
- for (var e in r)
264
- Object.prototype.hasOwnProperty.call(r, e) && (n[e] = r[e]);
265
- }
266
- return n;
267
- }, Oe.apply(this, arguments);
268
- };
269
- var jn = 0;
270
- function Ot(t) {
271
- return typeof t == "function" ? t : re;
272
- }
273
- function re() {
274
- }
275
- function At(t, n) {
276
- if (t) {
277
- var r = Bn(t, {
278
- boundary: n,
279
- block: "nearest",
280
- scrollMode: "if-needed"
281
- });
282
- r.forEach(function(i) {
283
- var o = i.el, e = i.top, s = i.left;
284
- o.scrollTop = e, o.scrollLeft = s;
285
- });
286
- }
287
- }
288
- function xt(t, n, r) {
289
- var i = t === n || n instanceof r.Node && t.contains && t.contains(n);
290
- return i;
291
- }
292
- function Je(t, n) {
293
- var r;
294
- function i() {
295
- r && clearTimeout(r);
296
- }
297
- function o() {
298
- for (var e = arguments.length, s = new Array(e), l = 0; l < e; l++)
299
- s[l] = arguments[l];
300
- i(), r = setTimeout(function() {
301
- r = null, t.apply(void 0, s);
302
- }, n);
303
- }
304
- return o.cancel = i, o;
305
- }
306
- function j() {
307
- for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
308
- n[r] = arguments[r];
309
- return function(i) {
310
- for (var o = arguments.length, e = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
311
- e[s - 1] = arguments[s];
312
- return n.some(function(l) {
313
- return l && l.apply(void 0, [i].concat(e)), i.preventDownshiftDefault || i.hasOwnProperty("nativeEvent") && i.nativeEvent.preventDownshiftDefault;
314
- });
315
- };
316
- }
317
- function ye() {
318
- for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
319
- n[r] = arguments[r];
320
- return function(i) {
321
- n.forEach(function(o) {
322
- typeof o == "function" ? o(i) : o && (o.current = i);
323
- });
324
- };
325
- }
326
- function Tt() {
327
- return String(jn++);
328
- }
329
- function kt(t) {
330
- var n = t.isOpen, r = t.resultCount, i = t.previousResultCount;
331
- 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." : "";
332
- }
333
- function Ct(t, n) {
334
- return t = Array.isArray(t) ? (
335
- /* istanbul ignore next (preact) */
336
- t[0]
337
- ) : t, !t && n ? n : t;
338
- }
339
- function Ht(t) {
340
- return typeof t.type == "string";
341
- }
342
- function Kt(t) {
343
- return t.props;
344
- }
345
- function Wn(t, n) {
346
- console.error('The property "' + n + '" is required in "' + t + '"');
347
- }
348
- var Yn = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
349
- function Te(t) {
350
- t === void 0 && (t = {});
351
- var n = {};
352
- return Yn.forEach(function(r) {
353
- t.hasOwnProperty(r) && (n[r] = t[r]);
354
- }), n;
355
- }
356
- function $e(t, n) {
357
- return !t || !n ? t : Object.keys(t).reduce(function(r, i) {
358
- return r[i] = Le(n, i) ? n[i] : t[i], r;
359
- }, {});
360
- }
361
- function Le(t, n) {
362
- return t[n] !== void 0;
363
- }
364
- function Xe(t) {
365
- var n = t.key, r = t.keyCode;
366
- return r >= 37 && r <= 40 && n.indexOf("Arrow") !== 0 ? "Arrow" + n : n;
367
- }
368
- function qn(t) {
369
- return Object.prototype.toString.call(t) === "[object Object]";
370
- }
371
- function Ie(t, n, r, i, o) {
372
- o === void 0 && (o = !1);
373
- var e = r.length;
374
- if (e === 0)
375
- return -1;
376
- var s = e - 1;
377
- (typeof t != "number" || t < 0 || t > s) && (t = n > 0 ? -1 : s + 1);
378
- var l = t + n;
379
- l < 0 ? l = o ? s : 0 : l > s && (l = o ? 0 : s);
380
- var c = xe(l, n < 0, r, i, o);
381
- return c === -1 ? t >= e ? -1 : t : c;
382
- }
383
- function xe(t, n, r, i, o) {
384
- o === void 0 && (o = !1);
385
- var e = r.length;
386
- if (n) {
387
- for (var s = t; s >= 0; s--)
388
- if (!i(r[s], s))
389
- return s;
390
- } else
391
- for (var l = t; l < e; l++)
392
- if (!i(r[l], l))
393
- return l;
394
- return o ? xe(n ? e - 1 : 0, n, r, i) : -1;
395
- }
396
- function Fe(t, n, r, i) {
397
- return i === void 0 && (i = !0), r && n.some(function(o) {
398
- return o && (xt(o, t, r) || i && xt(o, r.document.activeElement, r));
399
- });
400
- }
401
- var Ze = re;
402
- process.env.NODE_ENV !== "production" && (Ze = function(n, r, i) {
403
- 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";
404
- Object.keys(n).forEach(function(e) {
405
- r[e] !== void 0 && i[e] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + e + '" to be uncontrolled. ' + o) : r[e] === void 0 && i[e] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + e + '" to be controlled. ' + o);
406
- });
407
- });
408
- var zn = Je(function(t) {
409
- $t(t).textContent = "";
410
- }, 500);
411
- function $t(t) {
412
- var n = t.getElementById("a11y-status-message");
413
- return n || (n = t.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, {
414
- border: "0",
415
- clip: "rect(0 0 0 0)",
416
- height: "1px",
417
- margin: "-1px",
418
- overflow: "hidden",
419
- padding: "0",
420
- position: "absolute",
421
- width: "1px"
422
- }), t.body.appendChild(n), n);
423
- }
424
- function Lt(t, n) {
425
- if (!(!t || !n)) {
426
- var r = $t(n);
427
- r.textContent = t, zn(n);
428
- }
429
- }
430
- var Ft = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Ut = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, Bt = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, ke = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, He = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, jt = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, Wt = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, Yt = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, qt = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, zt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, Gt = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Xt = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, Qt = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, Qe = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, Jt = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, Zt = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, en = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, Gn = /* @__PURE__ */ Object.freeze({
431
- __proto__: null,
432
- unknown: Ft,
433
- mouseUp: Ut,
434
- itemMouseEnter: Bt,
435
- keyDownArrowUp: ke,
436
- keyDownArrowDown: He,
437
- keyDownEscape: jt,
438
- keyDownEnter: Wt,
439
- keyDownHome: Yt,
440
- keyDownEnd: qt,
441
- clickItem: zt,
442
- blurInput: Gt,
443
- changeInput: Xt,
444
- keyDownSpaceButton: Qt,
445
- clickButton: Qe,
446
- blurButton: Jt,
447
- controlledPropUpdatedSelectedItem: Zt,
448
- touchEnd: en
449
- }), Xn = ["refKey", "ref"], Qn = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], Jn = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], Zn = ["refKey", "ref"], er = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], tr = /* @__PURE__ */ function() {
450
- var t = /* @__PURE__ */ function(n) {
451
- Vn(r, n);
452
- function r(o) {
453
- var e;
454
- e = n.call(this, o) || this, e.id = e.props.id || "downshift-" + Tt(), e.menuId = e.props.menuId || e.id + "-menu", e.labelId = e.props.labelId || e.id + "-label", e.inputId = e.props.inputId || e.id + "-input", e.getItemId = e.props.getItemId || function(u) {
455
- return e.id + "-item-" + u;
456
- }, e.items = [], e.itemCount = null, e.previousResultCount = 0, e.timeoutIds = [], e.internalSetTimeout = function(u, p) {
457
- var a = setTimeout(function() {
458
- e.timeoutIds = e.timeoutIds.filter(function(m) {
459
- return m !== a;
460
- }), u();
461
- }, p);
462
- e.timeoutIds.push(a);
463
- }, e.setItemCount = function(u) {
464
- e.itemCount = u;
465
- }, e.unsetItemCount = function() {
466
- e.itemCount = null;
467
- }, e.isItemDisabled = function(u, p) {
468
- var a = e.getItemNodeFromIndex(p);
469
- return a && a.hasAttribute("disabled");
470
- }, e.setHighlightedIndex = function(u, p) {
471
- u === void 0 && (u = e.props.defaultHighlightedIndex), p === void 0 && (p = {}), p = Te(p), e.internalSetState(N({
472
- highlightedIndex: u
473
- }, p));
474
- }, e.clearSelection = function(u) {
475
- e.internalSetState({
476
- selectedItem: null,
477
- inputValue: "",
478
- highlightedIndex: e.props.defaultHighlightedIndex,
479
- isOpen: e.props.defaultIsOpen
480
- }, u);
481
- }, e.selectItem = function(u, p, a) {
482
- p = Te(p), e.internalSetState(N({
483
- isOpen: e.props.defaultIsOpen,
484
- highlightedIndex: e.props.defaultHighlightedIndex,
485
- selectedItem: u,
486
- inputValue: e.props.itemToString(u)
487
- }, p), a);
488
- }, e.selectItemAtIndex = function(u, p, a) {
489
- var m = e.items[u];
490
- m != null && e.selectItem(m, p, a);
491
- }, e.selectHighlightedItem = function(u, p) {
492
- return e.selectItemAtIndex(e.getState().highlightedIndex, u, p);
493
- }, e.internalSetState = function(u, p) {
494
- var a, m, _ = {}, M = typeof u == "function";
495
- return !M && u.hasOwnProperty("inputValue") && e.props.onInputValueChange(u.inputValue, N({}, e.getStateAndHelpers(), u)), e.setState(function(y) {
496
- var V;
497
- y = e.getState(y);
498
- var x = M ? u(y) : u;
499
- x = e.props.stateReducer(y, x), a = x.hasOwnProperty("selectedItem");
500
- var T = {};
501
- return a && x.selectedItem !== y.selectedItem && (m = x.selectedItem), (V = x).type || (V.type = Ft), Object.keys(x).forEach(function(k) {
502
- y[k] !== x[k] && (_[k] = x[k]), k !== "type" && (x[k], Le(e.props, k) || (T[k] = x[k]));
503
- }), M && x.hasOwnProperty("inputValue") && e.props.onInputValueChange(x.inputValue, N({}, e.getStateAndHelpers(), x)), T;
504
- }, function() {
505
- Ot(p)();
506
- var y = Object.keys(_).length > 1;
507
- y && e.props.onStateChange(_, e.getStateAndHelpers()), a && e.props.onSelect(u.selectedItem, e.getStateAndHelpers()), m !== void 0 && e.props.onChange(m, e.getStateAndHelpers()), e.props.onUserAction(_, e.getStateAndHelpers());
508
- });
509
- }, e.rootRef = function(u) {
510
- return e._rootNode = u;
511
- }, e.getRootProps = function(u, p) {
512
- var a, m = u === void 0 ? {} : u, _ = m.refKey, M = _ === void 0 ? "ref" : _, y = m.ref, V = se(m, Xn), x = p === void 0 ? {} : p, T = x.suppressRefError, k = T === void 0 ? !1 : T;
513
- e.getRootProps.called = !0, e.getRootProps.refKey = M, e.getRootProps.suppressRefError = k;
514
- var L = e.getState(), D = L.isOpen;
515
- return N((a = {}, a[M] = ye(y, e.rootRef), a.role = "combobox", a["aria-expanded"] = D, a["aria-haspopup"] = "listbox", a["aria-owns"] = D ? e.menuId : void 0, a["aria-labelledby"] = e.labelId, a), V);
516
- }, e.keyDownHandlers = {
517
- ArrowDown: function(p) {
518
- var a = this;
519
- if (p.preventDefault(), this.getState().isOpen) {
520
- var m = p.shiftKey ? 5 : 1;
521
- this.moveHighlightedIndex(m, {
522
- type: He
523
- });
524
- } else
525
- this.internalSetState({
526
- isOpen: !0,
527
- type: He
528
- }, function() {
529
- var _ = a.getItemCount();
530
- if (_ > 0) {
531
- var M = a.getState(), y = M.highlightedIndex, V = Ie(y, 1, {
532
- length: _
533
- }, a.isItemDisabled, !0);
534
- a.setHighlightedIndex(V, {
535
- type: He
536
- });
537
- }
538
- });
539
- },
540
- ArrowUp: function(p) {
541
- var a = this;
542
- if (p.preventDefault(), this.getState().isOpen) {
543
- var m = p.shiftKey ? -5 : -1;
544
- this.moveHighlightedIndex(m, {
545
- type: ke
546
- });
547
- } else
548
- this.internalSetState({
549
- isOpen: !0,
550
- type: ke
551
- }, function() {
552
- var _ = a.getItemCount();
553
- if (_ > 0) {
554
- var M = a.getState(), y = M.highlightedIndex, V = Ie(y, -1, {
555
- length: _
556
- }, a.isItemDisabled, !0);
557
- a.setHighlightedIndex(V, {
558
- type: ke
559
- });
560
- }
561
- });
562
- },
563
- Enter: function(p) {
564
- if (p.which !== 229) {
565
- var a = this.getState(), m = a.isOpen, _ = a.highlightedIndex;
566
- if (m && _ != null) {
567
- p.preventDefault();
568
- var M = this.items[_], y = this.getItemNodeFromIndex(_);
569
- if (M == null || y && y.hasAttribute("disabled"))
570
- return;
571
- this.selectHighlightedItem({
572
- type: Wt
573
- });
574
- }
575
- }
576
- },
577
- Escape: function(p) {
578
- p.preventDefault(), this.reset(N({
579
- type: jt
580
- }, !this.state.isOpen && {
581
- selectedItem: null,
582
- inputValue: ""
583
- }));
584
- }
585
- }, e.buttonKeyDownHandlers = N({}, e.keyDownHandlers, {
586
- " ": function(p) {
587
- p.preventDefault(), this.toggleMenu({
588
- type: Qt
589
- });
590
- }
591
- }), e.inputKeyDownHandlers = N({}, e.keyDownHandlers, {
592
- Home: function(p) {
593
- var a = this.getState(), m = a.isOpen;
594
- if (m) {
595
- p.preventDefault();
596
- var _ = this.getItemCount();
597
- if (!(_ <= 0 || !m)) {
598
- var M = xe(0, !1, {
599
- length: _
600
- }, this.isItemDisabled);
601
- this.setHighlightedIndex(M, {
602
- type: Yt
603
- });
604
- }
605
- }
606
- },
607
- End: function(p) {
608
- var a = this.getState(), m = a.isOpen;
609
- if (m) {
610
- p.preventDefault();
611
- var _ = this.getItemCount();
612
- if (!(_ <= 0 || !m)) {
613
- var M = xe(_ - 1, !0, {
614
- length: _
615
- }, this.isItemDisabled);
616
- this.setHighlightedIndex(M, {
617
- type: qt
618
- });
619
- }
620
- }
621
- }
622
- }), e.getToggleButtonProps = function(u) {
623
- var p = u === void 0 ? {} : u, a = p.onClick;
624
- p.onPress;
625
- var m = p.onKeyDown, _ = p.onKeyUp, M = p.onBlur, y = se(p, Qn), V = e.getState(), x = V.isOpen, T = {
626
- onClick: j(a, e.buttonHandleClick),
627
- onKeyDown: j(m, e.buttonHandleKeyDown),
628
- onKeyUp: j(_, e.buttonHandleKeyUp),
629
- onBlur: j(M, e.buttonHandleBlur)
630
- }, k = y.disabled ? {} : T;
631
- return N({
632
- type: "button",
633
- role: "button",
634
- "aria-label": x ? "close menu" : "open menu",
635
- "aria-haspopup": !0,
636
- "data-toggle": !0
637
- }, k, y);
638
- }, e.buttonHandleKeyUp = function(u) {
639
- u.preventDefault();
640
- }, e.buttonHandleKeyDown = function(u) {
641
- var p = Xe(u);
642
- e.buttonKeyDownHandlers[p] && e.buttonKeyDownHandlers[p].call(_t(e), u);
643
- }, e.buttonHandleClick = function(u) {
644
- if (u.preventDefault(), e.props.environment) {
645
- var p = e.props.environment.document, a = p.body, m = p.activeElement;
646
- a && a === m && u.target.focus();
647
- }
648
- process.env.NODE_ENV === "test" ? e.toggleMenu({
649
- type: Qe
650
- }) : e.internalSetTimeout(function() {
651
- return e.toggleMenu({
652
- type: Qe
653
- });
654
- });
655
- }, e.buttonHandleBlur = function(u) {
656
- var p = u.target;
657
- e.internalSetTimeout(function() {
658
- if (!(e.isMouseDown || !e.props.environment)) {
659
- var a = e.props.environment.document.activeElement;
660
- (a == null || a.id !== e.inputId) && a !== p && e.reset({
661
- type: Jt
662
- });
663
- }
664
- });
665
- }, e.getLabelProps = function(u) {
666
- return N({
667
- htmlFor: e.inputId,
668
- id: e.labelId
669
- }, u);
670
- }, e.getInputProps = function(u) {
671
- var p = u === void 0 ? {} : u, a = p.onKeyDown, m = p.onBlur, _ = p.onChange, M = p.onInput;
672
- p.onChangeText;
673
- var y = se(p, Jn), V, x = {};
674
- V = "onChange";
675
- var T = e.getState(), k = T.inputValue, L = T.isOpen, D = T.highlightedIndex;
676
- if (!y.disabled) {
677
- var F;
678
- x = (F = {}, F[V] = j(_, M, e.inputHandleChange), F.onKeyDown = j(a, e.inputHandleKeyDown), F.onBlur = j(m, e.inputHandleBlur), F);
679
- }
680
- return N({
681
- "aria-autocomplete": "list",
682
- "aria-activedescendant": L && typeof D == "number" && D >= 0 ? e.getItemId(D) : void 0,
683
- "aria-controls": L ? e.menuId : void 0,
684
- "aria-labelledby": y && y["aria-label"] ? void 0 : e.labelId,
685
- // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
686
- // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
687
- autoComplete: "off",
688
- value: k,
689
- id: e.inputId
690
- }, x, y);
691
- }, e.inputHandleKeyDown = function(u) {
692
- var p = Xe(u);
693
- p && e.inputKeyDownHandlers[p] && e.inputKeyDownHandlers[p].call(_t(e), u);
694
- }, e.inputHandleChange = function(u) {
695
- e.internalSetState({
696
- type: Xt,
697
- isOpen: !0,
698
- inputValue: u.target.value,
699
- highlightedIndex: e.props.defaultHighlightedIndex
700
- });
701
- }, e.inputHandleBlur = function() {
702
- e.internalSetTimeout(function() {
703
- var u;
704
- if (!(e.isMouseDown || !e.props.environment)) {
705
- var p = e.props.environment.document.activeElement, a = (p == null || (u = p.dataset) == null ? void 0 : u.toggle) && e._rootNode && e._rootNode.contains(p);
706
- a || e.reset({
707
- type: Gt
708
- });
709
- }
710
- });
711
- }, e.menuRef = function(u) {
712
- e._menuNode = u;
713
- }, e.getMenuProps = function(u, p) {
714
- var a, m = u === void 0 ? {} : u, _ = m.refKey, M = _ === void 0 ? "ref" : _, y = m.ref, V = se(m, Zn), x = p === void 0 ? {} : p, T = x.suppressRefError, k = T === void 0 ? !1 : T;
715
- return e.getMenuProps.called = !0, e.getMenuProps.refKey = M, e.getMenuProps.suppressRefError = k, N((a = {}, a[M] = ye(y, e.menuRef), a.role = "listbox", a["aria-labelledby"] = V && V["aria-label"] ? void 0 : e.labelId, a.id = e.menuId, a), V);
716
- }, e.getItemProps = function(u) {
717
- var p, a = u === void 0 ? {} : u, m = a.onMouseMove, _ = a.onMouseDown, M = a.onClick;
718
- a.onPress;
719
- var y = a.index, V = a.item, x = V === void 0 ? process.env.NODE_ENV === "production" ? (
720
- /* istanbul ignore next */
721
- void 0
722
- ) : Wn("getItemProps", "item") : V, T = se(a, er);
723
- y === void 0 ? (e.items.push(x), y = e.items.indexOf(x)) : e.items[y] = x;
724
- var k = "onClick", L = M, D = (p = {
725
- // onMouseMove is used over onMouseEnter here. onMouseMove
726
- // is only triggered on actual mouse movement while onMouseEnter
727
- // can fire on DOM changes, interrupting keyboard navigation
728
- onMouseMove: j(m, function() {
729
- y !== e.getState().highlightedIndex && (e.setHighlightedIndex(y, {
730
- type: Bt
731
- }), e.avoidScrolling = !0, e.internalSetTimeout(function() {
732
- return e.avoidScrolling = !1;
733
- }, 250));
734
- }),
735
- onMouseDown: j(_, function(W) {
736
- W.preventDefault();
737
- })
738
- }, p[k] = j(L, function() {
739
- e.selectItemAtIndex(y, {
740
- type: zt
741
- });
742
- }), p), F = T.disabled ? {
743
- onMouseDown: D.onMouseDown
744
- } : D;
745
- return N({
746
- id: e.getItemId(y),
747
- role: "option",
748
- "aria-selected": e.getState().highlightedIndex === y
749
- }, F, T);
750
- }, e.clearItems = function() {
751
- e.items = [];
752
- }, e.reset = function(u, p) {
753
- u === void 0 && (u = {}), u = Te(u), e.internalSetState(function(a) {
754
- var m = a.selectedItem;
755
- return N({
756
- isOpen: e.props.defaultIsOpen,
757
- highlightedIndex: e.props.defaultHighlightedIndex,
758
- inputValue: e.props.itemToString(m)
759
- }, u);
760
- }, p);
761
- }, e.toggleMenu = function(u, p) {
762
- u === void 0 && (u = {}), u = Te(u), e.internalSetState(function(a) {
763
- var m = a.isOpen;
764
- return N({
765
- isOpen: !m
766
- }, m && {
767
- highlightedIndex: e.props.defaultHighlightedIndex
768
- }, u);
769
- }, function() {
770
- var a = e.getState(), m = a.isOpen, _ = a.highlightedIndex;
771
- m && e.getItemCount() > 0 && typeof _ == "number" && e.setHighlightedIndex(_, u), Ot(p)();
772
- });
773
- }, e.openMenu = function(u) {
774
- e.internalSetState({
775
- isOpen: !0
776
- }, u);
777
- }, e.closeMenu = function(u) {
778
- e.internalSetState({
779
- isOpen: !1
780
- }, u);
781
- }, e.updateStatus = Je(function() {
782
- var u;
783
- if ((u = e.props) != null && (u = u.environment) != null && u.document) {
784
- var p = e.getState(), a = e.items[p.highlightedIndex], m = e.getItemCount(), _ = e.props.getA11yStatusMessage(N({
785
- itemToString: e.props.itemToString,
786
- previousResultCount: e.previousResultCount,
787
- resultCount: m,
788
- highlightedItem: a
789
- }, p));
790
- e.previousResultCount = m, Lt(_, e.props.environment.document);
791
- }
792
- }, 200);
793
- var s = e.props, l = s.defaultHighlightedIndex, c = s.initialHighlightedIndex, g = c === void 0 ? l : c, d = s.defaultIsOpen, v = s.initialIsOpen, E = v === void 0 ? d : v, w = s.initialInputValue, b = w === void 0 ? "" : w, R = s.initialSelectedItem, h = R === void 0 ? null : R, P = e.getState({
794
- highlightedIndex: g,
795
- isOpen: E,
796
- inputValue: b,
797
- selectedItem: h
798
- });
799
- return P.selectedItem != null && e.props.initialInputValue === void 0 && (P.inputValue = e.props.itemToString(P.selectedItem)), e.state = P, e;
800
- }
801
- var i = r.prototype;
802
- return i.internalClearTimeouts = function() {
803
- this.timeoutIds.forEach(function(e) {
804
- clearTimeout(e);
805
- }), this.timeoutIds = [];
806
- }, i.getState = function(e) {
807
- return e === void 0 && (e = this.state), $e(e, this.props);
808
- }, i.getItemCount = function() {
809
- var e = this.items.length;
810
- return this.itemCount != null ? e = this.itemCount : this.props.itemCount !== void 0 && (e = this.props.itemCount), e;
811
- }, i.getItemNodeFromIndex = function(e) {
812
- return this.props.environment ? this.props.environment.document.getElementById(this.getItemId(e)) : null;
813
- }, i.scrollHighlightedItemIntoView = function() {
814
- {
815
- var e = this.getItemNodeFromIndex(this.getState().highlightedIndex);
816
- this.props.scrollIntoView(e, this._menuNode);
817
- }
818
- }, i.moveHighlightedIndex = function(e, s) {
819
- var l = this.getItemCount(), c = this.getState(), g = c.highlightedIndex;
820
- if (l > 0) {
821
- var d = Ie(g, e, {
822
- length: l
823
- }, this.isItemDisabled, !0);
824
- this.setHighlightedIndex(d, s);
825
- }
826
- }, i.getStateAndHelpers = function() {
827
- var e = this.getState(), s = e.highlightedIndex, l = e.inputValue, c = e.selectedItem, g = e.isOpen, d = this.props.itemToString, v = this.id, E = this.getRootProps, w = this.getToggleButtonProps, b = this.getLabelProps, R = this.getMenuProps, h = this.getInputProps, P = this.getItemProps, u = this.openMenu, p = this.closeMenu, a = this.toggleMenu, m = this.selectItem, _ = this.selectItemAtIndex, M = this.selectHighlightedItem, y = this.setHighlightedIndex, V = this.clearSelection, x = this.clearItems, T = this.reset, k = this.setItemCount, L = this.unsetItemCount, D = this.internalSetState;
828
- return {
829
- // prop getters
830
- getRootProps: E,
831
- getToggleButtonProps: w,
832
- getLabelProps: b,
833
- getMenuProps: R,
834
- getInputProps: h,
835
- getItemProps: P,
836
- // actions
837
- reset: T,
838
- openMenu: u,
839
- closeMenu: p,
840
- toggleMenu: a,
841
- selectItem: m,
842
- selectItemAtIndex: _,
843
- selectHighlightedItem: M,
844
- setHighlightedIndex: y,
845
- clearSelection: V,
846
- clearItems: x,
847
- setItemCount: k,
848
- unsetItemCount: L,
849
- setState: D,
850
- // props
851
- itemToString: d,
852
- // derived
853
- id: v,
854
- // state
855
- highlightedIndex: s,
856
- inputValue: l,
857
- isOpen: g,
858
- selectedItem: c
859
- };
860
- }, i.componentDidMount = function() {
861
- var e = this;
862
- if (process.env.NODE_ENV !== "production" && this.getMenuProps.called && !this.getMenuProps.suppressRefError && Dt(this._menuNode, this.getMenuProps), !this.props.environment)
863
- this.cleanup = function() {
864
- e.internalClearTimeouts();
865
- };
866
- else {
867
- var s = function() {
868
- e.isMouseDown = !0;
869
- }, l = function(w) {
870
- e.isMouseDown = !1;
871
- var b = Fe(w.target, [e._rootNode, e._menuNode], e.props.environment);
872
- !b && e.getState().isOpen && e.reset({
873
- type: Ut
874
- }, function() {
875
- return e.props.onOuterClick(e.getStateAndHelpers());
876
- });
877
- }, c = function() {
878
- e.isTouchMove = !1;
879
- }, g = function() {
880
- e.isTouchMove = !0;
881
- }, d = function(w) {
882
- var b = Fe(w.target, [e._rootNode, e._menuNode], e.props.environment, !1);
883
- !e.isTouchMove && !b && e.getState().isOpen && e.reset({
884
- type: en
885
- }, function() {
886
- return e.props.onOuterClick(e.getStateAndHelpers());
887
- });
888
- }, v = this.props.environment;
889
- v.addEventListener("mousedown", s), v.addEventListener("mouseup", l), v.addEventListener("touchstart", c), v.addEventListener("touchmove", g), v.addEventListener("touchend", d), this.cleanup = function() {
890
- e.internalClearTimeouts(), e.updateStatus.cancel(), v.removeEventListener("mousedown", s), v.removeEventListener("mouseup", l), v.removeEventListener("touchstart", c), v.removeEventListener("touchmove", g), v.removeEventListener("touchend", d);
891
- };
892
- }
893
- }, i.shouldScroll = function(e, s) {
894
- var l = this.props.highlightedIndex === void 0 ? this.getState() : this.props, c = l.highlightedIndex, g = s.highlightedIndex === void 0 ? e : s, d = g.highlightedIndex, v = c && this.getState().isOpen && !e.isOpen, E = c !== d;
895
- return v || E;
896
- }, i.componentDidUpdate = function(e, s) {
897
- process.env.NODE_ENV !== "production" && (Ze(this.state, e, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && Dt(this._menuNode, this.getMenuProps)), Le(this.props, "selectedItem") && this.props.selectedItemChanged(e.selectedItem, this.props.selectedItem) && this.internalSetState({
898
- type: Zt,
899
- inputValue: this.props.itemToString(this.props.selectedItem)
900
- }), !this.avoidScrolling && this.shouldScroll(s, e) && this.scrollHighlightedItemIntoView(), this.updateStatus();
901
- }, i.componentWillUnmount = function() {
902
- this.cleanup();
903
- }, i.render = function() {
904
- var e = Ct(this.props.children, re);
905
- 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;
906
- var s = Ct(e(this.getStateAndHelpers()));
907
- if (!s)
908
- return null;
909
- if (this.getRootProps.called || this.props.suppressRefError)
910
- return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && nr(s, this.getRootProps), s;
911
- if (Ht(s))
912
- return /* @__PURE__ */ Cn(s, this.getRootProps(Kt(s)));
913
- if (process.env.NODE_ENV !== "production")
914
- throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
915
- }, r;
916
- }(Dn);
917
- return t.defaultProps = {
918
- defaultHighlightedIndex: null,
919
- defaultIsOpen: !1,
920
- getA11yStatusMessage: kt,
921
- itemToString: function(r) {
922
- return r == null ? "" : (process.env.NODE_ENV !== "production" && qn(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));
923
- },
924
- onStateChange: re,
925
- onInputValueChange: re,
926
- onUserAction: re,
927
- onChange: re,
928
- onSelect: re,
929
- onOuterClick: re,
930
- selectedItemChanged: function(r, i) {
931
- return r !== i;
932
- },
933
- environment: (
934
- /* istanbul ignore next (ssr) */
935
- typeof window > "u" ? void 0 : window
936
- ),
937
- stateReducer: function(r, i) {
938
- return i;
939
- },
940
- suppressRefError: !1,
941
- scrollIntoView: At
942
- }, t.stateChangeTypes = Gn, t;
943
- }();
944
- process.env.NODE_ENV !== "production" && (tr.propTypes = {
945
- children: f.func,
946
- defaultHighlightedIndex: f.number,
947
- defaultIsOpen: f.bool,
948
- initialHighlightedIndex: f.number,
949
- initialSelectedItem: f.any,
950
- initialInputValue: f.string,
951
- initialIsOpen: f.bool,
952
- getA11yStatusMessage: f.func,
953
- itemToString: f.func,
954
- onChange: f.func,
955
- onSelect: f.func,
956
- onStateChange: f.func,
957
- onInputValueChange: f.func,
958
- onUserAction: f.func,
959
- onOuterClick: f.func,
960
- selectedItemChanged: f.func,
961
- stateReducer: f.func,
962
- itemCount: f.number,
963
- id: f.string,
964
- environment: f.shape({
965
- addEventListener: f.func.isRequired,
966
- removeEventListener: f.func.isRequired,
967
- document: f.shape({
968
- createElement: f.func.isRequired,
969
- getElementById: f.func.isRequired,
970
- activeElement: f.any.isRequired,
971
- body: f.any.isRequired
972
- }).isRequired,
973
- Node: f.func.isRequired
974
- }),
975
- suppressRefError: f.bool,
976
- scrollIntoView: f.func,
977
- // things we keep in state for uncontrolled components
978
- // but can accept as props for controlled components
979
- /* eslint-disable react/no-unused-prop-types */
980
- selectedItem: f.any,
981
- isOpen: f.bool,
982
- inputValue: f.string,
983
- highlightedIndex: f.number,
984
- labelId: f.string,
985
- inputId: f.string,
986
- menuId: f.string,
987
- getItemId: f.func
988
- /* eslint-enable react/no-unused-prop-types */
989
- });
990
- function Dt(t, n) {
991
- var r = n.refKey;
992
- t || console.error('downshift: The ref prop "' + r + '" from getMenuProps was not applied correctly on your menu element.');
993
- }
994
- function nr(t, n) {
995
- var r = n.refKey, i = r !== "ref", o = !Ht(t);
996
- o && !i && !yt.isForwardRef(t) ? 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 + '"'), !yt.isForwardRef(t) && !Kt(t)[r] && console.error('downshift: You must apply the ref prop "' + r + '" from getRootProps onto your root element.');
997
- }
998
- var rr = ["highlightedIndex", "items", "environment"], tn = {
999
- highlightedIndex: -1,
1000
- isOpen: !1,
1001
- selectedItem: null,
1002
- inputValue: ""
1003
- };
1004
- function or(t, n, r) {
1005
- var i = t.props, o = t.type, e = {};
1006
- Object.keys(n).forEach(function(s) {
1007
- ir(s, t, n, r), r[s] !== n[s] && (e[s] = r[s]);
1008
- }), i.onStateChange && Object.keys(e).length && i.onStateChange(N({
1009
- type: o
1010
- }, e));
1011
- }
1012
- function ir(t, n, r, i) {
1013
- var o = n.props, e = n.type, s = "on" + et(t) + "Change";
1014
- o[s] && i[t] !== void 0 && i[t] !== r[t] && o[s](N({
1015
- type: e
1016
- }, i));
1017
- }
1018
- function sr(t, n) {
1019
- return n.changes;
1020
- }
1021
- function ur(t) {
1022
- var n = t.selectedItem, r = t.itemToString;
1023
- return n ? r(n) + " has been selected." : "";
1024
- }
1025
- var lr = Je(function(t, n) {
1026
- Lt(t(), n);
1027
- }, 200), ar = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Sn : te, dr = "useId" in Ke ? function(n) {
1028
- var r = n.id, i = n.labelId, o = n.menuId, e = n.getItemId, s = n.toggleButtonId, l = n.inputId, c = "downshift-" + Ke.useId();
1029
- r || (r = c);
1030
- var g = X({
1031
- labelId: i || r + "-label",
1032
- menuId: o || r + "-menu",
1033
- getItemId: e || function(d) {
1034
- return r + "-item-" + d;
1035
- },
1036
- toggleButtonId: s || r + "-toggle-button",
1037
- inputId: l || r + "-input"
1038
- });
1039
- return g.current;
1040
- } : function(n) {
1041
- var r = n.id, i = r === void 0 ? "downshift-" + Tt() : r, o = n.labelId, e = n.menuId, s = n.getItemId, l = n.toggleButtonId, c = n.inputId, g = X({
1042
- labelId: o || i + "-label",
1043
- menuId: e || i + "-menu",
1044
- getItemId: s || function(d) {
1045
- return i + "-item-" + d;
1046
- },
1047
- toggleButtonId: l || i + "-toggle-button",
1048
- inputId: c || i + "-input"
1049
- });
1050
- return g.current;
1051
- };
1052
- function cr(t, n, r, i) {
1053
- var o, e;
1054
- if (t === void 0) {
1055
- if (n === void 0)
1056
- throw new Error(i);
1057
- o = r[n], e = n;
1058
- } else
1059
- e = n === void 0 ? r.indexOf(t) : n, o = t;
1060
- return [o, e];
1061
- }
1062
- function et(t) {
1063
- return "" + t.slice(0, 1).toUpperCase() + t.slice(1);
1064
- }
1065
- function nn(t) {
1066
- var n = X(t);
1067
- return n.current = t, n;
1068
- }
1069
- function pr(t, n, r, i) {
1070
- var o = X(), e = X(), s = Y(function(w, b) {
1071
- e.current = b, w = $e(w, b.props);
1072
- var R = t(w, b), h = b.props.stateReducer(w, N({}, b, {
1073
- changes: R
1074
- }));
1075
- return h;
1076
- }, [t]), l = Nn(s, n, r), c = l[0], g = l[1], d = nn(n), v = Y(function(w) {
1077
- return g(N({
1078
- props: d.current
1079
- }, w));
1080
- }, [d]), E = e.current;
1081
- return te(function() {
1082
- var w = $e(o.current, E == null ? void 0 : E.props), b = E && o.current && !i(w, c);
1083
- b && or(E, w, c), o.current = c;
1084
- }, [c, E, i]), [c, v];
1085
- }
1086
- var be = {
1087
- itemToString: function(n) {
1088
- return n ? String(n) : "";
1089
- },
1090
- itemToKey: function(n) {
1091
- return n;
1092
- },
1093
- stateReducer: sr,
1094
- getA11ySelectionMessage: ur,
1095
- scrollIntoView: At,
1096
- environment: (
1097
- /* istanbul ignore next (ssr) */
1098
- typeof window > "u" ? void 0 : window
1099
- )
1100
- };
1101
- function ue(t, n, r) {
1102
- r === void 0 && (r = tn);
1103
- var i = t["default" + et(n)];
1104
- return i !== void 0 ? i : r[n];
1105
- }
1106
- function Se(t, n, r) {
1107
- r === void 0 && (r = tn);
1108
- var i = t[n];
1109
- if (i !== void 0)
1110
- return i;
1111
- var o = t["initial" + et(n)];
1112
- return o !== void 0 ? o : ue(t, n, r);
1113
- }
1114
- function fr(t) {
1115
- var n = Se(t, "selectedItem"), r = Se(t, "isOpen"), i = Se(t, "highlightedIndex"), o = Se(t, "inputValue");
1116
- return {
1117
- highlightedIndex: i < 0 && n && r ? t.items.findIndex(function(e) {
1118
- return t.itemToKey(e) === t.itemToKey(n);
1119
- }) : i,
1120
- isOpen: r,
1121
- selectedItem: n,
1122
- inputValue: o
1123
- };
1124
- }
1125
- function Ne(t, n, r) {
1126
- var i = t.items, o = t.initialHighlightedIndex, e = t.defaultHighlightedIndex, s = t.itemToKey, l = n.selectedItem, c = n.highlightedIndex;
1127
- return i.length === 0 ? -1 : o !== void 0 && c === o ? o : e !== void 0 ? e : l ? i.findIndex(function(g) {
1128
- return s(l) === s(g);
1129
- }) : r === 0 ? -1 : r < 0 ? i.length - 1 : 0;
1130
- }
1131
- function gr(t, n, r) {
1132
- var i = X({
1133
- isMouseDown: !1,
1134
- isTouchMove: !1,
1135
- isTouchEnd: !1
1136
- });
1137
- return te(function() {
1138
- if (!t)
1139
- return re;
1140
- var o = n.map(function(d) {
1141
- return d.current;
1142
- });
1143
- function e() {
1144
- i.current.isTouchEnd = !1, i.current.isMouseDown = !0;
1145
- }
1146
- function s(d) {
1147
- i.current.isMouseDown = !1, Fe(d.target, o, t) || r();
1148
- }
1149
- function l() {
1150
- i.current.isTouchEnd = !1, i.current.isTouchMove = !1;
1151
- }
1152
- function c() {
1153
- i.current.isTouchMove = !0;
1154
- }
1155
- function g(d) {
1156
- i.current.isTouchEnd = !0, !i.current.isTouchMove && !Fe(d.target, o, t, !1) && r();
1157
- }
1158
- return t.addEventListener("mousedown", e), t.addEventListener("mouseup", s), t.addEventListener("touchstart", l), t.addEventListener("touchmove", c), t.addEventListener("touchend", g), function() {
1159
- t.removeEventListener("mousedown", e), t.removeEventListener("mouseup", s), t.removeEventListener("touchstart", l), t.removeEventListener("touchmove", c), t.removeEventListener("touchend", g);
1160
- };
1161
- }, [t, r]), i.current;
1162
- }
1163
- var rn = function() {
1164
- return re;
1165
- };
1166
- process.env.NODE_ENV !== "production" && (rn = function() {
1167
- for (var n = X(!0), r = arguments.length, i = new Array(r), o = 0; o < r; o++)
1168
- i[o] = arguments[o];
1169
- var e = X(i.reduce(function(l, c) {
1170
- return l[c] = {}, l;
1171
- }, {}));
1172
- te(function() {
1173
- Object.keys(e.current).forEach(function(l) {
1174
- var c = e.current[l];
1175
- if (n.current && !Object.keys(c).length) {
1176
- console.error("downshift: You forgot to call the " + l + " getter function on your component / element.");
1177
- return;
1178
- }
1179
- var g = c.suppressRefError, d = c.refKey, v = c.elementRef;
1180
- (!v || !v.current) && !g && console.error('downshift: The ref prop "' + d + '" from ' + l + " was not applied correctly on your element.");
1181
- }), n.current = !1;
1182
- });
1183
- var s = Y(function(l, c, g, d) {
1184
- e.current[l] = {
1185
- suppressRefError: c,
1186
- refKey: g,
1187
- elementRef: d
1188
- };
1189
- }, []);
1190
- return s;
1191
- });
1192
- function St(t, n, r) {
1193
- var i = r.highlightedIndex, o = r.items, e = r.environment, s = se(r, rr), l = Be();
1194
- te(function() {
1195
- l || !(e != null && e.document) || lr(function() {
1196
- return t(N({
1197
- highlightedIndex: i,
1198
- highlightedItem: o[i],
1199
- resultCount: o.length
1200
- }, s));
1201
- }, e.document);
1202
- }, n);
1203
- }
1204
- function hr(t) {
1205
- var n = t.highlightedIndex, r = t.isOpen, i = t.itemRefs, o = t.getItemNodeFromIndex, e = t.menuElement, s = t.scrollIntoView, l = X(!0);
1206
- return ar(function() {
1207
- n < 0 || !r || !Object.keys(i.current).length || (l.current === !1 ? l.current = !0 : s(o(n), e));
1208
- }, [n]), l;
1209
- }
1210
- var on = re;
1211
- process.env.NODE_ENV !== "production" && (on = function(n) {
1212
- var r = n.props, i = n.state, o = X(r), e = Be();
1213
- te(function() {
1214
- e || (Ze(i, o.current, r), o.current = r);
1215
- }, [i, r, e]);
1216
- });
1217
- function Nt(t, n, r) {
1218
- var i;
1219
- r === void 0 && (r = !0);
1220
- var o = ((i = t.items) == null ? void 0 : i.length) && n >= 0;
1221
- return N({
1222
- isOpen: !1,
1223
- highlightedIndex: -1
1224
- }, o && N({
1225
- selectedItem: t.items[n],
1226
- isOpen: ue(t, "isOpen"),
1227
- highlightedIndex: ue(t, "highlightedIndex")
1228
- }, r && {
1229
- inputValue: t.itemToString(t.items[n])
1230
- }));
1231
- }
1232
- function mr(t, n) {
1233
- return t.isOpen === n.isOpen && t.inputValue === n.inputValue && t.highlightedIndex === n.highlightedIndex && t.selectedItem === n.selectedItem;
1234
- }
1235
- function Be() {
1236
- var t = Ke.useRef(!0);
1237
- return Ke.useEffect(function() {
1238
- return t.current = !1, function() {
1239
- t.current = !0;
1240
- };
1241
- }, []), t.current;
1242
- }
1243
- var sn = {
1244
- environment: f.shape({
1245
- addEventListener: f.func.isRequired,
1246
- removeEventListener: f.func.isRequired,
1247
- document: f.shape({
1248
- createElement: f.func.isRequired,
1249
- getElementById: f.func.isRequired,
1250
- activeElement: f.any.isRequired,
1251
- body: f.any.isRequired
1252
- }).isRequired,
1253
- Node: f.func.isRequired
1254
- }),
1255
- itemToString: f.func,
1256
- itemToKey: f.func,
1257
- stateReducer: f.func
1258
- }, un = N({}, sn, {
1259
- getA11yStatusMessage: f.func,
1260
- highlightedIndex: f.number,
1261
- defaultHighlightedIndex: f.number,
1262
- initialHighlightedIndex: f.number,
1263
- isOpen: f.bool,
1264
- defaultIsOpen: f.bool,
1265
- initialIsOpen: f.bool,
1266
- selectedItem: f.any,
1267
- initialSelectedItem: f.any,
1268
- defaultSelectedItem: f.any,
1269
- id: f.string,
1270
- labelId: f.string,
1271
- menuId: f.string,
1272
- getItemId: f.func,
1273
- toggleButtonId: f.string,
1274
- onSelectedItemChange: f.func,
1275
- onHighlightedIndexChange: f.func,
1276
- onStateChange: f.func,
1277
- onIsOpenChange: f.func,
1278
- scrollIntoView: f.func
1279
- });
1280
- function vr(t, n, r) {
1281
- var i = n.type, o = n.props, e;
1282
- switch (i) {
1283
- case r.ItemMouseMove:
1284
- e = {
1285
- highlightedIndex: n.disabled ? -1 : n.index
1286
- };
1287
- break;
1288
- case r.MenuMouseLeave:
1289
- e = {
1290
- highlightedIndex: -1
1291
- };
1292
- break;
1293
- case r.ToggleButtonClick:
1294
- case r.FunctionToggleMenu:
1295
- e = {
1296
- isOpen: !t.isOpen,
1297
- highlightedIndex: t.isOpen ? -1 : Ne(o, t, 0)
1298
- };
1299
- break;
1300
- case r.FunctionOpenMenu:
1301
- e = {
1302
- isOpen: !0,
1303
- highlightedIndex: Ne(o, t, 0)
1304
- };
1305
- break;
1306
- case r.FunctionCloseMenu:
1307
- e = {
1308
- isOpen: !1
1309
- };
1310
- break;
1311
- case r.FunctionSetHighlightedIndex:
1312
- e = {
1313
- highlightedIndex: n.highlightedIndex
1314
- };
1315
- break;
1316
- case r.FunctionSetInputValue:
1317
- e = {
1318
- inputValue: n.inputValue
1319
- };
1320
- break;
1321
- case r.FunctionReset:
1322
- e = {
1323
- highlightedIndex: ue(o, "highlightedIndex"),
1324
- isOpen: ue(o, "isOpen"),
1325
- selectedItem: ue(o, "selectedItem"),
1326
- inputValue: ue(o, "inputValue")
1327
- };
1328
- break;
1329
- default:
1330
- throw new Error("Reducer called without proper action type.");
1331
- }
1332
- return N({}, t, e);
1333
- }
1334
- Oe(Oe({}, un), { items: f.array.isRequired, isItemDisabled: f.func, getA11ySelectionMessage: f.func });
1335
- function _r(t) {
1336
- var n = t.isOpen, r = t.resultCount, i = t.previousResultCount;
1337
- 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." : "";
1338
- }
1339
- Oe(Oe({}, be), { getA11yStatusMessage: _r, isItemDisabled: function() {
1340
- return !1;
1341
- } });
1342
- process.env.NODE_ENV;
1343
- process.env.NODE_ENV;
1344
- process.env.NODE_ENV;
1345
- process.env.NODE_ENV;
1346
- process.env.NODE_ENV;
1347
- process.env.NODE_ENV;
1348
- process.env.NODE_ENV;
1349
- process.env.NODE_ENV;
1350
- process.env.NODE_ENV;
1351
- process.env.NODE_ENV;
1352
- process.env.NODE_ENV;
1353
- process.env.NODE_ENV;
1354
- process.env.NODE_ENV;
1355
- process.env.NODE_ENV;
1356
- process.env.NODE_ENV;
1357
- process.env.NODE_ENV;
1358
- process.env.NODE_ENV;
1359
- process.env.NODE_ENV;
1360
- process.env.NODE_ENV;
1361
- process.env.NODE_ENV;
1362
- process.env.NODE_ENV;
1363
- process.env.NODE_ENV;
1364
- process.env.NODE_ENV;
1365
- var tt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, nt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, rt = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, ot = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, it = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, st = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, ut = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, lt = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, at = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, Ue = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, dt = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, ln = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, an = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, ct = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, dn = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, cn = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, pn = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, fn = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, gn = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, pt = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, hn = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, mn = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, ft = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, vn = /* @__PURE__ */ Object.freeze({
1366
- __proto__: null,
1367
- InputKeyDownArrowDown: tt,
1368
- InputKeyDownArrowUp: nt,
1369
- InputKeyDownEscape: rt,
1370
- InputKeyDownHome: ot,
1371
- InputKeyDownEnd: it,
1372
- InputKeyDownPageUp: st,
1373
- InputKeyDownPageDown: ut,
1374
- InputKeyDownEnter: lt,
1375
- InputChange: at,
1376
- InputBlur: Ue,
1377
- InputClick: dt,
1378
- MenuMouseLeave: ln,
1379
- ItemMouseMove: an,
1380
- ItemClick: ct,
1381
- ToggleButtonClick: dn,
1382
- FunctionToggleMenu: cn,
1383
- FunctionOpenMenu: pn,
1384
- FunctionCloseMenu: fn,
1385
- FunctionSetHighlightedIndex: gn,
1386
- FunctionSelectItem: pt,
1387
- FunctionSetInputValue: hn,
1388
- FunctionReset: mn,
1389
- ControlledPropUpdatedSelectedItem: ft
1390
- });
1391
- function Ir(t) {
1392
- var n = fr(t), r = n.selectedItem, i = n.inputValue;
1393
- return i === "" && r && t.defaultInputValue === void 0 && t.initialInputValue === void 0 && t.inputValue === void 0 && (i = t.itemToString(r)), N({}, n, {
1394
- inputValue: i
1395
- });
1396
- }
1397
- var Er = N({}, un, {
1398
- items: f.array.isRequired,
1399
- isItemDisabled: f.func,
1400
- selectedItemChanged: f.func,
1401
- getA11ySelectionMessage: f.func,
1402
- inputValue: f.string,
1403
- defaultInputValue: f.string,
1404
- initialInputValue: f.string,
1405
- inputId: f.string,
1406
- onInputValueChange: f.func
1407
- });
1408
- function yr(t, n, r, i) {
1409
- var o = X(), e = pr(t, n, r, i), s = e[0], l = e[1], c = Be();
1410
- return te(function() {
1411
- if (Le(n, "selectedItem")) {
1412
- if (!c) {
1413
- var g;
1414
- n.selectedItemChanged === void 0 ? g = 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'), g = n.selectedItemChanged(o.current, n.selectedItem)), g && l({
1415
- type: ft,
1416
- inputValue: n.itemToString(n.selectedItem)
1417
- });
1418
- }
1419
- o.current = s.selectedItem === o.current ? n.selectedItem : s.selectedItem;
1420
- }
1421
- }, [s.selectedItem, n.selectedItem]), [$e(s, n), l];
1422
- }
1423
- var _n = re;
1424
- process.env.NODE_ENV !== "production" && (_n = function(n, r) {
1425
- f.checkPropTypes(Er, n, "prop", r.name);
1426
- });
1427
- var br = N({}, be, {
1428
- getA11yStatusMessage: kt,
1429
- isItemDisabled: function() {
1430
- return !1;
1431
- }
1432
- });
1433
- function wr(t, n) {
1434
- var r, i = n.type, o = n.props, e = n.altKey, s;
1435
- switch (i) {
1436
- case ct:
1437
- s = {
1438
- isOpen: ue(o, "isOpen"),
1439
- highlightedIndex: ue(o, "highlightedIndex"),
1440
- selectedItem: o.items[n.index],
1441
- inputValue: o.itemToString(o.items[n.index])
1442
- };
1443
- break;
1444
- case tt:
1445
- t.isOpen ? s = {
1446
- highlightedIndex: Ie(t.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
1447
- } : s = {
1448
- highlightedIndex: e && t.selectedItem == null ? -1 : Ne(o, t, 1),
1449
- isOpen: o.items.length >= 0
1450
- };
1451
- break;
1452
- case nt:
1453
- t.isOpen ? e ? s = Nt(o, t.highlightedIndex) : s = {
1454
- highlightedIndex: Ie(t.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
1455
- } : s = {
1456
- highlightedIndex: Ne(o, t, -1),
1457
- isOpen: o.items.length >= 0
1458
- };
1459
- break;
1460
- case lt:
1461
- s = Nt(o, t.highlightedIndex);
1462
- break;
1463
- case rt:
1464
- s = N({
1465
- isOpen: !1,
1466
- highlightedIndex: -1
1467
- }, !t.isOpen && {
1468
- selectedItem: null,
1469
- inputValue: ""
1470
- });
1471
- break;
1472
- case st:
1473
- s = {
1474
- highlightedIndex: Ie(t.highlightedIndex, -10, o.items, o.isItemDisabled, !0)
1475
- };
1476
- break;
1477
- case ut:
1478
- s = {
1479
- highlightedIndex: Ie(t.highlightedIndex, 10, o.items, o.isItemDisabled, !0)
1480
- };
1481
- break;
1482
- case ot:
1483
- s = {
1484
- highlightedIndex: xe(0, !1, o.items, o.isItemDisabled)
1485
- };
1486
- break;
1487
- case it:
1488
- s = {
1489
- highlightedIndex: xe(o.items.length - 1, !0, o.items, o.isItemDisabled)
1490
- };
1491
- break;
1492
- case Ue:
1493
- s = N({
1494
- isOpen: !1,
1495
- highlightedIndex: -1
1496
- }, t.highlightedIndex >= 0 && ((r = o.items) == null ? void 0 : r.length) && n.selectItem && {
1497
- selectedItem: o.items[t.highlightedIndex],
1498
- inputValue: o.itemToString(o.items[t.highlightedIndex])
1499
- });
1500
- break;
1501
- case at:
1502
- s = {
1503
- isOpen: !0,
1504
- highlightedIndex: ue(o, "highlightedIndex"),
1505
- inputValue: n.inputValue
1506
- };
1507
- break;
1508
- case dt:
1509
- s = {
1510
- isOpen: !t.isOpen,
1511
- highlightedIndex: t.isOpen ? -1 : Ne(o, t, 0)
1512
- };
1513
- break;
1514
- case pt:
1515
- s = {
1516
- selectedItem: n.selectedItem,
1517
- inputValue: o.itemToString(n.selectedItem)
1518
- };
1519
- break;
1520
- case ft:
1521
- s = {
1522
- inputValue: n.inputValue
1523
- };
1524
- break;
1525
- default:
1526
- return vr(t, n, vn);
1527
- }
1528
- return N({}, t, s);
1529
- }
1530
- var Or = ["onMouseLeave", "refKey", "ref"], xr = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Cr = ["onClick", "onPress", "refKey", "ref"], Dr = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
1531
- we.stateChangeTypes = vn;
1532
- function we(t) {
1533
- t === void 0 && (t = {}), _n(t, we);
1534
- var n = N({}, br, t), r = n.items, i = n.scrollIntoView, o = n.environment, e = n.getA11yStatusMessage, s = n.getA11ySelectionMessage, l = n.itemToString, c = yr(wr, n, Ir, mr), g = c[0], d = c[1], v = g.isOpen, E = g.highlightedIndex, w = g.selectedItem, b = g.inputValue, R = X(null), h = X({}), P = X(null), u = X(null), p = Be(), a = dr(n), m = X(), _ = nn({
1535
- state: g,
1536
- props: n
1537
- }), M = Y(function(S) {
1538
- return h.current[a.getItemId(S)];
1539
- }, [a]);
1540
- St(e, [v, E, b, r], N({
1541
- previousResultCount: m.current,
1542
- items: r,
1543
- environment: o,
1544
- itemToString: l
1545
- }, g)), St(s, [w], N({
1546
- previousResultCount: m.current,
1547
- items: r,
1548
- environment: o,
1549
- itemToString: l
1550
- }, g));
1551
- var y = hr({
1552
- menuElement: R.current,
1553
- highlightedIndex: E,
1554
- isOpen: v,
1555
- itemRefs: h,
1556
- scrollIntoView: i,
1557
- getItemNodeFromIndex: M
1558
- });
1559
- on({
1560
- props: n,
1561
- state: g
1562
- }), te(function() {
1563
- var S = Se(n, "isOpen");
1564
- S && P.current && P.current.focus();
1565
- }, []), te(function() {
1566
- p || (m.current = r.length);
1567
- });
1568
- var V = gr(o, [u, R, P], Y(function() {
1569
- _.current.state.isOpen && d({
1570
- type: Ue,
1571
- selectItem: !1
1572
- });
1573
- }, [d, _])), x = rn("getInputProps", "getMenuProps");
1574
- te(function() {
1575
- v || (h.current = {});
1576
- }, [v]), te(function() {
1577
- var S;
1578
- !v || !(o != null && o.document) || !(P != null && (S = P.current) != null && S.focus) || o.document.activeElement !== P.current && P.current.focus();
1579
- }, [v, o]);
1580
- var T = xn(function() {
1581
- return {
1582
- ArrowDown: function(O) {
1583
- O.preventDefault(), d({
1584
- type: tt,
1585
- altKey: O.altKey
1586
- });
1587
- },
1588
- ArrowUp: function(O) {
1589
- O.preventDefault(), d({
1590
- type: nt,
1591
- altKey: O.altKey
1592
- });
1593
- },
1594
- Home: function(O) {
1595
- _.current.state.isOpen && (O.preventDefault(), d({
1596
- type: ot
1597
- }));
1598
- },
1599
- End: function(O) {
1600
- _.current.state.isOpen && (O.preventDefault(), d({
1601
- type: it
1602
- }));
1603
- },
1604
- Escape: function(O) {
1605
- var C = _.current.state;
1606
- (C.isOpen || C.inputValue || C.selectedItem || C.highlightedIndex > -1) && (O.preventDefault(), d({
1607
- type: rt
1608
- }));
1609
- },
1610
- Enter: function(O) {
1611
- var C = _.current.state;
1612
- !C.isOpen || O.which === 229 || (O.preventDefault(), d({
1613
- type: lt
1614
- }));
1615
- },
1616
- PageUp: function(O) {
1617
- _.current.state.isOpen && (O.preventDefault(), d({
1618
- type: st
1619
- }));
1620
- },
1621
- PageDown: function(O) {
1622
- _.current.state.isOpen && (O.preventDefault(), d({
1623
- type: ut
1624
- }));
1625
- }
1626
- };
1627
- }, [d, _]), k = Y(function(S) {
1628
- return N({
1629
- id: a.labelId,
1630
- htmlFor: a.inputId
1631
- }, S);
1632
- }, [a]), L = Y(function(S, O) {
1633
- var C, A = S === void 0 ? {} : S, Q = A.onMouseLeave, B = A.refKey, U = B === void 0 ? "ref" : B, J = A.ref, z = se(A, Or), ee = O === void 0 ? {} : O, I = ee.suppressRefError, oe = I === void 0 ? !1 : I;
1634
- return x("getMenuProps", oe, U, R), N((C = {}, C[U] = ye(J, function(G) {
1635
- R.current = G;
1636
- }), C.id = a.menuId, C.role = "listbox", C["aria-labelledby"] = z && z["aria-label"] ? void 0 : "" + a.labelId, C.onMouseLeave = j(Q, function() {
1637
- d({
1638
- type: ln
1639
- });
1640
- }), C), z);
1641
- }, [d, x, a]), D = Y(function(S) {
1642
- var O, C, A = S === void 0 ? {} : S, Q = A.item, B = A.index, U = A.refKey, J = U === void 0 ? "ref" : U, z = A.ref, ee = A.onMouseMove, I = A.onMouseDown, oe = A.onClick;
1643
- A.onPress;
1644
- var G = A.disabled, Ee = se(A, xr);
1645
- G !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
1646
- var Ce = _.current, Me = Ce.props, de = Ce.state, Re = cr(Q, B, Me.items, "Pass either item or index to getItemProps!"), We = Re[0], ce = Re[1], De = Me.isItemDisabled(We, ce), Ye = "onClick", Ve = oe, ge = function() {
1647
- V.isTouchEnd || ce === de.highlightedIndex || (y.current = !1, d({
1648
- type: an,
1649
- index: ce,
1650
- disabled: De
1651
- }));
1652
- }, _e = function() {
1653
- d({
1654
- type: ct,
1655
- index: ce
1656
- });
1657
- }, he = function(On) {
1658
- return On.preventDefault();
1659
- };
1660
- return N((O = {}, O[J] = ye(z, function(ie) {
1661
- ie && (h.current[a.getItemId(ce)] = ie);
1662
- }), O["aria-disabled"] = De, O["aria-selected"] = "" + (ce === de.highlightedIndex), O.id = a.getItemId(ce), O.role = "option", O), !De && (C = {}, C[Ye] = j(Ve, _e), C), {
1663
- onMouseMove: j(ee, ge),
1664
- onMouseDown: j(I, he)
1665
- }, Ee);
1666
- }, [d, a, _, V, y]), F = Y(function(S) {
1667
- var O, C = S === void 0 ? {} : S, A = C.onClick;
1668
- C.onPress;
1669
- var Q = C.refKey, B = Q === void 0 ? "ref" : Q, U = C.ref, J = se(C, Cr), z = _.current.state, ee = function() {
1670
- d({
1671
- type: dn
1672
- });
1673
- };
1674
- return N((O = {}, O[B] = ye(U, function(I) {
1675
- u.current = I;
1676
- }), O["aria-controls"] = a.menuId, O["aria-expanded"] = z.isOpen, O.id = a.toggleButtonId, O.tabIndex = -1, O), !J.disabled && N({}, {
1677
- onClick: j(A, ee)
1678
- }), J);
1679
- }, [d, _, a]), W = Y(function(S, O) {
1680
- var C, A = S === void 0 ? {} : S, Q = A.onKeyDown, B = A.onChange, U = A.onInput, J = A.onBlur;
1681
- A.onChangeText;
1682
- var z = A.onClick, ee = A.refKey, I = ee === void 0 ? "ref" : ee, oe = A.ref, G = se(A, Dr), Ee = O === void 0 ? {} : O, Ce = Ee.suppressRefError, Me = Ce === void 0 ? !1 : Ce;
1683
- x("getInputProps", Me, I, P);
1684
- var de = _.current.state, Re = function(he) {
1685
- var ie = Xe(he);
1686
- ie && T[ie] && T[ie](he);
1687
- }, We = function(he) {
1688
- d({
1689
- type: at,
1690
- inputValue: he.target.value
1691
- });
1692
- }, ce = function(he) {
1693
- if (o != null && o.document && de.isOpen && !V.isMouseDown) {
1694
- var ie = he.relatedTarget === null && o.document.activeElement !== o.document.body;
1695
- d({
1696
- type: Ue,
1697
- selectItem: !ie
1698
- });
1699
- }
1700
- }, De = function() {
1701
- d({
1702
- type: dt
1703
- });
1704
- }, Ye = "onChange", Ve = {};
1705
- if (!G.disabled) {
1706
- var ge;
1707
- Ve = (ge = {}, ge[Ye] = j(B, U, We), ge.onKeyDown = j(Q, Re), ge.onBlur = j(J, ce), ge.onClick = j(z, De), ge);
1708
- }
1709
- return N((C = {}, C[I] = ye(oe, function(_e) {
1710
- P.current = _e;
1711
- }), C["aria-activedescendant"] = de.isOpen && de.highlightedIndex > -1 ? a.getItemId(de.highlightedIndex) : "", C["aria-autocomplete"] = "list", C["aria-controls"] = a.menuId, C["aria-expanded"] = de.isOpen, C["aria-labelledby"] = G && G["aria-label"] ? void 0 : a.labelId, C.autoComplete = "off", C.id = a.inputId, C.role = "combobox", C.value = de.inputValue, C), Ve, G);
1712
- }, [d, a, o, T, _, V, x]), $ = Y(function() {
1713
- d({
1714
- type: cn
1715
- });
1716
- }, [d]), le = Y(function() {
1717
- d({
1718
- type: fn
1719
- });
1720
- }, [d]), ae = Y(function() {
1721
- d({
1722
- type: pn
1723
- });
1724
- }, [d]), pe = Y(function(S) {
1725
- d({
1726
- type: gn,
1727
- highlightedIndex: S
1728
- });
1729
- }, [d]), me = Y(function(S) {
1730
- d({
1731
- type: pt,
1732
- selectedItem: S
1733
- });
1734
- }, [d]), ve = Y(function(S) {
1735
- d({
1736
- type: hn,
1737
- inputValue: S
1738
- });
1739
- }, [d]), fe = Y(function() {
1740
- d({
1741
- type: mn
1742
- });
1743
- }, [d]);
1744
- return {
1745
- // prop getters.
1746
- getItemProps: D,
1747
- getLabelProps: k,
1748
- getMenuProps: L,
1749
- getInputProps: W,
1750
- getToggleButtonProps: F,
1751
- // actions.
1752
- toggleMenu: $,
1753
- openMenu: ae,
1754
- closeMenu: le,
1755
- setHighlightedIndex: pe,
1756
- setInputValue: ve,
1757
- selectItem: me,
1758
- reset: fe,
1759
- // state.
1760
- highlightedIndex: E,
1761
- isOpen: v,
1762
- selectedItem: w,
1763
- inputValue: b
1764
- };
1765
- }
1766
- function Sr(t) {
1767
- var n = t.removedSelectedItem, r = t.itemToString;
1768
- return r(n) + " has been removed.";
1769
- }
1770
- N({}, sn, {
1771
- selectedItems: f.array,
1772
- initialSelectedItems: f.array,
1773
- defaultSelectedItems: f.array,
1774
- getA11yRemovalMessage: f.func,
1775
- activeIndex: f.number,
1776
- initialActiveIndex: f.number,
1777
- defaultActiveIndex: f.number,
1778
- onActiveIndexChange: f.func,
1779
- onSelectedItemsChange: f.func,
1780
- keyNavigationNext: f.string,
1781
- keyNavigationPrevious: f.string
1782
- });
1783
- be.itemToString, be.itemToKey, be.stateReducer, be.environment;
1784
- process.env.NODE_ENV;
1785
- process.env.NODE_ENV;
1786
- process.env.NODE_ENV;
1787
- process.env.NODE_ENV;
1788
- process.env.NODE_ENV;
1789
- process.env.NODE_ENV;
1790
- process.env.NODE_ENV;
1791
- process.env.NODE_ENV;
1792
- process.env.NODE_ENV;
1793
- process.env.NODE_ENV;
1794
- process.env.NODE_ENV;
1795
- process.env.NODE_ENV;
1796
- process.env.NODE_ENV;
1797
- process.env.NODE_ENV;
1798
- var je = { exports: {} }, In = {
1799
- À: "A",
1800
- Á: "A",
1801
- Â: "A",
1802
- Ã: "A",
1803
- Ä: "A",
1804
- Å: "A",
1805
- Ấ: "A",
1806
- Ắ: "A",
1807
- Ẳ: "A",
1808
- Ẵ: "A",
1809
- Ặ: "A",
1810
- Æ: "AE",
1811
- Ầ: "A",
1812
- Ằ: "A",
1813
- Ȃ: "A",
1814
- Ả: "A",
1815
- Ạ: "A",
1816
- Ẩ: "A",
1817
- Ẫ: "A",
1818
- Ậ: "A",
1819
- Ç: "C",
1820
- Ḉ: "C",
1821
- È: "E",
1822
- É: "E",
1823
- Ê: "E",
1824
- Ë: "E",
1825
- Ế: "E",
1826
- Ḗ: "E",
1827
- Ề: "E",
1828
- Ḕ: "E",
1829
- Ḝ: "E",
1830
- Ȇ: "E",
1831
- Ẻ: "E",
1832
- Ẽ: "E",
1833
- Ẹ: "E",
1834
- Ể: "E",
1835
- Ễ: "E",
1836
- Ệ: "E",
1837
- Ì: "I",
1838
- Í: "I",
1839
- Î: "I",
1840
- Ï: "I",
1841
- Ḯ: "I",
1842
- Ȋ: "I",
1843
- Ỉ: "I",
1844
- Ị: "I",
1845
- Ð: "D",
1846
- Ñ: "N",
1847
- Ò: "O",
1848
- Ó: "O",
1849
- Ô: "O",
1850
- Õ: "O",
1851
- Ö: "O",
1852
- Ø: "O",
1853
- Ố: "O",
1854
- Ṍ: "O",
1855
- Ṓ: "O",
1856
- Ȏ: "O",
1857
- Ỏ: "O",
1858
- Ọ: "O",
1859
- Ổ: "O",
1860
- Ỗ: "O",
1861
- Ộ: "O",
1862
- Ờ: "O",
1863
- Ở: "O",
1864
- Ỡ: "O",
1865
- Ớ: "O",
1866
- Ợ: "O",
1867
- Ù: "U",
1868
- Ú: "U",
1869
- Û: "U",
1870
- Ü: "U",
1871
- Ủ: "U",
1872
- Ụ: "U",
1873
- Ử: "U",
1874
- Ữ: "U",
1875
- Ự: "U",
1876
- Ý: "Y",
1877
- à: "a",
1878
- á: "a",
1879
- â: "a",
1880
- ã: "a",
1881
- ä: "a",
1882
- å: "a",
1883
- ấ: "a",
1884
- ắ: "a",
1885
- ẳ: "a",
1886
- ẵ: "a",
1887
- ặ: "a",
1888
- æ: "ae",
1889
- ầ: "a",
1890
- ằ: "a",
1891
- ȃ: "a",
1892
- ả: "a",
1893
- ạ: "a",
1894
- ẩ: "a",
1895
- ẫ: "a",
1896
- ậ: "a",
1897
- ç: "c",
1898
- ḉ: "c",
1899
- è: "e",
1900
- é: "e",
1901
- ê: "e",
1902
- ë: "e",
1903
- ế: "e",
1904
- ḗ: "e",
1905
- ề: "e",
1906
- ḕ: "e",
1907
- ḝ: "e",
1908
- ȇ: "e",
1909
- ẻ: "e",
1910
- ẽ: "e",
1911
- ẹ: "e",
1912
- ể: "e",
1913
- ễ: "e",
1914
- ệ: "e",
1915
- ì: "i",
1916
- í: "i",
1917
- î: "i",
1918
- ï: "i",
1919
- ḯ: "i",
1920
- ȋ: "i",
1921
- ỉ: "i",
1922
- ị: "i",
1923
- ð: "d",
1924
- ñ: "n",
1925
- ò: "o",
1926
- ó: "o",
1927
- ô: "o",
1928
- õ: "o",
1929
- ö: "o",
1930
- ø: "o",
1931
- ố: "o",
1932
- ṍ: "o",
1933
- ṓ: "o",
1934
- ȏ: "o",
1935
- ỏ: "o",
1936
- ọ: "o",
1937
- ổ: "o",
1938
- ỗ: "o",
1939
- ộ: "o",
1940
- ờ: "o",
1941
- ở: "o",
1942
- ỡ: "o",
1943
- ớ: "o",
1944
- ợ: "o",
1945
- ù: "u",
1946
- ú: "u",
1947
- û: "u",
1948
- ü: "u",
1949
- ủ: "u",
1950
- ụ: "u",
1951
- ử: "u",
1952
- ữ: "u",
1953
- ự: "u",
1954
- ý: "y",
1955
- ÿ: "y",
1956
- Ā: "A",
1957
- ā: "a",
1958
- Ă: "A",
1959
- ă: "a",
1960
- Ą: "A",
1961
- ą: "a",
1962
- Ć: "C",
1963
- ć: "c",
1964
- Ĉ: "C",
1965
- ĉ: "c",
1966
- Ċ: "C",
1967
- ċ: "c",
1968
- Č: "C",
1969
- č: "c",
1970
- C̆: "C",
1971
- c̆: "c",
1972
- Ď: "D",
1973
- ď: "d",
1974
- Đ: "D",
1975
- đ: "d",
1976
- Ē: "E",
1977
- ē: "e",
1978
- Ĕ: "E",
1979
- ĕ: "e",
1980
- Ė: "E",
1981
- ė: "e",
1982
- Ę: "E",
1983
- ę: "e",
1984
- Ě: "E",
1985
- ě: "e",
1986
- Ĝ: "G",
1987
- Ǵ: "G",
1988
- ĝ: "g",
1989
- ǵ: "g",
1990
- Ğ: "G",
1991
- ğ: "g",
1992
- Ġ: "G",
1993
- ġ: "g",
1994
- Ģ: "G",
1995
- ģ: "g",
1996
- Ĥ: "H",
1997
- ĥ: "h",
1998
- Ħ: "H",
1999
- ħ: "h",
2000
- Ḫ: "H",
2001
- ḫ: "h",
2002
- Ĩ: "I",
2003
- ĩ: "i",
2004
- Ī: "I",
2005
- ī: "i",
2006
- Ĭ: "I",
2007
- ĭ: "i",
2008
- Į: "I",
2009
- į: "i",
2010
- İ: "I",
2011
- ı: "i",
2012
- IJ: "IJ",
2013
- ij: "ij",
2014
- Ĵ: "J",
2015
- ĵ: "j",
2016
- Ķ: "K",
2017
- ķ: "k",
2018
- Ḱ: "K",
2019
- ḱ: "k",
2020
- K̆: "K",
2021
- k̆: "k",
2022
- Ĺ: "L",
2023
- ĺ: "l",
2024
- Ļ: "L",
2025
- ļ: "l",
2026
- Ľ: "L",
2027
- ľ: "l",
2028
- Ŀ: "L",
2029
- ŀ: "l",
2030
- Ł: "l",
2031
- ł: "l",
2032
- Ḿ: "M",
2033
- ḿ: "m",
2034
- M̆: "M",
2035
- m̆: "m",
2036
- Ń: "N",
2037
- ń: "n",
2038
- Ņ: "N",
2039
- ņ: "n",
2040
- Ň: "N",
2041
- ň: "n",
2042
- ʼn: "n",
2043
- N̆: "N",
2044
- n̆: "n",
2045
- Ō: "O",
2046
- ō: "o",
2047
- Ŏ: "O",
2048
- ŏ: "o",
2049
- Ő: "O",
2050
- ő: "o",
2051
- Œ: "OE",
2052
- œ: "oe",
2053
- P̆: "P",
2054
- p̆: "p",
2055
- Ŕ: "R",
2056
- ŕ: "r",
2057
- Ŗ: "R",
2058
- ŗ: "r",
2059
- Ř: "R",
2060
- ř: "r",
2061
- R̆: "R",
2062
- r̆: "r",
2063
- Ȓ: "R",
2064
- ȓ: "r",
2065
- Ś: "S",
2066
- ś: "s",
2067
- Ŝ: "S",
2068
- ŝ: "s",
2069
- Ş: "S",
2070
- Ș: "S",
2071
- ș: "s",
2072
- ş: "s",
2073
- Š: "S",
2074
- š: "s",
2075
- Ţ: "T",
2076
- ţ: "t",
2077
- ț: "t",
2078
- Ț: "T",
2079
- Ť: "T",
2080
- ť: "t",
2081
- Ŧ: "T",
2082
- ŧ: "t",
2083
- T̆: "T",
2084
- t̆: "t",
2085
- Ũ: "U",
2086
- ũ: "u",
2087
- Ū: "U",
2088
- ū: "u",
2089
- Ŭ: "U",
2090
- ŭ: "u",
2091
- Ů: "U",
2092
- ů: "u",
2093
- Ű: "U",
2094
- ű: "u",
2095
- Ų: "U",
2096
- ų: "u",
2097
- Ȗ: "U",
2098
- ȗ: "u",
2099
- V̆: "V",
2100
- v̆: "v",
2101
- Ŵ: "W",
2102
- ŵ: "w",
2103
- Ẃ: "W",
2104
- ẃ: "w",
2105
- X̆: "X",
2106
- x̆: "x",
2107
- Ŷ: "Y",
2108
- ŷ: "y",
2109
- Ÿ: "Y",
2110
- Y̆: "Y",
2111
- y̆: "y",
2112
- Ź: "Z",
2113
- ź: "z",
2114
- Ż: "Z",
2115
- ż: "z",
2116
- Ž: "Z",
2117
- ž: "z",
2118
- ſ: "s",
2119
- ƒ: "f",
2120
- Ơ: "O",
2121
- ơ: "o",
2122
- Ư: "U",
2123
- ư: "u",
2124
- Ǎ: "A",
2125
- ǎ: "a",
2126
- Ǐ: "I",
2127
- ǐ: "i",
2128
- Ǒ: "O",
2129
- ǒ: "o",
2130
- Ǔ: "U",
2131
- ǔ: "u",
2132
- Ǖ: "U",
2133
- ǖ: "u",
2134
- Ǘ: "U",
2135
- ǘ: "u",
2136
- Ǚ: "U",
2137
- ǚ: "u",
2138
- Ǜ: "U",
2139
- ǜ: "u",
2140
- Ứ: "U",
2141
- ứ: "u",
2142
- Ṹ: "U",
2143
- ṹ: "u",
2144
- Ǻ: "A",
2145
- ǻ: "a",
2146
- Ǽ: "AE",
2147
- ǽ: "ae",
2148
- Ǿ: "O",
2149
- ǿ: "o",
2150
- Þ: "TH",
2151
- þ: "th",
2152
- Ṕ: "P",
2153
- ṕ: "p",
2154
- Ṥ: "S",
2155
- ṥ: "s",
2156
- X́: "X",
2157
- x́: "x",
2158
- Ѓ: "Г",
2159
- ѓ: "г",
2160
- Ќ: "К",
2161
- ќ: "к",
2162
- A̋: "A",
2163
- a̋: "a",
2164
- E̋: "E",
2165
- e̋: "e",
2166
- I̋: "I",
2167
- i̋: "i",
2168
- Ǹ: "N",
2169
- ǹ: "n",
2170
- Ồ: "O",
2171
- ồ: "o",
2172
- Ṑ: "O",
2173
- ṑ: "o",
2174
- Ừ: "U",
2175
- ừ: "u",
2176
- Ẁ: "W",
2177
- ẁ: "w",
2178
- Ỳ: "Y",
2179
- ỳ: "y",
2180
- Ȁ: "A",
2181
- ȁ: "a",
2182
- Ȅ: "E",
2183
- ȅ: "e",
2184
- Ȉ: "I",
2185
- ȉ: "i",
2186
- Ȍ: "O",
2187
- ȍ: "o",
2188
- Ȑ: "R",
2189
- ȑ: "r",
2190
- Ȕ: "U",
2191
- ȕ: "u",
2192
- B̌: "B",
2193
- b̌: "b",
2194
- Č̣: "C",
2195
- č̣: "c",
2196
- Ê̌: "E",
2197
- ê̌: "e",
2198
- F̌: "F",
2199
- f̌: "f",
2200
- Ǧ: "G",
2201
- ǧ: "g",
2202
- Ȟ: "H",
2203
- ȟ: "h",
2204
- J̌: "J",
2205
- ǰ: "j",
2206
- Ǩ: "K",
2207
- ǩ: "k",
2208
- M̌: "M",
2209
- m̌: "m",
2210
- P̌: "P",
2211
- p̌: "p",
2212
- Q̌: "Q",
2213
- q̌: "q",
2214
- Ř̩: "R",
2215
- ř̩: "r",
2216
- Ṧ: "S",
2217
- ṧ: "s",
2218
- V̌: "V",
2219
- v̌: "v",
2220
- W̌: "W",
2221
- w̌: "w",
2222
- X̌: "X",
2223
- x̌: "x",
2224
- Y̌: "Y",
2225
- y̌: "y",
2226
- A̧: "A",
2227
- a̧: "a",
2228
- B̧: "B",
2229
- b̧: "b",
2230
- Ḑ: "D",
2231
- ḑ: "d",
2232
- Ȩ: "E",
2233
- ȩ: "e",
2234
- Ɛ̧: "E",
2235
- ɛ̧: "e",
2236
- Ḩ: "H",
2237
- ḩ: "h",
2238
- I̧: "I",
2239
- i̧: "i",
2240
- Ɨ̧: "I",
2241
- ɨ̧: "i",
2242
- M̧: "M",
2243
- m̧: "m",
2244
- O̧: "O",
2245
- o̧: "o",
2246
- Q̧: "Q",
2247
- q̧: "q",
2248
- U̧: "U",
2249
- u̧: "u",
2250
- X̧: "X",
2251
- x̧: "x",
2252
- Z̧: "Z",
2253
- z̧: "z",
2254
- й: "и",
2255
- Й: "И",
2256
- ё: "е",
2257
- Ё: "Е"
2258
- }, En = Object.keys(In).join("|"), Nr = new RegExp(En, "g"), Mr = new RegExp(En, "");
2259
- function Rr(t) {
2260
- return In[t];
2261
- }
2262
- var yn = function(t) {
2263
- return t.replace(Nr, Rr);
2264
- }, Vr = function(t) {
2265
- return !!t.match(Mr);
2266
- };
2267
- je.exports = yn;
2268
- je.exports.has = Vr;
2269
- je.exports.remove = yn;
2270
- var Pr = je.exports;
2271
- const Ar = /* @__PURE__ */ Pn(Pr);
2272
- /**
2273
- * @name match-sorter
2274
- * @license MIT license.
2275
- * @copyright (c) 2020 Kent C. Dodds
2276
- * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
2277
- */
2278
- const Z = {
2279
- CASE_SENSITIVE_EQUAL: 7,
2280
- EQUAL: 6,
2281
- STARTS_WITH: 5,
2282
- WORD_STARTS_WITH: 4,
2283
- CONTAINS: 3,
2284
- ACRONYM: 2,
2285
- MATCHES: 1,
2286
- NO_MATCH: 0
2287
- }, Tr = (t, n) => String(t.rankedValue).localeCompare(String(n.rankedValue));
2288
- function bn(t, n, r) {
2289
- r === void 0 && (r = {});
2290
- const {
2291
- keys: i,
2292
- threshold: o = Z.MATCHES,
2293
- baseSort: e = Tr,
2294
- sorter: s = (g) => g.sort((d, v) => $r(d, v, e))
2295
- } = r, l = t.reduce(c, []);
2296
- return s(l).map((g) => {
2297
- let {
2298
- item: d
2299
- } = g;
2300
- return d;
2301
- });
2302
- function c(g, d, v) {
2303
- const E = kr(d, i, n, r), {
2304
- rank: w,
2305
- keyThreshold: b = o
2306
- } = E;
2307
- return w >= b && g.push({
2308
- ...E,
2309
- item: d,
2310
- index: v
2311
- }), g;
2312
- }
2313
- }
2314
- bn.rankings = Z;
2315
- function kr(t, n, r, i) {
2316
- if (!n) {
2317
- const e = t;
2318
- return {
2319
- // ends up being duplicate of 'item' in matches but consistent
2320
- rankedValue: e,
2321
- rank: Mt(e, r, i),
2322
- keyIndex: -1,
2323
- keyThreshold: i.threshold
2324
- };
2325
- }
2326
- return Ur(t, n).reduce((e, s, l) => {
2327
- let {
2328
- rank: c,
2329
- rankedValue: g,
2330
- keyIndex: d,
2331
- keyThreshold: v
2332
- } = e, {
2333
- itemValue: E,
2334
- attributes: w
2335
- } = s, b = Mt(E, r, i), R = g;
2336
- const {
2337
- minRanking: h,
2338
- maxRanking: P,
2339
- threshold: u
2340
- } = w;
2341
- return b < h && b >= Z.MATCHES ? b = h : b > P && (b = P), b > c && (c = b, d = l, v = u, R = E), {
2342
- rankedValue: R,
2343
- rank: c,
2344
- keyIndex: d,
2345
- keyThreshold: v
2346
- };
2347
- }, {
2348
- rankedValue: t,
2349
- rank: Z.NO_MATCH,
2350
- keyIndex: -1,
2351
- keyThreshold: i.threshold
2352
- });
2353
- }
2354
- function Mt(t, n, r) {
2355
- return t = Rt(t, r), n = Rt(n, r), n.length > t.length ? Z.NO_MATCH : t === n ? Z.CASE_SENSITIVE_EQUAL : (t = t.toLowerCase(), n = n.toLowerCase(), t === n ? Z.EQUAL : t.startsWith(n) ? Z.STARTS_WITH : t.includes(` ${n}`) ? Z.WORD_STARTS_WITH : t.includes(n) ? Z.CONTAINS : n.length === 1 ? Z.NO_MATCH : Hr(t).includes(n) ? Z.ACRONYM : Kr(t, n));
2356
- }
2357
- function Hr(t) {
2358
- let n = "";
2359
- return t.split(" ").forEach((i) => {
2360
- i.split("-").forEach((e) => {
2361
- n += e.substr(0, 1);
2362
- });
2363
- }), n;
2364
- }
2365
- function Kr(t, n) {
2366
- let r = 0, i = 0;
2367
- function o(c, g, d) {
2368
- for (let v = d, E = g.length; v < E; v++)
2369
- if (g[v] === c)
2370
- return r += 1, v + 1;
2371
- return -1;
2372
- }
2373
- function e(c) {
2374
- const g = 1 / c, d = r / n.length;
2375
- return Z.MATCHES + d * g;
2376
- }
2377
- const s = o(n[0], t, 0);
2378
- if (s < 0)
2379
- return Z.NO_MATCH;
2380
- i = s;
2381
- for (let c = 1, g = n.length; c < g; c++) {
2382
- const d = n[c];
2383
- if (i = o(d, t, i), !(i > -1))
2384
- return Z.NO_MATCH;
2385
- }
2386
- const l = i - s;
2387
- return e(l);
2388
- }
2389
- function $r(t, n, r) {
2390
- const {
2391
- rank: e,
2392
- keyIndex: s
2393
- } = t, {
2394
- rank: l,
2395
- keyIndex: c
2396
- } = n;
2397
- return e === l ? s === c ? r(t, n) : s < c ? -1 : 1 : e > l ? -1 : 1;
2398
- }
2399
- function Rt(t, n) {
2400
- let {
2401
- keepDiacritics: r
2402
- } = n;
2403
- return t = `${t}`, r || (t = Ar(t)), t;
2404
- }
2405
- function Lr(t, n) {
2406
- typeof n == "object" && (n = n.key);
2407
- let r;
2408
- if (typeof n == "function")
2409
- r = n(t);
2410
- else if (t == null)
2411
- r = null;
2412
- else if (Object.hasOwnProperty.call(t, n))
2413
- r = t[n];
2414
- else {
2415
- if (n.includes("."))
2416
- return Fr(n, t);
2417
- r = null;
2418
- }
2419
- return r == null ? [] : Array.isArray(r) ? r : [String(r)];
2420
- }
2421
- function Fr(t, n) {
2422
- const r = t.split(".");
2423
- let i = [n];
2424
- for (let o = 0, e = r.length; o < e; o++) {
2425
- const s = r[o];
2426
- let l = [];
2427
- for (let c = 0, g = i.length; c < g; c++) {
2428
- const d = i[c];
2429
- if (d != null)
2430
- if (Object.hasOwnProperty.call(d, s)) {
2431
- const v = d[s];
2432
- v != null && l.push(v);
2433
- } else
2434
- s === "*" && (l = l.concat(d));
2435
- }
2436
- i = l;
2437
- }
2438
- return Array.isArray(i[0]) ? [].concat(...i) : i;
2439
- }
2440
- function Ur(t, n) {
2441
- const r = [];
2442
- for (let i = 0, o = n.length; i < o; i++) {
2443
- const e = n[i], s = Br(e), l = Lr(t, e);
2444
- for (let c = 0, g = l.length; c < g; c++)
2445
- r.push({
2446
- itemValue: l[c],
2447
- attributes: s
2448
- });
2449
- }
2450
- return r;
2451
- }
2452
- const Vt = {
2453
- maxRanking: 1 / 0,
2454
- minRanking: -1 / 0
2455
- };
2456
- function Br(t) {
2457
- return typeof t == "string" ? Vt : {
2458
- ...Vt,
2459
- ...t
2460
- };
2461
- }
2462
- const jr = "_combobox_u73w3_2", Wr = "_small_u73w3_58", Yr = "_large_u73w3_61", qr = "_input_u73w3_30", zr = "_error_u73w3_73", Gr = "_disabled_u73w3_129", Xr = "_prefix_u73w3_167", Qr = "_suffix_u73w3_168", Jr = "_listbox_u73w3_205", Zr = "_empty_u73w3_215", ne = {
2463
- combobox: jr,
2464
- "search-field": "_search-field_u73w3_6",
2465
- "popover-content": "_popover-content_u73w3_21",
2466
- "input-wrapper": "_input-wrapper_u73w3_30",
2467
- small: Wr,
2468
- large: Yr,
2469
- input: qr,
2470
- error: zr,
2471
- "close-button-wrapper": "_close-button-wrapper_u73w3_109",
2472
- "close-button": "_close-button_u73w3_109",
2473
- "loading-infinite": "_loading-infinite_u73w3_129",
2474
- "loading-progress": "_loading-progress_u73w3_129",
2475
- disabled: Gr,
2476
- "toggle-button-wrapper": "_toggle-button-wrapper_u73w3_133",
2477
- "toggle-button": "_toggle-button_u73w3_133",
2478
- prefix: Xr,
2479
- suffix: Qr,
2480
- listbox: Jr,
2481
- "option-group": "_option-group_u73w3_211",
2482
- empty: Zr
2483
- }, wn = Mn(null), gt = function() {
2484
- const t = Rn(
2485
- wn
2486
- );
2487
- if (t == null)
2488
- throw new Error("useCombobox must be wrapped in <Combobox />");
2489
- return t;
2490
- }, ht = function(t) {
2491
- const { layoutStyles: n, componentProps: r } = Kn(t), {
2492
- children: i,
2493
- open: o,
2494
- items: e,
2495
- itemToString: s,
2496
- onChange: l,
2497
- onSelectedItemChange: c,
2498
- disableCloseOnClickOutside: g = !1,
2499
- filterOptions: d,
2500
- ...v
2501
- } = r, [E, w] = Pe(e), [b, R] = Pe(!1), [h, P] = Pe(!1), [u, p] = Pe(!1), {
2502
- isOpen: a,
2503
- getLabelProps: m,
2504
- getInputProps: _,
2505
- getToggleButtonProps: M,
2506
- getMenuProps: y,
2507
- getItemProps: V,
2508
- highlightedIndex: x,
2509
- selectedItem: T,
2510
- selectItem: k,
2511
- inputValue: L
2512
- } = we({
2513
- ...v,
2514
- items: E,
2515
- itemToString(D) {
2516
- return s && D ? s(D) : D ? String(D) : "";
2517
- },
2518
- onInputValueChange({ inputValue: D, type: F }) {
2519
- F === we.stateChangeTypes.InputKeyDownEnter || F === we.stateChangeTypes.ItemClick ? w(e) : D != null && D !== "" ? w(bn(e, D, d)) : w(e);
2520
- },
2521
- onSelectedItemChange({ selectedItem: D, ...F }) {
2522
- l != null && l(D || null), c != null && c({ selectedItem: D, ...F });
2523
- },
2524
- stateReducer(D, { type: F, changes: W }) {
2525
- switch (F) {
2526
- case we.stateChangeTypes.InputBlur:
2527
- return g ? {
2528
- ...W,
2529
- isOpen: D.isOpen,
2530
- highlightedIndex: D.highlightedIndex
2531
- } : W;
2532
- default:
2533
- return W;
2534
- }
2535
- },
2536
- // TODO: Update this to allow individual options to disable themselves
2537
- isItemDisabled() {
2538
- return b;
2539
- }
2540
- });
2541
- return /* @__PURE__ */ q.jsx(
2542
- wn.Provider,
2543
- {
2544
- value: {
2545
- items: E,
2546
- isOpen: a,
2547
- getLabelProps: m,
2548
- getInputProps: _,
2549
- getToggleButtonProps: M,
2550
- getMenuProps: y,
2551
- getItemProps: V,
2552
- highlightedIndex: x,
2553
- selectedItem: T,
2554
- selectItem: k,
2555
- inputValue: L,
2556
- isDisabledOrReadOnly: b,
2557
- setIsDisabledOrReadOnly: R,
2558
- hasDisabledPopover: h,
2559
- setHasDisabledPopover: P,
2560
- hasEmpty: u,
2561
- setHasEmpty: p
2562
- },
2563
- children: /* @__PURE__ */ q.jsx("div", { style: { ...n }, children: /* @__PURE__ */ q.jsx(
2564
- Pt,
2565
- {
2566
- open: o === !0 ? o : a,
2567
- noPadding: !0,
2568
- disableCaret: !0,
2569
- fillAvailableHeight: !0,
2570
- disableFlipFallback: !0,
2571
- matchReferenceWidth: !0,
2572
- children: i
2573
- }
2574
- ) })
2575
- }
2576
- );
2577
- }, eo = ({
2578
- className: t,
2579
- label: n,
2580
- size: r,
2581
- error: i,
2582
- hint: o,
2583
- description: e,
2584
- moreInfo: s,
2585
- required: l,
2586
- disabled: c,
2587
- readOnly: g,
2588
- prefix: d,
2589
- suffix: v,
2590
- ...E
2591
- }) => {
2592
- const {
2593
- getLabelProps: w,
2594
- getInputProps: b,
2595
- getToggleButtonProps: R,
2596
- selectItem: h,
2597
- inputValue: P,
2598
- setIsDisabledOrReadOnly: u,
2599
- hasDisabledPopover: p
2600
- } = gt(), a = An(), m = ze(ne["input-wrapper"], {
2601
- [ne.small]: r === "small",
2602
- [ne.large]: r === "large"
2603
- }), _ = mt(), M = mt(), y = ze(ne.input, t, {
2604
- [ne.error]: i
2605
- });
2606
- te(() => (u(!!(c || g)), () => {
2607
- u(!1);
2608
- }), [c, g, u]);
2609
- let V = `label${_} `;
2610
- V += ` helper${M}`;
2611
- const x = typeof i != "boolean" ? i : void 0;
2612
- return /* @__PURE__ */ q.jsxs("div", { className: ne["search-field"], children: [
2613
- /* @__PURE__ */ q.jsxs("div", { children: [
2614
- /* @__PURE__ */ q.jsx(
2615
- Tn,
2616
- {
2617
- ...w({
2618
- moreInfo: s,
2619
- required: l,
2620
- id: _
2621
- }),
2622
- children: n
2623
- }
2624
- ),
2625
- /* @__PURE__ */ q.jsxs(
2626
- "div",
2627
- {
2628
- className: m,
2629
- ref: a.refs.setReference,
2630
- children: [
2631
- d ? /* @__PURE__ */ q.jsx("div", { className: ne.prefix, children: d }) : null,
2632
- /* @__PURE__ */ q.jsx(
2633
- "input",
2634
- {
2635
- ...b({
2636
- ...E,
2637
- className: y,
2638
- disabled: c,
2639
- readOnly: g,
2640
- required: l,
2641
- autoComplete: "off",
2642
- "aria-labelledby": V
2643
- })
2644
- }
2645
- ),
2646
- v ? /* @__PURE__ */ q.jsx("div", { className: ne.suffix, children: v }) : null,
2647
- P ? /* @__PURE__ */ q.jsx("div", { className: ne["close-button-wrapper"], children: /* @__PURE__ */ q.jsx(
2648
- vt,
2649
- {
2650
- "aria-label": "clear selection",
2651
- appearance: "ghost",
2652
- size: "small",
2653
- icon: kn,
2654
- className: ne["close-button"],
2655
- onClick: () => {
2656
- h(null);
2657
- },
2658
- tabIndex: -1,
2659
- disabled: c || g
2660
- }
2661
- ) }) : null,
2662
- p ? null : /* @__PURE__ */ q.jsx("div", { className: ne["toggle-button-wrapper"], children: /* @__PURE__ */ q.jsx(
2663
- vt,
2664
- {
2665
- "aria-label": "toggle menu",
2666
- ...R({
2667
- icon: Hn,
2668
- className: ne["toggle-button"],
2669
- disabled: c || g
2670
- }),
2671
- appearance: "ghost",
2672
- size: "small"
2673
- }
2674
- ) })
2675
- ]
2676
- }
2677
- )
2678
- ] }),
2679
- o || x || e ? /* @__PURE__ */ q.jsx(
2680
- $n,
2681
- {
2682
- id: M,
2683
- errorMessage: x,
2684
- hint: o,
2685
- description: e
2686
- }
2687
- ) : null
2688
- ] });
2689
- };
2690
- ht.SearchField = eo;
2691
- const to = function({
2692
- children: t,
2693
- className: n,
2694
- disablePopover: r = !1,
2695
- ...i
2696
- }) {
2697
- const {
2698
- items: o,
2699
- highlightedIndex: e,
2700
- selectedItem: s,
2701
- setHasDisabledPopover: l,
2702
- getMenuProps: c,
2703
- getItemProps: g,
2704
- isDisabledOrReadOnly: d
2705
- } = gt(), v = ze(
2706
- ne["popover-content"],
2707
- n
2708
- );
2709
- return te(() => (l(r), () => {
2710
- l(!1);
2711
- }), [r, l]), r ? /* @__PURE__ */ q.jsx("div", { ...i, className: v, children: t ? t({
2712
- items: o,
2713
- highlightedIndex: e,
2714
- selectedItem: s,
2715
- getMenuProps: c,
2716
- getItemProps: g,
2717
- listProps: {
2718
- ...c(),
2719
- style: { display: o.length ? void 0 : "none" }
2720
- },
2721
- options: o.map((E, w) => ({
2722
- optionProps: {
2723
- ...g({
2724
- item: E,
2725
- index: w
2726
- }),
2727
- selected: s === E,
2728
- disabled: d
2729
- // also see "isItemDisabled" function
2730
- },
2731
- item: E,
2732
- index: w
2733
- }))
2734
- }) : null }) : /* @__PURE__ */ q.jsx(Pt.Content, { ...i, className: v, children: t ? t({
2735
- items: o,
2736
- highlightedIndex: e,
2737
- selectedItem: s,
2738
- getMenuProps: c,
2739
- getItemProps: g,
2740
- listProps: {
2741
- ...c(),
2742
- style: { display: o.length ? void 0 : "none" }
2743
- },
2744
- options: o.map((E, w) => ({
2745
- optionProps: {
2746
- ...g({
2747
- item: E,
2748
- index: w
2749
- }),
2750
- selected: s === E,
2751
- disabled: d
2752
- // also see "isItemDisabled" function
2753
- },
2754
- item: E,
2755
- index: w
2756
- }))
2757
- }) : null });
2758
- };
2759
- ht.Content = to;
2760
- const no = function({ children: t }) {
2761
- const { items: n, setHasEmpty: r } = gt();
2762
- return te(() => (r(!0), () => {
2763
- r(!1);
2764
- })), n.length ? null : t;
2765
- };
2766
- ht.Empty = no;
2767
- export {
2768
- wn as $,
2769
- ht as k
2770
- };
2771
- //# sourceMappingURL=Combobox-8913ce4e.js.map