@commercetools/nimbus 2.1.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (873) hide show
  1. package/README.md +87 -21
  2. package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js → CollectionBuilder-BOe312C_.es.js} +6 -24
  3. package/dist/chunks/{CollectionBuilder-ZlIN4SR4.es.js.map → CollectionBuilder-BOe312C_.es.js.map} +1 -1
  4. package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js → CollectionBuilder-DjRx57vm.cjs.js} +2 -18
  5. package/dist/chunks/{CollectionBuilder-BipvtvSl.cjs.js.map → CollectionBuilder-DjRx57vm.cjs.js.map} +1 -1
  6. package/dist/chunks/DateField-BxXzaXAv.cjs.js +2 -0
  7. package/dist/chunks/DateField-BxXzaXAv.cjs.js.map +1 -0
  8. package/dist/chunks/{DateField-C5JgBb30.es.js → DateField-DCWy1Ysp.es.js} +662 -631
  9. package/dist/chunks/DateField-DCWy1Ysp.es.js.map +1 -0
  10. package/dist/chunks/{DatePicker-DeknOPX6.es.js → DatePicker-CL72jbDo.es.js} +6 -6
  11. package/dist/chunks/{DatePicker-DeknOPX6.es.js.map → DatePicker-CL72jbDo.es.js.map} +1 -1
  12. package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js → DatePicker-NWRDzwUt.cjs.js} +2 -2
  13. package/dist/chunks/{DatePicker-DGLrUdLu.cjs.js.map → DatePicker-NWRDzwUt.cjs.js.map} +1 -1
  14. package/dist/chunks/{Dialog-DUbUCf4o.es.js → Dialog-B0BQfdQa.es.js} +58 -58
  15. package/dist/chunks/{Dialog-DUbUCf4o.es.js.map → Dialog-B0BQfdQa.es.js.map} +1 -1
  16. package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js → Dialog-CSr6lHSd.cjs.js} +2 -2
  17. package/dist/chunks/{Dialog-Ye_7tQZU.cjs.js.map → Dialog-CSr6lHSd.cjs.js.map} +1 -1
  18. package/dist/chunks/{Header-Bvl-gjeR.cjs.js → Header-BXEPjypM.cjs.js} +2 -2
  19. package/dist/chunks/{Header-Bvl-gjeR.cjs.js.map → Header-BXEPjypM.cjs.js.map} +1 -1
  20. package/dist/chunks/{Header-Bvo6aMcQ.es.js → Header-CiYtrnTw.es.js} +3 -3
  21. package/dist/chunks/{Header-Bvo6aMcQ.es.js.map → Header-CiYtrnTw.es.js.map} +1 -1
  22. package/dist/chunks/{Heading-D7Ut7eK3.es.js → Heading-BMsylHxq.es.js} +3 -3
  23. package/dist/chunks/{Heading-D7Ut7eK3.es.js.map → Heading-BMsylHxq.es.js.map} +1 -1
  24. package/dist/chunks/{Heading-kcnZ-PKv.cjs.js → Heading-C7J8IDnn.cjs.js} +2 -2
  25. package/dist/chunks/{Heading-kcnZ-PKv.cjs.js.map → Heading-C7J8IDnn.cjs.js.map} +1 -1
  26. package/dist/chunks/{ListBox-C8TVMFFY.es.js → ListBox-RrHJjnuq.es.js} +34 -36
  27. package/dist/chunks/{ListBox-C8TVMFFY.es.js.map → ListBox-RrHJjnuq.es.js.map} +1 -1
  28. package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js → ListBox-rm_vuzPg.cjs.js} +2 -2
  29. package/dist/chunks/{ListBox-Dcnj8pHo.cjs.js.map → ListBox-rm_vuzPg.cjs.js.map} +1 -1
  30. package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js +2 -0
  31. package/dist/chunks/LocalizedStringDictionary-DZNwHzto.cjs.js.map +1 -0
  32. package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js +48 -0
  33. package/dist/chunks/LocalizedStringDictionary-rmcyf3BY.es.js.map +1 -0
  34. package/dist/chunks/{Modal-CMJEwrBs.es.js → Modal-K4JEy19g.es.js} +3 -3
  35. package/dist/chunks/{Modal-CMJEwrBs.es.js.map → Modal-K4JEy19g.es.js.map} +1 -1
  36. package/dist/chunks/{Modal-DjOIA2BE.cjs.js → Modal-u97jKK9t.cjs.js} +2 -2
  37. package/dist/chunks/{Modal-DjOIA2BE.cjs.js.map → Modal-u97jKK9t.cjs.js.map} +1 -1
  38. package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js → SelectionManager-5YkuhVau.cjs.js} +2 -2
  39. package/dist/chunks/{SelectionManager-CCETIs4l.cjs.js.map → SelectionManager-5YkuhVau.cjs.js.map} +1 -1
  40. package/dist/chunks/{SelectionManager-bgcDT3lR.es.js → SelectionManager-CX9btso_.es.js} +24 -31
  41. package/dist/chunks/{SelectionManager-bgcDT3lR.es.js.map → SelectionManager-CX9btso_.es.js.map} +1 -1
  42. package/dist/chunks/{Separator-DyU2njbj.cjs.js → Separator-BvA4UGuq.cjs.js} +2 -2
  43. package/dist/chunks/{Separator-DyU2njbj.cjs.js.map → Separator-BvA4UGuq.cjs.js.map} +1 -1
  44. package/dist/chunks/{Separator-BmVimNX_.es.js → Separator-x6wk4JUe.es.js} +2 -2
  45. package/dist/chunks/{Separator-BmVimNX_.es.js.map → Separator-x6wk4JUe.es.js.map} +1 -1
  46. package/dist/chunks/{accordion-Bu9iEN-Z.es.js → accordion-Cwy8ywRo.es.js} +2 -2
  47. package/dist/chunks/{accordion-Bu9iEN-Z.es.js.map → accordion-Cwy8ywRo.es.js.map} +1 -1
  48. package/dist/chunks/{accordion-AupzDJ2i.cjs.js → accordion-DvftRW7J.cjs.js} +2 -2
  49. package/dist/chunks/{accordion-AupzDJ2i.cjs.js.map → accordion-DvftRW7J.cjs.js.map} +1 -1
  50. package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js → accordion.content-DBBMLq5x.cjs.js} +2 -2
  51. package/dist/chunks/{accordion.content-DwLtYzIy.cjs.js.map → accordion.content-DBBMLq5x.cjs.js.map} +1 -1
  52. package/dist/chunks/{accordion.content-C8iYlvoi.es.js → accordion.content-DR_1dtdK.es.js} +2 -2
  53. package/dist/chunks/{accordion.content-C8iYlvoi.es.js.map → accordion.content-DR_1dtdK.es.js.map} +1 -1
  54. package/dist/chunks/alert-D5SDMEKA.cjs.js +2 -0
  55. package/dist/chunks/alert-D5SDMEKA.cjs.js.map +1 -0
  56. package/dist/chunks/alert-WiLa3ap4.es.js +158 -0
  57. package/dist/chunks/alert-WiLa3ap4.es.js.map +1 -0
  58. package/dist/chunks/avatar-1Y7cLjZT.es.js +59 -0
  59. package/dist/chunks/avatar-1Y7cLjZT.es.js.map +1 -0
  60. package/dist/chunks/avatar-BVQ91Ccd.cjs.js +2 -0
  61. package/dist/chunks/avatar-BVQ91Ccd.cjs.js.map +1 -0
  62. package/dist/chunks/box-CWni3A32.cjs.js.map +1 -1
  63. package/dist/chunks/box-DuBoAZvq.es.js.map +1 -1
  64. package/dist/chunks/{button-DF_RV6pd.cjs.js → button-Bz1hc0LL.cjs.js} +2 -2
  65. package/dist/chunks/{button-DF_RV6pd.cjs.js.map → button-Bz1hc0LL.cjs.js.map} +1 -1
  66. package/dist/chunks/{button-czddlTvJ.es.js → button-CANeXX_D.es.js} +2 -2
  67. package/dist/chunks/{button-czddlTvJ.es.js.map → button-CANeXX_D.es.js.map} +1 -1
  68. package/dist/chunks/calendar-Bnw0u0vz.es.js +227 -0
  69. package/dist/chunks/calendar-Bnw0u0vz.es.js.map +1 -0
  70. package/dist/chunks/calendar-D0OrT88Y.cjs.js +2 -0
  71. package/dist/chunks/calendar-D0OrT88Y.cjs.js.map +1 -0
  72. package/dist/chunks/card-BHw7lWYe.es.js +115 -0
  73. package/dist/chunks/card-BHw7lWYe.es.js.map +1 -0
  74. package/dist/chunks/card-CgBcH7Zm.cjs.js +2 -0
  75. package/dist/chunks/card-CgBcH7Zm.cjs.js.map +1 -0
  76. package/dist/chunks/{checkbox-CWhwDnrI.cjs.js → checkbox-BYBGaSV9.cjs.js} +2 -2
  77. package/dist/chunks/{checkbox-CWhwDnrI.cjs.js.map → checkbox-BYBGaSV9.cjs.js.map} +1 -1
  78. package/dist/chunks/{checkbox-BAZ2ps7B.es.js → checkbox-UATxAVti.es.js} +2 -2
  79. package/dist/chunks/{checkbox-BAZ2ps7B.es.js.map → checkbox-UATxAVti.es.js.map} +1 -1
  80. package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js → collapsible-motion-BsyuKtxS.es.js} +2 -2
  81. package/dist/chunks/{collapsible-motion-dMfEe4kv.es.js.map → collapsible-motion-BsyuKtxS.es.js.map} +1 -1
  82. package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js → collapsible-motion-Cj6ESwsR.cjs.js} +2 -2
  83. package/dist/chunks/{collapsible-motion-D4u7W2de.cjs.js.map → collapsible-motion-Cj6ESwsR.cjs.js.map} +1 -1
  84. package/dist/chunks/combobox-B30crY-T.es.js +1563 -0
  85. package/dist/chunks/combobox-B30crY-T.es.js.map +1 -0
  86. package/dist/chunks/combobox-D_L2EmTy.cjs.js +2 -0
  87. package/dist/chunks/combobox-D_L2EmTy.cjs.js.map +1 -0
  88. package/dist/chunks/{data-table-C0rC7Jgu.es.js → data-table-B7orK0Y6.es.js} +1715 -1670
  89. package/dist/chunks/data-table-B7orK0Y6.es.js.map +1 -0
  90. package/dist/chunks/data-table-Cg75JPdu.cjs.js +2 -0
  91. package/dist/chunks/data-table-Cg75JPdu.cjs.js.map +1 -0
  92. package/dist/chunks/{date-input-DlQD1DQ3.cjs.js → date-input-BL7owE4Q.cjs.js} +2 -2
  93. package/dist/chunks/{date-input-DlQD1DQ3.cjs.js.map → date-input-BL7owE4Q.cjs.js.map} +1 -1
  94. package/dist/chunks/{date-input-Cnlg-VXW.es.js → date-input-Ba6r9wMb.es.js} +4 -4
  95. package/dist/chunks/{date-input-Cnlg-VXW.es.js.map → date-input-Ba6r9wMb.es.js.map} +1 -1
  96. package/dist/chunks/date-picker-Bm6DjFOx.cjs.js +2 -0
  97. package/dist/chunks/date-picker-Bm6DjFOx.cjs.js.map +1 -0
  98. package/dist/chunks/date-picker-DwQ1WWNP.es.js +228 -0
  99. package/dist/chunks/date-picker-DwQ1WWNP.es.js.map +1 -0
  100. package/dist/chunks/date-range-picker-DaSUwkke.cjs.js +2 -0
  101. package/dist/chunks/date-range-picker-DaSUwkke.cjs.js.map +1 -0
  102. package/dist/chunks/date-range-picker-dw7c9idV.es.js +364 -0
  103. package/dist/chunks/date-range-picker-dw7c9idV.es.js.map +1 -0
  104. package/dist/chunks/{date-range-picker-field-D3tLPzMb.es.js → date-range-picker-field-D-kCkHEF.es.js} +4 -4
  105. package/dist/chunks/date-range-picker-field-D-kCkHEF.es.js.map +1 -0
  106. package/dist/chunks/{date-range-picker-field-DipL5QZq.cjs.js → date-range-picker-field-J2b1-A1l.cjs.js} +2 -2
  107. package/dist/chunks/date-range-picker-field-J2b1-A1l.cjs.js.map +1 -0
  108. package/dist/chunks/dialog-ByHd6RlA.cjs.js +2 -0
  109. package/dist/chunks/dialog-ByHd6RlA.cjs.js.map +1 -0
  110. package/dist/chunks/{dialog-z8EM12xr.es.js → dialog-vnnSNnUC.es.js} +89 -89
  111. package/dist/chunks/dialog-vnnSNnUC.es.js.map +1 -0
  112. package/dist/chunks/{draggable-list-DNQAZADx.cjs.js → draggable-list-CGpLzk-D.cjs.js} +3 -3
  113. package/dist/chunks/{draggable-list-DNQAZADx.cjs.js.map → draggable-list-CGpLzk-D.cjs.js.map} +1 -1
  114. package/dist/chunks/{draggable-list-B0MpgfeC.es.js → draggable-list-DR-559Qk.es.js} +1406 -1601
  115. package/dist/chunks/{draggable-list-B0MpgfeC.es.js.map → draggable-list-DR-559Qk.es.js.map} +1 -1
  116. package/dist/chunks/{drawer-BZBluK-I.es.js → drawer-CasegOAE.es.js} +96 -88
  117. package/dist/chunks/drawer-CasegOAE.es.js.map +1 -0
  118. package/dist/chunks/drawer-CmxHDgtW.cjs.js +2 -0
  119. package/dist/chunks/drawer-CmxHDgtW.cjs.js.map +1 -0
  120. package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js → extract-style-props-BvvBKXOu.cjs.js} +2 -2
  121. package/dist/chunks/{extract-style-props-BilMyFTD.cjs.js.map → extract-style-props-BvvBKXOu.cjs.js.map} +1 -1
  122. package/dist/chunks/{extract-style-props-DChosa6I.es.js → extract-style-props-CM4QZGaE.es.js} +2 -2
  123. package/dist/chunks/{extract-style-props-DChosa6I.es.js.map → extract-style-props-CM4QZGaE.es.js.map} +1 -1
  124. package/dist/chunks/field-errors-D1BQvoYg.es.js +219 -0
  125. package/dist/chunks/field-errors-D1BQvoYg.es.js.map +1 -0
  126. package/dist/chunks/field-errors-aqrV93vp.cjs.js +2 -0
  127. package/dist/chunks/field-errors-aqrV93vp.cjs.js.map +1 -0
  128. package/dist/chunks/form-field-52--hhlj.cjs.js +2 -0
  129. package/dist/chunks/form-field-52--hhlj.cjs.js.map +1 -0
  130. package/dist/chunks/{form-field-BqlkPY29.es.js → form-field-DCWDyNJx.es.js} +16 -16
  131. package/dist/chunks/form-field-DCWDyNJx.es.js.map +1 -0
  132. package/dist/chunks/icon-DJsVh7VR.es.js +19 -0
  133. package/dist/chunks/{icon-CenxuChf.es.js.map → icon-DJsVh7VR.es.js.map} +1 -1
  134. package/dist/chunks/icon-RyFjTAmU.cjs.js +2 -0
  135. package/dist/chunks/{icon-D39U--jA.cjs.js.map → icon-RyFjTAmU.cjs.js.map} +1 -1
  136. package/dist/chunks/icon-button-5pYAEokc.cjs.js +2 -0
  137. package/dist/chunks/icon-button-5pYAEokc.cjs.js.map +1 -0
  138. package/dist/chunks/icon-button-DhHKxd27.es.js +28 -0
  139. package/dist/chunks/icon-button-DhHKxd27.es.js.map +1 -0
  140. package/dist/chunks/{icon-toggle-button-D3spgxe2.cjs.js → icon-toggle-button-BsQzSrKe.cjs.js} +2 -2
  141. package/dist/chunks/icon-toggle-button-BsQzSrKe.cjs.js.map +1 -0
  142. package/dist/chunks/{icon-toggle-button-BKmjmlZt.es.js → icon-toggle-button-C7HZUXh5.es.js} +2 -2
  143. package/dist/chunks/icon-toggle-button-C7HZUXh5.es.js.map +1 -0
  144. package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -1
  145. package/dist/chunks/image-DRigLU80.es.js.map +1 -1
  146. package/dist/chunks/index-CBRmb4jF.cjs.js +34 -0
  147. package/dist/chunks/index-CBRmb4jF.cjs.js.map +1 -0
  148. package/dist/chunks/{index-BEgCT-l6.es.js → index-D3KlpJA5.es.js} +673 -559
  149. package/dist/chunks/index-D3KlpJA5.es.js.map +1 -0
  150. package/dist/chunks/inline-svg-BzzKpbrB.cjs.js +2 -0
  151. package/dist/chunks/{inline-svg-Yb2OyzRw.cjs.js.map → inline-svg-BzzKpbrB.cjs.js.map} +1 -1
  152. package/dist/chunks/inline-svg-Cwl9dFvu.es.js +21 -0
  153. package/dist/chunks/{inline-svg-CbSC6O5X.es.js.map → inline-svg-Cwl9dFvu.es.js.map} +1 -1
  154. package/dist/chunks/list-DJC9BmoC.cjs.js.map +1 -1
  155. package/dist/chunks/list-Nz5KjWzs.es.js.map +1 -1
  156. package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js +2 -0
  157. package/dist/chunks/loading-spinner-DYEYnI5N.cjs.js.map +1 -0
  158. package/dist/chunks/loading-spinner-gf62wtm3.es.js +53 -0
  159. package/dist/chunks/loading-spinner-gf62wtm3.es.js.map +1 -0
  160. package/dist/chunks/localized-field-BJTWKclB.cjs.js +2 -0
  161. package/dist/chunks/localized-field-BJTWKclB.cjs.js.map +1 -0
  162. package/dist/chunks/localized-field-CHXN7Zf1.es.js +483 -0
  163. package/dist/chunks/localized-field-CHXN7Zf1.es.js.map +1 -0
  164. package/dist/chunks/{menu-Vj3cVc_v.cjs.js → menu-Cu7gIVGQ.cjs.js} +2 -2
  165. package/dist/chunks/menu-Cu7gIVGQ.cjs.js.map +1 -0
  166. package/dist/chunks/{menu-C3Ovi5Mr.es.js → menu-SxqgiwJf.es.js} +6 -6
  167. package/dist/chunks/menu-SxqgiwJf.es.js.map +1 -0
  168. package/dist/chunks/{money-input-BEek-VSq.es.js → money-input-B5kFhLR0.es.js} +116 -106
  169. package/dist/chunks/money-input-B5kFhLR0.es.js.map +1 -0
  170. package/dist/chunks/money-input-CBKb1D73.cjs.js +2 -0
  171. package/dist/chunks/money-input-CBKb1D73.cjs.js.map +1 -0
  172. package/dist/chunks/money-input-field-0vXOOTvx.es.js +51 -0
  173. package/dist/chunks/money-input-field-0vXOOTvx.es.js.map +1 -0
  174. package/dist/chunks/money-input-field-DjpKPCGo.cjs.js +2 -0
  175. package/dist/chunks/money-input-field-DjpKPCGo.cjs.js.map +1 -0
  176. package/dist/chunks/multiline-text-input-DN9yF7Di.cjs.js +2 -0
  177. package/dist/chunks/multiline-text-input-DN9yF7Di.cjs.js.map +1 -0
  178. package/dist/chunks/multiline-text-input-DkruVK6m.es.js +98 -0
  179. package/dist/chunks/multiline-text-input-DkruVK6m.es.js.map +1 -0
  180. package/dist/chunks/multiline-text-input-field-QLmo_I6Q.cjs.js +2 -0
  181. package/dist/chunks/multiline-text-input-field-QLmo_I6Q.cjs.js.map +1 -0
  182. package/dist/chunks/multiline-text-input-field-ipwTTNg6.es.js +56 -0
  183. package/dist/chunks/multiline-text-input-field-ipwTTNg6.es.js.map +1 -0
  184. package/dist/chunks/nimbus-provider-4H3HucGg.es.js +101 -0
  185. package/dist/chunks/nimbus-provider-4H3HucGg.es.js.map +1 -0
  186. package/dist/chunks/nimbus-provider-CbD64J_V.cjs.js +2 -0
  187. package/dist/chunks/nimbus-provider-CbD64J_V.cjs.js.map +1 -0
  188. package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js +2 -0
  189. package/dist/chunks/normalize-messages-CaDzkuUm.cjs.js.map +1 -0
  190. package/dist/chunks/normalize-messages-D5T4I93D.es.js +52 -0
  191. package/dist/chunks/normalize-messages-D5T4I93D.es.js.map +1 -0
  192. package/dist/chunks/number-input-B29DJ2_U.cjs.js +2 -0
  193. package/dist/chunks/number-input-B29DJ2_U.cjs.js.map +1 -0
  194. package/dist/chunks/{number-input-DrhSvm6o.es.js → number-input-BVTqEzzS.es.js} +224 -229
  195. package/dist/chunks/number-input-BVTqEzzS.es.js.map +1 -0
  196. package/dist/chunks/number-input-field-DHBy_GKG.cjs.js +2 -0
  197. package/dist/chunks/number-input-field-DHBy_GKG.cjs.js.map +1 -0
  198. package/dist/chunks/number-input-field-DenXeCQQ.es.js +51 -0
  199. package/dist/chunks/number-input-field-DenXeCQQ.es.js.map +1 -0
  200. package/dist/chunks/pagination-BjUXs0hd.es.js +226 -0
  201. package/dist/chunks/pagination-BjUXs0hd.es.js.map +1 -0
  202. package/dist/chunks/pagination-D8Tn2HGh.cjs.js +2 -0
  203. package/dist/chunks/pagination-D8Tn2HGh.cjs.js.map +1 -0
  204. package/dist/chunks/password-input-DQM-caak.cjs.js +2 -0
  205. package/dist/chunks/password-input-DQM-caak.cjs.js.map +1 -0
  206. package/dist/chunks/password-input-field-CNLpabCL.es.js +56 -0
  207. package/dist/chunks/password-input-field-CNLpabCL.es.js.map +1 -0
  208. package/dist/chunks/password-input-field-CgQEW15R.cjs.js +2 -0
  209. package/dist/chunks/password-input-field-CgQEW15R.cjs.js.map +1 -0
  210. package/dist/chunks/password-input-vu3kFdzW.es.js +47 -0
  211. package/dist/chunks/password-input-vu3kFdzW.es.js.map +1 -0
  212. package/dist/chunks/popover-CuA9VugH.es.js +11 -0
  213. package/dist/chunks/popover-CuA9VugH.es.js.map +1 -0
  214. package/dist/chunks/popover-Dhg--8YC.cjs.js +2 -0
  215. package/dist/chunks/popover-Dhg--8YC.cjs.js.map +1 -0
  216. package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js → progress-bar-CMRmoNou.cjs.js} +2 -2
  217. package/dist/chunks/{progress-bar-NAFgbTy5.cjs.js.map → progress-bar-CMRmoNou.cjs.js.map} +1 -1
  218. package/dist/chunks/{progress-bar-vRz1k6ol.es.js → progress-bar-D99U1mF3.es.js} +2 -2
  219. package/dist/chunks/{progress-bar-vRz1k6ol.es.js.map → progress-bar-D99U1mF3.es.js.map} +1 -1
  220. package/dist/chunks/{radio-input-CRvjsU1E.cjs.js → radio-input-B91hQHjX.cjs.js} +2 -2
  221. package/dist/chunks/{radio-input-CRvjsU1E.cjs.js.map → radio-input-B91hQHjX.cjs.js.map} +1 -1
  222. package/dist/chunks/{radio-input-C2lCxDiv.es.js → radio-input-S4OwAttR.es.js} +8 -8
  223. package/dist/chunks/{radio-input-C2lCxDiv.es.js.map → radio-input-S4OwAttR.es.js.map} +1 -1
  224. package/dist/chunks/range-calendar-qoiJRxsH.es.js +229 -0
  225. package/dist/chunks/range-calendar-qoiJRxsH.es.js.map +1 -0
  226. package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js +2 -0
  227. package/dist/chunks/range-calendar-tLrCZyTQ.cjs.js.map +1 -0
  228. package/dist/chunks/rich-text-input-COjV3y9x.es.js +1200 -0
  229. package/dist/chunks/rich-text-input-COjV3y9x.es.js.map +1 -0
  230. package/dist/chunks/rich-text-input-Cx9u2DDm.cjs.js +4 -0
  231. package/dist/chunks/rich-text-input-Cx9u2DDm.cjs.js.map +1 -0
  232. package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js +2 -0
  233. package/dist/chunks/scoped-search-input-DYOcOZ0t.cjs.js.map +1 -0
  234. package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js +151 -0
  235. package/dist/chunks/scoped-search-input-Qf2F3cu-.es.js.map +1 -0
  236. package/dist/chunks/{search-input-CMrPbAUI.es.js → search-input-Ba7KSi4m.es.js} +147 -147
  237. package/dist/chunks/search-input-Ba7KSi4m.es.js.map +1 -0
  238. package/dist/chunks/search-input-DrTdsAJB.cjs.js +2 -0
  239. package/dist/chunks/search-input-DrTdsAJB.cjs.js.map +1 -0
  240. package/dist/chunks/search-input-field-Dan6FtWD.cjs.js +2 -0
  241. package/dist/chunks/search-input-field-Dan6FtWD.cjs.js.map +1 -0
  242. package/dist/chunks/search-input-field-G080Ti8W.es.js +51 -0
  243. package/dist/chunks/search-input-field-G080Ti8W.es.js.map +1 -0
  244. package/dist/chunks/{select-DG6qOekv.es.js → select-B3w10lhg.es.js} +229 -229
  245. package/dist/chunks/select-B3w10lhg.es.js.map +1 -0
  246. package/dist/chunks/select-DzHoPh1S.cjs.js +2 -0
  247. package/dist/chunks/select-DzHoPh1S.cjs.js.map +1 -0
  248. package/dist/chunks/{separator-DYCn6JPo.cjs.js → separator-D0uGdP2M.cjs.js} +2 -2
  249. package/dist/chunks/{separator-DYCn6JPo.cjs.js.map → separator-D0uGdP2M.cjs.js.map} +1 -1
  250. package/dist/chunks/{separator-B-ibkWW-.es.js → separator-DX_ZJMkp.es.js} +4 -4
  251. package/dist/chunks/{separator-B-ibkWW-.es.js.map → separator-DX_ZJMkp.es.js.map} +1 -1
  252. package/dist/chunks/split-button-BGDUOZcq.es.js +106 -0
  253. package/dist/chunks/split-button-BGDUOZcq.es.js.map +1 -0
  254. package/dist/chunks/split-button-Cu7MwPgo.cjs.js +2 -0
  255. package/dist/chunks/split-button-Cu7MwPgo.cjs.js.map +1 -0
  256. package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -1
  257. package/dist/chunks/stack-CoNreM7B.es.js.map +1 -1
  258. package/dist/chunks/{switch-_TfZ37Nm.es.js → switch-GD8BjCPZ.es.js} +3 -3
  259. package/dist/chunks/{switch-_TfZ37Nm.es.js.map → switch-GD8BjCPZ.es.js.map} +1 -1
  260. package/dist/chunks/{switch-BzYS9qlr.cjs.js → switch-dDLFRsag.cjs.js} +2 -2
  261. package/dist/chunks/{switch-BzYS9qlr.cjs.js.map → switch-dDLFRsag.cjs.js.map} +1 -1
  262. package/dist/chunks/tabs-Dh_AK8jc.es.js +521 -0
  263. package/dist/chunks/tabs-Dh_AK8jc.es.js.map +1 -0
  264. package/dist/chunks/tabs-Dxwwd4jH.cjs.js +2 -0
  265. package/dist/chunks/tabs-Dxwwd4jH.cjs.js.map +1 -0
  266. package/dist/chunks/{tag-group-Aa30DcsU.es.js → tag-group-CMfyCIc3.es.js} +209 -208
  267. package/dist/chunks/tag-group-CMfyCIc3.es.js.map +1 -0
  268. package/dist/chunks/tag-group-rbUwxsaP.cjs.js +2 -0
  269. package/dist/chunks/tag-group-rbUwxsaP.cjs.js.map +1 -0
  270. package/dist/chunks/text-BtRhIklG.cjs.js.map +1 -1
  271. package/dist/chunks/text-CIb_VDvO.es.js.map +1 -1
  272. package/dist/chunks/{text-input-DOTYCJyJ.es.js → text-input-UaixbZjE.es.js} +3 -3
  273. package/dist/chunks/{text-input-DOTYCJyJ.es.js.map → text-input-UaixbZjE.es.js.map} +1 -1
  274. package/dist/chunks/text-input-field-C_Ykb6V3.cjs.js +2 -0
  275. package/dist/chunks/text-input-field-C_Ykb6V3.cjs.js.map +1 -0
  276. package/dist/chunks/text-input-field-ChGQsEAJ.es.js +58 -0
  277. package/dist/chunks/text-input-field-ChGQsEAJ.es.js.map +1 -0
  278. package/dist/chunks/{text-input-D3KWm-NF.cjs.js → text-input-n7jUFat6.cjs.js} +2 -2
  279. package/dist/chunks/{text-input-D3KWm-NF.cjs.js.map → text-input-n7jUFat6.cjs.js.map} +1 -1
  280. package/dist/chunks/{time-input-BYGEbCd6.cjs.js → time-input-G64QnJLm.cjs.js} +2 -2
  281. package/dist/chunks/{time-input-BYGEbCd6.cjs.js.map → time-input-G64QnJLm.cjs.js.map} +1 -1
  282. package/dist/chunks/{time-input-KrO-X3uW.es.js → time-input-T4jAE9kM.es.js} +4 -4
  283. package/dist/chunks/{time-input-KrO-X3uW.es.js.map → time-input-T4jAE9kM.es.js.map} +1 -1
  284. package/dist/chunks/{toggle-button-C03AKN2I.es.js → toggle-button-J0Vys1xC.es.js} +3 -3
  285. package/dist/chunks/{toggle-button-C03AKN2I.es.js.map → toggle-button-J0Vys1xC.es.js.map} +1 -1
  286. package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js → toggle-button-aX7Gr-Ib.cjs.js} +2 -2
  287. package/dist/chunks/{toggle-button-BKXhwp3e.cjs.js.map → toggle-button-aX7Gr-Ib.cjs.js.map} +1 -1
  288. package/dist/chunks/{toolbar-DMowluJ2.cjs.js → toolbar-Bw9mLuBU.cjs.js} +2 -2
  289. package/dist/chunks/{toolbar-DMowluJ2.cjs.js.map → toolbar-Bw9mLuBU.cjs.js.map} +1 -1
  290. package/dist/chunks/{toolbar-D0WjTxz2.es.js → toolbar-QZSD0kko.es.js} +3 -3
  291. package/dist/chunks/{toolbar-D0WjTxz2.es.js.map → toolbar-QZSD0kko.es.js.map} +1 -1
  292. package/dist/chunks/{useDateFormatter-886GJ5w1.es.js → useDateFormatter-9juUpmrj.es.js} +246 -244
  293. package/dist/chunks/useDateFormatter-9juUpmrj.es.js.map +1 -0
  294. package/dist/chunks/useDateFormatter-Bq98mt4A.cjs.js +2 -0
  295. package/dist/chunks/useDateFormatter-Bq98mt4A.cjs.js.map +1 -0
  296. package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js → useGridListItem-Bjqm2KGe.cjs.js} +2 -2
  297. package/dist/chunks/{useGridListItem-BETI-KGO.cjs.js.map → useGridListItem-Bjqm2KGe.cjs.js.map} +1 -1
  298. package/dist/chunks/{useGridListItem-DAGp36bD.es.js → useGridListItem-CJrr2QNO.es.js} +4 -4
  299. package/dist/chunks/{useGridListItem-DAGp36bD.es.js.map → useGridListItem-CJrr2QNO.es.js.map} +1 -1
  300. package/dist/chunks/useListData-BGzhnkuO.cjs.js +2 -0
  301. package/dist/chunks/useListData-BGzhnkuO.cjs.js.map +1 -0
  302. package/dist/chunks/useListData-CX8_NxJv.es.js +211 -0
  303. package/dist/chunks/useListData-CX8_NxJv.es.js.map +1 -0
  304. package/dist/chunks/useListState-BjCb6LLO.cjs.js +2 -0
  305. package/dist/chunks/{useListState-QQtJHpsQ.cjs.js.map → useListState-BjCb6LLO.cjs.js.map} +1 -1
  306. package/dist/chunks/{useListState-BHLGQlP3.es.js → useListState-Dd0Mtev3.es.js} +17 -18
  307. package/dist/chunks/{useListState-BHLGQlP3.es.js.map → useListState-Dd0Mtev3.es.js.map} +1 -1
  308. package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js +2 -0
  309. package/dist/chunks/useLocalizedStringFormatter-CJ-iYW1Z.cjs.js.map +1 -0
  310. package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js +53 -0
  311. package/dist/chunks/useLocalizedStringFormatter-DWb0DkHL.es.js.map +1 -0
  312. package/dist/chunks/{useSpinButton-YcV6vlPf.es.js → useSpinButton-D8B_x4uj.es.js} +2 -2
  313. package/dist/chunks/{useSpinButton-YcV6vlPf.es.js.map → useSpinButton-D8B_x4uj.es.js.map} +1 -1
  314. package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js → useSpinButton-RB0J1fiP.cjs.js} +2 -2
  315. package/dist/chunks/{useSpinButton-Dyt6kG4o.cjs.js.map → useSpinButton-RB0J1fiP.cjs.js.map} +1 -1
  316. package/dist/components/accordion.cjs +1 -1
  317. package/dist/components/accordion.es.js +2 -2
  318. package/dist/components/alert/alert.d.ts +4 -4
  319. package/dist/components/alert/alert.messages.d.ts +6 -0
  320. package/dist/components/alert/alert.types.d.ts +2 -2
  321. package/dist/components/alert/components/alert.actions.d.ts +1 -1
  322. package/dist/components/alert/components/alert.description.d.ts +1 -1
  323. package/dist/components/alert/components/alert.dismiss-button.d.ts +1 -1
  324. package/dist/components/alert/components/alert.root.d.ts +0 -9
  325. package/dist/components/alert/components/alert.title.d.ts +1 -1
  326. package/dist/components/alert/intl/de.d.ts +9 -0
  327. package/dist/components/alert/intl/en.d.ts +9 -0
  328. package/dist/components/alert/intl/es.d.ts +9 -0
  329. package/dist/components/alert/intl/fr-FR.d.ts +9 -0
  330. package/dist/components/alert/intl/pt-BR.d.ts +9 -0
  331. package/dist/components/alert.cjs +1 -1
  332. package/dist/components/alert.es.js +1 -1
  333. package/dist/components/avatar/avatar.messages.d.ts +6 -0
  334. package/dist/components/avatar/intl/de.d.ts +9 -0
  335. package/dist/components/avatar/intl/en.d.ts +9 -0
  336. package/dist/components/avatar/intl/es.d.ts +9 -0
  337. package/dist/components/avatar/intl/fr-FR.d.ts +9 -0
  338. package/dist/components/avatar/intl/pt-BR.d.ts +9 -0
  339. package/dist/components/avatar.cjs +1 -1
  340. package/dist/components/avatar.es.js +1 -1
  341. package/dist/components/box/box.d.ts +2 -0
  342. package/dist/components/button.cjs +1 -1
  343. package/dist/components/button.es.js +1 -1
  344. package/dist/components/calendar/calendar.messages.d.ts +6 -0
  345. package/dist/components/calendar/intl/de.d.ts +12 -0
  346. package/dist/components/calendar/intl/en.d.ts +12 -0
  347. package/dist/components/calendar/intl/es.d.ts +12 -0
  348. package/dist/components/calendar/intl/fr-FR.d.ts +12 -0
  349. package/dist/components/calendar/intl/pt-BR.d.ts +12 -0
  350. package/dist/components/calendar.cjs +1 -1
  351. package/dist/components/calendar.es.js +1 -1
  352. package/dist/components/card/card.recipe.d.ts +1 -1
  353. package/dist/components/card.cjs +1 -1
  354. package/dist/components/card.es.js +1 -1
  355. package/dist/components/checkbox.cjs +1 -1
  356. package/dist/components/checkbox.es.js +1 -1
  357. package/dist/components/collapsible-motion.cjs +1 -1
  358. package/dist/components/collapsible-motion.es.js +1 -1
  359. package/dist/components/combo-box/combo-box.messages.d.ts +6 -0
  360. package/dist/components/combo-box/intl/de.d.ts +12 -0
  361. package/dist/components/combo-box/intl/en.d.ts +12 -0
  362. package/dist/components/combo-box/intl/es.d.ts +12 -0
  363. package/dist/components/combo-box/intl/fr-FR.d.ts +12 -0
  364. package/dist/components/combo-box/intl/pt-BR.d.ts +12 -0
  365. package/dist/components/combobox/combobox.d.ts +203 -27
  366. package/dist/components/combobox/combobox.i18n.d.ts +3 -13
  367. package/dist/components/combobox/combobox.messages.d.ts +6 -0
  368. package/dist/components/combobox/combobox.recipe.d.ts +18 -17
  369. package/dist/components/combobox/combobox.slots.d.ts +14 -28
  370. package/dist/components/combobox/combobox.types.d.ts +704 -105
  371. package/dist/components/combobox/components/combobox.hidden-input.d.ts +17 -0
  372. package/dist/components/combobox/components/combobox.input.d.ts +20 -0
  373. package/dist/components/combobox/components/combobox.leading-element.d.ts +5 -5
  374. package/dist/components/combobox/components/combobox.listbox.d.ts +27 -0
  375. package/dist/components/combobox/components/combobox.option.d.ts +29 -5
  376. package/dist/components/combobox/components/combobox.popover.d.ts +27 -0
  377. package/dist/components/combobox/components/combobox.root-context.d.ts +13 -0
  378. package/dist/components/combobox/components/combobox.root.d.ts +26 -6
  379. package/dist/components/combobox/components/combobox.section.d.ts +32 -0
  380. package/dist/components/combobox/components/combobox.tag-group.d.ts +26 -0
  381. package/dist/components/combobox/components/combobox.trigger.d.ts +26 -0
  382. package/dist/components/combobox/components/index.d.ts +4 -9
  383. package/dist/components/combobox/index.d.ts +1 -1
  384. package/dist/components/combobox/intl/de.d.ts +12 -0
  385. package/dist/components/combobox/intl/en.d.ts +12 -0
  386. package/dist/components/combobox/intl/es.d.ts +12 -0
  387. package/dist/components/combobox/intl/fr-FR.d.ts +12 -0
  388. package/dist/components/combobox/intl/pt-BR.d.ts +12 -0
  389. package/dist/components/combobox/utils/collection.d.ts +13 -0
  390. package/dist/components/combobox/utils/filters.d.ts +339 -0
  391. package/dist/components/combobox/utils/selection.d.ts +10 -0
  392. package/dist/components/combobox/utils/test-data.d.ts +6 -0
  393. package/dist/components/combobox/utils/test-utils.d.ts +30 -0
  394. package/dist/components/combobox.cjs +1 -1
  395. package/dist/components/combobox.es.js +1 -1
  396. package/dist/components/components.cjs +1 -1
  397. package/dist/components/components.es.js +1 -1
  398. package/dist/components/data-table/components/data-table.body.d.ts +1 -1
  399. package/dist/components/data-table/components/data-table.context.d.ts +3 -1
  400. package/dist/components/data-table/components/data-table.header.d.ts +1 -1
  401. package/dist/components/data-table/components/data-table.table.d.ts +1 -1
  402. package/dist/components/data-table/components/index.d.ts +1 -1
  403. package/dist/components/data-table/data-table.d.ts +3 -3
  404. package/dist/components/data-table/data-table.i18n.d.ts +5 -0
  405. package/dist/components/data-table/data-table.messages.d.ts +6 -0
  406. package/dist/components/data-table/data-table.recipe.d.ts +1 -1
  407. package/dist/components/data-table/data-table.types.d.ts +11 -2
  408. package/dist/components/data-table/intl/de.d.ts +40 -0
  409. package/dist/components/data-table/intl/en.d.ts +40 -0
  410. package/dist/components/data-table/intl/es.d.ts +40 -0
  411. package/dist/components/data-table/intl/fr-FR.d.ts +40 -0
  412. package/dist/components/data-table/intl/pt-BR.d.ts +40 -0
  413. package/dist/components/data-table.cjs +1 -1
  414. package/dist/components/data-table.es.js +1 -1
  415. package/dist/components/date-input.cjs +1 -1
  416. package/dist/components/date-input.es.js +1 -1
  417. package/dist/components/date-picker/date-picker.messages.d.ts +6 -0
  418. package/dist/components/date-picker/date-picker.types.d.ts +1 -1
  419. package/dist/components/date-picker/intl/de.d.ts +14 -0
  420. package/dist/components/date-picker/intl/en.d.ts +14 -0
  421. package/dist/components/date-picker/intl/es.d.ts +14 -0
  422. package/dist/components/date-picker/intl/fr-FR.d.ts +14 -0
  423. package/dist/components/date-picker/intl/pt-BR.d.ts +14 -0
  424. package/dist/components/date-picker.cjs +1 -1
  425. package/dist/components/date-picker.es.js +1 -1
  426. package/dist/components/date-range-picker/date-range-picker.messages.d.ts +6 -0
  427. package/dist/components/date-range-picker/intl/de.d.ts +21 -0
  428. package/dist/components/date-range-picker/intl/en.d.ts +21 -0
  429. package/dist/components/date-range-picker/intl/es.d.ts +21 -0
  430. package/dist/components/date-range-picker/intl/fr-FR.d.ts +21 -0
  431. package/dist/components/date-range-picker/intl/pt-BR.d.ts +21 -0
  432. package/dist/components/date-range-picker-field.cjs +1 -1
  433. package/dist/components/date-range-picker-field.es.js +1 -1
  434. package/dist/components/date-range-picker.cjs +1 -1
  435. package/dist/components/date-range-picker.es.js +1 -1
  436. package/dist/components/dialog/dialog.messages.d.ts +6 -0
  437. package/dist/components/dialog/dialog.types.d.ts +2 -2
  438. package/dist/components/dialog/intl/de.d.ts +9 -0
  439. package/dist/components/dialog/intl/en.d.ts +9 -0
  440. package/dist/components/dialog/intl/es.d.ts +9 -0
  441. package/dist/components/dialog/intl/fr-FR.d.ts +9 -0
  442. package/dist/components/dialog/intl/pt-BR.d.ts +9 -0
  443. package/dist/components/dialog.cjs +1 -1
  444. package/dist/components/dialog.es.js +1 -1
  445. package/dist/components/draggable-list/draggable-list.messages.d.ts +6 -0
  446. package/dist/components/draggable-list/intl/de.d.ts +10 -0
  447. package/dist/components/draggable-list/intl/en.d.ts +10 -0
  448. package/dist/components/draggable-list/intl/es.d.ts +10 -0
  449. package/dist/components/draggable-list/intl/fr-FR.d.ts +10 -0
  450. package/dist/components/draggable-list/intl/pt-BR.d.ts +10 -0
  451. package/dist/components/draggable-list.cjs +1 -1
  452. package/dist/components/draggable-list.es.js +1 -1
  453. package/dist/components/drawer/components/drawer.context.d.ts +8 -2
  454. package/dist/components/drawer/drawer.messages.d.ts +6 -0
  455. package/dist/components/drawer/drawer.types.d.ts +2 -2
  456. package/dist/components/drawer/intl/de.d.ts +9 -0
  457. package/dist/components/drawer/intl/en.d.ts +9 -0
  458. package/dist/components/drawer/intl/es.d.ts +9 -0
  459. package/dist/components/drawer/intl/fr-FR.d.ts +9 -0
  460. package/dist/components/drawer/intl/pt-BR.d.ts +9 -0
  461. package/dist/components/drawer.cjs +1 -1
  462. package/dist/components/drawer.es.js +1 -1
  463. package/dist/components/field-errors/field-errors.d.ts +1 -1
  464. package/dist/components/field-errors/field-errors.messages.d.ts +6 -0
  465. package/dist/components/field-errors/field-errors.types.d.ts +1 -1
  466. package/dist/components/field-errors/intl/de.d.ts +23 -0
  467. package/dist/components/field-errors/intl/en.d.ts +23 -0
  468. package/dist/components/field-errors/intl/es.d.ts +23 -0
  469. package/dist/components/field-errors/intl/fr-FR.d.ts +23 -0
  470. package/dist/components/field-errors/intl/pt-BR.d.ts +23 -0
  471. package/dist/components/field-errors.cjs +1 -1
  472. package/dist/components/field-errors.es.js +1 -1
  473. package/dist/components/fields.cjs +1 -1
  474. package/dist/components/fields.es.js +13 -3
  475. package/dist/components/fields.es.js.map +1 -1
  476. package/dist/components/form-field.cjs +1 -1
  477. package/dist/components/form-field.es.js +1 -1
  478. package/dist/components/icon-button/icon-button.types.d.ts +15 -3
  479. package/dist/components/icon-button.cjs +1 -1
  480. package/dist/components/icon-button.es.js +1 -1
  481. package/dist/components/icon-toggle-button/icon-toggle-button.types.d.ts +1 -1
  482. package/dist/components/icon-toggle-button.cjs +1 -1
  483. package/dist/components/icon-toggle-button.es.js +1 -1
  484. package/dist/components/icon.cjs +1 -1
  485. package/dist/components/icon.es.js +1 -1
  486. package/dist/components/image/image.d.ts +2 -0
  487. package/dist/components/inline-svg.cjs +1 -1
  488. package/dist/components/inline-svg.es.js +1 -1
  489. package/dist/components/list/components/index.d.ts +3 -0
  490. package/dist/components/list/components/list.indicator.d.ts +19 -0
  491. package/dist/components/list/components/list.item.d.ts +15 -0
  492. package/dist/components/list/components/list.root.d.ts +25 -0
  493. package/dist/components/list/list.d.ts +3 -6
  494. package/dist/components/loading-spinner/intl/de.d.ts +9 -0
  495. package/dist/components/loading-spinner/intl/en.d.ts +9 -0
  496. package/dist/components/loading-spinner/intl/es.d.ts +9 -0
  497. package/dist/components/loading-spinner/intl/fr-FR.d.ts +9 -0
  498. package/dist/components/loading-spinner/intl/pt-BR.d.ts +9 -0
  499. package/dist/components/loading-spinner/loading-spinner.messages.d.ts +6 -0
  500. package/dist/components/loading-spinner.cjs +1 -1
  501. package/dist/components/loading-spinner.es.js +1 -1
  502. package/dist/components/localized-field/intl/de.d.ts +14 -0
  503. package/dist/components/localized-field/intl/en.d.ts +14 -0
  504. package/dist/components/localized-field/intl/es.d.ts +14 -0
  505. package/dist/components/localized-field/intl/fr-FR.d.ts +14 -0
  506. package/dist/components/localized-field/intl/pt-BR.d.ts +14 -0
  507. package/dist/components/localized-field/localized-field.messages.d.ts +6 -0
  508. package/dist/components/localized-field/localized-field.types.d.ts +1 -1
  509. package/dist/components/localized-field.cjs +1 -1
  510. package/dist/components/localized-field.es.js +1 -1
  511. package/dist/components/money-input/intl/de.d.ts +11 -0
  512. package/dist/components/money-input/intl/en.d.ts +11 -0
  513. package/dist/components/money-input/intl/es.d.ts +11 -0
  514. package/dist/components/money-input/intl/fr-FR.d.ts +11 -0
  515. package/dist/components/money-input/intl/pt-BR.d.ts +11 -0
  516. package/dist/components/money-input/money-input.messages.d.ts +6 -0
  517. package/dist/components/money-input/money-input.recipe.d.ts +1 -1
  518. package/dist/components/money-input-field.cjs +2 -0
  519. package/dist/components/money-input-field.cjs.map +1 -0
  520. package/dist/components/money-input-field.es.js +5 -0
  521. package/dist/components/money-input-field.es.js.map +1 -0
  522. package/dist/components/money-input.cjs +1 -1
  523. package/dist/components/money-input.es.js +1 -1
  524. package/dist/components/multiline-text-input/multiline-text-input.types.d.ts +1 -1
  525. package/dist/components/multiline-text-input-field.cjs +2 -0
  526. package/dist/components/multiline-text-input-field.cjs.map +1 -0
  527. package/dist/components/multiline-text-input-field.es.js +5 -0
  528. package/dist/components/multiline-text-input-field.es.js.map +1 -0
  529. package/dist/components/multiline-text-input.cjs +1 -1
  530. package/dist/components/multiline-text-input.es.js +1 -1
  531. package/dist/components/nimbus-provider/index.d.ts +0 -1
  532. package/dist/components/nimbus-provider/nimbus-provider.d.ts +1 -0
  533. package/dist/components/nimbus-provider.cjs +1 -1
  534. package/dist/components/nimbus-provider.es.js +1 -3
  535. package/dist/components/nimbus-provider.es.js.map +1 -1
  536. package/dist/components/number-input/intl/de.d.ts +10 -0
  537. package/dist/components/number-input/intl/en.d.ts +10 -0
  538. package/dist/components/number-input/intl/es.d.ts +10 -0
  539. package/dist/components/number-input/intl/fr-FR.d.ts +10 -0
  540. package/dist/components/number-input/intl/pt-BR.d.ts +10 -0
  541. package/dist/components/number-input/number-input.messages.d.ts +6 -0
  542. package/dist/components/number-input-field.cjs +2 -0
  543. package/dist/components/number-input-field.cjs.map +1 -0
  544. package/dist/components/number-input-field.es.js +5 -0
  545. package/dist/components/number-input-field.es.js.map +1 -0
  546. package/dist/components/number-input.cjs +1 -1
  547. package/dist/components/number-input.es.js +1 -1
  548. package/dist/components/pagination/intl/de.d.ts +16 -0
  549. package/dist/components/pagination/intl/en.d.ts +16 -0
  550. package/dist/components/pagination/intl/es.d.ts +16 -0
  551. package/dist/components/pagination/intl/fr-FR.d.ts +16 -0
  552. package/dist/components/pagination/intl/pt-BR.d.ts +16 -0
  553. package/dist/components/pagination/pagination.messages.d.ts +6 -0
  554. package/dist/components/pagination.cjs +1 -1
  555. package/dist/components/pagination.es.js +1 -1
  556. package/dist/components/password-input/intl/de.d.ts +10 -0
  557. package/dist/components/password-input/intl/en.d.ts +10 -0
  558. package/dist/components/password-input/intl/es.d.ts +10 -0
  559. package/dist/components/password-input/intl/fr-FR.d.ts +10 -0
  560. package/dist/components/password-input/intl/pt-BR.d.ts +10 -0
  561. package/dist/components/password-input/password-input.messages.d.ts +6 -0
  562. package/dist/components/password-input-field.cjs +2 -0
  563. package/dist/components/password-input-field.cjs.map +1 -0
  564. package/dist/components/password-input-field.es.js +5 -0
  565. package/dist/components/password-input-field.es.js.map +1 -0
  566. package/dist/components/password-input.cjs +1 -1
  567. package/dist/components/password-input.es.js +1 -1
  568. package/dist/components/patterns.cjs +1 -1
  569. package/dist/components/patterns.es.js +13 -3
  570. package/dist/components/patterns.es.js.map +1 -1
  571. package/dist/components/popover/popover.d.ts +1 -1
  572. package/dist/components/popover/popover.slots.d.ts +2 -4
  573. package/dist/components/popover/popover.types.d.ts +12 -2
  574. package/dist/components/popover.cjs +1 -1
  575. package/dist/components/popover.es.js +1 -1
  576. package/dist/components/progress-bar.cjs +1 -1
  577. package/dist/components/progress-bar.es.js +1 -1
  578. package/dist/components/radio-input.cjs +1 -1
  579. package/dist/components/radio-input.es.js +1 -1
  580. package/dist/components/range-calendar/intl/de.d.ts +12 -0
  581. package/dist/components/range-calendar/intl/en.d.ts +12 -0
  582. package/dist/components/range-calendar/intl/es.d.ts +12 -0
  583. package/dist/components/range-calendar/intl/fr-FR.d.ts +12 -0
  584. package/dist/components/range-calendar/intl/pt-BR.d.ts +12 -0
  585. package/dist/components/range-calendar/range-calendar.messages.d.ts +6 -0
  586. package/dist/components/range-calendar.cjs +1 -1
  587. package/dist/components/range-calendar.es.js +1 -1
  588. package/dist/components/rich-text-input/constants/text-styles.d.ts +2 -3
  589. package/dist/components/rich-text-input/intl/de.d.ts +32 -0
  590. package/dist/components/rich-text-input/intl/en.d.ts +32 -0
  591. package/dist/components/rich-text-input/intl/es.d.ts +32 -0
  592. package/dist/components/rich-text-input/intl/fr-FR.d.ts +32 -0
  593. package/dist/components/rich-text-input/intl/pt-BR.d.ts +32 -0
  594. package/dist/components/rich-text-input/rich-text-input.messages.d.ts +6 -0
  595. package/dist/components/rich-text-input.cjs +1 -1
  596. package/dist/components/rich-text-input.es.js +1 -1
  597. package/dist/components/scoped-search-input/intl/de.d.ts +10 -0
  598. package/dist/components/scoped-search-input/intl/en.d.ts +10 -0
  599. package/dist/components/scoped-search-input/intl/es.d.ts +10 -0
  600. package/dist/components/scoped-search-input/intl/fr-FR.d.ts +10 -0
  601. package/dist/components/scoped-search-input/intl/pt-BR.d.ts +10 -0
  602. package/dist/components/scoped-search-input/scoped-search-input.messages.d.ts +6 -0
  603. package/dist/components/scoped-search-input.cjs +1 -1
  604. package/dist/components/scoped-search-input.es.js +1 -1
  605. package/dist/components/search-input/intl/de.d.ts +9 -0
  606. package/dist/components/search-input/intl/en.d.ts +9 -0
  607. package/dist/components/search-input/intl/es.d.ts +9 -0
  608. package/dist/components/search-input/intl/fr-FR.d.ts +9 -0
  609. package/dist/components/search-input/intl/pt-BR.d.ts +9 -0
  610. package/dist/components/search-input/search-input.messages.d.ts +6 -0
  611. package/dist/components/search-input-field.cjs +2 -0
  612. package/dist/components/search-input-field.cjs.map +1 -0
  613. package/dist/components/search-input-field.es.js +5 -0
  614. package/dist/components/search-input-field.es.js.map +1 -0
  615. package/dist/components/search-input.cjs +1 -1
  616. package/dist/components/search-input.es.js +1 -1
  617. package/dist/components/select/components/select.root.d.ts +2 -2
  618. package/dist/components/select/intl/de.d.ts +9 -0
  619. package/dist/components/select/intl/en.d.ts +9 -0
  620. package/dist/components/select/intl/es.d.ts +9 -0
  621. package/dist/components/select/intl/fr-FR.d.ts +9 -0
  622. package/dist/components/select/intl/pt-BR.d.ts +9 -0
  623. package/dist/components/select/select.d.ts +1 -1
  624. package/dist/components/select/select.messages.d.ts +6 -0
  625. package/dist/components/select/select.recipe.d.ts +1 -1
  626. package/dist/components/select/select.types.d.ts +1 -1
  627. package/dist/components/select.cjs +1 -1
  628. package/dist/components/select.es.js +1 -1
  629. package/dist/components/separator.cjs +1 -1
  630. package/dist/components/separator.es.js +1 -1
  631. package/dist/components/split-button/intl/de.d.ts +9 -0
  632. package/dist/components/split-button/intl/en.d.ts +9 -0
  633. package/dist/components/split-button/intl/es.d.ts +9 -0
  634. package/dist/components/split-button/intl/fr-FR.d.ts +9 -0
  635. package/dist/components/split-button/intl/pt-BR.d.ts +9 -0
  636. package/dist/components/split-button/split-button.messages.d.ts +6 -0
  637. package/dist/components/split-button/split-button.types.d.ts +1 -1
  638. package/dist/components/split-button.cjs +1 -1
  639. package/dist/components/split-button.es.js +1 -1
  640. package/dist/components/stack/index.d.ts +2 -1
  641. package/dist/components/stack/stack.d.ts +3 -5
  642. package/dist/components/stack/stack.types.d.ts +33 -0
  643. package/dist/components/switch.cjs +1 -1
  644. package/dist/components/switch.es.js +1 -1
  645. package/dist/components/tabs/components/tabs.root.d.ts +1 -1
  646. package/dist/components/tabs/tabs.d.ts +1 -1
  647. package/dist/components/tabs/tabs.recipe.d.ts +12 -11
  648. package/dist/components/tabs/tabs.slots.d.ts +10 -0
  649. package/dist/components/tabs/tabs.types.d.ts +14 -0
  650. package/dist/components/tabs.cjs +1 -1
  651. package/dist/components/tabs.es.js +1 -1
  652. package/dist/components/tag-group/intl/de.d.ts +9 -0
  653. package/dist/components/tag-group/intl/en.d.ts +9 -0
  654. package/dist/components/tag-group/intl/es.d.ts +9 -0
  655. package/dist/components/tag-group/intl/fr-FR.d.ts +9 -0
  656. package/dist/components/tag-group/intl/pt-BR.d.ts +9 -0
  657. package/dist/components/tag-group/tag-group.messages.d.ts +6 -0
  658. package/dist/components/tag-group.cjs +1 -1
  659. package/dist/components/tag-group.es.js +1 -1
  660. package/dist/components/text/text.d.ts +2 -0
  661. package/dist/components/text-input-field.cjs +1 -1
  662. package/dist/components/text-input-field.es.js +1 -1
  663. package/dist/components/text-input.cjs +1 -1
  664. package/dist/components/text-input.es.js +1 -1
  665. package/dist/components/time-input.cjs +1 -1
  666. package/dist/components/time-input.es.js +1 -1
  667. package/dist/components/toggle-button.cjs +1 -1
  668. package/dist/components/toggle-button.es.js +1 -1
  669. package/dist/components/toolbar.cjs +1 -1
  670. package/dist/components/toolbar.es.js +1 -1
  671. package/dist/components/utils.cjs +2 -2
  672. package/dist/components/utils.cjs.map +1 -1
  673. package/dist/components/utils.es.js +121 -122
  674. package/dist/components/utils.es.js.map +1 -1
  675. package/dist/constants/color-palettes.d.ts +24 -0
  676. package/dist/constants/index.d.ts +1 -0
  677. package/dist/hooks/index.d.ts +1 -0
  678. package/dist/hooks/use-localized-string-formatter/index.d.ts +1 -0
  679. package/dist/hooks/use-localized-string-formatter/use-localized-string-formatter.d.ts +56 -0
  680. package/dist/index.cjs +1 -1
  681. package/dist/index.cjs.map +1 -1
  682. package/dist/index.es.js +278 -268
  683. package/dist/index.es.js.map +1 -1
  684. package/dist/patterns/fields/date-range-picker-field/date-range-picker-field.types.d.ts +12 -14
  685. package/dist/patterns/fields/index.d.ts +5 -0
  686. package/dist/patterns/fields/money-input-field/index.d.ts +2 -0
  687. package/dist/patterns/fields/money-input-field/money-input-field.d.ts +32 -0
  688. package/dist/patterns/fields/money-input-field/money-input-field.types.d.ts +56 -0
  689. package/dist/patterns/fields/multiline-text-input-field/index.d.ts +2 -0
  690. package/dist/patterns/fields/multiline-text-input-field/multiline-text-input-field.d.ts +30 -0
  691. package/dist/patterns/fields/multiline-text-input-field/multiline-text-input-field.types.d.ts +44 -0
  692. package/dist/patterns/fields/number-input-field/index.d.ts +2 -0
  693. package/dist/patterns/fields/number-input-field/number-input-field.d.ts +31 -0
  694. package/dist/patterns/fields/number-input-field/number-input-field.types.d.ts +52 -0
  695. package/dist/patterns/fields/password-input-field/index.d.ts +2 -0
  696. package/dist/patterns/fields/password-input-field/password-input-field.d.ts +28 -0
  697. package/dist/patterns/fields/password-input-field/password-input-field.types.d.ts +43 -0
  698. package/dist/patterns/fields/search-input-field/index.d.ts +2 -0
  699. package/dist/patterns/fields/search-input-field/search-input-field.d.ts +30 -0
  700. package/dist/patterns/fields/search-input-field/search-input-field.types.d.ts +50 -0
  701. package/dist/patterns/fields/text-input-field/text-input-field.d.ts +1 -1
  702. package/dist/patterns/fields/text-input-field/text-input-field.types.d.ts +8 -3
  703. package/dist/setup-jsdom-polyfills.cjs +1 -1
  704. package/dist/setup-jsdom-polyfills.cjs.map +1 -1
  705. package/dist/setup-jsdom-polyfills.es.js +17 -0
  706. package/dist/setup-jsdom-polyfills.es.js.map +1 -1
  707. package/dist/theme/semantic-tokens/colors.d.ts +2 -8
  708. package/dist/theme/semantic-tokens/index.d.ts +1 -4
  709. package/dist/theme/slot-recipes/index.d.ts +34 -32
  710. package/dist/type-utils/shared-types.d.ts +12 -4
  711. package/dist/utils/display-color-palettes.d.ts +39 -0
  712. package/dist/utils/index.d.ts +1 -0
  713. package/dist/utils/normalize-messages.d.ts +10 -0
  714. package/package.json +32 -28
  715. package/dist/chunks/DateField-B5u8QZFY.cjs.js +0 -2
  716. package/dist/chunks/DateField-B5u8QZFY.cjs.js.map +0 -1
  717. package/dist/chunks/DateField-C5JgBb30.es.js.map +0 -1
  718. package/dist/chunks/TextArea-2QJpeMJq.cjs.js +0 -2
  719. package/dist/chunks/TextArea-2QJpeMJq.cjs.js.map +0 -1
  720. package/dist/chunks/TextArea-CXEdUjgW.es.js +0 -42
  721. package/dist/chunks/TextArea-CXEdUjgW.es.js.map +0 -1
  722. package/dist/chunks/alert-ByKnzJtr.cjs.js +0 -2
  723. package/dist/chunks/alert-ByKnzJtr.cjs.js.map +0 -1
  724. package/dist/chunks/alert-Cb8WoJYV.es.js +0 -211
  725. package/dist/chunks/alert-Cb8WoJYV.es.js.map +0 -1
  726. package/dist/chunks/avatar-Dx_Cda2J.es.js +0 -47
  727. package/dist/chunks/avatar-Dx_Cda2J.es.js.map +0 -1
  728. package/dist/chunks/avatar-wRR1leVi.cjs.js +0 -2
  729. package/dist/chunks/avatar-wRR1leVi.cjs.js.map +0 -1
  730. package/dist/chunks/calendar-B--ZxTlQ.es.js +0 -217
  731. package/dist/chunks/calendar-B--ZxTlQ.es.js.map +0 -1
  732. package/dist/chunks/calendar-DLSOwy_e.cjs.js +0 -2
  733. package/dist/chunks/calendar-DLSOwy_e.cjs.js.map +0 -1
  734. package/dist/chunks/card-B2TxE_Ez.cjs.js +0 -2
  735. package/dist/chunks/card-B2TxE_Ez.cjs.js.map +0 -1
  736. package/dist/chunks/card-CEfEgF48.es.js +0 -120
  737. package/dist/chunks/card-CEfEgF48.es.js.map +0 -1
  738. package/dist/chunks/combobox-B2nkVE2H.cjs.js +0 -2
  739. package/dist/chunks/combobox-B2nkVE2H.cjs.js.map +0 -1
  740. package/dist/chunks/combobox-COyroO64.es.js +0 -2497
  741. package/dist/chunks/combobox-COyroO64.es.js.map +0 -1
  742. package/dist/chunks/data-table-BzY3lLyR.cjs.js +0 -2
  743. package/dist/chunks/data-table-BzY3lLyR.cjs.js.map +0 -1
  744. package/dist/chunks/data-table-C0rC7Jgu.es.js.map +0 -1
  745. package/dist/chunks/date-picker-8kdn6Ih5.es.js +0 -218
  746. package/dist/chunks/date-picker-8kdn6Ih5.es.js.map +0 -1
  747. package/dist/chunks/date-picker-CxJ6zMkz.cjs.js +0 -2
  748. package/dist/chunks/date-picker-CxJ6zMkz.cjs.js.map +0 -1
  749. package/dist/chunks/date-range-picker-B2VUcKjG.cjs.js +0 -2
  750. package/dist/chunks/date-range-picker-B2VUcKjG.cjs.js.map +0 -1
  751. package/dist/chunks/date-range-picker-Di9p8cKs.es.js +0 -356
  752. package/dist/chunks/date-range-picker-Di9p8cKs.es.js.map +0 -1
  753. package/dist/chunks/date-range-picker-field-D3tLPzMb.es.js.map +0 -1
  754. package/dist/chunks/date-range-picker-field-DipL5QZq.cjs.js.map +0 -1
  755. package/dist/chunks/dialog-qw6IMWj3.cjs.js +0 -2
  756. package/dist/chunks/dialog-qw6IMWj3.cjs.js.map +0 -1
  757. package/dist/chunks/dialog-z8EM12xr.es.js.map +0 -1
  758. package/dist/chunks/drawer-BZBluK-I.es.js.map +0 -1
  759. package/dist/chunks/drawer-DfJY_5pD.cjs.js +0 -2
  760. package/dist/chunks/drawer-DfJY_5pD.cjs.js.map +0 -1
  761. package/dist/chunks/field-errors-ClQprmQz.es.js +0 -213
  762. package/dist/chunks/field-errors-ClQprmQz.es.js.map +0 -1
  763. package/dist/chunks/field-errors-D2re_C_c.cjs.js +0 -2
  764. package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +0 -1
  765. package/dist/chunks/form-field-BqlkPY29.es.js.map +0 -1
  766. package/dist/chunks/form-field-lALRYL6D.cjs.js +0 -2
  767. package/dist/chunks/form-field-lALRYL6D.cjs.js.map +0 -1
  768. package/dist/chunks/icon-CenxuChf.es.js +0 -11
  769. package/dist/chunks/icon-D39U--jA.cjs.js +0 -2
  770. package/dist/chunks/icon-button-BUmqYcIF.cjs.js +0 -2
  771. package/dist/chunks/icon-button-BUmqYcIF.cjs.js.map +0 -1
  772. package/dist/chunks/icon-button-DgL7XNUZ.es.js +0 -14
  773. package/dist/chunks/icon-button-DgL7XNUZ.es.js.map +0 -1
  774. package/dist/chunks/icon-toggle-button-BKmjmlZt.es.js.map +0 -1
  775. package/dist/chunks/icon-toggle-button-D3spgxe2.cjs.js.map +0 -1
  776. package/dist/chunks/index-BEgCT-l6.es.js.map +0 -1
  777. package/dist/chunks/index-DzRjEtIu.cjs.js +0 -34
  778. package/dist/chunks/index-DzRjEtIu.cjs.js.map +0 -1
  779. package/dist/chunks/inline-svg-CbSC6O5X.es.js +0 -21
  780. package/dist/chunks/inline-svg-Yb2OyzRw.cjs.js +0 -2
  781. package/dist/chunks/loading-spinner-DF6c3rBM.es.js +0 -59
  782. package/dist/chunks/loading-spinner-DF6c3rBM.es.js.map +0 -1
  783. package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js +0 -2
  784. package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js.map +0 -1
  785. package/dist/chunks/localized-field-CtLqzEnl.cjs.js +0 -2
  786. package/dist/chunks/localized-field-CtLqzEnl.cjs.js.map +0 -1
  787. package/dist/chunks/localized-field-XLDcWlU1.es.js +0 -470
  788. package/dist/chunks/localized-field-XLDcWlU1.es.js.map +0 -1
  789. package/dist/chunks/menu-C3Ovi5Mr.es.js.map +0 -1
  790. package/dist/chunks/menu-Vj3cVc_v.cjs.js.map +0 -1
  791. package/dist/chunks/money-input-B2tSXXU9.cjs.js +0 -2
  792. package/dist/chunks/money-input-B2tSXXU9.cjs.js.map +0 -1
  793. package/dist/chunks/money-input-BEek-VSq.es.js.map +0 -1
  794. package/dist/chunks/multiline-text-input-D5vbZHyU.es.js +0 -64
  795. package/dist/chunks/multiline-text-input-D5vbZHyU.es.js.map +0 -1
  796. package/dist/chunks/multiline-text-input-G1ZSL7hm.cjs.js +0 -2
  797. package/dist/chunks/multiline-text-input-G1ZSL7hm.cjs.js.map +0 -1
  798. package/dist/chunks/nimbus-provider-BHwVMxgZ.es.js +0 -102
  799. package/dist/chunks/nimbus-provider-BHwVMxgZ.es.js.map +0 -1
  800. package/dist/chunks/nimbus-provider-DHZ_RRPR.cjs.js +0 -2
  801. package/dist/chunks/nimbus-provider-DHZ_RRPR.cjs.js.map +0 -1
  802. package/dist/chunks/number-input-CwrgDAWw.cjs.js +0 -2
  803. package/dist/chunks/number-input-CwrgDAWw.cjs.js.map +0 -1
  804. package/dist/chunks/number-input-DrhSvm6o.es.js.map +0 -1
  805. package/dist/chunks/pagination-C6OYOaIl.cjs.js +0 -2
  806. package/dist/chunks/pagination-C6OYOaIl.cjs.js.map +0 -1
  807. package/dist/chunks/pagination-aj1F0182.es.js +0 -210
  808. package/dist/chunks/pagination-aj1F0182.es.js.map +0 -1
  809. package/dist/chunks/password-input-BILx_1d0.cjs.js +0 -2
  810. package/dist/chunks/password-input-BILx_1d0.cjs.js.map +0 -1
  811. package/dist/chunks/password-input-DTPr52a3.es.js +0 -54
  812. package/dist/chunks/password-input-DTPr52a3.es.js.map +0 -1
  813. package/dist/chunks/popover-BAIwOPdC.es.js +0 -14
  814. package/dist/chunks/popover-BAIwOPdC.es.js.map +0 -1
  815. package/dist/chunks/popover-DY7ASSCU.cjs.js +0 -2
  816. package/dist/chunks/popover-DY7ASSCU.cjs.js.map +0 -1
  817. package/dist/chunks/range-calendar-BagHIF-Y.es.js +0 -219
  818. package/dist/chunks/range-calendar-BagHIF-Y.es.js.map +0 -1
  819. package/dist/chunks/range-calendar-sHWelH3C.cjs.js +0 -2
  820. package/dist/chunks/range-calendar-sHWelH3C.cjs.js.map +0 -1
  821. package/dist/chunks/rich-text-input-B4ksKYJh.cjs.js +0 -10
  822. package/dist/chunks/rich-text-input-B4ksKYJh.cjs.js.map +0 -1
  823. package/dist/chunks/rich-text-input-CZqXRWdM.es.js +0 -1200
  824. package/dist/chunks/rich-text-input-CZqXRWdM.es.js.map +0 -1
  825. package/dist/chunks/scoped-search-input-BKTc1h-7.cjs.js +0 -2
  826. package/dist/chunks/scoped-search-input-BKTc1h-7.cjs.js.map +0 -1
  827. package/dist/chunks/scoped-search-input-DY4w22Ki.es.js +0 -152
  828. package/dist/chunks/scoped-search-input-DY4w22Ki.es.js.map +0 -1
  829. package/dist/chunks/search-input-Bl0EswfK.cjs.js +0 -2
  830. package/dist/chunks/search-input-Bl0EswfK.cjs.js.map +0 -1
  831. package/dist/chunks/search-input-CMrPbAUI.es.js.map +0 -1
  832. package/dist/chunks/select-B2MAR-fq.cjs.js +0 -2
  833. package/dist/chunks/select-B2MAR-fq.cjs.js.map +0 -1
  834. package/dist/chunks/select-DG6qOekv.es.js.map +0 -1
  835. package/dist/chunks/split-button-BpZ8jMvw.es.js +0 -106
  836. package/dist/chunks/split-button-BpZ8jMvw.es.js.map +0 -1
  837. package/dist/chunks/split-button-C99oShiQ.cjs.js +0 -2
  838. package/dist/chunks/split-button-C99oShiQ.cjs.js.map +0 -1
  839. package/dist/chunks/tabs-HOHhoLn5.es.js +0 -502
  840. package/dist/chunks/tabs-HOHhoLn5.es.js.map +0 -1
  841. package/dist/chunks/tabs-gitNliDG.cjs.js +0 -2
  842. package/dist/chunks/tabs-gitNliDG.cjs.js.map +0 -1
  843. package/dist/chunks/tag-group-Aa30DcsU.es.js.map +0 -1
  844. package/dist/chunks/tag-group-Ci_H89V0.cjs.js +0 -2
  845. package/dist/chunks/tag-group-Ci_H89V0.cjs.js.map +0 -1
  846. package/dist/chunks/text-input-field-BgQ4Te_a.cjs.js +0 -2
  847. package/dist/chunks/text-input-field-BgQ4Te_a.cjs.js.map +0 -1
  848. package/dist/chunks/text-input-field-CkcoMrv2.es.js +0 -55
  849. package/dist/chunks/text-input-field-CkcoMrv2.es.js.map +0 -1
  850. package/dist/chunks/useDateFormatter-886GJ5w1.es.js.map +0 -1
  851. package/dist/chunks/useDateFormatter-WCaFojul.cjs.js +0 -2
  852. package/dist/chunks/useDateFormatter-WCaFojul.cjs.js.map +0 -1
  853. package/dist/chunks/useFilter-BgT0isJK.es.js +0 -36
  854. package/dist/chunks/useFilter-BgT0isJK.es.js.map +0 -1
  855. package/dist/chunks/useFilter-CAVKltBB.cjs.js +0 -2
  856. package/dist/chunks/useFilter-CAVKltBB.cjs.js.map +0 -1
  857. package/dist/chunks/useListState-QQtJHpsQ.cjs.js +0 -2
  858. package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js +0 -97
  859. package/dist/chunks/useLocalizedStringFormatter-DaRRUvyV.es.js.map +0 -1
  860. package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js +0 -2
  861. package/dist/chunks/useLocalizedStringFormatter-kWoZGAh5.cjs.js.map +0 -1
  862. package/dist/chunks/useSingleSelectListState-B29G7the.es.js +0 -35
  863. package/dist/chunks/useSingleSelectListState-B29G7the.es.js.map +0 -1
  864. package/dist/chunks/useSingleSelectListState-CsD7W9nK.cjs.js +0 -2
  865. package/dist/chunks/useSingleSelectListState-CsD7W9nK.cjs.js.map +0 -1
  866. package/dist/components/combobox/components/combobox.multi-select-button-group.d.ts +0 -7
  867. package/dist/components/combobox/components/combobox.multi-select-root.d.ts +0 -7
  868. package/dist/components/combobox/components/combobox.multi-select-tag-group.d.ts +0 -7
  869. package/dist/components/combobox/components/combobox.option-group.d.ts +0 -11
  870. package/dist/components/combobox/components/combobox.options.d.ts +0 -10
  871. package/dist/components/combobox/components/combobox.single-select-button-group.d.ts +0 -7
  872. package/dist/components/combobox/components/combobox.single-select-input.d.ts +0 -7
  873. package/dist/components/combobox/components/combobox.single-select-root.d.ts +0 -7
@@ -1,170 +1,171 @@
1
- import { jsx as w, jsxs as eu, Fragment as st } from "react/jsx-runtime";
2
- import { F as Y } from "./form-field-BqlkPY29.es.js";
3
- import A, { useState as X, useEffect as L, useRef as S, version as ct, useCallback as J, useImperativeHandle as pt, useMemo as Ke, forwardRef as uu, useContext as W, createContext as Dt, createElement as gt } from "react";
4
- import { defineMessages as mt, useIntl as tu } from "react-intl";
5
- import { $ as ft } from "./Button-BjcDZ5eb.es.js";
6
- import { a as Bt, b as ru, c as bt } from "./RSPContexts-DLgb84PF.es.js";
7
- import { f as xt, h as ke, k as Et } from "./SelectionManager-bgcDT3lR.es.js";
8
- import { a as Pe, e as nu, g as xe, $ as ou } from "./utils-B6pV5ewr.es.js";
9
- import { a as Ae, e as Be, f as Ct, g as $t, h as yt, i as Bn } from "./ListBox-C8TVMFFY.es.js";
10
- import { a as vt, $ as ht } from "./SelectionIndicator-B27AsfqE.es.js";
11
- import { $ as kt } from "./Text-DOcU1ycg.es.js";
12
- import { $ as At, f as Tt, g as Ft, c as St, h as Cn } from "./CollectionBuilder-ZlIN4SR4.es.js";
13
- import { c as ee, d as iu, a as Ie, $ as ze } from "./mergeProps-Dsl8k3Ig.es.js";
14
- import { $ as au } from "./filterDOMProps-BSVCO5jK.es.js";
15
- import { $ as lu } from "./useObjectRef-CaJ5pgjX.es.js";
16
- import { $ as Kt, a as Pt, b as kn } from "./useListState-BHLGQlP3.es.js";
17
- import { b as It, c as zt, a as wt, $ as Ot } from "./useGridListItem-DAGp36bD.es.js";
18
- import { $ as ne } from "./useLocalizedStringFormatter-DaRRUvyV.es.js";
19
- import { $ as Vt } from "./useHover-BQRSM3qT.es.js";
20
- import { $ as du } from "./useFocusRing-FPt2Rwil.es.js";
21
- import { b as jt } from "./FocusScope-CqEZq7sr.es.js";
22
- import { a as we } from "./VisuallyHidden-BLRzeMsq.es.js";
23
- import { $ as Lt } from "./useCollator-BjnMaGJd.es.js";
24
- import { $ as su } from "./context-DW7UvQ8z.es.js";
25
- import { c as Ue } from "./Header-Bvo6aMcQ.es.js";
26
- import { f as Rt, b as Mt, e as cu, d as pu, c as ie } from "./useFocusVisible-B3HmFL2Q.es.js";
27
- import { $ as ae } from "./LiveAnnouncer-CsPyaceH.es.js";
28
- import { d as Nt } from "./Dialog-DUbUCf4o.es.js";
29
- import { $ as Ht } from "./getScrollParent-MZgwmCKW.es.js";
30
- import { a as Oe, $ as Ut } from "./scrollIntoView-B7D07fJk.es.js";
31
- import { b as qt, c as Gt, a as Xt, f as Yt } from "./platform-Z5fvtFmM.es.js";
32
- import { $ as Zt } from "./useGlobalListeners-BOOfV5Wh.es.js";
33
- import { flushSync as Jt } from "react-dom";
34
- import { useSlotRecipe as Wt } from "@chakra-ui/react/styled-system";
35
- import { e as Du } from "./extract-style-props-DChosa6I.es.js";
36
- import { createSlotRecipeContext as Qt } from "@chakra-ui/react";
37
- import { DragIndicator as _t, Close as er } from "@commercetools/nimbus-icons";
38
- import { C as ur } from "./checkbox-BAZ2ps7B.es.js";
39
- import { I as qe } from "./icon-button-DgL7XNUZ.es.js";
1
+ import { jsx as w, jsxs as Qe, Fragment as dt } from "react/jsx-runtime";
2
+ import { F as X } from "./form-field-DCWDyNJx.es.js";
3
+ import A, { useState as Q, useEffect as L, useRef as S, version as st, useCallback as Z, useImperativeHandle as ct, forwardRef as _e, useContext as J, createContext as pt, useMemo as eu, createElement as Dt } from "react";
4
+ import { $ as gt } from "./Button-BjcDZ5eb.es.js";
5
+ import { a as mt, b as uu, c as ft } from "./RSPContexts-DLgb84PF.es.js";
6
+ import { f as Bt, h as ke, j as bt } from "./SelectionManager-CX9btso_.es.js";
7
+ import { a as Ke, e as tu, g as Ee, $ as ru } from "./utils-B6pV5ewr.es.js";
8
+ import { a as Ae, e as Be, f as Et, g as xt, h as Ct, i as bn } from "./ListBox-RrHJjnuq.es.js";
9
+ import { a as $t, $ as yt } from "./SelectionIndicator-B27AsfqE.es.js";
10
+ import { $ as vt } from "./Text-DOcU1ycg.es.js";
11
+ import { $ as ht, e as kt, f as At, g as Tt, h as $n } from "./CollectionBuilder-BOe312C_.es.js";
12
+ import { c as ee, d as nu, a as Pe, $ as Ie } from "./mergeProps-Dsl8k3Ig.es.js";
13
+ import { $ as ou } from "./filterDOMProps-BSVCO5jK.es.js";
14
+ import { $ as au } from "./useObjectRef-CaJ5pgjX.es.js";
15
+ import { a as Ft, $ as St, b as An } from "./useListState-Dd0Mtev3.es.js";
16
+ import { b as Kt, c as Pt, a as It, $ as zt } from "./useGridListItem-CJrr2QNO.es.js";
17
+ import { $ as ne } from "./useLocalizedStringFormatter-DWb0DkHL.es.js";
18
+ import { $ as wt } from "./useHover-BQRSM3qT.es.js";
19
+ import { $ as iu } from "./useFocusRing-FPt2Rwil.es.js";
20
+ import { b as Ot } from "./FocusScope-CqEZq7sr.es.js";
21
+ import { a as ze } from "./VisuallyHidden-BLRzeMsq.es.js";
22
+ import { $ as Vt } from "./useCollator-BjnMaGJd.es.js";
23
+ import { $ as lu } from "./context-DW7UvQ8z.es.js";
24
+ import { c as He } from "./Header-CiYtrnTw.es.js";
25
+ import { f as jt, b as Lt, e as du, d as su, c as ae } from "./useFocusVisible-B3HmFL2Q.es.js";
26
+ import { $ as ie } from "./LiveAnnouncer-CsPyaceH.es.js";
27
+ import { d as Rt } from "./Dialog-B0BQfdQa.es.js";
28
+ import { $ as Mt } from "./getScrollParent-MZgwmCKW.es.js";
29
+ import { a as we, $ as Nt } from "./scrollIntoView-B7D07fJk.es.js";
30
+ import { b as Ht, c as Ut, a as qt, f as Gt } from "./platform-Z5fvtFmM.es.js";
31
+ import { $ as Xt } from "./useGlobalListeners-BOOfV5Wh.es.js";
32
+ import { flushSync as Yt } from "react-dom";
33
+ import { useSlotRecipe as Zt } from "@chakra-ui/react/styled-system";
34
+ import { e as cu } from "./extract-style-props-CM4QZGaE.es.js";
35
+ import { n as ue, u as pu } from "./normalize-messages-D5T4I93D.es.js";
36
+ import { createSlotRecipeContext as Jt } from "@chakra-ui/react";
37
+ import { DragIndicator as Wt, Close as Qt } from "@commercetools/nimbus-icons";
38
+ import { C as _t } from "./checkbox-UATxAVti.es.js";
39
+ import { I as Ue } from "./icon-button-DhHKxd27.es.js";
40
+ import { a as er } from "./useListData-CX8_NxJv.es.js";
40
41
  var I = /* @__PURE__ */ (function(e) {
41
42
  return e[e.none = 0] = "none", e[e.cancel = 0] = "cancel", e[e.move = 1] = "move", e[e.copy = 2] = "copy", e[e.link = 4] = "link", e[e.all = 7] = "all", e;
42
43
  })({});
43
- const gu = {
44
+ const Du = {
44
45
  ...I,
45
46
  copyMove: 3,
46
47
  copyLink: 6,
47
48
  linkMove: 5,
48
49
  all: 7,
49
50
  uninitialized: 7
50
- }, mu = /* @__PURE__ */ fu(gu);
51
- mu[7] = "all";
51
+ }, gu = /* @__PURE__ */ mu(Du);
52
+ gu[7] = "all";
52
53
  const te = {
53
54
  none: "cancel",
54
55
  link: "link",
55
56
  copy: "copy",
56
57
  move: "move"
57
- }, Ee = /* @__PURE__ */ fu(te);
58
- function fu(e) {
58
+ }, xe = /* @__PURE__ */ mu(te);
59
+ function mu(e) {
59
60
  let u = {};
60
- for (let r in e) u[e[r]] = r;
61
+ for (let t in e) u[e[t]] = t;
61
62
  return u;
62
63
  }
63
- const tr = /* @__PURE__ */ new Set([
64
+ const ur = /* @__PURE__ */ new Set([
64
65
  "text/plain",
65
66
  "text/uri-list",
66
67
  "text/html"
67
- ]), De = "application/vnd.react-aria.items+json", ge = "application/octet-stream", Ve = /* @__PURE__ */ new WeakMap(), Bu = /* @__PURE__ */ Symbol();
68
- function rr(e) {
69
- let { id: u } = Ve.get(e) || {};
68
+ ]), De = "application/vnd.react-aria.items+json", ge = "application/octet-stream", Oe = /* @__PURE__ */ new WeakMap(), fu = /* @__PURE__ */ Symbol();
69
+ function tr(e) {
70
+ let { id: u } = Oe.get(e) || {};
70
71
  if (!u) throw new Error("Droppable item outside a droppable collection");
71
72
  return u;
72
73
  }
73
- function nr(e) {
74
- let { ref: u } = Ve.get(e) || {};
74
+ function rr(e) {
75
+ let { ref: u } = Oe.get(e) || {};
75
76
  if (!u) throw new Error("Droppable item outside a droppable collection");
76
77
  return u;
77
78
  }
78
79
  function G(e) {
79
80
  let u = /* @__PURE__ */ new Set();
80
- for (let r of e) for (let t of Object.keys(r)) u.add(t);
81
+ for (let t of e) for (let r of Object.keys(t)) u.add(r);
81
82
  return u;
82
83
  }
83
- function bu(e) {
84
+ function Bu(e) {
84
85
  return e || (e = "virtual"), e === "pointer" && (e = "virtual"), e === "virtual" && typeof window < "u" && "ontouchstart" in window && (e = "touch"), e;
85
86
  }
86
- function je() {
87
- return bu(Rt());
87
+ function Ve() {
88
+ return Bu(jt());
88
89
  }
89
- function xu() {
90
- return bu(Mt());
90
+ function bu() {
91
+ return Bu(Lt());
91
92
  }
92
- function or(e, u) {
93
- let r = /* @__PURE__ */ new Map(), t = !1, n = [];
94
- for (let o of u) {
95
- let a = Object.keys(o);
96
- a.length > 1 && (t = !0);
97
- let l = {};
98
- for (let m of a) {
99
- let g = r.get(m);
100
- g ? t = !0 : (g = [], r.set(m, g));
101
- let c = o[m];
102
- l[m] = c, g.push(c);
93
+ function nr(e, u) {
94
+ let t = /* @__PURE__ */ new Map(), r = !1, o = [];
95
+ for (let a of u) {
96
+ let c = Object.keys(a);
97
+ c.length > 1 && (r = !0);
98
+ let d = {};
99
+ for (let C of c) {
100
+ let g = t.get(C);
101
+ g ? r = !0 : (g = [], t.set(C, g));
102
+ let D = a[C];
103
+ d[C] = D, g.push(D);
103
104
  }
104
- n.push(l);
105
+ o.push(d);
105
106
  }
106
- for (let [o, a] of r) if (tr.has(o)) {
107
- let l = a.join(`
107
+ for (let [a, c] of t) if (ur.has(a)) {
108
+ let d = c.join(`
108
109
  `);
109
- e.items.add(l, o);
110
+ e.items.add(d, a);
110
111
  } else
111
- e.items.add(a[0], o);
112
- if (t) {
113
- let o = JSON.stringify(n);
114
- e.items.add(o, De);
112
+ e.items.add(c[0], a);
113
+ if (r) {
114
+ let a = JSON.stringify(o);
115
+ e.items.add(a, De);
115
116
  }
116
117
  }
117
118
  class le {
118
119
  has(u) {
119
- return this.includesUnknownTypes || u === Bu && this.types.has(ge) ? !0 : typeof u == "string" && this.types.has(u);
120
+ return this.includesUnknownTypes || u === fu && this.types.has(ge) ? !0 : typeof u == "string" && this.types.has(u);
120
121
  }
121
122
  constructor(u) {
122
123
  this.types = /* @__PURE__ */ new Set();
123
- let r = !1;
124
- for (let t of u.items) t.type !== De && (t.kind === "file" && (r = !0), t.type ? this.types.add(t.type) : this.types.add(ge));
125
- this.includesUnknownTypes = !r && u.types.includes("Files");
124
+ let t = !1;
125
+ for (let r of u.items) r.type !== De && (r.kind === "file" && (t = !0), r.type ? this.types.add(r.type) : this.types.add(ge));
126
+ this.includesUnknownTypes = !t && u.types.includes("Files");
126
127
  }
127
128
  }
128
- function ir(e) {
129
+ function or(e) {
129
130
  let u = [];
130
131
  if (!e) return u;
131
- let r = !1;
132
+ let t = !1;
132
133
  if (e.types.includes(De)) try {
133
- let t = e.getData(De), n = JSON.parse(t);
134
- for (let o of n) u.push({
134
+ let r = e.getData(De), o = JSON.parse(r);
135
+ for (let a of o) u.push({
135
136
  kind: "text",
136
- types: new Set(Object.keys(o)),
137
- getText: (a) => Promise.resolve(o[a])
137
+ types: new Set(Object.keys(a)),
138
+ getText: (c) => Promise.resolve(a[c])
138
139
  });
139
- r = !0;
140
+ t = !0;
140
141
  } catch {
141
142
  }
142
- if (!r) {
143
- let t = /* @__PURE__ */ new Map();
144
- for (let n of e.items)
145
- if (n.kind === "string")
146
- t.set(n.type || ge, e.getData(n.type));
147
- else if (n.kind === "file")
148
- if (typeof n.webkitGetAsEntry == "function") {
149
- let o = n.webkitGetAsEntry();
150
- if (!o) continue;
151
- o.isFile ? u.push(Te(n.getAsFile())) : o.isDirectory && u.push(Eu(o));
143
+ if (!t) {
144
+ let r = /* @__PURE__ */ new Map();
145
+ for (let o of e.items)
146
+ if (o.kind === "string")
147
+ r.set(o.type || ge, e.getData(o.type));
148
+ else if (o.kind === "file")
149
+ if (typeof o.webkitGetAsEntry == "function") {
150
+ let a = o.webkitGetAsEntry();
151
+ if (!a) continue;
152
+ a.isFile ? u.push(Te(o.getAsFile())) : a.isDirectory && u.push(Eu(a));
152
153
  } else
153
- u.push(Te(n.getAsFile()));
154
- t.size > 0 && u.push({
154
+ u.push(Te(o.getAsFile()));
155
+ r.size > 0 && u.push({
155
156
  kind: "text",
156
- types: new Set(t.keys()),
157
- getText: (n) => Promise.resolve(t.get(n))
157
+ types: new Set(r.keys()),
158
+ getText: (o) => Promise.resolve(r.get(o))
158
159
  });
159
160
  }
160
161
  return u;
161
162
  }
162
163
  function ar(e) {
163
- return typeof e.text == "function" ? e.text() : new Promise((u, r) => {
164
- let t = new FileReader();
165
- t.onload = () => {
166
- u(t.result);
167
- }, t.onerror = r, t.readAsText(e);
164
+ return typeof e.text == "function" ? e.text() : new Promise((u, t) => {
165
+ let r = new FileReader();
166
+ r.onload = () => {
167
+ u(r.result);
168
+ }, r.onerror = t, r.readAsText(e);
168
169
  });
169
170
  }
170
171
  function Te(e) {
@@ -181,51 +182,51 @@ function Eu(e) {
181
182
  return {
182
183
  kind: "directory",
183
184
  name: e.name,
184
- getEntries: () => lr(e)
185
+ getEntries: () => ir(e)
185
186
  };
186
187
  }
187
- async function* lr(e) {
188
- let u = e.createReader(), r;
188
+ async function* ir(e) {
189
+ let u = e.createReader(), t;
189
190
  do {
190
- r = await new Promise((t, n) => {
191
- u.readEntries(t, n);
191
+ t = await new Promise((r, o) => {
192
+ u.readEntries(r, o);
192
193
  });
193
- for (let t of r)
194
- if (t.isFile) {
195
- let n = await dr(t);
196
- yield Te(n);
197
- } else t.isDirectory && (yield Eu(t));
198
- } while (r.length > 0);
194
+ for (let r of t)
195
+ if (r.isFile) {
196
+ let o = await lr(r);
197
+ yield Te(o);
198
+ } else r.isDirectory && (yield Eu(r));
199
+ } while (t.length > 0);
199
200
  }
200
- function dr(e) {
201
- return new Promise((u, r) => e.file(u, r));
201
+ function lr(e) {
202
+ return new Promise((u, t) => e.file(u, t));
202
203
  }
203
- function Ge(e) {
204
+ function qe(e) {
204
205
  return e.kind === "text";
205
206
  }
206
207
  let z = {
207
208
  draggingKeys: /* @__PURE__ */ new Set()
208
209
  };
209
- function sr(e) {
210
+ function dr(e) {
210
211
  z.draggingCollectionRef = e;
211
212
  }
212
- function cr(e) {
213
+ function sr(e) {
213
214
  z.draggingKeys = e;
214
215
  }
215
- function Z(e) {
216
+ function Y(e) {
216
217
  z.dropCollectionRef = e;
217
218
  }
218
- function Cu() {
219
+ function xu() {
219
220
  z = {
220
221
  draggingKeys: /* @__PURE__ */ new Set()
221
222
  };
222
223
  }
223
- function pr(e) {
224
+ function cr(e) {
224
225
  z = e;
225
226
  }
226
227
  function H(e) {
227
- let { draggingCollectionRef: u, dropCollectionRef: r } = z;
228
- return u?.current != null && u.current === (e?.current || r?.current);
228
+ let { draggingCollectionRef: u, dropCollectionRef: t } = z;
229
+ return u?.current != null && u.current === (e?.current || t?.current);
229
230
  }
230
231
  let pe;
231
232
  function me(e) {
@@ -236,40 +237,40 @@ function Ce(e) {
236
237
  Fe = e;
237
238
  }
238
239
  let Se = /* @__PURE__ */ new Map(), re = /* @__PURE__ */ new Map(), j = null, fe = /* @__PURE__ */ new Set();
239
- function $u(e) {
240
+ function Cu(e) {
240
241
  return Se.set(e.element, e), j?.updateValidDropTargets(), () => {
241
242
  Se.delete(e.element), j?.updateValidDropTargets();
242
243
  };
243
244
  }
244
- function Dr(e) {
245
+ function pr(e) {
245
246
  return re.set(e.element, e), () => {
246
247
  re.delete(e.element);
247
248
  };
248
249
  }
249
- function gr(e, u) {
250
+ function Dr(e, u) {
250
251
  if (j) throw new Error("Cannot begin dragging while already dragging");
251
- j = new xr(e, u), requestAnimationFrame(() => {
252
- j && (j.setup(), xu() === "keyboard" && j.next());
252
+ j = new br(e, u), requestAnimationFrame(() => {
253
+ j && (j.setup(), bu() === "keyboard" && j.next());
253
254
  });
254
- for (let r of fe) r();
255
+ for (let t of fe) t();
255
256
  }
256
- function Le() {
257
- let [e, u] = X(j);
257
+ function je() {
258
+ let [e, u] = Q(j);
258
259
  return L(() => {
259
- let r = () => u(j);
260
- return fe.add(r), () => {
261
- fe.delete(r);
260
+ let t = () => u(j);
261
+ return fe.add(t), () => {
262
+ fe.delete(t);
262
263
  };
263
264
  }, []), e;
264
265
  }
265
- function mr() {
266
+ function gr() {
266
267
  return !!j;
267
268
  }
268
- function fr() {
269
+ function mr() {
269
270
  j = null;
270
271
  for (let e of fe) e();
271
272
  }
272
- const Xe = [
273
+ const Ge = [
273
274
  "pointerdown",
274
275
  "pointermove",
275
276
  "pointerenter",
@@ -289,128 +290,128 @@ const Xe = [
289
290
  "touchend",
290
291
  "focusin",
291
292
  "focusout"
292
- ], Br = [
293
+ ], fr = [
293
294
  "pointerup",
294
295
  "mouseup",
295
296
  "touchend"
296
- ], br = {
297
+ ], Br = {
297
298
  keyboard: "dragStartedKeyboard",
298
299
  touch: "dragStartedTouch",
299
300
  virtual: "dragStartedVirtual"
300
301
  };
301
- class xr {
302
+ class br {
302
303
  setup() {
303
304
  document.addEventListener("keydown", this.onKeyDown, !0), document.addEventListener("keyup", this.onKeyUp, !0), window.addEventListener("focus", this.onFocus, !0), window.addEventListener("blur", this.onBlur, !0), document.addEventListener("click", this.onClick, !0), document.addEventListener("pointerdown", this.onPointerDown, !0);
304
- for (let u of Xe) document.addEventListener(u, this.cancelEvent, !0);
305
- this.mutationObserver = new MutationObserver(() => this.updateValidDropTargets()), this.updateValidDropTargets(), ae(this.stringFormatter.format(br[xu()]));
305
+ for (let u of Ge) document.addEventListener(u, this.cancelEvent, !0);
306
+ this.mutationObserver = new MutationObserver(() => this.updateValidDropTargets()), this.updateValidDropTargets(), ie(this.stringFormatter.format(Br[bu()]));
306
307
  }
307
308
  teardown() {
308
- var u, r, t;
309
+ var u, t, r;
309
310
  document.removeEventListener("keydown", this.onKeyDown, !0), document.removeEventListener("keyup", this.onKeyUp, !0), window.removeEventListener("focus", this.onFocus, !0), window.removeEventListener("blur", this.onBlur, !0), document.removeEventListener("click", this.onClick, !0), document.removeEventListener("pointerdown", this.onPointerDown, !0);
310
- for (let n of Xe) document.removeEventListener(n, this.cancelEvent, !0);
311
- (u = this.mutationObserver) === null || u === void 0 || u.disconnect(), (r = (t = this).restoreAriaHidden) === null || r === void 0 || r.call(t);
311
+ for (let o of Ge) document.removeEventListener(o, this.cancelEvent, !0);
312
+ (u = this.mutationObserver) === null || u === void 0 || u.disconnect(), (t = (r = this).restoreAriaHidden) === null || t === void 0 || t.call(r);
312
313
  }
313
314
  onKeyDown(u) {
314
- var r;
315
+ var t;
315
316
  if (this.cancelEvent(u), u.key === "Escape") {
316
317
  this.cancel();
317
318
  return;
318
319
  }
319
- u.key === "Tab" && !(u.metaKey || u.altKey || u.ctrlKey) && (u.shiftKey ? this.previous() : this.next()), typeof ((r = this.currentDropTarget) === null || r === void 0 ? void 0 : r.onKeyDown) == "function" && this.currentDropTarget.onKeyDown(u, this.dragTarget);
320
+ u.key === "Tab" && !(u.metaKey || u.altKey || u.ctrlKey) && (u.shiftKey ? this.previous() : this.next()), typeof ((t = this.currentDropTarget) === null || t === void 0 ? void 0 : t.onKeyDown) == "function" && this.currentDropTarget.onKeyDown(u, this.dragTarget);
320
321
  }
321
322
  onKeyUp(u) {
322
323
  if (this.cancelEvent(u), u.key === "Enter") {
323
- var r;
324
- u.altKey || !((r = this.getCurrentActivateButton()) === null || r === void 0) && r.contains(u.target) ? this.activate(this.currentDropTarget, this.currentDropItem) : this.drop();
324
+ var t;
325
+ u.altKey || !((t = this.getCurrentActivateButton()) === null || t === void 0) && t.contains(u.target) ? this.activate(this.currentDropTarget, this.currentDropItem) : this.drop();
325
326
  }
326
327
  }
327
328
  getCurrentActivateButton() {
328
- var u, r, t, n, o, a;
329
- return (a = (o = (r = this.currentDropItem) === null || r === void 0 || (u = r.activateButtonRef) === null || u === void 0 ? void 0 : u.current) !== null && o !== void 0 ? o : (n = this.currentDropTarget) === null || n === void 0 || (t = n.activateButtonRef) === null || t === void 0 ? void 0 : t.current) !== null && a !== void 0 ? a : null;
329
+ var u, t, r, o, a, c;
330
+ return (c = (a = (t = this.currentDropItem) === null || t === void 0 || (u = t.activateButtonRef) === null || u === void 0 ? void 0 : u.current) !== null && a !== void 0 ? a : (o = this.currentDropTarget) === null || o === void 0 || (r = o.activateButtonRef) === null || r === void 0 ? void 0 : r.current) !== null && c !== void 0 ? c : null;
330
331
  }
331
332
  onFocus(u) {
332
- let r = this.getCurrentActivateButton();
333
- if (u.target === r) {
333
+ let t = this.getCurrentActivateButton();
334
+ if (u.target === t) {
334
335
  this.cancelEvent(u);
335
336
  return;
336
337
  }
337
338
  if (u.target !== this.dragTarget.element && this.cancelEvent(u), !(u.target instanceof HTMLElement) || u.target === this.dragTarget.element) return;
338
- let t = this.validDropTargets.find((o) => o.element === u.target) || this.validDropTargets.find((o) => o.element.contains(u.target));
339
- if (!t) {
339
+ let r = this.validDropTargets.find((a) => a.element === u.target) || this.validDropTargets.find((a) => a.element.contains(u.target));
340
+ if (!r) {
340
341
  this.currentDropTarget ? this.currentDropTarget.element.focus() : this.dragTarget.element.focus();
341
342
  return;
342
343
  }
343
- let n = re.get(u.target);
344
- t && this.setCurrentDropTarget(t, n);
344
+ let o = re.get(u.target);
345
+ r && this.setCurrentDropTarget(r, o);
345
346
  }
346
347
  onBlur(u) {
347
- let r = this.getCurrentActivateButton();
348
- if (u.relatedTarget === r) {
348
+ let t = this.getCurrentActivateButton();
349
+ if (u.relatedTarget === t) {
349
350
  this.cancelEvent(u);
350
351
  return;
351
352
  }
352
353
  u.target !== this.dragTarget.element && this.cancelEvent(u), (!u.relatedTarget || !(u.relatedTarget instanceof HTMLElement)) && (this.currentDropTarget ? this.currentDropTarget.element.focus() : this.dragTarget.element.focus());
353
354
  }
354
355
  onClick(u) {
355
- if (this.cancelEvent(u), cu(u) || this.isVirtualClick) {
356
- var r, t;
357
- let a = [
356
+ if (this.cancelEvent(u), du(u) || this.isVirtualClick) {
357
+ var t, r;
358
+ let c = [
358
359
  ...re.values()
359
360
  ].find((g) => {
360
- var c, B;
361
- return g.element === u.target || ((B = g.activateButtonRef) === null || B === void 0 || (c = B.current) === null || c === void 0 ? void 0 : c.contains(u.target));
362
- }), l = this.validDropTargets.find((g) => g.element.contains(u.target));
363
- var n;
364
- let m = (n = a == null || (r = a.activateButtonRef) === null || r === void 0 ? void 0 : r.current) !== null && n !== void 0 ? n : l == null || (t = l.activateButtonRef) === null || t === void 0 ? void 0 : t.current;
365
- if (m?.contains(u.target) && l) {
366
- this.activate(l, a);
361
+ var D, x;
362
+ return g.element === u.target || ((x = g.activateButtonRef) === null || x === void 0 || (D = x.current) === null || D === void 0 ? void 0 : D.contains(u.target));
363
+ }), d = this.validDropTargets.find((g) => g.element.contains(u.target));
364
+ var o;
365
+ let C = (o = c == null || (t = c.activateButtonRef) === null || t === void 0 ? void 0 : t.current) !== null && o !== void 0 ? o : d == null || (r = d.activateButtonRef) === null || r === void 0 ? void 0 : r.current;
366
+ if (C?.contains(u.target) && d) {
367
+ this.activate(d, c);
367
368
  return;
368
369
  }
369
370
  if (u.target === this.dragTarget.element) {
370
371
  this.cancel();
371
372
  return;
372
373
  }
373
- l && (this.setCurrentDropTarget(l, a), this.drop(a));
374
+ d && (this.setCurrentDropTarget(d, c), this.drop(c));
374
375
  }
375
376
  }
376
377
  onPointerDown(u) {
377
- this.cancelEvent(u), this.isVirtualClick = pu(u);
378
+ this.cancelEvent(u), this.isVirtualClick = su(u);
378
379
  }
379
380
  cancelEvent(u) {
380
- var r;
381
- (u.type === "focusin" || u.type === "focusout") && (u.target === ((r = this.dragTarget) === null || r === void 0 ? void 0 : r.element) || u.target === this.getCurrentActivateButton()) || (Br.includes(u.type) || u.preventDefault(), u.stopPropagation(), u.stopImmediatePropagation());
381
+ var t;
382
+ (u.type === "focusin" || u.type === "focusout") && (u.target === ((t = this.dragTarget) === null || t === void 0 ? void 0 : t.element) || u.target === this.getCurrentActivateButton()) || (fr.includes(u.type) || u.preventDefault(), u.stopPropagation(), u.stopImmediatePropagation());
382
383
  }
383
384
  updateValidDropTargets() {
384
385
  if (!this.mutationObserver) return;
385
386
  if (this.mutationObserver.disconnect(), this.restoreAriaHidden && this.restoreAriaHidden(), this.validDropTargets = Er(this.dragTarget), this.validDropTargets.length > 0) {
386
- let n = this.findNearestDropTarget();
387
+ let o = this.findNearestDropTarget();
387
388
  this.validDropTargets = [
388
- ...this.validDropTargets.slice(n),
389
- ...this.validDropTargets.slice(0, n)
389
+ ...this.validDropTargets.slice(o),
390
+ ...this.validDropTargets.slice(0, o)
390
391
  ];
391
392
  }
392
393
  this.currentDropTarget && !this.validDropTargets.includes(this.currentDropTarget) && this.setCurrentDropTarget(this.validDropTargets[0]);
393
- let u = G(this.dragTarget.items), r = [
394
+ let u = G(this.dragTarget.items), t = [
394
395
  ...re.values()
395
- ].filter((n) => typeof n.getDropOperation == "function" ? n.getDropOperation(u, this.dragTarget.allowedDropOperations) !== "cancel" : !0), t = this.validDropTargets.filter((n) => !r.some((o) => n.element.contains(o.element)));
396
- this.restoreAriaHidden = Nt([
396
+ ].filter((o) => typeof o.getDropOperation == "function" ? o.getDropOperation(u, this.dragTarget.allowedDropOperations) !== "cancel" : !0), r = this.validDropTargets.filter((o) => !t.some((a) => o.element.contains(a.element)));
397
+ this.restoreAriaHidden = Rt([
397
398
  this.dragTarget.element,
398
- ...r.flatMap((n) => {
399
- var o, a;
400
- return !((o = n.activateButtonRef) === null || o === void 0) && o.current ? [
401
- n.element,
402
- (a = n.activateButtonRef) === null || a === void 0 ? void 0 : a.current
399
+ ...t.flatMap((o) => {
400
+ var a, c;
401
+ return !((a = o.activateButtonRef) === null || a === void 0) && a.current ? [
402
+ o.element,
403
+ (c = o.activateButtonRef) === null || c === void 0 ? void 0 : c.current
403
404
  ] : [
404
- n.element
405
+ o.element
405
406
  ];
406
407
  }),
407
- ...t.flatMap((n) => {
408
- var o, a;
409
- return !((o = n.activateButtonRef) === null || o === void 0) && o.current ? [
410
- n.element,
411
- (a = n.activateButtonRef) === null || a === void 0 ? void 0 : a.current
408
+ ...r.flatMap((o) => {
409
+ var a, c;
410
+ return !((a = o.activateButtonRef) === null || a === void 0) && a.current ? [
411
+ o.element,
412
+ (c = o.activateButtonRef) === null || c === void 0 ? void 0 : c.current
412
413
  ] : [
413
- n.element
414
+ o.element
414
415
  ];
415
416
  })
416
417
  ], {
@@ -449,48 +450,48 @@ class xr {
449
450
  u === 0 ? this.dragTarget.element.closest('[aria-hidden="true"], [inert]') ? this.setCurrentDropTarget(this.validDropTargets[this.validDropTargets.length - 1]) : (this.setCurrentDropTarget(null), this.dragTarget.element.focus()) : this.setCurrentDropTarget(this.validDropTargets[u - 1]);
450
451
  }
451
452
  findNearestDropTarget() {
452
- let u = this.dragTarget.element.getBoundingClientRect(), r = 1 / 0, t = -1;
453
- for (let n = 0; n < this.validDropTargets.length; n++) {
454
- let a = this.validDropTargets[n].element.getBoundingClientRect(), l = a.left - u.left, m = a.top - u.top, g = l * l + m * m;
455
- g < r && (r = g, t = n);
453
+ let u = this.dragTarget.element.getBoundingClientRect(), t = 1 / 0, r = -1;
454
+ for (let o = 0; o < this.validDropTargets.length; o++) {
455
+ let c = this.validDropTargets[o].element.getBoundingClientRect(), d = c.left - u.left, C = c.top - u.top, g = d * d + C * C;
456
+ g < t && (t = g, r = o);
456
457
  }
457
- return t;
458
+ return r;
458
459
  }
459
- setCurrentDropTarget(u, r) {
460
+ setCurrentDropTarget(u, t) {
460
461
  if (u !== this.currentDropTarget) {
461
462
  if (this.currentDropTarget && typeof this.currentDropTarget.onDropExit == "function") {
462
- let t = this.currentDropTarget.element.getBoundingClientRect();
463
+ let r = this.currentDropTarget.element.getBoundingClientRect();
463
464
  this.currentDropTarget.onDropExit({
464
465
  type: "dropexit",
465
- x: t.left + t.width / 2,
466
- y: t.top + t.height / 2
466
+ x: r.left + r.width / 2,
467
+ y: r.top + r.height / 2
467
468
  });
468
469
  }
469
470
  if (this.currentDropTarget = u, u) {
470
471
  if (typeof u.onDropEnter == "function") {
471
- let t = u.element.getBoundingClientRect();
472
+ let r = u.element.getBoundingClientRect();
472
473
  u.onDropEnter({
473
474
  type: "dropenter",
474
- x: t.left + t.width / 2,
475
- y: t.top + t.height / 2
475
+ x: r.left + r.width / 2,
476
+ y: r.top + r.height / 2
476
477
  }, this.dragTarget);
477
478
  }
478
- r || u?.element.focus();
479
+ t || u?.element.focus();
479
480
  }
480
481
  }
481
- if (r != null && r !== this.currentDropItem && (this.currentDropTarget && typeof this.currentDropTarget.onDropTargetEnter == "function" && this.currentDropTarget.onDropTargetEnter(r.target), r.element.focus(), this.currentDropItem = r, !this.initialFocused)) {
482
- let t = r?.element.getAttribute("aria-label");
483
- t && ae(t, "polite"), this.initialFocused = !0;
482
+ if (t != null && t !== this.currentDropItem && (this.currentDropTarget && typeof this.currentDropTarget.onDropTargetEnter == "function" && this.currentDropTarget.onDropTargetEnter(t.target), t.element.focus(), this.currentDropItem = t, !this.initialFocused)) {
483
+ let r = t?.element.getAttribute("aria-label");
484
+ r && ie(r, "polite"), this.initialFocused = !0;
484
485
  }
485
486
  }
486
487
  end() {
487
488
  var u;
488
- if (this.teardown(), fr(), typeof this.dragTarget.onDragEnd == "function") {
489
- let t = (this.currentDropTarget && this.dropOperation !== "cancel" ? this.currentDropTarget : this.dragTarget).element.getBoundingClientRect();
489
+ if (this.teardown(), mr(), typeof this.dragTarget.onDragEnd == "function") {
490
+ let r = (this.currentDropTarget && this.dropOperation !== "cancel" ? this.currentDropTarget : this.dragTarget).element.getBoundingClientRect();
490
491
  this.dragTarget.onDragEnd({
491
492
  type: "dragend",
492
- x: t.x + t.width / 2,
493
- y: t.y + t.height / 2,
493
+ x: r.x + r.width / 2,
494
+ y: r.y + r.height / 2,
494
495
  dropOperation: this.dropOperation || "cancel"
495
496
  });
496
497
  }
@@ -499,7 +500,7 @@ class xr {
499
500
  }))), this.setCurrentDropTarget(null);
500
501
  }
501
502
  cancel() {
502
- this.setCurrentDropTarget(null), this.end(), this.dragTarget.element.closest('[aria-hidden="true"], [inert]') || this.dragTarget.element.focus(), ae(this.stringFormatter.format("dropCanceled"));
503
+ this.setCurrentDropTarget(null), this.end(), this.dragTarget.element.closest('[aria-hidden="true"], [inert]') || this.dragTarget.element.focus(), ie(this.stringFormatter.format("dropCanceled"));
503
504
  }
504
505
  drop(u) {
505
506
  if (!this.currentDropTarget) {
@@ -507,53 +508,53 @@ class xr {
507
508
  return;
508
509
  }
509
510
  if (typeof u?.getDropOperation == "function") {
510
- let t = G(this.dragTarget.items);
511
- this.dropOperation = u.getDropOperation(t, this.dragTarget.allowedDropOperations);
511
+ let r = G(this.dragTarget.items);
512
+ this.dropOperation = u.getDropOperation(r, this.dragTarget.allowedDropOperations);
512
513
  } else if (typeof this.currentDropTarget.getDropOperation == "function") {
513
- let t = G(this.dragTarget.items);
514
- this.dropOperation = this.currentDropTarget.getDropOperation(t, this.dragTarget.allowedDropOperations);
514
+ let r = G(this.dragTarget.items);
515
+ this.dropOperation = this.currentDropTarget.getDropOperation(r, this.dragTarget.allowedDropOperations);
515
516
  } else
516
517
  this.dropOperation = this.dragTarget.allowedDropOperations[0];
517
518
  if (typeof this.currentDropTarget.onDrop == "function") {
518
- let t = this.dragTarget.items.map((o) => ({
519
+ let r = this.dragTarget.items.map((a) => ({
519
520
  kind: "text",
520
- types: new Set(Object.keys(o)),
521
- getText: (a) => Promise.resolve(o[a])
522
- })), n = this.currentDropTarget.element.getBoundingClientRect();
523
- var r;
521
+ types: new Set(Object.keys(a)),
522
+ getText: (c) => Promise.resolve(a[c])
523
+ })), o = this.currentDropTarget.element.getBoundingClientRect();
524
+ var t;
524
525
  this.currentDropTarget.onDrop({
525
526
  type: "drop",
526
- x: n.left + n.width / 2,
527
- y: n.top + n.height / 2,
528
- items: t,
527
+ x: o.left + o.width / 2,
528
+ y: o.top + o.height / 2,
529
+ items: r,
529
530
  dropOperation: this.dropOperation
530
- }, (r = u?.target) !== null && r !== void 0 ? r : null);
531
+ }, (t = u?.target) !== null && t !== void 0 ? t : null);
531
532
  }
532
- this.end(), ae(this.stringFormatter.format("dropComplete"));
533
+ this.end(), ie(this.stringFormatter.format("dropComplete"));
533
534
  }
534
- activate(u, r) {
535
+ activate(u, t) {
535
536
  if (u && typeof u.onDropActivate == "function") {
536
- var t;
537
- let n = (t = r?.target) !== null && t !== void 0 ? t : null, o = u.element.getBoundingClientRect();
537
+ var r;
538
+ let o = (r = t?.target) !== null && r !== void 0 ? r : null, a = u.element.getBoundingClientRect();
538
539
  u.onDropActivate({
539
540
  type: "dropactivate",
540
- x: o.left + o.width / 2,
541
- y: o.top + o.height / 2
542
- }, n);
541
+ x: a.left + a.width / 2,
542
+ y: a.top + a.height / 2
543
+ }, o);
543
544
  }
544
545
  }
545
- constructor(u, r) {
546
- this.validDropTargets = [], this.currentDropTarget = null, this.currentDropItem = null, this.dropOperation = null, this.mutationObserver = null, this.restoreAriaHidden = null, this.isVirtualClick = !1, this.dragTarget = u, this.stringFormatter = r, this.onKeyDown = this.onKeyDown.bind(this), this.onKeyUp = this.onKeyUp.bind(this), this.onFocus = this.onFocus.bind(this), this.onBlur = this.onBlur.bind(this), this.onClick = this.onClick.bind(this), this.onPointerDown = this.onPointerDown.bind(this), this.cancelEvent = this.cancelEvent.bind(this), this.initialFocused = !1;
546
+ constructor(u, t) {
547
+ this.validDropTargets = [], this.currentDropTarget = null, this.currentDropItem = null, this.dropOperation = null, this.mutationObserver = null, this.restoreAriaHidden = null, this.isVirtualClick = !1, this.dragTarget = u, this.stringFormatter = t, this.onKeyDown = this.onKeyDown.bind(this), this.onKeyUp = this.onKeyUp.bind(this), this.onFocus = this.onFocus.bind(this), this.onBlur = this.onBlur.bind(this), this.onClick = this.onClick.bind(this), this.onPointerDown = this.onPointerDown.bind(this), this.cancelEvent = this.cancelEvent.bind(this), this.initialFocused = !1;
547
548
  }
548
549
  }
549
550
  function Er(e) {
550
551
  let u = G(e.items);
551
552
  return [
552
553
  ...Se.values()
553
- ].filter((r) => r.element.closest('[aria-hidden="true"], [inert]') ? !1 : typeof r.getDropOperation == "function" ? r.getDropOperation(u, e.allowedDropOperations) !== "cancel" : !0);
554
+ ].filter((t) => t.element.closest('[aria-hidden="true"], [inert]') ? !1 : typeof t.getDropOperation == "function" ? t.getDropOperation(u, e.allowedDropOperations) !== "cancel" : !0);
554
555
  }
555
- var yu = {};
556
- yu = {
556
+ var $u = {};
557
+ $u = {
557
558
  dragDescriptionKeyboard: "اضغط Enter لبدء السحب.",
558
559
  dragDescriptionKeyboardAlt: "اضغط على Alt + Enter لبدء السحب.",
559
560
  dragDescriptionLongPress: "اضغط باستمرار لبدء السحب.",
@@ -594,8 +595,8 @@ yu = {
594
595
  insertBefore: (e) => `أدخل قبل ${e.itemText}`,
595
596
  insertBetween: (e) => `أدخل بين ${e.beforeItemText} و ${e.afterItemText}`
596
597
  };
597
- var vu = {};
598
- vu = {
598
+ var yu = {};
599
+ yu = {
599
600
  dragDescriptionKeyboard: "Натиснете „Enter“, за да започнете да плъзгате.",
600
601
  dragDescriptionKeyboardAlt: "Натиснете Alt + Enter, за да започнете да плъзгате.",
601
602
  dragDescriptionLongPress: "Натиснете продължително, за да започнете да плъзгате.",
@@ -636,8 +637,8 @@ vu = {
636
637
  insertBefore: (e) => `Вмъкни преди ${e.itemText}`,
637
638
  insertBetween: (e) => `Вмъкни между ${e.beforeItemText} и ${e.afterItemText}`
638
639
  };
639
- var hu = {};
640
- hu = {
640
+ var vu = {};
641
+ vu = {
641
642
  dragDescriptionKeyboard: "Stisknutím klávesy Enter začnete s přetahováním.",
642
643
  dragDescriptionKeyboardAlt: "Stisknutím Alt + Enter zahájíte přetahování.",
643
644
  dragDescriptionLongPress: "Dlouhým stisknutím zahájíte přetahování.",
@@ -679,8 +680,8 @@ hu = {
679
680
  insertBefore: (e) => `Vložit před ${e.itemText}`,
680
681
  insertBetween: (e) => `Vložit mezi ${e.beforeItemText} a ${e.afterItemText}`
681
682
  };
682
- var ku = {};
683
- ku = {
683
+ var hu = {};
684
+ hu = {
684
685
  dragDescriptionKeyboard: "Tryk på Enter for at starte med at trække.",
685
686
  dragDescriptionKeyboardAlt: "Tryk på Alt + Enter for at starte med at trække.",
686
687
  dragDescriptionLongPress: "Tryk længe for at starte med at trække.",
@@ -721,8 +722,8 @@ ku = {
721
722
  insertBefore: (e) => `Indsæt før ${e.itemText}`,
722
723
  insertBetween: (e) => `Indsæt mellem ${e.beforeItemText} og ${e.afterItemText}`
723
724
  };
724
- var Au = {};
725
- Au = {
725
+ var ku = {};
726
+ ku = {
726
727
  dragDescriptionKeyboard: "Drücken Sie die Eingabetaste, um den Ziehvorgang zu starten.",
727
728
  dragDescriptionKeyboardAlt: "Alt + Eingabe drücken, um den Ziehvorgang zu starten.",
728
729
  dragDescriptionLongPress: "Lang drücken, um mit dem Ziehen zu beginnen.",
@@ -763,8 +764,8 @@ Au = {
763
764
  insertBefore: (e) => `Vor ${e.itemText} einfügen`,
764
765
  insertBetween: (e) => `Zwischen ${e.beforeItemText} und ${e.afterItemText} einfügen`
765
766
  };
766
- var Tu = {};
767
- Tu = {
767
+ var Au = {};
768
+ Au = {
768
769
  dragDescriptionKeyboard: "Πατήστε Enter για έναρξη της μεταφοράς.",
769
770
  dragDescriptionKeyboardAlt: "Πατήστε Alt + Enter για έναρξη της μεταφοράς.",
770
771
  dragDescriptionLongPress: "Πατήστε παρατεταμένα για να ξεκινήσετε τη μεταφορά.",
@@ -805,8 +806,8 @@ Tu = {
805
806
  insertBefore: (e) => `Εισαγωγή πριν από ${e.itemText}`,
806
807
  insertBetween: (e) => `Εισαγωγή μεταξύ ${e.beforeItemText} και ${e.afterItemText}`
807
808
  };
808
- var Fu = {};
809
- Fu = {
809
+ var Tu = {};
810
+ Tu = {
810
811
  dragItem: (e) => `Drag ${e.itemText}`,
811
812
  dragSelectedItems: (e, u) => `Drag ${u.plural(e.count, {
812
813
  one: () => `${u.number(e.count)} selected item`,
@@ -847,8 +848,8 @@ Fu = {
847
848
  insertBetween: (e) => `Insert between ${e.beforeItemText} and ${e.afterItemText}`,
848
849
  insertAfter: (e) => `Insert after ${e.itemText}`
849
850
  };
850
- var Su = {};
851
- Su = {
851
+ var Fu = {};
852
+ Fu = {
852
853
  dragDescriptionKeyboard: "Pulse Intro para empezar a arrastrar.",
853
854
  dragDescriptionKeyboardAlt: "Pulse Intro para empezar a arrastrar.",
854
855
  dragDescriptionLongPress: "Mantenga pulsado para comenzar a arrastrar.",
@@ -889,8 +890,8 @@ Su = {
889
890
  insertBefore: (e) => `Insertar antes de ${e.itemText}`,
890
891
  insertBetween: (e) => `Insertar entre ${e.beforeItemText} y ${e.afterItemText}`
891
892
  };
892
- var Ku = {};
893
- Ku = {
893
+ var Su = {};
894
+ Su = {
894
895
  dragDescriptionKeyboard: "Lohistamise alustamiseks vajutage klahvi Enter.",
895
896
  dragDescriptionKeyboardAlt: "Lohistamise alustamiseks vajutage klahvikombinatsiooni Alt + Enter.",
896
897
  dragDescriptionLongPress: "Vajutage pikalt lohistamise alustamiseks.",
@@ -931,8 +932,8 @@ Ku = {
931
932
  insertBefore: (e) => `Sisesta ${e.itemText} ette`,
932
933
  insertBetween: (e) => `Sisesta ${e.beforeItemText} ja ${e.afterItemText} vahele`
933
934
  };
934
- var Pu = {};
935
- Pu = {
935
+ var Ku = {};
936
+ Ku = {
936
937
  dragDescriptionKeyboard: "Aloita vetäminen painamalla Enter-näppäintä.",
937
938
  dragDescriptionKeyboardAlt: "Aloita vetäminen painamalla Alt + Enter -näppäinyhdistelmää.",
938
939
  dragDescriptionLongPress: "Aloita vetäminen pitämällä painettuna.",
@@ -973,8 +974,8 @@ Pu = {
973
974
  insertBefore: (e) => `Lisää ennen kohdetta ${e.itemText}`,
974
975
  insertBetween: (e) => `Lisää kohteiden ${e.beforeItemText} ja ${e.afterItemText} väliin`
975
976
  };
976
- var Iu = {};
977
- Iu = {
977
+ var Pu = {};
978
+ Pu = {
978
979
  dragDescriptionKeyboard: "Appuyez sur Entrée pour commencer le déplacement.",
979
980
  dragDescriptionKeyboardAlt: "Appuyez sur Alt + Entrée pour commencer à faire glisser.",
980
981
  dragDescriptionLongPress: "Appuyez de manière prolongée pour commencer à faire glisser.",
@@ -1015,8 +1016,8 @@ Iu = {
1015
1016
  insertBefore: (e) => `Insérer avant ${e.itemText}`,
1016
1017
  insertBetween: (e) => `Insérer entre ${e.beforeItemText} et ${e.afterItemText}`
1017
1018
  };
1018
- var zu = {};
1019
- zu = {
1019
+ var Iu = {};
1020
+ Iu = {
1020
1021
  dragDescriptionKeyboard: "הקש על Enter כדי להתחיל לגרור.",
1021
1022
  dragDescriptionKeyboardAlt: "הקש Alt + Enter כדי להתחיל לגרור.",
1022
1023
  dragDescriptionLongPress: "לחץ לחיצה ארוכה כדי להתחיל לגרור.",
@@ -1057,8 +1058,8 @@ zu = {
1057
1058
  insertBefore: (e) => `הוסף לפני ${e.itemText}`,
1058
1059
  insertBetween: (e) => `הוסף בין ${e.beforeItemText} לבין ${e.afterItemText}`
1059
1060
  };
1060
- var wu = {};
1061
- wu = {
1061
+ var zu = {};
1062
+ zu = {
1062
1063
  dragDescriptionKeyboard: "Pritisnite Enter da biste počeli povlačiti.",
1063
1064
  dragDescriptionKeyboardAlt: "Pritisnite Alt + Enter za početak povlačenja.",
1064
1065
  dragDescriptionLongPress: "Dugo pritisnite za početak povlačenja.",
@@ -1099,8 +1100,8 @@ wu = {
1099
1100
  insertBefore: (e) => `Ispustite ispred stavke ${e.itemText}`,
1100
1101
  insertBetween: (e) => `Umetnite između stavki ${e.beforeItemText} i ${e.afterItemText}`
1101
1102
  };
1102
- var Ou = {};
1103
- Ou = {
1103
+ var wu = {};
1104
+ wu = {
1104
1105
  dragDescriptionKeyboard: "Nyomja le az Enter billentyűt a húzás megkezdéséhez.",
1105
1106
  dragDescriptionKeyboardAlt: "Nyomja le az Alt + Enter billentyűket a húzás megkezdéséhez.",
1106
1107
  dragDescriptionLongPress: "Hosszan nyomja meg a húzás elindításához.",
@@ -1141,8 +1142,8 @@ Ou = {
1141
1142
  insertBefore: (e) => `Beszúrás ${e.itemText} elé`,
1142
1143
  insertBetween: (e) => `Beszúrás ${e.beforeItemText} és ${e.afterItemText} közé`
1143
1144
  };
1144
- var Vu = {};
1145
- Vu = {
1145
+ var Ou = {};
1146
+ Ou = {
1146
1147
  dragDescriptionKeyboard: "Premi Invio per iniziare a trascinare.",
1147
1148
  dragDescriptionKeyboardAlt: "Premi Alt + Invio per iniziare a trascinare.",
1148
1149
  dragDescriptionLongPress: "Premi a lungo per iniziare a trascinare.",
@@ -1183,8 +1184,8 @@ Vu = {
1183
1184
  insertBefore: (e) => `Inserisci prima di ${e.itemText}`,
1184
1185
  insertBetween: (e) => `Inserisci tra ${e.beforeItemText} e ${e.afterItemText}`
1185
1186
  };
1186
- var ju = {};
1187
- ju = {
1187
+ var Vu = {};
1188
+ Vu = {
1188
1189
  dragDescriptionKeyboard: "Enter キーを押してドラッグを開始してください。",
1189
1190
  dragDescriptionKeyboardAlt: "Alt+Enter キーを押してドラッグを開始します。",
1190
1191
  dragDescriptionLongPress: "長押ししてドラッグを開始します。",
@@ -1225,8 +1226,8 @@ ju = {
1225
1226
  insertBefore: (e) => `${e.itemText} の前に挿入`,
1226
1227
  insertBetween: (e) => `${e.beforeItemText} と ${e.afterItemText} の間に挿入`
1227
1228
  };
1228
- var Lu = {};
1229
- Lu = {
1229
+ var ju = {};
1230
+ ju = {
1230
1231
  dragDescriptionKeyboard: "드래그를 시작하려면 Enter를 누르세요.",
1231
1232
  dragDescriptionKeyboardAlt: "드래그를 시작하려면 Alt + Enter를 누르십시오.",
1232
1233
  dragDescriptionLongPress: "드래그를 시작하려면 길게 누르십시오.",
@@ -1267,8 +1268,8 @@ Lu = {
1267
1268
  insertBefore: (e) => `${e.itemText} 이전에 삽입`,
1268
1269
  insertBetween: (e) => `${e.beforeItemText} 및 ${e.afterItemText} 사이에 삽입`
1269
1270
  };
1270
- var Ru = {};
1271
- Ru = {
1271
+ var Lu = {};
1272
+ Lu = {
1272
1273
  dragDescriptionKeyboard: "Paspauskite „Enter“, kad pradėtumėte vilkti.",
1273
1274
  dragDescriptionKeyboardAlt: "Paspauskite „Alt + Enter“, kad pradėtumėte vilkti.",
1274
1275
  dragDescriptionLongPress: "Palaikykite nuspaudę, kad pradėtumėte vilkti.",
@@ -1309,8 +1310,8 @@ Ru = {
1309
1310
  insertBefore: (e) => `Įterpti prieš ${e.itemText}`,
1310
1311
  insertBetween: (e) => `Įterpti tarp ${e.beforeItemText} ir ${e.afterItemText}`
1311
1312
  };
1312
- var Mu = {};
1313
- Mu = {
1313
+ var Ru = {};
1314
+ Ru = {
1314
1315
  dragDescriptionKeyboard: "Nospiediet Enter, lai sāktu vilkšanu.",
1315
1316
  dragDescriptionKeyboardAlt: "Nospiediet taustiņu kombināciju Alt+Enter, lai sāktu vilkšanu.",
1316
1317
  dragDescriptionLongPress: "Turiet nospiestu, lai sāktu vilkšanu.",
@@ -1351,8 +1352,8 @@ Mu = {
1351
1352
  insertBefore: (e) => `Ievietojiet pirms ${e.itemText}`,
1352
1353
  insertBetween: (e) => `Ievietojiet starp ${e.beforeItemText} un ${e.afterItemText}`
1353
1354
  };
1354
- var Nu = {};
1355
- Nu = {
1355
+ var Mu = {};
1356
+ Mu = {
1356
1357
  dragDescriptionKeyboard: "Trykk på Enter for å begynne å dra.",
1357
1358
  dragDescriptionKeyboardAlt: "Trykk på Alt + Enter for å begynne å dra.",
1358
1359
  dragDescriptionLongPress: "Trykk lenge for å begynne å dra.",
@@ -1393,8 +1394,8 @@ Nu = {
1393
1394
  insertBefore: (e) => `Sett inn før ${e.itemText}`,
1394
1395
  insertBetween: (e) => `Sett inn mellom ${e.beforeItemText} og ${e.afterItemText}`
1395
1396
  };
1396
- var Hu = {};
1397
- Hu = {
1397
+ var Nu = {};
1398
+ Nu = {
1398
1399
  dragDescriptionKeyboard: "Druk op Enter om te slepen.",
1399
1400
  dragDescriptionKeyboardAlt: "Druk op Alt + Enter om te slepen.",
1400
1401
  dragDescriptionLongPress: "Houd lang ingedrukt om te slepen.",
@@ -1435,8 +1436,8 @@ Hu = {
1435
1436
  insertBefore: (e) => `Plaatsen vóór ${e.itemText}`,
1436
1437
  insertBetween: (e) => `Plaatsen tussen ${e.beforeItemText} en ${e.afterItemText}`
1437
1438
  };
1438
- var Uu = {};
1439
- Uu = {
1439
+ var Hu = {};
1440
+ Hu = {
1440
1441
  dragDescriptionKeyboard: "Naciśnij Enter, aby rozpocząć przeciąganie.",
1441
1442
  dragDescriptionKeyboardAlt: "Naciśnij Alt + Enter, aby rozpocząć przeciąganie.",
1442
1443
  dragDescriptionLongPress: "Naciśnij i przytrzymaj, aby rozpocząć przeciąganie.",
@@ -1477,8 +1478,8 @@ Uu = {
1477
1478
  insertBefore: (e) => `Umieść przed ${e.itemText}`,
1478
1479
  insertBetween: (e) => `Umieść między ${e.beforeItemText} i ${e.afterItemText}`
1479
1480
  };
1480
- var qu = {};
1481
- qu = {
1481
+ var Uu = {};
1482
+ Uu = {
1482
1483
  dragDescriptionKeyboard: "Pressione Enter para começar a arrastar.",
1483
1484
  dragDescriptionKeyboardAlt: "Pressione Alt + Enter para começar a arrastar.",
1484
1485
  dragDescriptionLongPress: "Pressione e segure para começar a arrastar.",
@@ -1519,8 +1520,8 @@ qu = {
1519
1520
  insertBefore: (e) => `Inserir antes de ${e.itemText}`,
1520
1521
  insertBetween: (e) => `Inserir entre ${e.beforeItemText} e ${e.afterItemText}`
1521
1522
  };
1522
- var Gu = {};
1523
- Gu = {
1523
+ var qu = {};
1524
+ qu = {
1524
1525
  dragDescriptionKeyboard: "Prima Enter para iniciar o arrasto.",
1525
1526
  dragDescriptionKeyboardAlt: "Prima Alt + Enter para iniciar o arrasto.",
1526
1527
  dragDescriptionLongPress: "Prima longamente para começar a arrastar.",
@@ -1561,8 +1562,8 @@ Gu = {
1561
1562
  insertBefore: (e) => `Inserir antes de ${e.itemText}`,
1562
1563
  insertBetween: (e) => `Inserir entre ${e.beforeItemText} e ${e.afterItemText}`
1563
1564
  };
1564
- var Xu = {};
1565
- Xu = {
1565
+ var Gu = {};
1566
+ Gu = {
1566
1567
  dragDescriptionKeyboard: "Apăsați pe Enter pentru a începe glisarea.",
1567
1568
  dragDescriptionKeyboardAlt: "Apăsați pe Alt + Enter pentru a începe glisarea.",
1568
1569
  dragDescriptionLongPress: "Apăsați lung pentru a începe glisarea.",
@@ -1603,8 +1604,8 @@ Xu = {
1603
1604
  insertBefore: (e) => `Inserați înainte de ${e.itemText}`,
1604
1605
  insertBetween: (e) => `Inserați între ${e.beforeItemText} și ${e.afterItemText}`
1605
1606
  };
1606
- var Yu = {};
1607
- Yu = {
1607
+ var Xu = {};
1608
+ Xu = {
1608
1609
  dragDescriptionKeyboard: "Нажмите клавишу Enter для начала перетаскивания.",
1609
1610
  dragDescriptionKeyboardAlt: "Нажмите Alt + Enter, чтобы начать перетаскивать.",
1610
1611
  dragDescriptionLongPress: "Нажмите и удерживайте, чтобы начать перетаскивать.",
@@ -1645,8 +1646,8 @@ Yu = {
1645
1646
  insertBefore: (e) => `Вставить перед ${e.itemText}`,
1646
1647
  insertBetween: (e) => `Вставить между ${e.beforeItemText} и ${e.afterItemText}`
1647
1648
  };
1648
- var Zu = {};
1649
- Zu = {
1649
+ var Yu = {};
1650
+ Yu = {
1650
1651
  dragDescriptionKeyboard: "Stlačením klávesu Enter začnete presúvanie.",
1651
1652
  dragDescriptionKeyboardAlt: "Stlačením klávesov Alt + Enter začnete presúvanie.",
1652
1653
  dragDescriptionLongPress: "Dlhým stlačením začnete presúvanie.",
@@ -1687,8 +1688,8 @@ Zu = {
1687
1688
  insertBefore: (e) => `Vložiť pred položku ${e.itemText}`,
1688
1689
  insertBetween: (e) => `Vložiť medzi položky ${e.beforeItemText} a ${e.afterItemText}`
1689
1690
  };
1690
- var Ju = {};
1691
- Ju = {
1691
+ var Zu = {};
1692
+ Zu = {
1692
1693
  dragDescriptionKeyboard: "Pritisnite tipko Enter za začetek vlečenja.",
1693
1694
  dragDescriptionKeyboardAlt: "Pritisnite tipki Alt + Enter za začetek vlečenja.",
1694
1695
  dragDescriptionLongPress: "Pritisnite in zadržite za začetek vlečenja.",
@@ -1729,8 +1730,8 @@ Ju = {
1729
1730
  insertBefore: (e) => `Vstavi pred ${e.itemText}`,
1730
1731
  insertBetween: (e) => `Vstavi med ${e.beforeItemText} in ${e.afterItemText}`
1731
1732
  };
1732
- var Wu = {};
1733
- Wu = {
1733
+ var Ju = {};
1734
+ Ju = {
1734
1735
  dragDescriptionKeyboard: "Pritisnite Enter da biste započeli prevlačenje.",
1735
1736
  dragDescriptionKeyboardAlt: "Pritisnite Alt + Enter da biste započeli prevlačenje.",
1736
1737
  dragDescriptionLongPress: "Pritisnite dugo da biste započeli prevlačenje.",
@@ -1771,8 +1772,8 @@ Wu = {
1771
1772
  insertBefore: (e) => `Umetnite ispred ${e.itemText}`,
1772
1773
  insertBetween: (e) => `Umetnite između ${e.beforeItemText} i ${e.afterItemText}`
1773
1774
  };
1774
- var Qu = {};
1775
- Qu = {
1775
+ var Wu = {};
1776
+ Wu = {
1776
1777
  dragDescriptionKeyboard: "Tryck på enter för att börja dra.",
1777
1778
  dragDescriptionKeyboardAlt: "Tryck på Alt + Retur för att börja dra.",
1778
1779
  dragDescriptionLongPress: "Tryck länge för att börja dra.",
@@ -1813,8 +1814,8 @@ Qu = {
1813
1814
  insertBefore: (e) => `Infoga före ${e.itemText}`,
1814
1815
  insertBetween: (e) => `Infoga mellan ${e.beforeItemText} och ${e.afterItemText}`
1815
1816
  };
1816
- var _u = {};
1817
- _u = {
1817
+ var Qu = {};
1818
+ Qu = {
1818
1819
  dragDescriptionKeyboard: "Sürüklemeyi başlatmak için Enter'a basın.",
1819
1820
  dragDescriptionKeyboardAlt: "Sürüklemeyi başlatmak için Alt + Enter'a basın.",
1820
1821
  dragDescriptionLongPress: "Sürüklemeye başlamak için uzun basın.",
@@ -1855,8 +1856,8 @@ _u = {
1855
1856
  insertBefore: (e) => `${e.itemText}’den önce gir`,
1856
1857
  insertBetween: (e) => `${e.beforeItemText} ve ${e.afterItemText} arasına gir`
1857
1858
  };
1858
- var et = {};
1859
- et = {
1859
+ var _u = {};
1860
+ _u = {
1860
1861
  dragDescriptionKeyboard: "Натисніть Enter, щоб почати перетягування.",
1861
1862
  dragDescriptionKeyboardAlt: "Натисніть Alt + Enter, щоб почати перетягування.",
1862
1863
  dragDescriptionLongPress: "Натисніть і утримуйте, щоб почати перетягування.",
@@ -1897,8 +1898,8 @@ et = {
1897
1898
  insertBefore: (e) => `Вставити перед ${e.itemText}`,
1898
1899
  insertBetween: (e) => `Вставити між ${e.beforeItemText} і ${e.afterItemText}`
1899
1900
  };
1900
- var ut = {};
1901
- ut = {
1901
+ var et = {};
1902
+ et = {
1902
1903
  dragDescriptionKeyboard: "按 Enter 开始拖动。",
1903
1904
  dragDescriptionKeyboardAlt: "按 Alt + Enter 开始拖动。",
1904
1905
  dragDescriptionLongPress: "长按以开始拖动。",
@@ -1939,8 +1940,8 @@ ut = {
1939
1940
  insertBefore: (e) => `插入到 ${e.itemText} 之前`,
1940
1941
  insertBetween: (e) => `插入到 ${e.beforeItemText} 和 ${e.afterItemText} 之间`
1941
1942
  };
1942
- var tt = {};
1943
- tt = {
1943
+ var ut = {};
1944
+ ut = {
1944
1945
  dragDescriptionKeyboard: "按 Enter 鍵以開始拖曳。",
1945
1946
  dragDescriptionKeyboardAlt: "按 Alt+Enter 鍵以開始拖曳。",
1946
1947
  dragDescriptionLongPress: "長按以開始拖曳。",
@@ -1983,45 +1984,45 @@ tt = {
1983
1984
  };
1984
1985
  var oe = {};
1985
1986
  oe = {
1986
- "ar-AE": yu,
1987
- "bg-BG": vu,
1988
- "cs-CZ": hu,
1989
- "da-DK": ku,
1990
- "de-DE": Au,
1991
- "el-GR": Tu,
1992
- "en-US": Fu,
1993
- "es-ES": Su,
1994
- "et-EE": Ku,
1995
- "fi-FI": Pu,
1996
- "fr-FR": Iu,
1997
- "he-IL": zu,
1998
- "hr-HR": wu,
1999
- "hu-HU": Ou,
2000
- "it-IT": Vu,
2001
- "ja-JP": ju,
2002
- "ko-KR": Lu,
2003
- "lt-LT": Ru,
2004
- "lv-LV": Mu,
2005
- "nb-NO": Nu,
2006
- "nl-NL": Hu,
2007
- "pl-PL": Uu,
2008
- "pt-BR": qu,
2009
- "pt-PT": Gu,
2010
- "ro-RO": Xu,
2011
- "ru-RU": Yu,
2012
- "sk-SK": Zu,
2013
- "sl-SI": Ju,
2014
- "sr-SP": Wu,
2015
- "sv-SE": Qu,
2016
- "tr-TR": _u,
2017
- "uk-UA": et,
2018
- "zh-CN": ut,
2019
- "zh-TW": tt
1987
+ "ar-AE": $u,
1988
+ "bg-BG": yu,
1989
+ "cs-CZ": vu,
1990
+ "da-DK": hu,
1991
+ "de-DE": ku,
1992
+ "el-GR": Au,
1993
+ "en-US": Tu,
1994
+ "es-ES": Fu,
1995
+ "et-EE": Su,
1996
+ "fi-FI": Ku,
1997
+ "fr-FR": Pu,
1998
+ "he-IL": Iu,
1999
+ "hr-HR": zu,
2000
+ "hu-HU": wu,
2001
+ "it-IT": Ou,
2002
+ "ja-JP": Vu,
2003
+ "ko-KR": ju,
2004
+ "lt-LT": Lu,
2005
+ "lv-LV": Ru,
2006
+ "nb-NO": Mu,
2007
+ "nl-NL": Nu,
2008
+ "pl-PL": Hu,
2009
+ "pt-BR": Uu,
2010
+ "pt-PT": qu,
2011
+ "ro-RO": Gu,
2012
+ "ru-RU": Xu,
2013
+ "sk-SK": Yu,
2014
+ "sl-SI": Zu,
2015
+ "sr-SP": Ju,
2016
+ "sv-SE": Wu,
2017
+ "tr-TR": Qu,
2018
+ "uk-UA": _u,
2019
+ "zh-CN": et,
2020
+ "zh-TW": ut
2020
2021
  };
2021
- function Cr(e) {
2022
+ function xr(e) {
2022
2023
  return e && e.__esModule ? e.default : e;
2023
2024
  }
2024
- const Ye = {
2025
+ const Xe = {
2025
2026
  keyboard: {
2026
2027
  start: "dragDescriptionKeyboard",
2027
2028
  end: "endDragKeyboard"
@@ -2035,29 +2036,29 @@ const Ye = {
2035
2036
  end: "endDragVirtual"
2036
2037
  }
2037
2038
  };
2038
- function $r(e) {
2039
- let { hasDragButton: u, isDisabled: r } = e, t = ne(Cr(oe), "@react-aria/dnd"), n = S({
2039
+ function Cr(e) {
2040
+ let { hasDragButton: u, isDisabled: t } = e, r = ne(xr(oe), "@react-aria/dnd"), o = S({
2040
2041
  options: e,
2041
2042
  x: 0,
2042
2043
  y: 0
2043
2044
  }).current;
2044
- n.options = e;
2045
- let o = S(null), [a, l] = X(!1), m = (s) => {
2046
- o.current = s, l(!!s);
2047
- }, { addGlobalListener: g, removeAllGlobalListeners: c } = Zt(), B = S(null), p = (s) => {
2048
- var x, $, h;
2049
- if (s.defaultPrevented) return;
2050
- if (s.stopPropagation(), B.current === "virtual") {
2051
- s.preventDefault(), D(s.target), B.current = null;
2045
+ o.options = e;
2046
+ let a = S(null), [c, d] = Q(!1), C = (l) => {
2047
+ a.current = l, d(!!l);
2048
+ }, { addGlobalListener: g, removeAllGlobalListeners: D } = Xt(), x = S(null), s = (l) => {
2049
+ var B, $, h;
2050
+ if (l.defaultPrevented) return;
2051
+ if (l.stopPropagation(), x.current === "virtual") {
2052
+ l.preventDefault(), p(l.target), x.current = null;
2052
2053
  return;
2053
2054
  }
2054
2055
  typeof e.onDragStart == "function" && e.onDragStart({
2055
2056
  type: "dragstart",
2056
- x: s.clientX,
2057
- y: s.clientY
2057
+ x: l.clientX,
2058
+ y: l.clientY
2058
2059
  });
2059
2060
  let k = e.getItems();
2060
- (x = ($ = s.dataTransfer).clearData) === null || x === void 0 || x.call($), or(s.dataTransfer, k);
2061
+ (B = ($ = l.dataTransfer).clearData) === null || B === void 0 || B.call($), nr(l.dataTransfer, k);
2061
2062
  let T = I.all;
2062
2063
  if (typeof e.getAllowedDropOperations == "function") {
2063
2064
  let v = e.getAllowedDropOperations();
@@ -2065,102 +2066,102 @@ function $r(e) {
2065
2066
  for (let F of v) T |= I[F] || I.none;
2066
2067
  }
2067
2068
  Ce(T);
2068
- let K = mu[T] || "none";
2069
- s.dataTransfer.effectAllowed = K === "cancel" ? "none" : K, typeof ((h = e.preview) === null || h === void 0 ? void 0 : h.current) == "function" && e.preview.current(k, (v, F, P) => {
2069
+ let K = gu[T] || "none";
2070
+ l.dataTransfer.effectAllowed = K === "cancel" ? "none" : K, typeof ((h = e.preview) === null || h === void 0 ? void 0 : h.current) == "function" && e.preview.current(k, (v, F, P) => {
2070
2071
  if (!v) return;
2071
- let V = v.getBoundingClientRect(), R = s.currentTarget.getBoundingClientRect(), M = s.clientX - R.x, U = s.clientY - R.y;
2072
+ let V = v.getBoundingClientRect(), R = l.currentTarget.getBoundingClientRect(), M = l.clientX - R.x, U = l.clientY - R.y;
2072
2073
  (M > V.width || U > V.height) && (M = V.width / 2, U = V.height / 2);
2073
2074
  let N = M, q = U;
2074
2075
  typeof F == "number" && typeof P == "number" && (N = F, q = P), N = Math.max(0, Math.min(N, V.width)), q = Math.max(0, Math.min(q, V.height));
2075
2076
  let be = 2 * Math.round(V.height / 2);
2076
- v.style.height = `${be}px`, s.dataTransfer.setDragImage(v, N, q);
2077
+ v.style.height = `${be}px`, l.dataTransfer.setDragImage(v, N, q);
2077
2078
  }), g(window, "drop", (v) => {
2078
2079
  v.preventDefault(), v.stopPropagation(), console.warn("Drags initiated from the React Aria useDrag hook may only be dropped on a target created with useDrop. This ensures that a keyboard and screen reader accessible alternative is available.");
2079
2080
  }, {
2080
2081
  once: !0
2081
- }), n.x = s.clientX, n.y = s.clientY;
2082
- let O = s.target;
2082
+ }), o.x = l.clientX, o.y = l.clientY;
2083
+ let O = l.target;
2083
2084
  requestAnimationFrame(() => {
2084
- m(O);
2085
+ C(O);
2085
2086
  });
2086
- }, C = (s) => {
2087
- s.stopPropagation(), !(s.clientX === n.x && s.clientY === n.y) && (typeof e.onDragMove == "function" && e.onDragMove({
2087
+ }, E = (l) => {
2088
+ l.stopPropagation(), !(l.clientX === o.x && l.clientY === o.y) && (typeof e.onDragMove == "function" && e.onDragMove({
2088
2089
  type: "dragmove",
2089
- x: s.clientX,
2090
- y: s.clientY
2091
- }), n.x = s.clientX, n.y = s.clientY);
2092
- }, f = (s) => {
2093
- if (s.stopPropagation(), typeof e.onDragEnd == "function") {
2094
- let x = {
2090
+ x: l.clientX,
2091
+ y: l.clientY
2092
+ }), o.x = l.clientX, o.y = l.clientY);
2093
+ }, m = (l) => {
2094
+ if (l.stopPropagation(), typeof e.onDragEnd == "function") {
2095
+ let B = {
2095
2096
  type: "dragend",
2096
- x: s.clientX,
2097
- y: s.clientY,
2098
- dropOperation: te[s.dataTransfer.dropEffect]
2097
+ x: l.clientX,
2098
+ y: l.clientY,
2099
+ dropOperation: te[l.dataTransfer.dropEffect]
2099
2100
  };
2100
- pe && (x.dropOperation = te[pe]), e.onDragEnd(x);
2101
+ pe && (B.dropOperation = te[pe]), e.onDragEnd(B);
2101
2102
  }
2102
- m(null), c(), Ce(I.none), me(void 0);
2103
+ C(null), D(), Ce(I.none), me(void 0);
2103
2104
  };
2104
2105
  L(() => () => {
2105
- if (o.current && (!o.current.isConnected || parseInt(ct, 10) < 17)) {
2106
- if (typeof n.options.onDragEnd == "function") {
2107
- let s = {
2106
+ if (a.current && (!a.current.isConnected || parseInt(st, 10) < 17)) {
2107
+ if (typeof o.options.onDragEnd == "function") {
2108
+ let l = {
2108
2109
  type: "dragend",
2109
2110
  x: 0,
2110
2111
  y: 0,
2111
2112
  dropOperation: te[pe || "none"]
2112
2113
  };
2113
- n.options.onDragEnd(s);
2114
+ o.options.onDragEnd(l);
2114
2115
  }
2115
- m(null), Ce(I.none), me(void 0);
2116
+ C(null), Ce(I.none), me(void 0);
2116
2117
  }
2117
2118
  }, [
2118
- n
2119
+ o
2119
2120
  ]);
2120
- let b = (s) => {
2121
- s.pointerType !== "keyboard" && s.pointerType !== "virtual" || D(s.target);
2122
- }, D = (s) => {
2123
- if (typeof n.options.onDragStart == "function") {
2124
- let x = s.getBoundingClientRect();
2125
- n.options.onDragStart({
2121
+ let f = (l) => {
2122
+ l.pointerType !== "keyboard" && l.pointerType !== "virtual" || p(l.target);
2123
+ }, p = (l) => {
2124
+ if (typeof o.options.onDragStart == "function") {
2125
+ let B = l.getBoundingClientRect();
2126
+ o.options.onDragStart({
2126
2127
  type: "dragstart",
2127
- x: x.x + x.width / 2,
2128
- y: x.y + x.height / 2
2128
+ x: B.x + B.width / 2,
2129
+ y: B.y + B.height / 2
2129
2130
  });
2130
2131
  }
2131
- gr({
2132
- element: s,
2133
- items: n.options.getItems(),
2134
- allowedDropOperations: typeof n.options.getAllowedDropOperations == "function" ? n.options.getAllowedDropOperations() : [
2132
+ Dr({
2133
+ element: l,
2134
+ items: o.options.getItems(),
2135
+ allowedDropOperations: typeof o.options.getAllowedDropOperations == "function" ? o.options.getAllowedDropOperations() : [
2135
2136
  "move",
2136
2137
  "copy",
2137
2138
  "link"
2138
2139
  ],
2139
- onDragEnd(x) {
2140
- m(null), typeof n.options.onDragEnd == "function" && n.options.onDragEnd(x);
2140
+ onDragEnd(B) {
2141
+ C(null), typeof o.options.onDragEnd == "function" && o.options.onDragEnd(B);
2141
2142
  }
2142
- }, t), m(s);
2143
- }, E = je(), y = a ? Ye[E].end : Ye[E].start, i = Oe(t.format(y)), d = {};
2144
- return u || (d = {
2145
- ...i,
2146
- onPointerDown(s) {
2147
- if (B.current = pu(s.nativeEvent) ? "virtual" : s.pointerType, s.width < 1 && s.height < 1)
2148
- B.current = "virtual";
2143
+ }, r), C(l);
2144
+ }, b = Ve(), y = c ? Xe[b].end : Xe[b].start, n = we(r.format(y)), i = {};
2145
+ return u || (i = {
2146
+ ...n,
2147
+ onPointerDown(l) {
2148
+ if (x.current = su(l.nativeEvent) ? "virtual" : l.pointerType, l.width < 1 && l.height < 1)
2149
+ x.current = "virtual";
2149
2150
  else {
2150
- let x = s.currentTarget.getBoundingClientRect(), $ = s.clientX - x.x, h = s.clientY - x.y, k = x.width / 2, T = x.height / 2;
2151
- Math.abs($ - k) <= 0.5 && Math.abs(h - T) <= 0.5 ? B.current = "virtual" : B.current = s.pointerType;
2151
+ let B = l.currentTarget.getBoundingClientRect(), $ = l.clientX - B.x, h = l.clientY - B.y, k = B.width / 2, T = B.height / 2;
2152
+ Math.abs($ - k) <= 0.5 && Math.abs(h - T) <= 0.5 ? x.current = "virtual" : x.current = l.pointerType;
2152
2153
  }
2153
2154
  },
2154
- onKeyDownCapture(s) {
2155
- s.target === s.currentTarget && s.key === "Enter" && (s.preventDefault(), s.stopPropagation());
2155
+ onKeyDownCapture(l) {
2156
+ l.target === l.currentTarget && l.key === "Enter" && (l.preventDefault(), l.stopPropagation());
2156
2157
  },
2157
- onKeyUpCapture(s) {
2158
- s.target === s.currentTarget && s.key === "Enter" && (s.preventDefault(), s.stopPropagation(), D(s.target));
2158
+ onKeyUpCapture(l) {
2159
+ l.target === l.currentTarget && l.key === "Enter" && (l.preventDefault(), l.stopPropagation(), p(l.target));
2159
2160
  },
2160
- onClick(s) {
2161
- (cu(s.nativeEvent) || B.current === "virtual") && (s.preventDefault(), s.stopPropagation(), D(s.target));
2161
+ onClick(l) {
2162
+ (du(l.nativeEvent) || x.current === "virtual") && (l.preventDefault(), l.stopPropagation(), p(l.target));
2162
2163
  }
2163
- }), r ? {
2164
+ }), t ? {
2164
2165
  dragProps: {
2165
2166
  draggable: "false"
2166
2167
  },
@@ -2168,32 +2169,32 @@ function $r(e) {
2168
2169
  isDragging: !1
2169
2170
  } : {
2170
2171
  dragProps: {
2171
- ...d,
2172
+ ...i,
2172
2173
  draggable: "true",
2173
- onDragStart: p,
2174
- onDrag: C,
2175
- onDragEnd: f
2174
+ onDragStart: s,
2175
+ onDrag: E,
2176
+ onDragEnd: m
2176
2177
  },
2177
2178
  dragButtonProps: {
2178
- ...i,
2179
- onPress: b
2179
+ ...n,
2180
+ onPress: f
2180
2181
  },
2181
- isDragging: a
2182
+ isDragging: c
2182
2183
  };
2183
2184
  }
2184
- function yr(e) {
2185
+ function $r(e) {
2185
2186
  return e && e.__esModule ? e.default : e;
2186
2187
  }
2187
- const vr = {
2188
+ const yr = {
2188
2189
  keyboard: "dropDescriptionKeyboard",
2189
2190
  touch: "dropDescriptionTouch",
2190
2191
  virtual: "dropDescriptionVirtual"
2191
2192
  };
2192
- function rt() {
2193
- let e = ne(yr(oe), "@react-aria/dnd"), u = je(), r = Le();
2193
+ function tt() {
2194
+ let e = ne($r(oe), "@react-aria/dnd"), u = Ve(), t = je();
2194
2195
  return {
2195
2196
  dropProps: {
2196
- ...Oe(r ? e.format(vr[u]) : ""),
2197
+ ...we(t ? e.format(yr[u]) : ""),
2197
2198
  // Mobile Safari does not properly bubble click events on elements except links or inputs
2198
2199
  // unless there is an onclick handler bound directly to the element itself. By adding this
2199
2200
  // handler, React will take care of adding that for us, and we are able to handle document
@@ -2204,137 +2205,137 @@ function rt() {
2204
2205
  }
2205
2206
  };
2206
2207
  }
2207
- const hr = 800;
2208
- function kr(e) {
2209
- let { hasDropButton: u, isDisabled: r } = e, [t, n] = X(!1), o = S({
2208
+ const vr = 800;
2209
+ function hr(e) {
2210
+ let { hasDropButton: u, isDisabled: t } = e, [r, o] = Q(!1), a = S({
2210
2211
  x: 0,
2211
2212
  y: 0,
2212
2213
  dragOverElements: /* @__PURE__ */ new Set(),
2213
2214
  dropEffect: "none",
2214
2215
  allowedOperations: I.all,
2215
2216
  dropActivateTimer: void 0
2216
- }).current, a = (i) => {
2217
- if (n(!0), typeof e.onDropEnter == "function") {
2218
- let d = i.currentTarget.getBoundingClientRect();
2217
+ }).current, c = (n) => {
2218
+ if (o(!0), typeof e.onDropEnter == "function") {
2219
+ let i = n.currentTarget.getBoundingClientRect();
2219
2220
  e.onDropEnter({
2220
2221
  type: "dropenter",
2221
- x: i.clientX - d.x,
2222
- y: i.clientY - d.y
2222
+ x: n.clientX - i.x,
2223
+ y: n.clientY - i.y
2223
2224
  });
2224
2225
  }
2225
- }, l = (i) => {
2226
- if (n(!1), typeof e.onDropExit == "function") {
2227
- let d = i.currentTarget.getBoundingClientRect();
2226
+ }, d = (n) => {
2227
+ if (o(!1), typeof e.onDropExit == "function") {
2228
+ let i = n.currentTarget.getBoundingClientRect();
2228
2229
  e.onDropExit({
2229
2230
  type: "dropexit",
2230
- x: i.clientX - d.x,
2231
- y: i.clientY - d.y
2231
+ x: n.clientX - i.x,
2232
+ y: n.clientY - i.y
2232
2233
  });
2233
2234
  }
2234
- }, m = (i) => {
2235
- i.preventDefault(), i.stopPropagation();
2236
- let d = Ze(i);
2237
- if (i.clientX === o.x && i.clientY === o.y && d === o.allowedOperations) {
2238
- i.dataTransfer.dropEffect = o.dropEffect;
2235
+ }, C = (n) => {
2236
+ n.preventDefault(), n.stopPropagation();
2237
+ let i = Ye(n);
2238
+ if (n.clientX === a.x && n.clientY === a.y && i === a.allowedOperations) {
2239
+ n.dataTransfer.dropEffect = a.dropEffect;
2239
2240
  return;
2240
2241
  }
2241
- o.x = i.clientX, o.y = i.clientY;
2242
- let s = o.dropEffect;
2243
- if (d !== o.allowedOperations) {
2244
- let x = $e(d), $ = x[0];
2242
+ a.x = n.clientX, a.y = n.clientY;
2243
+ let l = a.dropEffect;
2244
+ if (i !== a.allowedOperations) {
2245
+ let B = $e(i), $ = B[0];
2245
2246
  if (typeof e.getDropOperation == "function") {
2246
- let h = new le(i.dataTransfer);
2247
- $ = de(d, e.getDropOperation(h, x));
2247
+ let h = new le(n.dataTransfer);
2248
+ $ = de(i, e.getDropOperation(h, B));
2248
2249
  }
2249
- o.dropEffect = Ee[$] || "none";
2250
+ a.dropEffect = xe[$] || "none";
2250
2251
  }
2251
2252
  if (typeof e.getDropOperationForPoint == "function") {
2252
- let x = new le(i.dataTransfer), $ = i.currentTarget.getBoundingClientRect(), h = de(d, e.getDropOperationForPoint(x, $e(d), o.x - $.x, o.y - $.y));
2253
- o.dropEffect = Ee[h] || "none";
2253
+ let B = new le(n.dataTransfer), $ = n.currentTarget.getBoundingClientRect(), h = de(i, e.getDropOperationForPoint(B, $e(i), a.x - $.x, a.y - $.y));
2254
+ a.dropEffect = xe[h] || "none";
2254
2255
  }
2255
- if (o.allowedOperations = d, i.dataTransfer.dropEffect = o.dropEffect, o.dropEffect === "none" && s !== "none" ? l(i) : o.dropEffect !== "none" && s === "none" && a(i), typeof e.onDropMove == "function" && o.dropEffect !== "none") {
2256
- let x = i.currentTarget.getBoundingClientRect();
2256
+ if (a.allowedOperations = i, n.dataTransfer.dropEffect = a.dropEffect, a.dropEffect === "none" && l !== "none" ? d(n) : a.dropEffect !== "none" && l === "none" && c(n), typeof e.onDropMove == "function" && a.dropEffect !== "none") {
2257
+ let B = n.currentTarget.getBoundingClientRect();
2257
2258
  e.onDropMove({
2258
2259
  type: "dropmove",
2259
- x: o.x - x.x,
2260
- y: o.y - x.y
2260
+ x: a.x - B.x,
2261
+ y: a.y - B.y
2261
2262
  });
2262
2263
  }
2263
- if (clearTimeout(o.dropActivateTimer), e.onDropActivate && typeof e.onDropActivate == "function" && o.dropEffect !== "none") {
2264
- let x = e.onDropActivate, $ = i.currentTarget.getBoundingClientRect();
2265
- o.dropActivateTimer = setTimeout(() => {
2266
- x({
2264
+ if (clearTimeout(a.dropActivateTimer), e.onDropActivate && typeof e.onDropActivate == "function" && a.dropEffect !== "none") {
2265
+ let B = e.onDropActivate, $ = n.currentTarget.getBoundingClientRect();
2266
+ a.dropActivateTimer = setTimeout(() => {
2267
+ B({
2267
2268
  type: "dropactivate",
2268
- x: o.x - $.x,
2269
- y: o.y - $.y
2269
+ x: a.x - $.x,
2270
+ y: a.y - $.y
2270
2271
  });
2271
- }, hr);
2272
+ }, vr);
2272
2273
  }
2273
- }, g = (i) => {
2274
- if (i.preventDefault(), i.stopPropagation(), o.dragOverElements.add(i.target), o.dragOverElements.size > 1) return;
2275
- let d = Ze(i), s = $e(d), x = s[0];
2274
+ }, g = (n) => {
2275
+ if (n.preventDefault(), n.stopPropagation(), a.dragOverElements.add(n.target), a.dragOverElements.size > 1) return;
2276
+ let i = Ye(n), l = $e(i), B = l[0];
2276
2277
  if (typeof e.getDropOperation == "function") {
2277
- let $ = new le(i.dataTransfer);
2278
- x = de(d, e.getDropOperation($, s));
2278
+ let $ = new le(n.dataTransfer);
2279
+ B = de(i, e.getDropOperation($, l));
2279
2280
  }
2280
2281
  if (typeof e.getDropOperationForPoint == "function") {
2281
- let $ = new le(i.dataTransfer), h = i.currentTarget.getBoundingClientRect();
2282
- x = de(d, e.getDropOperationForPoint($, s, i.clientX - h.x, i.clientY - h.y));
2282
+ let $ = new le(n.dataTransfer), h = n.currentTarget.getBoundingClientRect();
2283
+ B = de(i, e.getDropOperationForPoint($, l, n.clientX - h.x, n.clientY - h.y));
2283
2284
  }
2284
- o.x = i.clientX, o.y = i.clientY, o.allowedOperations = d, o.dropEffect = Ee[x] || "none", i.dataTransfer.dropEffect = o.dropEffect, x !== "cancel" && a(i);
2285
- }, c = (i) => {
2286
- i.preventDefault(), i.stopPropagation(), o.dragOverElements.delete(i.target);
2287
- for (let d of o.dragOverElements) i.currentTarget.contains(d) || o.dragOverElements.delete(d);
2288
- o.dragOverElements.size > 0 || (o.dropEffect !== "none" && l(i), clearTimeout(o.dropActivateTimer));
2289
- }, B = (i) => {
2290
- if (i.preventDefault(), i.stopPropagation(), me(o.dropEffect), typeof e.onDrop == "function") {
2291
- let s = te[o.dropEffect], x = ir(i.dataTransfer), $ = i.currentTarget.getBoundingClientRect(), h = {
2285
+ a.x = n.clientX, a.y = n.clientY, a.allowedOperations = i, a.dropEffect = xe[B] || "none", n.dataTransfer.dropEffect = a.dropEffect, B !== "cancel" && c(n);
2286
+ }, D = (n) => {
2287
+ n.preventDefault(), n.stopPropagation(), a.dragOverElements.delete(n.target);
2288
+ for (let i of a.dragOverElements) n.currentTarget.contains(i) || a.dragOverElements.delete(i);
2289
+ a.dragOverElements.size > 0 || (a.dropEffect !== "none" && d(n), clearTimeout(a.dropActivateTimer));
2290
+ }, x = (n) => {
2291
+ if (n.preventDefault(), n.stopPropagation(), me(a.dropEffect), typeof e.onDrop == "function") {
2292
+ let l = te[a.dropEffect], B = or(n.dataTransfer), $ = n.currentTarget.getBoundingClientRect(), h = {
2292
2293
  type: "drop",
2293
- x: i.clientX - $.x,
2294
- y: i.clientY - $.y,
2295
- items: x,
2296
- dropOperation: s
2294
+ x: n.clientX - $.x,
2295
+ y: n.clientY - $.y,
2296
+ items: B,
2297
+ dropOperation: l
2297
2298
  };
2298
2299
  e.onDrop(h);
2299
2300
  }
2300
- let d = {
2301
+ let i = {
2301
2302
  ...z
2302
2303
  };
2303
- o.dragOverElements.clear(), l(i), clearTimeout(o.dropActivateTimer), d.draggingCollectionRef == null ? me(void 0) : pr(d);
2304
- }, p = ee((i) => {
2305
- typeof e.onDropEnter == "function" && e.onDropEnter(i);
2306
- }), C = ee((i) => {
2307
- typeof e.onDropExit == "function" && e.onDropExit(i);
2308
- }), f = ee((i) => {
2309
- typeof e.onDropActivate == "function" && e.onDropActivate(i);
2310
- }), b = ee((i) => {
2311
- typeof e.onDrop == "function" && e.onDrop(i);
2312
- }), D = ee((i, d) => e.getDropOperation ? e.getDropOperation(i, d) : d[0]), { ref: E } = e;
2313
- iu(() => {
2314
- if (!(r || !E.current))
2315
- return $u({
2316
- element: E.current,
2317
- getDropOperation: D,
2318
- onDropEnter(i) {
2319
- n(!0), p(i);
2304
+ a.dragOverElements.clear(), d(n), clearTimeout(a.dropActivateTimer), i.draggingCollectionRef == null ? me(void 0) : cr(i);
2305
+ }, s = ee((n) => {
2306
+ typeof e.onDropEnter == "function" && e.onDropEnter(n);
2307
+ }), E = ee((n) => {
2308
+ typeof e.onDropExit == "function" && e.onDropExit(n);
2309
+ }), m = ee((n) => {
2310
+ typeof e.onDropActivate == "function" && e.onDropActivate(n);
2311
+ }), f = ee((n) => {
2312
+ typeof e.onDrop == "function" && e.onDrop(n);
2313
+ }), p = ee((n, i) => e.getDropOperation ? e.getDropOperation(n, i) : i[0]), { ref: b } = e;
2314
+ nu(() => {
2315
+ if (!(t || !b.current))
2316
+ return Cu({
2317
+ element: b.current,
2318
+ getDropOperation: p,
2319
+ onDropEnter(n) {
2320
+ o(!0), s(n);
2320
2321
  },
2321
- onDropExit(i) {
2322
- n(!1), C(i);
2322
+ onDropExit(n) {
2323
+ o(!1), E(n);
2323
2324
  },
2324
- onDrop: b,
2325
- onDropActivate: f
2325
+ onDrop: f,
2326
+ onDropActivate: m
2326
2327
  });
2327
2328
  }, [
2328
- r,
2329
- E,
2330
- D,
2331
- p,
2332
- C,
2329
+ t,
2333
2330
  b,
2334
- f
2331
+ p,
2332
+ s,
2333
+ E,
2334
+ f,
2335
+ m
2335
2336
  ]);
2336
- let { dropProps: y } = rt();
2337
- return r ? {
2337
+ let { dropProps: y } = tt();
2338
+ return t ? {
2338
2339
  dropProps: {},
2339
2340
  dropButtonProps: {
2340
2341
  isDisabled: !0
@@ -2344,119 +2345,119 @@ function kr(e) {
2344
2345
  dropProps: {
2345
2346
  ...!u && y,
2346
2347
  onDragEnter: g,
2347
- onDragOver: m,
2348
- onDragLeave: c,
2349
- onDrop: B
2348
+ onDragOver: C,
2349
+ onDragLeave: D,
2350
+ onDrop: x
2350
2351
  },
2351
2352
  dropButtonProps: {
2352
2353
  ...u && y
2353
2354
  },
2354
- isDropTarget: t
2355
+ isDropTarget: r
2355
2356
  };
2356
2357
  }
2357
- function Ze(e) {
2358
- let u = gu[e.dataTransfer.effectAllowed];
2358
+ function Ye(e) {
2359
+ let u = Du[e.dataTransfer.effectAllowed];
2359
2360
  Fe && (u &= Fe);
2360
- let r = I.none;
2361
- return qt() ? (e.altKey && (r |= I.copy), e.ctrlKey && !Gt() && (r |= I.link), e.metaKey && (r |= I.move)) : (e.altKey && (r |= I.link), e.shiftKey && (r |= I.move), e.ctrlKey && (r |= I.copy)), r ? u & r : u;
2361
+ let t = I.none;
2362
+ return Ht() ? (e.altKey && (t |= I.copy), e.ctrlKey && !Ut() && (t |= I.link), e.metaKey && (t |= I.move)) : (e.altKey && (t |= I.link), e.shiftKey && (t |= I.move), e.ctrlKey && (t |= I.copy)), t ? u & t : u;
2362
2363
  }
2363
2364
  function $e(e) {
2364
2365
  let u = [];
2365
2366
  return e & I.move && u.push("move"), e & I.copy && u.push("copy"), e & I.link && u.push("link"), u;
2366
2367
  }
2367
2368
  function de(e, u) {
2368
- let r = I[u];
2369
- return e & r ? u : "cancel";
2369
+ let t = I[u];
2370
+ return e & t ? u : "cancel";
2370
2371
  }
2371
- function Ar(e, u, r, t, n = !1, o = !1) {
2372
- switch (t) {
2372
+ function kr(e, u, t, r, o = !1, a = !1) {
2373
+ switch (r) {
2373
2374
  case "left":
2374
- return n ? ye(e, u, r, o, "left") : ve(e, u, r, o, "left");
2375
+ return o ? ye(e, u, t, a, "left") : ve(e, u, t, a, "left");
2375
2376
  case "right":
2376
- return n ? ve(e, u, r, o, "right") : ye(e, u, r, o, "right");
2377
+ return o ? ve(e, u, t, a, "right") : ye(e, u, t, a, "right");
2377
2378
  case "up":
2378
- return ve(e, u, r, o);
2379
+ return ve(e, u, t, a);
2379
2380
  case "down":
2380
- return ye(e, u, r, o);
2381
+ return ye(e, u, t, a);
2381
2382
  }
2382
2383
  }
2383
- function ye(e, u, r, t = !1, n = null) {
2384
- if (!r) return {
2384
+ function ye(e, u, t, r = !1, o = null) {
2385
+ if (!t) return {
2385
2386
  type: "root"
2386
2387
  };
2387
- if (r.type === "root") {
2388
- var o, a;
2389
- let c = (a = (o = e.getFirstKey) === null || o === void 0 ? void 0 : o.call(e)) !== null && a !== void 0 ? a : null;
2390
- return c != null ? {
2388
+ if (t.type === "root") {
2389
+ var a, c;
2390
+ let D = (c = (a = e.getFirstKey) === null || a === void 0 ? void 0 : a.call(e)) !== null && c !== void 0 ? c : null;
2391
+ return D != null ? {
2391
2392
  type: "item",
2392
- key: c,
2393
+ key: D,
2393
2394
  dropPosition: "before"
2394
2395
  } : null;
2395
2396
  }
2396
- if (r.type === "item") {
2397
- var l, m, g;
2398
- let c = null;
2399
- n ? c = n === "right" ? (l = e.getKeyRightOf) === null || l === void 0 ? void 0 : l.call(e, r.key) : (m = e.getKeyLeftOf) === null || m === void 0 ? void 0 : m.call(e, r.key) : c = (g = e.getKeyBelow) === null || g === void 0 ? void 0 : g.call(e, r.key);
2400
- let B = u.getKeyAfter(r.key);
2401
- if (c != null && c !== B) return {
2397
+ if (t.type === "item") {
2398
+ var d, C, g;
2399
+ let D = null;
2400
+ o ? D = o === "right" ? (d = e.getKeyRightOf) === null || d === void 0 ? void 0 : d.call(e, t.key) : (C = e.getKeyLeftOf) === null || C === void 0 ? void 0 : C.call(e, t.key) : D = (g = e.getKeyBelow) === null || g === void 0 ? void 0 : g.call(e, t.key);
2401
+ let x = u.getKeyAfter(t.key);
2402
+ if (D != null && D !== x) return {
2402
2403
  type: "item",
2403
- key: c,
2404
- dropPosition: r.dropPosition
2404
+ key: D,
2405
+ dropPosition: t.dropPosition
2405
2406
  };
2406
- switch (r.dropPosition) {
2407
+ switch (t.dropPosition) {
2407
2408
  case "before":
2408
2409
  return {
2409
2410
  type: "item",
2410
- key: r.key,
2411
+ key: t.key,
2411
2412
  dropPosition: "on"
2412
2413
  };
2413
2414
  case "on": {
2414
- let p = u.getItem(r.key), C = c != null ? u.getItem(c) : null;
2415
- return p && C && C.level >= p.level ? {
2415
+ let s = u.getItem(t.key), E = D != null ? u.getItem(D) : null;
2416
+ return s && E && E.level >= s.level ? {
2416
2417
  type: "item",
2417
- key: C.key,
2418
+ key: E.key,
2418
2419
  dropPosition: "before"
2419
2420
  } : {
2420
2421
  type: "item",
2421
- key: r.key,
2422
+ key: t.key,
2422
2423
  dropPosition: "after"
2423
2424
  };
2424
2425
  }
2425
2426
  case "after": {
2426
- let p = u.getItem(r.key);
2427
- if (p && p.nextKey == null && p.parentKey != null) {
2428
- let C = u.getItem(p.parentKey);
2429
- if (C?.nextKey != null) return {
2427
+ let s = u.getItem(t.key);
2428
+ if (s && s.nextKey == null && s.parentKey != null) {
2429
+ let E = u.getItem(s.parentKey);
2430
+ if (E?.nextKey != null) return {
2430
2431
  type: "item",
2431
- key: C.nextKey,
2432
+ key: E.nextKey,
2432
2433
  dropPosition: "before"
2433
2434
  };
2434
- if (C) return {
2435
+ if (E) return {
2435
2436
  type: "item",
2436
- key: C.key,
2437
+ key: E.key,
2437
2438
  dropPosition: "after"
2438
2439
  };
2439
2440
  }
2440
- if (p?.nextKey != null) return {
2441
+ if (s?.nextKey != null) return {
2441
2442
  type: "item",
2442
- key: p.nextKey,
2443
+ key: s.nextKey,
2443
2444
  dropPosition: "on"
2444
2445
  };
2445
2446
  }
2446
2447
  }
2447
2448
  }
2448
- return t ? {
2449
+ return r ? {
2449
2450
  type: "root"
2450
2451
  } : null;
2451
2452
  }
2452
- function ve(e, u, r, t = !1, n = null) {
2453
- if (!r || t && r.type === "root") {
2454
- var o;
2455
- let g = null, c = (o = e.getLastKey) === null || o === void 0 ? void 0 : o.call(e);
2456
- for (; c != null; ) {
2457
- g = c;
2458
- let B = u.getItem(c);
2459
- c = B?.parentKey;
2453
+ function ve(e, u, t, r = !1, o = null) {
2454
+ if (!t || r && t.type === "root") {
2455
+ var a;
2456
+ let g = null, D = (a = e.getLastKey) === null || a === void 0 ? void 0 : a.call(e);
2457
+ for (; D != null; ) {
2458
+ g = D;
2459
+ let x = u.getItem(D);
2460
+ D = x?.parentKey;
2460
2461
  }
2461
2462
  return g != null ? {
2462
2463
  type: "item",
@@ -2464,22 +2465,22 @@ function ve(e, u, r, t = !1, n = null) {
2464
2465
  dropPosition: "after"
2465
2466
  } : null;
2466
2467
  }
2467
- if (r.type === "item") {
2468
- var a, l, m;
2468
+ if (t.type === "item") {
2469
+ var c, d, C;
2469
2470
  let g = null;
2470
- n ? g = n === "left" ? (a = e.getKeyLeftOf) === null || a === void 0 ? void 0 : a.call(e, r.key) : (l = e.getKeyRightOf) === null || l === void 0 ? void 0 : l.call(e, r.key) : g = (m = e.getKeyAbove) === null || m === void 0 ? void 0 : m.call(e, r.key);
2471
- let c = u.getKeyBefore(r.key);
2472
- if (g != null && g !== c) return {
2471
+ o ? g = o === "left" ? (c = e.getKeyLeftOf) === null || c === void 0 ? void 0 : c.call(e, t.key) : (d = e.getKeyRightOf) === null || d === void 0 ? void 0 : d.call(e, t.key) : g = (C = e.getKeyAbove) === null || C === void 0 ? void 0 : C.call(e, t.key);
2472
+ let D = u.getKeyBefore(t.key);
2473
+ if (g != null && g !== D) return {
2473
2474
  type: "item",
2474
2475
  key: g,
2475
- dropPosition: r.dropPosition
2476
+ dropPosition: t.dropPosition
2476
2477
  };
2477
- switch (r.dropPosition) {
2478
+ switch (t.dropPosition) {
2478
2479
  case "before": {
2479
- let B = u.getItem(r.key);
2480
- if (B && B.prevKey != null) {
2481
- let p = Je(u, B.prevKey);
2482
- if (p) return p;
2480
+ let x = u.getItem(t.key);
2481
+ if (x && x.prevKey != null) {
2482
+ let s = Ze(u, x.prevKey);
2483
+ if (s) return s;
2483
2484
  }
2484
2485
  return g != null ? {
2485
2486
  type: "item",
@@ -2492,352 +2493,352 @@ function ve(e, u, r, t = !1, n = null) {
2492
2493
  case "on":
2493
2494
  return {
2494
2495
  type: "item",
2495
- key: r.key,
2496
+ key: t.key,
2496
2497
  dropPosition: "before"
2497
2498
  };
2498
2499
  case "after": {
2499
- let B = Je(u, r.key);
2500
- return B || {
2500
+ let x = Ze(u, t.key);
2501
+ return x || {
2501
2502
  type: "item",
2502
- key: r.key,
2503
+ key: t.key,
2503
2504
  dropPosition: "on"
2504
2505
  };
2505
2506
  }
2506
2507
  }
2507
2508
  }
2508
- return r.type !== "root" ? {
2509
+ return t.type !== "root" ? {
2509
2510
  type: "root"
2510
2511
  } : null;
2511
2512
  }
2512
- function Je(e, u) {
2513
- let r = e.getItem(u), t = e.getKeyAfter(u), n = t != null ? e.getItem(t) : null;
2514
- if (r && n && n.level > r.level) {
2515
- let o = xt(r, e), a = null;
2516
- for (let l of o) l.type === "item" && (a = l);
2517
- if (a) return {
2513
+ function Ze(e, u) {
2514
+ let t = e.getItem(u), r = e.getKeyAfter(u), o = r != null ? e.getItem(r) : null;
2515
+ if (t && o && o.level > t.level) {
2516
+ let a = Bt(t, e), c = null;
2517
+ for (let d of a) d.type === "item" && (c = d);
2518
+ if (c) return {
2518
2519
  type: "item",
2519
- key: a.key,
2520
+ key: c.key,
2520
2521
  dropPosition: "after"
2521
2522
  };
2522
2523
  }
2523
2524
  return null;
2524
2525
  }
2525
2526
  const se = 20;
2526
- function Tr(e) {
2527
- let u = S(null), r = S(!0), t = S(!0);
2527
+ function Ar(e) {
2528
+ let u = S(null), t = S(!0), r = S(!0);
2528
2529
  L(() => {
2529
2530
  if (e.current) {
2530
- u.current = Ut(e.current) ? e.current : Ht(e.current);
2531
- let a = window.getComputedStyle(u.current);
2532
- r.current = /(auto|scroll)/.test(a.overflowX), t.current = /(auto|scroll)/.test(a.overflowY);
2531
+ u.current = Nt(e.current) ? e.current : Mt(e.current);
2532
+ let c = window.getComputedStyle(u.current);
2533
+ t.current = /(auto|scroll)/.test(c.overflowX), r.current = /(auto|scroll)/.test(c.overflowY);
2533
2534
  }
2534
2535
  }, [
2535
2536
  e
2536
2537
  ]);
2537
- let n = S({
2538
+ let o = S({
2538
2539
  timer: void 0,
2539
2540
  dx: 0,
2540
2541
  dy: 0
2541
2542
  }).current;
2542
2543
  L(() => () => {
2543
- n.timer && (cancelAnimationFrame(n.timer), n.timer = void 0);
2544
+ o.timer && (cancelAnimationFrame(o.timer), o.timer = void 0);
2544
2545
  }, [
2545
- n
2546
+ o
2546
2547
  ]);
2547
- let o = J(() => {
2548
- r.current && u.current && (u.current.scrollLeft += n.dx), t.current && u.current && (u.current.scrollTop += n.dy), n.timer && (n.timer = requestAnimationFrame(o));
2548
+ let a = Z(() => {
2549
+ t.current && u.current && (u.current.scrollLeft += o.dx), r.current && u.current && (u.current.scrollTop += o.dy), o.timer && (o.timer = requestAnimationFrame(a));
2549
2550
  }, [
2550
2551
  u,
2551
- n
2552
+ o
2552
2553
  ]);
2553
2554
  return {
2554
- move(a, l) {
2555
- if (!Xt() || Yt() || !u.current) return;
2556
- let m = u.current.getBoundingClientRect(), g = se, c = se, B = m.height - se, p = m.width - se;
2557
- a < g || a > p || l < c || l > B ? (a < g ? n.dx = a - g : a > p && (n.dx = a - p), l < c ? n.dy = l - c : l > B && (n.dy = l - B), n.timer || (n.timer = requestAnimationFrame(o))) : this.stop();
2555
+ move(c, d) {
2556
+ if (!qt() || Gt() || !u.current) return;
2557
+ let C = u.current.getBoundingClientRect(), g = se, D = se, x = C.height - se, s = C.width - se;
2558
+ c < g || c > s || d < D || d > x ? (c < g ? o.dx = c - g : c > s && (o.dx = c - s), d < D ? o.dy = d - D : d > x && (o.dy = d - x), o.timer || (o.timer = requestAnimationFrame(a))) : this.stop();
2558
2559
  },
2559
2560
  stop() {
2560
- n.timer && (cancelAnimationFrame(n.timer), n.timer = void 0);
2561
+ o.timer && (cancelAnimationFrame(o.timer), o.timer = void 0);
2561
2562
  }
2562
2563
  };
2563
2564
  }
2564
- function Fr(e, u, r) {
2565
- let t = S({
2565
+ function Tr(e, u, t) {
2566
+ let r = S({
2566
2567
  props: e,
2567
2568
  state: u,
2568
2569
  nextTarget: null,
2569
2570
  dropOperation: null
2570
2571
  }).current;
2571
- t.props = e, t.state = u;
2572
- let n = J(async (p) => {
2573
- let { onInsert: C, onRootDrop: f, onItemDrop: b, onReorder: D, onMove: E, acceptedDragTypes: y = "all", shouldAcceptItemDrop: i } = t.props, { draggingKeys: d } = z, s = H(r), { target: x, dropOperation: $, items: h } = p, k = h;
2574
- (y !== "all" || i) && (k = h.filter((T) => {
2572
+ r.props = e, r.state = u;
2573
+ let o = Z(async (s) => {
2574
+ let { onInsert: E, onRootDrop: m, onItemDrop: f, onReorder: p, onMove: b, acceptedDragTypes: y = "all", shouldAcceptItemDrop: n } = r.props, { draggingKeys: i } = z, l = H(t), { target: B, dropOperation: $, items: h } = s, k = h;
2575
+ (y !== "all" || n) && (k = h.filter((T) => {
2575
2576
  let K;
2576
2577
  return T.kind === "directory" ? K = /* @__PURE__ */ new Set([
2577
- Bu
2578
+ fu
2578
2579
  ]) : K = T.kind === "file" ? /* @__PURE__ */ new Set([
2579
2580
  T.type
2580
- ]) : T.types, y === "all" || y.some((O) => K.has(O)) ? x.type === "item" && x.dropPosition === "on" && i ? i(x, K) : !0 : !1;
2581
- })), k.length > 0 && (x.type === "root" && f && await f({
2581
+ ]) : T.types, y === "all" || y.some((O) => K.has(O)) ? B.type === "item" && B.dropPosition === "on" && n ? n(B, K) : !0 : !1;
2582
+ })), k.length > 0 && (B.type === "root" && m && await m({
2582
2583
  items: k,
2583
2584
  dropOperation: $
2584
- }), x.type === "item" && (x.dropPosition === "on" && b && await b({
2585
+ }), B.type === "item" && (B.dropPosition === "on" && f && await f({
2585
2586
  items: k,
2586
2587
  dropOperation: $,
2587
- isInternal: s,
2588
- target: x
2589
- }), E && s && await E({
2590
- keys: d,
2588
+ isInternal: l,
2589
+ target: B
2590
+ }), b && l && await b({
2591
+ keys: i,
2591
2592
  dropOperation: $,
2592
- target: x
2593
- }), x.dropPosition !== "on" && (!s && C && await C({
2593
+ target: B
2594
+ }), B.dropPosition !== "on" && (!l && E && await E({
2594
2595
  items: k,
2595
2596
  dropOperation: $,
2596
- target: x
2597
- }), s && D && await D({
2598
- keys: d,
2597
+ target: B
2598
+ }), l && p && await p({
2599
+ keys: i,
2599
2600
  dropOperation: $,
2600
- target: x
2601
+ target: B
2601
2602
  }))));
2602
2603
  }, [
2603
- t,
2604
- r
2605
- ]), o = Tr(r), { dropProps: a } = kr({
2606
- ref: r,
2604
+ r,
2605
+ t
2606
+ ]), a = Ar(t), { dropProps: c } = hr({
2607
+ ref: t,
2607
2608
  onDropEnter() {
2608
- t.nextTarget != null && u.setTarget(t.nextTarget);
2609
+ r.nextTarget != null && u.setTarget(r.nextTarget);
2609
2610
  },
2610
- onDropMove(p) {
2611
- t.nextTarget != null && u.setTarget(t.nextTarget), o.move(p.x, p.y);
2611
+ onDropMove(s) {
2612
+ r.nextTarget != null && u.setTarget(r.nextTarget), a.move(s.x, s.y);
2612
2613
  },
2613
- getDropOperationForPoint(p, C, f, b) {
2614
- let { draggingKeys: D, dropCollectionRef: E } = z, y = H(r), i = (s) => u.getDropOperation({
2615
- target: s,
2616
- types: p,
2617
- allowedOperations: C,
2614
+ getDropOperationForPoint(s, E, m, f) {
2615
+ let { draggingKeys: p, dropCollectionRef: b } = z, y = H(t), n = (l) => u.getDropOperation({
2616
+ target: l,
2617
+ types: s,
2618
+ allowedOperations: E,
2618
2619
  isInternal: y,
2619
- draggingKeys: D
2620
- }) !== "cancel", d = e.dropTargetDelegate.getDropTargetFromPoint(f, b, i);
2621
- if (!d)
2622
- return t.dropOperation = "cancel", t.nextTarget = null, "cancel";
2623
- if (t.dropOperation = u.getDropOperation({
2624
- target: d,
2625
- types: p,
2626
- allowedOperations: C,
2620
+ draggingKeys: p
2621
+ }) !== "cancel", i = e.dropTargetDelegate.getDropTargetFromPoint(m, f, n);
2622
+ if (!i)
2623
+ return r.dropOperation = "cancel", r.nextTarget = null, "cancel";
2624
+ if (r.dropOperation = u.getDropOperation({
2625
+ target: i,
2626
+ types: s,
2627
+ allowedOperations: E,
2627
2628
  isInternal: y,
2628
- draggingKeys: D
2629
- }), t.dropOperation === "cancel") {
2630
- let s = {
2629
+ draggingKeys: p
2630
+ }), r.dropOperation === "cancel") {
2631
+ let l = {
2631
2632
  type: "root"
2632
- }, x = u.getDropOperation({
2633
- target: s,
2634
- types: p,
2635
- allowedOperations: C,
2633
+ }, B = u.getDropOperation({
2634
+ target: l,
2635
+ types: s,
2636
+ allowedOperations: E,
2636
2637
  isInternal: y,
2637
- draggingKeys: D
2638
+ draggingKeys: p
2638
2639
  });
2639
- x !== "cancel" && (d = s, t.dropOperation = x);
2640
+ B !== "cancel" && (i = l, r.dropOperation = B);
2640
2641
  }
2641
- return d && t.dropOperation !== "cancel" && r?.current !== E?.current && Z(r), t.nextTarget = t.dropOperation === "cancel" ? null : d, t.dropOperation;
2642
+ return i && r.dropOperation !== "cancel" && t?.current !== b?.current && Y(t), r.nextTarget = r.dropOperation === "cancel" ? null : i, r.dropOperation;
2642
2643
  },
2643
2644
  onDropExit() {
2644
- Z(void 0), u.setTarget(null), o.stop();
2645
+ Y(void 0), u.setTarget(null), a.stop();
2645
2646
  },
2646
- onDropActivate(p) {
2647
- var C;
2648
- ((C = u.target) === null || C === void 0 ? void 0 : C.type) === "item" && typeof e.onDropActivate == "function" && e.onDropActivate({
2647
+ onDropActivate(s) {
2648
+ var E;
2649
+ ((E = u.target) === null || E === void 0 ? void 0 : E.type) === "item" && typeof e.onDropActivate == "function" && e.onDropActivate({
2649
2650
  type: "dropactivate",
2650
- x: p.x,
2651
- y: p.y,
2651
+ x: s.x,
2652
+ y: s.y,
2652
2653
  target: u.target
2653
2654
  });
2654
2655
  },
2655
- onDrop(p) {
2656
- Z(r), u.target && g(p, u.target);
2657
- let { draggingCollectionRef: C } = z;
2658
- C == null && Cu();
2656
+ onDrop(s) {
2657
+ Y(t), u.target && g(s, u.target);
2658
+ let { draggingCollectionRef: E } = z;
2659
+ E == null && xu();
2659
2660
  }
2660
- }), l = S(null), m = J(() => {
2661
- let { state: p } = t;
2662
- if (l.current) {
2663
- var C;
2664
- let { target: D, collection: E, selectedKeys: y, focusedKey: i, isInternal: d, draggingKeys: s } = l.current;
2665
- if (p.collection.size > E.size && p.selectionManager.isSelectionEqual(y)) {
2666
- let x = /* @__PURE__ */ new Set();
2667
- for (let $ of p.collection.getKeys()) E.getItem($) || x.add($);
2668
- if (p.selectionManager.setSelectedKeys(x), p.selectionManager.focusedKey === i) {
2669
- let $ = x.keys().next().value;
2661
+ }), d = S(null), C = Z(() => {
2662
+ let { state: s } = r;
2663
+ if (d.current) {
2664
+ var E;
2665
+ let { target: p, collection: b, selectedKeys: y, focusedKey: n, isInternal: i, draggingKeys: l } = d.current;
2666
+ if (s.collection.size > b.size && s.selectionManager.isSelectionEqual(y)) {
2667
+ let B = /* @__PURE__ */ new Set();
2668
+ for (let $ of s.collection.getKeys()) b.getItem($) || B.add($);
2669
+ if (s.selectionManager.setSelectedKeys(B), s.selectionManager.focusedKey === n) {
2670
+ let $ = B.keys().next().value;
2670
2671
  if ($ != null) {
2671
- let h = p.collection.getItem($);
2672
- h?.type === "cell" && ($ = h.parentKey), $ != null && p.selectionManager.setFocusedKey($), p.selectionManager.selectionMode === "none" && ie("keyboard");
2672
+ let h = s.collection.getItem($);
2673
+ h?.type === "cell" && ($ = h.parentKey), $ != null && s.selectionManager.setFocusedKey($), s.selectionManager.selectionMode === "none" && ae("keyboard");
2673
2674
  }
2674
2675
  }
2675
- } else if (i != null && p.selectionManager.focusedKey === i && d && D.type === "item" && D.dropPosition !== "on" && s.has((C = p.collection.getItem(i)) === null || C === void 0 ? void 0 : C.parentKey)) {
2676
- var f, b;
2677
- p.selectionManager.setFocusedKey((b = (f = p.collection.getItem(i)) === null || f === void 0 ? void 0 : f.parentKey) !== null && b !== void 0 ? b : null), ie("keyboard");
2678
- } else p.selectionManager.focusedKey === i && D.type === "item" && D.dropPosition === "on" && p.collection.getItem(D.key) != null ? (p.selectionManager.setFocusedKey(D.key), ie("keyboard")) : p.selectionManager.focusedKey != null && !p.selectionManager.isSelected(p.selectionManager.focusedKey) && ie("keyboard");
2679
- p.selectionManager.setFocused(!0);
2676
+ } else if (n != null && s.selectionManager.focusedKey === n && i && p.type === "item" && p.dropPosition !== "on" && l.has((E = s.collection.getItem(n)) === null || E === void 0 ? void 0 : E.parentKey)) {
2677
+ var m, f;
2678
+ s.selectionManager.setFocusedKey((f = (m = s.collection.getItem(n)) === null || m === void 0 ? void 0 : m.parentKey) !== null && f !== void 0 ? f : null), ae("keyboard");
2679
+ } else s.selectionManager.focusedKey === n && p.type === "item" && p.dropPosition === "on" && s.collection.getItem(p.key) != null ? (s.selectionManager.setFocusedKey(p.key), ae("keyboard")) : s.selectionManager.focusedKey != null && !s.selectionManager.isSelected(s.selectionManager.focusedKey) && ae("keyboard");
2680
+ s.selectionManager.setFocused(!0);
2680
2681
  }
2681
2682
  }, [
2682
- t
2683
- ]), g = J((p, C) => {
2684
- let { state: f } = t;
2685
- l.current = {
2683
+ r
2684
+ ]), g = Z((s, E) => {
2685
+ let { state: m } = r;
2686
+ d.current = {
2686
2687
  timeout: void 0,
2687
- focusedKey: f.selectionManager.focusedKey,
2688
- collection: f.collection,
2689
- selectedKeys: f.selectionManager.selectedKeys,
2688
+ focusedKey: m.selectionManager.focusedKey,
2689
+ collection: m.collection,
2690
+ selectedKeys: m.selectionManager.selectedKeys,
2690
2691
  draggingKeys: z.draggingKeys,
2691
- isInternal: H(r),
2692
- target: C
2693
- }, (t.props.onDrop || n)({
2692
+ isInternal: H(t),
2693
+ target: E
2694
+ }, (r.props.onDrop || o)({
2694
2695
  type: "drop",
2695
- x: p.x,
2696
- y: p.y,
2697
- target: C,
2698
- items: p.items,
2699
- dropOperation: p.dropOperation
2700
- }), l.current.timeout = setTimeout(() => {
2701
- m(), l.current = null;
2696
+ x: s.x,
2697
+ y: s.y,
2698
+ target: E,
2699
+ items: s.items,
2700
+ dropOperation: s.dropOperation
2701
+ }), d.current.timeout = setTimeout(() => {
2702
+ C(), d.current = null;
2702
2703
  }, 50);
2703
2704
  }, [
2704
- t,
2705
- n,
2706
2705
  r,
2707
- m
2706
+ o,
2707
+ t,
2708
+ C
2708
2709
  ]);
2709
2710
  L(() => () => {
2710
- l.current && clearTimeout(l.current.timeout);
2711
- }, []), iu(() => {
2712
- l.current && u.collection !== l.current.collection && m();
2711
+ d.current && clearTimeout(d.current.timeout);
2712
+ }, []), nu(() => {
2713
+ d.current && u.collection !== d.current.collection && C();
2713
2714
  });
2714
- let { direction: c } = su();
2715
+ let { direction: D } = lu();
2715
2716
  L(() => {
2716
- if (!r.current) return;
2717
- let p = (b, D = !0, E = "down") => Ar(t.props.keyboardDelegate, t.state.collection, b, E, c === "rtl", D), C = (b, D = !0) => p(b, D, "up"), f = (b, D, E, y, i = !0) => {
2718
- let d = 0, s, { draggingKeys: x } = z, $ = H(r);
2717
+ if (!t.current) return;
2718
+ let s = (f, p = !0, b = "down") => kr(r.props.keyboardDelegate, r.state.collection, f, b, D === "rtl", p), E = (f, p = !0) => s(f, p, "up"), m = (f, p, b, y, n = !0) => {
2719
+ let i = 0, l, { draggingKeys: B } = z, $ = H(t);
2719
2720
  do {
2720
- let h = y(b, i);
2721
+ let h = y(f, n);
2721
2722
  if (!h) return null;
2722
- b = h, s = t.state.getDropOperation({
2723
+ f = h, l = r.state.getDropOperation({
2723
2724
  target: h,
2724
- types: D,
2725
- allowedOperations: E,
2725
+ types: p,
2726
+ allowedOperations: b,
2726
2727
  isInternal: $,
2727
- draggingKeys: x
2728
- }), b.type === "root" && d++;
2729
- } while (s === "cancel" && !t.state.isDropTarget(b) && d < 2);
2730
- return s === "cancel" ? null : b;
2728
+ draggingKeys: B
2729
+ }), f.type === "root" && i++;
2730
+ } while (l === "cancel" && !r.state.isDropTarget(f) && i < 2);
2731
+ return l === "cancel" ? null : f;
2731
2732
  };
2732
- return $u({
2733
- element: r.current,
2733
+ return Cu({
2734
+ element: t.current,
2734
2735
  preventFocusOnDrop: !0,
2735
- getDropOperation(b, D) {
2736
- if (t.state.target) {
2737
- let { draggingKeys: y } = z, i = H(r);
2738
- return t.state.getDropOperation({
2739
- target: t.state.target,
2740
- types: b,
2741
- allowedOperations: D,
2742
- isInternal: i,
2736
+ getDropOperation(f, p) {
2737
+ if (r.state.target) {
2738
+ let { draggingKeys: y } = z, n = H(t);
2739
+ return r.state.getDropOperation({
2740
+ target: r.state.target,
2741
+ types: f,
2742
+ allowedOperations: p,
2743
+ isInternal: n,
2743
2744
  draggingKeys: y
2744
2745
  });
2745
2746
  }
2746
- return f(null, b, D, p) ? "move" : "cancel";
2747
+ return m(null, f, p, s) ? "move" : "cancel";
2747
2748
  },
2748
- onDropEnter(b, D) {
2749
- let E = G(D.items), y = t.state.selectionManager, i = null;
2750
- Z(r);
2751
- let d = y.focusedKey, s = "after", x = d != null ? t.state.collection.getItem(d) : null;
2752
- if (x?.type === "cell" && (d = x.parentKey), d != null && y.isSelected(d) && (y.selectedKeys.size > 1 && y.firstSelectedKey === d ? s = "before" : d = y.lastSelectedKey), d != null) {
2753
- i = {
2749
+ onDropEnter(f, p) {
2750
+ let b = G(p.items), y = r.state.selectionManager, n = null;
2751
+ Y(t);
2752
+ let i = y.focusedKey, l = "after", B = i != null ? r.state.collection.getItem(i) : null;
2753
+ if (B?.type === "cell" && (i = B.parentKey), i != null && y.isSelected(i) && (y.selectedKeys.size > 1 && y.firstSelectedKey === i ? l = "before" : i = y.lastSelectedKey), i != null) {
2754
+ n = {
2754
2755
  type: "item",
2755
- key: d,
2756
- dropPosition: s
2756
+ key: i,
2757
+ dropPosition: l
2757
2758
  };
2758
- let { draggingKeys: h } = z, k = H(r);
2759
+ let { draggingKeys: h } = z, k = H(t);
2759
2760
  var $;
2760
- t.state.getDropOperation({
2761
- target: i,
2762
- types: E,
2763
- allowedOperations: D.allowedDropOperations,
2761
+ r.state.getDropOperation({
2762
+ target: n,
2763
+ types: b,
2764
+ allowedOperations: p.allowedDropOperations,
2764
2765
  isInternal: k,
2765
2766
  draggingKeys: h
2766
- }) === "cancel" && (i = ($ = f(i, E, D.allowedDropOperations, p, !1)) !== null && $ !== void 0 ? $ : f(i, E, D.allowedDropOperations, C, !1));
2767
+ }) === "cancel" && (n = ($ = m(n, b, p.allowedDropOperations, s, !1)) !== null && $ !== void 0 ? $ : m(n, b, p.allowedDropOperations, E, !1));
2767
2768
  }
2768
- i || (i = f(null, E, D.allowedDropOperations, p)), t.state.setTarget(i);
2769
+ n || (n = m(null, b, p.allowedDropOperations, s)), r.state.setTarget(n);
2769
2770
  },
2770
2771
  onDropExit() {
2771
- Z(void 0), t.state.setTarget(null);
2772
+ Y(void 0), r.state.setTarget(null);
2772
2773
  },
2773
- onDropTargetEnter(b) {
2774
- t.state.setTarget(b);
2774
+ onDropTargetEnter(f) {
2775
+ r.state.setTarget(f);
2775
2776
  },
2776
- onDropActivate(b, D) {
2777
- D?.type === "item" && D?.dropPosition === "on" && typeof t.props.onDropActivate == "function" && t.props.onDropActivate({
2777
+ onDropActivate(f, p) {
2778
+ p?.type === "item" && p?.dropPosition === "on" && typeof r.props.onDropActivate == "function" && r.props.onDropActivate({
2778
2779
  type: "dropactivate",
2779
- x: b.x,
2780
- y: b.y,
2781
- target: D
2780
+ x: f.x,
2781
+ y: f.y,
2782
+ target: p
2782
2783
  });
2783
2784
  },
2784
- onDrop(b, D) {
2785
- Z(r), t.state.target && g(b, D || t.state.target);
2785
+ onDrop(f, p) {
2786
+ Y(t), r.state.target && g(f, p || r.state.target);
2786
2787
  },
2787
- onKeyDown(b, D) {
2788
- var E, y;
2789
- let { keyboardDelegate: i } = t.props, d = G(D.items);
2790
- switch (b.key) {
2788
+ onKeyDown(f, p) {
2789
+ var b, y;
2790
+ let { keyboardDelegate: n } = r.props, i = G(p.items);
2791
+ switch (f.key) {
2791
2792
  case "ArrowDown":
2792
- if (i.getKeyBelow) {
2793
- let v = f(t.state.target, d, D.allowedDropOperations, (F, P) => p(F, P, "down"));
2794
- t.state.setTarget(v);
2793
+ if (n.getKeyBelow) {
2794
+ let v = m(r.state.target, i, p.allowedDropOperations, (F, P) => s(F, P, "down"));
2795
+ r.state.setTarget(v);
2795
2796
  }
2796
2797
  break;
2797
2798
  case "ArrowUp":
2798
- if (i.getKeyAbove) {
2799
- let v = f(t.state.target, d, D.allowedDropOperations, (F, P) => p(F, P, "up"));
2800
- t.state.setTarget(v);
2799
+ if (n.getKeyAbove) {
2800
+ let v = m(r.state.target, i, p.allowedDropOperations, (F, P) => s(F, P, "up"));
2801
+ r.state.setTarget(v);
2801
2802
  }
2802
2803
  break;
2803
2804
  case "ArrowLeft":
2804
- if (i.getKeyLeftOf) {
2805
- let v = f(t.state.target, d, D.allowedDropOperations, (F, P) => p(F, P, "left"));
2806
- t.state.setTarget(v);
2805
+ if (n.getKeyLeftOf) {
2806
+ let v = m(r.state.target, i, p.allowedDropOperations, (F, P) => s(F, P, "left"));
2807
+ r.state.setTarget(v);
2807
2808
  }
2808
2809
  break;
2809
2810
  case "ArrowRight":
2810
- if (i.getKeyRightOf) {
2811
- let v = f(t.state.target, d, D.allowedDropOperations, (F, P) => p(F, P, "right"));
2812
- t.state.setTarget(v);
2811
+ if (n.getKeyRightOf) {
2812
+ let v = m(r.state.target, i, p.allowedDropOperations, (F, P) => s(F, P, "right"));
2813
+ r.state.setTarget(v);
2813
2814
  }
2814
2815
  break;
2815
2816
  case "Home":
2816
- if (i.getFirstKey) {
2817
- let v = f(null, d, D.allowedDropOperations, p);
2818
- t.state.setTarget(v);
2817
+ if (n.getFirstKey) {
2818
+ let v = m(null, i, p.allowedDropOperations, s);
2819
+ r.state.setTarget(v);
2819
2820
  }
2820
2821
  break;
2821
2822
  case "End":
2822
- if (i.getLastKey) {
2823
- let v = f(null, d, D.allowedDropOperations, C);
2824
- t.state.setTarget(v);
2823
+ if (n.getLastKey) {
2824
+ let v = m(null, i, p.allowedDropOperations, E);
2825
+ r.state.setTarget(v);
2825
2826
  }
2826
2827
  break;
2827
2828
  case "PageDown":
2828
- if (i.getKeyPageBelow) {
2829
- let v = t.state.target;
2830
- if (!v) v = f(null, d, D.allowedDropOperations, p);
2829
+ if (n.getKeyPageBelow) {
2830
+ let v = r.state.target;
2831
+ if (!v) v = m(null, i, p.allowedDropOperations, s);
2831
2832
  else {
2832
- var s, x;
2833
- let F = (s = i.getFirstKey) === null || s === void 0 ? void 0 : s.call(i);
2833
+ var l, B;
2834
+ let F = (l = n.getFirstKey) === null || l === void 0 ? void 0 : l.call(n);
2834
2835
  v.type === "item" && (F = v.key);
2835
2836
  let P = null;
2836
- F != null && (P = i.getKeyPageBelow(F));
2837
+ F != null && (P = n.getKeyPageBelow(F));
2837
2838
  let V = v.type === "item" ? v.dropPosition : "after";
2838
- if (P == null || v.type === "item" && v.key === ((x = i.getLastKey) === null || x === void 0 ? void 0 : x.call(i))) {
2839
+ if (P == null || v.type === "item" && v.key === ((B = n.getLastKey) === null || B === void 0 ? void 0 : B.call(n))) {
2839
2840
  var $, h;
2840
- P = (h = ($ = i.getLastKey) === null || $ === void 0 ? void 0 : $.call(i)) !== null && h !== void 0 ? h : null, V = "after";
2841
+ P = (h = ($ = n.getLastKey) === null || $ === void 0 ? void 0 : $.call(n)) !== null && h !== void 0 ? h : null, V = "after";
2841
2842
  }
2842
2843
  if (P == null) break;
2843
2844
  v = {
@@ -2845,33 +2846,33 @@ function Fr(e, u, r) {
2845
2846
  key: P,
2846
2847
  dropPosition: V
2847
2848
  };
2848
- let { draggingCollectionRef: R, draggingKeys: M } = z, U = R?.current === r?.current, N = t.state.getDropOperation({
2849
+ let { draggingCollectionRef: R, draggingKeys: M } = z, U = R?.current === t?.current, N = r.state.getDropOperation({
2849
2850
  target: v,
2850
- types: d,
2851
- allowedOperations: D.allowedDropOperations,
2851
+ types: i,
2852
+ allowedOperations: p.allowedDropOperations,
2852
2853
  isInternal: U,
2853
2854
  draggingKeys: M
2854
2855
  });
2855
2856
  var k;
2856
- N === "cancel" && (v = (k = f(v, d, D.allowedDropOperations, p, !1)) !== null && k !== void 0 ? k : f(v, d, D.allowedDropOperations, C, !1));
2857
+ N === "cancel" && (v = (k = m(v, i, p.allowedDropOperations, s, !1)) !== null && k !== void 0 ? k : m(v, i, p.allowedDropOperations, E, !1));
2857
2858
  }
2858
- t.state.setTarget(v ?? t.state.target);
2859
+ r.state.setTarget(v ?? r.state.target);
2859
2860
  }
2860
2861
  break;
2861
2862
  case "PageUp": {
2862
- if (!i.getKeyPageAbove) break;
2863
- let v = t.state.target;
2864
- if (!v) v = f(null, d, D.allowedDropOperations, C);
2863
+ if (!n.getKeyPageAbove) break;
2864
+ let v = r.state.target;
2865
+ if (!v) v = m(null, i, p.allowedDropOperations, E);
2865
2866
  else if (v.type === "item") {
2866
2867
  var T;
2867
- if (v.key === ((T = i.getFirstKey) === null || T === void 0 ? void 0 : T.call(i))) v = {
2868
+ if (v.key === ((T = n.getFirstKey) === null || T === void 0 ? void 0 : T.call(n))) v = {
2868
2869
  type: "root"
2869
2870
  };
2870
2871
  else {
2871
- let R = i.getKeyPageAbove(v.key), M = v.dropPosition;
2872
+ let R = n.getKeyPageAbove(v.key), M = v.dropPosition;
2872
2873
  if (R == null) {
2873
2874
  var K;
2874
- R = (K = i.getFirstKey) === null || K === void 0 ? void 0 : K.call(i), M = "before";
2875
+ R = (K = n.getFirstKey) === null || K === void 0 ? void 0 : K.call(n), M = "before";
2875
2876
  }
2876
2877
  if (R == null) break;
2877
2878
  v = {
@@ -2880,144 +2881,144 @@ function Fr(e, u, r) {
2880
2881
  dropPosition: M
2881
2882
  };
2882
2883
  }
2883
- let { draggingKeys: F } = z, P = H(r), V = t.state.getDropOperation({
2884
+ let { draggingKeys: F } = z, P = H(t), V = r.state.getDropOperation({
2884
2885
  target: v,
2885
- types: d,
2886
- allowedOperations: D.allowedDropOperations,
2886
+ types: i,
2887
+ allowedOperations: p.allowedDropOperations,
2887
2888
  isInternal: P,
2888
2889
  draggingKeys: F
2889
2890
  });
2890
2891
  var O;
2891
- V === "cancel" && (v = (O = f(v, d, D.allowedDropOperations, C, !1)) !== null && O !== void 0 ? O : f(v, d, D.allowedDropOperations, p, !1));
2892
+ V === "cancel" && (v = (O = m(v, i, p.allowedDropOperations, E, !1)) !== null && O !== void 0 ? O : m(v, i, p.allowedDropOperations, s, !1));
2892
2893
  }
2893
- t.state.setTarget(v ?? t.state.target);
2894
+ r.state.setTarget(v ?? r.state.target);
2894
2895
  break;
2895
2896
  }
2896
2897
  }
2897
- (E = (y = t.props).onKeyDown) === null || E === void 0 || E.call(y, b);
2898
+ (b = (y = r.props).onKeyDown) === null || b === void 0 || b.call(y, f);
2898
2899
  }
2899
2900
  });
2900
2901
  }, [
2901
- t,
2902
2902
  r,
2903
+ t,
2903
2904
  g,
2904
- c
2905
+ D
2905
2906
  ]);
2906
- let B = Ie();
2907
- return Ve.set(u, {
2908
- id: B,
2909
- ref: r
2907
+ let x = Pe();
2908
+ return Oe.set(u, {
2909
+ id: x,
2910
+ ref: t
2910
2911
  }), {
2911
- collectionProps: ze(a, {
2912
- id: B,
2912
+ collectionProps: Ie(c, {
2913
+ id: x,
2913
2914
  // Remove description from collection element. If dropping on the entire collection,
2914
2915
  // there should be a drop indicator that has this description, so no need to double announce.
2915
2916
  "aria-describedby": null
2916
2917
  })
2917
2918
  };
2918
2919
  }
2919
- function nt(e, u, r) {
2920
- let { dropProps: t } = rt(), n = nr(u);
2920
+ function rt(e, u, t) {
2921
+ let { dropProps: r } = tt(), o = rr(u);
2921
2922
  L(() => {
2922
- if (r.current) return Dr({
2923
- element: r.current,
2923
+ if (t.current) return pr({
2924
+ element: t.current,
2924
2925
  target: e.target,
2925
- getDropOperation(c, B) {
2926
- let { draggingKeys: p } = z, C = H(n);
2926
+ getDropOperation(D, x) {
2927
+ let { draggingKeys: s } = z, E = H(o);
2927
2928
  return u.getDropOperation({
2928
2929
  target: e.target,
2929
- types: c,
2930
- allowedOperations: B,
2931
- isInternal: C,
2932
- draggingKeys: p
2930
+ types: D,
2931
+ allowedOperations: x,
2932
+ isInternal: E,
2933
+ draggingKeys: s
2933
2934
  });
2934
2935
  },
2935
2936
  activateButtonRef: e.activateButtonRef
2936
2937
  });
2937
2938
  }, [
2938
- r,
2939
+ t,
2939
2940
  e.target,
2940
2941
  u,
2941
- n,
2942
+ o,
2942
2943
  e.activateButtonRef
2943
2944
  ]);
2944
- let o = Le(), { draggingKeys: a } = z, l = H(n), m = o && u.getDropOperation({
2945
+ let a = je(), { draggingKeys: c } = z, d = H(o), C = a && u.getDropOperation({
2945
2946
  target: e.target,
2946
- types: G(o.dragTarget.items),
2947
- allowedOperations: o.dragTarget.allowedDropOperations,
2948
- isInternal: l,
2949
- draggingKeys: a
2947
+ types: G(a.dragTarget.items),
2948
+ allowedOperations: a.dragTarget.allowedDropOperations,
2949
+ isInternal: d,
2950
+ draggingKeys: c
2950
2951
  }) !== "cancel", g = u.isDropTarget(e.target);
2951
2952
  return L(() => {
2952
- o && g && r.current && r.current.focus();
2953
+ a && g && t.current && t.current.focus();
2953
2954
  }, [
2954
2955
  g,
2955
- o,
2956
- r
2956
+ a,
2957
+ t
2957
2958
  ]), {
2958
2959
  dropProps: {
2959
- ...t,
2960
- "aria-hidden": !o || m ? void 0 : "true"
2960
+ ...r,
2961
+ "aria-hidden": !a || C ? void 0 : "true"
2961
2962
  },
2962
2963
  isDropTarget: g
2963
2964
  };
2964
2965
  }
2965
- function Sr(e) {
2966
+ function Fr(e) {
2966
2967
  return e && e.__esModule ? e.default : e;
2967
2968
  }
2968
- function Kr(e, u, r) {
2969
- let { target: t } = e, { collection: n } = u, o = ne(Sr(oe), "@react-aria/dnd"), a = Le(), { dropProps: l } = nt(e, u, r), m = Ie(), g = (D) => {
2970
- var E, y, i, d;
2971
- return D == null ? "" : (d = (i = (E = n.getTextValue) === null || E === void 0 ? void 0 : E.call(n, D)) !== null && i !== void 0 ? i : (y = n.getItem(D)) === null || y === void 0 ? void 0 : y.textValue) !== null && d !== void 0 ? d : "";
2972
- }, c = "", B;
2973
- if (t.type === "root")
2974
- c = o.format("dropOnRoot"), B = `${m} ${rr(u)}`;
2975
- else if (t.dropPosition === "on") c = o.format("dropOnItem", {
2976
- itemText: g(t.key)
2969
+ function Sr(e, u, t) {
2970
+ let { target: r } = e, { collection: o } = u, a = ne(Fr(oe), "@react-aria/dnd"), c = je(), { dropProps: d } = rt(e, u, t), C = Pe(), g = (p) => {
2971
+ var b, y, n, i;
2972
+ return p == null ? "" : (i = (n = (b = o.getTextValue) === null || b === void 0 ? void 0 : b.call(o, p)) !== null && n !== void 0 ? n : (y = o.getItem(p)) === null || y === void 0 ? void 0 : y.textValue) !== null && i !== void 0 ? i : "";
2973
+ }, D = "", x;
2974
+ if (r.type === "root")
2975
+ D = a.format("dropOnRoot"), x = `${C} ${tr(u)}`;
2976
+ else if (r.dropPosition === "on") D = a.format("dropOnItem", {
2977
+ itemText: g(r.key)
2977
2978
  });
2978
2979
  else {
2979
- let D, E;
2980
- if (t.dropPosition === "before") {
2981
- var p;
2982
- let y = (p = n.getItem(t.key)) === null || p === void 0 ? void 0 : p.prevKey, i = y != null ? n.getItem(y) : null;
2983
- D = i?.type === "item" ? i.key : null;
2984
- } else D = t.key;
2985
- if (t.dropPosition === "after") {
2986
- var C;
2987
- let y = (C = n.getItem(t.key)) === null || C === void 0 ? void 0 : C.nextKey, i = y != null ? n.getItem(y) : null;
2988
- E = i?.type === "item" ? i.key : null;
2989
- } else E = t.key;
2990
- D != null && E != null ? c = o.format("insertBetween", {
2991
- beforeItemText: g(D),
2992
- afterItemText: g(E)
2993
- }) : D != null ? c = o.format("insertAfter", {
2994
- itemText: g(D)
2995
- }) : E != null && (c = o.format("insertBefore", {
2996
- itemText: g(E)
2980
+ let p, b;
2981
+ if (r.dropPosition === "before") {
2982
+ var s;
2983
+ let y = (s = o.getItem(r.key)) === null || s === void 0 ? void 0 : s.prevKey, n = y != null ? o.getItem(y) : null;
2984
+ p = n?.type === "item" ? n.key : null;
2985
+ } else p = r.key;
2986
+ if (r.dropPosition === "after") {
2987
+ var E;
2988
+ let y = (E = o.getItem(r.key)) === null || E === void 0 ? void 0 : E.nextKey, n = y != null ? o.getItem(y) : null;
2989
+ b = n?.type === "item" ? n.key : null;
2990
+ } else b = r.key;
2991
+ p != null && b != null ? D = a.format("insertBetween", {
2992
+ beforeItemText: g(p),
2993
+ afterItemText: g(b)
2994
+ }) : p != null ? D = a.format("insertAfter", {
2995
+ itemText: g(p)
2996
+ }) : b != null && (D = a.format("insertBefore", {
2997
+ itemText: g(b)
2997
2998
  }));
2998
2999
  }
2999
- let f = u.isDropTarget(t), b = a ? l["aria-hidden"] : "true";
3000
+ let m = u.isDropTarget(r), f = c ? d["aria-hidden"] : "true";
3000
3001
  return {
3001
3002
  dropIndicatorProps: {
3002
- ...l,
3003
- id: m,
3004
- "aria-roledescription": o.format("dropIndicator"),
3005
- "aria-label": c,
3006
- "aria-labelledby": B,
3007
- "aria-hidden": b,
3003
+ ...d,
3004
+ id: C,
3005
+ "aria-roledescription": a.format("dropIndicator"),
3006
+ "aria-label": D,
3007
+ "aria-labelledby": x,
3008
+ "aria-hidden": f,
3008
3009
  tabIndex: -1
3009
3010
  },
3010
- isDropTarget: f,
3011
+ isDropTarget: m,
3011
3012
  // If aria-hidden, we are either not in a drag session or the drop target is invalid.
3012
3013
  // In that case, there's no need to render anything at all unless we need to show the indicator visually.
3013
3014
  // This can happen when dragging using the native DnD API as opposed to keyboard dragging.
3014
- isHidden: !f && !!b
3015
+ isHidden: !m && !!f
3015
3016
  };
3016
3017
  }
3017
- function Pr(e) {
3018
+ function Kr(e) {
3018
3019
  return e && e.__esModule ? e.default : e;
3019
3020
  }
3020
- const Ir = {
3021
+ const Pr = {
3021
3022
  keyboard: {
3022
3023
  selected: "dragSelectedKeyboard",
3023
3024
  notSelected: "dragDescriptionKeyboard"
@@ -3031,90 +3032,90 @@ const Ir = {
3031
3032
  notSelected: "dragDescriptionVirtual"
3032
3033
  }
3033
3034
  };
3034
- function zr(e, u) {
3035
- let r = ne(Pr(oe), "@react-aria/dnd"), t = u.isDisabled || u.selectionManager.isDisabled(e.key), { dragProps: n, dragButtonProps: o } = $r({
3035
+ function Ir(e, u) {
3036
+ let t = ne(Kr(oe), "@react-aria/dnd"), r = u.isDisabled || u.selectionManager.isDisabled(e.key), { dragProps: o, dragButtonProps: a } = Cr({
3036
3037
  getItems() {
3037
3038
  return u.getItems(e.key);
3038
3039
  },
3039
3040
  preview: u.preview,
3040
3041
  getAllowedDropOperations: u.getAllowedDropOperations,
3041
3042
  hasDragButton: e.hasDragButton,
3042
- onDragStart(E) {
3043
- u.startDrag(e.key, E), cr(u.draggingKeys);
3043
+ onDragStart(b) {
3044
+ u.startDrag(e.key, b), sr(u.draggingKeys);
3044
3045
  },
3045
- onDragMove(E) {
3046
- u.moveDrag(E);
3046
+ onDragMove(b) {
3047
+ u.moveDrag(b);
3047
3048
  },
3048
- onDragEnd(E) {
3049
- let { dropOperation: y } = E, i = y === "cancel" ? !1 : H();
3049
+ onDragEnd(b) {
3050
+ let { dropOperation: y } = b, n = y === "cancel" ? !1 : H();
3050
3051
  u.endDrag({
3051
- ...E,
3052
+ ...b,
3052
3053
  keys: u.draggingKeys,
3053
- isInternal: i
3054
- }), Cu();
3054
+ isInternal: n
3055
+ }), xu();
3055
3056
  }
3056
- }), a = u.collection.getItem(e.key), l = u.getKeysForDrag(e.key).size, m = l > 1 && u.selectionManager.isSelected(e.key), g, c, B = je();
3057
+ }), c = u.collection.getItem(e.key), d = u.getKeysForDrag(e.key).size, C = d > 1 && u.selectionManager.isSelected(e.key), g, D, x = Ve();
3057
3058
  if (!e.hasDragButton && u.selectionManager.selectionMode !== "none") {
3058
- let E = Ir[B][m ? "selected" : "notSelected"];
3059
- e.hasAction && B === "keyboard" && (E += "Alt"), m ? c = r.format(E, {
3060
- count: l
3061
- }) : c = r.format(E), delete n.onClick;
3062
- } else if (m) g = r.format("dragSelectedItems", {
3063
- count: l
3059
+ let b = Pr[x][C ? "selected" : "notSelected"];
3060
+ e.hasAction && x === "keyboard" && (b += "Alt"), C ? D = t.format(b, {
3061
+ count: d
3062
+ }) : D = t.format(b), delete o.onClick;
3063
+ } else if (C) g = t.format("dragSelectedItems", {
3064
+ count: d
3064
3065
  });
3065
3066
  else {
3066
- var p, C, f, b;
3067
- let E = (b = (f = (p = (C = u.collection).getTextValue) === null || p === void 0 ? void 0 : p.call(C, e.key)) !== null && f !== void 0 ? f : a?.textValue) !== null && b !== void 0 ? b : "";
3068
- g = r.format("dragItem", {
3069
- itemText: E
3067
+ var s, E, m, f;
3068
+ let b = (f = (m = (s = (E = u.collection).getTextValue) === null || s === void 0 ? void 0 : s.call(E, e.key)) !== null && m !== void 0 ? m : c?.textValue) !== null && f !== void 0 ? f : "";
3069
+ g = t.format("dragItem", {
3070
+ itemText: b
3070
3071
  });
3071
3072
  }
3072
- let D = Oe(c);
3073
- if (c && Object.assign(n, D), !e.hasDragButton && e.hasAction) {
3074
- let { onKeyDownCapture: E, onKeyUpCapture: y } = n;
3075
- B === "touch" && delete n["aria-describedby"], n.onKeyDownCapture = (i) => {
3076
- i.altKey && E?.(i);
3077
- }, n.onKeyUpCapture = (i) => {
3078
- i.altKey && y?.(i);
3073
+ let p = we(D);
3074
+ if (D && Object.assign(o, p), !e.hasDragButton && e.hasAction) {
3075
+ let { onKeyDownCapture: b, onKeyUpCapture: y } = o;
3076
+ x === "touch" && delete o["aria-describedby"], o.onKeyDownCapture = (n) => {
3077
+ n.altKey && b?.(n);
3078
+ }, o.onKeyUpCapture = (n) => {
3079
+ n.altKey && y?.(n);
3079
3080
  };
3080
3081
  }
3081
3082
  return {
3082
- dragProps: t ? {} : n,
3083
+ dragProps: r ? {} : o,
3083
3084
  dragButtonProps: {
3084
- ...o,
3085
- isDisabled: t,
3085
+ ...a,
3086
+ isDisabled: r,
3086
3087
  "aria-label": g
3087
3088
  }
3088
3089
  };
3089
3090
  }
3090
- function wr(e, u, r) {
3091
- let { draggingCollectionRef: t } = z;
3092
- u.draggingKeys.size > 0 && t?.current !== r.current && sr(r);
3091
+ function zr(e, u, t) {
3092
+ let { draggingCollectionRef: r } = z;
3093
+ u.draggingKeys.size > 0 && r?.current !== t.current && dr(t);
3093
3094
  }
3094
- const Or = /* @__PURE__ */ A.forwardRef(function(u, r) {
3095
- let t = u.children, [n, o] = X(null), a = S(null), l = S(void 0);
3096
- return pt(r, () => (m, g) => {
3097
- let c = t(m), B, p, C;
3098
- c && typeof c == "object" && "element" in c ? (B = c.element, p = c.x, C = c.y) : B = c, Jt(() => {
3099
- o(B);
3100
- }), g(a.current, p, C), l.current = requestAnimationFrame(() => {
3101
- o(null);
3095
+ const wr = /* @__PURE__ */ A.forwardRef(function(u, t) {
3096
+ let r = u.children, [o, a] = Q(null), c = S(null), d = S(void 0);
3097
+ return ct(t, () => (C, g) => {
3098
+ let D = r(C), x, s, E;
3099
+ D && typeof D == "object" && "element" in D ? (x = D.element, s = D.x, E = D.y) : x = D, Yt(() => {
3100
+ a(x);
3101
+ }), g(c.current, s, E), d.current = requestAnimationFrame(() => {
3102
+ a(null);
3102
3103
  });
3103
3104
  }, [
3104
- t
3105
+ r
3105
3106
  ]), L(() => () => {
3106
- l.current && cancelAnimationFrame(l.current);
3107
- }, []), n ? /* @__PURE__ */ A.createElement("div", {
3107
+ d.current && cancelAnimationFrame(d.current);
3108
+ }, []), o ? /* @__PURE__ */ A.createElement("div", {
3108
3109
  style: {
3109
3110
  zIndex: -100,
3110
3111
  position: "absolute",
3111
3112
  top: 0,
3112
3113
  left: -1e5
3113
3114
  },
3114
- ref: a
3115
- }, n) : null;
3115
+ ref: c
3116
+ }, o) : null;
3116
3117
  });
3117
- class Vr {
3118
+ class Or {
3118
3119
  getPrimaryStart(u) {
3119
3120
  return this.orientation === "horizontal" ? u.left : u.top;
3120
3121
  }
@@ -3136,231 +3137,231 @@ class Vr {
3136
3137
  getFlowSize(u) {
3137
3138
  return this.getFlowEnd(u) - this.getFlowStart(u);
3138
3139
  }
3139
- getDropTargetFromPoint(u, r, t) {
3140
- var n;
3140
+ getDropTargetFromPoint(u, t, r) {
3141
+ var o;
3141
3142
  if (this.collection[Symbol.iterator]().next().done || !this.ref.current) return {
3142
3143
  type: "root"
3143
3144
  };
3144
- let o = this.ref.current.getBoundingClientRect(), a = this.orientation === "horizontal" ? u : r, l = this.orientation === "horizontal" ? r : u;
3145
- a += this.getPrimaryStart(o), l += this.getSecondaryStart(o);
3146
- let m = this.layout === "stack" ? a : l, g = this.orientation === "horizontal" && this.direction === "rtl", c = this.layout === "grid" && this.orientation === "vertical" && this.direction === "rtl", B = this.layout === "stack" ? g : c, p = (n = this.ref.current) === null || n === void 0 ? void 0 : n.dataset.collection, C = this.ref.current.querySelectorAll(p ? `[data-collection="${CSS.escape(p)}"]` : "[data-key]"), f = /* @__PURE__ */ new Map();
3147
- for (let d of C) d instanceof HTMLElement && d.dataset.key != null && f.set(d.dataset.key, d);
3148
- let b = [
3145
+ let a = this.ref.current.getBoundingClientRect(), c = this.orientation === "horizontal" ? u : t, d = this.orientation === "horizontal" ? t : u;
3146
+ c += this.getPrimaryStart(a), d += this.getSecondaryStart(a);
3147
+ let C = this.layout === "stack" ? c : d, g = this.orientation === "horizontal" && this.direction === "rtl", D = this.layout === "grid" && this.orientation === "vertical" && this.direction === "rtl", x = this.layout === "stack" ? g : D, s = (o = this.ref.current) === null || o === void 0 ? void 0 : o.dataset.collection, E = this.ref.current.querySelectorAll(s ? `[data-collection="${CSS.escape(s)}"]` : "[data-key]"), m = /* @__PURE__ */ new Map();
3148
+ for (let i of E) i instanceof HTMLElement && i.dataset.key != null && m.set(i.dataset.key, i);
3149
+ let f = [
3149
3150
  ...this.collection
3150
- ].filter((d) => d.type === "item"), D = 0, E = b.length;
3151
- for (; D < E; ) {
3152
- let d = Math.floor((D + E) / 2), s = b[d], x = f.get(String(s.key));
3153
- if (!x) break;
3154
- let $ = x.getBoundingClientRect(), h = (k) => {
3155
- k ? D = d + 1 : E = d;
3151
+ ].filter((i) => i.type === "item"), p = 0, b = f.length;
3152
+ for (; p < b; ) {
3153
+ let i = Math.floor((p + b) / 2), l = f[i], B = m.get(String(l.key));
3154
+ if (!B) break;
3155
+ let $ = B.getBoundingClientRect(), h = (k) => {
3156
+ k ? p = i + 1 : b = i;
3156
3157
  };
3157
- if (a < this.getPrimaryStart($)) h(g);
3158
- else if (a > this.getPrimaryEnd($)) h(!g);
3159
- else if (l < this.getSecondaryStart($)) h(c);
3160
- else if (l > this.getSecondaryEnd($)) h(!c);
3158
+ if (c < this.getPrimaryStart($)) h(g);
3159
+ else if (c > this.getPrimaryEnd($)) h(!g);
3160
+ else if (d < this.getSecondaryStart($)) h(D);
3161
+ else if (d > this.getSecondaryEnd($)) h(!D);
3161
3162
  else {
3162
3163
  let k = {
3163
3164
  type: "item",
3164
- key: s.key,
3165
+ key: l.key,
3165
3166
  dropPosition: "on"
3166
3167
  };
3167
- if (t(k))
3168
- m <= this.getFlowStart($) + 5 && t({
3168
+ if (r(k))
3169
+ C <= this.getFlowStart($) + 5 && r({
3169
3170
  ...k,
3170
3171
  dropPosition: "before"
3171
- }) ? k.dropPosition = B ? "after" : "before" : m >= this.getFlowEnd($) - 5 && t({
3172
+ }) ? k.dropPosition = x ? "after" : "before" : C >= this.getFlowEnd($) - 5 && r({
3172
3173
  ...k,
3173
3174
  dropPosition: "after"
3174
- }) && (k.dropPosition = B ? "before" : "after");
3175
+ }) && (k.dropPosition = x ? "before" : "after");
3175
3176
  else {
3176
3177
  let T = this.getFlowStart($) + this.getFlowSize($) / 2;
3177
- m <= T && t({
3178
+ C <= T && r({
3178
3179
  ...k,
3179
3180
  dropPosition: "before"
3180
- }) ? k.dropPosition = B ? "after" : "before" : m >= T && t({
3181
+ }) ? k.dropPosition = x ? "after" : "before" : C >= T && r({
3181
3182
  ...k,
3182
3183
  dropPosition: "after"
3183
- }) && (k.dropPosition = B ? "before" : "after");
3184
+ }) && (k.dropPosition = x ? "before" : "after");
3184
3185
  }
3185
3186
  return k;
3186
3187
  }
3187
3188
  }
3188
- let y = b[Math.min(D, b.length - 1)], i = f.get(String(y.key));
3189
- return o = i?.getBoundingClientRect(), o && (a < this.getPrimaryStart(o) || Math.abs(m - this.getFlowStart(o)) < Math.abs(m - this.getFlowEnd(o))) ? {
3189
+ let y = f[Math.min(p, f.length - 1)], n = m.get(String(y.key));
3190
+ return a = n?.getBoundingClientRect(), a && (c < this.getPrimaryStart(a) || Math.abs(C - this.getFlowStart(a)) < Math.abs(C - this.getFlowEnd(a))) ? {
3190
3191
  type: "item",
3191
3192
  key: y.key,
3192
- dropPosition: B ? "after" : "before"
3193
+ dropPosition: x ? "after" : "before"
3193
3194
  } : {
3194
3195
  type: "item",
3195
3196
  key: y.key,
3196
- dropPosition: B ? "before" : "after"
3197
+ dropPosition: x ? "before" : "after"
3197
3198
  };
3198
3199
  }
3199
- constructor(u, r, t) {
3200
- this.collection = u, this.ref = r, this.layout = t?.layout || "stack", this.orientation = t?.orientation || "vertical", this.direction = t?.direction || "ltr";
3200
+ constructor(u, t, r) {
3201
+ this.collection = u, this.ref = t, this.layout = r?.layout || "stack", this.orientation = r?.orientation || "vertical", this.direction = r?.direction || "ltr";
3201
3202
  }
3202
3203
  }
3203
- function jr(e) {
3204
+ function Vr(e) {
3204
3205
  return e && e.__esModule ? e.default : e;
3205
3206
  }
3206
- function Lr(e, u) {
3207
- let { key: r } = e, t = u.selectionManager, n = Ie(), o = !u.selectionManager.canSelectItem(r), a = u.selectionManager.isSelected(r), l = () => t.toggleSelection(r);
3208
- const m = ne(jr(It), "@react-aria/grid");
3207
+ function jr(e, u) {
3208
+ let { key: t } = e, r = u.selectionManager, o = Pe(), a = !u.selectionManager.canSelectItem(t), c = u.selectionManager.isSelected(t), d = () => r.toggleSelection(t);
3209
+ const C = ne(Vr(Kt), "@react-aria/grid");
3209
3210
  return {
3210
3211
  checkboxProps: {
3211
- id: n,
3212
- "aria-label": m.format("select"),
3213
- isSelected: a,
3214
- isDisabled: o,
3215
- onChange: l
3212
+ id: o,
3213
+ "aria-label": C.format("select"),
3214
+ isSelected: c,
3215
+ isDisabled: a,
3216
+ onChange: d
3216
3217
  }
3217
3218
  };
3218
3219
  }
3219
- function Rr(e, u) {
3220
- let { key: r } = e;
3221
- const { checkboxProps: t } = Lr(e, u);
3220
+ function Lr(e, u) {
3221
+ let { key: t } = e;
3222
+ const { checkboxProps: r } = jr(e, u);
3222
3223
  return {
3223
3224
  checkboxProps: {
3224
- ...t,
3225
- "aria-labelledby": `${t.id} ${zt(u, r)}`
3225
+ ...r,
3226
+ "aria-labelledby": `${r.id} ${Pt(u, t)}`
3226
3227
  }
3227
3228
  };
3228
3229
  }
3229
- function Mr(e) {
3230
- let { getItems: u, isDisabled: r, collection: t, selectionManager: n, onDragStart: o, onDragMove: a, onDragEnd: l, preview: m, getAllowedDropOperations: g } = e, [, c] = X(!1), B = S(/* @__PURE__ */ new Set()), p = S(null), C = (f) => {
3231
- let b = /* @__PURE__ */ new Set();
3232
- if (n.isSelected(f)) for (let D of n.selectedKeys) {
3233
- let E = t.getItem(D);
3234
- if (E) {
3235
- let y = !1, i = E.parentKey;
3236
- for (; i != null; ) {
3237
- if (n.selectedKeys.has(i)) {
3230
+ function Rr(e) {
3231
+ let { getItems: u, isDisabled: t, collection: r, selectionManager: o, onDragStart: a, onDragMove: c, onDragEnd: d, preview: C, getAllowedDropOperations: g } = e, [, D] = Q(!1), x = S(/* @__PURE__ */ new Set()), s = S(null), E = (m) => {
3232
+ let f = /* @__PURE__ */ new Set();
3233
+ if (o.isSelected(m)) for (let p of o.selectedKeys) {
3234
+ let b = r.getItem(p);
3235
+ if (b) {
3236
+ let y = !1, n = b.parentKey;
3237
+ for (; n != null; ) {
3238
+ if (o.selectedKeys.has(n)) {
3238
3239
  y = !0;
3239
3240
  break;
3240
3241
  }
3241
- let d = t.getItem(i);
3242
- i = d ? d.parentKey : null;
3242
+ let i = r.getItem(n);
3243
+ n = i ? i.parentKey : null;
3243
3244
  }
3244
- y || b.add(D);
3245
+ y || f.add(p);
3245
3246
  }
3246
3247
  }
3247
- else b.add(f);
3248
- return b;
3248
+ else f.add(m);
3249
+ return f;
3249
3250
  };
3250
3251
  return {
3251
- collection: t,
3252
- selectionManager: n,
3252
+ collection: r,
3253
+ selectionManager: o,
3253
3254
  get draggedKey() {
3254
- return p.current;
3255
+ return s.current;
3255
3256
  },
3256
3257
  get draggingKeys() {
3257
- return B.current;
3258
+ return x.current;
3258
3259
  },
3259
- isDragging(f) {
3260
- return B.current.has(f);
3260
+ isDragging(m) {
3261
+ return x.current.has(m);
3261
3262
  },
3262
- getKeysForDrag: C,
3263
- getItems(f) {
3264
- let b = C(f), D = [];
3265
- for (let y of b) {
3266
- var E;
3267
- let i = (E = t.getItem(y)) === null || E === void 0 ? void 0 : E.value;
3268
- i != null && D.push(i);
3263
+ getKeysForDrag: E,
3264
+ getItems(m) {
3265
+ let f = E(m), p = [];
3266
+ for (let y of f) {
3267
+ var b;
3268
+ let n = (b = r.getItem(y)) === null || b === void 0 ? void 0 : b.value;
3269
+ n != null && p.push(n);
3269
3270
  }
3270
- return u(C(f), D);
3271
+ return u(E(m), p);
3271
3272
  },
3272
- isDisabled: r,
3273
- preview: m,
3273
+ isDisabled: t,
3274
+ preview: C,
3274
3275
  getAllowedDropOperations: g,
3275
- startDrag(f, b) {
3276
- let D = C(f);
3277
- B.current = D, p.current = f, n.setFocused(!1), c(!0), typeof o == "function" && o({
3278
- ...b,
3279
- keys: D
3276
+ startDrag(m, f) {
3277
+ let p = E(m);
3278
+ x.current = p, s.current = m, o.setFocused(!1), D(!0), typeof a == "function" && a({
3279
+ ...f,
3280
+ keys: p
3280
3281
  });
3281
3282
  },
3282
- moveDrag(f) {
3283
- typeof a == "function" && a({
3284
- ...f,
3285
- keys: B.current
3283
+ moveDrag(m) {
3284
+ typeof c == "function" && c({
3285
+ ...m,
3286
+ keys: x.current
3286
3287
  });
3287
3288
  },
3288
- endDrag(f) {
3289
- let { isInternal: b } = f;
3290
- typeof l == "function" && l({
3291
- ...f,
3292
- keys: B.current,
3293
- isInternal: b
3294
- }), B.current = /* @__PURE__ */ new Set(), p.current = null, c(!1);
3289
+ endDrag(m) {
3290
+ let { isInternal: f } = m;
3291
+ typeof d == "function" && d({
3292
+ ...m,
3293
+ keys: x.current,
3294
+ isInternal: f
3295
+ }), x.current = /* @__PURE__ */ new Set(), s.current = null, D(!1);
3295
3296
  }
3296
3297
  };
3297
3298
  }
3298
- function Nr(e) {
3299
- let { acceptedDragTypes: u = "all", isDisabled: r, onInsert: t, onRootDrop: n, onItemDrop: o, onReorder: a, onMove: l, shouldAcceptItemDrop: m, collection: g, selectionManager: c, onDropEnter: B, getDropOperation: p, onDrop: C } = e, [f, b] = X(null), D = S(null), E = (i) => {
3300
- if (i.dropPosition === "before") {
3301
- let d = g.getItem(i.key);
3302
- return d && d.prevKey != null ? {
3299
+ function Mr(e) {
3300
+ let { acceptedDragTypes: u = "all", isDisabled: t, onInsert: r, onRootDrop: o, onItemDrop: a, onReorder: c, onMove: d, shouldAcceptItemDrop: C, collection: g, selectionManager: D, onDropEnter: x, getDropOperation: s, onDrop: E } = e, [m, f] = Q(null), p = S(null), b = (n) => {
3301
+ if (n.dropPosition === "before") {
3302
+ let i = g.getItem(n.key);
3303
+ return i && i.prevKey != null ? {
3303
3304
  type: "item",
3304
- key: d.prevKey,
3305
+ key: i.prevKey,
3305
3306
  dropPosition: "after"
3306
3307
  } : null;
3307
- } else if (i.dropPosition === "after") {
3308
- let d = g.getItem(i.key);
3309
- return d && d.nextKey != null ? {
3308
+ } else if (n.dropPosition === "after") {
3309
+ let i = g.getItem(n.key);
3310
+ return i && i.nextKey != null ? {
3310
3311
  type: "item",
3311
- key: d.nextKey,
3312
+ key: i.nextKey,
3312
3313
  dropPosition: "before"
3313
3314
  } : null;
3314
3315
  }
3315
3316
  return null;
3316
- }, y = J((i) => {
3317
- let { target: d, types: s, allowedOperations: x, isInternal: $, draggingKeys: h } = i;
3318
- if (r || !d) return "cancel";
3319
- if (u === "all" || u.some((k) => s.has(k))) {
3320
- let k = t && d.type === "item" && !$ && (d.dropPosition === "before" || d.dropPosition === "after"), T = a && d.type === "item" && $ && (d.dropPosition === "before" || d.dropPosition === "after") && Hr(g, d, h), K = d.type !== "item" || d.dropPosition !== "on" || !m || m(d, s), O = l && d.type === "item" && $ && K, v = n && d.type === "root" && !$, F = o && d.type === "item" && d.dropPosition === "on" && !($ && d.key != null && h.has(d.key)) && K;
3321
- if (C || k || T || O || v || F)
3322
- return p ? p(d, s, x) : x[0];
3317
+ }, y = Z((n) => {
3318
+ let { target: i, types: l, allowedOperations: B, isInternal: $, draggingKeys: h } = n;
3319
+ if (t || !i) return "cancel";
3320
+ if (u === "all" || u.some((k) => l.has(k))) {
3321
+ let k = r && i.type === "item" && !$ && (i.dropPosition === "before" || i.dropPosition === "after"), T = c && i.type === "item" && $ && (i.dropPosition === "before" || i.dropPosition === "after") && Nr(g, i, h), K = i.type !== "item" || i.dropPosition !== "on" || !C || C(i, l), O = d && i.type === "item" && $ && K, v = o && i.type === "root" && !$, F = a && i.type === "item" && i.dropPosition === "on" && !($ && i.key != null && h.has(i.key)) && K;
3322
+ if (E || k || T || O || v || F)
3323
+ return s ? s(i, l, B) : B[0];
3323
3324
  }
3324
3325
  return "cancel";
3325
3326
  }, [
3326
- r,
3327
+ t,
3327
3328
  g,
3328
3329
  u,
3329
- p,
3330
- t,
3331
- n,
3330
+ s,
3331
+ r,
3332
3332
  o,
3333
- m,
3334
3333
  a,
3335
- l,
3336
- C
3334
+ C,
3335
+ c,
3336
+ d,
3337
+ E
3337
3338
  ]);
3338
3339
  return {
3339
3340
  collection: g,
3340
- selectionManager: c,
3341
- isDisabled: r,
3342
- target: f,
3343
- setTarget(i) {
3344
- if (this.isDropTarget(i)) return;
3345
- let d = D.current;
3346
- d && typeof e.onDropExit == "function" && e.onDropExit({
3341
+ selectionManager: D,
3342
+ isDisabled: t,
3343
+ target: m,
3344
+ setTarget(n) {
3345
+ if (this.isDropTarget(n)) return;
3346
+ let i = p.current;
3347
+ i && typeof e.onDropExit == "function" && e.onDropExit({
3347
3348
  type: "dropexit",
3348
3349
  x: 0,
3349
3350
  y: 0,
3350
- target: d
3351
- }), i && typeof B == "function" && B({
3351
+ target: i
3352
+ }), n && typeof x == "function" && x({
3352
3353
  type: "dropenter",
3353
3354
  x: 0,
3354
3355
  y: 0,
3355
- target: i
3356
- }), D.current = i ?? null, b(i ?? null);
3356
+ target: n
3357
+ }), p.current = n ?? null, f(n ?? null);
3357
3358
  },
3358
- isDropTarget(i) {
3359
- let d = D.current;
3360
- return !d || !i ? !1 : he(i, d) ? !0 : i?.type === "item" && d?.type === "item" && i.key !== d.key && i.dropPosition !== d.dropPosition && i.dropPosition !== "on" && d.dropPosition !== "on" ? he(E(i), d) || he(i, E(d)) : !1;
3359
+ isDropTarget(n) {
3360
+ let i = p.current;
3361
+ return !i || !n ? !1 : he(n, i) ? !0 : n?.type === "item" && i?.type === "item" && n.key !== i.key && n.dropPosition !== i.dropPosition && n.dropPosition !== "on" && i.dropPosition !== "on" ? he(b(n), i) || he(n, b(i)) : !1;
3361
3362
  },
3362
- getDropOperation(i) {
3363
- return y(i);
3363
+ getDropOperation(n) {
3364
+ return y(n);
3364
3365
  }
3365
3366
  };
3366
3367
  }
@@ -3373,264 +3374,59 @@ function he(e, u) {
3373
3374
  return u?.type === "item" && u?.key === e.key && u?.dropPosition === e.dropPosition;
3374
3375
  }
3375
3376
  }
3376
- function Hr(e, u, r) {
3377
- let t = e.getItem(u.key);
3378
- for (let n of r) {
3379
- let o = e.getItem(n);
3380
- if (o?.parentKey !== t?.parentKey) return !1;
3381
- }
3382
- return !0;
3383
- }
3384
- function Ur(e) {
3385
- let { initialItems: u = [], initialSelectedKeys: r, getKey: t = (g) => {
3386
- var c;
3387
- return (c = g.id) !== null && c !== void 0 ? c : g.key;
3388
- }, filter: n, initialFilterText: o = "" } = e, [a, l] = X({
3389
- items: u,
3390
- selectedKeys: r === "all" ? "all" : new Set(r || []),
3391
- filterText: o
3392
- }), m = Ke(() => n ? a.items.filter((g) => n(g, a.filterText)) : a.items, [
3393
- a.items,
3394
- a.filterText,
3395
- n
3396
- ]);
3397
- return {
3398
- ...a,
3399
- items: m,
3400
- ...qr({
3401
- getKey: t
3402
- }, l),
3403
- getItem(g) {
3404
- return a.items.find((c) => t(c) === g);
3405
- }
3406
- };
3407
- }
3408
- function qr(e, u) {
3409
- let { cursor: r, getKey: t } = e;
3410
- return {
3411
- setSelectedKeys(n) {
3412
- u((o) => ({
3413
- ...o,
3414
- selectedKeys: n
3415
- }));
3416
- },
3417
- addKeysToSelection(n) {
3418
- u((o) => o.selectedKeys === "all" ? o : n === "all" ? {
3419
- ...o,
3420
- selectedKeys: "all"
3421
- } : {
3422
- ...o,
3423
- selectedKeys: /* @__PURE__ */ new Set([
3424
- ...o.selectedKeys,
3425
- ...n
3426
- ])
3427
- });
3428
- },
3429
- removeKeysFromSelection(n) {
3430
- u((o) => {
3431
- if (n === "all") return {
3432
- ...o,
3433
- selectedKeys: /* @__PURE__ */ new Set()
3434
- };
3435
- let a = o.selectedKeys === "all" ? new Set(o.items.map(t)) : new Set(o.selectedKeys);
3436
- for (let l of n) a.delete(l);
3437
- return {
3438
- ...o,
3439
- selectedKeys: a
3440
- };
3441
- });
3442
- },
3443
- setFilterText(n) {
3444
- u((o) => ({
3445
- ...o,
3446
- filterText: n
3447
- }));
3448
- },
3449
- insert(n, ...o) {
3450
- u((a) => ue(a, n, ...o));
3451
- },
3452
- insertBefore(n, ...o) {
3453
- u((a) => {
3454
- let l = a.items.findIndex((m) => t?.(m) === n);
3455
- if (l === -1)
3456
- if (a.items.length === 0) l = 0;
3457
- else return a;
3458
- return ue(a, l, ...o);
3459
- });
3460
- },
3461
- insertAfter(n, ...o) {
3462
- u((a) => {
3463
- let l = a.items.findIndex((m) => t?.(m) === n);
3464
- if (l === -1)
3465
- if (a.items.length === 0) l = 0;
3466
- else return a;
3467
- return ue(a, l + 1, ...o);
3468
- });
3469
- },
3470
- prepend(...n) {
3471
- u((o) => ue(o, 0, ...n));
3472
- },
3473
- append(...n) {
3474
- u((o) => ue(o, o.items.length, ...n));
3475
- },
3476
- remove(...n) {
3477
- u((o) => {
3478
- let a = new Set(n), l = o.items.filter((g) => !a.has(t(g))), m = "all";
3479
- if (o.selectedKeys !== "all") {
3480
- m = new Set(o.selectedKeys);
3481
- for (let g of n) m.delete(g);
3482
- }
3483
- return r == null && l.length === 0 && (m = /* @__PURE__ */ new Set()), {
3484
- ...o,
3485
- items: l,
3486
- selectedKeys: m
3487
- };
3488
- });
3489
- },
3490
- removeSelectedItems() {
3491
- u((n) => {
3492
- if (n.selectedKeys === "all") return {
3493
- ...n,
3494
- items: [],
3495
- selectedKeys: /* @__PURE__ */ new Set()
3496
- };
3497
- let o = n.selectedKeys, a = n.items.filter((l) => !o.has(t(l)));
3498
- return {
3499
- ...n,
3500
- items: a,
3501
- selectedKeys: /* @__PURE__ */ new Set()
3502
- };
3503
- });
3504
- },
3505
- move(n, o) {
3506
- u((a) => {
3507
- let l = a.items.findIndex((c) => t(c) === n);
3508
- if (l === -1) return a;
3509
- let m = a.items.slice(), [g] = m.splice(l, 1);
3510
- return m.splice(o, 0, g), {
3511
- ...a,
3512
- items: m
3513
- };
3514
- });
3515
- },
3516
- moveBefore(n, o) {
3517
- u((a) => {
3518
- let l = a.items.findIndex((c) => t(c) === n);
3519
- if (l === -1) return a;
3520
- let g = (Array.isArray(o) ? o : [
3521
- ...o
3522
- ]).map((c) => a.items.findIndex((B) => t(B) === c)).sort((c, B) => c - B);
3523
- return We(a, g, l);
3524
- });
3525
- },
3526
- moveAfter(n, o) {
3527
- u((a) => {
3528
- let l = a.items.findIndex((c) => t(c) === n);
3529
- if (l === -1) return a;
3530
- let g = (Array.isArray(o) ? o : [
3531
- ...o
3532
- ]).map((c) => a.items.findIndex((B) => t(B) === c)).sort((c, B) => c - B);
3533
- return We(a, g, l + 1);
3534
- });
3535
- },
3536
- update(n, o) {
3537
- u((a) => {
3538
- let l = a.items.findIndex((m) => t(m) === n);
3539
- return l === -1 ? a : {
3540
- ...a,
3541
- items: [
3542
- ...a.items.slice(0, l),
3543
- o,
3544
- ...a.items.slice(l + 1)
3545
- ]
3546
- };
3547
- });
3548
- }
3549
- };
3550
- }
3551
- function ue(e, u, ...r) {
3552
- return {
3553
- ...e,
3554
- items: [
3555
- ...e.items.slice(0, u),
3556
- ...r,
3557
- ...e.items.slice(u)
3558
- ]
3559
- };
3560
- }
3561
- function We(e, u, r) {
3562
- r -= u.filter((o) => o < r).length;
3563
- let t = u.map((o) => ({
3564
- from: o,
3565
- to: r++
3566
- }));
3567
- for (let o = 0; o < t.length; o++) {
3568
- let a = t[o].from;
3569
- for (let l = o; l < t.length; l++)
3570
- t[l].from > a && t[l].from--;
3571
- }
3572
- for (let o = 0; o < t.length; o++) {
3573
- let a = t[o];
3574
- for (let l = t.length - 1; l > o; l--) {
3575
- let m = t[l];
3576
- m.from < a.to ? a.to++ : m.from++;
3577
- }
3578
- }
3579
- let n = e.items.slice();
3377
+ function Nr(e, u, t) {
3378
+ let r = e.getItem(u.key);
3580
3379
  for (let o of t) {
3581
- let [a] = n.splice(o.from, 1);
3582
- n.splice(o.to, 0, a);
3380
+ let a = e.getItem(o);
3381
+ if (a?.parentKey !== r?.parentKey) return !1;
3583
3382
  }
3584
- return {
3585
- ...e,
3586
- items: n
3587
- };
3383
+ return !0;
3588
3384
  }
3589
- const Gr = /* @__PURE__ */ Dt(null), Xr = /* @__PURE__ */ uu(function(u, r) {
3590
- return [u, r] = ou(u, r, Gr), /* @__PURE__ */ A.createElement(Ft, {
3591
- content: /* @__PURE__ */ A.createElement(St, u)
3592
- }, (t) => /* @__PURE__ */ A.createElement(Yr, {
3385
+ const Hr = /* @__PURE__ */ pt(null), Ur = /* @__PURE__ */ _e(function(u, t) {
3386
+ return [u, t] = ru(u, t, Hr), /* @__PURE__ */ A.createElement(At, {
3387
+ content: /* @__PURE__ */ A.createElement(Tt, u)
3388
+ }, (r) => /* @__PURE__ */ A.createElement(qr, {
3593
3389
  props: u,
3594
- collection: t,
3595
- gridListRef: r
3390
+ collection: r,
3391
+ gridListRef: t
3596
3392
  }));
3597
3393
  });
3598
- function Yr({ props: e, collection: u, gridListRef: r }) {
3599
- [e, r] = ou(e, r, ru);
3600
- let { shouldUseVirtualFocus: t, filter: n, disallowTypeAhead: o, ...a } = e, { dragAndDropHooks: l, keyboardNavigationBehavior: m = "arrow", layout: g = "stack" } = e, { CollectionRoot: c, isVirtualized: B, layoutDelegate: p, dropTargetDelegate: C } = W(ke), f = Kt({
3601
- ...a,
3394
+ function qr({ props: e, collection: u, gridListRef: t }) {
3395
+ [e, t] = ru(e, t, uu);
3396
+ let { shouldUseVirtualFocus: r, filter: o, disallowTypeAhead: a, ...c } = e, { dragAndDropHooks: d, keyboardNavigationBehavior: C = "arrow", layout: g = "stack" } = e, { CollectionRoot: D, isVirtualized: x, layoutDelegate: s, dropTargetDelegate: E } = J(ke), m = Ft({
3397
+ ...c,
3602
3398
  collection: u,
3603
3399
  children: void 0,
3604
- layoutDelegate: p
3605
- }), b = Pt(f, n), D = Lt({
3400
+ layoutDelegate: s
3401
+ }), f = St(m, o), p = Vt({
3606
3402
  usage: "search",
3607
3403
  sensitivity: "base"
3608
- }), { disabledBehavior: E, disabledKeys: y } = b.selectionManager, { direction: i } = su(), d = Ke(() => new Ue({
3609
- collection: b.collection,
3610
- collator: D,
3611
- ref: r,
3404
+ }), { disabledBehavior: b, disabledKeys: y } = f.selectionManager, { direction: n } = lu(), i = eu(() => new He({
3405
+ collection: f.collection,
3406
+ collator: p,
3407
+ ref: t,
3612
3408
  disabledKeys: y,
3613
- disabledBehavior: E,
3614
- layoutDelegate: p,
3409
+ disabledBehavior: b,
3410
+ layoutDelegate: s,
3615
3411
  layout: g,
3616
- direction: i
3412
+ direction: n
3617
3413
  }), [
3618
- b.collection,
3619
- r,
3414
+ f.collection,
3415
+ t,
3620
3416
  g,
3621
3417
  y,
3622
- E,
3418
+ b,
3419
+ s,
3623
3420
  p,
3624
- D,
3625
- i
3626
- ]), { gridProps: s } = Ot({
3627
- ...a,
3628
- keyboardDelegate: d,
3421
+ n
3422
+ ]), { gridProps: l } = zt({
3423
+ ...c,
3424
+ keyboardDelegate: i,
3629
3425
  // Only tab navigation is supported in grid layout.
3630
- keyboardNavigationBehavior: g === "grid" ? "tab" : m,
3631
- isVirtualized: B,
3426
+ keyboardNavigationBehavior: g === "grid" ? "tab" : C,
3427
+ isVirtualized: x,
3632
3428
  shouldSelectOnPressUp: e.shouldSelectOnPressUp
3633
- }, b, r), x = b.selectionManager, $ = !!l?.useDraggableCollectionState, h = !!l?.useDroppableCollectionState, k = S($), T = S(h);
3429
+ }, f, t), B = f.selectionManager, $ = !!d?.useDraggableCollectionState, h = !!d?.useDroppableCollectionState, k = S($), T = S(h);
3634
3430
  L(() => {
3635
3431
  process.env.NODE_ENV !== "production" && (k.current !== $ && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), T.current !== h && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
3636
3432
  }, [
@@ -3638,54 +3434,54 @@ function Yr({ props: e, collection: u, gridListRef: r }) {
3638
3434
  h
3639
3435
  ]);
3640
3436
  let K, O, v, F = !1, P = null, V = S(null);
3641
- if ($ && l) {
3642
- K = l.useDraggableCollectionState({
3643
- collection: b.collection,
3644
- selectionManager: x,
3645
- preview: l.renderDragPreview ? V : void 0
3646
- }), l.useDraggableCollection({}, K, r);
3647
- let _ = l.DragPreview;
3648
- P = l.renderDragPreview ? /* @__PURE__ */ A.createElement(_, {
3437
+ if ($ && d) {
3438
+ K = d.useDraggableCollectionState({
3439
+ collection: f.collection,
3440
+ selectionManager: B,
3441
+ preview: d.renderDragPreview ? V : void 0
3442
+ }), d.useDraggableCollection({}, K, t);
3443
+ let _ = d.DragPreview;
3444
+ P = d.renderDragPreview ? /* @__PURE__ */ A.createElement(_, {
3649
3445
  ref: V
3650
- }, l.renderDragPreview) : null;
3446
+ }, d.renderDragPreview) : null;
3651
3447
  }
3652
- if (h && l) {
3653
- O = l.useDroppableCollectionState({
3654
- collection: b.collection,
3655
- selectionManager: x
3448
+ if (h && d) {
3449
+ O = d.useDroppableCollectionState({
3450
+ collection: f.collection,
3451
+ selectionManager: B
3656
3452
  });
3657
- let _ = new Ue({
3658
- collection: b.collection,
3659
- disabledKeys: x.disabledKeys,
3660
- disabledBehavior: x.disabledBehavior,
3661
- ref: r
3662
- }), dt = l.dropTargetDelegate || C || new l.ListDropTargetDelegate(u, r, {
3453
+ let _ = new He({
3454
+ collection: f.collection,
3455
+ disabledKeys: B.disabledKeys,
3456
+ disabledBehavior: B.disabledBehavior,
3457
+ ref: t
3458
+ }), lt = d.dropTargetDelegate || E || new d.ListDropTargetDelegate(u, t, {
3663
3459
  layout: g,
3664
- direction: i
3460
+ direction: n
3665
3461
  });
3666
- v = l.useDroppableCollection({
3462
+ v = d.useDroppableCollection({
3667
3463
  keyboardDelegate: _,
3668
- dropTargetDelegate: dt
3669
- }, O, r), F = O.isDropTarget({
3464
+ dropTargetDelegate: lt
3465
+ }, O, t), F = O.isDropTarget({
3670
3466
  type: "root"
3671
3467
  });
3672
3468
  }
3673
- let { focusProps: R, isFocused: M, isFocusVisible: U } = du(), N = b.collection.size === 0, q = {
3469
+ let { focusProps: R, isFocused: M, isFocusVisible: U } = iu(), N = f.collection.size === 0, q = {
3674
3470
  isDropTarget: F,
3675
3471
  isEmpty: N,
3676
3472
  isFocused: M,
3677
3473
  isFocusVisible: U,
3678
3474
  layout: g,
3679
- state: b
3680
- }, be = Pe({
3475
+ state: f
3476
+ }, be = Ke({
3681
3477
  className: e.className,
3682
3478
  style: e.style,
3683
3479
  defaultClassName: "react-aria-GridList",
3684
3480
  values: q
3685
- }), He = null, at = null;
3481
+ }), Ne = null, at = null;
3686
3482
  if (N && e.renderEmptyState) {
3687
3483
  let _ = e.renderEmptyState(q);
3688
- He = /* @__PURE__ */ A.createElement("div", {
3484
+ Ne = /* @__PURE__ */ A.createElement("div", {
3689
3485
  role: "row",
3690
3486
  "aria-rowindex": 1,
3691
3487
  style: {
@@ -3698,12 +3494,12 @@ function Yr({ props: e, collection: u, gridListRef: r }) {
3698
3494
  }
3699
3495
  }, _));
3700
3496
  }
3701
- let lt = au(e, {
3497
+ let it = ou(e, {
3702
3498
  global: !0
3703
3499
  });
3704
- return /* @__PURE__ */ A.createElement(jt, null, /* @__PURE__ */ A.createElement("div", {
3705
- ...ze(lt, be, s, R, v?.collectionProps, at),
3706
- ref: r,
3500
+ return /* @__PURE__ */ A.createElement(Ot, null, /* @__PURE__ */ A.createElement("div", {
3501
+ ...Ie(it, be, l, R, v?.collectionProps, at),
3502
+ ref: t,
3707
3503
  slot: e.slot || void 0,
3708
3504
  onScroll: e.onScroll,
3709
3505
  "data-drop-target": F || void 0,
@@ -3711,88 +3507,88 @@ function Yr({ props: e, collection: u, gridListRef: r }) {
3711
3507
  "data-focused": M || void 0,
3712
3508
  "data-focus-visible": U || void 0,
3713
3509
  "data-layout": g
3714
- }, /* @__PURE__ */ A.createElement(nu, {
3510
+ }, /* @__PURE__ */ A.createElement(tu, {
3715
3511
  values: [
3716
3512
  [
3717
3513
  Ae,
3718
- b
3514
+ f
3719
3515
  ],
3720
3516
  [
3721
3517
  Be,
3722
3518
  {
3723
- dragAndDropHooks: l,
3519
+ dragAndDropHooks: d,
3724
3520
  dragState: K,
3725
3521
  dropState: O
3726
3522
  }
3727
3523
  ],
3728
3524
  [
3729
- Ct,
3525
+ Et,
3730
3526
  {
3731
- render: Jr
3527
+ render: Xr
3732
3528
  }
3733
3529
  ]
3734
3530
  ]
3735
- }, h && /* @__PURE__ */ A.createElement(_r, null), /* @__PURE__ */ A.createElement(ht, null, /* @__PURE__ */ A.createElement(c, {
3736
- collection: b.collection,
3737
- scrollRef: r,
3738
- persistedKeys: yt(x, l, O),
3739
- renderDropIndicator: $t(l, O)
3740
- }))), He, P));
3531
+ }, h && /* @__PURE__ */ A.createElement(Jr, null), /* @__PURE__ */ A.createElement(yt, null, /* @__PURE__ */ A.createElement(D, {
3532
+ collection: f.collection,
3533
+ scrollRef: t,
3534
+ persistedKeys: Ct(B, d, O),
3535
+ renderDropIndicator: xt(d, O)
3536
+ }))), Ne, P));
3741
3537
  }
3742
- const Zr = /* @__PURE__ */ At(Tt, function(u, r, t) {
3743
- let n = W(Ae), { dragAndDropHooks: o, dragState: a, dropState: l } = W(Be), m = lu(r), { isVirtualized: g } = W(ke), { rowProps: c, gridCellProps: B, descriptionProps: p, ...C } = wt({
3744
- node: t,
3745
- shouldSelectOnPressUp: !!a,
3538
+ const Gr = /* @__PURE__ */ ht(kt, function(u, t, r) {
3539
+ let o = J(Ae), { dragAndDropHooks: a, dragState: c, dropState: d } = J(Be), C = au(t), { isVirtualized: g } = J(ke), { rowProps: D, gridCellProps: x, descriptionProps: s, ...E } = It({
3540
+ node: r,
3541
+ shouldSelectOnPressUp: !!c,
3746
3542
  isVirtualized: g
3747
- }, n, m), { hoverProps: f, isHovered: b } = Vt({
3748
- isDisabled: !C.allowsSelection && !C.hasAction,
3749
- onHoverStart: t.props.onHoverStart,
3750
- onHoverChange: t.props.onHoverChange,
3751
- onHoverEnd: t.props.onHoverEnd
3752
- }), { isFocusVisible: D, focusProps: E } = du(), { checkboxProps: y } = Rr({
3753
- key: t.key
3754
- }, n), i = n.selectionManager.disabledBehavior === "all" && C.isDisabled ? {
3543
+ }, o, C), { hoverProps: m, isHovered: f } = wt({
3544
+ isDisabled: !E.allowsSelection && !E.hasAction,
3545
+ onHoverStart: r.props.onHoverStart,
3546
+ onHoverChange: r.props.onHoverChange,
3547
+ onHoverEnd: r.props.onHoverEnd
3548
+ }), { isFocusVisible: p, focusProps: b } = iu(), { checkboxProps: y } = Lr({
3549
+ key: r.key
3550
+ }, o), n = o.selectionManager.disabledBehavior === "all" && E.isDisabled ? {
3755
3551
  isDisabled: !0
3756
- } : {}, d = null;
3757
- a && o && (d = o.useDraggableItem({
3758
- key: t.key,
3552
+ } : {}, i = null;
3553
+ c && a && (i = a.useDraggableItem({
3554
+ key: r.key,
3759
3555
  hasDragButton: !0
3760
- }, a));
3761
- let s = null, x = S(null), { visuallyHiddenProps: $ } = we();
3762
- l && o && (s = o.useDropIndicator({
3556
+ }, c));
3557
+ let l = null, B = S(null), { visuallyHiddenProps: $ } = ze();
3558
+ d && a && (l = a.useDropIndicator({
3763
3559
  target: {
3764
3560
  type: "item",
3765
- key: t.key,
3561
+ key: r.key,
3766
3562
  dropPosition: "on"
3767
3563
  }
3768
- }, l, x));
3769
- let h = a && a.isDragging(t.key), k = Pe({
3564
+ }, d, B));
3565
+ let h = c && c.isDragging(r.key), k = Ke({
3770
3566
  ...u,
3771
3567
  id: void 0,
3772
- children: t.rendered,
3568
+ children: r.rendered,
3773
3569
  defaultClassName: "react-aria-GridListItem",
3774
3570
  values: {
3775
- ...C,
3776
- isHovered: b,
3777
- isFocusVisible: D,
3778
- selectionMode: n.selectionManager.selectionMode,
3779
- selectionBehavior: n.selectionManager.selectionBehavior,
3780
- allowsDragging: !!a,
3571
+ ...E,
3572
+ isHovered: f,
3573
+ isFocusVisible: p,
3574
+ selectionMode: o.selectionManager.selectionMode,
3575
+ selectionBehavior: o.selectionManager.selectionBehavior,
3576
+ allowsDragging: !!c,
3781
3577
  isDragging: h,
3782
- isDropTarget: s?.isDropTarget
3578
+ isDropTarget: l?.isDropTarget
3783
3579
  }
3784
3580
  }), T = S(null);
3785
3581
  L(() => {
3786
- a && !T.current && console.warn('Draggable items in a GridList must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
3582
+ c && !T.current && console.warn('Draggable items in a GridList must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
3787
3583
  }, []), L(() => {
3788
- !t.textValue && process.env.NODE_ENV !== "production" && console.warn("A `textValue` prop is required for <GridListItem> elements with non-plain text children in order to support accessibility features such as type to select.");
3584
+ !r.textValue && process.env.NODE_ENV !== "production" && console.warn("A `textValue` prop is required for <GridListItem> elements with non-plain text children in order to support accessibility features such as type to select.");
3789
3585
  }, [
3790
- t.textValue
3586
+ r.textValue
3791
3587
  ]);
3792
- let K = au(u, {
3588
+ let K = ou(u, {
3793
3589
  global: !0
3794
3590
  });
3795
- return delete K.id, delete K.onClick, /* @__PURE__ */ A.createElement(A.Fragment, null, s && !s.isHidden && /* @__PURE__ */ A.createElement("div", {
3591
+ return delete K.id, delete K.onClick, /* @__PURE__ */ A.createElement(A.Fragment, null, l && !l.isHidden && /* @__PURE__ */ A.createElement("div", {
3796
3592
  role: "row",
3797
3593
  style: {
3798
3594
  position: "absolute"
@@ -3802,44 +3598,44 @@ const Zr = /* @__PURE__ */ At(Tt, function(u, r, t) {
3802
3598
  }, /* @__PURE__ */ A.createElement("div", {
3803
3599
  role: "button",
3804
3600
  ...$,
3805
- ...s?.dropIndicatorProps,
3806
- ref: x
3601
+ ...l?.dropIndicatorProps,
3602
+ ref: B
3807
3603
  }))), /* @__PURE__ */ A.createElement("div", {
3808
- ...ze(K, k, c, E, f, d?.dragProps),
3809
- ref: m,
3810
- "data-selected": C.isSelected || void 0,
3811
- "data-disabled": C.isDisabled || void 0,
3812
- "data-hovered": b || void 0,
3813
- "data-focused": C.isFocused || void 0,
3814
- "data-focus-visible": D || void 0,
3815
- "data-pressed": C.isPressed || void 0,
3816
- "data-allows-dragging": !!a || void 0,
3604
+ ...Ie(K, k, D, b, m, i?.dragProps),
3605
+ ref: C,
3606
+ "data-selected": E.isSelected || void 0,
3607
+ "data-disabled": E.isDisabled || void 0,
3608
+ "data-hovered": f || void 0,
3609
+ "data-focused": E.isFocused || void 0,
3610
+ "data-focus-visible": p || void 0,
3611
+ "data-pressed": E.isPressed || void 0,
3612
+ "data-allows-dragging": !!c || void 0,
3817
3613
  "data-dragging": h || void 0,
3818
- "data-drop-target": s?.isDropTarget || void 0,
3819
- "data-selection-mode": n.selectionManager.selectionMode === "none" ? void 0 : n.selectionManager.selectionMode
3614
+ "data-drop-target": l?.isDropTarget || void 0,
3615
+ "data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode
3820
3616
  }, /* @__PURE__ */ A.createElement("div", {
3821
- ...B,
3617
+ ...x,
3822
3618
  style: {
3823
3619
  display: "contents"
3824
3620
  }
3825
- }, /* @__PURE__ */ A.createElement(nu, {
3621
+ }, /* @__PURE__ */ A.createElement(tu, {
3826
3622
  values: [
3827
3623
  [
3828
- Bt,
3624
+ mt,
3829
3625
  {
3830
3626
  slots: {
3831
- [xe]: {},
3627
+ [Ee]: {},
3832
3628
  selection: y
3833
3629
  }
3834
3630
  }
3835
3631
  ],
3836
3632
  [
3837
- ft,
3633
+ gt,
3838
3634
  {
3839
3635
  slots: {
3840
- [xe]: i,
3636
+ [Ee]: n,
3841
3637
  drag: {
3842
- ...d?.dragButtonProps,
3638
+ ...i?.dragButtonProps,
3843
3639
  ref: T,
3844
3640
  style: {
3845
3641
  pointerEvents: "none"
@@ -3849,84 +3645,84 @@ const Zr = /* @__PURE__ */ At(Tt, function(u, r, t) {
3849
3645
  }
3850
3646
  ],
3851
3647
  [
3852
- kt,
3648
+ vt,
3853
3649
  {
3854
3650
  slots: {
3855
- [xe]: {},
3856
- description: p
3651
+ [Ee]: {},
3652
+ description: s
3857
3653
  }
3858
3654
  }
3859
3655
  ],
3860
3656
  [
3861
3657
  ke,
3862
- Et
3658
+ bt
3863
3659
  ],
3864
3660
  [
3865
3661
  Ae,
3866
3662
  null
3867
3663
  ],
3868
3664
  [
3869
- ru,
3665
+ uu,
3870
3666
  null
3871
3667
  ],
3872
3668
  [
3873
- bt,
3669
+ ft,
3874
3670
  null
3875
3671
  ],
3876
3672
  [
3877
- vt,
3673
+ $t,
3878
3674
  {
3879
- isSelected: C.isSelected
3675
+ isSelected: E.isSelected
3880
3676
  }
3881
3677
  ]
3882
3678
  ]
3883
3679
  }, k.children))));
3884
3680
  });
3885
- function Jr(e, u) {
3886
- u = lu(u);
3887
- let { dragAndDropHooks: r, dropState: t } = W(Be), n = S(null), { dropIndicatorProps: o, isHidden: a, isDropTarget: l } = r.useDropIndicator(e, t, n);
3888
- return a ? null : /* @__PURE__ */ A.createElement(Qr, {
3681
+ function Xr(e, u) {
3682
+ u = au(u);
3683
+ let { dragAndDropHooks: t, dropState: r } = J(Be), o = S(null), { dropIndicatorProps: a, isHidden: c, isDropTarget: d } = t.useDropIndicator(e, r, o);
3684
+ return c ? null : /* @__PURE__ */ A.createElement(Zr, {
3889
3685
  ...e,
3890
- dropIndicatorProps: o,
3891
- isDropTarget: l,
3892
- buttonRef: n,
3686
+ dropIndicatorProps: a,
3687
+ isDropTarget: d,
3688
+ buttonRef: o,
3893
3689
  ref: u
3894
3690
  });
3895
3691
  }
3896
- function Wr(e, u) {
3897
- let { dropIndicatorProps: r, isDropTarget: t, buttonRef: n, ...o } = e, { visuallyHiddenProps: a } = we(), l = Pe({
3898
- ...o,
3692
+ function Yr(e, u) {
3693
+ let { dropIndicatorProps: t, isDropTarget: r, buttonRef: o, ...a } = e, { visuallyHiddenProps: c } = ze(), d = Ke({
3694
+ ...a,
3899
3695
  defaultClassName: "react-aria-DropIndicator",
3900
3696
  values: {
3901
- isDropTarget: t
3697
+ isDropTarget: r
3902
3698
  }
3903
3699
  });
3904
3700
  return /* @__PURE__ */ A.createElement("div", {
3905
- ...l,
3701
+ ...d,
3906
3702
  role: "row",
3907
3703
  ref: u,
3908
- "data-drop-target": t || void 0
3704
+ "data-drop-target": r || void 0
3909
3705
  }, /* @__PURE__ */ A.createElement("div", {
3910
3706
  role: "gridcell"
3911
3707
  }, /* @__PURE__ */ A.createElement("div", {
3912
- ...a,
3708
+ ...c,
3913
3709
  role: "button",
3914
- ...r,
3915
- ref: n
3916
- }), l.children));
3710
+ ...t,
3711
+ ref: o
3712
+ }), d.children));
3917
3713
  }
3918
- const Qr = /* @__PURE__ */ uu(Wr);
3919
- function _r() {
3920
- let { dragAndDropHooks: e, dropState: u } = W(Be), r = S(null), { dropIndicatorProps: t } = e.useDropIndicator({
3714
+ const Zr = /* @__PURE__ */ _e(Yr);
3715
+ function Jr() {
3716
+ let { dragAndDropHooks: e, dropState: u } = J(Be), t = S(null), { dropIndicatorProps: r } = e.useDropIndicator({
3921
3717
  target: {
3922
3718
  type: "root"
3923
3719
  }
3924
- }, u, r), n = u.isDropTarget({
3720
+ }, u, t), o = u.isDropTarget({
3925
3721
  type: "root"
3926
- }), { visuallyHiddenProps: o } = we();
3927
- return !n && t["aria-hidden"] ? null : /* @__PURE__ */ A.createElement("div", {
3722
+ }), { visuallyHiddenProps: a } = ze();
3723
+ return !o && r["aria-hidden"] ? null : /* @__PURE__ */ A.createElement("div", {
3928
3724
  role: "row",
3929
- "aria-hidden": t["aria-hidden"],
3725
+ "aria-hidden": r["aria-hidden"],
3930
3726
  style: {
3931
3727
  position: "absolute"
3932
3728
  }
@@ -3934,187 +3730,196 @@ function _r() {
3934
3730
  role: "gridcell"
3935
3731
  }, /* @__PURE__ */ A.createElement("div", {
3936
3732
  role: "button",
3937
- ...o,
3938
- ...t,
3939
- ref: r
3733
+ ...a,
3734
+ ...r,
3735
+ ref: t
3940
3736
  })));
3941
3737
  }
3942
- function en(e) {
3738
+ function Wr(e) {
3943
3739
  return {
3944
- dragAndDropHooks: Ke(() => {
3945
- let { onDrop: r, onInsert: t, onItemDrop: n, onReorder: o, onMove: a, onRootDrop: l, getItems: m, renderDragPreview: g, renderDropIndicator: c, dropTargetDelegate: B } = e, p = !!m, C = !!(r || t || n || o || a || l), f = {};
3946
- return p && (f.useDraggableCollectionState = function(D) {
3947
- return Mr({
3948
- ...D,
3740
+ dragAndDropHooks: eu(() => {
3741
+ let { onDrop: t, onInsert: r, onItemDrop: o, onReorder: a, onMove: c, onRootDrop: d, getItems: C, renderDragPreview: g, renderDropIndicator: D, dropTargetDelegate: x } = e, s = !!C, E = !!(t || r || o || a || c || d), m = {};
3742
+ return s && (m.useDraggableCollectionState = function(p) {
3743
+ return Rr({
3744
+ ...p,
3949
3745
  ...e
3950
3746
  });
3951
- }, f.useDraggableCollection = wr, f.useDraggableItem = zr, f.DragPreview = Or, f.renderDragPreview = g, f.isVirtualDragging = mr), C && (f.useDroppableCollectionState = function(D) {
3952
- return Nr({
3953
- ...D,
3747
+ }, m.useDraggableCollection = zr, m.useDraggableItem = Ir, m.DragPreview = wr, m.renderDragPreview = g, m.isVirtualDragging = gr), E && (m.useDroppableCollectionState = function(p) {
3748
+ return Mr({
3749
+ ...p,
3954
3750
  ...e
3955
3751
  });
3956
- }, f.useDroppableItem = nt, f.useDroppableCollection = function(D, E, y) {
3957
- return Fr({
3958
- ...D,
3752
+ }, m.useDroppableItem = rt, m.useDroppableCollection = function(p, b, y) {
3753
+ return Tr({
3754
+ ...p,
3959
3755
  ...e
3960
- }, E, y);
3961
- }, f.useDropIndicator = Kr, f.renderDropIndicator = c, f.dropTargetDelegate = B, f.ListDropTargetDelegate = Vr), f;
3756
+ }, b, y);
3757
+ }, m.useDropIndicator = Sr, m.renderDropIndicator = D, m.dropTargetDelegate = x, m.ListDropTargetDelegate = Or), m;
3962
3758
  }, [
3963
3759
  e
3964
3760
  ])
3965
3761
  };
3966
3762
  }
3967
- var Qe = Object.prototype.hasOwnProperty;
3968
- function _e(e, u, r) {
3969
- for (r of e.keys())
3970
- if (Q(r, u)) return r;
3763
+ var Je = Object.prototype.hasOwnProperty;
3764
+ function We(e, u, t) {
3765
+ for (t of e.keys())
3766
+ if (W(t, u)) return t;
3971
3767
  }
3972
- function Q(e, u) {
3973
- var r, t, n;
3768
+ function W(e, u) {
3769
+ var t, r, o;
3974
3770
  if (e === u) return !0;
3975
- if (e && u && (r = e.constructor) === u.constructor) {
3976
- if (r === Date) return e.getTime() === u.getTime();
3977
- if (r === RegExp) return e.toString() === u.toString();
3978
- if (r === Array) {
3979
- if ((t = e.length) === u.length)
3980
- for (; t-- && Q(e[t], u[t]); ) ;
3981
- return t === -1;
3771
+ if (e && u && (t = e.constructor) === u.constructor) {
3772
+ if (t === Date) return e.getTime() === u.getTime();
3773
+ if (t === RegExp) return e.toString() === u.toString();
3774
+ if (t === Array) {
3775
+ if ((r = e.length) === u.length)
3776
+ for (; r-- && W(e[r], u[r]); ) ;
3777
+ return r === -1;
3982
3778
  }
3983
- if (r === Set) {
3779
+ if (t === Set) {
3984
3780
  if (e.size !== u.size)
3985
3781
  return !1;
3986
- for (t of e)
3987
- if (n = t, n && typeof n == "object" && (n = _e(u, n), !n) || !u.has(n)) return !1;
3782
+ for (r of e)
3783
+ if (o = r, o && typeof o == "object" && (o = We(u, o), !o) || !u.has(o)) return !1;
3988
3784
  return !0;
3989
3785
  }
3990
- if (r === Map) {
3786
+ if (t === Map) {
3991
3787
  if (e.size !== u.size)
3992
3788
  return !1;
3993
- for (t of e)
3994
- if (n = t[0], n && typeof n == "object" && (n = _e(u, n), !n) || !Q(t[1], u.get(n)))
3789
+ for (r of e)
3790
+ if (o = r[0], o && typeof o == "object" && (o = We(u, o), !o) || !W(r[1], u.get(o)))
3995
3791
  return !1;
3996
3792
  return !0;
3997
3793
  }
3998
- if (r === ArrayBuffer)
3794
+ if (t === ArrayBuffer)
3999
3795
  e = new Uint8Array(e), u = new Uint8Array(u);
4000
- else if (r === DataView) {
4001
- if ((t = e.byteLength) === u.byteLength)
4002
- for (; t-- && e.getInt8(t) === u.getInt8(t); ) ;
4003
- return t === -1;
3796
+ else if (t === DataView) {
3797
+ if ((r = e.byteLength) === u.byteLength)
3798
+ for (; r-- && e.getInt8(r) === u.getInt8(r); ) ;
3799
+ return r === -1;
4004
3800
  }
4005
3801
  if (ArrayBuffer.isView(e)) {
4006
- if ((t = e.byteLength) === u.byteLength)
4007
- for (; t-- && e[t] === u[t]; ) ;
4008
- return t === -1;
3802
+ if ((r = e.byteLength) === u.byteLength)
3803
+ for (; r-- && e[r] === u[r]; ) ;
3804
+ return r === -1;
4009
3805
  }
4010
- if (!r || typeof e == "object") {
4011
- t = 0;
4012
- for (r in e)
4013
- if (Qe.call(e, r) && ++t && !Qe.call(u, r) || !(r in u) || !Q(e[r], u[r])) return !1;
4014
- return Object.keys(u).length === t;
3806
+ if (!t || typeof e == "object") {
3807
+ r = 0;
3808
+ for (t in e)
3809
+ if (Je.call(e, t) && ++r && !Je.call(u, t) || !(t in u) || !W(e[t], u[t])) return !1;
3810
+ return Object.keys(u).length === r;
4015
3811
  }
4016
3812
  }
4017
3813
  return e !== e && u !== u;
4018
3814
  }
4019
- const ot = /* @__PURE__ */ mt({
4020
- emptyMessage: {
4021
- id: "Nimbus.DraggableList.emptyMessage",
4022
- description: "message displayed when drag-and-drop enabled list is empty",
4023
- defaultMessage: "drop items here"
4024
- },
4025
- removeButtonLabel: {
4026
- id: "Nimbus.DraggableList.removeButtonLabel",
4027
- description: "label for button that removes an item from the list",
4028
- defaultMessage: "remove item"
4029
- }
4030
- }), { withProvider: un, withContext: Re } = /* @__PURE__ */ Qt({
3815
+ const Qr = {
3816
+ emptyMessage: "drop items here",
3817
+ removeButtonLabel: "remove item"
3818
+ }, _r = {
3819
+ emptyMessage: "Artikel hier ablegen",
3820
+ removeButtonLabel: "Artikel entfernen"
3821
+ }, en = {
3822
+ emptyMessage: "Soltar artículos aquí",
3823
+ removeButtonLabel: "Eliminar artículo"
3824
+ }, un = {
3825
+ emptyMessage: "Déposer les articles ici",
3826
+ removeButtonLabel: "Supprimer l'article"
3827
+ }, tn = {
3828
+ emptyMessage: "arrastar itens aqui",
3829
+ removeButtonLabel: "remover item"
3830
+ }, nt = {
3831
+ en: /* @__PURE__ */ ue(Qr),
3832
+ de: /* @__PURE__ */ ue(_r),
3833
+ es: /* @__PURE__ */ ue(en),
3834
+ "fr-FR": /* @__PURE__ */ ue(un),
3835
+ "pt-BR": /* @__PURE__ */ ue(tn)
3836
+ }, { withProvider: rn, withContext: Le } = /* @__PURE__ */ Jt({
4031
3837
  key: "draggableList"
4032
- }), tn = /* @__PURE__ */ un("div", "root"), rn = /* @__PURE__ */ Re("div", "item"), nn = /* @__PURE__ */ Re("div", "itemContent"), on = /* @__PURE__ */ Re("div", "empty"), Me = ({
3838
+ }), nn = /* @__PURE__ */ rn("div", "root"), on = /* @__PURE__ */ Le("div", "item"), an = /* @__PURE__ */ Le("div", "itemContent"), ln = /* @__PURE__ */ Le("div", "empty"), Re = ({
4033
3839
  children: e,
4034
3840
  id: u,
4035
- onRemoveItem: r,
4036
- textValue: t,
4037
- ...n
3841
+ onRemoveItem: t,
3842
+ textValue: r,
3843
+ ...o
4038
3844
  }) => {
4039
- const { formatMessage: o } = tu(), a = typeof e == "string" ? e : void 0, [l, m] = Du(n);
4040
- return /* @__PURE__ */ w(rn, { ...l, asChild: !0, children: /* @__PURE__ */ w(
4041
- Zr,
3845
+ const a = pu(nt), c = typeof e == "string" ? e : void 0, [d, C] = cu(o);
3846
+ return /* @__PURE__ */ w(on, { ...d, asChild: !0, children: /* @__PURE__ */ w(
3847
+ Gr,
4042
3848
  {
4043
3849
  id: u,
4044
- textValue: t ?? a,
4045
- ...m,
4046
- children: ({ allowsDragging: g, selectionBehavior: c, selectionMode: B }) => /* @__PURE__ */ eu(st, { children: [
4047
- g && // @ts-expect-error slot="drag" handles adding the required props
4048
- /* @__PURE__ */ w(
4049
- qe,
3850
+ textValue: r ?? c,
3851
+ ...C,
3852
+ children: ({ allowsDragging: g, selectionBehavior: D, selectionMode: x }) => /* @__PURE__ */ Qe(dt, { children: [
3853
+ g && /* @__PURE__ */ w(
3854
+ Ue,
4050
3855
  {
4051
3856
  slot: "drag",
4052
3857
  size: "2xs",
4053
3858
  variant: "ghost",
4054
3859
  flex: "0 0 auto",
4055
3860
  colorPalette: "neutral",
4056
- children: /* @__PURE__ */ w(_t, {})
3861
+ children: /* @__PURE__ */ w(Wt, {})
4057
3862
  }
4058
3863
  ),
4059
- B === "multiple" && c === "toggle" && /* @__PURE__ */ w(ur, { flex: "0 0 auto", slot: "selection" }),
4060
- /* @__PURE__ */ w(nn, { children: e }),
4061
- r && /* @__PURE__ */ w(
4062
- qe,
3864
+ x === "multiple" && D === "toggle" && /* @__PURE__ */ w(_t, { flex: "0 0 auto", slot: "selection" }),
3865
+ /* @__PURE__ */ w(an, { children: e }),
3866
+ t && /* @__PURE__ */ w(
3867
+ Ue,
4063
3868
  {
4064
- "aria-label": o(ot.removeButtonLabel),
3869
+ "aria-label": a.format("removeButtonLabel"),
4065
3870
  size: "2xs",
4066
3871
  variant: "ghost",
4067
- onPress: u ? () => r(u) : void 0,
3872
+ onPress: u ? () => t(u) : void 0,
4068
3873
  flex: "0 0 auto",
4069
3874
  colorPalette: "neutral",
4070
- children: /* @__PURE__ */ w(er, {})
3875
+ children: /* @__PURE__ */ w(Qt, {})
4071
3876
  }
4072
3877
  )
4073
3878
  ] })
4074
3879
  }
4075
3880
  ) });
4076
3881
  };
4077
- Me.displayName = "DraggableList.Item";
4078
- const ce = "nimbus-draggable-list-item", an = (e) => e.key ?? e.id, Ne = ({
3882
+ Re.displayName = "DraggableList.Item";
3883
+ const ce = "nimbus-draggable-list-item", dn = (e) => e.key ?? e.id, Me = ({
4079
3884
  children: e,
4080
3885
  ref: u,
4081
- items: r = [],
4082
- getKey: t = an,
4083
- onUpdateItems: n,
4084
- removableItems: o,
4085
- renderEmptyState: a,
4086
- ...l
3886
+ items: t = [],
3887
+ getKey: r = dn,
3888
+ onUpdateItems: o,
3889
+ removableItems: a,
3890
+ renderEmptyState: c,
3891
+ ...d
4087
3892
  }) => {
4088
- const { formatMessage: m } = tu(), g = a ?? m(ot.emptyMessage), c = Ur({
4089
- initialItems: r,
4090
- getKey: t
4091
- }), B = S(!1), p = S(r ?? []);
3893
+ const C = pu(nt), g = c ?? C.format("emptyMessage"), D = er({
3894
+ initialItems: t,
3895
+ getKey: r
3896
+ }), x = S(!1), s = S(t ?? []);
4092
3897
  L(() => {
4093
- if (r !== p.current && !Q(r, p.current) && !Q(r, c.items)) {
4094
- B.current = !0;
4095
- const i = c.items.map((s) => t(s));
4096
- if (c.remove(...i), c.append(...r), c.selectedKeys !== "all" && c.selectedKeys.size > 0) {
4097
- const s = new Set(r.map(($) => t($))), x = new Set(
4098
- [...c.selectedKeys].filter(($) => s.has($))
3898
+ if (t !== s.current && !W(t, s.current) && !W(t, D.items)) {
3899
+ x.current = !0;
3900
+ const n = D.items.map((l) => r(l));
3901
+ if (D.remove(...n), D.append(...t), D.selectedKeys !== "all" && D.selectedKeys.size > 0) {
3902
+ const l = new Set(t.map(($) => r($))), B = new Set(
3903
+ [...D.selectedKeys].filter(($) => l.has($))
4099
3904
  );
4100
- c.setSelectedKeys(x);
3905
+ D.setSelectedKeys(B);
4101
3906
  }
4102
- p.current = r;
4103
- let d = !1;
3907
+ s.current = t;
3908
+ let i = !1;
4104
3909
  return queueMicrotask(() => {
4105
- d || (B.current = !1);
3910
+ i || (x.current = !1);
4106
3911
  }), () => {
4107
- d = !0;
3912
+ i = !0;
4108
3913
  };
4109
3914
  }
4110
- }, [r]), L(() => {
4111
- B.current || (p.current = c.items, n?.(c.items));
4112
- }, [c.items, n]);
4113
- const { dragAndDropHooks: C } = en({
3915
+ }, [t]), L(() => {
3916
+ x.current || (s.current = D.items, o?.(D.items));
3917
+ }, [D.items, o]);
3918
+ const { dragAndDropHooks: E } = Wr({
4114
3919
  // Provide item data to drag'n'drop handler
4115
- getItems(i, d) {
4116
- return d.map((s) => ({
4117
- [ce]: JSON.stringify(s)
3920
+ getItems(n, i) {
3921
+ return i.map((l) => ({
3922
+ [ce]: JSON.stringify(l)
4118
3923
  //TODO: also handle text/plain item type (to allow dropping items into list that are not list items)?
4119
3924
  }));
4120
3925
  },
@@ -4123,106 +3928,106 @@ const ce = "nimbus-draggable-list-item", an = (e) => e.key ?? e.id, Ne = ({
4123
3928
  // Ensure items are always moved rather than copied
4124
3929
  getDropOperation: () => "move",
4125
3930
  // Handle dropping items from other lists between list items
4126
- async onInsert(i) {
4127
- const d = await Promise.all(
4128
- i.items.filter(Ge).map(
4129
- async (s) => JSON.parse(await s.getText(ce))
3931
+ async onInsert(n) {
3932
+ const i = await Promise.all(
3933
+ n.items.filter(qe).map(
3934
+ async (l) => JSON.parse(await l.getText(ce))
4130
3935
  )
4131
3936
  );
4132
- i.target.dropPosition === "before" ? c.insertBefore(i.target.key, ...d) : i.target.dropPosition === "after" && c.insertAfter(i.target.key, ...d);
3937
+ n.target.dropPosition === "before" ? D.insertBefore(n.target.key, ...i) : n.target.dropPosition === "after" && D.insertAfter(n.target.key, ...i);
4133
3938
  },
4134
3939
  // Handle drops on list when empty
4135
- async onRootDrop(i) {
4136
- const d = await Promise.all(
4137
- i.items.filter(Ge).map(
4138
- async (s) => JSON.parse(await s.getText(ce))
3940
+ async onRootDrop(n) {
3941
+ const i = await Promise.all(
3942
+ n.items.filter(qe).map(
3943
+ async (l) => JSON.parse(await l.getText(ce))
4139
3944
  )
4140
3945
  );
4141
- c.append(...d);
3946
+ D.append(...i);
4142
3947
  },
4143
3948
  // Handle reordering within list
4144
- onReorder(i) {
4145
- i.target.dropPosition === "before" ? c.moveBefore(i.target.key, i.keys) : i.target.dropPosition === "after" && c.moveAfter(i.target.key, i.keys);
3949
+ onReorder(n) {
3950
+ n.target.dropPosition === "before" ? D.moveBefore(n.target.key, n.keys) : n.target.dropPosition === "after" && D.moveAfter(n.target.key, n.keys);
4146
3951
  },
4147
3952
  // Remove the items from the source list on drop
4148
3953
  // if they were moved to a different list.
4149
- async onDragEnd(i) {
4150
- i.dropOperation === "move" && !i.isInternal && c.remove(...i.keys);
3954
+ async onDragEnd(n) {
3955
+ n.dropOperation === "move" && !n.isInternal && D.remove(...n.keys);
4151
3956
  }
4152
- }), f = J(
4153
- (i) => {
4154
- c.remove(i);
3957
+ }), m = Z(
3958
+ (n) => {
3959
+ D.remove(n);
4155
3960
  },
4156
- [c.remove]
3961
+ [D.remove]
4157
3962
  );
4158
- if (!e && r?.length > 0 && (!r?.[0]?.key || !r?.[0]?.label))
3963
+ if (!e && t?.length > 0 && (!t?.[0]?.key || !t?.[0]?.label))
4159
3964
  throw new Error(
4160
3965
  'Nimbus DraggableList: when "children" is not provided, items must have both "key" and "label" properties'
4161
3966
  );
4162
- const b = Wt({ key: "draggableList" }), [D] = b.splitVariantProps(l), [E, y] = Du(l);
4163
- return /* @__PURE__ */ w(tn, { ...E, ...D, asChild: !0, children: /* @__PURE__ */ w(
4164
- Xr,
3967
+ const f = Zt({ key: "draggableList" }), [p] = f.splitVariantProps(d), [b, y] = cu(d);
3968
+ return /* @__PURE__ */ w(nn, { ...b, ...p, asChild: !0, children: /* @__PURE__ */ w(
3969
+ Ur,
4165
3970
  {
4166
3971
  ref: u,
4167
3972
  ...y,
4168
- renderEmptyState: () => /* @__PURE__ */ w(on, { children: g }),
4169
- dragAndDropHooks: C,
4170
- items: c.items,
4171
- dependencies: [f],
4172
- children: (i) => e ? typeof e == "function" ? e({
4173
- ...i,
4174
- onRemoveItem: o ? f : void 0
4175
- }) : e : /* @__PURE__ */ gt(
4176
- Me,
3973
+ renderEmptyState: () => /* @__PURE__ */ w(ln, { children: g }),
3974
+ dragAndDropHooks: E,
3975
+ items: D.items,
3976
+ dependencies: [m],
3977
+ children: (n) => e ? typeof e == "function" ? e({
3978
+ ...n,
3979
+ onRemoveItem: a ? m : void 0
3980
+ }) : e : /* @__PURE__ */ Dt(
3981
+ Re,
4177
3982
  {
4178
- ...i,
4179
- key: i.key,
4180
- onRemoveItem: o ? f : void 0
3983
+ ...n,
3984
+ key: n.key,
3985
+ onRemoveItem: a ? m : void 0
4181
3986
  },
4182
- i.label
3987
+ n.label
4183
3988
  )
4184
3989
  }
4185
3990
  ) });
4186
3991
  };
4187
- Ne.displayName = "DraggableList.Root";
4188
- const it = ({
3992
+ Me.displayName = "DraggableList.Root";
3993
+ const ot = ({
4189
3994
  label: e,
4190
3995
  description: u,
4191
- error: r,
4192
- infoBox: t,
4193
- isRequired: n,
4194
- isInvalid: o,
4195
- isDisabled: a,
4196
- isReadOnly: l,
4197
- id: m,
3996
+ error: t,
3997
+ infoBox: r,
3998
+ isRequired: o,
3999
+ isInvalid: a,
4000
+ isDisabled: c,
4001
+ isReadOnly: d,
4002
+ id: C,
4198
4003
  items: g,
4199
- ...c
4200
- }) => /* @__PURE__ */ eu(
4201
- Y.Root,
4004
+ ...D
4005
+ }) => /* @__PURE__ */ Qe(
4006
+ X.Root,
4202
4007
  {
4203
- id: m,
4204
- isRequired: n,
4205
- isInvalid: o,
4206
- isDisabled: a,
4207
- isReadOnly: l,
4008
+ id: C,
4009
+ isRequired: o,
4010
+ isInvalid: a,
4011
+ isDisabled: c,
4012
+ isReadOnly: d,
4208
4013
  children: [
4209
- /* @__PURE__ */ w(Y.Label, { children: e }),
4210
- /* @__PURE__ */ w(Y.Input, { children: /* @__PURE__ */ w(
4211
- Ne,
4014
+ /* @__PURE__ */ w(X.Label, { children: e }),
4015
+ /* @__PURE__ */ w(X.Input, { children: /* @__PURE__ */ w(
4016
+ Me,
4212
4017
  {
4213
- disabledKeys: a ? g?.map((B) => B.key) : void 0,
4018
+ disabledKeys: c ? g?.map((x) => x.key) : void 0,
4214
4019
  items: g,
4215
- ...c
4020
+ ...D
4216
4021
  }
4217
4022
  ) }),
4218
- u && /* @__PURE__ */ w(Y.Description, { children: u }),
4219
- r && /* @__PURE__ */ w(Y.Error, { children: r }),
4220
- t && /* @__PURE__ */ w(Y.InfoBox, { children: t })
4023
+ u && /* @__PURE__ */ w(X.Description, { children: u }),
4024
+ t && /* @__PURE__ */ w(X.Error, { children: t }),
4025
+ r && /* @__PURE__ */ w(X.InfoBox, { children: r })
4221
4026
  ]
4222
4027
  }
4223
4028
  );
4224
- it.displayName = "DraggableList.Field";
4225
- const Jn = {
4029
+ ot.displayName = "DraggableList.Field";
4030
+ const _n = {
4226
4031
  /**
4227
4032
  * # DraggableList.Root
4228
4033
  *
@@ -4250,7 +4055,7 @@ const Jn = {
4250
4055
  * <DraggableList.Root items={itemsWithKeyAndLabel} aria-label="Priority list" />
4251
4056
  * ```
4252
4057
  */
4253
- Root: Ne,
4058
+ Root: Me,
4254
4059
  /**
4255
4060
  * # DraggableList.Item
4256
4061
  *
@@ -4272,7 +4077,7 @@ const Jn = {
4272
4077
  * </DraggableList.Root>
4273
4078
  * ```
4274
4079
  */
4275
- Item: Me,
4080
+ Item: Re,
4276
4081
  /**
4277
4082
  * # DraggableList.Field
4278
4083
  *
@@ -4293,13 +4098,13 @@ const Jn = {
4293
4098
  * />
4294
4099
  * ```
4295
4100
  */
4296
- Field: it
4101
+ Field: ot
4297
4102
  };
4298
4103
  export {
4299
- Lr as $,
4300
- Jn as D,
4301
- Ne as a,
4302
- Me as b,
4303
- it as c
4104
+ jr as $,
4105
+ _n as D,
4106
+ Me as a,
4107
+ Re as b,
4108
+ ot as c
4304
4109
  };
4305
- //# sourceMappingURL=draggable-list-B0MpgfeC.es.js.map
4110
+ //# sourceMappingURL=draggable-list-DR-559Qk.es.js.map