themelia-react-ui 2.0.3 → 2.0.5

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