@commercetools/nimbus 0.0.0-canary-20251024075337 → 0.0.0-canary-20251024090130

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 (308) hide show
  1. package/dist/chunks/{Button-CafJrK0a.es.js → Button-C4ud7YxN.es.js} +3 -3
  2. package/dist/chunks/{Button-CafJrK0a.es.js.map → Button-C4ud7YxN.es.js.map} +1 -1
  3. package/dist/chunks/{DateField-BjKTTWs5.es.js → DateField-oXtVK-_5.es.js} +6 -6
  4. package/dist/chunks/{DateField-BjKTTWs5.es.js.map → DateField-oXtVK-_5.es.js.map} +1 -1
  5. package/dist/chunks/{DatePicker-BrgxRTyS.es.js → DatePicker-DrWdEOUQ.es.js} +40 -40
  6. package/dist/chunks/{DatePicker-BrgxRTyS.es.js.map → DatePicker-DrWdEOUQ.es.js.map} +1 -1
  7. package/dist/chunks/{Dialog-Cx5MzP6O.es.js → Dialog-C3sNnu1k.es.js} +5 -5
  8. package/dist/chunks/{Dialog-Cx5MzP6O.es.js.map → Dialog-C3sNnu1k.es.js.map} +1 -1
  9. package/dist/chunks/{Group-Bd9Zcn-V.es.js → Group-CiDvtaeM.es.js} +2 -2
  10. package/dist/chunks/{Group-Bd9Zcn-V.es.js.map → Group-CiDvtaeM.es.js.map} +1 -1
  11. package/dist/chunks/{Header-D6CYH5C_.es.js → Header-BxizMPpp.es.js} +2 -2
  12. package/dist/chunks/{Header-D6CYH5C_.es.js.map → Header-BxizMPpp.es.js.map} +1 -1
  13. package/dist/chunks/{Heading-DPlDZAaf.es.js → Heading-CAI_WTdS.es.js} +14 -14
  14. package/dist/chunks/{Heading-DPlDZAaf.es.js.map → Heading-CAI_WTdS.es.js.map} +1 -1
  15. package/dist/chunks/{Input-EnWCwj65.es.js → Input-De-sfAtq.es.js} +2 -2
  16. package/dist/chunks/{Input-EnWCwj65.es.js.map → Input-De-sfAtq.es.js.map} +1 -1
  17. package/dist/chunks/{Label-7OK510ha.es.js → Label-BS7NIWvY.es.js} +2 -2
  18. package/dist/chunks/{Label-7OK510ha.es.js.map → Label-BS7NIWvY.es.js.map} +1 -1
  19. package/dist/chunks/{ListBox-C4BToxCj.es.js → ListBox-BfRQSQ3P.es.js} +4 -4
  20. package/dist/chunks/{ListBox-C4BToxCj.es.js.map → ListBox-BfRQSQ3P.es.js.map} +1 -1
  21. package/dist/chunks/{Modal-DowTFCAo.es.js → Modal-BTJk-mW-.es.js} +3 -3
  22. package/dist/chunks/{Modal-DowTFCAo.es.js.map → Modal-BTJk-mW-.es.js.map} +1 -1
  23. package/dist/chunks/{ProgressBar-DA797ATA.es.js → ProgressBar-Dl4ZrjfX.es.js} +3 -3
  24. package/dist/chunks/{ProgressBar-DA797ATA.es.js.map → ProgressBar-Dl4ZrjfX.es.js.map} +1 -1
  25. package/dist/chunks/{Separator-B0kvBk7k.es.js → Separator-BOfmJd-0.es.js} +2 -2
  26. package/dist/chunks/{Separator-B0kvBk7k.es.js.map → Separator-BOfmJd-0.es.js.map} +1 -1
  27. package/dist/chunks/{TextArea-B__-6Fht.es.js → TextArea-DR4R6vJD.es.js} +2 -2
  28. package/dist/chunks/{TextArea-B__-6Fht.es.js.map → TextArea-DR4R6vJD.es.js.map} +1 -1
  29. package/dist/chunks/{ToggleButton-wAaapRtE.es.js → ToggleButton-DMoUAyoo.es.js} +2 -2
  30. package/dist/chunks/{ToggleButton-wAaapRtE.es.js.map → ToggleButton-DMoUAyoo.es.js.map} +1 -1
  31. package/dist/chunks/{accordion-BMztnndo.es.js → accordion-DyTTsrDh.es.js} +4 -4
  32. package/dist/chunks/{accordion-BMztnndo.es.js.map → accordion-DyTTsrDh.es.js.map} +1 -1
  33. package/dist/chunks/{alert-DEy9gf3U.es.js → alert-DCm-d72j.es.js} +2 -2
  34. package/dist/chunks/{alert-DEy9gf3U.es.js.map → alert-DCm-d72j.es.js.map} +1 -1
  35. package/dist/chunks/avatar-BNhECwD5.cjs.js +2 -0
  36. package/dist/chunks/avatar-BNhECwD5.cjs.js.map +1 -0
  37. package/dist/chunks/avatar-DFibCsCs.es.js +47 -0
  38. package/dist/chunks/avatar-DFibCsCs.es.js.map +1 -0
  39. package/dist/chunks/{button-B4vE-tAz.es.js → button-Ccof5UcQ.es.js} +4 -4
  40. package/dist/chunks/{button-B4vE-tAz.es.js.map → button-Ccof5UcQ.es.js.map} +1 -1
  41. package/dist/chunks/calendar-CcA9vDZ_.es.js +209 -0
  42. package/dist/chunks/calendar-CcA9vDZ_.es.js.map +1 -0
  43. package/dist/chunks/calendar-Dm2LIuao.cjs.js +2 -0
  44. package/dist/chunks/calendar-Dm2LIuao.cjs.js.map +1 -0
  45. package/dist/chunks/{checkbox-B-1U4AKF.es.js → checkbox-CFDf2T7S.es.js} +3 -3
  46. package/dist/chunks/{checkbox-B-1U4AKF.es.js.map → checkbox-CFDf2T7S.es.js.map} +1 -1
  47. package/dist/chunks/{collapsible-motion-CeEspYkc.es.js → collapsible-motion-DmWoSXyS.es.js} +3 -3
  48. package/dist/chunks/{collapsible-motion-CeEspYkc.es.js.map → collapsible-motion-DmWoSXyS.es.js.map} +1 -1
  49. package/dist/chunks/combobox-BuuiDfjq.cjs.js +2 -0
  50. package/dist/chunks/combobox-BuuiDfjq.cjs.js.map +1 -0
  51. package/dist/chunks/{combobox-0cCAwg3W.es.js → combobox-C1DerhP1.es.js} +1064 -1032
  52. package/dist/chunks/combobox-C1DerhP1.es.js.map +1 -0
  53. package/dist/chunks/{data-table-BxITOPnx.es.js → data-table-BuGUlgQU.es.js} +1169 -1116
  54. package/dist/chunks/data-table-BuGUlgQU.es.js.map +1 -0
  55. package/dist/chunks/data-table-CyNImBEZ.cjs.js +2 -0
  56. package/dist/chunks/data-table-CyNImBEZ.cjs.js.map +1 -0
  57. package/dist/chunks/{date-input-D70l0IsY.es.js → date-input-B_T7Az3-.es.js} +4 -4
  58. package/dist/chunks/{date-input-D70l0IsY.es.js.map → date-input-B_T7Az3-.es.js.map} +1 -1
  59. package/dist/chunks/{date-picker-Dk3QgvCN.cjs.js → date-picker-BEDlqfYN.cjs.js} +2 -2
  60. package/dist/chunks/date-picker-BEDlqfYN.cjs.js.map +1 -0
  61. package/dist/chunks/{date-picker-FvaPPqXZ.es.js → date-picker-DcDxaZ6Y.es.js} +14 -14
  62. package/dist/chunks/date-picker-DcDxaZ6Y.es.js.map +1 -0
  63. package/dist/chunks/date-range-picker-C5G8uDlJ.es.js +358 -0
  64. package/dist/chunks/date-range-picker-C5G8uDlJ.es.js.map +1 -0
  65. package/dist/chunks/date-range-picker-vr0DE_0V.cjs.js +2 -0
  66. package/dist/chunks/date-range-picker-vr0DE_0V.cjs.js.map +1 -0
  67. package/dist/chunks/{dialog-Bsg1kLnV.es.js → dialog-C9OHxEA2.es.js} +2 -2
  68. package/dist/chunks/{dialog-Bsg1kLnV.es.js.map → dialog-C9OHxEA2.es.js.map} +1 -1
  69. package/dist/chunks/{dialog.title-BmLccUat.es.js → dialog.title-CGSRn_GL.es.js} +7 -7
  70. package/dist/chunks/{dialog.title-BmLccUat.es.js.map → dialog.title-CGSRn_GL.es.js.map} +1 -1
  71. package/dist/chunks/{draggable-list-CadviYoN.es.js → draggable-list-5SfJXtEK.es.js} +10 -10
  72. package/dist/chunks/{draggable-list-CadviYoN.es.js.map → draggable-list-5SfJXtEK.es.js.map} +1 -1
  73. package/dist/chunks/{drawer-BsHkmwKB.es.js → drawer-LRm6SeM-.es.js} +8 -8
  74. package/dist/chunks/{drawer-BsHkmwKB.es.js.map → drawer-LRm6SeM-.es.js.map} +1 -1
  75. package/dist/chunks/{extract-style-props-CTU5PJnh.es.js → extract-style-props-CZpdYA8m.es.js} +2 -2
  76. package/dist/chunks/{extract-style-props-CTU5PJnh.es.js.map → extract-style-props-CZpdYA8m.es.js.map} +1 -1
  77. package/dist/chunks/{form-field-CH7MhZMM.es.js → form-field-B6PqLujT.es.js} +3 -3
  78. package/dist/chunks/{form-field-CH7MhZMM.es.js.map → form-field-B6PqLujT.es.js.map} +1 -1
  79. package/dist/chunks/{group-DDgNGiAB.es.js → group-BLPsc2Lf.es.js} +2 -2
  80. package/dist/chunks/{group-DDgNGiAB.es.js.map → group-BLPsc2Lf.es.js.map} +1 -1
  81. package/dist/chunks/{heading-DwvFL6nk.es.js → heading-14HwlWvH.es.js} +2 -2
  82. package/dist/chunks/{heading-DwvFL6nk.es.js.map → heading-14HwlWvH.es.js.map} +1 -1
  83. package/dist/chunks/{icon-button-CNauu_zf.es.js → icon-button-g4dZUH5O.es.js} +2 -2
  84. package/dist/chunks/{icon-button-CNauu_zf.es.js.map → icon-button-g4dZUH5O.es.js.map} +1 -1
  85. package/dist/chunks/{icon-toggle-button-D5ic1FhD.es.js → icon-toggle-button-DBGgxBWR.es.js} +2 -2
  86. package/dist/chunks/{icon-toggle-button-D5ic1FhD.es.js.map → icon-toggle-button-DBGgxBWR.es.js.map} +1 -1
  87. package/dist/chunks/{index-jNM4sRnI.es.js → index-CaeeOiBp.es.js} +3 -3
  88. package/dist/chunks/{index-jNM4sRnI.es.js.map → index-CaeeOiBp.es.js.map} +1 -1
  89. package/dist/chunks/{kbd-C6IVVksK.es.js → kbd-Cy3jFCSc.es.js} +2 -2
  90. package/dist/chunks/{kbd-C6IVVksK.es.js.map → kbd-Cy3jFCSc.es.js.map} +1 -1
  91. package/dist/chunks/loading-spinner-ByHGBHzt.es.js.map +1 -1
  92. package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js.map +1 -1
  93. package/dist/chunks/{localized-field-u03KZc2G.cjs.js → localized-field-BffTavHV.cjs.js} +2 -2
  94. package/dist/chunks/localized-field-BffTavHV.cjs.js.map +1 -0
  95. package/dist/chunks/{localized-field-D4HBEdq0.es.js → localized-field-CHV3AGQ-.es.js} +10 -10
  96. package/dist/chunks/localized-field-CHV3AGQ-.es.js.map +1 -0
  97. package/dist/chunks/{menu-CvowvbXh.es.js → menu-B5r0vnY6.es.js} +5 -5
  98. package/dist/chunks/{menu-CvowvbXh.es.js.map → menu-B5r0vnY6.es.js.map} +1 -1
  99. package/dist/chunks/{money-input-DHiEn7XA.es.js → money-input-Con6I5Ej.es.js} +7 -7
  100. package/dist/chunks/money-input-Con6I5Ej.es.js.map +1 -0
  101. package/dist/chunks/money-input-qNQdmjtx.cjs.js.map +1 -1
  102. package/dist/chunks/{multiline-text-input-BD_Pe10q.es.js → multiline-text-input-Cta4bg2-.es.js} +4 -4
  103. package/dist/chunks/{multiline-text-input-BD_Pe10q.es.js.map → multiline-text-input-Cta4bg2-.es.js.map} +1 -1
  104. package/dist/chunks/{nimbus-provider-DD5Om-MD.es.js → nimbus-provider-BtTUZMKb.es.js} +2 -2
  105. package/dist/chunks/{nimbus-provider-DD5Om-MD.es.js.map → nimbus-provider-BtTUZMKb.es.js.map} +1 -1
  106. package/dist/chunks/{number-input-DO5bD82a.es.js → number-input-BClKrTYK.es.js} +5 -5
  107. package/dist/chunks/{number-input-DO5bD82a.es.js.map → number-input-BClKrTYK.es.js.map} +1 -1
  108. package/dist/chunks/number-input-BUdRuDBZ.cjs.js.map +1 -1
  109. package/dist/chunks/pagination-BL1y2lAx.cjs.js +2 -0
  110. package/dist/chunks/pagination-BL1y2lAx.cjs.js.map +1 -0
  111. package/dist/chunks/pagination-BqjffQ1Z.es.js +210 -0
  112. package/dist/chunks/pagination-BqjffQ1Z.es.js.map +1 -0
  113. package/dist/chunks/{password-input-D4vhdbQW.es.js → password-input-DoWjkkoL.es.js} +4 -4
  114. package/dist/chunks/password-input-DoWjkkoL.es.js.map +1 -0
  115. package/dist/chunks/password-input-Dtu0_JiV.cjs.js.map +1 -1
  116. package/dist/chunks/{popover-qy-Vw0qP.es.js → popover-Dtxly24d.es.js} +2 -2
  117. package/dist/chunks/{popover-qy-Vw0qP.es.js.map → popover-Dtxly24d.es.js.map} +1 -1
  118. package/dist/chunks/{progress-bar-h8RUoyYt.es.js → progress-bar-oCdd2qvN.es.js} +4 -4
  119. package/dist/chunks/{progress-bar-h8RUoyYt.es.js.map → progress-bar-oCdd2qvN.es.js.map} +1 -1
  120. package/dist/chunks/{radio-input-qdrHc_fC.es.js → radio-input-eA3VvPwV.es.js} +5 -5
  121. package/dist/chunks/{radio-input-qdrHc_fC.es.js.map → radio-input-eA3VvPwV.es.js.map} +1 -1
  122. package/dist/chunks/range-calendar-BXMVhACe.cjs.js +2 -0
  123. package/dist/chunks/range-calendar-BXMVhACe.cjs.js.map +1 -0
  124. package/dist/chunks/range-calendar-BnB1F7_i.es.js +209 -0
  125. package/dist/chunks/range-calendar-BnB1F7_i.es.js.map +1 -0
  126. package/dist/chunks/rich-text-input-BebV_CaK.es.js +1200 -0
  127. package/dist/chunks/rich-text-input-BebV_CaK.es.js.map +1 -0
  128. package/dist/chunks/rich-text-input-D6WXRxiJ.cjs.js +10 -0
  129. package/dist/chunks/rich-text-input-D6WXRxiJ.cjs.js.map +1 -0
  130. package/dist/chunks/scoped-search-input-B5wDEKhF.es.js +143 -0
  131. package/dist/chunks/scoped-search-input-B5wDEKhF.es.js.map +1 -0
  132. package/dist/chunks/scoped-search-input-C3Vuxp-X.cjs.js +2 -0
  133. package/dist/chunks/scoped-search-input-C3Vuxp-X.cjs.js.map +1 -0
  134. package/dist/chunks/{search-input-CD_OQQwA.es.js → search-input-CmmBtmQf.es.js} +9 -9
  135. package/dist/chunks/{search-input-CD_OQQwA.es.js.map → search-input-CmmBtmQf.es.js.map} +1 -1
  136. package/dist/chunks/search-input-D4ISfjCg.cjs.js.map +1 -1
  137. package/dist/chunks/select-DLnPgZGL.cjs.js.map +1 -1
  138. package/dist/chunks/{select-Dny1auOH.es.js → select-DYkIoOqo.es.js} +10 -10
  139. package/dist/chunks/{select-Dny1auOH.es.js.map → select-DYkIoOqo.es.js.map} +1 -1
  140. package/dist/chunks/{separator-CCqidzEw.es.js → separator-D2824IwZ.es.js} +4 -4
  141. package/dist/chunks/{separator-CCqidzEw.es.js.map → separator-D2824IwZ.es.js.map} +1 -1
  142. package/dist/chunks/split-button-D4fKtZU6.cjs.js +2 -0
  143. package/dist/chunks/split-button-D4fKtZU6.cjs.js.map +1 -0
  144. package/dist/chunks/split-button-P5JM5TIs.es.js +106 -0
  145. package/dist/chunks/split-button-P5JM5TIs.es.js.map +1 -0
  146. package/dist/chunks/{switch-BRRuFpzu.es.js → switch-jX2Q8faO.es.js} +3 -3
  147. package/dist/chunks/{switch-BRRuFpzu.es.js.map → switch-jX2Q8faO.es.js.map} +1 -1
  148. package/dist/chunks/{tabs-BXoJTX6z.es.js → tabs-Bcs39h4J.es.js} +3 -3
  149. package/dist/chunks/{tabs-BXoJTX6z.es.js.map → tabs-Bcs39h4J.es.js.map} +1 -1
  150. package/dist/chunks/tag-group-Dx690E8r.cjs.js +2 -0
  151. package/dist/chunks/tag-group-Dx690E8r.cjs.js.map +1 -0
  152. package/dist/chunks/{tag-group-CDx2BCfu.es.js → tag-group-k_jEVQhv.es.js} +120 -110
  153. package/dist/chunks/tag-group-k_jEVQhv.es.js.map +1 -0
  154. package/dist/chunks/{text-BufUKCee.es.js → text-5xQLnEG4.es.js} +2 -2
  155. package/dist/chunks/{text-BufUKCee.es.js.map → text-5xQLnEG4.es.js.map} +1 -1
  156. package/dist/chunks/{text-input-CJNTJbW0.es.js → text-input-D8mfBGrA.es.js} +4 -4
  157. package/dist/chunks/{text-input-CJNTJbW0.es.js.map → text-input-D8mfBGrA.es.js.map} +1 -1
  158. package/dist/chunks/{time-input-CHA4irr4.es.js → time-input-9W94XJTY.es.js} +4 -4
  159. package/dist/chunks/{time-input-CHA4irr4.es.js.map → time-input-9W94XJTY.es.js.map} +1 -1
  160. package/dist/chunks/{toggle-button-C_WSvD7l.es.js → toggle-button-D1v2OtiG.es.js} +4 -4
  161. package/dist/chunks/{toggle-button-C_WSvD7l.es.js.map → toggle-button-D1v2OtiG.es.js.map} +1 -1
  162. package/dist/chunks/{toggle-button-group-CF1NxUIC.es.js → toggle-button-group-Bla1fe1z.es.js} +2 -2
  163. package/dist/chunks/{toggle-button-group-CF1NxUIC.es.js.map → toggle-button-group-Bla1fe1z.es.js.map} +1 -1
  164. package/dist/chunks/{toolbar-CdR1MLqf.es.js → toolbar-DpBQgamV.es.js} +4 -4
  165. package/dist/chunks/{toolbar-CdR1MLqf.es.js.map → toolbar-DpBQgamV.es.js.map} +1 -1
  166. package/dist/chunks/{tooltip-B6mt46EB.es.js → tooltip-BX45xCJd.es.js} +2 -2
  167. package/dist/chunks/{tooltip-B6mt46EB.es.js.map → tooltip-BX45xCJd.es.js.map} +1 -1
  168. package/dist/chunks/{useDateFormatter-BqUHVksS.es.js → useDateFormatter-DOSckBIG.es.js} +6 -6
  169. package/dist/chunks/{useDateFormatter-BqUHVksS.es.js.map → useDateFormatter-DOSckBIG.es.js.map} +1 -1
  170. package/dist/chunks/{useGridListItem-Cr6HZ3kJ.es.js → useGridListItem-Th8ivSlM.es.js} +2 -2
  171. package/dist/chunks/{useGridListItem-Cr6HZ3kJ.es.js.map → useGridListItem-Th8ivSlM.es.js.map} +1 -1
  172. package/dist/chunks/{utils-DF3YB901.es.js → utils-DDFsiM-7.es.js} +3 -3
  173. package/dist/chunks/{utils-DF3YB901.es.js.map → utils-DDFsiM-7.es.js.map} +1 -1
  174. package/dist/components/accordion.es.js +1 -1
  175. package/dist/components/alert.es.js +1 -1
  176. package/dist/components/avatar/avatar.i18n.d.ts +7 -0
  177. package/dist/components/avatar.cjs +1 -1
  178. package/dist/components/avatar.es.js +1 -1
  179. package/dist/components/button.es.js +1 -1
  180. package/dist/components/calendar/calendar.i18n.d.ts +22 -0
  181. package/dist/components/calendar.cjs +1 -1
  182. package/dist/components/calendar.es.js +1 -1
  183. package/dist/components/checkbox.es.js +1 -1
  184. package/dist/components/collapsible-motion.es.js +1 -1
  185. package/dist/components/combobox/combobox.i18n.d.ts +32 -0
  186. package/dist/components/combobox.cjs +1 -1
  187. package/dist/components/combobox.es.js +1 -1
  188. package/dist/components/components.es.js +1 -1
  189. package/dist/components/data-table/data-table.i18n.d.ts +37 -0
  190. package/dist/components/data-table.cjs +1 -1
  191. package/dist/components/data-table.es.js +1 -1
  192. package/dist/components/date-input.es.js +1 -1
  193. package/dist/components/date-picker/date-picker.i18n.d.ts +1 -2
  194. package/dist/components/date-picker.cjs +1 -1
  195. package/dist/components/date-picker.es.js +1 -1
  196. package/dist/components/date-range-picker/date-range-picker.i18n.d.ts +67 -0
  197. package/dist/components/date-range-picker.cjs +1 -1
  198. package/dist/components/date-range-picker.es.js +1 -1
  199. package/dist/components/dialog.es.js +1 -1
  200. package/dist/components/draggable-list.es.js +1 -1
  201. package/dist/components/drawer.es.js +1 -1
  202. package/dist/components/form-field.es.js +1 -1
  203. package/dist/components/group.es.js +1 -1
  204. package/dist/components/heading.es.js +1 -1
  205. package/dist/components/icon-button.es.js +1 -1
  206. package/dist/components/icon-toggle-button.es.js +1 -1
  207. package/dist/components/kbd.es.js +1 -1
  208. package/dist/components/loading-spinner/loading-spinner.i18n.d.ts +1 -2
  209. package/dist/components/localized-field/localized-field.i18n.d.ts +1 -2
  210. package/dist/components/localized-field.cjs +1 -1
  211. package/dist/components/localized-field.es.js +1 -1
  212. package/dist/components/money-input/money-input.i18n.d.ts +1 -2
  213. package/dist/components/money-input.es.js +1 -1
  214. package/dist/components/multiline-text-input.es.js +1 -1
  215. package/dist/components/nimbus-provider.es.js +1 -1
  216. package/dist/components/number-input/number-input.i18n.d.ts +1 -2
  217. package/dist/components/number-input.es.js +1 -1
  218. package/dist/components/pagination/pagination.i18n.d.ts +42 -0
  219. package/dist/components/pagination.cjs +1 -1
  220. package/dist/components/pagination.es.js +1 -1
  221. package/dist/components/password-input/password-input.i18n.d.ts +1 -2
  222. package/dist/components/password-input.es.js +1 -1
  223. package/dist/components/popover.es.js +1 -1
  224. package/dist/components/progress-bar.es.js +1 -1
  225. package/dist/components/radio-input.es.js +1 -1
  226. package/dist/components/range-calendar/range-calendar.i18n.d.ts +22 -0
  227. package/dist/components/range-calendar.cjs +1 -1
  228. package/dist/components/range-calendar.es.js +1 -1
  229. package/dist/components/rich-text-input/constants/text-styles.d.ts +6 -1
  230. package/dist/components/rich-text-input/hooks/use-toolbar-state.d.ts +4 -2
  231. package/dist/components/rich-text-input/rich-text-input.i18n.d.ts +122 -0
  232. package/dist/components/rich-text-input/utils/index.d.ts +0 -1
  233. package/dist/components/rich-text-input.cjs +1 -1
  234. package/dist/components/rich-text-input.es.js +1 -1
  235. package/dist/components/scoped-search-input/scoped-search-input.i18n.d.ts +1 -12
  236. package/dist/components/scoped-search-input.cjs +1 -1
  237. package/dist/components/scoped-search-input.es.js +1 -1
  238. package/dist/components/search-input/search-input.i18n.d.ts +1 -2
  239. package/dist/components/search-input.es.js +1 -1
  240. package/dist/components/select/select.i18n.d.ts +1 -2
  241. package/dist/components/select.es.js +1 -1
  242. package/dist/components/separator.es.js +1 -1
  243. package/dist/components/split-button/split-button.i18n.d.ts +7 -0
  244. package/dist/components/split-button.cjs +1 -1
  245. package/dist/components/split-button.es.js +1 -1
  246. package/dist/components/switch.es.js +1 -1
  247. package/dist/components/tabs.es.js +1 -1
  248. package/dist/components/tag-group/tag-group.i18n.d.ts +7 -0
  249. package/dist/components/tag-group.cjs +1 -1
  250. package/dist/components/tag-group.es.js +1 -1
  251. package/dist/components/text-input.es.js +1 -1
  252. package/dist/components/text.es.js +1 -1
  253. package/dist/components/time-input.es.js +1 -1
  254. package/dist/components/toggle-button-group.es.js +1 -1
  255. package/dist/components/toggle-button.es.js +1 -1
  256. package/dist/components/toolbar.es.js +1 -1
  257. package/dist/components/tooltip.es.js +1 -1
  258. package/dist/index.cjs +1 -1
  259. package/dist/index.es.js +51 -51
  260. package/package.json +5 -5
  261. package/dist/chunks/avatar-BGM-BDJa.cjs.js +0 -2
  262. package/dist/chunks/avatar-BGM-BDJa.cjs.js.map +0 -1
  263. package/dist/chunks/avatar-CTiSGVoD.es.js +0 -40
  264. package/dist/chunks/avatar-CTiSGVoD.es.js.map +0 -1
  265. package/dist/chunks/calendar-57M9FKqt.cjs.js +0 -2
  266. package/dist/chunks/calendar-57M9FKqt.cjs.js.map +0 -1
  267. package/dist/chunks/calendar-Kwoe0bYZ.es.js +0 -187
  268. package/dist/chunks/calendar-Kwoe0bYZ.es.js.map +0 -1
  269. package/dist/chunks/combobox-0cCAwg3W.es.js.map +0 -1
  270. package/dist/chunks/combobox-CKozWtj7.cjs.js +0 -2
  271. package/dist/chunks/combobox-CKozWtj7.cjs.js.map +0 -1
  272. package/dist/chunks/data-table-BxITOPnx.es.js.map +0 -1
  273. package/dist/chunks/data-table-Depm8_y5.cjs.js +0 -2
  274. package/dist/chunks/data-table-Depm8_y5.cjs.js.map +0 -1
  275. package/dist/chunks/date-picker-Dk3QgvCN.cjs.js.map +0 -1
  276. package/dist/chunks/date-picker-FvaPPqXZ.es.js.map +0 -1
  277. package/dist/chunks/date-range-picker-CMWsBL9j.cjs.js +0 -2
  278. package/dist/chunks/date-range-picker-CMWsBL9j.cjs.js.map +0 -1
  279. package/dist/chunks/date-range-picker-vH5DixcB.es.js +0 -281
  280. package/dist/chunks/date-range-picker-vH5DixcB.es.js.map +0 -1
  281. package/dist/chunks/localized-field-D4HBEdq0.es.js.map +0 -1
  282. package/dist/chunks/localized-field-u03KZc2G.cjs.js.map +0 -1
  283. package/dist/chunks/money-input-DHiEn7XA.es.js.map +0 -1
  284. package/dist/chunks/pagination-CjUoltTe.es.js +0 -160
  285. package/dist/chunks/pagination-CjUoltTe.es.js.map +0 -1
  286. package/dist/chunks/pagination-CnPACrJ5.cjs.js +0 -2
  287. package/dist/chunks/pagination-CnPACrJ5.cjs.js.map +0 -1
  288. package/dist/chunks/password-input-D4vhdbQW.es.js.map +0 -1
  289. package/dist/chunks/range-calendar-BjuErXNK.es.js +0 -187
  290. package/dist/chunks/range-calendar-BjuErXNK.es.js.map +0 -1
  291. package/dist/chunks/range-calendar-Cjqu4SXg.cjs.js +0 -2
  292. package/dist/chunks/range-calendar-Cjqu4SXg.cjs.js.map +0 -1
  293. package/dist/chunks/rich-text-input-B41QcSHY.cjs.js +0 -10
  294. package/dist/chunks/rich-text-input-B41QcSHY.cjs.js.map +0 -1
  295. package/dist/chunks/rich-text-input-BGVyDm30.es.js +0 -1074
  296. package/dist/chunks/rich-text-input-BGVyDm30.es.js.map +0 -1
  297. package/dist/chunks/scoped-search-input-CO9xtMOE.es.js +0 -153
  298. package/dist/chunks/scoped-search-input-CO9xtMOE.es.js.map +0 -1
  299. package/dist/chunks/scoped-search-input-COM1I724.cjs.js +0 -2
  300. package/dist/chunks/scoped-search-input-COM1I724.cjs.js.map +0 -1
  301. package/dist/chunks/split-button-C8BsVNhR.cjs.js +0 -2
  302. package/dist/chunks/split-button-C8BsVNhR.cjs.js.map +0 -1
  303. package/dist/chunks/split-button-YwopMYuE.es.js +0 -100
  304. package/dist/chunks/split-button-YwopMYuE.es.js.map +0 -1
  305. package/dist/chunks/tag-group-Beqgbttp.cjs.js +0 -2
  306. package/dist/chunks/tag-group-Beqgbttp.cjs.js.map +0 -1
  307. package/dist/chunks/tag-group-CDx2BCfu.es.js.map +0 -1
  308. package/dist/components/rich-text-input/utils/text-style-utils.d.ts +0 -33
@@ -1,54 +1,55 @@
1
- import { jsx as s, jsxs as re, Fragment as Ve } from "react/jsx-runtime";
2
- import { useSlotRecipe as Gu } from "@chakra-ui/react/styled-system";
3
- import { u as Mu } from "./index-jNM4sRnI.es.js";
4
- import { createSlotRecipeContext as zu, mergeRefs as ju } from "@chakra-ui/react";
5
- import X, { useEffect as ne, useRef as g, useMemo as ae, useState as j, useCallback as G, createContext as $e, forwardRef as Nu, useContext as Ne } from "react";
6
- import { $ as Ue } from "./Button-CafJrK0a.es.js";
7
- import { c as qe, e as Se, g as De, d as Le, $ as fe, b as We, a as He } from "./utils-DF3YB901.es.js";
8
- import { $ as Je } from "./FieldError-CXcEMuBf.es.js";
9
- import { $ as Ze } from "./Form-CXcEMuBf.es.js";
10
- import { a as Pe } from "./Group-Bd9Zcn-V.es.js";
11
- import { a as xe, $ as Xe } from "./Input-EnWCwj65.es.js";
12
- import { $ as Ie } from "./Label-7OK510ha.es.js";
13
- import { e as Uu, f as qu, $ as Ye, a as Wu, b as Hu, d as Ju, c as Zu } from "./ListBox-C4BToxCj.es.js";
14
- import { q as Xu, d as Yu, e as Qu, i as _u, $ as Qe, r as _e, k as en, h as on } from "./Dialog-Cx5MzP6O.es.js";
15
- import { $ as we } from "./Text-DOcU1ycg.es.js";
16
- import { f as un, g as nn } from "./CollectionBuilder-D6lZ-33j.es.js";
17
- import { $ as eo } from "./filterDOMProps-BSVCO5jK.es.js";
18
- import { $ as tn, c as ln } from "./OverlayArrow-O5VkT1qj.es.js";
19
- import { $ as oo } from "./useFilter-BgT0isJK.es.js";
20
- import { b as cn, $ as rn } from "./useFormValidation-DMYpUH8i.es.js";
21
- import { e as an, f as uo, p as Be, q as Ge, r as sn, s as dn, t as Me, u as pn, v as $n } from "./SelectionManager-Dn0USbbI.es.js";
22
- import { $ as bn } from "./useSingleSelectListState-DU73GKrB.es.js";
23
- import { b as fn } from "./useListState-DXCqV37_.es.js";
24
- import { $ as no } from "./useControlledState-u436Wbp1.es.js";
25
- import { $ as ve } from "./LiveAnnouncer-CsPyaceH.es.js";
26
- import { a as pe, e as mn, $ as xn, c as be } from "./mergeProps-_eTFpDiB.es.js";
27
- import { g as Cn, j as hn, c as ge, $ as to } from "./utils-C2fGIqzL.es.js";
28
- import { b as vn } from "./openLink-D7--QlSJ.es.js";
29
- import { $ as Te } from "./useLabels-DKXyqbI2.es.js";
30
- import { $ as yn } from "./useUpdateEffect-CCDx8D4X.es.js";
31
- import { g as ye, f as An, d as En } from "./platform-Z5fvtFmM.es.js";
32
- import { $ as lo } from "./useEvent-CDFc-XeA.es.js";
33
- import { a as Bn, c as gn } from "./Header-D6CYH5C_.es.js";
34
- import { $ as Tn } from "./ListKeyboardDelegate-D7v3HUvw.es.js";
35
- import { $ as io } from "./useLocalizedStringFormatter-DaRRUvyV.es.js";
36
- import { $ as co } from "./useTextField-KZ773QTk.es.js";
37
- import { e as ke } from "./extract-style-props-CTU5PJnh.es.js";
38
- import { Close as ro, Loop as ao, KeyboardArrowDown as so, Check as Fn } from "@commercetools/nimbus-icons";
39
- import { I as Fe } from "./icon-button-CNauu_zf.es.js";
40
- import { B as me } from "./box-DuBoAZvq.es.js";
41
- import { Flex as po } from "@chakra-ui/react/flex";
42
- import { c as $o, a as Sn } from "./RSPContexts-DV4cFLUV.es.js";
43
- import { $ as bo } from "./useObjectRef-CaJ5pgjX.es.js";
44
- import { b as Dn } from "./useFocusVisible-BLRuz6I4.es.js";
45
- import { a as Ln } from "./TextArea-B__-6Fht.es.js";
46
- import { $ as Pn } from "./Hidden-X9vuhkMZ.es.js";
47
- import { T as Ae } from "./tag-group-CDx2BCfu.es.js";
48
- import { $ as In } from "./usePress-DUOmr3uI.es.js";
49
- import { $ as wn } from "./useFocusable-WbQD7vwU.es.js";
50
- var fo = {};
51
- fo = {
1
+ import { jsx as s, jsxs as ce, Fragment as Ge } from "react/jsx-runtime";
2
+ import { useSlotRecipe as Nt } from "@chakra-ui/react/styled-system";
3
+ import { u as zt } from "./index-CaeeOiBp.es.js";
4
+ import { createSlotRecipeContext as jt, mergeRefs as Ut } from "@chakra-ui/react";
5
+ import X, { useEffect as ue, useRef as T, useMemo as ae, useState as U, useCallback as z, createContext as fe, forwardRef as qt, useContext as qe } from "react";
6
+ import { $ as We } from "./Button-C4ud7YxN.es.js";
7
+ import { c as He, f as Le, g as Ie, d as Pe, $ as xe, b as Je, a as Ze } from "./utils-DDFsiM-7.es.js";
8
+ import { $ as Xe } from "./FieldError-CXcEMuBf.es.js";
9
+ import { $ as Ye } from "./Form-CXcEMuBf.es.js";
10
+ import { a as we } from "./Group-CiDvtaeM.es.js";
11
+ import { a as he, $ as Qe } from "./Input-De-sfAtq.es.js";
12
+ import { $ as ke } from "./Label-BS7NIWvY.es.js";
13
+ import { e as Wt, f as Ht, $ as _e, a as Jt, b as Zt, d as Xt, c as Yt } from "./ListBox-BfRQSQ3P.es.js";
14
+ import { q as Qt, d as _t, e as en, i as on, $ as eo, r as oo, k as tn, h as nn } from "./Dialog-C3sNnu1k.es.js";
15
+ import { $ as Ke } from "./Text-DOcU1ycg.es.js";
16
+ import { f as un, g as ln } from "./CollectionBuilder-D6lZ-33j.es.js";
17
+ import { $ as to } from "./filterDOMProps-BSVCO5jK.es.js";
18
+ import { $ as rn, c as cn } from "./OverlayArrow-O5VkT1qj.es.js";
19
+ import { $ as no } from "./useFilter-BgT0isJK.es.js";
20
+ import { b as an, $ as sn } from "./useFormValidation-DMYpUH8i.es.js";
21
+ import { e as dn, f as uo, p as Te, q as Ne, r as pn, s as bn, t as ze, u as $n, v as fn } from "./SelectionManager-Dn0USbbI.es.js";
22
+ import { $ as mn } from "./useSingleSelectListState-DU73GKrB.es.js";
23
+ import { b as xn } from "./useListState-DXCqV37_.es.js";
24
+ import { $ as lo } from "./useControlledState-u436Wbp1.es.js";
25
+ import { $ as Ae } from "./LiveAnnouncer-CsPyaceH.es.js";
26
+ import { a as $e, e as Cn, $ as hn, c as me } from "./mergeProps-_eTFpDiB.es.js";
27
+ import { g as vn, j as yn, c as Fe, $ as io } from "./utils-C2fGIqzL.es.js";
28
+ import { b as An } from "./openLink-D7--QlSJ.es.js";
29
+ import { $ as Se } from "./useLabels-DKXyqbI2.es.js";
30
+ import { $ as En } from "./useUpdateEffect-CCDx8D4X.es.js";
31
+ import { g as Ee, f as gn, d as Bn } from "./platform-Z5fvtFmM.es.js";
32
+ import { $ as ro } from "./useEvent-CDFc-XeA.es.js";
33
+ import { a as Tn, c as Fn } from "./Header-BxizMPpp.es.js";
34
+ import { $ as Sn } from "./ListKeyboardDelegate-D7v3HUvw.es.js";
35
+ import { $ as co } from "./useLocalizedStringFormatter-DaRRUvyV.es.js";
36
+ import { $ as ao } from "./useTextField-KZ773QTk.es.js";
37
+ import { e as Oe } from "./extract-style-props-CZpdYA8m.es.js";
38
+ import { defineMessages as Dn, useIntl as ve } from "react-intl";
39
+ import { Close as so, Loop as po, KeyboardArrowDown as bo, Check as Ln } from "@commercetools/nimbus-icons";
40
+ import { I as De } from "./icon-button-g4dZUH5O.es.js";
41
+ import { B as Ce } from "./box-DuBoAZvq.es.js";
42
+ import { Flex as $o } from "@chakra-ui/react/flex";
43
+ import { c as fo, a as In } from "./RSPContexts-DV4cFLUV.es.js";
44
+ import { $ as mo } from "./useObjectRef-CaJ5pgjX.es.js";
45
+ import { b as Pn } from "./useFocusVisible-BLRuz6I4.es.js";
46
+ import { a as wn } from "./TextArea-DR4R6vJD.es.js";
47
+ import { $ as kn } from "./Hidden-X9vuhkMZ.es.js";
48
+ import { T as ge } from "./tag-group-k_jEVQhv.es.js";
49
+ import { $ as Kn } from "./usePress-DUOmr3uI.es.js";
50
+ import { $ as On } from "./useFocusable-WbQD7vwU.es.js";
51
+ var xo = {};
52
+ xo = {
52
53
  buttonLabel: "عرض المقترحات",
53
54
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
54
55
  one: () => `${o.number(e.optionCount)} خيار`,
@@ -67,8 +68,8 @@ fo = {
67
68
  listboxLabel: "مقترحات",
68
69
  selectedAnnouncement: (e) => `${e.optionText}، محدد`
69
70
  };
70
- var mo = {};
71
- mo = {
71
+ var Co = {};
72
+ Co = {
72
73
  buttonLabel: "Покажи предложения",
73
74
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
74
75
  one: () => `${o.number(e.optionCount)} опция`,
@@ -87,8 +88,8 @@ mo = {
87
88
  listboxLabel: "Предложения",
88
89
  selectedAnnouncement: (e) => `${e.optionText}, избрани`
89
90
  };
90
- var xo = {};
91
- xo = {
91
+ var ho = {};
92
+ ho = {
92
93
  buttonLabel: "Zobrazit doporučení",
93
94
  countAnnouncement: (e, o) => `K dispozici ${o.plural(e.optionCount, {
94
95
  one: () => `je ${o.number(e.optionCount)} možnost`,
@@ -107,8 +108,8 @@ xo = {
107
108
  listboxLabel: "Návrhy",
108
109
  selectedAnnouncement: (e) => `${e.optionText}, vybráno`
109
110
  };
110
- var Co = {};
111
- Co = {
111
+ var vo = {};
112
+ vo = {
112
113
  buttonLabel: "Vis forslag",
113
114
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
114
115
  one: () => `${o.number(e.optionCount)} mulighed tilgængelig`,
@@ -127,8 +128,8 @@ Co = {
127
128
  listboxLabel: "Forslag",
128
129
  selectedAnnouncement: (e) => `${e.optionText}, valgt`
129
130
  };
130
- var ho = {};
131
- ho = {
131
+ var yo = {};
132
+ yo = {
132
133
  buttonLabel: "Empfehlungen anzeigen",
133
134
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
134
135
  one: () => `${o.number(e.optionCount)} Option`,
@@ -147,8 +148,8 @@ ho = {
147
148
  listboxLabel: "Empfehlungen",
148
149
  selectedAnnouncement: (e) => `${e.optionText}, ausgewählt`
149
150
  };
150
- var vo = {};
151
- vo = {
151
+ var Ao = {};
152
+ Ao = {
152
153
  buttonLabel: "Προβολή προτάσεων",
153
154
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
154
155
  one: () => `${o.number(e.optionCount)} επιλογή`,
@@ -167,8 +168,8 @@ vo = {
167
168
  listboxLabel: "Προτάσεις",
168
169
  selectedAnnouncement: (e) => `${e.optionText}, επιλέχθηκε`
169
170
  };
170
- var yo = {};
171
- yo = {
171
+ var Eo = {};
172
+ Eo = {
172
173
  focusAnnouncement: (e, o) => `${o.select({
173
174
  true: () => `Entered group ${e.groupTitle}, with ${o.plural(e.groupCount, {
174
175
  one: () => `${o.number(e.groupCount)} option`,
@@ -187,8 +188,8 @@ yo = {
187
188
  buttonLabel: "Show suggestions",
188
189
  listboxLabel: "Suggestions"
189
190
  };
190
- var Ao = {};
191
- Ao = {
191
+ var go = {};
192
+ go = {
192
193
  buttonLabel: "Mostrar sugerencias",
193
194
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
194
195
  one: () => `${o.number(e.optionCount)} opción`,
@@ -207,8 +208,8 @@ Ao = {
207
208
  listboxLabel: "Sugerencias",
208
209
  selectedAnnouncement: (e) => `${e.optionText}, seleccionado`
209
210
  };
210
- var Eo = {};
211
- Eo = {
211
+ var Bo = {};
212
+ Bo = {
212
213
  buttonLabel: "Kuva soovitused",
213
214
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
214
215
  one: () => `${o.number(e.optionCount)} valik`,
@@ -227,8 +228,8 @@ Eo = {
227
228
  listboxLabel: "Soovitused",
228
229
  selectedAnnouncement: (e) => `${e.optionText}, valitud`
229
230
  };
230
- var Bo = {};
231
- Bo = {
231
+ var To = {};
232
+ To = {
232
233
  buttonLabel: "Näytä ehdotukset",
233
234
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
234
235
  one: () => `${o.number(e.optionCount)} vaihtoehto`,
@@ -247,8 +248,8 @@ Bo = {
247
248
  listboxLabel: "Ehdotukset",
248
249
  selectedAnnouncement: (e) => `${e.optionText}, valittu`
249
250
  };
250
- var go = {};
251
- go = {
251
+ var Fo = {};
252
+ Fo = {
252
253
  buttonLabel: "Afficher les suggestions",
253
254
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
254
255
  one: () => `${o.number(e.optionCount)} option`,
@@ -267,8 +268,8 @@ go = {
267
268
  listboxLabel: "Suggestions",
268
269
  selectedAnnouncement: (e) => `${e.optionText}, sélectionné`
269
270
  };
270
- var To = {};
271
- To = {
271
+ var So = {};
272
+ So = {
272
273
  buttonLabel: "הצג הצעות",
273
274
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
274
275
  one: () => `אפשרות ${o.number(e.optionCount)}`,
@@ -287,8 +288,8 @@ To = {
287
288
  listboxLabel: "הצעות",
288
289
  selectedAnnouncement: (e) => `${e.optionText}, נבחר`
289
290
  };
290
- var Fo = {};
291
- Fo = {
291
+ var Do = {};
292
+ Do = {
292
293
  buttonLabel: "Prikaži prijedloge",
293
294
  countAnnouncement: (e, o) => `Dostupno još: ${o.plural(e.optionCount, {
294
295
  one: () => `${o.number(e.optionCount)} opcija`,
@@ -307,8 +308,8 @@ Fo = {
307
308
  listboxLabel: "Prijedlozi",
308
309
  selectedAnnouncement: (e) => `${e.optionText}, odabrano`
309
310
  };
310
- var So = {};
311
- So = {
311
+ var Lo = {};
312
+ Lo = {
312
313
  buttonLabel: "Javaslatok megjelenítése",
313
314
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
314
315
  one: () => `${o.number(e.optionCount)} lehetőség`,
@@ -327,8 +328,8 @@ So = {
327
328
  listboxLabel: "Javaslatok",
328
329
  selectedAnnouncement: (e) => `${e.optionText}, kijelölve`
329
330
  };
330
- var Do = {};
331
- Do = {
331
+ var Io = {};
332
+ Io = {
332
333
  buttonLabel: "Mostra suggerimenti",
333
334
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
334
335
  one: () => `${o.number(e.optionCount)} opzione disponibile`,
@@ -347,8 +348,8 @@ Do = {
347
348
  listboxLabel: "Suggerimenti",
348
349
  selectedAnnouncement: (e) => `${e.optionText}, selezionato`
349
350
  };
350
- var Lo = {};
351
- Lo = {
351
+ var Po = {};
352
+ Po = {
352
353
  buttonLabel: "候補を表示",
353
354
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
354
355
  one: () => `${o.number(e.optionCount)} 個のオプション`,
@@ -367,8 +368,8 @@ Lo = {
367
368
  listboxLabel: "候補",
368
369
  selectedAnnouncement: (e) => `${e.optionText}、選択済み`
369
370
  };
370
- var Po = {};
371
- Po = {
371
+ var wo = {};
372
+ wo = {
372
373
  buttonLabel: "제안 사항 표시",
373
374
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
374
375
  one: () => `${o.number(e.optionCount)}개 옵션`,
@@ -387,8 +388,8 @@ Po = {
387
388
  listboxLabel: "제안",
388
389
  selectedAnnouncement: (e) => `${e.optionText}, 선택됨`
389
390
  };
390
- var Io = {};
391
- Io = {
391
+ var ko = {};
392
+ ko = {
392
393
  buttonLabel: "Rodyti pasiūlymus",
393
394
  countAnnouncement: (e, o) => `Yra ${o.plural(e.optionCount, {
394
395
  one: () => `${o.number(e.optionCount)} parinktis`,
@@ -407,8 +408,8 @@ Io = {
407
408
  listboxLabel: "Pasiūlymai",
408
409
  selectedAnnouncement: (e) => `${e.optionText}, pasirinkta`
409
410
  };
410
- var wo = {};
411
- wo = {
411
+ var Ko = {};
412
+ Ko = {
412
413
  buttonLabel: "Rādīt ieteikumus",
413
414
  countAnnouncement: (e, o) => `Pieejamo opciju skaits: ${o.plural(e.optionCount, {
414
415
  one: () => `${o.number(e.optionCount)} opcija`,
@@ -427,8 +428,8 @@ wo = {
427
428
  listboxLabel: "Ieteikumi",
428
429
  selectedAnnouncement: (e) => `${e.optionText}, atlasīta`
429
430
  };
430
- var ko = {};
431
- ko = {
431
+ var Oo = {};
432
+ Oo = {
432
433
  buttonLabel: "Vis forslag",
433
434
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
434
435
  one: () => `${o.number(e.optionCount)} alternativ`,
@@ -447,8 +448,8 @@ ko = {
447
448
  listboxLabel: "Forslag",
448
449
  selectedAnnouncement: (e) => `${e.optionText}, valgt`
449
450
  };
450
- var Ko = {};
451
- Ko = {
451
+ var Ro = {};
452
+ Ro = {
452
453
  buttonLabel: "Suggesties weergeven",
453
454
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
454
455
  one: () => `${o.number(e.optionCount)} optie`,
@@ -467,8 +468,8 @@ Ko = {
467
468
  listboxLabel: "Suggesties",
468
469
  selectedAnnouncement: (e) => `${e.optionText}, geselecteerd`
469
470
  };
470
- var Oo = {};
471
- Oo = {
471
+ var Vo = {};
472
+ Vo = {
472
473
  buttonLabel: "Wyświetlaj sugestie",
473
474
  countAnnouncement: (e, o) => `dostępna/dostępne(-nych) ${o.plural(e.optionCount, {
474
475
  one: () => `${o.number(e.optionCount)} opcja`,
@@ -487,8 +488,8 @@ Oo = {
487
488
  listboxLabel: "Sugestie",
488
489
  selectedAnnouncement: (e) => `${e.optionText}, wybrano`
489
490
  };
490
- var Ro = {};
491
- Ro = {
491
+ var Mo = {};
492
+ Mo = {
492
493
  buttonLabel: "Mostrar sugestões",
493
494
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
494
495
  one: () => `${o.number(e.optionCount)} opção`,
@@ -507,8 +508,8 @@ Ro = {
507
508
  listboxLabel: "Sugestões",
508
509
  selectedAnnouncement: (e) => `${e.optionText}, selecionado`
509
510
  };
510
- var Vo = {};
511
- Vo = {
511
+ var Go = {};
512
+ Go = {
512
513
  buttonLabel: "Apresentar sugestões",
513
514
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
514
515
  one: () => `${o.number(e.optionCount)} opção`,
@@ -527,8 +528,8 @@ Vo = {
527
528
  listboxLabel: "Sugestões",
528
529
  selectedAnnouncement: (e) => `${e.optionText}, selecionado`
529
530
  };
530
- var Go = {};
531
- Go = {
531
+ var No = {};
532
+ No = {
532
533
  buttonLabel: "Afișare sugestii",
533
534
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
534
535
  one: () => `${o.number(e.optionCount)} opțiune`,
@@ -547,8 +548,8 @@ Go = {
547
548
  listboxLabel: "Sugestii",
548
549
  selectedAnnouncement: (e) => `${e.optionText}, selectat`
549
550
  };
550
- var Mo = {};
551
- Mo = {
551
+ var zo = {};
552
+ zo = {
552
553
  buttonLabel: "Показать предложения",
553
554
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
554
555
  one: () => `${o.number(e.optionCount)} параметр`,
@@ -567,8 +568,8 @@ Mo = {
567
568
  listboxLabel: "Предложения",
568
569
  selectedAnnouncement: (e) => `${e.optionText}, выбрано`
569
570
  };
570
- var zo = {};
571
- zo = {
571
+ var jo = {};
572
+ jo = {
572
573
  buttonLabel: "Zobraziť návrhy",
573
574
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
574
575
  one: () => `${o.number(e.optionCount)} možnosť`,
@@ -587,8 +588,8 @@ zo = {
587
588
  listboxLabel: "Návrhy",
588
589
  selectedAnnouncement: (e) => `${e.optionText}, vybraté`
589
590
  };
590
- var jo = {};
591
- jo = {
591
+ var Uo = {};
592
+ Uo = {
592
593
  buttonLabel: "Prikaži predloge",
593
594
  countAnnouncement: (e, o) => `Na voljo je ${o.plural(e.optionCount, {
594
595
  one: () => `${o.number(e.optionCount)} opcija`,
@@ -607,8 +608,8 @@ jo = {
607
608
  listboxLabel: "Predlogi",
608
609
  selectedAnnouncement: (e) => `${e.optionText}, izbrano`
609
610
  };
610
- var No = {};
611
- No = {
611
+ var qo = {};
612
+ qo = {
612
613
  buttonLabel: "Prikaži predloge",
613
614
  countAnnouncement: (e, o) => `Dostupno još: ${o.plural(e.optionCount, {
614
615
  one: () => `${o.number(e.optionCount)} opcija`,
@@ -627,8 +628,8 @@ No = {
627
628
  listboxLabel: "Predlozi",
628
629
  selectedAnnouncement: (e) => `${e.optionText}, izabrano`
629
630
  };
630
- var Uo = {};
631
- Uo = {
631
+ var Wo = {};
632
+ Wo = {
632
633
  buttonLabel: "Visa förslag",
633
634
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
634
635
  one: () => `${o.number(e.optionCount)} alternativ`,
@@ -647,8 +648,8 @@ Uo = {
647
648
  listboxLabel: "Förslag",
648
649
  selectedAnnouncement: (e) => `${e.optionText}, valda`
649
650
  };
650
- var qo = {};
651
- qo = {
651
+ var Ho = {};
652
+ Ho = {
652
653
  buttonLabel: "Önerileri göster",
653
654
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
654
655
  one: () => `${o.number(e.optionCount)} seçenek`,
@@ -667,8 +668,8 @@ qo = {
667
668
  listboxLabel: "Öneriler",
668
669
  selectedAnnouncement: (e) => `${e.optionText}, seçildi`
669
670
  };
670
- var Wo = {};
671
- Wo = {
671
+ var Jo = {};
672
+ Jo = {
672
673
  buttonLabel: "Показати пропозиції",
673
674
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
674
675
  one: () => `${o.number(e.optionCount)} параметр`,
@@ -687,8 +688,8 @@ Wo = {
687
688
  listboxLabel: "Пропозиції",
688
689
  selectedAnnouncement: (e) => `${e.optionText}, вибрано`
689
690
  };
690
- var Ho = {};
691
- Ho = {
691
+ var Zo = {};
692
+ Zo = {
692
693
  buttonLabel: "显示建议",
693
694
  countAnnouncement: (e, o) => `有 ${o.plural(e.optionCount, {
694
695
  one: () => `${o.number(e.optionCount)} 个选项`,
@@ -707,8 +708,8 @@ Ho = {
707
708
  listboxLabel: "建议",
708
709
  selectedAnnouncement: (e) => `${e.optionText}, 已选择`
709
710
  };
710
- var Jo = {};
711
- Jo = {
711
+ var Xo = {};
712
+ Xo = {
712
713
  buttonLabel: "顯示建議",
713
714
  countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
714
715
  one: () => `${o.number(e.optionCount)} 選項`,
@@ -727,124 +728,124 @@ Jo = {
727
728
  listboxLabel: "建議",
728
729
  selectedAnnouncement: (e) => `${e.optionText}, 已選取`
729
730
  };
730
- var Zo = {};
731
- Zo = {
732
- "ar-AE": fo,
733
- "bg-BG": mo,
734
- "cs-CZ": xo,
735
- "da-DK": Co,
736
- "de-DE": ho,
737
- "el-GR": vo,
738
- "en-US": yo,
739
- "es-ES": Ao,
740
- "et-EE": Eo,
741
- "fi-FI": Bo,
742
- "fr-FR": go,
743
- "he-IL": To,
744
- "hr-HR": Fo,
745
- "hu-HU": So,
746
- "it-IT": Do,
747
- "ja-JP": Lo,
748
- "ko-KR": Po,
749
- "lt-LT": Io,
750
- "lv-LV": wo,
751
- "nb-NO": ko,
752
- "nl-NL": Ko,
753
- "pl-PL": Oo,
754
- "pt-BR": Ro,
755
- "pt-PT": Vo,
756
- "ro-RO": Go,
757
- "ru-RU": Mo,
758
- "sk-SK": zo,
759
- "sl-SI": jo,
760
- "sr-SP": No,
761
- "sv-SE": Uo,
762
- "tr-TR": qo,
763
- "uk-UA": Wo,
764
- "zh-CN": Ho,
765
- "zh-TW": Jo
766
- };
767
- const kn = /* @__PURE__ */ X.forwardRef(({ children: e, ...o }, u) => {
768
- u = bo(u);
769
- let { pressProps: t } = In({
731
+ var Yo = {};
732
+ Yo = {
733
+ "ar-AE": xo,
734
+ "bg-BG": Co,
735
+ "cs-CZ": ho,
736
+ "da-DK": vo,
737
+ "de-DE": yo,
738
+ "el-GR": Ao,
739
+ "en-US": Eo,
740
+ "es-ES": go,
741
+ "et-EE": Bo,
742
+ "fi-FI": To,
743
+ "fr-FR": Fo,
744
+ "he-IL": So,
745
+ "hr-HR": Do,
746
+ "hu-HU": Lo,
747
+ "it-IT": Io,
748
+ "ja-JP": Po,
749
+ "ko-KR": wo,
750
+ "lt-LT": ko,
751
+ "lv-LV": Ko,
752
+ "nb-NO": Oo,
753
+ "nl-NL": Ro,
754
+ "pl-PL": Vo,
755
+ "pt-BR": Mo,
756
+ "pt-PT": Go,
757
+ "ro-RO": No,
758
+ "ru-RU": zo,
759
+ "sk-SK": jo,
760
+ "sl-SI": Uo,
761
+ "sr-SP": qo,
762
+ "sv-SE": Wo,
763
+ "tr-TR": Ho,
764
+ "uk-UA": Jo,
765
+ "zh-CN": Zo,
766
+ "zh-TW": Xo
767
+ };
768
+ const Rn = /* @__PURE__ */ X.forwardRef(({ children: e, ...o }, t) => {
769
+ t = mo(t);
770
+ let { pressProps: u } = Kn({
770
771
  ...o,
771
- ref: u
772
- }), { focusableProps: n } = wn(o, u), i = X.Children.only(e);
773
- ne(() => {
772
+ ref: t
773
+ }), { focusableProps: n } = On(o, t), r = X.Children.only(e);
774
+ ue(() => {
774
775
  if (process.env.NODE_ENV === "production") return;
775
- let r = u.current;
776
- if (!r || !(r instanceof Cn(r).Element)) {
776
+ let c = t.current;
777
+ if (!c || !(c instanceof vn(c).Element)) {
777
778
  console.error("<Pressable> child must forward its ref to a DOM element.");
778
779
  return;
779
780
  }
780
- if (!o.isDisabled && !hn(r)) {
781
+ if (!o.isDisabled && !yn(c)) {
781
782
  console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");
782
783
  return;
783
784
  }
784
- if (r.localName !== "button" && r.localName !== "input" && r.localName !== "select" && r.localName !== "textarea" && r.localName !== "a" && r.localName !== "area" && r.localName !== "summary") {
785
- let l = r.getAttribute("role");
786
- l ? (
785
+ if (c.localName !== "button" && c.localName !== "input" && c.localName !== "select" && c.localName !== "textarea" && c.localName !== "a" && c.localName !== "area" && c.localName !== "summary") {
786
+ let i = c.getAttribute("role");
787
+ i ? (
787
788
  // https://w3c.github.io/aria/#widget_roles
788
- l !== "application" && l !== "button" && l !== "checkbox" && l !== "combobox" && l !== "gridcell" && l !== "link" && l !== "menuitem" && l !== "menuitemcheckbox" && l !== "menuitemradio" && l !== "option" && l !== "radio" && l !== "searchbox" && l !== "separator" && l !== "slider" && l !== "spinbutton" && l !== "switch" && l !== "tab" && l !== "textbox" && l !== "treeitem" && console.warn(`<Pressable> child must have an interactive ARIA role. Got "${l}".`)
789
+ i !== "application" && i !== "button" && i !== "checkbox" && i !== "combobox" && i !== "gridcell" && i !== "link" && i !== "menuitem" && i !== "menuitemcheckbox" && i !== "menuitemradio" && i !== "option" && i !== "radio" && i !== "searchbox" && i !== "separator" && i !== "slider" && i !== "spinbutton" && i !== "switch" && i !== "tab" && i !== "textbox" && i !== "treeitem" && console.warn(`<Pressable> child must have an interactive ARIA role. Got "${i}".`)
789
790
  ) : console.warn("<Pressable> child must have an interactive ARIA role.");
790
791
  }
791
792
  }, [
792
- u,
793
+ t,
793
794
  o.isDisabled
794
795
  ]);
795
- let b = parseInt(X.version, 10) < 19 ? i.ref : i.props.ref;
796
- return /* @__PURE__ */ X.cloneElement(i, {
797
- ...pe(t, n, i.props),
796
+ let p = parseInt(X.version, 10) < 19 ? r.ref : r.props.ref;
797
+ return /* @__PURE__ */ X.cloneElement(r, {
798
+ ...$e(u, n, r.props),
798
799
  // @ts-ignore
799
- ref: qe(b, u)
800
+ ref: He(p, t)
800
801
  });
801
802
  });
802
- function Kn(e) {
803
+ function Vn(e) {
803
804
  return e && e.__esModule ? e.default : e;
804
805
  }
805
- function On(e, o) {
806
- let { buttonRef: u, popoverRef: t, inputRef: n, listBoxRef: i, keyboardDelegate: b, layoutDelegate: r, shouldFocusWrap: l, isReadOnly: x, isDisabled: y } = e, C = g(null);
807
- u = u ?? C;
808
- let E = io(Kn(Zo), "@react-aria/combobox"), { menuTriggerProps: m, menuProps: S } = Xu({
806
+ function Mn(e, o) {
807
+ let { buttonRef: t, popoverRef: u, inputRef: n, listBoxRef: r, keyboardDelegate: p, layoutDelegate: c, shouldFocusWrap: i, isReadOnly: x, isDisabled: h } = e, C = T(null);
808
+ t = t ?? C;
809
+ let y = co(Vn(Yo), "@react-aria/combobox"), { menuTriggerProps: v, menuProps: g } = Qt({
809
810
  type: "listbox",
810
- isDisabled: y || x
811
- }, o, u);
812
- Uu.set(o, {
813
- id: S.id
811
+ isDisabled: h || x
812
+ }, o, t);
813
+ Wt.set(o, {
814
+ id: g.id
814
815
  });
815
- let { collection: f } = o, { disabledKeys: v } = o.selectionManager, d = ae(() => b || new Tn({
816
+ let { collection: f } = o, { disabledKeys: m } = o.selectionManager, d = ae(() => p || new Sn({
816
817
  collection: f,
817
- disabledKeys: v,
818
- ref: i,
819
- layoutDelegate: r
818
+ disabledKeys: m,
819
+ ref: r,
820
+ layoutDelegate: c
820
821
  }), [
821
- b,
822
- r,
822
+ p,
823
+ c,
823
824
  f,
824
- v,
825
- i
826
- ]), { collectionProps: F } = an({
825
+ m,
826
+ r
827
+ ]), { collectionProps: L } = dn({
827
828
  selectionManager: o.selectionManager,
828
829
  keyboardDelegate: d,
829
830
  disallowTypeAhead: !0,
830
831
  disallowEmptySelection: !0,
831
- shouldFocusWrap: l,
832
+ shouldFocusWrap: i,
832
833
  ref: n,
833
834
  // Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
834
835
  isVirtualized: !0
835
- }), N = vn(), U = ($) => {
836
+ }), O = An(), N = ($) => {
836
837
  if (!$.nativeEvent.isComposing)
837
838
  switch ($.key) {
838
839
  case "Enter":
839
840
  case "Tab":
840
- if (o.isOpen && $.key === "Enter" && $.preventDefault(), o.isOpen && i.current && o.selectionManager.focusedKey != null) {
841
- let h = o.collection.getItem(o.selectionManager.focusedKey);
842
- if (h?.props.href) {
843
- let p = i.current.querySelector(`[data-key="${CSS.escape(o.selectionManager.focusedKey.toString())}"]`);
844
- $.key === "Enter" && p instanceof HTMLAnchorElement && N.open(p, $, h.props.href, h.props.routerOptions), o.close();
841
+ if (o.isOpen && $.key === "Enter" && $.preventDefault(), o.isOpen && r.current && o.selectionManager.focusedKey != null) {
842
+ let b = o.collection.getItem(o.selectionManager.focusedKey);
843
+ if (b?.props.href) {
844
+ let D = r.current.querySelector(`[data-key="${CSS.escape(o.selectionManager.focusedKey.toString())}"]`);
845
+ $.key === "Enter" && D instanceof HTMLAnchorElement && O.open(D, $, b.props.href, b.props.routerOptions), o.close();
845
846
  break;
846
- } else if (h?.props.onAction) {
847
- h.props.onAction(), o.close();
847
+ } else if (b?.props.onAction) {
848
+ b.props.onAction(), o.close();
848
849
  break;
849
850
  }
850
851
  }
@@ -864,135 +865,135 @@ function On(e, o) {
864
865
  o.selectionManager.setFocusedKey(null);
865
866
  break;
866
867
  }
867
- }, D = ($) => {
868
- var h;
869
- let p = u?.current && u.current === $.relatedTarget, J = (h = t.current) === null || h === void 0 ? void 0 : h.contains($.relatedTarget);
870
- p || J || (e.onBlur && e.onBlur($), o.setFocused(!1));
871
- }, R = ($) => {
868
+ }, I = ($) => {
869
+ var b;
870
+ let D = t?.current && t.current === $.relatedTarget, A = (b = u.current) === null || b === void 0 ? void 0 : b.contains($.relatedTarget);
871
+ D || A || (e.onBlur && e.onBlur($), o.setFocused(!1));
872
+ }, M = ($) => {
872
873
  o.isFocused || (e.onFocus && e.onFocus($), o.setFocused(!0));
873
- }, { isInvalid: Y, validationErrors: q, validationDetails: W } = o.displayValidation, { labelProps: P, inputProps: oe, descriptionProps: M, errorMessageProps: Q } = co({
874
+ }, { isInvalid: Y, validationErrors: q, validationDetails: W } = o.displayValidation, { labelProps: k, inputProps: ee, descriptionProps: Q, errorMessageProps: G } = ao({
874
875
  ...e,
875
876
  onChange: o.setInputValue,
876
- onKeyDown: x ? e.onKeyDown : mn(o.isOpen && F.onKeyDown, U, e.onKeyDown),
877
- onBlur: D,
877
+ onKeyDown: x ? e.onKeyDown : Cn(o.isOpen && L.onKeyDown, N, e.onKeyDown),
878
+ onBlur: I,
878
879
  value: o.inputValue,
879
880
  defaultValue: o.defaultInputValue,
880
- onFocus: R,
881
+ onFocus: M,
881
882
  autoComplete: "off",
882
883
  validate: void 0,
883
- [cn]: o
884
- }, n), _ = ($) => {
884
+ [an]: o
885
+ }, n), oe = ($) => {
885
886
  if ($.pointerType === "touch") {
886
- var h;
887
- (h = n.current) === null || h === void 0 || h.focus(), o.toggle(null, "manual");
887
+ var b;
888
+ (b = n.current) === null || b === void 0 || b.focus(), o.toggle(null, "manual");
888
889
  }
889
- }, T = ($) => {
890
+ }, B = ($) => {
890
891
  if ($.pointerType !== "touch") {
891
- var h;
892
- (h = n.current) === null || h === void 0 || h.focus(), o.toggle($.pointerType === "keyboard" || $.pointerType === "virtual" ? "first" : null, "manual");
892
+ var b;
893
+ (b = n.current) === null || b === void 0 || b.focus(), o.toggle($.pointerType === "keyboard" || $.pointerType === "virtual" ? "first" : null, "manual");
893
894
  }
894
- }, z = Te({
895
- id: m.id,
896
- "aria-label": E.format("buttonLabel"),
897
- "aria-labelledby": e["aria-labelledby"] || P.id
898
- }), I = Te({
899
- id: S.id,
900
- "aria-label": E.format("listboxLabel"),
901
- "aria-labelledby": e["aria-labelledby"] || P.id
902
- }), k = g(0), c = ($) => {
903
- if (y || x) return;
904
- if ($.timeStamp - k.current < 500) {
905
- var h;
906
- $.preventDefault(), (h = n.current) === null || h === void 0 || h.focus();
895
+ }, j = Se({
896
+ id: v.id,
897
+ "aria-label": y.format("buttonLabel"),
898
+ "aria-labelledby": e["aria-labelledby"] || k.id
899
+ }), H = Se({
900
+ id: g.id,
901
+ "aria-label": y.format("listboxLabel"),
902
+ "aria-labelledby": e["aria-labelledby"] || k.id
903
+ }), P = T(0), l = ($) => {
904
+ if (h || x) return;
905
+ if ($.timeStamp - P.current < 500) {
906
+ var b;
907
+ $.preventDefault(), (b = n.current) === null || b === void 0 || b.focus();
907
908
  return;
908
909
  }
909
- let p = $.target.getBoundingClientRect(), J = $.changedTouches[0], Z = Math.ceil(p.left + 0.5 * p.width), ee = Math.ceil(p.top + 0.5 * p.height);
910
- if (J.clientX === Z && J.clientY === ee) {
911
- var le;
912
- $.preventDefault(), (le = n.current) === null || le === void 0 || le.focus(), o.toggle(null, "manual"), k.current = $.timeStamp;
910
+ let D = $.target.getBoundingClientRect(), A = $.changedTouches[0], _ = Math.ceil(D.left + 0.5 * D.width), ne = Math.ceil(D.top + 0.5 * D.height);
911
+ if (A.clientX === _ && A.clientY === ne) {
912
+ var Z;
913
+ $.preventDefault(), (Z = n.current) === null || Z === void 0 || Z.focus(), o.toggle(null, "manual"), P.current = $.timeStamp;
913
914
  }
914
915
  }, a = o.selectionManager.focusedKey != null && o.isOpen ? o.collection.getItem(o.selectionManager.focusedKey) : void 0;
915
- var B;
916
- let L = (B = a?.parentKey) !== null && B !== void 0 ? B : null;
916
+ var w;
917
+ let F = (w = a?.parentKey) !== null && w !== void 0 ? w : null;
917
918
  var V;
918
- let K = (V = o.selectionManager.focusedKey) !== null && V !== void 0 ? V : null, ie = g(L), H = g(K);
919
- ne(() => {
920
- if (ye() && a != null && K != null && K !== H.current) {
921
- let h = o.selectionManager.isSelected(K), p = L != null ? o.collection.getItem(L) : null, J = p?.["aria-label"] || (typeof p?.rendered == "string" ? p.rendered : "") || "";
919
+ let S = (V = o.selectionManager.focusedKey) !== null && V !== void 0 ? V : null, ie = T(F), te = T(S);
920
+ ue(() => {
921
+ if (Ee() && a != null && S != null && S !== te.current) {
922
+ let b = o.selectionManager.isSelected(S), D = F != null ? o.collection.getItem(F) : null, A = D?.["aria-label"] || (typeof D?.rendered == "string" ? D.rendered : "") || "";
922
923
  var $;
923
- let Z = E.format("focusAnnouncement", {
924
- isGroupChange: ($ = p && L !== ie.current) !== null && $ !== void 0 ? $ : !1,
925
- groupTitle: J,
926
- groupCount: p ? [
927
- ...uo(p, o.collection)
924
+ let _ = y.format("focusAnnouncement", {
925
+ isGroupChange: ($ = D && F !== ie.current) !== null && $ !== void 0 ? $ : !1,
926
+ groupTitle: A,
927
+ groupCount: D ? [
928
+ ...uo(D, o.collection)
928
929
  ].length : 0,
929
930
  optionText: a["aria-label"] || a.textValue || "",
930
- isSelected: h
931
+ isSelected: b
931
932
  });
932
- ve(Z);
933
+ Ae(_);
933
934
  }
934
- ie.current = L, H.current = K;
935
+ ie.current = F, te.current = S;
935
936
  });
936
- let ue = Bn(o.collection), ce = g(ue), se = g(o.isOpen);
937
- ne(() => {
938
- let $ = o.isOpen !== se.current && (o.selectionManager.focusedKey == null || ye());
939
- if (o.isOpen && ($ || ue !== ce.current)) {
940
- let h = E.format("countAnnouncement", {
941
- optionCount: ue
937
+ let J = Tn(o.collection), se = T(J), re = T(o.isOpen);
938
+ ue(() => {
939
+ let $ = o.isOpen !== re.current && (o.selectionManager.focusedKey == null || Ee());
940
+ if (o.isOpen && ($ || J !== se.current)) {
941
+ let b = y.format("countAnnouncement", {
942
+ optionCount: J
942
943
  });
943
- ve(h);
944
+ Ae(b);
944
945
  }
945
- ce.current = ue, se.current = o.isOpen;
946
+ se.current = J, re.current = o.isOpen;
946
947
  });
947
- let de = g(o.selectedKey);
948
- return ne(() => {
949
- if (ye() && o.isFocused && o.selectedItem && o.selectedKey !== de.current) {
950
- let $ = o.selectedItem["aria-label"] || o.selectedItem.textValue || "", h = E.format("selectedAnnouncement", {
948
+ let be = T(o.selectedKey);
949
+ return ue(() => {
950
+ if (Ee() && o.isFocused && o.selectedItem && o.selectedKey !== be.current) {
951
+ let $ = o.selectedItem["aria-label"] || o.selectedItem.textValue || "", b = y.format("selectedAnnouncement", {
951
952
  optionText: $
952
953
  });
953
- ve(h);
954
+ Ae(b);
954
955
  }
955
- de.current = o.selectedKey;
956
- }), ne(() => {
957
- if (o.isOpen) return Yu([
956
+ be.current = o.selectedKey;
957
+ }), ue(() => {
958
+ if (o.isOpen) return _t([
958
959
  n.current,
959
- t.current
960
+ u.current
960
961
  ].filter(($) => $ != null));
961
962
  }, [
962
963
  o.isOpen,
963
964
  n,
964
- t
965
- ]), yn(() => {
966
- !a && n.current && ge(to(n.current)) === n.current && Be(n.current, null);
965
+ u
966
+ ]), En(() => {
967
+ !a && n.current && Fe(io(n.current)) === n.current && Te(n.current, null);
967
968
  }, [
968
969
  a
969
- ]), lo(i, "react-aria-item-action", o.isOpen ? () => {
970
+ ]), ro(r, "react-aria-item-action", o.isOpen ? () => {
970
971
  o.close();
971
972
  } : void 0), {
972
- labelProps: P,
973
+ labelProps: k,
973
974
  buttonProps: {
974
- ...m,
975
- ...z,
975
+ ...v,
976
+ ...j,
976
977
  excludeFromTabOrder: !0,
977
978
  preventFocusOnPress: !0,
978
- onPress: _,
979
- onPressStart: T,
980
- isDisabled: y || x
979
+ onPress: oe,
980
+ onPressStart: B,
981
+ isDisabled: h || x
981
982
  },
982
- inputProps: pe(oe, {
983
+ inputProps: $e(ee, {
983
984
  role: "combobox",
984
- "aria-expanded": m["aria-expanded"],
985
- "aria-controls": o.isOpen ? S.id : void 0,
985
+ "aria-expanded": v["aria-expanded"],
986
+ "aria-controls": o.isOpen ? g.id : void 0,
986
987
  // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
987
988
  "aria-autocomplete": "list",
988
- "aria-activedescendant": a ? qu(o, a.key) : void 0,
989
- onTouchEnd: c,
989
+ "aria-activedescendant": a ? Ht(o, a.key) : void 0,
990
+ onTouchEnd: l,
990
991
  // This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
991
992
  autoCorrect: "off",
992
993
  // This disable's the macOS Safari spell check auto corrections.
993
994
  spellCheck: "false"
994
995
  }),
995
- listBoxProps: pe(S, I, {
996
+ listBoxProps: $e(g, H, {
996
997
  autoFocus: o.focusStrategy || !0,
997
998
  shouldUseVirtualFocus: !0,
998
999
  shouldSelectOnPressUp: !0,
@@ -1000,252 +1001,252 @@ function On(e, o) {
1000
1001
  linkBehavior: "selection",
1001
1002
  UNSTABLE_itemBehavior: "action"
1002
1003
  }),
1003
- descriptionProps: M,
1004
- errorMessageProps: Q,
1004
+ descriptionProps: Q,
1005
+ errorMessageProps: G,
1005
1006
  isInvalid: Y,
1006
1007
  validationErrors: q,
1007
1008
  validationDetails: W
1008
1009
  };
1009
1010
  }
1010
- var Xo = {};
1011
- Xo = {
1011
+ var Qo = {};
1012
+ Qo = {
1012
1013
  collectionLabel: "مقترحات"
1013
1014
  };
1014
- var Yo = {};
1015
- Yo = {
1015
+ var _o = {};
1016
+ _o = {
1016
1017
  collectionLabel: "Предложения"
1017
1018
  };
1018
- var Qo = {};
1019
- Qo = {
1019
+ var et = {};
1020
+ et = {
1020
1021
  collectionLabel: "Návrhy"
1021
1022
  };
1022
- var _o = {};
1023
- _o = {
1023
+ var ot = {};
1024
+ ot = {
1024
1025
  collectionLabel: "Forslag"
1025
1026
  };
1026
- var eu = {};
1027
- eu = {
1027
+ var tt = {};
1028
+ tt = {
1028
1029
  collectionLabel: "Empfehlungen"
1029
1030
  };
1030
- var ou = {};
1031
- ou = {
1031
+ var nt = {};
1032
+ nt = {
1032
1033
  collectionLabel: "Προτάσεις"
1033
1034
  };
1034
- var uu = {};
1035
- uu = {
1035
+ var ut = {};
1036
+ ut = {
1036
1037
  collectionLabel: "Suggestions"
1037
1038
  };
1038
- var nu = {};
1039
- nu = {
1039
+ var lt = {};
1040
+ lt = {
1040
1041
  collectionLabel: "Sugerencias"
1041
1042
  };
1042
- var tu = {};
1043
- tu = {
1043
+ var it = {};
1044
+ it = {
1044
1045
  collectionLabel: "Soovitused"
1045
1046
  };
1046
- var lu = {};
1047
- lu = {
1047
+ var rt = {};
1048
+ rt = {
1048
1049
  collectionLabel: "Ehdotukset"
1049
1050
  };
1050
- var iu = {};
1051
- iu = {
1051
+ var ct = {};
1052
+ ct = {
1052
1053
  collectionLabel: "Suggestions"
1053
1054
  };
1054
- var cu = {};
1055
- cu = {
1055
+ var at = {};
1056
+ at = {
1056
1057
  collectionLabel: "הצעות"
1057
1058
  };
1058
- var ru = {};
1059
- ru = {
1059
+ var st = {};
1060
+ st = {
1060
1061
  collectionLabel: "Prijedlozi"
1061
1062
  };
1062
- var au = {};
1063
- au = {
1063
+ var dt = {};
1064
+ dt = {
1064
1065
  collectionLabel: "Javaslatok"
1065
1066
  };
1066
- var su = {};
1067
- su = {
1067
+ var pt = {};
1068
+ pt = {
1068
1069
  collectionLabel: "Suggerimenti"
1069
1070
  };
1070
- var du = {};
1071
- du = {
1071
+ var bt = {};
1072
+ bt = {
1072
1073
  collectionLabel: "候補"
1073
1074
  };
1074
- var pu = {};
1075
- pu = {
1075
+ var $t = {};
1076
+ $t = {
1076
1077
  collectionLabel: "제안"
1077
1078
  };
1078
- var $u = {};
1079
- $u = {
1079
+ var ft = {};
1080
+ ft = {
1080
1081
  collectionLabel: "Pasiūlymai"
1081
1082
  };
1082
- var bu = {};
1083
- bu = {
1083
+ var mt = {};
1084
+ mt = {
1084
1085
  collectionLabel: "Ieteikumi"
1085
1086
  };
1086
- var fu = {};
1087
- fu = {
1087
+ var xt = {};
1088
+ xt = {
1088
1089
  collectionLabel: "Forslag"
1089
1090
  };
1090
- var mu = {};
1091
- mu = {
1091
+ var Ct = {};
1092
+ Ct = {
1092
1093
  collectionLabel: "Suggesties"
1093
1094
  };
1094
- var xu = {};
1095
- xu = {
1095
+ var ht = {};
1096
+ ht = {
1096
1097
  collectionLabel: "Sugestie"
1097
1098
  };
1098
- var Cu = {};
1099
- Cu = {
1099
+ var vt = {};
1100
+ vt = {
1100
1101
  collectionLabel: "Sugestões"
1101
1102
  };
1102
- var hu = {};
1103
- hu = {
1103
+ var yt = {};
1104
+ yt = {
1104
1105
  collectionLabel: "Sugestões"
1105
1106
  };
1106
- var vu = {};
1107
- vu = {
1107
+ var At = {};
1108
+ At = {
1108
1109
  collectionLabel: "Sugestii"
1109
1110
  };
1110
- var yu = {};
1111
- yu = {
1111
+ var Et = {};
1112
+ Et = {
1112
1113
  collectionLabel: "Предложения"
1113
1114
  };
1114
- var Au = {};
1115
- Au = {
1115
+ var gt = {};
1116
+ gt = {
1116
1117
  collectionLabel: "Návrhy"
1117
1118
  };
1118
- var Eu = {};
1119
- Eu = {
1119
+ var Bt = {};
1120
+ Bt = {
1120
1121
  collectionLabel: "Predlogi"
1121
1122
  };
1122
- var Bu = {};
1123
- Bu = {
1123
+ var Tt = {};
1124
+ Tt = {
1124
1125
  collectionLabel: "Predlozi"
1125
1126
  };
1126
- var gu = {};
1127
- gu = {
1127
+ var Ft = {};
1128
+ Ft = {
1128
1129
  collectionLabel: "Förslag"
1129
1130
  };
1130
- var Tu = {};
1131
- Tu = {
1131
+ var St = {};
1132
+ St = {
1132
1133
  collectionLabel: "Öneriler"
1133
1134
  };
1134
- var Fu = {};
1135
- Fu = {
1135
+ var Dt = {};
1136
+ Dt = {
1136
1137
  collectionLabel: "Пропозиції"
1137
1138
  };
1138
- var Su = {};
1139
- Su = {
1139
+ var Lt = {};
1140
+ Lt = {
1140
1141
  collectionLabel: "建议"
1141
1142
  };
1142
- var Du = {};
1143
- Du = {
1143
+ var It = {};
1144
+ It = {
1144
1145
  collectionLabel: "建議"
1145
1146
  };
1146
- var Lu = {};
1147
- Lu = {
1148
- "ar-AE": Xo,
1149
- "bg-BG": Yo,
1150
- "cs-CZ": Qo,
1151
- "da-DK": _o,
1152
- "de-DE": eu,
1153
- "el-GR": ou,
1154
- "en-US": uu,
1155
- "es-ES": nu,
1156
- "et-EE": tu,
1157
- "fi-FI": lu,
1158
- "fr-FR": iu,
1159
- "he-IL": cu,
1160
- "hr-HR": ru,
1161
- "hu-HU": au,
1162
- "it-IT": su,
1163
- "ja-JP": du,
1164
- "ko-KR": pu,
1165
- "lt-LT": $u,
1166
- "lv-LV": bu,
1167
- "nb-NO": fu,
1168
- "nl-NL": mu,
1169
- "pl-PL": xu,
1170
- "pt-BR": Cu,
1171
- "pt-PT": hu,
1172
- "ro-RO": vu,
1173
- "ru-RU": yu,
1174
- "sk-SK": Au,
1175
- "sl-SI": Eu,
1176
- "sr-SP": Bu,
1177
- "sv-SE": gu,
1178
- "tr-TR": Tu,
1179
- "uk-UA": Fu,
1180
- "zh-CN": Su,
1181
- "zh-TW": Du
1182
- };
1183
- function Rn(e) {
1147
+ var Pt = {};
1148
+ Pt = {
1149
+ "ar-AE": Qo,
1150
+ "bg-BG": _o,
1151
+ "cs-CZ": et,
1152
+ "da-DK": ot,
1153
+ "de-DE": tt,
1154
+ "el-GR": nt,
1155
+ "en-US": ut,
1156
+ "es-ES": lt,
1157
+ "et-EE": it,
1158
+ "fi-FI": rt,
1159
+ "fr-FR": ct,
1160
+ "he-IL": at,
1161
+ "hr-HR": st,
1162
+ "hu-HU": dt,
1163
+ "it-IT": pt,
1164
+ "ja-JP": bt,
1165
+ "ko-KR": $t,
1166
+ "lt-LT": ft,
1167
+ "lv-LV": mt,
1168
+ "nb-NO": xt,
1169
+ "nl-NL": Ct,
1170
+ "pl-PL": ht,
1171
+ "pt-BR": vt,
1172
+ "pt-PT": yt,
1173
+ "ro-RO": At,
1174
+ "ru-RU": Et,
1175
+ "sk-SK": gt,
1176
+ "sl-SI": Bt,
1177
+ "sr-SP": Tt,
1178
+ "sv-SE": Ft,
1179
+ "tr-TR": St,
1180
+ "uk-UA": Dt,
1181
+ "zh-CN": Lt,
1182
+ "zh-TW": It
1183
+ };
1184
+ function Gn(e) {
1184
1185
  return e && e.__esModule ? e.default : e;
1185
1186
  }
1186
- function Vn(e, o) {
1187
- let { inputRef: u, collectionRef: t, filter: n, disableAutoFocusFirst: i = !1, disableVirtualFocus: b = !1 } = e, r = xn(), l = g(void 0), x = g(!1), y = g(null), C = g(null), E = Dn() === "virtual" && (An() || En()), [m, S] = j(!E && !b), [f, v] = j(!1);
1188
- ne(() => () => clearTimeout(l.current), []);
1189
- let d = be((c) => {
1190
- !c.isTrusted && m && u.current && ge(to(u.current)) !== u.current && u.current.focus();
1191
- let a = c.target;
1192
- c.isTrusted || !a || y.current === a.id || (clearTimeout(l.current), a !== t.current ? x.current ? (y.current = a.id, l.current = setTimeout(() => {
1187
+ function Nn(e, o) {
1188
+ let { inputRef: t, collectionRef: u, filter: n, disableAutoFocusFirst: r = !1, disableVirtualFocus: p = !1 } = e, c = hn(), i = T(void 0), x = T(!1), h = T(null), C = T(null), y = Pn() === "virtual" && (gn() || Bn()), [v, g] = U(!y && !p), [f, m] = U(!1);
1189
+ ue(() => () => clearTimeout(i.current), []);
1190
+ let d = me((l) => {
1191
+ !l.isTrusted && v && t.current && Fe(io(t.current)) !== t.current && t.current.focus();
1192
+ let a = l.target;
1193
+ l.isTrusted || !a || h.current === a.id || (clearTimeout(i.current), a !== u.current ? x.current ? (h.current = a.id, i.current = setTimeout(() => {
1193
1194
  o.setFocusedNodeId(a.id);
1194
- }, 500)) : (y.current = a.id, o.setFocusedNodeId(a.id)) : y.current && !document.getElementById(y.current) && (y.current = null, o.setFocusedNodeId(null)), x.current = !1);
1195
- }), F = G((c) => {
1196
- if (c != null) {
1195
+ }, 500)) : (h.current = a.id, o.setFocusedNodeId(a.id)) : h.current && !document.getElementById(h.current) && (h.current = null, o.setFocusedNodeId(null)), x.current = !1);
1196
+ }), L = z((l) => {
1197
+ if (l != null) {
1197
1198
  var a;
1198
- (a = C.current) === null || a === void 0 || a.removeEventListener("focusin", d), C.current = c, c.addEventListener("focusin", d), c.getAttribute("tabindex") != null && S(!1), v(!0);
1199
+ (a = C.current) === null || a === void 0 || a.removeEventListener("focusin", d), C.current = l, l.addEventListener("focusin", d), l.getAttribute("tabindex") != null && g(!1), m(!0);
1199
1200
  } else {
1200
- var B;
1201
- (B = C.current) === null || B === void 0 || B.removeEventListener("focusin", d), v(!1);
1201
+ var w;
1202
+ (w = C.current) === null || w === void 0 || w.removeEventListener("focusin", d), m(!1);
1202
1203
  }
1203
1204
  }, [
1204
1205
  d
1205
- ]), N = bo(ae(() => qe(t, F), [
1206
- t,
1207
- F
1208
- ])), U = be(() => {
1209
- var c;
1210
- x.current = !0, (c = t.current) === null || c === void 0 || c.dispatchEvent(new CustomEvent(Ge, {
1206
+ ]), O = mo(ae(() => He(u, L), [
1207
+ u,
1208
+ L
1209
+ ])), N = me(() => {
1210
+ var l;
1211
+ x.current = !0, (l = u.current) === null || l === void 0 || l.dispatchEvent(new CustomEvent(Ne, {
1211
1212
  cancelable: !0,
1212
1213
  bubbles: !0,
1213
1214
  detail: {
1214
1215
  focusStrategy: "first"
1215
1216
  }
1216
1217
  }));
1217
- }), D = be((c) => {
1218
+ }), I = me((l) => {
1218
1219
  var a;
1219
- sn(ge()), y.current = null, o.setFocusedNodeId(null);
1220
- let B = new CustomEvent(dn, {
1220
+ pn(Fe()), h.current = null, o.setFocusedNodeId(null);
1221
+ let w = new CustomEvent(bn, {
1221
1222
  cancelable: !0,
1222
1223
  bubbles: !0,
1223
1224
  detail: {
1224
- clearFocusKey: c
1225
+ clearFocusKey: l
1225
1226
  }
1226
1227
  });
1227
- clearTimeout(l.current), x.current = !1, (a = t.current) === null || a === void 0 || a.dispatchEvent(B);
1228
- }), R = g("");
1229
- lo(u, "input", (c) => {
1230
- let { inputType: a } = c;
1231
- R.current = a;
1228
+ clearTimeout(i.current), x.current = !1, (a = u.current) === null || a === void 0 || a.dispatchEvent(w);
1229
+ }), M = T("");
1230
+ ro(t, "input", (l) => {
1231
+ let { inputType: a } = l;
1232
+ M.current = a;
1232
1233
  });
1233
- let Y = (c) => {
1234
- R.current === "insertText" && !i ? U() : R.current && (R.current.includes("insert") || R.current.includes("delete") || R.current.includes("history")) && (D(!0), $n(document) === u.current && Be(u.current, null)), o.setInputValue(c);
1235
- }, q = g(null), W = (c) => {
1236
- if (q.current = c.target, c.nativeEvent.isComposing) return;
1237
- let a = y.current;
1238
- switch (c.key) {
1234
+ let Y = (l) => {
1235
+ M.current === "insertText" && !r ? N() : M.current && (M.current.includes("insert") || M.current.includes("delete") || M.current.includes("history")) && (I(!0), fn(document) === t.current && Te(t.current, null)), o.setInputValue(l);
1236
+ }, q = T(null), W = (l) => {
1237
+ if (q.current = l.target, l.nativeEvent.isComposing) return;
1238
+ let a = h.current;
1239
+ switch (l.key) {
1239
1240
  case "a":
1240
- if (pn(c)) return;
1241
+ if ($n(l)) return;
1241
1242
  break;
1242
1243
  case "Escape":
1243
- if (c.isDefaultPrevented()) return;
1244
+ if (l.isDefaultPrevented()) return;
1244
1245
  break;
1245
1246
  case " ":
1246
1247
  return;
1247
1248
  case "Tab":
1248
- "continuePropagation" in c && c.continuePropagation();
1249
+ "continuePropagation" in l && l.continuePropagation();
1249
1250
  return;
1250
1251
  case "Home":
1251
1252
  case "End":
@@ -1253,92 +1254,92 @@ function Vn(e, o) {
1253
1254
  case "PageUp":
1254
1255
  case "ArrowUp":
1255
1256
  case "ArrowDown": {
1256
- var B;
1257
- if ((c.key === "Home" || c.key === "End") && a == null && c.shiftKey) return;
1258
- c.preventDefault();
1259
- let K = new CustomEvent(Ge, {
1257
+ var w;
1258
+ if ((l.key === "Home" || l.key === "End") && a == null && l.shiftKey) return;
1259
+ l.preventDefault();
1260
+ let S = new CustomEvent(Ne, {
1260
1261
  cancelable: !0,
1261
1262
  bubbles: !0
1262
1263
  });
1263
- (B = t.current) === null || B === void 0 || B.dispatchEvent(K);
1264
+ (w = u.current) === null || w === void 0 || w.dispatchEvent(S);
1264
1265
  break;
1265
1266
  }
1266
1267
  }
1267
- c.isPropagationStopped() || c.stopPropagation();
1268
- let L = !0;
1269
- if (t.current !== null) {
1268
+ l.isPropagationStopped() || l.stopPropagation();
1269
+ let F = !0;
1270
+ if (u.current !== null) {
1270
1271
  var V;
1271
- if (a == null) L = ((V = t.current) === null || V === void 0 ? void 0 : V.dispatchEvent(new KeyboardEvent(c.nativeEvent.type, c.nativeEvent))) || !1;
1272
+ if (a == null) F = ((V = u.current) === null || V === void 0 ? void 0 : V.dispatchEvent(new KeyboardEvent(l.nativeEvent.type, l.nativeEvent))) || !1;
1272
1273
  else {
1273
- let K = document.getElementById(a);
1274
- K && (L = K?.dispatchEvent(new KeyboardEvent(c.nativeEvent.type, c.nativeEvent)) || !1);
1274
+ let S = document.getElementById(a);
1275
+ S && (F = S?.dispatchEvent(new KeyboardEvent(l.nativeEvent.type, l.nativeEvent)) || !1);
1275
1276
  }
1276
1277
  }
1277
- if (L) switch (c.key) {
1278
+ if (F) switch (l.key) {
1278
1279
  case "ArrowLeft":
1279
1280
  case "ArrowRight":
1280
- D();
1281
+ I();
1281
1282
  break;
1282
1283
  case "Enter":
1283
1284
  if (a != null) {
1284
- let K = document.getElementById(a);
1285
- K?.click();
1285
+ let S = document.getElementById(a);
1286
+ S?.click();
1286
1287
  }
1287
1288
  break;
1288
1289
  }
1289
1290
  else
1290
- c.preventDefault();
1291
- }, P = be((c) => {
1292
- if (c.target === q.current) {
1291
+ l.preventDefault();
1292
+ }, k = me((l) => {
1293
+ if (l.target === q.current) {
1293
1294
  var a;
1294
- c.stopImmediatePropagation();
1295
- let B = y.current;
1296
- if (B == null) (a = t.current) === null || a === void 0 || a.dispatchEvent(new KeyboardEvent(c.type, c));
1295
+ l.stopImmediatePropagation();
1296
+ let w = h.current;
1297
+ if (w == null) (a = u.current) === null || a === void 0 || a.dispatchEvent(new KeyboardEvent(l.type, l));
1297
1298
  else {
1298
- let L = document.getElementById(B);
1299
- L?.dispatchEvent(new KeyboardEvent(c.type, c));
1299
+ let F = document.getElementById(w);
1300
+ F?.dispatchEvent(new KeyboardEvent(l.type, l));
1300
1301
  }
1301
1302
  }
1302
1303
  });
1303
- ne(() => (document.addEventListener("keyup", P, !0), () => {
1304
- document.removeEventListener("keyup", P, !0);
1304
+ ue(() => (document.addEventListener("keyup", k, !0), () => {
1305
+ document.removeEventListener("keyup", k, !0);
1305
1306
  }), [
1306
- P
1307
+ k
1307
1308
  ]);
1308
- let oe = io(Rn(Lu), "@react-aria/autocomplete"), M = Te({
1309
- id: r,
1310
- "aria-label": oe.format("collectionLabel")
1311
- }), Q = G((c, a) => n ? n(c, o.inputValue, a) : !0, [
1309
+ let ee = co(Gn(Pt), "@react-aria/autocomplete"), Q = Se({
1310
+ id: c,
1311
+ "aria-label": ee.format("collectionLabel")
1312
+ }), G = z((l, a) => n ? n(l, o.inputValue, a) : !0, [
1312
1313
  o.inputValue,
1313
1314
  n
1314
- ]), _ = (c) => {
1315
- if (!c.isTrusted) return;
1316
- let a = y.current ? document.getElementById(y.current) : null;
1317
- a && Me(a, c.relatedTarget);
1318
- }, T = (c) => {
1319
- if (!c.isTrusted) return;
1320
- if (y.current ? document.getElementById(y.current) : null) {
1321
- let B = c.target;
1315
+ ]), oe = (l) => {
1316
+ if (!l.isTrusted) return;
1317
+ let a = h.current ? document.getElementById(h.current) : null;
1318
+ a && ze(a, l.relatedTarget);
1319
+ }, B = (l) => {
1320
+ if (!l.isTrusted) return;
1321
+ if (h.current ? document.getElementById(h.current) : null) {
1322
+ let w = l.target;
1322
1323
  queueMicrotask(() => {
1323
- Me(B, t.current), Be(t.current, B);
1324
+ ze(w, u.current), Te(u.current, w);
1324
1325
  });
1325
1326
  }
1326
- }, z = {
1327
+ }, j = {
1327
1328
  value: o.inputValue,
1328
1329
  onChange: Y
1329
1330
  };
1330
- var I;
1331
- let k = {
1331
+ var H;
1332
+ let P = {
1332
1333
  onKeyDown: W,
1333
- "aria-activedescendant": (I = o.focusedNodeId) !== null && I !== void 0 ? I : void 0,
1334
- onBlur: _,
1335
- onFocus: T
1334
+ "aria-activedescendant": (H = o.focusedNodeId) !== null && H !== void 0 ? H : void 0,
1335
+ onBlur: oe,
1336
+ onFocus: B
1336
1337
  };
1337
- return f && (z = {
1338
- ...z,
1339
- ...m && k,
1338
+ return f && (j = {
1339
+ ...j,
1340
+ ...v && P,
1340
1341
  enterKeyHint: "go",
1341
- "aria-controls": r,
1342
+ "aria-controls": c,
1342
1343
  // TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
1343
1344
  "aria-autocomplete": "list",
1344
1345
  // This disable's iOS's autocorrect suggestions, since the autocomplete provides its own suggestions.
@@ -1347,297 +1348,297 @@ function Vn(e, o) {
1347
1348
  spellCheck: "false",
1348
1349
  autoComplete: "off"
1349
1350
  }), {
1350
- inputProps: z,
1351
- collectionProps: pe(M, {
1352
- shouldUseVirtualFocus: m,
1353
- disallowTypeAhead: m
1351
+ inputProps: j,
1352
+ collectionProps: $e(Q, {
1353
+ shouldUseVirtualFocus: v,
1354
+ disallowTypeAhead: v
1354
1355
  }),
1355
- collectionRef: N,
1356
- filter: n != null ? Q : void 0
1356
+ collectionRef: O,
1357
+ filter: n != null ? G : void 0
1357
1358
  };
1358
1359
  }
1359
- function Gn(e) {
1360
- let { onInputChange: o, inputValue: u, defaultInputValue: t = "" } = e, n = (x) => {
1360
+ function zn(e) {
1361
+ let { onInputChange: o, inputValue: t, defaultInputValue: u = "" } = e, n = (x) => {
1361
1362
  o && o(x);
1362
- }, [i, b] = j(null), [r, l] = no(u, t, n);
1363
+ }, [r, p] = U(null), [c, i] = lo(t, u, n);
1363
1364
  return {
1364
- inputValue: r,
1365
- setInputValue: l,
1366
- focusedNodeId: i,
1367
- setFocusedNodeId: b
1365
+ inputValue: c,
1366
+ setInputValue: i,
1367
+ focusedNodeId: r,
1368
+ setFocusedNodeId: p
1368
1369
  };
1369
1370
  }
1370
- const Mn = /* @__PURE__ */ $e(null), zn = /* @__PURE__ */ $e(null);
1371
- function jn(e) {
1372
- let o = Se(Mn, e.slot);
1373
- e = pe(o, e);
1374
- let { filter: u, disableAutoFocusFirst: t } = e, n = Gn(e), i = g(null), b = g(null), { inputProps: r, collectionProps: l, collectionRef: x, filter: y } = Vn({
1375
- ...De(e),
1376
- filter: u,
1377
- disableAutoFocusFirst: t,
1378
- inputRef: i,
1379
- collectionRef: b
1371
+ const jn = /* @__PURE__ */ fe(null), Un = /* @__PURE__ */ fe(null);
1372
+ function qn(e) {
1373
+ let o = Le(jn, e.slot);
1374
+ e = $e(o, e);
1375
+ let { filter: t, disableAutoFocusFirst: u } = e, n = zn(e), r = T(null), p = T(null), { inputProps: c, collectionProps: i, collectionRef: x, filter: h } = Nn({
1376
+ ...Ie(e),
1377
+ filter: t,
1378
+ disableAutoFocusFirst: u,
1379
+ inputRef: r,
1380
+ collectionRef: p
1380
1381
  }, n);
1381
- return /* @__PURE__ */ X.createElement(Le, {
1382
+ return /* @__PURE__ */ X.createElement(Pe, {
1382
1383
  values: [
1383
1384
  [
1384
- zn,
1385
+ Un,
1385
1386
  n
1386
1387
  ],
1387
1388
  [
1388
- $o,
1389
+ fo,
1389
1390
  {
1390
- ...r,
1391
- ref: i
1391
+ ...c,
1392
+ ref: r
1392
1393
  }
1393
1394
  ],
1394
1395
  [
1395
- Sn,
1396
+ In,
1396
1397
  {
1397
- ...l,
1398
- filter: y,
1398
+ ...i,
1399
+ filter: h,
1399
1400
  ref: x
1400
1401
  }
1401
1402
  ]
1402
1403
  ]
1403
1404
  }, e.children);
1404
1405
  }
1405
- function Nn(e) {
1406
+ function Wn(e) {
1406
1407
  var o;
1407
- let { defaultFilter: u, menuTrigger: t = "input", allowsEmptyCollection: n = !1, allowsCustomValue: i, shouldCloseOnBlur: b = !0 } = e, [r, l] = j(!1), [x, y] = j(!1), [C, E] = j(null), m = (A) => {
1408
- e.onSelectionChange && e.onSelectionChange(A), A === d && (V(), a());
1408
+ let { defaultFilter: t, menuTrigger: u = "input", allowsEmptyCollection: n = !1, allowsCustomValue: r, shouldCloseOnBlur: p = !0 } = e, [c, i] = U(!1), [x, h] = U(!1), [C, y] = U(null), v = (E) => {
1409
+ e.onSelectionChange && e.onSelectionChange(E), E === d && (V(), a());
1409
1410
  };
1410
- var S;
1411
- let { collection: f, selectionManager: v, selectedKey: d, setSelectedKey: F, selectedItem: N, disabledKeys: U } = bn({
1411
+ var g;
1412
+ let { collection: f, selectionManager: m, selectedKey: d, setSelectedKey: L, selectedItem: O, disabledKeys: N } = mn({
1412
1413
  ...e,
1413
- onSelectionChange: m,
1414
- items: (S = e.items) !== null && S !== void 0 ? S : e.defaultItems
1415
- }), [D, R] = no(e.inputValue, ze(e.defaultInputValue, d, f) || "", e.onInputChange), [Y] = j(d), [q] = j(D), W = f, P = ae(() => (
1414
+ onSelectionChange: v,
1415
+ items: (g = e.items) !== null && g !== void 0 ? g : e.defaultItems
1416
+ }), [I, M] = lo(e.inputValue, je(e.defaultInputValue, d, f) || "", e.onInputChange), [Y] = U(d), [q] = U(I), W = f, k = ae(() => (
1416
1417
  // No default filter if items are controlled.
1417
- e.items != null || !u ? f : Un(f, D, u)
1418
+ e.items != null || !t ? f : Hn(f, I, t)
1418
1419
  ), [
1419
1420
  f,
1420
- D,
1421
- u,
1421
+ I,
1422
+ t,
1422
1423
  e.items
1423
- ]), [oe, M] = j(P), Q = g("focus"), T = tn({
1424
+ ]), [ee, Q] = U(k), G = T("focus"), B = rn({
1424
1425
  ...e,
1425
- onOpenChange: (A) => {
1426
- e.onOpenChange && e.onOpenChange(A, A ? Q.current : void 0), v.setFocused(A), A || v.setFocusedKey(null);
1426
+ onOpenChange: (E) => {
1427
+ e.onOpenChange && e.onOpenChange(E, E ? G.current : void 0), m.setFocused(E), E || m.setFocusedKey(null);
1427
1428
  },
1428
1429
  isOpen: void 0,
1429
1430
  defaultOpen: void 0
1430
- }), z = (A = null, w) => {
1431
- let O = w === "manual" || w === "focus" && t === "focus";
1432
- (n || P.size > 0 || O && W.size > 0 || e.items) && (O && !T.isOpen && e.items === void 0 && l(!0), Q.current = w, E(A), T.open());
1433
- }, I = (A = null, w) => {
1434
- let O = w === "manual" || w === "focus" && t === "focus";
1435
- !(n || P.size > 0 || O && W.size > 0 || e.items) && !T.isOpen || (O && !T.isOpen && e.items === void 0 && l(!0), T.isOpen || (Q.current = w), c(A));
1436
- }, k = G(() => {
1437
- M(r ? W : P);
1431
+ }), j = (E = null, K) => {
1432
+ let R = K === "manual" || K === "focus" && u === "focus";
1433
+ (n || k.size > 0 || R && W.size > 0 || e.items) && (R && !B.isOpen && e.items === void 0 && i(!0), G.current = K, y(E), B.open());
1434
+ }, H = (E = null, K) => {
1435
+ let R = K === "manual" || K === "focus" && u === "focus";
1436
+ !(n || k.size > 0 || R && W.size > 0 || e.items) && !B.isOpen || (R && !B.isOpen && e.items === void 0 && i(!0), B.isOpen || (G.current = K), l(E));
1437
+ }, P = z(() => {
1438
+ Q(c ? W : k);
1438
1439
  }, [
1439
- r,
1440
+ c,
1440
1441
  W,
1441
- P
1442
- ]), c = G((A = null) => {
1443
- T.isOpen && k(), E(A), T.toggle();
1444
- }, [
1445
- T,
1446
1442
  k
1447
- ]), a = G(() => {
1448
- T.isOpen && (k(), T.close());
1443
+ ]), l = z((E = null) => {
1444
+ B.isOpen && P(), y(E), B.toggle();
1449
1445
  }, [
1450
- T,
1451
- k
1452
- ]), [B, L] = j(D), V = () => {
1453
- var A, w;
1454
- let O = d != null && (w = (A = f.getItem(d)) === null || A === void 0 ? void 0 : A.textValue) !== null && w !== void 0 ? w : "";
1455
- L(O), R(O);
1446
+ B,
1447
+ P
1448
+ ]), a = z(() => {
1449
+ B.isOpen && (P(), B.close());
1450
+ }, [
1451
+ B,
1452
+ P
1453
+ ]), [w, F] = U(I), V = () => {
1454
+ var E, K;
1455
+ let R = d != null && (K = (E = f.getItem(d)) === null || E === void 0 ? void 0 : E.textValue) !== null && K !== void 0 ? K : "";
1456
+ F(R), M(R);
1456
1457
  };
1457
- var K, ie;
1458
- let H = g((ie = (K = e.selectedKey) !== null && K !== void 0 ? K : e.defaultSelectedKey) !== null && ie !== void 0 ? ie : null);
1459
- var ue;
1460
- let ce = g(d != null && (ue = (o = f.getItem(d)) === null || o === void 0 ? void 0 : o.textValue) !== null && ue !== void 0 ? ue : "");
1461
- ne(() => {
1462
- var A;
1463
- x && (P.size > 0 || n) && !T.isOpen && D !== B && t !== "manual" && z(null, "input"), !r && !n && T.isOpen && P.size === 0 && a(), d != null && d !== H.current && a(), D !== B && (v.setFocusedKey(null), l(!1), D === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && F(null)), d !== H.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? V() : B !== D && L(D);
1464
- var w;
1465
- let O = d != null && (w = (A = f.getItem(d)) === null || A === void 0 ? void 0 : A.textValue) !== null && w !== void 0 ? w : "";
1466
- !x && d != null && e.inputValue === void 0 && d === H.current && ce.current !== O && (L(O), R(O)), H.current = d, ce.current = O;
1458
+ var S, ie;
1459
+ let te = T((ie = (S = e.selectedKey) !== null && S !== void 0 ? S : e.defaultSelectedKey) !== null && ie !== void 0 ? ie : null);
1460
+ var J;
1461
+ let se = T(d != null && (J = (o = f.getItem(d)) === null || o === void 0 ? void 0 : o.textValue) !== null && J !== void 0 ? J : "");
1462
+ ue(() => {
1463
+ var E;
1464
+ x && (k.size > 0 || n) && !B.isOpen && I !== w && u !== "manual" && j(null, "input"), !c && !n && B.isOpen && k.size === 0 && a(), d != null && d !== te.current && a(), I !== w && (m.setFocusedKey(null), i(!1), I === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && L(null)), d !== te.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? V() : w !== I && F(I);
1465
+ var K;
1466
+ let R = d != null && (K = (E = f.getItem(d)) === null || E === void 0 ? void 0 : E.textValue) !== null && K !== void 0 ? K : "";
1467
+ !x && d != null && e.inputValue === void 0 && d === te.current && se.current !== R && (F(R), M(R)), te.current = d, se.current = R;
1467
1468
  });
1468
- let se = rn({
1469
+ let re = sn({
1469
1470
  ...e,
1470
1471
  value: ae(() => ({
1471
- inputValue: D,
1472
+ inputValue: I,
1472
1473
  selectedKey: d
1473
1474
  }), [
1474
- D,
1475
+ I,
1475
1476
  d
1476
1477
  ])
1477
- }), de = () => {
1478
- i && d == null ? $() : h();
1478
+ }), be = () => {
1479
+ r && d == null ? $() : b();
1479
1480
  }, $ = () => {
1480
- H.current = null, F(null), a();
1481
- }, h = () => {
1481
+ te.current = null, L(null), a();
1482
+ }, b = () => {
1482
1483
  if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
1483
- var A, w;
1484
- (A = e.onSelectionChange) === null || A === void 0 || A.call(e, d);
1485
- var O;
1486
- let Vu = d != null && (O = (w = f.getItem(d)) === null || w === void 0 ? void 0 : w.textValue) !== null && O !== void 0 ? O : "";
1487
- L(Vu), a();
1484
+ var E, K;
1485
+ (E = e.onSelectionChange) === null || E === void 0 || E.call(e, d);
1486
+ var R;
1487
+ let Gt = d != null && (R = (K = f.getItem(d)) === null || K === void 0 ? void 0 : K.textValue) !== null && R !== void 0 ? R : "";
1488
+ F(Gt), a();
1488
1489
  } else
1489
1490
  V(), a();
1490
1491
  };
1491
- const p = () => {
1492
- if (i) {
1493
- var A, w;
1494
- const O = d != null && (w = (A = f.getItem(d)) === null || A === void 0 ? void 0 : A.textValue) !== null && w !== void 0 ? w : "";
1495
- D === O ? h() : $();
1492
+ const D = () => {
1493
+ if (r) {
1494
+ var E, K;
1495
+ const R = d != null && (K = (E = f.getItem(d)) === null || E === void 0 ? void 0 : E.textValue) !== null && K !== void 0 ? K : "";
1496
+ I === R ? b() : $();
1496
1497
  } else
1497
- h();
1498
+ b();
1498
1499
  };
1499
- let J = () => {
1500
- T.isOpen && v.focusedKey != null ? d === v.focusedKey ? h() : F(v.focusedKey) : p();
1501
- }, Z = g(D), ee = (A) => {
1502
- A ? (Z.current = D, t === "focus" && !e.isReadOnly && z(null, "focus")) : (b && p(), D !== Z.current && se.commitValidation()), y(A);
1503
- }, le = ae(() => T.isOpen ? r ? W : P : oe, [
1504
- T.isOpen,
1500
+ let A = () => {
1501
+ B.isOpen && m.focusedKey != null ? d === m.focusedKey ? b() : L(m.focusedKey) : D();
1502
+ }, _ = T(I), ne = (E) => {
1503
+ E ? (_.current = I, u === "focus" && !e.isReadOnly && j(null, "focus")) : (p && D(), I !== _.current && re.commitValidation()), h(E);
1504
+ }, Z = ae(() => B.isOpen ? c ? W : k : ee, [
1505
+ B.isOpen,
1505
1506
  W,
1506
- P,
1507
- r,
1508
- oe
1507
+ k,
1508
+ c,
1509
+ ee
1509
1510
  ]);
1510
- var Ce;
1511
- let Re = (Ce = e.defaultSelectedKey) !== null && Ce !== void 0 ? Ce : Y;
1512
- var he;
1511
+ var de;
1512
+ let Me = (de = e.defaultSelectedKey) !== null && de !== void 0 ? de : Y;
1513
+ var ye;
1513
1514
  return {
1514
- ...se,
1515
- ...T,
1515
+ ...re,
1516
+ ...B,
1516
1517
  focusStrategy: C,
1517
- toggle: I,
1518
- open: z,
1519
- close: p,
1520
- selectionManager: v,
1518
+ toggle: H,
1519
+ open: j,
1520
+ close: D,
1521
+ selectionManager: m,
1521
1522
  selectedKey: d,
1522
- defaultSelectedKey: Re,
1523
- setSelectedKey: F,
1524
- disabledKeys: U,
1523
+ defaultSelectedKey: Me,
1524
+ setSelectedKey: L,
1525
+ disabledKeys: N,
1525
1526
  isFocused: x,
1526
- setFocused: ee,
1527
- selectedItem: N,
1528
- collection: le,
1529
- inputValue: D,
1530
- defaultInputValue: (he = ze(e.defaultInputValue, Re, f)) !== null && he !== void 0 ? he : q,
1531
- setInputValue: R,
1532
- commit: J,
1533
- revert: de
1527
+ setFocused: ne,
1528
+ selectedItem: O,
1529
+ collection: Z,
1530
+ inputValue: I,
1531
+ defaultInputValue: (ye = je(e.defaultInputValue, Me, f)) !== null && ye !== void 0 ? ye : q,
1532
+ setInputValue: M,
1533
+ commit: A,
1534
+ revert: be
1534
1535
  };
1535
1536
  }
1536
- function Un(e, o, u) {
1537
- return new fn(Pu(e, e, o, u));
1537
+ function Hn(e, o, t) {
1538
+ return new xn(wt(e, e, o, t));
1538
1539
  }
1539
- function Pu(e, o, u, t) {
1540
+ function wt(e, o, t, u) {
1540
1541
  let n = [];
1541
- for (let i of o)
1542
- if (i.type === "section" && i.hasChildNodes) {
1543
- let b = Pu(e, uo(i, e), u, t);
1542
+ for (let r of o)
1543
+ if (r.type === "section" && r.hasChildNodes) {
1544
+ let p = wt(e, uo(r, e), t, u);
1544
1545
  [
1545
- ...b
1546
- ].some((r) => r.type === "item") && n.push({
1547
- ...i,
1548
- childNodes: b
1546
+ ...p
1547
+ ].some((c) => c.type === "item") && n.push({
1548
+ ...r,
1549
+ childNodes: p
1549
1550
  });
1550
- } else i.type === "item" && t(i.textValue, u) ? n.push({
1551
- ...i
1552
- }) : i.type !== "item" && n.push({
1553
- ...i
1551
+ } else r.type === "item" && u(r.textValue, t) ? n.push({
1552
+ ...r
1553
+ }) : r.type !== "item" && n.push({
1554
+ ...r
1554
1555
  });
1555
1556
  return n;
1556
1557
  }
1557
- function ze(e, o, u) {
1558
+ function je(e, o, t) {
1558
1559
  if (e == null) {
1559
- var t, n;
1560
- if (o != null) return (n = (t = u.getItem(o)) === null || t === void 0 ? void 0 : t.textValue) !== null && n !== void 0 ? n : "";
1560
+ var u, n;
1561
+ if (o != null) return (n = (u = t.getItem(o)) === null || u === void 0 ? void 0 : u.textValue) !== null && n !== void 0 ? n : "";
1561
1562
  }
1562
1563
  return e;
1563
1564
  }
1564
- const qn = /* @__PURE__ */ $e(null), Ke = /* @__PURE__ */ $e(null), Wn = /* @__PURE__ */ Nu(function(o, u) {
1565
- [o, u] = fe(o, u, qn);
1566
- let { children: t, isDisabled: n = !1, isInvalid: i = !1, isRequired: b = !1 } = o, r = ae(() => {
1567
- var l;
1568
- return /* @__PURE__ */ X.createElement(Ye.Provider, {
1565
+ const Jn = /* @__PURE__ */ fe(null), Re = /* @__PURE__ */ fe(null), Zn = /* @__PURE__ */ qt(function(o, t) {
1566
+ [o, t] = xe(o, t, Jn);
1567
+ let { children: u, isDisabled: n = !1, isInvalid: r = !1, isRequired: p = !1 } = o, c = ae(() => {
1568
+ var i;
1569
+ return /* @__PURE__ */ X.createElement(_e.Provider, {
1569
1570
  value: {
1570
- items: (l = o.items) !== null && l !== void 0 ? l : o.defaultItems
1571
+ items: (i = o.items) !== null && i !== void 0 ? i : o.defaultItems
1571
1572
  }
1572
- }, typeof t == "function" ? t({
1573
+ }, typeof u == "function" ? u({
1573
1574
  isOpen: !1,
1574
1575
  isDisabled: n,
1575
- isInvalid: i,
1576
- isRequired: b,
1576
+ isInvalid: r,
1577
+ isRequired: p,
1577
1578
  defaultChildren: null
1578
- }) : t);
1579
+ }) : u);
1579
1580
  }, [
1580
- t,
1581
+ u,
1581
1582
  n,
1582
- i,
1583
- b,
1583
+ r,
1584
+ p,
1584
1585
  o.items,
1585
1586
  o.defaultItems
1586
1587
  ]);
1587
1588
  return /* @__PURE__ */ X.createElement(un, {
1588
- content: r
1589
- }, (l) => /* @__PURE__ */ X.createElement(Jn, {
1589
+ content: c
1590
+ }, (i) => /* @__PURE__ */ X.createElement(Yn, {
1590
1591
  props: o,
1591
- collection: l,
1592
- comboBoxRef: u
1592
+ collection: i,
1593
+ comboBoxRef: t
1593
1594
  }));
1594
- }), Hn = [
1595
- Ie,
1596
- Ue,
1597
- xe,
1598
- Pe,
1599
- we
1595
+ }), Xn = [
1596
+ ke,
1597
+ We,
1598
+ he,
1599
+ we,
1600
+ Ke
1600
1601
  ];
1601
- function Jn({ props: e, collection: o, comboBoxRef: u }) {
1602
- let { name: t, formValue: n = "key", allowsCustomValue: i } = e;
1603
- i && (n = "text");
1604
- let { validationBehavior: b } = Se(Ze) || {};
1605
- var r, l;
1606
- let x = (l = (r = e.validationBehavior) !== null && r !== void 0 ? r : b) !== null && l !== void 0 ? l : "native", { contains: y } = oo({
1602
+ function Yn({ props: e, collection: o, comboBoxRef: t }) {
1603
+ let { name: u, formValue: n = "key", allowsCustomValue: r } = e;
1604
+ r && (n = "text");
1605
+ let { validationBehavior: p } = Le(Ye) || {};
1606
+ var c, i;
1607
+ let x = (i = (c = e.validationBehavior) !== null && c !== void 0 ? c : p) !== null && i !== void 0 ? i : "native", { contains: h } = no({
1607
1608
  sensitivity: "base"
1608
- }), C = Nn({
1609
- defaultFilter: e.defaultFilter || y,
1609
+ }), C = Wn({
1610
+ defaultFilter: e.defaultFilter || h,
1610
1611
  ...e,
1611
1612
  // If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
1612
1613
  items: e.items,
1613
1614
  children: void 0,
1614
1615
  collection: o,
1615
1616
  validationBehavior: x
1616
- }), E = g(null), m = g(null), S = g(null), f = g(null), [v, d] = We(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: F, inputProps: N, listBoxProps: U, labelProps: D, descriptionProps: R, errorMessageProps: Y, ...q } = On({
1617
- ...De(e),
1617
+ }), y = T(null), v = T(null), g = T(null), f = T(null), [m, d] = Je(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: L, inputProps: O, listBoxProps: N, labelProps: I, descriptionProps: M, errorMessageProps: Y, ...q } = Mn({
1618
+ ...Ie(e),
1618
1619
  label: d,
1619
- inputRef: m,
1620
- buttonRef: E,
1621
- listBoxRef: S,
1620
+ inputRef: v,
1621
+ buttonRef: y,
1622
+ listBoxRef: g,
1622
1623
  popoverRef: f,
1623
- name: n === "text" ? t : void 0,
1624
+ name: n === "text" ? u : void 0,
1624
1625
  validationBehavior: x
1625
- }, C), [W, P] = j(null), oe = G(() => {
1626
- if (m.current) {
1627
- var z;
1628
- let I = (z = E.current) === null || z === void 0 ? void 0 : z.getBoundingClientRect(), k = m.current.getBoundingClientRect(), c = I ? Math.min(I.left, k.left) : k.left, a = I ? Math.max(I.right, k.right) : k.right;
1629
- P(a - c + "px");
1626
+ }, C), [W, k] = U(null), ee = z(() => {
1627
+ if (v.current) {
1628
+ var j;
1629
+ let H = (j = y.current) === null || j === void 0 ? void 0 : j.getBoundingClientRect(), P = v.current.getBoundingClientRect(), l = H ? Math.min(H.left, P.left) : P.left, a = H ? Math.max(H.right, P.right) : P.right;
1630
+ k(a - l + "px");
1630
1631
  }
1631
1632
  }, [
1632
- E,
1633
- m,
1634
- P
1633
+ y,
1634
+ v,
1635
+ k
1635
1636
  ]);
1636
- ln({
1637
- ref: m,
1638
- onResize: oe
1637
+ cn({
1638
+ ref: v,
1639
+ onResize: ee
1639
1640
  });
1640
- let M = ae(() => ({
1641
+ let Q = ae(() => ({
1641
1642
  isOpen: C.isOpen,
1642
1643
  isDisabled: e.isDisabled || !1,
1643
1644
  isInvalid: q.isInvalid || !1,
@@ -1647,441 +1648,472 @@ function Jn({ props: e, collection: o, comboBoxRef: u }) {
1647
1648
  e.isDisabled,
1648
1649
  q.isInvalid,
1649
1650
  e.isRequired
1650
- ]), Q = He({
1651
+ ]), G = Ze({
1651
1652
  ...e,
1652
- values: M,
1653
+ values: Q,
1653
1654
  defaultClassName: "react-aria-ComboBox"
1654
- }), _ = eo(e, {
1655
+ }), oe = to(e, {
1655
1656
  global: !0
1656
1657
  });
1657
- delete _.id;
1658
- var T;
1659
- return /* @__PURE__ */ X.createElement(Le, {
1658
+ delete oe.id;
1659
+ var B;
1660
+ return /* @__PURE__ */ X.createElement(Pe, {
1660
1661
  values: [
1661
1662
  [
1662
- Ke,
1663
+ Re,
1663
1664
  C
1664
1665
  ],
1665
1666
  [
1666
- Ie,
1667
+ ke,
1667
1668
  {
1668
- ...D,
1669
- ref: v
1669
+ ...I,
1670
+ ref: m
1670
1671
  }
1671
1672
  ],
1672
1673
  [
1673
- Ue,
1674
+ We,
1674
1675
  {
1675
- ...F,
1676
- ref: E,
1676
+ ...L,
1677
+ ref: y,
1677
1678
  isPressed: C.isOpen
1678
1679
  }
1679
1680
  ],
1680
1681
  [
1681
- xe,
1682
+ he,
1682
1683
  {
1683
- ...N,
1684
- ref: m
1684
+ ...O,
1685
+ ref: v
1685
1686
  }
1686
1687
  ],
1687
1688
  [
1688
- Qu,
1689
+ en,
1689
1690
  C
1690
1691
  ],
1691
1692
  [
1692
- _u,
1693
+ on,
1693
1694
  {
1694
1695
  ref: f,
1695
- triggerRef: m,
1696
- scrollRef: S,
1696
+ triggerRef: v,
1697
+ scrollRef: g,
1697
1698
  placement: "bottom start",
1698
1699
  isNonModal: !0,
1699
1700
  trigger: "ComboBox",
1700
1701
  style: {
1701
1702
  "--trigger-width": W
1702
1703
  },
1703
- clearContexts: Hn
1704
+ clearContexts: Xn
1704
1705
  }
1705
1706
  ],
1706
1707
  [
1707
- Ye,
1708
+ _e,
1708
1709
  {
1709
- ...U,
1710
- ref: S
1710
+ ...N,
1711
+ ref: g
1711
1712
  }
1712
1713
  ],
1713
1714
  [
1714
- Wu,
1715
+ Jt,
1715
1716
  C
1716
1717
  ],
1717
1718
  [
1718
- we,
1719
+ Ke,
1719
1720
  {
1720
1721
  slots: {
1721
- description: R,
1722
+ description: M,
1722
1723
  errorMessage: Y
1723
1724
  }
1724
1725
  }
1725
1726
  ],
1726
1727
  [
1727
- Pe,
1728
+ we,
1728
1729
  {
1729
1730
  isInvalid: q.isInvalid,
1730
1731
  isDisabled: e.isDisabled || !1
1731
1732
  }
1732
1733
  ],
1733
1734
  [
1734
- Je,
1735
+ Xe,
1735
1736
  q
1736
1737
  ]
1737
1738
  ]
1738
1739
  }, /* @__PURE__ */ X.createElement("div", {
1739
- ..._,
1740
- ...Q,
1741
- ref: u,
1740
+ ...oe,
1741
+ ...G,
1742
+ ref: t,
1742
1743
  slot: e.slot || void 0,
1743
1744
  "data-focused": C.isFocused || void 0,
1744
1745
  "data-open": C.isOpen || void 0,
1745
1746
  "data-disabled": e.isDisabled || void 0,
1746
1747
  "data-invalid": q.isInvalid || void 0,
1747
1748
  "data-required": e.isRequired || void 0
1748
- }), t && n === "key" && /* @__PURE__ */ X.createElement("input", {
1749
+ }), u && n === "key" && /* @__PURE__ */ X.createElement("input", {
1749
1750
  type: "hidden",
1750
- name: t,
1751
+ name: u,
1751
1752
  form: e.form,
1752
- value: (T = C.selectedKey) !== null && T !== void 0 ? T : ""
1753
+ value: (B = C.selectedKey) !== null && B !== void 0 ? B : ""
1753
1754
  }));
1754
1755
  }
1755
- const Zn = /* @__PURE__ */ $e(null), Xn = /* @__PURE__ */ Pn(function(o, u) {
1756
- [o, u] = fe(o, u, Zn);
1757
- let { validationBehavior: t } = Se(Ze) || {};
1758
- var n, i;
1759
- let b = (i = (n = o.validationBehavior) !== null && n !== void 0 ? n : t) !== null && i !== void 0 ? i : "native", r = g(null);
1760
- [o, r] = fe(o, r, $o);
1761
- let [l, x] = We(!o["aria-label"] && !o["aria-labelledby"]), [y, C] = j("input"), { labelProps: E, inputProps: m, descriptionProps: S, errorMessageProps: f, ...v } = co({
1762
- ...De(o),
1763
- inputElementType: y,
1756
+ const Qn = /* @__PURE__ */ fe(null), _n = /* @__PURE__ */ kn(function(o, t) {
1757
+ [o, t] = xe(o, t, Qn);
1758
+ let { validationBehavior: u } = Le(Ye) || {};
1759
+ var n, r;
1760
+ let p = (r = (n = o.validationBehavior) !== null && n !== void 0 ? n : u) !== null && r !== void 0 ? r : "native", c = T(null);
1761
+ [o, c] = xe(o, c, fo);
1762
+ let [i, x] = Je(!o["aria-label"] && !o["aria-labelledby"]), [h, C] = U("input"), { labelProps: y, inputProps: v, descriptionProps: g, errorMessageProps: f, ...m } = ao({
1763
+ ...Ie(o),
1764
+ inputElementType: h,
1764
1765
  label: x,
1765
- validationBehavior: b
1766
- }, r), d = G((U) => {
1767
- r.current = U, U && C(U instanceof HTMLTextAreaElement ? "textarea" : "input");
1766
+ validationBehavior: p
1767
+ }, c), d = z((N) => {
1768
+ c.current = N, N && C(N instanceof HTMLTextAreaElement ? "textarea" : "input");
1768
1769
  }, [
1769
- r
1770
- ]), F = He({
1770
+ c
1771
+ ]), L = Ze({
1771
1772
  ...o,
1772
1773
  values: {
1773
1774
  isDisabled: o.isDisabled || !1,
1774
- isInvalid: v.isInvalid,
1775
+ isInvalid: m.isInvalid,
1775
1776
  isReadOnly: o.isReadOnly || !1,
1776
1777
  isRequired: o.isRequired || !1
1777
1778
  },
1778
1779
  defaultClassName: "react-aria-TextField"
1779
- }), N = eo(o, {
1780
+ }), O = to(o, {
1780
1781
  global: !0
1781
1782
  });
1782
- return delete N.id, /* @__PURE__ */ X.createElement("div", {
1783
- ...N,
1784
- ...F,
1785
- ref: u,
1783
+ return delete O.id, /* @__PURE__ */ X.createElement("div", {
1784
+ ...O,
1785
+ ...L,
1786
+ ref: t,
1786
1787
  slot: o.slot || void 0,
1787
1788
  "data-disabled": o.isDisabled || void 0,
1788
- "data-invalid": v.isInvalid || void 0,
1789
+ "data-invalid": m.isInvalid || void 0,
1789
1790
  "data-readonly": o.isReadOnly || void 0,
1790
1791
  "data-required": o.isRequired || void 0
1791
- }, /* @__PURE__ */ X.createElement(Le, {
1792
+ }, /* @__PURE__ */ X.createElement(Pe, {
1792
1793
  values: [
1793
1794
  [
1794
- Ie,
1795
+ ke,
1795
1796
  {
1796
- ...E,
1797
- ref: l
1797
+ ...y,
1798
+ ref: i
1798
1799
  }
1799
1800
  ],
1800
1801
  [
1801
- xe,
1802
+ he,
1802
1803
  {
1803
- ...m,
1804
+ ...v,
1804
1805
  ref: d
1805
1806
  }
1806
1807
  ],
1807
1808
  [
1808
- Ln,
1809
+ wn,
1809
1810
  {
1810
- ...m,
1811
+ ...v,
1811
1812
  ref: d
1812
1813
  }
1813
1814
  ],
1814
1815
  [
1815
- Pe,
1816
+ we,
1816
1817
  {
1817
1818
  role: "presentation",
1818
- isInvalid: v.isInvalid,
1819
+ isInvalid: m.isInvalid,
1819
1820
  isDisabled: o.isDisabled || !1
1820
1821
  }
1821
1822
  ],
1822
1823
  [
1823
- we,
1824
+ Ke,
1824
1825
  {
1825
1826
  slots: {
1826
- description: S,
1827
+ description: g,
1827
1828
  errorMessage: f
1828
1829
  }
1829
1830
  }
1830
1831
  ],
1831
1832
  [
1832
- Je,
1833
- v
1833
+ Xe,
1834
+ m
1834
1835
  ]
1835
1836
  ]
1836
- }, F.children));
1837
- }), { withProvider: Yn, withContext: te } = /* @__PURE__ */ zu({
1837
+ }, L.children));
1838
+ }), { withProvider: eu, withContext: le } = /* @__PURE__ */ jt({
1838
1839
  key: "combobox"
1839
- }), Qn = /* @__PURE__ */ Yn("div", "root"), _n = /* @__PURE__ */ te("div", "leadingElement"), Iu = /* @__PURE__ */ te("div", "value"), wu = /* @__PURE__ */ te("div", "buttonGroup"), et = /* @__PURE__ */ te("div", "popover"), ot = /* @__PURE__ */ te("input", "multiSelectInput"), ut = /* @__PURE__ */ te("div", "options"), nt = /* @__PURE__ */ te("div", "optionGroup"), tt = /* @__PURE__ */ te("div", "option"), lt = /* @__PURE__ */ te("span", "optionIndicator"), it = /* @__PURE__ */ te("span", "optionContent"), ct = (e) => {
1840
+ }), ou = /* @__PURE__ */ eu("div", "root"), tu = /* @__PURE__ */ le("div", "leadingElement"), kt = /* @__PURE__ */ le("div", "value"), Kt = /* @__PURE__ */ le("div", "buttonGroup"), nu = /* @__PURE__ */ le("div", "popover"), uu = /* @__PURE__ */ le("input", "multiSelectInput"), lu = /* @__PURE__ */ le("div", "options"), iu = /* @__PURE__ */ le("div", "optionGroup"), ru = /* @__PURE__ */ le("div", "option"), cu = /* @__PURE__ */ le("span", "optionIndicator"), au = /* @__PURE__ */ le("span", "optionContent"), su = (e) => {
1840
1841
  const {
1841
1842
  placeholder: o,
1842
- inputValue: u,
1843
- allowsCustomValue: t,
1843
+ inputValue: t,
1844
+ allowsCustomValue: u,
1844
1845
  onSubmitCustomValue: n,
1845
- onInputChange: i,
1846
- ref: b
1847
- } = e, [r, l] = fe({}, b || null, xe), x = Ne(Ke), y = G(
1846
+ onInputChange: r,
1847
+ ref: p
1848
+ } = e, [c, i] = xe({}, p || null, he), x = qe(Re), h = z(
1848
1849
  // This method clears the input if the user has focused on a pre-populated combobox and starts typing
1849
1850
  (C) => {
1850
- if (x?.selectedKey && l.current && // cursor is at the beginning of input...
1851
- l.current.selectionStart === 0 && l.current.selectionEnd === 0 && // ...and it has a value, which can only happen on focus
1852
- l.current.value.length > 0 && C.key.length === 1 && // Single character key
1851
+ if (x?.selectedKey && i.current && // cursor is at the beginning of input...
1852
+ i.current.selectionStart === 0 && i.current.selectionEnd === 0 && // ...and it has a value, which can only happen on focus
1853
+ i.current.value.length > 0 && C.key.length === 1 && // Single character key
1853
1854
  !C.ctrlKey && !C.metaKey && !C.altKey) {
1854
1855
  C.preventDefault(), C.stopPropagation(), x.setInputValue(C.key);
1855
1856
  return;
1856
1857
  }
1857
- if (C.key === "Enter" && u && u?.trim() !== "" && i && t && n && x)
1858
+ if (C.key === "Enter" && t && t?.trim() !== "" && r && u && n && x)
1858
1859
  if (x.collection) {
1859
- const m = Array.from(x.collection).find((S) => S.textValue.toLowerCase() === u.toLowerCase());
1860
- m ? x.setSelectedKey(m.key) : n(u);
1860
+ const v = Array.from(x.collection).find((g) => g.textValue.toLowerCase() === t.toLowerCase());
1861
+ v ? x.setSelectedKey(v.key) : n(t);
1861
1862
  } else
1862
- n(u);
1863
+ n(t);
1863
1864
  },
1864
- [u, i, t, n, x]
1865
+ [t, r, u, n, x]
1865
1866
  );
1866
- return /* @__PURE__ */ s(Iu, { asChild: !0, children: /* @__PURE__ */ s(
1867
- Xe,
1867
+ return /* @__PURE__ */ s(kt, { asChild: !0, children: /* @__PURE__ */ s(
1868
+ Qe,
1868
1869
  {
1869
- ref: l,
1870
- ...r,
1871
- onKeyDown: y,
1870
+ ref: i,
1871
+ ...c,
1872
+ onKeyDown: h,
1872
1873
  placeholder: o
1873
1874
  }
1874
1875
  ) });
1875
- }, Oe = ({
1876
+ }, Ve = ({
1876
1877
  children: e,
1877
1878
  ref: o,
1878
- ...u
1879
+ ...t
1879
1880
  }) => {
1880
- const [t, n] = ke(u);
1881
- return /* @__PURE__ */ s(ut, { ...t, asChild: !0, children: /* @__PURE__ */ s(Hu, { ref: o, ...n, children: e }) });
1882
- };
1883
- Oe.displayName = "ComboBox.Options";
1884
- const rt = ({
1881
+ const [u, n] = Oe(t);
1882
+ return /* @__PURE__ */ s(lu, { ...u, asChild: !0, children: /* @__PURE__ */ s(Zt, { ref: o, ...n, children: e }) });
1883
+ };
1884
+ Ve.displayName = "ComboBox.Options";
1885
+ const pe = /* @__PURE__ */ Dn({
1886
+ comboboxDialog: {
1887
+ id: "Nimbus.ComboBox.comboboxDialog",
1888
+ description: "aria-label for the combobox dialog overlay",
1889
+ defaultMessage: "Combobox dialog"
1890
+ },
1891
+ filterOptions: {
1892
+ id: "Nimbus.ComboBox.filterOptions",
1893
+ description: "aria-label for the combobox filter input field",
1894
+ defaultMessage: "Filter combobox options"
1895
+ },
1896
+ options: {
1897
+ id: "Nimbus.ComboBox.options",
1898
+ description: "aria-label for the combobox options list",
1899
+ defaultMessage: "Combobox options"
1900
+ },
1901
+ selectedValues: {
1902
+ id: "Nimbus.ComboBox.selectedValues",
1903
+ description: "aria-label for the selected values tag group in multi-select",
1904
+ defaultMessage: "Selected values"
1905
+ },
1906
+ clearSelection: {
1907
+ id: "Nimbus.ComboBox.clearSelection",
1908
+ description: "aria-label for the clear selection button",
1909
+ defaultMessage: "Clear selection"
1910
+ },
1911
+ toggleCombobox: {
1912
+ id: "Nimbus.ComboBox.toggleCombobox",
1913
+ description: "aria-label for the combobox toggle button",
1914
+ defaultMessage: "Toggle combobox"
1915
+ }
1916
+ }), du = ({
1885
1917
  isDisabled: e,
1886
1918
  isReadOnly: o,
1887
- isLoading: u
1919
+ isLoading: t
1888
1920
  }) => {
1889
- const t = Ne(Ke);
1890
- return /* @__PURE__ */ re(wu, { children: [
1891
- t?.selectedKey && /* @__PURE__ */ s(
1892
- Fe,
1921
+ const u = ve(), n = qe(Re);
1922
+ return /* @__PURE__ */ ce(Kt, { children: [
1923
+ n?.selectedKey && /* @__PURE__ */ s(
1924
+ De,
1893
1925
  {
1894
1926
  pointerEvents: "all",
1895
1927
  slot: null,
1896
1928
  size: "2xs",
1897
1929
  variant: "ghost",
1898
1930
  tone: "primary",
1899
- "aria-label": "Clear Selection",
1931
+ "aria-label": u.formatMessage(pe.clearSelection),
1900
1932
  isDisabled: e || o,
1901
1933
  _expanded: { bg: "transparent" },
1902
- onPress: () => t?.setSelectedKey(null),
1934
+ onPress: () => n?.setSelectedKey(null),
1903
1935
  my: "auto",
1904
- children: /* @__PURE__ */ s(ro, {})
1936
+ children: /* @__PURE__ */ s(so, {})
1905
1937
  }
1906
1938
  ),
1907
- u ? /* @__PURE__ */ s(po, { my: "auto", w: "600", h: "600", children: /* @__PURE__ */ s(me, { color: "neutral.11", asChild: !0, m: "auto", w: "400", h: "400", children: /* @__PURE__ */ s(
1908
- me,
1939
+ t ? /* @__PURE__ */ s($o, { my: "auto", w: "600", h: "600", children: /* @__PURE__ */ s(Ce, { color: "neutral.11", asChild: !0, m: "auto", w: "400", h: "400", children: /* @__PURE__ */ s(
1940
+ Ce,
1909
1941
  {
1910
1942
  asChild: !0,
1911
1943
  animation: "spin",
1912
1944
  animationDuration: "slowest",
1913
1945
  "data-testid": "nimbus-combobox-loading",
1914
- children: /* @__PURE__ */ s(ao, {})
1946
+ children: /* @__PURE__ */ s(po, {})
1915
1947
  }
1916
1948
  ) }) }) : /* @__PURE__ */ s(
1917
- Fe,
1949
+ De,
1918
1950
  {
1919
1951
  size: "2xs",
1920
1952
  variant: "ghost",
1921
- "aria-label": "toggle combobox",
1953
+ "aria-label": u.formatMessage(pe.toggleCombobox),
1922
1954
  tone: "neutral",
1923
1955
  my: "auto",
1924
1956
  isDisabled: e || o,
1925
1957
  _expanded: { bg: "transparent" },
1926
- children: /* @__PURE__ */ s(so, {})
1958
+ children: /* @__PURE__ */ s(bo, {})
1927
1959
  }
1928
1960
  )
1929
1961
  ] });
1930
- }, ku = ({
1962
+ }, Ot = ({
1931
1963
  children: e
1932
1964
  }) => {
1933
- const o = g(null);
1934
- return ne(() => {
1935
- const u = o.current;
1936
- if (!u) return;
1937
- const t = () => {
1938
- const i = u.offsetWidth, b = u.closest(".nimbus-combobox__root");
1939
- b instanceof HTMLElement && b.style.setProperty("--leading-element-width", `${i}px`);
1965
+ const o = T(null);
1966
+ return ue(() => {
1967
+ const t = o.current;
1968
+ if (!t) return;
1969
+ const u = () => {
1970
+ const r = t.offsetWidth, p = t.closest(".nimbus-combobox__root");
1971
+ p instanceof HTMLElement && p.style.setProperty("--leading-element-width", `${r}px`);
1940
1972
  };
1941
- t();
1942
- const n = new ResizeObserver(t);
1943
- return n.observe(u), () => {
1973
+ u();
1974
+ const n = new ResizeObserver(u);
1975
+ return n.observe(t), () => {
1944
1976
  n.disconnect();
1945
1977
  };
1946
- }, []), /* @__PURE__ */ s(_n, { ref: o, children: e });
1947
- }, at = ({
1978
+ }, []), /* @__PURE__ */ s(tu, { ref: o, children: e });
1979
+ }, pu = ({
1948
1980
  children: e,
1949
1981
  inputValue: o,
1950
- onInputChange: u,
1951
- placeholder: t,
1982
+ onInputChange: t,
1983
+ placeholder: u,
1952
1984
  allowsCustomValue: n,
1953
- onSubmitCustomValue: i,
1954
- renderEmptyState: b,
1955
- shouldFocusWrap: r = !0,
1956
- isLoading: l,
1985
+ onSubmitCustomValue: r,
1986
+ renderEmptyState: p,
1987
+ shouldFocusWrap: c = !0,
1988
+ isLoading: i,
1957
1989
  leadingElement: x,
1958
- ref: y,
1990
+ ref: h,
1959
1991
  ...C
1960
1992
  }) => {
1961
- if (i && (o === void 0 || !u))
1993
+ if (r && (o === void 0 || !t))
1962
1994
  throw new Error(
1963
1995
  'ComboBox: When "onSubmitCustomValue" is provided, "inputValue" must be controlled with "onInputChange"'
1964
1996
  );
1965
- const E = g(null), m = G(() => {
1966
- E.current && E.current.value && requestAnimationFrame(() => E.current?.setSelectionRange(0, 0));
1967
- }, [E]);
1968
- return /* @__PURE__ */ re(
1969
- Wn,
1997
+ const y = T(null), v = z(() => {
1998
+ y.current && y.current.value && requestAnimationFrame(() => y.current?.setSelectionRange(0, 0));
1999
+ }, [y]);
2000
+ return /* @__PURE__ */ ce(
2001
+ Zn,
1970
2002
  {
1971
2003
  inputValue: o,
1972
- onInputChange: u,
1973
- onFocus: m,
2004
+ onInputChange: t,
2005
+ onFocus: v,
1974
2006
  allowsCustomValue: n,
1975
2007
  menuTrigger: "focus",
1976
- shouldFocusWrap: r,
2008
+ shouldFocusWrap: c,
1977
2009
  ...C,
1978
- ref: y,
2010
+ ref: h,
1979
2011
  children: [
1980
- x && /* @__PURE__ */ s(ku, { children: x }),
2012
+ x && /* @__PURE__ */ s(Ot, { children: x }),
1981
2013
  /* @__PURE__ */ s(
1982
- ct,
2014
+ su,
1983
2015
  {
1984
- ref: E,
1985
- placeholder: t,
2016
+ ref: y,
2017
+ placeholder: u,
1986
2018
  inputValue: o,
1987
2019
  allowsCustomValue: n,
1988
- onSubmitCustomValue: i,
1989
- onInputChange: u
2020
+ onSubmitCustomValue: r,
2021
+ onInputChange: t
1990
2022
  }
1991
2023
  ),
1992
2024
  /* @__PURE__ */ s(
1993
- rt,
2025
+ du,
1994
2026
  {
1995
- isLoading: l,
2027
+ isLoading: i,
1996
2028
  isDisabled: C.isDisabled,
1997
2029
  isReadOnly: C.isReadOnly
1998
2030
  }
1999
2031
  ),
2000
- /* @__PURE__ */ s(Qe, { children: /* @__PURE__ */ s(Oe, { renderEmptyState: b, children: e }) })
2032
+ /* @__PURE__ */ s(eo, { children: /* @__PURE__ */ s(Ve, { renderEmptyState: p, children: e }) })
2001
2033
  ]
2002
2034
  }
2003
2035
  );
2004
2036
  };
2005
- function je(e) {
2037
+ function Ue(e) {
2006
2038
  return e != null && typeof e == "object" && "children" in e && Array.isArray(e.children);
2007
2039
  }
2008
- function Ee(e, o, u) {
2040
+ function Be(e, o, t) {
2009
2041
  if (e) {
2010
2042
  if (!Object.prototype.hasOwnProperty.call(e, "id") && o === "id")
2011
2043
  throw new Error(
2012
2044
  "ComboBox: if items do not have an `id` key, you must specify which key uniquely identifies items using the `itemId` prop"
2013
2045
  );
2014
- if (!Object.prototype.hasOwnProperty.call(e, "name") && u === "name")
2046
+ if (!Object.prototype.hasOwnProperty.call(e, "name") && t === "name")
2015
2047
  throw new Error(
2016
2048
  "ComboBox: if items do not have a `name` key, you must specify which key can be used as a text value using the `itemValue` prop"
2017
2049
  );
2018
2050
  }
2019
2051
  }
2020
- const st = (
2052
+ const bu = (
2021
2053
  /* eslint-disable @typescript-eslint/no-explicit-any */
2022
2054
  (({
2023
2055
  selectedKeys: e = /* @__PURE__ */ new Set(),
2024
2056
  items: o,
2025
- itemId: u = "id",
2026
- itemValue: t = "name",
2057
+ itemId: t = "id",
2058
+ itemValue: u = "name",
2027
2059
  placeholder: n,
2028
- onSelectionChange: i,
2029
- isDisabled: b,
2030
- isReadOnly: r,
2031
- size: l,
2060
+ onSelectionChange: r,
2061
+ isDisabled: p,
2062
+ isReadOnly: c,
2063
+ size: i,
2032
2064
  containerRef: x,
2033
- ref: y
2065
+ ref: h
2034
2066
  }) => {
2035
- const C = ae(() => {
2067
+ const C = ve(), y = ae(() => {
2036
2068
  if (!o) return [];
2037
- const m = Array.from(e);
2069
+ const g = Array.from(e);
2038
2070
  if (Array.isArray(o)) {
2039
- const f = o[0];
2040
- if (f && je(f)) {
2041
- const d = [];
2042
- return o.forEach((F) => {
2043
- je(F) && d.push(...F.children);
2044
- }), Ee(d?.[0], u, t), m.map((F) => d.find((N) => N[u] === F)).filter((F) => F !== void 0);
2071
+ const m = o[0];
2072
+ if (m && Ue(m)) {
2073
+ const L = [];
2074
+ return o.forEach((O) => {
2075
+ Ue(O) && L.push(...O.children);
2076
+ }), Be(L?.[0], t, u), g.map((O) => L.find((N) => N[t] === O)).filter((O) => O !== void 0);
2045
2077
  }
2046
- const v = o;
2047
- return Ee(v?.[0], u, t), m.map((d) => v.find((F) => F[u] === d)).filter((d) => d !== void 0);
2078
+ const d = o;
2079
+ return Be(d?.[0], t, u), g.map((L) => d.find((O) => O[t] === L)).filter((L) => L !== void 0);
2048
2080
  }
2049
- const S = m.map((f) => Array.from(o).find((v) => v[u] === f)).filter((f) => f !== void 0);
2050
- return Ee(S?.[0], u, t), S;
2051
- }, [o, e, u]), E = G(
2052
- (m) => {
2053
- if (!(b || r) && e instanceof Set) {
2054
- const S = e, f = new Set(
2055
- [...S].filter((v) => !m.has(v))
2081
+ const f = g.map((m) => Array.from(o).find((d) => d[t] === m)).filter((m) => m !== void 0);
2082
+ return Be(f?.[0], t, u), f;
2083
+ }, [o, e, t]), v = z(
2084
+ (g) => {
2085
+ if (!(p || c) && e instanceof Set) {
2086
+ const f = e, m = new Set(
2087
+ [...f].filter((d) => !g.has(d))
2056
2088
  );
2057
- i?.(f), x?.current && x.current.focus();
2089
+ r?.(m), x?.current && x.current.focus();
2058
2090
  }
2059
2091
  },
2060
- [b, r, e, i]
2092
+ [p, c, e, r]
2061
2093
  );
2062
- return /* @__PURE__ */ s(_e, { children: /* @__PURE__ */ s(
2063
- Iu,
2094
+ return /* @__PURE__ */ s(oo, { children: /* @__PURE__ */ s(
2095
+ kt,
2064
2096
  {
2065
2097
  asChild: !0,
2066
2098
  alignItems: "space-between",
2067
2099
  justifyContent: "center",
2068
- ref: y,
2100
+ ref: h,
2069
2101
  children: /* @__PURE__ */ s(
2070
- Ae.Root,
2102
+ ge.Root,
2071
2103
  {
2072
- size: l,
2073
- onRemove: E,
2074
- "aria-label": "Selected values",
2104
+ size: i,
2105
+ onRemove: v,
2106
+ "aria-label": C.formatMessage(pe.selectedValues),
2075
2107
  selectionMode: "none",
2076
- disabledKeys: b || r ? e : void 0,
2077
- "data-disabled": b,
2108
+ disabledKeys: p || c ? e : void 0,
2109
+ "data-disabled": p,
2078
2110
  children: /* @__PURE__ */ s(
2079
- Ae.TagList,
2111
+ ge.TagList,
2080
2112
  {
2081
- items: C,
2082
- dependencies: [u],
2113
+ items: y,
2114
+ dependencies: [t],
2083
2115
  maxW: "100%",
2084
- tabIndex: C.length === 0 || b || r ? -1 : void 0,
2116
+ tabIndex: y.length === 0 || p || c ? -1 : void 0,
2085
2117
  renderEmptyState: () => n && /* @__PURE__ */ s(
2086
2118
  "div",
2087
2119
  {
@@ -2094,7 +2126,7 @@ const st = (
2094
2126
  children: n
2095
2127
  }
2096
2128
  ),
2097
- children: (m) => /* @__PURE__ */ s(Ae.Tag, { id: m[u], maxW: "100%", children: m[t] })
2129
+ children: (g) => /* @__PURE__ */ s(ge.Tag, { id: g[t], maxW: "100%", children: g[u] })
2098
2130
  }
2099
2131
  )
2100
2132
  }
@@ -2102,246 +2134,246 @@ const st = (
2102
2134
  }
2103
2135
  ) });
2104
2136
  })
2105
- ), dt = ({
2137
+ ), $u = ({
2106
2138
  selectedKeys: e,
2107
2139
  onSelectionChange: o,
2108
- onInputChange: u,
2109
- containerRef: t,
2140
+ onInputChange: t,
2141
+ containerRef: u,
2110
2142
  isDisabled: n,
2111
- isReadOnly: i,
2112
- isLoading: b
2143
+ isReadOnly: r,
2144
+ isLoading: p
2113
2145
  }) => {
2114
- const r = G(() => {
2115
- o?.(/* @__PURE__ */ new Set()), u?.(""), t?.current && t.current.focus();
2146
+ const c = ve(), i = z(() => {
2147
+ o?.(/* @__PURE__ */ new Set()), t?.(""), u?.current && u.current.focus();
2116
2148
  }, []);
2117
- return /* @__PURE__ */ re(wu, { children: [
2118
- /* @__PURE__ */ s(_e, { children: e instanceof Set && e.size > 0 && /* @__PURE__ */ s(
2119
- Fe,
2149
+ return /* @__PURE__ */ ce(Kt, { children: [
2150
+ /* @__PURE__ */ s(oo, { children: e instanceof Set && e.size > 0 && /* @__PURE__ */ s(
2151
+ De,
2120
2152
  {
2121
2153
  pointerEvents: "all",
2122
2154
  slot: null,
2123
2155
  size: "2xs",
2124
2156
  variant: "ghost",
2125
2157
  tone: "primary",
2126
- "aria-label": "Clear Selection",
2127
- isDisabled: n || i,
2128
- onPress: r,
2158
+ "aria-label": c.formatMessage(pe.clearSelection),
2159
+ isDisabled: n || r,
2160
+ onPress: i,
2129
2161
  my: "auto",
2130
- children: /* @__PURE__ */ s(ro, {})
2162
+ children: /* @__PURE__ */ s(so, {})
2131
2163
  }
2132
2164
  ) }),
2133
2165
  /* @__PURE__ */ s(
2134
- po,
2166
+ $o,
2135
2167
  {
2136
2168
  my: "auto",
2137
2169
  w: "600",
2138
2170
  h: "600",
2139
2171
  color: "neutral.11",
2140
- opacity: i || n ? "0.5" : void 0,
2141
- cursor: i || n ? "not-allowed" : void 0,
2142
- children: /* @__PURE__ */ s(me, { pointerEvents: "none", asChild: !0, m: "auto", w: "400", h: "400", children: b ? /* @__PURE__ */ s(
2143
- me,
2172
+ opacity: r || n ? "0.5" : void 0,
2173
+ cursor: r || n ? "not-allowed" : void 0,
2174
+ children: /* @__PURE__ */ s(Ce, { pointerEvents: "none", asChild: !0, m: "auto", w: "400", h: "400", children: p ? /* @__PURE__ */ s(
2175
+ Ce,
2144
2176
  {
2145
2177
  asChild: !0,
2146
2178
  animation: "spin",
2147
2179
  animationDuration: "slowest",
2148
2180
  "data-testid": "nimbus-combobox-loading",
2149
- children: /* @__PURE__ */ s(ao, {})
2181
+ children: /* @__PURE__ */ s(po, {})
2150
2182
  }
2151
- ) : /* @__PURE__ */ s(so, {}) })
2183
+ ) : /* @__PURE__ */ s(bo, {}) })
2152
2184
  }
2153
2185
  )
2154
2186
  ] });
2155
2187
  };
2156
- function pt(e) {
2188
+ function fu(e) {
2157
2189
  let o;
2158
2190
  for (o of e) ;
2159
2191
  return o;
2160
2192
  }
2161
- const $t = ({
2193
+ const mu = ({
2162
2194
  children: e,
2163
2195
  defaultFilter: o,
2164
- inputValue: u,
2165
- defaultInputValue: t,
2196
+ inputValue: t,
2197
+ defaultInputValue: u,
2166
2198
  onInputChange: n,
2167
- defaultSelectedKeys: i = /* @__PURE__ */ new Set(),
2168
- selectedKeys: b,
2169
- onSelectionChange: r,
2170
- onOpenChange: l,
2199
+ defaultSelectedKeys: r = /* @__PURE__ */ new Set(),
2200
+ selectedKeys: p,
2201
+ onSelectionChange: c,
2202
+ onOpenChange: i,
2171
2203
  disabledKeys: x,
2172
- items: y,
2204
+ items: h,
2173
2205
  defaultItems: C,
2174
- itemId: E = "id",
2175
- itemValue: m = "name",
2176
- isLoading: S,
2206
+ itemId: y = "id",
2207
+ itemValue: v = "name",
2208
+ isLoading: g,
2177
2209
  isDisabled: f,
2178
- isReadOnly: v,
2210
+ isReadOnly: m,
2179
2211
  isRequired: d,
2180
- isInvalid: F,
2181
- className: N,
2182
- placeholder: U,
2183
- size: D = "md",
2184
- allowsCustomValue: R,
2212
+ isInvalid: L,
2213
+ className: O,
2214
+ placeholder: N,
2215
+ size: I = "md",
2216
+ allowsCustomValue: M,
2185
2217
  onSubmitCustomValue: Y,
2186
2218
  renderEmptyState: q,
2187
2219
  ref: W,
2188
- leadingElement: P,
2189
- ...oe
2220
+ leadingElement: k,
2221
+ ...ee
2190
2222
  }) => {
2191
- const [M, Q] = j(!1), _ = g(!1), [T, z] = j(), I = b ?? T ?? i, k = r ?? z, [c, a] = j(""), B = u ?? c ?? t, L = n ?? a, V = y ?? C, K = oo({ sensitivity: "base" }), ie = (...p) => K.contains.apply(void 0, p), H = G(
2192
- (p) => {
2193
- if (f || v) {
2194
- M && Q(!1);
2223
+ const Q = ve(), [G, oe] = U(!1), B = T(!1), [j, H] = U(), P = p ?? j ?? r, l = c ?? H, [a, w] = U(""), F = t ?? a ?? u, V = n ?? w, S = h ?? C, ie = no({ sensitivity: "base" }), te = (...A) => ie.contains.apply(void 0, A), J = z(
2224
+ (A) => {
2225
+ if (f || m) {
2226
+ G && oe(!1);
2195
2227
  return;
2196
2228
  }
2197
- l && l?.(p), Q(p), p || (_.current = !0, requestAnimationFrame(() => {
2229
+ i && i?.(A), oe(A), A || (B.current = !0, requestAnimationFrame(() => {
2198
2230
  setTimeout(() => {
2199
- _.current = !1;
2231
+ B.current = !1;
2200
2232
  }, 50);
2201
2233
  }));
2202
2234
  },
2203
- [f, v, l, M]
2235
+ [f, m, i, G]
2204
2236
  );
2205
- ne(() => {
2206
- (f || v) && H(!1);
2207
- }, [f, v]);
2208
- const ue = G(
2209
- (p) => {
2210
- f || v || p.target === p.currentTarget && !M && !_.current && H(!0);
2237
+ ue(() => {
2238
+ (f || m) && J(!1);
2239
+ }, [f, m]);
2240
+ const se = z(
2241
+ (A) => {
2242
+ f || m || A.target === A.currentTarget && !G && !B.current && J(!0);
2211
2243
  },
2212
- [M]
2213
- ), ce = G(() => {
2214
- if (I !== "all" && I instanceof Set) {
2215
- const p = pt(I);
2216
- if (p != null) {
2217
- const J = new Set(I);
2218
- J.delete(p), k(J);
2244
+ [G]
2245
+ ), re = z(() => {
2246
+ if (P !== "all" && P instanceof Set) {
2247
+ const A = fu(P);
2248
+ if (A != null) {
2249
+ const _ = new Set(P);
2250
+ _.delete(A), l(_);
2219
2251
  }
2220
2252
  }
2221
- }, [I, k]), se = G((p) => {
2222
- (p.key === "ArrowDown" || p.key === "ArrowUp" || p.key === "Enter") && p.target === $.current && (p.preventDefault(), H(!0));
2223
- }, []), de = G(
2224
- (p) => {
2225
- if (p.key === "Backspace" && B === "") {
2226
- ce();
2253
+ }, [P, l]), be = z((A) => {
2254
+ (A.key === "ArrowDown" || A.key === "ArrowUp" || A.key === "Enter") && A.target === b.current && (A.preventDefault(), J(!0));
2255
+ }, []), $ = z(
2256
+ (A) => {
2257
+ if (A.key === "Backspace" && F === "") {
2258
+ re();
2227
2259
  return;
2228
2260
  }
2229
- if (p.key === "Escape") {
2230
- H(!1), $.current && $.current.focus();
2261
+ if (A.key === "Escape") {
2262
+ J(!1), b.current && b.current.focus();
2231
2263
  return;
2232
2264
  }
2233
- if (p.key === "Enter" && B.trim() !== "" && R && Y)
2234
- if (p.stopPropagation(), V) {
2235
- const J = B.trim(), Z = Array.from(V).find((ee) => (typeof ee == "object" && ee !== null && m in ee ? String(ee[m]) : JSON.stringify(ee)).toLowerCase() === J.toLowerCase());
2236
- if (Z) {
2237
- const ee = typeof Z == "object" && Z !== null && E in Z ? Z[E] : Z, le = new Set(I);
2238
- le.add(ee), k(le), L("");
2265
+ if (A.key === "Enter" && F.trim() !== "" && M && Y)
2266
+ if (A.stopPropagation(), S) {
2267
+ const _ = F.trim(), ne = Array.from(S).find((Z) => (typeof Z == "object" && Z !== null && v in Z ? String(Z[v]) : JSON.stringify(Z)).toLowerCase() === _.toLowerCase());
2268
+ if (ne) {
2269
+ const Z = typeof ne == "object" && ne !== null && y in ne ? ne[y] : ne, de = new Set(P);
2270
+ de.add(Z), l(de), V("");
2239
2271
  } else
2240
- Y(B), L("");
2272
+ Y(F), V("");
2241
2273
  } else
2242
- Y(B), L("");
2274
+ Y(F), V("");
2243
2275
  },
2244
2276
  [
2245
- B,
2246
- ce,
2247
- R,
2277
+ F,
2278
+ re,
2279
+ M,
2248
2280
  Y,
2249
- V,
2250
- m,
2251
- E,
2252
- I,
2253
- k,
2254
- L
2281
+ S,
2282
+ v,
2283
+ y,
2284
+ P,
2285
+ l,
2286
+ V
2255
2287
  ]
2256
- ), $ = g(null), h = ju(W, $);
2257
- return /* @__PURE__ */ re(en, { isOpen: M, onOpenChange: H, children: [
2258
- /* @__PURE__ */ s(kn, { allowTextSelectionOnPress: !0, children: /* @__PURE__ */ re(
2288
+ ), b = T(null), D = Ut(W, b);
2289
+ return /* @__PURE__ */ ce(tn, { isOpen: G, onOpenChange: J, children: [
2290
+ /* @__PURE__ */ s(Rn, { allowTextSelectionOnPress: !0, children: /* @__PURE__ */ ce(
2259
2291
  "div",
2260
2292
  {
2261
- className: N,
2293
+ className: O,
2262
2294
  tabIndex: f ? -1 : 0,
2263
- ref: h,
2295
+ ref: D,
2264
2296
  role: "combobox",
2265
- onKeyDown: se,
2266
- onFocus: ue,
2267
- "aria-expanded": M,
2297
+ onKeyDown: be,
2298
+ onFocus: se,
2299
+ "aria-expanded": G,
2268
2300
  "aria-haspopup": "dialog",
2269
2301
  "aria-disabled": f,
2270
- "aria-readonly": v,
2302
+ "aria-readonly": m,
2271
2303
  "aria-required": d,
2272
- "aria-invalid": F,
2304
+ "aria-invalid": L,
2273
2305
  "data-disabled": f,
2274
- "data-invalid": F,
2306
+ "data-invalid": L,
2275
2307
  "data-required": d,
2276
- "data-open": M,
2277
- ...oe,
2308
+ "data-open": G,
2309
+ ...ee,
2278
2310
  children: [
2279
- P && /* @__PURE__ */ s(ku, { children: P }),
2311
+ k && /* @__PURE__ */ s(Ot, { children: k }),
2280
2312
  /* @__PURE__ */ s(
2281
- st,
2313
+ bu,
2282
2314
  {
2283
- items: V,
2284
- selectedKeys: I,
2285
- onSelectionChange: k,
2286
- itemId: E,
2287
- itemValue: m,
2288
- placeholder: U,
2289
- size: D,
2290
- containerRef: $,
2315
+ items: S,
2316
+ selectedKeys: P,
2317
+ onSelectionChange: l,
2318
+ itemId: y,
2319
+ itemValue: v,
2320
+ placeholder: N,
2321
+ size: I,
2322
+ containerRef: b,
2291
2323
  isDisabled: f,
2292
- isReadOnly: v
2324
+ isReadOnly: m
2293
2325
  }
2294
2326
  ),
2295
2327
  /* @__PURE__ */ s(
2296
- dt,
2328
+ $u,
2297
2329
  {
2298
- selectedKeys: I,
2299
- onSelectionChange: k,
2300
- onInputChange: L,
2301
- containerRef: $,
2330
+ selectedKeys: P,
2331
+ onSelectionChange: l,
2332
+ onInputChange: V,
2333
+ containerRef: b,
2302
2334
  isDisabled: f,
2303
- isReadOnly: v,
2304
- isLoading: S
2335
+ isReadOnly: m,
2336
+ isLoading: g
2305
2337
  }
2306
2338
  )
2307
2339
  ]
2308
2340
  }
2309
2341
  ) }),
2310
- /* @__PURE__ */ s(et, { asChild: !0, children: /* @__PURE__ */ s(Qe, { triggerRef: $, placement: "bottom start", children: /* @__PURE__ */ s(on, { "aria-label": "combobox dialog", children: /* @__PURE__ */ re(
2311
- jn,
2342
+ /* @__PURE__ */ s(nu, { asChild: !0, children: /* @__PURE__ */ s(eo, { triggerRef: b, placement: "bottom start", children: /* @__PURE__ */ s(nn, { "aria-label": Q.formatMessage(pe.comboboxDialog), children: /* @__PURE__ */ ce(
2343
+ qn,
2312
2344
  {
2313
- filter: o ?? ie,
2314
- inputValue: B,
2315
- onInputChange: L,
2345
+ filter: o ?? te,
2346
+ inputValue: F,
2347
+ onInputChange: V,
2316
2348
  children: [
2317
- /* @__PURE__ */ s(ot, { asChild: !0, children: /* @__PURE__ */ s(
2318
- Xn,
2349
+ /* @__PURE__ */ s(uu, { asChild: !0, children: /* @__PURE__ */ s(
2350
+ _n,
2319
2351
  {
2320
2352
  autoFocus: !0,
2321
2353
  isDisabled: f,
2322
- isReadOnly: v,
2354
+ isReadOnly: m,
2323
2355
  isRequired: d,
2324
- "aria-label": "filter combobox options",
2356
+ "aria-label": Q.formatMessage(pe.filterOptions),
2325
2357
  children: /* @__PURE__ */ s(
2326
- Xe,
2358
+ Qe,
2327
2359
  {
2328
- onKeyDownCapture: de,
2329
- placeholder: U
2360
+ onKeyDownCapture: $,
2361
+ placeholder: N
2330
2362
  }
2331
2363
  )
2332
2364
  }
2333
2365
  ) }),
2334
2366
  /* @__PURE__ */ s(
2335
- Oe,
2367
+ Ve,
2336
2368
  {
2337
- items: V,
2369
+ items: S,
2338
2370
  selectionMode: "multiple",
2339
- onSelectionChange: k,
2340
- selectedKeys: I,
2371
+ onSelectionChange: l,
2372
+ selectedKeys: P,
2341
2373
  shouldFocusWrap: !0,
2342
2374
  disabledKeys: f ? "all" : x,
2343
2375
  escapeKeyBehavior: "none",
2344
- "aria-label": "combobox options",
2376
+ "aria-label": Q.formatMessage(pe.options),
2345
2377
  renderEmptyState: q,
2346
2378
  children: e
2347
2379
  }
@@ -2350,76 +2382,76 @@ const $t = ({
2350
2382
  }
2351
2383
  ) }) }) })
2352
2384
  ] });
2353
- }, Ku = ({
2385
+ }, Rt = ({
2354
2386
  children: e,
2355
2387
  ref: o,
2356
- ...u
2388
+ ...t
2357
2389
  }) => {
2358
- const t = Gu({ recipe: Mu }), [n, i] = t.splitVariantProps(u), [b, r] = ke(i), l = "selectionMode" in u && u.selectionMode === "multiple" ? $t : at;
2390
+ const u = Nt({ recipe: zt }), [n, r] = u.splitVariantProps(t), [p, c] = Oe(r), i = "selectionMode" in t && t.selectionMode === "multiple" ? mu : pu;
2359
2391
  return /* @__PURE__ */ s(
2360
- Qn,
2392
+ ou,
2361
2393
  {
2362
2394
  asChild: !0,
2363
- selectionMode: u.selectionMode,
2395
+ selectionMode: t.selectionMode,
2364
2396
  ...n,
2365
- ...b,
2366
- children: /* @__PURE__ */ s(l, { ref: o, size: u.size, ...r, children: e })
2397
+ ...p,
2398
+ children: /* @__PURE__ */ s(i, { ref: o, size: t.size, ...c, children: e })
2367
2399
  }
2368
2400
  );
2369
2401
  };
2370
- Ku.displayName = "ComboBox.Root";
2371
- const Ou = ({
2402
+ Rt.displayName = "ComboBox.Root";
2403
+ const Vt = ({
2372
2404
  children: e,
2373
2405
  label: o,
2374
- items: u,
2375
- ref: t,
2406
+ items: t,
2407
+ ref: u,
2376
2408
  ...n
2377
2409
  }) => {
2378
- if (u && typeof e != "function")
2410
+ if (t && typeof e != "function")
2379
2411
  throw new Error(
2380
2412
  'ComboBoxOptionGroup: When "items" is provided, "children" must be a function'
2381
2413
  );
2382
- return /* @__PURE__ */ re(Ju, { ref: t, ...n, children: [
2383
- /* @__PURE__ */ s(nt, { asChild: !0, children: /* @__PURE__ */ s(gn, { children: o }) }),
2384
- u ? /* @__PURE__ */ s(nn, { items: u, children: (i) => typeof e == "function" ? e(i) : null }) : e
2414
+ return /* @__PURE__ */ ce(Xt, { ref: u, ...n, children: [
2415
+ /* @__PURE__ */ s(iu, { asChild: !0, children: /* @__PURE__ */ s(Fn, { children: o }) }),
2416
+ t ? /* @__PURE__ */ s(ln, { items: t, children: (r) => typeof e == "function" ? e(r) : null }) : e
2385
2417
  ] });
2386
2418
  };
2387
- Ou.displayName = "ComboBox.OptionGroup";
2388
- const Ru = ({
2419
+ Vt.displayName = "ComboBox.OptionGroup";
2420
+ const Mt = ({
2389
2421
  children: e,
2390
2422
  ref: o,
2391
- ...u
2423
+ ...t
2392
2424
  }) => {
2393
- const [t, n] = ke(u), i = typeof e == "string" ? e : void 0;
2394
- return /* @__PURE__ */ s(tt, { ...t, asChild: !0, children: /* @__PURE__ */ s(
2395
- Zu,
2425
+ const [u, n] = Oe(t), r = typeof e == "string" ? e : void 0;
2426
+ return /* @__PURE__ */ s(ru, { ...u, asChild: !0, children: /* @__PURE__ */ s(
2427
+ Yt,
2396
2428
  {
2397
2429
  ref: o,
2398
- textValue: u.textValue ?? i,
2399
- "aria-label": u.textValue ?? i,
2430
+ textValue: t.textValue ?? r,
2431
+ "aria-label": t.textValue ?? r,
2400
2432
  ...n,
2401
- children: (b) => {
2402
- const r = typeof e == "function" ? e({
2403
- ...b
2433
+ children: (p) => {
2434
+ const c = typeof e == "function" ? e({
2435
+ ...p
2404
2436
  }) : e;
2405
- return b.selectionMode === "multiple" ? /* @__PURE__ */ re(Ve, { children: [
2406
- /* @__PURE__ */ s(lt, { children: /* @__PURE__ */ s("span", { "data-selected": b.isSelected, children: b.isSelected && /* @__PURE__ */ s(Fn, {}) }) }),
2407
- /* @__PURE__ */ s(it, { children: r })
2408
- ] }) : /* @__PURE__ */ s(Ve, { children: r });
2437
+ return p.selectionMode === "multiple" ? /* @__PURE__ */ ce(Ge, { children: [
2438
+ /* @__PURE__ */ s(cu, { children: /* @__PURE__ */ s("span", { "data-selected": p.isSelected, children: p.isSelected && /* @__PURE__ */ s(Ln, {}) }) }),
2439
+ /* @__PURE__ */ s(au, { children: c })
2440
+ ] }) : /* @__PURE__ */ s(Ge, { children: c });
2409
2441
  }
2410
2442
  }
2411
2443
  ) });
2412
2444
  };
2413
- Ru.displayName = "ComboBox.Option";
2414
- const al = {
2415
- Root: Ku,
2416
- OptionGroup: Ou,
2417
- Option: Ru
2445
+ Mt.displayName = "ComboBox.Option";
2446
+ const bl = {
2447
+ Root: Rt,
2448
+ OptionGroup: Vt,
2449
+ Option: Mt
2418
2450
  };
2419
2451
  export {
2420
- al as C,
2421
- Ku as a,
2422
- Ou as b,
2423
- Ru as c
2452
+ bl as C,
2453
+ Rt as a,
2454
+ Vt as b,
2455
+ Mt as c
2424
2456
  };
2425
- //# sourceMappingURL=combobox-0cCAwg3W.es.js.map
2457
+ //# sourceMappingURL=combobox-C1DerhP1.es.js.map