@midas-ds/components 10.4.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/{AccordionItem-BqsgiVWV.js → AccordionItem-BtDoammf.js} +7 -7
  2. package/{AccordionItem-BcsoC78F.cjs → AccordionItem-D2QYNgZS.cjs} +1 -1
  3. package/{BadgeContainer-DM8TdyMT.js → BadgeContainer-CKBIZWsc.js} +13 -13
  4. package/BadgeContainer-DWVHS5dn.cjs +1 -0
  5. package/{Breadcrumbs-D7eoibWk.js → Breadcrumbs-BBzSV4SK.js} +4 -4
  6. package/{Breadcrumbs-CfW5IuyE.cjs → Breadcrumbs-CFUryOhf.cjs} +1 -1
  7. package/{Button-BZUo7vsZ.js → Button-BjMaGya2.js} +2 -2
  8. package/{Button-CFYdzG0H.js → Button-CepQFEit.js} +4 -4
  9. package/{Button-BXY5ZhqI.cjs → Button-Dq6ugqxT.cjs} +1 -1
  10. package/Button.module-D-mPLRxe.js +14 -0
  11. package/Button.module-goCEz5qs.cjs +1 -0
  12. package/CHANGELOG.md +36 -0
  13. package/{Card-BaWSgtSF.js → Card-BRs1FKX5.js} +4 -4
  14. package/{Card-Cc1TNPcQ.cjs → Card-cdL5669N.cjs} +1 -1
  15. package/{CharacterCounter-cLhqPZlk.js → CharacterCounter-DpBDwvLw.js} +2 -2
  16. package/{Checkbox-LuUwTZ3W.js → Checkbox-EB_SCBEo.js} +3 -3
  17. package/{CheckboxGroup-CUA8_xSx.js → CheckboxGroup-CC9QGMuE.js} +7 -8
  18. package/CheckboxGroup-DhQX10rP.cjs +1 -0
  19. package/{Collection--62xKPm9.js → Collection-D2jVTmDW.js} +1 -1
  20. package/{ColorSchemeSwitch-Cwono7Ap.js → ColorSchemeSwitch-Cnyb9EKC.js} +42 -41
  21. package/ColorSchemeSwitch-owUryjYz.cjs +16 -0
  22. package/ComboBox-CiCB2e4W.cjs +1 -0
  23. package/{ComboBox-HLIAbb2q.js → ComboBox-Dnk8JMQ6.js} +65 -66
  24. package/{DateField-CnLEi7uX.js → DateField-BAS2v9aI.js} +4 -4
  25. package/{DateField-B3VjOSde.cjs → DateField-DleDM0Sy.cjs} +1 -1
  26. package/{DateInputDivider-Bi5N-C0c.js → DateInputDivider-B3oE1_tB.js} +39 -38
  27. package/DateInputDivider-ToFY-yjB.cjs +1 -0
  28. package/{DateRangePicker-CFOoGvut.js → DateRangePicker-Blej-jD0.js} +71 -72
  29. package/DateRangePicker-CYXWnCTq.cjs +6 -0
  30. package/{Dialog-pSSy1zwf.cjs → Dialog-B3R3WtL5.cjs} +1 -1
  31. package/{Dialog-SqciohRY.js → Dialog-BkUw6PlA.js} +7 -7
  32. package/{Dialog-CtVrVuMr.js → Dialog-DKHo0W9B.js} +443 -468
  33. package/Dialog-DtHk3eXI.cjs +1 -0
  34. package/{DragAndDrop-BoEd260f.cjs → DragAndDrop-CSg60YQE.cjs} +1 -1
  35. package/{DragAndDrop-DkSTL28C.js → DragAndDrop-DOXLfJaA.js} +1 -1
  36. package/Dropdown-CYakzdJg.cjs +6 -0
  37. package/{Dropdown-CkBp70BH.js → Dropdown-D6WCi_Ll.js} +19 -19
  38. package/FieldError-Bv3Q6ZP-.cjs +1 -0
  39. package/FieldError-CDCvUjK5.js +46 -0
  40. package/{FileUpload-B4rv-wke.js → FileUpload-BokzdXVc.js} +448 -562
  41. package/{FileUpload-BwMhyLjG.cjs → FileUpload-Bz9md5zc.cjs} +2 -2
  42. package/{FocusScope-D_hwN_TJ.js → FocusScope-BCsrRPqD.js} +1 -1
  43. package/{Group-CpkUzEAs.js → Group-B0vQfHDy.js} +1 -1
  44. package/{Heading-NxtGri2i.js → Heading-D2y_kiC0.js} +1 -1
  45. package/{InfoBanner-CVry6Y8i.cjs → InfoBanner-CzwbOdRG.cjs} +1 -1
  46. package/{InfoBanner-CBUoad7A.js → InfoBanner-D05poAe3.js} +5 -5
  47. package/{Input-LnjmFI1x.js → Input-n-Z20KbW.js} +1 -1
  48. package/{Label-TVxwGZ-O.js → Label-JLgFEbP9.js} +5 -5
  49. package/{Label-CNmTN1YY.cjs → Label-VO6CAFux.cjs} +1 -1
  50. package/Layout-BwLxIwtY.cjs +16 -0
  51. package/{Layout-amz9BESl.js → Layout-CcADAhds.js} +98 -98
  52. package/{Link-Bn8V3ZI0.js → Link-CibH8uRY.js} +3 -3
  53. package/Link-ESjrl63P.cjs +6 -0
  54. package/Link-ovwNVMfg.js +60 -0
  55. package/LinkButton-B6AWNiRn.cjs +6 -0
  56. package/LinkButton-BkZULm2a.js +69 -0
  57. package/{ListBox-BCz5-23H.cjs → ListBox-B0E1hdEt.cjs} +1 -1
  58. package/{ListBox-C-isJIHL.js → ListBox-CsxDGpCA.js} +11 -11
  59. package/{ListBoxButton-DNm3gvcT.cjs → ListBoxButton-BsuHFd_O.cjs} +1 -1
  60. package/{ListBoxButton-C_krklY0.js → ListBoxButton-DawRfuny.js} +1 -1
  61. package/{ListBoxSection-CfQZoURJ.cjs → ListBoxSection-C-Rz358T.cjs} +1 -1
  62. package/{ListBoxSection-BVR2xtOH.js → ListBoxSection-Cc2cx0_S.js} +6 -6
  63. package/{ListKeyboardDelegate-CY6t6y1t.js → ListKeyboardDelegate-C-sPNj0f.js} +2 -2
  64. package/{ListKeyboardDelegate-CPsZ7D83.cjs → ListKeyboardDelegate-ZKBk2IId.cjs} +1 -1
  65. package/{OverlayArrow-CfhSYL46.js → OverlayArrow-DB_aVTVM.js} +1 -1
  66. package/Popover--r4Zr4mO.cjs +1 -0
  67. package/{Popover-C8VY1YKi.js → Popover-DypW9ift.js} +13 -13
  68. package/PressResponder-4jE_HLu3.cjs +1 -0
  69. package/PressResponder-C3APAKsz.js +34 -0
  70. package/{ProgressBar-BNCjpcv8.js → ProgressBar-CFgcqHTR.js} +2 -2
  71. package/{ProgressBar-CcbxcWdT.cjs → ProgressBar-CJFNiudl.cjs} +1 -1
  72. package/Radio-CMH6pTWD.cjs +1 -0
  73. package/{Radio-CZYibh9r.js → Radio-DUBSD0kQ.js} +19 -20
  74. package/{RangeCalendar-B16b6tJD.js → RangeCalendar-BCruEq9d.js} +106 -109
  75. package/RangeCalendar-BY82hPRu.cjs +11 -0
  76. package/SearchField-QFyuaT-K.cjs +6 -0
  77. package/{SearchField-giwECmXS.js → SearchField-nwlyszwt.js} +47 -47
  78. package/Select-C5i-rIDh.cjs +1 -0
  79. package/{Select-mwaAv20X.js → Select-DKME5lZp.js} +107 -108
  80. package/SelectionManager-BJjqIWtf.cjs +1 -0
  81. package/{SelectionManager-zsWy3vsd.js → SelectionManager-BubxiIKu.js} +25 -24
  82. package/{Separator-Dn5LYN5I.js → Separator-CEZ5y7tZ.js} +4 -4
  83. package/{Separator-CxF-3jhR.cjs → Separator-DPLEx950.cjs} +1 -1
  84. package/Spinner-VSyPhiJ9.js +51 -0
  85. package/Spinner-vof0Y9Hh.cjs +6 -0
  86. package/{TabList-7VtCiXxX.cjs → TabList-BkSWzbDG.cjs} +1 -1
  87. package/{TabList-CthsM5h6.js → TabList-QApx8qRC.js} +90 -90
  88. package/{Table-BcQPvJT3.js → Table-B5Aine4F.js} +55 -54
  89. package/Table-DGYC-sDq.cjs +16 -0
  90. package/{Tag-Bs8T2Ei7.js → Tag-Byva_Xuy.js} +136 -135
  91. package/Tag-bYq-wf5D.cjs +1 -0
  92. package/{Text-DlKqpvSa.js → Text-BPcfhYQ9.js} +1 -1
  93. package/{Text-92cPh38G.js → Text-DcZqSUN9.js} +3 -3
  94. package/{TextArea-DBNAVWqL.js → TextArea-BhmdgD1w.js} +8 -8
  95. package/{TextArea-XJDfeXRs.cjs → TextArea-CY_tzBAJ.cjs} +1 -1
  96. package/{TextField-BdK9KEQ5.cjs → TextField-BAX93sq7.cjs} +1 -1
  97. package/{TextField-ByDJkig9.js → TextField-Dma22dnD.js} +19 -19
  98. package/{Toast-DPPvPhrF.js → Toast-CWt_mNIg.js} +5 -5
  99. package/{Toast-l1bKo2oA.cjs → Toast-DdmSvNaO.cjs} +1 -1
  100. package/{ToggleButtonGroup-DH8IgR4G.cjs → ToggleButtonGroup-DZ_wo0qx.cjs} +1 -1
  101. package/{ToggleButtonGroup-HOWNWtQZ.js → ToggleButtonGroup-HjvaTYD4.js} +4 -4
  102. package/{Tooltip-5mLWn_wO.js → Tooltip-DjNc93tV.js} +3 -3
  103. package/accordion/index.cjs +1 -1
  104. package/accordion/index.js +1 -1
  105. package/arrow-right-BGd86zzR.cjs +6 -0
  106. package/{arrow-right-Dg8sttFO.js → arrow-right-uemUGIg8.js} +5 -5
  107. package/assets/BadgeContainer.css +1 -1
  108. package/assets/Button.css +1 -1
  109. package/assets/FileUpload.css +1 -1
  110. package/assets/LinkButton.css +1 -1
  111. package/assets/Popover.css +1 -1
  112. package/assets/TabList.css +1 -1
  113. package/assets/Tag.css +1 -1
  114. package/badge/index.cjs +1 -1
  115. package/badge/index.js +1 -1
  116. package/breadcrumbs/index.cjs +1 -1
  117. package/breadcrumbs/index.js +1 -1
  118. package/button/index.cjs +1 -1
  119. package/button/index.js +1 -1
  120. package/calendar/index.cjs +1 -1
  121. package/calendar/index.js +1 -1
  122. package/card/Card.d.ts +1 -1
  123. package/card/index.cjs +1 -1
  124. package/card/index.js +1 -1
  125. package/character-counter/index.js +1 -1
  126. package/check-B0aKTFe5.cjs +6 -0
  127. package/check-B5h1DvDs.js +11 -0
  128. package/checkbox/index.cjs +1 -1
  129. package/checkbox/index.js +2 -2
  130. package/chevron-down-5hFlg_lR.cjs +6 -0
  131. package/chevron-down-DmZMdOiC.js +11 -0
  132. package/{circle-check-B9HYcH7Z.js → circle-check-BErh6TKu.js} +9 -9
  133. package/circle-check-OVUGxwp9.cjs +11 -0
  134. package/color-scheme-switch/index.cjs +1 -1
  135. package/color-scheme-switch/index.js +1 -1
  136. package/combobox/index.cjs +1 -1
  137. package/combobox/index.js +1 -1
  138. package/createLucideIcon-CTVXwe6i.cjs +21 -0
  139. package/createLucideIcon-XRdN60yz.js +94 -0
  140. package/date-field/index.cjs +1 -1
  141. package/date-field/index.js +2 -2
  142. package/date-picker/index.cjs +1 -1
  143. package/date-picker/index.js +1 -1
  144. package/dropdown/index.cjs +1 -1
  145. package/dropdown/index.js +1 -1
  146. package/field-error/index.cjs +1 -1
  147. package/field-error/index.js +1 -1
  148. package/file-upload/FileUpload.d.ts +3 -14
  149. package/file-upload/index.cjs +1 -1
  150. package/file-upload/index.d.ts +1 -1
  151. package/file-upload/index.js +3 -2
  152. package/{getScrollParent-CsZ9ciml.cjs → getScrollParent-DuKmPmUa.cjs} +1 -1
  153. package/{getScrollParent-CT_L9LUr.js → getScrollParent-Ru2U2LlM.js} +1 -1
  154. package/heading/index.js +1 -1
  155. package/index.cjs +1 -1
  156. package/index.js +97 -96
  157. package/{info-BZwphdye.js → info-CPK1vbOJ.js} +5 -5
  158. package/info-Dj6SyPex.cjs +6 -0
  159. package/info-banner/index.cjs +1 -1
  160. package/info-banner/index.js +1 -1
  161. package/label/index.cjs +1 -1
  162. package/label/index.js +1 -1
  163. package/layout/index.cjs +1 -1
  164. package/layout/index.js +1 -1
  165. package/link/Link.d.ts +1 -1
  166. package/link/index.cjs +1 -1
  167. package/link/index.js +2 -2
  168. package/link-button/LinkButton.d.ts +1 -1
  169. package/link-button/index.cjs +1 -1
  170. package/link-button/index.js +2 -2
  171. package/list-box/index.cjs +1 -1
  172. package/list-box/index.js +2 -2
  173. package/modal/index.cjs +1 -1
  174. package/modal/index.js +2 -2
  175. package/package.json +1 -1
  176. package/popover/index.cjs +1 -1
  177. package/popover/index.js +1 -1
  178. package/progress-bar/index.cjs +1 -1
  179. package/progress-bar/index.js +1 -1
  180. package/radio/index.cjs +1 -1
  181. package/radio/index.js +1 -1
  182. package/scrollIntoView-ClEACHUk.js +57 -0
  183. package/scrollIntoView-DRSoJp89.cjs +1 -0
  184. package/search-field/index.cjs +1 -1
  185. package/search-field/index.js +1 -1
  186. package/select/index.cjs +1 -1
  187. package/select/index.js +1 -1
  188. package/spinner/index.cjs +1 -1
  189. package/spinner/index.js +1 -1
  190. package/{square-arrow-out-up-right-BkyqV2PN.js → square-arrow-out-up-right-ok0A3Ovo.js} +4 -4
  191. package/square-arrow-out-up-right-xCFdJTzY.cjs +6 -0
  192. package/table/index.cjs +1 -1
  193. package/table/index.js +1 -1
  194. package/tabs/index.cjs +1 -1
  195. package/tabs/index.js +1 -1
  196. package/tag/index.cjs +1 -1
  197. package/tag/index.js +1 -1
  198. package/text/index.js +1 -1
  199. package/textfield/index.cjs +1 -1
  200. package/textfield/index.js +1 -1
  201. package/theme/index.cjs +1 -1
  202. package/theme/index.d.ts +1 -0
  203. package/theme/index.js +2 -2
  204. package/theme/tokens.d.ts +1 -0
  205. package/toast/index.cjs +1 -1
  206. package/toast/index.js +1 -1
  207. package/toggle-button/index.cjs +1 -1
  208. package/toggle-button/index.js +1 -1
  209. package/{tokens-BghDnMdO.cjs → tokens-BF-dPard.cjs} +1 -1
  210. package/{tokens-fEwCQXDv.js → tokens-r1r3wC04.js} +4 -3
  211. package/tooltip/index.js +1 -1
  212. package/{triangle-alert-wxyxspAl.js → triangle-alert-B_qAPmWC.js} +5 -5
  213. package/triangle-alert-BviJNFjf.cjs +6 -0
  214. package/{useButton-1-Jf-oHj.js → useButton-BoIV3kDJ.js} +5 -5
  215. package/{useDateFormatter-BVCkxVdw.js → useDateFormatter-C7BJgoDR.js} +1 -1
  216. package/useDescription-CPo72trh.cjs +1 -0
  217. package/useDescription-DYfKjGGU.js +32 -0
  218. package/{useField-BEBXv5Mh.js → useField-CefQB81E.js} +1 -1
  219. package/{useFilter-e2oIVF_O.cjs → useFilter-BhM2yVO3.cjs} +1 -1
  220. package/{useFilter-CousKe2K.js → useFilter-DginflOU.js} +1 -1
  221. package/{useFocusable-ChPA2Jc7.js → useFocusable-BjE42axF.js} +7 -7
  222. package/{useHasTabbableChild-BE81d_ab.js → useHasTabbableChild-DP62kzkG.js} +1 -1
  223. package/{useHighlightSelectionDescription-BfR_vGOe.cjs → useHighlightSelectionDescription-DmbDkFGY.cjs} +1 -1
  224. package/{useHighlightSelectionDescription-D73hrkmn.js → useHighlightSelectionDescription-xr_16pKd.js} +2 -2
  225. package/{useListState-CebsX_1d.js → useListState-DNB7JWoj.js} +1 -1
  226. package/{useListState-DymkJGDF.cjs → useListState-wLau6fXo.cjs} +1 -1
  227. package/{usePress-DuR4pVsE.js → usePress-BW47IcyU.js} +34 -34
  228. package/{useSingleSelectListState-BLXvGjLI.js → useSingleSelectListState-B0OMoHd_.js} +1 -1
  229. package/{useSingleSelectListState-BPhlCU26.cjs → useSingleSelectListState-DlO5H9N-.cjs} +1 -1
  230. package/{useTextField-C-sUypsx.js → useTextField-DjxayZsV.js} +2 -2
  231. package/{utils-DJhAJHk_.js → utils-KLjWgdLR.js} +5 -5
  232. package/{x-JK7i-TQC.js → x-C2xUHAEl.js} +5 -5
  233. package/x-rV-nu490.cjs +6 -0
  234. package/BadgeContainer-I1XA3OCl.cjs +0 -1
  235. package/Button.module-DEQtBYe5.cjs +0 -1
  236. package/Button.module-tti8HGxs.js +0 -14
  237. package/CheckboxGroup-DmUOM0xl.cjs +0 -1
  238. package/ColorSchemeSwitch-DDXdSzqg.cjs +0 -16
  239. package/ComboBox-BBC7jhnm.cjs +0 -1
  240. package/DateInputDivider-3BvwXXa9.cjs +0 -1
  241. package/DateRangePicker-BPlZ12r8.cjs +0 -6
  242. package/Dialog-CSnN6baf.cjs +0 -1
  243. package/Dropdown-DAsVShlt.cjs +0 -6
  244. package/FieldError-B3YFj-an.js +0 -23
  245. package/FieldError-BbR-29BM.js +0 -28
  246. package/FieldError-MVsU-Mgw.cjs +0 -1
  247. package/FieldError-bRTpchvr.cjs +0 -1
  248. package/Layout-Dw-oCqxd.cjs +0 -16
  249. package/Link-D92ftFi2.cjs +0 -6
  250. package/Link-DegonJfl.js +0 -59
  251. package/LinkButton-CckYzfJ8.js +0 -69
  252. package/LinkButton-DKZ4z6zu.cjs +0 -6
  253. package/Popover-CnAsw3wI.cjs +0 -1
  254. package/Radio-B2zfEFdq.cjs +0 -1
  255. package/RangeCalendar-C1LFeOVk.cjs +0 -11
  256. package/SearchField-CML0kjtn.cjs +0 -6
  257. package/Select-DKey6CeS.cjs +0 -1
  258. package/SelectionManager-D0jYUYcy.cjs +0 -1
  259. package/Spinner-CbJ6YAz-.js +0 -53
  260. package/Spinner-yHcy8YHC.cjs +0 -6
  261. package/Table-DkvNp6xm.cjs +0 -16
  262. package/Tag-CFWZ2LQW.cjs +0 -1
  263. package/arrow-right-QJ2gXPKQ.cjs +0 -6
  264. package/check-CLF6Yxza.js +0 -11
  265. package/check-D_KoootC.cjs +0 -6
  266. package/chevron-down-Cd1bkzXT.js +0 -13
  267. package/chevron-down-jl83cllc.cjs +0 -6
  268. package/circle-check-BGo8gML8.cjs +0 -11
  269. package/createLucideIcon-Cg_wkoIA.cjs +0 -21
  270. package/createLucideIcon-DeWljiyi.js +0 -79
  271. package/file-upload/intl/translations.json.d.ts +0 -17
  272. package/info-CIEIENo6.cjs +0 -6
  273. package/scrollIntoView-BLnsPvFA.js +0 -87
  274. package/scrollIntoView-joIyo-Jt.cjs +0 -1
  275. package/square-arrow-out-up-right-V4Gd08uI.cjs +0 -6
  276. package/triangle-alert-DJW8U7jL.cjs +0 -6
  277. package/x-H8Zrx8-x.cjs +0 -6
@@ -0,0 +1,69 @@
1
+ import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
+ import { $ as u } from "./Link-CibH8uRY.js";
3
+ import { c as k } from "./clsx-OuTLNxxd.js";
4
+ import { S as y } from "./square-arrow-out-up-right-ok0A3Ovo.js";
5
+ import { c as z } from "./createLucideIcon-XRdN60yz.js";
6
+ import { A as g } from "./arrow-right-uemUGIg8.js";
7
+ import './assets/LinkButton.css';/**
8
+ * @license lucide-react v0.525.0 - ISC
9
+ *
10
+ * This source code is licensed under the ISC license.
11
+ * See the LICENSE file in the root directory of this source tree.
12
+ */
13
+ const h = [
14
+ ["path", { d: "m12 19-7-7 7-7", key: "1l729n" }],
15
+ ["path", { d: "M19 12H5", key: "x3x0zl" }]
16
+ ], B = z("arrow-left", h), w = "_linkButton_1klzp_4", L = "_secondary_1klzp_55", x = "_icon_1klzp_60", A = "_tertiary_1klzp_85", $ = "_danger_1klzp_102", N = "_iconBtn_1klzp_119", j = "_medium_1klzp_141", R = "_iconLeft_1klzp_146", S = "_fullwidth_1klzp_150", t = {
17
+ linkButton: w,
18
+ secondary: L,
19
+ icon: x,
20
+ tertiary: A,
21
+ danger: $,
22
+ iconBtn: N,
23
+ medium: j,
24
+ iconLeft: R,
25
+ fullwidth: S
26
+ }, U = ({
27
+ children: e,
28
+ variant: o,
29
+ fullwidth: s,
30
+ icon: c,
31
+ iconPlacement: i,
32
+ className: l,
33
+ as: _,
34
+ size: a = "large",
35
+ ...d
36
+ }) => {
37
+ const m = _ || u, f = ({ ...n }) => c ? /* @__PURE__ */ r(c, { ...n }) : n.target === "_blank" ? /* @__PURE__ */ r(y, { ...n }) : i === "left" ? /* @__PURE__ */ r(B, { ...n }) : /* @__PURE__ */ r(g, { ...n });
38
+ return /* @__PURE__ */ p(
39
+ m,
40
+ {
41
+ className: k(
42
+ t.linkButton,
43
+ o === "primary" && t.primary,
44
+ o === "secondary" && t.secondary,
45
+ o === "tertiary" && t.tertiary,
46
+ o === "danger" && t.danger,
47
+ o === "icon" && t.iconBtn,
48
+ a === "medium" && t.medium,
49
+ s && t.fullwidth,
50
+ i === "left" && t.iconLeft,
51
+ l
52
+ ),
53
+ ...d,
54
+ children: [
55
+ e,
56
+ /* @__PURE__ */ r(
57
+ f,
58
+ {
59
+ size: 20,
60
+ className: t.icon
61
+ }
62
+ )
63
+ ]
64
+ }
65
+ );
66
+ };
67
+ export {
68
+ U as L
69
+ };
@@ -1 +1 @@
1
- "use strict";const D=require("./Collection-BtBX5IMY.cjs"),v=require("./utils-DHNZrQmj.cjs"),y=require("./DragAndDrop-BoEd260f.cjs"),A=require("./Separator-CxF-3jhR.cjs"),re=require("./Text-CfcjRtke.cjs"),h=require("./mergeProps-B5KXZAI3.cjs"),T=require("./filterDOMProps-BS2lrgFA.cjs"),ae=require("./inertValue-B3AFhVG4.cjs"),t=require("react"),de=require("./usePress-BooY_CAy.cjs"),B=require("./useHover-BE_XKZKe.cjs"),ie=require("./SelectionManager-D0jYUYcy.cjs"),le=require("./useFocusWithin-CG8mAt2D.cjs"),ne=require("./Button-DExMoP5f.cjs"),Y=require("./useListState-DymkJGDF.cjs"),se=require("./context-Df3XbgBG.cjs"),X=require("./ListKeyboardDelegate-CPsZ7D83.cjs"),ce=require("./useFocusRing-B-A1OLhU.cjs"),ue=require("./FocusScope-vcXLOQiu.cjs"),z=new WeakMap;function fe(o){return typeof o=="string"?o.replace(/\s*/g,""):""+o}function Z(o,e){let d=z.get(o);if(!d)throw new Error("Unknown list");return`${d.id}-option-${fe(e)}`}function $e(o,e,d){let i=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o,{labelable:!0}),l=o.selectionBehavior||"toggle",n=o.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&n==="action"&&(n="override");let{listProps:r}=A.$982254629710d113$export$b95089534ab7c1fd({...o,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:n}),{focusWithinProps:a}=le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:o.onFocus,onBlurWithin:o.onBlur,onFocusWithinChange:o.onFocusChange}),u=h.$bdb11010cef70236$export$f680877a34711e37(o.id);z.set(e,{id:u,shouldUseVirtualFocus:o.shouldUseVirtualFocus,shouldSelectOnPressUp:o.shouldSelectOnPressUp,shouldFocusOnHover:o.shouldFocusOnHover,isVirtualized:o.isVirtualized,onAction:o.onAction,linkBehavior:n});let{labelProps:p,fieldProps:s}=ne.$d191a55c9702f145$export$8467354a121f1b9f({...o,id:u,labelElementType:"span"});return{labelProps:p,listBoxProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(i,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...h.$3ef42575df84b30b$export$9d1611c77c2fe928(s,r)})}}function be(o,e,d){var i,l;let{key:n}=o,r=z.get(e);var a;let u=(a=o.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(n);var p;let s=(p=o.isSelected)!==null&&p!==void 0?p:e.selectionManager.isSelected(n);var b;let c=(b=o.shouldSelectOnPressUp)!==null&&b!==void 0?b:r==null?void 0:r.shouldSelectOnPressUp;var f;let P=(f=o.shouldFocusOnHover)!==null&&f!==void 0?f:r==null?void 0:r.shouldFocusOnHover;var x;let g=(x=o.shouldUseVirtualFocus)!==null&&x!==void 0?x:r==null?void 0:r.shouldUseVirtualFocus;var m;let S=(m=o.isVirtualized)!==null&&m!==void 0?m:r==null?void 0:r.isVirtualized,M=h.$bdb11010cef70236$export$b4cc09c592e8fdb8(),H=h.$bdb11010cef70236$export$b4cc09c592e8fdb8(),k={role:"option","aria-disabled":u||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?s:void 0};B.$c87311424ea30a05$export$9ac100e40613ea10()&&B.$c87311424ea30a05$export$78551043582a6a98()||(k["aria-label"]=o["aria-label"],k["aria-labelledby"]=M,k["aria-describedby"]=H);let $=e.collection.getItem(n);if(S){let E=Number($==null?void 0:$.index);k["aria-posinset"]=Number.isNaN(E)?void 0:E+1,k["aria-setsize"]=A.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let I=r!=null&&r.onAction?()=>{var E;return r==null||(E=r.onAction)===null||E===void 0?void 0:E.call(r,n)}:void 0,O=Z(e,n),{itemProps:N,isPressed:U,isFocused:C,hasAction:F,allowsSelection:w}=ie.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:n,ref:d,shouldSelectOnPressUp:c,allowsDifferentPressOrigin:c&&P,isVirtualized:S,shouldUseVirtualFocus:g,isDisabled:u,onAction:I||!($==null||(i=$.props)===null||i===void 0)&&i.onAction?h.$ff5963eb1fccf552$export$e08e3b67e392101e($==null||(l=$.props)===null||l===void 0?void 0:l.onAction,I):void 0,linkBehavior:r==null?void 0:r.linkBehavior,id:O}),{hoverProps:L}=B.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:u||!P,onHoverStart(){B.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(n))}}),_=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f($==null?void 0:$.props);delete _.id;let q=de.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18($==null?void 0:$.props);return{optionProps:{...k,...h.$3ef42575df84b30b$export$9d1611c77c2fe928(_,N,L,q),id:O},labelProps:{id:M},descriptionProps:{id:H},isFocused:C,isFocusVisible:C&&e.selectionManager.isFocused&&B.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:s,isDisabled:u,isPressed:U,allowsSelection:w,hasAction:F}}function pe(o){let{heading:e,"aria-label":d}=o,i=h.$bdb11010cef70236$export$f680877a34711e37();return{itemProps:{role:"presentation"},headingProps:e?{id:i,role:"presentation"}:{},groupProps:{role:"group","aria-label":d,"aria-labelledby":e?i:void 0}}}const W=t.createContext(null),V=t.createContext(null),ge=t.forwardRef(function(e,d){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,W);let i=t.useContext(V);return i?t.createElement(ee,{state:i,props:e,listBoxRef:d}):t.createElement(D.$e1995378a142960e$export$bf788dd355e3a401,{content:t.createElement(D.$e1995378a142960e$export$fb8073518f34e6ec,e)},l=>t.createElement(ve,{props:e,listBoxRef:d,collection:l}))});function ve({props:o,listBoxRef:e,collection:d}){o={...o,collection:d,children:null,items:null};let{layoutDelegate:i}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),l=Y.$e72dd72e1c76a225$export$2f645645f7bca764({...o,layoutDelegate:i});return t.createElement(ee,{state:l,props:o,listBoxRef:e})}function ee({state:o,props:e,listBoxRef:d}){var i;let{filter:l,collectionProps:n,collectionRef:r}=t.useContext(A.$d2f53cda644affe3$export$65d2a03b8800d6e3)||{};e=t.useMemo(()=>n?{...e,...n}:e,[e,n]);let{dragAndDropHooks:a,layout:u="stack",orientation:p="vertical"}=e;d=v.$df56164dff5785e2$export$4338b53315abf666(t.useMemo(()=>v.$5dc95899b306f630$export$c9058316764c140e(d,r!==void 0?r:null),[r,d]));let s=Y.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(o,l),{collection:b,selectionManager:c}=s,f=!!(a!=null&&a.useDraggableCollectionState),P=!!(a!=null&&a.useDroppableCollectionState),{direction:x}=se.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:g,disabledKeys:m}=c,S=X.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:M,layoutDelegate:H,dropTargetDelegate:k,CollectionRoot:$}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),I=t.useMemo(()=>e.keyboardDelegate||new X.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:b,collator:S,ref:d,disabledKeys:m,disabledBehavior:g,layout:u,orientation:p,direction:x,layoutDelegate:H}),[b,S,d,g,m,p,x,e.keyboardDelegate,u,H]),{listBoxProps:O}=$e({...e,shouldSelectOnPressUp:f||e.shouldSelectOnPressUp,keyboardDelegate:I,isVirtualized:M},s,d),N=t.useRef(f),U=t.useRef(P);t.useEffect(()=>{process.env.NODE_ENV!=="production"&&(N.current!==f&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),U.current!==P&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[f,P]);let C,F,w,L=!1,_=null,q=t.useRef(null);if(f&&a){C=a.useDraggableCollectionState({collection:b,selectionManager:c,preview:a.renderDragPreview?q:void 0}),a.useDraggableCollection({},C,d);let K=a.DragPreview;_=a.renderDragPreview?t.createElement(K,{ref:q},a.renderDragPreview):null}if(P&&a){F=a.useDroppableCollectionState({collection:b,selectionManager:c});let K=a.dropTargetDelegate||k||new a.ListDropTargetDelegate(b,d,{orientation:p,layout:u,direction:x});w=a.useDroppableCollection({keyboardDelegate:I,dropTargetDelegate:K},F,d),L=F.isDropTarget({type:"root"})}let{focusProps:E,isFocused:j,isFocusVisible:G}=ce.$f7dceffc5ad7768b$export$4e328f61c538687f(),R=s.collection.size===0||s.collection.size===1&&((i=s.collection.getItem(s.collection.getFirstKey()))===null||i===void 0?void 0:i.type)==="loader",J={isDropTarget:L,isEmpty:R,isFocused:j,isFocusVisible:G,layout:e.layout||"stack",state:s},te=v.$64fa3d84918910a7$export$4d86445c2cf5e3({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:J}),Q=null;return R&&e.renderEmptyState&&(Q=t.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(J))),t.createElement(ue.$9bf71ea28793e738$export$20e40289641fbbb6,null,t.createElement("div",{...T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),...h.$3ef42575df84b30b$export$9d1611c77c2fe928(O,E,w==null?void 0:w.collectionProps),...te,ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":L||void 0,"data-empty":R||void 0,"data-focused":j||void 0,"data-focus-visible":G||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},t.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[V,s],[y.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:a,dragState:C,dropState:F}],[A.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[y.$612b8eb6cb90e02d$export$f55761759794cf55,{render:Pe}],[D.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:oe}]]},t.createElement($,{collection:b,scrollRef:d,persistedKeys:y.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6(c,a,F),renderDropIndicator:y.$612b8eb6cb90e02d$export$971707d8a129a1f7(a,F)})),Q,_))}function oe(o,e,d,i="react-aria-ListBoxSection"){let l=t.useContext(V),{dragAndDropHooks:n,dropState:r}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:a}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),[u,p]=v.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var s;let{headingProps:b,groupProps:c}=pe({heading:p,"aria-label":(s=o["aria-label"])!==null&&s!==void 0?s:void 0}),f=v.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:i,className:o.className,style:o.style,values:{}});return t.createElement("section",{...T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o),...c,...f,ref:e},t.createElement(A.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...b,ref:u}},t.createElement(a,{collection:l.collection,parent:d,renderDropIndicator:y.$612b8eb6cb90e02d$export$971707d8a129a1f7(n,r)})))}const xe=D.$e1995378a142960e$export$e953bb1cd0f19726("section",oe),he=D.$e1995378a142960e$export$18af5c7a9e9b3664("item",function(e,d,i){let l=v.$df56164dff5785e2$export$4338b53315abf666(d),n=t.useContext(V),{dragAndDropHooks:r,dragState:a,dropState:u}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:p,labelProps:s,descriptionProps:b,...c}=be({key:i.key,"aria-label":e==null?void 0:e["aria-label"]},n,l),{hoverProps:f,isHovered:P}=B.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!c.allowsSelection&&!c.hasAction,onHoverStart:i.props.onHoverStart,onHoverChange:i.props.onHoverChange,onHoverEnd:i.props.onHoverEnd}),x=null;a&&r&&(x=r.useDraggableItem({key:i.key},a));let g=null;u&&r&&(g=r.useDroppableItem({target:{type:"item",key:i.key,dropPosition:"on"}},u,l));let m=a&&a.isDragging(i.key),S=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...c,isHovered:P,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:g==null?void 0:g.isDropTarget}});t.useEffect(()=>{!i.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[i.textValue]);let M=e.href?"a":"div";return t.createElement(M,{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(p,f,x==null?void 0:x.dragProps,g==null?void 0:g.dropProps),...S,ref:l,"data-allows-dragging":!!a||void 0,"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":c.isFocusVisible||void 0,"data-pressed":c.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(g==null?void 0:g.isDropTarget)||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},t.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[re.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[v.$64fa3d84918910a7$export$c62b8e45d58ddad9]:s,label:s,description:b}}]]},S.children))});function Pe(o,e){e=v.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:i}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:l,isHidden:n,isDropTarget:r}=d.useDropIndicator(o,i,e);return n?null:t.createElement(me,{...o,dropIndicatorProps:l,isDropTarget:r,ref:e})}function De(o,e){let{dropIndicatorProps:d,isDropTarget:i,...l}=o,n=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...l,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:i}});return t.createElement("div",{...d,...n,role:"option",ref:e,"data-drop-target":i||void 0})}const me=t.forwardRef(De);D.$e1995378a142960e$export$18af5c7a9e9b3664("loader",function(e,d,i){let l=t.useContext(V),{isVirtualized:n}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),{isLoading:r,onLoadMore:a,scrollOffset:u,...p}=e,s=t.useRef(null),b=t.useMemo(()=>({onLoadMore:a,collection:l==null?void 0:l.collection,sentinelRef:s,scrollOffset:u}),[a,u,l==null?void 0:l.collection]);y.$a5fa973c1850dd36$export$90a12e6abf95cbe0(b,s);let c=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...p,id:void 0,children:i.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),f={tabIndex:-1};return n&&(f["aria-posinset"]=i.index+1,f["aria-setsize"]=l.collection.size),t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"relative",width:0,height:0},inert:ae.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},t.createElement("div",{"data-testid":"loadMoreSentinel",ref:s,style:{position:"absolute",height:1,width:1}})),r&&c.children&&t.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),f),...c,role:"option",ref:d},c.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=z;exports.$b1f0cad8af73213b$export$9145995848b05025=Z;exports.$eed445e0843c11d0$export$41f133550aa26f48=ge;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=V;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=W;exports.$eed445e0843c11d0$export$a11e76429ed99b4=he;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=xe;
1
+ "use strict";const D=require("./Collection-BtBX5IMY.cjs"),v=require("./utils-DHNZrQmj.cjs"),y=require("./DragAndDrop-CSg60YQE.cjs"),A=require("./Separator-DPLEx950.cjs"),re=require("./Text-CfcjRtke.cjs"),h=require("./mergeProps-B5KXZAI3.cjs"),T=require("./filterDOMProps-BS2lrgFA.cjs"),ae=require("./inertValue-B3AFhVG4.cjs"),t=require("react"),de=require("./usePress-BooY_CAy.cjs"),B=require("./useHover-BE_XKZKe.cjs"),ie=require("./SelectionManager-BJjqIWtf.cjs"),le=require("./useFocusWithin-CG8mAt2D.cjs"),ne=require("./Button-DExMoP5f.cjs"),Y=require("./useListState-wLau6fXo.cjs"),se=require("./context-Df3XbgBG.cjs"),X=require("./ListKeyboardDelegate-ZKBk2IId.cjs"),ce=require("./useFocusRing-B-A1OLhU.cjs"),ue=require("./FocusScope-vcXLOQiu.cjs"),z=new WeakMap;function fe(o){return typeof o=="string"?o.replace(/\s*/g,""):""+o}function Z(o,e){let d=z.get(o);if(!d)throw new Error("Unknown list");return`${d.id}-option-${fe(e)}`}function $e(o,e,d){let i=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o,{labelable:!0}),l=o.selectionBehavior||"toggle",n=o.linkBehavior||(l==="replace"?"action":"override");l==="toggle"&&n==="action"&&(n="override");let{listProps:r}=A.$982254629710d113$export$b95089534ab7c1fd({...o,ref:d,selectionManager:e.selectionManager,collection:e.collection,disabledKeys:e.disabledKeys,linkBehavior:n}),{focusWithinProps:a}=le.$9ab94262bd0047c7$export$420e68273165f4ec({onFocusWithin:o.onFocus,onBlurWithin:o.onBlur,onFocusWithinChange:o.onFocusChange}),u=h.$bdb11010cef70236$export$f680877a34711e37(o.id);z.set(e,{id:u,shouldUseVirtualFocus:o.shouldUseVirtualFocus,shouldSelectOnPressUp:o.shouldSelectOnPressUp,shouldFocusOnHover:o.shouldFocusOnHover,isVirtualized:o.isVirtualized,onAction:o.onAction,linkBehavior:n});let{labelProps:p,fieldProps:s}=ne.$d191a55c9702f145$export$8467354a121f1b9f({...o,id:u,labelElementType:"span"});return{labelProps:p,listBoxProps:h.$3ef42575df84b30b$export$9d1611c77c2fe928(i,a,e.selectionManager.selectionMode==="multiple"?{"aria-multiselectable":"true"}:{},{role:"listbox",...h.$3ef42575df84b30b$export$9d1611c77c2fe928(s,r)})}}function be(o,e,d){var i,l;let{key:n}=o,r=z.get(e);var a;let u=(a=o.isDisabled)!==null&&a!==void 0?a:e.selectionManager.isDisabled(n);var p;let s=(p=o.isSelected)!==null&&p!==void 0?p:e.selectionManager.isSelected(n);var b;let c=(b=o.shouldSelectOnPressUp)!==null&&b!==void 0?b:r==null?void 0:r.shouldSelectOnPressUp;var f;let P=(f=o.shouldFocusOnHover)!==null&&f!==void 0?f:r==null?void 0:r.shouldFocusOnHover;var x;let g=(x=o.shouldUseVirtualFocus)!==null&&x!==void 0?x:r==null?void 0:r.shouldUseVirtualFocus;var m;let S=(m=o.isVirtualized)!==null&&m!==void 0?m:r==null?void 0:r.isVirtualized,M=h.$bdb11010cef70236$export$b4cc09c592e8fdb8(),H=h.$bdb11010cef70236$export$b4cc09c592e8fdb8(),k={role:"option","aria-disabled":u||void 0,"aria-selected":e.selectionManager.selectionMode!=="none"?s:void 0};B.$c87311424ea30a05$export$9ac100e40613ea10()&&B.$c87311424ea30a05$export$78551043582a6a98()||(k["aria-label"]=o["aria-label"],k["aria-labelledby"]=M,k["aria-describedby"]=H);let $=e.collection.getItem(n);if(S){let E=Number($==null?void 0:$.index);k["aria-posinset"]=Number.isNaN(E)?void 0:E+1,k["aria-setsize"]=A.$453cc9f0df89c0a5$export$77d5aafae4e095b2(e.collection)}let I=r!=null&&r.onAction?()=>{var E;return r==null||(E=r.onAction)===null||E===void 0?void 0:E.call(r,n)}:void 0,O=Z(e,n),{itemProps:N,isPressed:U,isFocused:C,hasAction:F,allowsSelection:w}=ie.$880e95eb8b93ba9a$export$ecf600387e221c37({selectionManager:e.selectionManager,key:n,ref:d,shouldSelectOnPressUp:c,allowsDifferentPressOrigin:c&&P,isVirtualized:S,shouldUseVirtualFocus:g,isDisabled:u,onAction:I||!($==null||(i=$.props)===null||i===void 0)&&i.onAction?h.$ff5963eb1fccf552$export$e08e3b67e392101e($==null||(l=$.props)===null||l===void 0?void 0:l.onAction,I):void 0,linkBehavior:r==null?void 0:r.linkBehavior,id:O}),{hoverProps:L}=B.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:u||!P,onHoverStart(){B.$507fabe10e71c6fb$export$b9b3dfddab17db27()||(e.selectionManager.setFocused(!0),e.selectionManager.setFocusedKey(n))}}),_=T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f($==null?void 0:$.props);delete _.id;let q=de.$ea8dcbcb9ea1b556$export$7e924b3091a3bd18($==null?void 0:$.props);return{optionProps:{...k,...h.$3ef42575df84b30b$export$9d1611c77c2fe928(_,N,L,q),id:O},labelProps:{id:M},descriptionProps:{id:H},isFocused:C,isFocusVisible:C&&e.selectionManager.isFocused&&B.$507fabe10e71c6fb$export$b9b3dfddab17db27(),isSelected:s,isDisabled:u,isPressed:U,allowsSelection:w,hasAction:F}}function pe(o){let{heading:e,"aria-label":d}=o,i=h.$bdb11010cef70236$export$f680877a34711e37();return{itemProps:{role:"presentation"},headingProps:e?{id:i,role:"presentation"}:{},groupProps:{role:"group","aria-label":d,"aria-labelledby":e?i:void 0}}}const W=t.createContext(null),V=t.createContext(null),ge=t.forwardRef(function(e,d){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,W);let i=t.useContext(V);return i?t.createElement(ee,{state:i,props:e,listBoxRef:d}):t.createElement(D.$e1995378a142960e$export$bf788dd355e3a401,{content:t.createElement(D.$e1995378a142960e$export$fb8073518f34e6ec,e)},l=>t.createElement(ve,{props:e,listBoxRef:d,collection:l}))});function ve({props:o,listBoxRef:e,collection:d}){o={...o,collection:d,children:null,items:null};let{layoutDelegate:i}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),l=Y.$e72dd72e1c76a225$export$2f645645f7bca764({...o,layoutDelegate:i});return t.createElement(ee,{state:l,props:o,listBoxRef:e})}function ee({state:o,props:e,listBoxRef:d}){var i;let{filter:l,collectionProps:n,collectionRef:r}=t.useContext(A.$d2f53cda644affe3$export$65d2a03b8800d6e3)||{};e=t.useMemo(()=>n?{...e,...n}:e,[e,n]);let{dragAndDropHooks:a,layout:u="stack",orientation:p="vertical"}=e;d=v.$df56164dff5785e2$export$4338b53315abf666(t.useMemo(()=>v.$5dc95899b306f630$export$c9058316764c140e(d,r!==void 0?r:null),[r,d]));let s=Y.$e72dd72e1c76a225$export$ba9d38c0f1bf2b36(o,l),{collection:b,selectionManager:c}=s,f=!!(a!=null&&a.useDraggableCollectionState),P=!!(a!=null&&a.useDroppableCollectionState),{direction:x}=se.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{disabledBehavior:g,disabledKeys:m}=c,S=X.$325a3faab7a68acd$export$a16aca283550c30d({usage:"search",sensitivity:"base"}),{isVirtualized:M,layoutDelegate:H,dropTargetDelegate:k,CollectionRoot:$}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),I=t.useMemo(()=>e.keyboardDelegate||new X.$2a25aae57d74318e$export$a05409b8bb224a5a({collection:b,collator:S,ref:d,disabledKeys:m,disabledBehavior:g,layout:u,orientation:p,direction:x,layoutDelegate:H}),[b,S,d,g,m,p,x,e.keyboardDelegate,u,H]),{listBoxProps:O}=$e({...e,shouldSelectOnPressUp:f||e.shouldSelectOnPressUp,keyboardDelegate:I,isVirtualized:M},s,d),N=t.useRef(f),U=t.useRef(P);t.useEffect(()=>{process.env.NODE_ENV!=="production"&&(N.current!==f&&console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."),U.current!==P&&console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."))},[f,P]);let C,F,w,L=!1,_=null,q=t.useRef(null);if(f&&a){C=a.useDraggableCollectionState({collection:b,selectionManager:c,preview:a.renderDragPreview?q:void 0}),a.useDraggableCollection({},C,d);let K=a.DragPreview;_=a.renderDragPreview?t.createElement(K,{ref:q},a.renderDragPreview):null}if(P&&a){F=a.useDroppableCollectionState({collection:b,selectionManager:c});let K=a.dropTargetDelegate||k||new a.ListDropTargetDelegate(b,d,{orientation:p,layout:u,direction:x});w=a.useDroppableCollection({keyboardDelegate:I,dropTargetDelegate:K},F,d),L=F.isDropTarget({type:"root"})}let{focusProps:E,isFocused:j,isFocusVisible:G}=ce.$f7dceffc5ad7768b$export$4e328f61c538687f(),R=s.collection.size===0||s.collection.size===1&&((i=s.collection.getItem(s.collection.getFirstKey()))===null||i===void 0?void 0:i.type)==="loader",J={isDropTarget:L,isEmpty:R,isFocused:j,isFocusVisible:G,layout:e.layout||"stack",state:s},te=v.$64fa3d84918910a7$export$4d86445c2cf5e3({className:e.className,style:e.style,defaultClassName:"react-aria-ListBox",values:J}),Q=null;return R&&e.renderEmptyState&&(Q=t.createElement("div",{role:"option",style:{display:"contents"}},e.renderEmptyState(J))),t.createElement(ue.$9bf71ea28793e738$export$20e40289641fbbb6,null,t.createElement("div",{...T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),...h.$3ef42575df84b30b$export$9d1611c77c2fe928(O,E,w==null?void 0:w.collectionProps),...te,ref:d,slot:e.slot||void 0,onScroll:e.onScroll,"data-drop-target":L||void 0,"data-empty":R||void 0,"data-focused":j||void 0,"data-focus-visible":G||void 0,"data-layout":e.layout||"stack","data-orientation":e.orientation||"vertical"},t.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[W,e],[V,s],[y.$612b8eb6cb90e02d$export$d188a835a7bc5783,{dragAndDropHooks:a,dragState:C,dropState:F}],[A.$431f98aba6844401$export$6615d83f6de245ce,{elementType:"div"}],[y.$612b8eb6cb90e02d$export$f55761759794cf55,{render:Pe}],[D.$7135fc7d473fd974$export$d40e14dec8b060a8,{name:"ListBoxSection",render:oe}]]},t.createElement($,{collection:b,scrollRef:d,persistedKeys:y.$612b8eb6cb90e02d$export$d1e8e3fbb7461f6(c,a,F),renderDropIndicator:y.$612b8eb6cb90e02d$export$971707d8a129a1f7(a,F)})),Q,_))}function oe(o,e,d,i="react-aria-ListBoxSection"){let l=t.useContext(V),{dragAndDropHooks:n,dropState:r}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{CollectionBranch:a}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),[u,p]=v.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8();var s;let{headingProps:b,groupProps:c}=pe({heading:p,"aria-label":(s=o["aria-label"])!==null&&s!==void 0?s:void 0}),f=v.$64fa3d84918910a7$export$4d86445c2cf5e3({defaultClassName:i,className:o.className,style:o.style,values:{}});return t.createElement("section",{...T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(o),...c,...f,ref:e},t.createElement(A.$72a5793c14baf454$export$e0e4026c12a8bdbb.Provider,{value:{...b,ref:u}},t.createElement(a,{collection:l.collection,parent:d,renderDropIndicator:y.$612b8eb6cb90e02d$export$971707d8a129a1f7(n,r)})))}const xe=D.$e1995378a142960e$export$e953bb1cd0f19726("section",oe),he=D.$e1995378a142960e$export$18af5c7a9e9b3664("item",function(e,d,i){let l=v.$df56164dff5785e2$export$4338b53315abf666(d),n=t.useContext(V),{dragAndDropHooks:r,dragState:a,dropState:u}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{optionProps:p,labelProps:s,descriptionProps:b,...c}=be({key:i.key,"aria-label":e==null?void 0:e["aria-label"]},n,l),{hoverProps:f,isHovered:P}=B.$6179b936705e76d3$export$ae780daf29e6d456({isDisabled:!c.allowsSelection&&!c.hasAction,onHoverStart:i.props.onHoverStart,onHoverChange:i.props.onHoverChange,onHoverEnd:i.props.onHoverEnd}),x=null;a&&r&&(x=r.useDraggableItem({key:i.key},a));let g=null;u&&r&&(g=r.useDroppableItem({target:{type:"item",key:i.key,dropPosition:"on"}},u,l));let m=a&&a.isDragging(i.key),S=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,id:void 0,children:e.children,defaultClassName:"react-aria-ListBoxItem",values:{...c,isHovered:P,selectionMode:n.selectionManager.selectionMode,selectionBehavior:n.selectionManager.selectionBehavior,allowsDragging:!!a,isDragging:m,isDropTarget:g==null?void 0:g.isDropTarget}});t.useEffect(()=>{!i.textValue&&process.env.NODE_ENV!=="production"&&console.warn("A `textValue` prop is required for <ListBoxItem> elements with non-plain text children in order to support accessibility features such as type to select.")},[i.textValue]);let M=e.href?"a":"div";return t.createElement(M,{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(p,f,x==null?void 0:x.dragProps,g==null?void 0:g.dropProps),...S,ref:l,"data-allows-dragging":!!a||void 0,"data-selected":c.isSelected||void 0,"data-disabled":c.isDisabled||void 0,"data-hovered":P||void 0,"data-focused":c.isFocused||void 0,"data-focus-visible":c.isFocusVisible||void 0,"data-pressed":c.isPressed||void 0,"data-dragging":m||void 0,"data-drop-target":(g==null?void 0:g.isDropTarget)||void 0,"data-selection-mode":n.selectionManager.selectionMode==="none"?void 0:n.selectionManager.selectionMode},t.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[re.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{[v.$64fa3d84918910a7$export$c62b8e45d58ddad9]:s,label:s,description:b}}]]},S.children))});function Pe(o,e){e=v.$df56164dff5785e2$export$4338b53315abf666(e);let{dragAndDropHooks:d,dropState:i}=t.useContext(y.$612b8eb6cb90e02d$export$d188a835a7bc5783),{dropIndicatorProps:l,isHidden:n,isDropTarget:r}=d.useDropIndicator(o,i,e);return n?null:t.createElement(me,{...o,dropIndicatorProps:l,isDropTarget:r,ref:e})}function De(o,e){let{dropIndicatorProps:d,isDropTarget:i,...l}=o,n=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...l,defaultClassName:"react-aria-DropIndicator",values:{isDropTarget:i}});return t.createElement("div",{...d,...n,role:"option",ref:e,"data-drop-target":i||void 0})}const me=t.forwardRef(De);D.$e1995378a142960e$export$18af5c7a9e9b3664("loader",function(e,d,i){let l=t.useContext(V),{isVirtualized:n}=t.useContext(D.$7135fc7d473fd974$export$4feb769f8ddf26c5),{isLoading:r,onLoadMore:a,scrollOffset:u,...p}=e,s=t.useRef(null),b=t.useMemo(()=>({onLoadMore:a,collection:l==null?void 0:l.collection,sentinelRef:s,scrollOffset:u}),[a,u,l==null?void 0:l.collection]);y.$a5fa973c1850dd36$export$90a12e6abf95cbe0(b,s);let c=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...p,id:void 0,children:i.rendered,defaultClassName:"react-aria-ListBoxLoadingIndicator",values:null}),f={tabIndex:-1};return n&&(f["aria-posinset"]=i.index+1,f["aria-setsize"]=l.collection.size),t.createElement(t.Fragment,null,t.createElement("div",{style:{position:"relative",width:0,height:0},inert:ae.$cdc5a6778b766db2$export$a9d04c5684123369(!0)},t.createElement("div",{"data-testid":"loadMoreSentinel",ref:s,style:{position:"absolute",height:1,width:1}})),r&&c.children&&t.createElement("div",{...h.$3ef42575df84b30b$export$9d1611c77c2fe928(T.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e),f),...c,role:"option",ref:d},c.children))});exports.$b1f0cad8af73213b$export$3585ede4d035bf14=z;exports.$b1f0cad8af73213b$export$9145995848b05025=Z;exports.$eed445e0843c11d0$export$41f133550aa26f48=ge;exports.$eed445e0843c11d0$export$7c5906fe4f1f2af2=V;exports.$eed445e0843c11d0$export$7ff8f37d2d81a48d=W;exports.$eed445e0843c11d0$export$a11e76429ed99b4=he;exports.$eed445e0843c11d0$export$dca12b0bb56e4fc=xe;
@@ -1,22 +1,22 @@
1
- import { $ as ee, a as fe, b as pe, c as $e, d as z, e as be } from "./Collection--62xKPm9.js";
2
- import { $ as ve, f as q, a as H, e as oe, g as ge, h as me, c as he } from "./utils-DJhAJHk_.js";
3
- import { $ as N, a as xe, b as te, c as Pe, d as De } from "./DragAndDrop-DkSTL28C.js";
4
- import { $ as ye, a as Se, b as ke, c as Ee, d as Fe } from "./Separator-Dn5LYN5I.js";
5
- import { a as Me } from "./Text-92cPh38G.js";
1
+ import { $ as ee, a as fe, b as pe, c as $e, d as z, e as be } from "./Collection-D2jVTmDW.js";
2
+ import { $ as ve, b as q, a as H, f as oe, g as ge, h as me, d as he } from "./utils-KLjWgdLR.js";
3
+ import { $ as N, a as xe, b as te, c as Pe, d as De } from "./DragAndDrop-DOXLfJaA.js";
4
+ import { $ as ye, a as Se, b as ke, c as Ee, d as Fe } from "./Separator-CEZ5y7tZ.js";
5
+ import { $ as Me } from "./Text-DcZqSUN9.js";
6
6
  import { c as ae, a as M, b as Y, e as we } from "./mergeProps-C1U1OIeJ.js";
7
7
  import { $ as L } from "./filterDOMProps-D6KHYVBX.js";
8
8
  import { $ as Be } from "./inertValue-B7loUihk.js";
9
9
  import s, { forwardRef as re, createContext as ie, useContext as m, useEffect as le, useMemo as C, useRef as O } from "react";
10
- import { c as Ie } from "./usePress-DuR4pVsE.js";
10
+ import { d as Ie } from "./usePress-BW47IcyU.js";
11
11
  import { h as Ve, i as He, $ as de, a as Z } from "./useHover-DQvJ3Y-W.js";
12
- import { d as Le } from "./SelectionManager-zsWy3vsd.js";
12
+ import { d as Le } from "./SelectionManager-BubxiIKu.js";
13
13
  import { $ as _e } from "./useFocusWithin-T1ifEM_s.js";
14
- import { a as Ae } from "./Button-CFYdzG0H.js";
15
- import { a as Te, $ as Ce } from "./useListState-CebsX_1d.js";
14
+ import { a as Ae } from "./Button-CepQFEit.js";
15
+ import { a as Te, $ as Ce } from "./useListState-DNB7JWoj.js";
16
16
  import { $ as Oe } from "./context-CGNJ3grH.js";
17
- import { $ as ze, a as Ne } from "./ListKeyboardDelegate-CY6t6y1t.js";
17
+ import { $ as ze, a as Ne } from "./ListKeyboardDelegate-C-sPNj0f.js";
18
18
  import { $ as Ue } from "./useFocusRing-DOfBqnUN.js";
19
- import { a as Ke } from "./FocusScope-D_hwN_TJ.js";
19
+ import { a as Ke } from "./FocusScope-BCsrRPqD.js";
20
20
  const j = /* @__PURE__ */ new WeakMap();
21
21
  function Re(o) {
22
22
  return typeof o == "string" ? o.replace(/\s*/g, "") : "" + o;
@@ -1 +1 @@
1
- "use strict";const i=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),t=require("./ListBoxSection-CfQZoURJ.cjs"),u=({className:s,children:o,...e})=>i.jsx("button",{type:"button",className:n.clsx(t.styles.listBoxItem,t.styles.listBoxButton,s),...e,children:o});exports.ListBoxButton=u;
1
+ "use strict";const i=require("react/jsx-runtime"),n=require("./clsx-C11secjj.cjs"),t=require("./ListBoxSection-C-Rz358T.cjs"),u=({className:s,children:o,...e})=>i.jsx("button",{type:"button",className:n.clsx(t.styles.listBoxItem,t.styles.listBoxButton,s),...e,children:o});exports.ListBoxButton=u;
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { c as i } from "./clsx-OuTLNxxd.js";
3
- import { s as t } from "./ListBoxSection-BVR2xtOH.js";
3
+ import { s as t } from "./ListBoxSection-Cc2cx0_S.js";
4
4
  const l = ({ className: o, children: s, ...m }) => /* @__PURE__ */ r(
5
5
  "button",
6
6
  {
@@ -1 +1 @@
1
- "use strict";require('./assets/ListBoxSection.css');const S=require("react/jsx-runtime"),V=require("./ListBox-BCz5-23H.cjs"),Y=require("./Collection-BtBX5IMY.cjs"),c=require("react"),C=require("./mergeProps-B5KXZAI3.cjs"),W=require("./context-Df3XbgBG.cjs"),T=require("react-dom"),Z=require("./OverlayArrow-DpZ1FqOd.cjs"),ee=require("./useEvent-DPxMu-X9.cjs"),M=require("./clsx-C11secjj.cjs"),q=require("./SelectionManager-D0jYUYcy.cjs"),te=require("./Dialog-CSnN6baf.cjs"),ie=require("./Separator-CxF-3jhR.cjs");class le{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class f{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return this.area>0&&e.area>0&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,o=Math.max(this.maxY,e.maxY)-i;return new f(t,i,l,o)}intersection(e){if(!this.intersects(e))return new f(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new f(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new f(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class z{copy(){return new z(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let oe=0;class D{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new se(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++oe,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class ne extends D{constructor(e){super(e,"root")}}class se extends D{constructor(e,t,i){super(e,i),this.parent=t}}function re(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class ae{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new f}}class he{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new f(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let o=new f(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new f(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,o=!1,s=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!re(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new z,this.visibleRect=new f,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new ne(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new ae}}function de(n){let[e,t]=c.useState(new f(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new he({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(w){t(w),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,g=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:g,endScrolling:y}),[h,d,t,u,i,g,y])}const $=48;class ce extends le{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:$)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new f(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new f(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,o,s,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let g of this.lastCollection.getKeys())t.getItem(g)||this.layoutNodes.get(g)&&this.layoutNodes.delete(g);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=0,l=[],o=(t==null?void 0:t.size)===0||t.size===1&&t.getItem(t.getFirstKey()).type==="loader";o&&(e=0);for(let r of t){var s,a;let d=((a=(s=this.rowHeight)!==null&&s!==void 0?s:this.estimatedRowHeight)!==null&&a!==void 0?a:$)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d,i++;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,l.push(u),r.type==="item"&&e>this.requestedRect.maxY){var h;let g=t.size-(l.length+i),y=t.getItem(t.getLastKey());if((y==null?void 0:y.type)==="loader"&&g--,e+=g*d,(y==null?void 0:y.type)==="loader"&&((h=l.at(-1))===null||h===void 0?void 0:h.layoutInfo.type)!=="loader"){let v=this.buildChild(y,this.padding,e,null);l.push(v),e=v.layoutInfo.rect.maxY}break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),l}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new f(t,i,this.padding,0),o=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new f(t,i,o-t,0),a=new b(e.type,e.key,s),h=i,r=0,d=[];for(let y of q.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,g;let v=((g=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&g!==void 0?g:$)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let w=this.buildChild(y,t,i,a.key);if(i=w.layoutInfo.rect.maxY+this.gap,d.push(w),i>this.requestedRect.maxY){i+=([...q.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,o=this.headingHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),g=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==g||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=$);let a=new f(t,i,l-t,o),h=new b("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=$);let a=new f(t,i,l,o),h=new b(e.type,e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new f(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let g=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(g,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;return e.dropPosition==="before"?i=new f(t.rect.x,t.rect.y-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):e.dropPosition==="after"?i=new f(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):i=t.rect,new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new f,this.requestedRect=new f,this.contentSize=new z}}let R=null;function ue(n=!1){if(R===null||n){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}function fe(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(ue()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ge(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,g]=c.useState(!1),y=c.useCallback(p=>{p.target===p.currentTarget&&(n.onScroll&&n.onScroll(p),T.flushSync(()=>{let m=p.currentTarget.scrollTop,H=fe(p.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new f(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,g(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let L=Date.now();r.scrollEndTime<=L+50&&(r.scrollEndTime=L+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,g(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s&&s()},300))}))},[n,d,r,t,i,o,s]);ee.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let v=c.useRef(!1),w=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(p=>{let m=e.current;if(!m||v.current)return;v.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,L=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Q=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),O=m.clientWidth,P=m.clientHeight,N=H&&!L?1/0:O,E=H&&!Q?1/0:P;(r.width!==N||r.height!==E)&&(r.width=N,r.height=E,p(()=>{i(new f(r.scrollLeft,r.scrollTop,N,E))}),(!H&&O!==m.clientWidth||P!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,p(()=>{i(new f(r.scrollLeft,r.scrollTop,r.width,r.height))}))),v.current=!1}),_=c.useRef(null),[U,G]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!v.current&&(_.current==null||!t.equals(_.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){G({}),_.current=t;return}else queueMicrotask(()=>w(T.flushSync));_.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{w(p=>p())},[U]);let J=c.useCallback(()=>{w(T.flushSync)},[w]);Z.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:J});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ye(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=ve(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function ve(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function X(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ye({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...pe(i,a,o),...e}},s)}let B=new WeakMap;function pe(n,e,t){let i=e==="rtl"?"right":"left",l=B.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return B.set(n,a),a}const j=c.createContext(null),A=c.createContext(null);function we(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:me,CollectionBranch:be}),[l]);return c.createElement(Y.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(A.Provider,{value:{layout:l,layoutOptions:i}},e))}function me({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(A),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=de({layout:o,collection:n,renderView:(d,u)=>{var g;return u==null||(g=u.render)===null||g===void 0?void 0:g.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ge({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(j.Provider,{value:h},F(null,h.visibleViews,i)))}function be({parent:n,renderDropIndicator:e}){let i=c.useContext(j).virtualizer.getVisibleView(n.key);return F(i,Array.from(i.children),e)}function F(n,e,t){return e.map(i=>xe(n,i,t))}function xe(n,e,t){let i=c.createElement(X,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},K(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,Y.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>K(n,e,a,t)))),i}function K(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(X,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class Ie extends ce{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const $e="_listBox_iev2c_7",Re="_listBoxPopover_iev2c_19",Se="_listBoxSectionHeading_iev2c_31",ze="_listBoxButton_iev2c_38",He="_listBoxItem_iev2c_50",k={listBox:$e,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:ze,listBoxItem:He},Ce=({className:n,children:e,...t})=>S.jsx(we,{layout:Ie,layoutOptions:{headingHeight:44},children:S.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:M.clsx(k.listBox,n),...t,children:e})}),ke=({children:n,className:e,...t})=>S.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:M.clsx(k.listBoxItem,e),...t,children:n}),_e=({className:n,children:e,...t})=>S.jsx(te.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:M.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Le=({children:n,name:e,...t})=>S.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[S.jsx(ie.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=Ce;exports.ListBoxItem=ke;exports.ListBoxPopover=_e;exports.ListBoxSection=Le;exports.styles=k;
1
+ "use strict";require('./assets/ListBoxSection.css');const S=require("react/jsx-runtime"),V=require("./ListBox-B0E1hdEt.cjs"),Y=require("./Collection-BtBX5IMY.cjs"),c=require("react"),C=require("./mergeProps-B5KXZAI3.cjs"),W=require("./context-Df3XbgBG.cjs"),T=require("react-dom"),Z=require("./OverlayArrow-DpZ1FqOd.cjs"),ee=require("./useEvent-DPxMu-X9.cjs"),M=require("./clsx-C11secjj.cjs"),q=require("./SelectionManager-BJjqIWtf.cjs"),te=require("./Dialog-DtHk3eXI.cjs"),ie=require("./Separator-DPLEx950.cjs");class le{shouldInvalidate(e,t){return e.width!==t.width||e.height!==t.height}shouldInvalidateLayoutOptions(e,t){return e!==t}update(e){}getItemRect(e){var t,i;return(i=(t=this.getLayoutInfo(e))===null||t===void 0?void 0:t.rect)!==null&&i!==void 0?i:null}getVisibleRect(){return this.virtualizer.visibleRect}constructor(){this.virtualizer=null}}class b{copy(){let e=new b(this.type,this.key,this.rect.copy());return e.estimatedSize=this.estimatedSize,e.opacity=this.opacity,e.transform=this.transform,e.parentKey=this.parentKey,e.content=this.content,e.isSticky=this.isSticky,e.zIndex=this.zIndex,e.allowOverflow=this.allowOverflow,e}constructor(e,t,i){this.type=e,this.key=t,this.parentKey=null,this.content=null,this.rect=i,this.estimatedSize=!1,this.isSticky=!1,this.opacity=1,this.transform=null,this.zIndex=0,this.allowOverflow=!1}}class x{copy(){return new x(this.x,this.y)}equals(e){return this.x===e.x&&this.y===e.y}isOrigin(){return this.x===0&&this.y===0}constructor(e=0,t=0){this.x=e,this.y=t}}class f{get maxX(){return this.x+this.width}get maxY(){return this.y+this.height}get area(){return this.width*this.height}get topLeft(){return new x(this.x,this.y)}get topRight(){return new x(this.maxX,this.y)}get bottomLeft(){return new x(this.x,this.maxY)}get bottomRight(){return new x(this.maxX,this.maxY)}intersects(e){return this.area>0&&e.area>0&&this.x<=e.x+e.width&&e.x<=this.x+this.width&&this.y<=e.y+e.height&&e.y<=this.y+this.height}containsRect(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.maxX&&this.maxY>=e.maxY}containsPoint(e){return this.x<=e.x&&this.y<=e.y&&this.maxX>=e.x&&this.maxY>=e.y}getCornerInRect(e){for(let t of["topLeft","topRight","bottomLeft","bottomRight"])if(e.containsPoint(this[t]))return t;return null}equals(e){return e.x===this.x&&e.y===this.y&&e.width===this.width&&e.height===this.height}pointEquals(e){return this.x===e.x&&this.y===e.y}sizeEquals(e){return this.width===e.width&&this.height===e.height}union(e){let t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),l=Math.max(this.maxX,e.maxX)-t,o=Math.max(this.maxY,e.maxY)-i;return new f(t,i,l,o)}intersection(e){if(!this.intersects(e))return new f(0,0,0,0);let t=Math.max(this.x,e.x),i=Math.max(this.y,e.y);return new f(t,i,Math.min(this.maxX,e.maxX)-t,Math.min(this.maxY,e.maxY)-i)}copy(){return new f(this.x,this.y,this.width,this.height)}constructor(e=0,t=0,i=0,l=0){this.x=e,this.y=t,this.width=i,this.height=l}}class z{copy(){return new z(this.width,this.height)}equals(e){return this.width===e.width&&this.height===e.height}get area(){return this.width*this.height}constructor(e=0,t=0){this.width=Math.max(e,0),this.height=Math.max(t,0)}}let oe=0;class D{prepareForReuse(){this.content=null,this.rendered=null,this.layoutInfo=null}getReusableView(e){let t=this.reusableViews.get(e);return t&&t.length>0?t.shift():new se(this.virtualizer,this,e)}reuseChild(e){e.prepareForReuse();let t=this.reusableViews.get(e.viewType);t||(t=[],this.reusableViews.set(e.viewType,t)),t.push(e)}constructor(e,t){this.virtualizer=e,this.key=++oe,this.viewType=t,this.children=new Set,this.reusableViews=new Map,this.layoutInfo=null,this.content=null,this.rendered=null}}class ne extends D{constructor(e){super(e,"root")}}class se extends D{constructor(e,t,i){super(e,i),this.parent=t}}function re(n,e){if(n===e)return!0;if(n.size!==e.size)return!1;for(let t of n)if(!e.has(t))return!1;return!0}class ae{setVisibleRect(e){let t=performance.now()-this.startTime;t<500&&(e.x!==this.visibleRect.x&&t>0&&(this.velocity.x=(e.x-this.visibleRect.x)/t),e.y!==this.visibleRect.y&&t>0&&(this.velocity.y=(e.y-this.visibleRect.y)/t)),this.startTime=performance.now(),this.visibleRect=e}getOverscannedRect(){let e=this.visibleRect.copy(),t=this.visibleRect.height/3;if(e.height+=t,this.velocity.y<0&&(e.y-=t),this.velocity.x!==0){let i=this.visibleRect.width/3;e.width+=i,this.velocity.x<0&&(e.x-=i)}return e}constructor(){this.startTime=0,this.velocity=new x(0,0),this.visibleRect=new f}}class he{isPersistedKey(e){if(this.persistedKeys.has(e))return!0;for(let t of this.persistedKeys)for(;t!=null;){let i=this.layout.getLayoutInfo(t);if(!i||i.parentKey==null)break;if(t=i.parentKey,t===e)return!0}return!1}getParentView(e){return e.parentKey!=null?this._visibleViews.get(e.parentKey):this._rootView}getReusableView(e){let i=this.getParentView(e).getReusableView(e.type);return i.layoutInfo=e,this._renderView(i),i}_renderView(e){if(e.layoutInfo){let{type:t,key:i,content:l}=e.layoutInfo;e.content=l||this.collection.getItem(i),e.rendered=this._renderContent(t,e.content)}}_renderContent(e,t){let i=t!=null?this._renderedContent.get(t):null;if(i!=null)return i;let l=this.delegate.renderView(e,t);return t&&this._renderedContent.set(t,l),l}keyAtPoint(e){let t=new f(e.x,e.y,1,1),i=t.area===0?[]:this.layout.getVisibleLayoutInfos(t);for(let l of i)if(l.rect.intersects(t))return l.key;return null}relayout(e={}){this.layout.update(e),this.contentSize=this.layout.getContentSize();let t=this.visibleRect,i=e.contentChanged?0:t.x,l=e.contentChanged?0:t.y;if(i=Math.max(0,Math.min(this.contentSize.width-t.width,i)),l=Math.max(0,Math.min(this.contentSize.height-t.height,l)),i!==t.x||l!==t.y){let o=new f(i,l,t.width,t.height);this.delegate.setVisibleRect(o)}else this.updateSubviews()}getVisibleLayoutInfos(){let e=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,t=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientWidth"),i=e&&typeof HTMLElement<"u"&&Object.getOwnPropertyNames(HTMLElement.prototype).includes("clientHeight"),l;e&&!(t&&i)?l=new f(0,0,this.contentSize.width,this.contentSize.height):l=this._overscanManager.getOverscannedRect();let o=this.layout.getVisibleLayoutInfos(l),s=new Map;for(let a of o)s.set(a.key,a);return s}updateSubviews(){let e=this.getVisibleLayoutInfos(),t=new Set;for(let[i,l]of this._visibleViews){let o=e.get(i);(!o||l.parent!==this.getParentView(o))&&(this._visibleViews.delete(i),l.parent.reuseChild(l),t.add(l))}for(let[i,l]of e){let o=this._visibleViews.get(i);if(!o)o=this.getReusableView(l),o.parent.children.add(o),this._visibleViews.set(i,o),t.delete(o);else{o.layoutInfo=l;let s=this.collection.getItem(l.key);o.content!==s&&(o.content!=null&&this._renderedContent.delete(o.content),this._renderView(o))}}for(let i of t)i.parent.children.delete(i),i.parent.reusableViews.clear();if(!this._isScrolling)for(let i of e.keys()){let l=this._visibleViews.get(i);l.parent.children.delete(l),l.parent.children.add(l)}}render(e){let t=this,i=!1,l=!1,o=!1,s=!1,a=!1,h=!1;return e.collection!==this.collection&&(t.collection=e.collection,i=!0),(e.layout!==this.layout||this.layout.virtualizer!==this)&&(this.layout&&(this.layout.virtualizer=null),e.layout.virtualizer=this,t.layout=e.layout,i=!0),e.persistedKeys&&!re(e.persistedKeys,this.persistedKeys)&&(t.persistedKeys=e.persistedKeys,h=!0),this.visibleRect.equals(e.visibleRect)||(this._overscanManager.setVisibleRect(e.visibleRect),this.layout.shouldInvalidate(e.visibleRect,this.visibleRect)?(l=!e.visibleRect.pointEquals(this.visibleRect),o=!e.visibleRect.sizeEquals(this.visibleRect),i=!0):h=!0,t.visibleRect=e.visibleRect),e.invalidationContext!==this._invalidationContext&&(e.invalidationContext&&(o||(o=e.invalidationContext.sizeChanged||!1),l||(l=e.invalidationContext.offsetChanged||!1),s||(s=e.invalidationContext.itemSizeChanged||!1),a||(a=e.invalidationContext.layoutOptions!=null&&this._invalidationContext.layoutOptions!=null&&e.invalidationContext.layoutOptions!==this._invalidationContext.layoutOptions&&this.layout.shouldInvalidateLayoutOptions(e.invalidationContext.layoutOptions,this._invalidationContext.layoutOptions)),i||(i=s||o||l||a)),this._invalidationContext=e.invalidationContext),e.isScrolling!==this._isScrolling&&(this._isScrolling=e.isScrolling,e.isScrolling||(h=!0)),i?this.relayout({offsetChanged:l,sizeChanged:o,itemSizeChanged:s,layoutOptionsChanged:a,layoutOptions:this._invalidationContext.layoutOptions}):h&&this.updateSubviews(),Array.from(this._rootView.children)}getVisibleView(e){return this._visibleViews.get(e)}invalidate(e){this.delegate.invalidate(e)}updateItemSize(e,t){if(!this.layout.updateItemSize)return;this.layout.updateItemSize(e,t)&&this.invalidate({itemSizeChanged:!0})}constructor(e){this.delegate=e.delegate,this.collection=e.collection,this.layout=e.layout,this.contentSize=new z,this.visibleRect=new f,this.persistedKeys=new Set,this._visibleViews=new Map,this._renderedContent=new WeakMap,this._rootView=new ne(this),this._isScrolling=!1,this._invalidationContext={},this._overscanManager=new ae}}function de(n){let[e,t]=c.useState(new f(0,0,0,0)),[i,l]=c.useState(!1),[o,s]=c.useState({}),a=c.useRef(!1),[h]=c.useState(()=>new he({collection:n.collection,layout:n.layout,delegate:{setVisibleRect(w){t(w),a.current=!0},renderView:n.renderView,invalidate:s}}));C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{a.current&&(a.current=!1,n.onVisibleRectChange(e))});let r=c.useMemo(()=>n.layoutOptions!=null?{...o,layoutOptions:n.layoutOptions}:o,[o,n.layoutOptions]),d=h.render({layout:n.layout,collection:n.collection,persistedKeys:n.persistedKeys,layoutOptions:n.layoutOptions,visibleRect:e,invalidationContext:r,isScrolling:i}),u=h.contentSize,g=c.useCallback(()=>{l(!0)},[]),y=c.useCallback(()=>{l(!1)},[]);return c.useMemo(()=>({virtualizer:h,visibleViews:d,setVisibleRect:t,contentSize:u,isScrolling:i,startScrolling:g,endScrolling:y}),[h,d,t,u,i,g,y])}const $=48;class ce extends le{get collection(){return this.virtualizer.collection}getLayoutInfo(e){var t;return this.ensureLayoutInfo(e),((t=this.layoutNodes.get(e))===null||t===void 0?void 0:t.layoutInfo)||null}getVisibleLayoutInfos(e){if(e.height>1){var t,i;let s=((i=(t=this.rowHeight)!==null&&t!==void 0?t:this.estimatedRowHeight)!==null&&i!==void 0?i:$)+this.gap;e.y=Math.floor(e.y/s)*s,e.height=Math.ceil(e.height/s)*s}this.layoutIfNeeded(e);let l=[],o=s=>{for(let a of s)this.isVisible(a,e)&&(l.push(a.layoutInfo),a.children&&o(a.children))};return o(this.rootNodes),l}layoutIfNeeded(e){if(this.lastCollection){this.requestedRect.containsRect(e)||(this.requestedRect=this.requestedRect.union(e),this.rootNodes=this.buildCollection());for(let t of this.virtualizer.persistedKeys)if(this.ensureLayoutInfo(t))return}}ensureLayoutInfo(e){return!this.layoutNodes.has(e)&&this.requestedRect.area<this.contentSize.area&&this.lastCollection?(this.requestedRect=new f(0,0,1/0,1/0),this.rootNodes=this.buildCollection(),this.requestedRect=new f(0,0,this.contentSize.width,this.contentSize.height),!0):!1}isVisible(e,t){return e.layoutInfo.rect.intersects(t)||e.layoutInfo.isSticky||e.layoutInfo.type==="header"||e.layoutInfo.type==="loader"||this.virtualizer.isPersistedKey(e.layoutInfo.key)}shouldInvalidateEverything(e){let t=e.layoutOptions;var i,l,o,s,a;return e.sizeChanged||this.rowHeight!==((i=t==null?void 0:t.rowHeight)!==null&&i!==void 0?i:this.rowHeight)||this.headingHeight!==((l=t==null?void 0:t.headingHeight)!==null&&l!==void 0?l:this.headingHeight)||this.loaderHeight!==((o=t==null?void 0:t.loaderHeight)!==null&&o!==void 0?o:this.loaderHeight)||this.gap!==((s=t==null?void 0:t.gap)!==null&&s!==void 0?s:this.gap)||this.padding!==((a=t==null?void 0:t.padding)!==null&&a!==void 0?a:this.padding)}shouldInvalidateLayoutOptions(e,t){return e.rowHeight!==t.rowHeight||e.estimatedRowHeight!==t.estimatedRowHeight||e.headingHeight!==t.headingHeight||e.estimatedHeadingHeight!==t.estimatedHeadingHeight||e.loaderHeight!==t.loaderHeight||e.dropIndicatorThickness!==t.dropIndicatorThickness||e.gap!==t.gap||e.padding!==t.padding}update(e){let t=this.virtualizer.collection;this.invalidateEverything=this.shouldInvalidateEverything(e),this.invalidateEverything&&(this.requestedRect=this.virtualizer.visibleRect.copy(),this.layoutNodes.clear());let i=e.layoutOptions;var l;this.rowHeight=(l=i==null?void 0:i.rowHeight)!==null&&l!==void 0?l:this.rowHeight;var o;this.estimatedRowHeight=(o=i==null?void 0:i.estimatedRowHeight)!==null&&o!==void 0?o:this.estimatedRowHeight;var s;this.headingHeight=(s=i==null?void 0:i.headingHeight)!==null&&s!==void 0?s:this.headingHeight;var a;this.estimatedHeadingHeight=(a=i==null?void 0:i.estimatedHeadingHeight)!==null&&a!==void 0?a:this.estimatedHeadingHeight;var h;this.loaderHeight=(h=i==null?void 0:i.loaderHeight)!==null&&h!==void 0?h:this.loaderHeight;var r;this.dropIndicatorThickness=(r=i==null?void 0:i.dropIndicatorThickness)!==null&&r!==void 0?r:this.dropIndicatorThickness;var d;this.gap=(d=i==null?void 0:i.gap)!==null&&d!==void 0?d:this.gap;var u;if(this.padding=(u=i==null?void 0:i.padding)!==null&&u!==void 0?u:this.padding,this.rootNodes=this.buildCollection(),this.lastCollection&&t!==this.lastCollection)for(let g of this.lastCollection.getKeys())t.getItem(g)||this.layoutNodes.get(g)&&this.layoutNodes.delete(g);this.lastCollection=t,this.invalidateEverything=!1,this.validRect=this.requestedRect.copy()}buildCollection(e=this.padding){let t=this.virtualizer.collection,i=0,l=[],o=(t==null?void 0:t.size)===0||t.size===1&&t.getItem(t.getFirstKey()).type==="loader";o&&(e=0);for(let r of t){var s,a;let d=((a=(s=this.rowHeight)!==null&&s!==void 0?s:this.estimatedRowHeight)!==null&&a!==void 0?a:$)+this.gap;if(r.type==="item"&&e+d<this.requestedRect.y&&!this.isValid(r,e)){e+=d,i++;continue}let u=this.buildChild(r,this.padding,e,null);if(e=u.layoutInfo.rect.maxY+this.gap,l.push(u),r.type==="item"&&e>this.requestedRect.maxY){var h;let g=t.size-(l.length+i),y=t.getItem(t.getLastKey());if((y==null?void 0:y.type)==="loader"&&g--,e+=g*d,(y==null?void 0:y.type)==="loader"&&((h=l.at(-1))===null||h===void 0?void 0:h.layoutInfo.type)!=="loader"){let v=this.buildChild(y,this.padding,e,null);l.push(v),e=v.layoutInfo.rect.maxY}break}}return e-=this.gap,e+=o?0:this.padding,this.contentSize=new z(this.virtualizer.visibleRect.width,e),l}isValid(e,t){let i=this.layoutNodes.get(e.key);return!this.invalidateEverything&&!!i&&i.node===e&&t===i.layoutInfo.rect.y&&i.layoutInfo.rect.intersects(this.validRect)&&i.validRect.containsRect(i.layoutInfo.rect.intersection(this.requestedRect))}buildChild(e,t,i,l){if(this.isValid(e,i))return this.layoutNodes.get(e.key);let o=this.buildNode(e,t,i);return o.layoutInfo.parentKey=l??null,o.layoutInfo.allowOverflow=!0,this.layoutNodes.set(e.key,o),o}buildNode(e,t,i){switch(e.type){case"section":return this.buildSection(e,t,i);case"item":return this.buildItem(e,t,i);case"header":return this.buildSectionHeader(e,t,i);case"loader":return this.buildLoader(e,t,i);case"separator":return this.buildItem(e,t,i);default:throw new Error("Unsupported node type: "+e.type)}}buildLoader(e,t,i){let l=new f(t,i,this.padding,0),o=new b("loader",e.key,l);l.width=this.virtualizer.contentSize.width-this.padding-t;var s,a,h;return l.height=e.props.isLoading?(h=(a=(s=this.loaderHeight)!==null&&s!==void 0?s:this.rowHeight)!==null&&a!==void 0?a:this.estimatedRowHeight)!==null&&h!==void 0?h:$:0,{layoutInfo:o,validRect:l.intersection(this.requestedRect)}}buildSection(e,t,i){let l=this.virtualizer.collection,o=this.virtualizer.visibleRect.width-this.padding,s=new f(t,i,o-t,0),a=new b(e.type,e.key,s),h=i,r=0,d=[];for(let y of q.$c5a24bc478652b5f$export$1005530eda016c13(e,l)){var u,g;let v=((g=(u=this.rowHeight)!==null&&u!==void 0?u:this.estimatedRowHeight)!==null&&g!==void 0?g:$)+this.gap;if(i+v<this.requestedRect.y&&!this.isValid(e,i)){i+=v,r++;continue}let w=this.buildChild(y,t,i,a.key);if(i=w.layoutInfo.rect.maxY+this.gap,d.push(w),i>this.requestedRect.maxY){i+=([...q.$c5a24bc478652b5f$export$1005530eda016c13(e,l)].length-(d.length+r))*v;break}}return i-=this.gap,s.height=i-h,{layoutInfo:a,children:d,validRect:a.rect.intersection(this.requestedRect),node:e}}buildSectionHeader(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding,o=this.headingHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key),d=r==null?void 0:r.layoutInfo;if(d){let u=this.virtualizer.collection.getItem(e.key),g=this.lastCollection?this.lastCollection.getItem(e.key):null;o=d.rect.height,s=l!==d.rect.width||u!==g||d.estimatedSize}else o=e.rendered?this.estimatedHeadingHeight:0,s=!0}o==null&&(o=$);let a=new f(t,i,l-t,o),h=new b("header",e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect.intersection(this.requestedRect),node:e}}buildItem(e,t,i){let l=this.virtualizer.visibleRect.width-this.padding-t,o=this.rowHeight,s=!1;if(o==null){let r=this.layoutNodes.get(e.key);r?(o=r.layoutInfo.rect.height,s=l!==r.layoutInfo.rect.width||e!==r.node||r.layoutInfo.estimatedSize):(o=this.estimatedRowHeight,s=!0)}o==null&&(o=$);let a=new f(t,i,l,o),h=new b(e.type,e.key,a);return h.estimatedSize=s,{layoutInfo:h,children:[],validRect:h.rect,node:e}}updateItemSize(e,t){let i=this.layoutNodes.get(e);if(!i)return!1;let l=this.virtualizer.collection,o=i.layoutInfo;if(o.estimatedSize=!1,o.rect.height!==t.height){let s=o.copy();s.rect.height=t.height,i.layoutInfo=s,this.validRect.height=Math.min(this.validRect.height,o.rect.y-this.validRect.y),this.requestedRect.height+=s.rect.height-o.rect.height,this.updateLayoutNode(e,o,s);let a=o.parentKey!=null?l.getItem(o.parentKey):null;for(;a;)this.updateLayoutNode(a.key,o,s),a=a.parentKey!=null?l.getItem(a.parentKey):null;return!0}return!1}updateLayoutNode(e,t,i){let l=this.layoutNodes.get(e);l&&(l.validRect=l.validRect.intersection(this.validRect),l.layoutInfo===t&&(l.layoutInfo=i))}getContentSize(){return this.contentSize}getDropTargetFromPoint(e,t,i){e+=this.virtualizer.visibleRect.x,t+=this.virtualizer.visibleRect.y;let l=new f(e,Math.max(0,t-this.gap),1,Math.max(1,this.gap*2)),o=this.getVisibleLayoutInfos(l),s=null,a=1/0;for(let u of o){if(!u.rect.intersects(l))continue;let g=Math.abs(u.rect.y-t),y=Math.abs(u.rect.maxY-t),v=Math.min(g,y);v<a&&(a=v,s=u.key)}if(s==null||this.virtualizer.collection.size===0)return{type:"root"};let h=this.getLayoutInfo(s);if(!h)return null;let r=h.rect,d={type:"item",key:h.key,dropPosition:"on"};return i(d)?t<=r.y+10&&i({...d,dropPosition:"before"})?d.dropPosition="before":t>=r.maxY-10&&i({...d,dropPosition:"after"})&&(d.dropPosition="after"):t<=r.y+r.height/2&&i({...d,dropPosition:"before"})?d.dropPosition="before":i({...d,dropPosition:"after"})&&(d.dropPosition="after"),d}getDropTargetLayoutInfo(e){let t=this.getLayoutInfo(e.key),i;return e.dropPosition==="before"?i=new f(t.rect.x,t.rect.y-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):e.dropPosition==="after"?i=new f(t.rect.x,t.rect.maxY-this.dropIndicatorThickness/2,t.rect.width,this.dropIndicatorThickness):i=t.rect,new b("dropIndicator",e.key+":"+e.dropPosition,i)}constructor(e={}){super();var t;this.rowHeight=(t=e.rowHeight)!==null&&t!==void 0?t:null;var i;this.estimatedRowHeight=(i=e.estimatedRowHeight)!==null&&i!==void 0?i:null;var l;this.headingHeight=(l=e.headingHeight)!==null&&l!==void 0?l:null;var o;this.estimatedHeadingHeight=(o=e.estimatedHeadingHeight)!==null&&o!==void 0?o:null;var s;this.loaderHeight=(s=e.loaderHeight)!==null&&s!==void 0?s:null,this.dropIndicatorThickness=e.dropIndicatorThickness||2,this.gap=e.gap||0,this.padding=e.padding||0,this.layoutNodes=new Map,this.rootNodes=[],this.lastCollection=null,this.invalidateEverything=!1,this.validRect=new f,this.requestedRect=new f,this.contentSize=new z}}let R=null;function ue(n=!1){if(R===null||n){const e=document.createElement("div"),t=e.style;t.width="50px",t.height="50px",t.overflow="scroll",t.direction="rtl";const i=document.createElement("div"),l=i.style;return l.width="100px",l.height="100px",e.appendChild(i),document.body.appendChild(e),e.scrollLeft>0?R="positive-descending":(e.scrollLeft=1,e.scrollLeft===0?R="negative":R="positive-ascending"),document.body.removeChild(e),R}return R}function fe(n,e){let{scrollLeft:t}=n;if(e==="rtl"){let{scrollWidth:i,clientWidth:l}=n;switch(ue()){case"negative":t=-t;break;case"positive-descending":t=i-l-t;break}}return t}function ge(n,e){let{contentSize:t,onVisibleRectChange:i,innerStyle:l,onScrollStart:o,onScrollEnd:s,scrollDirection:a="both",...h}=n,r=c.useRef({scrollTop:0,scrollLeft:0,scrollEndTime:0,scrollTimeout:null,width:0,height:0,isScrolling:!1}).current,{direction:d}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),[u,g]=c.useState(!1),y=c.useCallback(p=>{p.target===p.currentTarget&&(n.onScroll&&n.onScroll(p),T.flushSync(()=>{let m=p.currentTarget.scrollTop,H=fe(p.currentTarget,d);r.scrollTop=Math.max(0,Math.min(m,t.height-r.height)),r.scrollLeft=Math.max(0,Math.min(H,t.width-r.width)),i(new f(r.scrollLeft,r.scrollTop,r.width,r.height)),r.isScrolling||(r.isScrolling=!0,g(!0),window.dispatchEvent(new Event("tk.disconnect-observer")),o&&o());let L=Date.now();r.scrollEndTime<=L+50&&(r.scrollEndTime=L+300,r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.scrollTimeout=setTimeout(()=>{r.isScrolling=!1,g(!1),r.scrollTimeout=null,window.dispatchEvent(new Event("tk.connect-observer")),s&&s()},300))}))},[n,d,r,t,i,o,s]);ee.$e9faafb641e167db$export$90fc3a17d93f704c(e,"scroll",y),c.useEffect(()=>()=>{r.scrollTimeout!=null&&clearTimeout(r.scrollTimeout),r.isScrolling&&window.dispatchEvent(new Event("tk.connect-observer"))},[]);let v=c.useRef(!1),w=C.$8ae05eaa5c114e9c$export$7f54fc3180508a52(p=>{let m=e.current;if(!m||v.current)return;v.current=!0;let H=process.env.NODE_ENV==="test"&&!process.env.VIRT_ON,L=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientWidth"),Q=Object.getOwnPropertyNames(window.HTMLElement.prototype).includes("clientHeight"),O=m.clientWidth,P=m.clientHeight,N=H&&!L?1/0:O,E=H&&!Q?1/0:P;(r.width!==N||r.height!==E)&&(r.width=N,r.height=E,p(()=>{i(new f(r.scrollLeft,r.scrollTop,N,E))}),(!H&&O!==m.clientWidth||P!==m.clientHeight)&&(r.width=m.clientWidth,r.height=m.clientHeight,p(()=>{i(new f(r.scrollLeft,r.scrollTop,r.width,r.height))}))),v.current=!1}),_=c.useRef(null),[U,G]=c.useState({});C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{if(!v.current&&(_.current==null||!t.equals(_.current)))if(typeof IS_REACT_ACT_ENVIRONMENT=="boolean"?IS_REACT_ACT_ENVIRONMENT:typeof jest<"u"){G({}),_.current=t;return}else queueMicrotask(()=>w(T.flushSync));_.current=t}),C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{w(p=>p())},[U]);let J=c.useCallback(()=>{w(T.flushSync)},[w]);Z.$9daab02d461809db$export$683480f191c0e3ea({ref:e,box:"border-box",onResize:J});let I={padding:0,...h.style};return a==="horizontal"?(I.overflowX="auto",I.overflowY="hidden"):a==="vertical"||t.width===r.width?(I.overflowY="auto",I.overflowX="hidden"):I.overflow="auto",l={width:Number.isFinite(t.width)?t.width:void 0,height:Number.isFinite(t.height)?t.height:void 0,pointerEvents:u?"none":"auto",position:"relative",...l},{scrollViewProps:{...h,style:I},contentProps:{role:"presentation",style:l}}}function ye(n){let{layoutInfo:e,virtualizer:t,ref:i}=n,l=e==null?void 0:e.key,o=c.useCallback(()=>{if(l!=null&&i.current){let s=ve(i.current);t.updateItemSize(l,s)}},[t,l,i]);return C.$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(()=>{e!=null&&e.estimatedSize&&o()}),{updateSize:o}}function ve(n){let e=n.style.height;n.style.height="";let t=new z(n.scrollWidth,n.scrollHeight);return n.style.height=e,t}function X(n){let{style:e,className:t,layoutInfo:i,virtualizer:l,parent:o,children:s}=n,{direction:a}=W.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),h=c.useRef(null);return ye({layoutInfo:i,virtualizer:l,ref:h}),c.createElement("div",{role:"presentation",ref:h,className:t,style:{...pe(i,a,o),...e}},s)}let B=new WeakMap;function pe(n,e,t){let i=e==="rtl"?"right":"left",l=B.get(n);if(l&&l[i]!=null){if(!t)return l;let h=n.rect.y-t.rect.y,r=n.rect.x-t.rect.x;if(l.top===h&&l[i]===r)return l}let o={top:n.rect.y-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.y:0),[i]:n.rect.x-(t&&!(t.allowOverflow&&n.isSticky)?t.rect.x:0),width:n.rect.width,height:n.rect.height};Object.entries(o).forEach(([h,r])=>{Number.isFinite(r)||(o[h]=void 0)});var s;let a={position:n.isSticky?"sticky":"absolute",display:n.isSticky?"inline-block":void 0,overflow:n.allowOverflow?"visible":"hidden",opacity:n.opacity,zIndex:n.zIndex,transform:(s=n.transform)!==null&&s!==void 0?s:void 0,contain:"size layout style",...o};return B.set(n,a),a}const j=c.createContext(null),A=c.createContext(null);function we(n){let{children:e,layout:t,layoutOptions:i}=n,l=c.useMemo(()=>typeof t=="function"?new t:t,[t]),o=c.useMemo(()=>({isVirtualized:!0,layoutDelegate:l,dropTargetDelegate:l.getDropTargetFromPoint?l:void 0,CollectionRoot:me,CollectionBranch:be}),[l]);return c.createElement(Y.$7135fc7d473fd974$export$4feb769f8ddf26c5.Provider,{value:o},c.createElement(A.Provider,{value:{layout:l,layoutOptions:i}},e))}function me({collection:n,persistedKeys:e,scrollRef:t,renderDropIndicator:i}){var l;let{layout:o,layoutOptions:s}=c.useContext(A),a=(l=o.useLayoutOptions)===null||l===void 0?void 0:l.call(o),h=de({layout:o,collection:n,renderView:(d,u)=>{var g;return u==null||(g=u.render)===null||g===void 0?void 0:g.call(u,u)},onVisibleRectChange(d){let u=t==null?void 0:t.current;u&&(u.scrollLeft=d.x,u.scrollTop=d.y)},persistedKeys:e,layoutOptions:c.useMemo(()=>s&&a?{...s,...a}:s||a,[s,a])}),{contentProps:r}=ge({onVisibleRectChange:h.setVisibleRect,contentSize:h.contentSize,onScrollStart:h.startScrolling,onScrollEnd:h.endScrolling},t);return c.createElement("div",r,c.createElement(j.Provider,{value:h},F(null,h.visibleViews,i)))}function be({parent:n,renderDropIndicator:e}){let i=c.useContext(j).virtualizer.getVisibleView(n.key);return F(i,Array.from(i.children),e)}function F(n,e,t){return e.map(i=>xe(n,i,t))}function xe(n,e,t){let i=c.createElement(X,{key:e.key,layoutInfo:e.layoutInfo,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},e.rendered),{collection:l,layout:o}=e.virtualizer,s=e.content;return(s==null?void 0:s.type)==="item"&&t&&o.getDropTargetLayoutInfo&&(i=c.createElement(c.Fragment,{key:e.key},K(n,e,{type:"item",key:e.content.key,dropPosition:"before"},t),i,Y.$7135fc7d473fd974$export$2dbbd341daed716d(l,s,a=>K(n,e,a,t)))),i}function K(n,e,t,i){let l=i(t);if(l){let o=e.virtualizer.layout.getDropTargetLayoutInfo(t);l=c.createElement(X,{layoutInfo:o,virtualizer:e.virtualizer,parent:n==null?void 0:n.layoutInfo},l)}return l}class Ie extends ce{getContentSize(){var t;const e=(t=this==null?void 0:this.virtualizer)==null?void 0:t.collection.getKeys();return Array.from(e||[]).forEach(i=>{this.getLayoutInfo(i)}),this.contentSize}}const $e="_listBox_iev2c_7",Re="_listBoxPopover_iev2c_19",Se="_listBoxSectionHeading_iev2c_31",ze="_listBoxButton_iev2c_38",He="_listBoxItem_iev2c_50",k={listBox:$e,listBoxPopover:Re,listBoxSectionHeading:Se,listBoxButton:ze,listBoxItem:He},Ce=({className:n,children:e,...t})=>S.jsx(we,{layout:Ie,layoutOptions:{headingHeight:44},children:S.jsx(V.$eed445e0843c11d0$export$41f133550aa26f48,{className:M.clsx(k.listBox,n),...t,children:e})}),ke=({children:n,className:e,...t})=>S.jsx(V.$eed445e0843c11d0$export$a11e76429ed99b4,{className:M.clsx(k.listBoxItem,e),...t,children:n}),_e=({className:n,children:e,...t})=>S.jsx(te.$07b14b47974efb58$export$5b6b19405a83ff9d,{className:M.clsx(n,k.listBoxPopover),offset:0,...t,children:e}),Le=({children:n,name:e,...t})=>S.jsxs(V.$eed445e0843c11d0$export$dca12b0bb56e4fc,{...t,children:[S.jsx(ie.$72a5793c14baf454$export$8b251419efc915eb,{className:k.listBoxSectionHeading,children:e}),n]});exports.ListBox=Ce;exports.ListBoxItem=ke;exports.ListBoxPopover=_e;exports.ListBoxSection=Le;exports.styles=k;
@@ -1,16 +1,16 @@
1
1
  import { jsx as _, jsxs as le } from "react/jsx-runtime";
2
- import { $ as oe, a as ne, b as se } from "./ListBox-C-isJIHL.js";
3
- import { d as re, h as ae } from "./Collection--62xKPm9.js";
2
+ import { $ as oe, a as ne, b as se } from "./ListBox-CsxDGpCA.js";
3
+ import { d as re, h as ae } from "./Collection-D2jVTmDW.js";
4
4
  import w, { useState as S, useRef as C, useMemo as k, useCallback as L, useEffect as he, createContext as X, useContext as A } from "react";
5
5
  import { $ as E, d as de } from "./mergeProps-C1U1OIeJ.js";
6
6
  import { $ as F } from "./context-CGNJ3grH.js";
7
7
  import { flushSync as P } from "react-dom";
8
- import { g as ce } from "./OverlayArrow-CfhSYL46.js";
8
+ import { g as ce } from "./OverlayArrow-DB_aVTVM.js";
9
9
  import { $ as ue } from "./useEvent-CigwyJOw.js";
10
10
  import { c as K } from "./clsx-OuTLNxxd.js";
11
- import { f as Y } from "./SelectionManager-zsWy3vsd.js";
12
- import { a as fe } from "./Dialog-CtVrVuMr.js";
13
- import { e as ge } from "./Separator-Dn5LYN5I.js";
11
+ import { f as Y } from "./SelectionManager-BubxiIKu.js";
12
+ import { a as fe } from "./Dialog-DKHo0W9B.js";
13
+ import { e as ge } from "./Separator-CEZ5y7tZ.js";
14
14
  import './assets/ListBoxSection.css';class ye {
15
15
  /**
16
16
  * Returns whether the layout should invalidate in response to
@@ -1,6 +1,6 @@
1
1
  import { $ as u } from "./context-CGNJ3grH.js";
2
- import { c } from "./SelectionManager-zsWy3vsd.js";
3
- import { $ as a } from "./scrollIntoView-BLnsPvFA.js";
2
+ import { c } from "./SelectionManager-BubxiIKu.js";
3
+ import { $ as a } from "./scrollIntoView-ClEACHUk.js";
4
4
  let s = /* @__PURE__ */ new Map();
5
5
  function y(n) {
6
6
  let { locale: t } = u(), e = t + (n ? Object.entries(n).sort((l, o) => l[0] < o[0] ? -1 : 1).join() : "");
@@ -1 +1 @@
1
- "use strict";const u=require("./context-Df3XbgBG.cjs"),c=require("./SelectionManager-D0jYUYcy.cjs"),h=require("./scrollIntoView-joIyo-Jt.cjs");let s=new Map;function g(n){let{locale:e}=u.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=e+(n?Object.entries(n).sort((l,o)=>l[0]<o[0]?-1:1).join():"");if(s.has(t))return s.get(t);let i=new Intl.Collator(e,n);return s.set(t,i),i}class a{getItemRect(e){let t=this.ref.current;if(!t)return null;let i=e!=null?c.$feb5ffebff200149$export$c3d8340acf92597f(this.ref,e):null;if(!i)return null;let l=t.getBoundingClientRect(),o=i.getBoundingClientRect();return{x:o.left-l.left+t.scrollLeft,y:o.top-l.top+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,i;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(i=e==null?void 0:e.scrollHeight)!==null&&i!==void 0?i:0}}getVisibleRect(){let e=this.ref.current;var t,i,l,o;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(i=e==null?void 0:e.scrollTop)!==null&&i!==void 0?i:0,width:(l=e==null?void 0:e.offsetWidth)!==null&&l!==void 0?l:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class d{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let i=e;for(;i!=null;){let l=this.collection.getItem(i);if((l==null?void 0:l.type)==="item"&&!this.isDisabled(l))return i;i=t(i)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,i=>this.collection.getKeyAfter(i))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,i=>this.collection.getKeyBefore(i))}findKey(e,t,i){let l=e,o=this.layoutDelegate.getItemRect(l);if(!o||l==null)return null;let r=o;do{if(l=t(l),l==null)break;o=this.layoutDelegate.getItemRect(l)}while(o&&i(r,o)&&l!=null);return l}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getFirstKey();let l=e;if(this.orientation==="horizontal"){let o=Math.max(0,i.x+i.width-this.layoutDelegate.getVisibleRect().width);for(;i&&i.x>o&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let o=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>o&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getLastKey();let l=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,i.y-i.width+this.layoutDelegate.getVisibleRect().width);for(;i&&i.x<o&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,i.y-i.height+this.layoutDelegate.getVisibleRect().height);for(;i&&i.y<o&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let i=this.collection,l=t||this.getFirstKey();for(;l!=null;){let o=i.getItem(l);if(!o)return null;let r=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(r,e)===0)return l;l=this.getNextKey(l)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new a(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new a(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}exports.$2a25aae57d74318e$export$a05409b8bb224a5a=d;exports.$325a3faab7a68acd$export$a16aca283550c30d=g;exports.$657e4dc4a6e88df0$export$8f5ed9ff9f511381=a;
1
+ "use strict";const u=require("./context-Df3XbgBG.cjs"),c=require("./SelectionManager-BJjqIWtf.cjs"),h=require("./scrollIntoView-DRSoJp89.cjs");let s=new Map;function g(n){let{locale:e}=u.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),t=e+(n?Object.entries(n).sort((l,o)=>l[0]<o[0]?-1:1).join():"");if(s.has(t))return s.get(t);let i=new Intl.Collator(e,n);return s.set(t,i),i}class a{getItemRect(e){let t=this.ref.current;if(!t)return null;let i=e!=null?c.$feb5ffebff200149$export$c3d8340acf92597f(this.ref,e):null;if(!i)return null;let l=t.getBoundingClientRect(),o=i.getBoundingClientRect();return{x:o.left-l.left+t.scrollLeft,y:o.top-l.top+t.scrollTop,width:o.width,height:o.height}}getContentSize(){let e=this.ref.current;var t,i;return{width:(t=e==null?void 0:e.scrollWidth)!==null&&t!==void 0?t:0,height:(i=e==null?void 0:e.scrollHeight)!==null&&i!==void 0?i:0}}getVisibleRect(){let e=this.ref.current;var t,i,l,o;return{x:(t=e==null?void 0:e.scrollLeft)!==null&&t!==void 0?t:0,y:(i=e==null?void 0:e.scrollTop)!==null&&i!==void 0?i:0,width:(l=e==null?void 0:e.offsetWidth)!==null&&l!==void 0?l:0,height:(o=e==null?void 0:e.offsetHeight)!==null&&o!==void 0?o:0}}constructor(e){this.ref=e}}class d{isDisabled(e){var t;return this.disabledBehavior==="all"&&(((t=e.props)===null||t===void 0?void 0:t.isDisabled)||this.disabledKeys.has(e.key))}findNextNonDisabled(e,t){let i=e;for(;i!=null;){let l=this.collection.getItem(i);if((l==null?void 0:l.type)==="item"&&!this.isDisabled(l))return i;i=t(i)}return null}getNextKey(e){let t=e;return t=this.collection.getKeyAfter(t),this.findNextNonDisabled(t,i=>this.collection.getKeyAfter(i))}getPreviousKey(e){let t=e;return t=this.collection.getKeyBefore(t),this.findNextNonDisabled(t,i=>this.collection.getKeyBefore(i))}findKey(e,t,i){let l=e,o=this.layoutDelegate.getItemRect(l);if(!o||l==null)return null;let r=o;do{if(l=t(l),l==null)break;o=this.layoutDelegate.getItemRect(l)}while(o&&i(r,o)&&l!=null);return l}isSameRow(e,t){return e.y===t.y||e.x!==t.x}isSameColumn(e,t){return e.x===t.x||e.y!==t.y}getKeyBelow(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getNextKey(t),this.isSameRow):this.getNextKey(e)}getKeyAbove(e){return this.layout==="grid"&&this.orientation==="vertical"?this.findKey(e,t=>this.getPreviousKey(t),this.isSameRow):this.getPreviousKey(e)}getNextColumn(e,t){return t?this.getPreviousKey(e):this.getNextKey(e)}getKeyRightOf(e){let t=this.direction==="ltr"?"getKeyRightOf":"getKeyLeftOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="rtl"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="rtl"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="rtl"):null}getKeyLeftOf(e){let t=this.direction==="ltr"?"getKeyLeftOf":"getKeyRightOf";return this.layoutDelegate[t]?(e=this.layoutDelegate[t](e),this.findNextNonDisabled(e,i=>this.layoutDelegate[t](i))):this.layout==="grid"?this.orientation==="vertical"?this.getNextColumn(e,this.direction==="ltr"):this.findKey(e,i=>this.getNextColumn(i,this.direction==="ltr"),this.isSameColumn):this.orientation==="horizontal"?this.getNextColumn(e,this.direction==="ltr"):null}getFirstKey(){let e=this.collection.getFirstKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyAfter(t))}getLastKey(){let e=this.collection.getLastKey();return this.findNextNonDisabled(e,t=>this.collection.getKeyBefore(t))}getKeyPageAbove(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getFirstKey();let l=e;if(this.orientation==="horizontal"){let o=Math.max(0,i.x+i.width-this.layoutDelegate.getVisibleRect().width);for(;i&&i.x>o&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let o=Math.max(0,i.y+i.height-this.layoutDelegate.getVisibleRect().height);for(;i&&i.y>o&&l!=null;)l=this.getKeyAbove(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getFirstKey()}getKeyPageBelow(e){let t=this.ref.current,i=this.layoutDelegate.getItemRect(e);if(!i)return null;if(t&&!h.$cc38e7bd3fc7b213$export$2bb74740c4e19def(t))return this.getLastKey();let l=e;if(this.orientation==="horizontal"){let o=Math.min(this.layoutDelegate.getContentSize().width,i.y-i.width+this.layoutDelegate.getVisibleRect().width);for(;i&&i.x<o&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}else{let o=Math.min(this.layoutDelegate.getContentSize().height,i.y-i.height+this.layoutDelegate.getVisibleRect().height);for(;i&&i.y<o&&l!=null;)l=this.getKeyBelow(l),i=l==null?null:this.layoutDelegate.getItemRect(l)}return l??this.getLastKey()}getKeyForSearch(e,t){if(!this.collator)return null;let i=this.collection,l=t||this.getFirstKey();for(;l!=null;){let o=i.getItem(l);if(!o)return null;let r=o.textValue.slice(0,e.length);if(o.textValue&&this.collator.compare(r,e)===0)return l;l=this.getNextKey(l)}return null}constructor(...e){if(e.length===1){let t=e[0];this.collection=t.collection,this.ref=t.ref,this.collator=t.collator,this.disabledKeys=t.disabledKeys||new Set,this.disabledBehavior=t.disabledBehavior||"all",this.orientation=t.orientation||"vertical",this.direction=t.direction,this.layout=t.layout||"stack",this.layoutDelegate=t.layoutDelegate||new a(t.ref)}else this.collection=e[0],this.disabledKeys=e[1],this.ref=e[2],this.collator=e[3],this.layout="stack",this.orientation="vertical",this.disabledBehavior="all",this.layoutDelegate=new a(this.ref);this.layout==="stack"&&this.orientation==="vertical"&&(this.getKeyLeftOf=void 0,this.getKeyRightOf=void 0)}}exports.$2a25aae57d74318e$export$a05409b8bb224a5a=d;exports.$325a3faab7a68acd$export$a16aca283550c30d=g;exports.$657e4dc4a6e88df0$export$8f5ed9ff9f511381=a;
@@ -5,7 +5,7 @@ import { i as $e } from "./useHover-DQvJ3Y-W.js";
5
5
  import { $ as q } from "./number-BE8InLgI.js";
6
6
  import { $ as ge } from "./context-CGNJ3grH.js";
7
7
  import { $ as he } from "./useControlledState-u436Wbp1.js";
8
- import { $ as be, a as xe } from "./utils-DJhAJHk_.js";
8
+ import { $ as be, a as xe } from "./utils-KLjWgdLR.js";
9
9
  import { $ as we } from "./filterDOMProps-D6KHYVBX.js";
10
10
  function Ee() {
11
11
  return typeof window.ResizeObserver < "u";
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Popover.css');const r=require("react/jsx-runtime"),a=require("./clsx-C11secjj.cjs"),p=require("./OverlayArrow-DpZ1FqOd.cjs"),i=require("./Dialog-DtHk3eXI.cjs"),n="_popover_ycjap_4",l="_arrow_ycjap_19",e={popover:n,arrow:l};function x({children:o,className:s,offset:c=4,...t}){return r.jsxs(i.$07b14b47974efb58$export$5b6b19405a83ff9d,{...t,offset:c,className:a.clsx(e.popover,s),children:[r.jsx(p.$44f671af83e7d9e0$export$746d02f47f4d381,{className:e.arrow,children:r.jsx("svg",{width:8,height:8,viewBox:"0 0 8 8",children:r.jsx("path",{d:"M0 0 L4 4 L8 0"})})}),o]})}exports.Popover=x;
@@ -1,25 +1,25 @@
1
1
  import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import { c as f } from "./clsx-OuTLNxxd.js";
3
- import { $ as c } from "./OverlayArrow-CfhSYL46.js";
4
- import { a as i } from "./Dialog-CtVrVuMr.js";
5
- import './assets/Popover.css';const m = "_popover_8b5s3_4", d = "_arrow_8b5s3_18", r = {
2
+ import { c } from "./clsx-OuTLNxxd.js";
3
+ import { $ as f } from "./OverlayArrow-DB_aVTVM.js";
4
+ import { a as i } from "./Dialog-DKHo0W9B.js";
5
+ import './assets/Popover.css';const m = "_popover_ycjap_4", d = "_arrow_ycjap_19", r = {
6
6
  popover: m,
7
7
  arrow: d
8
8
  };
9
- function v({
9
+ function x({
10
10
  children: e,
11
- className: s,
12
- offset: p = 4,
13
- ...a
11
+ className: p,
12
+ offset: a = 4,
13
+ ...s
14
14
  }) {
15
15
  return /* @__PURE__ */ t(
16
16
  i,
17
17
  {
18
- ...a,
19
- offset: p,
20
- className: f(r.popover, s),
18
+ ...s,
19
+ offset: a,
20
+ className: c(r.popover, p),
21
21
  children: [
22
- /* @__PURE__ */ o(c, { className: r.arrow, children: /* @__PURE__ */ o(
22
+ /* @__PURE__ */ o(f, { className: r.arrow, children: /* @__PURE__ */ o(
23
23
  "svg",
24
24
  {
25
25
  width: 8,
@@ -34,5 +34,5 @@ function v({
34
34
  );
35
35
  }
36
36
  export {
37
- v as P
37
+ x as P
38
38
  };
@@ -0,0 +1 @@
1
+ "use strict";const s=require("./usePress-BooY_CAy.cjs"),f=require("./mergeProps-B5KXZAI3.cjs"),n=require("./utils-DHNZrQmj.cjs"),$=require("./useFocusable-D7I1ujkW.cjs"),r=require("react"),u=r.forwardRef(({children:c,...a},t)=>{let o=r.useRef(!1),e=r.useContext(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5);t=n.$df56164dff5785e2$export$4338b53315abf666(t||(e==null?void 0:e.ref));let b=f.$3ef42575df84b30b$export$9d1611c77c2fe928(e||{},{...a,ref:t,register(){o.current=!0,e&&e.register()}});return $.$e7801be82b4b2a53$export$4debdb1a3f0fa79e(e,t),r.useEffect(()=>{o.current||(process.env.NODE_ENV!=="production"&&console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."),o.current=!0)},[]),r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:b},c)});function d({children:c}){let a=r.useMemo(()=>({register:()=>{}}),[]);return r.createElement(s.$ae1eeba8b9eafd08$export$5165eccb35aaadb5.Provider,{value:a},c)}exports.$f1ab8c75478c6f73$export$3351871ee4b288b8=u;exports.$f1ab8c75478c6f73$export$cf75428e0b9ed1ea=d;
@@ -0,0 +1,34 @@
1
+ import { a as s } from "./usePress-BW47IcyU.js";
2
+ import { a as n } from "./mergeProps-C1U1OIeJ.js";
3
+ import { b as i } from "./utils-KLjWgdLR.js";
4
+ import { $ as d } from "./useFocusable-BjE42axF.js";
5
+ import f, { useRef as b, useContext as l, useEffect as u, useMemo as $ } from "react";
6
+ const w = /* @__PURE__ */ f.forwardRef(({ children: t, ...o }, r) => {
7
+ let a = b(!1), e = l(s);
8
+ r = i(r || (e == null ? void 0 : e.ref));
9
+ let c = n(e || {}, {
10
+ ...o,
11
+ ref: r,
12
+ register() {
13
+ a.current = !0, e && e.register();
14
+ }
15
+ });
16
+ return d(e, r), u(() => {
17
+ a.current || (process.env.NODE_ENV !== "production" && console.warn("A PressResponder was rendered without a pressable child. Either call the usePress hook, or wrap your DOM node with <Pressable> component."), a.current = !0);
18
+ }, []), /* @__PURE__ */ f.createElement(s.Provider, {
19
+ value: c
20
+ }, t);
21
+ });
22
+ function E({ children: t }) {
23
+ let o = $(() => ({
24
+ register: () => {
25
+ }
26
+ }), []);
27
+ return /* @__PURE__ */ f.createElement(s.Provider, {
28
+ value: o
29
+ }, t);
30
+ }
31
+ export {
32
+ w as $,
33
+ E as a
34
+ };
@@ -1,6 +1,6 @@
1
1
  import { jsx as a, jsxs as d, Fragment as f } from "react/jsx-runtime";
2
- import { b as u } from "./Button-CFYdzG0H.js";
3
- import { L as m } from "./Label-TVxwGZ-O.js";
2
+ import { c as u } from "./Button-CepQFEit.js";
3
+ import { L as m } from "./Label-JLgFEbP9.js";
4
4
  import { c } from "./clsx-OuTLNxxd.js";
5
5
  import './assets/ProgressBar.css';const o = "_progressBar_1ekuq_4", N = "_label_1ekuq_12", v = "_value_1ekuq_17", h = "_bar_1ekuq_22", x = "_fill_1ekuq_28", s = {
6
6
  progressBar: o,
@@ -1 +1 @@
1
- "use strict";require('./assets/ProgressBar.css');const s=require("react/jsx-runtime"),x=require("./Button-DExMoP5f.cjs"),n=require("./Label-CNmTN1YY.cjs"),c=require("./clsx-C11secjj.cjs"),m="_progressBar_1ekuq_4",d="_label_1ekuq_12",q="_value_1ekuq_17",N="_bar_1ekuq_22",f="_fill_1ekuq_28",a={progressBar:m,label:d,value:q,bar:N,fill:f},j=({label:r,labelProps:e,showValueLabel:l=!1,...t})=>s.jsx(x.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...t,className:c.clsx(a.progressBar,t.className),children:({percentage:i,valueText:u,isIndeterminate:_})=>s.jsxs(s.Fragment,{children:[r&&s.jsx(n.Label,{elementType:"span",...e,className:c.clsx(e==null?void 0:e.className,a.label),children:r}),l&&s.jsx(n.Label,{elementType:"span",...e,id:"",className:c.clsx(e==null?void 0:e.className,a.value),children:u}),s.jsx("div",{className:a.bar,children:s.jsx("div",{className:a.fill,style:{width:`${_?50:i}%`}})})]})});exports.ProgressBar=j;
1
+ "use strict";require('./assets/ProgressBar.css');const s=require("react/jsx-runtime"),x=require("./Button-DExMoP5f.cjs"),n=require("./Label-VO6CAFux.cjs"),c=require("./clsx-C11secjj.cjs"),m="_progressBar_1ekuq_4",d="_label_1ekuq_12",q="_value_1ekuq_17",N="_bar_1ekuq_22",f="_fill_1ekuq_28",a={progressBar:m,label:d,value:q,bar:N,fill:f},j=({label:r,labelProps:e,showValueLabel:l=!1,...t})=>s.jsx(x.$0393f8ab869a0f1a$export$c17561cb55d4db30,{...t,className:c.clsx(a.progressBar,t.className),children:({percentage:i,valueText:u,isIndeterminate:_})=>s.jsxs(s.Fragment,{children:[r&&s.jsx(n.Label,{elementType:"span",...e,className:c.clsx(e==null?void 0:e.className,a.label),children:r}),l&&s.jsx(n.Label,{elementType:"span",...e,id:"",className:c.clsx(e==null?void 0:e.className,a.value),children:u}),s.jsx("div",{className:a.bar,children:s.jsx("div",{className:a.fill,style:{width:`${_?50:i}%`}})})]})});exports.ProgressBar=j;
@@ -0,0 +1 @@
1
+ "use strict";require('./assets/Radio.css');const y=require("react/jsx-runtime"),L=require("./Group-DOpbdoAi.cjs"),v=require("./utils-DHNZrQmj.cjs"),w=require("./FieldError-Bv3Q6ZP-.cjs"),N=require("./Form-BuOomA4T.cjs"),j=require("./Button-DExMoP5f.cjs"),k=require("./Text-CfcjRtke.cjs"),V=require("./mergeProps-B5KXZAI3.cjs"),E=require("./filterDOMProps-BS2lrgFA.cjs"),o=require("react"),_=require("./useFormValidation-BlFGdPZB.cjs"),M=require("./usePress-BooY_CAy.cjs"),T=require("./useFocusable-D7I1ujkW.cjs"),W=require("./FocusScope-vcXLOQiu.cjs"),A=require("./useFocusWithin-CG8mAt2D.cjs"),H=require("./useField-D1UkzeaI.cjs"),K=require("./context-Df3XbgBG.cjs"),U=require("./useFocusRing-B-A1OLhU.cjs"),z=require("./useHover-BE_XKZKe.cjs"),J=require("./VisuallyHidden-Doyzl0F7.cjs"),Q=require("./useControlledState-D0L6S_5r.cjs"),S=require("./clsx-C11secjj.cjs"),C=require("./Label-VO6CAFux.cjs"),X=require("./Text-DBHWi5gA.cjs"),O=new WeakMap;function Y(a,e,d){let{value:l,children:s,"aria-label":r,"aria-labelledby":t}=a;const i=a.isDisabled||e.isDisabled;let b=s!=null,f=r!=null||t!=null;!b&&!f&&process.env.NODE_ENV!=="production"&&console.warn("If you do not provide children, you must specify an aria-label for accessibility");let n=e.selectedValue===l,P=D=>{D.stopPropagation(),e.setSelectedValue(l)},{pressProps:h,isPressed:R}=M.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:i}),{pressProps:m,isPressed:p}=M.$f6c31cce2adf654f$export$45712eceda6fad21({isDisabled:i,onPress(){var D;e.setSelectedValue(l),(D=d.current)===null||D===void 0||D.focus()}}),{focusableProps:I}=T.$f645667febf57a63$export$4c014de7c8940b4c(V.$3ef42575df84b30b$export$9d1611c77c2fe928(a,{onFocus:()=>e.setLastFocusedValue(l)}),d),g=V.$3ef42575df84b30b$export$9d1611c77c2fe928(h,I),F=E.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),x=-1;e.selectedValue!=null?e.selectedValue===l&&(x=0):(e.lastFocusedValue===l||e.lastFocusedValue==null)&&(x=0),i&&(x=void 0);let{name:$,descriptionId:c,errorMessageId:q,validationBehavior:u}=O.get(e);return _.$99facab73266f662$export$5add1d006293d136(d,e.selectedValue,e.setSelectedValue),_.$e93e671b31057976$export$b8473d3665f3a75a({validationBehavior:u},e,d),{labelProps:V.$3ef42575df84b30b$export$9d1611c77c2fe928(m,{onClick:D=>D.preventDefault()}),inputProps:V.$3ef42575df84b30b$export$9d1611c77c2fe928(F,{...g,type:"radio",name:$,tabIndex:x,disabled:i,required:e.isRequired&&u==="native",checked:n,value:l,onChange:P,"aria-describedby":[a["aria-describedby"],e.isInvalid?q:null,c].filter(Boolean).join(" ")||void 0}),isDisabled:i,isSelected:n,isPressed:R||p}}function Z(a,e){let{name:d,isReadOnly:l,isRequired:s,isDisabled:r,orientation:t="vertical",validationBehavior:i="aria"}=a,{direction:b}=K.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{isInvalid:f,validationErrors:n,validationDetails:P}=e.displayValidation,{labelProps:h,fieldProps:R,descriptionProps:m,errorMessageProps:p}=H.$2baaea4c71418dea$export$294aa081a6c6f55d({...a,labelElementType:"span",isInvalid:e.isInvalid,errorMessage:a.errorMessage||n}),I=E.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(a,{labelable:!0}),{focusWithinProps:g}=A.$9ab94262bd0047c7$export$420e68273165f4ec({onBlurWithin($){var c;(c=a.onBlur)===null||c===void 0||c.call(a,$),e.selectedValue||e.setLastFocusedValue(null)},onFocusWithin:a.onFocus,onFocusWithinChange:a.onFocusChange}),F=$=>{let c;switch($.key){case"ArrowRight":b==="rtl"&&t!=="vertical"?c="prev":c="next";break;case"ArrowLeft":b==="rtl"&&t!=="vertical"?c="next":c="prev";break;case"ArrowDown":c="next";break;case"ArrowUp":c="prev";break;default:return}$.preventDefault();let q=W.$9bf71ea28793e738$export$2d6ec8fc375ceafa($.currentTarget,{from:$.target}),u;c==="next"?(u=q.nextNode(),u||(q.currentNode=$.currentTarget,u=q.firstChild())):(u=q.previousNode(),u||(q.currentNode=$.currentTarget,u=q.lastChild())),u&&(u.focus(),e.setSelectedValue(u.value))},x=V.$bdb11010cef70236$export$f680877a34711e37(d);return O.set(e,{name:x,descriptionId:m.id,errorMessageId:p.id,validationBehavior:i}),{radioGroupProps:V.$3ef42575df84b30b$export$9d1611c77c2fe928(I,{role:"radiogroup",onKeyDown:F,"aria-invalid":e.isInvalid||void 0,"aria-errormessage":a["aria-errormessage"],"aria-readonly":l||void 0,"aria-required":s||void 0,"aria-disabled":r||void 0,"aria-orientation":t,...R,...g}),labelProps:h,descriptionProps:m,errorMessageProps:p,isInvalid:f,validationErrors:n,validationDetails:P}}let ee=Math.round(Math.random()*1e10),ae=0;function ie(a){let e=o.useMemo(()=>a.name||`radio-group-${ee}-${++ae}`,[a.name]);var d;let[l,s]=Q.$458b0a5536c1a7cf$export$40bfa8c7b0832715(a.value,(d=a.defaultValue)!==null&&d!==void 0?d:null,a.onChange),[r,t]=o.useState(null),i=_.$e5be200c675c3b3a$export$fc1a364ae1f3ff10({...a,value:l}),b=n=>{!a.isReadOnly&&!a.isDisabled&&(s(n),i.commitValidation())},f=i.displayValidation.isInvalid;return{...i,name:e,selectedValue:l,setSelectedValue:b,lastFocusedValue:r,setLastFocusedValue:t,isDisabled:a.isDisabled||!1,isReadOnly:a.isReadOnly||!1,isRequired:a.isRequired||!1,validationState:a.validationState||(f?"invalid":null),isInvalid:f}}const de=o.createContext(null),re=o.createContext(null),G=o.createContext(null),le=o.forwardRef(function(e,d){[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(e,d,de);let{validationBehavior:l}=v.$64fa3d84918910a7$export$fabf2dc03a41866e(N.$d3e0e05bdfcf66bd$export$c24727297075ec6a)||{};var s,r;let t=(r=(s=e.validationBehavior)!==null&&s!==void 0?s:l)!==null&&r!==void 0?r:"native",i=ie({...e,validationBehavior:t}),[b,f]=v.$64fa3d84918910a7$export$9d4c57ee4c6ffdd8(!e["aria-label"]&&!e["aria-labelledby"]),{radioGroupProps:n,labelProps:P,descriptionProps:h,errorMessageProps:R,...m}=Z({...e,label:f,validationBehavior:t},i),p=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,values:{orientation:e.orientation||"vertical",isDisabled:i.isDisabled,isReadOnly:i.isReadOnly,isRequired:i.isRequired,isInvalid:i.isInvalid,state:i},defaultClassName:"react-aria-RadioGroup"});return o.createElement("div",{...n,...p,ref:d,slot:e.slot||void 0,"data-orientation":e.orientation||"vertical","data-invalid":i.isInvalid||void 0,"data-disabled":i.isDisabled||void 0,"data-readonly":i.isReadOnly||void 0,"data-required":i.isRequired||void 0},o.createElement(v.$64fa3d84918910a7$export$2881499e37b75b9a,{values:[[G,i],[j.$01b77f81d0f07f68$export$75b6ee27786ba447,{...P,ref:b,elementType:"span"}],[k.$514c0188e459b4c0$export$9afb8bc826b033ea,{slots:{description:h,errorMessage:R}}],[w.$ee014567cb39d3f0$export$ff05c3ac10437e03,m]]},p.children))}),te=o.forwardRef(function(e,d){let{inputRef:l=null,...s}=e;[e,d]=v.$64fa3d84918910a7$export$29f1550f4b0d4415(s,d,re);let r=o.useContext(G),t=v.$df56164dff5785e2$export$4338b53315abf666(o.useMemo(()=>v.$5dc95899b306f630$export$c9058316764c140e(l,e.inputRef!==void 0?e.inputRef:null),[l,e.inputRef])),{labelProps:i,inputProps:b,isSelected:f,isDisabled:n,isPressed:P}=Y({...v.$64fa3d84918910a7$export$ef03459518577ad4(e),children:typeof e.children=="function"?!0:e.children},r,t),{isFocused:h,isFocusVisible:R,focusProps:m}=U.$f7dceffc5ad7768b$export$4e328f61c538687f(),p=n||r.isReadOnly,{hoverProps:I,isHovered:g}=z.$6179b936705e76d3$export$ae780daf29e6d456({...e,isDisabled:p}),F=v.$64fa3d84918910a7$export$4d86445c2cf5e3({...e,defaultClassName:"react-aria-Radio",values:{isSelected:f,isPressed:P,isHovered:g,isFocused:h,isFocusVisible:R,isDisabled:n,isReadOnly:r.isReadOnly,isInvalid:r.isInvalid,isRequired:r.isRequired}}),x=E.$65484d02dcb7eb3e$export$457c3d6518dd4c6f(e);return delete x.id,o.createElement("label",{...V.$3ef42575df84b30b$export$9d1611c77c2fe928(x,i,I,F),ref:d,"data-selected":f||void 0,"data-pressed":P||void 0,"data-hovered":g||void 0,"data-focused":h||void 0,"data-focus-visible":R||void 0,"data-disabled":n||void 0,"data-readonly":r.isReadOnly||void 0,"data-invalid":r.isInvalid||void 0,"data-required":r.isRequired||void 0},o.createElement(J.$5c3e21d68f1c4674$export$439d29a4e110a164,{elementType:"span"},o.createElement("input",{...V.$3ef42575df84b30b$export$9d1611c77c2fe928(b,m),ref:t})),F.children)}),oe="_radioGroup_i4hw0_4",se="_wrap_i4hw0_15",ne="_radio_i4hw0_4",B={radioGroup:oe,wrap:se,radio:ne},ce=({label:a,description:e,errorMessage:d,children:l,className:s,errorPosition:r="top",popover:t,...i})=>y.jsxs(le,{...i,className:S.clsx(B.radioGroup,s),children:[y.jsx(C.LabelWrapper,{popover:t,children:a&&y.jsx(C.Label,{children:a})}),e&&y.jsx(X.Text,{slot:"description",children:e}),r==="top"&&y.jsx(w.FieldError,{"data-testid":"fieldError",children:d}),y.jsx(L.$a049562f99e7db0e$export$eb2fcfdbd7ba97d4,{className:B.wrap,children:l}),r==="bottom"&&y.jsx(w.FieldError,{"data-testid":"fieldError",children:d})]}),ue=({className:a,...e})=>y.jsx(te,{className:S.clsx(B.radio,a),...e});exports.Radio=ue;exports.RadioGroup=ce;