themelia-react-ui 2.0.3 → 2.0.4

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 (421) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/README.md +65 -28
  3. package/dist/{accordion-Cjb6sx0G.js → accordion-96o0pN62.js} +5 -5
  4. package/dist/{accordion-Cjb6sx0G.js.map → accordion-96o0pN62.js.map} +1 -1
  5. package/dist/action-menu-CHgs8vmj.js +281 -0
  6. package/dist/action-menu-CHgs8vmj.js.map +1 -0
  7. package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-B8yGOr8-.js} +7 -1
  8. package/dist/affordance-geometry.generated-B8yGOr8-.js.map +1 -0
  9. package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-BZUGwBq6.js} +277 -276
  10. package/dist/ai-artifact-BZUGwBq6.js.map +1 -0
  11. package/dist/{app-shell-C4FhvCqF.js → app-shell-D63ATkIK.js} +84 -83
  12. package/dist/app-shell-D63ATkIK.js.map +1 -0
  13. package/dist/{attachment-BxDfL2mw.js → attachment-DkoqHPPl.js} +7 -7
  14. package/dist/{attachment-BxDfL2mw.js.map → attachment-DkoqHPPl.js.map} +1 -1
  15. package/dist/{auth-BGua8ouh.js → auth-D2FVZ1MH.js} +10 -10
  16. package/dist/{auth-BGua8ouh.js.map → auth-D2FVZ1MH.js.map} +1 -1
  17. package/dist/{avatar-DAPlDvhJ.js → avatar-DWO_HHhB.js} +5 -5
  18. package/dist/{avatar-DAPlDvhJ.js.map → avatar-DWO_HHhB.js.map} +1 -1
  19. package/dist/{badge-HpFqoqSY.js → badge-DErMA7ul.js} +4 -4
  20. package/dist/{badge-HpFqoqSY.js.map → badge-DErMA7ul.js.map} +1 -1
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/batch-action-bar.js +1 -1
  27. package/dist/base/buttons.js +1 -1
  28. package/dist/base/cards.js +2 -2
  29. package/dist/base/carousel.js +3 -3
  30. package/dist/base/cascader.js +13 -13
  31. package/dist/base/chart.js +1 -1
  32. package/dist/base/choice-inputs.js +2 -2
  33. package/dist/base/code-block.js +1 -1
  34. package/dist/base/combobox.js +1 -1
  35. package/dist/base/command.js +1 -1
  36. package/dist/base/copyable.js +1 -1
  37. package/dist/base/date-pickers.js +2 -2
  38. package/dist/base/display.js +6 -6
  39. package/dist/base/feedback.js +3 -3
  40. package/dist/base/forms-numeric.js +1 -1
  41. package/dist/base/forms.js +3 -3
  42. package/dist/base/inline-edit.js +10 -10
  43. package/dist/base/item.js +1 -1
  44. package/dist/base/media-gallery.js +1 -1
  45. package/dist/base/metadata-list.js +1 -1
  46. package/dist/base/navigation.js +6 -6
  47. package/dist/base/popover-menu.js +1 -1
  48. package/dist/base/popover.js +1 -1
  49. package/dist/base/qr-code.js +1 -1
  50. package/dist/base/repeaters.js +9 -9
  51. package/dist/base/sheet.js +1 -1
  52. package/dist/base/sidebar.js +1 -1
  53. package/dist/base/signature-pad.js +6 -6
  54. package/dist/base/skeleton.js +1 -1
  55. package/dist/base/spinner.js +4 -4
  56. package/dist/base/structure.js +1 -1
  57. package/dist/base/table.js +1 -1
  58. package/dist/base/text-inputs.js +2 -2
  59. package/dist/base/toaster.js +3 -3
  60. package/dist/base/tree.js +1 -1
  61. package/dist/base/upload-queue.js +1 -1
  62. package/dist/base/upload.js +3 -3
  63. package/dist/base/value-inputs.js +1 -1
  64. package/dist/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-CdfIkCsV.js} +4 -4
  65. package/dist/{batch-action-bar-DnUJ21NQ.js.map → batch-action-bar-CdfIkCsV.js.map} +1 -1
  66. package/dist/blocks/admin.js +20 -20
  67. package/dist/blocks/admin.js.map +1 -1
  68. package/dist/blocks/ai.js +15 -15
  69. package/dist/blocks/analytics/usage-card.js +1 -1
  70. package/dist/blocks/analytics.js +17 -17
  71. package/dist/blocks/analytics.js.map +1 -1
  72. package/dist/blocks/collaboration.js +1 -1
  73. package/dist/blocks/commerce/receipt.js +1 -1
  74. package/dist/blocks/commerce.js +570 -567
  75. package/dist/blocks/commerce.js.map +1 -1
  76. package/dist/blocks/data-display.js +2 -2
  77. package/dist/blocks/onboarding.js +5 -5
  78. package/dist/blocks/planning.js +11 -11
  79. package/dist/blocks/timelines.js +1 -1
  80. package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-B-WFKecD.js} +4 -4
  81. package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-B-WFKecD.js.map} +1 -1
  82. package/dist/{button-DVzspB_G.js → button-DkmK-z8E.js} +2 -2
  83. package/dist/{button-DVzspB_G.js.map → button-DkmK-z8E.js.map} +1 -1
  84. package/dist/{buttons-DPZekJFu.js → buttons-BbfzgczK.js} +8 -8
  85. package/dist/{buttons-DPZekJFu.js.map → buttons-BbfzgczK.js.map} +1 -1
  86. package/dist/{cards-BaBZR-AU.js → cards-4JTWqvVe.js} +10 -10
  87. package/dist/cards-4JTWqvVe.js.map +1 -0
  88. package/dist/{chart-ZOYyK2xG.js → chart-C19flDQb.js} +4 -4
  89. package/dist/{chart-ZOYyK2xG.js.map → chart-C19flDQb.js.map} +1 -1
  90. package/dist/{checkbox-AWIhNhmo.js → checkbox-CzYUTPeJ.js} +9 -5
  91. package/dist/checkbox-CzYUTPeJ.js.map +1 -0
  92. package/dist/{choice-inputs-CNHvARCJ.js → choice-inputs-JLtij2y4.js} +182 -176
  93. package/dist/choice-inputs-JLtij2y4.js.map +1 -0
  94. package/dist/{code-block-DeneBJR_.js → code-block-CGNaUtAE.js} +7 -7
  95. package/dist/{code-block-DeneBJR_.js.map → code-block-CGNaUtAE.js.map} +1 -1
  96. package/dist/{collapsible-C-_l4hpy.js → collapsible-Do4G0zcC.js} +3 -3
  97. package/dist/{collapsible-C-_l4hpy.js.map → collapsible-Do4G0zcC.js.map} +1 -1
  98. package/dist/{collection-content-By56pLog.js → collection-content-C0e8SsTm.js} +3 -3
  99. package/dist/{collection-content-By56pLog.js.map → collection-content-C0e8SsTm.js.map} +1 -1
  100. package/dist/{combobox-Dxo2fAYQ.js → combobox-CBJDs6w_.js} +12 -12
  101. package/dist/{combobox-Dxo2fAYQ.js.map → combobox-CBJDs6w_.js.map} +1 -1
  102. package/dist/{combobox-DaHESuiL.js → combobox-hbhSS18O.js} +7 -7
  103. package/dist/{combobox-DaHESuiL.js.map → combobox-hbhSS18O.js.map} +1 -1
  104. package/dist/{command-C25VMRII.js → command-D8NrBj-b.js} +7 -7
  105. package/dist/{command-C25VMRII.js.map → command-D8NrBj-b.js.map} +1 -1
  106. package/dist/{comments-DD0DUPwJ.js → comments-Di4w0H_S.js} +383 -382
  107. package/dist/comments-Di4w0H_S.js.map +1 -0
  108. package/dist/components/base/action-menu/action-menu.d.ts +2 -0
  109. package/dist/components/base/cards/card.recipes.d.ts +12 -5
  110. package/dist/components/base/cards/smart-card.types.d.ts +12 -7
  111. package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
  112. package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
  113. package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
  114. package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
  115. package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
  116. package/dist/components/base/forms/form-field.d.ts +5 -3
  117. package/dist/components/base/forms/index.d.ts +1 -0
  118. package/dist/components/base/forms/server-errors.d.ts +16 -0
  119. package/dist/components/base/forms/workflow.d.ts +5 -2
  120. package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
  121. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -2
  122. package/dist/components/base/structure/composition.recipes.d.ts +17 -0
  123. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
  124. package/dist/components/base/text-inputs/input.d.ts +4 -2
  125. package/dist/components/base/text-inputs/textarea.d.ts +4 -2
  126. package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
  127. package/dist/components/base/value-inputs/slider.d.ts +5 -1
  128. package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
  129. package/dist/components/typography/text.styles.d.ts +26 -1
  130. package/dist/composition.recipes-COdiFhxB.js +19 -0
  131. package/dist/composition.recipes-COdiFhxB.js.map +1 -0
  132. package/dist/containers-CRmHf7GP.js +104 -0
  133. package/dist/containers-CRmHf7GP.js.map +1 -0
  134. package/dist/{copyable-ClBuk_UK.js → copyable-CnGCZdX4.js} +4 -4
  135. package/dist/{copyable-ClBuk_UK.js.map → copyable-CnGCZdX4.js.map} +1 -1
  136. package/dist/{data-display-DT_khPl_.js → data-display-D4oujtx0.js} +239 -238
  137. package/dist/data-display-D4oujtx0.js.map +1 -0
  138. package/dist/{date-DCrsDTZc.js → date-Q7jnXxpk.js} +5 -5
  139. package/dist/{date-DCrsDTZc.js.map → date-Q7jnXxpk.js.map} +1 -1
  140. package/dist/{date-picker-B2K3ucWn.js → date-picker-zOt1oNss.js} +102 -90
  141. package/dist/date-picker-zOt1oNss.js.map +1 -0
  142. package/dist/date-pickers-cj8IXbDC.js +179 -0
  143. package/dist/date-pickers-cj8IXbDC.js.map +1 -0
  144. package/dist/{display-hAc1HjpI.js → display-BB4BL_-K.js} +8 -8
  145. package/dist/{display-hAc1HjpI.js.map → display-BB4BL_-K.js.map} +1 -1
  146. package/dist/{dropdown-menu-Cl4X7L5S.js → dropdown-menu-CjY8Vt7W.js} +8 -8
  147. package/dist/{dropdown-menu-Cl4X7L5S.js.map → dropdown-menu-CjY8Vt7W.js.map} +1 -1
  148. package/dist/features/activities.js +11 -11
  149. package/dist/features/ai-chat.js +9 -9
  150. package/dist/features/appointment-calendar.js +222 -220
  151. package/dist/features/appointment-calendar.js.map +1 -1
  152. package/dist/features/async-preview.js +8 -8
  153. package/dist/features/combobox.js +1 -1
  154. package/dist/features/comments.js +1 -1
  155. package/dist/features/data-view.js +10 -10
  156. package/dist/features/email-composer.js +275 -274
  157. package/dist/features/email-composer.js.map +1 -1
  158. package/dist/features/event-calendar.js +199 -198
  159. package/dist/features/event-calendar.js.map +1 -1
  160. package/dist/features/filters.js +1 -1
  161. package/dist/features/global-search.js +12 -12
  162. package/dist/features/kanban.js +4 -4
  163. package/dist/features/map.js +7 -7
  164. package/dist/features/media-library.js +623 -622
  165. package/dist/features/media-library.js.map +1 -1
  166. package/dist/features/mentions.js +1 -1
  167. package/dist/features/overlays.js +1 -1
  168. package/dist/features/products.js +973 -969
  169. package/dist/features/products.js.map +1 -1
  170. package/dist/features/questionnaire.js +12 -12
  171. package/dist/features/resource-assignment.js +8 -8
  172. package/dist/features/resource.js +113 -112
  173. package/dist/features/resource.js.map +1 -1
  174. package/dist/features/rich-text-editor.js +2 -2
  175. package/dist/features/schema-form.js +254 -253
  176. package/dist/features/schema-form.js.map +1 -1
  177. package/dist/features/suggestions.js +3 -3
  178. package/dist/features/sync.js +3 -3
  179. package/dist/features/table.js +1 -1
  180. package/dist/features/theme-tweaker.js +19 -19
  181. package/dist/features/theme-tweaker.js.map +1 -1
  182. package/dist/{feedback-BYIhtitP.js → feedback-DZNL5Lg1.js} +9 -9
  183. package/dist/{feedback-BYIhtitP.js.map → feedback-DZNL5Lg1.js.map} +1 -1
  184. package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DjwGx8eM.js} +2 -2
  185. package/dist/{field-affordance-recipes-DZhnIL_Y.js.map → field-affordance-recipes-DjwGx8eM.js.map} +1 -1
  186. package/dist/{filters-DJVAveHA.js → filters-BcT-uoFy.js} +19 -19
  187. package/dist/{filters-DJVAveHA.js.map → filters-BcT-uoFy.js.map} +1 -1
  188. package/dist/{form-field-CwH9y77i.js → form-field-CsgRmdit.js} +14 -8
  189. package/dist/form-field-CsgRmdit.js.map +1 -0
  190. package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-NXgjkmBG.js} +3 -3
  191. package/dist/{form-sizing-BdP_Mf5p.js.map → form-sizing-NXgjkmBG.js.map} +1 -1
  192. package/dist/{forms-B9G_xwzi.js → forms-BV5m5aQF.js} +83 -65
  193. package/dist/forms-BV5m5aQF.js.map +1 -0
  194. package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-Cd33AKbD.js} +288 -288
  195. package/dist/forms-numeric-Cd33AKbD.js.map +1 -0
  196. package/dist/{header-BSfIEWbI.js → header-BA697l4a.js} +14 -14
  197. package/dist/{header-BSfIEWbI.js.map → header-BA697l4a.js.map} +1 -1
  198. package/dist/hooks/useFormErrors.d.ts +1 -1
  199. package/dist/{hooks-ClH9thn4.js → hooks-BQ-L7Uu2.js} +2 -2
  200. package/dist/{hooks-ClH9thn4.js.map → hooks-BQ-L7Uu2.js.map} +1 -1
  201. package/dist/{icon-badge-DYKIwvOV.js → icon-badge-COWbCCWu.js} +3 -3
  202. package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-COWbCCWu.js.map} +1 -1
  203. package/dist/index.js +2 -2
  204. package/dist/input-Cdw4k0fb.js +289 -0
  205. package/dist/input-Cdw4k0fb.js.map +1 -0
  206. package/dist/{input-CZw8iU99.js → input-DOPL5_QE.js} +3 -3
  207. package/dist/{input-CZw8iU99.js.map → input-DOPL5_QE.js.map} +1 -1
  208. package/dist/item-BvZ2DR_x.js +277 -0
  209. package/dist/item-BvZ2DR_x.js.map +1 -0
  210. package/dist/layout/app-shell.js +1 -1
  211. package/dist/layout/auth.js +1 -1
  212. package/dist/layout/containers.js +1 -1
  213. package/dist/layout/header.js +1 -1
  214. package/dist/layout/hooks.js +1 -1
  215. package/dist/layout/navigation.js +1 -1
  216. package/dist/layout/page.js +1 -1
  217. package/dist/layout/settings.js +1 -1
  218. package/dist/layout/sidebar.js +2 -2
  219. package/dist/layout/workspace.js +1 -1
  220. package/dist/layout.js +10 -10
  221. package/dist/lib/affordance-geometry.generated.d.ts +6 -0
  222. package/dist/lib/ui-provider/types.d.ts +1 -1
  223. package/dist/lib/utils.js +1 -1
  224. package/dist/{media-gallery-3zIVLMWH.js → media-gallery-CSl5W1Fy.js} +6 -6
  225. package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-CSl5W1Fy.js.map} +1 -1
  226. package/dist/{mentions-CGlEJ15c.js → mentions-RKOQaaIB.js} +8 -8
  227. package/dist/{mentions-CGlEJ15c.js.map → mentions-RKOQaaIB.js.map} +1 -1
  228. package/dist/{message-DZ_ruyUV.js → message-INU2xsxu.js} +4 -4
  229. package/dist/{message-DZ_ruyUV.js.map → message-INU2xsxu.js.map} +1 -1
  230. package/dist/metadata-list-qVV7AVxa.js +443 -0
  231. package/dist/metadata-list-qVV7AVxa.js.map +1 -0
  232. package/dist/{navigation-BzhHI3lo.js → navigation-BQNcg1jT.js} +8 -8
  233. package/dist/{navigation-BzhHI3lo.js.map → navigation-BQNcg1jT.js.map} +1 -1
  234. package/dist/{navigation-Bnotn4AQ.js → navigation-DLF3E1IC.js} +7 -7
  235. package/dist/{navigation-Bnotn4AQ.js.map → navigation-DLF3E1IC.js.map} +1 -1
  236. package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-WZEs-hYo.js} +2 -2
  237. package/dist/{navigation-row-recipes-BFLCk_Aq.js.map → navigation-row-recipes-WZEs-hYo.js.map} +1 -1
  238. package/dist/{number-DbV1Dija.js → number-E_OiIfJz.js} +5 -5
  239. package/dist/{number-DbV1Dija.js.map → number-E_OiIfJz.js.map} +1 -1
  240. package/dist/{overflow-tab-bar-CWY7Nogn.js → overflow-tab-bar-CrbqMteP.js} +107 -105
  241. package/dist/overflow-tab-bar-CrbqMteP.js.map +1 -0
  242. package/dist/{overlays-tMkF-VAN.js → overlays-BlKynmde.js} +228 -227
  243. package/dist/overlays-BlKynmde.js.map +1 -0
  244. package/dist/page-CIwNUtGr.js +227 -0
  245. package/dist/page-CIwNUtGr.js.map +1 -0
  246. package/dist/page-header-commands-DFMlNYzN.js +128 -0
  247. package/dist/page-header-commands-DFMlNYzN.js.map +1 -0
  248. package/dist/{pagination-BL25hu2s.js → pagination-Ch8X_47u.js} +5 -5
  249. package/dist/{pagination-BL25hu2s.js.map → pagination-Ch8X_47u.js.map} +1 -1
  250. package/dist/{popover-menu-Cn9rUkdc.js → popover-menu-BYaCdFhf.js} +6 -6
  251. package/dist/{popover-menu-Cn9rUkdc.js.map → popover-menu-BYaCdFhf.js.map} +1 -1
  252. package/dist/{popover-gnTOhbFM.js → popover-uwzX2vo7.js} +4 -4
  253. package/dist/{popover-gnTOhbFM.js.map → popover-uwzX2vo7.js.map} +1 -1
  254. package/dist/{primitives-BFK08r9M.js → primitives-Du64iDbb.js} +6 -6
  255. package/dist/{primitives-BFK08r9M.js.map → primitives-Du64iDbb.js.map} +1 -1
  256. package/dist/primitives.js +4 -4
  257. package/dist/{progress-B1VnCT0K.js → progress-BvF2oCdV.js} +5 -5
  258. package/dist/{progress-B1VnCT0K.js.map → progress-BvF2oCdV.js.map} +1 -1
  259. package/dist/{receipt-BVSOH3Xo.js → receipt-D789Jwyy.js} +6 -6
  260. package/dist/{receipt-BVSOH3Xo.js.map → receipt-D789Jwyy.js.map} +1 -1
  261. package/dist/{rich-text-GOUyKQ-s.js → rich-text-CLJEf76s.js} +4 -4
  262. package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-CLJEf76s.js.map} +1 -1
  263. package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-Cm1dpUpQ.js} +10 -10
  264. package/dist/{rich-text-editor-cRLC-eBK.js.map → rich-text-editor-Cm1dpUpQ.js.map} +1 -1
  265. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-L__e4x47.js} +4 -4
  266. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js.map → rich-text-editor-toolbar-L__e4x47.js.map} +1 -1
  267. package/dist/{scroll-area-DcI-M1UT.js → scroll-area-La5RXsEk.js} +2 -2
  268. package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-La5RXsEk.js.map} +1 -1
  269. package/dist/{separator-Bom7NsGO.js → separator-DAEV0w65.js} +2 -2
  270. package/dist/{separator-Bom7NsGO.js.map → separator-DAEV0w65.js.map} +1 -1
  271. package/dist/{separator-BDV-Y648.js → separator-GNfPG-90.js} +3 -3
  272. package/dist/{separator-BDV-Y648.js.map → separator-GNfPG-90.js.map} +1 -1
  273. package/dist/services/actions.js +1 -1
  274. package/dist/settings-BA2iboic.js +174 -0
  275. package/dist/settings-BA2iboic.js.map +1 -0
  276. package/dist/{sheet-ijlsjq-n.js → sheet-DoAxTb2J.js} +7 -7
  277. package/dist/{sheet-ijlsjq-n.js.map → sheet-DoAxTb2J.js.map} +1 -1
  278. package/dist/{sidebar-DkTO4VTO.js → sidebar-ByqKR_W5.js} +13 -13
  279. package/dist/{sidebar-DkTO4VTO.js.map → sidebar-ByqKR_W5.js.map} +1 -1
  280. package/dist/{sidebar-Db6gkh3U.js → sidebar-D2iSnGJ7.js} +11 -11
  281. package/dist/{sidebar-Db6gkh3U.js.map → sidebar-D2iSnGJ7.js.map} +1 -1
  282. package/dist/{skeleton-Byjnt7qr.js → skeleton-CUj8O5Bd.js} +3 -3
  283. package/dist/{skeleton-Byjnt7qr.js.map → skeleton-CUj8O5Bd.js.map} +1 -1
  284. package/dist/smart-card-CqkzQsK-.js +614 -0
  285. package/dist/smart-card-CqkzQsK-.js.map +1 -0
  286. package/dist/{structure-BmisBK-3.js → structure-C0V0_Fyf.js} +3 -3
  287. package/dist/{structure-BmisBK-3.js.map → structure-C0V0_Fyf.js.map} +1 -1
  288. package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
  289. package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
  290. package/dist/style.css +1 -1
  291. package/dist/{table-DsfzoUia.js → table-CpvnzJn9.js} +3 -3
  292. package/dist/{table-DsfzoUia.js.map → table-CpvnzJn9.js.map} +1 -1
  293. package/dist/{table-BweFy_P9.js → table-DH7rozUv.js} +19 -19
  294. package/dist/{table-BweFy_P9.js.map → table-DH7rozUv.js.map} +1 -1
  295. package/dist/{tabs-CDocW5D1.js → tabs-eqVsJZWO.js} +7 -7
  296. package/dist/{tabs-CDocW5D1.js.map → tabs-eqVsJZWO.js.map} +1 -1
  297. package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-DXItiR0O.js} +101 -98
  298. package/dist/text-inputs-DXItiR0O.js.map +1 -0
  299. package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
  300. package/dist/text.styles-B64My8RZ.js.map +1 -0
  301. package/dist/theme.css +152 -112
  302. package/dist/{timelines-CwM_9IhD.js → timelines-DmtztAY_.js} +10 -10
  303. package/dist/{timelines-CwM_9IhD.js.map → timelines-DmtztAY_.js.map} +1 -1
  304. package/dist/{tooltip-yiRJUFjp.js → tooltip-B4hjKtoV.js} +3 -3
  305. package/dist/{tooltip-yiRJUFjp.js.map → tooltip-B4hjKtoV.js.map} +1 -1
  306. package/dist/{tree-WnKQzwbq.js → tree-CV11PURP.js} +8 -8
  307. package/dist/{tree-WnKQzwbq.js.map → tree-CV11PURP.js.map} +1 -1
  308. package/dist/typography/rich-text.js +1 -1
  309. package/dist/typography-CSyJrh28.js +117 -0
  310. package/dist/typography-CSyJrh28.js.map +1 -0
  311. package/dist/typography.js +1 -1
  312. package/dist/{ui-provider-C_U0Xma4.js → ui-provider-CQCuCBcy.js} +3 -3
  313. package/dist/ui-provider-CQCuCBcy.js.map +1 -0
  314. package/dist/ui-provider.js +1 -1
  315. package/dist/{upload-CXyxmQBP.js → upload-C9SA0X-8.js} +11 -11
  316. package/dist/{upload-CXyxmQBP.js.map → upload-C9SA0X-8.js.map} +1 -1
  317. package/dist/{upload-queue-Boscubn9.js → upload-queue-DhQJiSRc.js} +9 -9
  318. package/dist/{upload-queue-Boscubn9.js.map → upload-queue-DhQJiSRc.js.map} +1 -1
  319. package/dist/{usage-card-BhO5eqkX.js → usage-card-DVTRDmGz.js} +134 -133
  320. package/dist/usage-card-DVTRDmGz.js.map +1 -0
  321. package/dist/{utils-BRhFDwuU.js → utils-CF3c95Io.js} +68 -5
  322. package/dist/utils-CF3c95Io.js.map +1 -0
  323. package/dist/value-inputs-C0o70p-U.js +980 -0
  324. package/dist/value-inputs-C0o70p-U.js.map +1 -0
  325. package/dist/{value-typography-BP8OG6h5.js → value-typography-ClupF0Gz.js} +2 -2
  326. package/dist/{value-typography-BP8OG6h5.js.map → value-typography-ClupF0Gz.js.map} +1 -1
  327. package/dist/workspace-9EFVXUyk.js +410 -0
  328. package/dist/workspace-9EFVXUyk.js.map +1 -0
  329. package/docs/consumer-skill/SKILL.md +14 -129
  330. package/docs/consumer-skill/examples/app-layout.tsx +22 -12
  331. package/docs/consumer-skill/examples/authentication.tsx +77 -0
  332. package/docs/consumer-skill/examples/edit.tsx +30 -38
  333. package/docs/consumer-skill/examples/manifest.json +51 -1
  334. package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
  335. package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
  336. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +92 -0
  337. package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
  338. package/docs/consumer-skill/references/agents-md.md +17 -7
  339. package/docs/consumer-skill/references/authentication.md +42 -0
  340. package/docs/consumer-skill/references/component-contracts.json +319824 -0
  341. package/docs/consumer-skill/references/composition-mapping.md +92 -0
  342. package/docs/consumer-skill/references/composition.md +43 -19
  343. package/docs/consumer-skill/references/design-contract.md +32 -0
  344. package/docs/consumer-skill/references/discovery.md +84 -7
  345. package/docs/consumer-skill/references/installation.md +40 -36
  346. package/docs/consumer-skill/references/integration.md +6 -2
  347. package/docs/consumer-skill/references/public-api.json +1519 -65
  348. package/docs/consumer-skill/references/review.md +9 -4
  349. package/docs/consumer-skill/references/rhf-workflows.md +86 -0
  350. package/docs/consumer-skill/references/screen-archetypes.md +22 -0
  351. package/docs/consumer-skill/references/theming.md +8 -9
  352. package/docs/consumer-skill/references/tokens.json +12 -3
  353. package/docs/consumer-skill/references/workflows.md +2 -1
  354. package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
  355. package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
  356. package/docs/consumer-skill/scripts/composition.mjs +198 -0
  357. package/docs/consumer-skill/scripts/discovery.mjs +42 -10
  358. package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
  359. package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
  360. package/docs/consumer-skill/scripts/inspection.mjs +138 -0
  361. package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
  362. package/docs/consumer-skill/scripts/setup-skills.mjs +76 -0
  363. package/docs/consumer-skills/themelia-components/SKILL.md +30 -0
  364. package/docs/consumer-skills/themelia-composition/SKILL.md +35 -0
  365. package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
  366. package/docs/consumer-skills/themelia-foundation/SKILL.md +14 -0
  367. package/docs/consumer-skills/themelia-tokenization/SKILL.md +35 -0
  368. package/package.json +4 -2
  369. package/templates/README.md +39 -0
  370. package/templates/admin-shell-template.tsx +382 -0
  371. package/templates/analytics-operations-template.tsx +376 -0
  372. package/templates/customers-template.tsx +509 -0
  373. package/templates/index.ts +29 -0
  374. package/templates/orders-template.tsx +1102 -0
  375. package/templates/products-template.tsx +834 -0
  376. package/templates/user-permissions-template.tsx +450 -0
  377. package/dist/action-menu-CllU52Mm.js +0 -280
  378. package/dist/action-menu-CllU52Mm.js.map +0 -1
  379. package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
  380. package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
  381. package/dist/app-shell-C4FhvCqF.js.map +0 -1
  382. package/dist/cards-BaBZR-AU.js.map +0 -1
  383. package/dist/checkbox-AWIhNhmo.js.map +0 -1
  384. package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
  385. package/dist/comments-DD0DUPwJ.js.map +0 -1
  386. package/dist/containers-Mu1LMGV1.js +0 -103
  387. package/dist/containers-Mu1LMGV1.js.map +0 -1
  388. package/dist/data-display-DT_khPl_.js.map +0 -1
  389. package/dist/date-picker-B2K3ucWn.js.map +0 -1
  390. package/dist/date-pickers-Ds8gLaoP.js +0 -175
  391. package/dist/date-pickers-Ds8gLaoP.js.map +0 -1
  392. package/dist/form-field-CwH9y77i.js.map +0 -1
  393. package/dist/forms-B9G_xwzi.js.map +0 -1
  394. package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
  395. package/dist/input-DQdEd0YD.js +0 -263
  396. package/dist/input-DQdEd0YD.js.map +0 -1
  397. package/dist/item-K5_ghvze.js +0 -275
  398. package/dist/item-K5_ghvze.js.map +0 -1
  399. package/dist/metadata-list-8N16ZMW_.js +0 -405
  400. package/dist/metadata-list-8N16ZMW_.js.map +0 -1
  401. package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
  402. package/dist/overlays-tMkF-VAN.js.map +0 -1
  403. package/dist/page-CL9YeH_V.js +0 -224
  404. package/dist/page-CL9YeH_V.js.map +0 -1
  405. package/dist/page-header-commands-DOb6WsfD.js +0 -126
  406. package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
  407. package/dist/settings-ybnjVwbd.js +0 -171
  408. package/dist/settings-ybnjVwbd.js.map +0 -1
  409. package/dist/smart-card-DiC5aac3.js +0 -604
  410. package/dist/smart-card-DiC5aac3.js.map +0 -1
  411. package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
  412. package/dist/text.styles-g4He6UIW.js.map +0 -1
  413. package/dist/typography-UTnveOEy.js +0 -117
  414. package/dist/typography-UTnveOEy.js.map +0 -1
  415. package/dist/ui-provider-C_U0Xma4.js.map +0 -1
  416. package/dist/usage-card-BhO5eqkX.js.map +0 -1
  417. package/dist/utils-BRhFDwuU.js.map +0 -1
  418. package/dist/value-inputs-TaX4OjNk.js +0 -963
  419. package/dist/value-inputs-TaX4OjNk.js.map +0 -1
  420. package/dist/workspace-B-OEm3Kf.js +0 -408
  421. package/dist/workspace-B-OEm3Kf.js.map +0 -1
@@ -1,34 +1,35 @@
1
1
  "use client";
2
- import { s as e, v as t } from "../ui-provider-C_U0Xma4.js";
2
+ import { s as e, v as t } from "../ui-provider-CQCuCBcy.js";
3
3
  import { useStrings as n } from "../lib/strings.js";
4
- import { t as r } from "../utils-BRhFDwuU.js";
5
- import { n as i } from "../buttons-DPZekJFu.js";
6
- import { c as a, o } from "../typography-UTnveOEy.js";
4
+ import { t as r } from "../utils-CF3c95Io.js";
5
+ import { n as i } from "../buttons-BbfzgczK.js";
6
+ import { c as a, o } from "../typography-CSyJrh28.js";
7
7
  import { t as s } from "../focus-recipes-B653VaLq.js";
8
- import { r as c, t as l } from "../structure-BmisBK-3.js";
9
- import { i as u } from "../smart-card-DiC5aac3.js";
10
- import { n as d, t as f } from "../feedback-BYIhtitP.js";
11
- import { t as p } from "../progress-B1VnCT0K.js";
12
- import { r as m } from "../overlays-tMkF-VAN.js";
13
- import { t as h } from "../interaction-recipes-XR9ZpVYL.js";
14
- import { a as g, i as _, t as v } from "../primitives-BFK08r9M.js";
15
- import { n as y, t as b } from "../number-DbV1Dija.js";
16
- import { t as x } from "../badge-HpFqoqSY.js";
17
- import { t as S } from "../batch-action-bar-DnUJ21NQ.js";
18
- import { t as C } from "../input-DQdEd0YD.js";
19
- import { t as w } from "../form-field-CwH9y77i.js";
20
- import { c as T, l as E } from "../choice-inputs-CNHvARCJ.js";
21
- import { r as D, t as O } from "../control-group-recipes-DBXmfh2E.js";
22
- import { t as k } from "../upload.recipes-BbxTqrCT.js";
23
- import { t as A } from "../metadata-list-8N16ZMW_.js";
24
- import { a as ee } from "../upload-queue-Boscubn9.js";
25
- import { s as te } from "../data-display-DT_khPl_.js";
26
- import { createContext as j, useCallback as M, useContext as ne, useEffect as re, useMemo as N, useRef as ie, useState as P } from "react";
27
- import { Fragment as F, jsx as I, jsxs as L } from "react/jsx-runtime";
28
- import { ArrowLeft as ae, ArrowRight as oe, Check as R, File as z, Grid2X2 as se, ImageIcon as ce, ImagePlus as B, Info as le, Layers3 as V, LayoutList as ue, Lock as de, Play as fe, Plus as pe, Search as me, Star as he, Trash2 as ge, UploadCloud as _e, Video as ve, X as ye } from "lucide-react";
29
- import { createPortal as be } from "react-dom";
8
+ import { r as c, t as l } from "../structure-C0V0_Fyf.js";
9
+ import { i as u } from "../smart-card-CqkzQsK-.js";
10
+ import { n as d, t as f } from "../feedback-DZNL5Lg1.js";
11
+ import { t as p } from "../progress-BvF2oCdV.js";
12
+ import { n as m, t as h } from "../composition.recipes-COdiFhxB.js";
13
+ import { r as g } from "../overlays-BlKynmde.js";
14
+ import { t as _ } from "../interaction-recipes-XR9ZpVYL.js";
15
+ import { a as v, i as y, t as b } from "../primitives-Du64iDbb.js";
16
+ import { n as x, t as S } from "../number-E_OiIfJz.js";
17
+ import { t as C } from "../badge-DErMA7ul.js";
18
+ import { t as ee } from "../batch-action-bar-CdfIkCsV.js";
19
+ import { t as w } from "../input-Cdw4k0fb.js";
20
+ import { t as T } from "../form-field-CsgRmdit.js";
21
+ import { c as E, l as D } from "../choice-inputs-JLtij2y4.js";
22
+ import { r as O, t as k } from "../control-group-recipes-DBXmfh2E.js";
23
+ import { t as te } from "../upload.recipes-BbxTqrCT.js";
24
+ import { t as ne } from "../metadata-list-qVV7AVxa.js";
25
+ import { a as A } from "../upload-queue-DhQJiSRc.js";
26
+ import { s as re } from "../data-display-D4oujtx0.js";
27
+ import { createContext as j, useCallback as M, useContext as ie, useEffect as ae, useMemo as N, useRef as oe, useState as P } from "react";
28
+ import { Fragment as se, jsx as F, jsxs as I } from "react/jsx-runtime";
29
+ import { ArrowLeft as L, ArrowRight as ce, Check as R, File as z, Grid2X2 as B, ImageIcon as le, ImagePlus as ue, Info as de, Layers3 as fe, LayoutList as pe, Lock as me, Play as he, Plus as ge, Search as _e, Star as ve, Trash2 as ye, UploadCloud as be, Video as xe, X as Se } from "lucide-react";
30
+ import { createPortal as V } from "react-dom";
30
31
  //#region src/components/features/media-library/media-library.strings.ts
31
- var xe = {
32
+ var Ce = {
32
33
  title: "Add media",
33
34
  description: "Pick from the library, or upload new files.",
34
35
  close: "Close media library",
@@ -156,11 +157,11 @@ function H(e, t) {
156
157
  }
157
158
  //#endregion
158
159
  //#region src/components/features/media-library/hooks/use-media-library.ts
159
- var Se = {
160
+ var we = {
160
161
  collection: void 0,
161
162
  tags: [],
162
163
  public: !0
163
- }, Ce = [];
164
+ }, Te = [];
164
165
  function U(e, t, n) {
165
166
  let [r, i] = P(t), a = e ?? r;
166
167
  return [a, M((t) => {
@@ -172,7 +173,7 @@ function U(e, t, n) {
172
173
  a
173
174
  ])];
174
175
  }
175
- var we = {
176
+ var Ee = {
176
177
  getId: (e) => e.id,
177
178
  getName: (e) => e.name,
178
179
  getType: (e) => e.type,
@@ -190,47 +191,47 @@ var we = {
190
191
  getTint: (e) => e.tint,
191
192
  getMimeType: (e) => e.mimeType
192
193
  };
193
- function Te(e) {
194
+ function De(e) {
194
195
  return {
195
- ...we,
196
+ ...Ee,
196
197
  ...e
197
198
  };
198
199
  }
199
- function Ee(e) {
200
- return g(e) ?? "";
200
+ function Oe(e) {
201
+ return v(e) ?? "";
201
202
  }
202
- function De(e, t) {
203
+ function ke(e, t) {
203
204
  let n = t.getWidth(e), r = t.getHeight(e);
204
205
  return !n || !r ? "" : `${n} x ${r}`;
205
206
  }
206
- function Oe(e, t) {
207
+ function Ae(e, t) {
207
208
  let n = t.getUploadedAt(e);
208
209
  if (!n) return 0;
209
210
  let r = (n instanceof Date ? n : new Date(n)).getTime();
210
211
  return Number.isFinite(r) ? r : 0;
211
212
  }
212
- function ke(e) {
213
+ function je(e) {
213
214
  return e.type.startsWith("image/") ? "image" : e.type.startsWith("video/") ? "video" : "file";
214
215
  }
215
- function Ae(e) {
216
+ function Me(e) {
216
217
  if (e.type.startsWith("image/") && typeof URL < "u" && typeof URL.createObjectURL == "function") return URL.createObjectURL(e);
217
218
  }
218
- function je(e) {
219
+ function Ne(e) {
219
220
  e && typeof URL < "u" && typeof URL.revokeObjectURL == "function" && URL.revokeObjectURL(e);
220
221
  }
221
- function Me(e) {
222
+ function Pe(e) {
222
223
  return Array.isArray(e) ? {
223
224
  items: e,
224
225
  total: e.length
225
226
  } : e;
226
227
  }
227
- function Ne(e, t) {
228
+ function Fe(e, t) {
228
229
  return t && typeof e == "object" && e ? {
229
230
  ...e,
230
231
  ...t
231
232
  } : e;
232
233
  }
233
- function Pe(e, t, n, r, i) {
234
+ function Ie(e, t, n, r, i) {
234
235
  let a = n.trim().toLowerCase();
235
236
  return e.filter((e) => r !== "all" && t.getType(e) !== r || i !== "all" && t.getCollection(e) !== i ? !1 : !a || [
236
237
  t.getName(e),
@@ -239,119 +240,119 @@ function Pe(e, t, n, r, i) {
239
240
  ...t.getTags(e)
240
241
  ].filter(Boolean).join(" ").toLowerCase().includes(a));
241
242
  }
242
- function Fe(e, t, n) {
243
+ function Le(e, t, n) {
243
244
  let r = e.slice();
244
- return n === "name" ? r.sort((e, n) => t.getName(e).localeCompare(t.getName(n))) : n === "size" ? r.sort((e, n) => (t.getSize(n) ?? 0) - (t.getSize(e) ?? 0)) : n === "usage" ? r.sort((e, n) => (t.getUsageCount(n) ?? 0) - (t.getUsageCount(e) ?? 0)) : r.sort((e, n) => Oe(n, t) - Oe(e, t)), r;
245
+ return n === "name" ? r.sort((e, n) => t.getName(e).localeCompare(t.getName(n))) : n === "size" ? r.sort((e, n) => (t.getSize(n) ?? 0) - (t.getSize(e) ?? 0)) : n === "usage" ? r.sort((e, n) => (t.getUsageCount(n) ?? 0) - (t.getUsageCount(e) ?? 0)) : r.sort((e, n) => Ae(n, t) - Ae(e, t)), r;
245
246
  }
246
- function Ie({ items: e = Ce, fetcher: t, accessors: n, selectionMode: r = "multiple", value: i, defaultValue: a = [], onValueChange: o, onItemUpdate: s, onItemDelete: c, onUpload: l, onError: u, tab: d, defaultTab: f = "library", onTabChange: p, view: m, defaultView: h = "grid", onViewChange: g, query: _, defaultQuery: v = "", onQueryChange: y, type: b, defaultType: x = "all", onTypeChange: S, collection: C, defaultCollection: w = "all", onCollectionChange: T, sort: E, defaultSort: D = "newest", onSortChange: O, uploadOptions: k, defaultUploadOptions: A, onUploadOptionsChange: ee, selecting: te, defaultSelecting: j = !1, onSelectingChange: ne } = {}) {
247
- let F = N(() => Te(n), [n]), [I, L] = U(d, f, p), [ae, oe] = U(m, h, g), [R, z] = U(_, v, y), [se, ce] = U(b, x, S), [B, le] = U(C, w, T), [V, ue] = U(E, D, O), [de, fe] = P(null), [pe, me] = P(() => [...a]), [he, ge] = P([]), [_e, ve] = P(), [ye, be] = P(!1), [xe, H] = P(null), [we, Ee] = P([]), [De, Oe] = P(() => /* @__PURE__ */ new Set()), [Ie, Le] = P({}), [Re, W] = P([]), [ze, Be] = P(!1), Ve = N(() => ({
248
- ...Se,
249
- ...A,
250
- tags: A?.tags ?? Se.tags
251
- }), [A]), [G, K] = U(N(() => k ? {
252
- ...Se,
247
+ function Re({ items: e = Te, fetcher: t, accessors: n, selectionMode: r = "multiple", value: i, defaultValue: a = [], onValueChange: o, onItemUpdate: s, onItemDelete: c, onUpload: l, onError: u, tab: d, defaultTab: f = "library", onTabChange: p, view: m, defaultView: h = "grid", onViewChange: g, query: _, defaultQuery: v = "", onQueryChange: y, type: b, defaultType: x = "all", onTypeChange: S, collection: C, defaultCollection: ee = "all", onCollectionChange: w, sort: T, defaultSort: E = "newest", onSortChange: D, uploadOptions: O, defaultUploadOptions: k, onUploadOptionsChange: te, selecting: ne, defaultSelecting: A = !1, onSelectingChange: re } = {}) {
248
+ let j = N(() => De(n), [n]), [ie, se] = U(d, f, p), [F, I] = U(m, h, g), [L, ce] = U(_, v, y), [R, z] = U(b, x, S), [B, le] = U(C, ee, w), [ue, de] = U(T, E, D), [fe, pe] = P(null), [me, he] = P(() => [...a]), [ge, _e] = P([]), [ve, ye] = P(), [be, xe] = P(!1), [Se, V] = P(null), [Ce, H] = P([]), [Ee, Oe] = P(() => /* @__PURE__ */ new Set()), [ke, Ae] = P({}), [Re, W] = P([]), [ze, Be] = P(!1), Ve = N(() => ({
249
+ ...we,
253
250
  ...k,
254
- tags: k.tags ?? Se.tags
255
- } : void 0, [k]), Ve, ee), He = i !== void 0, q = N(() => He ? [...i ?? []] : pe, [
256
- pe,
257
- He,
251
+ tags: k?.tags ?? we.tags
252
+ }), [k]), [G, K] = U(N(() => O ? {
253
+ ...we,
254
+ ...O,
255
+ tags: O.tags ?? we.tags
256
+ } : void 0, [O]), Ve, te), q = i !== void 0, J = N(() => q ? [...i ?? []] : me, [
257
+ me,
258
+ q,
258
259
  i
259
- ]), J = N(() => new Set(q), [q]), Ue = ie(/* @__PURE__ */ new Set()), Y = ie(null), X = ie(/* @__PURE__ */ new Map());
260
- re(() => {
260
+ ]), Y = N(() => new Set(J), [J]), He = oe(/* @__PURE__ */ new Set()), X = oe(null), Z = oe(/* @__PURE__ */ new Map());
261
+ ae(() => {
261
262
  if (!t) return;
262
263
  let e = new AbortController();
263
- return be(!0), H(null), t({
264
- query: R,
265
- type: se,
264
+ return xe(!0), V(null), t({
265
+ query: L,
266
+ type: R,
266
267
  collection: B === "all" ? void 0 : B,
267
- sort: V,
268
+ sort: ue,
268
269
  signal: e.signal
269
270
  }).then((t) => {
270
271
  if (e.signal.aborted) return;
271
- let n = Me(t);
272
- ge(n.items), ve(n.total);
272
+ let n = Pe(t);
273
+ _e(n.items), ye(n.total);
273
274
  }).catch((t) => {
274
- e.signal.aborted || (H(t), u?.(t));
275
+ e.signal.aborted || (V(t), u?.(t));
275
276
  }).finally(() => {
276
- e.signal.aborted || be(!1);
277
+ e.signal.aborted || xe(!1);
277
278
  }), () => e.abort();
278
279
  }, [
279
280
  B,
280
281
  t,
281
282
  u,
282
- R,
283
- V,
284
- se
285
- ]), re(() => {
286
- let e = Ue.current;
283
+ L,
284
+ ue,
285
+ R
286
+ ]), ae(() => {
287
+ let e = He.current;
287
288
  return () => {
288
- Y.current?.abort();
289
- for (let t of e) je(t);
289
+ X.current?.abort();
290
+ for (let t of e) Ne(t);
290
291
  e.clear();
291
292
  };
292
293
  }, []);
293
- let We = N(() => t ? he : [...we, ...e], [
294
- we,
295
- he,
294
+ let Ue = N(() => t ? ge : [...Ce, ...e], [
295
+ Ce,
296
+ ge,
296
297
  t,
297
298
  e
298
- ]), Z = N(() => We.filter((e) => !De.has(F.getId(e))).map((e) => Ne(e, Ie[F.getId(e)])), [
299
- F,
300
- Ie,
301
- De,
302
- We
303
- ]), Ge = N(() => {
304
- let e = t ? Z : Pe(Z, F, R, se, B);
305
- return t ? e : Fe(e, F, V);
299
+ ]), Q = N(() => Ue.filter((e) => !Ee.has(j.getId(e))).map((e) => Fe(e, ke[j.getId(e)])), [
300
+ j,
301
+ ke,
302
+ Ee,
303
+ Ue
304
+ ]), We = N(() => {
305
+ let e = t ? Q : Ie(Q, j, L, R, B);
306
+ return t ? e : Le(e, j, ue);
306
307
  }, [
307
- F,
308
+ j,
308
309
  B,
309
310
  t,
310
- Z,
311
- R,
312
- V,
313
- se
314
- ]), Ke = _e ?? Z.length, qe = Ge.length, Je = N(() => Z.filter((e) => J.has(F.getId(e))), [
315
- F,
316
- Z,
317
- J
318
- ]), Q = !!R.trim() || se !== "all" || B !== "all", $ = M((e) => {
319
- He || me(e);
320
- let t = new Set(e), n = Z.filter((e) => t.has(F.getId(e)));
311
+ Q,
312
+ L,
313
+ ue,
314
+ R
315
+ ]), Ge = ve ?? Q.length, Ke = We.length, qe = N(() => Q.filter((e) => Y.has(j.getId(e))), [
316
+ j,
317
+ Q,
318
+ Y
319
+ ]), Je = !!L.trim() || R !== "all" || B !== "all", $ = M((e) => {
320
+ q || he(e);
321
+ let t = new Set(e), n = Q.filter((e) => t.has(j.getId(e)));
321
322
  o?.(e, n);
322
323
  }, [
323
- F,
324
- He,
324
+ j,
325
+ q,
325
326
  o,
326
- Z
327
+ Q
327
328
  ]), Ye = M((e) => {
328
- let t = new Set(r === "single" ? [] : J);
329
- J.has(e) && r !== "single" ? t.delete(e) : t.add(e), $(Array.from(t));
329
+ let t = new Set(r === "single" ? [] : Y);
330
+ Y.has(e) && r !== "single" ? t.delete(e) : t.add(e), $(Array.from(t));
330
331
  }, [
331
332
  $,
332
- J,
333
+ Y,
333
334
  r
334
- ]), Xe = M(() => $([]), [$]), [Ze, Qe] = U(te, j, ne), $e = Ze || q.length > 0, et = M((e) => {
335
- Qe(e), !e && q.length > 0 && $([]);
335
+ ]), Xe = M(() => $([]), [$]), [Ze, Qe] = U(ne, A, re), $e = Ze || J.length > 0, et = M((e) => {
336
+ Qe(e), !e && J.length > 0 && $([]);
336
337
  }, [
337
338
  $,
338
- q.length,
339
+ J.length,
339
340
  Qe
340
341
  ]), tt = M(() => {
341
- z(""), ce("all"), le("all");
342
+ ce(""), z("all"), le("all");
342
343
  }, [
343
344
  le,
344
- z,
345
- ce
345
+ ce,
346
+ z
346
347
  ]), nt = M((e) => {
347
348
  W((t) => [...t, ...e.map((e, t) => {
348
- let n = Ae(e);
349
- return n && Ue.current.add(n), {
349
+ let n = Me(e);
350
+ return n && He.current.add(n), {
350
351
  id: `staged-${Date.now()}-${t}`,
351
352
  file: e,
352
353
  name: e.name,
353
354
  size: e.size,
354
- type: ke(e),
355
+ type: je(e),
355
356
  src: n,
356
357
  progress: 0,
357
358
  status: "staged"
@@ -360,11 +361,11 @@ function Ie({ items: e = Ce, fetcher: t, accessors: n, selectionMode: r = "multi
360
361
  }, []), rt = M((e) => {
361
362
  W((t) => {
362
363
  let n = t.find((t) => t.id === e);
363
- return n?.src && (je(n.src), Ue.current.delete(n.src)), t.filter((t) => t.id !== e);
364
+ return n?.src && (Ne(n.src), He.current.delete(n.src)), t.filter((t) => t.id !== e);
364
365
  });
365
366
  }, []), it = M(() => {
366
367
  W((e) => {
367
- for (let t of e) t.src && (je(t.src), Ue.current.delete(t.src));
368
+ for (let t of e) t.src && (Ne(t.src), He.current.delete(t.src));
368
369
  return [];
369
370
  });
370
371
  }, []), at = M((e) => {
@@ -379,35 +380,35 @@ function Ie({ items: e = Ce, fetcher: t, accessors: n, selectionMode: r = "multi
379
380
  } : n));
380
381
  }, []);
381
382
  return {
382
- tab: I,
383
- setTab: L,
384
- view: ae,
385
- setView: oe,
386
- query: R,
387
- setQuery: z,
388
- type: se,
389
- setType: ce,
383
+ tab: ie,
384
+ setTab: se,
385
+ view: F,
386
+ setView: I,
387
+ query: L,
388
+ setQuery: ce,
389
+ type: R,
390
+ setType: z,
390
391
  collection: B,
391
392
  setCollection: le,
392
- sort: V,
393
- setSort: ue,
394
- detailId: de,
395
- setDetailId: fe,
396
- items: Z,
397
- visibleItems: Ge,
398
- selectedIds: q,
399
- selectedItems: Je,
400
- selectedSet: J,
393
+ sort: ue,
394
+ setSort: de,
395
+ detailId: fe,
396
+ setDetailId: pe,
397
+ items: Q,
398
+ visibleItems: We,
399
+ selectedIds: J,
400
+ selectedItems: qe,
401
+ selectedSet: Y,
401
402
  toggleSelection: Ye,
402
403
  clearSelection: Xe,
403
404
  selecting: $e,
404
405
  setSelecting: et,
405
406
  clearFilters: tt,
406
- loading: ye,
407
- error: xe,
408
- hasFilters: Q,
409
- totalCount: Ke,
410
- filteredCount: qe,
407
+ loading: be,
408
+ error: Se,
409
+ hasFilters: Je,
410
+ totalCount: Ge,
411
+ filteredCount: Ke,
411
412
  stagedFiles: Re,
412
413
  addFiles: nt,
413
414
  removeStagedFile: rt,
@@ -418,7 +419,7 @@ function Ie({ items: e = Ce, fetcher: t, accessors: n, selectionMode: r = "multi
418
419
  startUpload: M(async () => {
419
420
  if (ze || Re.length === 0) return;
420
421
  let e = new AbortController();
421
- Y.current?.abort(), Y.current = e, H(null), Be(!0), W((e) => e.map((e) => ({
422
+ X.current?.abort(), X.current = e, V(null), Be(!0), W((e) => e.map((e) => ({
422
423
  ...e,
423
424
  status: "uploading",
424
425
  progress: 0
@@ -443,37 +444,37 @@ function Ie({ items: e = Ce, fetcher: t, accessors: n, selectionMode: r = "multi
443
444
  status: "done",
444
445
  progress: 100
445
446
  }))), i?.length) {
446
- Ee((e) => [...i, ...e]);
447
- let e = i.map((e) => F.getId(e));
448
- $(r === "single" ? e.slice(0, 1) : Array.from(/* @__PURE__ */ new Set([...e, ...q])));
447
+ H((e) => [...i, ...e]);
448
+ let e = i.map((e) => j.getId(e));
449
+ $(r === "single" ? e.slice(0, 1) : Array.from(/* @__PURE__ */ new Set([...e, ...J])));
449
450
  }
450
- it(), L("library");
451
+ it(), se("library");
451
452
  } catch (t) {
452
453
  if (e.signal.aborted) return;
453
- H(t), W((e) => e.map((e) => e.status === "uploading" ? {
454
+ V(t), W((e) => e.map((e) => e.status === "uploading" ? {
454
455
  ...e,
455
456
  status: "error",
456
457
  error: "Upload failed"
457
458
  } : e)), u?.(t);
458
459
  } finally {
459
- Y.current === e && (Y.current = null, Be(!1));
460
+ X.current === e && (X.current = null, Be(!1));
460
461
  }
461
462
  }, [
462
- F,
463
+ j,
463
464
  $,
464
465
  it,
465
466
  u,
466
467
  l,
467
- q,
468
+ J,
468
469
  r,
469
- L,
470
+ se,
470
471
  ot,
471
472
  Re,
472
473
  G,
473
474
  ze
474
475
  ]),
475
476
  cancelUpload: M(() => {
476
- Y.current?.abort(), Y.current = null, Be(!1), W((e) => e.map((e) => e.status === "uploading" ? {
477
+ X.current?.abort(), X.current = null, Be(!1), W((e) => e.map((e) => e.status === "uploading" ? {
477
478
  ...e,
478
479
  status: "staged",
479
480
  progress: 0,
@@ -481,10 +482,10 @@ function Ie({ items: e = Ce, fetcher: t, accessors: n, selectionMode: r = "multi
481
482
  } : e));
482
483
  }, []),
483
484
  updateItem: M(async (e, t) => {
484
- let n = F.getId(e), r = `update:${n}`, i = (X.current.get(r) ?? 0) + 1;
485
- X.current.set(r, i);
486
- let a = Ie[n];
487
- H(null), Le((e) => ({
485
+ let n = j.getId(e), r = `update:${n}`, i = (Z.current.get(r) ?? 0) + 1;
486
+ Z.current.set(r, i);
487
+ let a = ke[n];
488
+ V(null), Ae((e) => ({
488
489
  ...e,
489
490
  [n]: {
490
491
  ...e[n],
@@ -494,69 +495,69 @@ function Ie({ items: e = Ce, fetcher: t, accessors: n, selectionMode: r = "multi
494
495
  try {
495
496
  return await s?.(e, t), !0;
496
497
  } catch (e) {
497
- return X.current.get(r) === i && Le((e) => {
498
+ return Z.current.get(r) === i && Ae((e) => {
498
499
  let t = { ...e };
499
500
  return a ? t[n] = a : delete t[n], t;
500
- }), H(e), u?.(e), !1;
501
+ }), V(e), u?.(e), !1;
501
502
  }
502
503
  }, [
503
- F,
504
- Ie,
504
+ j,
505
+ ke,
505
506
  u,
506
507
  s
507
508
  ]),
508
509
  removeItem: M(async (e) => {
509
- let t = F.getId(e), n = `delete:${t}`, r = (X.current.get(n) ?? 0) + 1;
510
- X.current.set(n, r);
511
- let i = De.has(t);
512
- H(null), Oe((e) => new Set(e).add(t));
510
+ let t = j.getId(e), n = `delete:${t}`, r = (Z.current.get(n) ?? 0) + 1;
511
+ Z.current.set(n, r);
512
+ let i = Ee.has(t);
513
+ V(null), Oe((e) => new Set(e).add(t));
513
514
  try {
514
- return await c?.(e), J.has(t) && $(q.filter((e) => e !== t)), !0;
515
+ return await c?.(e), Y.has(t) && $(J.filter((e) => e !== t)), !0;
515
516
  } catch (e) {
516
- return !i && X.current.get(n) === r && Oe((e) => {
517
+ return !i && Z.current.get(n) === r && Oe((e) => {
517
518
  let n = new Set(e);
518
519
  return n.delete(t), n;
519
- }), H(e), u?.(e), !1;
520
+ }), V(e), u?.(e), !1;
520
521
  }
521
522
  }, [
522
- F,
523
+ j,
523
524
  $,
524
525
  u,
525
526
  c,
526
- De,
527
- q,
528
- J
527
+ Ee,
528
+ J,
529
+ Y
529
530
  ]),
530
- accessors: F
531
+ accessors: j
531
532
  };
532
533
  }
533
534
  //#endregion
534
535
  //#region src/components/features/media-library/partials/media-library-partials.tsx
535
- var Le = `${h.nativeButtonReset} absolute inset-0 z-10 block h-full w-full cursor-pointer outline-none ${s.inset}`, Re = "media-library-card--check absolute left-2 top-2 inline-flex size-icon-lg items-center justify-center rounded-radius border border-border bg-background p-0 text-transparent shadow-xs", W = "border-primary bg-primary text-primary-foreground opacity-100";
536
- function ze(e, t) {
537
- return I(e === "image" ? ce : e === "video" ? ve : z, { className: t ?? "size-icon" });
536
+ var W = `${_.nativeButtonReset} absolute inset-0 z-10 block h-full w-full cursor-pointer outline-none ${s.inset}`, ze = "media-library-card--check absolute left-2 top-2 inline-flex size-icon-lg items-center justify-center rounded-radius border border-border bg-background p-0 text-transparent shadow-xs", Be = "border-primary bg-primary text-primary-foreground opacity-100";
537
+ function Ve(e, t) {
538
+ return F(e === "image" ? le : e === "video" ? xe : z, { className: t ?? "size-icon" });
538
539
  }
539
- function Be(e, t) {
540
+ function G(e, t) {
540
541
  return e === "image" ? t.typeImage : e === "video" ? t.typeVideo : t.typeFile;
541
542
  }
542
- function Ve(e, t) {
543
+ function K(e, t) {
543
544
  return e ? H(t.usedIn, { count: e }) : t.notUsed;
544
545
  }
545
- function G({ children: e, tint: t, className: n }) {
546
- return /* @__PURE__ */ I("div", {
546
+ function q({ children: e, tint: t, className: n }) {
547
+ return /* @__PURE__ */ F("div", {
547
548
  className: r("media-library-preview relative overflow-hidden bg-muted", n),
548
549
  style: t ? { background: t } : void 0,
549
550
  children: e
550
551
  });
551
552
  }
552
- function K({ src: e, alt: t, type: n, className: r, loading: i = "lazy" }) {
553
+ function J({ src: e, alt: t, type: n, className: r, loading: i = "lazy" }) {
553
554
  let [a, o] = P(!1);
554
- return re(() => {
555
+ return ae(() => {
555
556
  o(!1);
556
- }, [e]), !e || a ? /* @__PURE__ */ I("div", {
557
+ }, [e]), !e || a ? /* @__PURE__ */ F("div", {
557
558
  className: "media-library-preview--fallback flex size-full items-center justify-center text-muted-foreground",
558
- children: ze(n, "size-6")
559
- }) : /* @__PURE__ */ I("img", {
559
+ children: Ve(n, "size-6")
560
+ }) : /* @__PURE__ */ F("img", {
560
561
  src: e,
561
562
  alt: t,
562
563
  loading: i,
@@ -564,12 +565,12 @@ function K({ src: e, alt: t, type: n, className: r, loading: i = "lazy" }) {
564
565
  onError: () => o(!0)
565
566
  });
566
567
  }
567
- function He({ icon: e, title: t, description: n, action: i, className: a }) {
568
- return /* @__PURE__ */ I(te, {
568
+ function Y({ icon: e, title: t, description: n, action: i, className: a }) {
569
+ return /* @__PURE__ */ F(re, {
569
570
  title: t,
570
571
  description: n ?? !1,
571
572
  actions: i,
572
- media: e ?? /* @__PURE__ */ I(ce, {
573
+ media: e ?? /* @__PURE__ */ F(le, {
573
574
  className: "size-icon",
574
575
  "aria-hidden": "true"
575
576
  }),
@@ -579,8 +580,8 @@ function He({ icon: e, title: t, description: n, action: i, className: a }) {
579
580
  className: r("media-library-empty-state--component min-h-64 bg-muted/30", a)
580
581
  });
581
582
  }
582
- function q({ query: n, type: o, typeFilters: s, collection: c, sort: u, view: d, collections: f = [], strings: p, onQueryChange: m, onTypeChange: g, onCollectionChange: _, onSortChange: v, onViewChange: y, onClearFilters: b, toolbarEnd: S, selecting: w = !1, onSelectingChange: T }) {
583
- let { defaultScale: k } = e(), A = t(void 0, k), ee = [
583
+ function He({ query: n, type: o, typeFilters: s, collection: c, sort: u, view: d, collections: f = [], strings: p, onQueryChange: m, onTypeChange: h, onCollectionChange: g, onSortChange: v, onViewChange: y, onClearFilters: b, toolbarEnd: x, selecting: S = !1, onSelectingChange: ee }) {
584
+ let { defaultScale: T } = e(), E = t(void 0, T), te = [
584
585
  {
585
586
  value: "all",
586
587
  label: p.allTypes,
@@ -589,12 +590,12 @@ function q({ query: n, type: o, typeFilters: s, collection: c, sort: u, view: d,
589
590
  {
590
591
  value: "image",
591
592
  label: p.images,
592
- icon: ce
593
+ icon: le
593
594
  },
594
595
  {
595
596
  value: "video",
596
597
  label: p.videos,
597
- icon: ve
598
+ icon: xe
598
599
  },
599
600
  {
600
601
  value: "file",
@@ -605,13 +606,13 @@ function q({ query: n, type: o, typeFilters: s, collection: c, sort: u, view: d,
605
606
  "all",
606
607
  "image",
607
608
  "video"
608
- ]).includes(e.value)), te = [{
609
+ ]).includes(e.value)), ne = [{
609
610
  value: "all",
610
611
  label: p.allCollections
611
612
  }, ...f.map((e) => ({
612
613
  value: e.value,
613
614
  label: String(e.label)
614
- }))], j = [
615
+ }))], A = [
615
616
  {
616
617
  value: "newest",
617
618
  label: p.sortNewest
@@ -628,65 +629,65 @@ function q({ query: n, type: o, typeFilters: s, collection: c, sort: u, view: d,
628
629
  value: "usage",
629
630
  label: p.sortUsage
630
631
  }
631
- ], M = n.trim(), ne = M.length > 0, re = ne || o !== "all" || c !== "all";
632
- return /* @__PURE__ */ L(l, {
632
+ ], re = n.trim(), j = re.length > 0, M = j || o !== "all" || c !== "all";
633
+ return /* @__PURE__ */ I(l, {
633
634
  direction: "horizontal",
634
635
  wrap: !0,
635
636
  align: "start",
636
637
  gap: "md",
637
638
  className: "media-library-toolbar--component",
638
639
  children: [
639
- /* @__PURE__ */ L(l, {
640
+ /* @__PURE__ */ I(l, {
640
641
  gap: "xs",
641
642
  className: "media-library-toolbar--search min-w-52 flex-1",
642
- children: [/* @__PURE__ */ I(C, {
643
+ children: [/* @__PURE__ */ F(w, {
643
644
  value: n,
644
645
  onChange: (e) => m(e.target.value),
645
646
  placeholder: p.searchPlaceholder,
646
- startIcon: me,
647
+ startIcon: _e,
647
648
  clearable: !0,
648
649
  onClear: () => m(""),
649
650
  strings: { clear: p.clearSearch },
650
651
  className: "bg-background"
651
- }), !!ne && /* @__PURE__ */ I(l, {
652
+ }), !!j && /* @__PURE__ */ F(l, {
652
653
  direction: "horizontal",
653
654
  gap: "xs",
654
655
  wrap: !1,
655
656
  className: "media-library-toolbar--search-value px-space-xs",
656
- children: /* @__PURE__ */ L(x, {
657
+ children: /* @__PURE__ */ I(C, {
657
658
  tone: "secondary",
658
659
  className: "max-w-full",
659
- children: [/* @__PURE__ */ I(a, {
660
+ children: [/* @__PURE__ */ F(a, {
660
661
  tag: "span",
661
662
  size: "inherit",
662
663
  className: "text-current",
663
664
  children: p.activeSearchLabel
664
- }), /* @__PURE__ */ I(a, {
665
+ }), /* @__PURE__ */ F(a, {
665
666
  tag: "span",
666
667
  size: "inherit",
667
668
  weight: "normal",
668
669
  className: "min-w-0 truncate text-current",
669
- children: M
670
+ children: re
670
671
  })]
671
672
  })
672
673
  })]
673
674
  }),
674
- /* @__PURE__ */ I("div", {
675
- className: r("media-library-toolbar--type-toggle", D.frame, O[A]),
675
+ /* @__PURE__ */ F("div", {
676
+ className: r("media-library-toolbar--type-toggle", O.frame, k[E]),
676
677
  role: "tablist",
677
678
  "aria-label": p.typeFilterLabel,
678
- children: ee.map((e) => {
679
+ children: te.map((e) => {
679
680
  let t = e.icon, n = o === e.value;
680
- return /* @__PURE__ */ L(i, {
681
+ return /* @__PURE__ */ I(i, {
681
682
  type: "button",
682
683
  role: "tab",
683
684
  "aria-selected": n,
684
685
  tone: "secondary",
685
686
  buttonStyle: "ghost",
686
687
  size: "sm",
687
- className: r(D.item, "shadow-none", n ? `${h.segmentActive} hover:bg-card` : "text-muted-foreground hover:bg-transparent hover:text-foreground"),
688
- onClick: () => g(e.value),
689
- children: [t && /* @__PURE__ */ I(t, { className: "size-icon-md" }), /* @__PURE__ */ I(a, {
688
+ className: r(O.item, "shadow-none", n ? `${_.segmentActive} hover:bg-card` : "text-muted-foreground hover:bg-transparent hover:text-foreground"),
689
+ onClick: () => h(e.value),
690
+ children: [t && /* @__PURE__ */ F(t, { className: "size-icon-md" }), /* @__PURE__ */ F(a, {
690
691
  tag: "span",
691
692
  size: "xs",
692
693
  weight: "medium",
@@ -696,115 +697,115 @@ function q({ query: n, type: o, typeFilters: s, collection: c, sort: u, view: d,
696
697
  }, e.value);
697
698
  })
698
699
  }),
699
- /* @__PURE__ */ I("div", {
700
+ /* @__PURE__ */ F("div", {
700
701
  className: "min-w-40",
701
- children: /* @__PURE__ */ I(E, {
702
+ children: /* @__PURE__ */ F(D, {
702
703
  value: c,
703
- options: te,
704
- onValueChange: (e) => _(e ?? "all"),
704
+ options: ne,
705
+ onValueChange: (e) => g(e ?? "all"),
705
706
  placeholder: p.collectionFilterLabel,
706
707
  "aria-label": p.collectionFilterLabel,
707
708
  className: "bg-background"
708
709
  })
709
710
  }),
710
- /* @__PURE__ */ I("div", {
711
+ /* @__PURE__ */ F("div", {
711
712
  className: "min-w-32",
712
- children: /* @__PURE__ */ I(E, {
713
+ children: /* @__PURE__ */ F(D, {
713
714
  value: u,
714
- options: j,
715
+ options: A,
715
716
  onValueChange: (e) => v(e ?? "newest"),
716
717
  placeholder: p.sortLabel,
717
718
  "aria-label": p.sortLabel,
718
719
  className: "bg-background"
719
720
  })
720
721
  }),
721
- /* @__PURE__ */ L("div", {
722
- className: r("media-library-toolbar--view-toggle ml-auto", D.frame, O[A]),
723
- children: [/* @__PURE__ */ I(i, {
722
+ /* @__PURE__ */ I("div", {
723
+ className: r("media-library-toolbar--view-toggle ml-auto", O.frame, k[E]),
724
+ children: [/* @__PURE__ */ F(i, {
724
725
  type: "button",
725
726
  tone: d === "grid" ? "neutral" : "secondary",
726
727
  buttonStyle: d === "grid" ? "solid" : "ghost",
727
728
  size: "sm",
728
729
  iconOnly: !0,
729
- className: r(D.item, d === "grid" && `${h.segmentActive} hover:bg-card`),
730
+ className: r(O.item, d === "grid" && `${_.segmentActive} hover:bg-card`),
730
731
  "aria-label": p.gridView,
731
732
  onClick: () => y("grid"),
732
- children: /* @__PURE__ */ I(se, { className: "size-icon-md" })
733
- }), /* @__PURE__ */ I(i, {
733
+ children: /* @__PURE__ */ F(B, { className: "size-icon-md" })
734
+ }), /* @__PURE__ */ F(i, {
734
735
  type: "button",
735
736
  tone: d === "table" ? "neutral" : "secondary",
736
737
  buttonStyle: d === "table" ? "solid" : "ghost",
737
738
  size: "sm",
738
739
  iconOnly: !0,
739
- className: r(D.item, d === "table" && `${h.segmentActive} hover:bg-card`),
740
+ className: r(O.item, d === "table" && `${_.segmentActive} hover:bg-card`),
740
741
  "aria-label": p.tableView,
741
742
  onClick: () => y("table"),
742
- children: /* @__PURE__ */ I(ue, { className: "size-icon-md" })
743
+ children: /* @__PURE__ */ F(pe, { className: "size-icon-md" })
743
744
  })]
744
745
  }),
745
- !!re && /* @__PURE__ */ I(i, {
746
+ !!M && /* @__PURE__ */ F(i, {
746
747
  type: "button",
747
748
  tone: "secondary",
748
749
  buttonStyle: "ghost",
749
750
  onClick: b,
750
751
  children: p.clearFilters
751
752
  }),
752
- !!T && /* @__PURE__ */ I(i, {
753
+ !!ee && /* @__PURE__ */ F(i, {
753
754
  type: "button",
754
- "aria-pressed": w,
755
+ "aria-pressed": S,
755
756
  tone: "secondary",
756
757
  buttonStyle: "outline",
757
- className: r("media-library-toolbar--select", w && h.togglePressed),
758
- onClick: () => T(!w),
758
+ className: r("media-library-toolbar--select", S && _.togglePressed),
759
+ onClick: () => ee(!S),
759
760
  children: p.selectMode
760
761
  }),
761
- S
762
+ x
762
763
  ]
763
764
  });
764
765
  }
765
- function J({ item: e, selected: t = !1, density: n = "comfortable", showMeta: o = !0, accessors: u, strings: d, onToggle: f, onDetails: p, onOpen: m, selecting: g = !1, className: v }) {
766
- let y = u.getType(e), b = u.getName(e), S = u.getSrc(e), C = u.getAlt(e) || b, w = u.getSize(e), T = u.getUsageCount(e), E = u.getPublic(e) === !1, D = u.getDuration(e), O = !!m && !g, k = O ? m : f;
767
- return /* @__PURE__ */ L("div", {
766
+ function X({ item: e, selected: t = !1, density: n = "comfortable", showMeta: o = !0, accessors: u, strings: d, onToggle: f, onDetails: p, onOpen: m, selecting: h = !1, className: g }) {
767
+ let v = u.getType(e), b = u.getName(e), x = u.getSrc(e), S = u.getAlt(e) || b, ee = u.getSize(e), w = u.getUsageCount(e), T = u.getPublic(e) === !1, E = u.getDuration(e), D = !!m && !h, O = D ? m : f;
768
+ return /* @__PURE__ */ I("div", {
768
769
  "data-selected": t || void 0,
769
- "data-selecting": g || void 0,
770
+ "data-selecting": h || void 0,
770
771
  "data-gallery-density": n,
771
- className: r("media-library-card--component relative group/card overflow-hidden rounded-radius border border-border bg-card text-card-foreground text-left shadow-xs transition-all", `${h.tileHover} hover:shadow-sm`, t && "media-library-card--selected border-primary ring-1 ring-primary", v),
772
- onClick: k,
772
+ className: r("media-library-card--component relative group/card overflow-hidden rounded-radius border border-border bg-card text-card-foreground text-left shadow-xs transition-all", `${_.tileHover} hover:shadow-sm`, t && "media-library-card--selected border-primary ring-1 ring-primary", g),
773
+ onClick: O,
773
774
  children: [
774
- !!k && /* @__PURE__ */ I("button", {
775
+ !!O && /* @__PURE__ */ F("button", {
775
776
  type: "button",
776
777
  "aria-label": b,
777
- "aria-pressed": O ? void 0 : t,
778
- className: r("media-library-card--select rounded-radius", Le),
778
+ "aria-pressed": D ? void 0 : t,
779
+ className: r("media-library-card--select rounded-radius", W),
779
780
  onClick: (e) => {
780
- e.stopPropagation(), k();
781
+ e.stopPropagation(), O();
781
782
  }
782
783
  }),
783
- /* @__PURE__ */ L(G, {
784
+ /* @__PURE__ */ I(q, {
784
785
  tint: u.getTint(e),
785
786
  className: r(n === "compact" ? "aspect-square" : "aspect-[4/3]"),
786
787
  children: [
787
- /* @__PURE__ */ I(K, {
788
- src: S,
789
- alt: C,
790
- type: y,
788
+ /* @__PURE__ */ F(J, {
789
+ src: x,
790
+ alt: S,
791
+ type: v,
791
792
  className: "size-full object-cover"
792
793
  }),
793
- O && f ? /* @__PURE__ */ I("button", {
794
+ D && f ? /* @__PURE__ */ F("button", {
794
795
  type: "button",
795
796
  "aria-label": H(d.selectItem, { name: b }),
796
797
  "aria-pressed": t,
797
- className: r(Re, `z-10 cursor-pointer opacity-0 transition-opacity group-hover/card:opacity-100 group-focus-within/card:opacity-100 pointer-coarse:opacity-100 ${s.frame}`, t && W),
798
+ className: r(ze, `z-10 cursor-pointer opacity-0 transition-opacity group-hover/card:opacity-100 group-focus-within/card:opacity-100 pointer-coarse:opacity-100 ${s.frame}`, t && Be),
798
799
  onClick: (e) => {
799
800
  e.stopPropagation(), f();
800
801
  },
801
- children: /* @__PURE__ */ I(R, { className: "size-icon-sm" })
802
- }) : /* @__PURE__ */ I("span", {
803
- className: r(Re, "transition-opacity", g ? "opacity-100" : "opacity-0 group-hover/card:opacity-100 group-focus-within/card:opacity-100", t && W),
802
+ children: /* @__PURE__ */ F(R, { className: "size-icon-sm" })
803
+ }) : /* @__PURE__ */ F("span", {
804
+ className: r(ze, "transition-opacity", h ? "opacity-100" : "opacity-0 group-hover/card:opacity-100 group-focus-within/card:opacity-100", t && Be),
804
805
  "aria-hidden": "true",
805
- children: /* @__PURE__ */ I(R, { className: "size-icon-sm" })
806
+ children: /* @__PURE__ */ F(R, { className: "size-icon-sm" })
806
807
  }),
807
- !!p && /* @__PURE__ */ I(i, {
808
+ !!p && /* @__PURE__ */ F(i, {
808
809
  type: "button",
809
810
  tone: "secondary",
810
811
  buttonStyle: "solid",
@@ -815,48 +816,48 @@ function J({ item: e, selected: t = !1, density: n = "comfortable", showMeta: o
815
816
  onClick: (e) => {
816
817
  e.stopPropagation(), p();
817
818
  },
818
- children: /* @__PURE__ */ I(le, { className: "size-icon-md" })
819
+ children: /* @__PURE__ */ F(de, { className: "size-icon-md" })
819
820
  }),
820
- y === "video" && !!D && /* @__PURE__ */ L(x, {
821
+ v === "video" && !!E && /* @__PURE__ */ I(C, {
821
822
  tone: "secondary",
822
823
  className: "media-library-card--duration absolute bottom-2 left-2 bg-inverse-background text-inverse-foreground",
823
- children: [/* @__PURE__ */ I(fe, { className: "size-icon-sm fill-current" }), D]
824
+ children: [/* @__PURE__ */ F(he, { className: "size-icon-sm fill-current" }), E]
824
825
  }),
825
- E && /* @__PURE__ */ I(x, {
826
+ T && /* @__PURE__ */ F(C, {
826
827
  tone: "secondary",
827
828
  className: "media-library-card--private absolute bottom-2 right-2 bg-card text-card-foreground",
828
- children: /* @__PURE__ */ I(de, { className: "size-icon-sm" })
829
+ children: /* @__PURE__ */ F(me, { className: "size-icon-sm" })
829
830
  })
830
831
  ]
831
832
  }),
832
- /* @__PURE__ */ I("div", {
833
+ /* @__PURE__ */ F("div", {
833
834
  className: r("media-library-card--body", n === "compact" ? "p-surface-xs" : "p-surface"),
834
- children: /* @__PURE__ */ L(c, {
835
+ children: /* @__PURE__ */ I(c, {
835
836
  columns: 1,
836
837
  gap: "xs",
837
- children: [/* @__PURE__ */ I(a, {
838
+ children: [/* @__PURE__ */ F(a, {
838
839
  tag: "div",
839
840
  type: "inherit",
840
841
  weight: "semibold",
841
842
  className: "truncate",
842
843
  children: b
843
- }), o && /* @__PURE__ */ L(l, {
844
+ }), o && /* @__PURE__ */ I(l, {
844
845
  direction: "horizontal",
845
846
  align: "center",
846
847
  justify: "between",
847
848
  gap: "md",
848
849
  className: "min-w-0",
849
- children: [/* @__PURE__ */ I(_, {
850
- value: w,
850
+ children: [/* @__PURE__ */ F(y, {
851
+ value: ee,
851
852
  size: "xs",
852
853
  className: "truncate",
853
854
  emptyLabel: d.unknownSize
854
- }), !!T && /* @__PURE__ */ L(a, {
855
+ }), !!w && /* @__PURE__ */ I(a, {
855
856
  tag: "span",
856
857
  size: "xs",
857
858
  type: "secondary",
858
859
  className: "inline-flex items-center gap-space-xs",
859
- children: [/* @__PURE__ */ I(V, { className: "size-icon-sm" }), T]
860
+ children: [/* @__PURE__ */ F(fe, { className: "size-icon-sm" }), w]
860
861
  })]
861
862
  })]
862
863
  })
@@ -864,165 +865,165 @@ function J({ item: e, selected: t = !1, density: n = "comfortable", showMeta: o
864
865
  ]
865
866
  });
866
867
  }
867
- function Ue({ items: e, selectedSet: t, accessors: n, strings: c, onToggle: l, onDetails: u, onOpen: d, selecting: f = !1 }) {
868
+ function Z({ items: e, selectedSet: t, accessors: n, strings: c, onToggle: l, onDetails: u, onOpen: d, selecting: f = !1 }) {
868
869
  let p = !!d && !f;
869
- return /* @__PURE__ */ L("div", {
870
+ return /* @__PURE__ */ I("div", {
870
871
  className: "media-library-list--component min-w-180",
871
- children: [/* @__PURE__ */ L("div", {
872
+ children: [/* @__PURE__ */ I("div", {
872
873
  className: "sticky top-0 z-10 grid grid-cols-[32px_42px_minmax(0,1fr)_86px_88px_120px_72px_34px] items-center gap-space-lg border-b border-border bg-background px-row-x py-row-y",
873
874
  children: [
874
- /* @__PURE__ */ I("span", {}),
875
- /* @__PURE__ */ I("span", {}),
876
- /* @__PURE__ */ I(o, { children: c.table.name }),
877
- /* @__PURE__ */ I(o, { children: c.table.type }),
878
- /* @__PURE__ */ I(o, { children: c.table.size }),
879
- /* @__PURE__ */ I(o, { children: c.table.collection }),
880
- /* @__PURE__ */ I(o, { children: c.table.used }),
881
- /* @__PURE__ */ I("span", {})
875
+ /* @__PURE__ */ F("span", {}),
876
+ /* @__PURE__ */ F("span", {}),
877
+ /* @__PURE__ */ F(o, { children: c.table.name }),
878
+ /* @__PURE__ */ F(o, { children: c.table.type }),
879
+ /* @__PURE__ */ F(o, { children: c.table.size }),
880
+ /* @__PURE__ */ F(o, { children: c.table.collection }),
881
+ /* @__PURE__ */ F(o, { children: c.table.used }),
882
+ /* @__PURE__ */ F("span", {})
882
883
  ]
883
884
  }), e.map((e) => {
884
- let o = n.getId(e), f = t.has(o), m = n.getType(e), g = n.getName(e), v = n.getSrc(e), y = n.getPublic(e) === !1;
885
- return /* @__PURE__ */ L("div", {
885
+ let o = n.getId(e), f = t.has(o), m = n.getType(e), h = n.getName(e), g = n.getSrc(e), v = n.getPublic(e) === !1;
886
+ return /* @__PURE__ */ I("div", {
886
887
  "data-selected": f || void 0,
887
- className: r("media-library-list--row relative grid grid-cols-[32px_42px_minmax(0,1fr)_86px_88px_120px_72px_34px] items-center gap-space-lg border-b border-border/60 px-row-x py-row-y last:border-b-0", `cursor-pointer rounded-inner transition-colors ${h.rowHover}`, f && h.rowSelected),
888
+ className: r("media-library-list--row relative grid grid-cols-[32px_42px_minmax(0,1fr)_86px_88px_120px_72px_34px] items-center gap-space-lg border-b border-border/60 px-row-x py-row-y last:border-b-0", `cursor-pointer rounded-inner transition-colors ${_.rowHover}`, f && _.rowSelected),
888
889
  onClick: () => p && d ? d(o) : l(o),
889
890
  children: [
890
- /* @__PURE__ */ I("button", {
891
+ /* @__PURE__ */ F("button", {
891
892
  type: "button",
892
- "aria-label": g,
893
+ "aria-label": h,
893
894
  "aria-pressed": p ? void 0 : f,
894
- className: r("media-library-list--select rounded-inner", Le),
895
+ className: r("media-library-list--select rounded-inner", W),
895
896
  onClick: (e) => {
896
897
  e.stopPropagation(), p && d ? d(o) : l(o);
897
898
  }
898
899
  }),
899
- p ? /* @__PURE__ */ I("button", {
900
+ p ? /* @__PURE__ */ F("button", {
900
901
  type: "button",
901
- "aria-label": H(c.selectItem, { name: g }),
902
+ "aria-label": H(c.selectItem, { name: h }),
902
903
  "aria-pressed": f,
903
904
  className: r(`relative z-10 inline-flex size-icon-lg cursor-pointer items-center justify-center rounded-radius border border-input bg-background p-0 text-transparent ${s.frame}`, f && "border-primary bg-primary text-primary-foreground"),
904
905
  onClick: (e) => {
905
906
  e.stopPropagation(), l(o);
906
907
  },
907
- children: /* @__PURE__ */ I(R, { className: "size-icon-sm" })
908
- }) : /* @__PURE__ */ I("span", {
908
+ children: /* @__PURE__ */ F(R, { className: "size-icon-sm" })
909
+ }) : /* @__PURE__ */ F("span", {
909
910
  className: r("inline-flex size-icon-lg items-center justify-center rounded-radius border border-border text-transparent", f && "border-primary bg-primary text-primary-foreground"),
910
911
  "aria-hidden": "true",
911
- children: /* @__PURE__ */ I(R, { className: "size-icon-sm" })
912
+ children: /* @__PURE__ */ F(R, { className: "size-icon-sm" })
912
913
  }),
913
- /* @__PURE__ */ I(G, {
914
+ /* @__PURE__ */ F(q, {
914
915
  tint: n.getTint(e),
915
916
  className: "size-9 rounded-inner",
916
- children: v ? /* @__PURE__ */ I("img", {
917
- src: v,
917
+ children: g ? /* @__PURE__ */ F("img", {
918
+ src: g,
918
919
  alt: "",
919
920
  loading: "lazy",
920
921
  className: "size-full object-cover"
921
- }) : /* @__PURE__ */ I("div", {
922
+ }) : /* @__PURE__ */ F("div", {
922
923
  className: "flex size-full items-center justify-center text-muted-foreground",
923
- children: ze(m, "size-icon")
924
+ children: Ve(m, "size-icon")
924
925
  })
925
926
  }),
926
- /* @__PURE__ */ L(a, {
927
+ /* @__PURE__ */ I(a, {
927
928
  tag: "div",
928
929
  type: "inherit",
929
930
  weight: "semibold",
930
931
  className: "flex min-w-0 items-center gap-space-xs truncate",
931
- children: [g, y && /* @__PURE__ */ I(de, { className: "size-icon-sm shrink-0 text-muted-foreground" })]
932
+ children: [h, v && /* @__PURE__ */ F(me, { className: "size-icon-sm shrink-0 text-muted-foreground" })]
932
933
  }),
933
- /* @__PURE__ */ I(x, {
934
+ /* @__PURE__ */ F(C, {
934
935
  tone: "secondary",
935
- children: Be(m, c)
936
+ children: G(m, c)
936
937
  }),
937
- /* @__PURE__ */ I(_, {
938
+ /* @__PURE__ */ F(y, {
938
939
  value: n.getSize(e),
939
940
  size: "xs",
940
941
  emptyLabel: c.unknownSize
941
942
  }),
942
- /* @__PURE__ */ I(a, {
943
+ /* @__PURE__ */ F(a, {
943
944
  size: "xs",
944
945
  type: "secondary",
945
946
  className: "truncate",
946
947
  children: n.getCollection(e) || "—"
947
948
  }),
948
- /* @__PURE__ */ I(a, {
949
+ /* @__PURE__ */ F(a, {
949
950
  size: "xs",
950
951
  type: "secondary",
951
952
  children: n.getUsageCount(e) ? n.getUsageCount(e) : "—"
952
953
  }),
953
- /* @__PURE__ */ I(i, {
954
+ /* @__PURE__ */ F(i, {
954
955
  type: "button",
955
956
  tone: "secondary",
956
957
  buttonStyle: "ghost",
957
958
  size: "sm",
958
959
  iconOnly: !0,
959
960
  className: "relative z-10",
960
- "aria-label": H(c.cardDetails, { name: g }),
961
+ "aria-label": H(c.cardDetails, { name: h }),
961
962
  onClick: (e) => {
962
963
  e.stopPropagation(), u(o);
963
964
  },
964
- children: /* @__PURE__ */ I(le, { className: "size-icon-md" })
965
+ children: /* @__PURE__ */ F(de, { className: "size-icon-md" })
965
966
  })
966
967
  ]
967
968
  }, o);
968
969
  })]
969
970
  });
970
971
  }
971
- function Y({ item: e, collections: t = [], accessors: n, strings: r, onClose: o, onUpdate: s, onRemove: c, onReplace: u, renderDetail: d }) {
972
+ function Ue({ item: e, collections: t = [], accessors: n, strings: o, onClose: s, onUpdate: c, onRemove: u, onReplace: d, renderDetail: f }) {
972
973
  if (!e) return null;
973
- let f = n.getName(e), p = n.getType(e), m = n.getSrc(e), h = n.getCollection(e) ?? t[0]?.value ?? "", g = n.getTags(e), y = n.getPublic(e) ?? !0, b = d?.(e, {
974
+ let p = n.getName(e), m = n.getType(e), g = n.getSrc(e), _ = n.getCollection(e) ?? t[0]?.value ?? "", v = n.getTags(e), x = n.getPublic(e) ?? !0, S = f?.(e, {
974
975
  accessors: n,
975
- update: s,
976
- remove: c,
977
- replace: u,
978
- close: o
976
+ update: c,
977
+ remove: u,
978
+ replace: d,
979
+ close: s
979
980
  });
980
- return b ? /* @__PURE__ */ I(F, { children: b }) : /* @__PURE__ */ L("aside", {
981
+ return S ? /* @__PURE__ */ F(se, { children: S }) : /* @__PURE__ */ I("aside", {
981
982
  className: "media-library-detail-panel--component flex min-h-0 w-full flex-col border-l border-border bg-background text-foreground @2xl/media-library:w-72",
982
- children: [/* @__PURE__ */ I("div", {
983
+ children: [/* @__PURE__ */ F("div", {
983
984
  className: "media-library-detail-panel--header border-b border-border p-surface",
984
- children: /* @__PURE__ */ L(l, {
985
+ children: /* @__PURE__ */ I(l, {
985
986
  direction: "horizontal",
986
987
  align: "center",
987
988
  gap: "md",
988
- children: [/* @__PURE__ */ I(i, {
989
+ children: [/* @__PURE__ */ F(i, {
989
990
  type: "button",
990
991
  tone: "secondary",
991
992
  buttonStyle: "ghost",
992
993
  size: "sm",
993
994
  iconOnly: !0,
994
- "aria-label": r.detail.close,
995
+ "aria-label": o.detail.close,
995
996
  "data-media-detail-close": "",
996
- onClick: o,
997
- children: /* @__PURE__ */ I(ae, { className: "size-icon-md" })
998
- }), /* @__PURE__ */ I(a, {
997
+ onClick: s,
998
+ children: /* @__PURE__ */ F(L, { className: "size-icon-md" })
999
+ }), /* @__PURE__ */ F(a, {
999
1000
  weight: "semibold",
1000
- children: r.detail.title
1001
+ children: o.detail.title
1001
1002
  })]
1002
1003
  })
1003
- }), /* @__PURE__ */ L("div", {
1004
+ }), /* @__PURE__ */ I("div", {
1004
1005
  className: "media-library-detail-panel--body grid min-h-0 auto-rows-max gap-space-xl overflow-y-auto p-surface",
1005
1006
  children: [
1006
- /* @__PURE__ */ L(G, {
1007
+ /* @__PURE__ */ I(q, {
1007
1008
  tint: n.getTint(e),
1008
1009
  className: "aspect-[4/3] rounded-radius border border-border",
1009
- children: [/* @__PURE__ */ I(K, {
1010
- src: m,
1011
- alt: n.getAlt(e) || f,
1012
- type: p,
1010
+ children: [/* @__PURE__ */ F(J, {
1011
+ src: g,
1012
+ alt: n.getAlt(e) || p,
1013
+ type: m,
1013
1014
  className: "size-full object-cover"
1014
- }), p === "video" && !!n.getDuration(e) && /* @__PURE__ */ L(x, {
1015
+ }), m === "video" && !!n.getDuration(e) && /* @__PURE__ */ I(C, {
1015
1016
  className: "absolute bottom-2 right-2 bg-inverse-background text-inverse-foreground",
1016
- children: [/* @__PURE__ */ I(fe, { className: "size-icon-sm fill-current" }), n.getDuration(e)]
1017
+ children: [/* @__PURE__ */ F(he, { className: "size-icon-sm fill-current" }), n.getDuration(e)]
1017
1018
  })]
1018
1019
  }),
1019
- /* @__PURE__ */ I(a, {
1020
+ /* @__PURE__ */ F(a, {
1020
1021
  tag: "div",
1021
1022
  weight: "semibold",
1022
1023
  className: "break-words",
1023
- children: f
1024
+ children: p
1024
1025
  }),
1025
- /* @__PURE__ */ I(A, {
1026
+ /* @__PURE__ */ F(ne, {
1026
1027
  layout: "rows",
1027
1028
  valueAlign: "end",
1028
1029
  density: "compact",
@@ -1030,114 +1031,114 @@ function Y({ item: e, collections: t = [], accessors: n, strings: r, onClose: o,
1030
1031
  items: [
1031
1032
  {
1032
1033
  id: "type",
1033
- label: r.detail.type,
1034
- value: Be(p, r)
1034
+ label: o.detail.type,
1035
+ value: G(m, o)
1035
1036
  },
1036
1037
  {
1037
1038
  id: "size",
1038
- label: r.detail.size,
1039
- value: /* @__PURE__ */ I(_, {
1039
+ label: o.detail.size,
1040
+ value: /* @__PURE__ */ F(y, {
1040
1041
  value: n.getSize(e),
1041
- emptyLabel: r.unknownSize
1042
+ emptyLabel: o.unknownSize
1042
1043
  })
1043
1044
  },
1044
1045
  {
1045
1046
  id: "dimensions",
1046
- label: r.detail.dimensions,
1047
- value: /* @__PURE__ */ I(v, {
1047
+ label: o.detail.dimensions,
1048
+ value: /* @__PURE__ */ F(b, {
1048
1049
  width: n.getWidth(e),
1049
1050
  height: n.getHeight(e),
1050
- emptyLabel: r.unknownSize
1051
+ emptyLabel: o.unknownSize
1051
1052
  })
1052
1053
  },
1053
1054
  {
1054
1055
  id: "uploaded",
1055
- label: r.detail.uploaded,
1056
+ label: o.detail.uploaded,
1056
1057
  value: String(n.getUploadedAt(e) ?? "—")
1057
1058
  },
1058
1059
  {
1059
1060
  id: "used-in",
1060
- label: r.detail.usedIn,
1061
- value: Ve(n.getUsageCount(e), r)
1061
+ label: o.detail.usedIn,
1062
+ value: K(n.getUsageCount(e), o)
1062
1063
  }
1063
1064
  ]
1064
1065
  }),
1065
- /* @__PURE__ */ I(w, {
1066
- label: r.detail.altText,
1067
- children: /* @__PURE__ */ I(C, {
1066
+ /* @__PURE__ */ F(T, {
1067
+ label: o.detail.altText,
1068
+ children: /* @__PURE__ */ F(w, {
1068
1069
  value: n.getAlt(e) ?? "",
1069
- placeholder: r.detail.altPlaceholder,
1070
- onChange: (e) => s({ alt: e.target.value })
1070
+ placeholder: o.detail.altPlaceholder,
1071
+ onChange: (e) => c({ alt: e.target.value })
1071
1072
  })
1072
1073
  }),
1073
- /* @__PURE__ */ I(w, {
1074
- label: r.detail.collection,
1075
- children: /* @__PURE__ */ I(E, {
1076
- value: h,
1074
+ /* @__PURE__ */ F(T, {
1075
+ label: o.detail.collection,
1076
+ children: /* @__PURE__ */ F(D, {
1077
+ value: _,
1077
1078
  options: t.map((e) => ({
1078
1079
  value: e.value,
1079
1080
  label: String(e.label)
1080
1081
  })),
1081
- "aria-label": r.detail.collection,
1082
- onValueChange: (e) => s({ collection: e })
1082
+ "aria-label": o.detail.collection,
1083
+ onValueChange: (e) => c({ collection: e })
1083
1084
  })
1084
1085
  }),
1085
- /* @__PURE__ */ I(w, {
1086
- label: r.detail.tags,
1087
- children: /* @__PURE__ */ I(C, {
1088
- value: g.join(", "),
1089
- placeholder: r.detail.tagsPlaceholder,
1090
- onChange: (e) => s({ tags: e.target.value.split(",").map((e) => e.trim()).filter(Boolean) })
1086
+ /* @__PURE__ */ F(T, {
1087
+ label: o.detail.tags,
1088
+ children: /* @__PURE__ */ F(w, {
1089
+ value: v.join(", "),
1090
+ placeholder: o.detail.tagsPlaceholder,
1091
+ onChange: (e) => c({ tags: e.target.value.split(",").map((e) => e.trim()).filter(Boolean) })
1091
1092
  })
1092
1093
  }),
1093
- /* @__PURE__ */ I("div", {
1094
+ /* @__PURE__ */ F("div", {
1094
1095
  className: "media-library-detail-panel--public",
1095
- children: /* @__PURE__ */ L(l, {
1096
+ children: /* @__PURE__ */ I(l, {
1096
1097
  direction: "horizontal",
1097
1098
  align: "center",
1098
1099
  justify: "between",
1099
1100
  gap: "xl",
1100
- children: [/* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I(a, {
1101
+ children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(a, {
1101
1102
  weight: "semibold",
1102
- children: r.detail.public
1103
- }), /* @__PURE__ */ I(a, {
1103
+ children: o.detail.public
1104
+ }), /* @__PURE__ */ F(a, {
1104
1105
  size: "xs",
1105
1106
  type: "secondary",
1106
- children: y ? r.detail.publicHint : r.detail.privateHint
1107
- })] }), /* @__PURE__ */ I(T, {
1108
- "aria-label": r.detail.public,
1109
- checked: y,
1110
- onValueChange: (e) => s({ public: e })
1107
+ children: x ? o.detail.publicHint : o.detail.privateHint
1108
+ })] }), /* @__PURE__ */ F(E, {
1109
+ "aria-label": o.detail.public,
1110
+ checked: x,
1111
+ onValueChange: (e) => c({ public: e })
1111
1112
  })]
1112
1113
  })
1113
1114
  }),
1114
- /* @__PURE__ */ L("div", {
1115
- className: "media-library-detail-panel--actions flex flex-wrap gap-space-md",
1116
- children: [u && /* @__PURE__ */ I(i, {
1115
+ /* @__PURE__ */ I("div", {
1116
+ className: r("media-library-detail-panel--actions flex flex-wrap", h.commands),
1117
+ children: [d && /* @__PURE__ */ F(i, {
1117
1118
  type: "button",
1118
1119
  tone: "secondary",
1119
1120
  buttonStyle: "outline",
1120
- onClick: u,
1121
- children: r.detail.replace
1122
- }), /* @__PURE__ */ I(i, {
1121
+ onClick: d,
1122
+ children: o.detail.replace
1123
+ }), /* @__PURE__ */ F(i, {
1123
1124
  type: "button",
1124
1125
  tone: "destructive",
1125
1126
  buttonStyle: "ghost",
1126
- onClick: c,
1127
- children: r.detail.delete
1127
+ onClick: u,
1128
+ children: o.detail.delete
1128
1129
  })]
1129
1130
  })
1130
1131
  ]
1131
1132
  })]
1132
1133
  });
1133
1134
  }
1134
- function X({ stagedFiles: e, uploadOptions: t, collections: n = [], uploading: r = !1, strings: o, onFiles: s, onRemoveFile: c, onOptionsChange: u, empty: d }) {
1135
- return /* @__PURE__ */ I("div", {
1135
+ function Q({ stagedFiles: e, uploadOptions: t, collections: n = [], uploading: r = !1, strings: o, onFiles: s, onRemoveFile: c, onOptionsChange: u, empty: d }) {
1136
+ return /* @__PURE__ */ F("div", {
1136
1137
  className: "media-library-upload-panel--component p-surface",
1137
- children: /* @__PURE__ */ L(l, {
1138
+ children: /* @__PURE__ */ I(l, {
1138
1139
  gap: "xl",
1139
1140
  children: [
1140
- /* @__PURE__ */ I(ee, {
1141
+ /* @__PURE__ */ F(A, {
1141
1142
  onDrop: s,
1142
1143
  accept: "image/*,video/*",
1143
1144
  multiple: !0,
@@ -1148,60 +1149,60 @@ function X({ stagedFiles: e, uploadOptions: t, collections: n = [], uploading: r
1148
1149
  dragOver: o.upload.dragOver
1149
1150
  }
1150
1151
  }),
1151
- e.length > 0 ? /* @__PURE__ */ I(l, {
1152
+ e.length > 0 ? /* @__PURE__ */ F(l, {
1152
1153
  gap: "md",
1153
1154
  className: "media-library-upload-panel--staged",
1154
- children: e.map((e) => /* @__PURE__ */ L("div", {
1155
+ children: e.map((e) => /* @__PURE__ */ I("div", {
1155
1156
  className: "media-library-upload-panel--staged-file flex items-center gap-space-lg rounded-radius border border-border bg-card text-card-foreground px-row-x py-row-y",
1156
1157
  children: [
1157
- /* @__PURE__ */ I(G, {
1158
+ /* @__PURE__ */ F(q, {
1158
1159
  className: "size-10 rounded-inner",
1159
- children: e.src ? /* @__PURE__ */ I("img", {
1160
+ children: e.src ? /* @__PURE__ */ F("img", {
1160
1161
  src: e.src,
1161
1162
  alt: e.name,
1162
1163
  className: "size-full object-cover"
1163
- }) : /* @__PURE__ */ I("div", {
1164
+ }) : /* @__PURE__ */ F("div", {
1164
1165
  className: "flex size-full items-center justify-center text-muted-foreground",
1165
- children: ze(e.type, "size-icon")
1166
+ children: Ve(e.type, "size-icon")
1166
1167
  })
1167
1168
  }),
1168
- /* @__PURE__ */ L(l, {
1169
+ /* @__PURE__ */ I(l, {
1169
1170
  gap: "md",
1170
1171
  className: "min-w-0 flex-1",
1171
1172
  children: [
1172
- /* @__PURE__ */ L("div", {
1173
+ /* @__PURE__ */ I("div", {
1173
1174
  className: "flex items-baseline gap-space-lg",
1174
- children: [/* @__PURE__ */ I(a, {
1175
+ children: [/* @__PURE__ */ F(a, {
1175
1176
  type: "inherit",
1176
1177
  weight: "semibold",
1177
1178
  className: "truncate",
1178
1179
  children: e.name
1179
- }), /* @__PURE__ */ I(_, {
1180
+ }), /* @__PURE__ */ F(y, {
1180
1181
  value: e.size,
1181
1182
  size: "xs",
1182
1183
  className: "ml-auto shrink-0"
1183
1184
  })]
1184
1185
  }),
1185
- (e.status === "uploading" || e.status === "done") && /* @__PURE__ */ I(p, {
1186
+ (e.status === "uploading" || e.status === "done") && /* @__PURE__ */ F(p, {
1186
1187
  value: e.progress,
1187
1188
  size: "sm",
1188
1189
  "aria-label": e.name
1189
1190
  }),
1190
- e.status === "error" && /* @__PURE__ */ I(a, {
1191
+ e.status === "error" && /* @__PURE__ */ F(a, {
1191
1192
  type: "error",
1192
1193
  children: e.error
1193
1194
  })
1194
1195
  ]
1195
1196
  }),
1196
- e.status === "done" ? /* @__PURE__ */ I(x, {
1197
+ e.status === "done" ? /* @__PURE__ */ F(C, {
1197
1198
  tone: "success",
1198
1199
  children: o.upload.done
1199
- }) : e.status === "uploading" ? /* @__PURE__ */ I(y, {
1200
+ }) : e.status === "uploading" ? /* @__PURE__ */ F(x, {
1200
1201
  value: Math.round(e.progress),
1201
1202
  scaled: !0,
1202
1203
  size: "xs",
1203
1204
  type: "secondary"
1204
- }) : /* @__PURE__ */ I(i, {
1205
+ }) : /* @__PURE__ */ F(i, {
1205
1206
  type: "button",
1206
1207
  tone: "secondary",
1207
1208
  buttonStyle: "ghost",
@@ -1210,17 +1211,17 @@ function X({ stagedFiles: e, uploadOptions: t, collections: n = [], uploading: r
1210
1211
  disabled: r,
1211
1212
  "aria-label": H(o.upload.removeFile, { name: e.name }),
1212
1213
  onClick: () => c(e.id),
1213
- children: /* @__PURE__ */ I(ye, { className: "size-icon-md" })
1214
+ children: /* @__PURE__ */ F(Se, { className: "size-icon-md" })
1214
1215
  })
1215
1216
  ]
1216
1217
  }, e.id))
1217
1218
  }) : d,
1218
- /* @__PURE__ */ L("div", {
1219
+ /* @__PURE__ */ I("div", {
1219
1220
  className: "media-library-upload-panel--options grid gap-space-lg @2xl/media-library:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto]",
1220
1221
  children: [
1221
- /* @__PURE__ */ I(w, {
1222
+ /* @__PURE__ */ F(T, {
1222
1223
  label: o.upload.collection,
1223
- children: /* @__PURE__ */ I(E, {
1224
+ children: /* @__PURE__ */ F(D, {
1224
1225
  value: t.collection ?? n[0]?.value,
1225
1226
  options: n.map((e) => ({
1226
1227
  value: e.value,
@@ -1230,28 +1231,28 @@ function X({ stagedFiles: e, uploadOptions: t, collections: n = [], uploading: r
1230
1231
  onValueChange: (e) => u({ collection: e })
1231
1232
  })
1232
1233
  }),
1233
- /* @__PURE__ */ I(w, {
1234
+ /* @__PURE__ */ F(T, {
1234
1235
  label: o.upload.tags,
1235
- children: /* @__PURE__ */ I(C, {
1236
+ children: /* @__PURE__ */ F(w, {
1236
1237
  value: t.tags.join(", "),
1237
1238
  placeholder: o.upload.tagsPlaceholder,
1238
1239
  onChange: (e) => u({ tags: e.target.value.split(",").map((e) => e.trim()).filter(Boolean) })
1239
1240
  })
1240
1241
  }),
1241
- /* @__PURE__ */ L(l, {
1242
+ /* @__PURE__ */ I(l, {
1242
1243
  direction: "horizontal",
1243
1244
  align: "center",
1244
1245
  justify: "between",
1245
1246
  gap: "xl",
1246
1247
  className: "@2xl/media-library:self-end",
1247
- children: [/* @__PURE__ */ L("div", { children: [/* @__PURE__ */ I(a, {
1248
+ children: [/* @__PURE__ */ I("div", { children: [/* @__PURE__ */ F(a, {
1248
1249
  weight: "semibold",
1249
1250
  children: o.upload.public
1250
- }), /* @__PURE__ */ I(a, {
1251
+ }), /* @__PURE__ */ F(a, {
1251
1252
  size: "xs",
1252
1253
  type: "secondary",
1253
1254
  children: o.upload.publicHint
1254
- })] }), /* @__PURE__ */ I(T, {
1255
+ })] }), /* @__PURE__ */ F(E, {
1255
1256
  "aria-label": o.upload.public,
1256
1257
  checked: t.public,
1257
1258
  onValueChange: (e) => u({ public: e })
@@ -1265,33 +1266,33 @@ function X({ stagedFiles: e, uploadOptions: t, collections: n = [], uploading: r
1265
1266
  }
1266
1267
  function We({ tab: e, selectedIds: t, selectionMode: n, stagedFiles: o, strings: s, onClearSelection: c, className: l }) {
1267
1268
  let u = t.length, d = o.reduce((e, t) => e + t.size, 0), f = o.length, p = r("media-library-footer-summary--component flex min-w-0 items-center gap-space-lg", l);
1268
- return e === "upload" ? /* @__PURE__ */ I("div", {
1269
+ return e === "upload" ? /* @__PURE__ */ F("div", {
1269
1270
  className: p,
1270
1271
  "aria-live": "polite",
1271
- children: /* @__PURE__ */ I(a, {
1272
+ children: /* @__PURE__ */ F(a, {
1272
1273
  size: "xs",
1273
1274
  type: "secondary",
1274
1275
  className: "truncate",
1275
1276
  children: f === 0 ? s.footer.noFiles : H(s.footer.stagedSummary, {
1276
1277
  count: f,
1277
- size: g(d) ?? s.unknownSize
1278
+ size: v(d) ?? s.unknownSize
1278
1279
  })
1279
1280
  })
1280
- }) : /* @__PURE__ */ I("div", {
1281
+ }) : /* @__PURE__ */ F("div", {
1281
1282
  className: p,
1282
1283
  "aria-live": "polite",
1283
- children: u > 0 ? /* @__PURE__ */ L(F, { children: [/* @__PURE__ */ I(a, {
1284
+ children: u > 0 ? /* @__PURE__ */ I(se, { children: [/* @__PURE__ */ F(a, {
1284
1285
  weight: "semibold",
1285
1286
  className: "whitespace-nowrap",
1286
1287
  children: H(s.footer.selectedCount, { count: u })
1287
- }), /* @__PURE__ */ I(i, {
1288
+ }), /* @__PURE__ */ F(i, {
1288
1289
  type: "button",
1289
1290
  tone: "secondary",
1290
1291
  buttonStyle: "ghost",
1291
1292
  size: "sm",
1292
1293
  onClick: c,
1293
1294
  children: s.footer.clear
1294
- })] }) : /* @__PURE__ */ I(a, {
1295
+ })] }) : /* @__PURE__ */ F(a, {
1295
1296
  size: "xs",
1296
1297
  type: "secondary",
1297
1298
  className: "truncate",
@@ -1299,18 +1300,18 @@ function We({ tab: e, selectedIds: t, selectionMode: n, stagedFiles: o, strings:
1299
1300
  })
1300
1301
  });
1301
1302
  }
1302
- function Z({ tab: e, selectedItems: t, selectedIds: n, stagedFiles: a, uploading: o = !1, strings: s, confirmLabel: c, cancelLabel: l, onCancel: u, onConfirm: d, onUpload: f, onCancelUpload: p, className: m }) {
1303
+ function Ge({ tab: e, selectedItems: t, selectedIds: n, stagedFiles: a, uploading: o = !1, strings: s, confirmLabel: c, cancelLabel: l, onCancel: u, onConfirm: d, onUpload: f, onCancelUpload: p, className: m }) {
1303
1304
  let h = n.length, g = a.length;
1304
- return e === "upload" ? /* @__PURE__ */ L("div", {
1305
+ return e === "upload" ? /* @__PURE__ */ I("div", {
1305
1306
  className: r("media-library-footer-actions--component flex min-w-0 flex-col-reverse gap-space-md @md/media-library:flex-row @md/media-library:justify-end", m),
1306
- children: [/* @__PURE__ */ I(i, {
1307
+ children: [/* @__PURE__ */ F(i, {
1307
1308
  type: "button",
1308
1309
  tone: "secondary",
1309
1310
  buttonStyle: "ghost",
1310
1311
  disabled: o,
1311
1312
  onClick: p,
1312
1313
  children: l ?? s.footer.cancel
1313
- }), /* @__PURE__ */ I(i, {
1314
+ }), /* @__PURE__ */ F(i, {
1314
1315
  tone: "primary",
1315
1316
  type: "button",
1316
1317
  disabled: g === 0 || o,
@@ -1319,15 +1320,15 @@ function Z({ tab: e, selectedItems: t, selectedIds: n, stagedFiles: a, uploading
1319
1320
  strings: { loading: s.footer.uploading },
1320
1321
  children: g <= 1 ? s.footer.upload : H(s.footer.uploadMany, { count: g })
1321
1322
  })]
1322
- }) : /* @__PURE__ */ L("div", {
1323
+ }) : /* @__PURE__ */ I("div", {
1323
1324
  className: r("media-library-footer-actions--component flex min-w-0 flex-col-reverse gap-space-md @md/media-library:flex-row @md/media-library:justify-end", m),
1324
- children: [/* @__PURE__ */ I(i, {
1325
+ children: [/* @__PURE__ */ F(i, {
1325
1326
  type: "button",
1326
1327
  tone: "secondary",
1327
1328
  buttonStyle: "ghost",
1328
1329
  onClick: u,
1329
1330
  children: l ?? s.footer.cancel
1330
- }), /* @__PURE__ */ I(i, {
1331
+ }), /* @__PURE__ */ F(i, {
1331
1332
  tone: "primary",
1332
1333
  type: "button",
1333
1334
  disabled: h === 0,
@@ -1336,19 +1337,19 @@ function Z({ tab: e, selectedItems: t, selectedIds: n, stagedFiles: a, uploading
1336
1337
  })]
1337
1338
  });
1338
1339
  }
1339
- function Ge({ tab: e, selectedItems: t, selectedIds: n, selectionMode: i, stagedFiles: a, uploading: o = !1, strings: s, confirmLabel: c, cancelLabel: l, onCancel: u, onConfirm: d, onClearSelection: f, onUpload: p, onCancelUpload: m, chrome: h = "section", className: g }) {
1340
- return /* @__PURE__ */ I("footer", {
1340
+ function Ke({ tab: e, selectedItems: t, selectedIds: n, selectionMode: i, stagedFiles: a, uploading: o = !1, strings: s, confirmLabel: c, cancelLabel: l, onCancel: u, onConfirm: d, onClearSelection: f, onUpload: p, onCancelUpload: m, chrome: h = "section", className: g }) {
1341
+ return /* @__PURE__ */ F("footer", {
1341
1342
  className: r("media-library-footer--component", h === "section" && "border-t border-border bg-background text-foreground p-surface", g),
1342
- children: /* @__PURE__ */ L("div", {
1343
+ children: /* @__PURE__ */ I("div", {
1343
1344
  className: "flex min-w-0 flex-col gap-space-lg @md/media-library:flex-row @md/media-library:justify-between",
1344
- children: [/* @__PURE__ */ I(We, {
1345
+ children: [/* @__PURE__ */ F(We, {
1345
1346
  tab: e,
1346
1347
  selectedIds: n,
1347
1348
  selectionMode: i,
1348
1349
  stagedFiles: a,
1349
1350
  strings: s,
1350
1351
  onClearSelection: f
1351
- }), /* @__PURE__ */ I(Z, {
1352
+ }), /* @__PURE__ */ F(Ge, {
1352
1353
  tab: e,
1353
1354
  selectedItems: t,
1354
1355
  selectedIds: n,
@@ -1367,8 +1368,8 @@ function Ge({ tab: e, selectedItems: t, selectedIds: n, selectionMode: i, staged
1367
1368
  }
1368
1369
  //#endregion
1369
1370
  //#region src/components/features/media-library/media-library.tsx
1370
- var Ke = j(null);
1371
- function qe(e, t, n) {
1371
+ var qe = j(null);
1372
+ function Je(e, t, n) {
1372
1373
  return N(() => {
1373
1374
  if (e) return e;
1374
1375
  let r = /* @__PURE__ */ new Set();
@@ -1386,28 +1387,28 @@ function qe(e, t, n) {
1386
1387
  t
1387
1388
  ]);
1388
1389
  }
1389
- function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelLabel: g, selectionMode: _ = "multiple", density: v = "comfortable", showMeta: y = !0, allowUpload: C = !0, typeFilters: w, confirmOnSelect: T = !1, onConfirm: E, onCancel: k, onClose: A, bulkActions: ee, strings: te, slots: j, heightClassName: M, className: N, items: P, fetcher: F, accessors: ae, collections: oe, value: R, defaultValue: z, onValueChange: se, onItemUpdate: B, onItemDelete: le, onItemReplace: V, onItemOpen: ue, onUpload: de, onError: fe, selecting: pe, defaultSelecting: me, onSelectingChange: he, tab: ge, defaultTab: ve, onTabChange: ye, view: Se, defaultView: Ce, onViewChange: U, query: we, defaultQuery: Te, onQueryChange: Ee, type: De, defaultType: Oe, onTypeChange: ke, collection: Ae, defaultCollection: je, onCollectionChange: Me, sort: Ne, defaultSort: Pe, onSortChange: Fe, uploadOptions: Le, defaultUploadOptions: Re, onUploadOptionsChange: W, ...ze }) {
1390
- let { defaultScale: Be } = e(), Ve = t(void 0, Be), G = n(xe, te), K = Ie({
1391
- items: P,
1392
- fetcher: F,
1393
- accessors: ae,
1394
- collections: oe,
1395
- selectionMode: _,
1396
- value: R,
1397
- defaultValue: z,
1398
- onValueChange: se,
1399
- onItemUpdate: B,
1400
- onItemDelete: le,
1401
- onUpload: de,
1402
- onError: fe,
1403
- tab: ge,
1390
+ function $({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelLabel: h, selectionMode: g = "multiple", density: v = "comfortable", showMeta: y = !0, allowUpload: b = !0, typeFilters: x, confirmOnSelect: w = !1, onConfirm: T, onCancel: E, onClose: D, bulkActions: te, strings: ne, slots: A, heightClassName: re, className: j, items: M, fetcher: N, accessors: P, collections: se, value: L, defaultValue: ce, onValueChange: R, onItemUpdate: z, onItemDelete: B, onItemReplace: ue, onItemOpen: de, onUpload: fe, onError: pe, selecting: me, defaultSelecting: he, onSelectingChange: ge, tab: _e, defaultTab: ve, onTabChange: ye, view: xe, defaultView: Se, onViewChange: we, query: Te, defaultQuery: U, onQueryChange: Ee, type: De, defaultType: Oe, onTypeChange: ke, collection: Ae, defaultCollection: je, onCollectionChange: Me, sort: Ne, defaultSort: Pe, onSortChange: Fe, uploadOptions: Ie, defaultUploadOptions: Le, onUploadOptionsChange: W, ...ze }) {
1391
+ let { defaultScale: Be } = e(), Ve = t(void 0, Be), G = n(Ce, ne), K = Re({
1392
+ items: M,
1393
+ fetcher: N,
1394
+ accessors: P,
1395
+ collections: se,
1396
+ selectionMode: g,
1397
+ value: L,
1398
+ defaultValue: ce,
1399
+ onValueChange: R,
1400
+ onItemUpdate: z,
1401
+ onItemDelete: B,
1402
+ onUpload: fe,
1403
+ onError: pe,
1404
+ tab: _e,
1404
1405
  defaultTab: ve,
1405
1406
  onTabChange: ye,
1406
- view: Se,
1407
- defaultView: Ce,
1408
- onViewChange: U,
1409
- query: we,
1410
- defaultQuery: Te,
1407
+ view: xe,
1408
+ defaultView: Se,
1409
+ onViewChange: we,
1410
+ query: Te,
1411
+ defaultQuery: U,
1411
1412
  onQueryChange: Ee,
1412
1413
  type: De,
1413
1414
  defaultType: Oe,
@@ -1418,33 +1419,33 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1418
1419
  sort: Ne,
1419
1420
  defaultSort: Pe,
1420
1421
  onSortChange: Fe,
1421
- uploadOptions: Le,
1422
- defaultUploadOptions: Re,
1422
+ uploadOptions: Ie,
1423
+ defaultUploadOptions: Le,
1423
1424
  onUploadOptionsChange: W,
1424
- selecting: pe,
1425
- defaultSelecting: me ?? T,
1426
- onSelectingChange: he
1427
- }), Je = qe(oe, K.items, K.accessors.getCollection), Q = C ? K.tab : "library", $ = K.detailId ? K.items.find((e) => K.accessors.getId(e) === K.detailId) ?? null : null, Ye = ne(Ke), Xe = !j?.footer, Ze = Ye && Xe ? /* @__PURE__ */ I(We, {
1428
- tab: Q,
1425
+ selecting: me,
1426
+ defaultSelecting: he ?? w,
1427
+ onSelectingChange: ge
1428
+ }), q = Je(se, K.items, K.accessors.getCollection), J = b ? K.tab : "library", $ = K.detailId ? K.items.find((e) => K.accessors.getId(e) === K.detailId) ?? null : null, Ye = ie(qe), Xe = !A?.footer, Ze = Ye && Xe ? /* @__PURE__ */ F(We, {
1429
+ tab: J,
1429
1430
  selectedIds: K.selectedIds,
1430
- selectionMode: _,
1431
+ selectionMode: g,
1431
1432
  stagedFiles: K.stagedFiles,
1432
1433
  strings: G,
1433
1434
  onClearSelection: K.clearSelection,
1434
1435
  className: "media-library-dialog--selection-summary shrink-0 justify-end"
1435
- }) : null, Qe = !!(o || c || p || j?.headerStart), $e = !!(C || j?.headerEnd || Ze), et = Qe || $e, tt = () => {
1436
- E?.(K.selectedItems, K.selectedIds), A?.();
1436
+ }) : null, Qe = !!(o || c || p || A?.headerStart), $e = !!(b || A?.headerEnd || Ze), et = Qe || $e, tt = () => {
1437
+ T?.(K.selectedItems, K.selectedIds), D?.();
1437
1438
  }, nt = () => {
1438
- k?.(), A?.();
1439
+ E?.(), D?.();
1439
1440
  }, rt = (e) => {
1440
1441
  let t = K.accessors.getId(e);
1441
- K.toggleSelection(t), T && (E?.([e], [t]), A?.());
1442
- }, it = ie(null), at = ie(null), ot = (e) => {
1442
+ K.toggleSelection(t), w && (T?.([e], [t]), D?.());
1443
+ }, it = oe(null), at = oe(null), ot = (e) => {
1443
1444
  at.current = document.activeElement instanceof HTMLElement ? document.activeElement : null, K.setDetailId(e);
1444
1445
  }, st = (e) => {
1445
- ue ? ue(e) : ot(K.accessors.getId(e));
1446
+ de ? de(e) : ot(K.accessors.getId(e));
1446
1447
  };
1447
- re(() => {
1448
+ ae(() => {
1448
1449
  if (K.detailId !== null) {
1449
1450
  at.current && it.current?.querySelector("[data-media-detail-close]")?.focus();
1450
1451
  return;
@@ -1459,15 +1460,15 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1459
1460
  }) : K.filteredCount === K.totalCount ? H(G.countAll, { count: K.totalCount }) : H(G.countFiltered, {
1460
1461
  count: K.filteredCount,
1461
1462
  total: K.totalCount
1462
- }), ut = !!ee && !(Ye || E && !T), dt = ie(null), ft = Q === "library" ? K.selectedIds.length : 0, pt = j?.footer ?? (ut && Q === "library" ? null : Ye ? /* @__PURE__ */ I(Z, {
1463
- tab: Q,
1463
+ }), ut = !!te && !(Ye || T && !w), dt = oe(null), ft = J === "library" ? K.selectedIds.length : 0, pt = A?.footer ?? (ut && J === "library" ? null : Ye ? /* @__PURE__ */ F(Ge, {
1464
+ tab: J,
1464
1465
  selectedItems: K.selectedItems,
1465
1466
  selectedIds: K.selectedIds,
1466
1467
  stagedFiles: K.stagedFiles,
1467
1468
  uploading: K.uploading,
1468
1469
  strings: G,
1469
1470
  confirmLabel: m,
1470
- cancelLabel: g,
1471
+ cancelLabel: h,
1471
1472
  onCancel: nt,
1472
1473
  onConfirm: tt,
1473
1474
  onUpload: K.startUpload,
@@ -1475,16 +1476,16 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1475
1476
  K.cancelUpload(), K.clearStagedFiles(), K.setTab("library");
1476
1477
  },
1477
1478
  className: "ml-auto"
1478
- }) : /* @__PURE__ */ I(Ge, {
1479
- tab: Q,
1479
+ }) : /* @__PURE__ */ F(Ke, {
1480
+ tab: J,
1480
1481
  selectedItems: K.selectedItems,
1481
1482
  selectedIds: K.selectedIds,
1482
- selectionMode: _,
1483
+ selectionMode: g,
1483
1484
  stagedFiles: K.stagedFiles,
1484
1485
  uploading: K.uploading,
1485
1486
  strings: G,
1486
1487
  confirmLabel: m,
1487
- cancelLabel: g,
1488
+ cancelLabel: h,
1488
1489
  onCancel: nt,
1489
1490
  onConfirm: tt,
1490
1491
  onClearSelection: K.clearSelection,
@@ -1493,68 +1494,68 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1493
1494
  K.cancelUpload(), K.clearStagedFiles(), K.setTab("library");
1494
1495
  }
1495
1496
  }));
1496
- return /* @__PURE__ */ L("section", {
1497
+ return /* @__PURE__ */ I("section", {
1497
1498
  ref: it,
1498
- className: r("media-library--component @container/media-library box-border flex min-h-0 flex-col overflow-hidden rounded-radius border border-border bg-background text-foreground", M ?? "h-190 max-h-[calc(100vh-7rem)]", N),
1499
+ className: r("media-library--component @container/media-library box-border flex min-h-0 flex-col overflow-hidden rounded-radius border border-border bg-background text-foreground", re ?? "h-190 max-h-[calc(100vh-7rem)]", j),
1499
1500
  ...ze,
1500
1501
  children: [
1501
- et && /* @__PURE__ */ L("header", {
1502
+ et && /* @__PURE__ */ I("header", {
1502
1503
  className: "media-library--header flex flex-col gap-space-lg border-b border-border p-surface @2xl/media-library:flex-row @2xl/media-library:items-center @2xl/media-library:justify-between",
1503
- children: [Qe && /* @__PURE__ */ L(l, {
1504
+ children: [Qe && /* @__PURE__ */ I(l, {
1504
1505
  direction: "horizontal",
1505
1506
  align: "start",
1506
1507
  gap: "lg",
1507
1508
  className: "min-w-0",
1508
- children: [j?.headerStart, (o || c || p) && /* @__PURE__ */ L(l, {
1509
+ children: [A?.headerStart, (o || c || p) && /* @__PURE__ */ I(l, {
1509
1510
  gap: "normal",
1510
1511
  className: "min-w-0",
1511
- children: [!!(o || c) && /* @__PURE__ */ I(u, {
1512
+ children: [!!(o || c) && /* @__PURE__ */ F(u, {
1512
1513
  title: o,
1513
1514
  suffix: c,
1514
1515
  className: "media-library--title"
1515
- }), !!p && /* @__PURE__ */ I(a, {
1516
+ }), !!p && /* @__PURE__ */ F(a, {
1516
1517
  type: "secondary",
1517
1518
  children: p
1518
1519
  })]
1519
1520
  })]
1520
- }), $e && /* @__PURE__ */ L("div", {
1521
+ }), $e && /* @__PURE__ */ I("div", {
1521
1522
  className: r("media-library--header-controls flex min-w-0 flex-wrap items-center gap-space-md", Ze ? "flex-1 justify-between" : "@2xl/media-library:justify-end"),
1522
- children: [/* @__PURE__ */ L(l, {
1523
+ children: [/* @__PURE__ */ I(l, {
1523
1524
  direction: "horizontal",
1524
1525
  wrap: !0,
1525
1526
  align: "center",
1526
1527
  gap: "md",
1527
1528
  className: "min-w-0",
1528
- children: [C && /* @__PURE__ */ L("div", {
1529
- className: r("media-library--tabs", D.frame, O[Ve]),
1529
+ children: [b && /* @__PURE__ */ I("div", {
1530
+ className: r("media-library--tabs", O.frame, k[Ve]),
1530
1531
  role: "tablist",
1531
- children: [/* @__PURE__ */ L(i, {
1532
+ children: [/* @__PURE__ */ I(i, {
1532
1533
  type: "button",
1533
1534
  role: "tab",
1534
- "aria-selected": Q === "library",
1535
+ "aria-selected": J === "library",
1535
1536
  tone: "secondary",
1536
1537
  buttonStyle: "ghost",
1537
1538
  size: "sm",
1538
- className: r(D.item, "shadow-none", Q === "library" ? `${h.segmentActive} hover:bg-card` : "text-muted-foreground hover:bg-transparent hover:text-foreground"),
1539
+ className: r(O.item, "shadow-none", J === "library" ? `${_.segmentActive} hover:bg-card` : "text-muted-foreground hover:bg-transparent hover:text-foreground"),
1539
1540
  onClick: () => K.setTab("library"),
1540
- children: [/* @__PURE__ */ I(ce, { className: "size-icon-md" }), G.tabs.library]
1541
- }), /* @__PURE__ */ L(i, {
1541
+ children: [/* @__PURE__ */ F(le, { className: "size-icon-md" }), G.tabs.library]
1542
+ }), /* @__PURE__ */ I(i, {
1542
1543
  type: "button",
1543
1544
  role: "tab",
1544
- "aria-selected": Q === "upload",
1545
+ "aria-selected": J === "upload",
1545
1546
  tone: "secondary",
1546
1547
  buttonStyle: "ghost",
1547
1548
  size: "sm",
1548
- className: r(D.item, "shadow-none", Q === "upload" ? `${h.segmentActive} hover:bg-card` : "text-muted-foreground hover:bg-transparent hover:text-foreground"),
1549
+ className: r(O.item, "shadow-none", J === "upload" ? `${_.segmentActive} hover:bg-card` : "text-muted-foreground hover:bg-transparent hover:text-foreground"),
1549
1550
  onClick: () => K.setTab("upload"),
1550
1551
  children: [
1551
- /* @__PURE__ */ I(_e, { className: "size-icon-md" }),
1552
+ /* @__PURE__ */ F(be, { className: "size-icon-md" }),
1552
1553
  G.tabs.upload,
1553
- K.stagedFiles.length > 0 && /* @__PURE__ */ I(x, {
1554
+ K.stagedFiles.length > 0 && /* @__PURE__ */ F(C, {
1554
1555
  size: "sm",
1555
1556
  tone: "secondary",
1556
1557
  className: "media-library--staged-count",
1557
- children: /* @__PURE__ */ I(b, {
1558
+ children: /* @__PURE__ */ F(S, {
1558
1559
  value: K.stagedFiles.length,
1559
1560
  size: "inherit",
1560
1561
  weight: "inherit",
@@ -1564,38 +1565,38 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1564
1565
  })
1565
1566
  ]
1566
1567
  })]
1567
- }), j?.headerEnd]
1568
+ }), A?.headerEnd]
1568
1569
  }), Ze]
1569
1570
  })]
1570
1571
  }),
1571
- /* @__PURE__ */ L("div", {
1572
+ /* @__PURE__ */ I("div", {
1572
1573
  className: "media-library--body flex min-h-0 flex-1",
1573
- children: [Q === "upload" ? /* @__PURE__ */ I("div", {
1574
+ children: [J === "upload" ? /* @__PURE__ */ F("div", {
1574
1575
  className: "min-w-0 flex-1 overflow-y-auto",
1575
- children: /* @__PURE__ */ I(X, {
1576
+ children: /* @__PURE__ */ F(Q, {
1576
1577
  stagedFiles: K.stagedFiles,
1577
1578
  uploadOptions: K.uploadOptions,
1578
- collections: Je,
1579
+ collections: q,
1579
1580
  uploading: K.uploading,
1580
1581
  strings: G,
1581
1582
  onFiles: K.addFiles,
1582
1583
  onRemoveFile: K.removeStagedFile,
1583
1584
  onOptionsChange: K.updateUploadOptions,
1584
- empty: j?.uploadEmpty
1585
+ empty: A?.uploadEmpty
1585
1586
  })
1586
- }) : /* @__PURE__ */ L("div", {
1587
+ }) : /* @__PURE__ */ I("div", {
1587
1588
  className: r("media-library--library min-w-0 flex-1 flex-col", $ ? "hidden @2xl/media-library:flex" : "flex"),
1588
- children: [/* @__PURE__ */ L(l, {
1589
+ children: [/* @__PURE__ */ I(l, {
1589
1590
  gap: "md",
1590
1591
  className: "media-library--toolbar border-b border-border/60 p-surface",
1591
- children: [/* @__PURE__ */ I(q, {
1592
+ children: [/* @__PURE__ */ F(He, {
1592
1593
  query: K.query,
1593
1594
  type: K.type,
1594
- typeFilters: w,
1595
+ typeFilters: x,
1595
1596
  collection: K.collection,
1596
1597
  sort: K.sort,
1597
1598
  view: K.view,
1598
- collections: Je,
1599
+ collections: q,
1599
1600
  strings: G,
1600
1601
  onQueryChange: K.setQuery,
1601
1602
  onTypeChange: K.setType,
@@ -1603,48 +1604,48 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1603
1604
  onSortChange: K.setSort,
1604
1605
  onViewChange: K.setView,
1605
1606
  onClearFilters: K.clearFilters,
1606
- toolbarEnd: j?.toolbarEnd,
1607
+ toolbarEnd: A?.toolbarEnd,
1607
1608
  selecting: K.selecting,
1608
1609
  onSelectingChange: K.setSelecting
1609
- }), /* @__PURE__ */ I(a, {
1610
+ }), /* @__PURE__ */ F(a, {
1610
1611
  size: "xs",
1611
1612
  type: "secondary",
1612
1613
  "aria-live": "polite",
1613
1614
  children: lt
1614
1615
  })]
1615
- }), /* @__PURE__ */ I("div", {
1616
+ }), /* @__PURE__ */ F("div", {
1616
1617
  ref: dt,
1617
1618
  role: "region",
1618
1619
  "aria-label": G.resultsLabel,
1619
1620
  tabIndex: 0,
1620
1621
  className: `media-library--results min-h-0 flex-1 overflow-y-auto p-surface focus-visible:outline-none ${s.inset}`,
1621
- children: K.loading ? j?.loading ?? /* @__PURE__ */ I(d, {
1622
+ children: K.loading ? A?.loading ?? /* @__PURE__ */ F(d, {
1622
1623
  className: "min-h-64",
1623
1624
  label: G.loading
1624
- }) : K.error ? j?.error ?? /* @__PURE__ */ I(f, {
1625
+ }) : K.error ? A?.error ?? /* @__PURE__ */ F(f, {
1625
1626
  title: G.errorTitle,
1626
1627
  description: G.errorDescription
1627
- }) : K.visibleItems.length === 0 ? j?.empty ?? /* @__PURE__ */ I(He, {
1628
+ }) : K.visibleItems.length === 0 ? A?.empty ?? /* @__PURE__ */ F(Y, {
1628
1629
  title: K.hasFilters ? G.emptyFilteredTitle : G.emptyLibraryTitle,
1629
1630
  description: K.hasFilters ? G.emptyFilteredDescription : G.emptyLibraryDescription,
1630
- action: K.hasFilters ? /* @__PURE__ */ I(i, {
1631
+ action: K.hasFilters ? /* @__PURE__ */ F(i, {
1631
1632
  type: "button",
1632
1633
  tone: "secondary",
1633
1634
  buttonStyle: "outline",
1634
1635
  onClick: K.clearFilters,
1635
1636
  children: G.clearFilters
1636
- }) : C ? /* @__PURE__ */ I(i, {
1637
+ }) : b ? /* @__PURE__ */ F(i, {
1637
1638
  tone: "primary",
1638
1639
  type: "button",
1639
1640
  onClick: () => K.setTab("upload"),
1640
1641
  children: G.uploadMedia
1641
1642
  }) : void 0
1642
- }) : K.view === "table" ? /* @__PURE__ */ I("div", {
1643
+ }) : K.view === "table" ? /* @__PURE__ */ F("div", {
1643
1644
  className: "overflow-x-auto",
1644
- children: /* @__PURE__ */ I(Ue, {
1645
+ children: /* @__PURE__ */ F(Z, {
1645
1646
  items: K.visibleItems,
1646
1647
  selectedSet: K.selectedSet,
1647
- selectionMode: _,
1648
+ selectionMode: g,
1648
1649
  accessors: K.accessors,
1649
1650
  strings: G,
1650
1651
  onToggle: (e) => {
@@ -1658,25 +1659,25 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1658
1659
  t && st(t);
1659
1660
  }
1660
1661
  })
1661
- }) : /* @__PURE__ */ I("div", {
1662
+ }) : /* @__PURE__ */ F("div", {
1662
1663
  className: r("media-library--grid grid min-w-0 gap-space-lg", v === "compact" ? "grid-cols-[repeat(auto-fill,minmax(136px,1fr))]" : "grid-cols-[repeat(auto-fill,minmax(168px,1fr))]"),
1663
1664
  children: K.visibleItems.map((e) => {
1664
1665
  let t = K.accessors.getId(e), n = {
1665
1666
  id: t,
1666
1667
  selected: K.selectedSet.has(t),
1667
- selectionMode: _,
1668
+ selectionMode: g,
1668
1669
  selecting: K.selecting,
1669
1670
  accessors: K.accessors,
1670
1671
  toggle: () => rt(e),
1671
1672
  openDetails: () => ot(t),
1672
1673
  open: () => st(e)
1673
- }, r = j?.renderItem?.(e, n);
1674
- return r ? /* @__PURE__ */ I("div", { children: r }, t) : /* @__PURE__ */ I(J, {
1674
+ }, r = A?.renderItem?.(e, n);
1675
+ return r ? /* @__PURE__ */ F("div", { children: r }, t) : /* @__PURE__ */ F(X, {
1675
1676
  item: e,
1676
1677
  selected: n.selected,
1677
1678
  density: v,
1678
1679
  showMeta: y,
1679
- selectionMode: _,
1680
+ selectionMode: g,
1680
1681
  accessors: K.accessors,
1681
1682
  strings: G,
1682
1683
  onToggle: n.toggle,
@@ -1687,24 +1688,24 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1687
1688
  })
1688
1689
  })
1689
1690
  })]
1690
- }), Q === "library" && /* @__PURE__ */ I(Y, {
1691
+ }), J === "library" && /* @__PURE__ */ F(Ue, {
1691
1692
  item: $,
1692
- collections: Je,
1693
+ collections: q,
1693
1694
  accessors: K.accessors,
1694
1695
  strings: G,
1695
1696
  onClose: () => K.setDetailId(null),
1696
1697
  onUpdate: (e) => $ ? K.updateItem($, e) : Promise.resolve(!1),
1697
- onReplace: V && $ ? () => V($) : void 0,
1698
+ onReplace: ue && $ ? () => ue($) : void 0,
1698
1699
  onRemove: async () => {
1699
1700
  if (!$) return !1;
1700
1701
  let e = await K.removeItem($);
1701
1702
  return e && K.setDetailId(null), e;
1702
1703
  },
1703
- renderDetail: j?.renderDetail
1704
+ renderDetail: A?.renderDetail
1704
1705
  })]
1705
1706
  }),
1706
- Ye ? Ye.element ? be(pt, Ye.element) : null : pt,
1707
- ut && /* @__PURE__ */ I(S, {
1707
+ Ye ? Ye.element ? V(pt, Ye.element) : null : pt,
1708
+ ut && /* @__PURE__ */ F(ee, {
1708
1709
  selectedCount: ft,
1709
1710
  totalCount: K.totalCount,
1710
1711
  onClear: K.clearSelection,
@@ -1715,7 +1716,7 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1715
1716
  summary: (e) => H(G.footer.selectedCount, { count: e }),
1716
1717
  clear: G.footer.clear
1717
1718
  },
1718
- children: ft > 0 && ee?.({
1719
+ children: ft > 0 && te?.({
1719
1720
  selectedItems: K.selectedItems,
1720
1721
  selectedIds: K.selectedIds,
1721
1722
  selectedCount: K.selectedIds.length,
@@ -1727,25 +1728,25 @@ function Je({ title: o, titleSuffix: c, description: p, confirmLabel: m, cancelL
1727
1728
  ]
1728
1729
  });
1729
1730
  }
1730
- function Q({ open: e, onOpenChange: t, trigger: i, dialogTitle: a, dialogDescription: o, onClose: s, className: c, dialogClassName: l, contentClassName: u, closeOnEscape: d = !0, closeOnBackdropClick: f = !0, ...p }) {
1731
- let h = n(xe, p.strings), [g, _] = P(!1), [v, y] = P(null), b = e !== void 0, x = b ? e : g, S = (e) => {
1731
+ function Ye({ open: e, onOpenChange: t, trigger: i, dialogTitle: a, dialogDescription: o, onClose: s, className: c, dialogClassName: l, contentClassName: u, closeOnEscape: d = !0, closeOnBackdropClick: f = !0, ...p }) {
1732
+ let m = n(Ce, p.strings), [h, _] = P(!1), [v, y] = P(null), b = e !== void 0, x = b ? e : h, S = (e) => {
1732
1733
  b || _(e), t?.(e);
1733
1734
  }, C = () => {
1734
1735
  S(!1), s?.();
1735
1736
  };
1736
- return /* @__PURE__ */ I(Ke.Provider, {
1737
+ return /* @__PURE__ */ F(qe.Provider, {
1737
1738
  value: { element: v },
1738
- children: /* @__PURE__ */ I(m, {
1739
+ children: /* @__PURE__ */ F(g, {
1739
1740
  open: x,
1740
1741
  onOpenChange: S,
1741
1742
  onClose: s,
1742
1743
  trigger: i,
1743
- title: a ?? h.title,
1744
- description: o ?? h.description,
1744
+ title: a ?? m.title,
1745
+ description: o ?? m.description,
1745
1746
  size: "full",
1746
1747
  showCancel: !1,
1747
1748
  showConfirm: !1,
1748
- footer: /* @__PURE__ */ I("div", {
1749
+ footer: /* @__PURE__ */ F("div", {
1749
1750
  ref: y,
1750
1751
  className: "media-library-dialog--footer @container/media-library w-full"
1751
1752
  }),
@@ -1753,7 +1754,7 @@ function Q({ open: e, onOpenChange: t, trigger: i, dialogTitle: a, dialogDescrip
1753
1754
  contentClassName: r("media-library-dialog--body flex min-h-0 flex-col overflow-hidden p-0", u),
1754
1755
  closeOnBackdropClick: f,
1755
1756
  closeOnEscape: d,
1756
- children: /* @__PURE__ */ I(Je, {
1757
+ children: /* @__PURE__ */ F($, {
1757
1758
  ...p,
1758
1759
  defaultSelecting: p.defaultSelecting ?? !0,
1759
1760
  onClose: C,
@@ -1766,45 +1767,45 @@ function Q({ open: e, onOpenChange: t, trigger: i, dialogTitle: a, dialogDescrip
1766
1767
  }
1767
1768
  //#endregion
1768
1769
  //#region src/components/features/media-library/media-resource-gallery.tsx
1769
- function $(e, t, n) {
1770
+ function Xe(e, t, n) {
1770
1771
  let r = e.slice(), [i] = r.splice(t, 1);
1771
1772
  return i === void 0 || r.splice(n, 0, i), r;
1772
1773
  }
1773
- function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, onPrimaryChange: u, onRemove: d, onReorder: f, onAdd: p, maxItems: m, layout: g = "field", density: v = "comfortable", readOnly: y = !1, empty: b, action: S, renderItem: C, strings: w, className: T, ...E }) {
1774
- let D = n(xe, w), O = Te(t), A = e.length, ee = c ?? (A > 0 ? O.getId(e[0]) : void 0), te = !y && !!p && (m === void 0 || A < m), j = te && (g === "field" || A > 0) ? /* @__PURE__ */ I(i, {
1774
+ function Ze({ items: e, accessors: t, title: o, description: s, primaryId: c, onPrimaryChange: u, onRemove: d, onReorder: f, onAdd: p, maxItems: h, layout: g = "field", density: v = "comfortable", readOnly: b = !1, empty: x, action: S, renderItem: ee, strings: w, className: T, ...E }) {
1775
+ let D = n(Ce, w), O = De(t), k = e.length, ne = c ?? (k > 0 ? O.getId(e[0]) : void 0), A = !b && !!p && (h === void 0 || k < h), re = A && (g === "field" || k > 0) ? /* @__PURE__ */ F(i, {
1775
1776
  type: "button",
1776
1777
  tone: "secondary",
1777
1778
  buttonStyle: "outline",
1778
- icon: pe,
1779
+ icon: ge,
1779
1780
  onClick: p,
1780
1781
  children: D.gallery.add
1781
- }) : m !== void 0 && A >= m ? /* @__PURE__ */ I(x, {
1782
+ }) : h !== void 0 && k >= h ? /* @__PURE__ */ F(C, {
1782
1783
  tone: "secondary",
1783
1784
  children: D.gallery.maxReached
1784
- }) : null, M = (t, n) => {
1785
- if (n < 0 || n >= A || t === n) return;
1786
- let r = $(e, t, n);
1785
+ }) : null, j = (t, n) => {
1786
+ if (n < 0 || n >= k || t === n) return;
1787
+ let r = Xe(e, t, n);
1787
1788
  f?.(r.map((e) => O.getId(e)), r);
1788
- }, ne = !!(o || s || S || j), re = A === 0 && g !== "field", N = () => !te || g !== "field" ? null : /* @__PURE__ */ L("button", {
1789
+ }, M = !!(o || s || S || re), ie = k === 0 && g !== "field", ae = () => !A || g !== "field" ? null : /* @__PURE__ */ I("button", {
1789
1790
  type: "button",
1790
- className: r("media-resource-gallery--add-tile box-border m-0 inline-flex w-full cursor-pointer items-center justify-center p-space-md font-sans rounded-radius border border-dashed border-border bg-background text-muted-foreground shadow-none", `aspect-square ${k.hover}`),
1791
+ className: r("media-resource-gallery--add-tile box-border m-0 inline-flex w-full cursor-pointer items-center justify-center p-space-md font-sans rounded-radius border border-dashed border-border bg-background text-muted-foreground shadow-none", `aspect-square ${te.hover}`),
1791
1792
  "aria-label": D.gallery.addTile,
1792
1793
  onClick: p,
1793
- children: [/* @__PURE__ */ I(pe, { className: "size-icon" }), /* @__PURE__ */ I(a, {
1794
+ children: [/* @__PURE__ */ F(ge, { className: "size-icon" }), /* @__PURE__ */ F(a, {
1794
1795
  tag: "span",
1795
1796
  size: "inherit",
1796
1797
  className: "sr-only",
1797
1798
  children: D.gallery.addTile
1798
1799
  })]
1799
1800
  });
1800
- return /* @__PURE__ */ L("section", {
1801
+ return /* @__PURE__ */ I("section", {
1801
1802
  className: r("media-resource-gallery--component @container/media-resource-gallery rounded-radius border border-border bg-card text-card-foreground shadow-xs", T),
1802
1803
  "data-layout": g,
1803
1804
  "data-gallery-density": v,
1804
1805
  ...E,
1805
- children: [ne && /* @__PURE__ */ I("header", {
1806
+ children: [M && /* @__PURE__ */ F("header", {
1806
1807
  className: "media-resource-gallery--header p-surface",
1807
- children: /* @__PURE__ */ L(l, {
1808
+ children: /* @__PURE__ */ I(l, {
1808
1809
  direction: {
1809
1810
  base: "vertical",
1810
1811
  md: "horizontal"
@@ -1812,84 +1813,84 @@ function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, on
1812
1813
  gap: "lg",
1813
1814
  align: { md: "start" },
1814
1815
  justify: { md: "between" },
1815
- children: [/* @__PURE__ */ L(l, {
1816
+ children: [/* @__PURE__ */ I(l, {
1816
1817
  gap: "normal",
1817
1818
  className: "min-w-0",
1818
- children: [!!o && /* @__PURE__ */ I(a, {
1819
+ children: [!!o && /* @__PURE__ */ F(a, {
1819
1820
  tag: "div",
1820
1821
  type: "inherit",
1821
1822
  weight: "semibold",
1822
1823
  children: o
1823
- }), !!s && /* @__PURE__ */ I(a, {
1824
+ }), !!s && /* @__PURE__ */ F(a, {
1824
1825
  type: "secondary",
1825
1826
  children: s
1826
1827
  })]
1827
- }), /* @__PURE__ */ I(l, {
1828
+ }), /* @__PURE__ */ F(l, {
1828
1829
  direction: "horizontal",
1829
1830
  wrap: !0,
1830
1831
  align: "center",
1831
- gap: "md",
1832
+ gap: m.commands,
1832
1833
  className: "media-resource-gallery--actions",
1833
- children: S ?? j
1834
+ children: S ?? re
1834
1835
  })]
1835
1836
  })
1836
- }), re ? /* @__PURE__ */ I("div", {
1837
+ }), ie ? /* @__PURE__ */ F("div", {
1837
1838
  className: "media-resource-gallery--empty px-surface pb-surface",
1838
- children: b ?? /* @__PURE__ */ I(He, {
1839
+ children: x ?? /* @__PURE__ */ F(Y, {
1839
1840
  title: D.gallery.emptyTitle,
1840
1841
  description: D.gallery.emptyDescription,
1841
- action: te ? /* @__PURE__ */ I(i, {
1842
+ action: A ? /* @__PURE__ */ F(i, {
1842
1843
  tone: "primary",
1843
1844
  type: "button",
1844
- icon: B,
1845
+ icon: ue,
1845
1846
  onClick: p,
1846
1847
  children: D.gallery.add
1847
1848
  }) : void 0
1848
1849
  })
1849
- }) : /* @__PURE__ */ L("div", {
1850
- className: r("grid min-w-0 grid-cols-1", g === "list" ? "gap-space-md" : "gap-space-lg", "media-resource-gallery--items p-surface", ne && "pt-0", g === "list" ? void 0 : g === "field" ? "grid-cols-[repeat(auto-fill,minmax(96px,1fr))] @md/media-resource-gallery:grid-cols-[repeat(auto-fill,minmax(108px,1fr))]" : v === "compact" ? "grid-cols-[repeat(auto-fill,minmax(132px,1fr))]" : "grid-cols-[repeat(auto-fill,minmax(164px,1fr))]"),
1850
+ }) : /* @__PURE__ */ I("div", {
1851
+ className: r("grid min-w-0 grid-cols-1", g === "list" ? "gap-space-md" : "gap-space-lg", "media-resource-gallery--items p-surface", M && "pt-0", g === "list" ? void 0 : g === "field" ? "grid-cols-[repeat(auto-fill,minmax(96px,1fr))] @md/media-resource-gallery:grid-cols-[repeat(auto-fill,minmax(108px,1fr))]" : v === "compact" ? "grid-cols-[repeat(auto-fill,minmax(132px,1fr))]" : "grid-cols-[repeat(auto-fill,minmax(164px,1fr))]"),
1851
1852
  children: [e.map((e, t) => {
1852
- let n = O.getId(e), o = O.getName(e), s = O.getType(e), c = O.getSrc(e), f = O.getAlt(e) || o, p = n === ee, m = O.getPublic(e) === !1, b = O.getDuration(e), S = t > 0, w = t < A - 1, T = C?.(e, {
1853
+ let n = O.getId(e), o = O.getName(e), s = O.getType(e), c = O.getSrc(e), f = O.getAlt(e) || o, p = n === ne, m = O.getPublic(e) === !1, h = O.getDuration(e), x = t > 0, S = t < k - 1, w = ee?.(e, {
1853
1854
  id: n,
1854
1855
  index: t,
1855
- total: A,
1856
+ total: k,
1856
1857
  primary: p,
1857
1858
  accessors: O,
1858
- canMovePrevious: S,
1859
- canMoveNext: w,
1859
+ canMovePrevious: x,
1860
+ canMoveNext: S,
1860
1861
  setPrimary: () => u?.(n, e),
1861
1862
  remove: () => d?.(n, e),
1862
- movePrevious: () => M(t, t - 1),
1863
- moveNext: () => M(t, t + 1)
1863
+ movePrevious: () => j(t, t - 1),
1864
+ moveNext: () => j(t, t + 1)
1864
1865
  });
1865
- return T ? /* @__PURE__ */ I("div", { children: T }, n) : g === "field" ? /* @__PURE__ */ L("div", {
1866
- className: r("media-resource-gallery--item group/gallery relative aspect-square overflow-hidden rounded-radius border border-border bg-background text-foreground shadow-xs", `transition-colors ${h.tileHover}`, p && "col-span-2 row-span-2 min-h-52"),
1866
+ return w ? /* @__PURE__ */ F("div", { children: w }, n) : g === "field" ? /* @__PURE__ */ I("div", {
1867
+ className: r("media-resource-gallery--item group/gallery relative aspect-square overflow-hidden rounded-radius border border-border bg-background text-foreground shadow-xs", `transition-colors ${_.tileHover}`, p && "col-span-2 row-span-2 min-h-52"),
1867
1868
  "data-primary": p || void 0,
1868
1869
  children: [
1869
- c ? /* @__PURE__ */ I("img", {
1870
+ c ? /* @__PURE__ */ F("img", {
1870
1871
  src: c,
1871
1872
  alt: f,
1872
1873
  loading: "lazy",
1873
1874
  className: "size-full object-cover"
1874
- }) : /* @__PURE__ */ I("div", {
1875
+ }) : /* @__PURE__ */ F("div", {
1875
1876
  className: "flex size-full items-center justify-center bg-muted text-muted-foreground",
1876
- children: /* @__PURE__ */ I(z, { className: p ? "size-7" : "size-icon-lg" })
1877
+ children: /* @__PURE__ */ F(z, { className: p ? "size-7" : "size-icon-lg" })
1877
1878
  }),
1878
- p && /* @__PURE__ */ I(x, {
1879
+ p && /* @__PURE__ */ F(C, {
1879
1880
  tone: "secondary",
1880
1881
  className: "absolute left-2 top-2 bg-background shadow-xs",
1881
1882
  children: D.gallery.cover
1882
1883
  }),
1883
- s === "video" && !!b && /* @__PURE__ */ L(x, {
1884
+ s === "video" && !!h && /* @__PURE__ */ I(C, {
1884
1885
  tone: "secondary",
1885
1886
  className: "absolute bottom-2 left-2 bg-foreground text-background",
1886
- children: [/* @__PURE__ */ I(fe, { className: "size-icon-sm fill-current" }), b]
1887
+ children: [/* @__PURE__ */ F(he, { className: "size-icon-sm fill-current" }), h]
1887
1888
  }),
1888
- m && /* @__PURE__ */ I("span", {
1889
+ m && /* @__PURE__ */ F("span", {
1889
1890
  className: "absolute bottom-2 right-2 inline-flex size-6 items-center justify-center rounded-full border border-border bg-background text-muted-foreground shadow-xs",
1890
- children: /* @__PURE__ */ I(de, { className: "size-icon-sm" })
1891
+ children: /* @__PURE__ */ F(me, { className: "size-icon-sm" })
1891
1892
  }),
1892
- !y && /* @__PURE__ */ I(i, {
1893
+ !b && /* @__PURE__ */ F(i, {
1893
1894
  type: "button",
1894
1895
  tone: "secondary",
1895
1896
  buttonStyle: "solid",
@@ -1898,10 +1899,10 @@ function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, on
1898
1899
  className: "absolute right-2 top-2 opacity-0 shadow-sm transition-opacity group-hover/gallery:opacity-100 group-focus-within/gallery:opacity-100",
1899
1900
  "aria-label": D.gallery.remove,
1900
1901
  onClick: () => d?.(n, e),
1901
- children: /* @__PURE__ */ I(ye, { className: "size-icon-md" })
1902
+ children: /* @__PURE__ */ F(Se, { className: "size-icon-md" })
1902
1903
  })
1903
1904
  ]
1904
- }, n) : g === "list" ? /* @__PURE__ */ L(l, {
1905
+ }, n) : g === "list" ? /* @__PURE__ */ I(l, {
1905
1906
  direction: "horizontal",
1906
1907
  wrap: !0,
1907
1908
  align: "center",
@@ -1909,45 +1910,45 @@ function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, on
1909
1910
  className: r("media-resource-gallery--item min-w-0 rounded-radius border border-border bg-background text-foreground px-row-x", v === "compact" ? "py-row-y-sm" : "py-row-y"),
1910
1911
  "data-primary": p || void 0,
1911
1912
  children: [
1912
- /* @__PURE__ */ I("div", {
1913
+ /* @__PURE__ */ F("div", {
1913
1914
  className: "relative size-12 shrink-0 overflow-hidden rounded-inner bg-muted",
1914
- children: c ? /* @__PURE__ */ I("img", {
1915
+ children: c ? /* @__PURE__ */ F("img", {
1915
1916
  src: c,
1916
1917
  alt: f,
1917
1918
  loading: "lazy",
1918
1919
  className: "size-full object-cover"
1919
- }) : /* @__PURE__ */ I("div", {
1920
+ }) : /* @__PURE__ */ F("div", {
1920
1921
  className: "flex size-full items-center justify-center text-muted-foreground",
1921
- children: /* @__PURE__ */ I(z, { className: "size-icon" })
1922
+ children: /* @__PURE__ */ F(z, { className: "size-icon" })
1922
1923
  })
1923
1924
  }),
1924
- /* @__PURE__ */ L("div", {
1925
+ /* @__PURE__ */ I("div", {
1925
1926
  className: "min-w-0 flex-1",
1926
- children: [/* @__PURE__ */ L(l, {
1927
+ children: [/* @__PURE__ */ I(l, {
1927
1928
  direction: "horizontal",
1928
1929
  wrap: !0,
1929
1930
  align: "center",
1930
1931
  gap: "md",
1931
1932
  className: "min-w-0",
1932
- children: [/* @__PURE__ */ I(a, {
1933
+ children: [/* @__PURE__ */ F(a, {
1933
1934
  tag: "div",
1934
1935
  weight: "semibold",
1935
1936
  className: "min-w-0 break-all",
1936
1937
  children: o
1937
- }), p && /* @__PURE__ */ I(x, {
1938
+ }), p && /* @__PURE__ */ F(C, {
1938
1939
  tone: "secondary",
1939
1940
  children: D.gallery.primary
1940
1941
  })]
1941
- }), /* @__PURE__ */ L(a, {
1942
+ }), /* @__PURE__ */ I(a, {
1942
1943
  size: "xs",
1943
1944
  type: "secondary",
1944
1945
  children: [
1945
1946
  H(D.gallery.itemPosition, {
1946
1947
  index: t + 1,
1947
- total: A
1948
+ total: k
1948
1949
  }),
1949
1950
  " · ",
1950
- /* @__PURE__ */ I(_, {
1951
+ /* @__PURE__ */ F(y, {
1951
1952
  value: O.getSize(e),
1952
1953
  size: "xs",
1953
1954
  align: "left",
@@ -1956,10 +1957,10 @@ function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, on
1956
1957
  ]
1957
1958
  })]
1958
1959
  }),
1959
- !y && /* @__PURE__ */ L("div", {
1960
+ !b && /* @__PURE__ */ I("div", {
1960
1961
  className: "media-resource-gallery--item-actions flex basis-full flex-wrap items-center justify-end gap-space-xs @sm/media-resource-gallery:basis-auto",
1961
1962
  children: [
1962
- /* @__PURE__ */ I(i, {
1963
+ /* @__PURE__ */ F(i, {
1963
1964
  type: "button",
1964
1965
  tone: "secondary",
1965
1966
  buttonStyle: "ghost",
@@ -1968,31 +1969,31 @@ function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, on
1968
1969
  disabled: p,
1969
1970
  "aria-label": D.gallery.setPrimary,
1970
1971
  onClick: () => u?.(n, e),
1971
- children: /* @__PURE__ */ I(he, { className: "size-icon-md" })
1972
+ children: /* @__PURE__ */ F(ve, { className: "size-icon-md" })
1972
1973
  }),
1973
- /* @__PURE__ */ I(i, {
1974
+ /* @__PURE__ */ F(i, {
1974
1975
  type: "button",
1975
1976
  tone: "secondary",
1976
1977
  buttonStyle: "ghost",
1977
1978
  size: "sm",
1978
1979
  iconOnly: !0,
1979
- disabled: !S,
1980
+ disabled: !x,
1980
1981
  "aria-label": D.gallery.movePrevious,
1981
- onClick: () => M(t, t - 1),
1982
- children: /* @__PURE__ */ I(ae, { className: "size-icon-md" })
1982
+ onClick: () => j(t, t - 1),
1983
+ children: /* @__PURE__ */ F(L, { className: "size-icon-md" })
1983
1984
  }),
1984
- /* @__PURE__ */ I(i, {
1985
+ /* @__PURE__ */ F(i, {
1985
1986
  type: "button",
1986
1987
  tone: "secondary",
1987
1988
  buttonStyle: "ghost",
1988
1989
  size: "sm",
1989
1990
  iconOnly: !0,
1990
- disabled: !w,
1991
+ disabled: !S,
1991
1992
  "aria-label": D.gallery.moveNext,
1992
- onClick: () => M(t, t + 1),
1993
- children: /* @__PURE__ */ I(oe, { className: "size-icon-md" })
1993
+ onClick: () => j(t, t + 1),
1994
+ children: /* @__PURE__ */ F(ce, { className: "size-icon-md" })
1994
1995
  }),
1995
- /* @__PURE__ */ I(i, {
1996
+ /* @__PURE__ */ F(i, {
1996
1997
  type: "button",
1997
1998
  tone: "destructive",
1998
1999
  buttonStyle: "ghost",
@@ -2000,60 +2001,60 @@ function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, on
2000
2001
  iconOnly: !0,
2001
2002
  "aria-label": D.gallery.remove,
2002
2003
  onClick: () => d?.(n, e),
2003
- children: /* @__PURE__ */ I(ge, { className: "size-icon-md" })
2004
+ children: /* @__PURE__ */ F(ye, { className: "size-icon-md" })
2004
2005
  })
2005
2006
  ]
2006
2007
  })
2007
2008
  ]
2008
- }, n) : /* @__PURE__ */ L("div", {
2009
- className: `media-resource-gallery--item group/gallery overflow-hidden rounded-radius border border-border bg-background text-foreground shadow-xs transition-colors ${h.tileHover}`,
2009
+ }, n) : /* @__PURE__ */ I("div", {
2010
+ className: `media-resource-gallery--item group/gallery overflow-hidden rounded-radius border border-border bg-background text-foreground shadow-xs transition-colors ${_.tileHover}`,
2010
2011
  "data-primary": p || void 0,
2011
- children: [/* @__PURE__ */ L("div", {
2012
+ children: [/* @__PURE__ */ I("div", {
2012
2013
  className: "relative aspect-[4/3] bg-muted",
2013
- children: [c ? /* @__PURE__ */ I("img", {
2014
+ children: [c ? /* @__PURE__ */ F("img", {
2014
2015
  src: c,
2015
2016
  alt: f,
2016
2017
  loading: "lazy",
2017
2018
  className: "size-full object-cover"
2018
- }) : /* @__PURE__ */ I("div", {
2019
+ }) : /* @__PURE__ */ F("div", {
2019
2020
  className: "flex size-full items-center justify-center text-muted-foreground",
2020
- children: /* @__PURE__ */ I(z, { className: "size-6" })
2021
- }), /* @__PURE__ */ L("div", {
2021
+ children: /* @__PURE__ */ F(z, { className: "size-6" })
2022
+ }), /* @__PURE__ */ I("div", {
2022
2023
  className: "absolute left-2 top-2 flex flex-wrap gap-space-xs",
2023
- children: [p && /* @__PURE__ */ I(x, {
2024
+ children: [p && /* @__PURE__ */ F(C, {
2024
2025
  tone: "secondary",
2025
2026
  className: "bg-card text-card-foreground",
2026
2027
  children: D.gallery.primary
2027
- }), /* @__PURE__ */ I(x, {
2028
+ }), /* @__PURE__ */ F(C, {
2028
2029
  tone: "secondary",
2029
2030
  className: "bg-card text-card-foreground",
2030
2031
  children: H(D.gallery.itemPosition, {
2031
2032
  index: t + 1,
2032
- total: A
2033
+ total: k
2033
2034
  })
2034
2035
  })]
2035
2036
  })]
2036
- }), /* @__PURE__ */ I("div", {
2037
+ }), /* @__PURE__ */ F("div", {
2037
2038
  className: r("media-resource-gallery--item-body", v === "compact" ? "p-surface-xs" : "p-surface"),
2038
- children: /* @__PURE__ */ L(l, {
2039
+ children: /* @__PURE__ */ I(l, {
2039
2040
  gap: "md",
2040
- children: [/* @__PURE__ */ L("div", {
2041
+ children: [/* @__PURE__ */ I("div", {
2041
2042
  className: "min-w-0",
2042
- children: [/* @__PURE__ */ I(a, {
2043
+ children: [/* @__PURE__ */ F(a, {
2043
2044
  tag: "div",
2044
2045
  weight: "semibold",
2045
2046
  className: "truncate",
2046
2047
  children: o
2047
- }), /* @__PURE__ */ I(_, {
2048
+ }), /* @__PURE__ */ F(y, {
2048
2049
  value: O.getSize(e),
2049
2050
  size: "xs",
2050
2051
  align: "left",
2051
2052
  emptyLabel: D.unknownSize
2052
2053
  })]
2053
- }), !y && /* @__PURE__ */ L("div", {
2054
+ }), !b && /* @__PURE__ */ I("div", {
2054
2055
  className: "flex items-center gap-space-xs",
2055
2056
  children: [
2056
- /* @__PURE__ */ I(i, {
2057
+ /* @__PURE__ */ F(i, {
2057
2058
  type: "button",
2058
2059
  tone: "secondary",
2059
2060
  buttonStyle: "ghost",
@@ -2062,31 +2063,31 @@ function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, on
2062
2063
  disabled: p,
2063
2064
  "aria-label": D.gallery.setPrimary,
2064
2065
  onClick: () => u?.(n, e),
2065
- children: /* @__PURE__ */ I(he, { className: "size-icon-md" })
2066
+ children: /* @__PURE__ */ F(ve, { className: "size-icon-md" })
2066
2067
  }),
2067
- /* @__PURE__ */ I(i, {
2068
+ /* @__PURE__ */ F(i, {
2068
2069
  type: "button",
2069
2070
  tone: "secondary",
2070
2071
  buttonStyle: "ghost",
2071
2072
  size: "sm",
2072
2073
  iconOnly: !0,
2073
- disabled: !S,
2074
+ disabled: !x,
2074
2075
  "aria-label": D.gallery.movePrevious,
2075
- onClick: () => M(t, t - 1),
2076
- children: /* @__PURE__ */ I(ae, { className: "size-icon-md" })
2076
+ onClick: () => j(t, t - 1),
2077
+ children: /* @__PURE__ */ F(L, { className: "size-icon-md" })
2077
2078
  }),
2078
- /* @__PURE__ */ I(i, {
2079
+ /* @__PURE__ */ F(i, {
2079
2080
  type: "button",
2080
2081
  tone: "secondary",
2081
2082
  buttonStyle: "ghost",
2082
2083
  size: "sm",
2083
2084
  iconOnly: !0,
2084
- disabled: !w,
2085
+ disabled: !S,
2085
2086
  "aria-label": D.gallery.moveNext,
2086
- onClick: () => M(t, t + 1),
2087
- children: /* @__PURE__ */ I(oe, { className: "size-icon-md" })
2087
+ onClick: () => j(t, t + 1),
2088
+ children: /* @__PURE__ */ F(ce, { className: "size-icon-md" })
2088
2089
  }),
2089
- /* @__PURE__ */ I(i, {
2090
+ /* @__PURE__ */ F(i, {
2090
2091
  type: "button",
2091
2092
  tone: "destructive",
2092
2093
  buttonStyle: "ghost",
@@ -2095,18 +2096,18 @@ function Ye({ items: e, accessors: t, title: o, description: s, primaryId: c, on
2095
2096
  className: "ml-auto",
2096
2097
  "aria-label": D.gallery.remove,
2097
2098
  onClick: () => d?.(n, e),
2098
- children: /* @__PURE__ */ I(ge, { className: "size-icon-md" })
2099
+ children: /* @__PURE__ */ F(ye, { className: "size-icon-md" })
2099
2100
  })
2100
2101
  ]
2101
2102
  })]
2102
2103
  })
2103
2104
  })]
2104
2105
  }, n);
2105
- }), N()]
2106
+ }), ae()]
2106
2107
  })]
2107
2108
  });
2108
2109
  }
2109
2110
  //#endregion
2110
- export { Je as MediaLibrary, J as MediaLibraryCard, Y as MediaLibraryDetailPanel, Q as MediaLibraryDialog, He as MediaLibraryEmptyState, Ge as MediaLibraryFooter, Ue as MediaLibraryList, q as MediaLibraryToolbar, X as MediaLibraryUploadPanel, Ye as MediaResourceGallery, xe as defaultMediaLibraryStrings, Ee as formatMediaLibrarySize, H as formatMediaLibraryString, De as getMediaLibraryDimensions, Te as resolveMediaLibraryAccessors, Ie as useMediaLibrary };
2111
+ export { $ as MediaLibrary, X as MediaLibraryCard, Ue as MediaLibraryDetailPanel, Ye as MediaLibraryDialog, Y as MediaLibraryEmptyState, Ke as MediaLibraryFooter, Z as MediaLibraryList, He as MediaLibraryToolbar, Q as MediaLibraryUploadPanel, Ze as MediaResourceGallery, Ce as defaultMediaLibraryStrings, Oe as formatMediaLibrarySize, H as formatMediaLibraryString, ke as getMediaLibraryDimensions, De as resolveMediaLibraryAccessors, Re as useMediaLibrary };
2111
2112
 
2112
2113
  //# sourceMappingURL=media-library.js.map