@servicetitan/anvil2 1.4.1 → 1.4.2

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 (633) hide show
  1. package/Alert-BULbyuJn-DqOjuyVU.js +90 -0
  2. package/{Alert-BULbyuJn-6bc0372f.js.map → Alert-BULbyuJn-DqOjuyVU.js.map} +1 -1
  3. package/Alert-BULbyuJn-DtcpE2Su.cjs +2 -0
  4. package/{Alert-BULbyuJn-85b8cba4.cjs.map → Alert-BULbyuJn-DtcpE2Su.cjs.map} +1 -1
  5. package/Alert-D_69_gcf.cjs +2 -0
  6. package/Alert-D_69_gcf.cjs.map +1 -0
  7. package/Alert-JeOimQWm.js +21 -0
  8. package/Alert-JeOimQWm.js.map +1 -0
  9. package/Alert.cjs +1 -1
  10. package/Alert.cjs.map +1 -1
  11. package/Alert.js +3 -19
  12. package/Alert.js.map +1 -1
  13. package/Announcement-IlD6OmM0.cjs +2 -0
  14. package/Announcement-IlD6OmM0.cjs.map +1 -0
  15. package/Announcement-QfqrN5aB.js +104 -0
  16. package/Announcement-QfqrN5aB.js.map +1 -0
  17. package/Announcement.cjs +1 -1
  18. package/Announcement.cjs.map +1 -1
  19. package/Announcement.js +3 -103
  20. package/Announcement.js.map +1 -1
  21. package/AnvilProvider.cjs +1 -1
  22. package/AnvilProvider.js +1 -1
  23. package/Avatar-BDwEQ8hH.cjs +2 -0
  24. package/Avatar-BDwEQ8hH.cjs.map +1 -0
  25. package/Avatar-BFOOEO8X.js +128 -0
  26. package/Avatar-BFOOEO8X.js.map +1 -0
  27. package/Avatar.cjs +1 -1
  28. package/Avatar.cjs.map +1 -1
  29. package/Avatar.js +4 -128
  30. package/Avatar.js.map +1 -1
  31. package/Badge-DWw7IIKq.js +49 -0
  32. package/Badge-DWw7IIKq.js.map +1 -0
  33. package/Badge-DxxLTYx9.cjs +2 -0
  34. package/Badge-DxxLTYx9.cjs.map +1 -0
  35. package/Badge.cjs +1 -1
  36. package/Badge.cjs.map +1 -1
  37. package/Badge.js +3 -48
  38. package/Badge.js.map +1 -1
  39. package/Button-DYLXgQSy.cjs +2 -0
  40. package/Button-DYLXgQSy.cjs.map +1 -0
  41. package/Button-L7SXWFDV.js +25 -0
  42. package/Button-L7SXWFDV.js.map +1 -0
  43. package/Button.cjs +1 -1
  44. package/Button.cjs.map +1 -1
  45. package/Button.js +3 -23
  46. package/Button.js.map +1 -1
  47. package/ButtonCompound-Bi2-W4up.js +23 -0
  48. package/ButtonCompound-Bi2-W4up.js.map +1 -0
  49. package/ButtonCompound-CVUEA-bx.cjs +2 -0
  50. package/ButtonCompound-CVUEA-bx.cjs.map +1 -0
  51. package/ButtonCompound.cjs +1 -1
  52. package/ButtonCompound.cjs.map +1 -1
  53. package/ButtonCompound.js +3 -21
  54. package/ButtonCompound.js.map +1 -1
  55. package/ButtonLink-Cy45uV3f.cjs +2 -0
  56. package/ButtonLink-Cy45uV3f.cjs.map +1 -0
  57. package/ButtonLink-VjKaxm0L.js +26 -0
  58. package/ButtonLink-VjKaxm0L.js.map +1 -0
  59. package/ButtonLink.cjs +1 -1
  60. package/ButtonLink.cjs.map +1 -1
  61. package/ButtonLink.js +3 -24
  62. package/ButtonLink.js.map +1 -1
  63. package/ButtonToggle-BrPAceZx.cjs +2 -0
  64. package/ButtonToggle-BrPAceZx.cjs.map +1 -0
  65. package/ButtonToggle-D6dIggMM.js +25 -0
  66. package/ButtonToggle-D6dIggMM.js.map +1 -0
  67. package/ButtonToggle-uOhiLjZh-BfKVd23q.cjs +2 -0
  68. package/{ButtonToggle-uOhiLjZh-7f18dd4f.cjs.map → ButtonToggle-uOhiLjZh-BfKVd23q.cjs.map} +1 -1
  69. package/{ButtonToggle-uOhiLjZh-d38c2b9a.js → ButtonToggle-uOhiLjZh-Glk0YZBt.js} +69 -70
  70. package/{ButtonToggle-uOhiLjZh-d38c2b9a.js.map → ButtonToggle-uOhiLjZh-Glk0YZBt.js.map} +1 -1
  71. package/ButtonToggle.cjs +1 -1
  72. package/ButtonToggle.cjs.map +1 -1
  73. package/ButtonToggle.js +3 -23
  74. package/ButtonToggle.js.map +1 -1
  75. package/Calendar-CwhnJB5t.js +5783 -0
  76. package/Calendar-CwhnJB5t.js.map +1 -0
  77. package/Calendar-DRDZGdY3.cjs +2 -0
  78. package/Calendar-DRDZGdY3.cjs.map +1 -0
  79. package/Calendar.cjs +1 -1
  80. package/Calendar.cjs.map +1 -1
  81. package/Calendar.js +7 -5812
  82. package/Calendar.js.map +1 -1
  83. package/Card-CP6A2pl4.js +53 -0
  84. package/Card-CP6A2pl4.js.map +1 -0
  85. package/Card-gCXNp8nX.cjs +2 -0
  86. package/Card-gCXNp8nX.cjs.map +1 -0
  87. package/Card.cjs +1 -1
  88. package/Card.cjs.map +1 -1
  89. package/Card.js +3 -52
  90. package/Card.js.map +1 -1
  91. package/Checkbox-Bac2nQzq-B0QfJX4j.cjs +2 -0
  92. package/{Checkbox-Bac2nQzq-03b67a48.cjs.map → Checkbox-Bac2nQzq-B0QfJX4j.cjs.map} +1 -1
  93. package/{Checkbox-Bac2nQzq-bbc3e1a5.js → Checkbox-Bac2nQzq-Cgv2fvTw.js} +27 -28
  94. package/{Checkbox-Bac2nQzq-bbc3e1a5.js.map → Checkbox-Bac2nQzq-Cgv2fvTw.js.map} +1 -1
  95. package/Checkbox-C47xqAOJ.cjs +2 -0
  96. package/Checkbox-C47xqAOJ.cjs.map +1 -0
  97. package/Checkbox-CgbabMX0.js +29 -0
  98. package/Checkbox-CgbabMX0.js.map +1 -0
  99. package/Checkbox.cjs +1 -1
  100. package/Checkbox.cjs.map +1 -1
  101. package/Checkbox.js +4 -27
  102. package/Checkbox.js.map +1 -1
  103. package/Chip-BFHfEIaC.cjs +2 -0
  104. package/Chip-BFHfEIaC.cjs.map +1 -0
  105. package/Chip-BVUDQYeX-BOPqql7F.cjs +2 -0
  106. package/{Chip-BVUDQYeX-5eb1e24c.cjs.map → Chip-BVUDQYeX-BOPqql7F.cjs.map} +1 -1
  107. package/{Chip-BVUDQYeX-4690b0bb.js → Chip-BVUDQYeX-yyDtbgnF.js} +24 -25
  108. package/{Chip-BVUDQYeX-4690b0bb.js.map → Chip-BVUDQYeX-yyDtbgnF.js.map} +1 -1
  109. package/Chip-tEtfL-sa.js +18 -0
  110. package/Chip-tEtfL-sa.js.map +1 -0
  111. package/Chip.cjs +1 -1
  112. package/Chip.cjs.map +1 -1
  113. package/Chip.js +3 -16
  114. package/Chip.js.map +1 -1
  115. package/Combobox-CZ4F6ltk.js +4167 -0
  116. package/Combobox-CZ4F6ltk.js.map +1 -0
  117. package/Combobox-CasGz9XO.cjs +42 -0
  118. package/Combobox-CasGz9XO.cjs.map +1 -0
  119. package/Combobox.cjs +1 -41
  120. package/Combobox.cjs.map +1 -1
  121. package/Combobox.css +1 -0
  122. package/Combobox.js +9 -4182
  123. package/Combobox.js.map +1 -1
  124. package/Details-Co3AewyC.js +158 -0
  125. package/Details-Co3AewyC.js.map +1 -0
  126. package/Details-ZNq5IaAy.cjs +2 -0
  127. package/Details-ZNq5IaAy.cjs.map +1 -0
  128. package/Details.cjs +1 -1
  129. package/Details.cjs.map +1 -1
  130. package/Details.js +5 -157
  131. package/Details.js.map +1 -1
  132. package/Dialog-CG-wbEyw.cjs +2 -0
  133. package/Dialog-CG-wbEyw.cjs.map +1 -0
  134. package/Dialog-Cry6xVIB.js +57 -0
  135. package/Dialog-Cry6xVIB.js.map +1 -0
  136. package/{Dialog-LF_eUywW-1b46959f.js → Dialog-LF_eUywW-B10H8cDN.js} +36 -40
  137. package/{Dialog-LF_eUywW-1b46959f.js.map → Dialog-LF_eUywW-B10H8cDN.js.map} +1 -1
  138. package/Dialog-LF_eUywW-erqPCF5m.cjs +2 -0
  139. package/{Dialog-LF_eUywW-bdbb253d.cjs.map → Dialog-LF_eUywW-erqPCF5m.cjs.map} +1 -1
  140. package/Dialog.cjs +1 -1
  141. package/Dialog.cjs.map +1 -1
  142. package/Dialog.js +7 -55
  143. package/Dialog.js.map +1 -1
  144. package/Divider-4Fewd-uO.cjs +2 -0
  145. package/Divider-4Fewd-uO.cjs.map +1 -0
  146. package/Divider-DR4ofzvR.js +77 -0
  147. package/Divider-DR4ofzvR.js.map +1 -0
  148. package/Divider.cjs +1 -1
  149. package/Divider.cjs.map +1 -1
  150. package/Divider.js +3 -77
  151. package/Divider.js.map +1 -1
  152. package/Drawer-BCciOZWo.js +252 -0
  153. package/Drawer-BCciOZWo.js.map +1 -0
  154. package/Drawer-uwlBIgLN.cjs +2 -0
  155. package/Drawer-uwlBIgLN.cjs.map +1 -0
  156. package/Drawer.cjs +1 -1
  157. package/Drawer.cjs.map +1 -1
  158. package/Drawer.js +7 -253
  159. package/Drawer.js.map +1 -1
  160. package/Flex-BTesi1i4.cjs +2 -0
  161. package/Flex-BTesi1i4.cjs.map +1 -0
  162. package/{Flex-D-uYVS9I-8b9c305e.js → Flex-D-uYVS9I-0ycvf8JF.js} +10 -11
  163. package/{Flex-D-uYVS9I-8b9c305e.js.map → Flex-D-uYVS9I-0ycvf8JF.js.map} +1 -1
  164. package/Flex-D-uYVS9I-TzzE4xHJ.cjs +2 -0
  165. package/{Flex-D-uYVS9I-b172b22b.cjs.map → Flex-D-uYVS9I-TzzE4xHJ.cjs.map} +1 -1
  166. package/Flex-DhbcOtER.js +8 -0
  167. package/Flex-DhbcOtER.js.map +1 -0
  168. package/Flex.cjs +1 -1
  169. package/Flex.cjs.map +1 -1
  170. package/Flex.js +3 -6
  171. package/Flex.js.map +1 -1
  172. package/Grid-Sm16wJN3.js +91 -0
  173. package/Grid-Sm16wJN3.js.map +1 -0
  174. package/Grid-hgEPwdMM.cjs +2 -0
  175. package/Grid-hgEPwdMM.cjs.map +1 -0
  176. package/Grid.cjs +1 -1
  177. package/Grid.cjs.map +1 -1
  178. package/Grid.js +3 -90
  179. package/Grid.js.map +1 -1
  180. package/HammerProvider-CWIhk1CR-C9q7tn1p.cjs +5 -0
  181. package/HammerProvider-CWIhk1CR-C9q7tn1p.cjs.map +1 -0
  182. package/{index-e38aed53.js → HammerProvider-CWIhk1CR-D4ToJaAz.js} +130 -157
  183. package/HammerProvider-CWIhk1CR-D4ToJaAz.js.map +1 -0
  184. package/{Helper-CicCRgpB-584bc8e1.js → Helper-CicCRgpB-CRl7ybcQ.js} +9 -10
  185. package/{Helper-CicCRgpB-584bc8e1.js.map → Helper-CicCRgpB-CRl7ybcQ.js.map} +1 -1
  186. package/Helper-CicCRgpB-P-DtzpXg.cjs +2 -0
  187. package/{Helper-CicCRgpB-cc748e80.cjs.map → Helper-CicCRgpB-P-DtzpXg.cjs.map} +1 -1
  188. package/Icon-BcLI32jH-CZUwsst4.cjs +2 -0
  189. package/{Icon-BcLI32jH-090788b5.cjs.map → Icon-BcLI32jH-CZUwsst4.cjs.map} +1 -1
  190. package/Icon-BcLI32jH-Dq2p5h4f.js +47 -0
  191. package/{Icon-BcLI32jH-6c61a1d4.js.map → Icon-BcLI32jH-Dq2p5h4f.js.map} +1 -1
  192. package/Icon-BgtpOVhD.js +10 -0
  193. package/Icon-BgtpOVhD.js.map +1 -0
  194. package/Icon-BsM86ff0.cjs +2 -0
  195. package/Icon-BsM86ff0.cjs.map +1 -0
  196. package/Icon.cjs +1 -1
  197. package/Icon.cjs.map +1 -1
  198. package/Icon.js +3 -8
  199. package/Icon.js.map +1 -1
  200. package/InputMask-CDk4133D.js +125 -0
  201. package/InputMask-CDk4133D.js.map +1 -0
  202. package/InputMask-ygiupqo0.cjs +2 -0
  203. package/InputMask-ygiupqo0.cjs.map +1 -0
  204. package/InputMask.cjs +1 -1
  205. package/InputMask.cjs.map +1 -1
  206. package/InputMask.js +3 -123
  207. package/InputMask.js.map +1 -1
  208. package/Label-CkY8ldc9-Bo6kvWpn.cjs +2 -0
  209. package/{Label-CkY8ldc9-f9a4ff73.cjs.map → Label-CkY8ldc9-Bo6kvWpn.cjs.map} +1 -1
  210. package/{Label-CkY8ldc9-c896ed38.js → Label-CkY8ldc9-D2wJaQlN.js} +12 -13
  211. package/{Label-CkY8ldc9-c896ed38.js.map → Label-CkY8ldc9-D2wJaQlN.js.map} +1 -1
  212. package/Layout-B2yAER6P.js +141 -0
  213. package/Layout-B2yAER6P.js.map +1 -0
  214. package/Layout-DX6uXo_t.cjs +2 -0
  215. package/Layout-DX6uXo_t.cjs.map +1 -0
  216. package/Layout.cjs +1 -1
  217. package/Layout.cjs.map +1 -1
  218. package/Layout.js +5 -140
  219. package/Layout.js.map +1 -1
  220. package/{index-17ecb2bb.js → Link-BbiA85bl-BAi5qDoN.js} +20 -21
  221. package/Link-BbiA85bl-BAi5qDoN.js.map +1 -0
  222. package/Link-BbiA85bl-BwWdpg2U.cjs +2 -0
  223. package/Link-BbiA85bl-BwWdpg2U.cjs.map +1 -0
  224. package/Link-C3a2G6_I.js +23 -0
  225. package/Link-C3a2G6_I.js.map +1 -0
  226. package/Link-v2erQ9Rm.cjs +2 -0
  227. package/Link-v2erQ9Rm.cjs.map +1 -0
  228. package/Link.cjs +1 -1
  229. package/Link.cjs.map +1 -1
  230. package/Link.js +3 -21
  231. package/Link.js.map +1 -1
  232. package/ListView-BaOIPjv3.cjs +2 -0
  233. package/ListView-BaOIPjv3.cjs.map +1 -0
  234. package/ListView-Cqp9QcP2.js +416 -0
  235. package/ListView-Cqp9QcP2.js.map +1 -0
  236. package/ListView.cjs +1 -1
  237. package/ListView.cjs.map +1 -1
  238. package/ListView.js +5 -419
  239. package/ListView.js.map +1 -1
  240. package/ListView.module-Hib8oMK_-D1tjyIVv.js +10 -0
  241. package/{ListView.module-Hib8oMK_-e8806d56.js.map → ListView.module-Hib8oMK_-D1tjyIVv.js.map} +1 -1
  242. package/ListView.module-Hib8oMK_-DpNO6Zxm.cjs +2 -0
  243. package/{ListView.module-Hib8oMK_-eb6a2b5b.cjs.map → ListView.module-Hib8oMK_-DpNO6Zxm.cjs.map} +1 -1
  244. package/Listbox-C316Nb3v.js +409 -0
  245. package/Listbox-C316Nb3v.js.map +1 -0
  246. package/Listbox-CjuJ_ngQ.cjs +2 -0
  247. package/Listbox-CjuJ_ngQ.cjs.map +1 -0
  248. package/Listbox.cjs +1 -1
  249. package/Listbox.cjs.map +1 -1
  250. package/Listbox.js +5 -409
  251. package/Listbox.js.map +1 -1
  252. package/Listbox.module-6bX97NDI-KQUI3vJl.cjs +2 -0
  253. package/{Listbox.module-6bX97NDI-d18843c8.cjs.map → Listbox.module-6bX97NDI-KQUI3vJl.cjs.map} +1 -1
  254. package/Listbox.module-6bX97NDI-h-n7TCMZ.js +12 -0
  255. package/{Listbox.module-6bX97NDI-56b35452.js.map → Listbox.module-6bX97NDI-h-n7TCMZ.js.map} +1 -1
  256. package/LocalizationProvider-DUpcgOpg-BcV208mm.cjs +2 -0
  257. package/LocalizationProvider-DUpcgOpg-BcV208mm.cjs.map +1 -0
  258. package/LocalizationProvider-DUpcgOpg-BluDwbxk.js +42 -0
  259. package/LocalizationProvider-DUpcgOpg-BluDwbxk.js.map +1 -0
  260. package/LocalizationProvider.cjs +1 -1
  261. package/LocalizationProvider.cjs.map +1 -1
  262. package/LocalizationProvider.js +5 -40
  263. package/LocalizationProvider.js.map +1 -1
  264. package/Menu-BQAq0L8N.cjs +2 -0
  265. package/Menu-BQAq0L8N.cjs.map +1 -0
  266. package/Menu-Cp_2j_XW.js +327 -0
  267. package/Menu-Cp_2j_XW.js.map +1 -0
  268. package/Menu.cjs +1 -1
  269. package/Menu.cjs.map +1 -1
  270. package/Menu.js +4 -327
  271. package/Menu.js.map +1 -1
  272. package/Overflow-6bSiZmRH.js +41 -0
  273. package/Overflow-6bSiZmRH.js.map +1 -0
  274. package/Overflow-8l_m52ru.cjs +2 -0
  275. package/Overflow-8l_m52ru.cjs.map +1 -0
  276. package/{Overflow-mCmpVO6E-b32b83b2.js → Overflow-mCmpVO6E-CQntjl5f.js} +40 -43
  277. package/{Overflow-mCmpVO6E-b32b83b2.js.map → Overflow-mCmpVO6E-CQntjl5f.js.map} +1 -1
  278. package/Overflow-mCmpVO6E-D9h2HKLa.cjs +2 -0
  279. package/{Overflow-mCmpVO6E-f2178064.cjs.map → Overflow-mCmpVO6E-D9h2HKLa.cjs.map} +1 -1
  280. package/Overflow.cjs +1 -1
  281. package/Overflow.cjs.map +1 -1
  282. package/Overflow.js +4 -39
  283. package/Overflow.js.map +1 -1
  284. package/Page-BHVbtL63.cjs +2 -0
  285. package/Page-BHVbtL63.cjs.map +1 -0
  286. package/Page-DyiLrgtg.js +242 -0
  287. package/Page-DyiLrgtg.js.map +1 -0
  288. package/Page.cjs +1 -1
  289. package/Page.cjs.map +1 -1
  290. package/Page.css +1 -0
  291. package/Page.js +7 -242
  292. package/Page.js.map +1 -1
  293. package/Popover-Bvpvj5WS.js +47 -0
  294. package/Popover-Bvpvj5WS.js.map +1 -0
  295. package/Popover-DFhBDbdL.cjs +2 -0
  296. package/Popover-DFhBDbdL.cjs.map +1 -0
  297. package/Popover-w3OnmR7f-DJiuhFLh.cjs +2 -0
  298. package/{Popover-w3OnmR7f-2cf208a7.cjs.map → Popover-w3OnmR7f-DJiuhFLh.cjs.map} +1 -1
  299. package/{Popover-w3OnmR7f-5daa6b79.js → Popover-w3OnmR7f-DWTdyEZ0.js} +56 -58
  300. package/{Popover-w3OnmR7f-5daa6b79.js.map → Popover-w3OnmR7f-DWTdyEZ0.js.map} +1 -1
  301. package/Popover.cjs +1 -1
  302. package/Popover.cjs.map +1 -1
  303. package/Popover.js +7 -45
  304. package/Popover.js.map +1 -1
  305. package/PortalProvider-CvQRdwLj-BtjPnkrU.cjs +2 -0
  306. package/PortalProvider-CvQRdwLj-BtjPnkrU.cjs.map +1 -0
  307. package/PortalProvider-CvQRdwLj-DYU1MLeY.js +15 -0
  308. package/PortalProvider-CvQRdwLj-DYU1MLeY.js.map +1 -0
  309. package/PortalProvider.cjs +1 -1
  310. package/PortalProvider.cjs.map +1 -1
  311. package/PortalProvider.js +4 -13
  312. package/PortalProvider.js.map +1 -1
  313. package/ProgressBar-AVSC0MNT.js +123 -0
  314. package/ProgressBar-AVSC0MNT.js.map +1 -0
  315. package/ProgressBar-dNV_9-_s.cjs +2 -0
  316. package/ProgressBar-dNV_9-_s.cjs.map +1 -0
  317. package/ProgressBar.cjs +1 -1
  318. package/ProgressBar.cjs.map +1 -1
  319. package/ProgressBar.js +3 -122
  320. package/ProgressBar.js.map +1 -1
  321. package/Radio-D6_T54mi.cjs +2 -0
  322. package/Radio-D6_T54mi.cjs.map +1 -0
  323. package/Radio-mPAtYUwY.js +147 -0
  324. package/Radio-mPAtYUwY.js.map +1 -0
  325. package/Radio.cjs +1 -1
  326. package/Radio.cjs.map +1 -1
  327. package/Radio.js +4 -146
  328. package/Radio.js.map +1 -1
  329. package/SegmentedControl-CDYqxNcB.cjs +2 -0
  330. package/SegmentedControl-CDYqxNcB.cjs.map +1 -0
  331. package/SegmentedControl-vAEVzFx9.js +149 -0
  332. package/SegmentedControl-vAEVzFx9.js.map +1 -0
  333. package/SegmentedControl.cjs +1 -1
  334. package/SegmentedControl.cjs.map +1 -1
  335. package/SegmentedControl.js +4 -148
  336. package/SegmentedControl.js.map +1 -1
  337. package/SideNav-Bdl0r5mC.js +280 -0
  338. package/SideNav-Bdl0r5mC.js.map +1 -0
  339. package/SideNav-CSUjT43n.cjs +2 -0
  340. package/SideNav-CSUjT43n.cjs.map +1 -0
  341. package/SideNav.cjs +1 -1
  342. package/SideNav.cjs.map +1 -1
  343. package/SideNav.js +6 -282
  344. package/SideNav.js.map +1 -1
  345. package/SrOnly-CWQqJxku.cjs +2 -0
  346. package/SrOnly-CWQqJxku.cjs.map +1 -0
  347. package/SrOnly-CZOsd0yE-B9lWiTrH.cjs +2 -0
  348. package/{SrOnly-CZOsd0yE-76cdbcfb.cjs.map → SrOnly-CZOsd0yE-B9lWiTrH.cjs.map} +1 -1
  349. package/SrOnly-CZOsd0yE-DlROWKSx.js +12 -0
  350. package/{SrOnly-CZOsd0yE-274dacb6.js.map → SrOnly-CZOsd0yE-DlROWKSx.js.map} +1 -1
  351. package/SrOnly-f1yBS_Iz.js +9 -0
  352. package/SrOnly-f1yBS_Iz.js.map +1 -0
  353. package/SrOnly.cjs +1 -1
  354. package/SrOnly.cjs.map +1 -1
  355. package/SrOnly.js +3 -7
  356. package/SrOnly.js.map +1 -1
  357. package/Stepper-DDTFYk6c.js +450 -0
  358. package/Stepper-DDTFYk6c.js.map +1 -0
  359. package/Stepper-d2x4zznU.cjs +2 -0
  360. package/Stepper-d2x4zznU.cjs.map +1 -0
  361. package/Stepper.cjs +1 -1
  362. package/Stepper.cjs.map +1 -1
  363. package/Stepper.js +9 -450
  364. package/Stepper.js.map +1 -1
  365. package/Switch-Dno7OZc3.cjs +2 -0
  366. package/Switch-Dno7OZc3.cjs.map +1 -0
  367. package/Switch-o9-bqyd9.js +72 -0
  368. package/Switch-o9-bqyd9.js.map +1 -0
  369. package/Switch.cjs +1 -1
  370. package/Switch.cjs.map +1 -1
  371. package/Switch.js +3 -71
  372. package/Switch.js.map +1 -1
  373. package/Tab-CeVqQjTE.cjs +10 -0
  374. package/Tab-CeVqQjTE.cjs.map +1 -0
  375. package/Tab-QW39ZPbQ.js +442 -0
  376. package/Tab-QW39ZPbQ.js.map +1 -0
  377. package/Tab.cjs +1 -9
  378. package/Tab.cjs.map +1 -1
  379. package/Tab.js +6 -442
  380. package/Tab.js.map +1 -1
  381. package/Text-D5ykWAtj.js +10 -0
  382. package/Text-D5ykWAtj.js.map +1 -0
  383. package/Text-DW_1b5Ao-CVzdFkOj.cjs +2 -0
  384. package/{Text-DW_1b5Ao-fa5ca1ca.cjs.map → Text-DW_1b5Ao-CVzdFkOj.cjs.map} +1 -1
  385. package/{Text-DW_1b5Ao-1e66bc85.js → Text-DW_1b5Ao-DnqiTXGv.js} +15 -16
  386. package/{Text-DW_1b5Ao-1e66bc85.js.map → Text-DW_1b5Ao-DnqiTXGv.js.map} +1 -1
  387. package/Text-_tnODLfZ.cjs +2 -0
  388. package/Text-_tnODLfZ.cjs.map +1 -0
  389. package/Text.cjs +1 -1
  390. package/Text.cjs.map +1 -1
  391. package/Text.js +3 -8
  392. package/Text.js.map +1 -1
  393. package/TextField-C0ccUDu5-CMsKnSgb.cjs +2 -0
  394. package/{TextField-C0ccUDu5-2c0409d1.cjs.map → TextField-C0ccUDu5-CMsKnSgb.cjs.map} +1 -1
  395. package/TextField-C0ccUDu5-pdoiLX1u.js +141 -0
  396. package/{TextField-C0ccUDu5-c3d7d2cc.js.map → TextField-C0ccUDu5-pdoiLX1u.js.map} +1 -1
  397. package/TextField-Ch1aIQRm.cjs +2 -0
  398. package/TextField-Ch1aIQRm.cjs.map +1 -0
  399. package/TextField-Qc-aHZwp.js +27 -0
  400. package/TextField-Qc-aHZwp.js.map +1 -0
  401. package/TextField.cjs +1 -1
  402. package/TextField.cjs.map +1 -1
  403. package/TextField.js +3 -25
  404. package/TextField.js.map +1 -1
  405. package/Textarea-BvKAlyr5.cjs +2 -0
  406. package/Textarea-BvKAlyr5.cjs.map +1 -0
  407. package/Textarea-D9tRBJov.js +265 -0
  408. package/Textarea-D9tRBJov.js.map +1 -0
  409. package/Textarea.cjs +1 -1
  410. package/Textarea.cjs.map +1 -1
  411. package/Textarea.js +3 -264
  412. package/Textarea.js.map +1 -1
  413. package/ThemeProvider-C28ELSMv.js +7 -0
  414. package/ThemeProvider-C28ELSMv.js.map +1 -0
  415. package/ThemeProvider-D3-vcv0T.cjs +2 -0
  416. package/ThemeProvider-D3-vcv0T.cjs.map +1 -0
  417. package/{ThemeProvider-ToVvRp6m-1c1f8387.cjs → ThemeProvider-ToVvRp6m-CoLPmFrb.cjs} +2 -2
  418. package/{ThemeProvider-ToVvRp6m-1c1f8387.cjs.map → ThemeProvider-ToVvRp6m-CoLPmFrb.cjs.map} +1 -1
  419. package/{ThemeProvider-ToVvRp6m-1fe3baac.js → ThemeProvider-ToVvRp6m-qC73SSSn.js} +8 -8
  420. package/{ThemeProvider-ToVvRp6m-1fe3baac.js.map → ThemeProvider-ToVvRp6m-qC73SSSn.js.map} +1 -1
  421. package/ThemeProvider.cjs +1 -1
  422. package/ThemeProvider.cjs.map +1 -1
  423. package/ThemeProvider.js +3 -5
  424. package/ThemeProvider.js.map +1 -1
  425. package/Toast.cjs +1 -8
  426. package/Toast.cjs.map +1 -1
  427. package/Toast.js +4 -568
  428. package/Toast.js.map +1 -1
  429. package/Tooltip-Cp1dXMJf-BVijxbJA.cjs +2 -0
  430. package/{Tooltip-Cp1dXMJf-e01c8adb.cjs.map → Tooltip-Cp1dXMJf-BVijxbJA.cjs.map} +1 -1
  431. package/{Tooltip-Cp1dXMJf-eaebb90e.js → Tooltip-Cp1dXMJf-DZiDNAIp.js} +26 -28
  432. package/{Tooltip-Cp1dXMJf-eaebb90e.js.map → Tooltip-Cp1dXMJf-DZiDNAIp.js.map} +1 -1
  433. package/Tooltip-DV9FC-5a.cjs +2 -0
  434. package/Tooltip-DV9FC-5a.cjs.map +1 -0
  435. package/Tooltip-NbfopVjX.js +28 -0
  436. package/Tooltip-NbfopVjX.js.map +1 -0
  437. package/Tooltip.cjs +1 -1
  438. package/Tooltip.cjs.map +1 -1
  439. package/Tooltip.js +4 -25
  440. package/Tooltip.js.map +1 -1
  441. package/TrackingProvider.cjs +1 -14
  442. package/TrackingProvider.cjs.map +1 -1
  443. package/TrackingProvider.js +4 -5012
  444. package/TrackingProvider.js.map +1 -1
  445. package/{_commonjsHelpers-c5d32002.js → _commonjsHelpers-BkfeUUK-.js} +3 -5
  446. package/_commonjsHelpers-BkfeUUK-.js.map +1 -0
  447. package/{_commonjsHelpers-6763f629.cjs → _commonjsHelpers-DwTZ_eVU.cjs} +1 -1
  448. package/_commonjsHelpers-DwTZ_eVU.cjs.map +1 -0
  449. package/anvil2.cjs +1 -1
  450. package/anvil2.js +152 -152
  451. package/{check-EixQBT_K-2609382e.cjs → check-EixQBT_K-Cb-7N6O6.cjs} +1 -1
  452. package/{check-EixQBT_K-2609382e.cjs.map → check-EixQBT_K-Cb-7N6O6.cjs.map} +1 -1
  453. package/{check-EixQBT_K-b5474547.js → check-EixQBT_K-DVm-iNP1.js} +1 -1
  454. package/{check-EixQBT_K-b5474547.js.map → check-EixQBT_K-DVm-iNP1.js.map} +1 -1
  455. package/{check_circle-CYXeiF3f-0d49b2da.cjs → check_circle-CYXeiF3f-CxsnkN5A.cjs} +1 -1
  456. package/{check_circle-CYXeiF3f-0d49b2da.cjs.map → check_circle-CYXeiF3f-CxsnkN5A.cjs.map} +1 -1
  457. package/{check_circle-CYXeiF3f-5838521c.js → check_circle-CYXeiF3f-DAAbkuAz.js} +1 -1
  458. package/{check_circle-CYXeiF3f-5838521c.js.map → check_circle-CYXeiF3f-DAAbkuAz.js.map} +1 -1
  459. package/{chevron_right-C6tOB0si-96f8a9c6.cjs → chevron_right-C6tOB0si-CAGtVHIJ.cjs} +1 -1
  460. package/{chevron_right-C6tOB0si-96f8a9c6.cjs.map → chevron_right-C6tOB0si-CAGtVHIJ.cjs.map} +1 -1
  461. package/{chevron_right-C6tOB0si-ac35ad56.js → chevron_right-C6tOB0si-CQUlqPv7.js} +1 -1
  462. package/{chevron_right-C6tOB0si-ac35ad56.js.map → chevron_right-C6tOB0si-CQUlqPv7.js.map} +1 -1
  463. package/{childrenToString-BP48L6HE-0cd30a27.cjs → childrenToString-BP48L6HE-99vBR-I0.cjs} +1 -1
  464. package/{childrenToString-BP48L6HE-0cd30a27.cjs.map → childrenToString-BP48L6HE-99vBR-I0.cjs.map} +1 -1
  465. package/{childrenToString-BP48L6HE-416df522.js → childrenToString-BP48L6HE-CwwYrHi6.js} +1 -1
  466. package/{childrenToString-BP48L6HE-416df522.js.map → childrenToString-BP48L6HE-CwwYrHi6.js.map} +1 -1
  467. package/{close-rGTzRQfw-4984cc86.cjs → close-rGTzRQfw-CH6gBTQZ.cjs} +1 -1
  468. package/{close-rGTzRQfw-4984cc86.cjs.map → close-rGTzRQfw-CH6gBTQZ.cjs.map} +1 -1
  469. package/{close-rGTzRQfw-7e0b4df7.js → close-rGTzRQfw-Dbu1sjKk.js} +1 -1
  470. package/{close-rGTzRQfw-7e0b4df7.js.map → close-rGTzRQfw-Dbu1sjKk.js.map} +1 -1
  471. package/extends-C3382pL0.js +23 -0
  472. package/{extends-31d75778.js.map → extends-C3382pL0.js.map} +1 -1
  473. package/{extends-60b54772.cjs → extends-Ddk9WqIm.cjs} +1 -1
  474. package/{extends-60b54772.cjs.map → extends-Ddk9WqIm.cjs.map} +1 -1
  475. package/{getKeyboardFocusableElements-58a00025.js → getKeyboardFocusableElements-CbK6M1xT.js} +2 -3
  476. package/{getKeyboardFocusableElements-58a00025.js.map → getKeyboardFocusableElements-CbK6M1xT.js.map} +1 -1
  477. package/{getKeyboardFocusableElements-aba1bd01.cjs → getKeyboardFocusableElements-DoTjYzTH.cjs} +1 -1
  478. package/{getKeyboardFocusableElements-aba1bd01.cjs.map → getKeyboardFocusableElements-DoTjYzTH.cjs.map} +1 -1
  479. package/{index-1f4f169d.cjs → index-B8Rbc1qP.cjs} +2 -2
  480. package/{index-1f4f169d.cjs.map → index-B8Rbc1qP.cjs.map} +1 -1
  481. package/{index-c6e22bb9.js → index-B9BgsxnA.js} +2 -2
  482. package/{index-c6e22bb9.js.map → index-B9BgsxnA.js.map} +1 -1
  483. package/{index-ef2e9d11.cjs → index-BYW82IHE.cjs} +2 -2
  484. package/{index-ef2e9d11.cjs.map → index-BYW82IHE.cjs.map} +1 -1
  485. package/{index-47e4931c.js → index-CdPVLxQ_.js} +2 -2
  486. package/{index-47e4931c.js.map → index-CdPVLxQ_.js.map} +1 -1
  487. package/index-Crqvnd9D.js +479 -0
  488. package/{index-06c0bdf0.js.map → index-Crqvnd9D.js.map} +1 -1
  489. package/index-DGxJnlis.cjs +2 -0
  490. package/{index-a53df036.cjs.map → index-DGxJnlis.cjs.map} +1 -1
  491. package/{info-BiufEIKW-f73c8f68.js → info-BiufEIKW-5zxL2v35.js} +1 -1
  492. package/{info-BiufEIKW-f73c8f68.js.map → info-BiufEIKW-5zxL2v35.js.map} +1 -1
  493. package/{info-BiufEIKW-9f16129f.cjs → info-BiufEIKW-BQvVCqQB.cjs} +1 -1
  494. package/{info-BiufEIKW-9f16129f.cjs.map → info-BiufEIKW-BQvVCqQB.cjs.map} +1 -1
  495. package/{jsx-runtime-82a9ddf6.js → jsx-runtime-B6kdoens.js} +99 -111
  496. package/{jsx-runtime-82a9ddf6.js.map → jsx-runtime-B6kdoens.js.map} +1 -1
  497. package/{jsx-runtime-494437bb.cjs → jsx-runtime-Cek9Ww4S.cjs} +7 -9
  498. package/{jsx-runtime-494437bb.cjs.map → jsx-runtime-Cek9Ww4S.cjs.map} +1 -1
  499. package/{jsx-runtime-DmTjM30f-4402697a.cjs → jsx-runtime-DmTjM30f-CS_-PsQX.cjs} +1 -1
  500. package/{jsx-runtime-DmTjM30f-4402697a.cjs.map → jsx-runtime-DmTjM30f-CS_-PsQX.cjs.map} +1 -1
  501. package/{jsx-runtime-DmTjM30f-ee8f7b1a.js → jsx-runtime-DmTjM30f-Qvbpxce2.js} +4 -8
  502. package/{jsx-runtime-DmTjM30f-ee8f7b1a.js.map → jsx-runtime-DmTjM30f-Qvbpxce2.js.map} +1 -1
  503. package/{motion-dae3950e.cjs → motion-C4VO4Fpk.cjs} +2 -2
  504. package/{motion-dae3950e.cjs.map → motion-C4VO4Fpk.cjs.map} +1 -1
  505. package/{motion-a0a946d6.js → motion-DztvaDAI.js} +4 -5
  506. package/{motion-a0a946d6.js.map → motion-DztvaDAI.js.map} +1 -1
  507. package/package.json +6 -6
  508. package/{primitive-898a5f6f.cjs → primitive-CGGVJgVV.cjs} +1 -1
  509. package/{primitive-898a5f6f.cjs.map → primitive-CGGVJgVV.cjs.map} +1 -1
  510. package/{primitive-90e4e69c.js → primitive-DD5BdZ26.js} +1 -1
  511. package/{primitive-90e4e69c.js.map → primitive-DD5BdZ26.js.map} +1 -1
  512. package/{tinycolor-d415b1fd.js → tinycolor-7bVxTrF6.js} +1 -1
  513. package/{tinycolor-d415b1fd.js.map → tinycolor-7bVxTrF6.js.map} +1 -1
  514. package/{tinycolor-3b50a250.cjs → tinycolor-DTF4mKtt.cjs} +1 -1
  515. package/{tinycolor-3b50a250.cjs.map → tinycolor-DTF4mKtt.cjs.map} +1 -1
  516. package/toast-CdGTVoG7.js +561 -0
  517. package/toast-CdGTVoG7.js.map +1 -0
  518. package/toast-DZzaqTjt.cjs +9 -0
  519. package/toast-DZzaqTjt.cjs.map +1 -0
  520. package/token.cjs +1 -1
  521. package/token.js +1 -1
  522. package/use-reduced-motion-B0iZwwI4.js +28 -0
  523. package/{use-reduced-motion-b359504d.js.map → use-reduced-motion-B0iZwwI4.js.map} +1 -1
  524. package/use-reduced-motion-CbCiX8I1.cjs +2 -0
  525. package/{use-reduced-motion-a766a46b.cjs.map → use-reduced-motion-CbCiX8I1.cjs.map} +1 -1
  526. package/useAccessibleColor.cjs +1 -1
  527. package/useAccessibleColor.js +3 -5
  528. package/useAccessibleColor.js.map +1 -1
  529. package/useLayoutPropsUtil-CGf5lNlK-B0iyMjtr.cjs +2 -0
  530. package/{useLayoutPropsUtil-CGf5lNlK-cd33328b.cjs.map → useLayoutPropsUtil-CGf5lNlK-B0iyMjtr.cjs.map} +1 -1
  531. package/{useLayoutPropsUtil-CGf5lNlK-f34e9597.js → useLayoutPropsUtil-CGf5lNlK-BDpNIJtx.js} +5 -9
  532. package/{useLayoutPropsUtil-CGf5lNlK-f34e9597.js.map → useLayoutPropsUtil-CGf5lNlK-BDpNIJtx.js.map} +1 -1
  533. package/useLinkStyles.cjs +1 -1
  534. package/useLinkStyles.js +1 -1
  535. package/useMergeRefs-CXJ8qoaV-D84hy3yG.cjs +2 -0
  536. package/useMergeRefs-CXJ8qoaV-D84hy3yG.cjs.map +1 -0
  537. package/useMergeRefs-CXJ8qoaV-DoR94mFy.js +12 -0
  538. package/useMergeRefs-CXJ8qoaV-DoR94mFy.js.map +1 -0
  539. package/useMergeRefs.cjs +1 -1
  540. package/useMergeRefs.cjs.map +1 -1
  541. package/useMergeRefs.js +3 -10
  542. package/useMergeRefs.js.map +1 -1
  543. package/usePrefersColorScheme-B9Awhirx-BfDjRBJD.cjs +2 -0
  544. package/usePrefersColorScheme-B9Awhirx-BfDjRBJD.cjs.map +1 -0
  545. package/usePrefersColorScheme-B9Awhirx-DhHR2kPI.js +21 -0
  546. package/usePrefersColorScheme-B9Awhirx-DhHR2kPI.js.map +1 -0
  547. package/usePrefersColorScheme.cjs +1 -1
  548. package/usePrefersColorScheme.cjs.map +1 -1
  549. package/usePrefersColorScheme.js +3 -19
  550. package/usePrefersColorScheme.js.map +1 -1
  551. package/useSize.cjs +1 -1
  552. package/useSize.cjs.map +1 -1
  553. package/useSize.js +36 -38
  554. package/useSize.js.map +1 -1
  555. package/useSwipe-BkgaWBcb-BEjYEqnh.cjs +2 -0
  556. package/useSwipe-BkgaWBcb-BEjYEqnh.cjs.map +1 -0
  557. package/useSwipe-BkgaWBcb-vV9GPhxB.js +16 -0
  558. package/useSwipe-BkgaWBcb-vV9GPhxB.js.map +1 -0
  559. package/useSwipe.cjs +1 -1
  560. package/useSwipe.cjs.map +1 -1
  561. package/useSwipe.js +3 -15
  562. package/useSwipe.js.map +1 -1
  563. package/useTrackingContext-BBuZNjoW.cjs +15 -0
  564. package/useTrackingContext-BBuZNjoW.cjs.map +1 -0
  565. package/useTrackingContext-DX5Gcrbe.js +5014 -0
  566. package/useTrackingContext-DX5Gcrbe.js.map +1 -0
  567. package/useTrackingId.cjs +1 -1
  568. package/useTrackingId.cjs.map +1 -1
  569. package/useTrackingId.js +3 -3
  570. package/{warning-DDltrOR--36733091.js → warning-DDltrOR--BVtwqwWT.js} +1 -1
  571. package/{warning-DDltrOR--36733091.js.map → warning-DDltrOR--BVtwqwWT.js.map} +1 -1
  572. package/{warning-DDltrOR--31461705.cjs → warning-DDltrOR--raWQD1z0.cjs} +1 -1
  573. package/{warning-DDltrOR--31461705.cjs.map → warning-DDltrOR--raWQD1z0.cjs.map} +1 -1
  574. package/Alert-BULbyuJn-6bc0372f.js +0 -91
  575. package/Alert-BULbyuJn-85b8cba4.cjs +0 -2
  576. package/ButtonToggle-uOhiLjZh-7f18dd4f.cjs +0 -2
  577. package/Checkbox-Bac2nQzq-03b67a48.cjs +0 -2
  578. package/Chip-BVUDQYeX-5eb1e24c.cjs +0 -2
  579. package/Dialog-LF_eUywW-bdbb253d.cjs +0 -2
  580. package/Flex-D-uYVS9I-b172b22b.cjs +0 -2
  581. package/Helper-CicCRgpB-cc748e80.cjs +0 -2
  582. package/Icon-BcLI32jH-090788b5.cjs +0 -2
  583. package/Icon-BcLI32jH-6c61a1d4.js +0 -48
  584. package/Label-CkY8ldc9-f9a4ff73.cjs +0 -2
  585. package/ListView.module-Hib8oMK_-e8806d56.js +0 -11
  586. package/ListView.module-Hib8oMK_-eb6a2b5b.cjs +0 -2
  587. package/Listbox.module-6bX97NDI-56b35452.js +0 -13
  588. package/Listbox.module-6bX97NDI-d18843c8.cjs +0 -2
  589. package/Overflow-mCmpVO6E-f2178064.cjs +0 -2
  590. package/Popover-w3OnmR7f-2cf208a7.cjs +0 -2
  591. package/SrOnly-CZOsd0yE-274dacb6.js +0 -13
  592. package/SrOnly-CZOsd0yE-76cdbcfb.cjs +0 -2
  593. package/Text-DW_1b5Ao-fa5ca1ca.cjs +0 -2
  594. package/TextField-C0ccUDu5-2c0409d1.cjs +0 -2
  595. package/TextField-C0ccUDu5-c3d7d2cc.js +0 -142
  596. package/Tooltip-Cp1dXMJf-e01c8adb.cjs +0 -2
  597. package/_commonjsHelpers-6763f629.cjs.map +0 -1
  598. package/_commonjsHelpers-c5d32002.js.map +0 -1
  599. package/extends-31d75778.js +0 -27
  600. package/index-06c0bdf0.js +0 -480
  601. package/index-17ecb2bb.js.map +0 -1
  602. package/index-63a9d04d.cjs +0 -5
  603. package/index-63a9d04d.cjs.map +0 -1
  604. package/index-a53df036.cjs +0 -2
  605. package/index-c4b570f4.cjs +0 -2
  606. package/index-c4b570f4.cjs.map +0 -1
  607. package/index-e38aed53.js.map +0 -1
  608. package/index13.css +0 -1
  609. package/index6.css +0 -1
  610. package/use-reduced-motion-a766a46b.cjs +0 -2
  611. package/use-reduced-motion-b359504d.js +0 -28
  612. package/useLayoutPropsUtil-CGf5lNlK-cd33328b.cjs +0 -2
  613. /package/{index.css → Announcement.css} +0 -0
  614. /package/{index2.css → Avatar.css} +0 -0
  615. /package/{index3.css → Badge.css} +0 -0
  616. /package/{index4.css → Calendar.css} +0 -0
  617. /package/{index5.css → Card.css} +0 -0
  618. /package/{index7.css → Details.css} +0 -0
  619. /package/{index8.css → Divider.css} +0 -0
  620. /package/{index9.css → Drawer.css} +0 -0
  621. /package/{index10.css → Grid.css} +0 -0
  622. /package/{index11.css → Layout.css} +0 -0
  623. /package/{index23.css → Link-BbiA85bl.css} +0 -0
  624. /package/{index12.css → Menu.css} +0 -0
  625. /package/{index14.css → ProgressBar.css} +0 -0
  626. /package/{index15.css → Radio.css} +0 -0
  627. /package/{index16.css → SegmentedControl.css} +0 -0
  628. /package/{index17.css → SideNav.css} +0 -0
  629. /package/{index18.css → Stepper.css} +0 -0
  630. /package/{index19.css → Switch.css} +0 -0
  631. /package/{index20.css → Tab.css} +0 -0
  632. /package/{index21.css → Textarea.css} +0 -0
  633. /package/{index22.css → toast.css} +0 -0
package/Combobox.js CHANGED
@@ -1,4185 +1,12 @@
1
- import "./index6.css";
2
- import { j as Ne } from "./jsx-runtime-82a9ddf6.js";
3
- import { f as z } from "./jsx-runtime-DmTjM30f-ee8f7b1a.js";
4
- import Ge, { useRef as ae, useCallback as se, useEffect as ce, useMemo as lt, cloneElement as Cr, useLayoutEffect as Rn, useReducer as Sr, Component as Dr, createContext as Tr, useState as pe, useId as Qt, useContext as Pr } from "react";
5
- import { _ as Y, a as ge } from "./extends-31d75778.js";
6
- import { g as Nn } from "./_commonjsHelpers-c5d32002.js";
7
- import { G as Te } from "./index-c6e22bb9.js";
8
- import { j as Rr } from "./Flex-D-uYVS9I-8b9c305e.js";
9
- import { Q as ht, C as Nr } from "./Popover-w3OnmR7f-5daa6b79.js";
10
- import "./tinycolor-d415b1fd.js";
11
- import { J as Mn } from "./useLayoutPropsUtil-CGf5lNlK-f34e9597.js";
12
- import { j as Mr } from "./Label-CkY8ldc9-c896ed38.js";
13
- import { C as Zt } from "./ButtonToggle-uOhiLjZh-d38c2b9a.js";
14
- import { A as en } from "./Chip-BVUDQYeX-4690b0bb.js";
15
- import { I as Ar } from "./Icon-BcLI32jH-6c61a1d4.js";
16
- import { e as kr } from "./Checkbox-Bac2nQzq-bbc3e1a5.js";
17
- import { $ as tn } from "./Text-DW_1b5Ao-1e66bc85.js";
18
- import { a as Vr } from "./close-rGTzRQfw-7e0b4df7.js";
19
- import { a as Hr } from "./chevron_right-C6tOB0si-ac35ad56.js";
20
- import { a as Kr } from "./check-EixQBT_K-b5474547.js";
21
- import { v as jr } from "./Helper-CicCRgpB-584bc8e1.js";
22
- import { l as An } from "./Listbox.module-6bX97NDI-56b35452.js";
23
- import { i as ct } from "./ListView.module-Hib8oMK_-e8806d56.js";
24
- import { useTrackingId as kn } from "./useTrackingId.js";
25
- import { n as nn } from "./childrenToString-BP48L6HE-416df522.js";
26
- function rn(e) {
27
- if (e === void 0)
28
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
29
- return e;
30
- }
31
- function dt(e, n) {
32
- return dt = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
33
- return r.__proto__ = i, r;
34
- }, dt(e, n);
35
- }
36
- function $r(e, n) {
37
- e.prototype = Object.create(n.prototype), e.prototype.constructor = e, dt(e, n);
38
- }
39
- var ft = { exports: {} }, Ue = { exports: {} }, Z = {};
40
- /** @license React v16.13.1
41
- * react-is.production.min.js
42
- *
43
- * Copyright (c) Facebook, Inc. and its affiliates.
44
- *
45
- * This source code is licensed under the MIT license found in the
46
- * LICENSE file in the root directory of this source tree.
47
- */
48
- var on;
49
- function Fr() {
50
- if (on)
51
- return Z;
52
- on = 1;
53
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, D = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, p = e ? Symbol.for("react.scope") : 60119;
54
- function m(l) {
55
- if (typeof l == "object" && l !== null) {
56
- var P = l.$$typeof;
57
- switch (P) {
58
- case n:
59
- switch (l = l.type, l) {
60
- case c:
61
- case d:
62
- case i:
63
- case t:
64
- case o:
65
- case h:
66
- return l;
67
- default:
68
- switch (l = l && l.$$typeof, l) {
69
- case u:
70
- case a:
71
- case O:
72
- case T:
73
- case s:
74
- return l;
75
- default:
76
- return P;
77
- }
78
- }
79
- case r:
80
- return P;
81
- }
82
- }
83
- }
84
- function f(l) {
85
- return m(l) === d;
86
- }
87
- return Z.AsyncMode = c, Z.ConcurrentMode = d, Z.ContextConsumer = u, Z.ContextProvider = s, Z.Element = n, Z.ForwardRef = a, Z.Fragment = i, Z.Lazy = O, Z.Memo = T, Z.Portal = r, Z.Profiler = t, Z.StrictMode = o, Z.Suspense = h, Z.isAsyncMode = function(l) {
88
- return f(l) || m(l) === c;
89
- }, Z.isConcurrentMode = f, Z.isContextConsumer = function(l) {
90
- return m(l) === u;
91
- }, Z.isContextProvider = function(l) {
92
- return m(l) === s;
93
- }, Z.isElement = function(l) {
94
- return typeof l == "object" && l !== null && l.$$typeof === n;
95
- }, Z.isForwardRef = function(l) {
96
- return m(l) === a;
97
- }, Z.isFragment = function(l) {
98
- return m(l) === i;
99
- }, Z.isLazy = function(l) {
100
- return m(l) === O;
101
- }, Z.isMemo = function(l) {
102
- return m(l) === T;
103
- }, Z.isPortal = function(l) {
104
- return m(l) === r;
105
- }, Z.isProfiler = function(l) {
106
- return m(l) === t;
107
- }, Z.isStrictMode = function(l) {
108
- return m(l) === o;
109
- }, Z.isSuspense = function(l) {
110
- return m(l) === h;
111
- }, Z.isValidElementType = function(l) {
112
- return typeof l == "string" || typeof l == "function" || l === i || l === d || l === t || l === o || l === h || l === D || typeof l == "object" && l !== null && (l.$$typeof === O || l.$$typeof === T || l.$$typeof === s || l.$$typeof === u || l.$$typeof === a || l.$$typeof === g || l.$$typeof === K || l.$$typeof === p || l.$$typeof === N);
113
- }, Z.typeOf = m, Z;
114
- }
115
- var ee = {};
116
- /** @license React v16.13.1
117
- * react-is.development.js
118
- *
119
- * Copyright (c) Facebook, Inc. and its affiliates.
120
- *
121
- * This source code is licensed under the MIT license found in the
122
- * LICENSE file in the root directory of this source tree.
123
- */
124
- var sn;
125
- function Lr() {
126
- return sn || (sn = 1, process.env.NODE_ENV !== "production" && function() {
127
- var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, o = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, c = e ? Symbol.for("react.async_mode") : 60111, d = e ? Symbol.for("react.concurrent_mode") : 60111, a = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, D = e ? Symbol.for("react.suspense_list") : 60120, T = e ? Symbol.for("react.memo") : 60115, O = e ? Symbol.for("react.lazy") : 60116, N = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, K = e ? Symbol.for("react.responder") : 60118, p = e ? Symbol.for("react.scope") : 60119;
128
- function m(_) {
129
- return typeof _ == "string" || typeof _ == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
130
- _ === i || _ === d || _ === t || _ === o || _ === h || _ === D || typeof _ == "object" && _ !== null && (_.$$typeof === O || _.$$typeof === T || _.$$typeof === s || _.$$typeof === u || _.$$typeof === a || _.$$typeof === g || _.$$typeof === K || _.$$typeof === p || _.$$typeof === N);
131
- }
132
- function f(_) {
133
- if (typeof _ == "object" && _ !== null) {
134
- var G = _.$$typeof;
135
- switch (G) {
136
- case n:
137
- var C = _.type;
138
- switch (C) {
139
- case c:
140
- case d:
141
- case i:
142
- case t:
143
- case o:
144
- case h:
145
- return C;
146
- default:
147
- var X = C && C.$$typeof;
148
- switch (X) {
149
- case u:
150
- case a:
151
- case O:
152
- case T:
153
- case s:
154
- return X;
155
- default:
156
- return G;
157
- }
158
- }
159
- case r:
160
- return G;
161
- }
162
- }
163
- }
164
- var l = c, P = d, U = u, k = s, q = n, j = a, M = i, $ = O, B = T, L = r, Q = t, J = o, W = h, re = !1;
165
- function ie(_) {
166
- return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), v(_) || f(_) === c;
167
- }
168
- function v(_) {
169
- return f(_) === d;
170
- }
171
- function x(_) {
172
- return f(_) === u;
173
- }
174
- function F(_) {
175
- return f(_) === s;
176
- }
177
- function w(_) {
178
- return typeof _ == "object" && _ !== null && _.$$typeof === n;
179
- }
180
- function I(_) {
181
- return f(_) === a;
182
- }
183
- function y(_) {
184
- return f(_) === i;
185
- }
186
- function b(_) {
187
- return f(_) === O;
188
- }
189
- function S(_) {
190
- return f(_) === T;
191
- }
192
- function V(_) {
193
- return f(_) === r;
194
- }
195
- function H(_) {
196
- return f(_) === t;
197
- }
198
- function A(_) {
199
- return f(_) === o;
200
- }
201
- function R(_) {
202
- return f(_) === h;
203
- }
204
- ee.AsyncMode = l, ee.ConcurrentMode = P, ee.ContextConsumer = U, ee.ContextProvider = k, ee.Element = q, ee.ForwardRef = j, ee.Fragment = M, ee.Lazy = $, ee.Memo = B, ee.Portal = L, ee.Profiler = Q, ee.StrictMode = J, ee.Suspense = W, ee.isAsyncMode = ie, ee.isConcurrentMode = v, ee.isContextConsumer = x, ee.isContextProvider = F, ee.isElement = w, ee.isForwardRef = I, ee.isFragment = y, ee.isLazy = b, ee.isMemo = S, ee.isPortal = V, ee.isProfiler = H, ee.isStrictMode = A, ee.isSuspense = R, ee.isValidElementType = m, ee.typeOf = f;
205
- }()), ee;
206
- }
207
- var un;
208
- function Vn() {
209
- return un || (un = 1, process.env.NODE_ENV === "production" ? Ue.exports = Fr() : Ue.exports = Lr()), Ue.exports;
210
- }
211
- /*
212
- object-assign
213
- (c) Sindre Sorhus
214
- @license MIT
215
- */
216
- var nt, an;
217
- function Br() {
218
- if (an)
219
- return nt;
220
- an = 1;
221
- var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
222
- function i(t) {
223
- if (t == null)
224
- throw new TypeError("Object.assign cannot be called with null or undefined");
225
- return Object(t);
226
- }
227
- function o() {
228
- try {
229
- if (!Object.assign)
230
- return !1;
231
- var t = new String("abc");
232
- if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
233
- return !1;
234
- for (var s = {}, u = 0; u < 10; u++)
235
- s["_" + String.fromCharCode(u)] = u;
236
- var c = Object.getOwnPropertyNames(s).map(function(a) {
237
- return s[a];
238
- });
239
- if (c.join("") !== "0123456789")
240
- return !1;
241
- var d = {};
242
- return "abcdefghijklmnopqrst".split("").forEach(function(a) {
243
- d[a] = a;
244
- }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
245
- } catch {
246
- return !1;
247
- }
248
- }
249
- return nt = o() ? Object.assign : function(t, s) {
250
- for (var u, c = i(t), d, a = 1; a < arguments.length; a++) {
251
- u = Object(arguments[a]);
252
- for (var h in u)
253
- n.call(u, h) && (c[h] = u[h]);
254
- if (e) {
255
- d = e(u);
256
- for (var D = 0; D < d.length; D++)
257
- r.call(u, d[D]) && (c[d[D]] = u[d[D]]);
258
- }
259
- }
260
- return c;
261
- }, nt;
262
- }
263
- var rt, ln;
264
- function gt() {
265
- if (ln)
266
- return rt;
267
- ln = 1;
268
- var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
269
- return rt = e, rt;
270
- }
271
- var ot, cn;
272
- function Hn() {
273
- return cn || (cn = 1, ot = Function.call.bind(Object.prototype.hasOwnProperty)), ot;
274
- }
275
- var it, dn;
276
- function Ur() {
277
- if (dn)
278
- return it;
279
- dn = 1;
280
- var e = function() {
281
- };
282
- if (process.env.NODE_ENV !== "production") {
283
- var n = gt(), r = {}, i = Hn();
284
- e = function(t) {
285
- var s = "Warning: " + t;
286
- typeof console < "u" && console.error(s);
287
- try {
288
- throw new Error(s);
289
- } catch {
290
- }
291
- };
292
- }
293
- function o(t, s, u, c, d) {
294
- if (process.env.NODE_ENV !== "production") {
295
- for (var a in t)
296
- if (i(t, a)) {
297
- var h;
298
- try {
299
- if (typeof t[a] != "function") {
300
- var D = Error(
301
- (c || "React class") + ": " + u + " type `" + a + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[a] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
302
- );
303
- throw D.name = "Invariant Violation", D;
304
- }
305
- h = t[a](s, a, c, u, null, n);
306
- } catch (O) {
307
- h = O;
308
- }
309
- if (h && !(h instanceof Error) && e(
310
- (c || "React class") + ": type specification of " + u + " `" + a + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
311
- ), h instanceof Error && !(h.message in r)) {
312
- r[h.message] = !0;
313
- var T = d ? d() : "";
314
- e(
315
- "Failed " + u + " type: " + h.message + (T ?? "")
316
- );
317
- }
318
- }
319
- }
320
- }
321
- return o.resetWarningCache = function() {
322
- process.env.NODE_ENV !== "production" && (r = {});
323
- }, it = o, it;
324
- }
325
- var st, fn;
326
- function Wr() {
327
- if (fn)
328
- return st;
329
- fn = 1;
330
- var e = Vn(), n = Br(), r = gt(), i = Hn(), o = Ur(), t = function() {
331
- };
332
- process.env.NODE_ENV !== "production" && (t = function(u) {
333
- var c = "Warning: " + u;
334
- typeof console < "u" && console.error(c);
335
- try {
336
- throw new Error(c);
337
- } catch {
338
- }
339
- });
340
- function s() {
341
- return null;
342
- }
343
- return st = function(u, c) {
344
- var d = typeof Symbol == "function" && Symbol.iterator, a = "@@iterator";
345
- function h(v) {
346
- var x = v && (d && v[d] || v[a]);
347
- if (typeof x == "function")
348
- return x;
349
- }
350
- var D = "<<anonymous>>", T = {
351
- array: K("array"),
352
- bigint: K("bigint"),
353
- bool: K("boolean"),
354
- func: K("function"),
355
- number: K("number"),
356
- object: K("object"),
357
- string: K("string"),
358
- symbol: K("symbol"),
359
- any: p(),
360
- arrayOf: m,
361
- element: f(),
362
- elementType: l(),
363
- instanceOf: P,
364
- node: j(),
365
- objectOf: k,
366
- oneOf: U,
367
- oneOfType: q,
368
- shape: $,
369
- exact: B
370
- };
371
- function O(v, x) {
372
- return v === x ? v !== 0 || 1 / v === 1 / x : v !== v && x !== x;
373
- }
374
- function N(v, x) {
375
- this.message = v, this.data = x && typeof x == "object" ? x : {}, this.stack = "";
376
- }
377
- N.prototype = Error.prototype;
378
- function g(v) {
379
- if (process.env.NODE_ENV !== "production")
380
- var x = {}, F = 0;
381
- function w(y, b, S, V, H, A, R) {
382
- if (V = V || D, A = A || S, R !== r) {
383
- if (c) {
384
- var _ = new Error(
385
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
386
- );
387
- throw _.name = "Invariant Violation", _;
388
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
389
- var G = V + ":" + S;
390
- !x[G] && // Avoid spamming the console because they are often not actionable except for lib authors
391
- F < 3 && (t(
392
- "You are manually calling a React.PropTypes validation function for the `" + A + "` prop on `" + V + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
393
- ), x[G] = !0, F++);
394
- }
395
- }
396
- return b[S] == null ? y ? b[S] === null ? new N("The " + H + " `" + A + "` is marked as required " + ("in `" + V + "`, but its value is `null`.")) : new N("The " + H + " `" + A + "` is marked as required in " + ("`" + V + "`, but its value is `undefined`.")) : null : v(b, S, V, H, A);
397
- }
398
- var I = w.bind(null, !1);
399
- return I.isRequired = w.bind(null, !0), I;
400
- }
401
- function K(v) {
402
- function x(F, w, I, y, b, S) {
403
- var V = F[w], H = J(V);
404
- if (H !== v) {
405
- var A = W(V);
406
- return new N(
407
- "Invalid " + y + " `" + b + "` of type " + ("`" + A + "` supplied to `" + I + "`, expected ") + ("`" + v + "`."),
408
- { expectedType: v }
409
- );
410
- }
411
- return null;
412
- }
413
- return g(x);
414
- }
415
- function p() {
416
- return g(s);
417
- }
418
- function m(v) {
419
- function x(F, w, I, y, b) {
420
- if (typeof v != "function")
421
- return new N("Property `" + b + "` of component `" + I + "` has invalid PropType notation inside arrayOf.");
422
- var S = F[w];
423
- if (!Array.isArray(S)) {
424
- var V = J(S);
425
- return new N("Invalid " + y + " `" + b + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected an array."));
426
- }
427
- for (var H = 0; H < S.length; H++) {
428
- var A = v(S, H, I, y, b + "[" + H + "]", r);
429
- if (A instanceof Error)
430
- return A;
431
- }
432
- return null;
433
- }
434
- return g(x);
435
- }
436
- function f() {
437
- function v(x, F, w, I, y) {
438
- var b = x[F];
439
- if (!u(b)) {
440
- var S = J(b);
441
- return new N("Invalid " + I + " `" + y + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected a single ReactElement."));
442
- }
443
- return null;
444
- }
445
- return g(v);
446
- }
447
- function l() {
448
- function v(x, F, w, I, y) {
449
- var b = x[F];
450
- if (!e.isValidElementType(b)) {
451
- var S = J(b);
452
- return new N("Invalid " + I + " `" + y + "` of type " + ("`" + S + "` supplied to `" + w + "`, expected a single ReactElement type."));
453
- }
454
- return null;
455
- }
456
- return g(v);
457
- }
458
- function P(v) {
459
- function x(F, w, I, y, b) {
460
- if (!(F[w] instanceof v)) {
461
- var S = v.name || D, V = ie(F[w]);
462
- return new N("Invalid " + y + " `" + b + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected ") + ("instance of `" + S + "`."));
463
- }
464
- return null;
465
- }
466
- return g(x);
467
- }
468
- function U(v) {
469
- if (!Array.isArray(v))
470
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? t(
471
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
472
- ) : t("Invalid argument supplied to oneOf, expected an array.")), s;
473
- function x(F, w, I, y, b) {
474
- for (var S = F[w], V = 0; V < v.length; V++)
475
- if (O(S, v[V]))
476
- return null;
477
- var H = JSON.stringify(v, function(R, _) {
478
- var G = W(_);
479
- return G === "symbol" ? String(_) : _;
480
- });
481
- return new N("Invalid " + y + " `" + b + "` of value `" + String(S) + "` " + ("supplied to `" + I + "`, expected one of " + H + "."));
482
- }
483
- return g(x);
484
- }
485
- function k(v) {
486
- function x(F, w, I, y, b) {
487
- if (typeof v != "function")
488
- return new N("Property `" + b + "` of component `" + I + "` has invalid PropType notation inside objectOf.");
489
- var S = F[w], V = J(S);
490
- if (V !== "object")
491
- return new N("Invalid " + y + " `" + b + "` of type " + ("`" + V + "` supplied to `" + I + "`, expected an object."));
492
- for (var H in S)
493
- if (i(S, H)) {
494
- var A = v(S, H, I, y, b + "." + H, r);
495
- if (A instanceof Error)
496
- return A;
497
- }
498
- return null;
499
- }
500
- return g(x);
501
- }
502
- function q(v) {
503
- if (!Array.isArray(v))
504
- return process.env.NODE_ENV !== "production" && t("Invalid argument supplied to oneOfType, expected an instance of array."), s;
505
- for (var x = 0; x < v.length; x++) {
506
- var F = v[x];
507
- if (typeof F != "function")
508
- return t(
509
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(F) + " at index " + x + "."
510
- ), s;
511
- }
512
- function w(I, y, b, S, V) {
513
- for (var H = [], A = 0; A < v.length; A++) {
514
- var R = v[A], _ = R(I, y, b, S, V, r);
515
- if (_ == null)
516
- return null;
517
- _.data && i(_.data, "expectedType") && H.push(_.data.expectedType);
518
- }
519
- var G = H.length > 0 ? ", expected one of type [" + H.join(", ") + "]" : "";
520
- return new N("Invalid " + S + " `" + V + "` supplied to " + ("`" + b + "`" + G + "."));
521
- }
522
- return g(w);
523
- }
524
- function j() {
525
- function v(x, F, w, I, y) {
526
- return L(x[F]) ? null : new N("Invalid " + I + " `" + y + "` supplied to " + ("`" + w + "`, expected a ReactNode."));
527
- }
528
- return g(v);
529
- }
530
- function M(v, x, F, w, I) {
531
- return new N(
532
- (v || "React class") + ": " + x + " type `" + F + "." + w + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + I + "`."
533
- );
534
- }
535
- function $(v) {
536
- function x(F, w, I, y, b) {
537
- var S = F[w], V = J(S);
538
- if (V !== "object")
539
- return new N("Invalid " + y + " `" + b + "` of type `" + V + "` " + ("supplied to `" + I + "`, expected `object`."));
540
- for (var H in v) {
541
- var A = v[H];
542
- if (typeof A != "function")
543
- return M(I, y, b, H, W(A));
544
- var R = A(S, H, I, y, b + "." + H, r);
545
- if (R)
546
- return R;
547
- }
548
- return null;
549
- }
550
- return g(x);
551
- }
552
- function B(v) {
553
- function x(F, w, I, y, b) {
554
- var S = F[w], V = J(S);
555
- if (V !== "object")
556
- return new N("Invalid " + y + " `" + b + "` of type `" + V + "` " + ("supplied to `" + I + "`, expected `object`."));
557
- var H = n({}, F[w], v);
558
- for (var A in H) {
559
- var R = v[A];
560
- if (i(v, A) && typeof R != "function")
561
- return M(I, y, b, A, W(R));
562
- if (!R)
563
- return new N(
564
- "Invalid " + y + " `" + b + "` key `" + A + "` supplied to `" + I + "`.\nBad object: " + JSON.stringify(F[w], null, " ") + `
565
- Valid keys: ` + JSON.stringify(Object.keys(v), null, " ")
566
- );
567
- var _ = R(S, A, I, y, b + "." + A, r);
568
- if (_)
569
- return _;
570
- }
571
- return null;
572
- }
573
- return g(x);
574
- }
575
- function L(v) {
576
- switch (typeof v) {
577
- case "number":
578
- case "string":
579
- case "undefined":
580
- return !0;
581
- case "boolean":
582
- return !v;
583
- case "object":
584
- if (Array.isArray(v))
585
- return v.every(L);
586
- if (v === null || u(v))
587
- return !0;
588
- var x = h(v);
589
- if (x) {
590
- var F = x.call(v), w;
591
- if (x !== v.entries) {
592
- for (; !(w = F.next()).done; )
593
- if (!L(w.value))
594
- return !1;
595
- } else
596
- for (; !(w = F.next()).done; ) {
597
- var I = w.value;
598
- if (I && !L(I[1]))
599
- return !1;
600
- }
601
- } else
602
- return !1;
603
- return !0;
604
- default:
605
- return !1;
606
- }
607
- }
608
- function Q(v, x) {
609
- return v === "symbol" ? !0 : x ? x["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && x instanceof Symbol : !1;
610
- }
611
- function J(v) {
612
- var x = typeof v;
613
- return Array.isArray(v) ? "array" : v instanceof RegExp ? "object" : Q(x, v) ? "symbol" : x;
614
- }
615
- function W(v) {
616
- if (typeof v > "u" || v === null)
617
- return "" + v;
618
- var x = J(v);
619
- if (x === "object") {
620
- if (v instanceof Date)
621
- return "date";
622
- if (v instanceof RegExp)
623
- return "regexp";
624
- }
625
- return x;
626
- }
627
- function re(v) {
628
- var x = W(v);
629
- switch (x) {
630
- case "array":
631
- case "object":
632
- return "an " + x;
633
- case "boolean":
634
- case "date":
635
- case "regexp":
636
- return "a " + x;
637
- default:
638
- return x;
639
- }
640
- }
641
- function ie(v) {
642
- return !v.constructor || !v.constructor.name ? D : v.constructor.name;
643
- }
644
- return T.checkPropTypes = o, T.resetWarningCache = o.resetWarningCache, T.PropTypes = T, T;
645
- }, st;
646
- }
647
- var ut, pn;
648
- function Yr() {
649
- if (pn)
650
- return ut;
651
- pn = 1;
652
- var e = gt();
653
- function n() {
654
- }
655
- function r() {
656
- }
657
- return r.resetWarningCache = n, ut = function() {
658
- function i(s, u, c, d, a, h) {
659
- if (h !== e) {
660
- var D = new Error(
661
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
662
- );
663
- throw D.name = "Invariant Violation", D;
664
- }
665
- }
666
- i.isRequired = i;
667
- function o() {
668
- return i;
669
- }
670
- var t = {
671
- array: i,
672
- bigint: i,
673
- bool: i,
674
- func: i,
675
- number: i,
676
- object: i,
677
- string: i,
678
- symbol: i,
679
- any: i,
680
- arrayOf: o,
681
- element: i,
682
- elementType: i,
683
- instanceOf: o,
684
- node: i,
685
- objectOf: o,
686
- oneOf: o,
687
- oneOfType: o,
688
- shape: o,
689
- exact: o,
690
- checkPropTypes: r,
691
- resetWarningCache: n
692
- };
693
- return t.PropTypes = t, t;
694
- }, ut;
695
- }
696
- if (process.env.NODE_ENV !== "production") {
697
- var qr = Vn(), zr = !0;
698
- ft.exports = Wr()(qr.isElement, zr);
699
- } else
700
- ft.exports = Yr()();
701
- var Gr = ft.exports;
702
- const E = /* @__PURE__ */ Nn(Gr);
703
- var pt = { exports: {} }, te = {};
704
- /**
705
- * @license React
706
- * react-is.production.min.js
707
- *
708
- * Copyright (c) Facebook, Inc. and its affiliates.
709
- *
710
- * This source code is licensed under the MIT license found in the
711
- * LICENSE file in the root directory of this source tree.
712
- */
713
- var mn;
714
- function Jr() {
715
- if (mn)
716
- return te;
717
- mn = 1;
718
- var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), O;
719
- O = Symbol.for("react.module.reference");
720
- function N(g) {
721
- if (typeof g == "object" && g !== null) {
722
- var K = g.$$typeof;
723
- switch (K) {
724
- case e:
725
- switch (g = g.type, g) {
726
- case r:
727
- case o:
728
- case i:
729
- case d:
730
- case a:
731
- return g;
732
- default:
733
- switch (g = g && g.$$typeof, g) {
734
- case u:
735
- case s:
736
- case c:
737
- case D:
738
- case h:
739
- case t:
740
- return g;
741
- default:
742
- return K;
743
- }
744
- }
745
- case n:
746
- return K;
747
- }
748
- }
749
- }
750
- return te.ContextConsumer = s, te.ContextProvider = t, te.Element = e, te.ForwardRef = c, te.Fragment = r, te.Lazy = D, te.Memo = h, te.Portal = n, te.Profiler = o, te.StrictMode = i, te.Suspense = d, te.SuspenseList = a, te.isAsyncMode = function() {
751
- return !1;
752
- }, te.isConcurrentMode = function() {
753
- return !1;
754
- }, te.isContextConsumer = function(g) {
755
- return N(g) === s;
756
- }, te.isContextProvider = function(g) {
757
- return N(g) === t;
758
- }, te.isElement = function(g) {
759
- return typeof g == "object" && g !== null && g.$$typeof === e;
760
- }, te.isForwardRef = function(g) {
761
- return N(g) === c;
762
- }, te.isFragment = function(g) {
763
- return N(g) === r;
764
- }, te.isLazy = function(g) {
765
- return N(g) === D;
766
- }, te.isMemo = function(g) {
767
- return N(g) === h;
768
- }, te.isPortal = function(g) {
769
- return N(g) === n;
770
- }, te.isProfiler = function(g) {
771
- return N(g) === o;
772
- }, te.isStrictMode = function(g) {
773
- return N(g) === i;
774
- }, te.isSuspense = function(g) {
775
- return N(g) === d;
776
- }, te.isSuspenseList = function(g) {
777
- return N(g) === a;
778
- }, te.isValidElementType = function(g) {
779
- return typeof g == "string" || typeof g == "function" || g === r || g === o || g === i || g === d || g === a || g === T || typeof g == "object" && g !== null && (g.$$typeof === D || g.$$typeof === h || g.$$typeof === t || g.$$typeof === s || g.$$typeof === c || g.$$typeof === O || g.getModuleId !== void 0);
780
- }, te.typeOf = N, te;
781
- }
782
- var ne = {};
783
- /**
784
- * @license React
785
- * react-is.development.js
786
- *
787
- * Copyright (c) Facebook, Inc. and its affiliates.
788
- *
789
- * This source code is licensed under the MIT license found in the
790
- * LICENSE file in the root directory of this source tree.
791
- */
792
- var hn;
793
- function Xr() {
794
- return hn || (hn = 1, process.env.NODE_ENV !== "production" && function() {
795
- var e = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), t = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.server_context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), a = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), O = !1, N = !1, g = !1, K = !1, p = !1, m;
796
- m = Symbol.for("react.module.reference");
797
- function f(C) {
798
- return !!(typeof C == "string" || typeof C == "function" || C === r || C === o || p || C === i || C === d || C === a || K || C === T || O || N || g || typeof C == "object" && C !== null && (C.$$typeof === D || C.$$typeof === h || C.$$typeof === t || C.$$typeof === s || C.$$typeof === c || // This needs to include all possible module reference object
799
- // types supported by any Flight configuration anywhere since
800
- // we don't know which Flight build this will end up being used
801
- // with.
802
- C.$$typeof === m || C.getModuleId !== void 0));
803
- }
804
- function l(C) {
805
- if (typeof C == "object" && C !== null) {
806
- var X = C.$$typeof;
807
- switch (X) {
808
- case e:
809
- var le = C.type;
810
- switch (le) {
811
- case r:
812
- case o:
813
- case i:
814
- case d:
815
- case a:
816
- return le;
817
- default:
818
- var he = le && le.$$typeof;
819
- switch (he) {
820
- case u:
821
- case s:
822
- case c:
823
- case D:
824
- case h:
825
- case t:
826
- return he;
827
- default:
828
- return X;
829
- }
830
- }
831
- case n:
832
- return X;
833
- }
834
- }
835
- }
836
- var P = s, U = t, k = e, q = c, j = r, M = D, $ = h, B = n, L = o, Q = i, J = d, W = a, re = !1, ie = !1;
837
- function v(C) {
838
- return re || (re = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), !1;
839
- }
840
- function x(C) {
841
- return ie || (ie = !0, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), !1;
842
- }
843
- function F(C) {
844
- return l(C) === s;
845
- }
846
- function w(C) {
847
- return l(C) === t;
848
- }
849
- function I(C) {
850
- return typeof C == "object" && C !== null && C.$$typeof === e;
851
- }
852
- function y(C) {
853
- return l(C) === c;
854
- }
855
- function b(C) {
856
- return l(C) === r;
857
- }
858
- function S(C) {
859
- return l(C) === D;
860
- }
861
- function V(C) {
862
- return l(C) === h;
863
- }
864
- function H(C) {
865
- return l(C) === n;
866
- }
867
- function A(C) {
868
- return l(C) === o;
869
- }
870
- function R(C) {
871
- return l(C) === i;
872
- }
873
- function _(C) {
874
- return l(C) === d;
875
- }
876
- function G(C) {
877
- return l(C) === a;
878
- }
879
- ne.ContextConsumer = P, ne.ContextProvider = U, ne.Element = k, ne.ForwardRef = q, ne.Fragment = j, ne.Lazy = M, ne.Memo = $, ne.Portal = B, ne.Profiler = L, ne.StrictMode = Q, ne.Suspense = J, ne.SuspenseList = W, ne.isAsyncMode = v, ne.isConcurrentMode = x, ne.isContextConsumer = F, ne.isContextProvider = w, ne.isElement = I, ne.isForwardRef = y, ne.isFragment = b, ne.isLazy = S, ne.isMemo = V, ne.isPortal = H, ne.isProfiler = A, ne.isStrictMode = R, ne.isSuspense = _, ne.isSuspenseList = G, ne.isValidElementType = f, ne.typeOf = l;
880
- }()), ne;
881
- }
882
- process.env.NODE_ENV === "production" ? pt.exports = Jr() : pt.exports = Xr();
883
- var gn = pt.exports;
884
- const vn = (e) => typeof e == "object" && e != null && e.nodeType === 1, In = (e, n) => (!n || e !== "hidden") && e !== "visible" && e !== "clip", at = (e, n) => {
885
- if (e.clientHeight < e.scrollHeight || e.clientWidth < e.scrollWidth) {
886
- const r = getComputedStyle(e, null);
887
- return In(r.overflowY, n) || In(r.overflowX, n) || ((i) => {
888
- const o = ((t) => {
889
- if (!t.ownerDocument || !t.ownerDocument.defaultView)
890
- return null;
891
- try {
892
- return t.ownerDocument.defaultView.frameElement;
893
- } catch {
894
- return null;
895
- }
896
- })(i);
897
- return !!o && (o.clientHeight < i.scrollHeight || o.clientWidth < i.scrollWidth);
898
- })(e);
899
- }
900
- return !1;
901
- }, We = (e, n, r, i, o, t, s, u) => t < e && s > n || t > e && s < n ? 0 : t <= e && u <= r || s >= n && u >= r ? t - e - i : s > n && u < r || t < e && u > r ? s - n + o : 0, Qr = (e) => {
902
- const n = e.parentElement;
903
- return n ?? (e.getRootNode().host || null);
904
- }, Zr = (e, n) => {
905
- var r, i, o, t;
906
- if (typeof document > "u")
907
- return [];
908
- const { scrollMode: s, block: u, inline: c, boundary: d, skipOverflowHiddenElements: a } = n, h = typeof d == "function" ? d : (J) => J !== d;
909
- if (!vn(e))
910
- throw new TypeError("Invalid target");
911
- const D = document.scrollingElement || document.documentElement, T = [];
912
- let O = e;
913
- for (; vn(O) && h(O); ) {
914
- if (O = Qr(O), O === D) {
915
- T.push(O);
916
- break;
917
- }
918
- O != null && O === document.body && at(O) && !at(document.documentElement) || O != null && at(O, a) && T.push(O);
919
- }
920
- const N = (i = (r = window.visualViewport) == null ? void 0 : r.width) != null ? i : innerWidth, g = (t = (o = window.visualViewport) == null ? void 0 : o.height) != null ? t : innerHeight, { scrollX: K, scrollY: p } = window, { height: m, width: f, top: l, right: P, bottom: U, left: k } = e.getBoundingClientRect(), { top: q, right: j, bottom: M, left: $ } = ((J) => {
921
- const W = window.getComputedStyle(J);
922
- return { top: parseFloat(W.scrollMarginTop) || 0, right: parseFloat(W.scrollMarginRight) || 0, bottom: parseFloat(W.scrollMarginBottom) || 0, left: parseFloat(W.scrollMarginLeft) || 0 };
923
- })(e);
924
- let B = u === "start" || u === "nearest" ? l - q : u === "end" ? U + M : l + m / 2 - q + M, L = c === "center" ? k + f / 2 - $ + j : c === "end" ? P + j : k - $;
925
- const Q = [];
926
- for (let J = 0; J < T.length; J++) {
927
- const W = T[J], { height: re, width: ie, top: v, right: x, bottom: F, left: w } = W.getBoundingClientRect();
928
- if (s === "if-needed" && l >= 0 && k >= 0 && U <= g && P <= N && l >= v && U <= F && k >= w && P <= x)
929
- return Q;
930
- const I = getComputedStyle(W), y = parseInt(I.borderLeftWidth, 10), b = parseInt(I.borderTopWidth, 10), S = parseInt(I.borderRightWidth, 10), V = parseInt(I.borderBottomWidth, 10);
931
- let H = 0, A = 0;
932
- const R = "offsetWidth" in W ? W.offsetWidth - W.clientWidth - y - S : 0, _ = "offsetHeight" in W ? W.offsetHeight - W.clientHeight - b - V : 0, G = "offsetWidth" in W ? W.offsetWidth === 0 ? 0 : ie / W.offsetWidth : 0, C = "offsetHeight" in W ? W.offsetHeight === 0 ? 0 : re / W.offsetHeight : 0;
933
- if (D === W)
934
- H = u === "start" ? B : u === "end" ? B - g : u === "nearest" ? We(p, p + g, g, b, V, p + B, p + B + m, m) : B - g / 2, A = c === "start" ? L : c === "center" ? L - N / 2 : c === "end" ? L - N : We(K, K + N, N, y, S, K + L, K + L + f, f), H = Math.max(0, H + p), A = Math.max(0, A + K);
935
- else {
936
- H = u === "start" ? B - v - b : u === "end" ? B - F + V + _ : u === "nearest" ? We(v, F, re, b, V + _, B, B + m, m) : B - (v + re / 2) + _ / 2, A = c === "start" ? L - w - y : c === "center" ? L - (w + ie / 2) + R / 2 : c === "end" ? L - x + S + R : We(w, x, ie, y, S + R, L, L + f, f);
937
- const { scrollLeft: X, scrollTop: le } = W;
938
- H = C === 0 ? 0 : Math.max(0, Math.min(le + H / C, W.scrollHeight - re / C + _)), A = G === 0 ? 0 : Math.max(0, Math.min(X + A / G, W.scrollWidth - ie / G + R)), B += le - H, L += X - A;
939
- }
940
- Q.push({ el: W, top: H, left: A });
941
- }
942
- return Q;
943
- };
944
- var Pe = function() {
945
- return Pe = Object.assign || function(n) {
946
- for (var r, i = 1, o = arguments.length; i < o; i++) {
947
- r = arguments[i];
948
- for (var t in r)
949
- Object.prototype.hasOwnProperty.call(r, t) && (n[t] = r[t]);
950
- }
951
- return n;
952
- }, Pe.apply(this, arguments);
953
- };
954
- var eo = 0;
955
- function _n(e) {
956
- return typeof e == "function" ? e : me;
957
- }
958
- function me() {
959
- }
960
- function Kn(e, n) {
961
- if (e) {
962
- var r = Zr(e, {
963
- boundary: n,
964
- block: "nearest",
965
- scrollMode: "if-needed"
966
- });
967
- r.forEach(function(i) {
968
- var o = i.el, t = i.top, s = i.left;
969
- o.scrollTop = t, o.scrollLeft = s;
970
- });
971
- }
972
- }
973
- function yn(e, n, r) {
974
- var i = e === n || n instanceof r.Node && e.contains && e.contains(n);
975
- return i;
976
- }
977
- function vt(e, n) {
978
- var r;
979
- function i() {
980
- r && clearTimeout(r);
981
- }
982
- function o() {
983
- for (var t = arguments.length, s = new Array(t), u = 0; u < t; u++)
984
- s[u] = arguments[u];
985
- i(), r = setTimeout(function() {
986
- r = null, e.apply(void 0, s);
987
- }, n);
988
- }
989
- return o.cancel = i, o;
990
- }
991
- function ue() {
992
- for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
993
- n[r] = arguments[r];
994
- return function(i) {
995
- for (var o = arguments.length, t = new Array(o > 1 ? o - 1 : 0), s = 1; s < o; s++)
996
- t[s - 1] = arguments[s];
997
- return n.some(function(u) {
998
- return u && u.apply(void 0, [i].concat(t)), i.preventDownshiftDefault || i.hasOwnProperty("nativeEvent") && i.nativeEvent.preventDownshiftDefault;
999
- });
1000
- };
1001
- }
1002
- function we() {
1003
- for (var e = arguments.length, n = new Array(e), r = 0; r < e; r++)
1004
- n[r] = arguments[r];
1005
- return function(i) {
1006
- n.forEach(function(o) {
1007
- typeof o == "function" ? o(i) : o && (o.current = i);
1008
- });
1009
- };
1010
- }
1011
- function jn() {
1012
- return String(eo++);
1013
- }
1014
- function $n(e) {
1015
- var n = e.isOpen, r = e.resultCount, i = e.previousResultCount;
1016
- 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." : "";
1017
- }
1018
- function En(e, n) {
1019
- return e = Array.isArray(e) ? (
1020
- /* istanbul ignore next (preact) */
1021
- e[0]
1022
- ) : e, !e && n ? n : e;
1023
- }
1024
- function Fn(e) {
1025
- return typeof e.type == "string";
1026
- }
1027
- function Ln(e) {
1028
- return e.props;
1029
- }
1030
- function to(e, n) {
1031
- console.error('The property "' + n + '" is required in "' + e + '"');
1032
- }
1033
- var no = ["highlightedIndex", "inputValue", "isOpen", "selectedItem", "type"];
1034
- function Ye(e) {
1035
- e === void 0 && (e = {});
1036
- var n = {};
1037
- return no.forEach(function(r) {
1038
- e.hasOwnProperty(r) && (n[r] = e[r]);
1039
- }), n;
1040
- }
1041
- function He(e, n) {
1042
- return !e || !n ? e : Object.keys(e).reduce(function(r, i) {
1043
- return r[i] = Je(n, i) ? n[i] : e[i], r;
1044
- }, {});
1045
- }
1046
- function Je(e, n) {
1047
- return e[n] !== void 0;
1048
- }
1049
- function Ke(e) {
1050
- var n = e.key, r = e.keyCode;
1051
- return r >= 37 && r <= 40 && n.indexOf("Arrow") !== 0 ? "Arrow" + n : n;
1052
- }
1053
- function ro(e) {
1054
- return Object.prototype.toString.call(e) === "[object Object]";
1055
- }
1056
- function Oe(e, n, r, i, o) {
1057
- o === void 0 && (o = !1);
1058
- var t = r.length;
1059
- if (t === 0)
1060
- return -1;
1061
- var s = t - 1;
1062
- (typeof e != "number" || e < 0 || e > s) && (e = n > 0 ? -1 : s + 1);
1063
- var u = e + n;
1064
- u < 0 ? u = o ? s : 0 : u > s && (u = o ? 0 : s);
1065
- var c = Re(u, n < 0, r, i, o);
1066
- return c === -1 ? e >= t ? -1 : e : c;
1067
- }
1068
- function Re(e, n, r, i, o) {
1069
- o === void 0 && (o = !1);
1070
- var t = r.length;
1071
- if (n) {
1072
- for (var s = e; s >= 0; s--)
1073
- if (!i(r[s], s))
1074
- return s;
1075
- } else
1076
- for (var u = e; u < t; u++)
1077
- if (!i(r[u], u))
1078
- return u;
1079
- return o ? Re(n ? t - 1 : 0, n, r, i) : -1;
1080
- }
1081
- function Xe(e, n, r, i) {
1082
- return i === void 0 && (i = !0), r && n.some(function(o) {
1083
- return o && (yn(o, e, r) || i && yn(o, r.document.activeElement, r));
1084
- });
1085
- }
1086
- var It = me;
1087
- process.env.NODE_ENV !== "production" && (It = function(n, r, i) {
1088
- 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";
1089
- Object.keys(n).forEach(function(t) {
1090
- r[t] !== void 0 && i[t] === void 0 ? console.error('downshift: A component has changed the controlled prop "' + t + '" to be uncontrolled. ' + o) : r[t] === void 0 && i[t] !== void 0 && console.error('downshift: A component has changed the uncontrolled prop "' + t + '" to be controlled. ' + o);
1091
- });
1092
- });
1093
- var oo = vt(function(e) {
1094
- Bn(e).textContent = "";
1095
- }, 500);
1096
- function Bn(e) {
1097
- var n = e.getElementById("a11y-status-message");
1098
- return n || (n = e.createElement("div"), n.setAttribute("id", "a11y-status-message"), n.setAttribute("role", "status"), n.setAttribute("aria-live", "polite"), n.setAttribute("aria-relevant", "additions text"), Object.assign(n.style, {
1099
- border: "0",
1100
- clip: "rect(0 0 0 0)",
1101
- height: "1px",
1102
- margin: "-1px",
1103
- overflow: "hidden",
1104
- padding: "0",
1105
- position: "absolute",
1106
- width: "1px"
1107
- }), e.body.appendChild(n), n);
1108
- }
1109
- function _t(e, n) {
1110
- if (!(!e || !n)) {
1111
- var r = Bn(n);
1112
- r.textContent = e, oo(n);
1113
- }
1114
- }
1115
- var Un = process.env.NODE_ENV !== "production" ? "__autocomplete_unknown__" : 0, Wn = process.env.NODE_ENV !== "production" ? "__autocomplete_mouseup__" : 1, Yn = process.env.NODE_ENV !== "production" ? "__autocomplete_item_mouseenter__" : 2, qe = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_up__" : 3, ze = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_arrow_down__" : 4, qn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_escape__" : 5, zn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_enter__" : 6, Gn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_home__" : 7, Jn = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_end__" : 8, Xn = process.env.NODE_ENV !== "production" ? "__autocomplete_click_item__" : 9, Qn = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_input__" : 10, Zn = process.env.NODE_ENV !== "production" ? "__autocomplete_change_input__" : 11, er = process.env.NODE_ENV !== "production" ? "__autocomplete_keydown_space_button__" : 12, mt = process.env.NODE_ENV !== "production" ? "__autocomplete_click_button__" : 13, tr = process.env.NODE_ENV !== "production" ? "__autocomplete_blur_button__" : 14, nr = process.env.NODE_ENV !== "production" ? "__autocomplete_controlled_prop_updated_selected_item__" : 15, rr = process.env.NODE_ENV !== "production" ? "__autocomplete_touchend__" : 16, io = /* @__PURE__ */ Object.freeze({
1116
- __proto__: null,
1117
- unknown: Un,
1118
- mouseUp: Wn,
1119
- itemMouseEnter: Yn,
1120
- keyDownArrowUp: qe,
1121
- keyDownArrowDown: ze,
1122
- keyDownEscape: qn,
1123
- keyDownEnter: zn,
1124
- keyDownHome: Gn,
1125
- keyDownEnd: Jn,
1126
- clickItem: Xn,
1127
- blurInput: Qn,
1128
- changeInput: Zn,
1129
- keyDownSpaceButton: er,
1130
- clickButton: mt,
1131
- blurButton: tr,
1132
- controlledPropUpdatedSelectedItem: nr,
1133
- touchEnd: rr
1134
- }), so = ["refKey", "ref"], uo = ["onClick", "onPress", "onKeyDown", "onKeyUp", "onBlur"], ao = ["onKeyDown", "onBlur", "onChange", "onInput", "onChangeText"], lo = ["refKey", "ref"], co = ["onMouseMove", "onMouseDown", "onClick", "onPress", "index", "item"], fo = /* @__PURE__ */ function() {
1135
- var e = /* @__PURE__ */ function(n) {
1136
- $r(r, n);
1137
- function r(o) {
1138
- var t;
1139
- t = n.call(this, o) || this, t.id = t.props.id || "downshift-" + jn(), t.menuId = t.props.menuId || t.id + "-menu", t.labelId = t.props.labelId || t.id + "-label", t.inputId = t.props.inputId || t.id + "-input", t.getItemId = t.props.getItemId || function(p) {
1140
- return t.id + "-item-" + p;
1141
- }, t.items = [], t.itemCount = null, t.previousResultCount = 0, t.timeoutIds = [], t.internalSetTimeout = function(p, m) {
1142
- var f = setTimeout(function() {
1143
- t.timeoutIds = t.timeoutIds.filter(function(l) {
1144
- return l !== f;
1145
- }), p();
1146
- }, m);
1147
- t.timeoutIds.push(f);
1148
- }, t.setItemCount = function(p) {
1149
- t.itemCount = p;
1150
- }, t.unsetItemCount = function() {
1151
- t.itemCount = null;
1152
- }, t.isItemDisabled = function(p, m) {
1153
- var f = t.getItemNodeFromIndex(m);
1154
- return f && f.hasAttribute("disabled");
1155
- }, t.setHighlightedIndex = function(p, m) {
1156
- p === void 0 && (p = t.props.defaultHighlightedIndex), m === void 0 && (m = {}), m = Ye(m), t.internalSetState(Y({
1157
- highlightedIndex: p
1158
- }, m));
1159
- }, t.clearSelection = function(p) {
1160
- t.internalSetState({
1161
- selectedItem: null,
1162
- inputValue: "",
1163
- highlightedIndex: t.props.defaultHighlightedIndex,
1164
- isOpen: t.props.defaultIsOpen
1165
- }, p);
1166
- }, t.selectItem = function(p, m, f) {
1167
- m = Ye(m), t.internalSetState(Y({
1168
- isOpen: t.props.defaultIsOpen,
1169
- highlightedIndex: t.props.defaultHighlightedIndex,
1170
- selectedItem: p,
1171
- inputValue: t.props.itemToString(p)
1172
- }, m), f);
1173
- }, t.selectItemAtIndex = function(p, m, f) {
1174
- var l = t.items[p];
1175
- l != null && t.selectItem(l, m, f);
1176
- }, t.selectHighlightedItem = function(p, m) {
1177
- return t.selectItemAtIndex(t.getState().highlightedIndex, p, m);
1178
- }, t.internalSetState = function(p, m) {
1179
- var f, l, P = {}, U = typeof p == "function";
1180
- return !U && p.hasOwnProperty("inputValue") && t.props.onInputValueChange(p.inputValue, Y({}, t.getStateAndHelpers(), p)), t.setState(function(k) {
1181
- var q;
1182
- k = t.getState(k);
1183
- var j = U ? p(k) : p;
1184
- j = t.props.stateReducer(k, j), f = j.hasOwnProperty("selectedItem");
1185
- var M = {};
1186
- return f && j.selectedItem !== k.selectedItem && (l = j.selectedItem), (q = j).type || (q.type = Un), Object.keys(j).forEach(function($) {
1187
- k[$] !== j[$] && (P[$] = j[$]), $ !== "type" && (j[$], Je(t.props, $) || (M[$] = j[$]));
1188
- }), U && j.hasOwnProperty("inputValue") && t.props.onInputValueChange(j.inputValue, Y({}, t.getStateAndHelpers(), j)), M;
1189
- }, function() {
1190
- _n(m)();
1191
- var k = Object.keys(P).length > 1;
1192
- k && t.props.onStateChange(P, t.getStateAndHelpers()), f && t.props.onSelect(p.selectedItem, t.getStateAndHelpers()), l !== void 0 && t.props.onChange(l, t.getStateAndHelpers()), t.props.onUserAction(P, t.getStateAndHelpers());
1193
- });
1194
- }, t.rootRef = function(p) {
1195
- return t._rootNode = p;
1196
- }, t.getRootProps = function(p, m) {
1197
- var f, l = p === void 0 ? {} : p, P = l.refKey, U = P === void 0 ? "ref" : P, k = l.ref, q = ge(l, so), j = m === void 0 ? {} : m, M = j.suppressRefError, $ = M === void 0 ? !1 : M;
1198
- t.getRootProps.called = !0, t.getRootProps.refKey = U, t.getRootProps.suppressRefError = $;
1199
- var B = t.getState(), L = B.isOpen;
1200
- return Y((f = {}, f[U] = we(k, t.rootRef), f.role = "combobox", f["aria-expanded"] = L, f["aria-haspopup"] = "listbox", f["aria-owns"] = L ? t.menuId : void 0, f["aria-labelledby"] = t.labelId, f), q);
1201
- }, t.keyDownHandlers = {
1202
- ArrowDown: function(m) {
1203
- var f = this;
1204
- if (m.preventDefault(), this.getState().isOpen) {
1205
- var l = m.shiftKey ? 5 : 1;
1206
- this.moveHighlightedIndex(l, {
1207
- type: ze
1208
- });
1209
- } else
1210
- this.internalSetState({
1211
- isOpen: !0,
1212
- type: ze
1213
- }, function() {
1214
- var P = f.getItemCount();
1215
- if (P > 0) {
1216
- var U = f.getState(), k = U.highlightedIndex, q = Oe(k, 1, {
1217
- length: P
1218
- }, f.isItemDisabled, !0);
1219
- f.setHighlightedIndex(q, {
1220
- type: ze
1221
- });
1222
- }
1223
- });
1224
- },
1225
- ArrowUp: function(m) {
1226
- var f = this;
1227
- if (m.preventDefault(), this.getState().isOpen) {
1228
- var l = m.shiftKey ? -5 : -1;
1229
- this.moveHighlightedIndex(l, {
1230
- type: qe
1231
- });
1232
- } else
1233
- this.internalSetState({
1234
- isOpen: !0,
1235
- type: qe
1236
- }, function() {
1237
- var P = f.getItemCount();
1238
- if (P > 0) {
1239
- var U = f.getState(), k = U.highlightedIndex, q = Oe(k, -1, {
1240
- length: P
1241
- }, f.isItemDisabled, !0);
1242
- f.setHighlightedIndex(q, {
1243
- type: qe
1244
- });
1245
- }
1246
- });
1247
- },
1248
- Enter: function(m) {
1249
- if (m.which !== 229) {
1250
- var f = this.getState(), l = f.isOpen, P = f.highlightedIndex;
1251
- if (l && P != null) {
1252
- m.preventDefault();
1253
- var U = this.items[P], k = this.getItemNodeFromIndex(P);
1254
- if (U == null || k && k.hasAttribute("disabled"))
1255
- return;
1256
- this.selectHighlightedItem({
1257
- type: zn
1258
- });
1259
- }
1260
- }
1261
- },
1262
- Escape: function(m) {
1263
- m.preventDefault(), this.reset(Y({
1264
- type: qn
1265
- }, !this.state.isOpen && {
1266
- selectedItem: null,
1267
- inputValue: ""
1268
- }));
1269
- }
1270
- }, t.buttonKeyDownHandlers = Y({}, t.keyDownHandlers, {
1271
- " ": function(m) {
1272
- m.preventDefault(), this.toggleMenu({
1273
- type: er
1274
- });
1275
- }
1276
- }), t.inputKeyDownHandlers = Y({}, t.keyDownHandlers, {
1277
- Home: function(m) {
1278
- var f = this.getState(), l = f.isOpen;
1279
- if (l) {
1280
- m.preventDefault();
1281
- var P = this.getItemCount();
1282
- if (!(P <= 0 || !l)) {
1283
- var U = Re(0, !1, {
1284
- length: P
1285
- }, this.isItemDisabled);
1286
- this.setHighlightedIndex(U, {
1287
- type: Gn
1288
- });
1289
- }
1290
- }
1291
- },
1292
- End: function(m) {
1293
- var f = this.getState(), l = f.isOpen;
1294
- if (l) {
1295
- m.preventDefault();
1296
- var P = this.getItemCount();
1297
- if (!(P <= 0 || !l)) {
1298
- var U = Re(P - 1, !0, {
1299
- length: P
1300
- }, this.isItemDisabled);
1301
- this.setHighlightedIndex(U, {
1302
- type: Jn
1303
- });
1304
- }
1305
- }
1306
- }
1307
- }), t.getToggleButtonProps = function(p) {
1308
- var m = p === void 0 ? {} : p, f = m.onClick;
1309
- m.onPress;
1310
- var l = m.onKeyDown, P = m.onKeyUp, U = m.onBlur, k = ge(m, uo), q = t.getState(), j = q.isOpen, M = {
1311
- onClick: ue(f, t.buttonHandleClick),
1312
- onKeyDown: ue(l, t.buttonHandleKeyDown),
1313
- onKeyUp: ue(P, t.buttonHandleKeyUp),
1314
- onBlur: ue(U, t.buttonHandleBlur)
1315
- }, $ = k.disabled ? {} : M;
1316
- return Y({
1317
- type: "button",
1318
- role: "button",
1319
- "aria-label": j ? "close menu" : "open menu",
1320
- "aria-haspopup": !0,
1321
- "data-toggle": !0
1322
- }, $, k);
1323
- }, t.buttonHandleKeyUp = function(p) {
1324
- p.preventDefault();
1325
- }, t.buttonHandleKeyDown = function(p) {
1326
- var m = Ke(p);
1327
- t.buttonKeyDownHandlers[m] && t.buttonKeyDownHandlers[m].call(rn(t), p);
1328
- }, t.buttonHandleClick = function(p) {
1329
- if (p.preventDefault(), t.props.environment) {
1330
- var m = t.props.environment.document, f = m.body, l = m.activeElement;
1331
- f && f === l && p.target.focus();
1332
- }
1333
- process.env.NODE_ENV === "test" ? t.toggleMenu({
1334
- type: mt
1335
- }) : t.internalSetTimeout(function() {
1336
- return t.toggleMenu({
1337
- type: mt
1338
- });
1339
- });
1340
- }, t.buttonHandleBlur = function(p) {
1341
- var m = p.target;
1342
- t.internalSetTimeout(function() {
1343
- if (!(t.isMouseDown || !t.props.environment)) {
1344
- var f = t.props.environment.document.activeElement;
1345
- (f == null || f.id !== t.inputId) && f !== m && t.reset({
1346
- type: tr
1347
- });
1348
- }
1349
- });
1350
- }, t.getLabelProps = function(p) {
1351
- return Y({
1352
- htmlFor: t.inputId,
1353
- id: t.labelId
1354
- }, p);
1355
- }, t.getInputProps = function(p) {
1356
- var m = p === void 0 ? {} : p, f = m.onKeyDown, l = m.onBlur, P = m.onChange, U = m.onInput;
1357
- m.onChangeText;
1358
- var k = ge(m, ao), q, j = {};
1359
- q = "onChange";
1360
- var M = t.getState(), $ = M.inputValue, B = M.isOpen, L = M.highlightedIndex;
1361
- if (!k.disabled) {
1362
- var Q;
1363
- j = (Q = {}, Q[q] = ue(P, U, t.inputHandleChange), Q.onKeyDown = ue(f, t.inputHandleKeyDown), Q.onBlur = ue(l, t.inputHandleBlur), Q);
1364
- }
1365
- return Y({
1366
- "aria-autocomplete": "list",
1367
- "aria-activedescendant": B && typeof L == "number" && L >= 0 ? t.getItemId(L) : void 0,
1368
- "aria-controls": B ? t.menuId : void 0,
1369
- "aria-labelledby": k && k["aria-label"] ? void 0 : t.labelId,
1370
- // https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion
1371
- // revert back since autocomplete="nope" is ignored on latest Chrome and Opera
1372
- autoComplete: "off",
1373
- value: $,
1374
- id: t.inputId
1375
- }, j, k);
1376
- }, t.inputHandleKeyDown = function(p) {
1377
- var m = Ke(p);
1378
- m && t.inputKeyDownHandlers[m] && t.inputKeyDownHandlers[m].call(rn(t), p);
1379
- }, t.inputHandleChange = function(p) {
1380
- t.internalSetState({
1381
- type: Zn,
1382
- isOpen: !0,
1383
- inputValue: p.target.value,
1384
- highlightedIndex: t.props.defaultHighlightedIndex
1385
- });
1386
- }, t.inputHandleBlur = function() {
1387
- t.internalSetTimeout(function() {
1388
- var p;
1389
- if (!(t.isMouseDown || !t.props.environment)) {
1390
- var m = t.props.environment.document.activeElement, f = (m == null || (p = m.dataset) == null ? void 0 : p.toggle) && t._rootNode && t._rootNode.contains(m);
1391
- f || t.reset({
1392
- type: Qn
1393
- });
1394
- }
1395
- });
1396
- }, t.menuRef = function(p) {
1397
- t._menuNode = p;
1398
- }, t.getMenuProps = function(p, m) {
1399
- var f, l = p === void 0 ? {} : p, P = l.refKey, U = P === void 0 ? "ref" : P, k = l.ref, q = ge(l, lo), j = m === void 0 ? {} : m, M = j.suppressRefError, $ = M === void 0 ? !1 : M;
1400
- return t.getMenuProps.called = !0, t.getMenuProps.refKey = U, t.getMenuProps.suppressRefError = $, Y((f = {}, f[U] = we(k, t.menuRef), f.role = "listbox", f["aria-labelledby"] = q && q["aria-label"] ? void 0 : t.labelId, f.id = t.menuId, f), q);
1401
- }, t.getItemProps = function(p) {
1402
- var m, f = p === void 0 ? {} : p, l = f.onMouseMove, P = f.onMouseDown, U = f.onClick;
1403
- f.onPress;
1404
- var k = f.index, q = f.item, j = q === void 0 ? process.env.NODE_ENV === "production" ? (
1405
- /* istanbul ignore next */
1406
- void 0
1407
- ) : to("getItemProps", "item") : q, M = ge(f, co);
1408
- k === void 0 ? (t.items.push(j), k = t.items.indexOf(j)) : t.items[k] = j;
1409
- var $ = "onClick", B = U, L = (m = {
1410
- // onMouseMove is used over onMouseEnter here. onMouseMove
1411
- // is only triggered on actual mouse movement while onMouseEnter
1412
- // can fire on DOM changes, interrupting keyboard navigation
1413
- onMouseMove: ue(l, function() {
1414
- k !== t.getState().highlightedIndex && (t.setHighlightedIndex(k, {
1415
- type: Yn
1416
- }), t.avoidScrolling = !0, t.internalSetTimeout(function() {
1417
- return t.avoidScrolling = !1;
1418
- }, 250));
1419
- }),
1420
- onMouseDown: ue(P, function(J) {
1421
- J.preventDefault();
1422
- })
1423
- }, m[$] = ue(B, function() {
1424
- t.selectItemAtIndex(k, {
1425
- type: Xn
1426
- });
1427
- }), m), Q = M.disabled ? {
1428
- onMouseDown: L.onMouseDown
1429
- } : L;
1430
- return Y({
1431
- id: t.getItemId(k),
1432
- role: "option",
1433
- "aria-selected": t.getState().highlightedIndex === k
1434
- }, Q, M);
1435
- }, t.clearItems = function() {
1436
- t.items = [];
1437
- }, t.reset = function(p, m) {
1438
- p === void 0 && (p = {}), p = Ye(p), t.internalSetState(function(f) {
1439
- var l = f.selectedItem;
1440
- return Y({
1441
- isOpen: t.props.defaultIsOpen,
1442
- highlightedIndex: t.props.defaultHighlightedIndex,
1443
- inputValue: t.props.itemToString(l)
1444
- }, p);
1445
- }, m);
1446
- }, t.toggleMenu = function(p, m) {
1447
- p === void 0 && (p = {}), p = Ye(p), t.internalSetState(function(f) {
1448
- var l = f.isOpen;
1449
- return Y({
1450
- isOpen: !l
1451
- }, l && {
1452
- highlightedIndex: t.props.defaultHighlightedIndex
1453
- }, p);
1454
- }, function() {
1455
- var f = t.getState(), l = f.isOpen, P = f.highlightedIndex;
1456
- l && t.getItemCount() > 0 && typeof P == "number" && t.setHighlightedIndex(P, p), _n(m)();
1457
- });
1458
- }, t.openMenu = function(p) {
1459
- t.internalSetState({
1460
- isOpen: !0
1461
- }, p);
1462
- }, t.closeMenu = function(p) {
1463
- t.internalSetState({
1464
- isOpen: !1
1465
- }, p);
1466
- }, t.updateStatus = vt(function() {
1467
- var p;
1468
- if ((p = t.props) != null && (p = p.environment) != null && p.document) {
1469
- var m = t.getState(), f = t.items[m.highlightedIndex], l = t.getItemCount(), P = t.props.getA11yStatusMessage(Y({
1470
- itemToString: t.props.itemToString,
1471
- previousResultCount: t.previousResultCount,
1472
- resultCount: l,
1473
- highlightedItem: f
1474
- }, m));
1475
- t.previousResultCount = l, _t(P, t.props.environment.document);
1476
- }
1477
- }, 200);
1478
- var s = t.props, u = s.defaultHighlightedIndex, c = s.initialHighlightedIndex, d = c === void 0 ? u : c, a = s.defaultIsOpen, h = s.initialIsOpen, D = h === void 0 ? a : h, T = s.initialInputValue, O = T === void 0 ? "" : T, N = s.initialSelectedItem, g = N === void 0 ? null : N, K = t.getState({
1479
- highlightedIndex: d,
1480
- isOpen: D,
1481
- inputValue: O,
1482
- selectedItem: g
1483
- });
1484
- return K.selectedItem != null && t.props.initialInputValue === void 0 && (K.inputValue = t.props.itemToString(K.selectedItem)), t.state = K, t;
1485
- }
1486
- var i = r.prototype;
1487
- return i.internalClearTimeouts = function() {
1488
- this.timeoutIds.forEach(function(t) {
1489
- clearTimeout(t);
1490
- }), this.timeoutIds = [];
1491
- }, i.getState = function(t) {
1492
- return t === void 0 && (t = this.state), He(t, this.props);
1493
- }, i.getItemCount = function() {
1494
- var t = this.items.length;
1495
- return this.itemCount != null ? t = this.itemCount : this.props.itemCount !== void 0 && (t = this.props.itemCount), t;
1496
- }, i.getItemNodeFromIndex = function(t) {
1497
- return this.props.environment ? this.props.environment.document.getElementById(this.getItemId(t)) : null;
1498
- }, i.scrollHighlightedItemIntoView = function() {
1499
- {
1500
- var t = this.getItemNodeFromIndex(this.getState().highlightedIndex);
1501
- this.props.scrollIntoView(t, this._menuNode);
1502
- }
1503
- }, i.moveHighlightedIndex = function(t, s) {
1504
- var u = this.getItemCount(), c = this.getState(), d = c.highlightedIndex;
1505
- if (u > 0) {
1506
- var a = Oe(d, t, {
1507
- length: u
1508
- }, this.isItemDisabled, !0);
1509
- this.setHighlightedIndex(a, s);
1510
- }
1511
- }, i.getStateAndHelpers = function() {
1512
- var t = this.getState(), s = t.highlightedIndex, u = t.inputValue, c = t.selectedItem, d = t.isOpen, a = this.props.itemToString, h = this.id, D = this.getRootProps, T = this.getToggleButtonProps, O = this.getLabelProps, N = this.getMenuProps, g = this.getInputProps, K = this.getItemProps, p = this.openMenu, m = this.closeMenu, f = this.toggleMenu, l = this.selectItem, P = this.selectItemAtIndex, U = this.selectHighlightedItem, k = this.setHighlightedIndex, q = this.clearSelection, j = this.clearItems, M = this.reset, $ = this.setItemCount, B = this.unsetItemCount, L = this.internalSetState;
1513
- return {
1514
- // prop getters
1515
- getRootProps: D,
1516
- getToggleButtonProps: T,
1517
- getLabelProps: O,
1518
- getMenuProps: N,
1519
- getInputProps: g,
1520
- getItemProps: K,
1521
- // actions
1522
- reset: M,
1523
- openMenu: p,
1524
- closeMenu: m,
1525
- toggleMenu: f,
1526
- selectItem: l,
1527
- selectItemAtIndex: P,
1528
- selectHighlightedItem: U,
1529
- setHighlightedIndex: k,
1530
- clearSelection: q,
1531
- clearItems: j,
1532
- setItemCount: $,
1533
- unsetItemCount: B,
1534
- setState: L,
1535
- // props
1536
- itemToString: a,
1537
- // derived
1538
- id: h,
1539
- // state
1540
- highlightedIndex: s,
1541
- inputValue: u,
1542
- isOpen: d,
1543
- selectedItem: c
1544
- };
1545
- }, i.componentDidMount = function() {
1546
- var t = this;
1547
- if (process.env.NODE_ENV !== "production" && this.getMenuProps.called && !this.getMenuProps.suppressRefError && bn(this._menuNode, this.getMenuProps), !this.props.environment)
1548
- this.cleanup = function() {
1549
- t.internalClearTimeouts();
1550
- };
1551
- else {
1552
- var s = function() {
1553
- t.isMouseDown = !0;
1554
- }, u = function(T) {
1555
- t.isMouseDown = !1;
1556
- var O = Xe(T.target, [t._rootNode, t._menuNode], t.props.environment);
1557
- !O && t.getState().isOpen && t.reset({
1558
- type: Wn
1559
- }, function() {
1560
- return t.props.onOuterClick(t.getStateAndHelpers());
1561
- });
1562
- }, c = function() {
1563
- t.isTouchMove = !1;
1564
- }, d = function() {
1565
- t.isTouchMove = !0;
1566
- }, a = function(T) {
1567
- var O = Xe(T.target, [t._rootNode, t._menuNode], t.props.environment, !1);
1568
- !t.isTouchMove && !O && t.getState().isOpen && t.reset({
1569
- type: rr
1570
- }, function() {
1571
- return t.props.onOuterClick(t.getStateAndHelpers());
1572
- });
1573
- }, h = this.props.environment;
1574
- h.addEventListener("mousedown", s), h.addEventListener("mouseup", u), h.addEventListener("touchstart", c), h.addEventListener("touchmove", d), h.addEventListener("touchend", a), this.cleanup = function() {
1575
- t.internalClearTimeouts(), t.updateStatus.cancel(), h.removeEventListener("mousedown", s), h.removeEventListener("mouseup", u), h.removeEventListener("touchstart", c), h.removeEventListener("touchmove", d), h.removeEventListener("touchend", a);
1576
- };
1577
- }
1578
- }, i.shouldScroll = function(t, s) {
1579
- var u = this.props.highlightedIndex === void 0 ? this.getState() : this.props, c = u.highlightedIndex, d = s.highlightedIndex === void 0 ? t : s, a = d.highlightedIndex, h = c && this.getState().isOpen && !t.isOpen, D = c !== a;
1580
- return h || D;
1581
- }, i.componentDidUpdate = function(t, s) {
1582
- process.env.NODE_ENV !== "production" && (It(this.state, t, this.props), this.getMenuProps.called && !this.getMenuProps.suppressRefError && bn(this._menuNode, this.getMenuProps)), Je(this.props, "selectedItem") && this.props.selectedItemChanged(t.selectedItem, this.props.selectedItem) && this.internalSetState({
1583
- type: nr,
1584
- inputValue: this.props.itemToString(this.props.selectedItem)
1585
- }), !this.avoidScrolling && this.shouldScroll(s, t) && this.scrollHighlightedItemIntoView(), this.updateStatus();
1586
- }, i.componentWillUnmount = function() {
1587
- this.cleanup();
1588
- }, i.render = function() {
1589
- var t = En(this.props.children, me);
1590
- 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;
1591
- var s = En(t(this.getStateAndHelpers()));
1592
- if (!s)
1593
- return null;
1594
- if (this.getRootProps.called || this.props.suppressRefError)
1595
- return process.env.NODE_ENV !== "production" && !this.getRootProps.suppressRefError && !this.props.suppressRefError && po(s, this.getRootProps), s;
1596
- if (Fn(s))
1597
- return /* @__PURE__ */ Cr(s, this.getRootProps(Ln(s)));
1598
- if (process.env.NODE_ENV !== "production")
1599
- throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function");
1600
- }, r;
1601
- }(Dr);
1602
- return e.defaultProps = {
1603
- defaultHighlightedIndex: null,
1604
- defaultIsOpen: !1,
1605
- getA11yStatusMessage: $n,
1606
- itemToString: function(r) {
1607
- return r == null ? "" : (process.env.NODE_ENV !== "production" && ro(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));
1608
- },
1609
- onStateChange: me,
1610
- onInputValueChange: me,
1611
- onUserAction: me,
1612
- onChange: me,
1613
- onSelect: me,
1614
- onOuterClick: me,
1615
- selectedItemChanged: function(r, i) {
1616
- return r !== i;
1617
- },
1618
- environment: (
1619
- /* istanbul ignore next (ssr) */
1620
- typeof window > "u" ? void 0 : window
1621
- ),
1622
- stateReducer: function(r, i) {
1623
- return i;
1624
- },
1625
- suppressRefError: !1,
1626
- scrollIntoView: Kn
1627
- }, e.stateChangeTypes = io, e;
1628
- }();
1629
- process.env.NODE_ENV !== "production" && (fo.propTypes = {
1630
- children: E.func,
1631
- defaultHighlightedIndex: E.number,
1632
- defaultIsOpen: E.bool,
1633
- initialHighlightedIndex: E.number,
1634
- initialSelectedItem: E.any,
1635
- initialInputValue: E.string,
1636
- initialIsOpen: E.bool,
1637
- getA11yStatusMessage: E.func,
1638
- itemToString: E.func,
1639
- onChange: E.func,
1640
- onSelect: E.func,
1641
- onStateChange: E.func,
1642
- onInputValueChange: E.func,
1643
- onUserAction: E.func,
1644
- onOuterClick: E.func,
1645
- selectedItemChanged: E.func,
1646
- stateReducer: E.func,
1647
- itemCount: E.number,
1648
- id: E.string,
1649
- environment: E.shape({
1650
- addEventListener: E.func.isRequired,
1651
- removeEventListener: E.func.isRequired,
1652
- document: E.shape({
1653
- createElement: E.func.isRequired,
1654
- getElementById: E.func.isRequired,
1655
- activeElement: E.any.isRequired,
1656
- body: E.any.isRequired
1657
- }).isRequired,
1658
- Node: E.func.isRequired
1659
- }),
1660
- suppressRefError: E.bool,
1661
- scrollIntoView: E.func,
1662
- // things we keep in state for uncontrolled components
1663
- // but can accept as props for controlled components
1664
- /* eslint-disable react/no-unused-prop-types */
1665
- selectedItem: E.any,
1666
- isOpen: E.bool,
1667
- inputValue: E.string,
1668
- highlightedIndex: E.number,
1669
- labelId: E.string,
1670
- inputId: E.string,
1671
- menuId: E.string,
1672
- getItemId: E.func
1673
- /* eslint-enable react/no-unused-prop-types */
1674
- });
1675
- function bn(e, n) {
1676
- var r = n.refKey;
1677
- e || console.error('downshift: The ref prop "' + r + '" from getMenuProps was not applied correctly on your menu element.');
1678
- }
1679
- function po(e, n) {
1680
- var r = n.refKey, i = r !== "ref", o = !Fn(e);
1681
- o && !i && !gn.isForwardRef(e) ? console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps") : !o && i && console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "' + r + '"'), !gn.isForwardRef(e) && !Ln(e)[r] && console.error('downshift: You must apply the ref prop "' + r + '" from getRootProps onto your root element.');
1682
- }
1683
- var mo = ["highlightedIndex", "items", "environment"], or = {
1684
- highlightedIndex: -1,
1685
- isOpen: !1,
1686
- selectedItem: null,
1687
- inputValue: ""
1688
- };
1689
- function ho(e, n, r) {
1690
- var i = e.props, o = e.type, t = {};
1691
- Object.keys(n).forEach(function(s) {
1692
- go(s, e, n, r), r[s] !== n[s] && (t[s] = r[s]);
1693
- }), i.onStateChange && Object.keys(t).length && i.onStateChange(Y({
1694
- type: o
1695
- }, t));
1696
- }
1697
- function go(e, n, r, i) {
1698
- var o = n.props, t = n.type, s = "on" + yt(e) + "Change";
1699
- o[s] && i[e] !== void 0 && i[e] !== r[e] && o[s](Y({
1700
- type: t
1701
- }, i));
1702
- }
1703
- function vo(e, n) {
1704
- return n.changes;
1705
- }
1706
- function Io(e) {
1707
- var n = e.selectedItem, r = e.itemToString;
1708
- return n ? r(n) + " has been selected." : "";
1709
- }
1710
- var _o = vt(function(e, n) {
1711
- _t(e(), n);
1712
- }, 200), yo = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? Rn : ce, Eo = "useId" in Ge ? function(n) {
1713
- var r = n.id, i = n.labelId, o = n.menuId, t = n.getItemId, s = n.toggleButtonId, u = n.inputId, c = "downshift-" + Ge.useId();
1714
- r || (r = c);
1715
- var d = ae({
1716
- labelId: i || r + "-label",
1717
- menuId: o || r + "-menu",
1718
- getItemId: t || function(a) {
1719
- return r + "-item-" + a;
1720
- },
1721
- toggleButtonId: s || r + "-toggle-button",
1722
- inputId: u || r + "-input"
1723
- });
1724
- return d.current;
1725
- } : function(n) {
1726
- var r = n.id, i = r === void 0 ? "downshift-" + jn() : r, o = n.labelId, t = n.menuId, s = n.getItemId, u = n.toggleButtonId, c = n.inputId, d = ae({
1727
- labelId: o || i + "-label",
1728
- menuId: t || i + "-menu",
1729
- getItemId: s || function(a) {
1730
- return i + "-item-" + a;
1731
- },
1732
- toggleButtonId: u || i + "-toggle-button",
1733
- inputId: c || i + "-input"
1734
- });
1735
- return d.current;
1736
- };
1737
- function ir(e, n, r, i) {
1738
- var o, t;
1739
- if (e === void 0) {
1740
- if (n === void 0)
1741
- throw new Error(i);
1742
- o = r[n], t = n;
1743
- } else
1744
- t = n === void 0 ? r.indexOf(e) : n, o = e;
1745
- return [o, t];
1746
- }
1747
- function yt(e) {
1748
- return "" + e.slice(0, 1).toUpperCase() + e.slice(1);
1749
- }
1750
- function Et(e) {
1751
- var n = ae(e);
1752
- return n.current = e, n;
1753
- }
1754
- function sr(e, n, r, i) {
1755
- var o = ae(), t = ae(), s = se(function(T, O) {
1756
- t.current = O, T = He(T, O.props);
1757
- var N = e(T, O), g = O.props.stateReducer(T, Y({}, O, {
1758
- changes: N
1759
- }));
1760
- return g;
1761
- }, [e]), u = Sr(s, n, r), c = u[0], d = u[1], a = Et(n), h = se(function(T) {
1762
- return d(Y({
1763
- props: a.current
1764
- }, T));
1765
- }, [a]), D = t.current;
1766
- return ce(function() {
1767
- var T = He(o.current, D == null ? void 0 : D.props), O = D && o.current && !i(T, c);
1768
- O && ho(D, T, c), o.current = c;
1769
- }, [c, D, i]), [c, h];
1770
- }
1771
- function bo(e, n, r, i) {
1772
- var o = sr(e, n, r, i), t = o[0], s = o[1];
1773
- return [He(t, n), s];
1774
- }
1775
- var Ce = {
1776
- itemToString: function(n) {
1777
- return n ? String(n) : "";
1778
- },
1779
- itemToKey: function(n) {
1780
- return n;
1781
- },
1782
- stateReducer: vo,
1783
- getA11ySelectionMessage: Io,
1784
- scrollIntoView: Kn,
1785
- environment: (
1786
- /* istanbul ignore next (ssr) */
1787
- typeof window > "u" ? void 0 : window
1788
- )
1789
- };
1790
- function Ie(e, n, r) {
1791
- r === void 0 && (r = or);
1792
- var i = e["default" + yt(n)];
1793
- return i !== void 0 ? i : r[n];
1794
- }
1795
- function Se(e, n, r) {
1796
- r === void 0 && (r = or);
1797
- var i = e[n];
1798
- if (i !== void 0)
1799
- return i;
1800
- var o = e["initial" + yt(n)];
1801
- return o !== void 0 ? o : Ie(e, n, r);
1802
- }
1803
- function wo(e) {
1804
- var n = Se(e, "selectedItem"), r = Se(e, "isOpen"), i = Se(e, "highlightedIndex"), o = Se(e, "inputValue");
1805
- return {
1806
- highlightedIndex: i < 0 && n && r ? e.items.findIndex(function(t) {
1807
- return e.itemToKey(t) === e.itemToKey(n);
1808
- }) : i,
1809
- isOpen: r,
1810
- selectedItem: n,
1811
- inputValue: o
1812
- };
1813
- }
1814
- function Ve(e, n, r) {
1815
- var i = e.items, o = e.initialHighlightedIndex, t = e.defaultHighlightedIndex, s = e.itemToKey, u = n.selectedItem, c = n.highlightedIndex;
1816
- return i.length === 0 ? -1 : o !== void 0 && c === o ? o : t !== void 0 ? t : u ? i.findIndex(function(d) {
1817
- return s(u) === s(d);
1818
- }) : r === 0 ? -1 : r < 0 ? i.length - 1 : 0;
1819
- }
1820
- function xo(e, n, r) {
1821
- var i = ae({
1822
- isMouseDown: !1,
1823
- isTouchMove: !1,
1824
- isTouchEnd: !1
1825
- });
1826
- return ce(function() {
1827
- if (!e)
1828
- return me;
1829
- var o = n.map(function(a) {
1830
- return a.current;
1831
- });
1832
- function t() {
1833
- i.current.isTouchEnd = !1, i.current.isMouseDown = !0;
1834
- }
1835
- function s(a) {
1836
- i.current.isMouseDown = !1, Xe(a.target, o, e) || r();
1837
- }
1838
- function u() {
1839
- i.current.isTouchEnd = !1, i.current.isTouchMove = !1;
1840
- }
1841
- function c() {
1842
- i.current.isTouchMove = !0;
1843
- }
1844
- function d(a) {
1845
- i.current.isTouchEnd = !0, !i.current.isTouchMove && !Xe(a.target, o, e, !1) && r();
1846
- }
1847
- return e.addEventListener("mousedown", t), e.addEventListener("mouseup", s), e.addEventListener("touchstart", u), e.addEventListener("touchmove", c), e.addEventListener("touchend", d), function() {
1848
- e.removeEventListener("mousedown", t), e.removeEventListener("mouseup", s), e.removeEventListener("touchstart", u), e.removeEventListener("touchmove", c), e.removeEventListener("touchend", d);
1849
- };
1850
- }, [e, r]), i.current;
1851
- }
1852
- var bt = function() {
1853
- return me;
1854
- };
1855
- process.env.NODE_ENV !== "production" && (bt = function() {
1856
- for (var n = ae(!0), r = arguments.length, i = new Array(r), o = 0; o < r; o++)
1857
- i[o] = arguments[o];
1858
- var t = ae(i.reduce(function(u, c) {
1859
- return u[c] = {}, u;
1860
- }, {}));
1861
- ce(function() {
1862
- Object.keys(t.current).forEach(function(u) {
1863
- var c = t.current[u];
1864
- if (n.current && !Object.keys(c).length) {
1865
- console.error("downshift: You forgot to call the " + u + " getter function on your component / element.");
1866
- return;
1867
- }
1868
- var d = c.suppressRefError, a = c.refKey, h = c.elementRef;
1869
- (!h || !h.current) && !d && console.error('downshift: The ref prop "' + a + '" from ' + u + " was not applied correctly on your element.");
1870
- }), n.current = !1;
1871
- });
1872
- var s = se(function(u, c, d, a) {
1873
- t.current[u] = {
1874
- suppressRefError: c,
1875
- refKey: d,
1876
- elementRef: a
1877
- };
1878
- }, []);
1879
- return s;
1880
- });
1881
- function wn(e, n, r) {
1882
- var i = r.highlightedIndex, o = r.items, t = r.environment, s = ge(r, mo), u = je();
1883
- ce(function() {
1884
- u || !(t != null && t.document) || _o(function() {
1885
- return e(Y({
1886
- highlightedIndex: i,
1887
- highlightedItem: o[i],
1888
- resultCount: o.length
1889
- }, s));
1890
- }, t.document);
1891
- }, n);
1892
- }
1893
- function Oo(e) {
1894
- var n = e.highlightedIndex, r = e.isOpen, i = e.itemRefs, o = e.getItemNodeFromIndex, t = e.menuElement, s = e.scrollIntoView, u = ae(!0);
1895
- return yo(function() {
1896
- n < 0 || !r || !Object.keys(i.current).length || (u.current === !1 ? u.current = !0 : s(o(n), t));
1897
- }, [n]), u;
1898
- }
1899
- var wt = me;
1900
- process.env.NODE_ENV !== "production" && (wt = function(n) {
1901
- var r = n.props, i = n.state, o = ae(r), t = je();
1902
- ce(function() {
1903
- t || (It(i, o.current, r), o.current = r);
1904
- }, [i, r, t]);
1905
- });
1906
- function xn(e, n, r) {
1907
- var i;
1908
- r === void 0 && (r = !0);
1909
- var o = ((i = e.items) == null ? void 0 : i.length) && n >= 0;
1910
- return Y({
1911
- isOpen: !1,
1912
- highlightedIndex: -1
1913
- }, o && Y({
1914
- selectedItem: e.items[n],
1915
- isOpen: Ie(e, "isOpen"),
1916
- highlightedIndex: Ie(e, "highlightedIndex")
1917
- }, r && {
1918
- inputValue: e.itemToString(e.items[n])
1919
- }));
1920
- }
1921
- function Co(e, n) {
1922
- return e.isOpen === n.isOpen && e.inputValue === n.inputValue && e.highlightedIndex === n.highlightedIndex && e.selectedItem === n.selectedItem;
1923
- }
1924
- function je() {
1925
- var e = Ge.useRef(!0);
1926
- return Ge.useEffect(function() {
1927
- return e.current = !1, function() {
1928
- e.current = !0;
1929
- };
1930
- }, []), e.current;
1931
- }
1932
- var ur = {
1933
- environment: E.shape({
1934
- addEventListener: E.func.isRequired,
1935
- removeEventListener: E.func.isRequired,
1936
- document: E.shape({
1937
- createElement: E.func.isRequired,
1938
- getElementById: E.func.isRequired,
1939
- activeElement: E.any.isRequired,
1940
- body: E.any.isRequired
1941
- }).isRequired,
1942
- Node: E.func.isRequired
1943
- }),
1944
- itemToString: E.func,
1945
- itemToKey: E.func,
1946
- stateReducer: E.func
1947
- }, ar = Y({}, ur, {
1948
- getA11yStatusMessage: E.func,
1949
- highlightedIndex: E.number,
1950
- defaultHighlightedIndex: E.number,
1951
- initialHighlightedIndex: E.number,
1952
- isOpen: E.bool,
1953
- defaultIsOpen: E.bool,
1954
- initialIsOpen: E.bool,
1955
- selectedItem: E.any,
1956
- initialSelectedItem: E.any,
1957
- defaultSelectedItem: E.any,
1958
- id: E.string,
1959
- labelId: E.string,
1960
- menuId: E.string,
1961
- getItemId: E.func,
1962
- toggleButtonId: E.string,
1963
- onSelectedItemChange: E.func,
1964
- onHighlightedIndexChange: E.func,
1965
- onStateChange: E.func,
1966
- onIsOpenChange: E.func,
1967
- scrollIntoView: E.func
1968
- });
1969
- function So(e, n, r) {
1970
- var i = n.type, o = n.props, t;
1971
- switch (i) {
1972
- case r.ItemMouseMove:
1973
- t = {
1974
- highlightedIndex: n.disabled ? -1 : n.index
1975
- };
1976
- break;
1977
- case r.MenuMouseLeave:
1978
- t = {
1979
- highlightedIndex: -1
1980
- };
1981
- break;
1982
- case r.ToggleButtonClick:
1983
- case r.FunctionToggleMenu:
1984
- t = {
1985
- isOpen: !e.isOpen,
1986
- highlightedIndex: e.isOpen ? -1 : Ve(o, e, 0)
1987
- };
1988
- break;
1989
- case r.FunctionOpenMenu:
1990
- t = {
1991
- isOpen: !0,
1992
- highlightedIndex: Ve(o, e, 0)
1993
- };
1994
- break;
1995
- case r.FunctionCloseMenu:
1996
- t = {
1997
- isOpen: !1
1998
- };
1999
- break;
2000
- case r.FunctionSetHighlightedIndex:
2001
- t = {
2002
- highlightedIndex: n.highlightedIndex
2003
- };
2004
- break;
2005
- case r.FunctionSetInputValue:
2006
- t = {
2007
- inputValue: n.inputValue
2008
- };
2009
- break;
2010
- case r.FunctionReset:
2011
- t = {
2012
- highlightedIndex: Ie(o, "highlightedIndex"),
2013
- isOpen: Ie(o, "isOpen"),
2014
- selectedItem: Ie(o, "selectedItem"),
2015
- inputValue: Ie(o, "inputValue")
2016
- };
2017
- break;
2018
- default:
2019
- throw new Error("Reducer called without proper action type.");
2020
- }
2021
- return Y({}, e, t);
2022
- }
2023
- Pe(Pe({}, ar), { items: E.array.isRequired, isItemDisabled: E.func, getA11ySelectionMessage: E.func });
2024
- function Do(e) {
2025
- var n = e.isOpen, r = e.resultCount, i = e.previousResultCount;
2026
- 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." : "";
2027
- }
2028
- Pe(Pe({}, Ce), { getA11yStatusMessage: Do, isItemDisabled: function() {
2029
- return !1;
2030
- } });
2031
- process.env.NODE_ENV;
2032
- process.env.NODE_ENV;
2033
- process.env.NODE_ENV;
2034
- process.env.NODE_ENV;
2035
- process.env.NODE_ENV;
2036
- process.env.NODE_ENV;
2037
- process.env.NODE_ENV;
2038
- process.env.NODE_ENV;
2039
- process.env.NODE_ENV;
2040
- process.env.NODE_ENV;
2041
- process.env.NODE_ENV;
2042
- process.env.NODE_ENV;
2043
- process.env.NODE_ENV;
2044
- process.env.NODE_ENV;
2045
- process.env.NODE_ENV;
2046
- process.env.NODE_ENV;
2047
- process.env.NODE_ENV;
2048
- process.env.NODE_ENV;
2049
- process.env.NODE_ENV;
2050
- process.env.NODE_ENV;
2051
- process.env.NODE_ENV;
2052
- process.env.NODE_ENV;
2053
- process.env.NODE_ENV;
2054
- var xt = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_down__" : 0, Ot = process.env.NODE_ENV !== "production" ? "__input_keydown_arrow_up__" : 1, Ct = process.env.NODE_ENV !== "production" ? "__input_keydown_escape__" : 2, St = process.env.NODE_ENV !== "production" ? "__input_keydown_home__" : 3, Dt = process.env.NODE_ENV !== "production" ? "__input_keydown_end__" : 4, Tt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_up__" : 5, Pt = process.env.NODE_ENV !== "production" ? "__input_keydown_page_down__" : 6, Rt = process.env.NODE_ENV !== "production" ? "__input_keydown_enter__" : 7, Nt = process.env.NODE_ENV !== "production" ? "__input_change__" : 8, Qe = process.env.NODE_ENV !== "production" ? "__input_blur__" : 9, Mt = process.env.NODE_ENV !== "production" ? "__input_click__" : 10, lr = process.env.NODE_ENV !== "production" ? "__menu_mouse_leave__" : 11, cr = process.env.NODE_ENV !== "production" ? "__item_mouse_move__" : 12, At = process.env.NODE_ENV !== "production" ? "__item_click__" : 13, dr = process.env.NODE_ENV !== "production" ? "__togglebutton_click__" : 14, fr = process.env.NODE_ENV !== "production" ? "__function_toggle_menu__" : 15, pr = process.env.NODE_ENV !== "production" ? "__function_open_menu__" : 16, mr = process.env.NODE_ENV !== "production" ? "__function_close_menu__" : 17, hr = process.env.NODE_ENV !== "production" ? "__function_set_highlighted_index__" : 18, kt = process.env.NODE_ENV !== "production" ? "__function_select_item__" : 19, gr = process.env.NODE_ENV !== "production" ? "__function_set_input_value__" : 20, vr = process.env.NODE_ENV !== "production" ? "__function_reset__" : 21, Vt = process.env.NODE_ENV !== "production" ? "__controlled_prop_updated_selected_item__" : 22, Ir = /* @__PURE__ */ Object.freeze({
2055
- __proto__: null,
2056
- InputKeyDownArrowDown: xt,
2057
- InputKeyDownArrowUp: Ot,
2058
- InputKeyDownEscape: Ct,
2059
- InputKeyDownHome: St,
2060
- InputKeyDownEnd: Dt,
2061
- InputKeyDownPageUp: Tt,
2062
- InputKeyDownPageDown: Pt,
2063
- InputKeyDownEnter: Rt,
2064
- InputChange: Nt,
2065
- InputBlur: Qe,
2066
- InputClick: Mt,
2067
- MenuMouseLeave: lr,
2068
- ItemMouseMove: cr,
2069
- ItemClick: At,
2070
- ToggleButtonClick: dr,
2071
- FunctionToggleMenu: fr,
2072
- FunctionOpenMenu: pr,
2073
- FunctionCloseMenu: mr,
2074
- FunctionSetHighlightedIndex: hr,
2075
- FunctionSelectItem: kt,
2076
- FunctionSetInputValue: gr,
2077
- FunctionReset: vr,
2078
- ControlledPropUpdatedSelectedItem: Vt
2079
- });
2080
- function To(e) {
2081
- var n = wo(e), r = n.selectedItem, i = n.inputValue;
2082
- return i === "" && r && e.defaultInputValue === void 0 && e.initialInputValue === void 0 && e.inputValue === void 0 && (i = e.itemToString(r)), Y({}, n, {
2083
- inputValue: i
2084
- });
2085
- }
2086
- var Po = Y({}, ar, {
2087
- items: E.array.isRequired,
2088
- isItemDisabled: E.func,
2089
- selectedItemChanged: E.func,
2090
- getA11ySelectionMessage: E.func,
2091
- inputValue: E.string,
2092
- defaultInputValue: E.string,
2093
- initialInputValue: E.string,
2094
- inputId: E.string,
2095
- onInputValueChange: E.func
2096
- });
2097
- function Ro(e, n, r, i) {
2098
- var o = ae(), t = sr(e, n, r, i), s = t[0], u = t[1], c = je();
2099
- return ce(function() {
2100
- if (Je(n, "selectedItem")) {
2101
- if (!c) {
2102
- var d;
2103
- n.selectedItemChanged === void 0 ? d = n.itemToKey(n.selectedItem) !== n.itemToKey(o.current) : (console.warn('The "selectedItemChanged" is deprecated. Please use "itemToKey instead". https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/README.md#selecteditemchanged'), d = n.selectedItemChanged(o.current, n.selectedItem)), d && u({
2104
- type: Vt,
2105
- inputValue: n.itemToString(n.selectedItem)
2106
- });
2107
- }
2108
- o.current = s.selectedItem === o.current ? n.selectedItem : s.selectedItem;
2109
- }
2110
- }, [s.selectedItem, n.selectedItem]), [He(s, n), u];
2111
- }
2112
- var _r = me;
2113
- process.env.NODE_ENV !== "production" && (_r = function(n, r) {
2114
- E.checkPropTypes(Po, n, "prop", r.name);
2115
- });
2116
- var No = Y({}, Ce, {
2117
- getA11yStatusMessage: $n,
2118
- isItemDisabled: function() {
2119
- return !1;
2120
- }
2121
- });
2122
- function Mo(e, n) {
2123
- var r, i = n.type, o = n.props, t = n.altKey, s;
2124
- switch (i) {
2125
- case At:
2126
- s = {
2127
- isOpen: Ie(o, "isOpen"),
2128
- highlightedIndex: Ie(o, "highlightedIndex"),
2129
- selectedItem: o.items[n.index],
2130
- inputValue: o.itemToString(o.items[n.index])
2131
- };
2132
- break;
2133
- case xt:
2134
- e.isOpen ? s = {
2135
- highlightedIndex: Oe(e.highlightedIndex, 1, o.items, o.isItemDisabled, !0)
2136
- } : s = {
2137
- highlightedIndex: t && e.selectedItem == null ? -1 : Ve(o, e, 1),
2138
- isOpen: o.items.length >= 0
2139
- };
2140
- break;
2141
- case Ot:
2142
- e.isOpen ? t ? s = xn(o, e.highlightedIndex) : s = {
2143
- highlightedIndex: Oe(e.highlightedIndex, -1, o.items, o.isItemDisabled, !0)
2144
- } : s = {
2145
- highlightedIndex: Ve(o, e, -1),
2146
- isOpen: o.items.length >= 0
2147
- };
2148
- break;
2149
- case Rt:
2150
- s = xn(o, e.highlightedIndex);
2151
- break;
2152
- case Ct:
2153
- s = Y({
2154
- isOpen: !1,
2155
- highlightedIndex: -1
2156
- }, !e.isOpen && {
2157
- selectedItem: null,
2158
- inputValue: ""
2159
- });
2160
- break;
2161
- case Tt:
2162
- s = {
2163
- highlightedIndex: Oe(e.highlightedIndex, -10, o.items, o.isItemDisabled, !0)
2164
- };
2165
- break;
2166
- case Pt:
2167
- s = {
2168
- highlightedIndex: Oe(e.highlightedIndex, 10, o.items, o.isItemDisabled, !0)
2169
- };
2170
- break;
2171
- case St:
2172
- s = {
2173
- highlightedIndex: Re(0, !1, o.items, o.isItemDisabled)
2174
- };
2175
- break;
2176
- case Dt:
2177
- s = {
2178
- highlightedIndex: Re(o.items.length - 1, !0, o.items, o.isItemDisabled)
2179
- };
2180
- break;
2181
- case Qe:
2182
- s = Y({
2183
- isOpen: !1,
2184
- highlightedIndex: -1
2185
- }, e.highlightedIndex >= 0 && ((r = o.items) == null ? void 0 : r.length) && n.selectItem && {
2186
- selectedItem: o.items[e.highlightedIndex],
2187
- inputValue: o.itemToString(o.items[e.highlightedIndex])
2188
- });
2189
- break;
2190
- case Nt:
2191
- s = {
2192
- isOpen: !0,
2193
- highlightedIndex: Ie(o, "highlightedIndex"),
2194
- inputValue: n.inputValue
2195
- };
2196
- break;
2197
- case Mt:
2198
- s = {
2199
- isOpen: !e.isOpen,
2200
- highlightedIndex: e.isOpen ? -1 : Ve(o, e, 0)
2201
- };
2202
- break;
2203
- case kt:
2204
- s = {
2205
- selectedItem: n.selectedItem,
2206
- inputValue: o.itemToString(n.selectedItem)
2207
- };
2208
- break;
2209
- case Vt:
2210
- s = {
2211
- inputValue: n.inputValue
2212
- };
2213
- break;
2214
- default:
2215
- return So(e, n, Ir);
2216
- }
2217
- return Y({}, e, s);
2218
- }
2219
- var Ao = ["onMouseLeave", "refKey", "ref"], ko = ["item", "index", "refKey", "ref", "onMouseMove", "onMouseDown", "onClick", "onPress", "disabled"], Vo = ["onClick", "onPress", "refKey", "ref"], Ho = ["onKeyDown", "onChange", "onInput", "onBlur", "onChangeText", "onClick", "refKey", "ref"];
2220
- de.stateChangeTypes = Ir;
2221
- function de(e) {
2222
- e === void 0 && (e = {}), _r(e, de);
2223
- var n = Y({}, No, e), r = n.items, i = n.scrollIntoView, o = n.environment, t = n.getA11yStatusMessage, s = n.getA11ySelectionMessage, u = n.itemToString, c = Ro(Mo, n, To, Co), d = c[0], a = c[1], h = d.isOpen, D = d.highlightedIndex, T = d.selectedItem, O = d.inputValue, N = ae(null), g = ae({}), K = ae(null), p = ae(null), m = je(), f = Eo(n), l = ae(), P = Et({
2224
- state: d,
2225
- props: n
2226
- }), U = se(function(I) {
2227
- return g.current[f.getItemId(I)];
2228
- }, [f]);
2229
- wn(t, [h, D, O, r], Y({
2230
- previousResultCount: l.current,
2231
- items: r,
2232
- environment: o,
2233
- itemToString: u
2234
- }, d)), wn(s, [T], Y({
2235
- previousResultCount: l.current,
2236
- items: r,
2237
- environment: o,
2238
- itemToString: u
2239
- }, d));
2240
- var k = Oo({
2241
- menuElement: N.current,
2242
- highlightedIndex: D,
2243
- isOpen: h,
2244
- itemRefs: g,
2245
- scrollIntoView: i,
2246
- getItemNodeFromIndex: U
2247
- });
2248
- wt({
2249
- props: n,
2250
- state: d
2251
- }), ce(function() {
2252
- var I = Se(n, "isOpen");
2253
- I && K.current && K.current.focus();
2254
- }, []), ce(function() {
2255
- m || (l.current = r.length);
2256
- });
2257
- var q = xo(o, [p, N, K], se(function() {
2258
- P.current.state.isOpen && a({
2259
- type: Qe,
2260
- selectItem: !1
2261
- });
2262
- }, [a, P])), j = bt("getInputProps", "getMenuProps");
2263
- ce(function() {
2264
- h || (g.current = {});
2265
- }, [h]), ce(function() {
2266
- var I;
2267
- !h || !(o != null && o.document) || !(K != null && (I = K.current) != null && I.focus) || o.document.activeElement !== K.current && K.current.focus();
2268
- }, [h, o]);
2269
- var M = lt(function() {
2270
- return {
2271
- ArrowDown: function(y) {
2272
- y.preventDefault(), a({
2273
- type: xt,
2274
- altKey: y.altKey
2275
- });
2276
- },
2277
- ArrowUp: function(y) {
2278
- y.preventDefault(), a({
2279
- type: Ot,
2280
- altKey: y.altKey
2281
- });
2282
- },
2283
- Home: function(y) {
2284
- P.current.state.isOpen && (y.preventDefault(), a({
2285
- type: St
2286
- }));
2287
- },
2288
- End: function(y) {
2289
- P.current.state.isOpen && (y.preventDefault(), a({
2290
- type: Dt
2291
- }));
2292
- },
2293
- Escape: function(y) {
2294
- var b = P.current.state;
2295
- (b.isOpen || b.inputValue || b.selectedItem || b.highlightedIndex > -1) && (y.preventDefault(), a({
2296
- type: Ct
2297
- }));
2298
- },
2299
- Enter: function(y) {
2300
- var b = P.current.state;
2301
- !b.isOpen || y.which === 229 || (y.preventDefault(), a({
2302
- type: Rt
2303
- }));
2304
- },
2305
- PageUp: function(y) {
2306
- P.current.state.isOpen && (y.preventDefault(), a({
2307
- type: Tt
2308
- }));
2309
- },
2310
- PageDown: function(y) {
2311
- P.current.state.isOpen && (y.preventDefault(), a({
2312
- type: Pt
2313
- }));
2314
- }
2315
- };
2316
- }, [a, P]), $ = se(function(I) {
2317
- return Y({
2318
- id: f.labelId,
2319
- htmlFor: f.inputId
2320
- }, I);
2321
- }, [f]), B = se(function(I, y) {
2322
- var b, S = I === void 0 ? {} : I, V = S.onMouseLeave, H = S.refKey, A = H === void 0 ? "ref" : H, R = S.ref, _ = ge(S, Ao), G = y === void 0 ? {} : y, C = G.suppressRefError, X = C === void 0 ? !1 : C;
2323
- return j("getMenuProps", X, A, N), Y((b = {}, b[A] = we(R, function(le) {
2324
- N.current = le;
2325
- }), b.id = f.menuId, b.role = "listbox", b["aria-labelledby"] = _ && _["aria-label"] ? void 0 : "" + f.labelId, b.onMouseLeave = ue(V, function() {
2326
- a({
2327
- type: lr
2328
- });
2329
- }), b), _);
2330
- }, [a, j, f]), L = se(function(I) {
2331
- var y, b, S = I === void 0 ? {} : I, V = S.item, H = S.index, A = S.refKey, R = A === void 0 ? "ref" : A, _ = S.ref, G = S.onMouseMove, C = S.onMouseDown, X = S.onClick;
2332
- S.onPress;
2333
- var le = S.disabled, he = ge(S, ko);
2334
- le !== void 0 && console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');
2335
- var Ae = P.current, Fe = Ae.props, _e = Ae.state, Le = ir(V, H, Fe.items, "Pass either item or index to getItemProps!"), et = Le[0], ye = Le[1], ke = Fe.isItemDisabled(et, ye), tt = "onClick", Be = X, Ee = function() {
2336
- q.isTouchEnd || ye === _e.highlightedIndex || (k.current = !1, a({
2337
- type: cr,
2338
- index: ye,
2339
- disabled: ke
2340
- }));
2341
- }, xe = function() {
2342
- a({
2343
- type: At,
2344
- index: ye
2345
- });
2346
- }, be = function(Or) {
2347
- return Or.preventDefault();
2348
- };
2349
- return Y((y = {}, y[R] = we(_, function(ve) {
2350
- ve && (g.current[f.getItemId(ye)] = ve);
2351
- }), y["aria-disabled"] = ke, y["aria-selected"] = "" + (ye === _e.highlightedIndex), y.id = f.getItemId(ye), y.role = "option", y), !ke && (b = {}, b[tt] = ue(Be, xe), b), {
2352
- onMouseMove: ue(G, Ee),
2353
- onMouseDown: ue(C, be)
2354
- }, he);
2355
- }, [a, f, P, q, k]), Q = se(function(I) {
2356
- var y, b = I === void 0 ? {} : I, S = b.onClick;
2357
- b.onPress;
2358
- var V = b.refKey, H = V === void 0 ? "ref" : V, A = b.ref, R = ge(b, Vo), _ = P.current.state, G = function() {
2359
- a({
2360
- type: dr
2361
- });
2362
- };
2363
- return Y((y = {}, y[H] = we(A, function(C) {
2364
- p.current = C;
2365
- }), y["aria-controls"] = f.menuId, y["aria-expanded"] = _.isOpen, y.id = f.toggleButtonId, y.tabIndex = -1, y), !R.disabled && Y({}, {
2366
- onClick: ue(S, G)
2367
- }), R);
2368
- }, [a, P, f]), J = se(function(I, y) {
2369
- var b, S = I === void 0 ? {} : I, V = S.onKeyDown, H = S.onChange, A = S.onInput, R = S.onBlur;
2370
- S.onChangeText;
2371
- var _ = S.onClick, G = S.refKey, C = G === void 0 ? "ref" : G, X = S.ref, le = ge(S, Ho), he = y === void 0 ? {} : y, Ae = he.suppressRefError, Fe = Ae === void 0 ? !1 : Ae;
2372
- j("getInputProps", Fe, C, K);
2373
- var _e = P.current.state, Le = function(be) {
2374
- var ve = Ke(be);
2375
- ve && M[ve] && M[ve](be);
2376
- }, et = function(be) {
2377
- a({
2378
- type: Nt,
2379
- inputValue: be.target.value
2380
- });
2381
- }, ye = function(be) {
2382
- if (o != null && o.document && _e.isOpen && !q.isMouseDown) {
2383
- var ve = be.relatedTarget === null && o.document.activeElement !== o.document.body;
2384
- a({
2385
- type: Qe,
2386
- selectItem: !ve
2387
- });
2388
- }
2389
- }, ke = function() {
2390
- a({
2391
- type: Mt
2392
- });
2393
- }, tt = "onChange", Be = {};
2394
- if (!le.disabled) {
2395
- var Ee;
2396
- Be = (Ee = {}, Ee[tt] = ue(H, A, et), Ee.onKeyDown = ue(V, Le), Ee.onBlur = ue(R, ye), Ee.onClick = ue(_, ke), Ee);
2397
- }
2398
- return Y((b = {}, b[C] = we(X, function(xe) {
2399
- K.current = xe;
2400
- }), b["aria-activedescendant"] = _e.isOpen && _e.highlightedIndex > -1 ? f.getItemId(_e.highlightedIndex) : "", b["aria-autocomplete"] = "list", b["aria-controls"] = f.menuId, b["aria-expanded"] = _e.isOpen, b["aria-labelledby"] = le && le["aria-label"] ? void 0 : f.labelId, b.autoComplete = "off", b.id = f.inputId, b.role = "combobox", b.value = _e.inputValue, b), Be, le);
2401
- }, [a, f, o, M, P, q, j]), W = se(function() {
2402
- a({
2403
- type: fr
2404
- });
2405
- }, [a]), re = se(function() {
2406
- a({
2407
- type: mr
2408
- });
2409
- }, [a]), ie = se(function() {
2410
- a({
2411
- type: pr
2412
- });
2413
- }, [a]), v = se(function(I) {
2414
- a({
2415
- type: hr,
2416
- highlightedIndex: I
2417
- });
2418
- }, [a]), x = se(function(I) {
2419
- a({
2420
- type: kt,
2421
- selectedItem: I
2422
- });
2423
- }, [a]), F = se(function(I) {
2424
- a({
2425
- type: gr,
2426
- inputValue: I
2427
- });
2428
- }, [a]), w = se(function() {
2429
- a({
2430
- type: vr
2431
- });
2432
- }, [a]);
2433
- return {
2434
- // prop getters.
2435
- getItemProps: L,
2436
- getLabelProps: $,
2437
- getMenuProps: B,
2438
- getInputProps: J,
2439
- getToggleButtonProps: Q,
2440
- // actions.
2441
- toggleMenu: W,
2442
- openMenu: ie,
2443
- closeMenu: re,
2444
- setHighlightedIndex: v,
2445
- setInputValue: F,
2446
- selectItem: x,
2447
- reset: w,
2448
- // state.
2449
- highlightedIndex: D,
2450
- isOpen: h,
2451
- selectedItem: T,
2452
- inputValue: O
2453
- };
2454
- }
2455
- var yr = {
2456
- activeIndex: -1,
2457
- selectedItems: []
2458
- };
2459
- function On(e, n) {
2460
- return Se(e, n, yr);
2461
- }
2462
- function Cn(e, n) {
2463
- return Ie(e, n, yr);
2464
- }
2465
- function Ko(e) {
2466
- var n = On(e, "activeIndex"), r = On(e, "selectedItems");
2467
- return {
2468
- activeIndex: n,
2469
- selectedItems: r
2470
- };
2471
- }
2472
- function Sn(e) {
2473
- if (e.shiftKey || e.metaKey || e.ctrlKey || e.altKey)
2474
- return !1;
2475
- var n = e.target;
2476
- return !(n instanceof HTMLInputElement && // if element is a text input
2477
- n.value !== "" && // and we have text in it
2478
- // and cursor is either not at the start or is currently highlighting text.
2479
- (n.selectionStart !== 0 || n.selectionEnd !== 0));
2480
- }
2481
- function jo(e) {
2482
- var n = e.removedSelectedItem, r = e.itemToString;
2483
- return r(n) + " has been removed.";
2484
- }
2485
- function $o(e, n) {
2486
- return e.selectedItems === n.selectedItems && e.activeIndex === n.activeIndex;
2487
- }
2488
- var Fo = Y({}, ur, {
2489
- selectedItems: E.array,
2490
- initialSelectedItems: E.array,
2491
- defaultSelectedItems: E.array,
2492
- getA11yRemovalMessage: E.func,
2493
- activeIndex: E.number,
2494
- initialActiveIndex: E.number,
2495
- defaultActiveIndex: E.number,
2496
- onActiveIndexChange: E.func,
2497
- onSelectedItemsChange: E.func,
2498
- keyNavigationNext: E.string,
2499
- keyNavigationPrevious: E.string
2500
- }), Lo = {
2501
- itemToString: Ce.itemToString,
2502
- itemToKey: Ce.itemToKey,
2503
- stateReducer: Ce.stateReducer,
2504
- environment: Ce.environment,
2505
- getA11yRemovalMessage: jo,
2506
- keyNavigationNext: "ArrowRight",
2507
- keyNavigationPrevious: "ArrowLeft"
2508
- }, Er = me;
2509
- process.env.NODE_ENV !== "production" && (Er = function(n, r) {
2510
- E.checkPropTypes(Fo, n, "prop", r.name);
2511
- });
2512
- var Ht = process.env.NODE_ENV !== "production" ? "__selected_item_click__" : 0, Kt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_delete__" : 1, jt = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_backspace__" : 2, $t = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_next__" : 3, Ft = process.env.NODE_ENV !== "production" ? "__selected_item_keydown_navigation_previous__" : 4, Lt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_navigation_previous__" : 5, Bt = process.env.NODE_ENV !== "production" ? "__dropdown_keydown_backspace__" : 6, Ut = process.env.NODE_ENV !== "production" ? "__dropdown_click__" : 7, Wt = process.env.NODE_ENV !== "production" ? "__function_add_selected_item__" : 8, Yt = process.env.NODE_ENV !== "production" ? "__function_remove_selected_item__" : 9, qt = process.env.NODE_ENV !== "production" ? "__function_set_selected_items__" : 10, zt = process.env.NODE_ENV !== "production" ? "__function_set_active_index__" : 11, Gt = process.env.NODE_ENV !== "production" ? "__function_reset__" : 12, Bo = /* @__PURE__ */ Object.freeze({
2513
- __proto__: null,
2514
- SelectedItemClick: Ht,
2515
- SelectedItemKeyDownDelete: Kt,
2516
- SelectedItemKeyDownBackspace: jt,
2517
- SelectedItemKeyDownNavigationNext: $t,
2518
- SelectedItemKeyDownNavigationPrevious: Ft,
2519
- DropdownKeyDownNavigationPrevious: Lt,
2520
- DropdownKeyDownBackspace: Bt,
2521
- DropdownClick: Ut,
2522
- FunctionAddSelectedItem: Wt,
2523
- FunctionRemoveSelectedItem: Yt,
2524
- FunctionSetSelectedItems: qt,
2525
- FunctionSetActiveIndex: zt,
2526
- FunctionReset: Gt
2527
- });
2528
- function Uo(e, n) {
2529
- var r = n.type, i = n.index, o = n.props, t = n.selectedItem, s = e.activeIndex, u = e.selectedItems, c;
2530
- switch (r) {
2531
- case Ht:
2532
- c = {
2533
- activeIndex: i
2534
- };
2535
- break;
2536
- case Ft:
2537
- c = {
2538
- activeIndex: s - 1 < 0 ? 0 : s - 1
2539
- };
2540
- break;
2541
- case $t:
2542
- c = {
2543
- activeIndex: s + 1 >= u.length ? -1 : s + 1
2544
- };
2545
- break;
2546
- case jt:
2547
- case Kt: {
2548
- if (s < 0)
2549
- break;
2550
- var d = s;
2551
- u.length === 1 ? d = -1 : s === u.length - 1 && (d = u.length - 2), c = Y({
2552
- selectedItems: [].concat(u.slice(0, s), u.slice(s + 1))
2553
- }, {
2554
- activeIndex: d
2555
- });
2556
- break;
2557
- }
2558
- case Lt:
2559
- c = {
2560
- activeIndex: u.length - 1
2561
- };
2562
- break;
2563
- case Bt:
2564
- c = {
2565
- selectedItems: u.slice(0, u.length - 1)
2566
- };
2567
- break;
2568
- case Wt:
2569
- c = {
2570
- selectedItems: [].concat(u, [t])
2571
- };
2572
- break;
2573
- case Ut:
2574
- c = {
2575
- activeIndex: -1
2576
- };
2577
- break;
2578
- case Yt: {
2579
- var a = s, h = u.findIndex(function(O) {
2580
- return o.itemToKey(O) === o.itemToKey(t);
2581
- });
2582
- if (h < 0)
2583
- break;
2584
- u.length === 1 ? a = -1 : h === u.length - 1 && (a = u.length - 2), c = {
2585
- selectedItems: [].concat(u.slice(0, h), u.slice(h + 1)),
2586
- activeIndex: a
2587
- };
2588
- break;
2589
- }
2590
- case qt: {
2591
- var D = n.selectedItems;
2592
- c = {
2593
- selectedItems: D
2594
- };
2595
- break;
2596
- }
2597
- case zt: {
2598
- var T = n.activeIndex;
2599
- c = {
2600
- activeIndex: T
2601
- };
2602
- break;
2603
- }
2604
- case Gt:
2605
- c = {
2606
- activeIndex: Cn(o, "activeIndex"),
2607
- selectedItems: Cn(o, "selectedItems")
2608
- };
2609
- break;
2610
- default:
2611
- throw new Error("Reducer called without proper action type.");
2612
- }
2613
- return Y({}, e, c);
2614
- }
2615
- var Wo = ["refKey", "ref", "onClick", "onKeyDown", "selectedItem", "index"], Yo = ["refKey", "ref", "onKeyDown", "onClick", "preventKeyAction"];
2616
- De.stateChangeTypes = Bo;
2617
- function De(e) {
2618
- e === void 0 && (e = {}), Er(e, De);
2619
- var n = Y({}, Lo, e), r = n.getA11yRemovalMessage, i = n.itemToString, o = n.environment, t = n.keyNavigationNext, s = n.keyNavigationPrevious, u = bo(Uo, n, Ko, $o), c = u[0], d = u[1], a = c.activeIndex, h = c.selectedItems, D = je(), T = ae(null), O = ae(h), N = ae();
2620
- N.current = [];
2621
- var g = Et({
2622
- state: c,
2623
- props: n
2624
- });
2625
- ce(function() {
2626
- if (!(D || !(o != null && o.document))) {
2627
- if (h.length < O.current.length) {
2628
- var M = O.current.find(function($) {
2629
- return h.findIndex(function(B) {
2630
- return n.itemToKey(B) === n.itemToKey($);
2631
- }) < 0;
2632
- });
2633
- _t(r({
2634
- itemToString: i,
2635
- resultCount: h.length,
2636
- removedSelectedItem: M,
2637
- activeIndex: a,
2638
- activeSelectedItem: h[a]
2639
- }), o.document);
2640
- }
2641
- O.current = h;
2642
- }
2643
- }, [h.length]), ce(function() {
2644
- D || (a === -1 && T.current ? T.current.focus() : N.current[a] && N.current[a].focus());
2645
- }, [a]), wt({
2646
- props: n,
2647
- state: c
2648
- });
2649
- var K = bt("getDropdownProps"), p = lt(function() {
2650
- var M;
2651
- return M = {}, M[s] = function() {
2652
- d({
2653
- type: Ft
2654
- });
2655
- }, M[t] = function() {
2656
- d({
2657
- type: $t
2658
- });
2659
- }, M.Delete = function() {
2660
- d({
2661
- type: Kt
2662
- });
2663
- }, M.Backspace = function() {
2664
- d({
2665
- type: jt
2666
- });
2667
- }, M;
2668
- }, [d, t, s]), m = lt(function() {
2669
- var M;
2670
- return M = {}, M[s] = function($) {
2671
- Sn($) && d({
2672
- type: Lt
2673
- });
2674
- }, M.Backspace = function(B) {
2675
- Sn(B) && d({
2676
- type: Bt
2677
- });
2678
- }, M;
2679
- }, [d, s]), f = se(function(M) {
2680
- var $, B = M === void 0 ? {} : M, L = B.refKey, Q = L === void 0 ? "ref" : L, J = B.ref, W = B.onClick, re = B.onKeyDown, ie = B.selectedItem, v = B.index, x = ge(B, Wo), F = g.current.state, w = ir(ie, v, F.selectedItems, "Pass either item or index to getSelectedItemProps!"), I = w[1], y = I > -1 && I === F.activeIndex, b = function() {
2681
- d({
2682
- type: Ht,
2683
- index: I
2684
- });
2685
- }, S = function(H) {
2686
- var A = Ke(H);
2687
- A && p[A] && p[A](H);
2688
- };
2689
- return Y(($ = {}, $[Q] = we(J, function(V) {
2690
- V && N.current.push(V);
2691
- }), $.tabIndex = y ? 0 : -1, $.onClick = ue(W, b), $.onKeyDown = ue(re, S), $), x);
2692
- }, [d, g, p]), l = se(function(M, $) {
2693
- var B, L = M === void 0 ? {} : M, Q = L.refKey, J = Q === void 0 ? "ref" : Q, W = L.ref, re = L.onKeyDown, ie = L.onClick, v = L.preventKeyAction, x = v === void 0 ? !1 : v, F = ge(L, Yo), w = $ === void 0 ? {} : $, I = w.suppressRefError, y = I === void 0 ? !1 : I;
2694
- K("getDropdownProps", y, J, T);
2695
- var b = function(H) {
2696
- var A = Ke(H);
2697
- A && m[A] && m[A](H);
2698
- }, S = function() {
2699
- d({
2700
- type: Ut
2701
- });
2702
- };
2703
- return Y((B = {}, B[J] = we(W, function(V) {
2704
- V && (T.current = V);
2705
- }), B), !x && {
2706
- onKeyDown: ue(re, b),
2707
- onClick: ue(ie, S)
2708
- }, F);
2709
- }, [d, m, K]), P = se(function(M) {
2710
- d({
2711
- type: Wt,
2712
- selectedItem: M
2713
- });
2714
- }, [d]), U = se(function(M) {
2715
- d({
2716
- type: Yt,
2717
- selectedItem: M
2718
- });
2719
- }, [d]), k = se(function(M) {
2720
- d({
2721
- type: qt,
2722
- selectedItems: M
2723
- });
2724
- }, [d]), q = se(function(M) {
2725
- d({
2726
- type: zt,
2727
- activeIndex: M
2728
- });
2729
- }, [d]), j = se(function() {
2730
- d({
2731
- type: Gt
2732
- });
2733
- }, [d]);
2734
- return {
2735
- getSelectedItemProps: f,
2736
- getDropdownProps: l,
2737
- addSelectedItem: P,
2738
- removeSelectedItem: U,
2739
- setSelectedItems: k,
2740
- setActiveIndex: q,
2741
- reset: j,
2742
- selectedItems: h,
2743
- activeIndex: a
2744
- };
2745
- }
2746
- var Ze = { exports: {} }, br = {
2747
- À: "A",
2748
- Á: "A",
2749
- Â: "A",
2750
- Ã: "A",
2751
- Ä: "A",
2752
- Å: "A",
2753
- Ấ: "A",
2754
- Ắ: "A",
2755
- Ẳ: "A",
2756
- Ẵ: "A",
2757
- Ặ: "A",
2758
- Æ: "AE",
2759
- Ầ: "A",
2760
- Ằ: "A",
2761
- Ȃ: "A",
2762
- Ả: "A",
2763
- Ạ: "A",
2764
- Ẩ: "A",
2765
- Ẫ: "A",
2766
- Ậ: "A",
2767
- Ç: "C",
2768
- Ḉ: "C",
2769
- È: "E",
2770
- É: "E",
2771
- Ê: "E",
2772
- Ë: "E",
2773
- Ế: "E",
2774
- Ḗ: "E",
2775
- Ề: "E",
2776
- Ḕ: "E",
2777
- Ḝ: "E",
2778
- Ȇ: "E",
2779
- Ẻ: "E",
2780
- Ẽ: "E",
2781
- Ẹ: "E",
2782
- Ể: "E",
2783
- Ễ: "E",
2784
- Ệ: "E",
2785
- Ì: "I",
2786
- Í: "I",
2787
- Î: "I",
2788
- Ï: "I",
2789
- Ḯ: "I",
2790
- Ȋ: "I",
2791
- Ỉ: "I",
2792
- Ị: "I",
2793
- Ð: "D",
2794
- Ñ: "N",
2795
- Ò: "O",
2796
- Ó: "O",
2797
- Ô: "O",
2798
- Õ: "O",
2799
- Ö: "O",
2800
- Ø: "O",
2801
- Ố: "O",
2802
- Ṍ: "O",
2803
- Ṓ: "O",
2804
- Ȏ: "O",
2805
- Ỏ: "O",
2806
- Ọ: "O",
2807
- Ổ: "O",
2808
- Ỗ: "O",
2809
- Ộ: "O",
2810
- Ờ: "O",
2811
- Ở: "O",
2812
- Ỡ: "O",
2813
- Ớ: "O",
2814
- Ợ: "O",
2815
- Ù: "U",
2816
- Ú: "U",
2817
- Û: "U",
2818
- Ü: "U",
2819
- Ủ: "U",
2820
- Ụ: "U",
2821
- Ử: "U",
2822
- Ữ: "U",
2823
- Ự: "U",
2824
- Ý: "Y",
2825
- à: "a",
2826
- á: "a",
2827
- â: "a",
2828
- ã: "a",
2829
- ä: "a",
2830
- å: "a",
2831
- ấ: "a",
2832
- ắ: "a",
2833
- ẳ: "a",
2834
- ẵ: "a",
2835
- ặ: "a",
2836
- æ: "ae",
2837
- ầ: "a",
2838
- ằ: "a",
2839
- ȃ: "a",
2840
- ả: "a",
2841
- ạ: "a",
2842
- ẩ: "a",
2843
- ẫ: "a",
2844
- ậ: "a",
2845
- ç: "c",
2846
- ḉ: "c",
2847
- è: "e",
2848
- é: "e",
2849
- ê: "e",
2850
- ë: "e",
2851
- ế: "e",
2852
- ḗ: "e",
2853
- ề: "e",
2854
- ḕ: "e",
2855
- ḝ: "e",
2856
- ȇ: "e",
2857
- ẻ: "e",
2858
- ẽ: "e",
2859
- ẹ: "e",
2860
- ể: "e",
2861
- ễ: "e",
2862
- ệ: "e",
2863
- ì: "i",
2864
- í: "i",
2865
- î: "i",
2866
- ï: "i",
2867
- ḯ: "i",
2868
- ȋ: "i",
2869
- ỉ: "i",
2870
- ị: "i",
2871
- ð: "d",
2872
- ñ: "n",
2873
- ò: "o",
2874
- ó: "o",
2875
- ô: "o",
2876
- õ: "o",
2877
- ö: "o",
2878
- ø: "o",
2879
- ố: "o",
2880
- ṍ: "o",
2881
- ṓ: "o",
2882
- ȏ: "o",
2883
- ỏ: "o",
2884
- ọ: "o",
2885
- ổ: "o",
2886
- ỗ: "o",
2887
- ộ: "o",
2888
- ờ: "o",
2889
- ở: "o",
2890
- ỡ: "o",
2891
- ớ: "o",
2892
- ợ: "o",
2893
- ù: "u",
2894
- ú: "u",
2895
- û: "u",
2896
- ü: "u",
2897
- ủ: "u",
2898
- ụ: "u",
2899
- ử: "u",
2900
- ữ: "u",
2901
- ự: "u",
2902
- ý: "y",
2903
- ÿ: "y",
2904
- Ā: "A",
2905
- ā: "a",
2906
- Ă: "A",
2907
- ă: "a",
2908
- Ą: "A",
2909
- ą: "a",
2910
- Ć: "C",
2911
- ć: "c",
2912
- Ĉ: "C",
2913
- ĉ: "c",
2914
- Ċ: "C",
2915
- ċ: "c",
2916
- Č: "C",
2917
- č: "c",
2918
- C̆: "C",
2919
- c̆: "c",
2920
- Ď: "D",
2921
- ď: "d",
2922
- Đ: "D",
2923
- đ: "d",
2924
- Ē: "E",
2925
- ē: "e",
2926
- Ĕ: "E",
2927
- ĕ: "e",
2928
- Ė: "E",
2929
- ė: "e",
2930
- Ę: "E",
2931
- ę: "e",
2932
- Ě: "E",
2933
- ě: "e",
2934
- Ĝ: "G",
2935
- Ǵ: "G",
2936
- ĝ: "g",
2937
- ǵ: "g",
2938
- Ğ: "G",
2939
- ğ: "g",
2940
- Ġ: "G",
2941
- ġ: "g",
2942
- Ģ: "G",
2943
- ģ: "g",
2944
- Ĥ: "H",
2945
- ĥ: "h",
2946
- Ħ: "H",
2947
- ħ: "h",
2948
- Ḫ: "H",
2949
- ḫ: "h",
2950
- Ĩ: "I",
2951
- ĩ: "i",
2952
- Ī: "I",
2953
- ī: "i",
2954
- Ĭ: "I",
2955
- ĭ: "i",
2956
- Į: "I",
2957
- į: "i",
2958
- İ: "I",
2959
- ı: "i",
2960
- IJ: "IJ",
2961
- ij: "ij",
2962
- Ĵ: "J",
2963
- ĵ: "j",
2964
- Ķ: "K",
2965
- ķ: "k",
2966
- Ḱ: "K",
2967
- ḱ: "k",
2968
- K̆: "K",
2969
- k̆: "k",
2970
- Ĺ: "L",
2971
- ĺ: "l",
2972
- Ļ: "L",
2973
- ļ: "l",
2974
- Ľ: "L",
2975
- ľ: "l",
2976
- Ŀ: "L",
2977
- ŀ: "l",
2978
- Ł: "l",
2979
- ł: "l",
2980
- Ḿ: "M",
2981
- ḿ: "m",
2982
- M̆: "M",
2983
- m̆: "m",
2984
- Ń: "N",
2985
- ń: "n",
2986
- Ņ: "N",
2987
- ņ: "n",
2988
- Ň: "N",
2989
- ň: "n",
2990
- ʼn: "n",
2991
- N̆: "N",
2992
- n̆: "n",
2993
- Ō: "O",
2994
- ō: "o",
2995
- Ŏ: "O",
2996
- ŏ: "o",
2997
- Ő: "O",
2998
- ő: "o",
2999
- Œ: "OE",
3000
- œ: "oe",
3001
- P̆: "P",
3002
- p̆: "p",
3003
- Ŕ: "R",
3004
- ŕ: "r",
3005
- Ŗ: "R",
3006
- ŗ: "r",
3007
- Ř: "R",
3008
- ř: "r",
3009
- R̆: "R",
3010
- r̆: "r",
3011
- Ȓ: "R",
3012
- ȓ: "r",
3013
- Ś: "S",
3014
- ś: "s",
3015
- Ŝ: "S",
3016
- ŝ: "s",
3017
- Ş: "S",
3018
- Ș: "S",
3019
- ș: "s",
3020
- ş: "s",
3021
- Š: "S",
3022
- š: "s",
3023
- Ţ: "T",
3024
- ţ: "t",
3025
- ț: "t",
3026
- Ț: "T",
3027
- Ť: "T",
3028
- ť: "t",
3029
- Ŧ: "T",
3030
- ŧ: "t",
3031
- T̆: "T",
3032
- t̆: "t",
3033
- Ũ: "U",
3034
- ũ: "u",
3035
- Ū: "U",
3036
- ū: "u",
3037
- Ŭ: "U",
3038
- ŭ: "u",
3039
- Ů: "U",
3040
- ů: "u",
3041
- Ű: "U",
3042
- ű: "u",
3043
- Ų: "U",
3044
- ų: "u",
3045
- Ȗ: "U",
3046
- ȗ: "u",
3047
- V̆: "V",
3048
- v̆: "v",
3049
- Ŵ: "W",
3050
- ŵ: "w",
3051
- Ẃ: "W",
3052
- ẃ: "w",
3053
- X̆: "X",
3054
- x̆: "x",
3055
- Ŷ: "Y",
3056
- ŷ: "y",
3057
- Ÿ: "Y",
3058
- Y̆: "Y",
3059
- y̆: "y",
3060
- Ź: "Z",
3061
- ź: "z",
3062
- Ż: "Z",
3063
- ż: "z",
3064
- Ž: "Z",
3065
- ž: "z",
3066
- ſ: "s",
3067
- ƒ: "f",
3068
- Ơ: "O",
3069
- ơ: "o",
3070
- Ư: "U",
3071
- ư: "u",
3072
- Ǎ: "A",
3073
- ǎ: "a",
3074
- Ǐ: "I",
3075
- ǐ: "i",
3076
- Ǒ: "O",
3077
- ǒ: "o",
3078
- Ǔ: "U",
3079
- ǔ: "u",
3080
- Ǖ: "U",
3081
- ǖ: "u",
3082
- Ǘ: "U",
3083
- ǘ: "u",
3084
- Ǚ: "U",
3085
- ǚ: "u",
3086
- Ǜ: "U",
3087
- ǜ: "u",
3088
- Ứ: "U",
3089
- ứ: "u",
3090
- Ṹ: "U",
3091
- ṹ: "u",
3092
- Ǻ: "A",
3093
- ǻ: "a",
3094
- Ǽ: "AE",
3095
- ǽ: "ae",
3096
- Ǿ: "O",
3097
- ǿ: "o",
3098
- Þ: "TH",
3099
- þ: "th",
3100
- Ṕ: "P",
3101
- ṕ: "p",
3102
- Ṥ: "S",
3103
- ṥ: "s",
3104
- X́: "X",
3105
- x́: "x",
3106
- Ѓ: "Г",
3107
- ѓ: "г",
3108
- Ќ: "К",
3109
- ќ: "к",
3110
- A̋: "A",
3111
- a̋: "a",
3112
- E̋: "E",
3113
- e̋: "e",
3114
- I̋: "I",
3115
- i̋: "i",
3116
- Ǹ: "N",
3117
- ǹ: "n",
3118
- Ồ: "O",
3119
- ồ: "o",
3120
- Ṑ: "O",
3121
- ṑ: "o",
3122
- Ừ: "U",
3123
- ừ: "u",
3124
- Ẁ: "W",
3125
- ẁ: "w",
3126
- Ỳ: "Y",
3127
- ỳ: "y",
3128
- Ȁ: "A",
3129
- ȁ: "a",
3130
- Ȅ: "E",
3131
- ȅ: "e",
3132
- Ȉ: "I",
3133
- ȉ: "i",
3134
- Ȍ: "O",
3135
- ȍ: "o",
3136
- Ȑ: "R",
3137
- ȑ: "r",
3138
- Ȕ: "U",
3139
- ȕ: "u",
3140
- B̌: "B",
3141
- b̌: "b",
3142
- Č̣: "C",
3143
- č̣: "c",
3144
- Ê̌: "E",
3145
- ê̌: "e",
3146
- F̌: "F",
3147
- f̌: "f",
3148
- Ǧ: "G",
3149
- ǧ: "g",
3150
- Ȟ: "H",
3151
- ȟ: "h",
3152
- J̌: "J",
3153
- ǰ: "j",
3154
- Ǩ: "K",
3155
- ǩ: "k",
3156
- M̌: "M",
3157
- m̌: "m",
3158
- P̌: "P",
3159
- p̌: "p",
3160
- Q̌: "Q",
3161
- q̌: "q",
3162
- Ř̩: "R",
3163
- ř̩: "r",
3164
- Ṧ: "S",
3165
- ṧ: "s",
3166
- V̌: "V",
3167
- v̌: "v",
3168
- W̌: "W",
3169
- w̌: "w",
3170
- X̌: "X",
3171
- x̌: "x",
3172
- Y̌: "Y",
3173
- y̌: "y",
3174
- A̧: "A",
3175
- a̧: "a",
3176
- B̧: "B",
3177
- b̧: "b",
3178
- Ḑ: "D",
3179
- ḑ: "d",
3180
- Ȩ: "E",
3181
- ȩ: "e",
3182
- Ɛ̧: "E",
3183
- ɛ̧: "e",
3184
- Ḩ: "H",
3185
- ḩ: "h",
3186
- I̧: "I",
3187
- i̧: "i",
3188
- Ɨ̧: "I",
3189
- ɨ̧: "i",
3190
- M̧: "M",
3191
- m̧: "m",
3192
- O̧: "O",
3193
- o̧: "o",
3194
- Q̧: "Q",
3195
- q̧: "q",
3196
- U̧: "U",
3197
- u̧: "u",
3198
- X̧: "X",
3199
- x̧: "x",
3200
- Z̧: "Z",
3201
- z̧: "z",
3202
- й: "и",
3203
- Й: "И",
3204
- ё: "е",
3205
- Ё: "Е"
3206
- }, wr = Object.keys(br).join("|"), qo = new RegExp(wr, "g"), zo = new RegExp(wr, "");
3207
- function Go(e) {
3208
- return br[e];
3209
- }
3210
- var xr = function(e) {
3211
- return e.replace(qo, Go);
3212
- }, Jo = function(e) {
3213
- return !!e.match(zo);
3214
- };
3215
- Ze.exports = xr;
3216
- Ze.exports.has = Jo;
3217
- Ze.exports.remove = xr;
3218
- var Xo = Ze.exports;
3219
- const Qo = /* @__PURE__ */ Nn(Xo);
3220
- /**
3221
- * @name match-sorter
3222
- * @license MIT license.
3223
- * @copyright (c) 2020 Kent C. Dodds
3224
- * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
3225
- */
3226
- const fe = {
3227
- CASE_SENSITIVE_EQUAL: 7,
3228
- EQUAL: 6,
3229
- STARTS_WITH: 5,
3230
- WORD_STARTS_WITH: 4,
3231
- CONTAINS: 3,
3232
- ACRONYM: 2,
3233
- MATCHES: 1,
3234
- NO_MATCH: 0
3235
- }, Zo = (e, n) => String(e.rankedValue).localeCompare(String(n.rankedValue));
3236
- function Jt(e, n, r) {
3237
- r === void 0 && (r = {});
3238
- const {
3239
- keys: i,
3240
- threshold: o = fe.MATCHES,
3241
- baseSort: t = Zo,
3242
- sorter: s = (d) => d.sort((a, h) => ri(a, h, t))
3243
- } = r, u = e.reduce(c, []);
3244
- return s(u).map((d) => {
3245
- let {
3246
- item: a
3247
- } = d;
3248
- return a;
3249
- });
3250
- function c(d, a, h) {
3251
- const D = ei(a, i, n, r), {
3252
- rank: T,
3253
- keyThreshold: O = o
3254
- } = D;
3255
- return T >= O && d.push({
3256
- ...D,
3257
- item: a,
3258
- index: h
3259
- }), d;
3260
- }
3261
- }
3262
- Jt.rankings = fe;
3263
- function ei(e, n, r, i) {
3264
- if (!n) {
3265
- const t = e;
3266
- return {
3267
- // ends up being duplicate of 'item' in matches but consistent
3268
- rankedValue: t,
3269
- rank: Dn(t, r, i),
3270
- keyIndex: -1,
3271
- keyThreshold: i.threshold
3272
- };
3273
- }
3274
- return si(e, n).reduce((t, s, u) => {
3275
- let {
3276
- rank: c,
3277
- rankedValue: d,
3278
- keyIndex: a,
3279
- keyThreshold: h
3280
- } = t, {
3281
- itemValue: D,
3282
- attributes: T
3283
- } = s, O = Dn(D, r, i), N = d;
3284
- const {
3285
- minRanking: g,
3286
- maxRanking: K,
3287
- threshold: p
3288
- } = T;
3289
- return O < g && O >= fe.MATCHES ? O = g : O > K && (O = K), O > c && (c = O, a = u, h = p, N = D), {
3290
- rankedValue: N,
3291
- rank: c,
3292
- keyIndex: a,
3293
- keyThreshold: h
3294
- };
3295
- }, {
3296
- rankedValue: e,
3297
- rank: fe.NO_MATCH,
3298
- keyIndex: -1,
3299
- keyThreshold: i.threshold
3300
- });
3301
- }
3302
- function Dn(e, n, r) {
3303
- return e = Tn(e, r), n = Tn(n, r), n.length > e.length ? fe.NO_MATCH : e === n ? fe.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), n = n.toLowerCase(), e === n ? fe.EQUAL : e.startsWith(n) ? fe.STARTS_WITH : e.includes(` ${n}`) ? fe.WORD_STARTS_WITH : e.includes(n) ? fe.CONTAINS : n.length === 1 ? fe.NO_MATCH : ti(e).includes(n) ? fe.ACRONYM : ni(e, n));
3304
- }
3305
- function ti(e) {
3306
- let n = "";
3307
- return e.split(" ").forEach((i) => {
3308
- i.split("-").forEach((t) => {
3309
- n += t.substr(0, 1);
3310
- });
3311
- }), n;
3312
- }
3313
- function ni(e, n) {
3314
- let r = 0, i = 0;
3315
- function o(c, d, a) {
3316
- for (let h = a, D = d.length; h < D; h++)
3317
- if (d[h] === c)
3318
- return r += 1, h + 1;
3319
- return -1;
3320
- }
3321
- function t(c) {
3322
- const d = 1 / c, a = r / n.length;
3323
- return fe.MATCHES + a * d;
3324
- }
3325
- const s = o(n[0], e, 0);
3326
- if (s < 0)
3327
- return fe.NO_MATCH;
3328
- i = s;
3329
- for (let c = 1, d = n.length; c < d; c++) {
3330
- const a = n[c];
3331
- if (i = o(a, e, i), !(i > -1))
3332
- return fe.NO_MATCH;
3333
- }
3334
- const u = i - s;
3335
- return t(u);
3336
- }
3337
- function ri(e, n, r) {
3338
- const {
3339
- rank: t,
3340
- keyIndex: s
3341
- } = e, {
3342
- rank: u,
3343
- keyIndex: c
3344
- } = n;
3345
- return t === u ? s === c ? r(e, n) : s < c ? -1 : 1 : t > u ? -1 : 1;
3346
- }
3347
- function Tn(e, n) {
3348
- let {
3349
- keepDiacritics: r
3350
- } = n;
3351
- return e = `${e}`, r || (e = Qo(e)), e;
3352
- }
3353
- function oi(e, n) {
3354
- typeof n == "object" && (n = n.key);
3355
- let r;
3356
- if (typeof n == "function")
3357
- r = n(e);
3358
- else if (e == null)
3359
- r = null;
3360
- else if (Object.hasOwnProperty.call(e, n))
3361
- r = e[n];
3362
- else {
3363
- if (n.includes("."))
3364
- return ii(n, e);
3365
- r = null;
3366
- }
3367
- return r == null ? [] : Array.isArray(r) ? r : [String(r)];
3368
- }
3369
- function ii(e, n) {
3370
- const r = e.split(".");
3371
- let i = [n];
3372
- for (let o = 0, t = r.length; o < t; o++) {
3373
- const s = r[o];
3374
- let u = [];
3375
- for (let c = 0, d = i.length; c < d; c++) {
3376
- const a = i[c];
3377
- if (a != null)
3378
- if (Object.hasOwnProperty.call(a, s)) {
3379
- const h = a[s];
3380
- h != null && u.push(h);
3381
- } else
3382
- s === "*" && (u = u.concat(a));
3383
- }
3384
- i = u;
3385
- }
3386
- return Array.isArray(i[0]) ? [].concat(...i) : i;
3387
- }
3388
- function si(e, n) {
3389
- const r = [];
3390
- for (let i = 0, o = n.length; i < o; i++) {
3391
- const t = n[i], s = ui(t), u = oi(e, t);
3392
- for (let c = 0, d = u.length; c < d; c++)
3393
- r.push({
3394
- itemValue: u[c],
3395
- attributes: s
3396
- });
3397
- }
3398
- return r;
3399
- }
3400
- const Pn = {
3401
- maxRanking: 1 / 0,
3402
- minRanking: -1 / 0
3403
- };
3404
- function ui(e) {
3405
- return typeof e == "string" ? Pn : {
3406
- ...Pn,
3407
- ...e
3408
- };
3409
- }
3410
- const ai = "_combobox_1wjs7_2", li = "_input_1wjs7_30", ci = "_error_1wjs7_60", di = "_small_1wjs7_85", fi = "_large_1wjs7_88", pi = "_disabled_1wjs7_112", mi = "_chip_1wjs7_161", hi = "_prefix_1wjs7_216", gi = "_suffix_1wjs7_217", vi = "_listview_1wjs7_252", Ii = "_empty_1wjs7_262", oe = {
3411
- combobox: ai,
3412
- "search-field": "_search-field_1wjs7_6",
3413
- "popover-content": "_popover-content_1wjs7_21",
3414
- "input-wrapper": "_input-wrapper_1wjs7_30",
3415
- input: li,
3416
- error: ci,
3417
- "buttons-wrapper": "_buttons-wrapper_1wjs7_68",
3418
- small: di,
3419
- large: fi,
3420
- "close-button-wrapper": "_close-button-wrapper_1wjs7_92",
3421
- "close-button": "_close-button_1wjs7_92",
3422
- "loading-infinite": "_loading-infinite_1wjs7_112",
3423
- "loading-progress": "_loading-progress_1wjs7_112",
3424
- disabled: pi,
3425
- "toggle-button-wrapper": "_toggle-button-wrapper_1wjs7_116",
3426
- "toggle-button": "_toggle-button_1wjs7_116",
3427
- "rows-wrapper": "_rows-wrapper_1wjs7_150",
3428
- "chip-wrapper": "_chip-wrapper_1wjs7_161",
3429
- chip: mi,
3430
- prefix: hi,
3431
- suffix: gi,
3432
- listview: vi,
3433
- "listview-option": "_listview-option_1wjs7_257",
3434
- empty: Ii
3435
- }, Xt = Tr(null), $e = function() {
3436
- const e = Pr(
3437
- Xt
3438
- );
3439
- if (e == null)
3440
- throw new Error("useCombobox must be wrapped in <Combobox />");
3441
- return e;
3442
- }, _i = function(e) {
3443
- const { multiple: n = !1, ...r } = e;
3444
- return n ? /* @__PURE__ */ z.jsx(Ei, { ...r }) : /* @__PURE__ */ z.jsx(yi, { ...r });
3445
- }, yi = function(e) {
3446
- const { layoutStyles: n, componentProps: r } = Mn(e), {
3447
- className: i,
3448
- style: o,
3449
- children: t,
3450
- open: s,
3451
- items: u,
3452
- itemToString: c,
3453
- itemToKey: d,
3454
- onChange: a,
3455
- onSelectedItemChange: h,
3456
- disableCloseOnClickOutside: D = !1,
3457
- filterOptions: T,
3458
- root: O,
3459
- ...N
3460
- } = r, [g, K] = pe(u), [p, m] = pe(!1), [f, l] = pe(!1), [P, U] = pe(!1), [k, q] = pe([]);
3461
- function j(w) {
3462
- return c && w ? c(w) : w ? String(w) : "";
3463
- }
3464
- const M = d || ((w) => w), {
3465
- isOpen: $,
3466
- getLabelProps: B,
3467
- getInputProps: L,
3468
- getToggleButtonProps: Q,
3469
- getMenuProps: J,
3470
- getItemProps: W,
3471
- highlightedIndex: re,
3472
- selectedItem: ie,
3473
- selectItem: v,
3474
- setInputValue: x,
3475
- inputValue: F
3476
- } = de({
3477
- ...N,
3478
- items: g,
3479
- itemToString(w) {
3480
- return j(w);
3481
- },
3482
- onInputValueChange({ inputValue: w, type: I, selectedItem: y }) {
3483
- I === de.stateChangeTypes.InputKeyDownEnter || I === de.stateChangeTypes.ItemClick || y != null && w === j(y) ? K(u) : w != null && w !== "" ? K(Jt(u, w, T)) : K(u);
3484
- },
3485
- onSelectedItemChange(w) {
3486
- const { selectedItem: I } = w;
3487
- a != null && a(I || null), h != null && h(w);
3488
- },
3489
- onIsOpenChange({ isOpen: w, inputValue: I, selectedItem: y }) {
3490
- w === !1 && I === "" ? (v(null), K(u)) : w === !1 && (x(y != null ? j(y) : ""), K(u));
3491
- },
3492
- stateReducer(w, { type: I, changes: y }) {
3493
- switch (I) {
3494
- case de.stateChangeTypes.InputBlur:
3495
- return D ? {
3496
- ...y,
3497
- isOpen: w.isOpen,
3498
- highlightedIndex: w.highlightedIndex
3499
- } : y;
3500
- default:
3501
- return y;
3502
- }
3503
- },
3504
- isItemDisabled(w) {
3505
- return p || !!(w && w instanceof Object && "disabled" in w && w.disabled || w && w instanceof Object && "readOnly" in w && w.readOnly || k.includes(w));
3506
- }
3507
- });
3508
- return /* @__PURE__ */ z.jsx(
3509
- Xt.Provider,
3510
- {
3511
- value: {
3512
- multiple: !1,
3513
- items: g,
3514
- itemToString: j,
3515
- itemToKey: M,
3516
- isOpen: $,
3517
- getLabelProps: B,
3518
- getInputProps: L,
3519
- getToggleButtonProps: Q,
3520
- getMenuProps: J,
3521
- getItemProps: W,
3522
- highlightedIndex: re,
3523
- selectedItem: ie,
3524
- selectedItems: [],
3525
- disabledItems: k,
3526
- setDisabledItems: q,
3527
- getSelectedItemProps: void 0,
3528
- getDropdownProps: void 0,
3529
- selectItem: v,
3530
- inputValue: F,
3531
- isDisabledOrReadOnly: p,
3532
- setIsDisabledOrReadOnly: m,
3533
- hasDisabledPopover: f,
3534
- setHasDisabledPopover: l,
3535
- hasEmpty: P,
3536
- setHasEmpty: U
3537
- },
3538
- children: /* @__PURE__ */ z.jsx(
3539
- "div",
3540
- {
3541
- className: i,
3542
- "data-anv": "combobox",
3543
- style: { ...o, ...n },
3544
- children: /* @__PURE__ */ z.jsx(
3545
- ht,
3546
- {
3547
- root: O,
3548
- open: s === !0 ? s : $,
3549
- noPadding: !0,
3550
- disableCaret: !0,
3551
- fitScreen: !0,
3552
- disableFlipFallback: !0,
3553
- matchReferenceWidth: !0,
3554
- children: t
3555
- }
3556
- )
3557
- }
3558
- )
3559
- }
3560
- );
3561
- }, Ei = function(e) {
3562
- const { layoutStyles: n, componentProps: r } = Mn(e), {
3563
- className: i,
3564
- style: o,
3565
- children: t,
3566
- open: s,
3567
- items: u,
3568
- itemToString: c,
3569
- itemToKey: d,
3570
- onChange: a,
3571
- onSelectedItemsChange: h,
3572
- disableCloseOnClickOutside: D = !1,
3573
- filterOptions: T,
3574
- root: O,
3575
- stateReducer: N,
3576
- ...g
3577
- } = r, [K, p] = pe(u), [m, f] = pe(!1), [l, P] = pe(!1), [U, k] = pe(!1), [q, j] = pe(""), [M, $] = pe([]), {
3578
- getSelectedItemProps: B,
3579
- getDropdownProps: L,
3580
- reset: Q,
3581
- selectedItems: J,
3582
- addSelectedItem: W,
3583
- removeSelectedItem: re,
3584
- setSelectedItems: ie
3585
- } = De({
3586
- ...g,
3587
- onSelectedItemsChange(R) {
3588
- const { selectedItems: _ } = R;
3589
- a != null && a(_), h != null && h(R);
3590
- },
3591
- stateReducer(R, _) {
3592
- const { type: G, changes: C } = _;
3593
- switch (G) {
3594
- case De.stateChangeTypes.SelectedItemKeyDownBackspace:
3595
- case De.stateChangeTypes.SelectedItemKeyDownDelete:
3596
- return R;
3597
- case De.stateChangeTypes.FunctionReset:
3598
- return { ...C, selectedItems: [] };
3599
- default:
3600
- return C;
3601
- }
3602
- }
3603
- });
3604
- function v(R) {
3605
- return c && R ? c(R) : R ? String(R) : "";
3606
- }
3607
- const x = d || ((R) => R), {
3608
- isOpen: F,
3609
- getLabelProps: w,
3610
- getInputProps: I,
3611
- getToggleButtonProps: y,
3612
- getMenuProps: b,
3613
- getItemProps: S,
3614
- highlightedIndex: V,
3615
- selectedItem: H,
3616
- selectItem: A
3617
- } = de({
3618
- ...g,
3619
- items: K,
3620
- itemToString(R) {
3621
- return v(R);
3622
- },
3623
- selectedItem: null,
3624
- inputValue: q,
3625
- onInputValueChange({ inputValue: R, type: _, selectedItem: G }) {
3626
- _ === de.stateChangeTypes.InputKeyDownEnter || _ === de.stateChangeTypes.ItemClick || G != null && R === v(G) ? p(u) : R != null && R !== "" ? p(Jt(u, R, T)) : p(u);
3627
- },
3628
- onIsOpenChange({ isOpen: R }) {
3629
- R === !1 && (j(""), p(u));
3630
- },
3631
- stateReducer(R, { type: _, changes: G }) {
3632
- switch (_) {
3633
- case de.stateChangeTypes.InputBlur:
3634
- return D ? {
3635
- ...G,
3636
- isOpen: R.isOpen,
3637
- highlightedIndex: R.highlightedIndex
3638
- } : G;
3639
- default:
3640
- return G;
3641
- }
3642
- },
3643
- isItemDisabled(R) {
3644
- return m || !!(R && R instanceof Object && "disabled" in R && R.disabled || R && R instanceof Object && "readOnly" in R && R.readOnly || M.includes(R));
3645
- },
3646
- onStateChange({
3647
- inputValue: R = "",
3648
- type: _,
3649
- selectedItem: G
3650
- }) {
3651
- switch (_) {
3652
- case de.stateChangeTypes.InputKeyDownEnter:
3653
- case de.stateChangeTypes.ItemClick:
3654
- case de.stateChangeTypes.InputBlur:
3655
- if (G) {
3656
- const C = J.find(
3657
- (X) => x(X) === x(G)
3658
- );
3659
- C ? re(C) : W(G), j("");
3660
- }
3661
- break;
3662
- case de.stateChangeTypes.InputChange:
3663
- j(R);
3664
- break;
3665
- case de.stateChangeTypes.FunctionReset:
3666
- j("");
3667
- break;
3668
- }
3669
- }
3670
- });
3671
- return /* @__PURE__ */ z.jsx(
3672
- Xt.Provider,
3673
- {
3674
- value: {
3675
- multiple: !0,
3676
- items: K,
3677
- itemToString: v,
3678
- itemToKey: x,
3679
- isOpen: F,
3680
- getLabelProps: w,
3681
- getInputProps: I,
3682
- getToggleButtonProps: y,
3683
- getMenuProps: b,
3684
- getItemProps: S,
3685
- highlightedIndex: V,
3686
- selectedItem: H,
3687
- selectedItems: J,
3688
- disabledItems: M,
3689
- setDisabledItems: $,
3690
- getSelectedItemProps: B,
3691
- getDropdownProps: L,
3692
- reset: Q,
3693
- addSelectedItem: W,
3694
- removeSelectedItem: re,
3695
- setSelectedItems: ie,
3696
- selectItem: A,
3697
- inputValue: q,
3698
- isDisabledOrReadOnly: m,
3699
- setIsDisabledOrReadOnly: f,
3700
- hasDisabledPopover: l,
3701
- setHasDisabledPopover: P,
3702
- hasEmpty: U,
3703
- setHasEmpty: k
3704
- },
3705
- children: /* @__PURE__ */ z.jsx("div", { className: i, style: { ...o, ...n }, children: /* @__PURE__ */ z.jsx(
3706
- ht,
3707
- {
3708
- root: O,
3709
- open: s === !0 ? s : F,
3710
- noPadding: !0,
3711
- disableCaret: !0,
3712
- fitScreen: !0,
3713
- disableFlipFallback: !0,
3714
- matchReferenceWidth: !0,
3715
- children: t
3716
- }
3717
- ) })
3718
- }
3719
- );
3720
- }, bi = ({
3721
- className: e,
3722
- label: n,
3723
- size: r,
3724
- error: i,
3725
- hint: o,
3726
- description: t,
3727
- required: s,
3728
- moreInfo: u,
3729
- openMoreInfo: c,
3730
- disabled: d,
3731
- readOnly: a,
3732
- prefix: h,
3733
- suffix: D,
3734
- maxRows: T,
3735
- ...O
3736
- }) => {
3737
- const {
3738
- isOpen: N,
3739
- itemToString: g,
3740
- getLabelProps: K,
3741
- getInputProps: p,
3742
- getToggleButtonProps: m,
3743
- selectedItems: f,
3744
- getSelectedItemProps: l,
3745
- getDropdownProps: P,
3746
- reset: U,
3747
- removeSelectedItem: k,
3748
- selectItem: q,
3749
- inputValue: j,
3750
- setIsDisabledOrReadOnly: M,
3751
- hasDisabledPopover: $
3752
- } = $e(), B = Nr(), L = ae(null), Q = Te(oe["input-wrapper"], {
3753
- [oe.small]: r === "small",
3754
- [oe.large]: r === "large"
3755
- }), J = Qt(), W = Qt(), re = Te(oe.input, e, {
3756
- [oe.error]: i
3757
- });
3758
- ce(() => (M(!!(d || a)), () => {
3759
- M(!1);
3760
- }), [d, a, M]);
3761
- let ie = `label${J} `;
3762
- ie += ` helper${W}`;
3763
- const v = typeof i != "boolean" ? i : void 0, x = ae(null), [F, w] = pe(!1), [I, y] = pe(!1), [b, S] = pe(
3764
- null
3765
- ), [V, H] = pe(0);
3766
- Rn(() => {
3767
- var R, _;
3768
- if (T !== void 0) {
3769
- if (F === !1)
3770
- w(!0), y(!1), S(null), H((G) => G + 1);
3771
- else if ((R = x == null ? void 0 : x.current) != null && R.children) {
3772
- const G = (_ = x == null ? void 0 : x.current) == null ? void 0 : _.children, C = Array.from(G).reduce(
3773
- (X, le) => {
3774
- const he = le.getBoundingClientRect().top;
3775
- return X.length ? X[X.length - 1].top === he ? [
3776
- ...X.slice(0, -1),
3777
- { count: X[X.length - 1].count + 1, top: he }
3778
- ] : X[X.length - 1].top !== he ? [...X, { count: 1, top: he }] : X : [{ count: 1, top: he }];
3779
- },
3780
- []
3781
- );
3782
- if (!C[1] || b === 0)
3783
- w(!1);
3784
- else {
3785
- if (y(!0), b == null) {
3786
- const X = Math.max(
3787
- C[0].count + C[1].count - 2,
3788
- 0
3789
- );
3790
- S(X);
3791
- } else
3792
- S(b - 1);
3793
- H((X) => X + 1);
3794
- }
3795
- }
3796
- }
3797
- }, [f.length, T, V]);
3798
- const A = I && T != null && b !== null ? b : f.length;
3799
- return /* @__PURE__ */ z.jsxs("div", { className: oe["search-field"], "data-anv": "combobox-searchfield", children: [
3800
- n ? /* @__PURE__ */ z.jsx(
3801
- Mr,
3802
- {
3803
- ...K({
3804
- className: oe.label,
3805
- id: J,
3806
- required: s,
3807
- moreInfo: u,
3808
- openMoreInfo: c
3809
- }),
3810
- children: n
3811
- }
3812
- ) : null,
3813
- /* @__PURE__ */ z.jsxs(
3814
- "div",
3815
- {
3816
- className: Q,
3817
- ref: B.refs.setReference,
3818
- children: [
3819
- /* @__PURE__ */ z.jsxs("div", { className: oe["buttons-wrapper"], children: [
3820
- j || f.length ? /* @__PURE__ */ z.jsx("div", { className: oe["close-button-wrapper"], children: /* @__PURE__ */ z.jsx(
3821
- Zt,
3822
- {
3823
- "aria-label": "clear selection",
3824
- appearance: "ghost",
3825
- size: "small",
3826
- icon: Vr,
3827
- className: oe["close-button"],
3828
- onClick: () => {
3829
- U != null ? U() : q(null);
3830
- },
3831
- tabIndex: -1,
3832
- disabled: d || a
3833
- }
3834
- ) }) : null,
3835
- $ ? null : /* @__PURE__ */ z.jsx("div", { className: oe["toggle-button-wrapper"], children: /* @__PURE__ */ z.jsx(
3836
- Zt,
3837
- {
3838
- "aria-label": "toggle menu",
3839
- ...m({
3840
- icon: Hr,
3841
- className: oe["toggle-button"],
3842
- disabled: d || a
3843
- }),
3844
- appearance: "ghost",
3845
- size: "small"
3846
- }
3847
- ) })
3848
- ] }),
3849
- /* @__PURE__ */ z.jsxs("div", { className: oe["rows-wrapper"], ref: x, children: [
3850
- f.length && k != null && l != null ? f.slice(0, A).map((R, _) => {
3851
- const { onClick: G, ...C } = l({
3852
- selectedItem: R,
3853
- index: _
3854
- });
3855
- return /* @__PURE__ */ z.jsx(
3856
- "div",
3857
- {
3858
- className: oe["chip-wrapper"],
3859
- children: /* @__PURE__ */ z.jsx(
3860
- en,
3861
- {
3862
- ...C,
3863
- label: g(R),
3864
- onClose: (X) => {
3865
- k(R);
3866
- },
3867
- className: oe.chip,
3868
- title: g(R)
3869
- }
3870
- )
3871
- },
3872
- `selected-item-${_}`
3873
- );
3874
- }) : null,
3875
- I && T != null ? /* @__PURE__ */ z.jsx("div", { className: oe["chip-wrapper"], children: /* @__PURE__ */ z.jsx(
3876
- en,
3877
- {
3878
- label: `+${f.length - A}`,
3879
- className: oe.chip,
3880
- title: f.slice(A).map((R) => g(R)).join(", ")
3881
- }
3882
- ) }) : null,
3883
- /* @__PURE__ */ z.jsxs(Rr, { flex: "1 1 100px", alignItems: "center", style: { width: "100px" }, children: [
3884
- h ? /* @__PURE__ */ z.jsx("div", { className: oe.prefix, children: h }) : null,
3885
- /* @__PURE__ */ z.jsx(
3886
- "input",
3887
- {
3888
- ...P != null ? p(
3889
- P({
3890
- ...O,
3891
- className: re,
3892
- disabled: d,
3893
- readOnly: a,
3894
- required: s,
3895
- autoComplete: "off",
3896
- "aria-labelledby": ie,
3897
- preventKeyAction: N,
3898
- ref: L
3899
- })
3900
- ) : p({
3901
- ...O,
3902
- className: re,
3903
- disabled: d,
3904
- readOnly: a,
3905
- required: s,
3906
- autoComplete: "off",
3907
- "aria-labelledby": ie,
3908
- ref: L
3909
- })
3910
- }
3911
- ),
3912
- D ? /* @__PURE__ */ z.jsx("div", { className: oe.suffix, children: D }) : null
3913
- ] })
3914
- ] })
3915
- ]
3916
- }
3917
- ),
3918
- o || v || t ? /* @__PURE__ */ z.jsx(
3919
- jr,
3920
- {
3921
- id: W,
3922
- errorMessage: v,
3923
- hint: o,
3924
- description: t
3925
- }
3926
- ) : null
3927
- ] });
3928
- }, wi = function({
3929
- children: e,
3930
- className: n,
3931
- disablePopover: r = !1,
3932
- ...i
3933
- }) {
3934
- const {
3935
- items: o,
3936
- itemToKey: t,
3937
- highlightedIndex: s,
3938
- selectedItem: u,
3939
- selectedItems: c,
3940
- setHasDisabledPopover: d,
3941
- getMenuProps: a,
3942
- getItemProps: h,
3943
- isDisabledOrReadOnly: D
3944
- } = $e(), T = Te(
3945
- oe["popover-content"],
3946
- n
3947
- );
3948
- return ce(() => (d(r), () => {
3949
- d(!1);
3950
- }), [r, d]), r ? /* @__PURE__ */ z.jsx("div", { ...i, className: T, children: e ? e({
3951
- items: o,
3952
- highlightedIndex: s,
3953
- selectedItem: u,
3954
- getMenuProps: a,
3955
- getItemProps: h,
3956
- listProps: {
3957
- ...a({}, { suppressRefError: !0 }),
3958
- style: {
3959
- display: o.length ? "" : "none",
3960
- overflow: "auto"
3961
- }
3962
- },
3963
- options: o.map((O, N) => ({
3964
- optionProps: {
3965
- ...h({
3966
- item: O,
3967
- index: N
3968
- }),
3969
- selected: t(u) === t(O) || c.some(
3970
- (g) => t(g) === t(O)
3971
- ),
3972
- disabled: D
3973
- // also see "isItemDisabled" function
3974
- },
3975
- item: O,
3976
- index: N
3977
- }))
3978
- }) : null }) : /* @__PURE__ */ z.jsx(
3979
- ht.Content,
3980
- {
3981
- "data-anv": "combobox-content",
3982
- ...i,
3983
- className: T,
3984
- children: e ? e({
3985
- items: o,
3986
- highlightedIndex: s,
3987
- selectedItem: u,
3988
- getMenuProps: a,
3989
- getItemProps: h,
3990
- listProps: {
3991
- ...a({}, { suppressRefError: !0 }),
3992
- style: {
3993
- display: o.length ? void 0 : "none",
3994
- overflow: "auto"
3995
- }
3996
- },
3997
- options: o.map((O, N) => ({
3998
- optionProps: {
3999
- ...h({
4000
- item: O,
4001
- index: N
4002
- }),
4003
- selected: t(u) === t(O) || c.some(
4004
- (g) => t(g) === t(O)
4005
- ),
4006
- disabled: D
4007
- // also see "isItemDisabled" function
4008
- },
4009
- item: O,
4010
- index: N
4011
- }))
4012
- }) : null
4013
- }
4014
- );
4015
- }, xi = function({
4016
- children: e,
4017
- ...n
4018
- }) {
4019
- const { getMenuProps: r, multiple: i, items: o, hasEmpty: t } = $e();
4020
- return i ? /* @__PURE__ */ z.jsxs(z.Fragment, { children: [
4021
- /* @__PURE__ */ z.jsx(
4022
- "div",
4023
- {
4024
- ...r(n),
4025
- "data-anv": "combobox-list",
4026
- className: Te(oe.listview, ct.listview),
4027
- style: {
4028
- display: o.length ? void 0 : "none",
4029
- overflow: "auto"
4030
- },
4031
- children: e
4032
- }
4033
- ),
4034
- !o.length && !t ? /* @__PURE__ */ z.jsx("div", { className: oe.empty, children: /* @__PURE__ */ z.jsx(tn, { subdued: !0, size: "small", children: "No results found" }) }) : null
4035
- ] }) : /* @__PURE__ */ z.jsxs(z.Fragment, { children: [
4036
- /* @__PURE__ */ z.jsx(
4037
- "ul",
4038
- {
4039
- ...r(n),
4040
- className: An.listbox,
4041
- style: {
4042
- display: o.length ? void 0 : "none",
4043
- overflow: "auto"
4044
- },
4045
- children: e
4046
- }
4047
- ),
4048
- !o.length && !t ? /* @__PURE__ */ z.jsx("div", { className: oe.empty, children: /* @__PURE__ */ z.jsx(tn, { subdued: !0, size: "small", children: "No results found" }) }) : null
4049
- ] });
4050
- }, Oi = function({
4051
- children: e,
4052
- disabled: n,
4053
- item: r,
4054
- index: i,
4055
- ...o
4056
- }) {
4057
- const {
4058
- itemToKey: t,
4059
- getItemProps: s,
4060
- multiple: u,
4061
- selectedItem: c,
4062
- selectedItems: d,
4063
- disabledItems: a,
4064
- setDisabledItems: h
4065
- } = $e(), D = n || r && r instanceof Object && "disabled" in r && r.disabled;
4066
- return ce(() => (n && !a.includes(r) ? h([...a, r]) : a.includes(r) && h(a.filter((T) => T === r)), () => {
4067
- a.includes(r) && h(a.filter((T) => T === r));
4068
- }), [r, n, h]), u ? /* @__PURE__ */ z.jsxs(
4069
- "div",
4070
- {
4071
- "data-anv": "combobox-item",
4072
- ...s({
4073
- item: r,
4074
- index: i,
4075
- ...o
4076
- }),
4077
- className: Te(
4078
- oe["listview-option"],
4079
- ct["listview-option"]
4080
- ),
4081
- children: [
4082
- /* @__PURE__ */ z.jsx("div", { className: Te(oe.cell, ct.cell), children: /* @__PURE__ */ z.jsx(
4083
- kr,
4084
- {
4085
- checked: d.some(
4086
- (T) => t(T) === t(r)
4087
- ),
4088
- "aria-label": "Select",
4089
- ...D ? { disabled: !0 } : {}
4090
- }
4091
- ) }),
4092
- e
4093
- ]
4094
- }
4095
- ) : /* @__PURE__ */ z.jsxs(
4096
- "li",
4097
- {
4098
- ...s({
4099
- item: r,
4100
- index: i,
4101
- ...o
4102
- }),
4103
- className: An.option,
4104
- ...D ? { "aria-disabled": !0 } : {},
4105
- children: [
4106
- /* @__PURE__ */ z.jsx("span", { children: e }),
4107
- /* @__PURE__ */ z.jsx(
4108
- Ar,
4109
- {
4110
- "aria-hidden": !0,
4111
- svg: Kr,
4112
- inherit: !0,
4113
- className: oe.Icon,
4114
- style: {
4115
- opacity: t(c) === t(r) ? 1 : 0
4116
- }
4117
- }
4118
- )
4119
- ]
4120
- }
4121
- );
4122
- }, Ci = function({
4123
- children: e
4124
- }) {
4125
- const { items: n, setHasEmpty: r } = $e();
4126
- return ce(() => (r(!0), () => {
4127
- r(!1);
4128
- })), n.length ? null : e;
4129
- }, Me = Object.assign(_i, {
4130
- SearchField: bi,
4131
- Content: wi,
4132
- List: xi,
4133
- Item: Oi,
4134
- Empty: Ci
4135
- }), Si = function(e) {
4136
- return /* @__PURE__ */ Ne.jsx(Me, { ...e });
4137
- }, Di = function(e) {
4138
- const n = {
4139
- label: nn(e.label),
4140
- size: e.size,
4141
- required: e.required,
4142
- moreInfo: e.moreInfo,
4143
- openMoreInfo: e.openMoreInfo,
4144
- description: nn(e.description),
4145
- hint: e.hint,
4146
- labelProps: e.labelProps
4147
- }, r = kn({
4148
- name: "ComboboxSearchField",
4149
- data: n,
4150
- hasOverride: !!e["data-tracking-id"]
4151
- });
4152
- return /* @__PURE__ */ Ne.jsx(Me.SearchField, { "data-tracking-id": r, ...e });
4153
- }, Ti = function(e) {
4154
- return /* @__PURE__ */ Ne.jsx(Me.Content, { ...e });
4155
- }, Pi = function(e) {
4156
- return /* @__PURE__ */ Ne.jsx(Me.List, { ...e });
4157
- }, Ri = function(e) {
4158
- const n = {
4159
- item: e.item
4160
- }, r = kn({
4161
- name: "ComboboxItem",
4162
- data: n,
4163
- hasOverride: !!e["data-tracking-id"]
4164
- });
4165
- return /* @__PURE__ */ Ne.jsx(Me.Item, { "data-tracking-id": r, ...e });
4166
- }, Ni = function(e) {
4167
- return /* @__PURE__ */ Ne.jsx(Me.Empty, { ...e });
4168
- }, os = Object.assign(Si, {
4169
- SearchField: Di,
4170
- Content: Ti,
4171
- List: Pi,
4172
- Item: Ri,
4173
- Empty: Ni
4174
- });
1
+ import { C as a, c as m, a as C, f as e, e as s, d as t, b as x, C as d } from "./Combobox-CZ4F6ltk.js";
4175
2
  export {
4176
- os as Combobox,
4177
- Ti as ComboboxContent,
4178
- Si as ComboboxElement,
4179
- Ni as ComboboxEmpty,
4180
- Ri as ComboboxItem,
4181
- Pi as ComboboxList,
4182
- Di as ComboboxSearchField,
4183
- os as default
3
+ a as Combobox,
4
+ m as ComboboxContent,
5
+ C as ComboboxElement,
6
+ e as ComboboxEmpty,
7
+ s as ComboboxItem,
8
+ t as ComboboxList,
9
+ x as ComboboxSearchField,
10
+ d as default
4184
11
  };
4185
12
  //# sourceMappingURL=Combobox.js.map