themelia-react-ui 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (435) hide show
  1. package/CHANGELOG.md +67 -7
  2. package/README.md +70 -37
  3. package/THIRD_PARTY_NOTICES.md +6 -12
  4. package/dist/{accordion-Cjb6sx0G.js → accordion-96o0pN62.js} +5 -5
  5. package/dist/{accordion-Cjb6sx0G.js.map → accordion-96o0pN62.js.map} +1 -1
  6. package/dist/action-menu-CHgs8vmj.js +281 -0
  7. package/dist/action-menu-CHgs8vmj.js.map +1 -0
  8. package/dist/{affordance-geometry.generated-tF36bREk.js → affordance-geometry.generated-B8yGOr8-.js} +7 -1
  9. package/dist/affordance-geometry.generated-B8yGOr8-.js.map +1 -0
  10. package/dist/{ai-artifact-DvTwDVyL.js → ai-artifact-BZUGwBq6.js} +277 -276
  11. package/dist/ai-artifact-BZUGwBq6.js.map +1 -0
  12. package/dist/{app-shell-C4FhvCqF.js → app-shell-D63ATkIK.js} +84 -83
  13. package/dist/app-shell-D63ATkIK.js.map +1 -0
  14. package/dist/{attachment-BxDfL2mw.js → attachment-DkoqHPPl.js} +7 -7
  15. package/dist/{attachment-BxDfL2mw.js.map → attachment-DkoqHPPl.js.map} +1 -1
  16. package/dist/{auth-ax2BqjrI.js → auth-D2FVZ1MH.js} +10 -10
  17. package/dist/{auth-ax2BqjrI.js.map → auth-D2FVZ1MH.js.map} +1 -1
  18. package/dist/{avatar-DAPlDvhJ.js → avatar-DWO_HHhB.js} +5 -5
  19. package/dist/{avatar-DAPlDvhJ.js.map → avatar-DWO_HHhB.js.map} +1 -1
  20. package/dist/{badge-HpFqoqSY.js → badge-DErMA7ul.js} +4 -4
  21. package/dist/{badge-HpFqoqSY.js.map → badge-DErMA7ul.js.map} +1 -1
  22. package/dist/base/accordion.js +1 -1
  23. package/dist/base/action-menu.js +1 -1
  24. package/dist/base/attachment.js +1 -1
  25. package/dist/base/avatar.js +1 -1
  26. package/dist/base/badge.js +1 -1
  27. package/dist/base/batch-action-bar.js +1 -1
  28. package/dist/base/buttons.js +1 -1
  29. package/dist/base/cards.js +2 -2
  30. package/dist/base/carousel.js +3 -3
  31. package/dist/base/cascader.js +13 -13
  32. package/dist/base/chart.js +1 -1
  33. package/dist/base/choice-inputs.js +2 -2
  34. package/dist/base/code-block.js +1 -1
  35. package/dist/base/combobox.js +2 -2
  36. package/dist/base/command.js +1 -1
  37. package/dist/base/copyable.js +1 -1
  38. package/dist/base/date-pickers.js +2 -2
  39. package/dist/base/display.js +6 -6
  40. package/dist/base/feedback.js +3 -3
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +3 -3
  43. package/dist/base/inline-edit.js +10 -10
  44. package/dist/base/item.js +1 -1
  45. package/dist/base/media-gallery.js +1 -1
  46. package/dist/base/metadata-list.js +1 -1
  47. package/dist/base/navigation.js +6 -6
  48. package/dist/base/popover-menu.js +1 -1
  49. package/dist/base/popover.js +1 -1
  50. package/dist/base/qr-code.js +1 -1
  51. package/dist/base/repeaters.js +9 -9
  52. package/dist/base/sheet.js +1 -1
  53. package/dist/base/sidebar.js +1 -1
  54. package/dist/base/signature-pad.js +6 -6
  55. package/dist/base/skeleton.js +1 -1
  56. package/dist/base/spinner.js +4 -4
  57. package/dist/base/structure.js +1 -1
  58. package/dist/base/table.js +1 -1
  59. package/dist/base/text-inputs.js +2 -2
  60. package/dist/base/toaster.js +3 -3
  61. package/dist/base/tree.js +1 -1
  62. package/dist/base/upload-queue.js +1 -1
  63. package/dist/base/upload.js +3 -3
  64. package/dist/base/value-inputs.js +1 -1
  65. package/dist/{batch-action-bar-DnUJ21NQ.js → batch-action-bar-CdfIkCsV.js} +4 -4
  66. package/dist/{batch-action-bar-DnUJ21NQ.js.map → batch-action-bar-CdfIkCsV.js.map} +1 -1
  67. package/dist/blocks/admin.js +20 -20
  68. package/dist/blocks/admin.js.map +1 -1
  69. package/dist/blocks/ai.js +15 -15
  70. package/dist/blocks/analytics/usage-card.js +1 -1
  71. package/dist/blocks/analytics.js +17 -17
  72. package/dist/blocks/analytics.js.map +1 -1
  73. package/dist/blocks/collaboration.js +1 -1
  74. package/dist/blocks/commerce/receipt.js +1 -1
  75. package/dist/blocks/commerce.js +570 -567
  76. package/dist/blocks/commerce.js.map +1 -1
  77. package/dist/blocks/data-display.js +2 -2
  78. package/dist/blocks/onboarding.js +5 -5
  79. package/dist/blocks/planning.js +11 -11
  80. package/dist/blocks/timelines.js +1 -1
  81. package/dist/{breadcrumbs-C-oqs1sQ.js → breadcrumbs-B-WFKecD.js} +4 -4
  82. package/dist/{breadcrumbs-C-oqs1sQ.js.map → breadcrumbs-B-WFKecD.js.map} +1 -1
  83. package/dist/{button-DVzspB_G.js → button-DkmK-z8E.js} +2 -2
  84. package/dist/{button-DVzspB_G.js.map → button-DkmK-z8E.js.map} +1 -1
  85. package/dist/{buttons-DPZekJFu.js → buttons-BbfzgczK.js} +8 -8
  86. package/dist/{buttons-DPZekJFu.js.map → buttons-BbfzgczK.js.map} +1 -1
  87. package/dist/{cards-BaBZR-AU.js → cards-4JTWqvVe.js} +10 -10
  88. package/dist/cards-4JTWqvVe.js.map +1 -0
  89. package/dist/{chart-ZOYyK2xG.js → chart-C19flDQb.js} +4 -4
  90. package/dist/{chart-ZOYyK2xG.js.map → chart-C19flDQb.js.map} +1 -1
  91. package/dist/{checkbox-AWIhNhmo.js → checkbox-CzYUTPeJ.js} +9 -5
  92. package/dist/checkbox-CzYUTPeJ.js.map +1 -0
  93. package/dist/{choice-inputs-CNHvARCJ.js → choice-inputs-JLtij2y4.js} +182 -176
  94. package/dist/choice-inputs-JLtij2y4.js.map +1 -0
  95. package/dist/{code-block-DeneBJR_.js → code-block-CGNaUtAE.js} +7 -7
  96. package/dist/{code-block-DeneBJR_.js.map → code-block-CGNaUtAE.js.map} +1 -1
  97. package/dist/{collapsible-C-_l4hpy.js → collapsible-Do4G0zcC.js} +3 -3
  98. package/dist/{collapsible-C-_l4hpy.js.map → collapsible-Do4G0zcC.js.map} +1 -1
  99. package/dist/{collection-content-By56pLog.js → collection-content-C0e8SsTm.js} +3 -3
  100. package/dist/{collection-content-By56pLog.js.map → collection-content-C0e8SsTm.js.map} +1 -1
  101. package/dist/{combobox-C0EQW6dr.js → combobox-CBJDs6w_.js} +349 -347
  102. package/dist/combobox-CBJDs6w_.js.map +1 -0
  103. package/dist/{combobox-xCQ2RMNE.js → combobox-hbhSS18O.js} +158 -112
  104. package/dist/combobox-hbhSS18O.js.map +1 -0
  105. package/dist/{command-C25VMRII.js → command-D8NrBj-b.js} +7 -7
  106. package/dist/{command-C25VMRII.js.map → command-D8NrBj-b.js.map} +1 -1
  107. package/dist/{comments-BYYlTA8E.js → comments-Di4w0H_S.js} +383 -382
  108. package/dist/comments-Di4w0H_S.js.map +1 -0
  109. package/dist/components/base/action-menu/action-menu.d.ts +2 -0
  110. package/dist/components/base/cards/card.recipes.d.ts +12 -5
  111. package/dist/components/base/cards/smart-card.types.d.ts +12 -7
  112. package/dist/components/base/choice-inputs/checkbox.d.ts +7 -2
  113. package/dist/components/base/choice-inputs/switch-card.d.ts +7 -0
  114. package/dist/components/base/choice-inputs/toggle-field.d.ts +7 -0
  115. package/dist/components/base/combobox/combobox-field.d.ts +16 -0
  116. package/dist/components/base/date-pickers/datepicker.types.d.ts +7 -0
  117. package/dist/components/base/forms/controlled-form-field.d.ts +6 -6
  118. package/dist/components/base/forms/form-field.d.ts +5 -3
  119. package/dist/components/base/forms/index.d.ts +1 -0
  120. package/dist/components/base/forms/server-errors.d.ts +16 -0
  121. package/dist/components/base/forms/workflow.d.ts +5 -2
  122. package/dist/components/base/metadata-list/metadata-list.d.ts +3 -1
  123. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -2
  124. package/dist/components/base/structure/composition.recipes.d.ts +17 -0
  125. package/dist/components/base/text-inputs/hooks/use-form-field-state.d.ts +7 -2
  126. package/dist/components/base/text-inputs/input.d.ts +4 -2
  127. package/dist/components/base/text-inputs/textarea.d.ts +4 -2
  128. package/dist/components/base/value-inputs/date-time-input.d.ts +2 -1
  129. package/dist/components/base/value-inputs/slider.d.ts +5 -1
  130. package/dist/components/base/value-inputs/tags-input.d.ts +5 -1
  131. package/dist/components/typography/text.styles.d.ts +26 -1
  132. package/dist/components/ui/combobox-dismiss.d.ts +16 -0
  133. package/dist/components/ui/combobox.d.ts +11 -6
  134. package/dist/components/ui/dialog.d.ts +1 -1
  135. package/dist/components/ui/popover.d.ts +1 -1
  136. package/dist/components/ui/sheet.d.ts +1 -1
  137. package/dist/composition.recipes-COdiFhxB.js +19 -0
  138. package/dist/composition.recipes-COdiFhxB.js.map +1 -0
  139. package/dist/containers-CRmHf7GP.js +104 -0
  140. package/dist/containers-CRmHf7GP.js.map +1 -0
  141. package/dist/{copyable-ClBuk_UK.js → copyable-CnGCZdX4.js} +4 -4
  142. package/dist/{copyable-ClBuk_UK.js.map → copyable-CnGCZdX4.js.map} +1 -1
  143. package/dist/{data-display-DT_khPl_.js → data-display-D4oujtx0.js} +239 -238
  144. package/dist/data-display-D4oujtx0.js.map +1 -0
  145. package/dist/{date-DCrsDTZc.js → date-Q7jnXxpk.js} +5 -5
  146. package/dist/{date-DCrsDTZc.js.map → date-Q7jnXxpk.js.map} +1 -1
  147. package/dist/{date-picker-ay0Pha_a.js → date-picker-zOt1oNss.js} +102 -90
  148. package/dist/date-picker-zOt1oNss.js.map +1 -0
  149. package/dist/date-pickers-cj8IXbDC.js +179 -0
  150. package/dist/date-pickers-cj8IXbDC.js.map +1 -0
  151. package/dist/{display-hAc1HjpI.js → display-BB4BL_-K.js} +8 -8
  152. package/dist/{display-hAc1HjpI.js.map → display-BB4BL_-K.js.map} +1 -1
  153. package/dist/{dropdown-menu-Cl4X7L5S.js → dropdown-menu-CjY8Vt7W.js} +8 -8
  154. package/dist/{dropdown-menu-Cl4X7L5S.js.map → dropdown-menu-CjY8Vt7W.js.map} +1 -1
  155. package/dist/features/activities.js +11 -11
  156. package/dist/features/ai-chat.js +9 -9
  157. package/dist/features/appointment-calendar.js +222 -220
  158. package/dist/features/appointment-calendar.js.map +1 -1
  159. package/dist/features/async-preview.js +8 -8
  160. package/dist/features/combobox.js +1 -1
  161. package/dist/features/comments.js +1 -1
  162. package/dist/features/data-view.js +10 -10
  163. package/dist/features/email-composer.js +275 -274
  164. package/dist/features/email-composer.js.map +1 -1
  165. package/dist/features/event-calendar.js +199 -198
  166. package/dist/features/event-calendar.js.map +1 -1
  167. package/dist/features/filters.js +1 -1
  168. package/dist/features/global-search.js +12 -12
  169. package/dist/features/kanban.js +4 -4
  170. package/dist/features/map.js +7 -7
  171. package/dist/features/media-library.js +623 -622
  172. package/dist/features/media-library.js.map +1 -1
  173. package/dist/features/mentions.js +1 -1
  174. package/dist/features/overlays.js +1 -1
  175. package/dist/features/products.js +973 -969
  176. package/dist/features/products.js.map +1 -1
  177. package/dist/features/questionnaire.js +12 -12
  178. package/dist/features/resource-assignment.js +8 -8
  179. package/dist/features/resource.js +113 -112
  180. package/dist/features/resource.js.map +1 -1
  181. package/dist/features/rich-text-editor.js +2 -2
  182. package/dist/features/schema-form.js +254 -253
  183. package/dist/features/schema-form.js.map +1 -1
  184. package/dist/features/suggestions.js +3 -3
  185. package/dist/features/sync.js +3 -3
  186. package/dist/features/table.js +1 -1
  187. package/dist/features/theme-tweaker.js +19 -19
  188. package/dist/features/theme-tweaker.js.map +1 -1
  189. package/dist/{feedback-BYIhtitP.js → feedback-DZNL5Lg1.js} +9 -9
  190. package/dist/{feedback-BYIhtitP.js.map → feedback-DZNL5Lg1.js.map} +1 -1
  191. package/dist/{field-affordance-recipes-DZhnIL_Y.js → field-affordance-recipes-DjwGx8eM.js} +2 -2
  192. package/dist/{field-affordance-recipes-DZhnIL_Y.js.map → field-affordance-recipes-DjwGx8eM.js.map} +1 -1
  193. package/dist/{filters-BGfvjP4d.js → filters-BcT-uoFy.js} +19 -19
  194. package/dist/{filters-BGfvjP4d.js.map → filters-BcT-uoFy.js.map} +1 -1
  195. package/dist/{form-field-CwH9y77i.js → form-field-CsgRmdit.js} +14 -8
  196. package/dist/form-field-CsgRmdit.js.map +1 -0
  197. package/dist/{form-sizing-BdP_Mf5p.js → form-sizing-NXgjkmBG.js} +3 -3
  198. package/dist/{form-sizing-BdP_Mf5p.js.map → form-sizing-NXgjkmBG.js.map} +1 -1
  199. package/dist/{forms-B9G_xwzi.js → forms-BV5m5aQF.js} +83 -65
  200. package/dist/forms-BV5m5aQF.js.map +1 -0
  201. package/dist/{forms-numeric-B_jraJaQ.js → forms-numeric-Cd33AKbD.js} +288 -288
  202. package/dist/forms-numeric-Cd33AKbD.js.map +1 -0
  203. package/dist/{header-CGXuhcRm.js → header-BA697l4a.js} +14 -14
  204. package/dist/{header-CGXuhcRm.js.map → header-BA697l4a.js.map} +1 -1
  205. package/dist/hooks/useFormErrors.d.ts +1 -1
  206. package/dist/{hooks-Dkz0K2WT.js → hooks-BQ-L7Uu2.js} +2 -2
  207. package/dist/{hooks-Dkz0K2WT.js.map → hooks-BQ-L7Uu2.js.map} +1 -1
  208. package/dist/{icon-badge-DYKIwvOV.js → icon-badge-COWbCCWu.js} +3 -3
  209. package/dist/{icon-badge-DYKIwvOV.js.map → icon-badge-COWbCCWu.js.map} +1 -1
  210. package/dist/index.js +2 -2
  211. package/dist/input-Cdw4k0fb.js +289 -0
  212. package/dist/input-Cdw4k0fb.js.map +1 -0
  213. package/dist/{input-CZw8iU99.js → input-DOPL5_QE.js} +3 -3
  214. package/dist/{input-CZw8iU99.js.map → input-DOPL5_QE.js.map} +1 -1
  215. package/dist/item-BvZ2DR_x.js +277 -0
  216. package/dist/item-BvZ2DR_x.js.map +1 -0
  217. package/dist/layout/app-shell.js +1 -1
  218. package/dist/layout/auth.js +1 -1
  219. package/dist/layout/containers.js +1 -1
  220. package/dist/layout/header.js +1 -1
  221. package/dist/layout/hooks.js +1 -1
  222. package/dist/layout/navigation.js +1 -1
  223. package/dist/layout/page.js +1 -1
  224. package/dist/layout/settings.js +1 -1
  225. package/dist/layout/sidebar.js +2 -2
  226. package/dist/layout/workspace.js +1 -1
  227. package/dist/layout.js +10 -10
  228. package/dist/lib/affordance-geometry.generated.d.ts +6 -0
  229. package/dist/lib/ui-provider/types.d.ts +1 -1
  230. package/dist/lib/use-popup-focus-recovery.d.ts +8 -0
  231. package/dist/lib/utils.js +1 -1
  232. package/dist/{media-gallery-3zIVLMWH.js → media-gallery-CSl5W1Fy.js} +6 -6
  233. package/dist/{media-gallery-3zIVLMWH.js.map → media-gallery-CSl5W1Fy.js.map} +1 -1
  234. package/dist/{mentions-utuUvH1K.js → mentions-RKOQaaIB.js} +8 -8
  235. package/dist/{mentions-utuUvH1K.js.map → mentions-RKOQaaIB.js.map} +1 -1
  236. package/dist/{message-DZ_ruyUV.js → message-INU2xsxu.js} +4 -4
  237. package/dist/{message-DZ_ruyUV.js.map → message-INU2xsxu.js.map} +1 -1
  238. package/dist/metadata-list-qVV7AVxa.js +443 -0
  239. package/dist/metadata-list-qVV7AVxa.js.map +1 -0
  240. package/dist/{navigation-BzhHI3lo.js → navigation-BQNcg1jT.js} +8 -8
  241. package/dist/{navigation-BzhHI3lo.js.map → navigation-BQNcg1jT.js.map} +1 -1
  242. package/dist/{navigation-Bnotn4AQ.js → navigation-DLF3E1IC.js} +7 -7
  243. package/dist/{navigation-Bnotn4AQ.js.map → navigation-DLF3E1IC.js.map} +1 -1
  244. package/dist/{navigation-row-recipes-BFLCk_Aq.js → navigation-row-recipes-WZEs-hYo.js} +2 -2
  245. package/dist/{navigation-row-recipes-BFLCk_Aq.js.map → navigation-row-recipes-WZEs-hYo.js.map} +1 -1
  246. package/dist/{number-DbV1Dija.js → number-E_OiIfJz.js} +5 -5
  247. package/dist/{number-DbV1Dija.js.map → number-E_OiIfJz.js.map} +1 -1
  248. package/dist/{overflow-tab-bar-CWY7Nogn.js → overflow-tab-bar-CrbqMteP.js} +107 -105
  249. package/dist/overflow-tab-bar-CrbqMteP.js.map +1 -0
  250. package/dist/{overlays-DNWmZrJ4.js → overlays-BlKynmde.js} +322 -319
  251. package/dist/overlays-BlKynmde.js.map +1 -0
  252. package/dist/page-CIwNUtGr.js +227 -0
  253. package/dist/page-CIwNUtGr.js.map +1 -0
  254. package/dist/page-header-commands-DFMlNYzN.js +128 -0
  255. package/dist/page-header-commands-DFMlNYzN.js.map +1 -0
  256. package/dist/{pagination-BL25hu2s.js → pagination-Ch8X_47u.js} +5 -5
  257. package/dist/{pagination-BL25hu2s.js.map → pagination-Ch8X_47u.js.map} +1 -1
  258. package/dist/{popover-menu-B9WWygpa.js → popover-menu-BYaCdFhf.js} +6 -6
  259. package/dist/{popover-menu-B9WWygpa.js.map → popover-menu-BYaCdFhf.js.map} +1 -1
  260. package/dist/{popover-7_m66eYW.js → popover-uwzX2vo7.js} +65 -63
  261. package/dist/popover-uwzX2vo7.js.map +1 -0
  262. package/dist/{primitives-BFK08r9M.js → primitives-Du64iDbb.js} +6 -6
  263. package/dist/{primitives-BFK08r9M.js.map → primitives-Du64iDbb.js.map} +1 -1
  264. package/dist/primitives.js +4 -4
  265. package/dist/{progress-B1VnCT0K.js → progress-BvF2oCdV.js} +5 -5
  266. package/dist/{progress-B1VnCT0K.js.map → progress-BvF2oCdV.js.map} +1 -1
  267. package/dist/{receipt-BVSOH3Xo.js → receipt-D789Jwyy.js} +6 -6
  268. package/dist/{receipt-BVSOH3Xo.js.map → receipt-D789Jwyy.js.map} +1 -1
  269. package/dist/{rich-text-GOUyKQ-s.js → rich-text-CLJEf76s.js} +4 -4
  270. package/dist/{rich-text-GOUyKQ-s.js.map → rich-text-CLJEf76s.js.map} +1 -1
  271. package/dist/{rich-text-editor-cRLC-eBK.js → rich-text-editor-Cm1dpUpQ.js} +10 -10
  272. package/dist/{rich-text-editor-cRLC-eBK.js.map → rich-text-editor-Cm1dpUpQ.js.map} +1 -1
  273. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js → rich-text-editor-toolbar-L__e4x47.js} +4 -4
  274. package/dist/{rich-text-editor-toolbar-DfXg0-VC.js.map → rich-text-editor-toolbar-L__e4x47.js.map} +1 -1
  275. package/dist/{scroll-area-DcI-M1UT.js → scroll-area-La5RXsEk.js} +2 -2
  276. package/dist/{scroll-area-DcI-M1UT.js.map → scroll-area-La5RXsEk.js.map} +1 -1
  277. package/dist/{separator-Bom7NsGO.js → separator-DAEV0w65.js} +2 -2
  278. package/dist/{separator-Bom7NsGO.js.map → separator-DAEV0w65.js.map} +1 -1
  279. package/dist/{separator-BDV-Y648.js → separator-GNfPG-90.js} +3 -3
  280. package/dist/{separator-BDV-Y648.js.map → separator-GNfPG-90.js.map} +1 -1
  281. package/dist/services/actions.js +1 -1
  282. package/dist/settings-BA2iboic.js +174 -0
  283. package/dist/settings-BA2iboic.js.map +1 -0
  284. package/dist/{sheet-CGpB3omz.js → sheet-DoAxTb2J.js} +75 -73
  285. package/dist/sheet-DoAxTb2J.js.map +1 -0
  286. package/dist/{sidebar-A0ElHINE.js → sidebar-ByqKR_W5.js} +13 -13
  287. package/dist/{sidebar-A0ElHINE.js.map → sidebar-ByqKR_W5.js.map} +1 -1
  288. package/dist/{sidebar-CPx_7YBa.js → sidebar-D2iSnGJ7.js} +11 -11
  289. package/dist/{sidebar-CPx_7YBa.js.map → sidebar-D2iSnGJ7.js.map} +1 -1
  290. package/dist/{skeleton-Byjnt7qr.js → skeleton-CUj8O5Bd.js} +3 -3
  291. package/dist/{skeleton-Byjnt7qr.js.map → skeleton-CUj8O5Bd.js.map} +1 -1
  292. package/dist/smart-card-CqkzQsK-.js +614 -0
  293. package/dist/smart-card-CqkzQsK-.js.map +1 -0
  294. package/dist/{structure-BmisBK-3.js → structure-C0V0_Fyf.js} +3 -3
  295. package/dist/{structure-BmisBK-3.js.map → structure-C0V0_Fyf.js.map} +1 -1
  296. package/dist/{structure.recipes-EPz60cU8.js → structure.recipes-BB4-n58V.js} +2 -2
  297. package/dist/{structure.recipes-EPz60cU8.js.map → structure.recipes-BB4-n58V.js.map} +1 -1
  298. package/dist/style.css +1 -1
  299. package/dist/{table-DsfzoUia.js → table-CpvnzJn9.js} +3 -3
  300. package/dist/{table-DsfzoUia.js.map → table-CpvnzJn9.js.map} +1 -1
  301. package/dist/{table-BweFy_P9.js → table-DH7rozUv.js} +19 -19
  302. package/dist/{table-BweFy_P9.js.map → table-DH7rozUv.js.map} +1 -1
  303. package/dist/{tabs-CDocW5D1.js → tabs-eqVsJZWO.js} +7 -7
  304. package/dist/{tabs-CDocW5D1.js.map → tabs-eqVsJZWO.js.map} +1 -1
  305. package/dist/{text-inputs-f9Ia-aCi.js → text-inputs-DXItiR0O.js} +101 -98
  306. package/dist/text-inputs-DXItiR0O.js.map +1 -0
  307. package/dist/{text.styles-g4He6UIW.js → text.styles-B64My8RZ.js} +25 -10
  308. package/dist/text.styles-B64My8RZ.js.map +1 -0
  309. package/dist/theme.css +152 -112
  310. package/dist/{timelines-CwM_9IhD.js → timelines-DmtztAY_.js} +10 -10
  311. package/dist/{timelines-CwM_9IhD.js.map → timelines-DmtztAY_.js.map} +1 -1
  312. package/dist/{tooltip-yiRJUFjp.js → tooltip-B4hjKtoV.js} +3 -3
  313. package/dist/{tooltip-yiRJUFjp.js.map → tooltip-B4hjKtoV.js.map} +1 -1
  314. package/dist/{tree-WnKQzwbq.js → tree-CV11PURP.js} +8 -8
  315. package/dist/{tree-WnKQzwbq.js.map → tree-CV11PURP.js.map} +1 -1
  316. package/dist/typography/rich-text.js +1 -1
  317. package/dist/typography-CSyJrh28.js +117 -0
  318. package/dist/typography-CSyJrh28.js.map +1 -0
  319. package/dist/typography.js +1 -1
  320. package/dist/{ui-provider-C_U0Xma4.js → ui-provider-CQCuCBcy.js} +3 -3
  321. package/dist/ui-provider-CQCuCBcy.js.map +1 -0
  322. package/dist/ui-provider.js +1 -1
  323. package/dist/{upload-CXyxmQBP.js → upload-C9SA0X-8.js} +11 -11
  324. package/dist/{upload-CXyxmQBP.js.map → upload-C9SA0X-8.js.map} +1 -1
  325. package/dist/{upload-queue-Boscubn9.js → upload-queue-DhQJiSRc.js} +9 -9
  326. package/dist/{upload-queue-Boscubn9.js.map → upload-queue-DhQJiSRc.js.map} +1 -1
  327. package/dist/{usage-card-BhO5eqkX.js → usage-card-DVTRDmGz.js} +134 -133
  328. package/dist/usage-card-DVTRDmGz.js.map +1 -0
  329. package/dist/use-popup-focus-recovery-C0QPvgOR.js +36 -0
  330. package/dist/use-popup-focus-recovery-C0QPvgOR.js.map +1 -0
  331. package/dist/{utils-BRhFDwuU.js → utils-CF3c95Io.js} +68 -5
  332. package/dist/utils-CF3c95Io.js.map +1 -0
  333. package/dist/value-inputs-C0o70p-U.js +980 -0
  334. package/dist/value-inputs-C0o70p-U.js.map +1 -0
  335. package/dist/{value-typography-BP8OG6h5.js → value-typography-ClupF0Gz.js} +2 -2
  336. package/dist/{value-typography-BP8OG6h5.js.map → value-typography-ClupF0Gz.js.map} +1 -1
  337. package/dist/workspace-9EFVXUyk.js +410 -0
  338. package/dist/workspace-9EFVXUyk.js.map +1 -0
  339. package/docs/consumer-skill/SKILL.md +14 -129
  340. package/docs/consumer-skill/examples/app-layout.tsx +22 -12
  341. package/docs/consumer-skill/examples/authentication.tsx +77 -0
  342. package/docs/consumer-skill/examples/edit.tsx +30 -38
  343. package/docs/consumer-skill/examples/manifest.json +51 -1
  344. package/docs/consumer-skill/examples/rhf-bindings.tsx +86 -0
  345. package/docs/consumer-skill/examples/rhf-edit-page.tsx +141 -0
  346. package/docs/consumer-skill/examples/rhf-overlay-form.tsx +92 -0
  347. package/docs/consumer-skill/examples/rhf-transport.tsx +28 -0
  348. package/docs/consumer-skill/references/agents-md.md +17 -7
  349. package/docs/consumer-skill/references/authentication.md +42 -0
  350. package/docs/consumer-skill/references/component-contracts.json +319824 -0
  351. package/docs/consumer-skill/references/composition-mapping.md +92 -0
  352. package/docs/consumer-skill/references/composition.md +43 -19
  353. package/docs/consumer-skill/references/design-contract.md +32 -0
  354. package/docs/consumer-skill/references/discovery.md +84 -7
  355. package/docs/consumer-skill/references/installation.md +45 -35
  356. package/docs/consumer-skill/references/integration.md +6 -2
  357. package/docs/consumer-skill/references/public-api.json +1520 -66
  358. package/docs/consumer-skill/references/review.md +9 -4
  359. package/docs/consumer-skill/references/rhf-workflows.md +86 -0
  360. package/docs/consumer-skill/references/screen-archetypes.md +22 -0
  361. package/docs/consumer-skill/references/theming.md +8 -9
  362. package/docs/consumer-skill/references/tokens.json +12 -3
  363. package/docs/consumer-skill/references/workflows.md +7 -5
  364. package/docs/consumer-skill/scripts/composition-schema.d.mts +2 -0
  365. package/docs/consumer-skill/scripts/composition-schema.mjs +32 -0
  366. package/docs/consumer-skill/scripts/composition.mjs +198 -0
  367. package/docs/consumer-skill/scripts/discovery.mjs +42 -10
  368. package/docs/consumer-skill/scripts/inspect-component.mjs +11 -0
  369. package/docs/consumer-skill/scripts/inspect-tokens.mjs +11 -0
  370. package/docs/consumer-skill/scripts/inspection.mjs +138 -0
  371. package/docs/consumer-skill/scripts/map-composition.mjs +12 -0
  372. package/docs/consumer-skill/scripts/setup-skills.mjs +76 -0
  373. package/docs/consumer-skills/themelia-components/SKILL.md +30 -0
  374. package/docs/consumer-skills/themelia-composition/SKILL.md +35 -0
  375. package/docs/consumer-skills/themelia-forms/SKILL.md +12 -0
  376. package/docs/consumer-skills/themelia-foundation/SKILL.md +14 -0
  377. package/docs/consumer-skills/themelia-tokenization/SKILL.md +35 -0
  378. package/package.json +6 -4
  379. package/templates/README.md +39 -0
  380. package/templates/admin-shell-template.tsx +382 -0
  381. package/templates/analytics-operations-template.tsx +376 -0
  382. package/templates/customers-template.tsx +509 -0
  383. package/templates/index.ts +29 -0
  384. package/templates/orders-template.tsx +1102 -0
  385. package/templates/products-template.tsx +834 -0
  386. package/templates/user-permissions-template.tsx +450 -0
  387. package/dist/action-menu-CllU52Mm.js +0 -280
  388. package/dist/action-menu-CllU52Mm.js.map +0 -1
  389. package/dist/affordance-geometry.generated-tF36bREk.js.map +0 -1
  390. package/dist/ai-artifact-DvTwDVyL.js.map +0 -1
  391. package/dist/app-shell-C4FhvCqF.js.map +0 -1
  392. package/dist/cards-BaBZR-AU.js.map +0 -1
  393. package/dist/checkbox-AWIhNhmo.js.map +0 -1
  394. package/dist/choice-inputs-CNHvARCJ.js.map +0 -1
  395. package/dist/combobox-C0EQW6dr.js.map +0 -1
  396. package/dist/combobox-xCQ2RMNE.js.map +0 -1
  397. package/dist/comments-BYYlTA8E.js.map +0 -1
  398. package/dist/containers-Mu1LMGV1.js +0 -103
  399. package/dist/containers-Mu1LMGV1.js.map +0 -1
  400. package/dist/data-display-DT_khPl_.js.map +0 -1
  401. package/dist/date-picker-ay0Pha_a.js.map +0 -1
  402. package/dist/date-pickers-Ccw8DL2b.js +0 -175
  403. package/dist/date-pickers-Ccw8DL2b.js.map +0 -1
  404. package/dist/form-field-CwH9y77i.js.map +0 -1
  405. package/dist/forms-B9G_xwzi.js.map +0 -1
  406. package/dist/forms-numeric-B_jraJaQ.js.map +0 -1
  407. package/dist/input-DQdEd0YD.js +0 -263
  408. package/dist/input-DQdEd0YD.js.map +0 -1
  409. package/dist/item-K5_ghvze.js +0 -275
  410. package/dist/item-K5_ghvze.js.map +0 -1
  411. package/dist/metadata-list-8N16ZMW_.js +0 -405
  412. package/dist/metadata-list-8N16ZMW_.js.map +0 -1
  413. package/dist/overflow-tab-bar-CWY7Nogn.js.map +0 -1
  414. package/dist/overlays-DNWmZrJ4.js.map +0 -1
  415. package/dist/page-Bgl1F560.js +0 -224
  416. package/dist/page-Bgl1F560.js.map +0 -1
  417. package/dist/page-header-commands-DOb6WsfD.js +0 -126
  418. package/dist/page-header-commands-DOb6WsfD.js.map +0 -1
  419. package/dist/popover-7_m66eYW.js.map +0 -1
  420. package/dist/settings-ybnjVwbd.js +0 -171
  421. package/dist/settings-ybnjVwbd.js.map +0 -1
  422. package/dist/sheet-CGpB3omz.js.map +0 -1
  423. package/dist/smart-card-DiC5aac3.js +0 -604
  424. package/dist/smart-card-DiC5aac3.js.map +0 -1
  425. package/dist/text-inputs-f9Ia-aCi.js.map +0 -1
  426. package/dist/text.styles-g4He6UIW.js.map +0 -1
  427. package/dist/typography-UTnveOEy.js +0 -117
  428. package/dist/typography-UTnveOEy.js.map +0 -1
  429. package/dist/ui-provider-C_U0Xma4.js.map +0 -1
  430. package/dist/usage-card-BhO5eqkX.js.map +0 -1
  431. package/dist/utils-BRhFDwuU.js.map +0 -1
  432. package/dist/value-inputs-DXPDjvBU.js +0 -963
  433. package/dist/value-inputs-DXPDjvBU.js.map +0 -1
  434. package/dist/workspace-Cdrg7k9f.js +0 -408
  435. package/dist/workspace-Cdrg7k9f.js.map +0 -1
@@ -1,39 +1,40 @@
1
1
  "use client";
2
- import { s as e, v as t } from "../ui-provider-C_U0Xma4.js";
2
+ import { s as e, v as t } from "../ui-provider-CQCuCBcy.js";
3
3
  import { interpolateString as n, useStrings as r } from "../lib/strings.js";
4
- import { t as i } from "../utils-BRhFDwuU.js";
5
- import { n as a } from "../buttons-DPZekJFu.js";
6
- import { c as o, o as s } from "../typography-UTnveOEy.js";
4
+ import { t as i } from "../utils-CF3c95Io.js";
5
+ import { n as a } from "../buttons-BbfzgczK.js";
6
+ import { c as o, o as s } from "../typography-CSyJrh28.js";
7
7
  import { t as c } from "../focus-recipes-B653VaLq.js";
8
- import { r as l, t as u } from "../structure-BmisBK-3.js";
8
+ import { r as l, t as u } from "../structure-C0V0_Fyf.js";
9
9
  import { t as d } from "../tone-recipes-BPsRAvhu.js";
10
- import { t as f } from "../smart-card-DiC5aac3.js";
11
- import { t as p } from "../progress-B1VnCT0K.js";
12
- import { i as m, t as h } from "../overlays-DNWmZrJ4.js";
13
- import { t as g } from "../interaction-recipes-XR9ZpVYL.js";
14
- import { _, g as v } from "../primitives-BFK08r9M.js";
15
- import { n as y } from "../number-DbV1Dija.js";
16
- import { t as b } from "../badge-HpFqoqSY.js";
17
- import { t as x } from "../batch-action-bar-DnUJ21NQ.js";
18
- import { t as S } from "../separator-BDV-Y648.js";
19
- import { n as C } from "../field-affordance-recipes-DZhnIL_Y.js";
20
- import { t as w } from "../input-DQdEd0YD.js";
21
- import { t as T } from "../form-field-CwH9y77i.js";
22
- import { d as E } from "../text-inputs-f9Ia-aCi.js";
23
- import { c as ee, l as D } from "../choice-inputs-CNHvARCJ.js";
24
- import { t as te } from "../checkbox-AWIhNhmo.js";
25
- import { n as O } from "../display-hAc1HjpI.js";
26
- import { r as k, t as ne } from "../control-group-recipes-DBXmfh2E.js";
27
- import { c as A, i as j, n as M, o as N, r as P, t as re, u as ie } from "../item-K5_ghvze.js";
28
- import { t as ae } from "../metadata-list-8N16ZMW_.js";
29
- import { c as oe, i as se, n as ce, o as F, s as le, t as ue } from "../table-DsfzoUia.js";
30
- import { m as de, s as I } from "../data-display-DT_khPl_.js";
31
- import { O as fe, f as pe } from "../table-BweFy_P9.js";
32
- import { Fragment as me, useCallback as L, useId as he, useMemo as R, useRef as ge, useState as _e } from "react";
33
- import { Fragment as ve, jsx as z, jsxs as B } from "react/jsx-runtime";
34
- import { ArrowLeft as ye, ChevronDown as V, Copy as be, Eye as H, GripVertical as U, ListFilter as xe, Pencil as W, Plus as G, PlusCircle as Se, Search as Ce, SlidersHorizontal as K, Trash2 as q, X as J } from "lucide-react";
10
+ import { t as f } from "../smart-card-CqkzQsK-.js";
11
+ import { t as p } from "../progress-BvF2oCdV.js";
12
+ import { n as m, t as h } from "../composition.recipes-COdiFhxB.js";
13
+ import { i as g, t as _ } from "../overlays-BlKynmde.js";
14
+ import { t as v } from "../interaction-recipes-XR9ZpVYL.js";
15
+ import { _ as y, g as b } from "../primitives-Du64iDbb.js";
16
+ import { n as x } from "../number-E_OiIfJz.js";
17
+ import { t as S } from "../badge-DErMA7ul.js";
18
+ import { t as C } from "../batch-action-bar-CdfIkCsV.js";
19
+ import { t as w } from "../separator-GNfPG-90.js";
20
+ import { n as T } from "../field-affordance-recipes-DjwGx8eM.js";
21
+ import { t as E } from "../input-Cdw4k0fb.js";
22
+ import { t as D } from "../form-field-CsgRmdit.js";
23
+ import { d as O } from "../text-inputs-DXItiR0O.js";
24
+ import { c as ee, l as k } from "../choice-inputs-JLtij2y4.js";
25
+ import { t as A } from "../checkbox-CzYUTPeJ.js";
26
+ import { n as j } from "../display-BB4BL_-K.js";
27
+ import { r as M, t as te } from "../control-group-recipes-DBXmfh2E.js";
28
+ import { c as N, i as P, n as F, o as I, r as ne, t as re, u as ie } from "../item-BvZ2DR_x.js";
29
+ import { t as ae } from "../metadata-list-qVV7AVxa.js";
30
+ import { c as oe, i as L, n as se, o as ce, s as le, t as ue } from "../table-CpvnzJn9.js";
31
+ import { m as R, s as de } from "../data-display-D4oujtx0.js";
32
+ import { O as fe, f as pe } from "../table-DH7rozUv.js";
33
+ import { Fragment as me, useCallback as z, useId as he, useMemo as B, useRef as ge, useState as _e } from "react";
34
+ import { Fragment as ve, jsx as V, jsxs as H } from "react/jsx-runtime";
35
+ import { ArrowLeft as U, ChevronDown as ye, Copy as be, Eye as xe, GripVertical as Se, ListFilter as Ce, Pencil as W, Plus as G, PlusCircle as we, Search as K, SlidersHorizontal as q, Trash2 as J, X as Te } from "lucide-react";
35
36
  //#region src/components/features/products/products.strings.ts
36
- var we = {
37
+ var Ee = {
37
38
  title: "Readiness",
38
39
  description: "Publishing checks and operational setup.",
39
40
  scoreLabel: "Overall readiness",
@@ -45,7 +46,7 @@ var we = {
45
46
  emptyTitle: "No readiness checks",
46
47
  emptyDescription: "Pass readiness items from your product workflow to show progress.",
47
48
  actionLabel: "Open"
48
- }, Te = {
49
+ }, De = {
49
50
  title: "Structure",
50
51
  description: "Media, taxonomy, options, and content coverage.",
51
52
  createLabel: "Add metric",
@@ -55,7 +56,7 @@ var we = {
55
56
  actionsLabel: "Metric actions",
56
57
  emptyTitle: "No structure metrics",
57
58
  emptyDescription: "Pass structure metrics to summarize the product setup."
58
- }, Ee = {
59
+ }, Oe = {
59
60
  title: "Operations",
60
61
  description: "Availability, channels, service rules, and fulfilment signals.",
61
62
  createLabel: "Add signal",
@@ -65,13 +66,13 @@ var we = {
65
66
  emptyTitle: "No operational signals",
66
67
  emptyDescription: "Pass operational rows to show channel and availability health.",
67
68
  actionLabel: "Open"
68
- }, De = {
69
+ }, ke = {
69
70
  title: "Product details",
70
71
  description: "Core identity and catalogue fields.",
71
72
  editLabel: "Edit details",
72
73
  emptyTitle: "No details",
73
74
  emptyDescription: "Pass metadata rows to render product details."
74
- }, Oe = {
75
+ }, Ae = {
75
76
  title: "Contract",
76
77
  description: "Commercial terms, pricing rules, and customer-facing conditions.",
77
78
  termsTitle: "Terms",
@@ -85,7 +86,7 @@ var we = {
85
86
  ruleActionsLabel: "Rule actions",
86
87
  emptyTitle: "No contract summary",
87
88
  emptyDescription: "Pass metrics, terms, or rules to summarize the product contract."
88
- }, ke = {
89
+ }, Y = {
89
90
  title: "Options",
90
91
  description: "Variant-driving choices and add-ons customers can select.",
91
92
  manageLabel: "Manage options",
@@ -96,12 +97,12 @@ var we = {
96
97
  actionsLabel: "Option actions",
97
98
  emptyTitle: "No options",
98
99
  emptyDescription: "Pass option groups to summarize configurable product choices."
99
- }, Y = {
100
+ }, je = {
100
101
  viewLabel: "Open option",
101
102
  editLabel: "Edit option",
102
103
  deleteLabel: "Delete option",
103
104
  actionsLabel: "Option actions"
104
- }, Ae = {
105
+ }, X = {
105
106
  title: "Variant options",
106
107
  description: "Define option groups and values before generating sellable variants.",
107
108
  createLabel: "Add attribute",
@@ -131,7 +132,7 @@ var we = {
131
132
  emptyTitle: "No option groups",
132
133
  emptyDescription: "Add options such as size, color, or packaging to create variant combinations.",
133
134
  noValuesLabel: "No values"
134
- }, X = {
135
+ }, Z = {
135
136
  title: "Quote preview",
136
137
  description: "How the product appears in a compact customer quote.",
137
138
  subtotalLabel: "Subtotal",
@@ -146,7 +147,7 @@ var we = {
146
147
  lineActionsLabel: "Line actions",
147
148
  emptyTitle: "No quote lines",
148
149
  emptyDescription: "Pass quote lines to preview pricing."
149
- }, Z = {
150
+ }, Q = {
150
151
  title: "Policies",
151
152
  description: "Cancellation, booking, service, and customer-facing rules.",
152
153
  createLabel: "Add policy",
@@ -156,7 +157,7 @@ var we = {
156
157
  actionsLabel: "Policy actions",
157
158
  emptyTitle: "No policies",
158
159
  emptyDescription: "Pass policies to summarize customer-facing rules."
159
- }, Q = {
160
+ }, Me = {
160
161
  title: "Variants",
161
162
  description: "Sellable combinations with price, availability, and SKU.",
162
163
  createLabel: "Add variant",
@@ -175,7 +176,7 @@ var we = {
175
176
  updated: "Updated",
176
177
  actions: "Actions"
177
178
  }
178
- }, je = {
179
+ }, Ne = {
179
180
  title: "Variants",
180
181
  description: "Review generated combinations, select rows, and apply bulk operations.",
181
182
  createLabel: "Add variant",
@@ -203,7 +204,7 @@ var we = {
203
204
  updated: "Updated",
204
205
  actions: "Actions"
205
206
  }
206
- }, Me = {
207
+ }, Pe = {
207
208
  title: "Variants",
208
209
  description: "Configure option groups first, then manage the generated sellable variants.",
209
210
  optionsTitle: "Variant options",
@@ -214,13 +215,13 @@ var we = {
214
215
  generateLabel: "Generate variants",
215
216
  createVariantLabel: "Add variant",
216
217
  actionsLabel: "Variant manager actions"
217
- }, Ne = {
218
+ }, Fe = {
218
219
  viewLabel: "Open variant",
219
220
  editLabel: "Edit",
220
221
  duplicateLabel: "Duplicate",
221
222
  deleteLabel: "Delete",
222
223
  actionsLabel: "Variant actions"
223
- }, Pe = {
224
+ }, Ie = {
224
225
  title: "Variant",
225
226
  description: "Sellable variant details, options, pricing, and fulfilment data.",
226
227
  backLabel: "Back",
@@ -237,7 +238,7 @@ var we = {
237
238
  channels: "Channels",
238
239
  updated: "Updated"
239
240
  }
240
- }, Fe = {
241
+ }, Le = {
241
242
  title: "Edit variant",
242
243
  description: "Controlled form for variant identity, pricing, inventory, and option values.",
243
244
  identityTitle: "Identity",
@@ -267,14 +268,14 @@ var we = {
267
268
  status: "Active",
268
269
  channels: "Online store, POS"
269
270
  }
270
- }, Ie = {
271
+ }, Re = {
271
272
  mainLabel: "Product overview",
272
273
  railLabel: "Product supporting information"
273
274
  };
274
275
  //#endregion
275
276
  //#region src/components/features/products/partials/product-empty-state.tsx
276
277
  function $({ title: e, description: t, action: n, className: r }) {
277
- return /* @__PURE__ */ z(I, {
278
+ return /* @__PURE__ */ V(de, {
278
279
  padding: "md",
279
280
  border: !0,
280
281
  title: e,
@@ -285,34 +286,34 @@ function $({ title: e, description: t, action: n, className: r }) {
285
286
  }
286
287
  //#endregion
287
288
  //#region src/components/features/products/partials/product-tone.tsx
288
- var Le = {
289
+ var ze = {
289
290
  neutral: "secondary",
290
291
  primary: "secondary",
291
292
  success: "success",
292
293
  warning: "warning",
293
294
  destructive: "destructive",
294
295
  info: "info"
295
- }, Re = {
296
+ }, Be = {
296
297
  neutral: void 0,
297
298
  primary: void 0,
298
299
  success: "text-success",
299
300
  warning: "text-warning-accent",
300
301
  destructive: "text-destructive",
301
302
  info: "text-info"
302
- }, ze = /* @__PURE__ */ new Set([
303
+ }, Ve = /* @__PURE__ */ new Set([
303
304
  "success",
304
305
  "warning",
305
306
  "destructive",
306
307
  "info"
307
308
  ]);
308
- function Be(e) {
309
- return e !== void 0 && ze.has(e);
309
+ function He(e) {
310
+ return e !== void 0 && Ve.has(e);
310
311
  }
311
- function Ve(e) {
312
+ function Ue(e) {
312
313
  return Number.isFinite(e) ? Math.min(100, Math.max(0, Math.round(e))) : 0;
313
314
  }
314
- function He({ tone: e = "neutral" }) {
315
- return /* @__PURE__ */ z("span", {
315
+ function We({ tone: e = "neutral" }) {
316
+ return /* @__PURE__ */ V("span", {
316
317
  "aria-hidden": "true",
317
318
  className: i("product-tone-dot--component", d.marker, {
318
319
  "bg-muted-foreground": e === "neutral" || e === "primary",
@@ -325,35 +326,35 @@ function He({ tone: e = "neutral" }) {
325
326
  }
326
327
  //#endregion
327
328
  //#region src/components/features/products/partials/product-metric-tile.tsx
328
- function Ue({ metric: e }) {
329
+ function Ge({ metric: e }) {
329
330
  let t = "icon" in e ? e.icon : void 0;
330
- return /* @__PURE__ */ B(u, {
331
+ return /* @__PURE__ */ H(u, {
331
332
  gap: "dense",
332
333
  className: "product-metric-tile--component min-w-0",
333
334
  children: [
334
- /* @__PURE__ */ B(u, {
335
+ /* @__PURE__ */ H(u, {
335
336
  direction: "horizontal",
336
337
  gap: "sm",
337
338
  wrap: !1,
338
339
  children: [
339
- Be(e.tone) && /* @__PURE__ */ z(He, { tone: e.tone }),
340
- !!t && /* @__PURE__ */ z("span", {
340
+ He(e.tone) && /* @__PURE__ */ V(We, { tone: e.tone }),
341
+ !!t && /* @__PURE__ */ V("span", {
341
342
  className: "flex shrink-0 text-muted-foreground",
342
343
  children: t
343
344
  }),
344
- /* @__PURE__ */ z(s, {
345
+ /* @__PURE__ */ V(s, {
345
346
  className: "truncate text-inherit",
346
347
  children: e.label
347
348
  })
348
349
  ]
349
350
  }),
350
- /* @__PURE__ */ z(_, {
351
+ /* @__PURE__ */ V(y, {
351
352
  type: "inherit",
352
353
  weight: "semibold",
353
354
  className: "tabular-nums",
354
355
  children: e.value
355
356
  }),
356
- !!e.description && /* @__PURE__ */ z(o, {
357
+ !!e.description && /* @__PURE__ */ V(o, {
357
358
  size: "xs",
358
359
  type: "secondary",
359
360
  lineHeight: "snug",
@@ -364,10 +365,10 @@ function Ue({ metric: e }) {
364
365
  }
365
366
  //#endregion
366
367
  //#region src/components/features/products/partials/product-actions.tsx
367
- function We({ item: e, actions: t, menuLabel: n, className: r }) {
368
- return t.length === 0 ? null : /* @__PURE__ */ z("div", {
368
+ function Ke({ item: e, actions: t, menuLabel: n, className: r }) {
369
+ return t.length === 0 ? null : /* @__PURE__ */ V("div", {
369
370
  className: i("product-row-actions--component flex justify-end", r),
370
- children: /* @__PURE__ */ z(fe, {
371
+ children: /* @__PURE__ */ V(fe, {
371
372
  row: e,
372
373
  actions: t,
373
374
  menuLabel: n,
@@ -377,22 +378,22 @@ function We({ item: e, actions: t, menuLabel: n, className: r }) {
377
378
  }
378
379
  //#endregion
379
380
  //#region src/components/features/products/partials/product-rows.tsx
380
- var Ge = "min-w-0 basis-48", Ke = "line-clamp-none break-words overflow-visible", qe = "ml-auto shrink-0 flex-wrap justify-end gap-space-md";
381
- function Je({ label: e, value: t, tone: n, badge: r }) {
382
- let i = /* @__PURE__ */ z(ie, {
383
- className: Ke,
381
+ var qe = "min-w-0 basis-48", Je = "line-clamp-none break-words overflow-visible", Ye = "ml-auto shrink-0 flex-wrap justify-end gap-space-md";
382
+ function Xe({ label: e, value: t, tone: n, badge: r }) {
383
+ let i = /* @__PURE__ */ V(ie, {
384
+ className: Je,
384
385
  children: e
385
386
  });
386
- return !t && !r ? i : /* @__PURE__ */ B(u, {
387
+ return !t && !r ? i : /* @__PURE__ */ H(u, {
387
388
  direction: "horizontal",
388
389
  gap: "sm",
389
390
  className: "product-row--heading",
390
391
  children: [
391
392
  i,
392
- !!t && (Be(n) ? /* @__PURE__ */ z(b, {
393
- tone: Le[n],
393
+ !!t && (He(n) ? /* @__PURE__ */ V(S, {
394
+ tone: ze[n],
394
395
  children: t
395
- }) : /* @__PURE__ */ z(o, {
396
+ }) : /* @__PURE__ */ V(o, {
396
397
  tag: "span",
397
398
  type: "secondary",
398
399
  lineHeight: "tight",
@@ -402,8 +403,8 @@ function Je({ label: e, value: t, tone: n, badge: r }) {
402
403
  ]
403
404
  });
404
405
  }
405
- function Ye({ label: e, onSelect: t }) {
406
- return /* @__PURE__ */ z(a, {
406
+ function Ze({ label: e, onSelect: t }) {
407
+ return /* @__PURE__ */ V(a, {
407
408
  type: "button",
408
409
  tone: "secondary",
409
410
  buttonStyle: "ghost",
@@ -411,60 +412,60 @@ function Ye({ label: e, onSelect: t }) {
411
412
  children: e
412
413
  });
413
414
  }
414
- function Xe({ metric: e, actions: t }) {
415
- return /* @__PURE__ */ B(re, {
415
+ function Qe({ metric: e, actions: t }) {
416
+ return /* @__PURE__ */ H(re, {
416
417
  className: "product-structure-metric-row--component product-structure-card--item",
417
418
  children: [
418
- !!e.icon && /* @__PURE__ */ z(A, {
419
+ !!e.icon && /* @__PURE__ */ V(N, {
419
420
  variant: "icon",
420
421
  className: "text-muted-foreground",
421
422
  children: e.icon
422
423
  }),
423
- /* @__PURE__ */ B(P, {
424
- className: Ge,
425
- children: [/* @__PURE__ */ z(ie, {
426
- className: Ke,
424
+ /* @__PURE__ */ H(ne, {
425
+ className: qe,
426
+ children: [/* @__PURE__ */ V(ie, {
427
+ className: Je,
427
428
  children: e.label
428
- }), !!e.description && /* @__PURE__ */ z(j, {
429
+ }), !!e.description && /* @__PURE__ */ V(P, {
429
430
  clamp: 2,
430
431
  children: e.description
431
432
  })]
432
433
  }),
433
- /* @__PURE__ */ B(M, {
434
+ /* @__PURE__ */ H(F, {
434
435
  className: "ml-auto shrink-0 gap-space-md",
435
- children: [/* @__PURE__ */ z(_, {
436
+ children: [/* @__PURE__ */ V(y, {
436
437
  type: "inherit",
437
438
  weight: "semibold",
438
- className: i("tabular-nums", e.tone && Re[e.tone]),
439
+ className: i("tabular-nums", e.tone && Be[e.tone]),
439
440
  children: e.value
440
441
  }), t]
441
442
  })
442
443
  ]
443
444
  });
444
445
  }
445
- function Ze({ item: e, actionFallback: t, onSelect: n, actions: r }) {
446
+ function $e({ item: e, actionFallback: t, onSelect: n, actions: r }) {
446
447
  let i = e.tone ?? (e.completed ? "success" : "neutral"), a = e.onSelect ?? n;
447
- return /* @__PURE__ */ B(re, {
448
+ return /* @__PURE__ */ H(re, {
448
449
  className: "product-readiness-row--component product-readiness-card--item",
449
450
  children: [
450
- /* @__PURE__ */ z(A, {
451
+ /* @__PURE__ */ V(N, {
451
452
  className: "product-readiness-row--state h-icon-lg",
452
- children: /* @__PURE__ */ z(He, { tone: i })
453
+ children: /* @__PURE__ */ V(We, { tone: i })
453
454
  }),
454
- /* @__PURE__ */ B(P, {
455
- className: Ge,
456
- children: [/* @__PURE__ */ z(Je, {
455
+ /* @__PURE__ */ H(ne, {
456
+ className: qe,
457
+ children: [/* @__PURE__ */ V(Xe, {
457
458
  label: e.label,
458
459
  value: e.value,
459
460
  tone: e.tone
460
- }), !!e.description && /* @__PURE__ */ z(j, {
461
+ }), !!e.description && /* @__PURE__ */ V(P, {
461
462
  clamp: 2,
462
463
  children: e.description
463
464
  })]
464
465
  }),
465
- !!(a || r) && /* @__PURE__ */ B(M, {
466
- className: qe,
467
- children: [!!a && /* @__PURE__ */ z(Ye, {
466
+ !!(a || r) && /* @__PURE__ */ H(F, {
467
+ className: Ye,
468
+ children: [!!a && /* @__PURE__ */ V(Ze, {
468
469
  label: e.actionLabel ?? t,
469
470
  onSelect: a
470
471
  }), r]
@@ -472,57 +473,57 @@ function Ze({ item: e, actionFallback: t, onSelect: n, actions: r }) {
472
473
  ]
473
474
  });
474
475
  }
475
- function Qe({ item: e, actionFallback: t, onSelect: n, actions: r }) {
476
+ function et({ item: e, actionFallback: t, onSelect: n, actions: r }) {
476
477
  let i = e.onSelect ?? n;
477
- return /* @__PURE__ */ B(re, {
478
+ return /* @__PURE__ */ H(re, {
478
479
  className: "product-operation-row--component product-operations-card--item",
479
- children: [/* @__PURE__ */ B(P, {
480
- className: Ge,
481
- children: [/* @__PURE__ */ z(Je, {
480
+ children: [/* @__PURE__ */ H(ne, {
481
+ className: qe,
482
+ children: [/* @__PURE__ */ V(Xe, {
482
483
  label: e.label,
483
484
  value: e.value,
484
485
  tone: e.tone
485
- }), !!e.description && /* @__PURE__ */ z(j, {
486
+ }), !!e.description && /* @__PURE__ */ V(P, {
486
487
  clamp: 2,
487
488
  children: e.description
488
489
  })]
489
- }), !!(i || r) && /* @__PURE__ */ B(M, {
490
- className: qe,
491
- children: [!!i && /* @__PURE__ */ z(Ye, {
490
+ }), !!(i || r) && /* @__PURE__ */ H(F, {
491
+ className: Ye,
492
+ children: [!!i && /* @__PURE__ */ V(Ze, {
492
493
  label: e.actionLabel ?? t,
493
494
  onSelect: i
494
495
  }), r]
495
496
  })]
496
497
  });
497
498
  }
498
- function $e({ item: e, actionLabel: t, onSelect: n, actions: r }) {
499
+ function tt({ item: e, actionLabel: t, onSelect: n, actions: r }) {
499
500
  let i = "values" in e ? e.values : void 0;
500
- return /* @__PURE__ */ B(re, {
501
+ return /* @__PURE__ */ H(re, {
501
502
  className: "product-summary-row--component",
502
- children: [/* @__PURE__ */ B(P, {
503
- className: Ge,
503
+ children: [/* @__PURE__ */ H(ne, {
504
+ className: qe,
504
505
  children: [
505
- /* @__PURE__ */ z(Je, {
506
+ /* @__PURE__ */ V(Xe, {
506
507
  label: e.label,
507
508
  value: e.value,
508
509
  tone: e.tone,
509
510
  badge: e.badge
510
511
  }),
511
- !!e.description && /* @__PURE__ */ z(j, {
512
+ !!e.description && /* @__PURE__ */ V(P, {
512
513
  clamp: 2,
513
514
  children: e.description
514
515
  }),
515
- !!i?.length && /* @__PURE__ */ z("div", {
516
+ !!i?.length && /* @__PURE__ */ V("div", {
516
517
  className: "mt-space-md flex flex-wrap gap-space-xs",
517
- children: i.map((e, t) => /* @__PURE__ */ z(b, {
518
+ children: i.map((e, t) => /* @__PURE__ */ V(S, {
518
519
  tone: "secondary",
519
520
  children: e
520
521
  }, t))
521
522
  })
522
523
  ]
523
- }), !!(n || r) && /* @__PURE__ */ B(M, {
524
- className: qe,
525
- children: [!!n && /* @__PURE__ */ z(Ye, {
524
+ }), !!(n || r) && /* @__PURE__ */ H(F, {
525
+ className: Ye,
526
+ children: [!!n && /* @__PURE__ */ V(Ze, {
526
527
  label: t,
527
528
  onSelect: n
528
529
  }), r]
@@ -531,11 +532,11 @@ function $e({ item: e, actionLabel: t, onSelect: n, actions: r }) {
531
532
  }
532
533
  //#endregion
533
534
  //#region src/components/features/products/components/product-contract-overview.tsx
534
- function et({ metrics: e = [], terms: t = [], rules: n = [], onOpenContract: s, onEditContract: c, onCreateRule: d, onSelectRule: f, onEditRule: p, onDeleteRule: m, renderRuleActions: h, actions: g, footerSlot: _, empty: v, className: y, strings: b }) {
535
- let x = r(Oe, b), S = e.length > 0 || t.length > 0 || n.length > 0, C = s || c || d ? /* @__PURE__ */ B("div", {
535
+ function nt({ metrics: e = [], terms: t = [], rules: n = [], onOpenContract: s, onEditContract: c, onCreateRule: d, onSelectRule: f, onEditRule: p, onDeleteRule: m, renderRuleActions: h, actions: g, footerSlot: _, empty: v, className: y, strings: b }) {
536
+ let x = r(Ae, b), S = e.length > 0 || t.length > 0 || n.length > 0, C = s || c || d ? /* @__PURE__ */ H("div", {
536
537
  className: "flex items-center gap-space-md",
537
538
  children: [
538
- !!d && /* @__PURE__ */ z(a, {
539
+ !!d && /* @__PURE__ */ V(a, {
539
540
  type: "button",
540
541
  tone: "secondary",
541
542
  buttonStyle: "ghost",
@@ -543,14 +544,14 @@ function et({ metrics: e = [], terms: t = [], rules: n = [], onOpenContract: s,
543
544
  icon: G,
544
545
  children: x.createRuleLabel
545
546
  }),
546
- !!c && /* @__PURE__ */ z(a, {
547
+ !!c && /* @__PURE__ */ V(a, {
547
548
  type: "button",
548
549
  tone: "secondary",
549
550
  buttonStyle: "ghost",
550
551
  onClick: c,
551
552
  children: x.editLabel
552
553
  }),
553
- !!s && /* @__PURE__ */ z(a, {
554
+ !!s && /* @__PURE__ */ V(a, {
554
555
  type: "button",
555
556
  tone: "secondary",
556
557
  buttonStyle: "ghost",
@@ -559,48 +560,49 @@ function et({ metrics: e = [], terms: t = [], rules: n = [], onOpenContract: s,
559
560
  })
560
561
  ]
561
562
  }) : void 0;
562
- return /* @__PURE__ */ z(O, {
563
+ return /* @__PURE__ */ V(j, {
563
564
  title: x.title,
564
565
  description: x.description,
565
566
  actions: g,
566
567
  headerAction: C,
567
568
  footerSlot: _,
568
569
  className: i("product-contract-overview--component w-full", y),
569
- children: S ? /* @__PURE__ */ B(u, {
570
+ children: S ? /* @__PURE__ */ H(u, {
570
571
  gap: "2xl",
571
572
  children: [
572
- e.length > 0 && /* @__PURE__ */ z(l, {
573
+ e.length > 0 && /* @__PURE__ */ V(l, {
573
574
  columns: {
574
575
  base: 1,
575
576
  sm: 3
576
577
  },
577
578
  gap: "md",
578
- children: e.map((e) => /* @__PURE__ */ z(Ue, { metric: e }, e.id))
579
+ children: e.map((e) => /* @__PURE__ */ V(Ge, { metric: e }, e.id))
579
580
  }),
580
- t.length > 0 && /* @__PURE__ */ B(u, {
581
+ t.length > 0 && /* @__PURE__ */ H(u, {
581
582
  gap: "md",
582
- children: [/* @__PURE__ */ z(o, {
583
+ children: [/* @__PURE__ */ V(o, {
583
584
  type: "inherit",
584
585
  weight: "semibold",
585
586
  children: x.termsTitle
586
- }), /* @__PURE__ */ z(ae, {
587
+ }), /* @__PURE__ */ V(ae, {
588
+ adaptTo: "container",
587
589
  items: t,
588
590
  columns: 2,
589
591
  density: "compact"
590
592
  })]
591
593
  }),
592
- n.length > 0 && /* @__PURE__ */ B(u, {
594
+ n.length > 0 && /* @__PURE__ */ H(u, {
593
595
  gap: "md",
594
- children: [/* @__PURE__ */ z(o, {
596
+ children: [/* @__PURE__ */ V(o, {
595
597
  type: "inherit",
596
598
  weight: "semibold",
597
599
  children: x.rulesTitle
598
- }), /* @__PURE__ */ z(N, { children: n.map((e, t) => {
600
+ }), /* @__PURE__ */ V(I, { children: n.map((e, t) => {
599
601
  let n = f ? () => f(e) : void 0, r = p ? () => p(e) : void 0, i = m ? () => m(e) : void 0, a = [
600
602
  ...n ? [{
601
603
  id: "open",
602
604
  label: x.viewRuleLabel,
603
- icon: /* @__PURE__ */ z(H, { className: "size-icon-md" }),
605
+ icon: /* @__PURE__ */ V(xe, { className: "size-icon-md" }),
604
606
  onClick: () => n(),
605
607
  tone: "secondary",
606
608
  buttonStyle: "ghost"
@@ -608,7 +610,7 @@ function et({ metrics: e = [], terms: t = [], rules: n = [], onOpenContract: s,
608
610
  ...r ? [{
609
611
  id: "edit",
610
612
  label: x.editRuleLabel,
611
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
613
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
612
614
  onClick: () => r(),
613
615
  tone: "secondary",
614
616
  buttonStyle: "ghost"
@@ -616,7 +618,7 @@ function et({ metrics: e = [], terms: t = [], rules: n = [], onOpenContract: s,
616
618
  ...i ? [{
617
619
  id: "delete",
618
620
  label: x.deleteRuleLabel,
619
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
621
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
620
622
  onClick: () => i(),
621
623
  tone: "destructive"
622
624
  }] : []
@@ -625,22 +627,22 @@ function et({ metrics: e = [], terms: t = [], rules: n = [], onOpenContract: s,
625
627
  onSelect: n,
626
628
  onEdit: r,
627
629
  onDelete: i
628
- }) : /* @__PURE__ */ z(We, {
630
+ }) : /* @__PURE__ */ V(Ke, {
629
631
  item: e,
630
632
  actions: a,
631
633
  menuLabel: x.ruleActionsLabel
632
634
  });
633
- return /* @__PURE__ */ z($e, {
635
+ return /* @__PURE__ */ V(tt, {
634
636
  item: e,
635
637
  actions: o
636
638
  }, e.id);
637
639
  }) })]
638
640
  })
639
641
  ]
640
- }) : v ?? /* @__PURE__ */ z($, {
642
+ }) : v ?? /* @__PURE__ */ V($, {
641
643
  title: x.emptyTitle,
642
644
  description: x.emptyDescription,
643
- action: d ? /* @__PURE__ */ z(a, {
645
+ action: d ? /* @__PURE__ */ V(a, {
644
646
  tone: "primary",
645
647
  type: "button",
646
648
  onClick: d,
@@ -650,18 +652,18 @@ function et({ metrics: e = [], terms: t = [], rules: n = [], onOpenContract: s,
650
652
  })
651
653
  });
652
654
  }
653
- et.displayName = "ProductContractOverview";
655
+ nt.displayName = "ProductContractOverview";
654
656
  //#endregion
655
657
  //#region src/components/features/products/components/product-details-card.tsx
656
- function tt({ title: e, description: t, metadata: n = [], media: o, onEditDetails: s, actions: c, headerEnd: l, footerSlot: u, empty: d, className: f, strings: p }) {
657
- let m = r(De, p), h = s ? /* @__PURE__ */ z(a, {
658
+ function rt({ title: e, description: t, metadata: n = [], media: o, onEditDetails: s, actions: c, headerEnd: l, footerSlot: u, empty: d, className: f, strings: p }) {
659
+ let m = r(ke, p), h = s ? /* @__PURE__ */ V(a, {
658
660
  type: "button",
659
661
  tone: "secondary",
660
662
  buttonStyle: "ghost",
661
663
  onClick: s,
662
664
  children: m.editLabel
663
665
  }) : void 0;
664
- return /* @__PURE__ */ z(O, {
666
+ return /* @__PURE__ */ V(j, {
665
667
  title: e ?? m.title,
666
668
  description: t === !1 ? void 0 : t ?? m.description,
667
669
  actions: c,
@@ -669,17 +671,18 @@ function tt({ title: e, description: t, metadata: n = [], media: o, onEditDetail
669
671
  headerEnd: l,
670
672
  footerSlot: u,
671
673
  className: i("product-details-card--component w-full", f),
672
- children: n.length === 0 ? d ?? /* @__PURE__ */ z($, {
674
+ children: n.length === 0 ? d ?? /* @__PURE__ */ V($, {
673
675
  title: m.emptyTitle,
674
676
  description: m.emptyDescription
675
- }) : /* @__PURE__ */ z("div", {
677
+ }) : /* @__PURE__ */ V("div", {
676
678
  className: "@container/product-details",
677
- children: /* @__PURE__ */ B("div", {
679
+ children: /* @__PURE__ */ H("div", {
678
680
  className: i("grid min-w-0 grid-cols-1 gap-space-xl", o && "@xl/product-details:grid-cols-[12rem_minmax(0,1fr)]"),
679
- children: [!!o && /* @__PURE__ */ z("div", {
681
+ children: [!!o && /* @__PURE__ */ V("div", {
680
682
  className: "product-details-card--media self-start overflow-hidden rounded-inner border border-border bg-muted/30",
681
683
  children: o
682
- }), /* @__PURE__ */ z(ae, {
684
+ }), /* @__PURE__ */ V(ae, {
685
+ adaptTo: "container",
683
686
  items: n,
684
687
  columns: o ? 1 : 2,
685
688
  density: "compact",
@@ -689,12 +692,12 @@ function tt({ title: e, description: t, metadata: n = [], media: o, onEditDetail
689
692
  })
690
693
  });
691
694
  }
692
- tt.displayName = "ProductDetailsCard";
695
+ rt.displayName = "ProductDetailsCard";
693
696
  //#endregion
694
697
  //#region src/components/features/products/components/product-option-action-menu.tsx
695
- function nt({ option: e, index: t = 0, onSelectOption: n, onEditOption: a, onDeleteOption: o, renderOptionActions: s, menuLabel: c, className: l, strings: u }) {
696
- let d = r(Y, u), f = n ? () => n(e) : void 0, p = a ? () => a(e) : void 0, m = o ? () => o(e) : void 0;
697
- return f || p || m || s ? s ? /* @__PURE__ */ z("div", {
698
+ function it({ option: e, index: t = 0, onSelectOption: n, onEditOption: a, onDeleteOption: o, renderOptionActions: s, menuLabel: c, className: l, strings: u }) {
699
+ let d = r(je, u), f = n ? () => n(e) : void 0, p = a ? () => a(e) : void 0, m = o ? () => o(e) : void 0;
700
+ return f || p || m || s ? s ? /* @__PURE__ */ V("div", {
698
701
  className: i("product-option-action-menu--component flex justify-end", l),
699
702
  children: s(e, {
700
703
  index: t,
@@ -702,7 +705,7 @@ function nt({ option: e, index: t = 0, onSelectOption: n, onEditOption: a, onDel
702
705
  onEdit: p,
703
706
  onDelete: m
704
707
  })
705
- }) : /* @__PURE__ */ z(We, {
708
+ }) : /* @__PURE__ */ V(Ke, {
706
709
  item: e,
707
710
  menuLabel: c ?? d.actionsLabel,
708
711
  className: i("product-option-action-menu--component", l),
@@ -710,7 +713,7 @@ function nt({ option: e, index: t = 0, onSelectOption: n, onEditOption: a, onDel
710
713
  ...f ? [{
711
714
  id: "open",
712
715
  label: d.viewLabel,
713
- icon: /* @__PURE__ */ z(H, { className: "size-icon-md" }),
716
+ icon: /* @__PURE__ */ V(xe, { className: "size-icon-md" }),
714
717
  onClick: () => f(),
715
718
  tone: "secondary",
716
719
  buttonStyle: "ghost"
@@ -718,7 +721,7 @@ function nt({ option: e, index: t = 0, onSelectOption: n, onEditOption: a, onDel
718
721
  ...p ? [{
719
722
  id: "edit",
720
723
  label: d.editLabel,
721
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
724
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
722
725
  onClick: () => p(),
723
726
  tone: "secondary",
724
727
  buttonStyle: "ghost"
@@ -726,18 +729,18 @@ function nt({ option: e, index: t = 0, onSelectOption: n, onEditOption: a, onDel
726
729
  ...m ? [{
727
730
  id: "delete",
728
731
  label: d.deleteLabel,
729
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
732
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
730
733
  onClick: () => m(),
731
734
  tone: "destructive"
732
735
  }] : []
733
736
  ]
734
737
  }) : null;
735
738
  }
736
- nt.displayName = "ProductOptionActionMenu";
739
+ it.displayName = "ProductOptionActionMenu";
737
740
  //#endregion
738
741
  //#region src/components/features/products/components/product-operations-card.tsx
739
- function rt({ items: e = [], onCreateOperation: t, onSelectOperation: n, onEditOperation: o, onDeleteOperation: s, renderOperationActions: c, actions: l, footerSlot: u, renderItem: d, empty: f, className: p, strings: m }) {
740
- let h = r(Ee, m), g = t ? /* @__PURE__ */ z(a, {
742
+ function at({ items: e = [], onCreateOperation: t, onSelectOperation: n, onEditOperation: o, onDeleteOperation: s, renderOperationActions: c, actions: l, footerSlot: u, renderItem: d, empty: f, className: p, strings: m }) {
743
+ let h = r(Oe, m), g = t ? /* @__PURE__ */ V(a, {
741
744
  type: "button",
742
745
  tone: "secondary",
743
746
  buttonStyle: "ghost",
@@ -745,35 +748,35 @@ function rt({ items: e = [], onCreateOperation: t, onSelectOperation: n, onEditO
745
748
  icon: G,
746
749
  children: h.createLabel
747
750
  }) : void 0;
748
- return /* @__PURE__ */ z(O, {
751
+ return /* @__PURE__ */ V(j, {
749
752
  title: h.title,
750
753
  description: h.description,
751
754
  actions: l,
752
755
  headerAction: g,
753
756
  footerSlot: u,
754
757
  className: i("product-operations-card--component w-full", p),
755
- children: e.length === 0 ? f ?? /* @__PURE__ */ z($, {
758
+ children: e.length === 0 ? f ?? /* @__PURE__ */ V($, {
756
759
  title: h.emptyTitle,
757
760
  description: h.emptyDescription,
758
- action: t ? /* @__PURE__ */ z(a, {
761
+ action: t ? /* @__PURE__ */ V(a, {
759
762
  tone: "primary",
760
763
  type: "button",
761
764
  onClick: t,
762
765
  icon: G,
763
766
  children: h.createLabel
764
767
  }) : void 0
765
- }) : /* @__PURE__ */ z(N, { children: e.map((e, t) => {
768
+ }) : /* @__PURE__ */ V(I, { children: e.map((e, t) => {
766
769
  let r = n ? () => n(e) : void 0, i = o ? () => o(e) : void 0, a = s ? () => s(e) : void 0, l = [...i ? [{
767
770
  id: "edit",
768
771
  label: h.editLabel,
769
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
772
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
770
773
  onClick: () => i(),
771
774
  tone: "secondary",
772
775
  buttonStyle: "ghost"
773
776
  }] : [], ...a ? [{
774
777
  id: "delete",
775
778
  label: h.deleteLabel,
776
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
779
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
777
780
  onClick: () => a(),
778
781
  tone: "destructive"
779
782
  }] : []], u = c ? c(e, {
@@ -781,12 +784,12 @@ function rt({ items: e = [], onCreateOperation: t, onSelectOperation: n, onEditO
781
784
  onSelect: r,
782
785
  onEdit: i,
783
786
  onDelete: a
784
- }) : /* @__PURE__ */ z(We, {
787
+ }) : /* @__PURE__ */ V(Ke, {
785
788
  item: e,
786
789
  actions: l,
787
790
  menuLabel: h.actionsLabel
788
791
  });
789
- return d ? /* @__PURE__ */ z("div", { children: d(e, t) }, e.id) : /* @__PURE__ */ z(Qe, {
792
+ return d ? /* @__PURE__ */ V("div", { children: d(e, t) }, e.id) : /* @__PURE__ */ V(et, {
790
793
  item: e,
791
794
  actionFallback: h.actionLabel,
792
795
  onSelect: r,
@@ -795,197 +798,197 @@ function rt({ items: e = [], onCreateOperation: t, onSelectOperation: n, onEditO
795
798
  }) })
796
799
  });
797
800
  }
798
- rt.displayName = "ProductOperationsCard";
801
+ at.displayName = "ProductOperationsCard";
799
802
  //#endregion
800
803
  //#region src/components/features/products/components/product-options-matrix.tsx
801
- function it(e) {
804
+ function ot(e) {
802
805
  return typeof e == "string" || typeof e == "number" ? String(e) : "";
803
806
  }
804
- function at(e) {
807
+ function st(e) {
805
808
  return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
806
809
  }
807
- function ot(e, t) {
808
- let n = it(t.name);
810
+ function ct(e, t) {
811
+ let n = ot(t.name);
809
812
  return n ? `${e}: ${n}` : e;
810
813
  }
811
- function st(e) {
814
+ function lt(e) {
812
815
  return {
813
- name: it(e.name),
816
+ name: ot(e.name),
814
817
  values: (e.values ?? []).map((e) => ({
815
818
  ...e,
816
- label: it(e.label)
819
+ label: ot(e.label)
817
820
  }))
818
821
  };
819
822
  }
820
- function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s, defaultCollapsedOptionIds: l = [], onCollapsedOptionIdsChange: d, editingOptionId: f, defaultEditingOptionId: p, onEditingOptionIdChange: _, onCreateOption: v, onEditOption: y, onDeleteOption: x, confirmDelete: S, onAddValue: E, onDeleteValue: D, onOptionNameChange: te, onValueLabelChange: k, onDoneEditingOption: ne, onSaveEditingOption: A, onCancelEditingOption: j, onToggleUsedForVariants: M, renderOptionActions: N, renderValue: P, showHeader: re, showCollapseControls: ie = !0, showInlineActions: ae = !0, showVariantToggle: oe = !0, actions: se, headerEnd: ce, footerSlot: F, empty: le, className: ue, strings: de }) {
821
- let I = r(Ae, de), fe = s !== void 0, [pe, he] = _e(l), ge = fe ? s : pe, ye = R(() => new Set(ge), [ge]), be = f !== void 0 || p !== void 0 || !!_ || !!te || !!k || !!ne || !!A || !!j, H = f !== void 0, [xe, W] = _e(p ?? null), [Ce, K] = _e({}), we = be ? H ? f : xe : null, Te = e.length > 0, Ee = t === "embedded" && re !== !1, De = Te && !!v, Oe = L((t) => {
822
- fe || he(t), d?.(t, e.filter((e) => t.includes(e.id)));
823
+ function ut({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s, defaultCollapsedOptionIds: l = [], onCollapsedOptionIdsChange: d, editingOptionId: f, defaultEditingOptionId: p, onEditingOptionIdChange: m, onCreateOption: y, onEditOption: b, onDeleteOption: x, confirmDelete: C, onAddValue: w, onDeleteValue: O, onOptionNameChange: k, onValueLabelChange: A, onDoneEditingOption: M, onSaveEditingOption: te, onCancelEditingOption: N, onToggleUsedForVariants: P, renderOptionActions: F, renderValue: I, showHeader: ne, showCollapseControls: re = !0, showInlineActions: ie = !0, showVariantToggle: ae = !0, actions: oe, headerEnd: L, footerSlot: se, empty: ce, className: le, strings: ue }) {
824
+ let R = r(X, ue), de = s !== void 0, [fe, pe] = _e(l), he = de ? s : fe, ge = B(() => new Set(he), [he]), U = f !== void 0 || p !== void 0 || !!m || !!k || !!A || !!M || !!te || !!N, be = f !== void 0, [xe, Ce] = _e(p ?? null), [W, K] = _e({}), q = U ? be ? f : xe : null, Ee = e.length > 0, De = t === "embedded" && ne !== !1, Oe = Ee && !!y, ke = z((t) => {
825
+ de || pe(t), d?.(t, e.filter((e) => t.includes(e.id)));
823
826
  }, [
824
- fe,
827
+ de,
825
828
  d,
826
829
  e
827
- ]), ke = L((e) => {
828
- let t = ye.has(e.id) ? ge.filter((t) => t !== e.id) : [...ge, e.id];
829
- Oe(t);
830
+ ]), Ae = z((e) => {
831
+ let t = ge.has(e.id) ? he.filter((t) => t !== e.id) : [...he, e.id];
832
+ ke(t);
830
833
  }, [
831
- ye,
832
834
  ge,
833
- Oe
834
- ]), Y = L((e, t) => {
835
- be && (H || W(e), _?.(e, t));
835
+ he,
836
+ ke
837
+ ]), Y = z((e, t) => {
838
+ U && (be || Ce(e), m?.(e, t));
836
839
  }, [
837
- H,
838
- _,
839
- be
840
- ]), X = L((e) => {
840
+ be,
841
+ m,
842
+ U
843
+ ]), je = z((e) => {
841
844
  K((t) => ({
842
845
  ...t,
843
- [e.id]: st(e)
844
- })), Y(e.id, e), y?.(e);
845
- }, [y, Y]), Z = L((e) => Ce[e.id] ?? st(e), [Ce]), Q = L((e, t) => {
846
+ [e.id]: lt(e)
847
+ })), Y(e.id, e), b?.(e);
848
+ }, [b, Y]), Z = z((e) => W[e.id] ?? lt(e), [W]), Q = z((e, t) => {
846
849
  K((n) => ({
847
850
  ...n,
848
- [e.id]: t(n[e.id] ?? st(e))
851
+ [e.id]: t(n[e.id] ?? lt(e))
849
852
  }));
850
- }, []), je = L((e) => {
853
+ }, []), Me = z((e) => {
851
854
  let t = Z(e);
852
855
  K((t) => {
853
856
  let { [e.id]: n, ...r } = t;
854
857
  return r;
855
- }), Y(null, e), j?.(e, t);
858
+ }), Y(null, e), N?.(e, t);
856
859
  }, [
857
860
  Z,
858
- j,
861
+ N,
859
862
  Y
860
- ]), Me = L((e) => {
863
+ ]), Ne = z((e) => {
861
864
  let t = Z(e), n = e.values ?? [], r = new Set(n.map((e) => e.id)), i = new Set(t.values.map((e) => e.id));
862
- A?.(e, t), te?.(e, t.name), n.forEach((n) => {
865
+ te?.(e, t), k?.(e, t.name), n.forEach((n) => {
863
866
  let r = t.values.find((e) => e.id === n.id);
864
- r && it(n.label) !== it(r.label) && k?.(e, n, it(r.label));
867
+ r && ot(n.label) !== ot(r.label) && A?.(e, n, ot(r.label));
865
868
  }), t.values.forEach((t) => {
866
- r.has(t.id) || E?.(e);
869
+ r.has(t.id) || w?.(e);
867
870
  }), n.forEach((t) => {
868
- i.has(t.id) || D?.(e, t);
871
+ i.has(t.id) || O?.(e, t);
869
872
  }), K((t) => {
870
873
  let { [e.id]: n, ...r } = t;
871
874
  return r;
872
- }), Y(null, e), ne?.(e);
875
+ }), Y(null, e), M?.(e);
873
876
  }, [
874
877
  Z,
875
- E,
876
- D,
877
- ne,
878
+ w,
879
+ O,
880
+ M,
881
+ k,
878
882
  te,
879
883
  A,
880
- k,
881
884
  Y
882
- ]), Ne = m(), [Pe, Fe] = _e(null), Ie = L((e) => {
885
+ ]), Pe = g(), [Fe, Ie] = _e(null), Le = z((e) => {
883
886
  let t = Z(e), n = new Set(t.values.map((e) => e.id)), r = (e.values ?? []).filter((e) => !n.has(e.id)).length;
884
- if (S === !1 || r === 0) {
885
- Me(e);
887
+ if (C === !1 || r === 0) {
888
+ Ne(e);
886
889
  return;
887
890
  }
888
- Fe({
891
+ Ie({
889
892
  option: e,
890
893
  removed: r
891
- }), Ne.show();
894
+ }), Pe.show();
892
895
  }, [
893
- Me,
894
- S,
896
+ Ne,
897
+ C,
895
898
  Z,
896
- Ne
897
- ]), Le = L((e) => {
898
- we === e.id && (K((t) => {
899
+ Pe
900
+ ]), Re = z((e) => {
901
+ q === e.id && (K((t) => {
899
902
  let { [e.id]: n, ...r } = t;
900
903
  return r;
901
904
  }), Y(null, e)), x?.(e);
902
905
  }, [
903
906
  x,
904
- we,
907
+ q,
905
908
  Y
906
- ]), Re = m(), [ze, Be] = _e(null), Ve = L((e) => {
907
- if (S === !1) {
908
- Le(e);
909
+ ]), ze = g(), [Be, Ve] = _e(null), He = z((e) => {
910
+ if (C === !1) {
911
+ Re(e);
909
912
  return;
910
913
  }
911
- Be(e), Re.show();
914
+ Ve(e), ze.show();
912
915
  }, [
913
- S,
914
- Le,
915
- Re
916
- ]), He = v ? /* @__PURE__ */ z(a, {
916
+ C,
917
+ Re,
918
+ ze
919
+ ]), Ue = y ? /* @__PURE__ */ V(a, {
917
920
  type: "button",
918
921
  tone: "neutral",
919
- onClick: v,
922
+ onClick: y,
920
923
  icon: G,
921
- children: I.createLabel
922
- }) : void 0, Ue = Ee ? /* @__PURE__ */ z("div", {
924
+ children: R.createLabel
925
+ }) : void 0, We = De ? /* @__PURE__ */ V("div", {
923
926
  className: "product-options-matrix--panel-header p-surface",
924
- children: /* @__PURE__ */ B(u, {
927
+ children: /* @__PURE__ */ H(u, {
925
928
  direction: "horizontal",
926
929
  gap: "md",
927
930
  justify: "between",
928
- children: [/* @__PURE__ */ z(o, {
931
+ children: [/* @__PURE__ */ V(o, {
929
932
  type: "inherit",
930
933
  weight: "semibold",
931
- children: I.title
932
- }), He]
934
+ children: R.title
935
+ }), Ue]
933
936
  })
934
- }) : null, Ge = /* @__PURE__ */ B("div", {
937
+ }) : null, Ge = /* @__PURE__ */ H("div", {
935
938
  className: "product-options-matrix--body min-w-0",
936
939
  children: [
937
- /* @__PURE__ */ B("div", {
940
+ /* @__PURE__ */ H("div", {
938
941
  className: "product-options-matrix--panel overflow-hidden rounded-radius border border-border bg-background text-foreground",
939
- children: [Ue, Te ? /* @__PURE__ */ B("div", {
940
- className: i("product-options-matrix--list", Ee && "border-t border-border/60"),
942
+ children: [We, Ee ? /* @__PURE__ */ H("div", {
943
+ className: i("product-options-matrix--list", De && "border-t border-border/60"),
941
944
  children: [e.map((e, t) => {
942
- let n = e.values ?? [], r = ye.has(e.id), s = we === e.id, l = !!y || be, d = !!x, f = !!E, p = Z(e), m = N?.(e, {
945
+ let n = e.values ?? [], r = ge.has(e.id), s = q === e.id, l = !!b || U, d = !!x, f = !!w, p = Z(e), m = F?.(e, {
943
946
  index: t,
944
- onEdit: l ? () => X(e) : void 0,
945
- onDelete: x ? () => Ve(e) : void 0,
946
- onAddValue: E ? () => E(e) : void 0,
947
- onToggleCollapsed: () => ke(e),
947
+ onEdit: l ? () => je(e) : void 0,
948
+ onDelete: x ? () => He(e) : void 0,
949
+ onAddValue: w ? () => w(e) : void 0,
950
+ onToggleCollapsed: () => Ae(e),
948
951
  collapsed: r
949
- }), h = [...f ? [{
952
+ }), g = [...f ? [{
950
953
  id: "add-value",
951
- label: I.addValueLabel,
952
- icon: /* @__PURE__ */ z(G, { className: "size-icon-md" }),
953
- onClick: () => E?.(e),
954
+ label: R.addValueLabel,
955
+ icon: /* @__PURE__ */ V(G, { className: "size-icon-md" }),
956
+ onClick: () => w?.(e),
954
957
  tone: "secondary",
955
958
  buttonStyle: "ghost"
956
959
  }] : [], ...d ? [{
957
960
  id: "delete",
958
- label: I.deleteLabel,
959
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
960
- onClick: () => Ve(e),
961
+ label: R.deleteLabel,
962
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
963
+ onClick: () => He(e),
961
964
  tone: "destructive"
962
- }] : []], _ = ae ? /* @__PURE__ */ B(ve, { children: [!!l && /* @__PURE__ */ z(a, {
965
+ }] : []], _ = ie ? /* @__PURE__ */ H(ve, { children: [!!l && /* @__PURE__ */ V(a, {
963
966
  type: "button",
964
967
  tone: "secondary",
965
968
  buttonStyle: "ghost",
966
- onClick: () => X(e),
967
- children: I.editLabel
968
- }), /* @__PURE__ */ z(We, {
969
+ onClick: () => je(e),
970
+ children: R.editLabel
971
+ }), /* @__PURE__ */ V(Ke, {
969
972
  item: e,
970
- actions: h,
971
- menuLabel: I.actionsLabel
972
- })] }) : null, v = m === void 0 ? _ : m;
973
- if (s) return /* @__PURE__ */ z("div", {
973
+ actions: g,
974
+ menuLabel: R.actionsLabel
975
+ })] }) : null, y = m === void 0 ? _ : m;
976
+ if (s) return /* @__PURE__ */ V("div", {
974
977
  className: "product-options-matrix--item product-options-matrix--item-editing border-b border-border/60 p-surface last:border-b-0",
975
- children: /* @__PURE__ */ B("div", {
978
+ children: /* @__PURE__ */ H("div", {
976
979
  className: "grid min-w-0 grid-cols-[auto_minmax(0,1fr)] gap-x-space-md gap-y-space-lg",
977
- children: [/* @__PURE__ */ z("span", {
980
+ children: [/* @__PURE__ */ V("span", {
978
981
  className: "product-options-matrix--drag-handle self-start flex size-icon-lg items-center justify-center text-muted-foreground",
979
982
  "aria-hidden": "true",
980
- children: /* @__PURE__ */ z(U, { className: "size-icon-sm" })
981
- }), /* @__PURE__ */ B(u, {
983
+ children: /* @__PURE__ */ V(Se, { className: "size-icon-sm" })
984
+ }), /* @__PURE__ */ H(u, {
982
985
  gap: "lg",
983
986
  className: "product-options-matrix--editor",
984
987
  children: [
985
- /* @__PURE__ */ z(T, {
986
- label: I.optionNameLabel,
988
+ /* @__PURE__ */ V(D, {
989
+ label: R.optionNameLabel,
987
990
  className: "product-options-matrix--editor-field",
988
- children: /* @__PURE__ */ z(w, {
991
+ children: /* @__PURE__ */ V(E, {
989
992
  value: p.name,
990
993
  onChange: (t) => {
991
994
  let n = t.currentTarget.value;
@@ -994,36 +997,36 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
994
997
  name: n
995
998
  }));
996
999
  },
997
- "aria-label": I.optionNameLabel,
1000
+ "aria-label": R.optionNameLabel,
998
1001
  className: "bg-background"
999
1002
  })
1000
1003
  }),
1001
- /* @__PURE__ */ B(u, {
1004
+ /* @__PURE__ */ H(u, {
1002
1005
  gap: "sm",
1003
1006
  className: "product-options-matrix--editor-field",
1004
- children: [/* @__PURE__ */ z(o, {
1007
+ children: [/* @__PURE__ */ V(o, {
1005
1008
  type: "inherit",
1006
1009
  weight: "medium",
1007
- children: I.optionValuesLabel
1008
- }), /* @__PURE__ */ B(u, {
1010
+ children: R.optionValuesLabel
1011
+ }), /* @__PURE__ */ H(u, {
1009
1012
  gap: "xs",
1010
1013
  className: "product-options-matrix--editor-values",
1011
1014
  children: [
1012
- p.values.length === 0 && /* @__PURE__ */ z(o, {
1015
+ p.values.length === 0 && /* @__PURE__ */ V(o, {
1013
1016
  size: "xs",
1014
1017
  type: "secondary",
1015
- children: I.noValuesLabel
1018
+ children: R.noValuesLabel
1016
1019
  }),
1017
- p.values.map((t) => /* @__PURE__ */ B("div", {
1020
+ p.values.map((t) => /* @__PURE__ */ H("div", {
1018
1021
  className: "product-options-matrix--editor-value grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-space-sm",
1019
1022
  children: [
1020
- /* @__PURE__ */ z("span", {
1023
+ /* @__PURE__ */ V("span", {
1021
1024
  className: "flex size-icon-lg items-center justify-center text-muted-foreground",
1022
1025
  "aria-hidden": "true",
1023
- children: /* @__PURE__ */ z(U, { className: "size-icon-sm" })
1026
+ children: /* @__PURE__ */ V(Se, { className: "size-icon-sm" })
1024
1027
  }),
1025
- /* @__PURE__ */ z(w, {
1026
- value: it(t.label),
1028
+ /* @__PURE__ */ V(E, {
1029
+ value: ot(t.label),
1027
1030
  onChange: (n) => {
1028
1031
  let r = n.currentTarget.value;
1029
1032
  Q(e, (e) => ({
@@ -1034,10 +1037,10 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
1034
1037
  } : e)
1035
1038
  }));
1036
1039
  },
1037
- "aria-label": `${I.optionValuesLabel}: ${it(t.label)}`,
1040
+ "aria-label": `${R.optionValuesLabel}: ${ot(t.label)}`,
1038
1041
  className: "bg-background"
1039
1042
  }),
1040
- /* @__PURE__ */ B(a, {
1043
+ /* @__PURE__ */ H(a, {
1041
1044
  type: "button",
1042
1045
  size: "sm",
1043
1046
  iconOnly: !0,
@@ -1047,28 +1050,28 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
1047
1050
  ...e,
1048
1051
  values: e.values.filter((e) => e.id !== t.id)
1049
1052
  })),
1050
- "aria-label": I.deleteValueLabel,
1053
+ "aria-label": R.deleteValueLabel,
1051
1054
  className: "text-muted-foreground hover:text-destructive",
1052
- children: [/* @__PURE__ */ z(q, {
1055
+ children: [/* @__PURE__ */ V(J, {
1053
1056
  className: "size-icon-sm",
1054
1057
  "aria-hidden": "true"
1055
- }), /* @__PURE__ */ z(o, {
1058
+ }), /* @__PURE__ */ V(o, {
1056
1059
  tag: "span",
1057
1060
  size: "pxs",
1058
1061
  className: "sr-only",
1059
- children: I.deleteValueLabel
1062
+ children: R.deleteValueLabel
1060
1063
  })]
1061
1064
  })
1062
1065
  ]
1063
1066
  }, t.id)),
1064
- /* @__PURE__ */ B("div", {
1067
+ /* @__PURE__ */ H("div", {
1065
1068
  className: "product-options-matrix--editor-add-value grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-space-sm",
1066
1069
  children: [
1067
- /* @__PURE__ */ z("span", {
1070
+ /* @__PURE__ */ V("span", {
1068
1071
  className: "size-icon-lg",
1069
1072
  "aria-hidden": "true"
1070
1073
  }),
1071
- /* @__PURE__ */ z(a, {
1074
+ /* @__PURE__ */ V(a, {
1072
1075
  type: "button",
1073
1076
  tone: "secondary",
1074
1077
  buttonStyle: "outline",
@@ -1084,9 +1087,9 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
1084
1087
  }),
1085
1088
  fullWidth: !0,
1086
1089
  className: "justify-start text-muted-foreground",
1087
- children: I.addAnotherValueLabel
1090
+ children: R.addAnotherValueLabel
1088
1091
  }),
1089
- /* @__PURE__ */ z("span", {
1092
+ /* @__PURE__ */ V("span", {
1090
1093
  className: "size-action-sm",
1091
1094
  "aria-hidden": "true"
1092
1095
  })
@@ -1095,34 +1098,34 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
1095
1098
  ]
1096
1099
  })]
1097
1100
  }),
1098
- /* @__PURE__ */ B(u, {
1101
+ /* @__PURE__ */ H(u, {
1099
1102
  direction: "horizontal",
1100
1103
  gap: "md",
1101
1104
  justify: "between",
1102
1105
  wrap: !1,
1103
1106
  className: "product-options-matrix--editor-actions",
1104
- children: [/* @__PURE__ */ z("div", { children: !!x && /* @__PURE__ */ z(a, {
1107
+ children: [/* @__PURE__ */ V("div", { children: !!x && /* @__PURE__ */ V(a, {
1105
1108
  type: "button",
1106
1109
  tone: "destructive",
1107
1110
  buttonStyle: "outline",
1108
- onClick: () => Ve(e),
1109
- children: I.deleteLabel
1110
- }) }), /* @__PURE__ */ B(u, {
1111
+ onClick: () => He(e),
1112
+ children: R.deleteLabel
1113
+ }) }), /* @__PURE__ */ H(u, {
1111
1114
  direction: "horizontal",
1112
1115
  gap: "sm",
1113
1116
  justify: "end",
1114
1117
  wrap: !1,
1115
- children: [/* @__PURE__ */ z(a, {
1118
+ children: [/* @__PURE__ */ V(a, {
1116
1119
  type: "button",
1117
1120
  tone: "secondary",
1118
1121
  buttonStyle: "ghost",
1119
- onClick: () => je(e),
1120
- children: I.cancelLabel
1121
- }), /* @__PURE__ */ z(a, {
1122
+ onClick: () => Me(e),
1123
+ children: R.cancelLabel
1124
+ }), /* @__PURE__ */ V(a, {
1122
1125
  type: "button",
1123
1126
  tone: "neutral",
1124
- onClick: () => Ie(e),
1125
- children: I.saveLabel ?? I.doneLabel
1127
+ onClick: () => Le(e),
1128
+ children: R.saveLabel ?? R.doneLabel
1126
1129
  })]
1127
1130
  })]
1128
1131
  })
@@ -1130,15 +1133,15 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
1130
1133
  })]
1131
1134
  })
1132
1135
  }, e.id);
1133
- let S = /* @__PURE__ */ B(u, {
1134
- render: /* @__PURE__ */ z("span", {}),
1136
+ let C = /* @__PURE__ */ H(u, {
1137
+ render: /* @__PURE__ */ V("span", {}),
1135
1138
  gap: "sm",
1136
1139
  children: [
1137
- /* @__PURE__ */ B(u, {
1138
- render: /* @__PURE__ */ z("span", {}),
1140
+ /* @__PURE__ */ H(u, {
1141
+ render: /* @__PURE__ */ V("span", {}),
1139
1142
  direction: "horizontal",
1140
1143
  gap: "sm",
1141
- children: [/* @__PURE__ */ z(o, {
1144
+ children: [/* @__PURE__ */ V(o, {
1142
1145
  type: "inherit",
1143
1146
  tag: "span",
1144
1147
  weight: "semibold",
@@ -1146,37 +1149,37 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
1146
1149
  children: e.name
1147
1150
  }), e.badge]
1148
1151
  }),
1149
- !!e.description && /* @__PURE__ */ z(o, {
1152
+ !!e.description && /* @__PURE__ */ V(o, {
1150
1153
  tag: "span",
1151
1154
  size: "xs",
1152
1155
  type: "secondary",
1153
1156
  className: "max-w-prose",
1154
1157
  children: e.description
1155
1158
  }),
1156
- !r && /* @__PURE__ */ z(u, {
1157
- render: /* @__PURE__ */ z("span", {}),
1159
+ !r && /* @__PURE__ */ V(u, {
1160
+ render: /* @__PURE__ */ V("span", {}),
1158
1161
  gap: "sm",
1159
1162
  className: "product-options-matrix--values",
1160
- children: n.length === 0 ? /* @__PURE__ */ z(o, {
1163
+ children: n.length === 0 ? /* @__PURE__ */ V(o, {
1161
1164
  tag: "span",
1162
1165
  size: "xs",
1163
1166
  type: "secondary",
1164
- children: I.noValuesLabel
1165
- }) : /* @__PURE__ */ z("span", {
1167
+ children: R.noValuesLabel
1168
+ }) : /* @__PURE__ */ V("span", {
1166
1169
  className: "flex flex-wrap gap-space-xs",
1167
1170
  children: n.map((n, r) => {
1168
- let a = D ? () => D(e, n) : void 0, s = P?.(n, {
1171
+ let a = O ? () => O(e, n) : void 0, s = I?.(n, {
1169
1172
  option: e,
1170
1173
  optionIndex: t,
1171
1174
  valueIndex: r,
1172
1175
  onDelete: a
1173
1176
  });
1174
- return s ? /* @__PURE__ */ z(me, { children: s }, n.id) : /* @__PURE__ */ B(b, {
1177
+ return s ? /* @__PURE__ */ V(me, { children: s }, n.id) : /* @__PURE__ */ H(S, {
1175
1178
  size: "sm",
1176
1179
  tone: "neutral",
1177
1180
  className: i("product-options-matrix--value", n.disabled && "opacity-50"),
1178
1181
  children: [
1179
- at(n.label) ? /* @__PURE__ */ z(o, {
1182
+ st(n.label) ? /* @__PURE__ */ V(o, {
1180
1183
  type: "inherit",
1181
1184
  tag: "span",
1182
1185
  size: "inherit",
@@ -1184,19 +1187,19 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
1184
1187
  children: n.label
1185
1188
  }) : n.label,
1186
1189
  n.badge,
1187
- !!a && ae && /* @__PURE__ */ B("button", {
1190
+ !!a && ie && /* @__PURE__ */ H("button", {
1188
1191
  type: "button",
1189
1192
  onClick: a,
1190
- "aria-label": I.deleteValueLabel,
1191
- className: i(C.target, C.focus, c.inset, C.clear, "hover:text-destructive"),
1192
- children: [/* @__PURE__ */ z(J, {
1193
- className: C.icon,
1193
+ "aria-label": R.deleteValueLabel,
1194
+ className: i(T.target, T.focus, c.inset, T.clear, "hover:text-destructive"),
1195
+ children: [/* @__PURE__ */ V(Te, {
1196
+ className: T.icon,
1194
1197
  "aria-hidden": "true"
1195
- }), /* @__PURE__ */ z(o, {
1198
+ }), /* @__PURE__ */ V(o, {
1196
1199
  tag: "span",
1197
1200
  size: "pxs",
1198
1201
  className: "sr-only",
1199
- children: I.deleteValueLabel
1202
+ children: R.deleteValueLabel
1200
1203
  })]
1201
1204
  })
1202
1205
  ]
@@ -1206,140 +1209,140 @@ function ct({ optionGroups: e = [], surface: t = "card", collapsedOptionIds: s,
1206
1209
  })
1207
1210
  ]
1208
1211
  });
1209
- return /* @__PURE__ */ z("div", {
1212
+ return /* @__PURE__ */ V("div", {
1210
1213
  className: "product-options-matrix--item border-b border-border/60 last:border-b-0",
1211
- children: /* @__PURE__ */ B("div", {
1214
+ children: /* @__PURE__ */ H("div", {
1212
1215
  className: "grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-space-md gap-y-space-md p-surface @2xl/product-options-matrix:grid-cols-[auto_minmax(0,1fr)_auto]",
1213
1216
  children: [
1214
- ie ? /* @__PURE__ */ B(a, {
1217
+ re ? /* @__PURE__ */ H(a, {
1215
1218
  type: "button",
1216
1219
  size: "sm",
1217
1220
  iconOnly: !0,
1218
1221
  tone: "secondary",
1219
1222
  buttonStyle: "ghost",
1220
- onClick: () => ke(e),
1223
+ onClick: () => Ae(e),
1221
1224
  "aria-expanded": !r,
1222
- "aria-label": r ? I.expandOptionLabel : I.collapseOptionLabel,
1225
+ "aria-label": r ? R.expandOptionLabel : R.collapseOptionLabel,
1223
1226
  className: "product-options-matrix--collapse-trigger mt-space-2xs shrink-0 text-muted-foreground",
1224
- children: [/* @__PURE__ */ z(V, {
1227
+ children: [/* @__PURE__ */ V(ye, {
1225
1228
  className: i("size-icon-sm transition-transform", r && "-rotate-90"),
1226
1229
  "aria-hidden": "true"
1227
- }), /* @__PURE__ */ z(o, {
1230
+ }), /* @__PURE__ */ V(o, {
1228
1231
  tag: "span",
1229
1232
  size: "pxs",
1230
1233
  className: "sr-only",
1231
- children: r ? I.expandOptionLabel : I.collapseOptionLabel
1234
+ children: r ? R.expandOptionLabel : R.collapseOptionLabel
1232
1235
  })]
1233
- }) : /* @__PURE__ */ z("span", {
1236
+ }) : /* @__PURE__ */ V("span", {
1234
1237
  className: "product-options-matrix--drag-handle flex size-icon-lg items-center justify-center text-muted-foreground",
1235
1238
  "aria-hidden": "true",
1236
- children: /* @__PURE__ */ z(U, { className: "size-icon-sm" })
1239
+ children: /* @__PURE__ */ V(Se, { className: "size-icon-sm" })
1237
1240
  }),
1238
- /* @__PURE__ */ z("div", {
1241
+ /* @__PURE__ */ V("div", {
1239
1242
  className: "product-options-matrix--item-main min-w-0",
1240
- children: l && !ae ? /* @__PURE__ */ z("button", {
1243
+ children: l && !ie ? /* @__PURE__ */ V("button", {
1241
1244
  type: "button",
1242
- onClick: () => X(e),
1243
- "aria-label": ot(I.editLabel, e),
1244
- className: `product-options-matrix--edit-summary ${g.nativeButtonReset} block w-full cursor-pointer whitespace-normal rounded-inner text-start text-inherit outline-none ${c.edge}`,
1245
- children: S
1246
- }) : S
1245
+ onClick: () => je(e),
1246
+ "aria-label": ct(R.editLabel, e),
1247
+ className: `product-options-matrix--edit-summary ${v.nativeButtonReset} block w-full cursor-pointer whitespace-normal rounded-inner text-start text-inherit outline-none ${c.edge}`,
1248
+ children: C
1249
+ }) : C
1247
1250
  }),
1248
- (oe || !!v) && /* @__PURE__ */ B("div", {
1249
- className: "product-options-matrix--item-actions col-start-2 flex min-w-fit items-center gap-space-md justify-start @2xl/product-options-matrix:justify-end lg:col-start-auto",
1250
- children: [!!M && oe && /* @__PURE__ */ B("div", {
1251
+ (ae || !!y) && /* @__PURE__ */ H("div", {
1252
+ className: i("product-options-matrix--item-actions col-start-2 flex min-w-fit items-center justify-start @2xl/product-options-matrix:justify-end lg:col-start-auto", h.commands),
1253
+ children: [!!P && ae && /* @__PURE__ */ H("div", {
1251
1254
  className: "inline-flex items-center gap-space-sm",
1252
- children: [/* @__PURE__ */ z(o, {
1255
+ children: [/* @__PURE__ */ V(o, {
1253
1256
  tag: "span",
1254
1257
  id: `product-option-${e.id}-variant-toggle-label`,
1255
1258
  size: "pxs",
1256
1259
  type: "secondary",
1257
1260
  weight: "medium",
1258
- children: I.useForVariantsLabel
1259
- }), /* @__PURE__ */ z(ee, {
1261
+ children: R.useForVariantsLabel
1262
+ }), /* @__PURE__ */ V(ee, {
1260
1263
  checked: !!e.usedForVariants,
1261
- onValueChange: (t) => M(e, t),
1264
+ onValueChange: (t) => P(e, t),
1262
1265
  "aria-labelledby": `product-option-${e.id}-variant-toggle-label`
1263
1266
  })]
1264
- }), v]
1267
+ }), y]
1265
1268
  })
1266
1269
  ]
1267
1270
  })
1268
1271
  }, e.id);
1269
- }), !!De && /* @__PURE__ */ z("div", {
1272
+ }), !!Oe && /* @__PURE__ */ V("div", {
1270
1273
  className: "product-options-matrix--create-row border-t border-border/60 p-surface-xs",
1271
- children: /* @__PURE__ */ z(a, {
1274
+ children: /* @__PURE__ */ V(a, {
1272
1275
  type: "button",
1273
1276
  tone: "secondary",
1274
1277
  buttonStyle: "ghost",
1275
- onClick: v,
1276
- icon: Se,
1278
+ onClick: y,
1279
+ icon: we,
1277
1280
  size: "sm",
1278
1281
  fullWidth: !0,
1279
1282
  className: "justify-start text-foreground",
1280
- children: I.addAnotherOptionLabel
1283
+ children: R.addAnotherOptionLabel
1281
1284
  })
1282
1285
  })]
1283
- }) : /* @__PURE__ */ z("div", {
1284
- className: i(Ee && "border-t border-border/60"),
1285
- children: le ?? /* @__PURE__ */ z($, {
1286
- title: I.emptyTitle,
1287
- description: I.emptyDescription,
1288
- action: v && !Ee ? /* @__PURE__ */ z(a, {
1286
+ }) : /* @__PURE__ */ V("div", {
1287
+ className: i(De && "border-t border-border/60"),
1288
+ children: ce ?? /* @__PURE__ */ V($, {
1289
+ title: R.emptyTitle,
1290
+ description: R.emptyDescription,
1291
+ action: y && !De ? /* @__PURE__ */ V(a, {
1289
1292
  tone: "primary",
1290
1293
  type: "button",
1291
- onClick: v,
1294
+ onClick: y,
1292
1295
  icon: G,
1293
- children: I.createLabel
1296
+ children: R.createLabel
1294
1297
  }) : void 0
1295
1298
  })
1296
1299
  })]
1297
1300
  }),
1298
- !!(S !== !1 && Pe) && /* @__PURE__ */ z(h, {
1299
- ...Ne.overlayProps,
1301
+ !!(C !== !1 && Fe) && /* @__PURE__ */ V(_, {
1302
+ ...Pe.overlayProps,
1300
1303
  destructive: !0,
1301
- title: I.confirmRemoveValuesTitle,
1302
- description: n(I.confirmRemoveValuesDescription, { count: Pe.removed }),
1303
- strings: { confirm: I.confirmRemoveValuesLabel },
1304
- onConfirm: () => Me(Pe.option)
1304
+ title: R.confirmRemoveValuesTitle,
1305
+ description: n(R.confirmRemoveValuesDescription, { count: Fe.removed }),
1306
+ strings: { confirm: R.confirmRemoveValuesLabel },
1307
+ onConfirm: () => Ne(Fe.option)
1305
1308
  }),
1306
- !!(S !== !1 && x) && /* @__PURE__ */ z(h, {
1307
- ...Re.overlayProps,
1309
+ !!(C !== !1 && x) && /* @__PURE__ */ V(_, {
1310
+ ...ze.overlayProps,
1308
1311
  destructive: !0,
1309
- title: I.confirmDeleteOptionTitle,
1310
- description: I.confirmDeleteOptionDescription,
1311
- strings: { confirm: I.deleteLabel },
1312
+ title: R.confirmDeleteOptionTitle,
1313
+ description: R.confirmDeleteOptionDescription,
1314
+ strings: { confirm: R.deleteLabel },
1312
1315
  onConfirm: () => {
1313
- ze && Le(ze);
1316
+ Be && Re(Be);
1314
1317
  }
1315
1318
  })
1316
1319
  ]
1317
1320
  });
1318
- return t === "embedded" ? /* @__PURE__ */ z("section", {
1319
- "aria-label": I.title,
1320
- className: i("product-options-matrix--component @container/product-options-matrix min-w-0", ue),
1321
+ return t === "embedded" ? /* @__PURE__ */ V("section", {
1322
+ "aria-label": R.title,
1323
+ className: i("product-options-matrix--component @container/product-options-matrix min-w-0", le),
1321
1324
  children: Ge
1322
- }) : /* @__PURE__ */ z(O, {
1323
- title: I.title,
1324
- description: I.description,
1325
- actions: se,
1326
- headerAction: He,
1327
- headerEnd: ce,
1328
- footerSlot: F,
1329
- className: i("product-options-matrix--component @container/product-options-matrix w-full", ue),
1325
+ }) : /* @__PURE__ */ V(j, {
1326
+ title: R.title,
1327
+ description: R.description,
1328
+ actions: oe,
1329
+ headerAction: Ue,
1330
+ headerEnd: L,
1331
+ footerSlot: se,
1332
+ className: i("product-options-matrix--component @container/product-options-matrix w-full", le),
1330
1333
  children: Ge
1331
1334
  });
1332
1335
  }
1333
- ct.displayName = "ProductOptionsMatrix";
1336
+ ut.displayName = "ProductOptionsMatrix";
1334
1337
  //#endregion
1335
1338
  //#region src/components/features/products/components/product-options-summary.tsx
1336
- function lt({ options: e = [], onManageOptions: t, onCreateOption: n, onSelectOption: o, onEditOption: s, onDeleteOption: c, renderOptionActions: l, actions: u, footerSlot: d, renderOption: f, empty: p, className: m, strings: h }) {
1337
- let g = r(ke, h), _ = !!(o || s || c || l), v = [...u ?? [], ...n && t ? [{
1339
+ function dt({ options: e = [], onManageOptions: t, onCreateOption: n, onSelectOption: o, onEditOption: s, onDeleteOption: c, renderOptionActions: l, actions: u, footerSlot: d, renderOption: f, empty: p, className: m, strings: h }) {
1340
+ let g = r(Y, h), _ = !!(o || s || c || l), v = [...u ?? [], ...n && t ? [{
1338
1341
  id: "manage-options",
1339
1342
  label: g.manageLabel,
1340
- icon: /* @__PURE__ */ z(K, { className: "size-icon-md" }),
1343
+ icon: /* @__PURE__ */ V(q, { className: "size-icon-md" }),
1341
1344
  onClick: t
1342
- }] : []], y = n || t ? /* @__PURE__ */ z(a, {
1345
+ }] : []], y = n || t ? /* @__PURE__ */ V(a, {
1343
1346
  type: "button",
1344
1347
  tone: "secondary",
1345
1348
  buttonStyle: "ghost",
@@ -1347,25 +1350,25 @@ function lt({ options: e = [], onManageOptions: t, onCreateOption: n, onSelectOp
1347
1350
  icon: n ? G : void 0,
1348
1351
  children: n ? g.createLabel : g.manageLabel
1349
1352
  }) : void 0;
1350
- return /* @__PURE__ */ z(O, {
1353
+ return /* @__PURE__ */ V(j, {
1351
1354
  title: g.title,
1352
1355
  description: g.description,
1353
1356
  actions: v.length > 0 ? v : void 0,
1354
1357
  headerAction: y,
1355
1358
  footerSlot: d,
1356
1359
  className: i("product-options-summary--component w-full", m),
1357
- children: e.length === 0 ? p ?? /* @__PURE__ */ z($, {
1360
+ children: e.length === 0 ? p ?? /* @__PURE__ */ V($, {
1358
1361
  title: g.emptyTitle,
1359
1362
  description: g.emptyDescription,
1360
- action: n ? /* @__PURE__ */ z(a, {
1363
+ action: n ? /* @__PURE__ */ V(a, {
1361
1364
  tone: "primary",
1362
1365
  type: "button",
1363
1366
  onClick: n,
1364
1367
  icon: G,
1365
1368
  children: g.createLabel
1366
1369
  }) : void 0
1367
- }) : /* @__PURE__ */ z(N, { children: e.map((e, t) => (() => {
1368
- let n = _ ? /* @__PURE__ */ z(nt, {
1370
+ }) : /* @__PURE__ */ V(I, { children: e.map((e, t) => (() => {
1371
+ let n = _ ? /* @__PURE__ */ V(it, {
1369
1372
  option: e,
1370
1373
  index: t,
1371
1374
  onSelectOption: o,
@@ -1380,18 +1383,18 @@ function lt({ options: e = [], onManageOptions: t, onCreateOption: n, onSelectOp
1380
1383
  actionsLabel: g.actionsLabel
1381
1384
  }
1382
1385
  }) : void 0;
1383
- return f ? /* @__PURE__ */ z("div", { children: f(e, t) }, e.id) : /* @__PURE__ */ z($e, {
1386
+ return f ? /* @__PURE__ */ V("div", { children: f(e, t) }, e.id) : /* @__PURE__ */ V(tt, {
1384
1387
  item: e,
1385
1388
  actions: n
1386
1389
  }, e.id);
1387
1390
  })()) })
1388
1391
  });
1389
1392
  }
1390
- lt.displayName = "ProductOptionsSummary";
1393
+ dt.displayName = "ProductOptionsSummary";
1391
1394
  //#endregion
1392
1395
  //#region src/components/features/products/components/product-policies-card.tsx
1393
- function ut({ policies: e = [], onCreatePolicy: t, onSelectPolicy: n, onEditPolicy: o, onDeletePolicy: s, renderPolicyActions: c, actions: l, footerSlot: u, renderPolicy: d, empty: f, className: p, strings: m }) {
1394
- let h = r(Z, m), g = t ? /* @__PURE__ */ z(a, {
1396
+ function ft({ policies: e = [], onCreatePolicy: t, onSelectPolicy: n, onEditPolicy: o, onDeletePolicy: s, renderPolicyActions: c, actions: l, footerSlot: u, renderPolicy: d, empty: f, className: p, strings: m }) {
1397
+ let h = r(Q, m), g = t ? /* @__PURE__ */ V(a, {
1395
1398
  type: "button",
1396
1399
  tone: "secondary",
1397
1400
  buttonStyle: "ghost",
@@ -1399,35 +1402,35 @@ function ut({ policies: e = [], onCreatePolicy: t, onSelectPolicy: n, onEditPoli
1399
1402
  icon: G,
1400
1403
  children: h.createLabel
1401
1404
  }) : void 0;
1402
- return /* @__PURE__ */ z(O, {
1405
+ return /* @__PURE__ */ V(j, {
1403
1406
  title: h.title,
1404
1407
  description: h.description,
1405
1408
  actions: l,
1406
1409
  headerAction: g,
1407
1410
  footerSlot: u,
1408
1411
  className: i("product-policies-card--component w-full", p),
1409
- children: e.length === 0 ? f ?? /* @__PURE__ */ z($, {
1412
+ children: e.length === 0 ? f ?? /* @__PURE__ */ V($, {
1410
1413
  title: h.emptyTitle,
1411
1414
  description: h.emptyDescription,
1412
- action: t ? /* @__PURE__ */ z(a, {
1415
+ action: t ? /* @__PURE__ */ V(a, {
1413
1416
  tone: "primary",
1414
1417
  type: "button",
1415
1418
  onClick: t,
1416
1419
  icon: G,
1417
1420
  children: h.createLabel
1418
1421
  }) : void 0
1419
- }) : /* @__PURE__ */ z(N, { children: e.map((e, t) => (() => {
1422
+ }) : /* @__PURE__ */ V(I, { children: e.map((e, t) => (() => {
1420
1423
  let r = n ? () => n(e) : void 0, i = o ? () => o(e) : void 0, a = s ? () => s(e) : void 0, l = [...i ? [{
1421
1424
  id: "edit",
1422
1425
  label: h.editLabel,
1423
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
1426
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
1424
1427
  onClick: () => i(),
1425
1428
  tone: "secondary",
1426
1429
  buttonStyle: "ghost"
1427
1430
  }] : [], ...a ? [{
1428
1431
  id: "delete",
1429
1432
  label: h.deleteLabel,
1430
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
1433
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
1431
1434
  onClick: () => a(),
1432
1435
  tone: "destructive"
1433
1436
  }] : []], u = c ? c(e, {
@@ -1435,12 +1438,12 @@ function ut({ policies: e = [], onCreatePolicy: t, onSelectPolicy: n, onEditPoli
1435
1438
  onSelect: r,
1436
1439
  onEdit: i,
1437
1440
  onDelete: a
1438
- }) : /* @__PURE__ */ z(We, {
1441
+ }) : /* @__PURE__ */ V(Ke, {
1439
1442
  item: e,
1440
1443
  actions: l,
1441
1444
  menuLabel: h.actionsLabel
1442
1445
  });
1443
- return d ? /* @__PURE__ */ z("div", { children: d(e, t) }, e.id) : /* @__PURE__ */ z($e, {
1446
+ return d ? /* @__PURE__ */ V("div", { children: d(e, t) }, e.id) : /* @__PURE__ */ V(tt, {
1444
1447
  item: e,
1445
1448
  actionLabel: h.viewLabel,
1446
1449
  onSelect: r,
@@ -1449,69 +1452,69 @@ function ut({ policies: e = [], onCreatePolicy: t, onSelectPolicy: n, onEditPoli
1449
1452
  })()) })
1450
1453
  });
1451
1454
  }
1452
- ut.displayName = "ProductPoliciesCard";
1455
+ ft.displayName = "ProductPoliciesCard";
1453
1456
  //#endregion
1454
1457
  //#region src/components/features/products/components/product-quote-preview-card.tsx
1455
- function dt({ lines: e = [], subtotal: t, tax: n, discount: s, total: c, onOpenQuote: l, onCreateLine: d, onSelectLine: f, onEditLine: p, onDeleteLine: m, renderLineActions: h, actions: g, footerSlot: v, empty: y, className: b, strings: x }) {
1456
- let C = r(X, x), w = t !== void 0 || n !== void 0 || s !== void 0, T = d || l ? /* @__PURE__ */ B("div", {
1458
+ function pt({ lines: e = [], subtotal: t, tax: n, discount: s, total: c, onOpenQuote: l, onCreateLine: d, onSelectLine: f, onEditLine: p, onDeleteLine: m, renderLineActions: h, actions: g, footerSlot: _, empty: v, className: b, strings: x }) {
1459
+ let S = r(Z, x), C = t !== void 0 || n !== void 0 || s !== void 0, T = d || l ? /* @__PURE__ */ H("div", {
1457
1460
  className: "flex items-center gap-space-md",
1458
- children: [!!d && /* @__PURE__ */ z(a, {
1461
+ children: [!!d && /* @__PURE__ */ V(a, {
1459
1462
  type: "button",
1460
1463
  tone: "secondary",
1461
1464
  buttonStyle: "ghost",
1462
1465
  onClick: d,
1463
1466
  icon: G,
1464
- children: C.createLineLabel
1465
- }), !!l && /* @__PURE__ */ z(a, {
1467
+ children: S.createLineLabel
1468
+ }), !!l && /* @__PURE__ */ V(a, {
1466
1469
  type: "button",
1467
1470
  tone: "secondary",
1468
1471
  buttonStyle: "ghost",
1469
1472
  onClick: l,
1470
- children: C.actionLabel
1473
+ children: S.actionLabel
1471
1474
  })]
1472
1475
  }) : void 0;
1473
- return /* @__PURE__ */ z(O, {
1474
- title: C.title,
1475
- description: C.description,
1476
+ return /* @__PURE__ */ V(j, {
1477
+ title: S.title,
1478
+ description: S.description,
1476
1479
  actions: g,
1477
1480
  headerAction: T,
1478
- footerSlot: v,
1481
+ footerSlot: _,
1479
1482
  className: i("product-quote-preview-card--component w-full", b),
1480
- children: e.length === 0 ? y ?? /* @__PURE__ */ z($, {
1481
- title: C.emptyTitle,
1482
- description: C.emptyDescription,
1483
- action: d ? /* @__PURE__ */ z(a, {
1483
+ children: e.length === 0 ? v ?? /* @__PURE__ */ V($, {
1484
+ title: S.emptyTitle,
1485
+ description: S.emptyDescription,
1486
+ action: d ? /* @__PURE__ */ V(a, {
1484
1487
  tone: "primary",
1485
1488
  type: "button",
1486
1489
  onClick: d,
1487
1490
  icon: G,
1488
- children: C.createLineLabel
1491
+ children: S.createLineLabel
1489
1492
  }) : void 0
1490
- }) : /* @__PURE__ */ B(u, {
1493
+ }) : /* @__PURE__ */ H(u, {
1491
1494
  gap: "2xl",
1492
1495
  className: "product-quote-preview-card--body",
1493
- children: [/* @__PURE__ */ z(N, { children: e.map((e, t) => {
1496
+ children: [/* @__PURE__ */ V(I, { children: e.map((e, t) => {
1494
1497
  let n = f ? () => f(e) : void 0, r = p ? () => p(e) : void 0, i = m ? () => m(e) : void 0, a = [
1495
1498
  ...n ? [{
1496
1499
  id: "open",
1497
- label: C.viewLineLabel,
1498
- icon: /* @__PURE__ */ z(H, { className: "size-icon-md" }),
1500
+ label: S.viewLineLabel,
1501
+ icon: /* @__PURE__ */ V(xe, { className: "size-icon-md" }),
1499
1502
  onClick: () => n(),
1500
1503
  tone: "secondary",
1501
1504
  buttonStyle: "ghost"
1502
1505
  }] : [],
1503
1506
  ...r ? [{
1504
1507
  id: "edit",
1505
- label: C.editLineLabel,
1506
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
1508
+ label: S.editLineLabel,
1509
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
1507
1510
  onClick: () => r(),
1508
1511
  tone: "secondary",
1509
1512
  buttonStyle: "ghost"
1510
1513
  }] : [],
1511
1514
  ...i ? [{
1512
1515
  id: "delete",
1513
- label: C.deleteLineLabel,
1514
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
1516
+ label: S.deleteLineLabel,
1517
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
1515
1518
  onClick: () => i(),
1516
1519
  tone: "destructive"
1517
1520
  }] : []
@@ -1520,55 +1523,55 @@ function dt({ lines: e = [], subtotal: t, tax: n, discount: s, total: c, onOpenQ
1520
1523
  onSelect: n,
1521
1524
  onEdit: r,
1522
1525
  onDelete: i
1523
- }) : /* @__PURE__ */ z(We, {
1526
+ }) : /* @__PURE__ */ V(Ke, {
1524
1527
  item: e,
1525
1528
  actions: a,
1526
- menuLabel: C.lineActionsLabel
1529
+ menuLabel: S.lineActionsLabel
1527
1530
  });
1528
- return /* @__PURE__ */ B(re, {
1531
+ return /* @__PURE__ */ H(re, {
1529
1532
  className: "product-quote-preview-card--line",
1530
- children: [/* @__PURE__ */ B(P, { children: [
1531
- /* @__PURE__ */ z(ie, { children: e.label }),
1532
- !!e.description && /* @__PURE__ */ z(j, { children: e.description }),
1533
- !!e.quantity && /* @__PURE__ */ z(j, { children: e.quantity })
1534
- ] }), /* @__PURE__ */ B(M, { children: [/* @__PURE__ */ z(_, {
1533
+ children: [/* @__PURE__ */ H(ne, { children: [
1534
+ /* @__PURE__ */ V(ie, { children: e.label }),
1535
+ !!e.description && /* @__PURE__ */ V(P, { children: e.description }),
1536
+ !!e.quantity && /* @__PURE__ */ V(P, { children: e.quantity })
1537
+ ] }), /* @__PURE__ */ H(F, { children: [/* @__PURE__ */ V(y, {
1535
1538
  type: "inherit",
1536
1539
  className: "tabular-nums",
1537
1540
  children: e.amount
1538
1541
  }), o] })]
1539
1542
  }, e.id);
1540
- }) }), /* @__PURE__ */ B(u, {
1543
+ }) }), /* @__PURE__ */ H(u, {
1541
1544
  gap: "lg",
1542
1545
  className: "product-quote-preview-card--totals",
1543
1546
  children: [
1544
- !!w && /* @__PURE__ */ B(u, {
1547
+ !!C && /* @__PURE__ */ H(u, {
1545
1548
  gap: "sm",
1546
1549
  children: [
1547
- t !== void 0 && /* @__PURE__ */ z(de, {
1548
- label: C.subtotalLabel,
1550
+ t !== void 0 && /* @__PURE__ */ V(R, {
1551
+ label: S.subtotalLabel,
1549
1552
  value: t,
1550
1553
  valueClassName: "tabular-nums"
1551
1554
  }),
1552
- n !== void 0 && /* @__PURE__ */ z(de, {
1553
- label: C.taxLabel,
1555
+ n !== void 0 && /* @__PURE__ */ V(R, {
1556
+ label: S.taxLabel,
1554
1557
  value: n,
1555
1558
  valueClassName: "tabular-nums"
1556
1559
  }),
1557
- s !== void 0 && /* @__PURE__ */ z(de, {
1558
- label: C.discountLabel,
1560
+ s !== void 0 && /* @__PURE__ */ V(R, {
1561
+ label: S.discountLabel,
1559
1562
  value: s,
1560
1563
  valueClassName: "tabular-nums text-success"
1561
1564
  })
1562
1565
  ]
1563
1566
  }),
1564
- !!w && /* @__PURE__ */ z(S, {}),
1565
- /* @__PURE__ */ z(de, {
1566
- label: /* @__PURE__ */ z(o, {
1567
+ !!C && /* @__PURE__ */ V(w, {}),
1568
+ /* @__PURE__ */ V(R, {
1569
+ label: /* @__PURE__ */ V(o, {
1567
1570
  type: "inherit",
1568
1571
  tag: "span",
1569
1572
  weight: "semibold",
1570
1573
  lineHeight: "tight",
1571
- children: C.totalLabel
1574
+ children: S.totalLabel
1572
1575
  }),
1573
1576
  value: c ?? "-",
1574
1577
  valueClassName: "font-semibold tabular-nums"
@@ -1578,11 +1581,11 @@ function dt({ lines: e = [], subtotal: t, tax: n, discount: s, total: c, onOpenQ
1578
1581
  })
1579
1582
  });
1580
1583
  }
1581
- dt.displayName = "ProductQuotePreviewCard";
1584
+ pt.displayName = "ProductQuotePreviewCard";
1582
1585
  //#endregion
1583
1586
  //#region src/components/features/products/components/product-readiness-card.tsx
1584
- function ft({ items: e = [], score: t, scoreLabel: n, summary: s, onCreateReadinessItem: c, onSelectReadinessItem: l, onEditReadinessItem: d, onDeleteReadinessItem: f, renderReadinessItemActions: m, actions: h, footerSlot: g, renderItem: _, empty: v, className: b, strings: x }) {
1585
- let S = r(we, x), C = t === void 0 ? void 0 : Ve(t), w = c ? /* @__PURE__ */ z(a, {
1587
+ function mt({ items: e = [], score: t, scoreLabel: n, summary: s, onCreateReadinessItem: c, onSelectReadinessItem: l, onEditReadinessItem: d, onDeleteReadinessItem: f, renderReadinessItemActions: m, actions: h, footerSlot: g, renderItem: _, empty: v, className: y, strings: b }) {
1588
+ let S = r(Ee, b), C = t === void 0 ? void 0 : Ue(t), w = c ? /* @__PURE__ */ V(a, {
1586
1589
  type: "button",
1587
1590
  tone: "secondary",
1588
1591
  buttonStyle: "ghost",
@@ -1590,67 +1593,67 @@ function ft({ items: e = [], score: t, scoreLabel: n, summary: s, onCreateReadin
1590
1593
  icon: G,
1591
1594
  children: S.createLabel
1592
1595
  }) : void 0;
1593
- return /* @__PURE__ */ B(O, {
1596
+ return /* @__PURE__ */ H(j, {
1594
1597
  title: S.title,
1595
1598
  description: S.description,
1596
1599
  actions: h,
1597
1600
  headerAction: w,
1598
1601
  footerSlot: g,
1599
1602
  contentGap: "2xl",
1600
- className: i("product-readiness-card--component w-full", b),
1601
- children: [(C !== void 0 || !!s) && /* @__PURE__ */ B(u, {
1603
+ className: i("product-readiness-card--component w-full", y),
1604
+ children: [(C !== void 0 || !!s) && /* @__PURE__ */ H(u, {
1602
1605
  gap: "lg",
1603
1606
  className: "product-readiness-card--summary",
1604
- children: [C !== void 0 && /* @__PURE__ */ B(u, {
1607
+ children: [C !== void 0 && /* @__PURE__ */ H(u, {
1605
1608
  gap: "sm",
1606
1609
  className: "product-readiness-card--score",
1607
- children: [/* @__PURE__ */ B(u, {
1610
+ children: [/* @__PURE__ */ H(u, {
1608
1611
  direction: "horizontal",
1609
1612
  justify: "between",
1610
1613
  gap: "lg",
1611
- children: [/* @__PURE__ */ z(o, {
1614
+ children: [/* @__PURE__ */ V(o, {
1612
1615
  size: "xs",
1613
1616
  type: "secondary",
1614
1617
  children: n ?? S.scoreLabel
1615
- }), /* @__PURE__ */ z(y, {
1618
+ }), /* @__PURE__ */ V(x, {
1616
1619
  type: "inherit",
1617
1620
  value: C,
1618
1621
  scaled: !0,
1619
1622
  size: "xs",
1620
1623
  weight: "semibold"
1621
1624
  })]
1622
- }), /* @__PURE__ */ z(p, {
1625
+ }), /* @__PURE__ */ V(p, {
1623
1626
  value: C,
1624
1627
  "aria-label": typeof n == "string" ? n : S.progressLabel,
1625
1628
  "aria-valuetext": `${C}%`,
1626
1629
  size: "sm"
1627
1630
  })]
1628
- }), !!s && /* @__PURE__ */ z(o, {
1631
+ }), !!s && /* @__PURE__ */ V(o, {
1629
1632
  type: "secondary",
1630
1633
  children: s
1631
1634
  })]
1632
- }), e.length === 0 ? v ?? /* @__PURE__ */ z($, {
1635
+ }), e.length === 0 ? v ?? /* @__PURE__ */ V($, {
1633
1636
  title: S.emptyTitle,
1634
1637
  description: S.emptyDescription,
1635
- action: c ? /* @__PURE__ */ z(a, {
1638
+ action: c ? /* @__PURE__ */ V(a, {
1636
1639
  tone: "primary",
1637
1640
  type: "button",
1638
1641
  onClick: c,
1639
1642
  icon: G,
1640
1643
  children: S.createLabel
1641
1644
  }) : void 0
1642
- }) : /* @__PURE__ */ z(N, { children: e.map((e, t) => {
1645
+ }) : /* @__PURE__ */ V(I, { children: e.map((e, t) => {
1643
1646
  let n = l ? () => l(e) : void 0, r = d ? () => d(e) : void 0, i = f ? () => f(e) : void 0, a = [...r ? [{
1644
1647
  id: "edit",
1645
1648
  label: S.editLabel,
1646
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
1649
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
1647
1650
  onClick: () => r(),
1648
1651
  tone: "secondary",
1649
1652
  buttonStyle: "ghost"
1650
1653
  }] : [], ...i ? [{
1651
1654
  id: "delete",
1652
1655
  label: S.deleteLabel,
1653
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
1656
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
1654
1657
  onClick: () => i(),
1655
1658
  tone: "destructive"
1656
1659
  }] : []], o = m ? m(e, {
@@ -1658,12 +1661,12 @@ function ft({ items: e = [], score: t, scoreLabel: n, summary: s, onCreateReadin
1658
1661
  onSelect: n,
1659
1662
  onEdit: r,
1660
1663
  onDelete: i
1661
- }) : /* @__PURE__ */ z(We, {
1664
+ }) : /* @__PURE__ */ V(Ke, {
1662
1665
  item: e,
1663
1666
  actions: a,
1664
1667
  menuLabel: S.actionsLabel
1665
1668
  });
1666
- return _ ? /* @__PURE__ */ z("div", { children: _(e, t) }, e.id) : /* @__PURE__ */ z(Ze, {
1669
+ return _ ? /* @__PURE__ */ V("div", { children: _(e, t) }, e.id) : /* @__PURE__ */ V($e, {
1667
1670
  item: e,
1668
1671
  actionFallback: S.actionLabel,
1669
1672
  onSelect: n,
@@ -1672,11 +1675,11 @@ function ft({ items: e = [], score: t, scoreLabel: n, summary: s, onCreateReadin
1672
1675
  }) })]
1673
1676
  });
1674
1677
  }
1675
- ft.displayName = "ProductReadinessCard";
1678
+ mt.displayName = "ProductReadinessCard";
1676
1679
  //#endregion
1677
1680
  //#region src/components/features/products/components/product-structure-card.tsx
1678
- function pt({ metrics: e = [], onCreateMetric: t, onSelectMetric: n, onEditMetric: o, onDeleteMetric: s, renderMetricActions: c, actions: l, footerSlot: u, empty: d, className: f, strings: p }) {
1679
- let m = r(Te, p), h = t ? /* @__PURE__ */ z(a, {
1681
+ function ht({ metrics: e = [], onCreateMetric: t, onSelectMetric: n, onEditMetric: o, onDeleteMetric: s, renderMetricActions: c, actions: l, footerSlot: u, empty: d, className: f, strings: p }) {
1682
+ let m = r(De, p), h = t ? /* @__PURE__ */ V(a, {
1680
1683
  type: "button",
1681
1684
  tone: "secondary",
1682
1685
  buttonStyle: "ghost",
@@ -1684,29 +1687,29 @@ function pt({ metrics: e = [], onCreateMetric: t, onSelectMetric: n, onEditMetri
1684
1687
  icon: G,
1685
1688
  children: m.createLabel
1686
1689
  }) : void 0;
1687
- return /* @__PURE__ */ z(O, {
1690
+ return /* @__PURE__ */ V(j, {
1688
1691
  title: m.title,
1689
1692
  description: m.description,
1690
1693
  actions: l,
1691
1694
  headerAction: h,
1692
1695
  footerSlot: u,
1693
1696
  className: i("product-structure-card--component w-full", f),
1694
- children: e.length === 0 ? d ?? /* @__PURE__ */ z($, {
1697
+ children: e.length === 0 ? d ?? /* @__PURE__ */ V($, {
1695
1698
  title: m.emptyTitle,
1696
1699
  description: m.emptyDescription,
1697
- action: t ? /* @__PURE__ */ z(a, {
1700
+ action: t ? /* @__PURE__ */ V(a, {
1698
1701
  tone: "primary",
1699
1702
  type: "button",
1700
1703
  onClick: t,
1701
1704
  icon: G,
1702
1705
  children: m.createLabel
1703
1706
  }) : void 0
1704
- }) : /* @__PURE__ */ z(N, { children: e.map((e, t) => {
1707
+ }) : /* @__PURE__ */ V(I, { children: e.map((e, t) => {
1705
1708
  let r = n ? () => n(e) : void 0, i = o ? () => o(e) : void 0, a = s ? () => s(e) : void 0, l = [
1706
1709
  ...r ? [{
1707
1710
  id: "open",
1708
1711
  label: m.viewLabel,
1709
- icon: /* @__PURE__ */ z(H, { className: "size-icon-md" }),
1712
+ icon: /* @__PURE__ */ V(xe, { className: "size-icon-md" }),
1710
1713
  onClick: () => r(),
1711
1714
  tone: "secondary",
1712
1715
  buttonStyle: "ghost"
@@ -1714,7 +1717,7 @@ function pt({ metrics: e = [], onCreateMetric: t, onSelectMetric: n, onEditMetri
1714
1717
  ...i ? [{
1715
1718
  id: "edit",
1716
1719
  label: m.editLabel,
1717
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
1720
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
1718
1721
  onClick: () => i(),
1719
1722
  tone: "secondary",
1720
1723
  buttonStyle: "ghost"
@@ -1722,7 +1725,7 @@ function pt({ metrics: e = [], onCreateMetric: t, onSelectMetric: n, onEditMetri
1722
1725
  ...a ? [{
1723
1726
  id: "delete",
1724
1727
  label: m.deleteLabel,
1725
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
1728
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
1726
1729
  onClick: () => a(),
1727
1730
  tone: "destructive"
1728
1731
  }] : []
@@ -1731,51 +1734,51 @@ function pt({ metrics: e = [], onCreateMetric: t, onSelectMetric: n, onEditMetri
1731
1734
  onSelect: r,
1732
1735
  onEdit: i,
1733
1736
  onDelete: a
1734
- }) : /* @__PURE__ */ z(We, {
1737
+ }) : /* @__PURE__ */ V(Ke, {
1735
1738
  item: e,
1736
1739
  actions: l,
1737
1740
  menuLabel: m.actionsLabel
1738
1741
  });
1739
- return /* @__PURE__ */ z(Xe, {
1742
+ return /* @__PURE__ */ V(Qe, {
1740
1743
  metric: e,
1741
1744
  actions: u
1742
1745
  }, e.id);
1743
1746
  }) })
1744
1747
  });
1745
1748
  }
1746
- pt.displayName = "ProductStructureCard";
1749
+ ht.displayName = "ProductStructureCard";
1747
1750
  //#endregion
1748
1751
  //#region src/components/features/products/components/product-variants-table.tsx
1749
- function mt({ variant: e, channelsLabel: t }) {
1750
- return /* @__PURE__ */ B(u, {
1752
+ function gt({ variant: e, channelsLabel: t }) {
1753
+ return /* @__PURE__ */ H(u, {
1751
1754
  gap: "xs",
1752
1755
  className: "product-variants-table--variant-cell min-w-0",
1753
- children: [/* @__PURE__ */ B(u, {
1756
+ children: [/* @__PURE__ */ H(u, {
1754
1757
  gap: "dense",
1755
- children: [/* @__PURE__ */ B(u, {
1758
+ children: [/* @__PURE__ */ H(u, {
1756
1759
  direction: "horizontal",
1757
1760
  gap: "sm",
1758
- children: [/* @__PURE__ */ z(o, {
1761
+ children: [/* @__PURE__ */ V(o, {
1759
1762
  type: "inherit",
1760
1763
  weight: "semibold",
1761
1764
  className: "truncate",
1762
1765
  children: e.name
1763
- }), !!e.status && /* @__PURE__ */ z(b, {
1766
+ }), !!e.status && /* @__PURE__ */ V(S, {
1764
1767
  tone: e.statusTone ?? "secondary",
1765
1768
  children: e.status
1766
1769
  })]
1767
- }), !!e.description && /* @__PURE__ */ z(o, {
1770
+ }), !!e.description && /* @__PURE__ */ V(o, {
1768
1771
  size: "xs",
1769
1772
  type: "secondary",
1770
1773
  children: e.description
1771
1774
  })]
1772
- }), !!(e.options?.length || e.channels) && /* @__PURE__ */ B(u, {
1775
+ }), !!(e.options?.length || e.channels) && /* @__PURE__ */ H(u, {
1773
1776
  direction: "horizontal",
1774
1777
  gap: "xs",
1775
- children: [e.options?.map((e, t) => /* @__PURE__ */ z(b, {
1778
+ children: [e.options?.map((e, t) => /* @__PURE__ */ V(S, {
1776
1779
  tone: "secondary",
1777
1780
  children: e
1778
- }, t)), !!e.channels && /* @__PURE__ */ B(o, {
1781
+ }, t)), !!e.channels && /* @__PURE__ */ H(o, {
1779
1782
  tag: "span",
1780
1783
  size: "xs",
1781
1784
  type: "secondary",
@@ -1788,22 +1791,22 @@ function mt({ variant: e, channelsLabel: t }) {
1788
1791
  })]
1789
1792
  });
1790
1793
  }
1791
- function ht({ value: e, emphasis: t = !1 }) {
1792
- return /* @__PURE__ */ z(e ? _ : v, {
1794
+ function _t({ value: e, emphasis: t = !1 }) {
1795
+ return /* @__PURE__ */ V(e ? y : b, {
1793
1796
  type: e ? "inherit" : "secondary",
1794
1797
  weight: t ? "semibold" : void 0,
1795
1798
  className: "min-w-0 tabular-nums",
1796
1799
  children: e ?? "-"
1797
1800
  });
1798
1801
  }
1799
- function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVariant: o, onDuplicateVariant: s, onDeleteVariant: c, renderVariantActions: l, actions: u, footerSlot: d, empty: f, className: p, strings: m }) {
1800
- let h = r(Q, m), g = R(() => {
1802
+ function vt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVariant: o, onDuplicateVariant: s, onDeleteVariant: c, renderVariantActions: l, actions: u, footerSlot: d, empty: f, className: p, strings: m }) {
1803
+ let h = r(Me, m), g = B(() => {
1801
1804
  if (l) return;
1802
1805
  let e = [
1803
1806
  ...n ? [{
1804
1807
  id: "open",
1805
1808
  label: h.viewLabel,
1806
- icon: /* @__PURE__ */ z(H, {
1809
+ icon: /* @__PURE__ */ V(xe, {
1807
1810
  className: "size-icon-sm",
1808
1811
  "aria-hidden": "true"
1809
1812
  }),
@@ -1813,7 +1816,7 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1813
1816
  ...o ? [{
1814
1817
  id: "edit",
1815
1818
  label: h.editLabel,
1816
- icon: /* @__PURE__ */ z(W, {
1819
+ icon: /* @__PURE__ */ V(W, {
1817
1820
  className: "size-icon-sm",
1818
1821
  "aria-hidden": "true"
1819
1822
  }),
@@ -1823,7 +1826,7 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1823
1826
  ...s ? [{
1824
1827
  id: "duplicate",
1825
1828
  label: h.duplicateLabel,
1826
- icon: /* @__PURE__ */ z(be, {
1829
+ icon: /* @__PURE__ */ V(be, {
1827
1830
  className: "size-icon-sm",
1828
1831
  "aria-hidden": "true"
1829
1832
  }),
@@ -1833,7 +1836,7 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1833
1836
  ...c ? [{
1834
1837
  id: "delete",
1835
1838
  label: h.deleteLabel,
1836
- icon: /* @__PURE__ */ z(q, {
1839
+ icon: /* @__PURE__ */ V(J, {
1837
1840
  className: "size-icon-sm",
1838
1841
  "aria-hidden": "true"
1839
1842
  }),
@@ -1852,12 +1855,12 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1852
1855
  h.duplicateLabel,
1853
1856
  h.editLabel,
1854
1857
  h.viewLabel
1855
- ]), _ = R(() => {
1858
+ ]), _ = B(() => {
1856
1859
  let e = [
1857
1860
  {
1858
1861
  accessorKey: "name",
1859
1862
  header: h.headers.variant,
1860
- cell: ({ row: e }) => /* @__PURE__ */ z(mt, {
1863
+ cell: ({ row: e }) => /* @__PURE__ */ V(gt, {
1861
1864
  variant: e.original,
1862
1865
  channelsLabel: h.headers.channels
1863
1866
  })
@@ -1865,7 +1868,7 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1865
1868
  {
1866
1869
  accessorKey: "price",
1867
1870
  header: h.headers.price,
1868
- cell: ({ row: e }) => /* @__PURE__ */ z(ht, {
1871
+ cell: ({ row: e }) => /* @__PURE__ */ V(_t, {
1869
1872
  value: e.original.price,
1870
1873
  emphasis: !0
1871
1874
  }),
@@ -1874,17 +1877,17 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1874
1877
  {
1875
1878
  accessorKey: "inventory",
1876
1879
  header: h.headers.inventory,
1877
- cell: ({ row: e }) => /* @__PURE__ */ z(ht, { value: e.original.inventory })
1880
+ cell: ({ row: e }) => /* @__PURE__ */ V(_t, { value: e.original.inventory })
1878
1881
  },
1879
1882
  {
1880
1883
  accessorKey: "sku",
1881
1884
  header: h.headers.sku,
1882
- cell: ({ row: e }) => /* @__PURE__ */ z(ht, { value: e.original.sku })
1885
+ cell: ({ row: e }) => /* @__PURE__ */ V(_t, { value: e.original.sku })
1883
1886
  },
1884
1887
  {
1885
1888
  accessorKey: "updatedAt",
1886
1889
  header: h.headers.updated,
1887
- cell: ({ row: e }) => /* @__PURE__ */ z(ht, { value: e.original.updatedAt })
1890
+ cell: ({ row: e }) => /* @__PURE__ */ V(_t, { value: e.original.updatedAt })
1888
1891
  }
1889
1892
  ];
1890
1893
  return l && e.push({
@@ -1912,7 +1915,7 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1912
1915
  h.headers.sku,
1913
1916
  h.headers.updated,
1914
1917
  h.headers.variant
1915
- ]), v = t ? /* @__PURE__ */ z(a, {
1918
+ ]), v = t ? /* @__PURE__ */ V(a, {
1916
1919
  type: "button",
1917
1920
  tone: "secondary",
1918
1921
  buttonStyle: "ghost",
@@ -1920,24 +1923,24 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1920
1923
  icon: G,
1921
1924
  children: h.createLabel
1922
1925
  }) : void 0;
1923
- return /* @__PURE__ */ z(O, {
1926
+ return /* @__PURE__ */ V(j, {
1924
1927
  title: h.title,
1925
1928
  description: h.description,
1926
1929
  actions: u,
1927
1930
  headerAction: v,
1928
1931
  footerSlot: d,
1929
1932
  className: i("product-variants-table--component w-full", p),
1930
- children: e.length === 0 ? f ?? /* @__PURE__ */ z($, {
1933
+ children: e.length === 0 ? f ?? /* @__PURE__ */ V($, {
1931
1934
  title: h.emptyTitle,
1932
1935
  description: h.emptyDescription,
1933
- action: t ? /* @__PURE__ */ z(a, {
1936
+ action: t ? /* @__PURE__ */ V(a, {
1934
1937
  tone: "primary",
1935
1938
  type: "button",
1936
1939
  onClick: t,
1937
1940
  icon: G,
1938
1941
  children: h.createLabel
1939
1942
  }) : void 0
1940
- }) : /* @__PURE__ */ z(pe, {
1943
+ }) : /* @__PURE__ */ V(pe, {
1941
1944
  data: e,
1942
1945
  columns: _,
1943
1946
  getRowId: (e) => e.id,
@@ -1954,43 +1957,43 @@ function gt({ variants: e = [], onCreateVariant: t, onSelectVariant: n, onEditVa
1954
1957
  })
1955
1958
  });
1956
1959
  }
1957
- gt.displayName = "ProductVariantsTable";
1960
+ vt.displayName = "ProductVariantsTable";
1958
1961
  //#endregion
1959
1962
  //#region src/components/features/products/components/product-overview.tsx
1960
- function _t({ details: e, contract: t, options: n, variants: a, readiness: o, structure: s, operations: c, quote: l, policies: d, slots: f, className: p, mainClassName: m, railClassName: h, strings: g }) {
1961
- let _ = r(Ie, g), v = !!(o || s || c || l || d || f?.railTop || f?.railBottom);
1962
- return /* @__PURE__ */ B(u, {
1963
+ function yt({ details: e, contract: t, options: n, variants: a, readiness: o, structure: s, operations: c, quote: l, policies: d, slots: f, className: p, mainClassName: m, railClassName: h, strings: g }) {
1964
+ let _ = r(Re, g), v = !!(o || s || c || l || d || f?.railTop || f?.railBottom);
1965
+ return /* @__PURE__ */ H(u, {
1963
1966
  gap: "3xl",
1964
1967
  className: i("product-overview--component @container/product-overview", p),
1965
1968
  children: [
1966
1969
  f?.before,
1967
- /* @__PURE__ */ B("div", {
1970
+ /* @__PURE__ */ H("div", {
1968
1971
  className: i("grid min-w-0 grid-cols-1 gap-space-3xl", v && "@5xl/product-overview:grid-cols-[minmax(0,1fr)_22rem]"),
1969
- children: [/* @__PURE__ */ B(u, {
1970
- render: /* @__PURE__ */ z("section", {}),
1972
+ children: [/* @__PURE__ */ H(u, {
1973
+ render: /* @__PURE__ */ V("section", {}),
1971
1974
  gap: "3xl",
1972
1975
  "aria-label": _.mainLabel,
1973
1976
  className: i("product-overview--main", m),
1974
1977
  children: [
1975
1978
  f?.mainTop,
1976
- !!e && /* @__PURE__ */ z(tt, { ...e }),
1977
- !!t && /* @__PURE__ */ z(et, { ...t }),
1978
- !!n && /* @__PURE__ */ z(lt, { ...n }),
1979
- !!a && /* @__PURE__ */ z(gt, { ...a }),
1979
+ !!e && /* @__PURE__ */ V(rt, { ...e }),
1980
+ !!t && /* @__PURE__ */ V(nt, { ...t }),
1981
+ !!n && /* @__PURE__ */ V(dt, { ...n }),
1982
+ !!a && /* @__PURE__ */ V(vt, { ...a }),
1980
1983
  f?.mainBottom
1981
1984
  ]
1982
- }), !!v && /* @__PURE__ */ B(u, {
1983
- render: /* @__PURE__ */ z("aside", {}),
1985
+ }), !!v && /* @__PURE__ */ H(u, {
1986
+ render: /* @__PURE__ */ V("aside", {}),
1984
1987
  gap: "3xl",
1985
1988
  "aria-label": _.railLabel,
1986
1989
  className: i("product-overview--rail", h),
1987
1990
  children: [
1988
1991
  f?.railTop,
1989
- !!o && /* @__PURE__ */ z(ft, { ...o }),
1990
- !!s && /* @__PURE__ */ z(pt, { ...s }),
1991
- !!c && /* @__PURE__ */ z(rt, { ...c }),
1992
- !!l && /* @__PURE__ */ z(dt, { ...l }),
1993
- !!d && /* @__PURE__ */ z(ut, { ...d }),
1992
+ !!o && /* @__PURE__ */ V(mt, { ...o }),
1993
+ !!s && /* @__PURE__ */ V(ht, { ...s }),
1994
+ !!c && /* @__PURE__ */ V(at, { ...c }),
1995
+ !!l && /* @__PURE__ */ V(pt, { ...l }),
1996
+ !!d && /* @__PURE__ */ V(ft, { ...d }),
1994
1997
  f?.railBottom
1995
1998
  ]
1996
1999
  })]
@@ -1999,15 +2002,15 @@ function _t({ details: e, contract: t, options: n, variants: a, readiness: o, st
1999
2002
  ]
2000
2003
  });
2001
2004
  }
2002
- _t.displayName = "ProductOverview";
2005
+ yt.displayName = "ProductOverview";
2003
2006
  //#endregion
2004
2007
  //#region src/components/features/products/components/product-variant-action-menu.tsx
2005
- function vt(e, { onSelectVariant: t, onEditVariant: n, onDuplicateVariant: r, onDeleteVariant: i }, a) {
2008
+ function bt(e, { onSelectVariant: t, onEditVariant: n, onDuplicateVariant: r, onDeleteVariant: i }, a) {
2006
2009
  return [
2007
2010
  ...t ? [{
2008
2011
  id: "open",
2009
2012
  label: a.viewLabel,
2010
- icon: /* @__PURE__ */ z(H, { className: "size-icon-md" }),
2013
+ icon: /* @__PURE__ */ V(xe, { className: "size-icon-md" }),
2011
2014
  onClick: () => t(e),
2012
2015
  tone: "secondary",
2013
2016
  buttonStyle: "ghost"
@@ -2015,7 +2018,7 @@ function vt(e, { onSelectVariant: t, onEditVariant: n, onDuplicateVariant: r, on
2015
2018
  ...n ? [{
2016
2019
  id: "edit",
2017
2020
  label: a.editLabel,
2018
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
2021
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
2019
2022
  onClick: () => n(e),
2020
2023
  tone: "secondary",
2021
2024
  buttonStyle: "ghost"
@@ -2023,7 +2026,7 @@ function vt(e, { onSelectVariant: t, onEditVariant: n, onDuplicateVariant: r, on
2023
2026
  ...r ? [{
2024
2027
  id: "duplicate",
2025
2028
  label: a.duplicateLabel,
2026
- icon: /* @__PURE__ */ z(be, { className: "size-icon-md" }),
2029
+ icon: /* @__PURE__ */ V(be, { className: "size-icon-md" }),
2027
2030
  onClick: () => r(e),
2028
2031
  tone: "secondary",
2029
2032
  buttonStyle: "ghost"
@@ -2031,15 +2034,15 @@ function vt(e, { onSelectVariant: t, onEditVariant: n, onDuplicateVariant: r, on
2031
2034
  ...i ? [{
2032
2035
  id: "delete",
2033
2036
  label: a.deleteLabel,
2034
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
2037
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
2035
2038
  onClick: () => i(e),
2036
2039
  tone: "destructive"
2037
2040
  }] : []
2038
2041
  ];
2039
2042
  }
2040
- function yt({ variant: e, index: t = 0, onSelectVariant: n, onEditVariant: a, onDuplicateVariant: o, onDeleteVariant: s, renderVariantActions: c, menuLabel: l, className: u, strings: d }) {
2041
- let f = r(Ne, d), p = n ? () => n(e) : void 0, m = a ? () => a(e) : void 0, h = o ? () => o(e) : void 0, g = s ? () => s(e) : void 0;
2042
- return p || m || h || g || c ? c ? /* @__PURE__ */ z("div", {
2043
+ function xt({ variant: e, index: t = 0, onSelectVariant: n, onEditVariant: a, onDuplicateVariant: o, onDeleteVariant: s, renderVariantActions: c, menuLabel: l, className: u, strings: d }) {
2044
+ let f = r(Fe, d), p = n ? () => n(e) : void 0, m = a ? () => a(e) : void 0, h = o ? () => o(e) : void 0, g = s ? () => s(e) : void 0;
2045
+ return p || m || h || g || c ? c ? /* @__PURE__ */ V("div", {
2043
2046
  className: i("product-variant-action-menu--component flex justify-end", u),
2044
2047
  children: c(e, {
2045
2048
  index: t,
@@ -2048,11 +2051,11 @@ function yt({ variant: e, index: t = 0, onSelectVariant: n, onEditVariant: a, on
2048
2051
  onDuplicate: h,
2049
2052
  onDelete: g
2050
2053
  })
2051
- }) : /* @__PURE__ */ z(We, {
2054
+ }) : /* @__PURE__ */ V(Ke, {
2052
2055
  item: e,
2053
2056
  menuLabel: l ?? f.actionsLabel,
2054
2057
  className: i("product-variant-action-menu--component", u),
2055
- actions: vt(e, {
2058
+ actions: bt(e, {
2056
2059
  onSelectVariant: n,
2057
2060
  onEditVariant: a,
2058
2061
  onDuplicateVariant: o,
@@ -2063,11 +2066,11 @@ function yt({ variant: e, index: t = 0, onSelectVariant: n, onEditVariant: a, on
2063
2066
  }))
2064
2067
  }) : null;
2065
2068
  }
2066
- yt.displayName = "ProductVariantActionMenu";
2069
+ xt.displayName = "ProductVariantActionMenu";
2067
2070
  //#endregion
2068
2071
  //#region src/components/features/products/components/product-variant-details.tsx
2069
- var bt = (e) => e != null && e !== !1 && e !== "";
2070
- function xt(e, t) {
2072
+ var St = (e) => e != null && e !== !1 && e !== "";
2073
+ function Ct(e, t) {
2071
2074
  return [
2072
2075
  {
2073
2076
  label: t.price,
@@ -2089,214 +2092,215 @@ function xt(e, t) {
2089
2092
  label: t.updated,
2090
2093
  value: e.updatedAt
2091
2094
  }
2092
- ].filter((e) => bt(e.value));
2095
+ ].filter((e) => St(e.value));
2093
2096
  }
2094
- function St({ variant: e, metadata: t, optionItems: n = [], media: s, onBack: c, onSelectVariant: l, onEditVariant: d, onDuplicateVariant: f, onDeleteVariant: p, onSelectOption: m, actions: h, headerEnd: g, footerSlot: _, empty: v, renderActions: y, renderMetadata: x, renderOption: S, className: C, strings: w }) {
2095
- let T = r(Pe, w), E = e ? t ?? xt(e, T.metadata) : [], ee = [...e && !y ? vt(e, {
2097
+ function wt({ variant: e, metadata: t, optionItems: n = [], media: s, onBack: c, onSelectVariant: l, onEditVariant: d, onDuplicateVariant: f, onDeleteVariant: p, onSelectOption: m, actions: g, headerEnd: _, footerSlot: v, empty: y, renderActions: b, renderMetadata: x, renderOption: C, className: w, strings: T }) {
2098
+ let E = r(Ie, T), D = e ? t ?? Ct(e, E.metadata) : [], O = [...e && !b ? bt(e, {
2096
2099
  onSelectVariant: l,
2097
2100
  onEditVariant: d,
2098
2101
  onDuplicateVariant: f,
2099
2102
  onDeleteVariant: p
2100
- }, Ne) : [], ...h ?? []], D = !!(e && y), te = /* @__PURE__ */ B("div", {
2101
- className: "product-variant-details--header-actions flex items-center gap-space-md",
2102
- children: [!!c && /* @__PURE__ */ z(a, {
2103
+ }, Fe) : [], ...g ?? []], ee = !!(e && b), k = /* @__PURE__ */ H("div", {
2104
+ className: i("product-variant-details--header-actions flex items-center", h.commands),
2105
+ children: [!!c && /* @__PURE__ */ V(a, {
2103
2106
  type: "button",
2104
2107
  tone: "secondary",
2105
2108
  buttonStyle: "ghost",
2106
2109
  onClick: c,
2107
- icon: ye,
2108
- children: T.backLabel
2109
- }), !!D && e && /* @__PURE__ */ z(yt, {
2110
+ icon: U,
2111
+ children: E.backLabel
2112
+ }), !!ee && e && /* @__PURE__ */ V(xt, {
2110
2113
  variant: e,
2111
2114
  onSelectVariant: l,
2112
2115
  onEditVariant: d,
2113
2116
  onDuplicateVariant: f,
2114
2117
  onDeleteVariant: p,
2115
- renderVariantActions: y
2118
+ renderVariantActions: b
2116
2119
  })]
2117
- }), k = e?.options ?? [];
2118
- return /* @__PURE__ */ z(O, {
2119
- title: e?.name ?? T.title,
2120
- titleSuffix: e?.status ? /* @__PURE__ */ z(b, {
2120
+ }), A = e?.options ?? [];
2121
+ return /* @__PURE__ */ V(j, {
2122
+ title: e?.name ?? E.title,
2123
+ titleSuffix: e?.status ? /* @__PURE__ */ V(S, {
2121
2124
  tone: e.statusTone ?? "secondary",
2122
2125
  children: e.status
2123
2126
  }) : void 0,
2124
- description: e?.description ?? T.description,
2125
- actions: ee.length ? ee : void 0,
2126
- headerAction: c || D ? te : void 0,
2127
- headerEnd: g,
2128
- footerSlot: _,
2129
- className: i("product-variant-details--component w-full", C),
2130
- children: e ? /* @__PURE__ */ B(u, {
2127
+ description: e?.description ?? E.description,
2128
+ actions: O.length ? O : void 0,
2129
+ headerAction: c || ee ? k : void 0,
2130
+ headerEnd: _,
2131
+ footerSlot: v,
2132
+ className: i("product-variant-details--component w-full", w),
2133
+ children: e ? /* @__PURE__ */ H(u, {
2131
2134
  gap: "2xl",
2132
2135
  className: "product-variant-details--body",
2133
2136
  children: [
2134
- !!s && /* @__PURE__ */ z("div", {
2137
+ !!s && /* @__PURE__ */ V("div", {
2135
2138
  className: "product-variant-details--media overflow-hidden rounded-inner border border-border bg-muted/30",
2136
2139
  children: s
2137
2140
  }),
2138
- x ? x(e) : E.some(Boolean) && /* @__PURE__ */ B(u, {
2141
+ x ? x(e) : D.some(Boolean) && /* @__PURE__ */ H(u, {
2139
2142
  gap: "md",
2140
2143
  className: "product-variant-details--facts",
2141
- children: [/* @__PURE__ */ z(o, {
2144
+ children: [/* @__PURE__ */ V(o, {
2142
2145
  type: "inherit",
2143
2146
  weight: "semibold",
2144
- children: T.factsTitle
2145
- }), /* @__PURE__ */ z(ae, {
2146
- items: E,
2147
+ children: E.factsTitle
2148
+ }), /* @__PURE__ */ V(ae, {
2149
+ adaptTo: "container",
2150
+ items: D,
2147
2151
  columns: 3,
2148
2152
  density: "compact",
2149
2153
  className: "product-variant-details--metadata"
2150
2154
  })]
2151
2155
  }),
2152
- !!k.length && /* @__PURE__ */ B(u, {
2156
+ !!A.length && /* @__PURE__ */ H(u, {
2153
2157
  gap: "md",
2154
2158
  className: "product-variant-details--selected-options",
2155
- children: [/* @__PURE__ */ z(o, {
2159
+ children: [/* @__PURE__ */ V(o, {
2156
2160
  type: "inherit",
2157
2161
  weight: "semibold",
2158
- children: T.selectedOptionsTitle
2159
- }), /* @__PURE__ */ z("div", {
2162
+ children: E.selectedOptionsTitle
2163
+ }), /* @__PURE__ */ V("div", {
2160
2164
  className: "flex flex-wrap gap-space-sm",
2161
- children: k.map((e, t) => /* @__PURE__ */ z(b, {
2165
+ children: A.map((e, t) => /* @__PURE__ */ V(S, {
2162
2166
  tone: "secondary",
2163
2167
  children: e
2164
2168
  }, t))
2165
2169
  })]
2166
2170
  }),
2167
- !!n.length && /* @__PURE__ */ B(u, {
2171
+ !!n.length && /* @__PURE__ */ H(u, {
2168
2172
  gap: "md",
2169
2173
  className: "product-variant-details--related-options",
2170
- children: [/* @__PURE__ */ z(o, {
2174
+ children: [/* @__PURE__ */ V(o, {
2171
2175
  type: "inherit",
2172
2176
  weight: "semibold",
2173
- children: T.relatedOptionsTitle
2174
- }), /* @__PURE__ */ z(N, { children: n.map((e, t) => S ? /* @__PURE__ */ z("div", { children: S(e, t) }, e.id) : /* @__PURE__ */ z($e, {
2177
+ children: E.relatedOptionsTitle
2178
+ }), /* @__PURE__ */ V(I, { children: n.map((e, t) => C ? /* @__PURE__ */ V("div", { children: C(e, t) }, e.id) : /* @__PURE__ */ V(tt, {
2175
2179
  item: e,
2176
- actionLabel: T.viewOptionLabel,
2180
+ actionLabel: E.viewOptionLabel,
2177
2181
  onSelect: m ? () => m(e) : void 0
2178
2182
  }, e.id)) })]
2179
2183
  })
2180
2184
  ]
2181
- }) : v ?? /* @__PURE__ */ z($, {
2182
- title: T.emptyTitle,
2183
- description: T.emptyDescription
2185
+ }) : y ?? /* @__PURE__ */ V($, {
2186
+ title: E.emptyTitle,
2187
+ description: E.emptyDescription
2184
2188
  })
2185
2189
  });
2186
2190
  }
2187
- St.displayName = "ProductVariantDetails";
2191
+ wt.displayName = "ProductVariantDetails";
2188
2192
  //#endregion
2189
2193
  //#region src/components/features/products/components/product-variant-editor.tsx
2190
- var Ct = (e) => e.map((e) => ({
2194
+ var Tt = (e) => e.map((e) => ({
2191
2195
  value: e.value,
2192
2196
  label: e.label,
2193
2197
  disabled: e.disabled
2194
2198
  }));
2195
- function wt({ value: e, defaultValue: t, optionFields: n = [], statusOptions: s = [], onValueChange: c, onSubmit: l, onError: d, onCancel: f, onDelete: p, actions: m, headerEnd: h, footerSlot: g, disabled: _ = !1, submitting: v = !1, className: y, strings: b }) {
2196
- let x = r(Fe, b), S = he(), C = e !== void 0, [ee, te] = _e(t ?? {}), [k, ne] = _e(!1), A = (C ? e : ee) ?? {}, j = v || k, M = _ || j, N = (e) => {
2197
- C || te(e), c?.(e);
2198
- }, P = (e, t) => {
2199
- N({
2200
- ...A,
2199
+ function Et({ value: e, defaultValue: t, optionFields: n = [], statusOptions: s = [], onValueChange: c, onSubmit: l, onError: d, onCancel: f, onDelete: p, actions: m, headerEnd: h, footerSlot: g, disabled: _ = !1, submitting: v = !1, className: y, strings: b }) {
2200
+ let x = r(Le, b), S = he(), C = e !== void 0, [w, T] = _e(t ?? {}), [ee, A] = _e(!1), M = (C ? e : w) ?? {}, te = v || ee, N = _ || te, P = (e) => {
2201
+ C || T(e), c?.(e);
2202
+ }, F = (e, t) => {
2203
+ P({
2204
+ ...M,
2201
2205
  [e]: t
2202
2206
  });
2203
- }, re = (e, t) => {
2204
- N({
2205
- ...A,
2207
+ }, I = (e, t) => {
2208
+ P({
2209
+ ...M,
2206
2210
  options: {
2207
- ...A.options,
2211
+ ...M.options,
2208
2212
  [e.id]: t
2209
2213
  }
2210
2214
  });
2211
- }, ie = async (e) => {
2212
- if (e.preventDefault(), l && !j) {
2213
- ne(!0);
2215
+ }, ne = async (e) => {
2216
+ if (e.preventDefault(), l && !te) {
2217
+ A(!0);
2214
2218
  try {
2215
- await l(A);
2219
+ await l(M);
2216
2220
  } catch (e) {
2217
2221
  d?.(e);
2218
2222
  } finally {
2219
- ne(!1);
2223
+ A(!1);
2220
2224
  }
2221
2225
  }
2222
- }, ae = /* @__PURE__ */ B("div", {
2226
+ }, re = /* @__PURE__ */ H("div", {
2223
2227
  className: "product-variant-editor--footer flex flex-col-reverse gap-space-md @sm/product-variant-editor:flex-row @sm/product-variant-editor:items-center @sm/product-variant-editor:justify-between",
2224
- children: [/* @__PURE__ */ z("div", { children: !!p && /* @__PURE__ */ z(a, {
2228
+ children: [/* @__PURE__ */ V("div", { children: !!p && /* @__PURE__ */ V(a, {
2225
2229
  type: "button",
2226
2230
  tone: "destructive",
2227
2231
  buttonStyle: "ghost",
2228
- onClick: () => p(A),
2229
- disabled: M,
2232
+ onClick: () => p(M),
2233
+ disabled: N,
2230
2234
  children: x.deleteLabel
2231
- }) }), /* @__PURE__ */ B("div", {
2235
+ }) }), /* @__PURE__ */ H("div", {
2232
2236
  className: "flex flex-col-reverse gap-space-md @sm/product-variant-editor:flex-row @sm/product-variant-editor:justify-end",
2233
- children: [!!f && /* @__PURE__ */ z(a, {
2237
+ children: [!!f && /* @__PURE__ */ V(a, {
2234
2238
  type: "button",
2235
2239
  tone: "secondary",
2236
2240
  buttonStyle: "ghost",
2237
2241
  onClick: f,
2238
- disabled: M,
2242
+ disabled: N,
2239
2243
  children: x.cancelLabel
2240
- }), !!l && /* @__PURE__ */ z(a, {
2244
+ }), !!l && /* @__PURE__ */ V(a, {
2241
2245
  tone: "primary",
2242
2246
  type: "submit",
2243
2247
  form: S,
2244
- disabled: M,
2245
- children: j ? x.savingLabel : x.saveLabel
2248
+ disabled: N,
2249
+ children: te ? x.savingLabel : x.saveLabel
2246
2250
  })]
2247
2251
  })]
2248
- }), oe = !!(p || f || l);
2249
- return /* @__PURE__ */ z(O, {
2252
+ }), ie = !!(p || f || l);
2253
+ return /* @__PURE__ */ V(j, {
2250
2254
  title: x.title,
2251
2255
  description: x.description,
2252
2256
  actions: m,
2253
2257
  headerEnd: h,
2254
2258
  footerSlot: g,
2255
2259
  className: i("product-variant-editor--component @container/product-variant-editor w-full", y),
2256
- children: /* @__PURE__ */ B(u, {
2257
- render: /* @__PURE__ */ z("form", {
2260
+ children: /* @__PURE__ */ H(u, {
2261
+ render: /* @__PURE__ */ V("form", {
2258
2262
  id: S,
2259
- onSubmit: ie
2263
+ onSubmit: ne
2260
2264
  }),
2261
2265
  gap: "2xl",
2262
2266
  className: "product-variant-editor--form",
2263
2267
  children: [
2264
- /* @__PURE__ */ B("section", {
2268
+ /* @__PURE__ */ H("section", {
2265
2269
  className: "product-variant-editor--section grid gap-space-lg",
2266
- children: [/* @__PURE__ */ z(o, {
2270
+ children: [/* @__PURE__ */ V(o, {
2267
2271
  type: "inherit",
2268
2272
  weight: "semibold",
2269
2273
  children: x.identityTitle
2270
- }), /* @__PURE__ */ B("div", {
2274
+ }), /* @__PURE__ */ H("div", {
2271
2275
  className: "grid gap-space-lg @sm/product-variant-editor:grid-cols-2",
2272
2276
  children: [
2273
- /* @__PURE__ */ z(T, {
2277
+ /* @__PURE__ */ V(D, {
2274
2278
  label: x.fields.name,
2275
2279
  required: !0,
2276
- children: /* @__PURE__ */ z(w, {
2277
- value: A.name ?? "",
2278
- onChange: (e) => P("name", e.target.value),
2280
+ children: /* @__PURE__ */ V(E, {
2281
+ value: M.name ?? "",
2282
+ onChange: (e) => F("name", e.target.value),
2279
2283
  placeholder: x.placeholders.name,
2280
- disabled: M
2284
+ disabled: N
2281
2285
  })
2282
2286
  }),
2283
- /* @__PURE__ */ z(T, {
2287
+ /* @__PURE__ */ V(D, {
2284
2288
  label: x.fields.sku,
2285
- children: /* @__PURE__ */ z(w, {
2286
- value: A.sku ?? "",
2287
- onChange: (e) => P("sku", e.target.value),
2289
+ children: /* @__PURE__ */ V(E, {
2290
+ value: M.sku ?? "",
2291
+ onChange: (e) => F("sku", e.target.value),
2288
2292
  placeholder: x.placeholders.sku,
2289
- disabled: M
2293
+ disabled: N
2290
2294
  })
2291
2295
  }),
2292
- /* @__PURE__ */ z(T, {
2296
+ /* @__PURE__ */ V(D, {
2293
2297
  label: x.fields.description,
2294
2298
  className: "@sm/product-variant-editor:col-span-2",
2295
- children: /* @__PURE__ */ z(E, {
2296
- value: A.description ?? "",
2297
- onChange: (e) => P("description", e.target.value),
2299
+ children: /* @__PURE__ */ V(O, {
2300
+ value: M.description ?? "",
2301
+ onChange: (e) => F("description", e.target.value),
2298
2302
  placeholder: x.placeholders.description,
2299
- disabled: M,
2303
+ disabled: N,
2300
2304
  autoResize: !0,
2301
2305
  minRows: 2
2302
2306
  })
@@ -2304,144 +2308,144 @@ function wt({ value: e, defaultValue: t, optionFields: n = [], statusOptions: s
2304
2308
  ]
2305
2309
  })]
2306
2310
  }),
2307
- /* @__PURE__ */ B("section", {
2311
+ /* @__PURE__ */ H("section", {
2308
2312
  className: "product-variant-editor--section grid gap-space-lg",
2309
- children: [/* @__PURE__ */ z(o, {
2313
+ children: [/* @__PURE__ */ V(o, {
2310
2314
  type: "inherit",
2311
2315
  weight: "semibold",
2312
2316
  children: x.commercialTitle
2313
- }), /* @__PURE__ */ B("div", {
2317
+ }), /* @__PURE__ */ H("div", {
2314
2318
  className: "grid gap-space-lg @sm/product-variant-editor:grid-cols-2",
2315
2319
  children: [
2316
- /* @__PURE__ */ z(T, {
2320
+ /* @__PURE__ */ V(D, {
2317
2321
  label: x.fields.price,
2318
- children: /* @__PURE__ */ z(w, {
2319
- value: A.price ?? "",
2320
- onChange: (e) => P("price", e.target.value),
2322
+ children: /* @__PURE__ */ V(E, {
2323
+ value: M.price ?? "",
2324
+ onChange: (e) => F("price", e.target.value),
2321
2325
  placeholder: x.placeholders.price,
2322
- disabled: M
2326
+ disabled: N
2323
2327
  })
2324
2328
  }),
2325
- /* @__PURE__ */ z(T, {
2329
+ /* @__PURE__ */ V(D, {
2326
2330
  label: x.fields.inventory,
2327
- children: /* @__PURE__ */ z(w, {
2328
- value: A.inventory ?? "",
2329
- onChange: (e) => P("inventory", e.target.value),
2331
+ children: /* @__PURE__ */ V(E, {
2332
+ value: M.inventory ?? "",
2333
+ onChange: (e) => F("inventory", e.target.value),
2330
2334
  placeholder: x.placeholders.inventory,
2331
- disabled: M,
2335
+ disabled: N,
2332
2336
  inputMode: "numeric"
2333
2337
  })
2334
2338
  }),
2335
- /* @__PURE__ */ z(T, {
2339
+ /* @__PURE__ */ V(D, {
2336
2340
  label: x.fields.status,
2337
- children: s.length > 0 ? /* @__PURE__ */ z(D, {
2338
- options: Ct(s),
2339
- value: A.status ?? null,
2340
- onValueChange: (e) => P("status", e ?? ""),
2341
+ children: s.length > 0 ? /* @__PURE__ */ V(k, {
2342
+ options: Tt(s),
2343
+ value: M.status ?? null,
2344
+ onValueChange: (e) => F("status", e ?? ""),
2341
2345
  placeholder: x.statusPlaceholder,
2342
- disabled: M,
2346
+ disabled: N,
2343
2347
  "aria-label": x.fields.status
2344
- }) : /* @__PURE__ */ z(w, {
2345
- value: A.status ?? "",
2346
- onChange: (e) => P("status", e.target.value),
2348
+ }) : /* @__PURE__ */ V(E, {
2349
+ value: M.status ?? "",
2350
+ onChange: (e) => F("status", e.target.value),
2347
2351
  placeholder: x.placeholders.status,
2348
- disabled: M
2352
+ disabled: N
2349
2353
  })
2350
2354
  }),
2351
- /* @__PURE__ */ z(T, {
2355
+ /* @__PURE__ */ V(D, {
2352
2356
  label: x.fields.channels,
2353
- children: /* @__PURE__ */ z(w, {
2354
- value: A.channels ?? "",
2355
- onChange: (e) => P("channels", e.target.value),
2357
+ children: /* @__PURE__ */ V(E, {
2358
+ value: M.channels ?? "",
2359
+ onChange: (e) => F("channels", e.target.value),
2356
2360
  placeholder: x.placeholders.channels,
2357
- disabled: M
2361
+ disabled: N
2358
2362
  })
2359
2363
  })
2360
2364
  ]
2361
2365
  })]
2362
2366
  }),
2363
- !!n.length && /* @__PURE__ */ B("section", {
2367
+ !!n.length && /* @__PURE__ */ H("section", {
2364
2368
  className: "product-variant-editor--section grid gap-space-lg",
2365
- children: [/* @__PURE__ */ z(o, {
2369
+ children: [/* @__PURE__ */ V(o, {
2366
2370
  type: "inherit",
2367
2371
  weight: "semibold",
2368
2372
  children: x.optionsTitle
2369
- }), /* @__PURE__ */ z("div", {
2373
+ }), /* @__PURE__ */ V("div", {
2370
2374
  className: "grid gap-space-lg @sm/product-variant-editor:grid-cols-2",
2371
2375
  children: n.map((e) => {
2372
- let t = e.value ?? A.options?.[e.id] ?? "", n = !!e.choices?.length;
2373
- return /* @__PURE__ */ z(T, {
2376
+ let t = e.value ?? M.options?.[e.id] ?? "", n = !!e.choices?.length;
2377
+ return /* @__PURE__ */ V(D, {
2374
2378
  label: e.label,
2375
2379
  helperText: e.helperText,
2376
- children: n ? /* @__PURE__ */ z(D, {
2377
- options: Ct(e.choices ?? []),
2380
+ children: n ? /* @__PURE__ */ V(k, {
2381
+ options: Tt(e.choices ?? []),
2378
2382
  value: t || null,
2379
- onValueChange: (t) => re(e, t),
2383
+ onValueChange: (t) => I(e, t),
2380
2384
  placeholder: e.placeholder ?? x.optionPlaceholder,
2381
- disabled: M,
2385
+ disabled: N,
2382
2386
  "aria-label": e.label
2383
- }) : /* @__PURE__ */ z(w, {
2387
+ }) : /* @__PURE__ */ V(E, {
2384
2388
  value: t,
2385
- onChange: (t) => re(e, t.target.value),
2389
+ onChange: (t) => I(e, t.target.value),
2386
2390
  placeholder: e.placeholder ?? x.optionPlaceholder,
2387
- disabled: M
2391
+ disabled: N
2388
2392
  })
2389
2393
  }, e.id);
2390
2394
  })
2391
2395
  })]
2392
2396
  }),
2393
- g == null && oe && ae
2397
+ g == null && ie && re
2394
2398
  ]
2395
2399
  })
2396
2400
  });
2397
2401
  }
2398
- wt.displayName = "ProductVariantEditor";
2402
+ Et.displayName = "ProductVariantEditor";
2399
2403
  //#endregion
2400
2404
  //#region src/components/features/products/components/product-variants-bulk-table.tsx
2401
- var Tt = [
2405
+ var Dt = [
2402
2406
  "variant",
2403
2407
  "sku",
2404
2408
  "price",
2405
2409
  "inventory",
2406
2410
  "status"
2407
- ], Et = "text", Dt = "text", Ot = "multiple";
2408
- function kt(e) {
2411
+ ], Ot = "text", kt = "text", At = "multiple";
2412
+ function jt(e) {
2409
2413
  return typeof e == "string" || typeof e == "number" ? String(e) : "";
2410
2414
  }
2411
- function At(e, t) {
2415
+ function Mt(e, t) {
2412
2416
  let n = e.optionValues?.[t.id];
2413
2417
  if (n != null && n !== !1 && n !== "") return n;
2414
2418
  let r = e.optionValueIds?.[t.id];
2415
2419
  return t.values?.find((e) => e.id === r)?.label ?? void 0;
2416
2420
  }
2417
- function jt(e, t) {
2418
- return e.name !== void 0 && e.name !== null && e.name !== "" ? e.name : t.filter((e) => e.usedForVariants !== !1).map((t) => At(e, t)).filter((e) => e != null && e !== "").map((e) => kt(e)).filter(Boolean).join(" / ") || "-";
2421
+ function Nt(e, t) {
2422
+ return e.name !== void 0 && e.name !== null && e.name !== "" ? e.name : t.filter((e) => e.usedForVariants !== !1).map((t) => Mt(e, t)).filter((e) => e != null && e !== "").map((e) => jt(e)).filter(Boolean).join(" / ") || "-";
2419
2423
  }
2420
- function Mt(e, t) {
2421
- return t.filter((e) => e.usedForVariants !== !1).map((t) => At(e, t)).filter((e) => e != null && e !== "");
2424
+ function Pt(e, t) {
2425
+ return t.filter((e) => e.usedForVariants !== !1).map((t) => Mt(e, t)).filter((e) => e != null && e !== "");
2422
2426
  }
2423
- function Nt(e) {
2424
- return e.map(kt).filter(Boolean).join(" / ");
2427
+ function Ft(e) {
2428
+ return e.map(jt).filter(Boolean).join(" / ");
2425
2429
  }
2426
- function Pt(e, t) {
2427
- return kt(At(e, t)) || "-";
2430
+ function It(e, t) {
2431
+ return jt(Mt(e, t)) || "-";
2428
2432
  }
2429
- function Ft(e, t) {
2433
+ function Lt(e, t) {
2430
2434
  return e.map((e) => t.get(e)).filter((e) => !!e);
2431
2435
  }
2432
- function It(e) {
2436
+ function Rt(e) {
2433
2437
  return e == null || e === "" ? "-" : e;
2434
2438
  }
2435
- function Lt(e) {
2439
+ function zt(e) {
2436
2440
  return e != null && e !== "";
2437
2441
  }
2438
- function Rt(e) {
2442
+ function Bt(e) {
2439
2443
  return e === "sku" || e === "price" || e === "inventory";
2440
2444
  }
2441
- function zt(e, t) {
2442
- return e === "text" || e === "field" ? e : e[t] ?? Dt;
2445
+ function Vt(e, t) {
2446
+ return e === "text" || e === "field" ? e : e[t] ?? kt;
2443
2447
  }
2444
- function Bt(e, t, n, r) {
2448
+ function Ht(e, t, n, r) {
2445
2449
  return {
2446
2450
  index: e,
2447
2451
  field: t,
@@ -2449,11 +2453,11 @@ function Bt(e, t, n, r) {
2449
2453
  value: r
2450
2454
  };
2451
2455
  }
2452
- function Vt(e, t, n, r, a) {
2453
- let o = kt(e);
2456
+ function Ut(e, t, n, r, a) {
2457
+ let o = jt(e);
2454
2458
  if (n === "field") {
2455
2459
  let e = !!r;
2456
- return /* @__PURE__ */ z(w, {
2460
+ return /* @__PURE__ */ V(E, {
2457
2461
  readOnly: !e,
2458
2462
  value: o,
2459
2463
  onChange: e ? (e) => r(e.currentTarget.value) : void 0,
@@ -2462,229 +2466,229 @@ function Vt(e, t, n, r, a) {
2462
2466
  className: i("h-control-lg w-full min-w-24 bg-background px-control shadow-xs", !e && "text-muted-foreground")
2463
2467
  });
2464
2468
  }
2465
- let s = Lt(e) ? _ : v;
2466
- return /* @__PURE__ */ z(s, {
2469
+ let s = zt(e) ? y : b;
2470
+ return /* @__PURE__ */ V(s, {
2467
2471
  className: "min-w-0 whitespace-normal break-words tabular-nums",
2468
- children: It(e)
2472
+ children: Rt(e)
2469
2473
  });
2470
2474
  }
2471
- function Ht({ variants: e = [], optionGroups: t = [], groupByOptionId: n, visibleColumns: c = Tt, optionCombinationDisplay: l = Et, cellDisplay: d = Dt, selectionMode: f, renderOptionCombination: p, renderCell: m, selectedVariantIds: h, defaultSelectedVariantIds: g = [], onSelectedVariantIdsChange: _, onVariantFieldChange: v, onVariantFieldBlur: y, onCreateVariant: S, onGenerateVariants: C, onSelectVariant: w, onEditVariant: T, onDuplicateVariant: E, onDeleteVariant: ee, onBulkEdit: D, onBulkApply: k, onBulkDelete: ne, renderVariantActions: A, renderBulkActions: j, actions: M, headerEnd: N, footerSlot: P, empty: re, surface: ie = "card", className: ae, strings: de }) {
2472
- let I = r(je, de), fe = h !== void 0, [pe, he] = _e(g), ye = !!(j || D || k || ne), V = (f ?? (ye || fe || _ ? Ot : "none")) === "multiple", U = R(() => V ? fe ? h : pe : [], [
2473
- pe,
2474
- V,
2475
+ function Wt({ variants: e = [], optionGroups: t = [], groupByOptionId: n, visibleColumns: c = Dt, optionCombinationDisplay: l = Ot, cellDisplay: d = kt, selectionMode: f, renderOptionCombination: p, renderCell: h, selectedVariantIds: g, defaultSelectedVariantIds: _ = [], onSelectedVariantIdsChange: v, onVariantFieldChange: y, onVariantFieldBlur: b, onCreateVariant: x, onGenerateVariants: w, onSelectVariant: T, onEditVariant: E, onDuplicateVariant: D, onDeleteVariant: O, onBulkEdit: ee, onBulkApply: k, onBulkDelete: M, renderVariantActions: te, renderBulkActions: N, actions: P, headerEnd: F, footerSlot: I, empty: ne, surface: re = "card", className: ie, strings: ae }) {
2476
+ let R = r(Ne, ae), de = g !== void 0, [fe, pe] = _e(_), he = !!(N || ee || k || M), U = (f ?? (he || de || v ? At : "none")) === "multiple", ye = B(() => U ? de ? g : fe : [], [
2475
2477
  fe,
2476
- h
2477
- ]), xe = R(() => new Map(e.map((e) => [e.id, e])), [e]), Se = R(() => Ft(U, xe), [xe, U]), Ce = R(() => new Set(U), [U]), K = R(() => new Set(c), [c]), J = R(() => t.find((e) => e.id === n), [t, n]), we = R(() => new Map(e.map((e, t) => [e.id, t])), [e]), Te = R(() => {
2478
- if (!J) return e;
2479
- let t = new Map((J.values ?? []).map((e, t) => [e.id, t]));
2478
+ U,
2479
+ de,
2480
+ g
2481
+ ]), Se = B(() => new Map(e.map((e) => [e.id, e])), [e]), Ce = B(() => Lt(ye, Se), [Se, ye]), we = B(() => new Set(ye), [ye]), K = B(() => new Set(c), [c]), q = B(() => t.find((e) => e.id === n), [t, n]), Te = B(() => new Map(e.map((e, t) => [e.id, t])), [e]), Ee = B(() => {
2482
+ if (!q) return e;
2483
+ let t = new Map((q.values ?? []).map((e, t) => [e.id, t]));
2480
2484
  return [...e].sort((e, n) => {
2481
- let r = e.optionValueIds?.[J.id], i = n.optionValueIds?.[J.id], a = r === void 0 ? void 0 : t.get(r), o = i === void 0 ? void 0 : t.get(i), s = a ?? 2 ** 53 - 1, c = o ?? 2 ** 53 - 1;
2482
- return s === c ? (we.get(e.id) ?? 0) - (we.get(n.id) ?? 0) : s - c;
2485
+ let r = e.optionValueIds?.[q.id], i = n.optionValueIds?.[q.id], a = r === void 0 ? void 0 : t.get(r), o = i === void 0 ? void 0 : t.get(i), s = a ?? 2 ** 53 - 1, c = o ?? 2 ** 53 - 1;
2486
+ return s === c ? (Te.get(e.id) ?? 0) - (Te.get(n.id) ?? 0) : s - c;
2483
2487
  });
2484
2488
  }, [
2485
- J,
2486
- we,
2489
+ q,
2490
+ Te,
2487
2491
  e
2488
- ]), Ee = R(() => {
2489
- if (!J) return /* @__PURE__ */ new Map();
2492
+ ]), De = B(() => {
2493
+ if (!q) return /* @__PURE__ */ new Map();
2490
2494
  let t = /* @__PURE__ */ new Map();
2491
2495
  return e.forEach((e) => {
2492
- let n = Pt(e, J);
2496
+ let n = It(e, q);
2493
2497
  t.set(n, (t.get(n) ?? 0) + 1);
2494
2498
  }), t;
2495
- }, [J, e]), De = V && ye, Oe = e.length > 0, ke = V && Oe && e.every((e) => Ce.has(e.id)), Y = Se.length > 0 && !ke, Ae = ge(null), X = !!(w || T || E || ee || A), Z = c.filter((e) => K.has(e)).length + +!!V + +!!X, Q = L((e) => {
2496
- let t = Ft(e, xe);
2497
- fe || he(e), _?.(e, t);
2499
+ }, [q, e]), Oe = U && he, ke = e.length > 0, Ae = U && ke && e.every((e) => we.has(e.id)), Y = Ce.length > 0 && !Ae, je = ge(null), X = !!(T || E || D || O || te), Z = c.filter((e) => K.has(e)).length + +!!U + +!!X, Q = z((e) => {
2500
+ let t = Lt(e, Se);
2501
+ de || pe(e), v?.(e, t);
2498
2502
  }, [
2499
- fe,
2500
- _,
2501
- xe
2502
- ]), Me = L(() => Q([]), [Q]), Ne = L((e, t) => {
2503
- if (!V) return;
2504
- let n = t === !0 ? Array.from(/* @__PURE__ */ new Set([...U, e.id])) : U.filter((t) => t !== e.id);
2503
+ de,
2504
+ v,
2505
+ Se
2506
+ ]), Me = z(() => Q([]), [Q]), Pe = z((e, t) => {
2507
+ if (!U) return;
2508
+ let n = t === !0 ? Array.from(/* @__PURE__ */ new Set([...ye, e.id])) : ye.filter((t) => t !== e.id);
2505
2509
  Q(n);
2506
2510
  }, [
2507
- V,
2508
2511
  U,
2512
+ ye,
2509
2513
  Q
2510
- ]), Pe = L((t) => {
2511
- V && Q(t === !0 ? e.map((e) => e.id) : []);
2514
+ ]), Fe = z((t) => {
2515
+ U && Q(t === !0 ? e.map((e) => e.id) : []);
2512
2516
  }, [
2513
- V,
2517
+ U,
2514
2518
  Q,
2515
2519
  e
2516
- ]), Fe = {
2517
- selectedRows: Se,
2518
- selectedIds: U,
2520
+ ]), Ie = {
2521
+ selectedRows: Ce,
2522
+ selectedIds: ye,
2519
2523
  allRows: e,
2520
- selectedCount: Se.length,
2524
+ selectedCount: Ce.length,
2521
2525
  totalCount: e.length,
2522
- allRowsSelected: ke,
2526
+ allRowsSelected: Ae,
2523
2527
  clearSelection: Me,
2524
2528
  setSelectedIds: Q
2525
- }, Ie = S || C ? /* @__PURE__ */ B(u, {
2529
+ }, Le = x || w ? /* @__PURE__ */ H(u, {
2526
2530
  direction: "horizontal",
2527
- gap: "sm",
2531
+ gap: m.commands,
2528
2532
  justify: "end",
2529
2533
  className: "product-variants-bulk-table--header-actions",
2530
- children: [!!C && /* @__PURE__ */ z(a, {
2534
+ children: [!!w && /* @__PURE__ */ V(a, {
2531
2535
  type: "button",
2532
2536
  tone: "secondary",
2533
2537
  buttonStyle: "outline",
2534
- onClick: C,
2535
- children: I.generateLabel
2536
- }), !!S && /* @__PURE__ */ z(a, {
2538
+ onClick: w,
2539
+ children: R.generateLabel
2540
+ }), !!x && /* @__PURE__ */ V(a, {
2537
2541
  type: "button",
2538
2542
  tone: "secondary",
2539
2543
  buttonStyle: "ghost",
2540
- onClick: S,
2544
+ onClick: x,
2541
2545
  icon: G,
2542
- children: I.createLabel
2546
+ children: R.createLabel
2543
2547
  })]
2544
- }) : void 0, Le = Se.length > 0 ? j?.(Fe) : void 0, Re = De ? /* @__PURE__ */ z(x, {
2548
+ }) : void 0, Re = Ce.length > 0 ? N?.(Ie) : void 0, ze = Oe ? /* @__PURE__ */ V(C, {
2545
2549
  placement: "inline",
2546
2550
  className: "product-variants-bulk-table--bulk-toolbar",
2547
- selectedCount: Se.length,
2551
+ selectedCount: Ce.length,
2548
2552
  totalCount: e.length,
2549
2553
  onClear: Me,
2550
- returnFocusRef: Ae,
2554
+ returnFocusRef: je,
2551
2555
  strings: {
2552
- summary: (t, n) => I.selectedLabel(t, n ?? e.length),
2553
- clear: I.clearSelectionLabel
2556
+ summary: (t, n) => R.selectedLabel(t, n ?? e.length),
2557
+ clear: R.clearSelectionLabel
2554
2558
  },
2555
- children: Le ?? /* @__PURE__ */ B(ve, { children: [
2556
- !!D && /* @__PURE__ */ z(a, {
2559
+ children: Re ?? /* @__PURE__ */ H(ve, { children: [
2560
+ !!ee && /* @__PURE__ */ V(a, {
2557
2561
  type: "button",
2558
- onClick: () => D(Se),
2559
- children: I.bulkEditLabel
2562
+ onClick: () => ee(Ce),
2563
+ children: R.bulkEditLabel
2560
2564
  }),
2561
- !!k && /* @__PURE__ */ z(a, {
2565
+ !!k && /* @__PURE__ */ V(a, {
2562
2566
  type: "button",
2563
2567
  tone: "neutral",
2564
2568
  buttonStyle: "ghost",
2565
- onClick: () => k(Se),
2566
- children: I.bulkApplyLabel
2569
+ onClick: () => k(Ce),
2570
+ children: R.bulkApplyLabel
2567
2571
  }),
2568
- !!ne && /* @__PURE__ */ z(a, {
2572
+ !!M && /* @__PURE__ */ V(a, {
2569
2573
  type: "button",
2570
2574
  tone: "destructive",
2571
2575
  buttonStyle: "ghost",
2572
- onClick: () => ne(Se),
2573
- children: I.bulkDeleteLabel
2576
+ onClick: () => M(Ce),
2577
+ children: R.bulkDeleteLabel
2574
2578
  })
2575
2579
  ] })
2576
- }) : null, ze = e.length === 0 ? re ?? /* @__PURE__ */ z($, {
2577
- title: I.emptyTitle,
2578
- description: I.emptyDescription,
2579
- action: C ? /* @__PURE__ */ z(a, {
2580
+ }) : null, Be = e.length === 0 ? ne ?? /* @__PURE__ */ V($, {
2581
+ title: R.emptyTitle,
2582
+ description: R.emptyDescription,
2583
+ action: w ? /* @__PURE__ */ V(a, {
2580
2584
  tone: "primary",
2581
2585
  type: "button",
2582
- onClick: C,
2583
- children: I.generateLabel
2586
+ onClick: w,
2587
+ children: R.generateLabel
2584
2588
  }) : void 0
2585
- }) : /* @__PURE__ */ B(u, {
2589
+ }) : /* @__PURE__ */ H(u, {
2586
2590
  gap: "md",
2587
2591
  className: "product-variants-bulk-table--body",
2588
- children: [Re, /* @__PURE__ */ z("div", {
2592
+ children: [ze, /* @__PURE__ */ V("div", {
2589
2593
  className: "product-variants-bulk-table--table overflow-hidden rounded-radius border border-border bg-background text-foreground",
2590
- children: /* @__PURE__ */ B(ue, {
2594
+ children: /* @__PURE__ */ H(ue, {
2591
2595
  containerClassName: "[scrollbar-gutter:stable] [scrollbar-width:thin] [&::-webkit-scrollbar]:h-2.5 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-border [&::-webkit-scrollbar-track]:bg-muted/30",
2592
2596
  className: "w-full border-collapse",
2593
2597
  children: [
2594
- /* @__PURE__ */ B("colgroup", { children: [
2595
- V && /* @__PURE__ */ z("col", { className: "w-14 min-w-14 max-w-14" }),
2596
- K.has("variant") && /* @__PURE__ */ z("col", {}),
2597
- K.has("sku") && /* @__PURE__ */ z("col", {}),
2598
- K.has("price") && /* @__PURE__ */ z("col", {}),
2599
- K.has("inventory") && /* @__PURE__ */ z("col", {}),
2600
- K.has("status") && /* @__PURE__ */ z("col", {}),
2601
- K.has("updated") && /* @__PURE__ */ z("col", {}),
2602
- X && /* @__PURE__ */ z("col", { className: "w-18" })
2598
+ /* @__PURE__ */ H("colgroup", { children: [
2599
+ U && /* @__PURE__ */ V("col", { className: "w-14 min-w-14 max-w-14" }),
2600
+ K.has("variant") && /* @__PURE__ */ V("col", {}),
2601
+ K.has("sku") && /* @__PURE__ */ V("col", {}),
2602
+ K.has("price") && /* @__PURE__ */ V("col", {}),
2603
+ K.has("inventory") && /* @__PURE__ */ V("col", {}),
2604
+ K.has("status") && /* @__PURE__ */ V("col", {}),
2605
+ K.has("updated") && /* @__PURE__ */ V("col", {}),
2606
+ X && /* @__PURE__ */ V("col", { className: "w-18" })
2603
2607
  ] }),
2604
- /* @__PURE__ */ z(le, { children: /* @__PURE__ */ B(oe, {
2608
+ /* @__PURE__ */ V(le, { children: /* @__PURE__ */ H(oe, {
2605
2609
  className: "h-12 border-b border-border/60 bg-muted/50",
2606
2610
  children: [
2607
- V && /* @__PURE__ */ z(F, {
2611
+ U && /* @__PURE__ */ V(ce, {
2608
2612
  className: "w-14 min-w-14 max-w-14 px-0 py-space-md text-center align-middle",
2609
- children: /* @__PURE__ */ z(te, {
2610
- ref: Ae,
2611
- checked: ke,
2613
+ children: /* @__PURE__ */ V(A, {
2614
+ ref: je,
2615
+ checked: Ae,
2612
2616
  indeterminate: Y,
2613
- onCheckedChange: Pe,
2614
- "aria-label": I.selectAllLabel,
2617
+ onCheckedChange: Fe,
2618
+ "aria-label": R.selectAllLabel,
2615
2619
  className: "mx-auto"
2616
2620
  })
2617
2621
  }),
2618
- K.has("variant") && /* @__PURE__ */ z(F, {
2622
+ K.has("variant") && /* @__PURE__ */ V(ce, {
2619
2623
  className: "px-space-lg py-space-md text-left align-middle",
2620
- children: /* @__PURE__ */ z(s, {
2624
+ children: /* @__PURE__ */ V(s, {
2621
2625
  className: "whitespace-normal",
2622
- children: I.headers.variant
2626
+ children: R.headers.variant
2623
2627
  })
2624
2628
  }),
2625
- K.has("sku") && /* @__PURE__ */ z(F, {
2629
+ K.has("sku") && /* @__PURE__ */ V(ce, {
2626
2630
  className: "px-space-lg py-space-md text-left align-middle",
2627
- children: /* @__PURE__ */ z(s, {
2631
+ children: /* @__PURE__ */ V(s, {
2628
2632
  className: "whitespace-normal",
2629
- children: I.headers.sku
2633
+ children: R.headers.sku
2630
2634
  })
2631
2635
  }),
2632
- K.has("price") && /* @__PURE__ */ z(F, {
2636
+ K.has("price") && /* @__PURE__ */ V(ce, {
2633
2637
  className: "px-space-lg py-space-md text-left align-middle",
2634
- children: /* @__PURE__ */ z(s, {
2638
+ children: /* @__PURE__ */ V(s, {
2635
2639
  className: "whitespace-normal",
2636
- children: I.headers.price
2640
+ children: R.headers.price
2637
2641
  })
2638
2642
  }),
2639
- K.has("inventory") && /* @__PURE__ */ z(F, {
2643
+ K.has("inventory") && /* @__PURE__ */ V(ce, {
2640
2644
  className: "px-space-lg py-space-md text-left align-middle",
2641
- children: /* @__PURE__ */ z(s, {
2645
+ children: /* @__PURE__ */ V(s, {
2642
2646
  className: "whitespace-normal",
2643
- children: I.headers.inventory
2647
+ children: R.headers.inventory
2644
2648
  })
2645
2649
  }),
2646
- K.has("status") && /* @__PURE__ */ z(F, {
2650
+ K.has("status") && /* @__PURE__ */ V(ce, {
2647
2651
  className: "px-space-lg py-space-md text-left align-middle",
2648
- children: /* @__PURE__ */ z(s, {
2652
+ children: /* @__PURE__ */ V(s, {
2649
2653
  className: "whitespace-normal",
2650
- children: I.headers.status
2654
+ children: R.headers.status
2651
2655
  })
2652
2656
  }),
2653
- K.has("updated") && /* @__PURE__ */ z(F, {
2657
+ K.has("updated") && /* @__PURE__ */ V(ce, {
2654
2658
  className: "px-space-lg py-space-md text-left align-middle",
2655
- children: /* @__PURE__ */ z(s, {
2659
+ children: /* @__PURE__ */ V(s, {
2656
2660
  className: "whitespace-normal",
2657
- children: I.headers.updated
2661
+ children: R.headers.updated
2658
2662
  })
2659
2663
  }),
2660
- X && /* @__PURE__ */ z(F, {
2664
+ X && /* @__PURE__ */ V(ce, {
2661
2665
  className: "px-space-lg py-space-md text-right align-middle",
2662
- children: /* @__PURE__ */ z(s, {
2666
+ children: /* @__PURE__ */ V(s, {
2663
2667
  className: "whitespace-normal",
2664
- children: I.headers.actions
2668
+ children: R.headers.actions
2665
2669
  })
2666
2670
  })
2667
2671
  ]
2668
2672
  }) }),
2669
- /* @__PURE__ */ z(ce, { children: Te.map((e, n) => {
2670
- let r = we.get(e.id) ?? n, i = J ? Pt(e, J) : null, a = n > 0 ? Te[n - 1] : void 0, s = J && a ? Pt(a, J) : null, c = !!J && i !== s, f = Ce.has(e.id), h = {
2673
+ /* @__PURE__ */ V(se, { children: Ee.map((e, n) => {
2674
+ let r = Te.get(e.id) ?? n, i = q ? It(e, q) : null, a = n > 0 ? Ee[n - 1] : void 0, s = q && a ? It(a, q) : null, c = !!q && i !== s, f = we.has(e.id), m = {
2671
2675
  index: r,
2672
- onSelect: w ? () => w(e) : void 0,
2673
- onEdit: T ? () => T(e) : void 0,
2674
- onDuplicate: E ? () => E(e) : void 0,
2675
- onDelete: ee ? () => ee(e) : void 0,
2676
+ onSelect: T ? () => T(e) : void 0,
2677
+ onEdit: E ? () => E(e) : void 0,
2678
+ onDuplicate: D ? () => D(e) : void 0,
2679
+ onDelete: O ? () => O(e) : void 0,
2676
2680
  isSelected: f,
2677
- onToggleSelected: V ? (t) => Ne(e, t) : void 0
2678
- }, g = J ? t.filter((e) => e.id !== J.id) : t, _ = Mt(e, g), x = J ? jt({
2681
+ onToggleSelected: U ? (t) => Pe(e, t) : void 0
2682
+ }, g = q ? t.filter((e) => e.id !== q.id) : t, _ = Pt(e, g), v = q ? Nt({
2679
2683
  ...e,
2680
2684
  name: void 0
2681
- }, g) : jt(e, t), S = x === "-" && J ? jt(e, t) : x, C = Nt(_), D = C === kt(S), O = (t, n, i = Dt) => {
2682
- let a = Rt(t) && v ? (i) => v(e, t, i, Bt(r, t, n, i)) : void 0, o = Rt(t) && y ? (i) => y(e, t, i, Bt(r, t, n, i)) : void 0;
2685
+ }, g) : Nt(e, t), x = v === "-" && q ? Nt(e, t) : v, C = Ft(_), w = C === jt(x), ee = (t, n, i = kt) => {
2686
+ let a = Bt(t) && y ? (i) => y(e, t, i, Ht(r, t, n, i)) : void 0, o = Bt(t) && b ? (i) => b(e, t, i, Ht(r, t, n, i)) : void 0;
2683
2687
  return {
2684
2688
  index: r,
2685
2689
  column: t,
2686
2690
  value: n,
2687
- variantName: S,
2691
+ variantName: x,
2688
2692
  optionValues: _,
2689
2693
  optionLabel: C,
2690
2694
  cellDisplay: i,
@@ -2692,104 +2696,104 @@ function Ht({ variants: e = [], optionGroups: t = [], groupByOptionId: n, visibl
2692
2696
  onBlur: o
2693
2697
  };
2694
2698
  }, k = (t, n, r, i) => {
2695
- let a = O(t, n, r), o = m?.(e, a);
2699
+ let a = ee(t, n, r), o = h?.(e, a);
2696
2700
  return o === void 0 ? i(a) : o;
2697
- }, ne = l !== "none" && _.length > 0 && (J ? !D : l === "tags" || !D), j = l === "none" ? null : p?.(e, {
2701
+ }, j = l !== "none" && _.length > 0 && (q ? !w : l === "tags" || !w), M = l === "none" ? null : p?.(e, {
2698
2702
  optionGroups: t,
2699
2703
  optionValues: _,
2700
2704
  optionLabel: C,
2701
2705
  display: l
2702
- }), M = [
2703
- ...w ? [{
2706
+ }), N = [
2707
+ ...T ? [{
2704
2708
  id: "view",
2705
- label: I.viewLabel,
2706
- icon: /* @__PURE__ */ z(H, { className: "size-icon-md" }),
2707
- onClick: () => w(e),
2709
+ label: R.viewLabel,
2710
+ icon: /* @__PURE__ */ V(xe, { className: "size-icon-md" }),
2711
+ onClick: () => T(e),
2708
2712
  tone: "secondary",
2709
2713
  buttonStyle: "ghost"
2710
2714
  }] : [],
2711
- ...T ? [{
2715
+ ...E ? [{
2712
2716
  id: "edit",
2713
- label: I.editLabel,
2714
- icon: /* @__PURE__ */ z(W, { className: "size-icon-md" }),
2715
- onClick: () => T(e),
2717
+ label: R.editLabel,
2718
+ icon: /* @__PURE__ */ V(W, { className: "size-icon-md" }),
2719
+ onClick: () => E(e),
2716
2720
  tone: "secondary",
2717
2721
  buttonStyle: "ghost"
2718
2722
  }] : [],
2719
- ...E ? [{
2723
+ ...D ? [{
2720
2724
  id: "duplicate",
2721
- label: I.duplicateLabel,
2722
- icon: /* @__PURE__ */ z(be, { className: "size-icon-md" }),
2723
- onClick: () => E(e),
2725
+ label: R.duplicateLabel,
2726
+ icon: /* @__PURE__ */ V(be, { className: "size-icon-md" }),
2727
+ onClick: () => D(e),
2724
2728
  tone: "secondary",
2725
2729
  buttonStyle: "ghost"
2726
2730
  }] : [],
2727
- ...ee ? [{
2731
+ ...O ? [{
2728
2732
  id: "delete",
2729
- label: I.deleteLabel,
2730
- icon: /* @__PURE__ */ z(q, { className: "size-icon-md" }),
2731
- onClick: () => ee(e),
2733
+ label: R.deleteLabel,
2734
+ icon: /* @__PURE__ */ V(J, { className: "size-icon-md" }),
2735
+ onClick: () => O(e),
2732
2736
  tone: "destructive"
2733
2737
  }] : []
2734
2738
  ];
2735
- return /* @__PURE__ */ B(me, { children: [c && /* @__PURE__ */ z(oe, {
2739
+ return /* @__PURE__ */ H(me, { children: [c && /* @__PURE__ */ V(oe, {
2736
2740
  className: "product-variants-bulk-table--group-row border-b border-border/60 bg-muted/30",
2737
- children: /* @__PURE__ */ z(se, {
2741
+ children: /* @__PURE__ */ V(L, {
2738
2742
  colSpan: Z,
2739
2743
  className: "px-space-lg py-space-md align-middle",
2740
- children: /* @__PURE__ */ B(u, {
2744
+ children: /* @__PURE__ */ H(u, {
2741
2745
  direction: "horizontal",
2742
2746
  gap: "sm",
2743
2747
  wrap: !1,
2744
- children: [/* @__PURE__ */ z(o, {
2748
+ children: [/* @__PURE__ */ V(o, {
2745
2749
  type: "inherit",
2746
2750
  tag: "span",
2747
2751
  weight: "semibold",
2748
2752
  className: "min-w-0 whitespace-normal break-words",
2749
2753
  children: i
2750
- }), /* @__PURE__ */ z(o, {
2754
+ }), /* @__PURE__ */ V(o, {
2751
2755
  tag: "span",
2752
2756
  size: "xs",
2753
2757
  type: "secondary",
2754
2758
  className: "whitespace-nowrap",
2755
- children: I.groupCountLabel(Ee.get(i ?? "") ?? 0)
2759
+ children: R.groupCountLabel(De.get(i ?? "") ?? 0)
2756
2760
  })]
2757
2761
  })
2758
2762
  })
2759
- }), /* @__PURE__ */ B(oe, {
2763
+ }), /* @__PURE__ */ H(oe, {
2760
2764
  className: "h-20 border-b border-border/60 last:border-b-0",
2761
2765
  children: [
2762
- V && /* @__PURE__ */ z(se, {
2766
+ U && /* @__PURE__ */ V(L, {
2763
2767
  className: "w-14 min-w-14 max-w-14 px-0 py-space-lg text-center align-middle",
2764
- children: /* @__PURE__ */ z(te, {
2768
+ children: /* @__PURE__ */ V(A, {
2765
2769
  checked: f,
2766
- onCheckedChange: (t) => Ne(e, t),
2767
- "aria-label": I.selectRowLabel(r),
2770
+ onCheckedChange: (t) => Pe(e, t),
2771
+ "aria-label": R.selectRowLabel(r),
2768
2772
  className: "mx-auto"
2769
2773
  })
2770
2774
  }),
2771
- K.has("variant") && /* @__PURE__ */ z(se, {
2775
+ K.has("variant") && /* @__PURE__ */ V(L, {
2772
2776
  className: "px-space-lg py-space-lg align-middle",
2773
- children: k("variant", S, Dt, () => /* @__PURE__ */ B(u, {
2777
+ children: k("variant", x, kt, () => /* @__PURE__ */ H(u, {
2774
2778
  gap: "xs",
2775
2779
  children: [
2776
- /* @__PURE__ */ z(o, {
2780
+ /* @__PURE__ */ V(o, {
2777
2781
  type: "inherit",
2778
2782
  weight: "medium",
2779
2783
  className: "min-w-0 whitespace-normal break-words",
2780
- children: S
2784
+ children: x
2781
2785
  }),
2782
- j,
2783
- !j && ne && l === "text" && /* @__PURE__ */ z(o, {
2786
+ M,
2787
+ !M && j && l === "text" && /* @__PURE__ */ V(o, {
2784
2788
  size: "xs",
2785
2789
  type: "secondary",
2786
2790
  className: "min-w-0 whitespace-normal break-words",
2787
- children: _.map((t, n) => /* @__PURE__ */ B("span", { children: [n > 0 ? " / " : null, t] }, `${e.id}-option-text-${n}`))
2791
+ children: _.map((t, n) => /* @__PURE__ */ H("span", { children: [n > 0 ? " / " : null, t] }, `${e.id}-option-text-${n}`))
2788
2792
  }),
2789
- !j && ne && l === "tags" && /* @__PURE__ */ z(u, {
2793
+ !M && j && l === "tags" && /* @__PURE__ */ V(u, {
2790
2794
  direction: "horizontal",
2791
2795
  gap: "xs",
2792
- children: _.map((t, n) => /* @__PURE__ */ z(b, {
2796
+ children: _.map((t, n) => /* @__PURE__ */ V(S, {
2793
2797
  size: "sm",
2794
2798
  tone: "secondary",
2795
2799
  className: "max-w-full",
@@ -2799,38 +2803,38 @@ function Ht({ variants: e = [], optionGroups: t = [], groupByOptionId: n, visibl
2799
2803
  ]
2800
2804
  }))
2801
2805
  }),
2802
- K.has("sku") && /* @__PURE__ */ z(se, {
2806
+ K.has("sku") && /* @__PURE__ */ V(L, {
2803
2807
  className: "px-space-lg py-space-md align-middle",
2804
- children: k("sku", e.sku, zt(d, "sku"), (t) => Vt(e.sku, `${I.headers.sku}: ${kt(S)}`, t.cellDisplay, t.onValueChange, t.onBlur))
2808
+ children: k("sku", e.sku, Vt(d, "sku"), (t) => Ut(e.sku, `${R.headers.sku}: ${jt(x)}`, t.cellDisplay, t.onValueChange, t.onBlur))
2805
2809
  }),
2806
- K.has("price") && /* @__PURE__ */ z(se, {
2810
+ K.has("price") && /* @__PURE__ */ V(L, {
2807
2811
  className: "px-space-lg py-space-md align-middle",
2808
- children: k("price", e.price, zt(d, "price"), (t) => Vt(e.price, `${I.headers.price}: ${kt(S)}`, t.cellDisplay, t.onValueChange, t.onBlur))
2812
+ children: k("price", e.price, Vt(d, "price"), (t) => Ut(e.price, `${R.headers.price}: ${jt(x)}`, t.cellDisplay, t.onValueChange, t.onBlur))
2809
2813
  }),
2810
- K.has("inventory") && /* @__PURE__ */ z(se, {
2814
+ K.has("inventory") && /* @__PURE__ */ V(L, {
2811
2815
  className: "px-space-lg py-space-md align-middle",
2812
- children: k("inventory", e.inventory, zt(d, "inventory"), (t) => Vt(e.inventory, `${I.headers.inventory}: ${kt(S)}`, t.cellDisplay, t.onValueChange, t.onBlur))
2816
+ children: k("inventory", e.inventory, Vt(d, "inventory"), (t) => Ut(e.inventory, `${R.headers.inventory}: ${jt(x)}`, t.cellDisplay, t.onValueChange, t.onBlur))
2813
2817
  }),
2814
- K.has("status") && /* @__PURE__ */ z(se, {
2818
+ K.has("status") && /* @__PURE__ */ V(L, {
2815
2819
  className: "px-space-lg py-space-lg align-middle",
2816
- children: k("status", e.status, Dt, () => e.status ? /* @__PURE__ */ z(b, {
2820
+ children: k("status", e.status, kt, () => e.status ? /* @__PURE__ */ V(S, {
2817
2821
  tone: e.statusTone ?? "secondary",
2818
2822
  children: e.status
2819
- }) : /* @__PURE__ */ z(o, {
2823
+ }) : /* @__PURE__ */ V(o, {
2820
2824
  type: "secondary",
2821
2825
  children: "-"
2822
2826
  }))
2823
2827
  }),
2824
- K.has("updated") && /* @__PURE__ */ z(se, {
2828
+ K.has("updated") && /* @__PURE__ */ V(L, {
2825
2829
  className: "px-space-lg py-space-lg align-middle",
2826
- children: k("updated", e.updatedAt, Dt, () => Vt(e.updatedAt, `${I.headers.updated}: ${kt(S)}`, "text"))
2830
+ children: k("updated", e.updatedAt, kt, () => Ut(e.updatedAt, `${R.headers.updated}: ${jt(x)}`, "text"))
2827
2831
  }),
2828
- X && /* @__PURE__ */ z(se, {
2832
+ X && /* @__PURE__ */ V(L, {
2829
2833
  className: "px-space-lg py-space-lg text-right align-middle",
2830
- children: A ? A(e, h) : /* @__PURE__ */ z(We, {
2834
+ children: te ? te(e, m) : /* @__PURE__ */ V(Ke, {
2831
2835
  item: e,
2832
- actions: M,
2833
- menuLabel: I.headers.actions
2836
+ actions: N,
2837
+ menuLabel: R.headers.actions
2834
2838
  })
2835
2839
  })
2836
2840
  ]
@@ -2840,210 +2844,210 @@ function Ht({ variants: e = [], optionGroups: t = [], groupByOptionId: n, visibl
2840
2844
  })
2841
2845
  })]
2842
2846
  });
2843
- return ie === "embedded" ? /* @__PURE__ */ z("section", {
2844
- "aria-label": I.title,
2845
- className: i("product-variants-bulk-table--component min-w-0", ae),
2846
- children: ze
2847
- }) : /* @__PURE__ */ z(O, {
2848
- title: I.title,
2849
- description: I.description,
2850
- actions: M,
2851
- headerAction: Ie,
2852
- headerEnd: N,
2853
- footerSlot: P,
2854
- className: i("product-variants-bulk-table--component w-full", ae),
2855
- children: ze
2847
+ return re === "embedded" ? /* @__PURE__ */ V("section", {
2848
+ "aria-label": R.title,
2849
+ className: i("product-variants-bulk-table--component min-w-0", ie),
2850
+ children: Be
2851
+ }) : /* @__PURE__ */ V(j, {
2852
+ title: R.title,
2853
+ description: R.description,
2854
+ actions: P,
2855
+ headerAction: Le,
2856
+ headerEnd: F,
2857
+ footerSlot: I,
2858
+ className: i("product-variants-bulk-table--component w-full", ie),
2859
+ children: Be
2856
2860
  });
2857
2861
  }
2858
- Ht.displayName = "ProductVariantsBulkTable";
2862
+ Wt.displayName = "ProductVariantsBulkTable";
2859
2863
  //#endregion
2860
2864
  //#region src/components/features/products/components/product-variants-manager.tsx
2861
- function Ut({ optionGroups: n = [], variants: s = [], visibleColumns: c, optionCombinationDisplay: l, cellDisplay: d, selectionMode: p, renderOptionCombination: m, renderCell: h, selectedVariantIds: g, defaultSelectedVariantIds: _, onSelectedVariantIdsChange: v, onVariantFieldChange: y, onVariantFieldBlur: b, collapsedOptionIds: x, defaultCollapsedOptionIds: S, onCollapsedOptionIdsChange: C, editingOptionId: w, defaultEditingOptionId: T, onEditingOptionIdChange: E, onCreateOption: ee, onEditOption: te, onDeleteOption: O, onAddValue: A, onDeleteValue: j, onOptionNameChange: M, onValueLabelChange: N, onDoneEditingOption: P, onSaveEditingOption: re, onCancelEditingOption: ie, onToggleUsedForVariants: ae, renderOptionActions: oe, renderValue: se, onCreateVariant: ce, onGenerateVariants: F, onSelectVariant: le, onEditVariant: ue, onDuplicateVariant: de, onDeleteVariant: I, onBulkEdit: fe, onBulkApply: pe, onBulkDelete: me, renderVariantActions: he, renderBulkActions: ge, groupByOptionId: ve, defaultGroupByOptionId: ye, onGroupByOptionIdChange: V, onSearchVariants: be, onFilterVariants: H, controlsEnd: U, actions: W, headerEnd: Se, footerSlot: K, surface: q = "flat", padding: J = q === "flat" ? "none" : "md", headerDivider: we, footerDivider: Te, className: Ee, strings: De, optionsStrings: Oe, variantsStrings: ke }) {
2862
- let { defaultScale: Y } = e(), Ae = t(void 0, Y), X = r(Me, De), Z = R(() => n.filter((e) => e.usedForVariants !== !1), [n]), Q = Z[0]?.id ?? null, je = ve !== void 0, [Ne, Pe] = _e(ye ?? Q), Fe = ve ?? Ne ?? Q, Ie = R(() => Z.map((e) => ({
2865
+ function Gt({ optionGroups: n = [], variants: s = [], visibleColumns: c, optionCombinationDisplay: l, cellDisplay: d, selectionMode: p, renderOptionCombination: h, renderCell: g, selectedVariantIds: _, defaultSelectedVariantIds: v, onSelectedVariantIdsChange: y, onVariantFieldChange: b, onVariantFieldBlur: x, collapsedOptionIds: S, defaultCollapsedOptionIds: C, onCollapsedOptionIdsChange: w, editingOptionId: T, defaultEditingOptionId: E, onEditingOptionIdChange: D, onCreateOption: O, onEditOption: ee, onDeleteOption: A, onAddValue: j, onDeleteValue: N, onOptionNameChange: P, onValueLabelChange: F, onDoneEditingOption: I, onSaveEditingOption: ne, onCancelEditingOption: re, onToggleUsedForVariants: ie, renderOptionActions: ae, renderValue: oe, onCreateVariant: L, onGenerateVariants: se, onSelectVariant: ce, onEditVariant: le, onDuplicateVariant: ue, onDeleteVariant: R, onBulkEdit: de, onBulkApply: fe, onBulkDelete: pe, renderVariantActions: me, renderBulkActions: he, groupByOptionId: ge, defaultGroupByOptionId: ve, onGroupByOptionIdChange: U, onSearchVariants: ye, onFilterVariants: be, controlsEnd: xe, actions: Se, headerEnd: W, footerSlot: we, surface: q = "flat", padding: J = q === "flat" ? "none" : "md", headerDivider: Te, footerDivider: Ee, className: De, strings: Oe, optionsStrings: ke, variantsStrings: Ae }) {
2866
+ let { defaultScale: Y } = e(), je = t(void 0, Y), X = r(Pe, Oe), Z = B(() => n.filter((e) => e.usedForVariants !== !1), [n]), Q = Z[0]?.id ?? null, Me = ge !== void 0, [Ne, Fe] = _e(ve ?? Q), Ie = ge ?? Ne ?? Q, Le = B(() => Z.map((e) => ({
2863
2867
  value: e.id,
2864
2868
  label: String(typeof e.name == "string" || typeof e.name == "number" ? e.name : e.id)
2865
- })), [Z]), $ = L((e) => {
2869
+ })), [Z]), Re = z((e) => {
2866
2870
  let t = n.find((t) => t.id === e);
2867
- je || Pe(e ?? null), V?.(e, t);
2871
+ Me || Fe(e ?? null), U?.(e, t);
2868
2872
  }, [
2869
- je,
2870
- V,
2873
+ Me,
2874
+ U,
2871
2875
  n
2872
- ]), Le = F || ce ? /* @__PURE__ */ B(u, {
2876
+ ]), $ = se || L ? /* @__PURE__ */ H(u, {
2873
2877
  direction: "horizontal",
2874
- gap: "sm",
2878
+ gap: m.commands,
2875
2879
  justify: "end",
2876
2880
  className: "product-variants-manager--header-actions",
2877
- children: [!!F && /* @__PURE__ */ z(a, {
2881
+ children: [!!se && /* @__PURE__ */ V(a, {
2878
2882
  type: "button",
2879
2883
  tone: "secondary",
2880
2884
  buttonStyle: "outline",
2881
- onClick: F,
2885
+ onClick: se,
2882
2886
  children: X.generateLabel
2883
- }), !!ce && /* @__PURE__ */ z(a, {
2887
+ }), !!L && /* @__PURE__ */ V(a, {
2884
2888
  type: "button",
2885
2889
  tone: "secondary",
2886
2890
  buttonStyle: "outline",
2887
- onClick: ce,
2891
+ onClick: L,
2888
2892
  icon: G,
2889
2893
  children: X.createVariantLabel
2890
2894
  })]
2891
2895
  }) : void 0;
2892
- return /* @__PURE__ */ z(f, {
2896
+ return /* @__PURE__ */ V(f, {
2893
2897
  surface: q,
2894
2898
  padding: J,
2895
- headerDivider: we,
2896
- footerDivider: Te,
2899
+ headerDivider: Te,
2900
+ footerDivider: Ee,
2897
2901
  title: X.title,
2898
2902
  description: X.description,
2899
- actions: W,
2903
+ actions: Se,
2900
2904
  actionsLabel: X.actionsLabel,
2901
- headerAction: Le,
2902
- headerEnd: Se,
2903
- footerSlot: K,
2904
- className: i("product-variants-manager--component w-full", Ee),
2905
- children: /* @__PURE__ */ B(u, {
2905
+ headerAction: $,
2906
+ headerEnd: W,
2907
+ footerSlot: we,
2908
+ className: i("product-variants-manager--component w-full", De),
2909
+ children: /* @__PURE__ */ H(u, {
2906
2910
  gap: "2xl",
2907
2911
  className: "product-variants-manager--body",
2908
- children: [/* @__PURE__ */ z("section", {
2912
+ children: [/* @__PURE__ */ V("section", {
2909
2913
  className: "product-variants-manager--options min-w-0",
2910
- children: /* @__PURE__ */ z(ct, {
2914
+ children: /* @__PURE__ */ V(ut, {
2911
2915
  optionGroups: n,
2912
- collapsedOptionIds: x,
2913
- defaultCollapsedOptionIds: S,
2914
- onCollapsedOptionIdsChange: C,
2915
- editingOptionId: w,
2916
- defaultEditingOptionId: T,
2917
- onEditingOptionIdChange: E,
2916
+ collapsedOptionIds: S,
2917
+ defaultCollapsedOptionIds: C,
2918
+ onCollapsedOptionIdsChange: w,
2919
+ editingOptionId: T,
2920
+ defaultEditingOptionId: E,
2921
+ onEditingOptionIdChange: D,
2918
2922
  surface: "embedded",
2919
- onCreateOption: ee,
2920
- onEditOption: te,
2921
- onDeleteOption: O,
2922
- onAddValue: A,
2923
- onDeleteValue: j,
2924
- onOptionNameChange: M,
2925
- onValueLabelChange: N,
2926
- onDoneEditingOption: P,
2927
- onSaveEditingOption: re,
2928
- onCancelEditingOption: ie,
2929
- onToggleUsedForVariants: ae,
2930
- renderOptionActions: oe,
2931
- renderValue: se,
2923
+ onCreateOption: O,
2924
+ onEditOption: ee,
2925
+ onDeleteOption: A,
2926
+ onAddValue: j,
2927
+ onDeleteValue: N,
2928
+ onOptionNameChange: P,
2929
+ onValueLabelChange: F,
2930
+ onDoneEditingOption: I,
2931
+ onSaveEditingOption: ne,
2932
+ onCancelEditingOption: re,
2933
+ onToggleUsedForVariants: ie,
2934
+ renderOptionActions: ae,
2935
+ renderValue: oe,
2932
2936
  showHeader: !1,
2933
2937
  showCollapseControls: !1,
2934
2938
  showInlineActions: !1,
2935
2939
  showVariantToggle: !1,
2936
2940
  strings: {
2937
2941
  title: X.optionsTitle,
2938
- ...Oe
2942
+ ...ke
2939
2943
  }
2940
2944
  })
2941
- }), /* @__PURE__ */ B(u, {
2945
+ }), /* @__PURE__ */ H(u, {
2942
2946
  gap: "md",
2943
2947
  className: "product-variants-manager--variants-region",
2944
- children: [/* @__PURE__ */ z("div", {
2948
+ children: [/* @__PURE__ */ V("div", {
2945
2949
  className: "product-variants-manager--controls",
2946
- children: /* @__PURE__ */ B(u, {
2950
+ children: /* @__PURE__ */ H(u, {
2947
2951
  direction: "horizontal",
2948
2952
  gap: "md",
2949
2953
  justify: "between",
2950
- children: [/* @__PURE__ */ B(u, {
2954
+ children: [/* @__PURE__ */ H(u, {
2951
2955
  direction: "horizontal",
2952
2956
  gap: "sm",
2953
2957
  wrap: !1,
2954
2958
  className: "product-variants-manager--group-by",
2955
- children: [/* @__PURE__ */ z(o, {
2959
+ children: [/* @__PURE__ */ V(o, {
2956
2960
  type: "secondary",
2957
2961
  className: "whitespace-nowrap",
2958
2962
  children: X.groupByLabel
2959
- }), Ie.length > 0 && /* @__PURE__ */ z(D, {
2960
- options: Ie,
2961
- value: Fe,
2962
- onValueChange: $,
2963
+ }), Le.length > 0 && /* @__PURE__ */ V(k, {
2964
+ options: Le,
2965
+ value: Ie,
2966
+ onValueChange: Re,
2963
2967
  "aria-label": X.groupByLabel,
2964
2968
  className: "min-w-32 bg-background"
2965
2969
  })]
2966
- }), /* @__PURE__ */ B(u, {
2970
+ }), /* @__PURE__ */ H(u, {
2967
2971
  direction: "horizontal",
2968
2972
  gap: "sm",
2969
2973
  justify: "end",
2970
2974
  wrap: !1,
2971
2975
  className: "product-variants-manager--controls-end",
2972
- children: [/* @__PURE__ */ B("div", {
2973
- className: i("product-variants-manager--tool-buttons bg-background shadow-xs", k.joinedFrame, ne[Ae]),
2974
- children: [/* @__PURE__ */ B(a, {
2976
+ children: [/* @__PURE__ */ H("div", {
2977
+ className: i("product-variants-manager--tool-buttons bg-background shadow-xs", M.joinedFrame, te[je]),
2978
+ children: [/* @__PURE__ */ H(a, {
2975
2979
  type: "button",
2976
2980
  size: "sm",
2977
2981
  iconOnly: !0,
2978
2982
  tone: "secondary",
2979
2983
  buttonStyle: "ghost",
2980
- onClick: be,
2984
+ onClick: ye,
2981
2985
  "aria-label": X.searchLabel,
2982
- className: i(k.joinedItem, k.firstItem, "border-r border-border text-muted-foreground hover:text-foreground"),
2983
- children: [/* @__PURE__ */ z(Ce, {
2986
+ className: i(M.joinedItem, M.firstItem, "border-r border-border text-muted-foreground hover:text-foreground"),
2987
+ children: [/* @__PURE__ */ V(K, {
2984
2988
  className: "size-icon-sm",
2985
2989
  "aria-hidden": "true"
2986
- }), /* @__PURE__ */ z(o, {
2990
+ }), /* @__PURE__ */ V(o, {
2987
2991
  tag: "span",
2988
2992
  size: "pxs",
2989
2993
  className: "sr-only",
2990
2994
  children: X.searchLabel
2991
2995
  })]
2992
- }), /* @__PURE__ */ B(a, {
2996
+ }), /* @__PURE__ */ H(a, {
2993
2997
  type: "button",
2994
2998
  size: "sm",
2995
2999
  iconOnly: !0,
2996
3000
  tone: "secondary",
2997
3001
  buttonStyle: "ghost",
2998
- onClick: H,
3002
+ onClick: be,
2999
3003
  "aria-label": X.filterLabel,
3000
- className: i(k.joinedItem, k.lastItem, "text-muted-foreground hover:text-foreground"),
3001
- children: [/* @__PURE__ */ z(xe, {
3004
+ className: i(M.joinedItem, M.lastItem, "text-muted-foreground hover:text-foreground"),
3005
+ children: [/* @__PURE__ */ V(Ce, {
3002
3006
  className: "size-icon-sm",
3003
3007
  "aria-hidden": "true"
3004
- }), /* @__PURE__ */ z(o, {
3008
+ }), /* @__PURE__ */ V(o, {
3005
3009
  tag: "span",
3006
3010
  size: "pxs",
3007
3011
  className: "sr-only",
3008
3012
  children: X.filterLabel
3009
3013
  })]
3010
3014
  })]
3011
- }), U]
3015
+ }), xe]
3012
3016
  })]
3013
3017
  })
3014
- }), /* @__PURE__ */ z("section", {
3018
+ }), /* @__PURE__ */ V("section", {
3015
3019
  className: "product-variants-manager--variants min-w-0",
3016
- children: /* @__PURE__ */ z(Ht, {
3020
+ children: /* @__PURE__ */ V(Wt, {
3017
3021
  variants: s,
3018
3022
  optionGroups: n,
3019
- groupByOptionId: Fe,
3023
+ groupByOptionId: Ie,
3020
3024
  visibleColumns: c,
3021
3025
  optionCombinationDisplay: l,
3022
3026
  cellDisplay: d,
3023
3027
  selectionMode: p,
3024
- renderOptionCombination: m,
3025
- renderCell: h,
3028
+ renderOptionCombination: h,
3029
+ renderCell: g,
3026
3030
  surface: "embedded",
3027
- selectedVariantIds: g,
3028
- defaultSelectedVariantIds: _,
3029
- onSelectedVariantIdsChange: v,
3030
- onVariantFieldChange: y,
3031
- onVariantFieldBlur: b,
3032
- onCreateVariant: ce,
3033
- onGenerateVariants: F,
3034
- onSelectVariant: le,
3035
- onEditVariant: ue,
3036
- onDuplicateVariant: de,
3037
- onDeleteVariant: I,
3038
- onBulkEdit: fe,
3039
- onBulkApply: pe,
3040
- onBulkDelete: me,
3041
- renderVariantActions: he,
3042
- renderBulkActions: ge,
3031
+ selectedVariantIds: _,
3032
+ defaultSelectedVariantIds: v,
3033
+ onSelectedVariantIdsChange: y,
3034
+ onVariantFieldChange: b,
3035
+ onVariantFieldBlur: x,
3036
+ onCreateVariant: L,
3037
+ onGenerateVariants: se,
3038
+ onSelectVariant: ce,
3039
+ onEditVariant: le,
3040
+ onDuplicateVariant: ue,
3041
+ onDeleteVariant: R,
3042
+ onBulkEdit: de,
3043
+ onBulkApply: fe,
3044
+ onBulkDelete: pe,
3045
+ renderVariantActions: me,
3046
+ renderBulkActions: he,
3043
3047
  strings: {
3044
3048
  title: X.variantsTitle,
3045
3049
  generateLabel: X.generateLabel,
3046
- ...ke
3050
+ ...Ae
3047
3051
  }
3048
3052
  })
3049
3053
  })]
@@ -3051,8 +3055,8 @@ function Ut({ optionGroups: n = [], variants: s = [], visibleColumns: c, optionC
3051
3055
  })
3052
3056
  });
3053
3057
  }
3054
- Ut.displayName = "ProductVariantsManager";
3058
+ Gt.displayName = "ProductVariantsManager";
3055
3059
  //#endregion
3056
- export { et as ProductContractOverview, tt as ProductDetailsCard, rt as ProductOperationsCard, nt as ProductOptionActionMenu, ct as ProductOptionsMatrix, lt as ProductOptionsSummary, _t as ProductOverview, ut as ProductPoliciesCard, dt as ProductQuotePreviewCard, ft as ProductReadinessCard, pt as ProductStructureCard, yt as ProductVariantActionMenu, St as ProductVariantDetails, wt as ProductVariantEditor, Ht as ProductVariantsBulkTable, Ut as ProductVariantsManager, gt as ProductVariantsTable, Oe as defaultProductContractOverviewStrings, De as defaultProductDetailsCardStrings, Ee as defaultProductOperationsCardStrings, Y as defaultProductOptionActionMenuStrings, Ae as defaultProductOptionsMatrixStrings, ke as defaultProductOptionsSummaryStrings, Ie as defaultProductOverviewStrings, Z as defaultProductPoliciesCardStrings, X as defaultProductQuotePreviewCardStrings, we as defaultProductReadinessCardStrings, Te as defaultProductStructureCardStrings, Ne as defaultProductVariantActionMenuStrings, Pe as defaultProductVariantDetailsStrings, Fe as defaultProductVariantEditorStrings, je as defaultProductVariantsBulkTableStrings, Me as defaultProductVariantsManagerStrings, Q as defaultProductVariantsTableStrings };
3060
+ export { nt as ProductContractOverview, rt as ProductDetailsCard, at as ProductOperationsCard, it as ProductOptionActionMenu, ut as ProductOptionsMatrix, dt as ProductOptionsSummary, yt as ProductOverview, ft as ProductPoliciesCard, pt as ProductQuotePreviewCard, mt as ProductReadinessCard, ht as ProductStructureCard, xt as ProductVariantActionMenu, wt as ProductVariantDetails, Et as ProductVariantEditor, Wt as ProductVariantsBulkTable, Gt as ProductVariantsManager, vt as ProductVariantsTable, Ae as defaultProductContractOverviewStrings, ke as defaultProductDetailsCardStrings, Oe as defaultProductOperationsCardStrings, je as defaultProductOptionActionMenuStrings, X as defaultProductOptionsMatrixStrings, Y as defaultProductOptionsSummaryStrings, Re as defaultProductOverviewStrings, Q as defaultProductPoliciesCardStrings, Z as defaultProductQuotePreviewCardStrings, Ee as defaultProductReadinessCardStrings, De as defaultProductStructureCardStrings, Fe as defaultProductVariantActionMenuStrings, Ie as defaultProductVariantDetailsStrings, Le as defaultProductVariantEditorStrings, Ne as defaultProductVariantsBulkTableStrings, Pe as defaultProductVariantsManagerStrings, Me as defaultProductVariantsTableStrings };
3057
3061
 
3058
3062
  //# sourceMappingURL=products.js.map