@commercetools/nimbus 0.0.0-canary-20250821080039 → 0.0.0-canary-20250821130546

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 (417) hide show
  1. package/dist/checkbox.d.ts +8 -6
  2. package/dist/chunks/{Button-Dbso0-qF.es.js → Button-C-yUWwZg.es.js} +4 -4
  3. package/dist/chunks/{Button-Dbso0-qF.es.js.map → Button-C-yUWwZg.es.js.map} +1 -1
  4. package/dist/chunks/{Button-BLV4Eycw.cjs.js → Button-DQ_WkLNH.cjs.js} +2 -2
  5. package/dist/chunks/{Button-BLV4Eycw.cjs.js.map → Button-DQ_WkLNH.cjs.js.map} +1 -1
  6. package/dist/chunks/Collection-BsItrctR.cjs.js +18 -0
  7. package/dist/chunks/Collection-BsItrctR.cjs.js.map +1 -0
  8. package/dist/chunks/Collection-DFZhstai.es.js +1896 -0
  9. package/dist/chunks/Collection-DFZhstai.es.js.map +1 -0
  10. package/dist/chunks/DateField-D-KvZd-Q.cjs.js +2 -0
  11. package/dist/chunks/{DateField-iMlYFknq.cjs.js.map → DateField-D-KvZd-Q.cjs.js.map} +1 -1
  12. package/dist/chunks/{DateField-pv0EoMnC.es.js → DateField-m1BUGo8i.es.js} +31 -30
  13. package/dist/chunks/{DateField-pv0EoMnC.es.js.map → DateField-m1BUGo8i.es.js.map} +1 -1
  14. package/dist/chunks/DatePicker-BQ6EfAU2.cjs.js +2 -0
  15. package/dist/chunks/{DatePicker-DhT2ekYj.cjs.js.map → DatePicker-BQ6EfAU2.cjs.js.map} +1 -1
  16. package/dist/chunks/{DatePicker-COZaw7tZ.es.js → DatePicker-ByWwypbW.es.js} +33 -31
  17. package/dist/chunks/{DatePicker-COZaw7tZ.es.js.map → DatePicker-ByWwypbW.es.js.map} +1 -1
  18. package/dist/chunks/Dialog-B4OIDU7t.cjs.js +2 -0
  19. package/dist/chunks/{Dialog-CptyD9rP.cjs.js.map → Dialog-B4OIDU7t.cjs.js.map} +1 -1
  20. package/dist/chunks/{Dialog-zk-xJfoo.es.js → Dialog-DNPIKkGE.es.js} +106 -104
  21. package/dist/chunks/{Dialog-zk-xJfoo.es.js.map → Dialog-DNPIKkGE.es.js.map} +1 -1
  22. package/dist/chunks/DragAndDrop-ChYb3tCX.es.js +81 -0
  23. package/dist/chunks/DragAndDrop-ChYb3tCX.es.js.map +1 -0
  24. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js +2 -0
  25. package/dist/chunks/DragAndDrop-cOfUfFj8.cjs.js.map +1 -0
  26. package/dist/chunks/FieldError-CXcEMuBf.es.js +6 -0
  27. package/dist/chunks/FieldError-CXcEMuBf.es.js.map +1 -0
  28. package/dist/chunks/FieldError-DyGFfqST.cjs.js +2 -0
  29. package/dist/chunks/FieldError-DyGFfqST.cjs.js.map +1 -0
  30. package/dist/chunks/{FocusScope-GecpDnRx.cjs.js → FocusScope-B78iFLeF.cjs.js} +2 -2
  31. package/dist/chunks/{FocusScope-GecpDnRx.cjs.js.map → FocusScope-B78iFLeF.cjs.js.map} +1 -1
  32. package/dist/chunks/{FocusScope-DqjrxokF.es.js → FocusScope-C1Aw7j9H.es.js} +7 -7
  33. package/dist/chunks/{FocusScope-DqjrxokF.es.js.map → FocusScope-C1Aw7j9H.es.js.map} +1 -1
  34. package/dist/chunks/Form-BuOomA4T.cjs.js +2 -0
  35. package/dist/chunks/Form-BuOomA4T.cjs.js.map +1 -0
  36. package/dist/chunks/Form-CXcEMuBf.es.js +6 -0
  37. package/dist/chunks/Form-CXcEMuBf.es.js.map +1 -0
  38. package/dist/chunks/{Group-NyoRRxUI.cjs.js → Group-KVM7Xnxu.cjs.js} +2 -2
  39. package/dist/chunks/{Group-NyoRRxUI.cjs.js.map → Group-KVM7Xnxu.cjs.js.map} +1 -1
  40. package/dist/chunks/{Group-BrHhkg3Q.es.js → Group-kT8-3NGT.es.js} +3 -3
  41. package/dist/chunks/{Group-BrHhkg3Q.es.js.map → Group-kT8-3NGT.es.js.map} +1 -1
  42. package/dist/chunks/{Heading-P3M5XVwg.cjs.js → Heading-CQJ-3eon.cjs.js} +2 -2
  43. package/dist/chunks/{Heading-P3M5XVwg.cjs.js.map → Heading-CQJ-3eon.cjs.js.map} +1 -1
  44. package/dist/chunks/{Heading-6PRCde4r.es.js → Heading-DMBCkz0y.es.js} +10 -10
  45. package/dist/chunks/{Heading-6PRCde4r.es.js.map → Heading-DMBCkz0y.es.js.map} +1 -1
  46. package/dist/chunks/{Input-3b57jDmV.cjs.js → Input-93z9WR_a.cjs.js} +2 -2
  47. package/dist/chunks/{Input-3b57jDmV.cjs.js.map → Input-93z9WR_a.cjs.js.map} +1 -1
  48. package/dist/chunks/{Input-DEUFE8kQ.es.js → Input-C4REHQYD.es.js} +3 -3
  49. package/dist/chunks/{Input-DEUFE8kQ.es.js.map → Input-C4REHQYD.es.js.map} +1 -1
  50. package/dist/chunks/ListBox-B8Tz7EWS.es.js +615 -0
  51. package/dist/chunks/ListBox-B8Tz7EWS.es.js.map +1 -0
  52. package/dist/chunks/ListBox-CzZFXtHY.cjs.js +2 -0
  53. package/dist/chunks/ListBox-CzZFXtHY.cjs.js.map +1 -0
  54. package/dist/chunks/OverlayArrow-BD-oGsXg.es.js +452 -0
  55. package/dist/chunks/OverlayArrow-BD-oGsXg.es.js.map +1 -0
  56. package/dist/chunks/OverlayArrow-aq8OInch.cjs.js +2 -0
  57. package/dist/chunks/OverlayArrow-aq8OInch.cjs.js.map +1 -0
  58. package/dist/chunks/RSPContexts-B4yvXuBR.es.js +7 -0
  59. package/dist/chunks/{RSPContexts-AkhSBHGO.es.js.map → RSPContexts-B4yvXuBR.es.js.map} +1 -1
  60. package/dist/chunks/RSPContexts-CkSl9jRK.cjs.js +2 -0
  61. package/dist/chunks/{RSPContexts-CIAIlAKH.cjs.js.map → RSPContexts-CkSl9jRK.cjs.js.map} +1 -1
  62. package/dist/chunks/Separator-BUmWfQvi.es.js +573 -0
  63. package/dist/chunks/Separator-BUmWfQvi.es.js.map +1 -0
  64. package/dist/chunks/Separator-DBLZ41YB.cjs.js +2 -0
  65. package/dist/chunks/Separator-DBLZ41YB.cjs.js.map +1 -0
  66. package/dist/chunks/{TextArea-DfONO55t.cjs.js → TextArea-Cc0cDaeu.cjs.js} +2 -2
  67. package/dist/chunks/{TextArea-DfONO55t.cjs.js.map → TextArea-Cc0cDaeu.cjs.js.map} +1 -1
  68. package/dist/chunks/{TextArea-D31Tyn5f.es.js → TextArea-DIyosEKy.es.js} +3 -3
  69. package/dist/chunks/{TextArea-D31Tyn5f.es.js.map → TextArea-DIyosEKy.es.js.map} +1 -1
  70. package/dist/chunks/{ToggleButton-CgYoKWXE.cjs.js → ToggleButton-BbM5Zv6q.cjs.js} +2 -2
  71. package/dist/chunks/{ToggleButton-CgYoKWXE.cjs.js.map → ToggleButton-BbM5Zv6q.cjs.js.map} +1 -1
  72. package/dist/chunks/{ToggleButton-BwfjgdrS.es.js → ToggleButton-CgbTgCVi.es.js} +5 -5
  73. package/dist/chunks/{ToggleButton-BwfjgdrS.es.js.map → ToggleButton-CgbTgCVi.es.js.map} +1 -1
  74. package/dist/chunks/{VisuallyHidden-Cry3ILzH.cjs.js → VisuallyHidden-B4l0wZHw.cjs.js} +2 -2
  75. package/dist/chunks/{VisuallyHidden-Cry3ILzH.cjs.js.map → VisuallyHidden-B4l0wZHw.cjs.js.map} +1 -1
  76. package/dist/chunks/{VisuallyHidden-vWWAOaeB.es.js → VisuallyHidden-C38kRNm0.es.js} +2 -2
  77. package/dist/chunks/{VisuallyHidden-vWWAOaeB.es.js.map → VisuallyHidden-C38kRNm0.es.js.map} +1 -1
  78. package/dist/chunks/{accordion-BzVLPw0m.es.js → accordion-B_MC1ZEv.es.js} +3 -3
  79. package/dist/chunks/{accordion-BzVLPw0m.es.js.map → accordion-B_MC1ZEv.es.js.map} +1 -1
  80. package/dist/chunks/{accordion-CqVqPnnk.cjs.js → accordion-C9-YyEB4.cjs.js} +2 -2
  81. package/dist/chunks/{accordion-CqVqPnnk.cjs.js.map → accordion-C9-YyEB4.cjs.js.map} +1 -1
  82. package/dist/chunks/{alert-BjlXzvt9.es.js → alert-CgDrQdgE.es.js} +2 -2
  83. package/dist/chunks/{alert-BjlXzvt9.es.js.map → alert-CgDrQdgE.es.js.map} +1 -1
  84. package/dist/chunks/{alert-7fGS6Jtp.cjs.js → alert-DwDLsZeH.cjs.js} +2 -2
  85. package/dist/chunks/{alert-7fGS6Jtp.cjs.js.map → alert-DwDLsZeH.cjs.js.map} +1 -1
  86. package/dist/chunks/{button-CuhF1g5I.es.js → button-BCYZ1Ki2.es.js} +4 -4
  87. package/dist/chunks/{button-CuhF1g5I.es.js.map → button-BCYZ1Ki2.es.js.map} +1 -1
  88. package/dist/chunks/{button-DQVmtZsI.cjs.js → button-IGP--12e.cjs.js} +2 -2
  89. package/dist/chunks/{button-DQVmtZsI.cjs.js.map → button-IGP--12e.cjs.js.map} +1 -1
  90. package/dist/chunks/{calendar-CX2aTMuK.cjs.js → calendar-B3NlJSCo.cjs.js} +2 -2
  91. package/dist/chunks/{calendar-CX2aTMuK.cjs.js.map → calendar-B3NlJSCo.cjs.js.map} +1 -1
  92. package/dist/chunks/{calendar-Cgb94GBg.es.js → calendar-D3A1ryrp.es.js} +8 -8
  93. package/dist/chunks/{calendar-Cgb94GBg.es.js.map → calendar-D3A1ryrp.es.js.map} +1 -1
  94. package/dist/chunks/{card-DR7vGEKx.cjs.js → card-4i9NTJKM.cjs.js} +2 -2
  95. package/dist/chunks/{card-DR7vGEKx.cjs.js.map → card-4i9NTJKM.cjs.js.map} +1 -1
  96. package/dist/chunks/{card-DTunB9ZY.es.js → card-D1BUuNzg.es.js} +2 -2
  97. package/dist/chunks/{card-DTunB9ZY.es.js.map → card-D1BUuNzg.es.js.map} +1 -1
  98. package/dist/chunks/checkbox-DVb0qX6x.cjs.js +2 -0
  99. package/dist/chunks/checkbox-DVb0qX6x.cjs.js.map +1 -0
  100. package/dist/chunks/checkbox-DlYjw56x.es.js +219 -0
  101. package/dist/chunks/checkbox-DlYjw56x.es.js.map +1 -0
  102. package/dist/chunks/{combobox-1Kzme-cs.es.js → combobox-BWjVkgOn.es.js} +666 -663
  103. package/dist/chunks/{combobox-1Kzme-cs.es.js.map → combobox-BWjVkgOn.es.js.map} +1 -1
  104. package/dist/chunks/combobox-C3foptTP.cjs.js +2 -0
  105. package/dist/chunks/{combobox-9_6OFmgk.cjs.js.map → combobox-C3foptTP.cjs.js.map} +1 -1
  106. package/dist/chunks/data-table-BRjRsTel.cjs.js +2 -0
  107. package/dist/chunks/data-table-BRjRsTel.cjs.js.map +1 -0
  108. package/dist/chunks/data-table-DR210vqX.es.js +3912 -0
  109. package/dist/chunks/data-table-DR210vqX.es.js.map +1 -0
  110. package/dist/chunks/{date-input-BiNLEpfR.cjs.js → date-input-BFHLRnBr.cjs.js} +2 -2
  111. package/dist/chunks/{date-input-BiNLEpfR.cjs.js.map → date-input-BFHLRnBr.cjs.js.map} +1 -1
  112. package/dist/chunks/{date-input-DU74Qqxa.es.js → date-input-tNUDaNSO.es.js} +4 -4
  113. package/dist/chunks/{date-input-DU74Qqxa.es.js.map → date-input-tNUDaNSO.es.js.map} +1 -1
  114. package/dist/chunks/{date-picker-BU4NVftG.cjs.js → date-picker-GqOazmSZ.cjs.js} +2 -2
  115. package/dist/chunks/{date-picker-BU4NVftG.cjs.js.map → date-picker-GqOazmSZ.cjs.js.map} +1 -1
  116. package/dist/chunks/{date-picker-D6h7NeRV.es.js → date-picker-J6nYu3zN.es.js} +12 -12
  117. package/dist/chunks/{date-picker-D6h7NeRV.es.js.map → date-picker-J6nYu3zN.es.js.map} +1 -1
  118. package/dist/chunks/{date-range-picker-BhWMCCGo.cjs.js → date-range-picker-D_gkG0on.cjs.js} +2 -2
  119. package/dist/chunks/{date-range-picker-BhWMCCGo.cjs.js.map → date-range-picker-D_gkG0on.cjs.js.map} +1 -1
  120. package/dist/chunks/{date-range-picker-DouNAx8F.es.js → date-range-picker-DxIXHOC2.es.js} +12 -12
  121. package/dist/chunks/{date-range-picker-DouNAx8F.es.js.map → date-range-picker-DxIXHOC2.es.js.map} +1 -1
  122. package/dist/chunks/{extractStyleProps-DV7dej9J.es.js → extractStyleProps-BEa9kwlY.es.js} +2 -2
  123. package/dist/chunks/{extractStyleProps-DV7dej9J.es.js.map → extractStyleProps-BEa9kwlY.es.js.map} +1 -1
  124. package/dist/chunks/{focusSafely-IqPqYGW2.cjs.js → focusSafely-CpzfaUTO.cjs.js} +2 -2
  125. package/dist/chunks/{focusSafely-IqPqYGW2.cjs.js.map → focusSafely-CpzfaUTO.cjs.js.map} +1 -1
  126. package/dist/chunks/{focusSafely-Z_llPDi1.es.js → focusSafely-Di2ArC9L.es.js} +3 -3
  127. package/dist/chunks/{focusSafely-Z_llPDi1.es.js.map → focusSafely-Di2ArC9L.es.js.map} +1 -1
  128. package/dist/chunks/{form-field-DyC1BwgL.es.js → form-field-B1vOlQXH.es.js} +3 -3
  129. package/dist/chunks/{form-field-DyC1BwgL.es.js.map → form-field-B1vOlQXH.es.js.map} +1 -1
  130. package/dist/chunks/{form-field-CtS2lThW.cjs.js → form-field-CM_uSyZr.cjs.js} +2 -2
  131. package/dist/chunks/{form-field-CtS2lThW.cjs.js.map → form-field-CM_uSyZr.cjs.js.map} +1 -1
  132. package/dist/chunks/{group-C-AOBEBA.es.js → group-BQeamedA.es.js} +2 -2
  133. package/dist/chunks/{group-C-AOBEBA.es.js.map → group-BQeamedA.es.js.map} +1 -1
  134. package/dist/chunks/{group-BlwUrhBo.cjs.js → group-BwSwp_8B.cjs.js} +2 -2
  135. package/dist/chunks/{group-BlwUrhBo.cjs.js.map → group-BwSwp_8B.cjs.js.map} +1 -1
  136. package/dist/chunks/{icon-button-eAxeO5Sy.es.js → icon-button-DhmHHVhL.es.js} +2 -2
  137. package/dist/chunks/{icon-button-eAxeO5Sy.es.js.map → icon-button-DhmHHVhL.es.js.map} +1 -1
  138. package/dist/chunks/{icon-button-Dz81DR3X.cjs.js → icon-button-KMr_sm5y.cjs.js} +2 -2
  139. package/dist/chunks/{icon-button-Dz81DR3X.cjs.js.map → icon-button-KMr_sm5y.cjs.js.map} +1 -1
  140. package/dist/chunks/{icon-toggle-button-JIH-oYkL.es.js → icon-toggle-button-Dfzrgtgw.es.js} +2 -2
  141. package/dist/chunks/{icon-toggle-button-JIH-oYkL.es.js.map → icon-toggle-button-Dfzrgtgw.es.js.map} +1 -1
  142. package/dist/chunks/{icon-toggle-button-C0lscD-H.cjs.js → icon-toggle-button-p3GT9QUC.cjs.js} +2 -2
  143. package/dist/chunks/{icon-toggle-button-C0lscD-H.cjs.js.map → icon-toggle-button-p3GT9QUC.cjs.js.map} +1 -1
  144. package/dist/chunks/{index-BbFVxNB8.es.js → index-BDmBxsjm.es.js} +3 -18
  145. package/dist/chunks/index-BDmBxsjm.es.js.map +1 -0
  146. package/dist/chunks/index-XyB4gGC8.cjs.js.map +1 -1
  147. package/dist/chunks/intlStrings-Cd44R5hT.es.js +279 -0
  148. package/dist/chunks/intlStrings-Cd44R5hT.es.js.map +1 -0
  149. package/dist/chunks/intlStrings-ClBuC6xN.cjs.js +2 -0
  150. package/dist/chunks/intlStrings-ClBuC6xN.cjs.js.map +1 -0
  151. package/dist/chunks/{link-sv3Y9kiL.cjs.js → link-B2cOAxZz.cjs.js} +2 -2
  152. package/dist/chunks/{link-sv3Y9kiL.cjs.js.map → link-B2cOAxZz.cjs.js.map} +1 -1
  153. package/dist/chunks/{link-ghRc-njF.es.js → link-DteZUB4U.es.js} +4 -4
  154. package/dist/chunks/{link-ghRc-njF.es.js.map → link-DteZUB4U.es.js.map} +1 -1
  155. package/dist/chunks/{make-element-focusable-ZJARjxxy.es.js → make-element-focusable-_FWEyVtG.es.js} +2 -2
  156. package/dist/chunks/{make-element-focusable-ZJARjxxy.es.js.map → make-element-focusable-_FWEyVtG.es.js.map} +1 -1
  157. package/dist/chunks/{make-element-focusable-DH5D8RT_.cjs.js → make-element-focusable-fn-8kTQK.cjs.js} +2 -2
  158. package/dist/chunks/{make-element-focusable-DH5D8RT_.cjs.js.map → make-element-focusable-fn-8kTQK.cjs.js.map} +1 -1
  159. package/dist/chunks/{multiline-text-input-C92pFhFJ.es.js → multiline-text-input-BfG35UfF.es.js} +4 -4
  160. package/dist/chunks/{multiline-text-input-C92pFhFJ.es.js.map → multiline-text-input-BfG35UfF.es.js.map} +1 -1
  161. package/dist/chunks/{multiline-text-input-CyuK_OFR.cjs.js → multiline-text-input-ChVzVZob.cjs.js} +2 -2
  162. package/dist/chunks/{multiline-text-input-CyuK_OFR.cjs.js.map → multiline-text-input-ChVzVZob.cjs.js.map} +1 -1
  163. package/dist/chunks/{nimbus-provider-ayl_l7xS.es.js → nimbus-provider-DEQVQ5ZH.es.js} +3 -3
  164. package/dist/chunks/{nimbus-provider-ayl_l7xS.es.js.map → nimbus-provider-DEQVQ5ZH.es.js.map} +1 -1
  165. package/dist/chunks/{number-input-B1dhdihJ.cjs.js → number-input-9hCQtXai.cjs.js} +2 -2
  166. package/dist/chunks/{number-input-B1dhdihJ.cjs.js.map → number-input-9hCQtXai.cjs.js.map} +1 -1
  167. package/dist/chunks/{number-input-CW2-kmte.es.js → number-input-Kj7uy8Kj.es.js} +53 -53
  168. package/dist/chunks/{number-input-CW2-kmte.es.js.map → number-input-Kj7uy8Kj.es.js.map} +1 -1
  169. package/dist/chunks/{openLink-UGin_Dml.es.js → openLink-Ctl0AdAy.es.js} +2 -2
  170. package/dist/chunks/{openLink-UGin_Dml.es.js.map → openLink-Ctl0AdAy.es.js.map} +1 -1
  171. package/dist/chunks/{password-input-Cu0dFS1a.es.js → password-input-B5jaUzRa.es.js} +4 -4
  172. package/dist/chunks/{password-input-Cu0dFS1a.es.js.map → password-input-B5jaUzRa.es.js.map} +1 -1
  173. package/dist/chunks/{password-input-JB8O_D-h.cjs.js → password-input-Bw0E-ejz.cjs.js} +2 -2
  174. package/dist/chunks/{password-input-JB8O_D-h.cjs.js.map → password-input-Bw0E-ejz.cjs.js.map} +1 -1
  175. package/dist/chunks/{platform-BuOpbxqC.es.js → platform-Z5fvtFmM.es.js} +3 -3
  176. package/dist/chunks/{platform-BuOpbxqC.es.js.map → platform-Z5fvtFmM.es.js.map} +1 -1
  177. package/dist/chunks/{progress-bar-CUa2a1GW.es.js → progress-bar-BkJEnG2U.es.js} +2 -2
  178. package/dist/chunks/{progress-bar-CUa2a1GW.es.js.map → progress-bar-BkJEnG2U.es.js.map} +1 -1
  179. package/dist/chunks/{radio-input-Dm2vi4Tr.es.js → radio-input-BX3XjxCZ.es.js} +18 -17
  180. package/dist/chunks/{radio-input-Dm2vi4Tr.es.js.map → radio-input-BX3XjxCZ.es.js.map} +1 -1
  181. package/dist/chunks/radio-input-D3ePwO1n.cjs.js +2 -0
  182. package/dist/chunks/{radio-input-ks3uMIHH.cjs.js.map → radio-input-D3ePwO1n.cjs.js.map} +1 -1
  183. package/dist/chunks/{range-calendar-BPr3OzhD.es.js → range-calendar-BgJMo6pU.es.js} +8 -8
  184. package/dist/chunks/{range-calendar-BPr3OzhD.es.js.map → range-calendar-BgJMo6pU.es.js.map} +1 -1
  185. package/dist/chunks/{range-calendar-p93X9--W.cjs.js → range-calendar-Bk_im2QK.cjs.js} +2 -2
  186. package/dist/chunks/{range-calendar-p93X9--W.cjs.js.map → range-calendar-Bk_im2QK.cjs.js.map} +1 -1
  187. package/dist/chunks/{scrollIntoView-DBSz0DQ7.es.js → scrollIntoView-BYF_8_6g.es.js} +5 -5
  188. package/dist/chunks/{scrollIntoView-DBSz0DQ7.es.js.map → scrollIntoView-BYF_8_6g.es.js.map} +1 -1
  189. package/dist/chunks/select-DUhCYblF.cjs.js +2 -0
  190. package/dist/chunks/select-DUhCYblF.cjs.js.map +1 -0
  191. package/dist/chunks/select-N8FpTFMk.es.js +560 -0
  192. package/dist/chunks/select-N8FpTFMk.es.js.map +1 -0
  193. package/dist/chunks/split-button-CIHXMvxD.cjs.js +2 -0
  194. package/dist/chunks/{split-button-CcDW5RoK.cjs.js.map → split-button-CIHXMvxD.cjs.js.map} +1 -1
  195. package/dist/chunks/{split-button-CD_Lc9Zk.es.js → split-button-CyEM3H65.es.js} +32 -31
  196. package/dist/chunks/{split-button-CD_Lc9Zk.es.js.map → split-button-CyEM3H65.es.js.map} +1 -1
  197. package/dist/chunks/{switch-xIG_-I0g.es.js → switch-B4gRcARZ.es.js} +6 -6
  198. package/dist/chunks/{switch-xIG_-I0g.es.js.map → switch-B4gRcARZ.es.js.map} +1 -1
  199. package/dist/chunks/{switch-Crc8nVlW.cjs.js → switch-C3AG1gUR.cjs.js} +2 -2
  200. package/dist/chunks/{switch-Crc8nVlW.cjs.js.map → switch-C3AG1gUR.cjs.js.map} +1 -1
  201. package/dist/chunks/tag-group-BE8wfvqd.es.js +768 -0
  202. package/dist/chunks/tag-group-BE8wfvqd.es.js.map +1 -0
  203. package/dist/chunks/tag-group-BYQkpbiY.cjs.js +2 -0
  204. package/dist/chunks/tag-group-BYQkpbiY.cjs.js.map +1 -0
  205. package/dist/chunks/{text-input-Co1vIdZ4.es.js → text-input-ClB8DzCK.es.js} +5 -5
  206. package/dist/chunks/{text-input-Co1vIdZ4.es.js.map → text-input-ClB8DzCK.es.js.map} +1 -1
  207. package/dist/chunks/{text-input-C-OhJndO.cjs.js → text-input-DnS2RVDs.cjs.js} +2 -2
  208. package/dist/chunks/{text-input-C-OhJndO.cjs.js.map → text-input-DnS2RVDs.cjs.js.map} +1 -1
  209. package/dist/chunks/{time-input-DBhELOKp.cjs.js → time-input-BWkx15sb.cjs.js} +2 -2
  210. package/dist/chunks/{time-input-DBhELOKp.cjs.js.map → time-input-BWkx15sb.cjs.js.map} +1 -1
  211. package/dist/chunks/{time-input-Qllp0HZz.es.js → time-input-DWx_NjPa.es.js} +3 -3
  212. package/dist/chunks/{time-input-Qllp0HZz.es.js.map → time-input-DWx_NjPa.es.js.map} +1 -1
  213. package/dist/chunks/{toggle-button-DS19vPrG.es.js → toggle-button-CuDtxD_c.es.js} +4 -4
  214. package/dist/chunks/{toggle-button-DS19vPrG.es.js.map → toggle-button-CuDtxD_c.es.js.map} +1 -1
  215. package/dist/chunks/{toggle-button-DY1owmQc.cjs.js → toggle-button-PE5251Fm.cjs.js} +2 -2
  216. package/dist/chunks/{toggle-button-DY1owmQc.cjs.js.map → toggle-button-PE5251Fm.cjs.js.map} +1 -1
  217. package/dist/chunks/{toggle-button-group-BWIvUU_4.cjs.js → toggle-button-group-B2G_b7h8.cjs.js} +2 -2
  218. package/dist/chunks/{toggle-button-group-BWIvUU_4.cjs.js.map → toggle-button-group-B2G_b7h8.cjs.js.map} +1 -1
  219. package/dist/chunks/{toggle-button-group-CgjXp8XN.es.js → toggle-button-group-CXrwjOF0.es.js} +2 -2
  220. package/dist/chunks/{toggle-button-group-CgjXp8XN.es.js.map → toggle-button-group-CXrwjOF0.es.js.map} +1 -1
  221. package/dist/chunks/{toolbar-CjHj5fIX.cjs.js → toolbar-BxIQI626.cjs.js} +2 -2
  222. package/dist/chunks/{toolbar-CjHj5fIX.cjs.js.map → toolbar-BxIQI626.cjs.js.map} +1 -1
  223. package/dist/chunks/{toolbar-DLScuBdf.es.js → toolbar-D2CqoZzL.es.js} +4 -4
  224. package/dist/chunks/{toolbar-DLScuBdf.es.js.map → toolbar-D2CqoZzL.es.js.map} +1 -1
  225. package/dist/chunks/{tooltip-Q46epl2a.es.js → tooltip-Ya7L6lQR.es.js} +5 -5
  226. package/dist/chunks/{tooltip-Q46epl2a.es.js.map → tooltip-Ya7L6lQR.es.js.map} +1 -1
  227. package/dist/chunks/{tooltip-BB7ooTKa.cjs.js → tooltip-fOhxG4pp.cjs.js} +2 -2
  228. package/dist/chunks/{tooltip-BB7ooTKa.cjs.js.map → tooltip-fOhxG4pp.cjs.js.map} +1 -1
  229. package/dist/chunks/{useButton-DlcUcB98.es.js → useButton-Cgkz8UEs.es.js} +3 -3
  230. package/dist/chunks/{useButton-DlcUcB98.es.js.map → useButton-Cgkz8UEs.es.js.map} +1 -1
  231. package/dist/chunks/{useButton-hi3sM3Ce.cjs.js → useButton-D3BedLtL.cjs.js} +2 -2
  232. package/dist/chunks/{useButton-hi3sM3Ce.cjs.js.map → useButton-D3BedLtL.cjs.js.map} +1 -1
  233. package/dist/chunks/{useDateFormatter-kmlij37M.es.js → useDateFormatter-D9HBAX1w.es.js} +2 -2
  234. package/dist/chunks/{useDateFormatter-kmlij37M.es.js.map → useDateFormatter-D9HBAX1w.es.js.map} +1 -1
  235. package/dist/chunks/{useDateFormatter-Dw7VGiwz.cjs.js → useDateFormatter-G9oGkNG5.cjs.js} +2 -2
  236. package/dist/chunks/{useDateFormatter-Dw7VGiwz.cjs.js.map → useDateFormatter-G9oGkNG5.cjs.js.map} +1 -1
  237. package/dist/chunks/{useFocus-CXfPnJ5G.cjs.js → useFocus-BcBbbuWU.cjs.js} +2 -2
  238. package/dist/chunks/{useFocus-CXfPnJ5G.cjs.js.map → useFocus-BcBbbuWU.cjs.js.map} +1 -1
  239. package/dist/chunks/{useFocus-BvGvYIan.es.js → useFocus-CeI1jbl8.es.js} +2 -2
  240. package/dist/chunks/{useFocus-BvGvYIan.es.js.map → useFocus-CeI1jbl8.es.js.map} +1 -1
  241. package/dist/chunks/{useFocusRing-C1vq7lTw.es.js → useFocusRing-D8cwV0EM.es.js} +4 -4
  242. package/dist/chunks/{useFocusRing-C1vq7lTw.es.js.map → useFocusRing-D8cwV0EM.es.js.map} +1 -1
  243. package/dist/chunks/{useFocusRing-ixPPR18r.cjs.js → useFocusRing-DRIoF592.cjs.js} +2 -2
  244. package/dist/chunks/{useFocusRing-ixPPR18r.cjs.js.map → useFocusRing-DRIoF592.cjs.js.map} +1 -1
  245. package/dist/chunks/{useFocusVisible-BvNyuIMJ.es.js → useFocusVisible-C5ivHvqm.es.js} +3 -3
  246. package/dist/chunks/{useFocusVisible-BvNyuIMJ.es.js.map → useFocusVisible-C5ivHvqm.es.js.map} +1 -1
  247. package/dist/chunks/{useFocusVisible-ofYjJ-l6.cjs.js → useFocusVisible-bRnVksaU.cjs.js} +2 -2
  248. package/dist/chunks/{useFocusVisible-ofYjJ-l6.cjs.js.map → useFocusVisible-bRnVksaU.cjs.js.map} +1 -1
  249. package/dist/chunks/{useFocusWithin-Bf2suIR7.cjs.js → useFocusWithin-i-cVKYQ8.cjs.js} +2 -2
  250. package/dist/chunks/{useFocusWithin-Bf2suIR7.cjs.js.map → useFocusWithin-i-cVKYQ8.cjs.js.map} +1 -1
  251. package/dist/chunks/{useFocusWithin-s8WR5xWD.es.js → useFocusWithin-yfiHuOEs.es.js} +2 -2
  252. package/dist/chunks/{useFocusWithin-s8WR5xWD.es.js.map → useFocusWithin-yfiHuOEs.es.js.map} +1 -1
  253. package/dist/chunks/{useFocusable-9nZX8LFj.es.js → useFocusable-BghVNiQU.es.js} +3 -3
  254. package/dist/chunks/{useFocusable-9nZX8LFj.es.js.map → useFocusable-BghVNiQU.es.js.map} +1 -1
  255. package/dist/chunks/{useFocusable-lxn-toA4.cjs.js → useFocusable-avM9w6OE.cjs.js} +2 -2
  256. package/dist/chunks/{useFocusable-lxn-toA4.cjs.js.map → useFocusable-avM9w6OE.cjs.js.map} +1 -1
  257. package/dist/chunks/{useFormValidation-YmZxjLYm.es.js → useFormValidation-DJMNbIhx.es.js} +2 -2
  258. package/dist/chunks/{useFormValidation-YmZxjLYm.es.js.map → useFormValidation-DJMNbIhx.es.js.map} +1 -1
  259. package/dist/chunks/{useFormValidation-Cuj--965.cjs.js → useFormValidation-DJy_cdgv.cjs.js} +2 -2
  260. package/dist/chunks/{useFormValidation-Cuj--965.cjs.js.map → useFormValidation-DJy_cdgv.cjs.js.map} +1 -1
  261. package/dist/chunks/useHighlightSelectionDescription-DAR8wV79.es.js +598 -0
  262. package/dist/chunks/useHighlightSelectionDescription-DAR8wV79.es.js.map +1 -0
  263. package/dist/chunks/useHighlightSelectionDescription-DPwy1mkw.cjs.js +2 -0
  264. package/dist/chunks/useHighlightSelectionDescription-DPwy1mkw.cjs.js.map +1 -0
  265. package/dist/chunks/{useHover-CS1E3DZy.cjs.js → useHover-BlZx5CU2.cjs.js} +2 -2
  266. package/dist/chunks/{useHover-CS1E3DZy.cjs.js.map → useHover-BlZx5CU2.cjs.js.map} +1 -1
  267. package/dist/chunks/{useHover-D4cqdNG6.es.js → useHover-cJOf02TT.es.js} +2 -2
  268. package/dist/chunks/{useHover-D4cqdNG6.es.js.map → useHover-cJOf02TT.es.js.map} +1 -1
  269. package/dist/chunks/{usePress-CHQHbwut.es.js → usePress-BquTSwUd.es.js} +9 -7
  270. package/dist/chunks/{usePress-CHQHbwut.es.js.map → usePress-BquTSwUd.es.js.map} +1 -1
  271. package/dist/chunks/{usePress-EAB51g0R.cjs.js → usePress-D8F1U6qk.cjs.js} +3 -3
  272. package/dist/chunks/{usePress-EAB51g0R.cjs.js.map → usePress-D8F1U6qk.cjs.js.map} +1 -1
  273. package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js +2 -0
  274. package/dist/chunks/useResizeObserver-Dx-vDLiW.cjs.js.map +1 -0
  275. package/dist/chunks/useResizeObserver-FIPBIG5S.es.js +32 -0
  276. package/dist/chunks/useResizeObserver-FIPBIG5S.es.js.map +1 -0
  277. package/dist/chunks/{useSingleSelectListState-C0yvvGsR.cjs.js → useSingleSelectListState-BpAVpRdZ.cjs.js} +2 -2
  278. package/dist/chunks/{useSingleSelectListState-C0yvvGsR.cjs.js.map → useSingleSelectListState-BpAVpRdZ.cjs.js.map} +1 -1
  279. package/dist/chunks/{useSingleSelectListState-uzLHyabs.es.js → useSingleSelectListState-CiK-JkEX.es.js} +2 -2
  280. package/dist/chunks/{useSingleSelectListState-uzLHyabs.es.js.map → useSingleSelectListState-CiK-JkEX.es.js.map} +1 -1
  281. package/dist/chunks/{useTextField-MxjVF2Cs.cjs.js → useTextField-Cv1jQqUp.cjs.js} +2 -2
  282. package/dist/chunks/{useTextField-MxjVF2Cs.cjs.js.map → useTextField-Cv1jQqUp.cjs.js.map} +1 -1
  283. package/dist/chunks/{useTextField-Dxspe3Dd.es.js → useTextField-Doh-sQHP.es.js} +4 -4
  284. package/dist/chunks/{useTextField-Dxspe3Dd.es.js.map → useTextField-Doh-sQHP.es.js.map} +1 -1
  285. package/dist/chunks/{useToggle-CTG3hkKx.cjs.js → useToggle-BK36AEko.cjs.js} +2 -2
  286. package/dist/chunks/{useToggle-CTG3hkKx.cjs.js.map → useToggle-BK36AEko.cjs.js.map} +1 -1
  287. package/dist/chunks/{useToggle-CCq_jSTE.es.js → useToggle-DcdigPKG.es.js} +3 -3
  288. package/dist/chunks/{useToggle-CCq_jSTE.es.js.map → useToggle-DcdigPKG.es.js.map} +1 -1
  289. package/dist/chunks/{useToolbar-Be7EMzF5.es.js → useToolbar-CYJ2PbtO.es.js} +2 -2
  290. package/dist/chunks/{useToolbar-Be7EMzF5.es.js.map → useToolbar-CYJ2PbtO.es.js.map} +1 -1
  291. package/dist/chunks/{useToolbar-Dx3B5fDy.cjs.js → useToolbar-D3B8DvbF.cjs.js} +2 -2
  292. package/dist/chunks/{useToolbar-Dx3B5fDy.cjs.js.map → useToolbar-D3B8DvbF.cjs.js.map} +1 -1
  293. package/dist/chunks/utils-BHVnNfaH.cjs.js +2 -0
  294. package/dist/chunks/{utils-JGx-H9sJ.cjs.js.map → utils-BHVnNfaH.cjs.js.map} +1 -1
  295. package/dist/chunks/{utils-BlXAWjB_.es.js → utils-Gg3iiYhl.es.js} +38 -34
  296. package/dist/chunks/{utils-BlXAWjB_.es.js.map → utils-Gg3iiYhl.es.js.map} +1 -1
  297. package/dist/chunks/{visually-hidden-DxNUFbOh.cjs.js → visually-hidden-Uhh-2Y-q.cjs.js} +2 -2
  298. package/dist/chunks/{visually-hidden-DxNUFbOh.cjs.js.map → visually-hidden-Uhh-2Y-q.cjs.js.map} +1 -1
  299. package/dist/chunks/{visually-hidden-Cr2DdJfv.es.js → visually-hidden-vh07nrZa.es.js} +2 -2
  300. package/dist/chunks/{visually-hidden-Cr2DdJfv.es.js.map → visually-hidden-vh07nrZa.es.js.map} +1 -1
  301. package/dist/components/accordion.cjs +1 -1
  302. package/dist/components/accordion.es.js +1 -1
  303. package/dist/components/alert.cjs +1 -1
  304. package/dist/components/alert.es.js +1 -1
  305. package/dist/components/button.cjs +1 -1
  306. package/dist/components/button.es.js +1 -1
  307. package/dist/components/calendar.cjs +1 -1
  308. package/dist/components/calendar.es.js +1 -1
  309. package/dist/components/card.cjs +1 -1
  310. package/dist/components/card.es.js +1 -1
  311. package/dist/components/checkbox.cjs +1 -1
  312. package/dist/components/checkbox.es.js +1 -1
  313. package/dist/components/combobox.cjs +1 -1
  314. package/dist/components/combobox.es.js +1 -1
  315. package/dist/components/components.cjs +1 -1
  316. package/dist/components/components.es.js +122 -108
  317. package/dist/components/components.es.js.map +1 -1
  318. package/dist/components/data-table.cjs +2 -0
  319. package/dist/components/data-table.cjs.map +1 -0
  320. package/dist/components/data-table.es.js +17 -0
  321. package/dist/components/data-table.es.js.map +1 -0
  322. package/dist/components/date-input.cjs +1 -1
  323. package/dist/components/date-input.es.js +1 -1
  324. package/dist/components/date-picker.cjs +1 -1
  325. package/dist/components/date-picker.es.js +1 -1
  326. package/dist/components/date-range-picker.cjs +1 -1
  327. package/dist/components/date-range-picker.es.js +1 -1
  328. package/dist/components/form-field.cjs +1 -1
  329. package/dist/components/form-field.es.js +1 -1
  330. package/dist/components/group.cjs +1 -1
  331. package/dist/components/group.es.js +1 -1
  332. package/dist/components/icon-button.cjs +1 -1
  333. package/dist/components/icon-button.es.js +1 -1
  334. package/dist/components/icon-toggle-button.cjs +1 -1
  335. package/dist/components/icon-toggle-button.es.js +1 -1
  336. package/dist/components/link.cjs +1 -1
  337. package/dist/components/link.es.js +1 -1
  338. package/dist/components/multiline-text-input.cjs +1 -1
  339. package/dist/components/multiline-text-input.es.js +1 -1
  340. package/dist/components/nimbus-provider.es.js +1 -1
  341. package/dist/components/number-input.cjs +1 -1
  342. package/dist/components/number-input.es.js +1 -1
  343. package/dist/components/password-input.cjs +1 -1
  344. package/dist/components/password-input.es.js +1 -1
  345. package/dist/components/progress-bar.es.js +1 -1
  346. package/dist/components/radio-input.cjs +1 -1
  347. package/dist/components/radio-input.es.js +1 -1
  348. package/dist/components/range-calendar.cjs +1 -1
  349. package/dist/components/range-calendar.es.js +1 -1
  350. package/dist/components/select.cjs +1 -1
  351. package/dist/components/select.es.js +1 -1
  352. package/dist/components/split-button.cjs +1 -1
  353. package/dist/components/split-button.es.js +1 -1
  354. package/dist/components/switch.cjs +1 -1
  355. package/dist/components/switch.es.js +1 -1
  356. package/dist/components/tag-group.cjs +1 -1
  357. package/dist/components/tag-group.es.js +1 -1
  358. package/dist/components/text-input.cjs +1 -1
  359. package/dist/components/text-input.es.js +1 -1
  360. package/dist/components/time-input.cjs +1 -1
  361. package/dist/components/time-input.es.js +1 -1
  362. package/dist/components/toggle-button-group.cjs +1 -1
  363. package/dist/components/toggle-button-group.es.js +1 -1
  364. package/dist/components/toggle-button.cjs +1 -1
  365. package/dist/components/toggle-button.es.js +1 -1
  366. package/dist/components/toolbar.cjs +1 -1
  367. package/dist/components/toolbar.es.js +1 -1
  368. package/dist/components/tooltip.cjs +1 -1
  369. package/dist/components/tooltip.es.js +2 -2
  370. package/dist/components/visually-hidden.cjs +1 -1
  371. package/dist/components/visually-hidden.es.js +1 -1
  372. package/dist/components.d.ts +258 -5
  373. package/dist/data-table.d.ts +268 -0
  374. package/dist/index.cjs +1 -1
  375. package/dist/index.cjs.map +1 -1
  376. package/dist/index.d.ts +258 -5
  377. package/dist/index.es.js +285 -407
  378. package/dist/index.es.js.map +1 -1
  379. package/package.json +6 -6
  380. package/dist/chunks/DateField-iMlYFknq.cjs.js +0 -2
  381. package/dist/chunks/DatePicker-DhT2ekYj.cjs.js +0 -2
  382. package/dist/chunks/Dialog-CptyD9rP.cjs.js +0 -2
  383. package/dist/chunks/Form-amb1SjpT.cjs.js +0 -2
  384. package/dist/chunks/Form-amb1SjpT.cjs.js.map +0 -1
  385. package/dist/chunks/Form-yBl0QZl8.es.js +0 -7
  386. package/dist/chunks/Form-yBl0QZl8.es.js.map +0 -1
  387. package/dist/chunks/ListBox-CWStps80.es.js +0 -662
  388. package/dist/chunks/ListBox-CWStps80.es.js.map +0 -1
  389. package/dist/chunks/ListBox-s8tRtwA0.cjs.js +0 -2
  390. package/dist/chunks/ListBox-s8tRtwA0.cjs.js.map +0 -1
  391. package/dist/chunks/OverlayArrow-BuwEfnJ_.es.js +0 -479
  392. package/dist/chunks/OverlayArrow-BuwEfnJ_.es.js.map +0 -1
  393. package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js +0 -2
  394. package/dist/chunks/OverlayArrow-C5Ymp9MC.cjs.js.map +0 -1
  395. package/dist/chunks/RSPContexts-AkhSBHGO.es.js +0 -6
  396. package/dist/chunks/RSPContexts-CIAIlAKH.cjs.js +0 -2
  397. package/dist/chunks/Separator-DOmXRTmt.cjs.js +0 -18
  398. package/dist/chunks/Separator-DOmXRTmt.cjs.js.map +0 -1
  399. package/dist/chunks/Separator-jqT9Eof_.es.js +0 -2435
  400. package/dist/chunks/Separator-jqT9Eof_.es.js.map +0 -1
  401. package/dist/chunks/checkbox-Ci8-0C_9.cjs.js +0 -2
  402. package/dist/chunks/checkbox-Ci8-0C_9.cjs.js.map +0 -1
  403. package/dist/chunks/checkbox-CjpbV9HI.es.js +0 -90
  404. package/dist/chunks/checkbox-CjpbV9HI.es.js.map +0 -1
  405. package/dist/chunks/combobox-9_6OFmgk.cjs.js +0 -2
  406. package/dist/chunks/index-BbFVxNB8.es.js.map +0 -1
  407. package/dist/chunks/radio-input-ks3uMIHH.cjs.js +0 -2
  408. package/dist/chunks/select-DZ-oIsVV.cjs.js +0 -2
  409. package/dist/chunks/select-DZ-oIsVV.cjs.js.map +0 -1
  410. package/dist/chunks/select-sJlm2NT8.es.js +0 -831
  411. package/dist/chunks/select-sJlm2NT8.es.js.map +0 -1
  412. package/dist/chunks/split-button-CcDW5RoK.cjs.js +0 -2
  413. package/dist/chunks/tag-group-Dw0sYuC6.es.js +0 -1351
  414. package/dist/chunks/tag-group-Dw0sYuC6.es.js.map +0 -1
  415. package/dist/chunks/tag-group-lc7cj8fj.cjs.js +0 -2
  416. package/dist/chunks/tag-group-lc7cj8fj.cjs.js.map +0 -1
  417. package/dist/chunks/utils-JGx-H9sJ.cjs.js +0 -2
@@ -1,2435 +0,0 @@
1
- import { c as xe, $ as q, a as Pe, d as ee, e as ll } from "./mergeProps-B_9syxhT.es.js";
2
- import { $ as Qe, d as il } from "./openLink-UGin_Dml.es.js";
3
- import { $ as et } from "./usePress-CHQHbwut.es.js";
4
- import { a as Fe, d as se } from "./utils-BlXAWjB_.es.js";
5
- import { $ as Se } from "./focusWithoutScrolling-CDw3JYiq.es.js";
6
- import { $ as nl } from "./useGlobalListeners-BOOfV5Wh.es.js";
7
- import { $ as rl, c as ol, b as Me, d as Be } from "./scrollIntoView-DBSz0DQ7.es.js";
8
- import S, { useRef as D, useEffect as Z, useMemo as U, cloneElement as tt, forwardRef as lt, useContext as Q, createContext as M, useCallback as G, useState as te, isValidElement as sl } from "react";
9
- import { $ as Ke } from "./focusSafely-Z_llPDi1.es.js";
10
- import { b as al, h as ul } from "./platform-BuOpbxqC.es.js";
11
- import { $ as ie } from "./useEvent-YHhqZvpU.es.js";
12
- import { a as cl } from "./FocusScope-DqjrxokF.es.js";
13
- import { b as Ce } from "./useFocusVisible-BvNyuIMJ.es.js";
14
- import { flushSync as dl, createPortal as fl } from "react-dom";
15
- import { $ as hl } from "./context-Pt-0ojuK.es.js";
16
- import { $ as pl } from "./useCollator-BvjDbml1.es.js";
17
- import { $ as it } from "./useControlledState-u436Wbp1.es.js";
18
- import { a as we } from "./Input-DEUFE8kQ.es.js";
19
- import { $ as ae, c as nt, b as yl, e as rt, a as vl, d as ot, f as bl } from "./utils-BkdW_cdL.es.js";
20
- import { $ as gl, a as $l } from "./Form-yBl0QZl8.es.js";
21
- import { a as ml } from "./Group-BrHhkg3Q.es.js";
22
- import { $ as xl } from "./Label-B2YyCdLl.es.js";
23
- import { a as Sl } from "./TextArea-D31Tyn5f.es.js";
24
- import { $ as Kl } from "./Text-DOcU1ycg.es.js";
25
- import { a as Cl, $ as wl } from "./Hidden-j3Lbt7xL.es.js";
26
- import { $ as st } from "./filterDOMProps-BSVCO5jK.es.js";
27
- import { $ as El } from "./useTextField-Dxspe3Dd.es.js";
28
- import { a as Dl } from "./useLabel-BBmkkrPP.es.js";
29
- import { $ as kl } from "./useObjectRef-CaJ5pgjX.es.js";
30
- import { $ as Il } from "./useLocalizedStringFormatter-CvzOUusg.es.js";
31
- import { b as Oe } from "./useFocusable-9nZX8LFj.es.js";
32
- import { $ as at } from "./SSRProvider-Cu8KibIK.es.js";
33
- import { $ as Pl } from "./useSeparator-Dg70ACBm.es.js";
34
- function Ne(r, e) {
35
- const t = D(!0), l = D(null);
36
- xe(() => (t.current = !0, () => {
37
- t.current = !1;
38
- }), []), xe(() => {
39
- t.current ? t.current = !1 : (!l.current || e.some((i, n) => !Object.is(i, l[n]))) && r(), l.current = e;
40
- }, e);
41
- }
42
- const ut = "react-aria-clear-focus", Ee = "react-aria-focus";
43
- function X(r) {
44
- return al() ? r.metaKey : r.ctrlKey;
45
- }
46
- const Fl = 500;
47
- function Rl(r) {
48
- let { isDisabled: e, onLongPressStart: t, onLongPressEnd: l, onLongPress: i, threshold: n = Fl, accessibilityDescription: o } = r;
49
- const u = D(void 0);
50
- let { addGlobalListener: s, removeGlobalListener: f } = nl(), { pressProps: m } = et({
51
- isDisabled: e,
52
- onPressStart(p) {
53
- if (p.continuePropagation(), (p.pointerType === "mouse" || p.pointerType === "touch") && (t && t({
54
- ...p,
55
- type: "longpressstart"
56
- }), u.current = setTimeout(() => {
57
- p.target.dispatchEvent(new PointerEvent("pointercancel", {
58
- bubbles: !0
59
- })), Fe(p.target).activeElement !== p.target && Se(p.target), i && i({
60
- ...p,
61
- type: "longpress"
62
- }), u.current = void 0;
63
- }, n), p.pointerType === "touch")) {
64
- let y = (v) => {
65
- v.preventDefault();
66
- };
67
- s(p.target, "contextmenu", y, {
68
- once: !0
69
- }), s(window, "pointerup", () => {
70
- setTimeout(() => {
71
- f(p.target, "contextmenu", y);
72
- }, 30);
73
- }, {
74
- once: !0
75
- });
76
- }
77
- },
78
- onPressEnd(p) {
79
- u.current && clearTimeout(u.current), l && (p.pointerType === "mouse" || p.pointerType === "touch") && l({
80
- ...p,
81
- type: "longpressend"
82
- });
83
- }
84
- }), h = rl(i && !e ? o : void 0);
85
- return {
86
- longPressProps: q(m, h)
87
- };
88
- }
89
- function Re(r) {
90
- let e = ct(Fe(r));
91
- e !== r && (e && De(e, r), r && ue(r, e));
92
- }
93
- function De(r, e) {
94
- r.dispatchEvent(new FocusEvent("blur", {
95
- relatedTarget: e
96
- })), r.dispatchEvent(new FocusEvent("focusout", {
97
- bubbles: !0,
98
- relatedTarget: e
99
- }));
100
- }
101
- function ue(r, e) {
102
- r.dispatchEvent(new FocusEvent("focus", {
103
- relatedTarget: e
104
- })), r.dispatchEvent(new FocusEvent("focusin", {
105
- bubbles: !0,
106
- relatedTarget: e
107
- }));
108
- }
109
- function ct(r) {
110
- let e = se(r), t = e?.getAttribute("aria-activedescendant");
111
- return t && r.getElementById(t) || e;
112
- }
113
- function ke(r) {
114
- return ul() ? r.altKey : r.ctrlKey;
115
- }
116
- function oe(r, e) {
117
- var t, l;
118
- let i = `[data-key="${CSS.escape(String(e))}"]`, n = (t = r.current) === null || t === void 0 ? void 0 : t.dataset.collection;
119
- return n && (i = `[data-collection="${CSS.escape(n)}"]${i}`), (l = r.current) === null || l === void 0 ? void 0 : l.querySelector(i);
120
- }
121
- const dt = /* @__PURE__ */ new WeakMap();
122
- function Tl(r) {
123
- let e = Pe();
124
- return dt.set(r, e), e;
125
- }
126
- function Al(r) {
127
- return dt.get(r);
128
- }
129
- const Ll = 1e3;
130
- function Ml(r) {
131
- let { keyboardDelegate: e, selectionManager: t, onTypeSelect: l } = r, i = D({
132
- search: "",
133
- timeout: void 0
134
- }).current, n = (o) => {
135
- let u = Bl(o.key);
136
- if (!(!u || o.ctrlKey || o.metaKey || !o.currentTarget.contains(o.target) || i.search.length === 0 && u === " ")) {
137
- if (u === " " && i.search.trim().length > 0 && (o.preventDefault(), "continuePropagation" in o || o.stopPropagation()), i.search += u, e.getKeyForSearch != null) {
138
- let s = e.getKeyForSearch(i.search, t.focusedKey);
139
- s == null && (s = e.getKeyForSearch(i.search)), s != null && (t.setFocusedKey(s), l && l(s));
140
- }
141
- clearTimeout(i.timeout), i.timeout = setTimeout(() => {
142
- i.search = "";
143
- }, Ll);
144
- }
145
- };
146
- return {
147
- typeSelectProps: {
148
- // Using a capturing listener to catch the keydown event before
149
- // other hooks in order to handle the Spacebar event.
150
- onKeyDownCapture: e.getKeyForSearch ? n : void 0
151
- }
152
- };
153
- }
154
- function Bl(r) {
155
- return r.length === 1 || !/^[A-Z]/i.test(r) ? r : "";
156
- }
157
- function Ol(r) {
158
- let { selectionManager: e, keyboardDelegate: t, ref: l, autoFocus: i = !1, shouldFocusWrap: n = !1, disallowEmptySelection: o = !1, disallowSelectAll: u = !1, escapeKeyBehavior: s = "clearSelection", selectOnFocus: f = e.selectionBehavior === "replace", disallowTypeAhead: m = !1, shouldUseVirtualFocus: h, allowsTabNavigation: p = !1, isVirtualized: y, scrollRef: v = l, linkBehavior: K = "action" } = r, { direction: $ } = hl(), g = Qe(), E = (c) => {
159
- var w;
160
- if (c.altKey && c.key === "Tab" && c.preventDefault(), !(!((w = l.current) === null || w === void 0) && w.contains(c.target))) return;
161
- const a = (b, Y) => {
162
- if (b != null) {
163
- if (e.isLink(b) && K === "selection" && f && !ke(c)) {
164
- dl(() => {
165
- e.setFocusedKey(b, Y);
166
- });
167
- let J = oe(l, b), Le = e.getItemProps(b);
168
- J && g.open(J, c, Le.href, Le.routerOptions);
169
- return;
170
- }
171
- if (e.setFocusedKey(b, Y), e.isLink(b) && K === "override") return;
172
- c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(b) : f && !ke(c) && e.replaceSelection(b);
173
- }
174
- };
175
- switch (c.key) {
176
- case "ArrowDown":
177
- if (t.getKeyBelow) {
178
- var P, L, A;
179
- let b = e.focusedKey != null ? (P = t.getKeyBelow) === null || P === void 0 ? void 0 : P.call(t, e.focusedKey) : (L = t.getFirstKey) === null || L === void 0 ? void 0 : L.call(t);
180
- b == null && n && (b = (A = t.getFirstKey) === null || A === void 0 ? void 0 : A.call(t, e.focusedKey)), b != null && (c.preventDefault(), a(b));
181
- }
182
- break;
183
- case "ArrowUp":
184
- if (t.getKeyAbove) {
185
- var H, W, ce;
186
- let b = e.focusedKey != null ? (H = t.getKeyAbove) === null || H === void 0 ? void 0 : H.call(t, e.focusedKey) : (W = t.getLastKey) === null || W === void 0 ? void 0 : W.call(t);
187
- b == null && n && (b = (ce = t.getLastKey) === null || ce === void 0 ? void 0 : ce.call(t, e.focusedKey)), b != null && (c.preventDefault(), a(b));
188
- }
189
- break;
190
- case "ArrowLeft":
191
- if (t.getKeyLeftOf) {
192
- var de, fe, he;
193
- let b = e.focusedKey != null ? (de = t.getKeyLeftOf) === null || de === void 0 ? void 0 : de.call(t, e.focusedKey) : null;
194
- b == null && n && (b = $ === "rtl" ? (fe = t.getFirstKey) === null || fe === void 0 ? void 0 : fe.call(t, e.focusedKey) : (he = t.getLastKey) === null || he === void 0 ? void 0 : he.call(t, e.focusedKey)), b != null && (c.preventDefault(), a(b, $ === "rtl" ? "first" : "last"));
195
- }
196
- break;
197
- case "ArrowRight":
198
- if (t.getKeyRightOf) {
199
- var pe, ye, ve;
200
- let b = e.focusedKey != null ? (pe = t.getKeyRightOf) === null || pe === void 0 ? void 0 : pe.call(t, e.focusedKey) : null;
201
- b == null && n && (b = $ === "rtl" ? (ye = t.getLastKey) === null || ye === void 0 ? void 0 : ye.call(t, e.focusedKey) : (ve = t.getFirstKey) === null || ve === void 0 ? void 0 : ve.call(t, e.focusedKey)), b != null && (c.preventDefault(), a(b, $ === "rtl" ? "last" : "first"));
202
- }
203
- break;
204
- case "Home":
205
- if (t.getFirstKey) {
206
- if (e.focusedKey === null && c.shiftKey) return;
207
- c.preventDefault();
208
- let b = t.getFirstKey(e.focusedKey, X(c));
209
- e.setFocusedKey(b), b != null && (X(c) && c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(b) : f && e.replaceSelection(b));
210
- }
211
- break;
212
- case "End":
213
- if (t.getLastKey) {
214
- if (e.focusedKey === null && c.shiftKey) return;
215
- c.preventDefault();
216
- let b = t.getLastKey(e.focusedKey, X(c));
217
- e.setFocusedKey(b), b != null && (X(c) && c.shiftKey && e.selectionMode === "multiple" ? e.extendSelection(b) : f && e.replaceSelection(b));
218
- }
219
- break;
220
- case "PageDown":
221
- if (t.getKeyPageBelow && e.focusedKey != null) {
222
- let b = t.getKeyPageBelow(e.focusedKey);
223
- b != null && (c.preventDefault(), a(b));
224
- }
225
- break;
226
- case "PageUp":
227
- if (t.getKeyPageAbove && e.focusedKey != null) {
228
- let b = t.getKeyPageAbove(e.focusedKey);
229
- b != null && (c.preventDefault(), a(b));
230
- }
231
- break;
232
- case "a":
233
- X(c) && e.selectionMode === "multiple" && u !== !0 && (c.preventDefault(), e.selectAll());
234
- break;
235
- case "Escape":
236
- s === "clearSelection" && !o && e.selectedKeys.size !== 0 && (c.stopPropagation(), c.preventDefault(), e.clearSelection());
237
- break;
238
- case "Tab":
239
- if (!p) {
240
- if (c.shiftKey) l.current.focus();
241
- else {
242
- let b = cl(l.current, {
243
- tabbable: !0
244
- }), Y, J;
245
- do
246
- J = b.lastChild(), J && (Y = J);
247
- while (J);
248
- Y && !Y.contains(document.activeElement) && Se(Y);
249
- }
250
- break;
251
- }
252
- }
253
- }, C = D({
254
- top: 0,
255
- left: 0
256
- });
257
- ie(v, "scroll", y ? void 0 : () => {
258
- var c, w, a, P;
259
- C.current = {
260
- top: (a = (c = v.current) === null || c === void 0 ? void 0 : c.scrollTop) !== null && a !== void 0 ? a : 0,
261
- left: (P = (w = v.current) === null || w === void 0 ? void 0 : w.scrollLeft) !== null && P !== void 0 ? P : 0
262
- };
263
- });
264
- let k = (c) => {
265
- if (e.isFocused) {
266
- c.currentTarget.contains(c.target) || e.setFocused(!1);
267
- return;
268
- }
269
- if (c.currentTarget.contains(c.target)) {
270
- if (e.setFocused(!0), e.focusedKey == null) {
271
- var w, a;
272
- let A = (W) => {
273
- W != null && (e.setFocusedKey(W), f && !e.isSelected(W) && e.replaceSelection(W));
274
- }, H = c.relatedTarget;
275
- var P, L;
276
- H && c.currentTarget.compareDocumentPosition(H) & Node.DOCUMENT_POSITION_FOLLOWING ? A((P = e.lastSelectedKey) !== null && P !== void 0 ? P : (w = t.getLastKey) === null || w === void 0 ? void 0 : w.call(t)) : A((L = e.firstSelectedKey) !== null && L !== void 0 ? L : (a = t.getFirstKey) === null || a === void 0 ? void 0 : a.call(t));
277
- } else !y && v.current && (v.current.scrollTop = C.current.top, v.current.scrollLeft = C.current.left);
278
- if (e.focusedKey != null && v.current) {
279
- let A = oe(l, e.focusedKey);
280
- A instanceof HTMLElement && (!A.contains(document.activeElement) && !h && Se(A), Ce() === "keyboard" && Me(A, {
281
- containingElement: l.current
282
- }));
283
- }
284
- }
285
- }, F = (c) => {
286
- c.currentTarget.contains(c.relatedTarget) || e.setFocused(!1);
287
- }, R = D(!1);
288
- ie(l, Ee, h ? (c) => {
289
- let { detail: w } = c;
290
- c.stopPropagation(), e.setFocused(!0), w?.focusStrategy === "first" && (R.current = !0);
291
- } : void 0);
292
- let B = ee(() => {
293
- var c, w;
294
- let a = (w = (c = t.getFirstKey) === null || c === void 0 ? void 0 : c.call(t)) !== null && w !== void 0 ? w : null;
295
- if (a == null) {
296
- let P = se();
297
- Re(l.current), ue(P, null), e.collection.size > 0 && (R.current = !1);
298
- } else
299
- e.setFocusedKey(a), R.current = !1;
300
- });
301
- Ne(() => {
302
- R.current && B();
303
- }, [
304
- e.collection,
305
- B
306
- ]);
307
- let T = ee(() => {
308
- e.collection.size > 0 && (R.current = !1);
309
- });
310
- Ne(() => {
311
- T();
312
- }, [
313
- e.focusedKey,
314
- T
315
- ]), ie(l, ut, h ? (c) => {
316
- var w;
317
- c.stopPropagation(), e.setFocused(!1), !((w = c.detail) === null || w === void 0) && w.clearFocusKey && e.setFocusedKey(null);
318
- } : void 0);
319
- const _ = D(i), O = D(!1);
320
- Z(() => {
321
- if (_.current) {
322
- var c, w;
323
- let L = null;
324
- var a;
325
- i === "first" && (L = (a = (c = t.getFirstKey) === null || c === void 0 ? void 0 : c.call(t)) !== null && a !== void 0 ? a : null);
326
- var P;
327
- i === "last" && (L = (P = (w = t.getLastKey) === null || w === void 0 ? void 0 : w.call(t)) !== null && P !== void 0 ? P : null);
328
- let A = e.selectedKeys;
329
- if (A.size) {
330
- for (let H of A) if (e.canSelectItem(H)) {
331
- L = H;
332
- break;
333
- }
334
- }
335
- e.setFocused(!0), e.setFocusedKey(L), L == null && !h && l.current && Ke(l.current), e.collection.size > 0 && (_.current = !1, O.current = !0);
336
- }
337
- });
338
- let N = D(e.focusedKey), d = D(null);
339
- Z(() => {
340
- if (e.isFocused && e.focusedKey != null && (e.focusedKey !== N.current || O.current) && v.current && l.current) {
341
- let c = Ce(), w = oe(l, e.focusedKey);
342
- if (!(w instanceof HTMLElement))
343
- return;
344
- (c === "keyboard" || O.current) && (d.current && cancelAnimationFrame(d.current), d.current = requestAnimationFrame(() => {
345
- v.current && (ol(v.current, w), c !== "virtual" && Me(w, {
346
- containingElement: l.current
347
- }));
348
- }));
349
- }
350
- !h && e.isFocused && e.focusedKey == null && N.current != null && l.current && Ke(l.current), N.current = e.focusedKey, O.current = !1;
351
- }), Z(() => () => {
352
- d.current && cancelAnimationFrame(d.current);
353
- }, []), ie(l, "react-aria-focus-scope-restore", (c) => {
354
- c.preventDefault(), e.setFocused(!0);
355
- });
356
- let x = {
357
- onKeyDown: E,
358
- onFocus: k,
359
- onBlur: F,
360
- onMouseDown(c) {
361
- v.current === c.target && c.preventDefault();
362
- }
363
- }, { typeSelectProps: I } = Ml({
364
- keyboardDelegate: t,
365
- selectionManager: e
366
- });
367
- m || (x = q(I, x));
368
- let V;
369
- h || (V = e.focusedKey == null ? 0 : -1);
370
- let j = Tl(e.collection);
371
- return {
372
- collectionProps: q(x, {
373
- tabIndex: V,
374
- "data-collection": j
375
- })
376
- };
377
- }
378
- function Wi(r) {
379
- let { id: e, selectionManager: t, key: l, ref: i, shouldSelectOnPressUp: n, shouldUseVirtualFocus: o, focus: u, isDisabled: s, onAction: f, allowsDifferentPressOrigin: m, linkBehavior: h = "action" } = r, p = Qe();
380
- e = Pe(e);
381
- let y = (a) => {
382
- if (a.pointerType === "keyboard" && ke(a)) t.toggleSelection(l);
383
- else {
384
- if (t.selectionMode === "none") return;
385
- if (t.isLink(l)) {
386
- if (h === "selection" && i.current) {
387
- let P = t.getItemProps(l);
388
- p.open(i.current, a, P.href, P.routerOptions), t.setSelectedKeys(t.selectedKeys);
389
- return;
390
- } else if (h === "override" || h === "none") return;
391
- }
392
- t.selectionMode === "single" ? t.isSelected(l) && !t.disallowEmptySelection ? t.toggleSelection(l) : t.replaceSelection(l) : a && a.shiftKey ? t.extendSelection(l) : t.selectionBehavior === "toggle" || a && (X(a) || a.pointerType === "touch" || a.pointerType === "virtual") ? t.toggleSelection(l) : t.replaceSelection(l);
393
- }
394
- };
395
- Z(() => {
396
- l === t.focusedKey && t.isFocused && (o ? Re(i.current) : u ? u() : document.activeElement !== i.current && i.current && Ke(i.current));
397
- }, [
398
- i,
399
- l,
400
- t.focusedKey,
401
- t.childFocusStrategy,
402
- t.isFocused,
403
- o
404
- ]), s = s || t.isDisabled(l);
405
- let v = {};
406
- !o && !s ? v = {
407
- tabIndex: l === t.focusedKey ? 0 : -1,
408
- onFocus(a) {
409
- a.target === i.current && t.setFocusedKey(l);
410
- }
411
- } : s && (v.onMouseDown = (a) => {
412
- a.preventDefault();
413
- });
414
- let K = t.isLink(l) && h === "override", $ = t.isLink(l) && h !== "selection" && h !== "none", g = !s && t.canSelectItem(l) && !K, E = (f || $) && !s, C = E && (t.selectionBehavior === "replace" ? !g : !g || t.isEmpty), k = E && g && t.selectionBehavior === "replace", F = C || k, R = D(null), B = F && g, T = D(!1), _ = D(!1), O = t.getItemProps(l), N = (a) => {
415
- f && f(), $ && i.current && p.open(i.current, a, O.href, O.routerOptions);
416
- }, d = {
417
- ref: i
418
- };
419
- if (n ? (d.onPressStart = (a) => {
420
- R.current = a.pointerType, T.current = B, a.pointerType === "keyboard" && (!F || Ue()) && y(a);
421
- }, m ? (d.onPressUp = C ? void 0 : (a) => {
422
- a.pointerType === "mouse" && g && y(a);
423
- }, d.onPress = C ? N : (a) => {
424
- a.pointerType !== "keyboard" && a.pointerType !== "mouse" && g && y(a);
425
- }) : d.onPress = (a) => {
426
- if (C || k && a.pointerType !== "mouse") {
427
- if (a.pointerType === "keyboard" && !Ve()) return;
428
- N(a);
429
- } else a.pointerType !== "keyboard" && g && y(a);
430
- }) : (d.onPressStart = (a) => {
431
- R.current = a.pointerType, T.current = B, _.current = C, g && (a.pointerType === "mouse" && !C || a.pointerType === "keyboard" && (!E || Ue())) && y(a);
432
- }, d.onPress = (a) => {
433
- (a.pointerType === "touch" || a.pointerType === "pen" || a.pointerType === "virtual" || a.pointerType === "keyboard" && F && Ve() || a.pointerType === "mouse" && _.current) && (F ? N(a) : g && y(a));
434
- }), v["data-collection"] = Al(t.collection), v["data-key"] = l, d.preventFocusOnPress = o, o && (d = q(d, {
435
- onPressStart(a) {
436
- a.pointerType !== "touch" && (t.setFocused(!0), t.setFocusedKey(l));
437
- },
438
- onPress(a) {
439
- a.pointerType === "touch" && (t.setFocused(!0), t.setFocusedKey(l));
440
- }
441
- })), O)
442
- for (let a of [
443
- "onPressStart",
444
- "onPressEnd",
445
- "onPressChange",
446
- "onPress",
447
- "onPressUp",
448
- "onClick"
449
- ]) O[a] && (d[a] = ll(d[a], O[a]));
450
- let { pressProps: x, isPressed: I } = et(d), V = k ? (a) => {
451
- R.current === "mouse" && (a.stopPropagation(), a.preventDefault(), N(a));
452
- } : void 0, { longPressProps: j } = Rl({
453
- isDisabled: !B,
454
- onLongPress(a) {
455
- a.pointerType === "touch" && (y(a), t.setSelectionBehavior("toggle"));
456
- }
457
- }), c = (a) => {
458
- R.current === "touch" && T.current && a.preventDefault();
459
- }, w = h !== "none" && t.isLink(l) ? (a) => {
460
- il.isOpening || a.preventDefault();
461
- } : void 0;
462
- return {
463
- itemProps: q(
464
- v,
465
- g || C || o && !s ? x : {},
466
- B ? j : {},
467
- {
468
- onDoubleClick: V,
469
- onDragStartCapture: c,
470
- onClick: w,
471
- id: e
472
- },
473
- // Prevent DOM focus from moving on mouse down when using virtual focus
474
- o ? {
475
- onMouseDown: (a) => a.preventDefault()
476
- } : void 0
477
- ),
478
- isPressed: I,
479
- isSelected: t.isSelected(l),
480
- isFocused: t.isFocused && t.focusedKey === l,
481
- isDisabled: s,
482
- allowsSelection: g,
483
- hasAction: F
484
- };
485
- }
486
- function Ve() {
487
- let r = window.event;
488
- return r?.key === "Enter";
489
- }
490
- function Ue() {
491
- let r = window.event;
492
- return r?.key === " " || r?.code === "Space";
493
- }
494
- class ze {
495
- getItemRect(e) {
496
- let t = this.ref.current;
497
- if (!t) return null;
498
- let l = e != null ? oe(this.ref, e) : null;
499
- if (!l) return null;
500
- let i = t.getBoundingClientRect(), n = l.getBoundingClientRect();
501
- return {
502
- x: n.left - i.left + t.scrollLeft,
503
- y: n.top - i.top + t.scrollTop,
504
- width: n.width,
505
- height: n.height
506
- };
507
- }
508
- getContentSize() {
509
- let e = this.ref.current;
510
- var t, l;
511
- return {
512
- width: (t = e?.scrollWidth) !== null && t !== void 0 ? t : 0,
513
- height: (l = e?.scrollHeight) !== null && l !== void 0 ? l : 0
514
- };
515
- }
516
- getVisibleRect() {
517
- let e = this.ref.current;
518
- var t, l, i, n;
519
- return {
520
- x: (t = e?.scrollLeft) !== null && t !== void 0 ? t : 0,
521
- y: (l = e?.scrollTop) !== null && l !== void 0 ? l : 0,
522
- width: (i = e?.offsetWidth) !== null && i !== void 0 ? i : 0,
523
- height: (n = e?.offsetHeight) !== null && n !== void 0 ? n : 0
524
- };
525
- }
526
- constructor(e) {
527
- this.ref = e;
528
- }
529
- }
530
- class Nl {
531
- isDisabled(e) {
532
- var t;
533
- return this.disabledBehavior === "all" && (((t = e.props) === null || t === void 0 ? void 0 : t.isDisabled) || this.disabledKeys.has(e.key));
534
- }
535
- findNextNonDisabled(e, t) {
536
- let l = e;
537
- for (; l != null; ) {
538
- let i = this.collection.getItem(l);
539
- if (i?.type === "item" && !this.isDisabled(i)) return l;
540
- l = t(l);
541
- }
542
- return null;
543
- }
544
- getNextKey(e) {
545
- let t = e;
546
- return t = this.collection.getKeyAfter(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyAfter(l));
547
- }
548
- getPreviousKey(e) {
549
- let t = e;
550
- return t = this.collection.getKeyBefore(t), this.findNextNonDisabled(t, (l) => this.collection.getKeyBefore(l));
551
- }
552
- findKey(e, t, l) {
553
- let i = e, n = this.layoutDelegate.getItemRect(i);
554
- if (!n || i == null) return null;
555
- let o = n;
556
- do {
557
- if (i = t(i), i == null) break;
558
- n = this.layoutDelegate.getItemRect(i);
559
- } while (n && l(o, n) && i != null);
560
- return i;
561
- }
562
- isSameRow(e, t) {
563
- return e.y === t.y || e.x !== t.x;
564
- }
565
- isSameColumn(e, t) {
566
- return e.x === t.x || e.y !== t.y;
567
- }
568
- getKeyBelow(e) {
569
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getNextKey(t), this.isSameRow) : this.getNextKey(e);
570
- }
571
- getKeyAbove(e) {
572
- return this.layout === "grid" && this.orientation === "vertical" ? this.findKey(e, (t) => this.getPreviousKey(t), this.isSameRow) : this.getPreviousKey(e);
573
- }
574
- getNextColumn(e, t) {
575
- return t ? this.getPreviousKey(e) : this.getNextKey(e);
576
- }
577
- getKeyRightOf(e) {
578
- let t = this.direction === "ltr" ? "getKeyRightOf" : "getKeyLeftOf";
579
- return this.layoutDelegate[t] ? (e = this.layoutDelegate[t](e), this.findNextNonDisabled(e, (l) => this.layoutDelegate[t](l))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "rtl") : this.findKey(e, (l) => this.getNextColumn(l, this.direction === "rtl"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "rtl") : null;
580
- }
581
- getKeyLeftOf(e) {
582
- let t = this.direction === "ltr" ? "getKeyLeftOf" : "getKeyRightOf";
583
- return this.layoutDelegate[t] ? (e = this.layoutDelegate[t](e), this.findNextNonDisabled(e, (l) => this.layoutDelegate[t](l))) : this.layout === "grid" ? this.orientation === "vertical" ? this.getNextColumn(e, this.direction === "ltr") : this.findKey(e, (l) => this.getNextColumn(l, this.direction === "ltr"), this.isSameColumn) : this.orientation === "horizontal" ? this.getNextColumn(e, this.direction === "ltr") : null;
584
- }
585
- getFirstKey() {
586
- let e = this.collection.getFirstKey();
587
- return this.findNextNonDisabled(e, (t) => this.collection.getKeyAfter(t));
588
- }
589
- getLastKey() {
590
- let e = this.collection.getLastKey();
591
- return this.findNextNonDisabled(e, (t) => this.collection.getKeyBefore(t));
592
- }
593
- getKeyPageAbove(e) {
594
- let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
595
- if (!l) return null;
596
- if (t && !Be(t)) return this.getFirstKey();
597
- let i = e;
598
- if (this.orientation === "horizontal") {
599
- let n = Math.max(0, l.x + l.width - this.layoutDelegate.getVisibleRect().width);
600
- for (; l && l.x > n && i != null; )
601
- i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
602
- } else {
603
- let n = Math.max(0, l.y + l.height - this.layoutDelegate.getVisibleRect().height);
604
- for (; l && l.y > n && i != null; )
605
- i = this.getKeyAbove(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
606
- }
607
- return i ?? this.getFirstKey();
608
- }
609
- getKeyPageBelow(e) {
610
- let t = this.ref.current, l = this.layoutDelegate.getItemRect(e);
611
- if (!l) return null;
612
- if (t && !Be(t)) return this.getLastKey();
613
- let i = e;
614
- if (this.orientation === "horizontal") {
615
- let n = Math.min(this.layoutDelegate.getContentSize().width, l.y - l.width + this.layoutDelegate.getVisibleRect().width);
616
- for (; l && l.x < n && i != null; )
617
- i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
618
- } else {
619
- let n = Math.min(this.layoutDelegate.getContentSize().height, l.y - l.height + this.layoutDelegate.getVisibleRect().height);
620
- for (; l && l.y < n && i != null; )
621
- i = this.getKeyBelow(i), l = i == null ? null : this.layoutDelegate.getItemRect(i);
622
- }
623
- return i ?? this.getLastKey();
624
- }
625
- getKeyForSearch(e, t) {
626
- if (!this.collator) return null;
627
- let l = this.collection, i = t || this.getFirstKey();
628
- for (; i != null; ) {
629
- let n = l.getItem(i);
630
- if (!n) return null;
631
- let o = n.textValue.slice(0, e.length);
632
- if (n.textValue && this.collator.compare(o, e) === 0) return i;
633
- i = this.getNextKey(i);
634
- }
635
- return null;
636
- }
637
- constructor(...e) {
638
- if (e.length === 1) {
639
- let t = e[0];
640
- this.collection = t.collection, this.ref = t.ref, this.collator = t.collator, this.disabledKeys = t.disabledKeys || /* @__PURE__ */ 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 ze(t.ref);
641
- } else
642
- 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 ze(this.ref);
643
- this.layout === "stack" && this.orientation === "vertical" && (this.getKeyLeftOf = void 0, this.getKeyRightOf = void 0);
644
- }
645
- }
646
- function Gi(r) {
647
- let { selectionManager: e, collection: t, disabledKeys: l, ref: i, keyboardDelegate: n, layoutDelegate: o } = r, u = pl({
648
- usage: "search",
649
- sensitivity: "base"
650
- }), s = e.disabledBehavior, f = U(() => n || new Nl({
651
- collection: t,
652
- disabledKeys: l,
653
- disabledBehavior: s,
654
- ref: i,
655
- collator: u,
656
- layoutDelegate: o
657
- }), [
658
- n,
659
- o,
660
- t,
661
- l,
662
- i,
663
- u,
664
- s
665
- ]), { collectionProps: m } = Ol({
666
- ...r,
667
- ref: i,
668
- selectionManager: e,
669
- keyboardDelegate: f
670
- });
671
- return {
672
- listProps: m
673
- };
674
- }
675
- class Vl {
676
- build(e, t) {
677
- return this.context = t, He(() => this.iterateCollection(e));
678
- }
679
- *iterateCollection(e) {
680
- let { children: t, items: l } = e;
681
- if (S.isValidElement(t) && t.type === S.Fragment) yield* this.iterateCollection({
682
- children: t.props.children,
683
- items: l
684
- });
685
- else if (typeof t == "function") {
686
- if (!l) throw new Error("props.children was a function but props.items is missing");
687
- let i = 0;
688
- for (let n of l)
689
- yield* this.getFullNode({
690
- value: n,
691
- index: i
692
- }, {
693
- renderer: t
694
- }), i++;
695
- } else {
696
- let i = [];
697
- S.Children.forEach(t, (o) => {
698
- o && i.push(o);
699
- });
700
- let n = 0;
701
- for (let o of i) {
702
- let u = this.getFullNode({
703
- element: o,
704
- index: n
705
- }, {});
706
- for (let s of u)
707
- n++, yield s;
708
- }
709
- }
710
- }
711
- getKey(e, t, l, i) {
712
- if (e.key != null) return e.key;
713
- if (t.type === "cell" && t.key != null) return `${i}${t.key}`;
714
- let n = t.value;
715
- if (n != null) {
716
- var o;
717
- let u = (o = n.key) !== null && o !== void 0 ? o : n.id;
718
- if (u == null) throw new Error("No key found for item");
719
- return u;
720
- }
721
- return i ? `${i}.${t.index}` : `$.${t.index}`;
722
- }
723
- getChildState(e, t) {
724
- return {
725
- renderer: t.renderer || e.renderer
726
- };
727
- }
728
- *getFullNode(e, t, l, i) {
729
- if (S.isValidElement(e.element) && e.element.type === S.Fragment) {
730
- let $ = [];
731
- S.Children.forEach(e.element.props.children, (E) => {
732
- $.push(E);
733
- });
734
- var n;
735
- let g = (n = e.index) !== null && n !== void 0 ? n : 0;
736
- for (const E of $) yield* this.getFullNode({
737
- element: E,
738
- index: g++
739
- }, t, l, i);
740
- return;
741
- }
742
- let o = e.element;
743
- if (!o && e.value && t && t.renderer) {
744
- let $ = this.cache.get(e.value);
745
- if ($ && (!$.shouldInvalidate || !$.shouldInvalidate(this.context))) {
746
- $.index = e.index, $.parentKey = i ? i.key : null, yield $;
747
- return;
748
- }
749
- o = t.renderer(e.value);
750
- }
751
- if (S.isValidElement(o)) {
752
- let $ = o.type;
753
- if (typeof $ != "function" && typeof $.getCollectionNode != "function") {
754
- let k = o.type;
755
- throw new Error(`Unknown element <${k}> in collection.`);
756
- }
757
- let g = $.getCollectionNode(o.props, this.context);
758
- var u;
759
- let E = (u = e.index) !== null && u !== void 0 ? u : 0, C = g.next();
760
- for (; !C.done && C.value; ) {
761
- let k = C.value;
762
- e.index = E;
763
- var s;
764
- let F = (s = k.key) !== null && s !== void 0 ? s : null;
765
- F == null && (F = k.element ? null : this.getKey(o, e, t, l));
766
- let B = [
767
- ...this.getFullNode({
768
- ...k,
769
- key: F,
770
- index: E,
771
- wrapper: Ul(e.wrapper, k.wrapper)
772
- }, this.getChildState(t, k), l ? `${l}${o.key}` : o.key, i)
773
- ];
774
- for (let T of B) {
775
- var f, m;
776
- T.value = (m = (f = k.value) !== null && f !== void 0 ? f : e.value) !== null && m !== void 0 ? m : null, T.value && this.cache.set(T.value, T);
777
- var h;
778
- if (e.type && T.type !== e.type) throw new Error(`Unsupported type <${be(T.type)}> in <${be((h = i?.type) !== null && h !== void 0 ? h : "unknown parent type")}>. Only <${be(e.type)}> is supported.`);
779
- E++, yield T;
780
- }
781
- C = g.next(B);
782
- }
783
- return;
784
- }
785
- if (e.key == null || e.type == null) return;
786
- let p = this;
787
- var y, v;
788
- let K = {
789
- type: e.type,
790
- props: e.props,
791
- key: e.key,
792
- parentKey: i ? i.key : null,
793
- value: (y = e.value) !== null && y !== void 0 ? y : null,
794
- level: i ? i.level + 1 : 0,
795
- index: e.index,
796
- rendered: e.rendered,
797
- textValue: (v = e.textValue) !== null && v !== void 0 ? v : "",
798
- "aria-label": e["aria-label"],
799
- wrapper: e.wrapper,
800
- shouldInvalidate: e.shouldInvalidate,
801
- hasChildNodes: e.hasChildNodes || !1,
802
- childNodes: He(function* () {
803
- if (!e.hasChildNodes || !e.childNodes) return;
804
- let $ = 0;
805
- for (let g of e.childNodes()) {
806
- g.key != null && (g.key = `${K.key}${g.key}`);
807
- let E = p.getFullNode({
808
- ...g,
809
- index: $
810
- }, p.getChildState(t, g), K.key, K);
811
- for (let C of E)
812
- $++, yield C;
813
- }
814
- })
815
- };
816
- yield K;
817
- }
818
- constructor() {
819
- this.cache = /* @__PURE__ */ new WeakMap();
820
- }
821
- }
822
- function He(r) {
823
- let e = [], t = null;
824
- return {
825
- *[Symbol.iterator]() {
826
- for (let l of e) yield l;
827
- t || (t = r());
828
- for (let l of t)
829
- e.push(l), yield l;
830
- }
831
- };
832
- }
833
- function Ul(r, e) {
834
- if (r && e) return (t) => r(e(t));
835
- if (r) return r;
836
- if (e) return e;
837
- }
838
- function be(r) {
839
- return r[0].toUpperCase() + r.slice(1);
840
- }
841
- function _i(r, e, t) {
842
- let l = U(() => new Vl(), []), { children: i, items: n, collection: o } = r;
843
- return U(() => {
844
- if (o) return o;
845
- let s = l.build({
846
- children: i,
847
- items: n
848
- }, t);
849
- return e(s);
850
- }, [
851
- l,
852
- i,
853
- n,
854
- o,
855
- t,
856
- e
857
- ]);
858
- }
859
- function ft(r, e) {
860
- return typeof e.getChildren == "function" ? e.getChildren(r.key) : r.childNodes;
861
- }
862
- function zl(r) {
863
- return Hl(r);
864
- }
865
- function Hl(r, e) {
866
- for (let t of r)
867
- return t;
868
- }
869
- function ge(r, e, t) {
870
- if (e.parentKey === t.parentKey) return e.index - t.index;
871
- let l = [
872
- ...qe(r, e),
873
- e
874
- ], i = [
875
- ...qe(r, t),
876
- t
877
- ], n = l.slice(0, i.length).findIndex((o, u) => o !== i[u]);
878
- return n !== -1 ? (e = l[n], t = i[n], e.index - t.index) : l.findIndex((o) => o === t) >= 0 ? 1 : (i.findIndex((o) => o === e) >= 0, -1);
879
- }
880
- function qe(r, e) {
881
- let t = [], l = e;
882
- for (; l?.parentKey != null; )
883
- l = r.getItem(l.parentKey), l && t.unshift(l);
884
- return t;
885
- }
886
- const We = /* @__PURE__ */ new WeakMap();
887
- function ji(r) {
888
- let e = We.get(r);
889
- if (e != null) return e;
890
- let t = 0, l = (i) => {
891
- for (let n of i)
892
- n.type === "section" ? l(ft(n, r)) : n.type === "item" && t++;
893
- };
894
- return l(r), We.set(r, t), t;
895
- }
896
- var re = { exports: {} }, $e = {};
897
- /**
898
- * @license React
899
- * use-sync-external-store-shim.production.js
900
- *
901
- * Copyright (c) Meta Platforms, Inc. and affiliates.
902
- *
903
- * This source code is licensed under the MIT license found in the
904
- * LICENSE file in the root directory of this source tree.
905
- */
906
- var Ge;
907
- function ql() {
908
- if (Ge) return $e;
909
- Ge = 1;
910
- var r = S;
911
- function e(h, p) {
912
- return h === p && (h !== 0 || 1 / h === 1 / p) || h !== h && p !== p;
913
- }
914
- var t = typeof Object.is == "function" ? Object.is : e, l = r.useState, i = r.useEffect, n = r.useLayoutEffect, o = r.useDebugValue;
915
- function u(h, p) {
916
- var y = p(), v = l({ inst: { value: y, getSnapshot: p } }), K = v[0].inst, $ = v[1];
917
- return n(
918
- function() {
919
- K.value = y, K.getSnapshot = p, s(K) && $({ inst: K });
920
- },
921
- [h, y, p]
922
- ), i(
923
- function() {
924
- return s(K) && $({ inst: K }), h(function() {
925
- s(K) && $({ inst: K });
926
- });
927
- },
928
- [h]
929
- ), o(y), y;
930
- }
931
- function s(h) {
932
- var p = h.getSnapshot;
933
- h = h.value;
934
- try {
935
- var y = p();
936
- return !t(h, y);
937
- } catch {
938
- return !0;
939
- }
940
- }
941
- function f(h, p) {
942
- return p();
943
- }
944
- var m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? f : u;
945
- return $e.useSyncExternalStore = r.useSyncExternalStore !== void 0 ? r.useSyncExternalStore : m, $e;
946
- }
947
- var me = {};
948
- /**
949
- * @license React
950
- * use-sync-external-store-shim.development.js
951
- *
952
- * Copyright (c) Meta Platforms, Inc. and affiliates.
953
- *
954
- * This source code is licensed under the MIT license found in the
955
- * LICENSE file in the root directory of this source tree.
956
- */
957
- var _e;
958
- function Wl() {
959
- return _e || (_e = 1, process.env.NODE_ENV !== "production" && function() {
960
- function r(y, v) {
961
- return y === v && (y !== 0 || 1 / y === 1 / v) || y !== y && v !== v;
962
- }
963
- function e(y, v) {
964
- m || i.startTransition === void 0 || (m = !0, console.error(
965
- "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
966
- ));
967
- var K = v();
968
- if (!h) {
969
- var $ = v();
970
- n(K, $) || (console.error(
971
- "The result of getSnapshot should be cached to avoid an infinite loop"
972
- ), h = !0);
973
- }
974
- $ = o({
975
- inst: { value: K, getSnapshot: v }
976
- });
977
- var g = $[0].inst, E = $[1];
978
- return s(
979
- function() {
980
- g.value = K, g.getSnapshot = v, t(g) && E({ inst: g });
981
- },
982
- [y, K, v]
983
- ), u(
984
- function() {
985
- return t(g) && E({ inst: g }), y(function() {
986
- t(g) && E({ inst: g });
987
- });
988
- },
989
- [y]
990
- ), f(K), K;
991
- }
992
- function t(y) {
993
- var v = y.getSnapshot;
994
- y = y.value;
995
- try {
996
- var K = v();
997
- return !n(y, K);
998
- } catch {
999
- return !0;
1000
- }
1001
- }
1002
- function l(y, v) {
1003
- return v();
1004
- }
1005
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1006
- var i = S, n = typeof Object.is == "function" ? Object.is : r, o = i.useState, u = i.useEffect, s = i.useLayoutEffect, f = i.useDebugValue, m = !1, h = !1, p = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? l : e;
1007
- me.useSyncExternalStore = i.useSyncExternalStore !== void 0 ? i.useSyncExternalStore : p, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1008
- }()), me;
1009
- }
1010
- var je;
1011
- function Gl() {
1012
- return je || (je = 1, process.env.NODE_ENV === "production" ? re.exports = ql() : re.exports = Wl()), re.exports;
1013
- }
1014
- var _l = /* @__PURE__ */ Gl();
1015
- class Te {
1016
- get childNodes() {
1017
- throw new Error("childNodes is not supported");
1018
- }
1019
- clone() {
1020
- let e = new Te(this.type, this.key);
1021
- return e.value = this.value, e.level = this.level, e.hasChildNodes = this.hasChildNodes, e.rendered = this.rendered, e.textValue = this.textValue, e["aria-label"] = this["aria-label"], e.index = this.index, e.parentKey = this.parentKey, e.prevKey = this.prevKey, e.nextKey = this.nextKey, e.firstChildKey = this.firstChildKey, e.lastChildKey = this.lastChildKey, e.props = this.props, e.render = this.render, e.colSpan = this.colSpan, e.colIndex = this.colIndex, e;
1022
- }
1023
- constructor(e, t) {
1024
- this.value = null, this.level = 0, this.hasChildNodes = !1, this.rendered = null, this.textValue = "", this["aria-label"] = void 0, this.index = 0, this.parentKey = null, this.prevKey = null, this.nextKey = null, this.firstChildKey = null, this.lastChildKey = null, this.props = {}, this.colSpan = null, this.colIndex = null, this.type = e, this.key = t;
1025
- }
1026
- }
1027
- class Ae {
1028
- get size() {
1029
- return this.itemCount;
1030
- }
1031
- getKeys() {
1032
- return this.keyMap.keys();
1033
- }
1034
- *[Symbol.iterator]() {
1035
- let e = this.firstKey != null ? this.keyMap.get(this.firstKey) : void 0;
1036
- for (; e; )
1037
- yield e, e = e.nextKey != null ? this.keyMap.get(e.nextKey) : void 0;
1038
- }
1039
- getChildren(e) {
1040
- let t = this.keyMap;
1041
- return {
1042
- *[Symbol.iterator]() {
1043
- let l = t.get(e), i = l?.firstChildKey != null ? t.get(l.firstChildKey) : null;
1044
- for (; i; )
1045
- yield i, i = i.nextKey != null ? t.get(i.nextKey) : void 0;
1046
- }
1047
- };
1048
- }
1049
- getKeyBefore(e) {
1050
- let t = this.keyMap.get(e);
1051
- if (!t) return null;
1052
- if (t.prevKey != null) {
1053
- for (t = this.keyMap.get(t.prevKey); t && t.type !== "item" && t.lastChildKey != null; ) t = this.keyMap.get(t.lastChildKey);
1054
- var l;
1055
- return (l = t?.key) !== null && l !== void 0 ? l : null;
1056
- }
1057
- return t.parentKey;
1058
- }
1059
- getKeyAfter(e) {
1060
- let t = this.keyMap.get(e);
1061
- if (!t) return null;
1062
- if (t.type !== "item" && t.firstChildKey != null) return t.firstChildKey;
1063
- for (; t; ) {
1064
- if (t.nextKey != null) return t.nextKey;
1065
- if (t.parentKey != null) t = this.keyMap.get(t.parentKey);
1066
- else return null;
1067
- }
1068
- return null;
1069
- }
1070
- getFirstKey() {
1071
- return this.firstKey;
1072
- }
1073
- getLastKey() {
1074
- let e = this.lastKey != null ? this.keyMap.get(this.lastKey) : null;
1075
- for (; e?.lastChildKey != null; ) e = this.keyMap.get(e.lastChildKey);
1076
- var t;
1077
- return (t = e?.key) !== null && t !== void 0 ? t : null;
1078
- }
1079
- getItem(e) {
1080
- var t;
1081
- return (t = this.keyMap.get(e)) !== null && t !== void 0 ? t : null;
1082
- }
1083
- at() {
1084
- throw new Error("Not implemented");
1085
- }
1086
- clone() {
1087
- let e = this.constructor, t = new e();
1088
- return t.keyMap = new Map(this.keyMap), t.firstKey = this.firstKey, t.lastKey = this.lastKey, t.itemCount = this.itemCount, t;
1089
- }
1090
- addNode(e) {
1091
- if (this.frozen) throw new Error("Cannot add a node to a frozen collection");
1092
- e.type === "item" && this.keyMap.get(e.key) == null && this.itemCount++, this.keyMap.set(e.key, e);
1093
- }
1094
- removeNode(e) {
1095
- if (this.frozen) throw new Error("Cannot remove a node to a frozen collection");
1096
- let t = this.keyMap.get(e);
1097
- t != null && t.type === "item" && this.itemCount--, this.keyMap.delete(e);
1098
- }
1099
- commit(e, t, l = !1) {
1100
- if (this.frozen) throw new Error("Cannot commit a frozen collection");
1101
- this.firstKey = e, this.lastKey = t, this.frozen = !l;
1102
- }
1103
- // TODO: this is pretty specific to menu, will need to check if it is generic enough
1104
- // Will need to handle varying levels I assume but will revisit after I get searchable menu working for base menu
1105
- // TODO: an alternative is to simply walk the collection and add all item nodes that match the filter and any sections/separators we encounter
1106
- // to an array, then walk that new array and fix all the next/Prev keys while adding them to the new collection
1107
- UNSTABLE_filter(e) {
1108
- let t = new Ae(), l = null;
1109
- for (let i of this)
1110
- if (i.type === "section" && i.hasChildNodes) {
1111
- let n = i.clone(), o = null;
1112
- for (let u of this.getChildren(i.key)) if (Ye(u, e, this, t)) {
1113
- let s = u.clone();
1114
- o == null && (n.firstChildKey = s.key), t.firstKey == null && (t.firstKey = n.key), o && o.parentKey === s.parentKey ? (o.nextKey = s.key, s.prevKey = o.key) : s.prevKey = null, s.nextKey = null, t.addNode(s), o = s;
1115
- }
1116
- o && (o.type !== "header" ? (n.lastChildKey = o.key, l == null ? n.prevKey = null : (l.type === "section" || l.type === "separator") && (l.nextKey = n.key, n.prevKey = l.key), n.nextKey = null, l = n, t.addNode(n)) : (t.firstKey === n.key && (t.firstKey = null), t.removeNode(o.key)));
1117
- } else if (i.type === "separator") {
1118
- let n = i.clone();
1119
- n.nextKey = null, l?.type === "section" && (l.nextKey = n.key, n.prevKey = l.key, l = n, t.addNode(n));
1120
- } else {
1121
- let n = i.clone();
1122
- Ye(n, e, this, t) && (t.firstKey == null && (t.firstKey = n.key), l != null && l.type !== "section" && l.type !== "separator" && l.parentKey === n.parentKey ? (l.nextKey = n.key, n.prevKey = l.key) : n.prevKey = null, n.nextKey = null, t.addNode(n), l = n);
1123
- }
1124
- if (l?.type === "separator" && l.nextKey === null) {
1125
- let i;
1126
- l.prevKey != null && (i = t.getItem(l.prevKey), i.nextKey = null), t.removeNode(l.key), l = i;
1127
- }
1128
- return t.lastKey = l?.key || null, t;
1129
- }
1130
- constructor() {
1131
- this.keyMap = /* @__PURE__ */ new Map(), this.firstKey = null, this.lastKey = null, this.frozen = !1, this.itemCount = 0;
1132
- }
1133
- }
1134
- function Ye(r, e, t, l) {
1135
- if (r.type === "subdialogtrigger" || r.type === "submenutrigger") {
1136
- let i = [
1137
- ...t.getChildren(r.key)
1138
- ][0];
1139
- if (i && e(i.textValue)) {
1140
- let n = i.clone();
1141
- return l.addNode(n), !0;
1142
- } else return !1;
1143
- } else return r.type === "header" ? !0 : e(r.textValue);
1144
- }
1145
- class ht {
1146
- *[Symbol.iterator]() {
1147
- let e = this.firstChild;
1148
- for (; e; )
1149
- yield e, e = e.nextSibling;
1150
- }
1151
- get firstChild() {
1152
- return this._firstChild;
1153
- }
1154
- set firstChild(e) {
1155
- this._firstChild = e, this.ownerDocument.markDirty(this);
1156
- }
1157
- get lastChild() {
1158
- return this._lastChild;
1159
- }
1160
- set lastChild(e) {
1161
- this._lastChild = e, this.ownerDocument.markDirty(this);
1162
- }
1163
- get previousSibling() {
1164
- return this._previousSibling;
1165
- }
1166
- set previousSibling(e) {
1167
- this._previousSibling = e, this.ownerDocument.markDirty(this);
1168
- }
1169
- get nextSibling() {
1170
- return this._nextSibling;
1171
- }
1172
- set nextSibling(e) {
1173
- this._nextSibling = e, this.ownerDocument.markDirty(this);
1174
- }
1175
- get parentNode() {
1176
- return this._parentNode;
1177
- }
1178
- set parentNode(e) {
1179
- this._parentNode = e, this.ownerDocument.markDirty(this);
1180
- }
1181
- get isConnected() {
1182
- var e;
1183
- return ((e = this.parentNode) === null || e === void 0 ? void 0 : e.isConnected) || !1;
1184
- }
1185
- invalidateChildIndices(e) {
1186
- (this._minInvalidChildIndex == null || !this._minInvalidChildIndex.isConnected || e.index < this._minInvalidChildIndex.index) && (this._minInvalidChildIndex = e, this.ownerDocument.markDirty(this));
1187
- }
1188
- updateChildIndices() {
1189
- let e = this._minInvalidChildIndex;
1190
- for (; e; )
1191
- e.index = e.previousSibling ? e.previousSibling.index + 1 : 0, e = e.nextSibling;
1192
- this._minInvalidChildIndex = null;
1193
- }
1194
- appendChild(e) {
1195
- e.parentNode && e.parentNode.removeChild(e), this.firstChild == null && (this.firstChild = e), this.lastChild ? (this.lastChild.nextSibling = e, e.index = this.lastChild.index + 1, e.previousSibling = this.lastChild) : (e.previousSibling = null, e.index = 0), e.parentNode = this, e.nextSibling = null, this.lastChild = e, this.ownerDocument.markDirty(this), this.isConnected && this.ownerDocument.queueUpdate();
1196
- }
1197
- insertBefore(e, t) {
1198
- if (t == null) return this.appendChild(e);
1199
- e.parentNode && e.parentNode.removeChild(e), e.nextSibling = t, e.previousSibling = t.previousSibling, e.index = t.index - 1, this.firstChild === t ? this.firstChild = e : t.previousSibling && (t.previousSibling.nextSibling = e), t.previousSibling = e, e.parentNode = t.parentNode, this.invalidateChildIndices(e), this.isConnected && this.ownerDocument.queueUpdate();
1200
- }
1201
- removeChild(e) {
1202
- e.parentNode !== this || !this.ownerDocument.isMounted || (this._minInvalidChildIndex === e && (this._minInvalidChildIndex = null), e.nextSibling && (this.invalidateChildIndices(e.nextSibling), e.nextSibling.previousSibling = e.previousSibling), e.previousSibling && (e.previousSibling.nextSibling = e.nextSibling), this.firstChild === e && (this.firstChild = e.nextSibling), this.lastChild === e && (this.lastChild = e.previousSibling), e.parentNode = null, e.nextSibling = null, e.previousSibling = null, e.index = 0, this.ownerDocument.markDirty(e), this.isConnected && this.ownerDocument.queueUpdate());
1203
- }
1204
- addEventListener() {
1205
- }
1206
- removeEventListener() {
1207
- }
1208
- get previousVisibleSibling() {
1209
- let e = this.previousSibling;
1210
- for (; e && e.isHidden; ) e = e.previousSibling;
1211
- return e;
1212
- }
1213
- get nextVisibleSibling() {
1214
- let e = this.nextSibling;
1215
- for (; e && e.isHidden; ) e = e.nextSibling;
1216
- return e;
1217
- }
1218
- get firstVisibleChild() {
1219
- let e = this.firstChild;
1220
- for (; e && e.isHidden; ) e = e.nextSibling;
1221
- return e;
1222
- }
1223
- get lastVisibleChild() {
1224
- let e = this.lastChild;
1225
- for (; e && e.isHidden; ) e = e.previousSibling;
1226
- return e;
1227
- }
1228
- constructor(e) {
1229
- this._firstChild = null, this._lastChild = null, this._previousSibling = null, this._nextSibling = null, this._parentNode = null, this._minInvalidChildIndex = null, this.ownerDocument = e;
1230
- }
1231
- }
1232
- class le extends ht {
1233
- get index() {
1234
- return this._index;
1235
- }
1236
- set index(e) {
1237
- this._index = e, this.ownerDocument.markDirty(this);
1238
- }
1239
- get level() {
1240
- return this.parentNode instanceof le ? this.parentNode.level + (this.node.type === "item" ? 1 : 0) : 0;
1241
- }
1242
- /**
1243
- * Lazily gets a mutable instance of a Node. If the node has already
1244
- * been cloned during this update cycle, it just returns the existing one.
1245
- */
1246
- getMutableNode() {
1247
- return this.isMutated || (this.node = this.node.clone(), this.isMutated = !0), this.ownerDocument.markDirty(this), this.node;
1248
- }
1249
- updateNode() {
1250
- var e, t, l;
1251
- let i = this.nextVisibleSibling, n = this.getMutableNode();
1252
- n.index = this.index, n.level = this.level, n.parentKey = this.parentNode instanceof le ? this.parentNode.node.key : null;
1253
- var o;
1254
- n.prevKey = (o = (e = this.previousVisibleSibling) === null || e === void 0 ? void 0 : e.node.key) !== null && o !== void 0 ? o : null;
1255
- var u;
1256
- n.nextKey = (u = i?.node.key) !== null && u !== void 0 ? u : null, n.hasChildNodes = !!this.firstChild;
1257
- var s;
1258
- n.firstChildKey = (s = (t = this.firstVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && s !== void 0 ? s : null;
1259
- var f;
1260
- if (n.lastChildKey = (f = (l = this.lastVisibleChild) === null || l === void 0 ? void 0 : l.node.key) !== null && f !== void 0 ? f : null, (n.colSpan != null || n.colIndex != null) && i) {
1261
- var m, h;
1262
- let p = ((m = n.colIndex) !== null && m !== void 0 ? m : n.index) + ((h = n.colSpan) !== null && h !== void 0 ? h : 1);
1263
- if (p !== i.node.colIndex) {
1264
- let y = i.getMutableNode();
1265
- y.colIndex = p;
1266
- }
1267
- }
1268
- }
1269
- setProps(e, t, l, i) {
1270
- let n = this.getMutableNode(), { value: o, textValue: u, id: s, ...f } = e;
1271
- if (f.ref = t, n.props = f, n.rendered = l, n.render = i, n.value = o, n.textValue = u || (typeof f.children == "string" ? f.children : "") || e["aria-label"] || "", s != null && s !== n.key) {
1272
- if (this.hasSetProps) throw new Error("Cannot change the id of an item");
1273
- n.key = s;
1274
- }
1275
- f.colSpan != null && (n.colSpan = f.colSpan), this.hasSetProps = !0, this.isConnected && this.ownerDocument.queueUpdate();
1276
- }
1277
- get style() {
1278
- let e = this;
1279
- return {
1280
- get display() {
1281
- return e.isHidden ? "none" : "";
1282
- },
1283
- set display(t) {
1284
- let l = t === "none";
1285
- if (e.isHidden !== l) {
1286
- var i, n;
1287
- (((i = e.parentNode) === null || i === void 0 ? void 0 : i.firstVisibleChild) === e || ((n = e.parentNode) === null || n === void 0 ? void 0 : n.lastVisibleChild) === e) && e.ownerDocument.markDirty(e.parentNode);
1288
- let o = e.previousVisibleSibling, u = e.nextVisibleSibling;
1289
- o && e.ownerDocument.markDirty(o), u && e.ownerDocument.markDirty(u), e.isHidden = l, e.ownerDocument.markDirty(e);
1290
- }
1291
- }
1292
- };
1293
- }
1294
- hasAttribute() {
1295
- }
1296
- setAttribute() {
1297
- }
1298
- setAttributeNS() {
1299
- }
1300
- removeAttribute() {
1301
- }
1302
- constructor(e, t) {
1303
- super(t), this.nodeType = 8, this.isMutated = !0, this._index = 0, this.hasSetProps = !1, this.isHidden = !1, this.node = new Te(e, `react-aria-${++t.nodeId}`);
1304
- }
1305
- }
1306
- class jl extends ht {
1307
- get isConnected() {
1308
- return this.isMounted;
1309
- }
1310
- createElement(e) {
1311
- return new le(e, this);
1312
- }
1313
- getMutableCollection() {
1314
- return this.nextCollection || (this.nextCollection = this.collection.clone()), this.nextCollection;
1315
- }
1316
- markDirty(e) {
1317
- this.dirtyNodes.add(e);
1318
- }
1319
- addNode(e) {
1320
- if (e.isHidden) return;
1321
- let t = this.getMutableCollection();
1322
- if (!t.getItem(e.node.key)) for (let l of e) this.addNode(l);
1323
- t.addNode(e.node);
1324
- }
1325
- removeNode(e) {
1326
- for (let l of e) this.removeNode(l);
1327
- this.getMutableCollection().removeNode(e.node.key);
1328
- }
1329
- /** Finalizes the collection update, updating all nodes and freezing the collection. */
1330
- getCollection() {
1331
- return this.inSubscription ? this.collection.clone() : (this.queuedRender = !1, this.updateCollection(), this.collection);
1332
- }
1333
- updateCollection() {
1334
- for (let n of this.dirtyNodes) n instanceof le && (!n.isConnected || n.isHidden) ? this.removeNode(n) : n.updateChildIndices();
1335
- for (let n of this.dirtyNodes) n instanceof le && (n.isConnected && !n.isHidden && (n.updateNode(), this.addNode(n)), n.isMutated = !1);
1336
- if (this.dirtyNodes.clear(), this.nextCollection) {
1337
- var e, t, l, i;
1338
- this.nextCollection.commit((l = (e = this.firstVisibleChild) === null || e === void 0 ? void 0 : e.node.key) !== null && l !== void 0 ? l : null, (i = (t = this.lastVisibleChild) === null || t === void 0 ? void 0 : t.node.key) !== null && i !== void 0 ? i : null, this.isSSR), this.isSSR || (this.collection = this.nextCollection, this.nextCollection = null);
1339
- }
1340
- }
1341
- queueUpdate() {
1342
- if (!(this.dirtyNodes.size === 0 || this.queuedRender)) {
1343
- this.queuedRender = !0, this.inSubscription = !0;
1344
- for (let e of this.subscriptions) e();
1345
- this.inSubscription = !1;
1346
- }
1347
- }
1348
- subscribe(e) {
1349
- return this.subscriptions.add(e), () => this.subscriptions.delete(e);
1350
- }
1351
- resetAfterSSR() {
1352
- this.isSSR && (this.isSSR = !1, this.firstChild = null, this.lastChild = null, this.nodeId = 0);
1353
- }
1354
- constructor(e) {
1355
- super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = !1, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.isMounted = !0, this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = !1, this.inSubscription = !1, this.collection = e, this.nextCollection = e;
1356
- }
1357
- }
1358
- function pt(r) {
1359
- let { children: e, items: t, idScope: l, addIdAndValue: i, dependencies: n = [] } = r, o = U(() => /* @__PURE__ */ new WeakMap(), n);
1360
- return U(() => {
1361
- if (t && typeof e == "function") {
1362
- let f = [];
1363
- for (let m of t) {
1364
- let h = o.get(m);
1365
- if (!h) {
1366
- h = e(m);
1367
- var u, s;
1368
- let p = (s = (u = h.props.id) !== null && u !== void 0 ? u : m.key) !== null && s !== void 0 ? s : m.id;
1369
- if (p == null) throw new Error("Could not determine key for item");
1370
- l && (p = l + ":" + p), h = tt(h, i ? {
1371
- key: p,
1372
- id: p,
1373
- value: m
1374
- } : {
1375
- key: p
1376
- }), o.set(m, h);
1377
- }
1378
- f.push(h);
1379
- }
1380
- return f;
1381
- } else if (typeof e != "function") return e;
1382
- }, [
1383
- e,
1384
- t,
1385
- o,
1386
- l,
1387
- i
1388
- ]);
1389
- }
1390
- const yt = /* @__PURE__ */ M(!1), ne = /* @__PURE__ */ M(null);
1391
- function Yi(r) {
1392
- if (Q(ne))
1393
- return r.content;
1394
- let { collection: t, document: l } = Zl(r.createCollection);
1395
- return /* @__PURE__ */ S.createElement(S.Fragment, null, /* @__PURE__ */ S.createElement(Cl, null, /* @__PURE__ */ S.createElement(ne.Provider, {
1396
- value: l
1397
- }, r.content)), /* @__PURE__ */ S.createElement(Yl, {
1398
- render: r.children,
1399
- collection: t
1400
- }));
1401
- }
1402
- function Yl({ collection: r, render: e }) {
1403
- return e(r);
1404
- }
1405
- function Jl(r, e, t) {
1406
- let l = at(), i = D(l);
1407
- i.current = l;
1408
- let n = G(() => i.current ? t() : e(), [
1409
- e,
1410
- t
1411
- ]);
1412
- return _l.useSyncExternalStore(r, n);
1413
- }
1414
- const Xl = typeof S.useSyncExternalStore == "function" ? S.useSyncExternalStore : Jl;
1415
- function Zl(r) {
1416
- let [e] = te(() => new jl(r?.() || new Ae())), t = G((o) => e.subscribe(o), [
1417
- e
1418
- ]), l = G(() => {
1419
- let o = e.getCollection();
1420
- return e.isSSR && e.resetAfterSSR(), o;
1421
- }, [
1422
- e
1423
- ]), i = G(() => (e.isSSR = !0, e.getCollection()), [
1424
- e
1425
- ]), n = Xl(t, l, i);
1426
- return xe(() => (e.isMounted = !0, () => {
1427
- e.isMounted = !1;
1428
- }), [
1429
- e
1430
- ]), {
1431
- collection: n,
1432
- document: e
1433
- };
1434
- }
1435
- const Ie = /* @__PURE__ */ M(null);
1436
- function vt(r, e, t, l, i, n) {
1437
- let o = G((s) => {
1438
- s?.setProps(e, t, l, n);
1439
- }, [
1440
- e,
1441
- t,
1442
- l,
1443
- n
1444
- ]), u = Q(Ie);
1445
- if (u) {
1446
- let s = u.ownerDocument.nodesByProps.get(e);
1447
- return s || (s = u.ownerDocument.createElement(r), s.setProps(e, t, l, n), u.appendChild(s), u.ownerDocument.updateCollection(), u.ownerDocument.nodesByProps.set(e, s)), i ? /* @__PURE__ */ S.createElement(Ie.Provider, {
1448
- value: s
1449
- }, i) : null;
1450
- }
1451
- return /* @__PURE__ */ S.createElement(r, {
1452
- ref: o
1453
- }, i);
1454
- }
1455
- function bt(r, e) {
1456
- let t = ({ node: i }) => e(i.props, i.props.ref, i), l = lt((i, n) => {
1457
- let o = Q(Oe);
1458
- if (!Q(yt)) {
1459
- if (e.length >= 3) throw new Error(e.name + " cannot be rendered outside a collection.");
1460
- return e(i, n);
1461
- }
1462
- return vt(r, i, n, "children" in i ? i.children : null, null, (s) => (
1463
- // Forward FocusableContext to real DOM tree so tooltips work.
1464
- /* @__PURE__ */ S.createElement(Oe.Provider, {
1465
- value: o
1466
- }, /* @__PURE__ */ S.createElement(t, {
1467
- node: s
1468
- }))
1469
- ));
1470
- });
1471
- return l.displayName = e.name, l;
1472
- }
1473
- function Ji(r, e, t = gt) {
1474
- let l = ({ node: n }) => e(n.props, n.props.ref, n), i = lt((n, o) => {
1475
- let u = t(n);
1476
- var s;
1477
- return (s = vt(r, n, o, null, u, (f) => /* @__PURE__ */ S.createElement(l, {
1478
- node: f
1479
- }))) !== null && s !== void 0 ? s : /* @__PURE__ */ S.createElement(S.Fragment, null);
1480
- });
1481
- return i.displayName = e.name, i;
1482
- }
1483
- function gt(r) {
1484
- return pt({
1485
- ...r,
1486
- addIdAndValue: !0
1487
- });
1488
- }
1489
- const Je = /* @__PURE__ */ M(null);
1490
- function Xi(r) {
1491
- let e = Q(Je), t = (e?.dependencies || []).concat(r.dependencies), l = r.idScope || e?.idScope, i = gt({
1492
- ...r,
1493
- idScope: l,
1494
- dependencies: t
1495
- });
1496
- return Q(ne) && (i = /* @__PURE__ */ S.createElement(Ql, null, i)), e = U(() => ({
1497
- dependencies: t,
1498
- idScope: l
1499
- }), [
1500
- l,
1501
- ...t
1502
- ]), /* @__PURE__ */ S.createElement(Je.Provider, {
1503
- value: e
1504
- }, i);
1505
- }
1506
- function Ql({ children: r }) {
1507
- let e = Q(ne), t = U(() => /* @__PURE__ */ S.createElement(ne.Provider, {
1508
- value: null
1509
- }, /* @__PURE__ */ S.createElement(yt.Provider, {
1510
- value: !0
1511
- }, r)), [
1512
- r
1513
- ]);
1514
- return at() ? /* @__PURE__ */ S.createElement(Ie.Provider, {
1515
- value: e
1516
- }, t) : /* @__PURE__ */ fl(t, e);
1517
- }
1518
- class z extends Set {
1519
- constructor(e, t, l) {
1520
- super(e), e instanceof z ? (this.anchorKey = t ?? e.anchorKey, this.currentKey = l ?? e.currentKey) : (this.anchorKey = t ?? null, this.currentKey = l ?? null);
1521
- }
1522
- }
1523
- function ei(r, e) {
1524
- if (r.size !== e.size) return !1;
1525
- for (let t of r)
1526
- if (!e.has(t)) return !1;
1527
- return !0;
1528
- }
1529
- function Zi(r) {
1530
- let { selectionMode: e = "none", disallowEmptySelection: t = !1, allowDuplicateSelectionEvents: l, selectionBehavior: i = "toggle", disabledBehavior: n = "all" } = r, o = D(!1), [, u] = te(!1), s = D(null), f = D(null), [, m] = te(null), h = U(() => Xe(r.selectedKeys), [
1531
- r.selectedKeys
1532
- ]), p = U(() => Xe(r.defaultSelectedKeys, new z()), [
1533
- r.defaultSelectedKeys
1534
- ]), [y, v] = it(h, p, r.onSelectionChange), K = U(() => r.disabledKeys ? new Set(r.disabledKeys) : /* @__PURE__ */ new Set(), [
1535
- r.disabledKeys
1536
- ]), [$, g] = te(i);
1537
- i === "replace" && $ === "toggle" && typeof y == "object" && y.size === 0 && g("replace");
1538
- let E = D(i);
1539
- return Z(() => {
1540
- i !== E.current && (g(i), E.current = i);
1541
- }, [
1542
- i
1543
- ]), {
1544
- selectionMode: e,
1545
- disallowEmptySelection: t,
1546
- selectionBehavior: $,
1547
- setSelectionBehavior: g,
1548
- get isFocused() {
1549
- return o.current;
1550
- },
1551
- setFocused(C) {
1552
- o.current = C, u(C);
1553
- },
1554
- get focusedKey() {
1555
- return s.current;
1556
- },
1557
- get childFocusStrategy() {
1558
- return f.current;
1559
- },
1560
- setFocusedKey(C, k = "first") {
1561
- s.current = C, f.current = k, m(C);
1562
- },
1563
- selectedKeys: y,
1564
- setSelectedKeys(C) {
1565
- (l || !ei(C, y)) && v(C);
1566
- },
1567
- disabledKeys: K,
1568
- disabledBehavior: n
1569
- };
1570
- }
1571
- function Xe(r, e) {
1572
- return r ? r === "all" ? "all" : new z(r) : e;
1573
- }
1574
- class $t {
1575
- /**
1576
- * The type of selection that is allowed in the collection.
1577
- */
1578
- get selectionMode() {
1579
- return this.state.selectionMode;
1580
- }
1581
- /**
1582
- * Whether the collection allows empty selection.
1583
- */
1584
- get disallowEmptySelection() {
1585
- return this.state.disallowEmptySelection;
1586
- }
1587
- /**
1588
- * The selection behavior for the collection.
1589
- */
1590
- get selectionBehavior() {
1591
- return this.state.selectionBehavior;
1592
- }
1593
- /**
1594
- * Sets the selection behavior for the collection.
1595
- */
1596
- setSelectionBehavior(e) {
1597
- this.state.setSelectionBehavior(e);
1598
- }
1599
- /**
1600
- * Whether the collection is currently focused.
1601
- */
1602
- get isFocused() {
1603
- return this.state.isFocused;
1604
- }
1605
- /**
1606
- * Sets whether the collection is focused.
1607
- */
1608
- setFocused(e) {
1609
- this.state.setFocused(e);
1610
- }
1611
- /**
1612
- * The current focused key in the collection.
1613
- */
1614
- get focusedKey() {
1615
- return this.state.focusedKey;
1616
- }
1617
- /** Whether the first or last child of the focused key should receive focus. */
1618
- get childFocusStrategy() {
1619
- return this.state.childFocusStrategy;
1620
- }
1621
- /**
1622
- * Sets the focused key.
1623
- */
1624
- setFocusedKey(e, t) {
1625
- (e == null || this.collection.getItem(e)) && this.state.setFocusedKey(e, t);
1626
- }
1627
- /**
1628
- * The currently selected keys in the collection.
1629
- */
1630
- get selectedKeys() {
1631
- return this.state.selectedKeys === "all" ? new Set(this.getSelectAllKeys()) : this.state.selectedKeys;
1632
- }
1633
- /**
1634
- * The raw selection value for the collection.
1635
- * Either 'all' for select all, or a set of keys.
1636
- */
1637
- get rawSelection() {
1638
- return this.state.selectedKeys;
1639
- }
1640
- /**
1641
- * Returns whether a key is selected.
1642
- */
1643
- isSelected(e) {
1644
- if (this.state.selectionMode === "none") return !1;
1645
- let t = this.getKey(e);
1646
- return t == null ? !1 : this.state.selectedKeys === "all" ? this.canSelectItem(t) : this.state.selectedKeys.has(t);
1647
- }
1648
- /**
1649
- * Whether the selection is empty.
1650
- */
1651
- get isEmpty() {
1652
- return this.state.selectedKeys !== "all" && this.state.selectedKeys.size === 0;
1653
- }
1654
- /**
1655
- * Whether all items in the collection are selected.
1656
- */
1657
- get isSelectAll() {
1658
- if (this.isEmpty) return !1;
1659
- if (this.state.selectedKeys === "all") return !0;
1660
- if (this._isSelectAll != null) return this._isSelectAll;
1661
- let e = this.getSelectAllKeys(), t = this.state.selectedKeys;
1662
- return this._isSelectAll = e.every((l) => t.has(l)), this._isSelectAll;
1663
- }
1664
- get firstSelectedKey() {
1665
- let e = null;
1666
- for (let l of this.state.selectedKeys) {
1667
- let i = this.collection.getItem(l);
1668
- (!e || i && ge(this.collection, i, e) < 0) && (e = i);
1669
- }
1670
- var t;
1671
- return (t = e?.key) !== null && t !== void 0 ? t : null;
1672
- }
1673
- get lastSelectedKey() {
1674
- let e = null;
1675
- for (let l of this.state.selectedKeys) {
1676
- let i = this.collection.getItem(l);
1677
- (!e || i && ge(this.collection, i, e) > 0) && (e = i);
1678
- }
1679
- var t;
1680
- return (t = e?.key) !== null && t !== void 0 ? t : null;
1681
- }
1682
- get disabledKeys() {
1683
- return this.state.disabledKeys;
1684
- }
1685
- get disabledBehavior() {
1686
- return this.state.disabledBehavior;
1687
- }
1688
- /**
1689
- * Extends the selection to the given key.
1690
- */
1691
- extendSelection(e) {
1692
- if (this.selectionMode === "none") return;
1693
- if (this.selectionMode === "single") {
1694
- this.replaceSelection(e);
1695
- return;
1696
- }
1697
- let t = this.getKey(e);
1698
- if (t == null) return;
1699
- let l;
1700
- if (this.state.selectedKeys === "all") l = new z([
1701
- t
1702
- ], t, t);
1703
- else {
1704
- let o = this.state.selectedKeys;
1705
- var i;
1706
- let u = (i = o.anchorKey) !== null && i !== void 0 ? i : t;
1707
- l = new z(o, u, t);
1708
- var n;
1709
- for (let s of this.getKeyRange(u, (n = o.currentKey) !== null && n !== void 0 ? n : t)) l.delete(s);
1710
- for (let s of this.getKeyRange(t, u)) this.canSelectItem(s) && l.add(s);
1711
- }
1712
- this.state.setSelectedKeys(l);
1713
- }
1714
- getKeyRange(e, t) {
1715
- let l = this.collection.getItem(e), i = this.collection.getItem(t);
1716
- return l && i ? ge(this.collection, l, i) <= 0 ? this.getKeyRangeInternal(e, t) : this.getKeyRangeInternal(t, e) : [];
1717
- }
1718
- getKeyRangeInternal(e, t) {
1719
- var l;
1720
- if (!((l = this.layoutDelegate) === null || l === void 0) && l.getKeyRange) return this.layoutDelegate.getKeyRange(e, t);
1721
- let i = [], n = e;
1722
- for (; n != null; ) {
1723
- let o = this.collection.getItem(n);
1724
- if (o && (o.type === "item" || o.type === "cell" && this.allowsCellSelection) && i.push(n), n === t) return i;
1725
- n = this.collection.getKeyAfter(n);
1726
- }
1727
- return [];
1728
- }
1729
- getKey(e) {
1730
- let t = this.collection.getItem(e);
1731
- if (!t || t.type === "cell" && this.allowsCellSelection) return e;
1732
- for (; t && t.type !== "item" && t.parentKey != null; ) t = this.collection.getItem(t.parentKey);
1733
- return !t || t.type !== "item" ? null : t.key;
1734
- }
1735
- /**
1736
- * Toggles whether the given key is selected.
1737
- */
1738
- toggleSelection(e) {
1739
- if (this.selectionMode === "none") return;
1740
- if (this.selectionMode === "single" && !this.isSelected(e)) {
1741
- this.replaceSelection(e);
1742
- return;
1743
- }
1744
- let t = this.getKey(e);
1745
- if (t == null) return;
1746
- let l = new z(this.state.selectedKeys === "all" ? this.getSelectAllKeys() : this.state.selectedKeys);
1747
- l.has(t) ? l.delete(t) : this.canSelectItem(t) && (l.add(t), l.anchorKey = t, l.currentKey = t), !(this.disallowEmptySelection && l.size === 0) && this.state.setSelectedKeys(l);
1748
- }
1749
- /**
1750
- * Replaces the selection with only the given key.
1751
- */
1752
- replaceSelection(e) {
1753
- if (this.selectionMode === "none") return;
1754
- let t = this.getKey(e);
1755
- if (t == null) return;
1756
- let l = this.canSelectItem(t) ? new z([
1757
- t
1758
- ], t, t) : new z();
1759
- this.state.setSelectedKeys(l);
1760
- }
1761
- /**
1762
- * Replaces the selection with the given keys.
1763
- */
1764
- setSelectedKeys(e) {
1765
- if (this.selectionMode === "none") return;
1766
- let t = new z();
1767
- for (let l of e) {
1768
- let i = this.getKey(l);
1769
- if (i != null && (t.add(i), this.selectionMode === "single"))
1770
- break;
1771
- }
1772
- this.state.setSelectedKeys(t);
1773
- }
1774
- getSelectAllKeys() {
1775
- let e = [], t = (l) => {
1776
- for (; l != null; ) {
1777
- if (this.canSelectItem(l)) {
1778
- var i;
1779
- let o = this.collection.getItem(l);
1780
- o?.type === "item" && e.push(l);
1781
- var n;
1782
- o?.hasChildNodes && (this.allowsCellSelection || o.type !== "item") && t((n = (i = zl(ft(o, this.collection))) === null || i === void 0 ? void 0 : i.key) !== null && n !== void 0 ? n : null);
1783
- }
1784
- l = this.collection.getKeyAfter(l);
1785
- }
1786
- };
1787
- return t(this.collection.getFirstKey()), e;
1788
- }
1789
- /**
1790
- * Selects all items in the collection.
1791
- */
1792
- selectAll() {
1793
- !this.isSelectAll && this.selectionMode === "multiple" && this.state.setSelectedKeys("all");
1794
- }
1795
- /**
1796
- * Removes all keys from the selection.
1797
- */
1798
- clearSelection() {
1799
- !this.disallowEmptySelection && (this.state.selectedKeys === "all" || this.state.selectedKeys.size > 0) && this.state.setSelectedKeys(new z());
1800
- }
1801
- /**
1802
- * Toggles between select all and an empty selection.
1803
- */
1804
- toggleSelectAll() {
1805
- this.isSelectAll ? this.clearSelection() : this.selectAll();
1806
- }
1807
- select(e, t) {
1808
- this.selectionMode !== "none" && (this.selectionMode === "single" ? this.isSelected(e) && !this.disallowEmptySelection ? this.toggleSelection(e) : this.replaceSelection(e) : this.selectionBehavior === "toggle" || t && (t.pointerType === "touch" || t.pointerType === "virtual") ? this.toggleSelection(e) : this.replaceSelection(e));
1809
- }
1810
- /**
1811
- * Returns whether the current selection is equal to the given selection.
1812
- */
1813
- isSelectionEqual(e) {
1814
- if (e === this.state.selectedKeys) return !0;
1815
- let t = this.selectedKeys;
1816
- if (e.size !== t.size) return !1;
1817
- for (let l of e)
1818
- if (!t.has(l)) return !1;
1819
- for (let l of t)
1820
- if (!e.has(l)) return !1;
1821
- return !0;
1822
- }
1823
- canSelectItem(e) {
1824
- var t;
1825
- if (this.state.selectionMode === "none" || this.state.disabledKeys.has(e)) return !1;
1826
- let l = this.collection.getItem(e);
1827
- return !(!l || !(l == null || (t = l.props) === null || t === void 0) && t.isDisabled || l.type === "cell" && !this.allowsCellSelection);
1828
- }
1829
- isDisabled(e) {
1830
- var t, l;
1831
- return this.state.disabledBehavior === "all" && (this.state.disabledKeys.has(e) || !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.isDisabled));
1832
- }
1833
- isLink(e) {
1834
- var t, l;
1835
- return !!(!((l = this.collection.getItem(e)) === null || l === void 0 || (t = l.props) === null || t === void 0) && t.href);
1836
- }
1837
- getItemProps(e) {
1838
- var t;
1839
- return (t = this.collection.getItem(e)) === null || t === void 0 ? void 0 : t.props;
1840
- }
1841
- withCollection(e) {
1842
- return new $t(e, this.state, {
1843
- allowsCellSelection: this.allowsCellSelection,
1844
- layoutDelegate: this.layoutDelegate || void 0
1845
- });
1846
- }
1847
- constructor(e, t, l) {
1848
- this.collection = e, this.state = t;
1849
- var i;
1850
- this.allowsCellSelection = (i = l?.allowsCellSelection) !== null && i !== void 0 ? i : !1, this._isSelectAll = null, this.layoutDelegate = l?.layoutDelegate || null;
1851
- }
1852
- }
1853
- const ti = /* @__PURE__ */ M(null), mt = /* @__PURE__ */ M(null), Qi = /* @__PURE__ */ wl(function(e, t) {
1854
- [e, t] = ae(e, t, mt);
1855
- let { validationBehavior: l } = nt(gl) || {};
1856
- var i, n;
1857
- let o = (n = (i = e.validationBehavior) !== null && i !== void 0 ? i : l) !== null && n !== void 0 ? n : "native", u = D(null), [s, f] = ae({}, u, we), [m, h] = yl(!e["aria-label"] && !e["aria-labelledby"]), [p, y] = te("input"), { labelProps: v, inputProps: K, descriptionProps: $, errorMessageProps: g, ...E } = El({
1858
- ...rt(e),
1859
- inputElementType: p,
1860
- label: h,
1861
- validationBehavior: o
1862
- }, f), C = G((R) => {
1863
- f.current = R, R && y(R instanceof HTMLTextAreaElement ? "textarea" : "input");
1864
- }, [
1865
- f
1866
- ]), k = vl({
1867
- ...e,
1868
- values: {
1869
- isDisabled: e.isDisabled || !1,
1870
- isInvalid: E.isInvalid,
1871
- isReadOnly: e.isReadOnly || !1,
1872
- isRequired: e.isRequired || !1
1873
- },
1874
- defaultClassName: "react-aria-TextField"
1875
- }), F = st(e, {
1876
- global: !0
1877
- });
1878
- return delete F.id, /* @__PURE__ */ S.createElement("div", {
1879
- ...F,
1880
- ...k,
1881
- ref: t,
1882
- slot: e.slot || void 0,
1883
- "data-disabled": e.isDisabled || void 0,
1884
- "data-invalid": E.isInvalid || void 0,
1885
- "data-readonly": e.isReadOnly || void 0,
1886
- "data-required": e.isRequired || void 0
1887
- }, /* @__PURE__ */ S.createElement(ot, {
1888
- values: [
1889
- [
1890
- xl,
1891
- {
1892
- ...v,
1893
- ref: m
1894
- }
1895
- ],
1896
- [
1897
- we,
1898
- {
1899
- ...q(K, s),
1900
- ref: C
1901
- }
1902
- ],
1903
- [
1904
- Sl,
1905
- {
1906
- ...K,
1907
- ref: C
1908
- }
1909
- ],
1910
- [
1911
- ml,
1912
- {
1913
- role: "presentation",
1914
- isInvalid: E.isInvalid,
1915
- isDisabled: e.isDisabled || !1
1916
- }
1917
- ],
1918
- [
1919
- Kl,
1920
- {
1921
- slots: {
1922
- description: $,
1923
- errorMessage: g
1924
- }
1925
- }
1926
- ],
1927
- [
1928
- $l,
1929
- E
1930
- ]
1931
- ]
1932
- }, k.children));
1933
- });
1934
- var xt = {};
1935
- xt = {
1936
- collectionLabel: "مقترحات"
1937
- };
1938
- var St = {};
1939
- St = {
1940
- collectionLabel: "Предложения"
1941
- };
1942
- var Kt = {};
1943
- Kt = {
1944
- collectionLabel: "Návrhy"
1945
- };
1946
- var Ct = {};
1947
- Ct = {
1948
- collectionLabel: "Forslag"
1949
- };
1950
- var wt = {};
1951
- wt = {
1952
- collectionLabel: "Empfehlungen"
1953
- };
1954
- var Et = {};
1955
- Et = {
1956
- collectionLabel: "Προτάσεις"
1957
- };
1958
- var Dt = {};
1959
- Dt = {
1960
- collectionLabel: "Suggestions"
1961
- };
1962
- var kt = {};
1963
- kt = {
1964
- collectionLabel: "Sugerencias"
1965
- };
1966
- var It = {};
1967
- It = {
1968
- collectionLabel: "Soovitused"
1969
- };
1970
- var Pt = {};
1971
- Pt = {
1972
- collectionLabel: "Ehdotukset"
1973
- };
1974
- var Ft = {};
1975
- Ft = {
1976
- collectionLabel: "Suggestions"
1977
- };
1978
- var Rt = {};
1979
- Rt = {
1980
- collectionLabel: "הצעות"
1981
- };
1982
- var Tt = {};
1983
- Tt = {
1984
- collectionLabel: "Prijedlozi"
1985
- };
1986
- var At = {};
1987
- At = {
1988
- collectionLabel: "Javaslatok"
1989
- };
1990
- var Lt = {};
1991
- Lt = {
1992
- collectionLabel: "Suggerimenti"
1993
- };
1994
- var Mt = {};
1995
- Mt = {
1996
- collectionLabel: "候補"
1997
- };
1998
- var Bt = {};
1999
- Bt = {
2000
- collectionLabel: "제안"
2001
- };
2002
- var Ot = {};
2003
- Ot = {
2004
- collectionLabel: "Pasiūlymai"
2005
- };
2006
- var Nt = {};
2007
- Nt = {
2008
- collectionLabel: "Ieteikumi"
2009
- };
2010
- var Vt = {};
2011
- Vt = {
2012
- collectionLabel: "Forslag"
2013
- };
2014
- var Ut = {};
2015
- Ut = {
2016
- collectionLabel: "Suggesties"
2017
- };
2018
- var zt = {};
2019
- zt = {
2020
- collectionLabel: "Sugestie"
2021
- };
2022
- var Ht = {};
2023
- Ht = {
2024
- collectionLabel: "Sugestões"
2025
- };
2026
- var qt = {};
2027
- qt = {
2028
- collectionLabel: "Sugestões"
2029
- };
2030
- var Wt = {};
2031
- Wt = {
2032
- collectionLabel: "Sugestii"
2033
- };
2034
- var Gt = {};
2035
- Gt = {
2036
- collectionLabel: "Предложения"
2037
- };
2038
- var _t = {};
2039
- _t = {
2040
- collectionLabel: "Návrhy"
2041
- };
2042
- var jt = {};
2043
- jt = {
2044
- collectionLabel: "Predlogi"
2045
- };
2046
- var Yt = {};
2047
- Yt = {
2048
- collectionLabel: "Predlozi"
2049
- };
2050
- var Jt = {};
2051
- Jt = {
2052
- collectionLabel: "Förslag"
2053
- };
2054
- var Xt = {};
2055
- Xt = {
2056
- collectionLabel: "Öneriler"
2057
- };
2058
- var Zt = {};
2059
- Zt = {
2060
- collectionLabel: "Пропозиції"
2061
- };
2062
- var Qt = {};
2063
- Qt = {
2064
- collectionLabel: "建议"
2065
- };
2066
- var el = {};
2067
- el = {
2068
- collectionLabel: "建議"
2069
- };
2070
- var tl = {};
2071
- tl = {
2072
- "ar-AE": xt,
2073
- "bg-BG": St,
2074
- "cs-CZ": Kt,
2075
- "da-DK": Ct,
2076
- "de-DE": wt,
2077
- "el-GR": Et,
2078
- "en-US": Dt,
2079
- "es-ES": kt,
2080
- "et-EE": It,
2081
- "fi-FI": Pt,
2082
- "fr-FR": Ft,
2083
- "he-IL": Rt,
2084
- "hr-HR": Tt,
2085
- "hu-HU": At,
2086
- "it-IT": Lt,
2087
- "ja-JP": Mt,
2088
- "ko-KR": Bt,
2089
- "lt-LT": Ot,
2090
- "lv-LV": Nt,
2091
- "nb-NO": Vt,
2092
- "nl-NL": Ut,
2093
- "pl-PL": zt,
2094
- "pt-BR": Ht,
2095
- "pt-PT": qt,
2096
- "ro-RO": Wt,
2097
- "ru-RU": Gt,
2098
- "sk-SK": _t,
2099
- "sl-SI": jt,
2100
- "sr-SP": Yt,
2101
- "sv-SE": Jt,
2102
- "tr-TR": Xt,
2103
- "uk-UA": Zt,
2104
- "zh-CN": Qt,
2105
- "zh-TW": el
2106
- };
2107
- function li(r) {
2108
- return r && r.__esModule ? r.default : r;
2109
- }
2110
- function ii(r, e) {
2111
- let { inputRef: t, collectionRef: l, filter: i, disableAutoFocusFirst: n = !1 } = r, o = Pe(), u = D(void 0), s = D(!1), f = D(null), m = D(null), h = Ce() !== "virtual";
2112
- Z(() => () => clearTimeout(u.current), []);
2113
- let p = ee((d) => {
2114
- !d.isTrusted && h && t.current && se(Fe(t.current)) !== t.current && t.current.focus();
2115
- let x = d.target;
2116
- d.isTrusted || !x || f.current === x.id || (clearTimeout(u.current), x !== l.current ? s.current ? (f.current = x.id, u.current = setTimeout(() => {
2117
- e.setFocusedNodeId(x.id);
2118
- }, 500)) : (f.current = x.id, e.setFocusedNodeId(x.id)) : (f.current = null, e.setFocusedNodeId(null)), s.current = !1);
2119
- }), y = G((d) => {
2120
- var x;
2121
- if (d != null) {
2122
- var I;
2123
- (I = m.current) === null || I === void 0 || I.removeEventListener("focusin", p), m.current = d, d.addEventListener("focusin", p);
2124
- } else (x = m.current) === null || x === void 0 || x.removeEventListener("focusin", p);
2125
- }, [
2126
- p
2127
- ]), v = kl(U(() => bl(l, y), [
2128
- l,
2129
- y
2130
- ])), K = ee(() => {
2131
- var d;
2132
- s.current = !0, (d = l.current) === null || d === void 0 || d.dispatchEvent(new CustomEvent(Ee, {
2133
- cancelable: !0,
2134
- bubbles: !0,
2135
- detail: {
2136
- focusStrategy: "first"
2137
- }
2138
- }));
2139
- }), $ = ee((d) => {
2140
- var x;
2141
- Re(se()), f.current = null, e.setFocusedNodeId(null);
2142
- let I = new CustomEvent(ut, {
2143
- cancelable: !0,
2144
- bubbles: !0,
2145
- detail: {
2146
- clearFocusKey: d
2147
- }
2148
- });
2149
- clearTimeout(u.current), s.current = !1, (x = l.current) === null || x === void 0 || x.dispatchEvent(I);
2150
- }), g = D("");
2151
- ie(t, "input", (d) => {
2152
- let { inputType: x } = d;
2153
- g.current = x;
2154
- });
2155
- let E = (d) => {
2156
- g.current === "insertText" && !n ? K() : (g.current.includes("insert") || g.current.includes("delete") || g.current.includes("history")) && ($(!0), ct(document) === t.current && ue(t.current, null)), e.setInputValue(d);
2157
- }, C = D(null), k = (d) => {
2158
- var x;
2159
- if (C.current = d.target, d.nativeEvent.isComposing) return;
2160
- let I = f.current;
2161
- switch (d.key) {
2162
- case "a":
2163
- if (X(d)) return;
2164
- break;
2165
- case "Escape":
2166
- if (d.isDefaultPrevented()) return;
2167
- break;
2168
- case " ":
2169
- return;
2170
- case "Tab":
2171
- "continuePropagation" in d && d.continuePropagation();
2172
- return;
2173
- case "Home":
2174
- case "End":
2175
- case "PageDown":
2176
- case "PageUp":
2177
- case "ArrowUp":
2178
- case "ArrowDown": {
2179
- var V;
2180
- if ((d.key === "Home" || d.key === "End") && I == null && d.shiftKey) return;
2181
- d.preventDefault();
2182
- let c = new CustomEvent(Ee, {
2183
- cancelable: !0,
2184
- bubbles: !0
2185
- });
2186
- (V = l.current) === null || V === void 0 || V.dispatchEvent(c);
2187
- break;
2188
- }
2189
- }
2190
- d.isPropagationStopped() || d.stopPropagation();
2191
- let j = !0;
2192
- if (I == null) j = ((x = l.current) === null || x === void 0 ? void 0 : x.dispatchEvent(new KeyboardEvent(d.nativeEvent.type, d.nativeEvent))) || !1;
2193
- else {
2194
- let c = document.getElementById(I);
2195
- j = c?.dispatchEvent(new KeyboardEvent(d.nativeEvent.type, d.nativeEvent)) || !1;
2196
- }
2197
- if (j) switch (d.key) {
2198
- case "ArrowLeft":
2199
- case "ArrowRight":
2200
- $();
2201
- break;
2202
- case "Enter":
2203
- if (I != null) {
2204
- let c = document.getElementById(I);
2205
- c?.click();
2206
- }
2207
- break;
2208
- }
2209
- }, F = ee((d) => {
2210
- if (d.target === C.current) {
2211
- var x;
2212
- d.stopImmediatePropagation();
2213
- let I = f.current;
2214
- if (I == null) (x = l.current) === null || x === void 0 || x.dispatchEvent(new KeyboardEvent(d.type, d));
2215
- else {
2216
- let V = document.getElementById(I);
2217
- V?.dispatchEvent(new KeyboardEvent(d.type, d));
2218
- }
2219
- }
2220
- });
2221
- Z(() => (document.addEventListener("keyup", F, !0), () => {
2222
- document.removeEventListener("keyup", F, !0);
2223
- }), [
2224
- F
2225
- ]);
2226
- let R = Il(li(tl), "@react-aria/autocomplete"), B = Dl({
2227
- id: o,
2228
- "aria-label": R.format("collectionLabel")
2229
- }), T = G((d) => i ? i(d, e.inputValue) : !0, [
2230
- e.inputValue,
2231
- i
2232
- ]), _ = (d) => {
2233
- if (!d.isTrusted) return;
2234
- let x = f.current ? document.getElementById(f.current) : null;
2235
- x && De(x, d.relatedTarget);
2236
- }, O = (d) => {
2237
- if (!d.isTrusted) return;
2238
- let x = f.current ? document.getElementById(f.current) : null;
2239
- if (x) {
2240
- let I = d.target;
2241
- queueMicrotask(() => {
2242
- De(I, x), ue(x, I);
2243
- });
2244
- }
2245
- };
2246
- var N;
2247
- return {
2248
- textFieldProps: {
2249
- value: e.inputValue,
2250
- onChange: E,
2251
- onKeyDown: k,
2252
- autoComplete: "off",
2253
- "aria-haspopup": "listbox",
2254
- "aria-controls": o,
2255
- // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
2256
- "aria-autocomplete": "list",
2257
- "aria-activedescendant": (N = e.focusedNodeId) !== null && N !== void 0 ? N : void 0,
2258
- // This disable's iOS's autocorrect suggestions, since the autocomplete provides its own suggestions.
2259
- autoCorrect: "off",
2260
- // This disable's the macOS Safari spell check auto corrections.
2261
- spellCheck: "false",
2262
- enterKeyHint: "go",
2263
- onBlur: _,
2264
- onFocus: O
2265
- },
2266
- collectionProps: q(B, {
2267
- shouldUseVirtualFocus: h,
2268
- disallowTypeAhead: !0
2269
- }),
2270
- collectionRef: v,
2271
- filter: i != null ? T : void 0
2272
- };
2273
- }
2274
- function ni(r) {
2275
- let { onInputChange: e, inputValue: t, defaultInputValue: l = "" } = r, i = (f) => {
2276
- e && e(f);
2277
- }, [n, o] = te(null), [u, s] = it(t, l, i);
2278
- return {
2279
- inputValue: u,
2280
- setInputValue: s,
2281
- focusedNodeId: n,
2282
- setFocusedNodeId: o
2283
- };
2284
- }
2285
- const ri = /* @__PURE__ */ M(null), oi = /* @__PURE__ */ M(null), si = /* @__PURE__ */ M(null);
2286
- function en(r) {
2287
- let e = nt(ri, r.slot);
2288
- r = q(e, r);
2289
- let { filter: t, disableAutoFocusFirst: l } = r, i = ni(r), n = D(null), o = D(null), { textFieldProps: u, collectionProps: s, collectionRef: f, filter: m } = ii({
2290
- ...rt(r),
2291
- filter: t,
2292
- disableAutoFocusFirst: l,
2293
- inputRef: n,
2294
- collectionRef: o
2295
- }, i);
2296
- return /* @__PURE__ */ S.createElement(ot, {
2297
- values: [
2298
- [
2299
- oi,
2300
- i
2301
- ],
2302
- [
2303
- ti,
2304
- u
2305
- ],
2306
- [
2307
- mt,
2308
- u
2309
- ],
2310
- [
2311
- we,
2312
- {
2313
- ref: n
2314
- }
2315
- ],
2316
- [
2317
- si,
2318
- {
2319
- filter: m,
2320
- collectionProps: s,
2321
- collectionRef: f
2322
- }
2323
- ]
2324
- ]
2325
- }, r.children);
2326
- }
2327
- const tn = /* @__PURE__ */ M(null), ai = {
2328
- CollectionRoot({ collection: r, renderDropIndicator: e }) {
2329
- return Ze(r, null, e);
2330
- },
2331
- CollectionBranch({ collection: r, parent: e, renderDropIndicator: t }) {
2332
- return Ze(r, e, t);
2333
- }
2334
- };
2335
- function Ze(r, e, t) {
2336
- return pt({
2337
- items: e ? r.getChildren(e.key) : r,
2338
- dependencies: [
2339
- t
2340
- ],
2341
- children(l) {
2342
- let i = l.render(l);
2343
- return !t || l.type !== "item" ? i : /* @__PURE__ */ S.createElement(S.Fragment, null, t({
2344
- type: "item",
2345
- key: l.key,
2346
- dropPosition: "before"
2347
- }), i, ui(r, l, t));
2348
- }
2349
- });
2350
- }
2351
- function ui(r, e, t) {
2352
- let l = e.key, i = r.getKeyAfter(l), n = i != null ? r.getItem(i) : null;
2353
- for (; n != null && n.type !== "item"; )
2354
- i = r.getKeyAfter(n.key), n = i != null ? r.getItem(i) : null;
2355
- let o = e.nextKey != null ? r.getItem(e.nextKey) : null;
2356
- for (; o != null && o.type !== "item"; ) o = o.nextKey != null ? r.getItem(o.nextKey) : null;
2357
- let u = [];
2358
- if (o == null) {
2359
- let s = e;
2360
- for (; s && (!n || s.parentKey !== n.parentKey && n.level < s.level); ) {
2361
- let f = t({
2362
- type: "item",
2363
- key: s.key,
2364
- dropPosition: "after"
2365
- });
2366
- /* @__PURE__ */ sl(f) && u.push(/* @__PURE__ */ tt(f, {
2367
- key: `${s.key}-after`
2368
- })), s = s.parentKey != null ? r.getItem(s.parentKey) : null;
2369
- }
2370
- }
2371
- return u;
2372
- }
2373
- const ln = /* @__PURE__ */ M(ai);
2374
- function nn(r) {
2375
- return U(() => r != null ? /* @__PURE__ */ new Set([
2376
- r
2377
- ]) : null, [
2378
- r
2379
- ]);
2380
- }
2381
- const ci = /* @__PURE__ */ M({}), rn = /* @__PURE__ */ bt("header", function(e, t) {
2382
- return [e, t] = ae(e, t, ci), /* @__PURE__ */ S.createElement("header", {
2383
- className: "react-aria-Header",
2384
- ...e,
2385
- ref: t
2386
- }, e.children);
2387
- }), di = /* @__PURE__ */ M({}), on = /* @__PURE__ */ bt("separator", function(e, t) {
2388
- [e, t] = ae(e, t, di);
2389
- let { elementType: l, orientation: i, style: n, className: o, slot: u, ...s } = e, f = l || "hr";
2390
- f === "hr" && i === "vertical" && (f = "div");
2391
- let { separatorProps: m } = Pl({
2392
- ...s,
2393
- elementType: l,
2394
- orientation: i
2395
- }), h = st(e, {
2396
- global: !0
2397
- });
2398
- return /* @__PURE__ */ S.createElement(f, {
2399
- ...q(h, m),
2400
- style: n,
2401
- className: o ?? "react-aria-Separator",
2402
- ref: t,
2403
- slot: u || void 0
2404
- });
2405
- });
2406
- export {
2407
- Gi as $,
2408
- ji as a,
2409
- Wi as b,
2410
- Zi as c,
2411
- _i as d,
2412
- $t as e,
2413
- bt as f,
2414
- Ji as g,
2415
- Yi as h,
2416
- Xi as i,
2417
- ln as j,
2418
- ci as k,
2419
- si as l,
2420
- Nl as m,
2421
- di as n,
2422
- tn as o,
2423
- on as p,
2424
- rn as q,
2425
- Ml as r,
2426
- Ol as s,
2427
- ft as t,
2428
- ue as u,
2429
- en as v,
2430
- Qi as w,
2431
- ai as x,
2432
- nn as y,
2433
- Rl as z
2434
- };
2435
- //# sourceMappingURL=Separator-jqT9Eof_.es.js.map