@slotted/react 0.1.0-beta.10 → 0.1.0-beta.11

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 (336) hide show
  1. package/dist/action-bar-z2DPc1Wy.js +285 -0
  2. package/dist/action-bar.js +1 -1
  3. package/dist/action-sheet-BnedGewu.js +360 -0
  4. package/dist/action-sheet.js +1 -1
  5. package/dist/{alert-BTcqbG8w.js → alert-BTAXJ69M.js} +5 -5
  6. package/dist/alert.js +1 -1
  7. package/dist/{app-shell-BlkqQrOx.js → app-shell-Cb_kDBeV.js} +232 -173
  8. package/dist/app-shell.js +1 -1
  9. package/dist/{attachment-zlOPJvIm.js → attachment-D1O4qS8H.js} +28 -28
  10. package/dist/attachment.js +1 -1
  11. package/dist/{breadcrumb-DCGynpkb.js → breadcrumb-CnFjxxI2.js} +10 -10
  12. package/dist/breadcrumb.js +1 -1
  13. package/dist/{button-BCVjdzkn.js → button-D31perSu.js} +2 -2
  14. package/dist/button.js +2 -2
  15. package/dist/{calendar-qGUJ-kAy.js → calendar-DZyC1gAT.js} +8 -8
  16. package/dist/calendar.js +1 -1
  17. package/dist/{carousel-CjRTu8m7.js → carousel-Dso3gcYd.js} +14 -14
  18. package/dist/carousel.js +1 -1
  19. package/dist/cascader-BbajBwsX.js +1157 -0
  20. package/dist/cascader.js +1 -1
  21. package/dist/{chart-CPFq3jIE.js → chart-Bb6ctahn.js} +9 -9
  22. package/dist/chart.js +1 -1
  23. package/dist/{checkbox-CMY2KIih.js → checkbox-C_8GVtjD.js} +3 -3
  24. package/dist/{checkbox-group-DzMtLF7f.js → checkbox-group-DXCcusol.js} +2 -2
  25. package/dist/checkbox-group.js +1 -1
  26. package/dist/checkbox.js +1 -1
  27. package/dist/{code-block-Bh_2Eg3M.js → code-block-C4mtsROE.js} +8 -8
  28. package/dist/code-block.js +1 -1
  29. package/dist/{color-picker-DlepH5co.js → color-picker-JZPnPb7s.js} +49 -49
  30. package/dist/color-picker.js +1 -1
  31. package/dist/{column-manager-CV9tCnKa.js → column-manager-BDUj-WIs.js} +31 -31
  32. package/dist/column-manager.js +1 -1
  33. package/dist/combobox-Dn69QwGX.js +904 -0
  34. package/dist/combobox.js +1 -1
  35. package/dist/command-palette-Dh1HKz_F.js +744 -0
  36. package/dist/command-palette.js +1 -1
  37. package/dist/{context-menu-Dbc0KkFp.js → context-menu-uJjEmAN3.js} +1 -1
  38. package/dist/context-menu.js +1 -1
  39. package/dist/{currency-field--wIfgVAx.js → currency-field-lHcrNJ7X.js} +13 -13
  40. package/dist/currency-field.js +1 -1
  41. package/dist/{dashboard-grid-D_LbWfdZ.js → dashboard-grid-z-SOm9H0.js} +65 -65
  42. package/dist/dashboard-grid.js +1 -1
  43. package/dist/{data-grid-XH5fGoGj.js → data-grid-DQCvXMJA.js} +1330 -1278
  44. package/dist/data-grid.js +1 -1
  45. package/dist/data-list-BgdkA3bD.js +587 -0
  46. package/dist/data-list.js +1 -1
  47. package/dist/{date-field-BrNyJBiJ.js → date-field-B2lQzE3p.js} +5 -5
  48. package/dist/date-field.js +1 -1
  49. package/dist/{date-picker-Nl55so0C.js → date-picker-DpTRb-Y1.js} +16 -16
  50. package/dist/date-picker.js +1 -1
  51. package/dist/{date-range-picker-DLkvfUJD.js → date-range-picker-CBUPJep5.js} +17 -17
  52. package/dist/date-range-picker.js +1 -1
  53. package/dist/{datetime-field-CZRhRDPb.js → datetime-field-BZ44uJ_B.js} +7 -7
  54. package/dist/datetime-field.js +1 -1
  55. package/dist/{datetime-picker-_GHra2WL.js → datetime-picker-BK_bV3Yr.js} +21 -21
  56. package/dist/datetime-picker.js +1 -1
  57. package/dist/{datetime-range-picker-Dy1A0Wqy.js → datetime-range-picker-ChdbRgzQ.js} +21 -21
  58. package/dist/datetime-range-picker.js +1 -1
  59. package/dist/{description-list-Cc4JYZ-3.js → description-list-CYlfHDwx.js} +11 -11
  60. package/dist/description-list.js +1 -1
  61. package/dist/{detail-panel-BI_wHSoz.js → detail-panel-DimjnPI8.js} +91 -91
  62. package/dist/detail-panel.js +1 -1
  63. package/dist/{dialog-B6MP7GYI.js → dialog-BB5MdJex.js} +108 -108
  64. package/dist/dialog.js +1 -1
  65. package/dist/docs/action-bar.json +4 -4
  66. package/dist/docs/action-bar.md +3 -3
  67. package/dist/docs/calendar.md +2 -2
  68. package/dist/docs/command-palette.json +1 -0
  69. package/dist/docs/command-palette.md +1 -1
  70. package/dist/docs/data-grid.examples.md +8 -2
  71. package/dist/docs/data-grid.json +25 -3
  72. package/dist/docs/data-grid.md +4 -1
  73. package/dist/docs/data-grid.props.md +2 -1
  74. package/dist/docs/detail-panel.json +4 -2
  75. package/dist/docs/detail-panel.md +15 -5
  76. package/dist/docs/dialog.json +1 -0
  77. package/dist/docs/dialog.md +1 -1
  78. package/dist/docs/drawer.json +6 -4
  79. package/dist/docs/drawer.md +3 -3
  80. package/dist/docs/event-calendar.md +2 -2
  81. package/dist/docs/guidelines/index.md +4 -3
  82. package/dist/docs/guidelines/layout-alignment.md +17 -7
  83. package/dist/docs/guidelines/list-pages.md +3 -3
  84. package/dist/docs/page-header.json +18 -2
  85. package/dist/docs/page-header.md +5 -3
  86. package/dist/docs/page.json +1 -0
  87. package/dist/docs/page.md +1 -1
  88. package/dist/docs/rating.md +1 -1
  89. package/dist/docs/section.json +1 -1
  90. package/dist/docs/section.md +1 -1
  91. package/dist/docs/skills/compose-screen/SKILL.md +12 -4
  92. package/dist/docs/skills/review-screen/SKILL.md +20 -18
  93. package/dist/docs/skills/theme-app/SKILL.md +12 -1
  94. package/dist/docs/toast.json +1 -0
  95. package/dist/docs/toast.md +1 -1
  96. package/dist/docs/tokens.md +1 -1
  97. package/dist/docs/toolbar.json +1 -1
  98. package/dist/docs/toolbar.md +1 -1
  99. package/dist/docs/typography.md +1 -1
  100. package/dist/{drawer-CkpFlKYa.js → drawer-fyPyxnYQ.js} +216 -206
  101. package/dist/drawer.js +1 -1
  102. package/dist/entity-picker-ClyhBTyK.js +1283 -0
  103. package/dist/entity-picker.js +1 -1
  104. package/dist/{event-calendar-BDjI5T44.js → event-calendar-COgC24UG.js} +23 -23
  105. package/dist/event-calendar.js +1 -1
  106. package/dist/{field-group-CCM2vPKL.js → field-group-Bj-EbPIU.js} +2 -2
  107. package/dist/field-group.js +1 -1
  108. package/dist/{field-CzSGs7wo.js → field-tnEZiRLg.js} +19 -19
  109. package/dist/field.js +1 -1
  110. package/dist/filter-bar-BRuCz79-.js +1342 -0
  111. package/dist/filter-bar.js +1 -1
  112. package/dist/{form-CDq04WDY.js → form-DEcJ7tHf.js} +1 -1
  113. package/dist/form.js +1 -1
  114. package/dist/{fullscreen-6GW4naDP.js → fullscreen-BwweNj3-.js} +13 -13
  115. package/dist/fullscreen.js +1 -1
  116. package/dist/{hover-card-aadyPXzF.js → hover-card-BWcU37Yp.js} +1 -1
  117. package/dist/hover-card.js +1 -1
  118. package/dist/{i18n-DpW8lqJ1.js → i18n-D7xXDd8-.js} +11 -4
  119. package/dist/i18n.js +1 -1
  120. package/dist/{icon-button-CRB218_z.js → icon-button-DbSZKGT4.js} +73 -71
  121. package/dist/{import-export-center-DUrNwRKP.js → import-export-center-CYf0Qxl_.js} +291 -289
  122. package/dist/import-export-center.js +1 -1
  123. package/dist/index.js +100 -100
  124. package/dist/{kbd-Z4YmSPRy.js → kbd-dNz8QHfL.js} +1 -1
  125. package/dist/kbd.js +1 -1
  126. package/dist/{link-BsSlZ1ts.js → link-DLPyg54C.js} +5 -5
  127. package/dist/link.js +1 -1
  128. package/dist/{listbox-VFcfZT70.js → listbox-BSqx_ARf.js} +1 -1
  129. package/dist/listbox.js +1 -1
  130. package/dist/{loading-overlay-BZPBDK4w.js → loading-overlay-BLIrcaoj.js} +9 -9
  131. package/dist/loading-overlay.js +1 -1
  132. package/dist/{markdown-BmCU_sOv.js → markdown-DccRb1xf.js} +17 -17
  133. package/dist/markdown.js +1 -1
  134. package/dist/{menu-parts-DS9JEUCt.js → menu-parts-CNNHRduK.js} +42 -42
  135. package/dist/menu.js +1 -1
  136. package/dist/{menubar-BV43BKep.js → menubar-Bdr6zigi.js} +1 -1
  137. package/dist/menubar.js +1 -1
  138. package/dist/message-BkTiWsUp.js +436 -0
  139. package/dist/message-scroller-akQEtQLn.js +218 -0
  140. package/dist/message-scroller.js +1 -1
  141. package/dist/message.js +1 -1
  142. package/dist/{multi-select-YaxhhH9y.js → multi-select-BvlJIEtz.js} +445 -443
  143. package/dist/multi-select.js +1 -1
  144. package/dist/{navigation-menu-parts-B64gKl8B.js → navigation-menu-parts-CEW4fgCo.js} +12 -12
  145. package/dist/navigation-menu.js +1 -1
  146. package/dist/{notification-center-Ci-OLWTO.js → notification-center-BQO0Ey3h.js} +40 -40
  147. package/dist/notification-center.js +1 -1
  148. package/dist/{number-field-BYQmPyM-.js → number-field-D1MqT8_A.js} +13 -13
  149. package/dist/number-field.js +1 -1
  150. package/dist/{otp-input-BKO0WPZc.js → otp-input-Cub9H9Di.js} +1 -1
  151. package/dist/otp-input.js +1 -1
  152. package/dist/{page-CfjGviUA.js → page-CwYmBoZQ.js} +1 -1
  153. package/dist/{page-header-w_PFLnLG.js → page-header-CMxCQqu_.js} +117 -114
  154. package/dist/page-header.js +1 -1
  155. package/dist/page.js +1 -1
  156. package/dist/{pagination-Cm9665gb.js → pagination-IEuos7H1.js} +12 -12
  157. package/dist/pagination.js +1 -1
  158. package/dist/{popover-D1krYeP-.js → popover-C7NpEzq6.js} +22 -22
  159. package/dist/popover.js +1 -1
  160. package/dist/prompt-composer-Cu8bj1Vb.js +276 -0
  161. package/dist/prompt-composer.js +1 -1
  162. package/dist/{prose-Bl5OjXTb.js → prose-CQN4Bqqh.js} +1 -1
  163. package/dist/prose.js +1 -1
  164. package/dist/{radio-group-D9VTBLUB.js → radio-group-BHlDgCLk.js} +2 -2
  165. package/dist/radio-group.js +1 -1
  166. package/dist/{rating-BRqsV5OF.js → rating-Cr0lXaAV.js} +15 -15
  167. package/dist/rating.js +1 -1
  168. package/dist/{saved-views-C_76obIv.js → saved-views-CyLSn8a2.js} +151 -151
  169. package/dist/saved-views.js +1 -1
  170. package/dist/{scroll-area-vrm2bbtZ.js → scroll-area-Fr0PmnRS.js} +1 -1
  171. package/dist/scroll-area.js +1 -1
  172. package/dist/{segmented-control-5DTOKO3g.js → segmented-control-uPnQYklX.js} +2 -2
  173. package/dist/segmented-control.js +1 -1
  174. package/dist/select-C0JYHwBy.js +1020 -0
  175. package/dist/select.js +1 -1
  176. package/dist/{side-navigation-MNMSkj9b.js → side-navigation-D8lRpHwj.js} +64 -64
  177. package/dist/side-navigation.js +1 -1
  178. package/dist/{skeleton-DyOwgYmF.js → skeleton-DeEOmm1y.js} +1 -1
  179. package/dist/skeleton.js +1 -1
  180. package/dist/{slider-OMe1DAC-.js → slider-BSI1xvjw.js} +2 -2
  181. package/dist/slider.js +1 -1
  182. package/dist/{sparkline-ChkaLVdY.js → sparkline-CYU4_lCD.js} +1 -1
  183. package/dist/sparkline.js +1 -1
  184. package/dist/spinner-ring-DyfaYloA.js +19 -0
  185. package/dist/{split-button-DbmRwfMC.js → split-button-CkbylOMN.js} +2 -2
  186. package/dist/split-button.js +1 -1
  187. package/dist/{stat-card-BSnsTmsq.js → stat-card-CAh4SdeY.js} +16 -16
  188. package/dist/stat-card.js +1 -1
  189. package/dist/{status-indicator-CyKhBdvN.js → status-indicator-BVMnpcm8.js} +4 -4
  190. package/dist/status-indicator.js +1 -1
  191. package/dist/{stepper-Cw1Auv3n.js → stepper-BLfvMz04.js} +16 -16
  192. package/dist/stepper.js +1 -1
  193. package/dist/styles/action-bar.css +1 -1
  194. package/dist/styles/action-sheet.css +2 -2
  195. package/dist/styles/button.css +2 -2
  196. package/dist/styles/cascader.css +2 -2
  197. package/dist/styles/chart.css +1 -1
  198. package/dist/styles/column-manager.css +3 -3
  199. package/dist/styles/command-palette.css +3 -3
  200. package/dist/styles/dashboard-grid.css +2 -2
  201. package/dist/styles/data-grid.css +3 -3
  202. package/dist/styles/data-list.css +2 -2
  203. package/dist/styles/detail-panel.css +4 -4
  204. package/dist/styles/dialog.css +1 -1
  205. package/dist/styles/drawer.css +1 -1
  206. package/dist/styles/entity-picker.css +1 -1
  207. package/dist/styles/event-calendar.css +1 -1
  208. package/dist/styles/filter-bar.css +3 -3
  209. package/dist/styles/import-export-center.css +4 -4
  210. package/dist/styles/index.css +12 -12
  211. package/dist/styles/markdown.css +2 -2
  212. package/dist/styles/multi-select.css +1 -1
  213. package/dist/styles/notification-center.css +3 -3
  214. package/dist/styles/page-header.css +2 -2
  215. package/dist/styles/page.css +1 -1
  216. package/dist/styles/prompt-composer.css +1 -1
  217. package/dist/styles/saved-views.css +2 -2
  218. package/dist/styles/split-button.css +2 -2
  219. package/dist/styles/table.css +2 -2
  220. package/dist/styles/tabs.css +1 -1
  221. package/dist/styles/timeline.css +1 -1
  222. package/dist/styles/toast.css +1 -1
  223. package/dist/styles/tour.css +2 -2
  224. package/dist/styles/transfer.css +2 -2
  225. package/dist/styles/upload.css +1 -1
  226. package/dist/styles/wizard.css +2 -2
  227. package/dist/styles.css +1 -1
  228. package/dist/{switch-CQ1rpuKa.js → switch-BHyKHqeI.js} +5 -5
  229. package/dist/switch.js +1 -1
  230. package/dist/{table-DpGTPtnb.js → table-C8zOHDcY.js} +30 -30
  231. package/dist/{table-of-contents-BFVERMZy.js → table-of-contents-BAIuPCdy.js} +8 -8
  232. package/dist/table-of-contents.js +1 -1
  233. package/dist/table.js +1 -1
  234. package/dist/{tag-aX7uyAN0.js → tag-XYGEPUHR.js} +14 -14
  235. package/dist/tag.js +1 -1
  236. package/dist/{tags-input-BgpS22sf.js → tags-input-ClYSd-No.js} +40 -40
  237. package/dist/tags-input.js +1 -1
  238. package/dist/text-field-Cguj75tn.js +205 -0
  239. package/dist/text-field.js +1 -1
  240. package/dist/{textarea-DNCjsQYd.js → textarea-BKsh_jAo.js} +1 -1
  241. package/dist/textarea.js +1 -1
  242. package/dist/{time-field-Cm6iBjwH.js → time-field-BIE4WMpS.js} +7 -7
  243. package/dist/time-field.js +1 -1
  244. package/dist/{time-picker-Ce18FSO2.js → time-picker-CNfafRDF.js} +18 -18
  245. package/dist/time-picker.js +1 -1
  246. package/dist/{time-range-picker-kDnw4PQ3.js → time-range-picker-D7gM_Wno.js} +20 -20
  247. package/dist/time-range-picker.js +1 -1
  248. package/dist/timeline-BLadNUkS.js +449 -0
  249. package/dist/timeline.js +1 -1
  250. package/dist/{toast-58ex8PDK.js → toast-CjbiXiza.js} +16 -16
  251. package/dist/toast.js +1 -1
  252. package/dist/{toggle-group-YxVJlCnI.js → toggle-group-BZmghKac.js} +1 -1
  253. package/dist/toggle-group.js +1 -1
  254. package/dist/toolbar-BI4ZepBs.js +243 -0
  255. package/dist/toolbar.js +1 -1
  256. package/dist/{top-navigation-DorkYBnR.js → top-navigation-BTZpx5VA.js} +13 -13
  257. package/dist/top-navigation.js +1 -1
  258. package/dist/{tour-CwK_m_Jp.js → tour-_CQ1kYov.js} +23 -23
  259. package/dist/tour.js +1 -1
  260. package/dist/{transfer-DxGDWIEt.js → transfer-BVhBdIGp.js} +59 -59
  261. package/dist/transfer.js +1 -1
  262. package/dist/tree-DfI9UWLA.js +794 -0
  263. package/dist/tree.js +1 -1
  264. package/dist/types/action-bar/action-bar-overflow.d.ts.map +1 -1
  265. package/dist/types/action-bar/action-bar.types.d.ts +2 -2
  266. package/dist/types/action-sheet/action-sheet-parts.d.ts.map +1 -1
  267. package/dist/types/app-shell/app-shell-parts.d.ts.map +1 -1
  268. package/dist/types/app-shell/app-shell.d.ts.map +1 -1
  269. package/dist/types/app-shell/app-shell.types.d.ts +21 -14
  270. package/dist/types/app-shell/app-shell.types.d.ts.map +1 -1
  271. package/dist/types/app-shell/index.d.ts +1 -1
  272. package/dist/types/app-shell/index.d.ts.map +1 -1
  273. package/dist/types/button/button-indicator.d.ts.map +1 -1
  274. package/dist/types/button/spinner-ring.d.ts +8 -0
  275. package/dist/types/button/spinner-ring.d.ts.map +1 -0
  276. package/dist/types/cascader/cascader-surface.d.ts.map +1 -1
  277. package/dist/types/cascader/cascader.d.ts.map +1 -1
  278. package/dist/types/combobox/combobox-parts.d.ts.map +1 -1
  279. package/dist/types/command-palette/command-palette.d.ts.map +1 -1
  280. package/dist/types/data-grid/data-grid-body.d.ts +7 -2
  281. package/dist/types/data-grid/data-grid-body.d.ts.map +1 -1
  282. package/dist/types/data-grid/data-grid-context.d.ts +2 -1
  283. package/dist/types/data-grid/data-grid-context.d.ts.map +1 -1
  284. package/dist/types/data-grid/data-grid-header.d.ts.map +1 -1
  285. package/dist/types/data-grid/data-grid.d.ts +1 -1
  286. package/dist/types/data-grid/data-grid.d.ts.map +1 -1
  287. package/dist/types/data-grid/data-grid.types.d.ts +12 -0
  288. package/dist/types/data-grid/data-grid.types.d.ts.map +1 -1
  289. package/dist/types/data-grid/index.d.ts +1 -1
  290. package/dist/types/data-grid/index.d.ts.map +1 -1
  291. package/dist/types/detail-panel/detail-panel-parts.d.ts +2 -1
  292. package/dist/types/detail-panel/detail-panel-parts.d.ts.map +1 -1
  293. package/dist/types/drawer/drawer-parts.d.ts.map +1 -1
  294. package/dist/types/entity-picker/entity-picker-control.d.ts.map +1 -1
  295. package/dist/types/filter-bar/filter-bar.d.ts.map +1 -1
  296. package/dist/types/i18n/slotted-provider.d.ts +6 -0
  297. package/dist/types/i18n/slotted-provider.d.ts.map +1 -1
  298. package/dist/types/import-export-center/import-export-center.d.ts.map +1 -1
  299. package/dist/types/message/message-parts.d.ts.map +1 -1
  300. package/dist/types/message-scroller/message-scroller.d.ts.map +1 -1
  301. package/dist/types/multi-select/multi-select-parts.d.ts.map +1 -1
  302. package/dist/types/page-header/page-header-defaults.d.ts +1 -1
  303. package/dist/types/page-header/page-header-defaults.d.ts.map +1 -1
  304. package/dist/types/page-header/page-header.d.ts +1 -1
  305. package/dist/types/page-header/page-header.d.ts.map +1 -1
  306. package/dist/types/page-header/page-header.types.d.ts +9 -0
  307. package/dist/types/page-header/page-header.types.d.ts.map +1 -1
  308. package/dist/types/prompt-composer/prompt-composer.d.ts.map +1 -1
  309. package/dist/types/select/select-parts.d.ts.map +1 -1
  310. package/dist/types/text-field/text-field.d.ts.map +1 -1
  311. package/dist/types/timeline/timeline-parts.d.ts.map +1 -1
  312. package/dist/types/timeline/timeline.d.ts.map +1 -1
  313. package/dist/types/toolbar/toolbar-overflow.d.ts.map +1 -1
  314. package/dist/types/toolbar/toolbar.types.d.ts +2 -2
  315. package/dist/types/tree/tree-parts.d.ts.map +1 -1
  316. package/dist/{upload-CEDsfMWz.js → upload-N2-nyO8x.js} +65 -65
  317. package/dist/upload.js +1 -1
  318. package/dist/{wizard-B3p7zCSj.js → wizard-CK1x2fs3.js} +16 -16
  319. package/dist/wizard.js +1 -1
  320. package/package.json +6 -6
  321. package/dist/action-bar-CJgBierN.js +0 -283
  322. package/dist/action-sheet-tRrjm7WQ.js +0 -358
  323. package/dist/cascader-DqlC1z5b.js +0 -1154
  324. package/dist/combobox-YWFkxaQ3.js +0 -902
  325. package/dist/command-palette-DXNq-zKN.js +0 -741
  326. package/dist/data-list-DZCN_uW1.js +0 -587
  327. package/dist/entity-picker-CFwLGQeU.js +0 -1281
  328. package/dist/filter-bar-G50WdRac.js +0 -1340
  329. package/dist/message-Dtck9RJy.js +0 -434
  330. package/dist/message-scroller-niUJ8RoL.js +0 -216
  331. package/dist/prompt-composer-sh_TXKYZ.js +0 -273
  332. package/dist/select-BFx5EgAa.js +0 -1018
  333. package/dist/text-field-DL_uhNXV.js +0 -203
  334. package/dist/timeline-pEL30Jp8.js +0 -446
  335. package/dist/toolbar-BtIyVbs4.js +0 -241
  336. package/dist/tree-DbLRyItM.js +0 -792
@@ -1,28 +1,29 @@
1
- import { n as e, t } from "./icon-DjqSEQ-o.js";
2
- import { n, r } from "./i18n-DpW8lqJ1.js";
1
+ import { n as e, r as t } from "./i18n-D7xXDd8-.js";
2
+ import { n, t as r } from "./icon-DjqSEQ-o.js";
3
3
  /* empty css */
4
+ import { t as i } from "./spinner-ring-DyfaYloA.js";
4
5
  /* empty css */
5
- import { b as i } from "./field-CzSGs7wo.js";
6
+ import { b as a } from "./field-tnEZiRLg.js";
6
7
  /* empty css */
7
- import { t as a } from "./highlight-9lRPIZ9O.js";
8
- import { keyedProps as o, selectorKeyProps as s, withSelectorKey as c } from "@slotted/core/selector-key";
9
- import { createArrowNavigation as l, createRemovalFocus as u } from "@slotted/core/focus";
10
- import { createControllable as d } from "@slotted/core/state";
11
- import { createContext as f, useCallback as p, useContext as m, useEffect as h, useId as g, useImperativeHandle as _, useLayoutEffect as v, useMemo as y, useRef as b, useState as x } from "react";
12
- import { Fragment as S, jsx as C, jsxs as w } from "react/jsx-runtime";
13
- import { createCollapse as T } from "@slotted/core/overflow";
14
- import { createPresence as ee } from "@slotted/core/presence";
15
- import { createPortalRoot as E, setPortalContainer as D } from "@slotted/core/portal";
16
- import { createDismissableLayer as te, pressOrigin as O } from "@slotted/core/dismissable-layer";
17
- import { createPositioner as ne } from "@slotted/core/positioner";
18
- import { createPortal as re } from "react-dom";
19
- import { multiSelectMessages as ie } from "@slotted/core/i18n";
20
- import { createWidthGate as k } from "@slotted/core/measure";
21
- import { getLiveAnnouncer as ae } from "@slotted/core/live-announcer";
22
- import { createFilter as A, moveIndex as j, revealWithin as M } from "@slotted/core/collection";
23
- import { matchRanges as N } from "@slotted/core/highlight";
8
+ import { t as o } from "./highlight-9lRPIZ9O.js";
9
+ import { keyedProps as s, selectorKeyProps as c, withSelectorKey as l } from "@slotted/core/selector-key";
10
+ import { createArrowNavigation as u, createRemovalFocus as d } from "@slotted/core/focus";
11
+ import { createControllable as f } from "@slotted/core/state";
12
+ import { createContext as p, useCallback as m, useContext as h, useEffect as g, useId as _, useImperativeHandle as v, useLayoutEffect as y, useMemo as b, useRef as x, useState as S } from "react";
13
+ import { Fragment as C, jsx as w, jsxs as T } from "react/jsx-runtime";
14
+ import { createCollapse as E } from "@slotted/core/overflow";
15
+ import { createPresence as D } from "@slotted/core/presence";
16
+ import { multiSelectMessages as O } from "@slotted/core/i18n";
17
+ import { createPortalRoot as ee, setPortalContainer as k } from "@slotted/core/portal";
18
+ import { createDismissableLayer as A, pressOrigin as j } from "@slotted/core/dismissable-layer";
19
+ import { createPositioner as te } from "@slotted/core/positioner";
20
+ import { createPortal as ne } from "react-dom";
21
+ import { createWidthGate as re } from "@slotted/core/measure";
22
+ import { getLiveAnnouncer as M } from "@slotted/core/live-announcer";
23
+ import { createFilter as ie, moveIndex as N, revealWithin as ae } from "@slotted/core/collection";
24
+ import { matchRanges as P } from "@slotted/core/highlight";
24
25
  //#region src/multi-select/multi-select-defaults.tsx
25
- var P = {
26
+ var F = {
26
27
  addOnPaste: !0,
27
28
  align: "start",
28
29
  alignOffset: 0,
@@ -60,14 +61,14 @@ var P = {
60
61
  strategy: "absolute",
61
62
  variant: "outline",
62
63
  width: "content"
63
- }, F = f(P);
64
- function I() {
65
- return m(F);
64
+ }, I = p(F);
65
+ function L() {
66
+ return h(I);
66
67
  }
67
- function L({ children: e, container: t, ...n }) {
68
- let r = I();
69
- h(() => {
70
- if (t !== void 0) return D(t), () => D(null);
68
+ function R({ children: e, container: t, ...n }) {
69
+ let r = L();
70
+ g(() => {
71
+ if (t !== void 0) return k(t), () => k(null);
71
72
  }, [t]);
72
73
  let i = {
73
74
  addOnPaste: n.addOnPaste ?? r.addOnPaste,
@@ -108,114 +109,114 @@ function L({ children: e, container: t, ...n }) {
108
109
  variant: n.variant ?? r.variant,
109
110
  width: n.width ?? r.width
110
111
  };
111
- return /* @__PURE__ */ C(F.Provider, {
112
+ return /* @__PURE__ */ w(I.Provider, {
112
113
  value: i,
113
114
  children: e
114
115
  });
115
116
  }
116
117
  //#endregion
117
118
  //#region src/multi-select/multi-select.tsx
118
- var R = f(void 0);
119
- function z() {
120
- let e = m(R);
119
+ var z = p(void 0);
120
+ function B() {
121
+ let e = h(z);
121
122
  if (e === void 0) throw Error("MultiSelectControl, MultiSelectContent and every option have to be inside a MultiSelect.");
122
123
  return e;
123
124
  }
124
- var B = (e) => "options" in e;
125
+ var V = (e) => "options" in e;
125
126
  function oe(e) {
126
- return e === void 0 ? [] : e.flatMap((e) => B(e) ? e.options : [e]);
127
+ return e === void 0 ? [] : e.flatMap((e) => V(e) ? e.options : [e]);
127
128
  }
128
- var V = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
129
- function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue: a = "", defaultOpen: o = !1, defaultValue: s = [], filter: c, form: l, highlightedValue: u, inputValue: f, items: m, locale: h, messages: v, name: S, onHighlightedValueChange: w, onInputValueChange: T, onLoadMore: ee, onOpenChange: E, onValueChange: D, onValueRefuse: te, open: O, ref: ne, total: re, validateValue: k, value: j, ...N }) {
130
- let P = I(), F = i(), L = r(ie, v), z = n(), B = h ?? z, H = g(), se = `${H}listbox`, U = `${H}input`, [W, ce] = x(o), [G, K] = x(s), [le] = x(s), [ue, q] = x(a), [de, fe] = x(t), [J, pe] = x(null), [Y, me] = x(null), [he, ge] = x(null), [_e, ve] = x(!1), ye = N.disabled ?? F?.disabled ?? P.disabled, be = N.readOnly ?? F?.readOnly ?? P.readOnly, X = N.max ?? P.max, xe = N.allowDuplicates ?? P.allowDuplicates, Z = (O ?? W) && !ye, Se = j ?? G, Ce = f ?? ue, we = u === void 0 ? de : u, Te = b(Z);
131
- Z && (Te.current = !0);
132
- let Ee = b("none"), De = b(/* @__PURE__ */ new Map()), [Oe, ke] = x(0), Ae = y(() => {
129
+ var H = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]);
130
+ function se({ children: n, defaultHighlightedValue: r = null, defaultInputValue: i = "", defaultOpen: o = !1, defaultValue: s = [], filter: c, form: l, highlightedValue: u, inputValue: d, items: p, locale: h, messages: g, name: y, onHighlightedValueChange: C, onInputValueChange: T, onLoadMore: E, onOpenChange: D, onValueChange: ee, onValueRefuse: k, open: A, ref: j, total: te, validateValue: ne, value: re, ...N }) {
131
+ let P = L(), F = a(), I = t(O, g), R = e(), B = h ?? R, V = _(), se = `${V}listbox`, ce = `${V}input`, [U, W] = S(o), [G, K] = S(s), [q] = S(s), [le, ue] = S(i), [J, de] = S(r), [Y, fe] = S(null), [X, Z] = S(null), [pe, me] = S(null), [he, ge] = S(!1), _e = N.disabled ?? F?.disabled ?? P.disabled, ve = N.readOnly ?? F?.readOnly ?? P.readOnly, ye = N.max ?? P.max, be = N.allowDuplicates ?? P.allowDuplicates, xe = (A ?? U) && !_e, Se = re ?? G, Ce = d ?? le, we = u === void 0 ? J : u, Te = x(xe);
132
+ xe && (Te.current = !0);
133
+ let Ee = x("none"), De = x(/* @__PURE__ */ new Map()), [Oe, ke] = S(0), Ae = b(() => {
133
134
  let e = /* @__PURE__ */ new Map();
134
- for (let t of oe(m)) e.set(t.value, t.label);
135
+ for (let t of oe(p)) e.set(t.value, t.label);
135
136
  return e;
136
- }, [m]), je = p((e, t) => {
137
+ }, [p]), je = m((e, t) => {
137
138
  De.current.get(e) !== t && (De.current.set(e, t), ke((e) => e + 1));
138
- }, []), Me = p((e) => Ae.get(e) ?? De.current.get(e), [Ae, Oe]), Ne = p((e) => `${H}option-${encodeURIComponent(e)}`, [H]), Pe = Ce, Fe = y(() => A({ locale: B }), [B]), Ie = p((e) => Pe === "" || c === null ? !0 : c === void 0 ? Fe.contains(e, Pe) : c(e, Pe), [
139
+ }, []), Me = m((e) => Ae.get(e) ?? De.current.get(e), [Ae, Oe]), Ne = m((e) => `${V}option-${encodeURIComponent(e)}`, [V]), Pe = Ce, Fe = b(() => ie({ locale: B }), [B]), Ie = m((e) => Pe === "" || c === null ? !0 : c === void 0 ? Fe.contains(e, Pe) : c(e, Pe), [
139
140
  Fe,
140
141
  c,
141
142
  Pe
142
- ]), Le = p((e) => {
143
- e !== "" && ae(J?.ownerDocument).announce(e, { repeat: !0 });
144
- }, [J]), Q = b({
145
- allowDuplicates: xe,
143
+ ]), Le = m((e) => {
144
+ e !== "" && M(Y?.ownerDocument).announce(e, { repeat: !0 });
145
+ }, [Y]), Q = x({
146
+ allowDuplicates: be,
146
147
  announcer: Le,
147
148
  collator: Fe,
148
149
  currentHighlighted: we,
149
150
  currentInput: Ce,
150
- currentOpen: Z,
151
+ currentOpen: xe,
151
152
  currentValue: Se,
152
153
  highlightedValue: u,
153
- inputNode: J,
154
- inputValue: f,
154
+ inputNode: Y,
155
+ inputValue: d,
155
156
  labelFor: Me,
156
- max: X,
157
- onHighlightedValueChange: w,
157
+ max: ye,
158
+ onHighlightedValueChange: C,
158
159
  onInputValueChange: T,
159
- onOpenChange: E,
160
- onValueChange: D,
161
- onValueRefuse: te,
162
- open: O,
163
- t: L,
164
- validateValue: k,
165
- value: j
160
+ onOpenChange: D,
161
+ onValueChange: ee,
162
+ onValueRefuse: k,
163
+ open: A,
164
+ t: I,
165
+ validateValue: ne,
166
+ value: re
166
167
  });
167
168
  Q.current = {
168
- allowDuplicates: xe,
169
+ allowDuplicates: be,
169
170
  announcer: Le,
170
171
  collator: Fe,
171
172
  currentHighlighted: we,
172
173
  currentInput: Ce,
173
- currentOpen: Z,
174
+ currentOpen: xe,
174
175
  currentValue: Se,
175
176
  highlightedValue: u,
176
- inputNode: J,
177
- inputValue: f,
177
+ inputNode: Y,
178
+ inputValue: d,
178
179
  labelFor: Me,
179
- max: X,
180
- onHighlightedValueChange: w,
180
+ max: ye,
181
+ onHighlightedValueChange: C,
181
182
  onInputValueChange: T,
182
- onOpenChange: E,
183
- onValueChange: D,
184
- onValueRefuse: te,
185
- open: O,
186
- t: L,
187
- validateValue: k,
188
- value: j
183
+ onOpenChange: D,
184
+ onValueChange: ee,
185
+ onValueRefuse: k,
186
+ open: A,
187
+ t: I,
188
+ validateValue: ne,
189
+ value: re
189
190
  };
190
- let Re = p((e, t, n) => {
191
+ let Re = m((e, t, n) => {
191
192
  let r = Q.current;
192
- e !== r.currentOpen && d({
193
+ e !== r.currentOpen && f({
193
194
  controlled: r.open,
194
195
  initial: r.currentOpen,
195
196
  onRequest: (e) => r.onOpenChange?.(e.value, e)
196
- }).request(e, t, n) && (ce(e), e || (fe(null), Ee.current = "none"));
197
- }, []), ze = p((e, t, n) => {
197
+ }).request(e, t, n) && (W(e), e || (de(null), Ee.current = "none"));
198
+ }, []), ze = m((e, t, n) => {
198
199
  let r = Q.current;
199
- e !== r.currentHighlighted && d({
200
+ e !== r.currentHighlighted && f({
200
201
  controlled: r.highlightedValue,
201
202
  initial: r.currentHighlighted,
202
203
  onRequest: (e) => r.onHighlightedValueChange?.(e.value, e)
203
- }).request(e, t, n) && fe(e);
204
- }, []), Be = p((e, t, n) => {
204
+ }).request(e, t, n) && de(e);
205
+ }, []), Be = m((e, t, n) => {
205
206
  let r = Q.current;
206
- e !== r.currentInput && d({
207
+ e !== r.currentInput && f({
207
208
  controlled: r.inputValue,
208
209
  initial: r.currentInput,
209
210
  onRequest: (e) => r.onInputValueChange?.(e.value, e)
210
- }).request(e, t, n) && q(e);
211
- }, []), $ = p((e, t, n) => {
211
+ }).request(e, t, n) && ue(e);
212
+ }, []), $ = m((e, t, n) => {
212
213
  let r = Q.current;
213
- return V(e, r.currentValue) || !d({
214
+ return H(e, r.currentValue) || !f({
214
215
  controlled: r.value,
215
216
  initial: r.currentValue,
216
217
  onRequest: (e) => r.onValueChange?.(e.value, e)
217
218
  }).request(e, t, n) ? !1 : (K(e), !0);
218
- }, []), Ve = p((e, t) => {
219
+ }, []), Ve = m((e, t) => {
219
220
  let n = Q.current, r = [...t], i = {
220
221
  duplicate: [],
221
222
  limit: [],
@@ -247,7 +248,7 @@ function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
247
248
  next: r,
248
249
  refused: i
249
250
  };
250
- }, []), He = p((e, t, n) => {
251
+ }, []), He = m((e, t, n) => {
251
252
  let r = Q.current;
252
253
  for (let t of [
253
254
  "duplicate",
@@ -257,18 +258,18 @@ function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
257
258
  cause: t,
258
259
  source: n
259
260
  });
260
- t !== null && ge(t), e.limit.length > 0 && r.max !== null && r.announcer(r.t("counter", {
261
+ t !== null && me(t), e.limit.length > 0 && r.max !== null && r.announcer(r.t("counter", {
261
262
  count: r.max,
262
263
  max: r.max
263
264
  }));
264
- }, []), Ue = p((e, t, n) => {
265
+ }, []), Ue = m((e, t, n) => {
265
266
  let r = Q.current, { existing: i, next: a, refused: o } = Ve(e, r.currentValue);
266
267
  a.length > r.currentValue.length && $(a, t, n), He(o, i, n);
267
268
  }, [
268
269
  $,
269
270
  Ve,
270
271
  He
271
- ]), We = p((e, t, n) => {
272
+ ]), We = m((e, t, n) => {
272
273
  let r = Q.current, i = r.currentValue.indexOf(e);
273
274
  if (i === -1 || t.trim() === "" || t === e) return;
274
275
  let a = r.currentValue.filter((t) => t !== e), { existing: o, next: s, refused: c } = Ve([t], a);
@@ -281,24 +282,24 @@ function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
281
282
  $,
282
283
  Ve,
283
284
  He
284
- ]), Ge = p((e, t) => {
285
+ ]), Ge = m((e, t) => {
285
286
  let n = Q.current, r = n.currentValue.filter((t) => t !== e);
286
287
  r.length !== n.currentValue.length && $(r, "remove", t) && n.announcer(`${n.labelFor(e) ?? e}, ${r.length}`);
287
- }, [$]), Ke = p((e, t, n) => {
288
+ }, [$]), Ke = m((e, t, n) => {
288
289
  if (Q.current.currentValue.includes(e)) {
289
290
  Ge(e, n);
290
291
  return;
291
292
  }
292
293
  Ue([e], t, n);
293
- }, [Ue, Ge]), qe = p((e) => {
294
+ }, [Ue, Ge]), qe = m((e) => {
294
295
  $([], "clear", e), Be("", "clear", e);
295
- }, [$, Be]), Je = p((e) => {
296
- $(le, "programmatic", e), Be("", "programmatic", e);
296
+ }, [$, Be]), Je = m((e) => {
297
+ $(q, "programmatic", e), Be("", "programmatic", e);
297
298
  }, [
298
299
  $,
299
- le,
300
+ q,
300
301
  Be
301
- ]), Ye = p((e, t, n) => {
302
+ ]), Ye = m((e, t, n) => {
302
303
  let r = Q.current, i = r.currentValue;
303
304
  if (e < 0 || e >= i.length) return;
304
305
  let a = Math.min(Math.max(t, 0), i.length - 1);
@@ -306,18 +307,18 @@ function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
306
307
  let o = [...i], [s] = o.splice(e, 1);
307
308
  o.splice(a, 0, s), $(o, "keyboard", n) && r.announcer(`${r.labelFor(s) ?? s}, ${a + 1}, ${o.length}`);
308
309
  }, [$]);
309
- _(ne, () => ({
310
+ v(j, () => ({
310
311
  close: () => Re(!1, "programmatic"),
311
312
  focus: () => Q.current.inputNode?.focus({ preventScroll: !0 }),
312
313
  open: () => Re(!0, "programmatic"),
313
314
  scrollToKey: (e) => {
314
- let t = Y?.querySelector(`[data-part='item'][data-value="${CSS.escape(e)}"]`);
315
- t != null && Y !== null && M(t, Y);
315
+ let t = X?.querySelector(`[data-part='item'][data-value="${CSS.escape(e)}"]`);
316
+ t != null && X !== null && ae(t, X);
316
317
  },
317
318
  setValue: (e, t = "programmatic") => $([...e], t)
318
319
  }), [
319
320
  $,
320
- Y,
321
+ X,
321
322
  Re
322
323
  ]);
323
324
  let Xe = {
@@ -335,22 +336,22 @@ function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
335
336
  collisionPadding: N.collisionPadding ?? P.collisionPadding,
336
337
  commitOnBlur: N.commitOnBlur ?? P.commitOnBlur,
337
338
  contentId: se,
338
- contentNode: Y,
339
+ contentNode: X,
339
340
  creatable: N.creatable ?? P.creatable,
340
341
  delimiters: N.delimiters ?? P.delimiters,
341
- disabled: ye,
342
- duplicate: he,
342
+ disabled: _e,
343
+ duplicate: pe,
343
344
  editable: N.editable ?? P.editable,
344
345
  entry: Ee,
345
346
  flip: N.flip ?? P.flip,
346
347
  form: l,
347
- full: X !== null && Se.length >= X,
348
+ full: ye !== null && Se.length >= ye,
348
349
  fullWidth: N.fullWidth ?? P.fullWidth,
349
350
  hideWhenDetached: N.hideWhenDetached ?? P.hideWhenDetached,
350
351
  highlighted: we,
351
352
  highlightMatch: N.highlightMatch ?? P.highlightMatch,
352
- inputId: U,
353
- inputNode: J,
353
+ inputId: ce,
354
+ inputNode: Y,
354
355
  inputValue: Ce,
355
356
  invalid: N.invalid ?? F?.invalid ?? P.invalid,
356
357
  labelFor: Me,
@@ -358,19 +359,19 @@ function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
358
359
  locale: B,
359
360
  loop: N.loop ?? P.loop,
360
361
  matches: Ie,
361
- max: X,
362
+ max: ye,
362
363
  mount: N.mount ?? P.mount,
363
364
  move: Ye,
364
- name: S,
365
- narrow: _e,
366
- onLoadMore: ee,
367
- open: Z,
365
+ name: y,
366
+ narrow: he,
367
+ onLoadMore: E,
368
+ open: xe,
368
369
  openOn: N.openOn ?? P.openOn,
369
370
  optionId: Ne,
370
371
  overflow: N.overflow ?? P.overflow,
371
372
  portal: N.portal ?? P.portal,
372
373
  query: Pe,
373
- readOnly: be,
374
+ readOnly: ve,
374
375
  registerLabel: je,
375
376
  remove: Ge,
376
377
  replace: We,
@@ -378,12 +379,12 @@ function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
378
379
  reorderable: N.reorderable ?? P.reorderable,
379
380
  required: N.required ?? F?.required ?? P.required,
380
381
  seen: Te.current,
381
- setContentNode: me,
382
- setDuplicate: ge,
382
+ setContentNode: Z,
383
+ setDuplicate: me,
383
384
  setHighlighted: ze,
384
- setInputNode: pe,
385
+ setInputNode: fe,
385
386
  setInputValue: Be,
386
- setNarrow: ve,
387
+ setNarrow: ge,
387
388
  setOpen: Re,
388
389
  shift: N.shift ?? P.shift,
389
390
  side: N.side ?? P.side,
@@ -391,32 +392,32 @@ function H({ children: e, defaultHighlightedValue: t = null, defaultInputValue:
391
392
  size: N.size ?? F?.size ?? P.size,
392
393
  strategy: N.strategy ?? P.strategy,
393
394
  toggle: Ke,
394
- t: L,
395
- total: re,
395
+ t: I,
396
+ total: te,
396
397
  value: Se,
397
398
  variant: N.variant ?? P.variant,
398
399
  width: N.width ?? P.width
399
400
  };
400
- return /* @__PURE__ */ C(R.Provider, {
401
+ return /* @__PURE__ */ w(z.Provider, {
401
402
  value: Xe,
402
- children: e
403
+ children: n
403
404
  });
404
405
  }
405
406
  //#endregion
406
407
  //#region src/multi-select/multi-select-collection.ts
407
- var se = "[data-part='item']";
408
+ var ce = "[data-part='item']";
408
409
  function U(e) {
409
- return e === null ? [] : [...e.querySelectorAll(se)];
410
+ return e === null ? [] : [...e.querySelectorAll(ce)];
410
411
  }
411
- var W = (e) => e.dataset.value ?? "", ce = (e) => e.dataset.disabled === void 0 && e.getAttribute("aria-disabled") !== "true";
412
- function G(e, t) {
412
+ var W = (e) => e.dataset.value ?? "", G = (e) => e.dataset.disabled === void 0 && e.getAttribute("aria-disabled") !== "true";
413
+ function K(e, t) {
413
414
  return e !== null && e.querySelector(`[data-part='item'][data-value="${CSS.escape(t)}"]`)?.hasAttribute("data-create") === !0;
414
415
  }
415
- function K(e, t, n, r) {
416
+ function q(e, t, n, r) {
416
417
  let i = U(e);
417
418
  if (i.length === 0) return null;
418
- let a = j({
419
- enabled: i.map(ce),
419
+ let a = N({
420
+ enabled: i.map(G),
420
421
  from: t === null ? -1 : i.findIndex((e) => W(e) === t),
421
422
  intent: n,
422
423
  loop: r
@@ -424,71 +425,71 @@ function K(e, t, n, r) {
424
425
  return a === -1 ? null : W(i[a]);
425
426
  }
426
427
  function le(e, t, n) {
427
- return t === "none" ? null : K(e, null, t, n);
428
+ return t === "none" ? null : q(e, null, t, n);
428
429
  }
429
430
  function ue(e, t) {
430
431
  if (e === null || t === null) return;
431
432
  let n = U(e).find((e) => W(e) === t);
432
- n !== void 0 && M(n, e);
433
+ n !== void 0 && ae(n, e);
433
434
  }
434
- var q = "[data-part='chips'] > [role='gridcell']:not([data-part='field'])";
435
+ var J = "[data-part='chips'] > [role='gridcell']:not([data-part='field'])";
435
436
  //#endregion
436
437
  //#region src/multi-select/multi-select-chips.tsx
437
438
  function de(e, t) {
438
439
  return e || t;
439
440
  }
440
- function fe({ count: n, index: r, label: i, value: a }) {
441
- let o = z(), [s, c] = x(null), l = b(null), u = de(o.readOnly, o.disabled);
442
- h(() => {
441
+ function Y({ count: e, index: t, label: i, value: a }) {
442
+ let o = B(), [s, c] = S(null), l = x(null), u = de(o.readOnly, o.disabled);
443
+ g(() => {
443
444
  o.duplicate === a && (l.current?.focus({ preventScroll: !0 }), o.setDuplicate(null));
444
445
  }, [o, a]);
445
446
  let d = (e, t) => {
446
447
  c(null), l.current?.focus({ preventScroll: !0 }), o.replace(a, e, t);
447
- }, f = (e) => {
448
- if (!e.defaultPrevented) {
449
- switch (e.key) {
448
+ }, f = (n) => {
449
+ if (!n.defaultPrevented) {
450
+ switch (n.key) {
450
451
  case "Delete":
451
452
  case "Backspace":
452
453
  if (u) return;
453
- e.preventDefault(), o.remove(a, e.nativeEvent);
454
+ n.preventDefault(), o.remove(a, n.nativeEvent);
454
455
  return;
455
456
  case "Enter":
456
457
  if (u || !o.editable) return;
457
- e.preventDefault(), c(i);
458
+ n.preventDefault(), c(i);
458
459
  return;
459
460
  case "Escape":
460
- e.preventDefault(), o.inputNode?.focus({ preventScroll: !0 });
461
+ n.preventDefault(), o.inputNode?.focus({ preventScroll: !0 });
461
462
  return;
462
463
  }
463
- if (o.reorderable && e.altKey && !u) {
464
- let t = l.current?.ownerDocument.defaultView?.getComputedStyle(l.current).direction === "rtl", i = t ? "ArrowLeft" : "ArrowRight", a = t ? "ArrowRight" : "ArrowLeft";
465
- if (e.key === i) {
466
- e.preventDefault(), o.move(r, r + 1, e.nativeEvent);
464
+ if (o.reorderable && n.altKey && !u) {
465
+ let r = l.current?.ownerDocument.defaultView?.getComputedStyle(l.current).direction === "rtl", i = r ? "ArrowLeft" : "ArrowRight", a = r ? "ArrowRight" : "ArrowLeft";
466
+ if (n.key === i) {
467
+ n.preventDefault(), o.move(t, t + 1, n.nativeEvent);
467
468
  return;
468
469
  }
469
- if (e.key === a) {
470
- e.preventDefault(), o.move(r, r - 1, e.nativeEvent);
470
+ if (n.key === a) {
471
+ n.preventDefault(), o.move(t, t - 1, n.nativeEvent);
471
472
  return;
472
473
  }
473
- if (e.key === "Home") {
474
- e.preventDefault(), o.move(r, 0, e.nativeEvent);
474
+ if (n.key === "Home") {
475
+ n.preventDefault(), o.move(t, 0, n.nativeEvent);
475
476
  return;
476
477
  }
477
- if (e.key === "End") {
478
- e.preventDefault(), o.move(r, n - 1, e.nativeEvent);
478
+ if (n.key === "End") {
479
+ n.preventDefault(), o.move(t, e - 1, n.nativeEvent);
479
480
  return;
480
481
  }
481
482
  }
482
- e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey && o.inputNode?.focus({ preventScroll: !0 });
483
+ n.key.length === 1 && !n.ctrlKey && !n.metaKey && !n.altKey && o.inputNode?.focus({ preventScroll: !0 });
483
484
  }
484
485
  }, p = (e) => {
485
486
  e.stopPropagation(), o.remove(a, e.nativeEvent);
486
487
  };
487
- return s === null ? /* @__PURE__ */ w("span", {
488
+ return s === null ? /* @__PURE__ */ T("span", {
488
489
  "aria-label": o.reorderable ? o.t("reorder", {
489
490
  label: i,
490
- position: r + 1,
491
- count: n
491
+ position: t + 1,
492
+ count: e
492
493
  }) : void 0,
493
494
  "data-part": "root",
494
495
  "data-part-root": "",
@@ -502,24 +503,24 @@ function fe({ count: n, index: r, label: i, value: a }) {
502
503
  role: "gridcell",
503
504
  tabIndex: -1,
504
505
  ...u ? { "data-disabled": "" } : {},
505
- children: [/* @__PURE__ */ C("span", {
506
+ children: [/* @__PURE__ */ w("span", {
506
507
  "data-part": "body",
507
508
  "data-part-body": "",
508
- children: /* @__PURE__ */ C("span", {
509
+ children: /* @__PURE__ */ w("span", {
509
510
  "data-part": "label",
510
511
  "data-part-label": "",
511
512
  children: i
512
513
  })
513
- }), u ? null : /* @__PURE__ */ C("button", {
514
+ }), u ? null : /* @__PURE__ */ w("button", {
514
515
  "aria-label": o.t("remove", { label: i }),
515
516
  "data-part": "remove",
516
517
  "data-part-remove": "",
517
518
  onClick: p,
518
519
  tabIndex: -1,
519
520
  type: "button",
520
- children: /* @__PURE__ */ C(t, { children: /* @__PURE__ */ C(e, { name: "x" }) })
521
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "x" }) })
521
522
  })]
522
- }) : /* @__PURE__ */ C("span", {
523
+ }) : /* @__PURE__ */ w("span", {
523
524
  "data-part": "root",
524
525
  "data-part-root": "",
525
526
  "data-size": "sm",
@@ -529,10 +530,10 @@ function fe({ count: n, index: r, label: i, value: a }) {
529
530
  "data-variant": "soft",
530
531
  ref: l,
531
532
  role: "gridcell",
532
- children: /* @__PURE__ */ C("span", {
533
+ children: /* @__PURE__ */ w("span", {
533
534
  "data-part": "body",
534
535
  "data-part-body": "",
535
- children: /* @__PURE__ */ C("input", {
536
+ children: /* @__PURE__ */ w("input", {
536
537
  "aria-label": i,
537
538
  autoFocus: !0,
538
539
  onBlur: (e) => d(e.currentTarget.value, e.nativeEvent),
@@ -547,13 +548,13 @@ function fe({ count: n, index: r, label: i, value: a }) {
547
548
  })
548
549
  });
549
550
  }
550
- function J({ children: e }) {
551
- let t = z(), n = b(null), r = b(null), i = b(null), [a, o] = x(0), s = t.overflow === "collapse";
552
- return h(() => {
551
+ function fe({ children: e }) {
552
+ let t = B(), n = x(null), r = x(null), i = x(null), [a, o] = S(0), s = t.overflow === "collapse";
553
+ return g(() => {
553
554
  let e = n.current;
554
555
  if (e === null) return;
555
- let t = l(e, {
556
- itemSelector: `${q}, [data-part='field'] > [data-part='input']`,
556
+ let t = u(e, {
557
+ itemSelector: `${J}, [data-part='field'] > [data-part='input']`,
557
558
  loop: !1,
558
559
  ownedKeys: (e) => e instanceof HTMLInputElement && e.value !== "" ? [
559
560
  "ArrowLeft",
@@ -563,44 +564,44 @@ function J({ children: e }) {
563
564
  ] : []
564
565
  });
565
566
  return () => t.destroy();
566
- }, []), h(() => {
567
+ }, []), g(() => {
567
568
  let e = n.current;
568
569
  if (e === null) return;
569
- let r = u(e, {
570
+ let r = d(e, {
570
571
  fallback: () => t.inputNode,
571
- itemSelector: q
572
+ itemSelector: J
572
573
  });
573
574
  return () => r.destroy();
574
- }, [t.inputNode]), h(() => {
575
+ }, [t.inputNode]), g(() => {
575
576
  let e = n.current;
576
577
  if (e === null || !s) {
577
578
  o(0);
578
579
  return;
579
580
  }
580
- let t = T(e, {
581
+ let t = E(e, {
581
582
  collapsible: () => !0,
582
583
  onChange: (e) => o(e.length),
583
584
  trigger: () => r.current,
584
- units: () => [...e.querySelectorAll(q)].filter((e) => !e.hasAttribute("data-count"))
585
+ units: () => [...e.querySelectorAll(J)].filter((e) => !e.hasAttribute("data-count"))
585
586
  });
586
587
  return i.current = t, () => {
587
588
  t.destroy(), i.current = null, o(0);
588
589
  };
589
- }, [s]), v(() => {
590
+ }, [s]), y(() => {
590
591
  i.current?.refresh();
591
- }, [t.value]), /* @__PURE__ */ w("div", {
592
+ }, [t.value]), /* @__PURE__ */ T("div", {
592
593
  "data-part": "chips",
593
594
  "data-part-chips": "",
594
595
  ref: n,
595
596
  role: "row",
596
597
  children: [
597
- t.value.map((e, n) => /* @__PURE__ */ C(fe, {
598
+ t.value.map((e, n) => /* @__PURE__ */ w(Y, {
598
599
  count: t.value.length,
599
600
  index: n,
600
601
  label: t.labelFor(e) ?? e,
601
602
  value: e
602
603
  }, e)),
603
- s ? /* @__PURE__ */ C("span", {
604
+ s ? /* @__PURE__ */ w("span", {
604
605
  "data-count": "",
605
606
  "data-part": "root",
606
607
  "data-part-root": "",
@@ -613,10 +614,10 @@ function J({ children: e }) {
613
614
  ref: r,
614
615
  role: "gridcell",
615
616
  tabIndex: -1,
616
- children: /* @__PURE__ */ C("span", {
617
+ children: /* @__PURE__ */ w("span", {
617
618
  "data-part": "body",
618
619
  "data-part-body": "",
619
- children: /* @__PURE__ */ C("span", {
620
+ children: /* @__PURE__ */ w("span", {
620
621
  "data-part": "label",
621
622
  "data-part-label": "",
622
623
  children: `+${Math.max(a, 1)}`
@@ -629,234 +630,235 @@ function J({ children: e }) {
629
630
  }
630
631
  //#endregion
631
632
  //#region src/multi-select/multi-select-parts.tsx
632
- var pe = 120;
633
- function Y(e, t) {
633
+ var X = 120;
634
+ function Z(e, t) {
634
635
  return (n) => {
635
636
  e?.(n), n.defaultPrevented || t(n);
636
637
  };
637
638
  }
638
- function me(e, ...t) {
639
+ function pe(e, ...t) {
639
640
  for (let n of t) typeof n == "function" ? n(e) : n != null && (n.current = e);
640
641
  }
641
- function he({ ref: n, render: r, ...a }) {
642
- let o = z(), l = i(), [u, d] = x(null), f = b(null);
643
- h(() => {
644
- o.setInputNode(u);
645
- }, [o, u]);
646
- let m = o.setNarrow;
647
- h(() => {
648
- let e = f.current;
642
+ function me({ ref: e, render: t, ...o }) {
643
+ let s = B(), u = a(), [d, f] = S(null), p = x(null);
644
+ g(() => {
645
+ s.setInputNode(d);
646
+ }, [s, d]);
647
+ let h = s.setNarrow;
648
+ g(() => {
649
+ let e = p.current;
649
650
  if (e === null) return;
650
- let t = k(e, {
651
+ let t = re(e, {
651
652
  at: 120,
652
- onChange: m
653
+ onChange: h
653
654
  });
654
655
  return () => t.destroy();
655
- }, [m]);
656
- let { form: g, restore: _ } = o;
657
- h(() => {
658
- if (u === null) return;
659
- let e = g === void 0 ? u.form : u.ownerDocument.getElementById(g);
656
+ }, [h]);
657
+ let { form: _, restore: v } = s;
658
+ g(() => {
659
+ if (d === null) return;
660
+ let e = _ === void 0 ? d.form : d.ownerDocument.getElementById(_);
660
661
  if (!(e instanceof HTMLFormElement)) return;
661
- let t = (e) => _(e);
662
+ let t = (e) => v(e);
662
663
  return e.addEventListener("reset", t), () => e.removeEventListener("reset", t);
663
664
  }, [
664
- g,
665
- u,
666
- _
665
+ _,
666
+ d,
667
+ v
667
668
  ]);
668
- let v = (e, t) => {
669
- if (o.contentNode === null) {
670
- o.entry.current = e === "previous" || e === "pageUp" ? "last" : "first";
669
+ let y = (e, t) => {
670
+ if (s.contentNode === null) {
671
+ s.entry.current = e === "previous" || e === "pageUp" ? "last" : "first";
671
672
  return;
672
673
  }
673
- let n = K(o.contentNode, o.highlighted, e, o.loop);
674
- n !== null && o.setHighlighted(n, "keyboard", t);
675
- }, y = (e) => {
676
- let t = o.delimiters;
674
+ let n = q(s.contentNode, s.highlighted, e, s.loop);
675
+ n !== null && s.setHighlighted(n, "keyboard", t);
676
+ }, b = (e) => {
677
+ let t = s.delimiters;
677
678
  if (t.length === 0) return [e];
678
679
  let n = RegExp(`[${t.map((e) => e.replace(/[.*+?^${}()|[\]\\-]/g, "\\$&")).join("")}]`);
679
680
  return e.split(n);
680
- }, T = (e) => {
681
- if (!o.creatable) return !1;
682
- let t = o.inputValue;
683
- return t.trim() !== "" && (o.admit(y(t), "submit", e), o.setInputValue("", "submit", e), !0);
684
- }, ee = (e) => {
685
- let t = o.highlighted;
686
- return t === null ? !1 : G(o.contentNode, t) ? (T(e), !0) : (o.toggle(t, "select", e), o.setInputValue("", "select", e), o.closeOnSelect && o.setOpen(!1, "select", e), !0);
687
- }, E = (e, t) => {
688
- o.entry.current = e, o.setOpen(!0, "keyboard", t);
681
+ }, E = (e) => {
682
+ if (!s.creatable) return !1;
683
+ let t = s.inputValue;
684
+ return t.trim() !== "" && (s.admit(b(t), "submit", e), s.setInputValue("", "submit", e), !0);
689
685
  }, D = (e) => {
690
- if (o.disabled) return;
686
+ let t = s.highlighted;
687
+ return t === null ? !1 : K(s.contentNode, t) ? (E(e), !0) : (s.toggle(t, "select", e), s.setInputValue("", "select", e), s.closeOnSelect && s.setOpen(!1, "select", e), !0);
688
+ }, O = (e, t) => {
689
+ s.entry.current = e, s.setOpen(!0, "keyboard", t);
690
+ }, ee = (e) => {
691
+ if (s.disabled) return;
691
692
  let t = e.altKey;
692
- if (o.delimiters.includes(e.key) && !t) {
693
- e.preventDefault(), T(e.nativeEvent);
693
+ if (s.delimiters.includes(e.key) && !t) {
694
+ e.preventDefault(), E(e.nativeEvent);
694
695
  return;
695
696
  }
696
697
  switch (e.key) {
697
698
  case "ArrowDown":
698
- if (o.readOnly) return;
699
- e.preventDefault(), o.open ? t || v("next", e.nativeEvent) : E(t ? "none" : "first", e.nativeEvent);
699
+ if (s.readOnly) return;
700
+ e.preventDefault(), s.open ? t || y("next", e.nativeEvent) : O(t ? "none" : "first", e.nativeEvent);
700
701
  return;
701
702
  case "ArrowUp":
702
- if (o.readOnly) return;
703
- e.preventDefault(), t ? o.setOpen(!1, "keyboard", e.nativeEvent) : o.open ? v("previous", e.nativeEvent) : E("last", e.nativeEvent);
703
+ if (s.readOnly) return;
704
+ e.preventDefault(), t ? s.setOpen(!1, "keyboard", e.nativeEvent) : s.open ? y("previous", e.nativeEvent) : O("last", e.nativeEvent);
704
705
  return;
705
706
  case "PageDown":
706
- if (!o.open) return;
707
- e.preventDefault(), v("pageDown", e.nativeEvent);
707
+ if (!s.open) return;
708
+ e.preventDefault(), y("pageDown", e.nativeEvent);
708
709
  return;
709
710
  case "PageUp":
710
- if (!o.open) return;
711
- e.preventDefault(), v("pageUp", e.nativeEvent);
711
+ if (!s.open) return;
712
+ e.preventDefault(), y("pageUp", e.nativeEvent);
712
713
  return;
713
714
  case "Enter":
714
- if (ee(e.nativeEvent)) {
715
+ if (D(e.nativeEvent)) {
715
716
  e.preventDefault();
716
717
  return;
717
718
  }
718
- T(e.nativeEvent) && e.preventDefault();
719
+ E(e.nativeEvent) && e.preventDefault();
719
720
  return;
720
721
  case "Escape":
721
- if (o.open) {
722
- e.preventDefault(), o.setOpen(!1, "escape", e.nativeEvent);
722
+ if (s.open) {
723
+ e.preventDefault(), s.setOpen(!1, "escape", e.nativeEvent);
723
724
  return;
724
725
  }
725
- if (o.inputValue === "") return;
726
- e.preventDefault(), o.setInputValue("", "clear", e.nativeEvent);
726
+ if (s.inputValue === "") return;
727
+ e.preventDefault(), s.setInputValue("", "clear", e.nativeEvent);
727
728
  return;
728
729
  case "Backspace": {
729
- if (o.inputValue !== "" || e.currentTarget.selectionStart !== 0 || o.readOnly || o.value.length === 0) return;
730
- let t = f.current?.querySelectorAll("[data-part='chips'] > [role='gridcell']:not([data-part='field'])"), n = t === void 0 ? void 0 : t[t.length - 1];
730
+ if (s.inputValue !== "" || e.currentTarget.selectionStart !== 0 || s.readOnly || s.value.length === 0) return;
731
+ let t = p.current?.querySelectorAll("[data-part='chips'] > [role='gridcell']:not([data-part='field'])"), n = t === void 0 ? void 0 : t[t.length - 1];
731
732
  if (n === void 0) return;
732
733
  e.preventDefault(), n.focus({ preventScroll: !0 });
733
734
  return;
734
735
  }
735
736
  case "Tab":
736
- o.open && o.setOpen(!1, "dismiss", e.nativeEvent);
737
+ s.open && s.setOpen(!1, "dismiss", e.nativeEvent);
737
738
  return;
738
739
  }
739
- }, te = (e) => {
740
+ }, k = (e) => {
740
741
  let t = e.currentTarget.value;
741
- o.setInputValue(t, "keyboard", e.nativeEvent), o.openOn !== "manual" && !o.open && !o.readOnly && t !== "" && (o.entry.current = "none", o.setOpen(!0, "keyboard", e.nativeEvent));
742
- }, ne = () => {
743
- o.openOn !== "focus" || o.open || o.disabled || o.readOnly || (o.entry.current = "none", o.setOpen(!0, "keyboard"));
744
- }, re = (e) => {
745
- o.openOn === "manual" || o.open || o.disabled || o.readOnly || (o.entry.current = "none", o.setOpen(!0, "pointer", e.nativeEvent));
746
- }, ie = (e) => {
747
- if (!o.addOnPaste || !o.creatable || o.readOnly) return;
748
- let t = e.clipboardData.getData("text"), n = y(t).filter((e) => e.trim() !== "");
749
- n.length < 2 || (e.preventDefault(), o.admit(n, "submit", e.nativeEvent), o.setInputValue("", "submit", e.nativeEvent));
750
- }, ae = (e) => {
742
+ s.setInputValue(t, "keyboard", e.nativeEvent), s.openOn !== "manual" && !s.open && !s.readOnly && t !== "" && (s.entry.current = "none", s.setOpen(!0, "keyboard", e.nativeEvent));
743
+ }, A = () => {
744
+ s.openOn !== "focus" || s.open || s.disabled || s.readOnly || (s.entry.current = "none", s.setOpen(!0, "keyboard"));
745
+ }, te = (e) => {
746
+ s.openOn === "manual" || s.open || s.disabled || s.readOnly || (s.entry.current = "none", s.setOpen(!0, "pointer", e.nativeEvent));
747
+ }, ne = (e) => {
748
+ if (!s.addOnPaste || !s.creatable || s.readOnly) return;
749
+ let t = e.clipboardData.getData("text"), n = b(t).filter((e) => e.trim() !== "");
750
+ n.length < 2 || (e.preventDefault(), s.admit(n, "submit", e.nativeEvent), s.setInputValue("", "submit", e.nativeEvent));
751
+ }, M = (e) => {
751
752
  let t = e.relatedTarget;
752
- if (t instanceof Node && o.contentNode?.contains(t) === !0 || t instanceof Node && f.current?.contains(t) === !0) return;
753
- let n = O(u?.ownerDocument);
754
- n instanceof Node && o.contentNode?.contains(n) === !0 || (o.commitOnBlur && T(e), o.open && o.setOpen(!1, "blur"));
755
- }, A = (e) => {
756
- o.clear(e.nativeEvent), u?.focus({ preventScroll: !0 });
757
- }, j = (e) => {
758
- o.disabled || o.readOnly || (o.entry.current = "none", o.setOpen(!o.open, "pointer", e.nativeEvent), u?.focus({ preventScroll: !0 }));
759
- }, M = p((e) => {
760
- d(e), me(e, n);
761
- }, [n]), N = [a["aria-describedby"], l?.describedBy].filter(Boolean).join(" "), P = o.clearable && (o.value.length > 0 || o.inputValue !== "") && !o.disabled && !o.readOnly, F = o.max === null ? o.narrow && o.value.length > 0 ? o.t("chosen", { count: o.value.length }) : null : o.t("counter", {
762
- count: o.value.length,
763
- max: o.max
764
- }), I = {
765
- ref: f,
766
- "data-overflow": o.overflow,
753
+ if (t instanceof Node && s.contentNode?.contains(t) === !0 || t instanceof Node && p.current?.contains(t) === !0) return;
754
+ let n = j(d?.ownerDocument);
755
+ n instanceof Node && s.contentNode?.contains(n) === !0 || (s.commitOnBlur && E(e), s.open && s.setOpen(!1, "blur"));
756
+ }, ie = (e) => {
757
+ s.clear(e.nativeEvent), d?.focus({ preventScroll: !0 });
758
+ }, N = (e) => {
759
+ s.disabled || s.readOnly || (s.entry.current = "none", s.setOpen(!s.open, "pointer", e.nativeEvent), d?.focus({ preventScroll: !0 }));
760
+ }, ae = m((t) => {
761
+ f(t), pe(t, e);
762
+ }, [e]), P = [o["aria-describedby"], u?.describedBy].filter(Boolean).join(" "), F = s.clearable && (s.value.length > 0 || s.inputValue !== "") && !s.disabled && !s.readOnly, I = s.max === null ? s.narrow && s.value.length > 0 ? s.t("chosen", { count: s.value.length }) : null : s.t("counter", {
763
+ count: s.value.length,
764
+ max: s.max
765
+ }), L = {
766
+ ref: p,
767
+ "data-overflow": s.overflow,
767
768
  "data-part": "root",
768
- ...s("part", "root"),
769
- "data-size": o.size,
769
+ ...c("part", "root"),
770
+ "data-size": s.size,
770
771
  "data-ui": "multi-select",
771
- ...s("ui", "multi-select"),
772
- "data-variant": o.variant,
773
- ...o.fullWidth ? { "data-full-width": "" } : {},
774
- ...o.open ? { "data-open": "" } : {},
775
- ...o.disabled ? { "data-disabled": "" } : {},
776
- ...o.readOnly ? { "data-readonly": "" } : {},
777
- ...o.invalid ? { "data-invalid": "" } : {},
778
- ...o.required ? { "data-required": "" } : {},
779
- ...o.loading ? { "data-loading": "" } : {},
780
- ...o.full ? { "data-complete": "" } : {},
781
- ...o.narrow ? { "data-narrow": "" } : {}
782
- }, L = o.t("chosen", { count: o.value.length }), R = `${a.id ?? l?.ids.control ?? o.inputId}-chosen`, B = a["aria-labelledby"] ?? l?.ids.label, oe = a["aria-label"] === void 0 ? B === void 0 ? { "aria-label": L } : { "aria-labelledby": `${B} ${R}` } : { "aria-label": `${a["aria-label"]}, ${L}` }, V = /* @__PURE__ */ w(S, { children: [
783
- /* @__PURE__ */ C("span", {
772
+ ...c("ui", "multi-select"),
773
+ "data-variant": s.variant,
774
+ ...s.fullWidth ? { "data-full-width": "" } : {},
775
+ ...s.open ? { "data-open": "" } : {},
776
+ ...s.disabled ? { "data-disabled": "" } : {},
777
+ ...s.readOnly ? { "data-readonly": "" } : {},
778
+ ...s.invalid ? { "data-invalid": "" } : {},
779
+ ...s.required ? { "data-required": "" } : {},
780
+ ...s.loading ? { "data-loading": "" } : {},
781
+ ...s.full ? { "data-complete": "" } : {},
782
+ ...s.narrow ? { "data-narrow": "" } : {}
783
+ }, R = s.t("chosen", { count: s.value.length }), z = `${o.id ?? u?.ids.control ?? s.inputId}-chosen`, V = o["aria-labelledby"] ?? u?.ids.label, oe = o["aria-label"] === void 0 ? V === void 0 ? { "aria-label": R } : { "aria-labelledby": `${V} ${z}` } : { "aria-label": `${o["aria-label"]}, ${R}` }, H = /* @__PURE__ */ T(C, { children: [
784
+ /* @__PURE__ */ w("span", {
784
785
  hidden: !0,
785
- id: R,
786
- children: L
786
+ id: z,
787
+ children: R
787
788
  }),
788
- /* @__PURE__ */ C("div", {
789
- ...c(oe, "part", "control"),
789
+ /* @__PURE__ */ w("div", {
790
+ ...l(oe, "part", "control"),
790
791
  role: "grid",
791
- children: /* @__PURE__ */ C(J, { children: /* @__PURE__ */ C("span", {
792
+ children: /* @__PURE__ */ w(fe, { children: /* @__PURE__ */ w("span", {
792
793
  "data-part": "field",
793
794
  "data-part-field": "",
794
795
  role: "gridcell",
795
- children: /* @__PURE__ */ C("input", {
796
- ...c(a, "part", "input"),
797
- "aria-activedescendant": o.open && o.highlighted !== null ? o.optionId(o.highlighted) : void 0,
796
+ children: /* @__PURE__ */ w("input", {
797
+ ...l(o, "part", "input"),
798
+ "aria-activedescendant": s.open && s.highlighted !== null ? s.optionId(s.highlighted) : void 0,
798
799
  "aria-autocomplete": "list",
799
- "aria-controls": o.open ? o.contentId : void 0,
800
- "aria-describedby": N === "" ? void 0 : N,
801
- "aria-expanded": o.open,
802
- "aria-invalid": o.invalid ? !0 : void 0,
803
- "aria-readonly": o.readOnly ? !0 : void 0,
804
- disabled: o.disabled,
805
- id: a.id ?? l?.ids.control ?? o.inputId,
806
- onBlur: Y(a.onBlur, ae),
807
- onChange: Y(a.onChange, te),
808
- onClick: Y(a.onClick, re),
809
- onFocus: Y(a.onFocus, ne),
810
- onKeyDown: Y(a.onKeyDown, D),
811
- onPaste: Y(a.onPaste, ie),
812
- placeholder: o.value.length === 0 ? a.placeholder : void 0,
813
- readOnly: o.readOnly,
814
- ref: M,
815
- required: o.required && o.value.length === 0,
800
+ "aria-controls": s.open ? s.contentId : void 0,
801
+ "aria-describedby": P === "" ? void 0 : P,
802
+ "aria-expanded": s.open,
803
+ "aria-invalid": s.invalid ? !0 : void 0,
804
+ "aria-readonly": s.readOnly ? !0 : void 0,
805
+ disabled: s.disabled,
806
+ id: o.id ?? u?.ids.control ?? s.inputId,
807
+ onBlur: Z(o.onBlur, M),
808
+ onChange: Z(o.onChange, k),
809
+ onClick: Z(o.onClick, te),
810
+ onFocus: Z(o.onFocus, A),
811
+ onKeyDown: Z(o.onKeyDown, ee),
812
+ onPaste: Z(o.onPaste, ne),
813
+ placeholder: s.value.length === 0 ? o.placeholder : void 0,
814
+ readOnly: s.readOnly,
815
+ ref: ae,
816
+ required: s.required && s.value.length === 0,
816
817
  role: "combobox",
817
818
  type: "text",
818
- value: o.inputValue
819
+ value: s.inputValue
819
820
  })
820
821
  }) })
821
822
  }),
822
- F === null ? null : /* @__PURE__ */ C("span", {
823
+ I === null ? null : /* @__PURE__ */ w("span", {
823
824
  "aria-hidden": "true",
824
825
  "data-part": "counter",
825
826
  "data-part-counter": "",
826
- children: F
827
+ children: I
827
828
  }),
828
- P ? /* @__PURE__ */ C("button", {
829
- "aria-label": o.t("clear"),
829
+ F ? /* @__PURE__ */ w("button", {
830
+ "aria-label": s.t("clear"),
830
831
  "data-part": "clear",
831
832
  "data-part-clear": "",
832
- onClick: A,
833
+ onClick: ie,
833
834
  type: "button",
834
- children: /* @__PURE__ */ C(t, { children: /* @__PURE__ */ C(e, { name: "x" }) })
835
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "x" }) })
835
836
  }) : null,
836
- o.loading ? /* @__PURE__ */ C("span", {
837
+ s.loading ? /* @__PURE__ */ w("span", {
837
838
  "aria-hidden": "true",
838
839
  "data-part": "busy",
839
840
  "data-part-busy": "",
840
841
  "data-ui": "spinner",
841
- "data-ui-spinner": ""
842
- }) : /* @__PURE__ */ C("button", {
843
- "aria-label": o.t("trigger"),
842
+ "data-ui-spinner": "",
843
+ children: i
844
+ }) : /* @__PURE__ */ w("button", {
845
+ "aria-label": s.t("trigger"),
844
846
  "data-part": "trigger",
845
847
  "data-part-trigger": "",
846
- disabled: o.disabled,
847
- onClick: j,
848
+ disabled: s.disabled,
849
+ onClick: N,
848
850
  tabIndex: -1,
849
851
  type: "button",
850
- children: /* @__PURE__ */ C("span", {
852
+ children: /* @__PURE__ */ w("span", {
851
853
  "data-part": "arrow",
852
854
  "data-part-arrow": "",
853
- children: /* @__PURE__ */ C(t, { children: /* @__PURE__ */ C(e, { name: "chevron-down" }) })
855
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "chevron-down" }) })
854
856
  })
855
857
  }),
856
- o.name === void 0 ? null : o.value.map((e) => /* @__PURE__ */ C("input", {
858
+ s.name === void 0 ? null : s.value.map((e) => /* @__PURE__ */ w("input", {
857
859
  "aria-hidden": "true",
858
- form: o.form,
859
- name: o.name,
860
+ form: s.form,
861
+ name: s.name,
860
862
  readOnly: !0,
861
863
  style: {
862
864
  border: 0,
@@ -874,75 +876,75 @@ function he({ ref: n, render: r, ...a }) {
874
876
  value: e
875
877
  }, e))
876
878
  ] });
877
- return r === void 0 ? /* @__PURE__ */ C("div", {
878
- ...I,
879
- children: V
880
- }) : r({
881
- ...I,
882
- children: V
879
+ return t === void 0 ? /* @__PURE__ */ w("div", {
880
+ ...L,
881
+ children: H
882
+ }) : t({
883
+ ...L,
884
+ children: H
883
885
  });
884
886
  }
885
- function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status: l, ...u }) {
886
- let d = z(), [f, m] = x(null), [g, _] = x(null), [y, S] = x(null), [T, D] = x("unmounted"), [O, ie] = x(!1), [k, ae] = x(0), A = b(null), j = b(null), M = b(d);
887
- M.current = d, h(() => {
888
- let e = ee({
889
- present: M.current.open,
890
- onStatusChange: D
887
+ function he({ children: e, chosen: t = !0, empty: i, ref: a, render: o, status: c, ...u }) {
888
+ let d = B(), [f, p] = S(null), [h, _] = S(null), [v, b] = S(null), [C, E] = S("unmounted"), [O, k] = S(!1), [j, re] = S(0), M = x(null), ie = x(null), N = x(d);
889
+ N.current = d, g(() => {
890
+ let e = D({
891
+ present: N.current.open,
892
+ onStatusChange: E
891
893
  });
892
- return A.current = e, D(e.status), () => {
893
- e.destroy(), A.current = null;
894
+ return M.current = e, E(e.status), () => {
895
+ e.destroy(), M.current = null;
894
896
  };
895
- }, []), h(() => A.current?.sync(d.open), [d.open]), h(() => A.current?.setNode(f), [f]), h(() => d.setContentNode(g), [d, g]);
896
- let N = d.mount === "eager" || d.mount === "lazy" && d.seen || d.open || T !== "unmounted";
897
- h(() => {
897
+ }, []), g(() => M.current?.sync(d.open), [d.open]), g(() => M.current?.setNode(f), [f]), g(() => d.setContentNode(h), [d, h]);
898
+ let ae = d.mount === "eager" || d.mount === "lazy" && d.seen || d.open || C !== "unmounted";
899
+ g(() => {
898
900
  let e = d.inputNode;
899
901
  if (e === null || O) return;
900
- let t = () => ie(!0);
902
+ let t = () => k(!0);
901
903
  return e.addEventListener("focusin", t), e.addEventListener("pointerdown", t), () => {
902
904
  e.removeEventListener("focusin", t), e.removeEventListener("pointerdown", t);
903
905
  };
904
906
  }, [d.inputNode, O]);
905
- let P = N || O;
906
- v(() => {
907
+ let P = ae || O;
908
+ y(() => {
907
909
  if (!P) {
908
- S(null);
910
+ b(null);
909
911
  return;
910
912
  }
911
- let e = E({
913
+ let e = ee({
912
914
  origin: d.inputNode,
913
915
  disabled: !d.portal
914
916
  });
915
- return S(e.container), () => e.release();
917
+ return b(e.container), () => e.release();
916
918
  }, [
917
919
  d.inputNode,
918
920
  d.portal,
919
921
  P
920
922
  ]);
921
- let { align: F, alignOffset: I, collisionPadding: L, flip: R, hideWhenDetached: B, shift: oe, side: V, sideOffset: H, strategy: se, width: ce } = d, G = b(null), K = b(0), q = p((e, t) => {
923
+ let { align: F, alignOffset: I, collisionPadding: L, flip: R, hideWhenDetached: z, shift: V, side: oe, sideOffset: H, strategy: se, width: ce } = d, G = x(null), K = x(0), q = m((e, t) => {
922
924
  e.update().then(() => {
923
- if (G.current !== e || !M.current.open) return;
925
+ if (G.current !== e || !N.current.open) return;
924
926
  t.setAttribute("data-open", "");
925
927
  let n = t.ownerDocument.defaultView;
926
928
  n !== null && K.current === 0 && (K.current = n.requestAnimationFrame(() => {
927
- K.current = 0, ue(M.current.contentNode, M.current.highlighted);
929
+ K.current = 0, ue(N.current.contentNode, N.current.highlighted);
928
930
  }));
929
931
  });
930
932
  }, []);
931
- if (v(() => {
933
+ if (y(() => {
932
934
  if (f === null || d.inputNode === null) return;
933
- let e = d.inputNode.closest("[data-part='root']") ?? d.inputNode, t = ne(e, f, {
935
+ let e = d.inputNode.closest("[data-part='root']") ?? d.inputNode, t = te(e, f, {
934
936
  align: F,
935
937
  alignOffset: I,
936
938
  boundaryPadding: L,
937
939
  flip: R,
938
- hideWhenDetached: B,
940
+ hideWhenDetached: z,
939
941
  matchWidth: ce === "anchor",
940
- shift: oe,
941
- side: V,
942
+ shift: V,
943
+ side: oe,
942
944
  sideOffset: H,
943
945
  strategy: se
944
946
  });
945
- return G.current = t, M.current.open && q(t, f), () => {
947
+ return G.current = t, N.current.open && q(t, f), () => {
946
948
  t.destroy(), G.current = null, f.removeAttribute("data-open");
947
949
  };
948
950
  }, [
@@ -950,16 +952,16 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
950
952
  I,
951
953
  L,
952
954
  R,
953
- B,
955
+ z,
954
956
  f,
955
957
  d.inputNode,
956
- oe,
957
958
  V,
959
+ oe,
958
960
  H,
959
961
  se,
960
962
  ce,
961
963
  q
962
- ]), v(() => {
964
+ ]), y(() => {
963
965
  let e = G.current;
964
966
  if (e !== null && f !== null) {
965
967
  if (d.open) {
@@ -972,9 +974,9 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
972
974
  f,
973
975
  q,
974
976
  d.open
975
- ]), h(() => {
977
+ ]), g(() => {
976
978
  if (f === null || !d.open) return;
977
- let e = [d.inputNode?.closest("[data-part='root']") ?? null].filter((e) => e !== null), t = te(f, {
979
+ let e = [d.inputNode?.closest("[data-part='root']") ?? null].filter((e) => e !== null), t = A(f, {
978
980
  branches: e,
979
981
  escape: d.closeOnEscape,
980
982
  focusOutside: !1,
@@ -982,7 +984,7 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
982
984
  outsidePress: d.closeOnOutsidePress,
983
985
  scrollLock: !1,
984
986
  onDismiss: (e) => {
985
- M.current.setOpen(!1, e.reason === "escape" ? "escape" : "outsidePress", e.source);
987
+ N.current.setOpen(!1, e.reason === "escape" ? "escape" : "outsidePress", e.source);
986
988
  }
987
989
  });
988
990
  return () => t.destroy();
@@ -992,31 +994,31 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
992
994
  d.inputNode,
993
995
  d.open,
994
996
  f
995
- ]), v(() => {
996
- let e = U(g).filter((e) => e.dataset.create === void 0).length;
997
- ae((t) => t === e ? t : e);
998
- }), v(() => {
999
- let e = M.current;
1000
- if (e.open && g !== null) {
997
+ ]), y(() => {
998
+ let e = U(h).filter((e) => e.dataset.create === void 0).length;
999
+ re((t) => t === e ? t : e);
1000
+ }), y(() => {
1001
+ let e = N.current;
1002
+ if (e.open && h !== null) {
1001
1003
  if (e.entry.current !== "none") {
1002
- let t = le(g, e.entry.current, e.loop);
1004
+ let t = le(h, e.entry.current, e.loop);
1003
1005
  e.entry.current = "none", t !== null && e.setHighlighted(t, "keyboard");
1004
1006
  return;
1005
1007
  }
1006
- e.highlighted !== null && (U(g).some((t) => W(t) === e.highlighted) || e.setHighlighted(null, "keyboard"));
1008
+ e.highlighted !== null && (U(h).some((t) => W(t) === e.highlighted) || e.setHighlighted(null, "keyboard"));
1007
1009
  }
1008
1010
  }, [
1009
1011
  d.open,
1010
- k,
1011
- g
1012
- ]), h(() => {
1013
- f?.hasAttribute("data-open") === !0 && ue(g, d.highlighted);
1012
+ j,
1013
+ h
1014
+ ]), g(() => {
1015
+ f?.hasAttribute("data-open") === !0 && ue(h, d.highlighted);
1014
1016
  }, [
1015
1017
  f,
1016
1018
  d.highlighted,
1017
- g
1018
- ]), h(() => {
1019
- let e = j.current, t = g, n = d.onLoadMore;
1019
+ h
1020
+ ]), g(() => {
1021
+ let e = ie.current, t = h, n = d.onLoadMore;
1020
1022
  if (e === null || t === null || n === void 0 || typeof IntersectionObserver != "function") return;
1021
1023
  let r = new IntersectionObserver((e) => {
1022
1024
  e.some((e) => e.isIntersecting) && n();
@@ -1024,23 +1026,23 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
1024
1026
  return r.observe(e), () => r.disconnect();
1025
1027
  }, [
1026
1028
  d.onLoadMore,
1027
- k,
1028
- g
1029
- ]), !N) return null;
1030
- let de = o({
1029
+ j,
1030
+ h
1031
+ ]), !ae) return null;
1032
+ let J = s({
1031
1033
  "data-align": F,
1032
1034
  ...d.open ? {} : { inert: !0 },
1033
1035
  "data-part": "positioner",
1034
1036
  "data-size": d.size,
1035
1037
  "data-ui": "multi-select",
1036
1038
  "data-width": d.width
1037
- }), fe = l === void 0 ? d.loading ? d.t("loading") : k === 0 ? null : d.t("count", { count: k }) : l, J = !d.loading && k === 0 && d.creatable && !d.full && d.query.trim() !== "", pe = /* @__PURE__ */ C("div", {
1038
- ...de,
1039
+ }), de = c === void 0 ? d.loading ? d.t("loading") : j === 0 ? null : d.t("count", { count: j }) : c, Y = !d.loading && j === 0 && d.creatable && !d.full && d.query.trim() !== "", fe = /* @__PURE__ */ w("div", {
1040
+ ...J,
1039
1041
  ref: (e) => {
1040
- m(e), me(e, a);
1042
+ p(e), pe(e, a);
1041
1043
  },
1042
- children: /* @__PURE__ */ w("div", {
1043
- ...c(u, "part", "content"),
1044
+ children: /* @__PURE__ */ T("div", {
1045
+ ...l(u, "part", "content"),
1044
1046
  "aria-busy": d.loading ? !0 : void 0,
1045
1047
  "aria-multiselectable": "true",
1046
1048
  "data-loading": d.loading ? "" : void 0,
@@ -1048,20 +1050,20 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
1048
1050
  ref: _,
1049
1051
  role: "listbox",
1050
1052
  children: [
1051
- r && d.value.length > 0 ? /* @__PURE__ */ C("div", {
1053
+ t && d.value.length > 0 ? /* @__PURE__ */ w("div", {
1052
1054
  "data-part": "chosen",
1053
1055
  "data-part-chosen": "",
1054
- children: d.value.map((e) => /* @__PURE__ */ C("span", {
1056
+ children: d.value.map((e) => /* @__PURE__ */ w("span", {
1055
1057
  "data-part": "root",
1056
1058
  "data-part-root": "",
1057
1059
  "data-size": "sm",
1058
1060
  "data-ui": "tag",
1059
1061
  "data-ui-tag": "",
1060
1062
  "data-variant": "soft",
1061
- children: /* @__PURE__ */ C("span", {
1063
+ children: /* @__PURE__ */ w("span", {
1062
1064
  "data-part": "body",
1063
1065
  "data-part-body": "",
1064
- children: /* @__PURE__ */ C("span", {
1066
+ children: /* @__PURE__ */ w("span", {
1065
1067
  "data-part": "label",
1066
1068
  "data-part-label": "",
1067
1069
  children: d.labelFor(e) ?? e
@@ -1069,9 +1071,9 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
1069
1071
  })
1070
1072
  }, e))
1071
1073
  }) : null,
1072
- n,
1073
- /* @__PURE__ */ C("div", { ref: j }),
1074
- J ? /* @__PURE__ */ w("div", {
1074
+ e,
1075
+ /* @__PURE__ */ w("div", { ref: ie }),
1076
+ Y ? /* @__PURE__ */ T("div", {
1075
1077
  "data-create": "",
1076
1078
  "data-part": "item",
1077
1079
  "data-part-item": "",
@@ -1088,28 +1090,28 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
1088
1090
  "aria-selected": !1,
1089
1091
  ...d.highlighted === d.query ? { "data-current": "" } : {},
1090
1092
  children: [
1091
- /* @__PURE__ */ C("span", {
1093
+ /* @__PURE__ */ w("span", {
1092
1094
  "data-part": "icon",
1093
1095
  "data-part-icon": ""
1094
1096
  }),
1095
- /* @__PURE__ */ C("span", {
1097
+ /* @__PURE__ */ w("span", {
1096
1098
  "data-part": "label",
1097
1099
  "data-part-label": "",
1098
1100
  children: d.t("create", { query: d.query })
1099
1101
  }),
1100
- /* @__PURE__ */ C("span", {
1102
+ /* @__PURE__ */ w("span", {
1101
1103
  "data-part": "indicator",
1102
1104
  "data-part-indicator": "",
1103
- children: /* @__PURE__ */ C(t, { children: /* @__PURE__ */ C(e, { name: "plus" }) })
1105
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "plus" }) })
1104
1106
  })
1105
1107
  ]
1106
1108
  }) : null,
1107
- !d.loading && k === 0 && !J ? /* @__PURE__ */ C("div", {
1109
+ !d.loading && j === 0 && !Y ? /* @__PURE__ */ w("div", {
1108
1110
  "data-part": "empty",
1109
1111
  "data-part-empty": "",
1110
1112
  children: i ?? d.t("empty")
1111
1113
  }) : null,
1112
- d.loading ? /* @__PURE__ */ C("div", {
1114
+ d.loading ? /* @__PURE__ */ w("div", {
1113
1115
  "aria-hidden": "true",
1114
1116
  "data-part": "placeholder",
1115
1117
  "data-part-placeholder": "",
@@ -1117,7 +1119,7 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
1117
1119
  0,
1118
1120
  1,
1119
1121
  2
1120
- ].map((e) => /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("span", {
1122
+ ].map((e) => /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w("span", {
1121
1123
  "data-part": "root",
1122
1124
  "data-part-root": "",
1123
1125
  "data-shape": "text",
@@ -1126,27 +1128,27 @@ function ge({ children: n, chosen: r = !0, empty: i, ref: a, render: s, status:
1126
1128
  "data-loading": ""
1127
1129
  }) }, e))
1128
1130
  }) : null,
1129
- /* @__PURE__ */ C("div", {
1131
+ /* @__PURE__ */ w("div", {
1130
1132
  "aria-live": "polite",
1131
1133
  "data-part": "status",
1132
1134
  "data-part-status": "",
1133
1135
  ...d.loading ? { "data-loading": "" } : {},
1134
1136
  role: "status",
1135
- children: fe
1137
+ children: de
1136
1138
  })
1137
1139
  ]
1138
1140
  })
1139
- }), Y = s === void 0 ? pe : s({
1140
- ...de,
1141
- children: n
1141
+ }), X = o === void 0 ? fe : o({
1142
+ ...J,
1143
+ children: e
1142
1144
  });
1143
- return y === null ? Y : re(Y, y);
1145
+ return v === null ? X : ne(X, v);
1144
1146
  }
1145
1147
  //#endregion
1146
1148
  //#region src/multi-select/multi-select-items.tsx
1147
- function _e({ children: n, description: r, disabled: i = !1, icon: o, position: s, ref: l, textValue: u, value: d, ...f }) {
1148
- let p = z(), [m, g] = x(null), _ = b(null), v = u ?? (typeof n == "string" ? n : void 0);
1149
- h(() => {
1149
+ function ge({ children: e, description: t, disabled: i = !1, icon: a, position: s, ref: c, textValue: u, value: d, ...f }) {
1150
+ let p = B(), [m, h] = S(null), _ = x(null), v = u ?? (typeof e == "string" ? e : void 0);
1151
+ g(() => {
1150
1152
  if (m === null) return;
1151
1153
  let e = v ?? m.querySelector("[data-part='label']")?.textContent?.trim() ?? "";
1152
1154
  e !== "" && e !== _.current && (_.current = e, p.registerLabel(d, e));
@@ -1156,88 +1158,88 @@ function _e({ children: n, description: r, disabled: i = !1, icon: o, position:
1156
1158
  v,
1157
1159
  d
1158
1160
  ]);
1159
- let S = y(() => {
1160
- if (!p.highlightMatch || p.query === "" || v === void 0) return n;
1161
- let e = N(v, p.query, { locale: p.locale });
1162
- return e.length === 0 ? n : /* @__PURE__ */ C(a, {
1163
- ranges: e,
1161
+ let y = b(() => {
1162
+ if (!p.highlightMatch || p.query === "" || v === void 0) return e;
1163
+ let t = P(v, p.query, { locale: p.locale });
1164
+ return t.length === 0 ? e : /* @__PURE__ */ w(o, {
1165
+ ranges: t,
1164
1166
  text: v
1165
1167
  });
1166
1168
  }, [
1167
- n,
1169
+ e,
1168
1170
  p.highlightMatch,
1169
1171
  p.locale,
1170
1172
  p.query,
1171
1173
  v
1172
1174
  ]);
1173
1175
  if (v !== void 0 && !p.matches(v)) return null;
1174
- let T = p.value.includes(d);
1175
- if (T && p.chosenOptions === "hide") return null;
1176
- let ee = p.highlighted === d, E = p.full && !T, D = i || E, te = (e) => {
1177
- D || p.setHighlighted(d, "pointer", e.nativeEvent);
1178
- }, O = (e) => {
1176
+ let C = p.value.includes(d);
1177
+ if (C && p.chosenOptions === "hide") return null;
1178
+ let E = p.highlighted === d, D = p.full && !C, O = i || D, ee = (e) => {
1179
+ O || p.setHighlighted(d, "pointer", e.nativeEvent);
1180
+ }, k = (e) => {
1179
1181
  f.onPointerDown?.(e), !e.defaultPrevented && e.preventDefault();
1180
- }, ne = (e) => {
1181
- D || (p.toggle(d, "select", e.nativeEvent), p.setInputValue("", "select", e.nativeEvent), p.closeOnSelect && p.setOpen(!1, "select", e.nativeEvent), p.inputNode?.focus({ preventScroll: !0 }));
1182
+ }, A = (e) => {
1183
+ O || (p.toggle(d, "select", e.nativeEvent), p.setInputValue("", "select", e.nativeEvent), p.closeOnSelect && p.setOpen(!1, "select", e.nativeEvent), p.inputNode?.focus({ preventScroll: !0 }));
1182
1184
  };
1183
- return /* @__PURE__ */ w("div", {
1184
- ...c(f, "part", "item"),
1185
- "aria-disabled": D ? !0 : void 0,
1185
+ return /* @__PURE__ */ T("div", {
1186
+ ...l(f, "part", "item"),
1187
+ "aria-disabled": O ? !0 : void 0,
1186
1188
  "aria-posinset": s,
1187
- "aria-selected": T,
1189
+ "aria-selected": C,
1188
1190
  "aria-setsize": s === void 0 ? void 0 : p.total,
1189
1191
  "data-value": d,
1190
1192
  ...v === void 0 ? {} : { "data-text-value": v },
1191
1193
  ...i ? { "data-disabled": "" } : {},
1192
- ...T ? { "data-selected": "" } : {},
1193
- ...ee ? { "data-current": "" } : {},
1194
+ ...C ? { "data-selected": "" } : {},
1195
+ ...E ? { "data-current": "" } : {},
1194
1196
  id: f.id ?? p.optionId(d),
1195
- onClick: ne,
1196
- onPointerDown: O,
1197
- onPointerEnter: te,
1197
+ onClick: A,
1198
+ onPointerDown: k,
1199
+ onPointerEnter: ee,
1198
1200
  ref: (e) => {
1199
- g(e), typeof l == "function" ? l(e) : l != null && (l.current = e);
1201
+ h(e), typeof c == "function" ? c(e) : c != null && (c.current = e);
1200
1202
  },
1201
1203
  role: "option",
1202
1204
  children: [
1203
- o === void 0 ? null : /* @__PURE__ */ C("span", {
1205
+ a === void 0 ? null : /* @__PURE__ */ w("span", {
1204
1206
  "data-part": "icon",
1205
1207
  "data-part-icon": "",
1206
- children: o
1208
+ children: a
1207
1209
  }),
1208
- /* @__PURE__ */ C("span", {
1210
+ /* @__PURE__ */ w("span", {
1209
1211
  "data-part": "label",
1210
1212
  "data-part-label": "",
1211
- children: S
1213
+ children: y
1212
1214
  }),
1213
- r === void 0 ? null : /* @__PURE__ */ C("span", {
1215
+ t === void 0 ? null : /* @__PURE__ */ w("span", {
1214
1216
  "data-part": "description",
1215
1217
  "data-part-description": "",
1216
- children: r
1218
+ children: t
1217
1219
  }),
1218
- /* @__PURE__ */ C("span", {
1220
+ /* @__PURE__ */ w("span", {
1219
1221
  "data-part": "indicator",
1220
1222
  "data-part-indicator": "",
1221
- children: /* @__PURE__ */ C(t, { children: /* @__PURE__ */ C(e, { name: "check" }) })
1223
+ children: /* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { name: "check" }) })
1222
1224
  })
1223
1225
  ]
1224
1226
  });
1225
1227
  }
1226
- function ve({ children: e, label: t, ...n }) {
1227
- let r = `${g()}group`, { query: i, value: a } = z(), [o, s] = x(null), [l, u] = x(!1);
1228
- return h(() => {
1228
+ function _e({ children: e, label: t, ...n }) {
1229
+ let r = `${_()}group`, { query: i, value: a } = B(), [o, s] = S(null), [c, u] = S(!1);
1230
+ return g(() => {
1229
1231
  o !== null && u(o.querySelector("[data-part='item']") === null);
1230
1232
  }, [
1231
1233
  o,
1232
1234
  i,
1233
1235
  a
1234
- ]), /* @__PURE__ */ w("div", {
1235
- ...c(n, "part", "group"),
1236
+ ]), /* @__PURE__ */ T("div", {
1237
+ ...l(n, "part", "group"),
1236
1238
  "aria-labelledby": r,
1237
- hidden: l,
1239
+ hidden: c,
1238
1240
  ref: s,
1239
1241
  role: "group",
1240
- children: [/* @__PURE__ */ C("div", {
1242
+ children: [/* @__PURE__ */ w("div", {
1241
1243
  "data-part": "group-label",
1242
1244
  "data-part-group-label": "",
1243
1245
  id: r,
@@ -1245,8 +1247,8 @@ function ve({ children: e, label: t, ...n }) {
1245
1247
  }), e]
1246
1248
  });
1247
1249
  }
1248
- function ye(e) {
1249
- return /* @__PURE__ */ C("div", {
1250
+ function ve(e) {
1251
+ return /* @__PURE__ */ w("div", {
1250
1252
  "data-part": "separator",
1251
1253
  "data-part-separator": "",
1252
1254
  ref: e.ref,
@@ -1254,4 +1256,4 @@ function ye(e) {
1254
1256
  });
1255
1257
  }
1256
1258
  //#endregion
1257
- export { he as a, z as c, I as d, ge as i, P as l, _e as n, pe as o, ye as r, H as s, ve as t, L as u };
1259
+ export { me as a, B as c, L as d, he as i, F as l, ge as n, X as o, ve as r, se as s, _e as t, R as u };