@midas-ds/components 10.4.1 → 11.1.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 (251) hide show
  1. package/{AccordionItem-oeN1Cc09.js → AccordionItem-BPOQqTkQ.js} +17 -16
  2. package/AccordionItem-CS-QKqrU.cjs +1 -0
  3. package/{BadgeContainer-DM8TdyMT.js → BadgeContainer-CKBIZWsc.js} +13 -13
  4. package/BadgeContainer-DWVHS5dn.cjs +1 -0
  5. package/{Breadcrumbs-D8ad6xvL.js → Breadcrumbs-BBzSV4SK.js} +4 -4
  6. package/{Breadcrumbs-DkJIkGG5.cjs → Breadcrumbs-CFUryOhf.cjs} +1 -1
  7. package/{Button-DtSrCAf6.js → Button-BjMaGya2.js} +1 -1
  8. package/{Button-CFYdzG0H.js → Button-CepQFEit.js} +4 -4
  9. package/CHANGELOG.md +34 -0
  10. package/{Card-BzJ_OEe6.js → Card-BRs1FKX5.js} +3 -3
  11. package/{CharacterCounter-cLhqPZlk.js → CharacterCounter-DpBDwvLw.js} +2 -2
  12. package/{Checkbox-LuUwTZ3W.js → Checkbox-EB_SCBEo.js} +3 -3
  13. package/CheckboxGroup-CT_eqERw.cjs +1 -0
  14. package/{CheckboxGroup-CcTfzurp.js → CheckboxGroup-oosHSGAt.js} +7 -8
  15. package/{Collection--62xKPm9.js → Collection-D2jVTmDW.js} +1 -1
  16. package/{ColorSchemeSwitch-y8qKczjQ.js → ColorSchemeSwitch-Cnyb9EKC.js} +1 -1
  17. package/ComboBox-CQ49PhNd.cjs +1 -0
  18. package/{ComboBox-CZyP8Dfh.js → ComboBox-D4MsSPBu.js} +64 -65
  19. package/{DateField-1w5J_iyF.cjs → DateField-BURrxhil.cjs} +1 -1
  20. package/{DateField-BTROlenJ.js → DateField-COs1-CkQ.js} +4 -4
  21. package/{DateInputDivider-Bi5N-C0c.js → DateInputDivider-B3oE1_tB.js} +39 -38
  22. package/DateInputDivider-ToFY-yjB.cjs +1 -0
  23. package/DateRangePicker-Bfibl08v.cjs +6 -0
  24. package/{DateRangePicker-DmZP9laM.js → DateRangePicker-CvEycxmX.js} +43 -44
  25. package/{Dialog-DnMwnqiC.cjs → Dialog-B3R3WtL5.cjs} +1 -1
  26. package/{Dialog-0ZBhhPyd.js → Dialog-BkUw6PlA.js} +6 -6
  27. package/{Dialog-CtVrVuMr.js → Dialog-DKHo0W9B.js} +443 -468
  28. package/Dialog-DtHk3eXI.cjs +1 -0
  29. package/{DragAndDrop-BoEd260f.cjs → DragAndDrop-CSg60YQE.cjs} +1 -1
  30. package/{DragAndDrop-DkSTL28C.js → DragAndDrop-DOXLfJaA.js} +1 -1
  31. package/{Dropdown-By91MEV2.cjs → Dropdown-CYakzdJg.cjs} +1 -1
  32. package/{Dropdown-BEAMfAxj.js → Dropdown-D6WCi_Ll.js} +2 -2
  33. package/FieldError-Bv3Q6ZP-.cjs +1 -0
  34. package/FieldError-CDCvUjK5.js +46 -0
  35. package/{FileUpload-DvQdIZ6k.js → FileUpload-BokzdXVc.js} +448 -562
  36. package/{FileUpload-vf0oJd0K.cjs → FileUpload-Bz9md5zc.cjs} +2 -2
  37. package/{FocusScope-D_hwN_TJ.js → FocusScope-BCsrRPqD.js} +1 -1
  38. package/{Group-CpkUzEAs.js → Group-B0vQfHDy.js} +1 -1
  39. package/{Heading-NxtGri2i.js → Heading-D2y_kiC0.js} +1 -1
  40. package/{InfoBanner-yj90XVEP.js → InfoBanner-D05poAe3.js} +1 -1
  41. package/{Input-LnjmFI1x.js → Input-n-Z20KbW.js} +1 -1
  42. package/{Label-E3LhQfNv.cjs → Label-ChjDdBlv.cjs} +1 -1
  43. package/{Label-D2GmP8_2.js → Label-DA6FZwy0.js} +4 -4
  44. package/{Layout-Ri7XQHFp.cjs → Layout-BwLxIwtY.cjs} +1 -1
  45. package/{Layout-BMNgqjXv.js → Layout-CcADAhds.js} +6 -6
  46. package/{Link-Bn8V3ZI0.js → Link-CibH8uRY.js} +3 -3
  47. package/{Link-CVvnCOGP.cjs → Link-ESjrl63P.cjs} +1 -1
  48. package/{Link-BCVI5W_i.js → Link-ovwNVMfg.js} +12 -11
  49. package/{LinkButton-Cui-gvAk.js → LinkButton-BkZULm2a.js} +1 -1
  50. package/{ListBox-BCz5-23H.cjs → ListBox-B0E1hdEt.cjs} +1 -1
  51. package/{ListBox-C-isJIHL.js → ListBox-CsxDGpCA.js} +11 -11
  52. package/{ListBoxButton-DNm3gvcT.cjs → ListBoxButton-BsuHFd_O.cjs} +1 -1
  53. package/{ListBoxButton-C_krklY0.js → ListBoxButton-DawRfuny.js} +1 -1
  54. package/{ListBoxSection-CfQZoURJ.cjs → ListBoxSection-C-Rz358T.cjs} +1 -1
  55. package/{ListBoxSection-BVR2xtOH.js → ListBoxSection-Cc2cx0_S.js} +6 -6
  56. package/{ListKeyboardDelegate-CY6t6y1t.js → ListKeyboardDelegate-C-sPNj0f.js} +2 -2
  57. package/{ListKeyboardDelegate-CPsZ7D83.cjs → ListKeyboardDelegate-ZKBk2IId.cjs} +1 -1
  58. package/{OverlayArrow-CfhSYL46.js → OverlayArrow-DB_aVTVM.js} +1 -1
  59. package/{Popover-CnAsw3wI.cjs → Popover-BDvKByTT.cjs} +1 -1
  60. package/{Popover-C8VY1YKi.js → Popover-DHoXfBp2.js} +3 -3
  61. package/PressResponder-4jE_HLu3.cjs +1 -0
  62. package/PressResponder-C3APAKsz.js +34 -0
  63. package/{ProgressBar-Bpq-hyZa.js → ProgressBar-C0IBfi5I.js} +2 -2
  64. package/{ProgressBar-D4lOEhAh.cjs → ProgressBar-ClysdvqU.cjs} +1 -1
  65. package/{Radio-BPcq9kW5.js → Radio-B6N9dCtB.js} +19 -20
  66. package/Radio-Cz0vLIBw.cjs +1 -0
  67. package/{RangeCalendar-6miAJVoO.js → RangeCalendar-BCruEq9d.js} +16 -15
  68. package/RangeCalendar-BY82hPRu.cjs +11 -0
  69. package/{SearchField-DEoGi9xv.cjs → SearchField-QFyuaT-K.cjs} +1 -1
  70. package/{SearchField-CDyD5iWr.js → SearchField-nwlyszwt.js} +3 -3
  71. package/{Select-B2wYDnAU.js → Select-DMVj2lrG.js} +104 -105
  72. package/Select-DiCEyap1.cjs +1 -0
  73. package/SelectionManager-BJjqIWtf.cjs +1 -0
  74. package/{SelectionManager-zsWy3vsd.js → SelectionManager-BubxiIKu.js} +25 -24
  75. package/{Separator-Dn5LYN5I.js → Separator-CEZ5y7tZ.js} +4 -4
  76. package/{Separator-CxF-3jhR.cjs → Separator-DPLEx950.cjs} +1 -1
  77. package/{TabList-CheXtBJm.cjs → TabList-BkSWzbDG.cjs} +1 -1
  78. package/{TabList-D0qzIjSx.js → TabList-QApx8qRC.js} +8 -8
  79. package/{Table-zKvjzd9t.js → Table-B5Aine4F.js} +35 -34
  80. package/Table-DGYC-sDq.cjs +16 -0
  81. package/{Tag-BoqT5nbh.js → Tag-Byva_Xuy.js} +123 -122
  82. package/Tag-bYq-wf5D.cjs +1 -0
  83. package/{Text-DlKqpvSa.js → Text-BPcfhYQ9.js} +1 -1
  84. package/{Text-92cPh38G.js → Text-DcZqSUN9.js} +3 -3
  85. package/{TextArea-B5und61h.cjs → TextArea-DJKHFKuI.cjs} +1 -1
  86. package/{TextArea-Pxr-eLXe.js → TextArea-eK7Jx3qs.js} +8 -8
  87. package/{TextField-BdK9KEQ5.cjs → TextField-BAX93sq7.cjs} +1 -1
  88. package/{TextField-ByDJkig9.js → TextField-Dma22dnD.js} +19 -19
  89. package/{Toast-DfKiA5hp.js → Toast-CWt_mNIg.js} +1 -1
  90. package/{ToggleButtonGroup-DhlfvYGg.js → ToggleButtonGroup-HjvaTYD4.js} +3 -3
  91. package/{Tooltip-5mLWn_wO.js → Tooltip-DjNc93tV.js} +3 -3
  92. package/accordion/Accordion.d.ts +1 -2
  93. package/accordion/index.cjs +1 -1
  94. package/accordion/index.d.ts +2 -1
  95. package/accordion/index.js +3 -2
  96. package/assets/BadgeContainer.css +1 -1
  97. package/assets/Button.css +1 -1
  98. package/assets/FileUpload.css +1 -1
  99. package/assets/LinkButton.css +1 -1
  100. package/assets/Popover.css +1 -1
  101. package/badge/index.cjs +1 -1
  102. package/badge/index.js +1 -1
  103. package/breadcrumbs/index.cjs +1 -1
  104. package/breadcrumbs/index.d.ts +1 -0
  105. package/breadcrumbs/index.js +1 -1
  106. package/button/Button.d.ts +1 -2
  107. package/button/index.d.ts +1 -1
  108. package/button/index.js +1 -1
  109. package/calendar/index.cjs +1 -1
  110. package/calendar/index.js +1 -1
  111. package/card/index.js +1 -1
  112. package/character-counter/index.js +1 -1
  113. package/checkbox/index.cjs +1 -1
  114. package/checkbox/index.js +2 -2
  115. package/color-scheme-switch/index.d.ts +1 -0
  116. package/color-scheme-switch/index.js +1 -1
  117. package/combobox/ComboBox.d.ts +1 -1
  118. package/combobox/index.cjs +1 -1
  119. package/combobox/index.js +1 -1
  120. package/date-field/index.cjs +1 -1
  121. package/date-field/index.d.ts +1 -0
  122. package/date-field/index.js +2 -2
  123. package/date-picker/index.cjs +1 -1
  124. package/date-picker/index.js +1 -1
  125. package/dropdown/Dropdown.d.ts +1 -2
  126. package/dropdown/index.cjs +1 -1
  127. package/dropdown/index.d.ts +1 -1
  128. package/dropdown/index.js +1 -1
  129. package/field-error/index.cjs +1 -1
  130. package/field-error/index.d.ts +1 -0
  131. package/field-error/index.js +1 -1
  132. package/file-upload/FileUpload.d.ts +3 -14
  133. package/file-upload/index.cjs +1 -1
  134. package/file-upload/index.d.ts +1 -1
  135. package/file-upload/index.js +3 -2
  136. package/{getScrollParent-CsZ9ciml.cjs → getScrollParent-DuKmPmUa.cjs} +1 -1
  137. package/{getScrollParent-CT_L9LUr.js → getScrollParent-Ru2U2LlM.js} +1 -1
  138. package/grid/index.d.ts +1 -1
  139. package/heading/index.d.ts +1 -0
  140. package/heading/index.js +1 -1
  141. package/index.cjs +1 -1
  142. package/index.d.ts +1 -1
  143. package/index.js +118 -116
  144. package/info-banner/index.d.ts +1 -1
  145. package/info-banner/index.js +1 -1
  146. package/label/index.cjs +1 -1
  147. package/label/index.js +1 -1
  148. package/layout/index.cjs +1 -1
  149. package/layout/index.d.ts +1 -0
  150. package/layout/index.js +1 -1
  151. package/link/Link.d.ts +2 -2
  152. package/link/index.cjs +1 -1
  153. package/link/index.d.ts +1 -1
  154. package/link/index.js +2 -2
  155. package/link-button/LinkButton.d.ts +2 -2
  156. package/link-button/index.d.ts +1 -0
  157. package/link-button/index.js +2 -2
  158. package/list-box/index.cjs +1 -1
  159. package/list-box/index.js +2 -2
  160. package/modal/Dialog.d.ts +1 -1
  161. package/modal/index.cjs +1 -1
  162. package/modal/index.d.ts +1 -1
  163. package/modal/index.js +2 -2
  164. package/package.json +1 -1
  165. package/popover/Popover.d.ts +1 -2
  166. package/popover/index.cjs +1 -1
  167. package/popover/index.d.ts +1 -0
  168. package/popover/index.js +1 -1
  169. package/progress-bar/ProgressBar.d.ts +1 -2
  170. package/progress-bar/index.cjs +1 -1
  171. package/progress-bar/index.d.ts +1 -0
  172. package/progress-bar/index.js +1 -1
  173. package/radio/Radio.d.ts +1 -2
  174. package/radio/index.cjs +1 -1
  175. package/radio/index.d.ts +1 -1
  176. package/radio/index.js +1 -1
  177. package/scrollIntoView-ClEACHUk.js +57 -0
  178. package/scrollIntoView-DRSoJp89.cjs +1 -0
  179. package/search-field/index.cjs +1 -1
  180. package/search-field/index.d.ts +1 -1
  181. package/search-field/index.js +1 -1
  182. package/select/Select.d.ts +1 -1
  183. package/select/index.cjs +1 -1
  184. package/select/index.js +1 -1
  185. package/skeleton/index.d.ts +1 -1
  186. package/spinner/index.d.ts +1 -1
  187. package/table/index.cjs +1 -1
  188. package/table/index.d.ts +1 -0
  189. package/table/index.js +1 -1
  190. package/tabs/index.cjs +1 -1
  191. package/tabs/index.d.ts +1 -0
  192. package/tabs/index.js +1 -1
  193. package/tag/index.cjs +1 -1
  194. package/tag/index.d.ts +1 -1
  195. package/tag/index.js +1 -1
  196. package/text/index.d.ts +1 -0
  197. package/text/index.js +1 -1
  198. package/textfield/index.cjs +1 -1
  199. package/textfield/index.d.ts +3 -0
  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/Toast.d.ts +2 -3
  206. package/toast/index.d.ts +1 -0
  207. package/toast/index.js +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/Tooltip.d.ts +1 -2
  212. package/tooltip/index.d.ts +1 -0
  213. package/tooltip/index.js +1 -1
  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/AccordionItem-D2QYNgZS.cjs +0 -1
  233. package/BadgeContainer-I1XA3OCl.cjs +0 -1
  234. package/CheckboxGroup-DWxQTABg.cjs +0 -1
  235. package/ComboBox-Dg2xhkLC.cjs +0 -1
  236. package/DateInputDivider-3BvwXXa9.cjs +0 -1
  237. package/DateRangePicker-CX3830ZF.cjs +0 -6
  238. package/Dialog-CSnN6baf.cjs +0 -1
  239. package/FieldError-B3YFj-an.js +0 -23
  240. package/FieldError-BbR-29BM.js +0 -28
  241. package/FieldError-MVsU-Mgw.cjs +0 -1
  242. package/FieldError-bRTpchvr.cjs +0 -1
  243. package/Radio-CwNbUGah.cjs +0 -1
  244. package/RangeCalendar-CAI1PRDo.cjs +0 -11
  245. package/Select-nRN944QZ.cjs +0 -1
  246. package/SelectionManager-D0jYUYcy.cjs +0 -1
  247. package/Table-DAhnYYIA.cjs +0 -16
  248. package/Tag-t-aJVo3W.cjs +0 -1
  249. package/file-upload/intl/translations.json.d.ts +0 -17
  250. package/scrollIntoView-BLnsPvFA.js +0 -87
  251. package/scrollIntoView-joIyo-Jt.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),p=require("./clsx-C11secjj.cjs"),b=require("./Button-DExMoP5f.cjs"),f=require("./Popover-CnAsw3wI.cjs"),d=require("./Button-Dq6ugqxT.cjs"),v=require("./Dialog-CSnN6baf.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_khdpe_4",_={labelBase:j},I="_labelPopover_1ici8_4",q="_labelPopoverTrigger_1ici8_10",u={labelPopover:I,labelPopoverTrigger:q},L={moreInfo:"More info"},O={moreInfo:"Mer information"},T={en:L,sv:O},$=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(T);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:u.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:u.labelPopover,children:[e,t.jsx($,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:p.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(b.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
1
+ "use strict";require('./assets/Label.css');const t=require("react/jsx-runtime"),l=require("react"),p=require("./clsx-C11secjj.cjs"),b=require("./Button-DExMoP5f.cjs"),f=require("./Popover-BDvKByTT.cjs"),d=require("./Button-Dq6ugqxT.cjs"),v=require("./Dialog-DtHk3eXI.cjs"),g=require("./info-Dj6SyPex.cjs"),m=require("./useLocalizedStringFormatter-BO2iZEL0.cjs");function x(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const P=x(l),j="_labelBase_khdpe_4",_={labelBase:j},I="_labelPopover_1ici8_4",q="_labelPopoverTrigger_1ici8_10",u={labelPopover:I,labelPopoverTrigger:q},L={moreInfo:"More info"},O={moreInfo:"Mer information"},T={en:L,sv:O},$=({children:e,"aria-label":o})=>{const[r,s]=l.useState(!1),n=l.useContext(c),a=m.useLocalizedStringFormatter(T);return t.jsxs(v.$de32f1b87079253c$export$2e1e1122cf0cba88,{isOpen:r,onOpenChange:s,children:[t.jsx(d.Button,{variant:"icon",size:"medium",className:u.labelPopoverTrigger,"aria-label":o||a.format("moreInfo"),id:n==null?void 0:n.popoverId,children:t.jsx(g.Info,{size:20})}),t.jsx(f.Popover,{children:e})]})},c=l.createContext(void 0),y=({children:e,popover:o})=>{const r=l.useId();return o?t.jsx(c.Provider,{value:{popoverId:r},children:t.jsxs("div",{className:u.labelPopover,children:[e,t.jsx($,{...o})]})}):e},i="label",B=({children:e,className:o,elementType:r=i,...s})=>{const n={className:p.clsx(_.labelBase,o),elementType:r||i,...s},a=P.useContext(c);return t.jsx(b.$01b77f81d0f07f68$export$b04be29aa201d4f5,{...n,"aria-describedby":a==null?void 0:a.popoverId,children:e})};exports.Label=B;exports.LabelWrapper=y;
@@ -2,10 +2,10 @@ import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
2
  import * as f from "react";
3
3
  import n from "react";
4
4
  import { c as b } from "./clsx-OuTLNxxd.js";
5
- import { d } from "./Button-CFYdzG0H.js";
6
- import { P as v } from "./Popover-C8VY1YKi.js";
7
- import { B as u } from "./Button-DtSrCAf6.js";
8
- import { $ as P } from "./Dialog-CtVrVuMr.js";
5
+ import { d } from "./Button-CepQFEit.js";
6
+ import { P as v } from "./Popover-DHoXfBp2.js";
7
+ import { B as u } from "./Button-BjMaGya2.js";
8
+ import { $ as P } from "./Dialog-DKHo0W9B.js";
9
9
  import { I as g } from "./info-CPK1vbOJ.js";
10
10
  import { u as _ } from "./useLocalizedStringFormatter-N0AyjzbM.js";
11
11
  import './assets/Label.css';const I = "_labelBase_khdpe_4", x = {
@@ -1,4 +1,4 @@
1
- "use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),E=require("./GridItem-XgHmZWXY.cjs"),O=require("react"),h=require("./clsx-C11secjj.cjs"),L=require("./Button-Dq6ugqxT.cjs"),C=require("./Link-CidjjqHb.cjs"),I=require("./Tooltip-pN5W3IK6.cjs"),j=require("./BadgeContainer-I1XA3OCl.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),T=require("./usePress-BooY_CAy.cjs"),f=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),H=require("./tokens-BghDnMdO.cjs"),k=require("./Logo-BpH0HC91.cjs"),G=require("./x-rV-nu490.cjs");function D(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>a[o]})}}return t.default=a,Object.freeze(t)}const _=D(O);/**
1
+ "use strict";require('./assets/Layout.css');const e=require("react/jsx-runtime"),E=require("./GridItem-XgHmZWXY.cjs"),O=require("react"),h=require("./clsx-C11secjj.cjs"),L=require("./Button-Dq6ugqxT.cjs"),C=require("./Link-CidjjqHb.cjs"),I=require("./Tooltip-pN5W3IK6.cjs"),j=require("./BadgeContainer-DWVHS5dn.cjs"),y=require("./createLucideIcon-CTVXwe6i.cjs"),T=require("./usePress-BooY_CAy.cjs"),f=require("./useLocalizedStringFormatter-BO2iZEL0.cjs"),H=require("./tokens-BF-dPard.cjs"),k=require("./Logo-BpH0HC91.cjs"),G=require("./x-rV-nu490.cjs");function D(a){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const o in a)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(a,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>a[o]})}}return t.default=a,Object.freeze(t)}const _=D(O);/**
2
2
  * @license lucide-react v0.525.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -2,14 +2,14 @@ import { jsx as e, jsxs as l, Fragment as O } from "react/jsx-runtime";
2
2
  import { G as S } from "./GridItem-DlbSdRmB.js";
3
3
  import * as b from "react";
4
4
  import { c as u } from "./clsx-OuTLNxxd.js";
5
- import { B as E } from "./Button-DtSrCAf6.js";
6
- import { $ as y } from "./Link-Bn8V3ZI0.js";
7
- import { a as $, T as G } from "./Tooltip-5mLWn_wO.js";
8
- import { a as L, B as M } from "./BadgeContainer-DM8TdyMT.js";
5
+ import { B as E } from "./Button-BjMaGya2.js";
6
+ import { $ as y } from "./Link-CibH8uRY.js";
7
+ import { a as $, T as G } from "./Tooltip-DjNc93tV.js";
8
+ import { a as L, B as M } from "./BadgeContainer-CKBIZWsc.js";
9
9
  import { c as T } from "./createLucideIcon-XRdN60yz.js";
10
- import { $ as w } from "./usePress-DuR4pVsE.js";
10
+ import { $ as w } from "./usePress-BW47IcyU.js";
11
11
  import { u as k } from "./useLocalizedStringFormatter-N0AyjzbM.js";
12
- import { f as j } from "./tokens-fEwCQXDv.js";
12
+ import { f as j } from "./tokens-r1r3wC04.js";
13
13
  import { L as g } from "./Logo-ME4ffCue.js";
14
14
  import { X as D } from "./x-C2xUHAEl.js";
15
15
  import './assets/Layout.css';/**
@@ -1,9 +1,9 @@
1
- import { $ as v, a as h } from "./utils-DJhAJHk_.js";
1
+ import { $ as v, a as h } from "./utils-KLjWgdLR.js";
2
2
  import C, { forwardRef as D, createContext as T } from "react";
3
3
  import { a as b } from "./mergeProps-C1U1OIeJ.js";
4
4
  import { $ as E } from "./filterDOMProps-D6KHYVBX.js";
5
- import { a as F, b as H, c as g, d as y } from "./usePress-DuR4pVsE.js";
6
- import { $ as L } from "./useFocusable-ChPA2Jc7.js";
5
+ import { b as F, c as H, d as g, e as y } from "./usePress-BW47IcyU.js";
6
+ import { a as L } from "./useFocusable-BjE42axF.js";
7
7
  import { $ as _ } from "./useHover-DQvJ3Y-W.js";
8
8
  import { $ as S } from "./useFocusRing-DOfBqnUN.js";
9
9
  function V(s, e) {
@@ -3,4 +3,4 @@
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const f=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],p=q.createLucideIcon("arrow-down-to-line",f),L="_link_txq8j_4",g="_icon_txq8j_50",m="_standalone_txq8j_54",R="_stretched_txq8j_71",e={link:L,icon:g,standalone:m,stretched:R},y=({children:s,standalone:r,target:o,stretched:i,download:a,icon:c,className:u,as:d,...l})=>{const x=d||h.$4f118338184dc1d9$export$a6c7ac8248d6e38a,_=({...t})=>c?n.jsx(c,{...t}):a?n.jsx(p,{...t}):o==="_blank"?n.jsx(k.SquareArrowOutUpRight,{...t}):r?n.jsx(w.ArrowRight,{...t}):null;return n.jsx(x,{className:j.clsx(e.link,r&&e.standalone,i&&e.stretched,u),...l,children:n.jsxs(n.Fragment,{children:[s,n.jsx(_,{size:16,className:e.icon})]})})};exports.Link=y;
6
+ */const f=[["path",{d:"M12 17V3",key:"1cwfxf"}],["path",{d:"m6 11 6 6 6-6",key:"12ii2o"}],["path",{d:"M19 21H5",key:"150jfl"}]],p=q.createLucideIcon("arrow-down-to-line",f),L="_link_txq8j_4",m="_icon_txq8j_50",R="_standalone_txq8j_54",g="_stretched_txq8j_71",t={link:L,icon:m,standalone:R,stretched:g},y=({children:o,standalone:r,target:c,stretched:i,download:a,icon:s,className:u,as:d,...l})=>{const x=d||h.$4f118338184dc1d9$export$a6c7ac8248d6e38a,_=({...e})=>s?n.jsx(s,{...e}):a?n.jsx(p,{...e}):c==="_blank"?n.jsx(k.SquareArrowOutUpRight,{...e}):r?n.jsx(w.ArrowRight,{...e}):null;return n.jsx(x,{className:j.clsx(t.link,r&&t.standalone,i&&t.stretched,u),...l,target:c,children:n.jsxs(n.Fragment,{children:[o,n.jsx(_,{size:16,className:t.icon})]})})};exports.Link=y;
@@ -1,5 +1,5 @@
1
- import { jsx as t, jsxs as p, Fragment as h } from "react/jsx-runtime";
2
- import { $ as u } from "./Link-Bn8V3ZI0.js";
1
+ import { jsx as o, jsxs as p, Fragment as h } from "react/jsx-runtime";
2
+ import { $ as u } from "./Link-CibH8uRY.js";
3
3
  import { c as x } from "./clsx-OuTLNxxd.js";
4
4
  import { c as k } from "./createLucideIcon-XRdN60yz.js";
5
5
  import { S as j } from "./square-arrow-out-up-right-ok0A3Ovo.js";
@@ -14,24 +14,24 @@ const q = [
14
14
  ["path", { d: "M12 17V3", key: "1cwfxf" }],
15
15
  ["path", { d: "m6 11 6 6 6-6", key: "12ii2o" }],
16
16
  ["path", { d: "M19 21H5", key: "150jfl" }]
17
- ], y = k("arrow-down-to-line", q), A = "_link_txq8j_4", L = "_icon_txq8j_50", $ = "_standalone_txq8j_54", g = "_stretched_txq8j_71", n = {
17
+ ], y = k("arrow-down-to-line", q), A = "_link_txq8j_4", L = "_icon_txq8j_50", $ = "_standalone_txq8j_54", N = "_stretched_txq8j_71", n = {
18
18
  link: A,
19
19
  icon: L,
20
20
  standalone: $,
21
- stretched: g
21
+ stretched: N
22
22
  }, D = ({
23
- children: e,
23
+ children: i,
24
24
  standalone: r,
25
- target: i,
25
+ target: c,
26
26
  stretched: s,
27
27
  download: a,
28
- icon: c,
28
+ icon: e,
29
29
  className: d,
30
30
  as: l,
31
31
  ...m
32
32
  }) => {
33
- const _ = l || u, f = ({ ...o }) => c ? /* @__PURE__ */ t(c, { ...o }) : a ? /* @__PURE__ */ t(y, { ...o }) : i === "_blank" ? /* @__PURE__ */ t(j, { ...o }) : r ? /* @__PURE__ */ t(w, { ...o }) : null;
34
- return /* @__PURE__ */ t(
33
+ const _ = l || u, f = ({ ...t }) => e ? /* @__PURE__ */ o(e, { ...t }) : a ? /* @__PURE__ */ o(y, { ...t }) : c === "_blank" ? /* @__PURE__ */ o(j, { ...t }) : r ? /* @__PURE__ */ o(w, { ...t }) : null;
34
+ return /* @__PURE__ */ o(
35
35
  _,
36
36
  {
37
37
  className: x(
@@ -41,9 +41,10 @@ const q = [
41
41
  d
42
42
  ),
43
43
  ...m,
44
+ target: c,
44
45
  children: /* @__PURE__ */ p(h, { children: [
45
- e,
46
- /* @__PURE__ */ t(
46
+ i,
47
+ /* @__PURE__ */ o(
47
48
  f,
48
49
  {
49
50
  size: 16,
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as r } from "react/jsx-runtime";
2
- import { $ as u } from "./Link-Bn8V3ZI0.js";
2
+ import { $ as u } from "./Link-CibH8uRY.js";
3
3
  import { c as k } from "./clsx-OuTLNxxd.js";
4
4
  import { S as y } from "./square-arrow-out-up-right-ok0A3Ovo.js";
5
5
  import { c as z } from "./createLucideIcon-XRdN60yz.js";
@@ -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";
@@ -1 +1 @@
1
- "use strict";require('./assets/Popover.css');const r=require("react/jsx-runtime"),i=require("./clsx-C11secjj.cjs"),n=require("./OverlayArrow-DpZ1FqOd.cjs"),a=require("./Dialog-CSnN6baf.cjs"),p="_popover_8b5s3_4",l="_arrow_8b5s3_18",e={popover:p,arrow:l};function x({children:o,className:s,offset:t=4,...c}){return r.jsxs(a.$07b14b47974efb58$export$5b6b19405a83ff9d,{...c,offset:t,className:i.clsx(e.popover,s),children:[r.jsx(n.$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
+ "use strict";require('./assets/Popover.css');const r=require("react/jsx-runtime"),i=require("./clsx-C11secjj.cjs"),n=require("./OverlayArrow-DpZ1FqOd.cjs"),a=require("./Dialog-DtHk3eXI.cjs"),p="_popover_1xqs8_4",x="_arrow_1xqs8_18",e={popover:p,arrow:x};function l({children:o,className:s,offset:t=4,...c}){return r.jsxs(a.$07b14b47974efb58$export$5b6b19405a83ff9d,{...c,offset:t,className:i.clsx(e.popover,s),children:[r.jsx(n.$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=l;
@@ -1,8 +1,8 @@
1
1
  import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
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 = {
3
+ import { $ as c } from "./OverlayArrow-DB_aVTVM.js";
4
+ import { a as i } from "./Dialog-DKHo0W9B.js";
5
+ import './assets/Popover.css';const m = "_popover_1xqs8_4", d = "_arrow_1xqs8_18", r = {
6
6
  popover: m,
7
7
  arrow: d
8
8
  };
@@ -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-D2GmP8_2.js";
2
+ import { c as u } from "./Button-CepQFEit.js";
3
+ import { L as m } from "./Label-DA6FZwy0.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-E3LhQfNv.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-ChjDdBlv.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;