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