admin-ui-starter-kit 0.7.0 → 0.7.1

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 (853) hide show
  1. package/.agents/skills/component-library-rules/references/components/INDEX.json +1 -1
  2. package/.agents/skills/component-library-rules/references/components/layout__layout-containers.md +43 -1
  3. package/dist/_shared/containers-CclPUW7j.cjs +2 -0
  4. package/dist/_shared/containers-CclPUW7j.cjs.map +1 -0
  5. package/dist/_shared/containers-GDaJ3SOV.js +101 -0
  6. package/dist/_shared/containers-GDaJ3SOV.js.map +1 -0
  7. package/dist/_shared/data-display-0uNuZSN7.js +1878 -0
  8. package/dist/_shared/data-display-0uNuZSN7.js.map +1 -0
  9. package/dist/_shared/data-display-DRa39LH8.cjs +2 -0
  10. package/dist/_shared/data-display-DRa39LH8.cjs.map +1 -0
  11. package/dist/_shared/layout-DN8tzvlm.cjs +2 -0
  12. package/dist/_shared/layout-DN8tzvlm.cjs.map +1 -0
  13. package/dist/_shared/layout-DNrUkvzF.js +268 -0
  14. package/dist/_shared/layout-DNrUkvzF.js.map +1 -0
  15. package/dist/components/composed/ai/index.cjs +1 -1
  16. package/dist/components/composed/ai/index.js +1 -1
  17. package/dist/components/composed/cards/index.cjs +1 -1
  18. package/dist/components/composed/cards/index.js +1 -1
  19. package/dist/components/composed/commerce/index.cjs +1 -1
  20. package/dist/components/composed/commerce/index.js +1 -1
  21. package/dist/components/composed/dark-surfaces/index.cjs +1 -1
  22. package/dist/components/composed/dark-surfaces/index.js +1 -1
  23. package/dist/components/composed/data-display/index.cjs +1 -1
  24. package/dist/components/composed/data-display/index.js +1 -1
  25. package/dist/components/features/products/index.cjs +1 -1
  26. package/dist/components/features/products/index.js +1 -1
  27. package/dist/components/features/resource/index.cjs +1 -1
  28. package/dist/components/features/resource/index.js +1 -1
  29. package/dist/components/layout/containers/index.cjs +1 -1
  30. package/dist/components/layout/containers/index.d.ts +1 -0
  31. package/dist/components/layout/containers/index.d.ts.map +1 -1
  32. package/dist/components/layout/containers/index.js +2 -2
  33. package/dist/components/layout/containers/two-column-layout.d.ts +43 -0
  34. package/dist/components/layout/containers/two-column-layout.d.ts.map +1 -0
  35. package/dist/components/layout/index.cjs +1 -1
  36. package/dist/components/layout/index.js +8 -8
  37. package/dist/components/layout/page/index.cjs +1 -1
  38. package/dist/components/layout/page/index.js +1 -1
  39. package/dist/showcase/assets/AreaChart-D_z9eYQj.js +6 -0
  40. package/dist/showcase/assets/CompositeItem-BSVzIXzg.js +1 -0
  41. package/dist/showcase/assets/CompositeRoot-Ewl7bgm-.js +1 -0
  42. package/dist/showcase/assets/DialogTrigger-CD-DcY4b.js +1 -0
  43. package/dist/showcase/assets/LabelableContext-BdRVtvs6.js +1 -0
  44. package/dist/showcase/assets/MenuTrigger-B8Y7BUCN.js +1 -0
  45. package/dist/showcase/assets/PreviewLayout-CE0fmzoc.js +1 -0
  46. package/dist/showcase/assets/RadioGroup-Qaf-akL1.js +1 -0
  47. package/dist/showcase/assets/ScrollAreaCorner-BQR87jzh.js +1 -0
  48. package/dist/showcase/assets/Separator-Cymh2jzU.js +1 -0
  49. package/dist/showcase/assets/ToolbarRootContext-P5BSzPlo.js +1 -0
  50. package/dist/showcase/assets/accordion-BGUvdQ5Z.js +171 -0
  51. package/dist/showcase/assets/accordion-variants-B56z6tQI.js +1 -0
  52. package/dist/showcase/assets/action-menu-C3DOQfP4.js +1 -0
  53. package/dist/showcase/assets/actions-DHG4zJRu.js +38 -0
  54. package/dist/showcase/assets/actions-IxPK0biY.js +310 -0
  55. package/dist/showcase/assets/activities-TK5Lr8Wb.js +500 -0
  56. package/dist/showcase/assets/activities-feed-card-tgQKimyh.js +1 -0
  57. package/dist/showcase/assets/admin-BQrDKNJa.js +140 -0
  58. package/dist/showcase/assets/ai-artifact-Cv7LTw1V.js +2 -0
  59. package/dist/showcase/assets/ai-chat-Dmg2Tqf1.js +568 -0
  60. package/dist/showcase/assets/ai-elements-BmokxSCy.js +387 -0
  61. package/dist/showcase/assets/ai-tool-call-6qESA6We.js +1 -0
  62. package/dist/showcase/assets/ai-xShhEkrM.js +207 -0
  63. package/dist/showcase/assets/alert--MONSwFW.js +1 -0
  64. package/dist/showcase/assets/alert-BuMNu_BZ.js +62 -0
  65. package/dist/showcase/assets/alert-z1RP5MhA.js +93 -0
  66. package/dist/showcase/assets/api-key-list-BhmXUJty.js +73 -0
  67. package/dist/showcase/assets/api-key-list-hPTN6gwa.js +1 -0
  68. package/dist/showcase/assets/app-sidebar-CY-XpIu6.js +1 -0
  69. package/dist/showcase/assets/arrow-down-D0XbhSDi.js +1 -0
  70. package/dist/showcase/assets/arrow-left-DBxsWbzL.js +1 -0
  71. package/dist/showcase/assets/arrow-right-Dk80zKWl.js +1 -0
  72. package/dist/showcase/assets/arrow-up-BiZ_VvpP.js +1 -0
  73. package/dist/showcase/assets/arrow-up-right-OdmPQEwY.js +1 -0
  74. package/dist/showcase/assets/avatar-BThv_quW.js +1 -0
  75. package/dist/showcase/assets/avatar-Bcy2snIC.js +67 -0
  76. package/dist/showcase/assets/avatar-Ca3to6dB.js +57 -0
  77. package/dist/showcase/assets/avatar-Dba0yVei.js +1 -0
  78. package/dist/showcase/assets/badge-A1w2eIaM.js +31 -0
  79. package/dist/showcase/assets/badge-check-DyqZ9Ff8.js +1 -0
  80. package/dist/showcase/assets/bell-DyqsYdKK.js +1 -0
  81. package/dist/showcase/assets/boolean-indicator-gaFjXuY1.js +1 -0
  82. package/dist/showcase/assets/bot-BGQvS_p9.js +1 -0
  83. package/dist/showcase/assets/box-BoFEAPr6.js +1 -0
  84. package/dist/showcase/assets/braces-D88Ve7g-.js +1 -0
  85. package/dist/showcase/assets/brain-hIv2TdLu.js +1 -0
  86. package/dist/showcase/assets/brand-CiWM8HzB.js +36 -0
  87. package/dist/showcase/assets/breadcrumb-DlHNoCer.js +1 -0
  88. package/dist/showcase/assets/breadcrumb-Dy-UbgK5.js +52 -0
  89. package/dist/showcase/assets/breadcrumbs-BoXmoDHt.js +1 -0
  90. package/dist/showcase/assets/briefcase-BeN7dk_G.js +1 -0
  91. package/dist/showcase/assets/building-2-ICycTKXZ.js +1 -0
  92. package/dist/showcase/assets/button-BADo_inb.js +44 -0
  93. package/dist/showcase/assets/button-group-BGkXY3HC.js +1 -0
  94. package/dist/showcase/assets/buttons-3z50eWMp.js +272 -0
  95. package/dist/showcase/assets/calendar-BAfoc476.js +1 -0
  96. package/dist/showcase/assets/calendar-DNxQUmlO.js +16 -0
  97. package/dist/showcase/assets/calendar-days-D86Fv-vG.js +1 -0
  98. package/dist/showcase/assets/calendar-pjS8iCZE.js +1 -0
  99. package/dist/showcase/assets/camera-DxWfctRe.js +1 -0
  100. package/dist/showcase/assets/card-BazLaDA9.js +188 -0
  101. package/dist/showcase/assets/card-F8Ona144.js +1 -0
  102. package/dist/showcase/assets/card-checkbox-group-DtK7aVPU.js +1 -0
  103. package/dist/showcase/assets/card-primitives-DzqLvy5f.js +1 -0
  104. package/dist/showcase/assets/card-radio-group-EjPkSg-w.js +1 -0
  105. package/dist/showcase/assets/cards--V2D7Sft.js +354 -0
  106. package/dist/showcase/assets/carousel-BNmTHQiN.js +452 -0
  107. package/dist/showcase/assets/cell-renderers-BdpeNGHs.js +1 -0
  108. package/dist/showcase/assets/chart-column-CJx3qWPs.js +1 -0
  109. package/dist/showcase/assets/chart-p7dUP6Mo.js +358 -0
  110. package/dist/showcase/assets/checkbox-BBxn_hxI.js +1 -0
  111. package/dist/showcase/assets/checkbox-BEyESyQ2.js +1 -0
  112. package/dist/showcase/assets/chevron-down-mjLUdP6b.js +1 -0
  113. package/dist/showcase/assets/chevron-left-DOofVtEd.js +1 -0
  114. package/dist/showcase/assets/chevron-up-BJk6z8Fg.js +1 -0
  115. package/dist/showcase/assets/chevrons-up-down-C-9zUpl_.js +1 -0
  116. package/dist/showcase/assets/circle-OmLq29jq.js +1 -0
  117. package/dist/showcase/assets/circle-alert-DSpR2pdl.js +1 -0
  118. package/dist/showcase/assets/circle-check-BjuHEm7p.js +1 -0
  119. package/dist/showcase/assets/circle-check-big-BuYdgE3Q.js +1 -0
  120. package/dist/showcase/assets/circle-dot-DlYGMuaF.js +1 -0
  121. package/dist/showcase/assets/circle-question-mark-BlgRDDu3.js +1 -0
  122. package/dist/showcase/assets/circle-x-BavQ4wuc.js +1 -0
  123. package/dist/showcase/assets/clock-3-CzeN1Iwk.js +1 -0
  124. package/dist/showcase/assets/clock-CZYS08d1.js +1 -0
  125. package/dist/showcase/assets/code-xml-D4NwoTpD.js +1 -0
  126. package/dist/showcase/assets/collapsible-BtawbO_2.js +1 -0
  127. package/dist/showcase/assets/collapsible-CJXE3z1T.js +27 -0
  128. package/dist/showcase/assets/collapsible-ws3VKPg9.js +1 -0
  129. package/dist/showcase/assets/combobox-Btpk7-vH.js +685 -0
  130. package/dist/showcase/assets/command-CoiVI2_b.js +1 -0
  131. package/dist/showcase/assets/command-Dkn9XqF2.js +1 -0
  132. package/dist/showcase/assets/comment-composer-BNnVQo1O.js +1 -0
  133. package/dist/showcase/assets/comment-item-BiIgcrPQ.js +1 -0
  134. package/dist/showcase/assets/comments-CvzWz23L.js +357 -0
  135. package/dist/showcase/assets/commerce-CBHLQF8q.js +19 -0
  136. package/dist/showcase/assets/commerce-address-card-Bqm0FQkG.js +33 -0
  137. package/dist/showcase/assets/commerce-cart-summary-BtGCOEun.js +43 -0
  138. package/dist/showcase/assets/commerce-coupon-input-I3FY6pgV.js +11 -0
  139. package/dist/showcase/assets/commerce-discount-stack-CWqyobuL.js +17 -0
  140. package/dist/showcase/assets/commerce-inventory-section-rBtMNLTt.js +123 -0
  141. package/dist/showcase/assets/commerce-loyalty-points-ne7c2ObQ.js +19 -0
  142. package/dist/showcase/assets/commerce-order-status-eLtUC1iE.js +21 -0
  143. package/dist/showcase/assets/commerce-payment-method-B3yFyhpS.js +17 -0
  144. package/dist/showcase/assets/commerce-refund-status-C1pzTSus.js +17 -0
  145. package/dist/showcase/assets/commerce-seo-listing-CBk_c8ru.js +61 -0
  146. package/dist/showcase/assets/commerce-shipment-tracking-auiKGGyV.js +24 -0
  147. package/dist/showcase/assets/commerce-subscription-summary-BCX4WxbS.js +25 -0
  148. package/dist/showcase/assets/commerce-tax-breakdown-D4F5dOjL.js +19 -0
  149. package/dist/showcase/assets/commerce-upcoming-booking-qlWKp0kq.js +20 -0
  150. package/dist/showcase/assets/commerce-voucher-entry-CqCuoKHq.js +19 -0
  151. package/dist/showcase/assets/composite-DeYDU7hg.js +1 -0
  152. package/dist/showcase/assets/conditional-rendering-CFHxzngX.js +1 -0
  153. package/dist/showcase/assets/contact-card-CxVeuwp_.js +65 -0
  154. package/dist/showcase/assets/content-container-CJN01OtO.js +1 -0
  155. package/dist/showcase/assets/copyable-DajG-Sgx.js +1 -0
  156. package/dist/showcase/assets/copyable-zOzqOOBl.js +96 -0
  157. package/dist/showcase/assets/course-card-DO8z-KeM.js +77 -0
  158. package/dist/showcase/assets/cpu-C8IgjvoP.js +1 -0
  159. package/dist/showcase/assets/credit-card-XYEEHtzk.js +1 -0
  160. package/dist/showcase/assets/css-variables-BglvDaVO.js +1223 -0
  161. package/dist/showcase/assets/currency-Bso6kejw.js +148 -0
  162. package/dist/showcase/assets/dark-surfaces-5WTjzxYN.js +90 -0
  163. package/dist/showcase/assets/data-view-B7uRWXOO.js +4 -0
  164. package/dist/showcase/assets/data-view-C4bGuOlY.js +124 -0
  165. package/dist/showcase/assets/database-CZLgFKRy.js +1 -0
  166. package/dist/showcase/assets/date-block-BicWaKPj.js +1 -0
  167. package/dist/showcase/assets/date-block-yRFY8Ne5.js +1 -0
  168. package/dist/showcase/assets/date-picker-CskCoiwf.js +1 -0
  169. package/dist/showcase/assets/date-pickers-fcqdsvef.js +73 -0
  170. package/dist/showcase/assets/dense-info-Dg38xVsF.js +106 -0
  171. package/dist/showcase/assets/design-system-consistency-DFa3RNWm.js +264 -0
  172. package/dist/showcase/assets/dialog-C4fhqXD0.js +1 -0
  173. package/dist/showcase/assets/dialog-CN_gfVV2.js +1 -0
  174. package/dist/showcase/assets/dialog-CoJdLYZ8.js +1 -0
  175. package/dist/showcase/assets/display-utilities-DB0eXAdH.js +4 -0
  176. package/dist/showcase/assets/display-utilities.examples-ez3DfdgN.js +309 -0
  177. package/dist/showcase/assets/dist-5H2NtsLp.js +45 -0
  178. package/dist/showcase/assets/dist-SJMpFlRc.js +1 -0
  179. package/dist/showcase/assets/dollar-sign-LBLhl0Y2.js +1 -0
  180. package/dist/showcase/assets/download-BkOWnQEj.js +1 -0
  181. package/dist/showcase/assets/dropdown-menu-5yqchTEF.js +1 -0
  182. package/dist/showcase/assets/dropzone-CJHqIcHB.js +1 -0
  183. package/dist/showcase/assets/earth-BGrx2u2i.js +1 -0
  184. package/dist/showcase/assets/ellipsis-Dumpj4aE.js +1 -0
  185. package/dist/showcase/assets/ellipsis-vertical-h1O9pibc.js +1 -0
  186. package/dist/showcase/assets/empty-Cc8JP5--.js +1 -0
  187. package/dist/showcase/assets/empty-item-C-v-Akyi.js +49 -0
  188. package/dist/showcase/assets/empty-state-B7BQDoeL.js +1 -0
  189. package/dist/showcase/assets/empty-state-BSvZNFnQ.js +190 -0
  190. package/dist/showcase/assets/enhanced-activities-D7g7ZD9m.js +357 -0
  191. package/dist/showcase/assets/enhanced-combobox-4Olgu--e.js +1 -0
  192. package/dist/showcase/assets/esm-CFFDcW-Z.js +2 -0
  193. package/dist/showcase/assets/event-calendar-vdFWcI49.js +138 -0
  194. package/dist/showcase/assets/event-log-BbHM_3Ko.js +330 -0
  195. package/dist/showcase/assets/example-BsDQngs7.js +1 -0
  196. package/dist/showcase/assets/external-link-BvVwsJxR.js +1 -0
  197. package/dist/showcase/assets/eye-CAeo-GNe.js +1 -0
  198. package/dist/showcase/assets/feature-announcement-7hZGrJd6.js +34 -0
  199. package/dist/showcase/assets/file-D4d3b9bx.js +1 -0
  200. package/dist/showcase/assets/file-text-C59ToXmU.js +1 -0
  201. package/dist/showcase/assets/filter-layout-BjoG6qxP.js +1 -0
  202. package/dist/showcase/assets/filters-CrE_UGbo.js +139 -0
  203. package/dist/showcase/assets/fixtures-ClOCQD2a.js +1 -0
  204. package/dist/showcase/assets/flag-CuF52WEl.js +1 -0
  205. package/dist/showcase/assets/folder-open-BLLtgh4E.js +1 -0
  206. package/dist/showcase/assets/form-field-D5kwgD4P.js +1 -0
  207. package/dist/showcase/assets/format-LvvHefMj.js +1 -0
  208. package/dist/showcase/assets/forms-Ck6hPzLP.js +915 -0
  209. package/dist/showcase/assets/funnel-Bvp5cFZt.js +1 -0
  210. package/dist/showcase/assets/generic-Cownd_Wk.js +1 -0
  211. package/dist/showcase/assets/getPseudoElementBounds-CPnjAO3K.js +1 -0
  212. package/dist/showcase/assets/gift-BCQpmV33.js +1 -0
  213. package/dist/showcase/assets/giftcard-cards-B_78Meny.js +85 -0
  214. package/dist/showcase/assets/git-branch-r0dDGCKy.js +1 -0
  215. package/dist/showcase/assets/global-search-DD9cGOt5.js +1 -0
  216. package/dist/showcase/assets/global-search-fTKzzx8k.js +215 -0
  217. package/dist/showcase/assets/globe-RF5bwiar.js +1 -0
  218. package/dist/showcase/assets/gradient-card-BDJes3UK.js +58 -0
  219. package/dist/showcase/assets/grip-vertical-qqe2NqfZ.js +1 -0
  220. package/dist/showcase/assets/hash-D9_KYvHs.js +1 -0
  221. package/dist/showcase/assets/header-XNCAB6Rs.js +1 -0
  222. package/dist/showcase/assets/header-notifications-BdWsVoN3.js +1 -0
  223. package/dist/showcase/assets/heart-C56rAanb.js +1 -0
  224. package/dist/showcase/assets/hooks-fDydjf6M.js +220 -0
  225. package/dist/showcase/assets/house-DbYM6er_.js +1 -0
  226. package/dist/showcase/assets/icon-badge-DWQE6dAm.js +37 -0
  227. package/dist/showcase/assets/icon-badge-ruuI6tt0.js +1 -0
  228. package/dist/showcase/assets/image-DCpC2weW.js +1 -0
  229. package/dist/showcase/assets/inbox-cvR2MbZq.js +1 -0
  230. package/dist/showcase/assets/index-B4sKWDcN.js +10 -0
  231. package/dist/showcase/assets/index-Dy3INIq2.css +2 -0
  232. package/dist/showcase/assets/inertValue-DhXA8ytu.js +1 -0
  233. package/dist/showcase/assets/info-DXwnIz56.js +1 -0
  234. package/dist/showcase/assets/inline-stat-C9Syz6in.js +1 -0
  235. package/dist/showcase/assets/inline-stat-CDcWILUM.js +15 -0
  236. package/dist/showcase/assets/input-CLQIEOQ4.js +1 -0
  237. package/dist/showcase/assets/input-D70ed8oB.js +1 -0
  238. package/dist/showcase/assets/input-group-CMJ2yUuD.js +47 -0
  239. package/dist/showcase/assets/input-group-DwZov3Y6.js +1 -0
  240. package/dist/showcase/assets/inputs-DQWbPvC8.js +155 -0
  241. package/dist/showcase/assets/installation-B2BcSkJr.js +134 -0
  242. package/dist/showcase/assets/invoice-header-Ds4A6mLs.js +36 -0
  243. package/dist/showcase/assets/invoice-items-LFYeS0eR.js +36 -0
  244. package/dist/showcase/assets/invoice-mini-BMVm8x43.js +14 -0
  245. package/dist/showcase/assets/invoice-table-BVZ-PtSC.js +30 -0
  246. package/dist/showcase/assets/isSameDay-BYK9pmDX.js +1 -0
  247. package/dist/showcase/assets/isToday-B3-xb910.js +1 -0
  248. package/dist/showcase/assets/italic-CPSVPc63.js +1 -0
  249. package/dist/showcase/assets/item-KsGEgVjl.js +1 -0
  250. package/dist/showcase/assets/item-WOhHNpnr.js +1 -0
  251. package/dist/showcase/assets/item-avTNp1z7.js +140 -0
  252. package/dist/showcase/assets/kanban-DwVW3Lab.js +188 -0
  253. package/dist/showcase/assets/key-round-CNEqnMGG.js +1 -0
  254. package/dist/showcase/assets/label-BZzl85ev.js +1 -0
  255. package/dist/showcase/assets/languages-BWquWXSu.js +1 -0
  256. package/dist/showcase/assets/layers-hYbCFSpT.js +1 -0
  257. package/dist/showcase/assets/layout-app-shell-BRLO7lFp.js +608 -0
  258. package/dist/showcase/assets/layout-auth-ysobcsYs.js +790 -0
  259. package/dist/showcase/assets/layout-containers-BoVYkBOk.js +141 -0
  260. package/dist/showcase/assets/layout-header-BnkgzPgS.js +203 -0
  261. package/dist/showcase/assets/layout-page-CdzQQr2_.js +315 -0
  262. package/dist/showcase/assets/layout-primitives-BXP_nFQX.js +34 -0
  263. package/dist/showcase/assets/layout-sidebar-tPHppANn.js +224 -0
  264. package/dist/showcase/assets/layout-users-DgChX6ig.js +117 -0
  265. package/dist/showcase/assets/layout-workspace-u1kkLDCd.js +191 -0
  266. package/dist/showcase/assets/lib-VG1Lf4Lk.js +1 -0
  267. package/dist/showcase/assets/list-checks-CUXbiTmk.js +1 -0
  268. package/dist/showcase/assets/lock-BwI_fNQW.js +1 -0
  269. package/dist/showcase/assets/lock-keyhole-DKi16lNp.js +1 -0
  270. package/dist/showcase/assets/mail-BlH-8y33.js +1 -0
  271. package/dist/showcase/assets/mail-check-DrNT7RWT.js +1 -0
  272. package/dist/showcase/assets/map-BKztQq4-.js +124 -0
  273. package/dist/showcase/assets/map-pin-BwGJCGY8.js +1 -0
  274. package/dist/showcase/assets/media-library-CUI_IPkM.js +699 -0
  275. package/dist/showcase/assets/mention-inline-suggestions-BIIRKRpU.js +1 -0
  276. package/dist/showcase/assets/mentions-CTkcQNFc.js +138 -0
  277. package/dist/showcase/assets/menus-DilZRggQ.js +171 -0
  278. package/dist/showcase/assets/message-square-Cjuladix.js +1 -0
  279. package/dist/showcase/assets/metadata-list-C6CF85o9.js +1 -0
  280. package/dist/showcase/assets/metadata-list-PqngP9QU.js +286 -0
  281. package/dist/showcase/assets/metric-C5Wrr90_.js +1 -0
  282. package/dist/showcase/assets/metric-bar-CIesI_gw.js +1 -0
  283. package/dist/showcase/assets/metric-grid-FlL7atag.js +1 -0
  284. package/dist/showcase/assets/metric-trend-chip-DxTiaCTB.js +1 -0
  285. package/dist/showcase/assets/metrics-analytics-bar-YabnSIOP.js +44 -0
  286. package/dist/showcase/assets/metrics-analytics-cards-Buas8exV.js +50 -0
  287. package/dist/showcase/assets/metrics-comparison-Jx1WGPZL.js +76 -0
  288. package/dist/showcase/assets/metrics-heatmap-C5cB95P9.js +27 -0
  289. package/dist/showcase/assets/metrics-inline-badge-D7r40gFm.js +17 -0
  290. package/dist/showcase/assets/metrics-kpi-row-CweMAqSm.js +31 -0
  291. package/dist/showcase/assets/metrics-micro-grid-UUa2fUGF.js +42 -0
  292. package/dist/showcase/assets/metrics-overview-eGnNPvwF.js +192 -0
  293. package/dist/showcase/assets/metrics-stat-cards-CEcX0zqZ.js +54 -0
  294. package/dist/showcase/assets/minus-CVVsGq91.js +1 -0
  295. package/dist/showcase/assets/money-display-Chu4t6MY.js +1 -0
  296. package/dist/showcase/assets/money-display-DNs6PXCm.js +3 -0
  297. package/dist/showcase/assets/month-year-picker-B0odiuhf.js +1 -0
  298. package/dist/showcase/assets/navigation-CQwt1f4b.js +90 -0
  299. package/dist/showcase/assets/navigation-KQxXtiL6.js +231 -0
  300. package/dist/showcase/assets/navigation-extras-2uJbGPhJ.js +43 -0
  301. package/dist/showcase/assets/notification-banner-Cx1Qm0ij.js +1 -0
  302. package/dist/showcase/assets/onboarding-checklist-CAHajXzP.js +119 -0
  303. package/dist/showcase/assets/overflow-tab-bar-gNULx5Wr.js +1 -0
  304. package/dist/showcase/assets/overlays-CaSVa-L2.js +159 -0
  305. package/dist/showcase/assets/overlays-zjTanrAP.js +408 -0
  306. package/dist/showcase/assets/overview-EZ_RMkeD.js +184 -0
  307. package/dist/showcase/assets/package-CqQQqj6Y.js +1 -0
  308. package/dist/showcase/assets/package-check-Nqr5Lv95.js +1 -0
  309. package/dist/showcase/assets/page-BTXFFFwT.js +1 -0
  310. package/dist/showcase/assets/page-action-button-NJqE-qP0.js +1 -0
  311. package/dist/showcase/assets/page-header-AFTuoGVw.js +1 -0
  312. package/dist/showcase/assets/pagination-B1Ewc7Co.js +1 -0
  313. package/dist/showcase/assets/pagination-DOdLcTiT.js +42 -0
  314. package/dist/showcase/assets/paperclip-D0oBI19t.js +1 -0
  315. package/dist/showcase/assets/password-input-C5MrNrHm.js +1 -0
  316. package/dist/showcase/assets/pencil-DdCEPDLe.js +1 -0
  317. package/dist/showcase/assets/phone-BdGmQ_eI.js +1 -0
  318. package/dist/showcase/assets/placeholder-pattern-BnyJukU0.js +1 -0
  319. package/dist/showcase/assets/plus-Dp_nZNjk.js +1 -0
  320. package/dist/showcase/assets/popover-BP4R2w67.js +1 -0
  321. package/dist/showcase/assets/popover-DfGXC2pN.js +1 -0
  322. package/dist/showcase/assets/popover-menu-DGkCA4YC.js +1 -0
  323. package/dist/showcase/assets/product-empty-state-CKylTX_h.js +1 -0
  324. package/dist/showcase/assets/product-option-action-menu-vqslODBe.js +1 -0
  325. package/dist/showcase/assets/product-rows-CWy63Dk5.js +1 -0
  326. package/dist/showcase/assets/product-structure-card-EJY038tP.js +1 -0
  327. package/dist/showcase/assets/product-variant-action-menu-CnRJscP3.js +1 -0
  328. package/dist/showcase/assets/products-jpCjHLbZ.js +61 -0
  329. package/dist/showcase/assets/progress-D19PRprP.js +1 -0
  330. package/dist/showcase/assets/progress-UbtWRfF2.js +18 -0
  331. package/dist/showcase/assets/progress-twHfoY8k.js +1 -0
  332. package/dist/showcase/assets/props-table-aynAz90t.js +1 -0
  333. package/dist/showcase/assets/props.generated-IUhT2lh_.json +42950 -0
  334. package/dist/showcase/assets/qr-code-ywR6kVzD.js +1 -0
  335. package/dist/showcase/assets/quote-BFMPQa3L.js +1 -0
  336. package/dist/showcase/assets/receipt-CcTseXcy.js +1 -0
  337. package/dist/showcase/assets/receipt-text-C9BMAbTL.js +1 -0
  338. package/dist/showcase/assets/refinement-guide-lotMKye4.js +189 -0
  339. package/dist/showcase/assets/refresh-cw-DpfoVhbc.js +1 -0
  340. package/dist/showcase/assets/resolveValueLabel-mzTN-8j9.js +1 -0
  341. package/dist/showcase/assets/resource-CwHVDrOk.js +1 -0
  342. package/dist/showcase/assets/resource-kPziVtVy.js +139 -0
  343. package/dist/showcase/assets/resource-selector-card-xIysiHOg.js +43 -0
  344. package/dist/showcase/assets/rich-text-editor-Bi6stpAW.js +124 -0
  345. package/dist/showcase/assets/rich-text-editor-DggGI4Dj.js +143 -0
  346. package/dist/showcase/assets/rotate-ccw-Uau0Jm3_.js +1 -0
  347. package/dist/showcase/assets/route-Dj29lOBc.js +1 -0
  348. package/dist/showcase/assets/save-j-PKUm-B.js +1 -0
  349. package/dist/showcase/assets/schema-form-D4kfmM1o.js +327 -0
  350. package/dist/showcase/assets/scroll-area-CK1S6JpQ.js +1 -0
  351. package/dist/showcase/assets/scroll-area-Di7TDfFD.js +32 -0
  352. package/dist/showcase/assets/section-C_rLy6Zn.js +1 -0
  353. package/dist/showcase/assets/select-BRC14Sd3.js +1 -0
  354. package/dist/showcase/assets/select-J0hPSc5B.js +1 -0
  355. package/dist/showcase/assets/send-BnVbRsaN.js +1 -0
  356. package/dist/showcase/assets/separator-7gHhV7ed.js +1 -0
  357. package/dist/showcase/assets/separator-CjWigMul.js +1 -0
  358. package/dist/showcase/assets/separator-Dpo134G3.js +28 -0
  359. package/dist/showcase/assets/separator-JYQ5rY8E.js +1 -0
  360. package/dist/showcase/assets/settings-2-D06IRW2d.js +1 -0
  361. package/dist/showcase/assets/settings-YDwquOPS.js +1 -0
  362. package/dist/showcase/assets/sheet-O9T8bfRr.js +1 -0
  363. package/dist/showcase/assets/shield-Cebk5nXH.js +1 -0
  364. package/dist/showcase/assets/shield-alert-BldSpQ1t.js +1 -0
  365. package/dist/showcase/assets/shield-check-CNudpzdR.js +1 -0
  366. package/dist/showcase/assets/shopping-bag-BuHsmxnN.js +1 -0
  367. package/dist/showcase/assets/showcase-B1BPgzRP.js +132 -0
  368. package/dist/showcase/assets/sidebar-DPVgEwE0.js +1 -0
  369. package/dist/showcase/assets/sidebar.context-CYk51BQ5.js +1 -0
  370. package/dist/showcase/assets/skeleton-CrB6dGV4.js +29 -0
  371. package/dist/showcase/assets/skeleton-DMWrHdVi.js +1 -0
  372. package/dist/showcase/assets/skeleton-IBZSxxTq.js +1 -0
  373. package/dist/showcase/assets/skeleton-OK5SgmlA.js +1 -0
  374. package/dist/showcase/assets/slider-DMLIlQeO.js +1 -0
  375. package/dist/showcase/assets/smart-card-CwDYx0xj.js +1 -0
  376. package/dist/showcase/assets/sonner-Dpe1Nwfb.js +22 -0
  377. package/dist/showcase/assets/sortable.esm-BSC2lHxr.js +5 -0
  378. package/dist/showcase/assets/sparkles-BDnbTUMq.js +1 -0
  379. package/dist/showcase/assets/spinner-BZ0h-j9y.js +49 -0
  380. package/dist/showcase/assets/spinner-TNaSAQh7.js +30 -0
  381. package/dist/showcase/assets/spinner-k76a4i_M.js +1 -0
  382. package/dist/showcase/assets/square-pen-Cn-sFtCo.js +1 -0
  383. package/dist/showcase/assets/stacked-avatars-Ds8eV_Nx.js +1 -0
  384. package/dist/showcase/assets/star-BzQGhFDT.js +1 -0
  385. package/dist/showcase/assets/startOfDay-BfIUGWW-.js +1 -0
  386. package/dist/showcase/assets/styles-BleHZ-uX.js +1 -0
  387. package/dist/showcase/assets/suggestions-CsrJSY__.js +126 -0
  388. package/dist/showcase/assets/support-rail-C_fc_C1j.js +26 -0
  389. package/dist/showcase/assets/switch-BEfD8lic.js +1 -0
  390. package/dist/showcase/assets/switch-BOlIXIn9.js +1 -0
  391. package/dist/showcase/assets/switch-card-CCJ-MaRI.js +1 -0
  392. package/dist/showcase/assets/sync-vACCm2ND.js +124 -0
  393. package/dist/showcase/assets/table-CeZy8iT0.js +686 -0
  394. package/dist/showcase/assets/table-DPpHEvR_.js +1 -0
  395. package/dist/showcase/assets/table-actions-C9J5piiU.js +1 -0
  396. package/dist/showcase/assets/tabs-Ca6ldTWi.js +1 -0
  397. package/dist/showcase/assets/tabs-DGP5RvNm.js +19 -0
  398. package/dist/showcase/assets/tags-input-BOemEMZS.js +1 -0
  399. package/dist/showcase/assets/text-button-C8qZqcCy.js +1 -0
  400. package/dist/showcase/assets/text-link-BFYPeXTq.js +1 -0
  401. package/dist/showcase/assets/textarea-DcCHHuP-.js +1 -0
  402. package/dist/showcase/assets/textarea-RUqV9hNm.js +1 -0
  403. package/dist/showcase/assets/throttle-alert-Sf7FjTvh.js +1 -0
  404. package/dist/showcase/assets/timelines-nQ8shLIn.js +200 -0
  405. package/dist/showcase/assets/toggle-group-k5nqOfUW.js +1 -0
  406. package/dist/showcase/assets/toggles-E80ufOk5.js +71 -0
  407. package/dist/showcase/assets/toggles-group-vaJ63gg9.js +32 -0
  408. package/dist/showcase/assets/tooltip-DIvBe7hb.js +31 -0
  409. package/dist/showcase/assets/trash-2-C-6T17-B.js +1 -0
  410. package/dist/showcase/assets/trending-up-DRyRbFnA.js +1 -0
  411. package/dist/showcase/assets/truck-BE6OFjJs.js +1 -0
  412. package/dist/showcase/assets/typography-i6Zhj3TO.js +223 -0
  413. package/dist/showcase/assets/ui-badge-MBQsz2Mn.js +28 -0
  414. package/dist/showcase/assets/ui-card-jaEeRDe5.js +30 -0
  415. package/dist/showcase/assets/ui-table-CbmOEWVu.js +42 -0
  416. package/dist/showcase/assets/upload-tray-D4aE56cX.js +138 -0
  417. package/dist/showcase/assets/use-layout-link-DpqFiDf-.js +1 -0
  418. package/dist/showcase/assets/useAriaLabelledBy-DSKQpAlQ.js +1 -0
  419. package/dist/showcase/assets/useCollapsiblePanel-DL6IpVQS.js +1 -0
  420. package/dist/showcase/assets/useCompositeItem-jckozrpu.js +1 -0
  421. package/dist/showcase/assets/useCompositeListItem-Ce0eZtsp.js +1 -0
  422. package/dist/showcase/assets/useLabelableId-Bs8clfkJ.js +1 -0
  423. package/dist/showcase/assets/useOpenInteractionType-KBhpVaur.js +1 -0
  424. package/dist/showcase/assets/useRender-Bn5cjIfs.js +1 -0
  425. package/dist/showcase/assets/useTriggerFocusGuards-D5Cl055z.js +1 -0
  426. package/dist/showcase/assets/useValueChanged-B-czUWmg.js +1 -0
  427. package/dist/showcase/assets/user-C7ORJkSr.js +1 -0
  428. package/dist/showcase/assets/user-plus-O410ITvy.js +1 -0
  429. package/dist/showcase/assets/users-BlcUaVEY.js +1 -0
  430. package/dist/showcase/assets/variant-details-BJ0OtpeL.js +50 -0
  431. package/dist/showcase/assets/variant-management-pTZ83MM_.js +209 -0
  432. package/dist/showcase/assets/vendor-profile-F2EP-AGx.js +37 -0
  433. package/dist/showcase/assets/video-fYZEPex_.js +1 -0
  434. package/dist/showcase/assets/visually-hidden-C1KAHG63.js +1 -0
  435. package/dist/showcase/assets/weight-input-_wl5mPGA.js +1 -0
  436. package/dist/showcase/assets/wrench-BzqNpztP.js +1 -0
  437. package/dist/showcase/assets/x-C5_SzMQM.js +1 -0
  438. package/dist/showcase/assets/zap-DdInHaAD.js +1 -0
  439. package/dist/showcase/index.html +2 -2
  440. package/dist/style.css +1 -1
  441. package/package.json +1 -1
  442. package/dist/_shared/containers-8ryMAXNr.js +0 -48
  443. package/dist/_shared/containers-8ryMAXNr.js.map +0 -1
  444. package/dist/_shared/containers-BcrM8-22.cjs +0 -2
  445. package/dist/_shared/containers-BcrM8-22.cjs.map +0 -1
  446. package/dist/_shared/data-display-B9Lciun3.cjs +0 -2
  447. package/dist/_shared/data-display-B9Lciun3.cjs.map +0 -1
  448. package/dist/_shared/data-display-CYmwUdmU.js +0 -1878
  449. package/dist/_shared/data-display-CYmwUdmU.js.map +0 -1
  450. package/dist/_shared/layout-CZVEJ3p_.cjs +0 -2
  451. package/dist/_shared/layout-CZVEJ3p_.cjs.map +0 -1
  452. package/dist/_shared/layout-D75TJTaD.js +0 -268
  453. package/dist/_shared/layout-D75TJTaD.js.map +0 -1
  454. package/dist/showcase/assets/AreaChart-iGBzUSAV.js +0 -6
  455. package/dist/showcase/assets/CompositeItem-1e8qsdC5.js +0 -1
  456. package/dist/showcase/assets/CompositeRoot-DneCUh3i.js +0 -1
  457. package/dist/showcase/assets/DialogTrigger-CVhas4X-.js +0 -1
  458. package/dist/showcase/assets/LabelableContext-Bfc22fLa.js +0 -1
  459. package/dist/showcase/assets/MenuTrigger-WTiiOMpe.js +0 -1
  460. package/dist/showcase/assets/PreviewLayout-ClbLOtTa.js +0 -1
  461. package/dist/showcase/assets/RadioGroup-DEBYMgi5.js +0 -1
  462. package/dist/showcase/assets/ScrollAreaCorner-CilamsvS.js +0 -1
  463. package/dist/showcase/assets/Separator-DSecBOlo.js +0 -1
  464. package/dist/showcase/assets/ToolbarRootContext-BY_Czi0-.js +0 -1
  465. package/dist/showcase/assets/accordion-FV2cJ9V1.js +0 -171
  466. package/dist/showcase/assets/accordion-variants-DRNuXgFT.js +0 -1
  467. package/dist/showcase/assets/action-menu-uhMTzBIl.js +0 -1
  468. package/dist/showcase/assets/actions-C3kChFSc.js +0 -310
  469. package/dist/showcase/assets/actions-DizTzuf8.js +0 -38
  470. package/dist/showcase/assets/activities-DQ7u_XKr.js +0 -500
  471. package/dist/showcase/assets/activities-feed-card-DoxFXr20.js +0 -1
  472. package/dist/showcase/assets/admin-CRVq1bj-.js +0 -140
  473. package/dist/showcase/assets/ai-DMBh2BKA.js +0 -207
  474. package/dist/showcase/assets/ai-artifact-DnSz7Xj1.js +0 -2
  475. package/dist/showcase/assets/ai-chat-Ba60tj9x.js +0 -568
  476. package/dist/showcase/assets/ai-elements-CaMbMARm.js +0 -387
  477. package/dist/showcase/assets/ai-tool-call-Cg11pnXq.js +0 -1
  478. package/dist/showcase/assets/alert-AeDTPQQ5.js +0 -62
  479. package/dist/showcase/assets/alert-BQucj-0f.js +0 -1
  480. package/dist/showcase/assets/alert-DY0yMYc3.js +0 -93
  481. package/dist/showcase/assets/api-key-list-DZiVRCkz.js +0 -73
  482. package/dist/showcase/assets/api-key-list-DuoC5nyO.js +0 -1
  483. package/dist/showcase/assets/app-sidebar-D_RbOUZC.js +0 -1
  484. package/dist/showcase/assets/arrow-down-J_5dmfVv.js +0 -1
  485. package/dist/showcase/assets/arrow-left-DeKmFjyi.js +0 -1
  486. package/dist/showcase/assets/arrow-right-ztHj2bIY.js +0 -1
  487. package/dist/showcase/assets/arrow-up-CCenfeVW.js +0 -1
  488. package/dist/showcase/assets/arrow-up-right-URGvP7LF.js +0 -1
  489. package/dist/showcase/assets/avatar-CTFW3AQa.js +0 -1
  490. package/dist/showcase/assets/avatar-DH3vm33j.js +0 -1
  491. package/dist/showcase/assets/avatar-DRi6ZWB2.js +0 -67
  492. package/dist/showcase/assets/avatar-eEOgFI6D.js +0 -57
  493. package/dist/showcase/assets/badge-C9RqIyT7.js +0 -31
  494. package/dist/showcase/assets/badge-check-CRkt0WPY.js +0 -1
  495. package/dist/showcase/assets/bell-B-bFEx5I.js +0 -1
  496. package/dist/showcase/assets/boolean-indicator-CD3scHDz.js +0 -1
  497. package/dist/showcase/assets/bot-DbSsnrvR.js +0 -1
  498. package/dist/showcase/assets/box-BDLbaerX.js +0 -1
  499. package/dist/showcase/assets/braces-nP1Ffv07.js +0 -1
  500. package/dist/showcase/assets/brain-B69nRyRF.js +0 -1
  501. package/dist/showcase/assets/brand-WHRuwaVX.js +0 -36
  502. package/dist/showcase/assets/breadcrumb-CYxS57Ko.js +0 -1
  503. package/dist/showcase/assets/breadcrumb-viDsLdax.js +0 -52
  504. package/dist/showcase/assets/breadcrumbs-CX6eCwn4.js +0 -1
  505. package/dist/showcase/assets/briefcase-BCMmOuh2.js +0 -1
  506. package/dist/showcase/assets/building-2-DCSQxFoC.js +0 -1
  507. package/dist/showcase/assets/button-It_u4rRb.js +0 -44
  508. package/dist/showcase/assets/button-group-B2NgHAyn.js +0 -1
  509. package/dist/showcase/assets/buttons-ClK1qR3J.js +0 -272
  510. package/dist/showcase/assets/calendar-CX89JdTd.js +0 -16
  511. package/dist/showcase/assets/calendar-DV83xhzB.js +0 -1
  512. package/dist/showcase/assets/calendar-HrkenM2F.js +0 -1
  513. package/dist/showcase/assets/calendar-days-O55Ncg5j.js +0 -1
  514. package/dist/showcase/assets/camera-C6hO-Q3l.js +0 -1
  515. package/dist/showcase/assets/card-CXet5wLR.js +0 -1
  516. package/dist/showcase/assets/card-ChwovoeQ.js +0 -188
  517. package/dist/showcase/assets/card-checkbox-group-DN7Ui724.js +0 -1
  518. package/dist/showcase/assets/card-primitives-C5YmKK4H.js +0 -1
  519. package/dist/showcase/assets/card-radio-group-DaiWsziy.js +0 -1
  520. package/dist/showcase/assets/cards-CpYk7Lcz.js +0 -354
  521. package/dist/showcase/assets/carousel-CaoSMqW3.js +0 -452
  522. package/dist/showcase/assets/cell-renderers-BTLGZyvy.js +0 -1
  523. package/dist/showcase/assets/chart-DukdMlSE.js +0 -358
  524. package/dist/showcase/assets/chart-column-BqDA22mr.js +0 -1
  525. package/dist/showcase/assets/checkbox-CJg8G3-s.js +0 -1
  526. package/dist/showcase/assets/checkbox-DlOCnOfc.js +0 -1
  527. package/dist/showcase/assets/chevron-down-CjLLqYjs.js +0 -1
  528. package/dist/showcase/assets/chevron-left-lE5l5Y1q.js +0 -1
  529. package/dist/showcase/assets/chevron-up-WpyEPcvJ.js +0 -1
  530. package/dist/showcase/assets/chevrons-up-down-CPkjAe_j.js +0 -1
  531. package/dist/showcase/assets/circle-B9E-rFdh.js +0 -1
  532. package/dist/showcase/assets/circle-alert-DX4Q8Agf.js +0 -1
  533. package/dist/showcase/assets/circle-check-BdcUhuQ7.js +0 -1
  534. package/dist/showcase/assets/circle-check-big-CeaAGVP1.js +0 -1
  535. package/dist/showcase/assets/circle-dot-DoXkol-T.js +0 -1
  536. package/dist/showcase/assets/circle-question-mark-CYE6Hj4n.js +0 -1
  537. package/dist/showcase/assets/circle-x-BpB4A5gs.js +0 -1
  538. package/dist/showcase/assets/clock-3-B7Fa1qg-.js +0 -1
  539. package/dist/showcase/assets/clock-B1cuTZnL.js +0 -1
  540. package/dist/showcase/assets/code-xml-C_ICl6NY.js +0 -1
  541. package/dist/showcase/assets/collapsible-CtrQcEWW.js +0 -27
  542. package/dist/showcase/assets/collapsible-XZ4qRG4O.js +0 -1
  543. package/dist/showcase/assets/collapsible-ZP3Pv6SI.js +0 -1
  544. package/dist/showcase/assets/combobox-GMkDgk_z.js +0 -685
  545. package/dist/showcase/assets/command-BXhyoNX1.js +0 -1
  546. package/dist/showcase/assets/command-DNHjxTyl.js +0 -1
  547. package/dist/showcase/assets/comment-composer-BtE5Erp8.js +0 -1
  548. package/dist/showcase/assets/comment-item-TztxmXc7.js +0 -1
  549. package/dist/showcase/assets/comments-CEMkLRtb.js +0 -357
  550. package/dist/showcase/assets/commerce-BtvCQH0C.js +0 -19
  551. package/dist/showcase/assets/commerce-address-card-8PUGRwNW.js +0 -33
  552. package/dist/showcase/assets/commerce-cart-summary-nrO5v1O8.js +0 -43
  553. package/dist/showcase/assets/commerce-coupon-input-C-sT1FNq.js +0 -11
  554. package/dist/showcase/assets/commerce-discount-stack-BdGk8tbD.js +0 -17
  555. package/dist/showcase/assets/commerce-inventory-section-BnBu7wK5.js +0 -123
  556. package/dist/showcase/assets/commerce-loyalty-points-Bjei3EdW.js +0 -19
  557. package/dist/showcase/assets/commerce-order-status--TMOLhrS.js +0 -21
  558. package/dist/showcase/assets/commerce-payment-method-C8fVquyN.js +0 -17
  559. package/dist/showcase/assets/commerce-refund-status-Cs6dbewH.js +0 -17
  560. package/dist/showcase/assets/commerce-seo-listing-C4WvKFei.js +0 -61
  561. package/dist/showcase/assets/commerce-shipment-tracking-BcezyjSw.js +0 -24
  562. package/dist/showcase/assets/commerce-subscription-summary-BjhnmqOx.js +0 -25
  563. package/dist/showcase/assets/commerce-tax-breakdown-js8xMRDn.js +0 -19
  564. package/dist/showcase/assets/commerce-upcoming-booking-doggTqfA.js +0 -20
  565. package/dist/showcase/assets/commerce-voucher-entry-ByMZAiZO.js +0 -19
  566. package/dist/showcase/assets/composite-D2jjTQvZ.js +0 -1
  567. package/dist/showcase/assets/conditional-rendering-Cy3xN7KO.js +0 -1
  568. package/dist/showcase/assets/contact-card-BSH_KDbf.js +0 -65
  569. package/dist/showcase/assets/content-container-Q9Bp8aFE.js +0 -1
  570. package/dist/showcase/assets/copyable-8_0ImOB2.js +0 -1
  571. package/dist/showcase/assets/copyable-B3R9lXVu.js +0 -96
  572. package/dist/showcase/assets/course-card-zh8fH-6n.js +0 -77
  573. package/dist/showcase/assets/cpu-DlPQMchp.js +0 -1
  574. package/dist/showcase/assets/credit-card-DeuhwEKG.js +0 -1
  575. package/dist/showcase/assets/css-variables-BxE5DqUm.js +0 -1223
  576. package/dist/showcase/assets/currency-D3DomSfR.js +0 -148
  577. package/dist/showcase/assets/dark-surfaces-DYh199dt.js +0 -90
  578. package/dist/showcase/assets/data-view-HJme-PWk.js +0 -124
  579. package/dist/showcase/assets/data-view-s5TQvt4f.js +0 -4
  580. package/dist/showcase/assets/database-KGU1LGqB.js +0 -1
  581. package/dist/showcase/assets/date-block-CxFhNxK2.js +0 -1
  582. package/dist/showcase/assets/date-block-DmRDymLD.js +0 -1
  583. package/dist/showcase/assets/date-picker-CScVl5jV.js +0 -1
  584. package/dist/showcase/assets/date-pickers-D4EmH-RF.js +0 -73
  585. package/dist/showcase/assets/dense-info-DXbmG0Nf.js +0 -106
  586. package/dist/showcase/assets/design-system-consistency-D_j9P0qR.js +0 -264
  587. package/dist/showcase/assets/dialog-BHymSzYi.js +0 -1
  588. package/dist/showcase/assets/dialog-CGr-za_Y.js +0 -1
  589. package/dist/showcase/assets/dialog-DeXQn0Lm.js +0 -1
  590. package/dist/showcase/assets/display-utilities-Y1wtHZNJ.js +0 -4
  591. package/dist/showcase/assets/display-utilities.examples-BMKQv0ep.js +0 -309
  592. package/dist/showcase/assets/dist-DfpWey5P.js +0 -1
  593. package/dist/showcase/assets/dist-DrnHE1zU.js +0 -45
  594. package/dist/showcase/assets/dollar-sign-DzPcAVIr.js +0 -1
  595. package/dist/showcase/assets/download-YQyeAxpe.js +0 -1
  596. package/dist/showcase/assets/dropdown-menu-DijrdxTg.js +0 -1
  597. package/dist/showcase/assets/dropzone-CJQVfB6l.js +0 -1
  598. package/dist/showcase/assets/earth-CzKdl3sr.js +0 -1
  599. package/dist/showcase/assets/ellipsis-Bm3jOBg8.js +0 -1
  600. package/dist/showcase/assets/ellipsis-vertical-BfYWo5Lf.js +0 -1
  601. package/dist/showcase/assets/empty-BdJ7O2MX.js +0 -1
  602. package/dist/showcase/assets/empty-item-BQdBtp6f.js +0 -49
  603. package/dist/showcase/assets/empty-state-62UU8y5C.js +0 -1
  604. package/dist/showcase/assets/empty-state-CCL_J3tY.js +0 -190
  605. package/dist/showcase/assets/enhanced-activities-CC1UzTfz.js +0 -357
  606. package/dist/showcase/assets/enhanced-combobox-B9cjPsF6.js +0 -1
  607. package/dist/showcase/assets/esm-B-fRlXh3.js +0 -2
  608. package/dist/showcase/assets/event-calendar-Bhwxq8YS.js +0 -138
  609. package/dist/showcase/assets/event-log-CnKaX_Qy.js +0 -330
  610. package/dist/showcase/assets/example-DDhaO2UY.js +0 -1
  611. package/dist/showcase/assets/external-link-CANOM2jg.js +0 -1
  612. package/dist/showcase/assets/eye-Bipckkwy.js +0 -1
  613. package/dist/showcase/assets/feature-announcement-lwmHkJsA.js +0 -34
  614. package/dist/showcase/assets/file-D3AT65yE.js +0 -1
  615. package/dist/showcase/assets/file-text-BzM5AARd.js +0 -1
  616. package/dist/showcase/assets/filter-layout-Dcg6Bnrn.js +0 -1
  617. package/dist/showcase/assets/filters-CqlLV9PM.js +0 -139
  618. package/dist/showcase/assets/fixtures-yK2xR5Qs.js +0 -1
  619. package/dist/showcase/assets/flag-DwDsuNoj.js +0 -1
  620. package/dist/showcase/assets/folder-open-CU6X87LZ.js +0 -1
  621. package/dist/showcase/assets/form-field-CpRcKtwS.js +0 -1
  622. package/dist/showcase/assets/format-DmB3OvZa.js +0 -1
  623. package/dist/showcase/assets/forms-htLZTBP2.js +0 -915
  624. package/dist/showcase/assets/funnel-Dg-pRz2W.js +0 -1
  625. package/dist/showcase/assets/generic-C19aoW0F.js +0 -1
  626. package/dist/showcase/assets/getPseudoElementBounds-r_QLBIGn.js +0 -1
  627. package/dist/showcase/assets/gift-CpwvL7we.js +0 -1
  628. package/dist/showcase/assets/giftcard-cards-DHZQPc_n.js +0 -85
  629. package/dist/showcase/assets/git-branch-CZga8VLM.js +0 -1
  630. package/dist/showcase/assets/global-search-DqJo5jCc.js +0 -1
  631. package/dist/showcase/assets/global-search-_HODxZaU.js +0 -215
  632. package/dist/showcase/assets/globe-pWzZwcAv.js +0 -1
  633. package/dist/showcase/assets/gradient-card-D9fPawlx.js +0 -58
  634. package/dist/showcase/assets/grip-vertical-oqI1TI-N.js +0 -1
  635. package/dist/showcase/assets/hash-DQPCJKw8.js +0 -1
  636. package/dist/showcase/assets/header-DkCzYf6f.js +0 -1
  637. package/dist/showcase/assets/header-notifications-CPiuGNR5.js +0 -1
  638. package/dist/showcase/assets/heart-0z9BLROt.js +0 -1
  639. package/dist/showcase/assets/hooks-CXwg9TyF.js +0 -220
  640. package/dist/showcase/assets/house-Bg4YZsNF.js +0 -1
  641. package/dist/showcase/assets/icon-badge-CrSkFExw.js +0 -1
  642. package/dist/showcase/assets/icon-badge-D1fdev_s.js +0 -37
  643. package/dist/showcase/assets/image-BXWnqpeJ.js +0 -1
  644. package/dist/showcase/assets/inbox-CObYzZZR.js +0 -1
  645. package/dist/showcase/assets/index-DBheiRxz.css +0 -2
  646. package/dist/showcase/assets/index-DSBghWdd.js +0 -10
  647. package/dist/showcase/assets/inertValue-DOcq7b5x.js +0 -1
  648. package/dist/showcase/assets/info-wAcLD6Uj.js +0 -1
  649. package/dist/showcase/assets/inline-stat-CufTTte_.js +0 -1
  650. package/dist/showcase/assets/inline-stat-D4GrY6tT.js +0 -15
  651. package/dist/showcase/assets/input-Bq9vs-9_.js +0 -1
  652. package/dist/showcase/assets/input-DsP89oH1.js +0 -1
  653. package/dist/showcase/assets/input-group-CCaNByLp.js +0 -1
  654. package/dist/showcase/assets/input-group-m-swxf-o.js +0 -47
  655. package/dist/showcase/assets/inputs-BSEM9vfa.js +0 -155
  656. package/dist/showcase/assets/installation-uRaDUCjH.js +0 -134
  657. package/dist/showcase/assets/invoice-header-D48jDTWC.js +0 -36
  658. package/dist/showcase/assets/invoice-items-jRLo8FHu.js +0 -36
  659. package/dist/showcase/assets/invoice-mini-DLS8PQrl.js +0 -14
  660. package/dist/showcase/assets/invoice-table-D4y33M95.js +0 -30
  661. package/dist/showcase/assets/isSameDay-Cn7Vlp79.js +0 -1
  662. package/dist/showcase/assets/isToday-B0jKMww1.js +0 -1
  663. package/dist/showcase/assets/italic-BHsKu0Gj.js +0 -1
  664. package/dist/showcase/assets/item-BLXAOZLR.js +0 -1
  665. package/dist/showcase/assets/item-C8eCX4DH.js +0 -140
  666. package/dist/showcase/assets/item-D5xwkRvf.js +0 -1
  667. package/dist/showcase/assets/kanban-ujfZHhvd.js +0 -188
  668. package/dist/showcase/assets/key-round-B_fKEPa6.js +0 -1
  669. package/dist/showcase/assets/label-NSapdBaB.js +0 -1
  670. package/dist/showcase/assets/languages-TkdVe7-2.js +0 -1
  671. package/dist/showcase/assets/layers-1IEBbvoc.js +0 -1
  672. package/dist/showcase/assets/layout-app-shell-D4PFTEsD.js +0 -608
  673. package/dist/showcase/assets/layout-auth-BTriDNME.js +0 -790
  674. package/dist/showcase/assets/layout-containers-CLJfaL-J.js +0 -101
  675. package/dist/showcase/assets/layout-header-CsNPnQde.js +0 -203
  676. package/dist/showcase/assets/layout-page-CSejcBCR.js +0 -315
  677. package/dist/showcase/assets/layout-primitives-D1MJs2E3.js +0 -34
  678. package/dist/showcase/assets/layout-sidebar-CO8Hdnoh.js +0 -224
  679. package/dist/showcase/assets/layout-users-BgrXF4nn.js +0 -117
  680. package/dist/showcase/assets/layout-workspace-DLg1f_o-.js +0 -191
  681. package/dist/showcase/assets/lib-B7vzArq-.js +0 -1
  682. package/dist/showcase/assets/list-checks-tsvYcEx2.js +0 -1
  683. package/dist/showcase/assets/lock-CPztxP5s.js +0 -1
  684. package/dist/showcase/assets/lock-keyhole-BHaFzps8.js +0 -1
  685. package/dist/showcase/assets/mail-DFoR3rHO.js +0 -1
  686. package/dist/showcase/assets/mail-check-QV1zqP5D.js +0 -1
  687. package/dist/showcase/assets/map-BOo4UMER.js +0 -124
  688. package/dist/showcase/assets/map-pin-CEcA7jdk.js +0 -1
  689. package/dist/showcase/assets/media-library-CKR3NF1Y.js +0 -699
  690. package/dist/showcase/assets/mention-inline-suggestions-Chbuzkb7.js +0 -1
  691. package/dist/showcase/assets/mentions-syVuen0M.js +0 -138
  692. package/dist/showcase/assets/menus-COIxEKPm.js +0 -171
  693. package/dist/showcase/assets/message-square-CYSVV7nZ.js +0 -1
  694. package/dist/showcase/assets/metadata-list-BHIfOKD6.js +0 -1
  695. package/dist/showcase/assets/metadata-list-DLI17y0k.js +0 -286
  696. package/dist/showcase/assets/metric-bar-OTyaeNJY.js +0 -1
  697. package/dist/showcase/assets/metric-grid-BcjDZqHZ.js +0 -1
  698. package/dist/showcase/assets/metric-opI4qu4r.js +0 -1
  699. package/dist/showcase/assets/metric-trend-chip-BvhqlY9f.js +0 -1
  700. package/dist/showcase/assets/metrics-analytics-bar-Z8xY1Gwq.js +0 -44
  701. package/dist/showcase/assets/metrics-analytics-cards-DfzbV-8j.js +0 -50
  702. package/dist/showcase/assets/metrics-comparison-C71X-WeV.js +0 -76
  703. package/dist/showcase/assets/metrics-heatmap-Cs1ixWQX.js +0 -27
  704. package/dist/showcase/assets/metrics-inline-badge-DP1guaTx.js +0 -17
  705. package/dist/showcase/assets/metrics-kpi-row-CVwHH3rN.js +0 -31
  706. package/dist/showcase/assets/metrics-micro-grid-CQGKibEU.js +0 -42
  707. package/dist/showcase/assets/metrics-overview-DPGjh2Gi.js +0 -192
  708. package/dist/showcase/assets/metrics-stat-cards-C3k7Uyt1.js +0 -54
  709. package/dist/showcase/assets/minus-BTHZFjKs.js +0 -1
  710. package/dist/showcase/assets/money-display-B8BodAKb.js +0 -1
  711. package/dist/showcase/assets/money-display-C7TuSgzA.js +0 -3
  712. package/dist/showcase/assets/month-year-picker-DQcCIbM9.js +0 -1
  713. package/dist/showcase/assets/navigation-BjYK7JTx.js +0 -231
  714. package/dist/showcase/assets/navigation-DkkHPGFq.js +0 -90
  715. package/dist/showcase/assets/navigation-extras-drFz7Xmf.js +0 -43
  716. package/dist/showcase/assets/notification-banner-CATA6COT.js +0 -1
  717. package/dist/showcase/assets/onboarding-checklist-CjGo74ic.js +0 -119
  718. package/dist/showcase/assets/overflow-tab-bar-BYRykiZn.js +0 -1
  719. package/dist/showcase/assets/overlays-BtfkqYL1.js +0 -159
  720. package/dist/showcase/assets/overlays-CzmrvPNh.js +0 -408
  721. package/dist/showcase/assets/overview-B5ckb1et.js +0 -184
  722. package/dist/showcase/assets/package-Db-MTVUx.js +0 -1
  723. package/dist/showcase/assets/package-check-UP9srP8w.js +0 -1
  724. package/dist/showcase/assets/page-BFvDdpX3.js +0 -1
  725. package/dist/showcase/assets/page-action-button-CROlcZJb.js +0 -1
  726. package/dist/showcase/assets/page-header-B8xYCCzF.js +0 -1
  727. package/dist/showcase/assets/pagination-B7j6cJXU.js +0 -1
  728. package/dist/showcase/assets/pagination-B8LN9MT7.js +0 -42
  729. package/dist/showcase/assets/paperclip-CAcGOT6G.js +0 -1
  730. package/dist/showcase/assets/password-input-DzO1QEsL.js +0 -1
  731. package/dist/showcase/assets/pencil-Db0qlNpO.js +0 -1
  732. package/dist/showcase/assets/phone-BHkprQ5O.js +0 -1
  733. package/dist/showcase/assets/placeholder-pattern-Ba0rjJa5.js +0 -1
  734. package/dist/showcase/assets/plus-CaAfJIjc.js +0 -1
  735. package/dist/showcase/assets/popover-BZsIv1AP.js +0 -1
  736. package/dist/showcase/assets/popover-DCfeA2ZY.js +0 -1
  737. package/dist/showcase/assets/popover-menu-kjcHCICE.js +0 -1
  738. package/dist/showcase/assets/product-empty-state-CSdeHHZT.js +0 -1
  739. package/dist/showcase/assets/product-option-action-menu-FvgEaWA7.js +0 -1
  740. package/dist/showcase/assets/product-rows-Cb8gLOeV.js +0 -1
  741. package/dist/showcase/assets/product-structure-card-CFqufBoJ.js +0 -1
  742. package/dist/showcase/assets/product-variant-action-menu-BvSn7PuK.js +0 -1
  743. package/dist/showcase/assets/products-D1aG4KFi.js +0 -61
  744. package/dist/showcase/assets/progress-2NWkkA6x.js +0 -18
  745. package/dist/showcase/assets/progress-DECH8qUu.js +0 -1
  746. package/dist/showcase/assets/progress-DHsjY-V1.js +0 -1
  747. package/dist/showcase/assets/props-table-CzpevabQ.js +0 -1
  748. package/dist/showcase/assets/props.generated-CXbCZMUk.json +0 -42824
  749. package/dist/showcase/assets/qr-code-DLeRQu83.js +0 -1
  750. package/dist/showcase/assets/quote-eFsPYmD1.js +0 -1
  751. package/dist/showcase/assets/receipt-V9T3dONa.js +0 -1
  752. package/dist/showcase/assets/receipt-text-866Msgc2.js +0 -1
  753. package/dist/showcase/assets/refinement-guide-BoerkamA.js +0 -189
  754. package/dist/showcase/assets/refresh-cw-Crg4uqw8.js +0 -1
  755. package/dist/showcase/assets/resolveValueLabel-D8poX7JF.js +0 -1
  756. package/dist/showcase/assets/resource-Ca8tGlsX.js +0 -139
  757. package/dist/showcase/assets/resource-aE-LkpW8.js +0 -1
  758. package/dist/showcase/assets/resource-selector-card-DzDG2Wl6.js +0 -43
  759. package/dist/showcase/assets/rich-text-editor-BCTbpMcY.js +0 -143
  760. package/dist/showcase/assets/rich-text-editor-CdklzzLj.js +0 -124
  761. package/dist/showcase/assets/rotate-ccw-CCPhnEPA.js +0 -1
  762. package/dist/showcase/assets/route-CODe9_7c.js +0 -1
  763. package/dist/showcase/assets/save-B_ze9MC9.js +0 -1
  764. package/dist/showcase/assets/schema-form-CEmpu59s.js +0 -327
  765. package/dist/showcase/assets/scroll-area-BM0asGLD.js +0 -32
  766. package/dist/showcase/assets/scroll-area-zRw8lSrA.js +0 -1
  767. package/dist/showcase/assets/section-DLqBJGPH.js +0 -1
  768. package/dist/showcase/assets/select-B0ivd5pJ.js +0 -1
  769. package/dist/showcase/assets/select-BrPUZL6Z.js +0 -1
  770. package/dist/showcase/assets/send-B4jTMdd9.js +0 -1
  771. package/dist/showcase/assets/separator-7f_tdxB3.js +0 -28
  772. package/dist/showcase/assets/separator-BvhVS5L0.js +0 -1
  773. package/dist/showcase/assets/separator-DeMF0eCd.js +0 -1
  774. package/dist/showcase/assets/separator-Dsqit2yw.js +0 -1
  775. package/dist/showcase/assets/settings-2-DnZeyxSR.js +0 -1
  776. package/dist/showcase/assets/settings-GFwewlvm.js +0 -1
  777. package/dist/showcase/assets/sheet-B06fRKgl.js +0 -1
  778. package/dist/showcase/assets/shield-NNzIJA-o.js +0 -1
  779. package/dist/showcase/assets/shield-alert-dlgSUsVl.js +0 -1
  780. package/dist/showcase/assets/shield-check-CkqmRaJd.js +0 -1
  781. package/dist/showcase/assets/shopping-bag-x4S32KGc.js +0 -1
  782. package/dist/showcase/assets/showcase-CiXeaTrT.js +0 -132
  783. package/dist/showcase/assets/sidebar-BDOvomlZ.js +0 -1
  784. package/dist/showcase/assets/sidebar.context-M_w0AsBU.js +0 -1
  785. package/dist/showcase/assets/skeleton-C0-TGyFP.js +0 -29
  786. package/dist/showcase/assets/skeleton-ClY9N5IF.js +0 -1
  787. package/dist/showcase/assets/skeleton-CyCX3AHa.js +0 -1
  788. package/dist/showcase/assets/skeleton-JapnB0xo.js +0 -1
  789. package/dist/showcase/assets/slider-BagnbSUE.js +0 -1
  790. package/dist/showcase/assets/smart-card-BA097ZGN.js +0 -1
  791. package/dist/showcase/assets/sonner-bg55zTHJ.js +0 -22
  792. package/dist/showcase/assets/sortable.esm-DCj5rKPd.js +0 -5
  793. package/dist/showcase/assets/sparkles-a2TsduRv.js +0 -1
  794. package/dist/showcase/assets/spinner-BRTHJLPS.js +0 -49
  795. package/dist/showcase/assets/spinner-RQ5TsGWE.js +0 -30
  796. package/dist/showcase/assets/spinner-yQrc4KLG.js +0 -1
  797. package/dist/showcase/assets/square-pen-wg5I0K5c.js +0 -1
  798. package/dist/showcase/assets/stacked-avatars-BGpGV4Is.js +0 -1
  799. package/dist/showcase/assets/star-Ccv6TKPm.js +0 -1
  800. package/dist/showcase/assets/startOfDay-BslQvd9l.js +0 -1
  801. package/dist/showcase/assets/styles-CMmKOMCT.js +0 -1
  802. package/dist/showcase/assets/suggestions--A7bRqHY.js +0 -126
  803. package/dist/showcase/assets/support-rail-b2WhhyFB.js +0 -26
  804. package/dist/showcase/assets/switch-Cv_v9byU.js +0 -1
  805. package/dist/showcase/assets/switch-DY-b3cEd.js +0 -1
  806. package/dist/showcase/assets/switch-card-C-Q3eon2.js +0 -1
  807. package/dist/showcase/assets/sync-BmH6kK2e.js +0 -124
  808. package/dist/showcase/assets/table-DAil3SVn.js +0 -686
  809. package/dist/showcase/assets/table-DNimuqS6.js +0 -1
  810. package/dist/showcase/assets/table-actions-Bgp9_jhZ.js +0 -1
  811. package/dist/showcase/assets/tabs-DN23r2we.js +0 -1
  812. package/dist/showcase/assets/tabs-RbFeMoGk.js +0 -19
  813. package/dist/showcase/assets/tags-input-Cp-ikGn_.js +0 -1
  814. package/dist/showcase/assets/text-button-CPxfmks9.js +0 -1
  815. package/dist/showcase/assets/text-link-BBHsgNSW.js +0 -1
  816. package/dist/showcase/assets/textarea-BGe_VCrI.js +0 -1
  817. package/dist/showcase/assets/textarea-DAV6cQCw.js +0 -1
  818. package/dist/showcase/assets/throttle-alert-B85zpgs4.js +0 -1
  819. package/dist/showcase/assets/timelines-BptCi-0C.js +0 -200
  820. package/dist/showcase/assets/toggle-group-B4tIG940.js +0 -1
  821. package/dist/showcase/assets/toggles-BSkNLAjb.js +0 -71
  822. package/dist/showcase/assets/toggles-group-CQIwVA__.js +0 -32
  823. package/dist/showcase/assets/tooltip-DN6bKPgk.js +0 -31
  824. package/dist/showcase/assets/trash-2-DZ5FSAFb.js +0 -1
  825. package/dist/showcase/assets/trending-up-DtSjt9AO.js +0 -1
  826. package/dist/showcase/assets/truck-B0QFWMMH.js +0 -1
  827. package/dist/showcase/assets/typography-8sXlmgaD.js +0 -223
  828. package/dist/showcase/assets/ui-badge-C4odkkUK.js +0 -28
  829. package/dist/showcase/assets/ui-card-CU1Ga8J6.js +0 -30
  830. package/dist/showcase/assets/ui-table-Bp-MkWh5.js +0 -42
  831. package/dist/showcase/assets/upload-tray-DT0HesKW.js +0 -138
  832. package/dist/showcase/assets/use-layout-link-BsJvjSZp.js +0 -1
  833. package/dist/showcase/assets/useAriaLabelledBy-Bl2oGr7T.js +0 -1
  834. package/dist/showcase/assets/useCollapsiblePanel-C8-r9Srt.js +0 -1
  835. package/dist/showcase/assets/useCompositeItem-DVZX40q_.js +0 -1
  836. package/dist/showcase/assets/useCompositeListItem-DWggcwRs.js +0 -1
  837. package/dist/showcase/assets/useLabelableId-Dx_-xVBr.js +0 -1
  838. package/dist/showcase/assets/useOpenInteractionType-CKNY2kPx.js +0 -1
  839. package/dist/showcase/assets/useRender-Bk8pPQUW.js +0 -1
  840. package/dist/showcase/assets/useTriggerFocusGuards-D74GGv1k.js +0 -1
  841. package/dist/showcase/assets/useValueChanged-BjYsvuOC.js +0 -1
  842. package/dist/showcase/assets/user-DlFWtE-h.js +0 -1
  843. package/dist/showcase/assets/user-plus-NGAALkPS.js +0 -1
  844. package/dist/showcase/assets/users-DYPDZwd6.js +0 -1
  845. package/dist/showcase/assets/variant-details-DtdWm8Bt.js +0 -50
  846. package/dist/showcase/assets/variant-management-Dk_P-wBF.js +0 -209
  847. package/dist/showcase/assets/vendor-profile-Bf1kKKdO.js +0 -37
  848. package/dist/showcase/assets/video-BObmzTOM.js +0 -1
  849. package/dist/showcase/assets/visually-hidden-rJ25V2wc.js +0 -1
  850. package/dist/showcase/assets/weight-input-DpQ3yEQ3.js +0 -1
  851. package/dist/showcase/assets/wrench-Df-eIMsM.js +0 -1
  852. package/dist/showcase/assets/x-DVQ0XpIT.js +0 -1
  853. package/dist/showcase/assets/zap-_0WPgXWT.js +0 -1
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../lib/strings.cjs"),t=require("../../../lib/utils.cjs"),n=require("../../../_shared/button-CB8e7fui.cjs"),r=require("../../../_shared/typography-sXFd02zl.cjs"),i=require("../../../_shared/badge-B0Ashqkn.cjs"),a=require("../../../_shared/cards-DvE5gRFf.cjs"),o=require("../../../_shared/input-DGvh-izk.cjs"),s=require("../../../_shared/checkbox-ECGg8wjW.cjs"),c=require("../../../_shared/forms-B7LYVbAy.cjs"),l=require("../../../_shared/textarea-rfnSeHHC.cjs"),u=require("../../../_shared/display-DV7n0KA1.cjs"),d=require("../../../_shared/item-BG2iK1sy.cjs"),f=require("../../../_shared/table-DQA2m2F0.cjs"),p=require("../../../_shared/data-display-B9Lciun3.cjs");let m=require("react"),h=require("react/jsx-runtime"),g=require("lucide-react");var _={title:`Readiness`,description:`Publishing checks and operational setup.`,scoreLabel:`Overall readiness`,progressLabel:`Readiness progress`,createLabel:`Add check`,editLabel:`Edit check`,deleteLabel:`Delete check`,actionsLabel:`Check actions`,emptyTitle:`No readiness checks`,emptyDescription:`Pass readiness items from your product workflow to show progress.`,actionLabel:`Open`},v={title:`Structure`,description:`Media, taxonomy, options, and content coverage.`,createLabel:`Add metric`,viewLabel:`Open`,editLabel:`Edit metric`,deleteLabel:`Delete metric`,actionsLabel:`Metric actions`,emptyTitle:`No structure metrics`,emptyDescription:`Pass structure metrics to summarize the product setup.`},y={title:`Operations`,description:`Availability, channels, service rules, and fulfilment signals.`,createLabel:`Add signal`,editLabel:`Edit signal`,deleteLabel:`Delete signal`,actionsLabel:`Signal actions`,emptyTitle:`No operational signals`,emptyDescription:`Pass operational rows to show channel and availability health.`,actionLabel:`Open`},b={title:`Product details`,description:`Core identity and catalogue fields.`,editLabel:`Edit details`,emptyTitle:`No details`,emptyDescription:`Pass metadata rows to render product details.`},x={title:`Contract`,description:`Commercial terms, pricing rules, and customer-facing conditions.`,termsTitle:`Terms`,rulesTitle:`Rules`,actionLabel:`Manage contract`,editLabel:`Edit contract`,createRuleLabel:`Add rule`,viewRuleLabel:`Open rule`,editRuleLabel:`Edit rule`,deleteRuleLabel:`Delete rule`,ruleActionsLabel:`Rule actions`,emptyTitle:`No contract summary`,emptyDescription:`Pass metrics, terms, or rules to summarize the product contract.`},S={title:`Options`,description:`Variant-driving choices and add-ons customers can select.`,manageLabel:`Manage options`,createLabel:`Add option`,viewLabel:`Open option`,editLabel:`Edit option`,deleteLabel:`Delete option`,actionsLabel:`Option actions`,emptyTitle:`No options`,emptyDescription:`Pass option groups to summarize configurable product choices.`},C={viewLabel:`Open option`,editLabel:`Edit option`,deleteLabel:`Delete option`,actionsLabel:`Option actions`},w={title:`Variant options`,description:`Define option groups and values before generating sellable variants.`,createLabel:`Add attribute`,editLabel:`Configure`,deleteLabel:`Delete option`,addValueLabel:`Add value`,addAnotherValueLabel:`Add another value`,addAnotherOptionLabel:`Add another option`,deleteValueLabel:`Delete value`,doneLabel:`Done`,saveLabel:`Save`,cancelLabel:`Cancel`,expandOptionLabel:`Expand option`,collapseOptionLabel:`Collapse option`,actionsLabel:`Option actions`,optionNameLabel:`Option name`,optionValuesLabel:`Option values`,valuesLabel:`Values`,useForVariantsLabel:`Use for variants`,usedForVariantsLabel:`Used for variants`,notUsedForVariantsLabel:`Not used for variants`,emptyTitle:`No option groups`,emptyDescription:`Add options such as size, color, or packaging to create variant combinations.`,noValuesLabel:`No values`},T={title:`Quote preview`,description:`How the product appears in a compact customer quote.`,subtotalLabel:`Subtotal`,taxLabel:`Tax`,discountLabel:`Discount`,totalLabel:`Total`,actionLabel:`Open quote`,createLineLabel:`Add line`,viewLineLabel:`Open line`,editLineLabel:`Edit line`,deleteLineLabel:`Delete line`,lineActionsLabel:`Line actions`,emptyTitle:`No quote lines`,emptyDescription:`Pass quote lines to preview pricing.`},E={title:`Policies`,description:`Cancellation, booking, service, and customer-facing rules.`,createLabel:`Add policy`,viewLabel:`View`,editLabel:`Edit policy`,deleteLabel:`Delete policy`,actionsLabel:`Policy actions`,emptyTitle:`No policies`,emptyDescription:`Pass policies to summarize customer-facing rules.`},D={title:`Variants`,description:`Sellable combinations with price, availability, and SKU.`,createLabel:`Add variant`,viewLabel:`Open variant`,editLabel:`Edit`,duplicateLabel:`Duplicate`,deleteLabel:`Delete`,emptyTitle:`No variants`,emptyDescription:`Create or pass variants to show sellable rows.`,headers:{variant:`Variant`,sku:`SKU`,price:`Price`,inventory:`Available`,channels:`Channels`,updated:`Updated`,actions:`Actions`}},O={title:`Variants`,description:`Review generated combinations, select rows, and apply bulk operations.`,createLabel:`Add variant`,generateLabel:`Generate variants`,bulkEditLabel:`Bulk edit selected`,viewLabel:`Open variant`,editLabel:`Edit`,duplicateLabel:`Duplicate`,deleteLabel:`Delete`,bulkApplyLabel:`Apply changes`,bulkDeleteLabel:`Delete selected`,selectedLabel:(e,t)=>`${e} of ${t} selected`,groupCountLabel:e=>`${e} ${e===1?`variant`:`variants`}`,clearSelectionLabel:`Clear`,selectAllLabel:`Select all variants`,selectRowLabel:e=>`Select row ${e+1}`,emptyTitle:`No variants`,emptyDescription:`Generate variants from option groups or pass sellable rows from the app.`,headers:{variant:`Variant`,price:`Price`,inventory:`Available`,sku:`SKU`,status:`Status`,updated:`Updated`,actions:`Actions`}},k={title:`Variants`,description:`Configure option groups first, then manage the generated sellable variants.`,optionsTitle:`Variant options`,variantsTitle:`Variants`,groupByLabel:`Group by`,searchLabel:`Search variants`,filterLabel:`Filter variants`,generateLabel:`Generate variants`,createVariantLabel:`Add variant`,actionsLabel:`Variant manager actions`},A={viewLabel:`Open variant`,editLabel:`Edit`,duplicateLabel:`Duplicate`,deleteLabel:`Delete`,actionsLabel:`Variant actions`},ee={title:`Variant`,description:`Sellable variant details, options, pricing, and fulfilment data.`,backLabel:`Back`,factsTitle:`Variant facts`,selectedOptionsTitle:`Selected options`,relatedOptionsTitle:`Option groups`,viewOptionLabel:`Open option`,emptyTitle:`No variant selected`,emptyDescription:`Pass a variant to render a standalone variant detail surface.`,metadata:{price:`Price`,inventory:`Available`,sku:`SKU`,channels:`Channels`,updated:`Updated`}},j={title:`Edit variant`,description:`Controlled form for variant identity, pricing, inventory, and option values.`,identityTitle:`Identity`,commercialTitle:`Commercial setup`,optionsTitle:`Options`,saveLabel:`Save variant`,savingLabel:`Saving`,cancelLabel:`Cancel`,deleteLabel:`Delete variant`,statusPlaceholder:`Select status`,optionPlaceholder:`Select value`,fields:{name:`Name`,description:`Description`,sku:`SKU`,price:`Price`,inventory:`Inventory`,status:`Status`,channels:`Channels`},placeholders:{name:`750 ml bottle`,description:`Standard retail pack`,sku:`BAL-750-CL`,price:`US$ 24.00`,inventory:`82`,status:`Active`,channels:`Online store, POS`}},M={mainLabel:`Product overview`,railLabel:`Product supporting information`};function N({title:e,description:n,action:r,className:i}){return(0,h.jsx)(p.m,{padding:`small`,border:!0,title:e,description:n,actions:r,className:t.cn(`product-empty-state--component bg-muted/20`,i)})}var P={neutral:`secondary`,primary:`primary`,success:`success`,warning:`warning`,error:`error`,info:`info`},F={neutral:`border-border bg-card text-muted-foreground`,primary:`border-primary/20 bg-primary/5 text-primary`,success:`border-success/20 bg-success/5 text-success`,warning:`border-warning/30 bg-warning/8 text-warning`,error:`border-destructive/25 bg-destructive/8 text-destructive`,info:`border-info/20 bg-info/5 text-info`};function te(e){return Number.isFinite(e)?Math.min(100,Math.max(0,Math.round(e))):0}function ne({tone:e=`neutral`}){return(0,h.jsx)(`span`,{"aria-hidden":`true`,className:t.cn(`product-tone-dot--component size-2 rounded-full`,{"bg-muted-foreground":e===`neutral`,"bg-primary":e===`primary`,"bg-success":e===`success`,"bg-warning":e===`warning`,"bg-destructive":e===`error`,"bg-info":e===`info`})})}function re({metric:e}){let n=e.tone??`neutral`;return(0,h.jsxs)(`div`,{className:t.cn(`product-metric-tile--component rounded-md border px-3 py-2.5`,F[n]),children:[(0,h.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,h.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[(0,h.jsx)(r.s,{size:`xs`,type:n===`neutral`?`secondary`:`main`,className:`truncate`,children:e.label}),(0,h.jsx)(r.s,{weight:`semibold`,className:`tabular-nums`,children:e.value})]}),`icon`in e&&!!e.icon&&(0,h.jsx)(`div`,{className:`shrink-0 opacity-80`,children:e.icon})]}),!!e.description&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mt-1.5 leading-snug`,children:e.description})]})}function I({item:e,actions:n,menuLabel:r,className:i}){return n.length===0?null:(0,h.jsx)(`div`,{className:t.cn(`product-row-actions--component flex justify-end`,i),children:(0,h.jsx)(f.M,{row:e,actions:n,menuLabel:r,displayMode:`menu`})})}function ie({metric:e,actions:n}){let i=e.tone??`neutral`;return(0,h.jsxs)(d.t,{className:`product-structure-metric-row--component product-structure-card--item`,children:[(0,h.jsx)(d.c,{variant:`icon`,className:t.cn(`rounded-full border`,F[i]),children:e.icon??(0,h.jsx)(ne,{tone:i})}),(0,h.jsxs)(d.r,{className:`min-w-0 sm:min-w-48`,children:[(0,h.jsx)(d.u,{children:e.label}),!!e.description&&(0,h.jsx)(d.i,{clamp:2,children:e.description})]}),(0,h.jsxs)(d.n,{className:`ml-auto shrink-0 gap-2`,children:[(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,className:`tabular-nums`,children:e.value}),n]})]})}function ae({item:e,actionFallback:r,onSelect:a,actions:o}){let s=e.tone??(e.completed?`success`:`neutral`),c=e.onSelect??a;return(0,h.jsxs)(d.t,{className:`product-readiness-row--component product-readiness-card--item`,children:[(0,h.jsx)(d.c,{variant:`icon`,className:t.cn(`rounded-full border`,F[s]),children:(0,h.jsx)(ne,{tone:s})}),(0,h.jsxs)(d.r,{className:`min-w-0 sm:min-w-48`,children:[(0,h.jsx)(d.u,{children:e.label}),!!e.description&&(0,h.jsx)(d.i,{clamp:2,children:e.description})]}),!!(e.value||c||o)&&(0,h.jsxs)(d.n,{className:`ml-auto shrink-0 flex-wrap justify-end gap-2`,children:[!!e.value&&(0,h.jsx)(i.t,{variant:P[s],children:e.value}),!!c&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:c,icon:g.ArrowRight,iconPosition:`right`,children:e.actionLabel??r}),o]})]})}function oe({item:e,actionFallback:i,onSelect:a,actions:o}){let s=e.tone??`neutral`,c=e.onSelect??a;return(0,h.jsxs)(d.t,{className:`product-operation-row--component product-operations-card--item`,children:[(0,h.jsx)(d.c,{variant:`icon`,className:t.cn(`rounded-full border`,F[s]),children:(0,h.jsx)(ne,{tone:s})}),(0,h.jsxs)(d.r,{className:`min-w-0 sm:min-w-48`,children:[(0,h.jsx)(d.u,{children:e.label}),!!e.description&&(0,h.jsx)(d.i,{clamp:2,children:e.description})]}),!!(e.value||c||o)&&(0,h.jsxs)(d.n,{className:`ml-auto shrink-0 flex-wrap justify-end gap-2`,children:[!!e.value&&(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,children:e.value}),!!c&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:c,icon:g.ArrowRight,iconPosition:`right`,children:e.actionLabel??i}),o]})]})}function L({item:e,actionLabel:a,onSelect:o,actions:s}){let c=e.tone??`neutral`,l=`values`in e?e.values:void 0;return(0,h.jsxs)(d.t,{className:`product-summary-row--component`,children:[(0,h.jsx)(d.c,{variant:`icon`,className:t.cn(`rounded-full border`,F[c]),children:(0,h.jsx)(ne,{tone:c})}),(0,h.jsxs)(d.r,{className:`min-w-0 sm:min-w-48`,children:[(0,h.jsx)(d.u,{children:e.label}),!!e.description&&(0,h.jsx)(d.i,{clamp:2,children:e.description}),!!l?.length&&(0,h.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1`,children:l.map((e,t)=>(0,h.jsx)(i.t,{variant:`secondary`,children:e},t))})]}),!!(e.value||e.badge||o||s)&&(0,h.jsxs)(d.n,{className:`ml-auto shrink-0 flex-wrap justify-end gap-2`,children:[!!e.value&&(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,children:e.value}),!!e.badge&&e.badge,!!o&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:o,icon:g.ArrowRight,iconPosition:`right`,children:a}),s]})]})}function R({metrics:i=[],terms:o=[],rules:s=[],onOpenContract:c,onEditContract:l,onCreateRule:u,onSelectRule:f,onEditRule:m,onDeleteRule:_,renderRuleActions:v,actions:y,footerSlot:b,empty:S,className:C,strings:w}){let T=e.useStrings(x,w),E=i.length>0||o.length>0||s.length>0,D=c||l||u?(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[!!u&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:u,icon:g.Plus,children:T.createRuleLabel}),!!l&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:l,icon:g.Pencil,children:T.editLabel}),!!c&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:c,icon:g.ArrowRight,iconPosition:`right`,children:T.actionLabel})]}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.FileText,{className:`size-4`}),title:T.title,description:T.description,actions:y,headerAction:D,footerSlot:b,contentClassName:`mt-1`,className:t.cn(`product-contract-overview--component w-full`,C),children:E?(0,h.jsxs)(`div`,{className:`space-y-4`,children:[i.length>0&&(0,h.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-3`,children:i.map(e=>(0,h.jsx)(re,{metric:e},e.id))}),o.length>0&&(0,h.jsxs)(`div`,{className:`space-y-2`,children:[(0,h.jsx)(r.s,{size:`xs`,weight:`semibold`,children:T.termsTitle}),(0,h.jsx)(p.a,{items:o,columns:2,dense:!0})]}),s.length>0&&(0,h.jsxs)(`div`,{className:`space-y-2`,children:[(0,h.jsx)(r.s,{size:`xs`,weight:`semibold`,children:T.rulesTitle}),(0,h.jsx)(d.o,{children:s.map((e,t)=>{let n=f?()=>f(e):void 0,r=m?()=>m(e):void 0,i=_?()=>_(e):void 0,a=[...n?[{id:`open`,label:T.viewRuleLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>n(),variant:`ghost`}]:[],...r?[{id:`edit`,label:T.editRuleLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:T.deleteRuleLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]];return(0,h.jsx)(L,{item:e,actions:v?v(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:T.ruleActionsLabel})},e.id)})})]})]}):S??(0,h.jsx)(N,{title:T.emptyTitle,description:T.emptyDescription,action:u?(0,h.jsx)(n.t,{type:`button`,onClick:u,icon:g.Plus,children:T.createRuleLabel}):void 0})})}R.displayName=`ProductContractOverview`;function se({title:r,description:i,metadata:o=[],media:s,onEditDetails:c,actions:l,headerEnd:u,footerSlot:d,empty:f,className:m,strings:_}){let v=e.useStrings(b,_),y=c?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:c,icon:g.Pencil,children:v.editLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.Box,{className:`size-4`}),title:r??v.title,description:i===!1?void 0:i??v.description,actions:l,headerAction:y,headerEnd:u,footerSlot:d,contentClassName:`mt-1`,className:t.cn(`product-details-card--component w-full`,m),children:o.length===0?f??(0,h.jsx)(N,{title:v.emptyTitle,description:v.emptyDescription}):(0,h.jsx)(`div`,{className:`@container/product-details`,children:(0,h.jsxs)(`div`,{className:t.cn(`grid gap-4`,s&&`@xl/product-details:grid-cols-[12rem_minmax(0,1fr)]`),children:[!!s&&(0,h.jsx)(`div`,{className:`product-details-card--media overflow-hidden rounded-md border border-border bg-muted/30`,children:s}),(0,h.jsx)(p.a,{items:o,columns:s?1:2,dense:!0,className:`min-w-0`,valueClassName:`break-words`})]})})})}se.displayName=`ProductDetailsCard`;function ce({option:n,index:r=0,onSelectOption:i,onEditOption:a,onDeleteOption:o,renderOptionActions:s,menuLabel:c,className:l,strings:u}){let d=e.useStrings(C,u),f=i?()=>i(n):void 0,p=a?()=>a(n):void 0,m=o?()=>o(n):void 0;return f||p||m||s?s?(0,h.jsx)(`div`,{className:t.cn(`product-option-action-menu--component flex justify-end`,l),children:s(n,{index:r,onSelect:f,onEdit:p,onDelete:m})}):(0,h.jsx)(I,{item:n,menuLabel:c??d.actionsLabel,className:t.cn(`product-option-action-menu--component`,l),actions:[...f?[{id:`open`,label:d.viewLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>f(),variant:`ghost`}]:[],...p?[{id:`edit`,label:d.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>p(),variant:`ghost`}]:[],...m?[{id:`delete`,label:d.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>m(),variant:`destructive`}]:[]]}):null}ce.displayName=`ProductOptionActionMenu`;function le({items:r=[],onCreateOperation:i,onSelectOperation:o,onEditOperation:s,onDeleteOperation:c,renderOperationActions:l,actions:u,footerSlot:f,renderItem:p,empty:m,className:_,strings:v}){let b=e.useStrings(y,v),x=i?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:i,icon:g.Plus,children:b.createLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.PackageCheck,{className:`size-4`}),title:b.title,description:b.description,actions:u,headerAction:x,footerSlot:f,contentClassName:`mt-1`,className:t.cn(`product-operations-card--component w-full`,_),children:r.length===0?m??(0,h.jsx)(N,{title:b.emptyTitle,description:b.emptyDescription,action:i?(0,h.jsx)(n.t,{type:`button`,onClick:i,icon:g.Plus,children:b.createLabel}):void 0}):(0,h.jsx)(d.o,{children:r.map((e,t)=>{let n=o?()=>o(e):void 0,r=s?()=>s(e):void 0,i=c?()=>c(e):void 0,a=[...r?[{id:`edit`,label:b.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:b.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]],u=l?l(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:b.actionsLabel});return p?(0,h.jsx)(`div`,{children:p(e,t)},e.id):(0,h.jsx)(oe,{item:e,actionFallback:b.actionLabel,onSelect:n,actions:u},e.id)})})})}le.displayName=`ProductOperationsCard`;function z(e){return typeof e==`string`||typeof e==`number`?String(e):``}function B(e){return e.label}function V(e,t){let n=z(t.name);return n?`${e}: ${n}`:e}function ue(e){return{name:z(e.name),values:(e.values??[]).map(e=>({...e,label:z(e.label)}))}}function H({optionGroups:i=[],surface:s=`card`,collapsedOptionIds:l,defaultCollapsedOptionIds:u=[],onCollapsedOptionIdsChange:d,editingOptionId:f,defaultEditingOptionId:p,onEditingOptionIdChange:_,onCreateOption:v,onEditOption:y,onDeleteOption:b,onAddValue:x,onDeleteValue:S,onOptionNameChange:C,onValueLabelChange:T,onDoneEditingOption:E,onSaveEditingOption:D,onCancelEditingOption:O,onToggleUsedForVariants:k,renderOptionActions:A,renderValue:ee,showHeader:j,showCollapseControls:M=!0,showInlineActions:P=!0,showVariantToggle:F=!0,actions:te,headerEnd:ne,footerSlot:re,empty:ie,className:ae,strings:oe}){let L=e.useStrings(w,oe),R=l!==void 0,[se,ce]=(0,m.useState)(u),le=R?l:se,H=(0,m.useMemo)(()=>new Set(le),[le]),U=f!==void 0||p!==void 0||!!_||!!C||!!T||!!E||!!D||!!O,W=f!==void 0,[G,de]=(0,m.useState)(p??null),[fe,K]=(0,m.useState)({}),pe=U?W?f:G:null,me=i.length>0,q=s===`embedded`&&j!==!1,he=me&&!!v,ge=(0,m.useCallback)(e=>{R||ce(e),d?.(e,i.filter(t=>e.includes(t.id)))},[R,d,i]),J=(0,m.useCallback)(e=>{ge(H.has(e.id)?le.filter(t=>t!==e.id):[...le,e.id])},[H,le,ge]),Y=(0,m.useCallback)((e,t)=>{U&&(W||de(e),_?.(e,t))},[W,_,U]),X=(0,m.useCallback)(e=>{K(t=>({...t,[e.id]:ue(e)})),Y(e.id,e),y?.(e)},[y,Y]),Z=(0,m.useCallback)(e=>fe[e.id]??ue(e),[fe]),_e=(0,m.useCallback)((e,t)=>{K(n=>({...n,[e.id]:t(n[e.id]??ue(e))}))},[]),ve=(0,m.useCallback)(e=>{let t=Z(e);K(t=>{let{[e.id]:n,...r}=t;return r}),Y(null,e),O?.(e,t)},[Z,O,Y]),ye=(0,m.useCallback)(e=>{let t=Z(e),n=e.values??[],r=new Set(n.map(e=>e.id)),i=new Set(t.values.map(e=>e.id));D?.(e,t),C?.(e,t.name),n.forEach(n=>{let r=t.values.find(e=>e.id===n.id);r&&z(n.label)!==z(r.label)&&T?.(e,n,z(r.label))}),t.values.forEach(t=>{r.has(t.id)||x?.(e)}),n.forEach(t=>{i.has(t.id)||S?.(e,t)}),K(t=>{let{[e.id]:n,...r}=t;return r}),Y(null,e),E?.(e)},[Z,x,S,E,C,D,T,Y]),Q=(0,m.useCallback)(e=>{pe===e.id&&(K(t=>{let{[e.id]:n,...r}=t;return r}),Y(null,e)),b?.(e)},[b,pe,Y]),be=v?(0,h.jsx)(n.t,{type:`button`,variant:`dark`,onClick:v,icon:g.Plus,children:L.createLabel}):void 0,$=(0,h.jsx)(`div`,{className:`product-options-matrix--body min-w-0`,children:(0,h.jsxs)(`div`,{className:`product-options-matrix--panel overflow-hidden rounded-radius-lg border border-border bg-background`,children:[q?(0,h.jsxs)(`div`,{className:`product-options-matrix--panel-header flex min-w-0 flex-wrap items-center justify-between gap-space-md p-surface`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:L.title}),be]}):null,me?(0,h.jsxs)(`div`,{className:t.cn(`product-options-matrix--list`,q&&`border-t border-border/70`),children:[i.map((e,i)=>{let a=e.values??[],s=H.has(e.id),l=pe===e.id,u=!!y||U,d=!!b,f=!!x,p=Z(e),m=A?.(e,{index:i,onEdit:u?()=>X(e):void 0,onDelete:b?()=>Q(e):void 0,onAddValue:x?()=>x(e):void 0,onToggleCollapsed:()=>J(e),collapsed:s}),_=[...f?[{id:`add-value`,label:L.addValueLabel,icon:(0,h.jsx)(g.Plus,{className:`size-3.5`}),onClick:()=>x?.(e),variant:`ghost`}]:[],...d?[{id:`delete`,label:L.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>Q(e),variant:`destructive`}]:[]],v=P?(0,h.jsxs)(h.Fragment,{children:[!!u&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>X(e),children:L.editLabel}),(0,h.jsx)(I,{item:e,actions:_,menuLabel:L.actionsLabel})]}):null,C=m===void 0?v:m;if(l)return(0,h.jsx)(`div`,{className:`product-options-matrix--item product-options-matrix--item-editing border-b border-border/70 p-surface last:border-b-0`,children:(0,h.jsxs)(`div`,{className:`grid min-w-0 grid-cols-[auto_minmax(0,1fr)] gap-x-space-md gap-y-space-lg`,children:[(0,h.jsx)(`span`,{className:`product-options-matrix--drag-handle mt-[2.625rem] flex size-icon-lg items-center justify-center text-muted-foreground`,"aria-hidden":`true`,children:(0,h.jsx)(g.GripVertical,{className:`size-icon-sm`})}),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor grid min-w-0 gap-space-lg`,children:[(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-field grid min-w-0 gap-space-sm`,children:[(0,h.jsx)(r.s,{weight:`medium`,children:L.optionNameLabel}),(0,h.jsx)(o.t,{value:p.name,onChange:t=>{let n=t.currentTarget.value;_e(e,e=>({...e,name:n}))},"aria-label":L.optionNameLabel,className:`bg-background`})]}),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-field grid min-w-0 gap-space-sm`,children:[(0,h.jsx)(r.s,{weight:`medium`,children:L.optionValuesLabel}),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-values grid min-w-0 gap-space-xs`,children:[p.values.length===0&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,children:L.noValuesLabel}),p.values.map(t=>(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-value grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-space-sm`,children:[(0,h.jsx)(`span`,{className:`flex size-icon-lg items-center justify-center text-muted-foreground`,"aria-hidden":`true`,children:(0,h.jsx)(g.GripVertical,{className:`size-icon-sm`})}),(0,h.jsx)(o.t,{value:z(t.label),onChange:n=>{let r=n.currentTarget.value;_e(e,e=>({...e,values:e.values.map(e=>e.id===t.id?{...e,label:r}:e)}))},"aria-label":`${L.optionValuesLabel}: ${z(t.label)}`,className:`bg-background`}),(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>_e(e,e=>({...e,values:e.values.filter(e=>e.id!==t.id)})),"aria-label":L.deleteValueLabel,className:`text-muted-foreground hover:text-destructive`,children:[(0,h.jsx)(g.Trash2,{className:`size-icon-sm`,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:L.deleteValueLabel})]})]},t.id)),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-add-value grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-space-sm`,children:[(0,h.jsx)(`span`,{className:`size-icon-lg`,"aria-hidden":`true`}),(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`outline`,onClick:()=>_e(e,t=>{let n=t.values.length+1;return{...t,values:[...t.values,{id:`${e.id}-draft-value-${n}`,label:``}]}}),fullWidth:!0,className:`justify-start border-input bg-background text-muted-foreground hover:bg-muted/60`,children:L.addAnotherValueLabel}),(0,h.jsx)(`span`,{className:`size-control-sm`,"aria-hidden":`true`})]})]})]}),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-actions flex min-w-0 items-center justify-between gap-space-md`,children:[(0,h.jsx)(`div`,{children:!!b&&(0,h.jsx)(n.t,{type:`button`,variant:`error`,buttonStyle:`outline`,onClick:()=>Q(e),children:L.deleteLabel})}),(0,h.jsxs)(`div`,{className:`flex items-center justify-end gap-space-sm`,children:[(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>ve(e),children:L.cancelLabel}),(0,h.jsx)(n.t,{type:`button`,variant:`dark`,onClick:()=>ye(e),children:L.saveLabel??L.doneLabel})]})]})]})]})},e.id);let w=(0,h.jsxs)(`span`,{className:`grid min-w-0 gap-space-sm`,children:[(0,h.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-space-sm`,children:[(0,h.jsx)(r.s,{tag:`span`,weight:`semibold`,className:`min-w-0 whitespace-normal break-words`,children:e.name}),e.badge]}),!!e.description&&(0,h.jsx)(r.s,{tag:`span`,size:`xs`,type:`secondary`,className:`max-w-prose`,children:e.description}),!s&&(0,h.jsx)(`span`,{className:`product-options-matrix--values grid gap-space-sm`,children:a.length===0?(0,h.jsx)(r.s,{tag:`span`,size:`xs`,type:`secondary`,children:L.noValuesLabel}):(0,h.jsx)(`span`,{className:`flex flex-wrap gap-space-xs`,children:a.map((r,a)=>{let o=S?()=>S(e,r):void 0,s=ee?.(r,{option:e,optionIndex:i,valueIndex:a,onDelete:o});return s?(0,h.jsx)(`span`,{children:s},r.id):(0,h.jsxs)(`span`,{className:t.cn(`product-options-matrix--value inline-flex max-w-full items-center gap-space-xs rounded-radius-sm bg-muted px-space-sm py-space-xs text-pxs font-medium leading-none text-muted-foreground`,r.disabled&&`opacity-60`),children:[(0,h.jsx)(`span`,{className:`min-w-0 whitespace-normal break-words`,children:B(r)}),r.badge,!!o&&P&&(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:o,"aria-label":L.deleteValueLabel,className:`size-icon-sm shrink-0 rounded-radius-sm text-muted-foreground/70 hover:text-destructive`,children:[(0,h.jsx)(g.X,{className:`size-3`,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:L.deleteValueLabel})]})]},r.id)})})})]});return(0,h.jsx)(`div`,{className:`product-options-matrix--item border-b border-border/70 last:border-b-0`,children:(0,h.jsxs)(`div`,{className:`grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-space-md gap-y-space-md p-surface lg:grid-cols-[auto_minmax(0,1fr)_auto]`,children:[M?(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>J(e),"aria-expanded":!s,"aria-label":s?L.expandOptionLabel:L.collapseOptionLabel,className:`product-options-matrix--collapse-trigger mt-space-2xs shrink-0 text-muted-foreground`,children:[(0,h.jsx)(g.ChevronDown,{className:t.cn(`size-icon-sm transition-transform`,s&&`-rotate-90`),"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:s?L.expandOptionLabel:L.collapseOptionLabel})]}):(0,h.jsx)(`span`,{className:`product-options-matrix--drag-handle flex size-icon-lg items-center justify-center text-muted-foreground`,"aria-hidden":`true`,children:(0,h.jsx)(g.GripVertical,{className:`size-icon-sm`})}),(0,h.jsx)(`div`,{className:`product-options-matrix--item-main min-w-0`,children:u&&!P?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>X(e),"aria-label":V(L.editLabel,e),className:`h-auto min-h-0 w-full justify-start rounded-radius-sm p-0 text-left hover:bg-transparent focus-visible:ring-offset-2`,children:w}):w}),(F||!!C)&&(0,h.jsxs)(`div`,{className:`product-options-matrix--item-actions col-start-2 flex min-w-fit flex-wrap items-center justify-start gap-space-md lg:col-start-auto lg:justify-end`,children:[!!k&&F&&(0,h.jsxs)(`div`,{className:`inline-flex items-center gap-space-sm text-pxs font-medium text-muted-foreground`,children:[(0,h.jsx)(`span`,{id:`product-option-${e.id}-variant-toggle-label`,children:L.useForVariantsLabel}),(0,h.jsx)(c.J,{checked:!!e.usedForVariants,onCheckedChange:t=>k(e,t),"aria-labelledby":`product-option-${e.id}-variant-toggle-label`})]}),C]})]})},e.id)}),!!he&&(0,h.jsx)(`div`,{className:`product-options-matrix--create-row border-t border-border/70`,children:(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:v,icon:g.PlusCircle,className:`h-auto min-h-control-sm w-full justify-start rounded-none px-surface py-space-sm text-foreground hover:bg-muted/60`,children:L.addAnotherOptionLabel})})]}):(0,h.jsx)(`div`,{className:t.cn(q&&`border-t border-border/70`),children:ie??(0,h.jsx)(N,{title:L.emptyTitle,description:L.emptyDescription,action:v&&!q?(0,h.jsx)(n.t,{type:`button`,onClick:v,icon:g.Plus,children:L.createLabel}):void 0})})]})});return s===`embedded`?(0,h.jsx)(`section`,{"aria-label":L.title,className:t.cn(`product-options-matrix--component min-w-0`,ae),children:$}):(0,h.jsx)(a.t,{title:L.title,description:L.description,actions:te,headerAction:be,headerEnd:ne,footerSlot:re,contentClassName:`mt-1`,className:t.cn(`product-options-matrix--component w-full`,ae),children:$})}H.displayName=`ProductOptionsMatrix`;function U({options:r=[],onManageOptions:i,onCreateOption:o,onSelectOption:s,onEditOption:c,onDeleteOption:l,renderOptionActions:u,actions:f,footerSlot:p,renderOption:m,empty:_,className:v,strings:y}){let b=e.useStrings(S,y),x=!!(s||c||l||u),C=[...f??[],...o&&i?[{id:`manage-options`,label:b.manageLabel,icon:(0,h.jsx)(g.SlidersHorizontal,{className:`size-3.5`}),onClick:i}]:[]],w=o||i?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:o??i,icon:o?g.Plus:g.SlidersHorizontal,children:o?b.createLabel:b.manageLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.SlidersHorizontal,{className:`size-4`}),title:b.title,description:b.description,actions:C.length>0?C:void 0,headerAction:w,footerSlot:p,contentClassName:`mt-1`,className:t.cn(`product-options-summary--component w-full`,v),children:r.length===0?_??(0,h.jsx)(N,{title:b.emptyTitle,description:b.emptyDescription,action:o?(0,h.jsx)(n.t,{type:`button`,onClick:o,icon:g.Plus,children:b.createLabel}):void 0}):(0,h.jsx)(d.o,{children:r.map((e,t)=>(()=>{let n=x?(0,h.jsx)(ce,{option:e,index:t,onSelectOption:s,onEditOption:c,onDeleteOption:l,renderOptionActions:u,menuLabel:b.actionsLabel,strings:{viewLabel:b.viewLabel,editLabel:b.editLabel,deleteLabel:b.deleteLabel,actionsLabel:b.actionsLabel}}):void 0;return m?(0,h.jsx)(`div`,{children:m(e,t)},e.id):(0,h.jsx)(L,{item:e,actions:n},e.id)})())})})}U.displayName=`ProductOptionsSummary`;function W({policies:r=[],onCreatePolicy:i,onSelectPolicy:o,onEditPolicy:s,onDeletePolicy:c,renderPolicyActions:l,actions:u,footerSlot:f,renderPolicy:p,empty:m,className:_,strings:v}){let y=e.useStrings(E,v),b=i?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:i,icon:g.Plus,children:y.createLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ShieldCheck,{className:`size-4`}),title:y.title,description:y.description,actions:u,headerAction:b,footerSlot:f,contentClassName:`mt-1`,className:t.cn(`product-policies-card--component w-full`,_),children:r.length===0?m??(0,h.jsx)(N,{title:y.emptyTitle,description:y.emptyDescription,action:i?(0,h.jsx)(n.t,{type:`button`,onClick:i,icon:g.Plus,children:y.createLabel}):void 0}):(0,h.jsx)(d.o,{children:r.map((e,t)=>(()=>{let n=o?()=>o(e):void 0,r=s?()=>s(e):void 0,i=c?()=>c(e):void 0,a=[...r?[{id:`edit`,label:y.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:y.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]],u=l?l(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:y.actionsLabel});return p?(0,h.jsx)(`div`,{children:p(e,t)},e.id):(0,h.jsx)(L,{item:e,actionLabel:y.viewLabel,onSelect:n,actions:u},e.id)})())})})}W.displayName=`ProductPoliciesCard`;var G=`-`;function de({lines:i=[],subtotal:o,tax:s,discount:c,total:l,onOpenQuote:u,onCreateLine:d,onSelectLine:f,onEditLine:m,onDeleteLine:_,renderLineActions:v,actions:y,footerSlot:b,empty:x,className:S,strings:C}){let w=e.useStrings(T,C),E=d||u?(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[!!d&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:d,icon:g.Plus,children:w.createLineLabel}),!!u&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:u,icon:g.ArrowRight,iconPosition:`right`,children:w.actionLabel})]}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ReceiptText,{className:`size-4`}),title:w.title,description:w.description,actions:y,headerAction:E,footerSlot:b,contentClassName:`mt-1`,className:t.cn(`product-quote-preview-card--component w-full`,S),children:i.length===0?x??(0,h.jsx)(N,{title:w.emptyTitle,description:w.emptyDescription,action:d?(0,h.jsx)(n.t,{type:`button`,onClick:d,icon:g.Plus,children:w.createLineLabel}):void 0}):(0,h.jsxs)(`div`,{className:`space-y-3`,children:[(0,h.jsx)(`div`,{className:`space-y-2`,children:i.map((e,t)=>{let n=f?()=>f(e):void 0,i=m?()=>m(e):void 0,a=_?()=>_(e):void 0,o=[...n?[{id:`open`,label:w.viewLineLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>n(),variant:`ghost`}]:[],...i?[{id:`edit`,label:w.editLineLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>i(),variant:`ghost`}]:[],...a?[{id:`delete`,label:w.deleteLineLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>a(),variant:`destructive`}]:[]],s=v?v(e,{index:t,onSelect:n,onEdit:i,onDelete:a}):(0,h.jsx)(I,{item:e,actions:o,menuLabel:w.lineActionsLabel});return(0,h.jsxs)(`div`,{className:`flex items-start justify-between gap-3 rounded-md border border-border bg-muted/20 px-3 py-2`,children:[(0,h.jsxs)(`div`,{className:`min-w-0`,children:[(0,h.jsx)(r.s,{weight:`semibold`,className:`truncate`,children:e.label}),!!e.description&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mt-0.5`,children:e.description}),!!e.quantity&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mt-1`,children:e.quantity})]}),(0,h.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,h.jsx)(r.s,{weight:`semibold`,className:`tabular-nums`,children:e.amount}),s]})]},e.id)})}),(0,h.jsxs)(`div`,{className:`space-y-1.5 rounded-md bg-muted/30 px-3 py-2.5`,children:[o!==void 0&&(0,h.jsx)(p.i,{label:w.subtotalLabel,value:o,mono:!0}),s!==void 0&&(0,h.jsx)(p.i,{label:w.taxLabel,value:s,mono:!0}),c!==void 0&&(0,h.jsx)(p.i,{label:w.discountLabel,value:c,mono:!0,valueClassName:`text-success`}),(0,h.jsx)(p.i,{label:w.totalLabel,value:l??`-`,mono:!0,labelClassName:`font-semibold`,valueClassName:`font-semibold`})]})]})})}de.displayName=`ProductQuotePreviewCard`;function fe({items:i=[],score:o,scoreLabel:s,summary:c,onCreateReadinessItem:l,onSelectReadinessItem:f,onEditReadinessItem:p,onDeleteReadinessItem:m,renderReadinessItemActions:v,actions:y,footerSlot:b,renderItem:x,empty:S,className:C,strings:w}){let T=e.useStrings(_,w),E=o===void 0?void 0:te(o),D=l?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:l,icon:g.Plus,children:T.createLabel}):void 0;return(0,h.jsxs)(a.t,{icon:(0,h.jsx)(g.ClipboardCheck,{className:`size-4`}),title:T.title,description:T.description,actions:y,headerAction:D,footerSlot:b,contentClassName:`mt-1`,className:t.cn(`product-readiness-card--component w-full`,C),children:[E!==void 0&&(0,h.jsxs)(`div`,{className:`mb-3 rounded-md border border-border bg-muted/20 px-3 py-2.5`,children:[(0,h.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-3`,children:[(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,children:s??T.scoreLabel}),(0,h.jsxs)(r.s,{size:`xs`,weight:`semibold`,className:`tabular-nums`,children:[E,`%`]})]}),(0,h.jsx)(u.n,{value:E,"aria-label":typeof s==`string`?s:T.progressLabel,"aria-valuetext":`${E}%`,className:`h-1.5`})]}),!!c&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mb-3 leading-relaxed`,children:c}),i.length===0?S??(0,h.jsx)(N,{title:T.emptyTitle,description:T.emptyDescription,action:l?(0,h.jsx)(n.t,{type:`button`,onClick:l,icon:g.Plus,children:T.createLabel}):void 0}):(0,h.jsx)(d.o,{children:i.map((e,t)=>{let n=f?()=>f(e):void 0,r=p?()=>p(e):void 0,i=m?()=>m(e):void 0,a=[...r?[{id:`edit`,label:T.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:T.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]],o=v?v(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:T.actionsLabel});return x?(0,h.jsx)(`div`,{children:x(e,t)},e.id):(0,h.jsx)(ae,{item:e,actionFallback:T.actionLabel,onSelect:n,actions:o},e.id)})})]})}fe.displayName=`ProductReadinessCard`;function K({metrics:r=[],onCreateMetric:i,onSelectMetric:o,onEditMetric:s,onDeleteMetric:c,renderMetricActions:l,actions:u,footerSlot:f,empty:p,className:m,strings:_}){let y=e.useStrings(v,_),b=i?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:i,icon:g.Plus,children:y.createLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.Layers3,{className:`size-4`}),title:y.title,description:y.description,actions:u,headerAction:b,footerSlot:f,contentClassName:`mt-1`,className:t.cn(`product-structure-card--component w-full`,m),children:r.length===0?p??(0,h.jsx)(N,{title:y.emptyTitle,description:y.emptyDescription,action:i?(0,h.jsx)(n.t,{type:`button`,onClick:i,icon:g.Plus,children:y.createLabel}):void 0}):(0,h.jsx)(d.o,{children:r.map((e,t)=>{let n=o?()=>o(e):void 0,r=s?()=>s(e):void 0,i=c?()=>c(e):void 0,a=[...n?[{id:`open`,label:y.viewLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>n(),variant:`ghost`}]:[],...r?[{id:`edit`,label:y.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:y.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]];return(0,h.jsx)(ie,{metric:e,actions:l?l(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:y.actionsLabel})},e.id)})})})}K.displayName=`ProductStructureCard`;function pe({variant:n,index:r=0,onSelectVariant:i,onEditVariant:a,onDuplicateVariant:o,onDeleteVariant:s,renderVariantActions:c,menuLabel:l,className:u,strings:d}){let f=e.useStrings(A,d),p=i?()=>i(n):void 0,m=a?()=>a(n):void 0,_=o?()=>o(n):void 0,v=s?()=>s(n):void 0;return p||m||_||v||c?c?(0,h.jsx)(`div`,{className:t.cn(`product-variant-action-menu--component flex justify-end`,u),children:c(n,{index:r,onSelect:p,onEdit:m,onDuplicate:_,onDelete:v})}):(0,h.jsx)(I,{item:n,menuLabel:l??f.actionsLabel,className:t.cn(`product-variant-action-menu--component`,u),actions:[...p?[{id:`open`,label:f.viewLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>p(),variant:`ghost`}]:[],...m?[{id:`edit`,label:f.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>m(),variant:`ghost`}]:[],..._?[{id:`duplicate`,label:f.duplicateLabel,icon:(0,h.jsx)(g.Copy,{className:`size-3.5`}),onClick:()=>_(),variant:`ghost`}]:[],...v?[{id:`delete`,label:f.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>v(),variant:`destructive`}]:[]]}):null}pe.displayName=`ProductVariantActionMenu`;function me({variant:e,index:n,onSelectVariant:r,onEditVariant:i,onDuplicateVariant:a,onDeleteVariant:o,renderVariantActions:s,strings:c,className:l}){return(0,h.jsx)(pe,{variant:e,index:n,onSelectVariant:r,onEditVariant:i,onDuplicateVariant:a,onDeleteVariant:o,renderVariantActions:s,menuLabel:c.headers.actions,className:t.cn(`product-variant-actions--component product-variants-table--row-actions`,l),strings:{viewLabel:c.viewLabel,editLabel:c.editLabel,duplicateLabel:c.duplicateLabel,deleteLabel:c.deleteLabel,actionsLabel:c.headers.actions}})}function q({label:e,children:n,className:i,textClassName:a,weight:o}){return(0,h.jsxs)(`div`,{className:t.cn(`product-variant-cell--component grid min-w-0 grid-cols-[6rem_minmax(0,1fr)] items-center gap-2 lg:block lg:space-y-0.5`,i),children:[(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`uppercase tracking-wide lg:sr-only`,children:e}),(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,weight:o,className:t.cn(`truncate`,a),children:n})]})}function he({variants:o=[],onCreateVariant:s,onSelectVariant:c,onEditVariant:l,onDuplicateVariant:u,onDeleteVariant:d,renderVariantActions:f,actions:p,footerSlot:m,empty:_,className:v,strings:y}){let b=e.useStrings(D,y),x=!!(c||l||u||d||f),S=`lg:grid-cols-[minmax(12rem,1.45fr)_minmax(4rem,0.6fr)_minmax(4rem,0.55fr)_minmax(4.75rem,0.7fr)_minmax(4rem,0.55fr)]`,C=s?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:s,icon:g.Plus,children:b.createLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ListChecks,{className:`size-4`}),title:b.title,description:b.description,actions:p,headerAction:C,footerSlot:m,contentClassName:`mt-1`,className:t.cn(`product-variants-table--component w-full`,v),children:o.length===0?_??(0,h.jsx)(N,{title:b.emptyTitle,description:b.emptyDescription,action:s?(0,h.jsx)(n.t,{type:`button`,onClick:s,icon:g.Plus,children:b.createLabel}):void 0}):(0,h.jsx)(`div`,{className:`product-variants-table--table rounded-md border border-border`,children:(0,h.jsxs)(`div`,{className:`lg:min-w-136`,children:[(0,h.jsxs)(`div`,{className:t.cn(`hidden gap-3 border-b border-border bg-muted/40 px-3 py-2 lg:grid`,S),children:[(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.variant}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.price}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.inventory}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.sku}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.updated})]}),(0,h.jsx)(`div`,{className:`divide-y divide-border`,children:o.map((e,n)=>(0,h.jsxs)(`div`,{className:t.cn(`grid gap-2 px-3 py-3 lg:items-center lg:gap-3 lg:py-2.5`,S),children:[(0,h.jsx)(`div`,{className:`min-w-0`,children:(0,h.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,h.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,h.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,h.jsx)(r.s,{weight:`semibold`,className:`truncate`,children:e.name}),!!e.status&&(0,h.jsx)(i.t,{variant:e.statusVariant??`secondary`,children:e.status})]}),!!e.description&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mt-0.5`,children:e.description}),!!(e.options?.length||e.channels)&&(0,h.jsxs)(`div`,{className:`mt-1.5 flex flex-wrap items-center gap-1`,children:[e.options?.map((e,t)=>(0,h.jsx)(i.t,{variant:`secondary`,children:e},t)),!!e.channels&&(0,h.jsxs)(r.s,{tag:`span`,size:`xs`,type:`secondary`,className:`pl-1`,children:[b.headers.channels,`: `,e.channels]})]})]}),!!x&&(0,h.jsx)(pe,{variant:e,index:n,onSelectVariant:c,onEditVariant:l,onDuplicateVariant:u,onDeleteVariant:d,renderVariantActions:f,menuLabel:b.headers.actions,className:`shrink-0`,strings:{viewLabel:b.viewLabel,editLabel:b.editLabel,duplicateLabel:b.duplicateLabel,deleteLabel:b.deleteLabel,actionsLabel:b.headers.actions}})]})}),(0,h.jsx)(q,{label:b.headers.price,weight:`semibold`,textClassName:`tabular-nums text-foreground`,children:e.price??`-`}),(0,h.jsx)(q,{label:b.headers.inventory,textClassName:`tabular-nums`,children:e.inventory??`-`}),(0,h.jsx)(q,{label:b.headers.sku,textClassName:`tabular-nums`,children:e.sku??`-`}),(0,h.jsx)(q,{label:b.headers.updated,children:e.updatedAt??`-`})]},e.id))})]})})})}he.displayName=`ProductVariantsTable`;function ge({details:n,contract:r,options:i,variants:a,readiness:o,structure:s,operations:c,quote:l,policies:u,slots:d,className:f,mainClassName:p,railClassName:m,strings:g}){let _=e.useStrings(M,g),v=!!(o||s||c||l||u||d?.railTop||d?.railBottom);return(0,h.jsxs)(`div`,{className:t.cn(`product-overview--component @container/product-overview space-y-4`,f),children:[d?.before,(0,h.jsxs)(`div`,{className:t.cn(`grid gap-4`,v&&`@5xl/product-overview:grid-cols-[minmax(0,1fr)_22rem]`),children:[(0,h.jsxs)(`section`,{"aria-label":_.mainLabel,className:t.cn(`product-overview--main min-w-0 space-y-4`,p),children:[d?.mainTop,!!n&&(0,h.jsx)(se,{...n}),!!r&&(0,h.jsx)(R,{...r}),!!i&&(0,h.jsx)(U,{...i}),!!a&&(0,h.jsx)(he,{...a}),d?.mainBottom]}),!!v&&(0,h.jsxs)(`aside`,{"aria-label":_.railLabel,className:t.cn(`product-overview--rail min-w-0 space-y-4`,m),children:[d?.railTop,!!o&&(0,h.jsx)(fe,{...o}),!!s&&(0,h.jsx)(K,{...s}),!!c&&(0,h.jsx)(le,{...c}),!!l&&(0,h.jsx)(de,{...l}),!!u&&(0,h.jsx)(W,{...u}),d?.railBottom]})]}),d?.after]})}ge.displayName=`ProductOverview`;var J=e=>e!=null&&e!==!1&&e!==``;function Y(e,t){return[{label:t.price,value:e.price},{label:t.inventory,value:e.inventory},{label:t.sku,value:e.sku},{label:t.channels,value:e.channels},{label:t.updated,value:e.updatedAt}].filter(e=>J(e.value))}function X({variant:o,metadata:s,optionItems:c=[],media:l,onBack:u,onSelectVariant:f,onEditVariant:m,onDuplicateVariant:_,onDeleteVariant:v,onSelectOption:y,actions:b,headerEnd:x,footerSlot:S,empty:C,renderActions:w,renderMetadata:T,renderOption:E,className:D,strings:O}){let k=e.useStrings(ee,O),A=o?s??Y(o,k.metadata):[],j=!!(o&&(f||m||_||v||w)),M=(0,h.jsxs)(`div`,{className:`product-variant-details--header-actions flex items-center gap-2`,children:[!!u&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:u,icon:g.ArrowLeft,children:k.backLabel}),!!j&&o&&(0,h.jsx)(pe,{variant:o,onSelectVariant:f,onEditVariant:m,onDuplicateVariant:_,onDeleteVariant:v,renderVariantActions:w})]}),P=o?.options??[];return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ListChecks,{className:`size-4`}),title:o?.name??k.title,titleSuffix:o?.status?(0,h.jsx)(i.t,{variant:o.statusVariant??`secondary`,children:o.status}):void 0,description:o?.description??k.description,actions:b,headerAction:u||j?M:void 0,headerEnd:x,footerSlot:S,contentClassName:`mt-1`,className:t.cn(`product-variant-details--component w-full`,D),children:o?(0,h.jsxs)(`div`,{className:`product-variant-details--body grid gap-5`,children:[!!l&&(0,h.jsx)(`div`,{className:`product-variant-details--media overflow-hidden rounded-md border border-border bg-muted/30`,children:l}),T?T(o):(0,h.jsx)(p.a,{title:k.factsTitle,items:A,columns:3,dense:!0,className:`product-variant-details--metadata`}),!!P.length&&(0,h.jsxs)(`div`,{className:`product-variant-details--selected-options space-y-2`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:k.selectedOptionsTitle}),(0,h.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:P.map((e,t)=>(0,h.jsx)(i.t,{variant:`secondary`,children:e},t))})]}),!!c.length&&(0,h.jsxs)(`div`,{className:`product-variant-details--related-options space-y-2`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:k.relatedOptionsTitle}),(0,h.jsx)(d.o,{children:c.map((e,t)=>E?(0,h.jsx)(`div`,{children:E(e,t)},e.id):(0,h.jsx)(L,{item:e,actionLabel:k.viewOptionLabel,onSelect:y?()=>y(e):void 0},e.id))})]})]}):C??(0,h.jsx)(N,{title:k.emptyTitle,description:k.emptyDescription})})}X.displayName=`ProductVariantDetails`;var Z=e=>e.map(e=>({value:e.value,label:e.label,disabled:e.disabled}));function _e({value:i,defaultValue:s,optionFields:d=[],statusOptions:f=[],onValueChange:p,onSubmit:_,onCancel:v,onDelete:y,actions:b,headerEnd:x,footerSlot:S,disabled:C=!1,isSubmitting:w=!1,className:T,strings:E}){let D=e.useStrings(j,E),O=(0,m.useId)(),k=i!==void 0,[A,ee]=(0,m.useState)(s??{}),M=(k?i:A)??{},N=C||w,P=e=>{k||ee(e),p?.(e)},F=(e,t)=>{P({...M,[e]:t})},te=(e,t)=>{P({...M,options:{...M.options??{},[e.id]:t}})},ne=e=>{e.preventDefault(),_?.(M)},re=(0,h.jsxs)(`div`,{className:`product-variant-editor--footer flex flex-col-reverse gap-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,h.jsx)(`div`,{children:!!y&&(0,h.jsx)(n.t,{type:`button`,variant:`error`,buttonStyle:`ghost`,onClick:()=>y(M),disabled:N,icon:g.Trash2,children:D.deleteLabel})}),(0,h.jsxs)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,children:[!!v&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:v,disabled:N,icon:g.X,children:D.cancelLabel}),!!_&&(0,h.jsx)(n.t,{type:`submit`,form:O,disabled:N,icon:g.Save,children:w?D.savingLabel:D.saveLabel})]})]}),I=!!(y||v||_);return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.Pencil,{className:`size-4`}),title:D.title,description:D.description,actions:b,headerEnd:x,footerSlot:S??(I?re:void 0),footerDivider:!0,contentClassName:`mt-1`,className:t.cn(`product-variant-editor--component w-full`,T),children:(0,h.jsxs)(`form`,{id:O,className:`product-variant-editor--form grid gap-5`,onSubmit:ne,children:[(0,h.jsxs)(`section`,{className:`product-variant-editor--section grid gap-3`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:D.identityTitle}),(0,h.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:[(0,h.jsx)(u.D,{label:D.fields.name,required:!0,children:(0,h.jsx)(o.t,{value:M.name??``,onChange:e=>F(`name`,e.target.value),placeholder:D.placeholders.name,disabled:N})}),(0,h.jsx)(u.D,{label:D.fields.sku,children:(0,h.jsx)(o.t,{value:M.sku??``,onChange:e=>F(`sku`,e.target.value),placeholder:D.placeholders.sku,disabled:N})}),(0,h.jsx)(u.D,{label:D.fields.description,className:`md:col-span-2`,children:(0,h.jsx)(l.t,{value:M.description??``,onChange:e=>F(`description`,e.target.value),placeholder:D.placeholders.description,disabled:N,autoResize:!0,minRows:2})})]})]}),(0,h.jsxs)(`section`,{className:`product-variant-editor--section grid gap-3`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:D.commercialTitle}),(0,h.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:[(0,h.jsx)(u.D,{label:D.fields.price,children:(0,h.jsx)(o.t,{value:M.price??``,onChange:e=>F(`price`,e.target.value),placeholder:D.placeholders.price,disabled:N})}),(0,h.jsx)(u.D,{label:D.fields.inventory,children:(0,h.jsx)(o.t,{value:M.inventory??``,onChange:e=>F(`inventory`,e.target.value),placeholder:D.placeholders.inventory,disabled:N,inputMode:`numeric`})}),(0,h.jsx)(u.D,{label:D.fields.status,children:f.length>0?(0,h.jsx)(c.Y,{options:Z(f),value:M.status??null,onChange:e=>F(`status`,e??``),placeholder:D.statusPlaceholder,disabled:N,"aria-label":D.fields.status}):(0,h.jsx)(o.t,{value:M.status??``,onChange:e=>F(`status`,e.target.value),placeholder:D.placeholders.status,disabled:N})}),(0,h.jsx)(u.D,{label:D.fields.channels,children:(0,h.jsx)(o.t,{value:M.channels??``,onChange:e=>F(`channels`,e.target.value),placeholder:D.placeholders.channels,disabled:N})})]})]}),!!d.length&&(0,h.jsxs)(`section`,{className:`product-variant-editor--section grid gap-3`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:D.optionsTitle}),(0,h.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:d.map(e=>{let t=e.value??M.options?.[e.id]??``,n=!!e.choices?.length;return(0,h.jsx)(u.D,{label:e.label,helperText:e.helperText,children:n?(0,h.jsx)(c.Y,{options:Z(e.choices??[]),value:t||null,onChange:t=>te(e,t),placeholder:e.placeholder??D.optionPlaceholder,disabled:N,"aria-label":e.label}):(0,h.jsx)(o.t,{value:t,onChange:t=>te(e,t.target.value),placeholder:e.placeholder??D.optionPlaceholder,disabled:N})},e.id)})})]})]})})}_e.displayName=`ProductVariantEditor`;var ve=[`variant`,`sku`,`price`,`inventory`,`status`],ye=`text`,Q=`text`,be=`multiple`;function $(e){return typeof e==`string`||typeof e==`number`?String(e):``}function xe(e,t){let n=e.optionValues?.[t.id];if(n!=null&&n!==!1&&n!==``)return n;let r=e.optionValueIds?.[t.id];return t.values?.find(e=>e.id===r)?.label??void 0}function Se(e,t){return e.name!==void 0&&e.name!==null&&e.name!==``?e.name:t.filter(e=>e.usedForVariants!==!1).map(t=>xe(e,t)).filter(e=>e!=null&&e!==``).map(e=>$(e)).filter(Boolean).join(` / `)||`-`}function Ce(e,t){return t.filter(e=>e.usedForVariants!==!1).map(t=>xe(e,t)).filter(e=>e!=null&&e!==``)}function we(e){return e.map($).filter(Boolean).join(` / `)}function Te(e,t){return $(xe(e,t))||`-`}function Ee(e,t){return e.map(e=>t.get(e)).filter(e=>!!e)}function De(e){return e==null||e===``?`-`:e}function Oe(e){return e!=null&&e!==``}function ke(e){return e===`sku`||e===`price`||e===`inventory`}function Ae(e,t){return e===`text`||e===`field`?e:e[t]??Q}function je(e,t,n,r){return{index:e,field:t,previousValue:n,value:r}}function Me(e,n,i,a,s){let c=$(e);if(i===`field`){let e=!!a;return(0,h.jsx)(o.t,{readOnly:!e,value:c,onChange:e?e=>a(e.currentTarget.value):void 0,onBlur:s?e=>s(e.currentTarget.value):void 0,"aria-label":n,className:t.cn(`h-10 w-full min-w-36 bg-background px-space-md shadow-xs`,!e&&`text-muted-foreground`)})}return(0,h.jsx)(r.s,{className:`min-w-0 whitespace-normal break-words tabular-nums`,type:Oe(e)?`main`:`secondary`,children:De(e)})}function Ne({variants:o=[],optionGroups:c=[],groupByOptionId:l,visibleColumns:u=ve,optionCombinationDisplay:d=ye,cellDisplay:f=Q,selectionMode:p,renderOptionCombination:_,renderCell:v,selectedVariantIds:y,defaultSelectedVariantIds:b=[],onSelectedVariantIdsChange:x,onVariantFieldChange:S,onVariantFieldBlur:C,onCreateVariant:w,onGenerateVariants:T,onSelectVariant:E,onEditVariant:D,onDuplicateVariant:k,onDeleteVariant:A,onBulkEdit:ee,onBulkApply:j,onBulkDelete:M,renderVariantActions:P,renderBulkActions:F,actions:te,headerEnd:ne,footerSlot:re,empty:ie,surface:ae=`card`,className:oe,strings:L}){let R=e.useStrings(O,L),se=y!==void 0,[ce,le]=(0,m.useState)(b),z=!!(F||ee||j||M),B=(p??(z||se||x?be:`none`))===`multiple`,V=(0,m.useMemo)(()=>B?se?y:ce:[],[ce,B,se,y]),ue=(0,m.useMemo)(()=>new Map(o.map(e=>[e.id,e])),[o]),H=(0,m.useMemo)(()=>Ee(V,ue),[ue,V]),U=(0,m.useMemo)(()=>new Set(V),[V]),W=(0,m.useMemo)(()=>new Set(u),[u]),G=(0,m.useMemo)(()=>c.find(e=>e.id===l),[c,l]),de=(0,m.useMemo)(()=>new Map(o.map((e,t)=>[e.id,t])),[o]),fe=(0,m.useMemo)(()=>{if(!G)return o;let e=new Map((G.values??[]).map((e,t)=>[e.id,t]));return[...o].sort((t,n)=>{let r=t.optionValueIds?.[G.id],i=n.optionValueIds?.[G.id],a=r===void 0?void 0:e.get(r),o=i===void 0?void 0:e.get(i),s=a??2**53-1,c=o??2**53-1;return s===c?(de.get(t.id)??0)-(de.get(n.id)??0):s-c})},[G,de,o]),K=(0,m.useMemo)(()=>{if(!G)return new Map;let e=new Map;return o.forEach(t=>{let n=Te(t,G);e.set(n,(e.get(n)??0)+1)}),e},[G,o]),pe=B&&z,me=o.length>0,q=B&&me&&o.every(e=>U.has(e.id)),he=!!(E||D||k||A||P),ge=u.filter(e=>W.has(e)).length+ +!!B+ +!!he,J=(0,m.useCallback)(e=>{let t=Ee(e,ue);se||le(e),x?.(e,t)},[se,x,ue]),Y=(0,m.useCallback)(()=>J([]),[J]),X=(0,m.useCallback)((e,t)=>{B&&J(t===!0?Array.from(new Set([...V,e.id])):V.filter(t=>t!==e.id))},[B,V,J]),Z=(0,m.useCallback)(e=>{B&&J(e===!0?o.map(e=>e.id):[])},[B,J,o]),_e={selectedRows:H,selectedIds:V,allRows:o,selectedCount:H.length,totalCount:o.length,allRowsSelected:q,clearSelection:Y,setSelectedIds:J},xe=w||T?(0,h.jsxs)(`div`,{className:`product-variants-bulk-table--header-actions flex flex-wrap items-center justify-end gap-space-sm`,children:[!!T&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`outline`,onClick:T,icon:g.RefreshCw,children:R.generateLabel}),!!w&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:w,icon:g.Plus,children:R.createLabel})]}):void 0,Oe=pe?(0,h.jsxs)(`div`,{className:`product-variants-bulk-table--bulk-toolbar flex min-w-0 flex-wrap items-center justify-between gap-space-md rounded-radius-lg bg-muted/45 px-space-lg py-space-md`,children:[(0,h.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-space-md`,children:[(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,children:R.selectedLabel(H.length,o.length)}),!!H.length&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`small`,onClick:Y,children:R.clearSelectionLabel})]}),(0,h.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center justify-end gap-space-md`,children:[!!ee&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`solid`,disabled:!H.length,onClick:()=>ee(H),className:`bg-background text-foreground hover:bg-background/80 disabled:opacity-70`,children:R.bulkEditLabel}),!!M&&(0,h.jsxs)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,disabled:!H.length,onClick:()=>M(H),icon:g.Trash2,className:`text-muted-foreground hover:text-destructive disabled:text-muted-foreground/55`,children:[R.bulkDeleteLabel,` (`,H.length,`)`]}),!!j&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,disabled:!H.length,onClick:()=>j(H),className:`text-muted-foreground disabled:text-muted-foreground/55`,children:R.bulkApplyLabel}),F?.(_e)]})]}):null,Ne=o.length===0?ie??(0,h.jsx)(N,{title:R.emptyTitle,description:R.emptyDescription,action:T?(0,h.jsx)(n.t,{type:`button`,onClick:T,icon:g.RefreshCw,children:R.generateLabel}):void 0}):(0,h.jsxs)(`div`,{className:`product-variants-bulk-table--body grid min-w-0 gap-space-md`,children:[Oe,(0,h.jsx)(`div`,{className:`product-variants-bulk-table--table overflow-hidden rounded-radius-lg border border-border bg-background`,children:(0,h.jsx)(`div`,{className:`overflow-x-auto [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/40`,children:(0,h.jsxs)(`table`,{className:`w-full min-w-max border-collapse`,children:[(0,h.jsxs)(`colgroup`,{children:[B&&(0,h.jsx)(`col`,{className:`w-14 min-w-14 max-w-14`,style:{width:`3.5rem`}}),W.has(`variant`)&&(0,h.jsx)(`col`,{}),W.has(`sku`)&&(0,h.jsx)(`col`,{}),W.has(`price`)&&(0,h.jsx)(`col`,{}),W.has(`inventory`)&&(0,h.jsx)(`col`,{}),W.has(`status`)&&(0,h.jsx)(`col`,{}),W.has(`updated`)&&(0,h.jsx)(`col`,{}),he&&(0,h.jsx)(`col`,{style:{width:`4.5rem`}})]}),(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`h-12 border-b border-border/70 bg-muted/45`,children:[B&&(0,h.jsx)(`th`,{className:`w-14 min-w-14 max-w-14 px-0 py-space-md text-center align-middle`,style:{width:`3.5rem`},children:(0,h.jsx)(s.t,{checked:q,onCheckedChange:Z,"aria-label":R.selectAllLabel,className:`mx-auto`})}),W.has(`variant`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.variant})}),W.has(`sku`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.sku})}),W.has(`price`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.price})}),W.has(`inventory`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.inventory})}),W.has(`status`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.status})}),W.has(`updated`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.updated})}),he&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-right align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.actions})})]})}),(0,h.jsx)(`tbody`,{children:fe.map((e,t)=>{let n=de.get(e.id)??t,a=G?Te(e,G):null,o=t>0?fe[t-1]:void 0,l=G&&o?Te(o,G):null,u=!!G&&a!==l,p=U.has(e.id),y={index:n,onSelect:E?()=>E(e):void 0,onEdit:D?()=>D(e):void 0,onDuplicate:k?()=>k(e):void 0,onDelete:A?()=>A(e):void 0,isSelected:p,onToggleSelected:B?t=>X(e,t):void 0},b=G?c.filter(e=>e.id!==G.id):c,x=Ce(e,b),w=G?Se({...e,name:void 0},b):Se(e,c),T=w===`-`&&G?Se(e,c):w,O=we(x),ee=O===$(T),j=(t,r,i=Q)=>({index:n,column:t,value:r,variantName:T,optionValues:x,optionLabel:O,cellDisplay:i,onChange:ke(t)&&S?i=>S(e,t,i,je(n,t,r,i)):void 0,onBlur:ke(t)&&C?i=>C(e,t,i,je(n,t,r,i)):void 0}),M=(t,n,r,i)=>{let a=j(t,n,r),o=v?.(e,a);return o===void 0?i(a):o},N=d!==`none`&&x.length>0&&(G?!ee:d===`tags`||!ee),F=d===`none`?null:_?.(e,{optionGroups:c,optionValues:x,optionLabel:O,display:d}),te=[...E?[{id:`view`,label:R.viewLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>E(e),variant:`ghost`}]:[],...D?[{id:`edit`,label:R.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>D(e),variant:`ghost`}]:[],...k?[{id:`duplicate`,label:R.duplicateLabel,icon:(0,h.jsx)(g.Copy,{className:`size-3.5`}),onClick:()=>k(e),variant:`ghost`}]:[],...A?[{id:`delete`,label:R.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>A(e),variant:`destructive`}]:[]];return(0,h.jsxs)(m.Fragment,{children:[u&&(0,h.jsx)(`tr`,{className:`product-variants-bulk-table--group-row border-b border-border/70 bg-muted/30`,children:(0,h.jsx)(`td`,{colSpan:ge,className:`px-space-lg py-space-md align-middle`,children:(0,h.jsxs)(`div`,{className:`flex min-w-0 items-center gap-space-sm`,children:[(0,h.jsx)(r.s,{tag:`span`,weight:`semibold`,className:`min-w-0 whitespace-normal break-words`,children:a}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,type:`secondary`,className:`whitespace-nowrap`,children:R.groupCountLabel(K.get(a??``)??0)})]})})}),(0,h.jsxs)(`tr`,{className:`h-20 border-b border-border/70 last:border-b-0`,children:[B&&(0,h.jsx)(`td`,{className:`w-14 min-w-14 max-w-14 px-0 py-space-lg text-center align-middle`,style:{width:`3.5rem`},children:(0,h.jsx)(s.t,{checked:p,onCheckedChange:t=>X(e,t),"aria-label":R.selectRowLabel(n),className:`mx-auto`})}),W.has(`variant`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-lg align-middle`,children:M(`variant`,T,Q,()=>(0,h.jsxs)(`div`,{className:`grid min-w-0 gap-space-xs`,children:[(0,h.jsx)(r.s,{weight:`medium`,className:`min-w-0 whitespace-normal break-words`,children:T}),F,!F&&N&&d===`text`&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`min-w-0 whitespace-normal break-words`,children:x.map((t,n)=>(0,h.jsxs)(`span`,{children:[n>0?` / `:null,t]},`${e.id}-option-text-${n}`))}),!F&&N&&d===`tags`&&(0,h.jsx)(`div`,{className:`flex min-w-0 flex-wrap gap-space-xs`,children:x.map((t,n)=>(0,h.jsx)(`span`,{className:`max-w-full rounded-radius-sm bg-muted px-space-sm py-space-2xs text-pxs font-medium text-muted-foreground`,children:t},`${e.id}-option-${n}`))})]}))}),W.has(`sku`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-md align-middle`,children:M(`sku`,e.sku,Ae(f,`sku`),t=>Me(e.sku,`${R.headers.sku}: ${$(T)}`,t.cellDisplay,t.onChange,t.onBlur))}),W.has(`price`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-md align-middle`,children:M(`price`,e.price,Ae(f,`price`),t=>Me(e.price,`${R.headers.price}: ${$(T)}`,t.cellDisplay,t.onChange,t.onBlur))}),W.has(`inventory`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-md align-middle`,children:M(`inventory`,e.inventory,Ae(f,`inventory`),t=>Me(e.inventory,`${R.headers.inventory}: ${$(T)}`,t.cellDisplay,t.onChange,t.onBlur))}),W.has(`status`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-lg align-middle`,children:M(`status`,e.status,Q,()=>e.status?(0,h.jsx)(i.t,{variant:e.statusVariant??`secondary`,children:e.status}):(0,h.jsx)(r.s,{type:`secondary`,children:`-`}))}),W.has(`updated`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-lg align-middle`,children:M(`updated`,e.updatedAt,Q,()=>(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,children:De(e.updatedAt)}))}),he&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-lg text-right align-middle`,children:P?P(e,y):(0,h.jsx)(I,{item:e,actions:te,menuLabel:R.headers.actions})})]})]},e.id)})})]})})})]});return ae===`embedded`?(0,h.jsx)(`section`,{"aria-label":R.title,className:t.cn(`product-variants-bulk-table--component min-w-0`,oe),children:Ne}):(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ListChecks,{className:`size-4`}),title:R.title,description:R.description,actions:te,headerAction:xe,headerEnd:ne,footerSlot:re,contentClassName:`mt-1`,className:t.cn(`product-variants-bulk-table--component w-full`,oe),children:Ne})}Ne.displayName=`ProductVariantsBulkTable`;function Pe({optionGroups:i=[],variants:o=[],visibleColumns:s,optionCombinationDisplay:l,cellDisplay:u,selectionMode:d,renderOptionCombination:f,renderCell:p,selectedVariantIds:_,defaultSelectedVariantIds:v,onSelectedVariantIdsChange:y,onVariantFieldChange:b,onVariantFieldBlur:x,collapsedOptionIds:S,defaultCollapsedOptionIds:C,onCollapsedOptionIdsChange:w,editingOptionId:T,defaultEditingOptionId:E,onEditingOptionIdChange:D,onCreateOption:O,onEditOption:A,onDeleteOption:ee,onAddValue:j,onDeleteValue:M,onOptionNameChange:N,onValueLabelChange:P,onDoneEditingOption:F,onSaveEditingOption:te,onCancelEditingOption:ne,onToggleUsedForVariants:re,renderOptionActions:I,renderValue:ie,onCreateVariant:ae,onGenerateVariants:oe,onSelectVariant:L,onEditVariant:R,onDuplicateVariant:se,onDeleteVariant:ce,onBulkEdit:le,onBulkApply:z,onBulkDelete:B,renderVariantActions:V,renderBulkActions:ue,groupByOptionId:U,defaultGroupByOptionId:W,onGroupByOptionIdChange:G,onSearchVariants:de,onFilterVariants:fe,controlsEnd:K,actions:pe,headerEnd:me,footerSlot:q,className:he,strings:ge,optionsStrings:J,variantsStrings:Y}){let X=e.useStrings(k,ge),Z=(0,m.useMemo)(()=>i.filter(e=>e.usedForVariants!==!1),[i]),_e=Z[0]?.id??null,ve=U!==void 0,[ye,Q]=(0,m.useState)(W??_e),be=U??ye??_e,$=(0,m.useMemo)(()=>Z.map(e=>({value:e.id,label:String(typeof e.name==`string`||typeof e.name==`number`?e.name:e.id)})),[Z]),xe=(0,m.useCallback)(e=>{let t=i.find(t=>t.id===e);ve||Q(e??null),G?.(e,t)},[ve,G,i]),Se=oe||ae?(0,h.jsxs)(`div`,{className:`product-variants-manager--header-actions flex min-w-0 flex-wrap items-center justify-end gap-space-sm`,children:[!!oe&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`outline`,onClick:oe,icon:g.RefreshCw,children:X.generateLabel}),!!ae&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`outline`,onClick:ae,icon:g.Plus,children:X.createVariantLabel})]}):void 0;return(0,h.jsx)(a.t,{title:X.title,description:X.description,actions:pe,actionsLabel:X.actionsLabel,headerAction:Se,headerEnd:me,footerSlot:q,contentClassName:`mt-1 px-0 pb-0`,className:t.cn(`product-variants-manager--component w-full`,he),children:(0,h.jsxs)(`div`,{className:`product-variants-manager--body grid min-w-0 gap-0`,children:[(0,h.jsx)(`section`,{className:`product-variants-manager--options min-w-0 px-surface pb-space-lg`,children:(0,h.jsx)(H,{optionGroups:i,collapsedOptionIds:S,defaultCollapsedOptionIds:C,onCollapsedOptionIdsChange:w,editingOptionId:T,defaultEditingOptionId:E,onEditingOptionIdChange:D,surface:`embedded`,onCreateOption:O,onEditOption:A,onDeleteOption:ee,onAddValue:j,onDeleteValue:M,onOptionNameChange:N,onValueLabelChange:P,onDoneEditingOption:F,onSaveEditingOption:te,onCancelEditingOption:ne,onToggleUsedForVariants:re,renderOptionActions:I,renderValue:ie,showHeader:!1,showCollapseControls:!1,showInlineActions:!1,showVariantToggle:!1,strings:{title:X.optionsTitle,...J}})}),(0,h.jsxs)(`div`,{className:`product-variants-manager--controls flex min-w-0 flex-wrap items-center justify-between gap-space-md border-t border-border/70 px-surface py-space-md`,children:[(0,h.jsxs)(`div`,{className:`product-variants-manager--group-by flex min-w-0 items-center gap-space-sm`,children:[(0,h.jsx)(r.s,{type:`secondary`,className:`whitespace-nowrap`,children:X.groupByLabel}),$.length>0&&(0,h.jsx)(c.Y,{options:$,value:be,onChange:xe,"aria-label":X.groupByLabel,className:`min-w-32 bg-background`})]}),(0,h.jsxs)(`div`,{className:`product-variants-manager--controls-end flex min-w-0 items-center justify-end gap-space-sm`,children:[(0,h.jsxs)(`div`,{className:`product-variants-manager--tool-buttons inline-flex overflow-hidden rounded-radius border border-border bg-background shadow-xs`,children:[(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:de,"aria-label":X.searchLabel,className:`rounded-none border-r border-border text-muted-foreground hover:text-foreground`,children:[(0,h.jsx)(g.Search,{className:`size-icon-sm`,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:X.searchLabel})]}),(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:fe,"aria-label":X.filterLabel,className:`rounded-none text-muted-foreground hover:text-foreground`,children:[(0,h.jsx)(g.ListFilter,{className:`size-icon-sm`,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:X.filterLabel})]})]}),K]})]}),(0,h.jsx)(`section`,{className:`product-variants-manager--variants min-w-0 px-surface pb-surface pt-space-md`,children:(0,h.jsx)(Ne,{variants:o,optionGroups:i,groupByOptionId:be,visibleColumns:s,optionCombinationDisplay:l,cellDisplay:u,selectionMode:d,renderOptionCombination:f,renderCell:p,surface:`embedded`,selectedVariantIds:_,defaultSelectedVariantIds:v,onSelectedVariantIdsChange:y,onVariantFieldChange:b,onVariantFieldBlur:x,onCreateVariant:ae,onGenerateVariants:oe,onSelectVariant:L,onEditVariant:R,onDuplicateVariant:se,onDeleteVariant:ce,onBulkEdit:le,onBulkApply:z,onBulkDelete:B,renderVariantActions:V,renderBulkActions:ue,strings:{title:X.variantsTitle,generateLabel:X.generateLabel,...Y}})})]})})}Pe.displayName=`ProductVariantsManager`;function Fe({className:e,...n}){return(0,h.jsx)(ge,{...n,className:t.cn(`products--component`,e)})}Fe.displayName=`Products`,exports.PRODUCT_EMPTY_VALUE=G,exports.PRODUCT_TONE_BADGE=P,exports.PRODUCT_TONE_SURFACE=F,exports.ProductContractOverview=R,exports.ProductDetailsCard=se,exports.ProductEmptyState=N,exports.ProductMetricTile=re,exports.ProductOperationRow=oe,exports.ProductOperationsCard=le,exports.ProductOptionActionMenu=ce,exports.ProductOptionsMatrix=H,exports.ProductOptionsSummary=U,exports.ProductOverview=ge,exports.ProductPoliciesCard=W,exports.ProductQuotePreviewCard=de,exports.ProductReadinessCard=fe,exports.ProductReadinessRow=ae,exports.ProductRowActions=I,exports.ProductStructureCard=K,exports.ProductStructureMetricRow=ie,exports.ProductSummaryRow=L,exports.ProductToneDot=ne,exports.ProductVariantActionMenu=pe,exports.ProductVariantActions=me,exports.ProductVariantCell=q,exports.ProductVariantDetails=X,exports.ProductVariantEditor=_e,exports.ProductVariantsBulkTable=Ne,exports.ProductVariantsManager=Pe,exports.ProductVariantsTable=he,exports.Products=Fe,exports.clampProductPercent=te,exports.defaultProductContractOverviewStrings=x,exports.defaultProductDetailsCardStrings=b,exports.defaultProductOperationsCardStrings=y,exports.defaultProductOptionActionMenuStrings=C,exports.defaultProductOptionsMatrixStrings=w,exports.defaultProductOptionsSummaryStrings=S,exports.defaultProductOverviewStrings=M,exports.defaultProductPoliciesCardStrings=E,exports.defaultProductQuotePreviewCardStrings=T,exports.defaultProductReadinessCardStrings=_,exports.defaultProductStructureCardStrings=v,exports.defaultProductVariantActionMenuStrings=A,exports.defaultProductVariantDetailsStrings=ee,exports.defaultProductVariantEditorStrings=j,exports.defaultProductVariantsBulkTableStrings=O,exports.defaultProductVariantsManagerStrings=k,exports.defaultProductVariantsTableStrings=D;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../lib/strings.cjs"),t=require("../../../lib/utils.cjs"),n=require("../../../_shared/button-CB8e7fui.cjs"),r=require("../../../_shared/typography-sXFd02zl.cjs"),i=require("../../../_shared/badge-B0Ashqkn.cjs"),a=require("../../../_shared/cards-DvE5gRFf.cjs"),o=require("../../../_shared/input-DGvh-izk.cjs"),s=require("../../../_shared/checkbox-ECGg8wjW.cjs"),c=require("../../../_shared/forms-B7LYVbAy.cjs"),l=require("../../../_shared/textarea-rfnSeHHC.cjs"),u=require("../../../_shared/display-DV7n0KA1.cjs"),d=require("../../../_shared/item-BG2iK1sy.cjs"),f=require("../../../_shared/table-DQA2m2F0.cjs"),p=require("../../../_shared/data-display-DRa39LH8.cjs");let m=require("react"),h=require("react/jsx-runtime"),g=require("lucide-react");var _={title:`Readiness`,description:`Publishing checks and operational setup.`,scoreLabel:`Overall readiness`,progressLabel:`Readiness progress`,createLabel:`Add check`,editLabel:`Edit check`,deleteLabel:`Delete check`,actionsLabel:`Check actions`,emptyTitle:`No readiness checks`,emptyDescription:`Pass readiness items from your product workflow to show progress.`,actionLabel:`Open`},v={title:`Structure`,description:`Media, taxonomy, options, and content coverage.`,createLabel:`Add metric`,viewLabel:`Open`,editLabel:`Edit metric`,deleteLabel:`Delete metric`,actionsLabel:`Metric actions`,emptyTitle:`No structure metrics`,emptyDescription:`Pass structure metrics to summarize the product setup.`},y={title:`Operations`,description:`Availability, channels, service rules, and fulfilment signals.`,createLabel:`Add signal`,editLabel:`Edit signal`,deleteLabel:`Delete signal`,actionsLabel:`Signal actions`,emptyTitle:`No operational signals`,emptyDescription:`Pass operational rows to show channel and availability health.`,actionLabel:`Open`},b={title:`Product details`,description:`Core identity and catalogue fields.`,editLabel:`Edit details`,emptyTitle:`No details`,emptyDescription:`Pass metadata rows to render product details.`},x={title:`Contract`,description:`Commercial terms, pricing rules, and customer-facing conditions.`,termsTitle:`Terms`,rulesTitle:`Rules`,actionLabel:`Manage contract`,editLabel:`Edit contract`,createRuleLabel:`Add rule`,viewRuleLabel:`Open rule`,editRuleLabel:`Edit rule`,deleteRuleLabel:`Delete rule`,ruleActionsLabel:`Rule actions`,emptyTitle:`No contract summary`,emptyDescription:`Pass metrics, terms, or rules to summarize the product contract.`},S={title:`Options`,description:`Variant-driving choices and add-ons customers can select.`,manageLabel:`Manage options`,createLabel:`Add option`,viewLabel:`Open option`,editLabel:`Edit option`,deleteLabel:`Delete option`,actionsLabel:`Option actions`,emptyTitle:`No options`,emptyDescription:`Pass option groups to summarize configurable product choices.`},C={viewLabel:`Open option`,editLabel:`Edit option`,deleteLabel:`Delete option`,actionsLabel:`Option actions`},w={title:`Variant options`,description:`Define option groups and values before generating sellable variants.`,createLabel:`Add attribute`,editLabel:`Configure`,deleteLabel:`Delete option`,addValueLabel:`Add value`,addAnotherValueLabel:`Add another value`,addAnotherOptionLabel:`Add another option`,deleteValueLabel:`Delete value`,doneLabel:`Done`,saveLabel:`Save`,cancelLabel:`Cancel`,expandOptionLabel:`Expand option`,collapseOptionLabel:`Collapse option`,actionsLabel:`Option actions`,optionNameLabel:`Option name`,optionValuesLabel:`Option values`,valuesLabel:`Values`,useForVariantsLabel:`Use for variants`,usedForVariantsLabel:`Used for variants`,notUsedForVariantsLabel:`Not used for variants`,emptyTitle:`No option groups`,emptyDescription:`Add options such as size, color, or packaging to create variant combinations.`,noValuesLabel:`No values`},T={title:`Quote preview`,description:`How the product appears in a compact customer quote.`,subtotalLabel:`Subtotal`,taxLabel:`Tax`,discountLabel:`Discount`,totalLabel:`Total`,actionLabel:`Open quote`,createLineLabel:`Add line`,viewLineLabel:`Open line`,editLineLabel:`Edit line`,deleteLineLabel:`Delete line`,lineActionsLabel:`Line actions`,emptyTitle:`No quote lines`,emptyDescription:`Pass quote lines to preview pricing.`},E={title:`Policies`,description:`Cancellation, booking, service, and customer-facing rules.`,createLabel:`Add policy`,viewLabel:`View`,editLabel:`Edit policy`,deleteLabel:`Delete policy`,actionsLabel:`Policy actions`,emptyTitle:`No policies`,emptyDescription:`Pass policies to summarize customer-facing rules.`},D={title:`Variants`,description:`Sellable combinations with price, availability, and SKU.`,createLabel:`Add variant`,viewLabel:`Open variant`,editLabel:`Edit`,duplicateLabel:`Duplicate`,deleteLabel:`Delete`,emptyTitle:`No variants`,emptyDescription:`Create or pass variants to show sellable rows.`,headers:{variant:`Variant`,sku:`SKU`,price:`Price`,inventory:`Available`,channels:`Channels`,updated:`Updated`,actions:`Actions`}},O={title:`Variants`,description:`Review generated combinations, select rows, and apply bulk operations.`,createLabel:`Add variant`,generateLabel:`Generate variants`,bulkEditLabel:`Bulk edit selected`,viewLabel:`Open variant`,editLabel:`Edit`,duplicateLabel:`Duplicate`,deleteLabel:`Delete`,bulkApplyLabel:`Apply changes`,bulkDeleteLabel:`Delete selected`,selectedLabel:(e,t)=>`${e} of ${t} selected`,groupCountLabel:e=>`${e} ${e===1?`variant`:`variants`}`,clearSelectionLabel:`Clear`,selectAllLabel:`Select all variants`,selectRowLabel:e=>`Select row ${e+1}`,emptyTitle:`No variants`,emptyDescription:`Generate variants from option groups or pass sellable rows from the app.`,headers:{variant:`Variant`,price:`Price`,inventory:`Available`,sku:`SKU`,status:`Status`,updated:`Updated`,actions:`Actions`}},k={title:`Variants`,description:`Configure option groups first, then manage the generated sellable variants.`,optionsTitle:`Variant options`,variantsTitle:`Variants`,groupByLabel:`Group by`,searchLabel:`Search variants`,filterLabel:`Filter variants`,generateLabel:`Generate variants`,createVariantLabel:`Add variant`,actionsLabel:`Variant manager actions`},A={viewLabel:`Open variant`,editLabel:`Edit`,duplicateLabel:`Duplicate`,deleteLabel:`Delete`,actionsLabel:`Variant actions`},ee={title:`Variant`,description:`Sellable variant details, options, pricing, and fulfilment data.`,backLabel:`Back`,factsTitle:`Variant facts`,selectedOptionsTitle:`Selected options`,relatedOptionsTitle:`Option groups`,viewOptionLabel:`Open option`,emptyTitle:`No variant selected`,emptyDescription:`Pass a variant to render a standalone variant detail surface.`,metadata:{price:`Price`,inventory:`Available`,sku:`SKU`,channels:`Channels`,updated:`Updated`}},j={title:`Edit variant`,description:`Controlled form for variant identity, pricing, inventory, and option values.`,identityTitle:`Identity`,commercialTitle:`Commercial setup`,optionsTitle:`Options`,saveLabel:`Save variant`,savingLabel:`Saving`,cancelLabel:`Cancel`,deleteLabel:`Delete variant`,statusPlaceholder:`Select status`,optionPlaceholder:`Select value`,fields:{name:`Name`,description:`Description`,sku:`SKU`,price:`Price`,inventory:`Inventory`,status:`Status`,channels:`Channels`},placeholders:{name:`750 ml bottle`,description:`Standard retail pack`,sku:`BAL-750-CL`,price:`US$ 24.00`,inventory:`82`,status:`Active`,channels:`Online store, POS`}},M={mainLabel:`Product overview`,railLabel:`Product supporting information`};function N({title:e,description:n,action:r,className:i}){return(0,h.jsx)(p.m,{padding:`small`,border:!0,title:e,description:n,actions:r,className:t.cn(`product-empty-state--component bg-muted/20`,i)})}var P={neutral:`secondary`,primary:`primary`,success:`success`,warning:`warning`,error:`error`,info:`info`},F={neutral:`border-border bg-card text-muted-foreground`,primary:`border-primary/20 bg-primary/5 text-primary`,success:`border-success/20 bg-success/5 text-success`,warning:`border-warning/30 bg-warning/8 text-warning`,error:`border-destructive/25 bg-destructive/8 text-destructive`,info:`border-info/20 bg-info/5 text-info`};function te(e){return Number.isFinite(e)?Math.min(100,Math.max(0,Math.round(e))):0}function ne({tone:e=`neutral`}){return(0,h.jsx)(`span`,{"aria-hidden":`true`,className:t.cn(`product-tone-dot--component size-2 rounded-full`,{"bg-muted-foreground":e===`neutral`,"bg-primary":e===`primary`,"bg-success":e===`success`,"bg-warning":e===`warning`,"bg-destructive":e===`error`,"bg-info":e===`info`})})}function re({metric:e}){let n=e.tone??`neutral`;return(0,h.jsxs)(`div`,{className:t.cn(`product-metric-tile--component rounded-md border px-3 py-2.5`,F[n]),children:[(0,h.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,h.jsxs)(`div`,{className:`min-w-0 space-y-0.5`,children:[(0,h.jsx)(r.s,{size:`xs`,type:n===`neutral`?`secondary`:`main`,className:`truncate`,children:e.label}),(0,h.jsx)(r.s,{weight:`semibold`,className:`tabular-nums`,children:e.value})]}),`icon`in e&&!!e.icon&&(0,h.jsx)(`div`,{className:`shrink-0 opacity-80`,children:e.icon})]}),!!e.description&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mt-1.5 leading-snug`,children:e.description})]})}function I({item:e,actions:n,menuLabel:r,className:i}){return n.length===0?null:(0,h.jsx)(`div`,{className:t.cn(`product-row-actions--component flex justify-end`,i),children:(0,h.jsx)(f.M,{row:e,actions:n,menuLabel:r,displayMode:`menu`})})}function ie({metric:e,actions:n}){let i=e.tone??`neutral`;return(0,h.jsxs)(d.t,{className:`product-structure-metric-row--component product-structure-card--item`,children:[(0,h.jsx)(d.c,{variant:`icon`,className:t.cn(`rounded-full border`,F[i]),children:e.icon??(0,h.jsx)(ne,{tone:i})}),(0,h.jsxs)(d.r,{className:`min-w-0 sm:min-w-48`,children:[(0,h.jsx)(d.u,{children:e.label}),!!e.description&&(0,h.jsx)(d.i,{clamp:2,children:e.description})]}),(0,h.jsxs)(d.n,{className:`ml-auto shrink-0 gap-2`,children:[(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,className:`tabular-nums`,children:e.value}),n]})]})}function ae({item:e,actionFallback:r,onSelect:a,actions:o}){let s=e.tone??(e.completed?`success`:`neutral`),c=e.onSelect??a;return(0,h.jsxs)(d.t,{className:`product-readiness-row--component product-readiness-card--item`,children:[(0,h.jsx)(d.c,{variant:`icon`,className:t.cn(`rounded-full border`,F[s]),children:(0,h.jsx)(ne,{tone:s})}),(0,h.jsxs)(d.r,{className:`min-w-0 sm:min-w-48`,children:[(0,h.jsx)(d.u,{children:e.label}),!!e.description&&(0,h.jsx)(d.i,{clamp:2,children:e.description})]}),!!(e.value||c||o)&&(0,h.jsxs)(d.n,{className:`ml-auto shrink-0 flex-wrap justify-end gap-2`,children:[!!e.value&&(0,h.jsx)(i.t,{variant:P[s],children:e.value}),!!c&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:c,icon:g.ArrowRight,iconPosition:`right`,children:e.actionLabel??r}),o]})]})}function oe({item:e,actionFallback:i,onSelect:a,actions:o}){let s=e.tone??`neutral`,c=e.onSelect??a;return(0,h.jsxs)(d.t,{className:`product-operation-row--component product-operations-card--item`,children:[(0,h.jsx)(d.c,{variant:`icon`,className:t.cn(`rounded-full border`,F[s]),children:(0,h.jsx)(ne,{tone:s})}),(0,h.jsxs)(d.r,{className:`min-w-0 sm:min-w-48`,children:[(0,h.jsx)(d.u,{children:e.label}),!!e.description&&(0,h.jsx)(d.i,{clamp:2,children:e.description})]}),!!(e.value||c||o)&&(0,h.jsxs)(d.n,{className:`ml-auto shrink-0 flex-wrap justify-end gap-2`,children:[!!e.value&&(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,children:e.value}),!!c&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:c,icon:g.ArrowRight,iconPosition:`right`,children:e.actionLabel??i}),o]})]})}function L({item:e,actionLabel:a,onSelect:o,actions:s}){let c=e.tone??`neutral`,l=`values`in e?e.values:void 0;return(0,h.jsxs)(d.t,{className:`product-summary-row--component`,children:[(0,h.jsx)(d.c,{variant:`icon`,className:t.cn(`rounded-full border`,F[c]),children:(0,h.jsx)(ne,{tone:c})}),(0,h.jsxs)(d.r,{className:`min-w-0 sm:min-w-48`,children:[(0,h.jsx)(d.u,{children:e.label}),!!e.description&&(0,h.jsx)(d.i,{clamp:2,children:e.description}),!!l?.length&&(0,h.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-1`,children:l.map((e,t)=>(0,h.jsx)(i.t,{variant:`secondary`,children:e},t))})]}),!!(e.value||e.badge||o||s)&&(0,h.jsxs)(d.n,{className:`ml-auto shrink-0 flex-wrap justify-end gap-2`,children:[!!e.value&&(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,children:e.value}),!!e.badge&&e.badge,!!o&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:o,icon:g.ArrowRight,iconPosition:`right`,children:a}),s]})]})}function R({metrics:i=[],terms:o=[],rules:s=[],onOpenContract:c,onEditContract:l,onCreateRule:u,onSelectRule:f,onEditRule:m,onDeleteRule:_,renderRuleActions:v,actions:y,footerSlot:b,empty:S,className:C,strings:w}){let T=e.useStrings(x,w),E=i.length>0||o.length>0||s.length>0,D=c||l||u?(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[!!u&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:u,icon:g.Plus,children:T.createRuleLabel}),!!l&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:l,icon:g.Pencil,children:T.editLabel}),!!c&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:c,icon:g.ArrowRight,iconPosition:`right`,children:T.actionLabel})]}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.FileText,{className:`size-4`}),title:T.title,description:T.description,actions:y,headerAction:D,footerSlot:b,contentClassName:`mt-1`,className:t.cn(`product-contract-overview--component w-full`,C),children:E?(0,h.jsxs)(`div`,{className:`space-y-4`,children:[i.length>0&&(0,h.jsx)(`div`,{className:`grid gap-2 sm:grid-cols-3`,children:i.map(e=>(0,h.jsx)(re,{metric:e},e.id))}),o.length>0&&(0,h.jsxs)(`div`,{className:`space-y-2`,children:[(0,h.jsx)(r.s,{size:`xs`,weight:`semibold`,children:T.termsTitle}),(0,h.jsx)(p.a,{items:o,columns:2,dense:!0})]}),s.length>0&&(0,h.jsxs)(`div`,{className:`space-y-2`,children:[(0,h.jsx)(r.s,{size:`xs`,weight:`semibold`,children:T.rulesTitle}),(0,h.jsx)(d.o,{children:s.map((e,t)=>{let n=f?()=>f(e):void 0,r=m?()=>m(e):void 0,i=_?()=>_(e):void 0,a=[...n?[{id:`open`,label:T.viewRuleLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>n(),variant:`ghost`}]:[],...r?[{id:`edit`,label:T.editRuleLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:T.deleteRuleLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]];return(0,h.jsx)(L,{item:e,actions:v?v(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:T.ruleActionsLabel})},e.id)})})]})]}):S??(0,h.jsx)(N,{title:T.emptyTitle,description:T.emptyDescription,action:u?(0,h.jsx)(n.t,{type:`button`,onClick:u,icon:g.Plus,children:T.createRuleLabel}):void 0})})}R.displayName=`ProductContractOverview`;function se({title:r,description:i,metadata:o=[],media:s,onEditDetails:c,actions:l,headerEnd:u,footerSlot:d,empty:f,className:m,strings:_}){let v=e.useStrings(b,_),y=c?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:c,icon:g.Pencil,children:v.editLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.Box,{className:`size-4`}),title:r??v.title,description:i===!1?void 0:i??v.description,actions:l,headerAction:y,headerEnd:u,footerSlot:d,contentClassName:`mt-1`,className:t.cn(`product-details-card--component w-full`,m),children:o.length===0?f??(0,h.jsx)(N,{title:v.emptyTitle,description:v.emptyDescription}):(0,h.jsx)(`div`,{className:`@container/product-details`,children:(0,h.jsxs)(`div`,{className:t.cn(`grid gap-4`,s&&`@xl/product-details:grid-cols-[12rem_minmax(0,1fr)]`),children:[!!s&&(0,h.jsx)(`div`,{className:`product-details-card--media overflow-hidden rounded-md border border-border bg-muted/30`,children:s}),(0,h.jsx)(p.a,{items:o,columns:s?1:2,dense:!0,className:`min-w-0`,valueClassName:`break-words`})]})})})}se.displayName=`ProductDetailsCard`;function ce({option:n,index:r=0,onSelectOption:i,onEditOption:a,onDeleteOption:o,renderOptionActions:s,menuLabel:c,className:l,strings:u}){let d=e.useStrings(C,u),f=i?()=>i(n):void 0,p=a?()=>a(n):void 0,m=o?()=>o(n):void 0;return f||p||m||s?s?(0,h.jsx)(`div`,{className:t.cn(`product-option-action-menu--component flex justify-end`,l),children:s(n,{index:r,onSelect:f,onEdit:p,onDelete:m})}):(0,h.jsx)(I,{item:n,menuLabel:c??d.actionsLabel,className:t.cn(`product-option-action-menu--component`,l),actions:[...f?[{id:`open`,label:d.viewLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>f(),variant:`ghost`}]:[],...p?[{id:`edit`,label:d.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>p(),variant:`ghost`}]:[],...m?[{id:`delete`,label:d.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>m(),variant:`destructive`}]:[]]}):null}ce.displayName=`ProductOptionActionMenu`;function le({items:r=[],onCreateOperation:i,onSelectOperation:o,onEditOperation:s,onDeleteOperation:c,renderOperationActions:l,actions:u,footerSlot:f,renderItem:p,empty:m,className:_,strings:v}){let b=e.useStrings(y,v),x=i?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:i,icon:g.Plus,children:b.createLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.PackageCheck,{className:`size-4`}),title:b.title,description:b.description,actions:u,headerAction:x,footerSlot:f,contentClassName:`mt-1`,className:t.cn(`product-operations-card--component w-full`,_),children:r.length===0?m??(0,h.jsx)(N,{title:b.emptyTitle,description:b.emptyDescription,action:i?(0,h.jsx)(n.t,{type:`button`,onClick:i,icon:g.Plus,children:b.createLabel}):void 0}):(0,h.jsx)(d.o,{children:r.map((e,t)=>{let n=o?()=>o(e):void 0,r=s?()=>s(e):void 0,i=c?()=>c(e):void 0,a=[...r?[{id:`edit`,label:b.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:b.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]],u=l?l(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:b.actionsLabel});return p?(0,h.jsx)(`div`,{children:p(e,t)},e.id):(0,h.jsx)(oe,{item:e,actionFallback:b.actionLabel,onSelect:n,actions:u},e.id)})})})}le.displayName=`ProductOperationsCard`;function z(e){return typeof e==`string`||typeof e==`number`?String(e):``}function B(e){return e.label}function V(e,t){let n=z(t.name);return n?`${e}: ${n}`:e}function ue(e){return{name:z(e.name),values:(e.values??[]).map(e=>({...e,label:z(e.label)}))}}function H({optionGroups:i=[],surface:s=`card`,collapsedOptionIds:l,defaultCollapsedOptionIds:u=[],onCollapsedOptionIdsChange:d,editingOptionId:f,defaultEditingOptionId:p,onEditingOptionIdChange:_,onCreateOption:v,onEditOption:y,onDeleteOption:b,onAddValue:x,onDeleteValue:S,onOptionNameChange:C,onValueLabelChange:T,onDoneEditingOption:E,onSaveEditingOption:D,onCancelEditingOption:O,onToggleUsedForVariants:k,renderOptionActions:A,renderValue:ee,showHeader:j,showCollapseControls:M=!0,showInlineActions:P=!0,showVariantToggle:F=!0,actions:te,headerEnd:ne,footerSlot:re,empty:ie,className:ae,strings:oe}){let L=e.useStrings(w,oe),R=l!==void 0,[se,ce]=(0,m.useState)(u),le=R?l:se,H=(0,m.useMemo)(()=>new Set(le),[le]),U=f!==void 0||p!==void 0||!!_||!!C||!!T||!!E||!!D||!!O,W=f!==void 0,[G,de]=(0,m.useState)(p??null),[fe,K]=(0,m.useState)({}),pe=U?W?f:G:null,me=i.length>0,q=s===`embedded`&&j!==!1,he=me&&!!v,ge=(0,m.useCallback)(e=>{R||ce(e),d?.(e,i.filter(t=>e.includes(t.id)))},[R,d,i]),J=(0,m.useCallback)(e=>{ge(H.has(e.id)?le.filter(t=>t!==e.id):[...le,e.id])},[H,le,ge]),Y=(0,m.useCallback)((e,t)=>{U&&(W||de(e),_?.(e,t))},[W,_,U]),X=(0,m.useCallback)(e=>{K(t=>({...t,[e.id]:ue(e)})),Y(e.id,e),y?.(e)},[y,Y]),Z=(0,m.useCallback)(e=>fe[e.id]??ue(e),[fe]),_e=(0,m.useCallback)((e,t)=>{K(n=>({...n,[e.id]:t(n[e.id]??ue(e))}))},[]),ve=(0,m.useCallback)(e=>{let t=Z(e);K(t=>{let{[e.id]:n,...r}=t;return r}),Y(null,e),O?.(e,t)},[Z,O,Y]),ye=(0,m.useCallback)(e=>{let t=Z(e),n=e.values??[],r=new Set(n.map(e=>e.id)),i=new Set(t.values.map(e=>e.id));D?.(e,t),C?.(e,t.name),n.forEach(n=>{let r=t.values.find(e=>e.id===n.id);r&&z(n.label)!==z(r.label)&&T?.(e,n,z(r.label))}),t.values.forEach(t=>{r.has(t.id)||x?.(e)}),n.forEach(t=>{i.has(t.id)||S?.(e,t)}),K(t=>{let{[e.id]:n,...r}=t;return r}),Y(null,e),E?.(e)},[Z,x,S,E,C,D,T,Y]),Q=(0,m.useCallback)(e=>{pe===e.id&&(K(t=>{let{[e.id]:n,...r}=t;return r}),Y(null,e)),b?.(e)},[b,pe,Y]),be=v?(0,h.jsx)(n.t,{type:`button`,variant:`dark`,onClick:v,icon:g.Plus,children:L.createLabel}):void 0,$=(0,h.jsx)(`div`,{className:`product-options-matrix--body min-w-0`,children:(0,h.jsxs)(`div`,{className:`product-options-matrix--panel overflow-hidden rounded-radius-lg border border-border bg-background`,children:[q?(0,h.jsxs)(`div`,{className:`product-options-matrix--panel-header flex min-w-0 flex-wrap items-center justify-between gap-space-md p-surface`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:L.title}),be]}):null,me?(0,h.jsxs)(`div`,{className:t.cn(`product-options-matrix--list`,q&&`border-t border-border/70`),children:[i.map((e,i)=>{let a=e.values??[],s=H.has(e.id),l=pe===e.id,u=!!y||U,d=!!b,f=!!x,p=Z(e),m=A?.(e,{index:i,onEdit:u?()=>X(e):void 0,onDelete:b?()=>Q(e):void 0,onAddValue:x?()=>x(e):void 0,onToggleCollapsed:()=>J(e),collapsed:s}),_=[...f?[{id:`add-value`,label:L.addValueLabel,icon:(0,h.jsx)(g.Plus,{className:`size-3.5`}),onClick:()=>x?.(e),variant:`ghost`}]:[],...d?[{id:`delete`,label:L.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>Q(e),variant:`destructive`}]:[]],v=P?(0,h.jsxs)(h.Fragment,{children:[!!u&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>X(e),children:L.editLabel}),(0,h.jsx)(I,{item:e,actions:_,menuLabel:L.actionsLabel})]}):null,C=m===void 0?v:m;if(l)return(0,h.jsx)(`div`,{className:`product-options-matrix--item product-options-matrix--item-editing border-b border-border/70 p-surface last:border-b-0`,children:(0,h.jsxs)(`div`,{className:`grid min-w-0 grid-cols-[auto_minmax(0,1fr)] gap-x-space-md gap-y-space-lg`,children:[(0,h.jsx)(`span`,{className:`product-options-matrix--drag-handle mt-[2.625rem] flex size-icon-lg items-center justify-center text-muted-foreground`,"aria-hidden":`true`,children:(0,h.jsx)(g.GripVertical,{className:`size-icon-sm`})}),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor grid min-w-0 gap-space-lg`,children:[(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-field grid min-w-0 gap-space-sm`,children:[(0,h.jsx)(r.s,{weight:`medium`,children:L.optionNameLabel}),(0,h.jsx)(o.t,{value:p.name,onChange:t=>{let n=t.currentTarget.value;_e(e,e=>({...e,name:n}))},"aria-label":L.optionNameLabel,className:`bg-background`})]}),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-field grid min-w-0 gap-space-sm`,children:[(0,h.jsx)(r.s,{weight:`medium`,children:L.optionValuesLabel}),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-values grid min-w-0 gap-space-xs`,children:[p.values.length===0&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,children:L.noValuesLabel}),p.values.map(t=>(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-value grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-space-sm`,children:[(0,h.jsx)(`span`,{className:`flex size-icon-lg items-center justify-center text-muted-foreground`,"aria-hidden":`true`,children:(0,h.jsx)(g.GripVertical,{className:`size-icon-sm`})}),(0,h.jsx)(o.t,{value:z(t.label),onChange:n=>{let r=n.currentTarget.value;_e(e,e=>({...e,values:e.values.map(e=>e.id===t.id?{...e,label:r}:e)}))},"aria-label":`${L.optionValuesLabel}: ${z(t.label)}`,className:`bg-background`}),(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>_e(e,e=>({...e,values:e.values.filter(e=>e.id!==t.id)})),"aria-label":L.deleteValueLabel,className:`text-muted-foreground hover:text-destructive`,children:[(0,h.jsx)(g.Trash2,{className:`size-icon-sm`,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:L.deleteValueLabel})]})]},t.id)),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-add-value grid min-w-0 grid-cols-[auto_minmax(0,1fr)_auto] items-center gap-space-sm`,children:[(0,h.jsx)(`span`,{className:`size-icon-lg`,"aria-hidden":`true`}),(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`outline`,onClick:()=>_e(e,t=>{let n=t.values.length+1;return{...t,values:[...t.values,{id:`${e.id}-draft-value-${n}`,label:``}]}}),fullWidth:!0,className:`justify-start border-input bg-background text-muted-foreground hover:bg-muted/60`,children:L.addAnotherValueLabel}),(0,h.jsx)(`span`,{className:`size-control-sm`,"aria-hidden":`true`})]})]})]}),(0,h.jsxs)(`div`,{className:`product-options-matrix--editor-actions flex min-w-0 items-center justify-between gap-space-md`,children:[(0,h.jsx)(`div`,{children:!!b&&(0,h.jsx)(n.t,{type:`button`,variant:`error`,buttonStyle:`outline`,onClick:()=>Q(e),children:L.deleteLabel})}),(0,h.jsxs)(`div`,{className:`flex items-center justify-end gap-space-sm`,children:[(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>ve(e),children:L.cancelLabel}),(0,h.jsx)(n.t,{type:`button`,variant:`dark`,onClick:()=>ye(e),children:L.saveLabel??L.doneLabel})]})]})]})]})},e.id);let w=(0,h.jsxs)(`span`,{className:`grid min-w-0 gap-space-sm`,children:[(0,h.jsxs)(`span`,{className:`flex min-w-0 flex-wrap items-center gap-space-sm`,children:[(0,h.jsx)(r.s,{tag:`span`,weight:`semibold`,className:`min-w-0 whitespace-normal break-words`,children:e.name}),e.badge]}),!!e.description&&(0,h.jsx)(r.s,{tag:`span`,size:`xs`,type:`secondary`,className:`max-w-prose`,children:e.description}),!s&&(0,h.jsx)(`span`,{className:`product-options-matrix--values grid gap-space-sm`,children:a.length===0?(0,h.jsx)(r.s,{tag:`span`,size:`xs`,type:`secondary`,children:L.noValuesLabel}):(0,h.jsx)(`span`,{className:`flex flex-wrap gap-space-xs`,children:a.map((r,a)=>{let o=S?()=>S(e,r):void 0,s=ee?.(r,{option:e,optionIndex:i,valueIndex:a,onDelete:o});return s?(0,h.jsx)(`span`,{children:s},r.id):(0,h.jsxs)(`span`,{className:t.cn(`product-options-matrix--value inline-flex max-w-full items-center gap-space-xs rounded-radius-sm bg-muted px-space-sm py-space-xs text-pxs font-medium leading-none text-muted-foreground`,r.disabled&&`opacity-60`),children:[(0,h.jsx)(`span`,{className:`min-w-0 whitespace-normal break-words`,children:B(r)}),r.badge,!!o&&P&&(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:o,"aria-label":L.deleteValueLabel,className:`size-icon-sm shrink-0 rounded-radius-sm text-muted-foreground/70 hover:text-destructive`,children:[(0,h.jsx)(g.X,{className:`size-3`,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:L.deleteValueLabel})]})]},r.id)})})})]});return(0,h.jsx)(`div`,{className:`product-options-matrix--item border-b border-border/70 last:border-b-0`,children:(0,h.jsxs)(`div`,{className:`grid min-w-0 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-space-md gap-y-space-md p-surface lg:grid-cols-[auto_minmax(0,1fr)_auto]`,children:[M?(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>J(e),"aria-expanded":!s,"aria-label":s?L.expandOptionLabel:L.collapseOptionLabel,className:`product-options-matrix--collapse-trigger mt-space-2xs shrink-0 text-muted-foreground`,children:[(0,h.jsx)(g.ChevronDown,{className:t.cn(`size-icon-sm transition-transform`,s&&`-rotate-90`),"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:s?L.expandOptionLabel:L.collapseOptionLabel})]}):(0,h.jsx)(`span`,{className:`product-options-matrix--drag-handle flex size-icon-lg items-center justify-center text-muted-foreground`,"aria-hidden":`true`,children:(0,h.jsx)(g.GripVertical,{className:`size-icon-sm`})}),(0,h.jsx)(`div`,{className:`product-options-matrix--item-main min-w-0`,children:u&&!P?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:()=>X(e),"aria-label":V(L.editLabel,e),className:`h-auto min-h-0 w-full justify-start rounded-radius-sm p-0 text-left hover:bg-transparent focus-visible:ring-offset-2`,children:w}):w}),(F||!!C)&&(0,h.jsxs)(`div`,{className:`product-options-matrix--item-actions col-start-2 flex min-w-fit flex-wrap items-center justify-start gap-space-md lg:col-start-auto lg:justify-end`,children:[!!k&&F&&(0,h.jsxs)(`div`,{className:`inline-flex items-center gap-space-sm text-pxs font-medium text-muted-foreground`,children:[(0,h.jsx)(`span`,{id:`product-option-${e.id}-variant-toggle-label`,children:L.useForVariantsLabel}),(0,h.jsx)(c.J,{checked:!!e.usedForVariants,onCheckedChange:t=>k(e,t),"aria-labelledby":`product-option-${e.id}-variant-toggle-label`})]}),C]})]})},e.id)}),!!he&&(0,h.jsx)(`div`,{className:`product-options-matrix--create-row border-t border-border/70`,children:(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:v,icon:g.PlusCircle,className:`h-auto min-h-control-sm w-full justify-start rounded-none px-surface py-space-sm text-foreground hover:bg-muted/60`,children:L.addAnotherOptionLabel})})]}):(0,h.jsx)(`div`,{className:t.cn(q&&`border-t border-border/70`),children:ie??(0,h.jsx)(N,{title:L.emptyTitle,description:L.emptyDescription,action:v&&!q?(0,h.jsx)(n.t,{type:`button`,onClick:v,icon:g.Plus,children:L.createLabel}):void 0})})]})});return s===`embedded`?(0,h.jsx)(`section`,{"aria-label":L.title,className:t.cn(`product-options-matrix--component min-w-0`,ae),children:$}):(0,h.jsx)(a.t,{title:L.title,description:L.description,actions:te,headerAction:be,headerEnd:ne,footerSlot:re,contentClassName:`mt-1`,className:t.cn(`product-options-matrix--component w-full`,ae),children:$})}H.displayName=`ProductOptionsMatrix`;function U({options:r=[],onManageOptions:i,onCreateOption:o,onSelectOption:s,onEditOption:c,onDeleteOption:l,renderOptionActions:u,actions:f,footerSlot:p,renderOption:m,empty:_,className:v,strings:y}){let b=e.useStrings(S,y),x=!!(s||c||l||u),C=[...f??[],...o&&i?[{id:`manage-options`,label:b.manageLabel,icon:(0,h.jsx)(g.SlidersHorizontal,{className:`size-3.5`}),onClick:i}]:[]],w=o||i?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:o??i,icon:o?g.Plus:g.SlidersHorizontal,children:o?b.createLabel:b.manageLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.SlidersHorizontal,{className:`size-4`}),title:b.title,description:b.description,actions:C.length>0?C:void 0,headerAction:w,footerSlot:p,contentClassName:`mt-1`,className:t.cn(`product-options-summary--component w-full`,v),children:r.length===0?_??(0,h.jsx)(N,{title:b.emptyTitle,description:b.emptyDescription,action:o?(0,h.jsx)(n.t,{type:`button`,onClick:o,icon:g.Plus,children:b.createLabel}):void 0}):(0,h.jsx)(d.o,{children:r.map((e,t)=>(()=>{let n=x?(0,h.jsx)(ce,{option:e,index:t,onSelectOption:s,onEditOption:c,onDeleteOption:l,renderOptionActions:u,menuLabel:b.actionsLabel,strings:{viewLabel:b.viewLabel,editLabel:b.editLabel,deleteLabel:b.deleteLabel,actionsLabel:b.actionsLabel}}):void 0;return m?(0,h.jsx)(`div`,{children:m(e,t)},e.id):(0,h.jsx)(L,{item:e,actions:n},e.id)})())})})}U.displayName=`ProductOptionsSummary`;function W({policies:r=[],onCreatePolicy:i,onSelectPolicy:o,onEditPolicy:s,onDeletePolicy:c,renderPolicyActions:l,actions:u,footerSlot:f,renderPolicy:p,empty:m,className:_,strings:v}){let y=e.useStrings(E,v),b=i?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:i,icon:g.Plus,children:y.createLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ShieldCheck,{className:`size-4`}),title:y.title,description:y.description,actions:u,headerAction:b,footerSlot:f,contentClassName:`mt-1`,className:t.cn(`product-policies-card--component w-full`,_),children:r.length===0?m??(0,h.jsx)(N,{title:y.emptyTitle,description:y.emptyDescription,action:i?(0,h.jsx)(n.t,{type:`button`,onClick:i,icon:g.Plus,children:y.createLabel}):void 0}):(0,h.jsx)(d.o,{children:r.map((e,t)=>(()=>{let n=o?()=>o(e):void 0,r=s?()=>s(e):void 0,i=c?()=>c(e):void 0,a=[...r?[{id:`edit`,label:y.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:y.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]],u=l?l(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:y.actionsLabel});return p?(0,h.jsx)(`div`,{children:p(e,t)},e.id):(0,h.jsx)(L,{item:e,actionLabel:y.viewLabel,onSelect:n,actions:u},e.id)})())})})}W.displayName=`ProductPoliciesCard`;var G=`-`;function de({lines:i=[],subtotal:o,tax:s,discount:c,total:l,onOpenQuote:u,onCreateLine:d,onSelectLine:f,onEditLine:m,onDeleteLine:_,renderLineActions:v,actions:y,footerSlot:b,empty:x,className:S,strings:C}){let w=e.useStrings(T,C),E=d||u?(0,h.jsxs)(`div`,{className:`flex items-center gap-2`,children:[!!d&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:d,icon:g.Plus,children:w.createLineLabel}),!!u&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:u,icon:g.ArrowRight,iconPosition:`right`,children:w.actionLabel})]}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ReceiptText,{className:`size-4`}),title:w.title,description:w.description,actions:y,headerAction:E,footerSlot:b,contentClassName:`mt-1`,className:t.cn(`product-quote-preview-card--component w-full`,S),children:i.length===0?x??(0,h.jsx)(N,{title:w.emptyTitle,description:w.emptyDescription,action:d?(0,h.jsx)(n.t,{type:`button`,onClick:d,icon:g.Plus,children:w.createLineLabel}):void 0}):(0,h.jsxs)(`div`,{className:`space-y-3`,children:[(0,h.jsx)(`div`,{className:`space-y-2`,children:i.map((e,t)=>{let n=f?()=>f(e):void 0,i=m?()=>m(e):void 0,a=_?()=>_(e):void 0,o=[...n?[{id:`open`,label:w.viewLineLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>n(),variant:`ghost`}]:[],...i?[{id:`edit`,label:w.editLineLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>i(),variant:`ghost`}]:[],...a?[{id:`delete`,label:w.deleteLineLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>a(),variant:`destructive`}]:[]],s=v?v(e,{index:t,onSelect:n,onEdit:i,onDelete:a}):(0,h.jsx)(I,{item:e,actions:o,menuLabel:w.lineActionsLabel});return(0,h.jsxs)(`div`,{className:`flex items-start justify-between gap-3 rounded-md border border-border bg-muted/20 px-3 py-2`,children:[(0,h.jsxs)(`div`,{className:`min-w-0`,children:[(0,h.jsx)(r.s,{weight:`semibold`,className:`truncate`,children:e.label}),!!e.description&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mt-0.5`,children:e.description}),!!e.quantity&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mt-1`,children:e.quantity})]}),(0,h.jsxs)(`div`,{className:`flex shrink-0 items-center gap-2`,children:[(0,h.jsx)(r.s,{weight:`semibold`,className:`tabular-nums`,children:e.amount}),s]})]},e.id)})}),(0,h.jsxs)(`div`,{className:`space-y-1.5 rounded-md bg-muted/30 px-3 py-2.5`,children:[o!==void 0&&(0,h.jsx)(p.i,{label:w.subtotalLabel,value:o,mono:!0}),s!==void 0&&(0,h.jsx)(p.i,{label:w.taxLabel,value:s,mono:!0}),c!==void 0&&(0,h.jsx)(p.i,{label:w.discountLabel,value:c,mono:!0,valueClassName:`text-success`}),(0,h.jsx)(p.i,{label:w.totalLabel,value:l??`-`,mono:!0,labelClassName:`font-semibold`,valueClassName:`font-semibold`})]})]})})}de.displayName=`ProductQuotePreviewCard`;function fe({items:i=[],score:o,scoreLabel:s,summary:c,onCreateReadinessItem:l,onSelectReadinessItem:f,onEditReadinessItem:p,onDeleteReadinessItem:m,renderReadinessItemActions:v,actions:y,footerSlot:b,renderItem:x,empty:S,className:C,strings:w}){let T=e.useStrings(_,w),E=o===void 0?void 0:te(o),D=l?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:l,icon:g.Plus,children:T.createLabel}):void 0;return(0,h.jsxs)(a.t,{icon:(0,h.jsx)(g.ClipboardCheck,{className:`size-4`}),title:T.title,description:T.description,actions:y,headerAction:D,footerSlot:b,contentClassName:`mt-1`,className:t.cn(`product-readiness-card--component w-full`,C),children:[E!==void 0&&(0,h.jsxs)(`div`,{className:`mb-3 rounded-md border border-border bg-muted/20 px-3 py-2.5`,children:[(0,h.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-3`,children:[(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,children:s??T.scoreLabel}),(0,h.jsxs)(r.s,{size:`xs`,weight:`semibold`,className:`tabular-nums`,children:[E,`%`]})]}),(0,h.jsx)(u.n,{value:E,"aria-label":typeof s==`string`?s:T.progressLabel,"aria-valuetext":`${E}%`,className:`h-1.5`})]}),!!c&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mb-3 leading-relaxed`,children:c}),i.length===0?S??(0,h.jsx)(N,{title:T.emptyTitle,description:T.emptyDescription,action:l?(0,h.jsx)(n.t,{type:`button`,onClick:l,icon:g.Plus,children:T.createLabel}):void 0}):(0,h.jsx)(d.o,{children:i.map((e,t)=>{let n=f?()=>f(e):void 0,r=p?()=>p(e):void 0,i=m?()=>m(e):void 0,a=[...r?[{id:`edit`,label:T.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:T.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]],o=v?v(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:T.actionsLabel});return x?(0,h.jsx)(`div`,{children:x(e,t)},e.id):(0,h.jsx)(ae,{item:e,actionFallback:T.actionLabel,onSelect:n,actions:o},e.id)})})]})}fe.displayName=`ProductReadinessCard`;function K({metrics:r=[],onCreateMetric:i,onSelectMetric:o,onEditMetric:s,onDeleteMetric:c,renderMetricActions:l,actions:u,footerSlot:f,empty:p,className:m,strings:_}){let y=e.useStrings(v,_),b=i?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:i,icon:g.Plus,children:y.createLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.Layers3,{className:`size-4`}),title:y.title,description:y.description,actions:u,headerAction:b,footerSlot:f,contentClassName:`mt-1`,className:t.cn(`product-structure-card--component w-full`,m),children:r.length===0?p??(0,h.jsx)(N,{title:y.emptyTitle,description:y.emptyDescription,action:i?(0,h.jsx)(n.t,{type:`button`,onClick:i,icon:g.Plus,children:y.createLabel}):void 0}):(0,h.jsx)(d.o,{children:r.map((e,t)=>{let n=o?()=>o(e):void 0,r=s?()=>s(e):void 0,i=c?()=>c(e):void 0,a=[...n?[{id:`open`,label:y.viewLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>n(),variant:`ghost`}]:[],...r?[{id:`edit`,label:y.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>r(),variant:`ghost`}]:[],...i?[{id:`delete`,label:y.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>i(),variant:`destructive`}]:[]];return(0,h.jsx)(ie,{metric:e,actions:l?l(e,{index:t,onSelect:n,onEdit:r,onDelete:i}):(0,h.jsx)(I,{item:e,actions:a,menuLabel:y.actionsLabel})},e.id)})})})}K.displayName=`ProductStructureCard`;function pe({variant:n,index:r=0,onSelectVariant:i,onEditVariant:a,onDuplicateVariant:o,onDeleteVariant:s,renderVariantActions:c,menuLabel:l,className:u,strings:d}){let f=e.useStrings(A,d),p=i?()=>i(n):void 0,m=a?()=>a(n):void 0,_=o?()=>o(n):void 0,v=s?()=>s(n):void 0;return p||m||_||v||c?c?(0,h.jsx)(`div`,{className:t.cn(`product-variant-action-menu--component flex justify-end`,u),children:c(n,{index:r,onSelect:p,onEdit:m,onDuplicate:_,onDelete:v})}):(0,h.jsx)(I,{item:n,menuLabel:l??f.actionsLabel,className:t.cn(`product-variant-action-menu--component`,u),actions:[...p?[{id:`open`,label:f.viewLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>p(),variant:`ghost`}]:[],...m?[{id:`edit`,label:f.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>m(),variant:`ghost`}]:[],..._?[{id:`duplicate`,label:f.duplicateLabel,icon:(0,h.jsx)(g.Copy,{className:`size-3.5`}),onClick:()=>_(),variant:`ghost`}]:[],...v?[{id:`delete`,label:f.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>v(),variant:`destructive`}]:[]]}):null}pe.displayName=`ProductVariantActionMenu`;function me({variant:e,index:n,onSelectVariant:r,onEditVariant:i,onDuplicateVariant:a,onDeleteVariant:o,renderVariantActions:s,strings:c,className:l}){return(0,h.jsx)(pe,{variant:e,index:n,onSelectVariant:r,onEditVariant:i,onDuplicateVariant:a,onDeleteVariant:o,renderVariantActions:s,menuLabel:c.headers.actions,className:t.cn(`product-variant-actions--component product-variants-table--row-actions`,l),strings:{viewLabel:c.viewLabel,editLabel:c.editLabel,duplicateLabel:c.duplicateLabel,deleteLabel:c.deleteLabel,actionsLabel:c.headers.actions}})}function q({label:e,children:n,className:i,textClassName:a,weight:o}){return(0,h.jsxs)(`div`,{className:t.cn(`product-variant-cell--component grid min-w-0 grid-cols-[6rem_minmax(0,1fr)] items-center gap-2 lg:block lg:space-y-0.5`,i),children:[(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`uppercase tracking-wide lg:sr-only`,children:e}),(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,weight:o,className:t.cn(`truncate`,a),children:n})]})}function he({variants:o=[],onCreateVariant:s,onSelectVariant:c,onEditVariant:l,onDuplicateVariant:u,onDeleteVariant:d,renderVariantActions:f,actions:p,footerSlot:m,empty:_,className:v,strings:y}){let b=e.useStrings(D,y),x=!!(c||l||u||d||f),S=`lg:grid-cols-[minmax(12rem,1.45fr)_minmax(4rem,0.6fr)_minmax(4rem,0.55fr)_minmax(4.75rem,0.7fr)_minmax(4rem,0.55fr)]`,C=s?(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:s,icon:g.Plus,children:b.createLabel}):void 0;return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ListChecks,{className:`size-4`}),title:b.title,description:b.description,actions:p,headerAction:C,footerSlot:m,contentClassName:`mt-1`,className:t.cn(`product-variants-table--component w-full`,v),children:o.length===0?_??(0,h.jsx)(N,{title:b.emptyTitle,description:b.emptyDescription,action:s?(0,h.jsx)(n.t,{type:`button`,onClick:s,icon:g.Plus,children:b.createLabel}):void 0}):(0,h.jsx)(`div`,{className:`product-variants-table--table rounded-md border border-border`,children:(0,h.jsxs)(`div`,{className:`lg:min-w-136`,children:[(0,h.jsxs)(`div`,{className:t.cn(`hidden gap-3 border-b border-border bg-muted/40 px-3 py-2 lg:grid`,S),children:[(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.variant}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.price}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.inventory}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.sku}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,weight:`semibold`,type:`secondary`,children:b.headers.updated})]}),(0,h.jsx)(`div`,{className:`divide-y divide-border`,children:o.map((e,n)=>(0,h.jsxs)(`div`,{className:t.cn(`grid gap-2 px-3 py-3 lg:items-center lg:gap-3 lg:py-2.5`,S),children:[(0,h.jsx)(`div`,{className:`min-w-0`,children:(0,h.jsxs)(`div`,{className:`flex min-w-0 items-start gap-2`,children:[(0,h.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,h.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,h.jsx)(r.s,{weight:`semibold`,className:`truncate`,children:e.name}),!!e.status&&(0,h.jsx)(i.t,{variant:e.statusVariant??`secondary`,children:e.status})]}),!!e.description&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`mt-0.5`,children:e.description}),!!(e.options?.length||e.channels)&&(0,h.jsxs)(`div`,{className:`mt-1.5 flex flex-wrap items-center gap-1`,children:[e.options?.map((e,t)=>(0,h.jsx)(i.t,{variant:`secondary`,children:e},t)),!!e.channels&&(0,h.jsxs)(r.s,{tag:`span`,size:`xs`,type:`secondary`,className:`pl-1`,children:[b.headers.channels,`: `,e.channels]})]})]}),!!x&&(0,h.jsx)(pe,{variant:e,index:n,onSelectVariant:c,onEditVariant:l,onDuplicateVariant:u,onDeleteVariant:d,renderVariantActions:f,menuLabel:b.headers.actions,className:`shrink-0`,strings:{viewLabel:b.viewLabel,editLabel:b.editLabel,duplicateLabel:b.duplicateLabel,deleteLabel:b.deleteLabel,actionsLabel:b.headers.actions}})]})}),(0,h.jsx)(q,{label:b.headers.price,weight:`semibold`,textClassName:`tabular-nums text-foreground`,children:e.price??`-`}),(0,h.jsx)(q,{label:b.headers.inventory,textClassName:`tabular-nums`,children:e.inventory??`-`}),(0,h.jsx)(q,{label:b.headers.sku,textClassName:`tabular-nums`,children:e.sku??`-`}),(0,h.jsx)(q,{label:b.headers.updated,children:e.updatedAt??`-`})]},e.id))})]})})})}he.displayName=`ProductVariantsTable`;function ge({details:n,contract:r,options:i,variants:a,readiness:o,structure:s,operations:c,quote:l,policies:u,slots:d,className:f,mainClassName:p,railClassName:m,strings:g}){let _=e.useStrings(M,g),v=!!(o||s||c||l||u||d?.railTop||d?.railBottom);return(0,h.jsxs)(`div`,{className:t.cn(`product-overview--component @container/product-overview space-y-4`,f),children:[d?.before,(0,h.jsxs)(`div`,{className:t.cn(`grid gap-4`,v&&`@5xl/product-overview:grid-cols-[minmax(0,1fr)_22rem]`),children:[(0,h.jsxs)(`section`,{"aria-label":_.mainLabel,className:t.cn(`product-overview--main min-w-0 space-y-4`,p),children:[d?.mainTop,!!n&&(0,h.jsx)(se,{...n}),!!r&&(0,h.jsx)(R,{...r}),!!i&&(0,h.jsx)(U,{...i}),!!a&&(0,h.jsx)(he,{...a}),d?.mainBottom]}),!!v&&(0,h.jsxs)(`aside`,{"aria-label":_.railLabel,className:t.cn(`product-overview--rail min-w-0 space-y-4`,m),children:[d?.railTop,!!o&&(0,h.jsx)(fe,{...o}),!!s&&(0,h.jsx)(K,{...s}),!!c&&(0,h.jsx)(le,{...c}),!!l&&(0,h.jsx)(de,{...l}),!!u&&(0,h.jsx)(W,{...u}),d?.railBottom]})]}),d?.after]})}ge.displayName=`ProductOverview`;var J=e=>e!=null&&e!==!1&&e!==``;function Y(e,t){return[{label:t.price,value:e.price},{label:t.inventory,value:e.inventory},{label:t.sku,value:e.sku},{label:t.channels,value:e.channels},{label:t.updated,value:e.updatedAt}].filter(e=>J(e.value))}function X({variant:o,metadata:s,optionItems:c=[],media:l,onBack:u,onSelectVariant:f,onEditVariant:m,onDuplicateVariant:_,onDeleteVariant:v,onSelectOption:y,actions:b,headerEnd:x,footerSlot:S,empty:C,renderActions:w,renderMetadata:T,renderOption:E,className:D,strings:O}){let k=e.useStrings(ee,O),A=o?s??Y(o,k.metadata):[],j=!!(o&&(f||m||_||v||w)),M=(0,h.jsxs)(`div`,{className:`product-variant-details--header-actions flex items-center gap-2`,children:[!!u&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:u,icon:g.ArrowLeft,children:k.backLabel}),!!j&&o&&(0,h.jsx)(pe,{variant:o,onSelectVariant:f,onEditVariant:m,onDuplicateVariant:_,onDeleteVariant:v,renderVariantActions:w})]}),P=o?.options??[];return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ListChecks,{className:`size-4`}),title:o?.name??k.title,titleSuffix:o?.status?(0,h.jsx)(i.t,{variant:o.statusVariant??`secondary`,children:o.status}):void 0,description:o?.description??k.description,actions:b,headerAction:u||j?M:void 0,headerEnd:x,footerSlot:S,contentClassName:`mt-1`,className:t.cn(`product-variant-details--component w-full`,D),children:o?(0,h.jsxs)(`div`,{className:`product-variant-details--body grid gap-5`,children:[!!l&&(0,h.jsx)(`div`,{className:`product-variant-details--media overflow-hidden rounded-md border border-border bg-muted/30`,children:l}),T?T(o):(0,h.jsx)(p.a,{title:k.factsTitle,items:A,columns:3,dense:!0,className:`product-variant-details--metadata`}),!!P.length&&(0,h.jsxs)(`div`,{className:`product-variant-details--selected-options space-y-2`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:k.selectedOptionsTitle}),(0,h.jsx)(`div`,{className:`flex flex-wrap gap-1.5`,children:P.map((e,t)=>(0,h.jsx)(i.t,{variant:`secondary`,children:e},t))})]}),!!c.length&&(0,h.jsxs)(`div`,{className:`product-variant-details--related-options space-y-2`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:k.relatedOptionsTitle}),(0,h.jsx)(d.o,{children:c.map((e,t)=>E?(0,h.jsx)(`div`,{children:E(e,t)},e.id):(0,h.jsx)(L,{item:e,actionLabel:k.viewOptionLabel,onSelect:y?()=>y(e):void 0},e.id))})]})]}):C??(0,h.jsx)(N,{title:k.emptyTitle,description:k.emptyDescription})})}X.displayName=`ProductVariantDetails`;var Z=e=>e.map(e=>({value:e.value,label:e.label,disabled:e.disabled}));function _e({value:i,defaultValue:s,optionFields:d=[],statusOptions:f=[],onValueChange:p,onSubmit:_,onCancel:v,onDelete:y,actions:b,headerEnd:x,footerSlot:S,disabled:C=!1,isSubmitting:w=!1,className:T,strings:E}){let D=e.useStrings(j,E),O=(0,m.useId)(),k=i!==void 0,[A,ee]=(0,m.useState)(s??{}),M=(k?i:A)??{},N=C||w,P=e=>{k||ee(e),p?.(e)},F=(e,t)=>{P({...M,[e]:t})},te=(e,t)=>{P({...M,options:{...M.options??{},[e.id]:t}})},ne=e=>{e.preventDefault(),_?.(M)},re=(0,h.jsxs)(`div`,{className:`product-variant-editor--footer flex flex-col-reverse gap-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,h.jsx)(`div`,{children:!!y&&(0,h.jsx)(n.t,{type:`button`,variant:`error`,buttonStyle:`ghost`,onClick:()=>y(M),disabled:N,icon:g.Trash2,children:D.deleteLabel})}),(0,h.jsxs)(`div`,{className:`flex flex-col-reverse gap-2 sm:flex-row sm:justify-end`,children:[!!v&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:v,disabled:N,icon:g.X,children:D.cancelLabel}),!!_&&(0,h.jsx)(n.t,{type:`submit`,form:O,disabled:N,icon:g.Save,children:w?D.savingLabel:D.saveLabel})]})]}),I=!!(y||v||_);return(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.Pencil,{className:`size-4`}),title:D.title,description:D.description,actions:b,headerEnd:x,footerSlot:S??(I?re:void 0),footerDivider:!0,contentClassName:`mt-1`,className:t.cn(`product-variant-editor--component w-full`,T),children:(0,h.jsxs)(`form`,{id:O,className:`product-variant-editor--form grid gap-5`,onSubmit:ne,children:[(0,h.jsxs)(`section`,{className:`product-variant-editor--section grid gap-3`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:D.identityTitle}),(0,h.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:[(0,h.jsx)(u.D,{label:D.fields.name,required:!0,children:(0,h.jsx)(o.t,{value:M.name??``,onChange:e=>F(`name`,e.target.value),placeholder:D.placeholders.name,disabled:N})}),(0,h.jsx)(u.D,{label:D.fields.sku,children:(0,h.jsx)(o.t,{value:M.sku??``,onChange:e=>F(`sku`,e.target.value),placeholder:D.placeholders.sku,disabled:N})}),(0,h.jsx)(u.D,{label:D.fields.description,className:`md:col-span-2`,children:(0,h.jsx)(l.t,{value:M.description??``,onChange:e=>F(`description`,e.target.value),placeholder:D.placeholders.description,disabled:N,autoResize:!0,minRows:2})})]})]}),(0,h.jsxs)(`section`,{className:`product-variant-editor--section grid gap-3`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:D.commercialTitle}),(0,h.jsxs)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:[(0,h.jsx)(u.D,{label:D.fields.price,children:(0,h.jsx)(o.t,{value:M.price??``,onChange:e=>F(`price`,e.target.value),placeholder:D.placeholders.price,disabled:N})}),(0,h.jsx)(u.D,{label:D.fields.inventory,children:(0,h.jsx)(o.t,{value:M.inventory??``,onChange:e=>F(`inventory`,e.target.value),placeholder:D.placeholders.inventory,disabled:N,inputMode:`numeric`})}),(0,h.jsx)(u.D,{label:D.fields.status,children:f.length>0?(0,h.jsx)(c.Y,{options:Z(f),value:M.status??null,onChange:e=>F(`status`,e??``),placeholder:D.statusPlaceholder,disabled:N,"aria-label":D.fields.status}):(0,h.jsx)(o.t,{value:M.status??``,onChange:e=>F(`status`,e.target.value),placeholder:D.placeholders.status,disabled:N})}),(0,h.jsx)(u.D,{label:D.fields.channels,children:(0,h.jsx)(o.t,{value:M.channels??``,onChange:e=>F(`channels`,e.target.value),placeholder:D.placeholders.channels,disabled:N})})]})]}),!!d.length&&(0,h.jsxs)(`section`,{className:`product-variant-editor--section grid gap-3`,children:[(0,h.jsx)(r.s,{weight:`semibold`,children:D.optionsTitle}),(0,h.jsx)(`div`,{className:`grid gap-3 md:grid-cols-2`,children:d.map(e=>{let t=e.value??M.options?.[e.id]??``,n=!!e.choices?.length;return(0,h.jsx)(u.D,{label:e.label,helperText:e.helperText,children:n?(0,h.jsx)(c.Y,{options:Z(e.choices??[]),value:t||null,onChange:t=>te(e,t),placeholder:e.placeholder??D.optionPlaceholder,disabled:N,"aria-label":e.label}):(0,h.jsx)(o.t,{value:t,onChange:t=>te(e,t.target.value),placeholder:e.placeholder??D.optionPlaceholder,disabled:N})},e.id)})})]})]})})}_e.displayName=`ProductVariantEditor`;var ve=[`variant`,`sku`,`price`,`inventory`,`status`],ye=`text`,Q=`text`,be=`multiple`;function $(e){return typeof e==`string`||typeof e==`number`?String(e):``}function xe(e,t){let n=e.optionValues?.[t.id];if(n!=null&&n!==!1&&n!==``)return n;let r=e.optionValueIds?.[t.id];return t.values?.find(e=>e.id===r)?.label??void 0}function Se(e,t){return e.name!==void 0&&e.name!==null&&e.name!==``?e.name:t.filter(e=>e.usedForVariants!==!1).map(t=>xe(e,t)).filter(e=>e!=null&&e!==``).map(e=>$(e)).filter(Boolean).join(` / `)||`-`}function Ce(e,t){return t.filter(e=>e.usedForVariants!==!1).map(t=>xe(e,t)).filter(e=>e!=null&&e!==``)}function we(e){return e.map($).filter(Boolean).join(` / `)}function Te(e,t){return $(xe(e,t))||`-`}function Ee(e,t){return e.map(e=>t.get(e)).filter(e=>!!e)}function De(e){return e==null||e===``?`-`:e}function Oe(e){return e!=null&&e!==``}function ke(e){return e===`sku`||e===`price`||e===`inventory`}function Ae(e,t){return e===`text`||e===`field`?e:e[t]??Q}function je(e,t,n,r){return{index:e,field:t,previousValue:n,value:r}}function Me(e,n,i,a,s){let c=$(e);if(i===`field`){let e=!!a;return(0,h.jsx)(o.t,{readOnly:!e,value:c,onChange:e?e=>a(e.currentTarget.value):void 0,onBlur:s?e=>s(e.currentTarget.value):void 0,"aria-label":n,className:t.cn(`h-10 w-full min-w-36 bg-background px-space-md shadow-xs`,!e&&`text-muted-foreground`)})}return(0,h.jsx)(r.s,{className:`min-w-0 whitespace-normal break-words tabular-nums`,type:Oe(e)?`main`:`secondary`,children:De(e)})}function Ne({variants:o=[],optionGroups:c=[],groupByOptionId:l,visibleColumns:u=ve,optionCombinationDisplay:d=ye,cellDisplay:f=Q,selectionMode:p,renderOptionCombination:_,renderCell:v,selectedVariantIds:y,defaultSelectedVariantIds:b=[],onSelectedVariantIdsChange:x,onVariantFieldChange:S,onVariantFieldBlur:C,onCreateVariant:w,onGenerateVariants:T,onSelectVariant:E,onEditVariant:D,onDuplicateVariant:k,onDeleteVariant:A,onBulkEdit:ee,onBulkApply:j,onBulkDelete:M,renderVariantActions:P,renderBulkActions:F,actions:te,headerEnd:ne,footerSlot:re,empty:ie,surface:ae=`card`,className:oe,strings:L}){let R=e.useStrings(O,L),se=y!==void 0,[ce,le]=(0,m.useState)(b),z=!!(F||ee||j||M),B=(p??(z||se||x?be:`none`))===`multiple`,V=(0,m.useMemo)(()=>B?se?y:ce:[],[ce,B,se,y]),ue=(0,m.useMemo)(()=>new Map(o.map(e=>[e.id,e])),[o]),H=(0,m.useMemo)(()=>Ee(V,ue),[ue,V]),U=(0,m.useMemo)(()=>new Set(V),[V]),W=(0,m.useMemo)(()=>new Set(u),[u]),G=(0,m.useMemo)(()=>c.find(e=>e.id===l),[c,l]),de=(0,m.useMemo)(()=>new Map(o.map((e,t)=>[e.id,t])),[o]),fe=(0,m.useMemo)(()=>{if(!G)return o;let e=new Map((G.values??[]).map((e,t)=>[e.id,t]));return[...o].sort((t,n)=>{let r=t.optionValueIds?.[G.id],i=n.optionValueIds?.[G.id],a=r===void 0?void 0:e.get(r),o=i===void 0?void 0:e.get(i),s=a??2**53-1,c=o??2**53-1;return s===c?(de.get(t.id)??0)-(de.get(n.id)??0):s-c})},[G,de,o]),K=(0,m.useMemo)(()=>{if(!G)return new Map;let e=new Map;return o.forEach(t=>{let n=Te(t,G);e.set(n,(e.get(n)??0)+1)}),e},[G,o]),pe=B&&z,me=o.length>0,q=B&&me&&o.every(e=>U.has(e.id)),he=!!(E||D||k||A||P),ge=u.filter(e=>W.has(e)).length+ +!!B+ +!!he,J=(0,m.useCallback)(e=>{let t=Ee(e,ue);se||le(e),x?.(e,t)},[se,x,ue]),Y=(0,m.useCallback)(()=>J([]),[J]),X=(0,m.useCallback)((e,t)=>{B&&J(t===!0?Array.from(new Set([...V,e.id])):V.filter(t=>t!==e.id))},[B,V,J]),Z=(0,m.useCallback)(e=>{B&&J(e===!0?o.map(e=>e.id):[])},[B,J,o]),_e={selectedRows:H,selectedIds:V,allRows:o,selectedCount:H.length,totalCount:o.length,allRowsSelected:q,clearSelection:Y,setSelectedIds:J},xe=w||T?(0,h.jsxs)(`div`,{className:`product-variants-bulk-table--header-actions flex flex-wrap items-center justify-end gap-space-sm`,children:[!!T&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`outline`,onClick:T,icon:g.RefreshCw,children:R.generateLabel}),!!w&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,onClick:w,icon:g.Plus,children:R.createLabel})]}):void 0,Oe=pe?(0,h.jsxs)(`div`,{className:`product-variants-bulk-table--bulk-toolbar flex min-w-0 flex-wrap items-center justify-between gap-space-md rounded-radius-lg bg-muted/45 px-space-lg py-space-md`,children:[(0,h.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-space-md`,children:[(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,children:R.selectedLabel(H.length,o.length)}),!!H.length&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,size:`small`,onClick:Y,children:R.clearSelectionLabel})]}),(0,h.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center justify-end gap-space-md`,children:[!!ee&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`solid`,disabled:!H.length,onClick:()=>ee(H),className:`bg-background text-foreground hover:bg-background/80 disabled:opacity-70`,children:R.bulkEditLabel}),!!M&&(0,h.jsxs)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,disabled:!H.length,onClick:()=>M(H),icon:g.Trash2,className:`text-muted-foreground hover:text-destructive disabled:text-muted-foreground/55`,children:[R.bulkDeleteLabel,` (`,H.length,`)`]}),!!j&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`ghost`,disabled:!H.length,onClick:()=>j(H),className:`text-muted-foreground disabled:text-muted-foreground/55`,children:R.bulkApplyLabel}),F?.(_e)]})]}):null,Ne=o.length===0?ie??(0,h.jsx)(N,{title:R.emptyTitle,description:R.emptyDescription,action:T?(0,h.jsx)(n.t,{type:`button`,onClick:T,icon:g.RefreshCw,children:R.generateLabel}):void 0}):(0,h.jsxs)(`div`,{className:`product-variants-bulk-table--body grid min-w-0 gap-space-md`,children:[Oe,(0,h.jsx)(`div`,{className:`product-variants-bulk-table--table overflow-hidden rounded-radius-lg border border-border bg-background`,children:(0,h.jsx)(`div`,{className:`overflow-x-auto [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/40`,children:(0,h.jsxs)(`table`,{className:`w-full min-w-max border-collapse`,children:[(0,h.jsxs)(`colgroup`,{children:[B&&(0,h.jsx)(`col`,{className:`w-14 min-w-14 max-w-14`,style:{width:`3.5rem`}}),W.has(`variant`)&&(0,h.jsx)(`col`,{}),W.has(`sku`)&&(0,h.jsx)(`col`,{}),W.has(`price`)&&(0,h.jsx)(`col`,{}),W.has(`inventory`)&&(0,h.jsx)(`col`,{}),W.has(`status`)&&(0,h.jsx)(`col`,{}),W.has(`updated`)&&(0,h.jsx)(`col`,{}),he&&(0,h.jsx)(`col`,{style:{width:`4.5rem`}})]}),(0,h.jsx)(`thead`,{children:(0,h.jsxs)(`tr`,{className:`h-12 border-b border-border/70 bg-muted/45`,children:[B&&(0,h.jsx)(`th`,{className:`w-14 min-w-14 max-w-14 px-0 py-space-md text-center align-middle`,style:{width:`3.5rem`},children:(0,h.jsx)(s.t,{checked:q,onCheckedChange:Z,"aria-label":R.selectAllLabel,className:`mx-auto`})}),W.has(`variant`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.variant})}),W.has(`sku`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.sku})}),W.has(`price`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.price})}),W.has(`inventory`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.inventory})}),W.has(`status`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.status})}),W.has(`updated`)&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-left align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.updated})}),he&&(0,h.jsx)(`th`,{className:`px-space-lg py-space-md text-right align-middle`,children:(0,h.jsx)(r.s,{tag:`span`,size:`pxs`,type:`secondary`,weight:`medium`,className:`whitespace-normal uppercase tracking-wider`,children:R.headers.actions})})]})}),(0,h.jsx)(`tbody`,{children:fe.map((e,t)=>{let n=de.get(e.id)??t,a=G?Te(e,G):null,o=t>0?fe[t-1]:void 0,l=G&&o?Te(o,G):null,u=!!G&&a!==l,p=U.has(e.id),y={index:n,onSelect:E?()=>E(e):void 0,onEdit:D?()=>D(e):void 0,onDuplicate:k?()=>k(e):void 0,onDelete:A?()=>A(e):void 0,isSelected:p,onToggleSelected:B?t=>X(e,t):void 0},b=G?c.filter(e=>e.id!==G.id):c,x=Ce(e,b),w=G?Se({...e,name:void 0},b):Se(e,c),T=w===`-`&&G?Se(e,c):w,O=we(x),ee=O===$(T),j=(t,r,i=Q)=>({index:n,column:t,value:r,variantName:T,optionValues:x,optionLabel:O,cellDisplay:i,onChange:ke(t)&&S?i=>S(e,t,i,je(n,t,r,i)):void 0,onBlur:ke(t)&&C?i=>C(e,t,i,je(n,t,r,i)):void 0}),M=(t,n,r,i)=>{let a=j(t,n,r),o=v?.(e,a);return o===void 0?i(a):o},N=d!==`none`&&x.length>0&&(G?!ee:d===`tags`||!ee),F=d===`none`?null:_?.(e,{optionGroups:c,optionValues:x,optionLabel:O,display:d}),te=[...E?[{id:`view`,label:R.viewLabel,icon:(0,h.jsx)(g.Eye,{className:`size-3.5`}),onClick:()=>E(e),variant:`ghost`}]:[],...D?[{id:`edit`,label:R.editLabel,icon:(0,h.jsx)(g.Pencil,{className:`size-3.5`}),onClick:()=>D(e),variant:`ghost`}]:[],...k?[{id:`duplicate`,label:R.duplicateLabel,icon:(0,h.jsx)(g.Copy,{className:`size-3.5`}),onClick:()=>k(e),variant:`ghost`}]:[],...A?[{id:`delete`,label:R.deleteLabel,icon:(0,h.jsx)(g.Trash2,{className:`size-3.5`}),onClick:()=>A(e),variant:`destructive`}]:[]];return(0,h.jsxs)(m.Fragment,{children:[u&&(0,h.jsx)(`tr`,{className:`product-variants-bulk-table--group-row border-b border-border/70 bg-muted/30`,children:(0,h.jsx)(`td`,{colSpan:ge,className:`px-space-lg py-space-md align-middle`,children:(0,h.jsxs)(`div`,{className:`flex min-w-0 items-center gap-space-sm`,children:[(0,h.jsx)(r.s,{tag:`span`,weight:`semibold`,className:`min-w-0 whitespace-normal break-words`,children:a}),(0,h.jsx)(r.s,{tag:`span`,size:`xs`,type:`secondary`,className:`whitespace-nowrap`,children:R.groupCountLabel(K.get(a??``)??0)})]})})}),(0,h.jsxs)(`tr`,{className:`h-20 border-b border-border/70 last:border-b-0`,children:[B&&(0,h.jsx)(`td`,{className:`w-14 min-w-14 max-w-14 px-0 py-space-lg text-center align-middle`,style:{width:`3.5rem`},children:(0,h.jsx)(s.t,{checked:p,onCheckedChange:t=>X(e,t),"aria-label":R.selectRowLabel(n),className:`mx-auto`})}),W.has(`variant`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-lg align-middle`,children:M(`variant`,T,Q,()=>(0,h.jsxs)(`div`,{className:`grid min-w-0 gap-space-xs`,children:[(0,h.jsx)(r.s,{weight:`medium`,className:`min-w-0 whitespace-normal break-words`,children:T}),F,!F&&N&&d===`text`&&(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,className:`min-w-0 whitespace-normal break-words`,children:x.map((t,n)=>(0,h.jsxs)(`span`,{children:[n>0?` / `:null,t]},`${e.id}-option-text-${n}`))}),!F&&N&&d===`tags`&&(0,h.jsx)(`div`,{className:`flex min-w-0 flex-wrap gap-space-xs`,children:x.map((t,n)=>(0,h.jsx)(`span`,{className:`max-w-full rounded-radius-sm bg-muted px-space-sm py-space-2xs text-pxs font-medium text-muted-foreground`,children:t},`${e.id}-option-${n}`))})]}))}),W.has(`sku`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-md align-middle`,children:M(`sku`,e.sku,Ae(f,`sku`),t=>Me(e.sku,`${R.headers.sku}: ${$(T)}`,t.cellDisplay,t.onChange,t.onBlur))}),W.has(`price`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-md align-middle`,children:M(`price`,e.price,Ae(f,`price`),t=>Me(e.price,`${R.headers.price}: ${$(T)}`,t.cellDisplay,t.onChange,t.onBlur))}),W.has(`inventory`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-md align-middle`,children:M(`inventory`,e.inventory,Ae(f,`inventory`),t=>Me(e.inventory,`${R.headers.inventory}: ${$(T)}`,t.cellDisplay,t.onChange,t.onBlur))}),W.has(`status`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-lg align-middle`,children:M(`status`,e.status,Q,()=>e.status?(0,h.jsx)(i.t,{variant:e.statusVariant??`secondary`,children:e.status}):(0,h.jsx)(r.s,{type:`secondary`,children:`-`}))}),W.has(`updated`)&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-lg align-middle`,children:M(`updated`,e.updatedAt,Q,()=>(0,h.jsx)(r.s,{size:`xs`,type:`secondary`,children:De(e.updatedAt)}))}),he&&(0,h.jsx)(`td`,{className:`px-space-lg py-space-lg text-right align-middle`,children:P?P(e,y):(0,h.jsx)(I,{item:e,actions:te,menuLabel:R.headers.actions})})]})]},e.id)})})]})})})]});return ae===`embedded`?(0,h.jsx)(`section`,{"aria-label":R.title,className:t.cn(`product-variants-bulk-table--component min-w-0`,oe),children:Ne}):(0,h.jsx)(a.t,{icon:(0,h.jsx)(g.ListChecks,{className:`size-4`}),title:R.title,description:R.description,actions:te,headerAction:xe,headerEnd:ne,footerSlot:re,contentClassName:`mt-1`,className:t.cn(`product-variants-bulk-table--component w-full`,oe),children:Ne})}Ne.displayName=`ProductVariantsBulkTable`;function Pe({optionGroups:i=[],variants:o=[],visibleColumns:s,optionCombinationDisplay:l,cellDisplay:u,selectionMode:d,renderOptionCombination:f,renderCell:p,selectedVariantIds:_,defaultSelectedVariantIds:v,onSelectedVariantIdsChange:y,onVariantFieldChange:b,onVariantFieldBlur:x,collapsedOptionIds:S,defaultCollapsedOptionIds:C,onCollapsedOptionIdsChange:w,editingOptionId:T,defaultEditingOptionId:E,onEditingOptionIdChange:D,onCreateOption:O,onEditOption:A,onDeleteOption:ee,onAddValue:j,onDeleteValue:M,onOptionNameChange:N,onValueLabelChange:P,onDoneEditingOption:F,onSaveEditingOption:te,onCancelEditingOption:ne,onToggleUsedForVariants:re,renderOptionActions:I,renderValue:ie,onCreateVariant:ae,onGenerateVariants:oe,onSelectVariant:L,onEditVariant:R,onDuplicateVariant:se,onDeleteVariant:ce,onBulkEdit:le,onBulkApply:z,onBulkDelete:B,renderVariantActions:V,renderBulkActions:ue,groupByOptionId:U,defaultGroupByOptionId:W,onGroupByOptionIdChange:G,onSearchVariants:de,onFilterVariants:fe,controlsEnd:K,actions:pe,headerEnd:me,footerSlot:q,className:he,strings:ge,optionsStrings:J,variantsStrings:Y}){let X=e.useStrings(k,ge),Z=(0,m.useMemo)(()=>i.filter(e=>e.usedForVariants!==!1),[i]),_e=Z[0]?.id??null,ve=U!==void 0,[ye,Q]=(0,m.useState)(W??_e),be=U??ye??_e,$=(0,m.useMemo)(()=>Z.map(e=>({value:e.id,label:String(typeof e.name==`string`||typeof e.name==`number`?e.name:e.id)})),[Z]),xe=(0,m.useCallback)(e=>{let t=i.find(t=>t.id===e);ve||Q(e??null),G?.(e,t)},[ve,G,i]),Se=oe||ae?(0,h.jsxs)(`div`,{className:`product-variants-manager--header-actions flex min-w-0 flex-wrap items-center justify-end gap-space-sm`,children:[!!oe&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`outline`,onClick:oe,icon:g.RefreshCw,children:X.generateLabel}),!!ae&&(0,h.jsx)(n.t,{type:`button`,variant:`secondary`,buttonStyle:`outline`,onClick:ae,icon:g.Plus,children:X.createVariantLabel})]}):void 0;return(0,h.jsx)(a.t,{title:X.title,description:X.description,actions:pe,actionsLabel:X.actionsLabel,headerAction:Se,headerEnd:me,footerSlot:q,contentClassName:`mt-1 px-0 pb-0`,className:t.cn(`product-variants-manager--component w-full`,he),children:(0,h.jsxs)(`div`,{className:`product-variants-manager--body grid min-w-0 gap-0`,children:[(0,h.jsx)(`section`,{className:`product-variants-manager--options min-w-0 px-surface pb-space-lg`,children:(0,h.jsx)(H,{optionGroups:i,collapsedOptionIds:S,defaultCollapsedOptionIds:C,onCollapsedOptionIdsChange:w,editingOptionId:T,defaultEditingOptionId:E,onEditingOptionIdChange:D,surface:`embedded`,onCreateOption:O,onEditOption:A,onDeleteOption:ee,onAddValue:j,onDeleteValue:M,onOptionNameChange:N,onValueLabelChange:P,onDoneEditingOption:F,onSaveEditingOption:te,onCancelEditingOption:ne,onToggleUsedForVariants:re,renderOptionActions:I,renderValue:ie,showHeader:!1,showCollapseControls:!1,showInlineActions:!1,showVariantToggle:!1,strings:{title:X.optionsTitle,...J}})}),(0,h.jsxs)(`div`,{className:`product-variants-manager--controls flex min-w-0 flex-wrap items-center justify-between gap-space-md border-t border-border/70 px-surface py-space-md`,children:[(0,h.jsxs)(`div`,{className:`product-variants-manager--group-by flex min-w-0 items-center gap-space-sm`,children:[(0,h.jsx)(r.s,{type:`secondary`,className:`whitespace-nowrap`,children:X.groupByLabel}),$.length>0&&(0,h.jsx)(c.Y,{options:$,value:be,onChange:xe,"aria-label":X.groupByLabel,className:`min-w-32 bg-background`})]}),(0,h.jsxs)(`div`,{className:`product-variants-manager--controls-end flex min-w-0 items-center justify-end gap-space-sm`,children:[(0,h.jsxs)(`div`,{className:`product-variants-manager--tool-buttons inline-flex overflow-hidden rounded-radius border border-border bg-background shadow-xs`,children:[(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:de,"aria-label":X.searchLabel,className:`rounded-none border-r border-border text-muted-foreground hover:text-foreground`,children:[(0,h.jsx)(g.Search,{className:`size-icon-sm`,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:X.searchLabel})]}),(0,h.jsxs)(n.t,{type:`button`,size:`icon-small`,variant:`secondary`,buttonStyle:`ghost`,onClick:fe,"aria-label":X.filterLabel,className:`rounded-none text-muted-foreground hover:text-foreground`,children:[(0,h.jsx)(g.ListFilter,{className:`size-icon-sm`,"aria-hidden":`true`}),(0,h.jsx)(`span`,{className:`sr-only`,children:X.filterLabel})]})]}),K]})]}),(0,h.jsx)(`section`,{className:`product-variants-manager--variants min-w-0 px-surface pb-surface pt-space-md`,children:(0,h.jsx)(Ne,{variants:o,optionGroups:i,groupByOptionId:be,visibleColumns:s,optionCombinationDisplay:l,cellDisplay:u,selectionMode:d,renderOptionCombination:f,renderCell:p,surface:`embedded`,selectedVariantIds:_,defaultSelectedVariantIds:v,onSelectedVariantIdsChange:y,onVariantFieldChange:b,onVariantFieldBlur:x,onCreateVariant:ae,onGenerateVariants:oe,onSelectVariant:L,onEditVariant:R,onDuplicateVariant:se,onDeleteVariant:ce,onBulkEdit:le,onBulkApply:z,onBulkDelete:B,renderVariantActions:V,renderBulkActions:ue,strings:{title:X.variantsTitle,generateLabel:X.generateLabel,...Y}})})]})})}Pe.displayName=`ProductVariantsManager`;function Fe({className:e,...n}){return(0,h.jsx)(ge,{...n,className:t.cn(`products--component`,e)})}Fe.displayName=`Products`,exports.PRODUCT_EMPTY_VALUE=G,exports.PRODUCT_TONE_BADGE=P,exports.PRODUCT_TONE_SURFACE=F,exports.ProductContractOverview=R,exports.ProductDetailsCard=se,exports.ProductEmptyState=N,exports.ProductMetricTile=re,exports.ProductOperationRow=oe,exports.ProductOperationsCard=le,exports.ProductOptionActionMenu=ce,exports.ProductOptionsMatrix=H,exports.ProductOptionsSummary=U,exports.ProductOverview=ge,exports.ProductPoliciesCard=W,exports.ProductQuotePreviewCard=de,exports.ProductReadinessCard=fe,exports.ProductReadinessRow=ae,exports.ProductRowActions=I,exports.ProductStructureCard=K,exports.ProductStructureMetricRow=ie,exports.ProductSummaryRow=L,exports.ProductToneDot=ne,exports.ProductVariantActionMenu=pe,exports.ProductVariantActions=me,exports.ProductVariantCell=q,exports.ProductVariantDetails=X,exports.ProductVariantEditor=_e,exports.ProductVariantsBulkTable=Ne,exports.ProductVariantsManager=Pe,exports.ProductVariantsTable=he,exports.Products=Fe,exports.clampProductPercent=te,exports.defaultProductContractOverviewStrings=x,exports.defaultProductDetailsCardStrings=b,exports.defaultProductOperationsCardStrings=y,exports.defaultProductOptionActionMenuStrings=C,exports.defaultProductOptionsMatrixStrings=w,exports.defaultProductOptionsSummaryStrings=S,exports.defaultProductOverviewStrings=M,exports.defaultProductPoliciesCardStrings=E,exports.defaultProductQuotePreviewCardStrings=T,exports.defaultProductReadinessCardStrings=_,exports.defaultProductStructureCardStrings=v,exports.defaultProductVariantActionMenuStrings=A,exports.defaultProductVariantDetailsStrings=ee,exports.defaultProductVariantEditorStrings=j,exports.defaultProductVariantsBulkTableStrings=O,exports.defaultProductVariantsManagerStrings=k,exports.defaultProductVariantsTableStrings=D;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -11,7 +11,7 @@ import { t as u } from "../../../_shared/textarea-Dx9yEZY2.js";
11
11
  import { D as d, n as f } from "../../../_shared/display-BHIs_Y_j.js";
12
12
  import { c as p, i as m, n as h, o as g, r as _, t as v, u as y } from "../../../_shared/item-D75eGy8G.js";
13
13
  import { M as b } from "../../../_shared/table-B70kyH2E.js";
14
- import { a as x, i as S, m as C } from "../../../_shared/data-display-CYmwUdmU.js";
14
+ import { a as x, i as S, m as C } from "../../../_shared/data-display-0uNuZSN7.js";
15
15
  import { Fragment as w, useCallback as T, useId as E, useMemo as D, useState as ee } from "react";
16
16
  import { Fragment as O, jsx as k, jsxs as A } from "react/jsx-runtime";
17
17
  import { ArrowLeft as te, ArrowRight as j, Box as M, ChevronDown as ne, ClipboardCheck as N, Copy as re, Eye as P, FileText as ie, GripVertical as ae, Layers3 as oe, ListChecks as se, ListFilter as ce, PackageCheck as le, Pencil as F, Plus as I, PlusCircle as ue, ReceiptText as L, RefreshCw as de, Save as fe, Search as R, ShieldCheck as z, SlidersHorizontal as pe, Trash2 as B, X as me } from "lucide-react";
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../lib/utils.cjs"),t=require("../../../_shared/typography-sXFd02zl.cjs"),n=require("../../../_shared/icon-badge-CU6ZkcER.cjs"),r=require("../../../_shared/cards-DvE5gRFf.cjs"),i=require("../../../_shared/avatar-BnKM_o2d.cjs"),a=require("../../../_shared/skeleton-Wq6G0Kya.cjs"),o=require("../../../_shared/navigation-DAjFLSv5.cjs"),s=require("../../../_shared/data-display-B9Lciun3.cjs");let c=require("react/jsx-runtime");function l(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()).join(``)}function u({title:r,description:a,eyebrow:o,media:s,avatarUrl:u,avatarAlt:d,avatarFallback:f,icon:p,iconTone:m=`muted`,badges:h,metadata:g,actions:_,className:v,contentClassName:y,mediaClassName:b}){let x=p,S=typeof r==`string`?r:``,C=s??(u||f?(0,c.jsxs)(i.t,{className:e.cn(`resource-header--avatar size-avatar-lg`,b),children:[!!u&&(0,c.jsx)(i.o,{src:u,alt:d??S}),(0,c.jsx)(i.r,{children:f??l(S)})]}):x?(0,c.jsx)(n.t,{icon:x,shape:`square`,tone:m,className:e.cn(`resource-header--icon size-avatar-lg [&>svg]:size-icon-lg`,b)}):null);return(0,c.jsxs)(`header`,{"data-component":`resource-header`,"data-slot":`resource-header`,className:e.cn(`resource-header--component flex min-w-0 flex-col gap-3 sm:flex-row sm:items-start sm:justify-between`,v),children:[(0,c.jsxs)(`div`,{"data-slot":`resource-header-main`,className:`resource-header--main flex min-w-0 flex-1 items-start gap-3`,children:[C,(0,c.jsxs)(`div`,{"data-slot":`resource-header-content`,className:e.cn(`resource-header--content min-w-0 flex-1`,y),children:[!!o&&(0,c.jsx)(t.s,{size:`xs`,type:`secondary`,weight:`medium`,className:`resource-header--eyebrow mb-1 uppercase tracking-normal`,children:o}),(0,c.jsxs)(`div`,{"data-slot":`resource-header-title-row`,className:`resource-header--title-row flex min-w-0 flex-wrap items-center gap-2`,children:[(0,c.jsx)(t.o,{tag:`h2`,className:`resource-header--title truncate border-0 pb-0`,children:r}),!!h&&(0,c.jsx)(`div`,{"data-slot":`resource-header-badges`,className:`resource-header--badges flex shrink-0 flex-wrap items-center gap-1.5`,children:h})]}),!!a&&(0,c.jsx)(t.s,{type:`secondary`,className:`resource-header--description mt-1 max-w-3xl`,children:a}),!!g&&(0,c.jsx)(`div`,{"data-slot":`resource-header-metadata`,className:`resource-header--metadata mt-2 flex flex-wrap items-center gap-2 text-xs text-muted-foreground`,children:g})]})]}),!!_&&(0,c.jsx)(`div`,{"data-slot":`resource-header-actions`,className:`resource-header--actions flex shrink-0 flex-wrap items-center gap-2`,children:_})]})}function d({children:t,leading:n,trailing:r,sticky:i=!1,className:a}){return(0,c.jsxs)(`div`,{"data-component":`resource-action-bar`,"data-slot":`resource-action-bar`,className:e.cn(`resource-action-bar--component flex min-w-0 flex-col gap-3 rounded-lg border border-border/70 bg-card px-3 py-2.5 shadow-sm sm:flex-row sm:items-center sm:justify-between`,i&&`sticky top-[calc(var(--topbar-height)_+_0.5rem)] z-30`,a),children:[(0,c.jsx)(`div`,{"data-slot":`resource-action-leading`,className:`resource-action-bar--leading flex min-w-0 flex-1 flex-wrap items-center gap-2`,children:n??t}),!!r&&(0,c.jsx)(`div`,{"data-slot":`resource-action-trailing`,className:`resource-action-bar--trailing flex shrink-0 flex-wrap items-center gap-2`,children:r})]})}function f(t){return(0,c.jsx)(s.m,{...t,"data-component":`resource-empty-state`,"data-slot":`resource-empty-state`,className:e.cn(`resource-empty-state--component`,t.className)})}function p({children:t,title:n,description:r,actions:i,toolbar:o,empty:s,isEmpty:l=!1,isLoading:d=!1,error:f,slots:p,className:m,headerClassName:h,contentClassName:g,asideClassName:_,variant:v}){let y=p?.header??(n?(0,c.jsx)(u,{title:n,description:r,actions:i,className:h}):null),b=p?.toolbar??o,x=d?p?.loading??(0,c.jsxs)(`div`,{className:`resource-shell--loading grid gap-3`,children:[(0,c.jsx)(a.r,{className:`h-10 w-full`}),(0,c.jsx)(a.r,{className:`h-28 w-full`})]}):f?p?.error??f:l?s:t;return(0,c.jsxs)(`section`,{"data-component":`resource-${v}-shell`,"data-slot":`resource-${v}-shell`,className:e.cn(`resource-${v}-shell--component grid min-w-0 gap-4`,p?.aside&&`lg:grid-cols-[minmax(0,1fr)_var(--resource-aside-width,20rem)]`,m),children:[(0,c.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[!!y&&(0,c.jsx)(`div`,{"data-slot":`resource-${v}-header`,className:`resource-${v}-shell--header`,children:y}),!!b&&(0,c.jsx)(`div`,{"data-slot":`resource-${v}-toolbar`,className:`resource-${v}-shell--toolbar`,children:b}),(0,c.jsx)(`div`,{"data-slot":`resource-${v}-content`,className:e.cn(`resource-${v}-shell--content min-w-0`,g),children:x}),!!p?.footer&&(0,c.jsx)(`div`,{"data-slot":`resource-${v}-footer`,className:`resource-${v}-shell--footer`,children:p.footer})]}),!!p?.aside&&(0,c.jsx)(`aside`,{"data-slot":`resource-${v}-aside`,className:e.cn(`resource-${v}-shell--aside min-w-0`,_),children:p.aside})]})}function m(e){return(0,c.jsx)(p,{...e,variant:`index`})}function h(e){return(0,c.jsx)(p,{...e,variant:`show`})}function g({tabs:e,activeTab:t,onTabChange:n,tabsClassName:r,moreLabel:i,tabsAriaLabel:a,toolbar:s,slots:l,...u}){let d=(0,c.jsxs)(`div`,{"data-slot":`tabbed-resource-toolbar`,className:`tabbed-resource-shell--toolbar grid gap-3`,children:[(0,c.jsx)(o.t,{items:e,value:t,onChange:n,className:r,moreLabel:i,ariaLabel:a}),s]});return(0,c.jsx)(h,{...u,toolbar:d,slots:{...l,toolbar:l?.toolbar??d}})}function _({title:t,description:n,actions:i,headerAction:a,children:o,footer:s,padding:l=`default`,surface:u=`card`,className:d,contentClassName:f,name:p}){return(0,c.jsx)(r.t,{"data-component":p,"data-slot":p,title:t,description:n,actions:i,headerAction:a,footerSlot:s,padding:l,surface:u,className:e.cn(`${p}--component`,d),contentClassName:f,children:o})}function v(e){return(0,c.jsx)(_,{...e,name:`resource-details-card`})}function y({metadata:n,metadataColumns:r=2,metadataDense:i=!1,body:a,help:o,children:l,contentClassName:u,...d}){return(0,c.jsxs)(_,{...d,name:`resource-details-section`,contentClassName:e.cn(`resource-details-section--content grid gap-4`,u),children:[!!n?.length&&(0,c.jsx)(s.a,{items:n,columns:r,dense:i}),a,l,!!o&&(0,c.jsx)(t.s,{size:`xs`,type:`secondary`,className:`resource-details-section--help`,children:o})]})}var b=u;function x(e){return(0,c.jsx)(_,{...e,name:`resource-related-card`})}function S(e){return(0,c.jsx)(_,{...e,name:`resource-activity-card`})}exports.PersonHeader=b,exports.ResourceActionBar=d,exports.ResourceActivityCard=S,exports.ResourceDetailsCard=v,exports.ResourceDetailsSection=y,exports.ResourceEmptyState=f,exports.ResourceHeader=u,exports.ResourceIndexShell=m,exports.ResourceRelatedCard=x,exports.ResourceShowShell=h,exports.TabbedResourceShell=g;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../lib/utils.cjs"),t=require("../../../_shared/typography-sXFd02zl.cjs"),n=require("../../../_shared/icon-badge-CU6ZkcER.cjs"),r=require("../../../_shared/cards-DvE5gRFf.cjs"),i=require("../../../_shared/avatar-BnKM_o2d.cjs"),a=require("../../../_shared/skeleton-Wq6G0Kya.cjs"),o=require("../../../_shared/navigation-DAjFLSv5.cjs"),s=require("../../../_shared/data-display-DRa39LH8.cjs");let c=require("react/jsx-runtime");function l(e){return e.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()).join(``)}function u({title:r,description:a,eyebrow:o,media:s,avatarUrl:u,avatarAlt:d,avatarFallback:f,icon:p,iconTone:m=`muted`,badges:h,metadata:g,actions:_,className:v,contentClassName:y,mediaClassName:b}){let x=p,S=typeof r==`string`?r:``,C=s??(u||f?(0,c.jsxs)(i.t,{className:e.cn(`resource-header--avatar size-avatar-lg`,b),children:[!!u&&(0,c.jsx)(i.o,{src:u,alt:d??S}),(0,c.jsx)(i.r,{children:f??l(S)})]}):x?(0,c.jsx)(n.t,{icon:x,shape:`square`,tone:m,className:e.cn(`resource-header--icon size-avatar-lg [&>svg]:size-icon-lg`,b)}):null);return(0,c.jsxs)(`header`,{"data-component":`resource-header`,"data-slot":`resource-header`,className:e.cn(`resource-header--component flex min-w-0 flex-col gap-3 sm:flex-row sm:items-start sm:justify-between`,v),children:[(0,c.jsxs)(`div`,{"data-slot":`resource-header-main`,className:`resource-header--main flex min-w-0 flex-1 items-start gap-3`,children:[C,(0,c.jsxs)(`div`,{"data-slot":`resource-header-content`,className:e.cn(`resource-header--content min-w-0 flex-1`,y),children:[!!o&&(0,c.jsx)(t.s,{size:`xs`,type:`secondary`,weight:`medium`,className:`resource-header--eyebrow mb-1 uppercase tracking-normal`,children:o}),(0,c.jsxs)(`div`,{"data-slot":`resource-header-title-row`,className:`resource-header--title-row flex min-w-0 flex-wrap items-center gap-2`,children:[(0,c.jsx)(t.o,{tag:`h2`,className:`resource-header--title truncate border-0 pb-0`,children:r}),!!h&&(0,c.jsx)(`div`,{"data-slot":`resource-header-badges`,className:`resource-header--badges flex shrink-0 flex-wrap items-center gap-1.5`,children:h})]}),!!a&&(0,c.jsx)(t.s,{type:`secondary`,className:`resource-header--description mt-1 max-w-3xl`,children:a}),!!g&&(0,c.jsx)(`div`,{"data-slot":`resource-header-metadata`,className:`resource-header--metadata mt-2 flex flex-wrap items-center gap-2 text-xs text-muted-foreground`,children:g})]})]}),!!_&&(0,c.jsx)(`div`,{"data-slot":`resource-header-actions`,className:`resource-header--actions flex shrink-0 flex-wrap items-center gap-2`,children:_})]})}function d({children:t,leading:n,trailing:r,sticky:i=!1,className:a}){return(0,c.jsxs)(`div`,{"data-component":`resource-action-bar`,"data-slot":`resource-action-bar`,className:e.cn(`resource-action-bar--component flex min-w-0 flex-col gap-3 rounded-lg border border-border/70 bg-card px-3 py-2.5 shadow-sm sm:flex-row sm:items-center sm:justify-between`,i&&`sticky top-[calc(var(--topbar-height)_+_0.5rem)] z-30`,a),children:[(0,c.jsx)(`div`,{"data-slot":`resource-action-leading`,className:`resource-action-bar--leading flex min-w-0 flex-1 flex-wrap items-center gap-2`,children:n??t}),!!r&&(0,c.jsx)(`div`,{"data-slot":`resource-action-trailing`,className:`resource-action-bar--trailing flex shrink-0 flex-wrap items-center gap-2`,children:r})]})}function f(t){return(0,c.jsx)(s.m,{...t,"data-component":`resource-empty-state`,"data-slot":`resource-empty-state`,className:e.cn(`resource-empty-state--component`,t.className)})}function p({children:t,title:n,description:r,actions:i,toolbar:o,empty:s,isEmpty:l=!1,isLoading:d=!1,error:f,slots:p,className:m,headerClassName:h,contentClassName:g,asideClassName:_,variant:v}){let y=p?.header??(n?(0,c.jsx)(u,{title:n,description:r,actions:i,className:h}):null),b=p?.toolbar??o,x=d?p?.loading??(0,c.jsxs)(`div`,{className:`resource-shell--loading grid gap-3`,children:[(0,c.jsx)(a.r,{className:`h-10 w-full`}),(0,c.jsx)(a.r,{className:`h-28 w-full`})]}):f?p?.error??f:l?s:t;return(0,c.jsxs)(`section`,{"data-component":`resource-${v}-shell`,"data-slot":`resource-${v}-shell`,className:e.cn(`resource-${v}-shell--component grid min-w-0 gap-4`,p?.aside&&`lg:grid-cols-[minmax(0,1fr)_var(--resource-aside-width,20rem)]`,m),children:[(0,c.jsxs)(`div`,{className:`min-w-0 space-y-4`,children:[!!y&&(0,c.jsx)(`div`,{"data-slot":`resource-${v}-header`,className:`resource-${v}-shell--header`,children:y}),!!b&&(0,c.jsx)(`div`,{"data-slot":`resource-${v}-toolbar`,className:`resource-${v}-shell--toolbar`,children:b}),(0,c.jsx)(`div`,{"data-slot":`resource-${v}-content`,className:e.cn(`resource-${v}-shell--content min-w-0`,g),children:x}),!!p?.footer&&(0,c.jsx)(`div`,{"data-slot":`resource-${v}-footer`,className:`resource-${v}-shell--footer`,children:p.footer})]}),!!p?.aside&&(0,c.jsx)(`aside`,{"data-slot":`resource-${v}-aside`,className:e.cn(`resource-${v}-shell--aside min-w-0`,_),children:p.aside})]})}function m(e){return(0,c.jsx)(p,{...e,variant:`index`})}function h(e){return(0,c.jsx)(p,{...e,variant:`show`})}function g({tabs:e,activeTab:t,onTabChange:n,tabsClassName:r,moreLabel:i,tabsAriaLabel:a,toolbar:s,slots:l,...u}){let d=(0,c.jsxs)(`div`,{"data-slot":`tabbed-resource-toolbar`,className:`tabbed-resource-shell--toolbar grid gap-3`,children:[(0,c.jsx)(o.t,{items:e,value:t,onChange:n,className:r,moreLabel:i,ariaLabel:a}),s]});return(0,c.jsx)(h,{...u,toolbar:d,slots:{...l,toolbar:l?.toolbar??d}})}function _({title:t,description:n,actions:i,headerAction:a,children:o,footer:s,padding:l=`default`,surface:u=`card`,className:d,contentClassName:f,name:p}){return(0,c.jsx)(r.t,{"data-component":p,"data-slot":p,title:t,description:n,actions:i,headerAction:a,footerSlot:s,padding:l,surface:u,className:e.cn(`${p}--component`,d),contentClassName:f,children:o})}function v(e){return(0,c.jsx)(_,{...e,name:`resource-details-card`})}function y({metadata:n,metadataColumns:r=2,metadataDense:i=!1,body:a,help:o,children:l,contentClassName:u,...d}){return(0,c.jsxs)(_,{...d,name:`resource-details-section`,contentClassName:e.cn(`resource-details-section--content grid gap-4`,u),children:[!!n?.length&&(0,c.jsx)(s.a,{items:n,columns:r,dense:i}),a,l,!!o&&(0,c.jsx)(t.s,{size:`xs`,type:`secondary`,className:`resource-details-section--help`,children:o})]})}var b=u;function x(e){return(0,c.jsx)(_,{...e,name:`resource-related-card`})}function S(e){return(0,c.jsx)(_,{...e,name:`resource-activity-card`})}exports.PersonHeader=b,exports.ResourceActionBar=d,exports.ResourceActivityCard=S,exports.ResourceDetailsCard=v,exports.ResourceDetailsSection=y,exports.ResourceEmptyState=f,exports.ResourceHeader=u,exports.ResourceIndexShell=m,exports.ResourceRelatedCard=x,exports.ResourceShowShell=h,exports.TabbedResourceShell=g;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -5,7 +5,7 @@ import { t as i } from "../../../_shared/cards-B7voInTJ.js";
5
5
  import { o as a, r as o, t as s } from "../../../_shared/avatar-BagPbPuD.js";
6
6
  import { r as c } from "../../../_shared/skeleton-Bc_qa5l_.js";
7
7
  import { t as l } from "../../../_shared/navigation-9DB-vtGI.js";
8
- import { a as u, m as d } from "../../../_shared/data-display-CYmwUdmU.js";
8
+ import { a as u, m as d } from "../../../_shared/data-display-0uNuZSN7.js";
9
9
  import { jsx as f, jsxs as p } from "react/jsx-runtime";
10
10
  //#region src/components/features/resource/resource.tsx
11
11
  function m(e) {
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_shared/containers-BcrM8-22.cjs");exports.Container=e.n,exports.Section=e.t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_shared/containers-CclPUW7j.cjs");exports.Container=e.o,exports.InnerLayoutBlock=e.t,exports.OuterLayoutBlock=e.n,exports.Section=e.a,exports.TopLayoutBlock=e.r,exports.TwoColumnLayout=e.i;
@@ -1,4 +1,5 @@
1
1
  export { Container } from './content-container';
2
2
  export { Section } from './section';
3
+ export { InnerLayoutBlock, OuterLayoutBlock, TopLayoutBlock, TwoColumnLayout, type TwoColumnLayoutProps, } from './two-column-layout';
3
4
  export type { ContainerElement, ContainerPadding, ContainerProps, ContainerWidth, SectionElement, SectionProps, } from './containers.types';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/containers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,YAAY,EACX,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,GACZ,MAAM,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/containers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,KAAK,oBAAoB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACX,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,cAAc,EACd,YAAY,GACZ,MAAM,oBAAoB,CAAC"}
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "../../../_shared/containers-8ryMAXNr.js";
2
- export { e as Container, t as Section };
1
+ import { a as e, i as t, n, o as r, r as i, t as a } from "../../../_shared/containers-GDaJ3SOV.js";
2
+ export { r as Container, a as InnerLayoutBlock, n as OuterLayoutBlock, e as Section, i as TopLayoutBlock, t as TwoColumnLayout };
@@ -0,0 +1,43 @@
1
+ import { PropsWithChildren, ReactNode } from 'react';
2
+ interface LayoutBlockProps {
3
+ className?: string;
4
+ children: ReactNode;
5
+ }
6
+ export interface TwoColumnLayoutProps {
7
+ children: ReactNode;
8
+ className?: string;
9
+ columnsClassName?: string;
10
+ gapClassName?: string;
11
+ topWrapperClassName?: string;
12
+ outerWrapperClassName?: string;
13
+ leftColumnClassName?: string;
14
+ rightColumnClassName?: string;
15
+ reverse?: boolean;
16
+ mobileReverse?: boolean;
17
+ stickyRight?: boolean;
18
+ stickyRightOffsetClassName?: string;
19
+ }
20
+ export declare const InnerLayoutBlock: {
21
+ ({ children }: PropsWithChildren<LayoutBlockProps>): ReactNode;
22
+ displayName: string;
23
+ };
24
+ export declare const OuterLayoutBlock: {
25
+ ({ children }: PropsWithChildren<LayoutBlockProps>): ReactNode;
26
+ displayName: string;
27
+ };
28
+ export declare const TopLayoutBlock: {
29
+ ({ children }: PropsWithChildren<LayoutBlockProps>): ReactNode;
30
+ displayName: string;
31
+ };
32
+ /**
33
+ * TwoColumnLayout — generic main + aside page structure.
34
+ *
35
+ * Use two `InnerLayoutBlock` children for the columns, optional `TopLayoutBlock`
36
+ * for content above the grid, and optional `OuterLayoutBlock` for content below.
37
+ */
38
+ export declare function TwoColumnLayout({ children, className, columnsClassName, gapClassName, topWrapperClassName, outerWrapperClassName, leftColumnClassName, rightColumnClassName, reverse, mobileReverse, stickyRight, stickyRightOffsetClassName, }: TwoColumnLayoutProps): import("react").JSX.Element;
39
+ export declare namespace TwoColumnLayout {
40
+ var displayName: string;
41
+ }
42
+ export default TwoColumnLayout;
43
+ //# sourceMappingURL=two-column-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"two-column-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/containers/two-column-layout.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEN,KAAK,iBAAiB,EAEtB,KAAK,SAAS,EAEd,MAAM,OAAO,CAAC;AAIf,UAAU,gBAAgB;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACpC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACpC;AAED,eAAO,MAAM,gBAAgB;mBAAkB,iBAAiB,CAAC,gBAAgB,CAAC;;CAAa,CAAC;AAIhG,eAAO,MAAM,gBAAgB;mBAAkB,iBAAiB,CAAC,gBAAgB,CAAC;;CAAa,CAAC;AAIhG,eAAO,MAAM,cAAc;mBAAkB,iBAAiB,CAAC,gBAAgB,CAAC;;CAAa,CAAC;AAc9F;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,EAC/B,QAAQ,EACR,SAAS,EACT,gBAAkC,EAClC,YAA0B,EAC1B,mBAAyC,EACzC,qBAA6C,EAC7C,mBAAmB,EACnB,oBAAoB,EACpB,OAAe,EACf,aAAoB,EACpB,WAAmB,EACnB,0BAAkD,GAClD,EAAE,oBAAoB,+BAmGtB;yBAhHe,eAAe;;;AAoH/B,eAAe,eAAe,CAAC"}
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../_shared/layout.types-CXFAjJCj.cjs"),t=require("../../_shared/hooks-B4Cop5YI.cjs"),n=require("../../_shared/app-shell-BZQJfTkf.cjs"),r=require("../../_shared/containers-BcrM8-22.cjs"),i=require("../../_shared/layout-CZVEJ3p_.cjs"),a=require("../../_shared/settings-AIgixHbB.cjs"),o=require("../../_shared/header-B4wGB6Ca.cjs"),s=require("../../_shared/sidebar-D5NLbyow.cjs"),c=require("../../_shared/auth-CwipRgNB.cjs"),l=require("../../_shared/workspace-CLUsYC5y.cjs");exports.AdminAppShell=n.t,exports.TopbarSidebarLayout=n.t,exports.AdminHeader=o.u,exports.Header=o.u,exports.AdminSidebar=s.i,exports.AppSidebar=s.i,exports.AsideNavShell=a.t,exports.AuthCard=c.h,exports.AuthFooterLinks=c.s,exports.AuthMethodSwitch=c.t,exports.AuthShell=c.r,exports.AuthSocialProviderButton=c.a,exports.AuthSocialProviders=c.o,exports.AuthSplitPanel=c.i,exports.Container=r.n,exports.DefaultLinkComponent=e.t,exports.DynamicIcon=t.r,exports.Icon=t.r,exports.SidebarIcon=t.r,exports.HeaderBreadcrumbs=o.d,exports.HeaderGlobalSearchTrigger=o.a,exports.HeaderNotifications=o.t,exports.HeaderSearch=o.o,exports.HeaderToolButton=o.i,exports.HeaderToolPopover=o.r,exports.HeaderUserMenu=o.n,exports.NavBadge=t.i,exports.Page=i.a,exports.PageActions=i.t,exports.PageContent=i.i,exports.PageHeader=i.r,exports.Section=r.t,exports.SettingsShell=a.n,exports.Sidebar=s.u,exports.SidebarGroupedNavigation=s.l,exports.SidebarLogo=s.c,exports.SidebarNavigation=s.r,exports.SidebarNavigationFooter=s.s,exports.SidebarNavigationUser=s.t,exports.SidebarProvider=s.f,exports.SidebarWorkspaceDropdown=s.a,exports.WorkspaceLayout=l.t,exports.WorkspaceLocaleStrip=l.n,exports.WorkspaceNav=l.r,exports.WorkspaceRecordHeader=l.i,exports.defaultAsideNavShellStrings=a.r,exports.defaultAuthFooterLinksStrings=c.c,exports.defaultAuthMethodSwitchStrings=c.l,exports.defaultAuthShellStrings=c.u,exports.defaultAuthSocialProvidersStrings=c.d,exports.defaultHeaderNotificationsStrings=o.s,exports.defaultHeaderSearchStrings=o.c,exports.defaultHeaderUserMenuStrings=o.l,exports.defaultPageActionsStrings=i.n,exports.defaultRenderLink=e.n,exports.defaultSidebarNavigationUserStrings=s.n,exports.defaultSidebarStrings=s.d,exports.defaultSidebarWorkspaceDropdownStrings=s.o,exports.defaultWorkspaceLocaleStripStrings=l.a,exports.defaultWorkspaceNavStrings=l.o,exports.defaultWorkspaceRecordHeaderStrings=l.s,exports.getNavKey=t.a,exports.getNavLabel=t.o,exports.isAuthBrandConfig=c.f,exports.isPathMatch=t.s,exports.resolveLayoutLinkRenderer=e.r,exports.resolveNavBadge=t.l,exports.toPath=t.u,exports.useActivePath=t.n,exports.useAuthLinks=c.p,exports.useAuthMethodSwitch=c.n,exports.useAuthShell=c.m,exports.useCommandShortcut=t.t,exports.useLayoutLinkRenderer=t.d,exports.useSidebar=s.p;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../_shared/layout.types-CXFAjJCj.cjs"),t=require("../../_shared/hooks-B4Cop5YI.cjs"),n=require("../../_shared/app-shell-BZQJfTkf.cjs"),r=require("../../_shared/containers-CclPUW7j.cjs"),i=require("../../_shared/layout-DN8tzvlm.cjs"),a=require("../../_shared/settings-AIgixHbB.cjs"),o=require("../../_shared/header-B4wGB6Ca.cjs"),s=require("../../_shared/sidebar-D5NLbyow.cjs"),c=require("../../_shared/auth-CwipRgNB.cjs"),l=require("../../_shared/workspace-CLUsYC5y.cjs");exports.AdminAppShell=n.t,exports.TopbarSidebarLayout=n.t,exports.AdminHeader=o.u,exports.Header=o.u,exports.AdminSidebar=s.i,exports.AppSidebar=s.i,exports.AsideNavShell=a.t,exports.AuthCard=c.h,exports.AuthFooterLinks=c.s,exports.AuthMethodSwitch=c.t,exports.AuthShell=c.r,exports.AuthSocialProviderButton=c.a,exports.AuthSocialProviders=c.o,exports.AuthSplitPanel=c.i,exports.Container=r.o,exports.DefaultLinkComponent=e.t,exports.DynamicIcon=t.r,exports.Icon=t.r,exports.SidebarIcon=t.r,exports.HeaderBreadcrumbs=o.d,exports.HeaderGlobalSearchTrigger=o.a,exports.HeaderNotifications=o.t,exports.HeaderSearch=o.o,exports.HeaderToolButton=o.i,exports.HeaderToolPopover=o.r,exports.HeaderUserMenu=o.n,exports.InnerLayoutBlock=r.t,exports.NavBadge=t.i,exports.OuterLayoutBlock=r.n,exports.Page=i.a,exports.PageActions=i.t,exports.PageContent=i.i,exports.PageHeader=i.r,exports.Section=r.a,exports.SettingsShell=a.n,exports.Sidebar=s.u,exports.SidebarGroupedNavigation=s.l,exports.SidebarLogo=s.c,exports.SidebarNavigation=s.r,exports.SidebarNavigationFooter=s.s,exports.SidebarNavigationUser=s.t,exports.SidebarProvider=s.f,exports.SidebarWorkspaceDropdown=s.a,exports.TopLayoutBlock=r.r,exports.TwoColumnLayout=r.i,exports.WorkspaceLayout=l.t,exports.WorkspaceLocaleStrip=l.n,exports.WorkspaceNav=l.r,exports.WorkspaceRecordHeader=l.i,exports.defaultAsideNavShellStrings=a.r,exports.defaultAuthFooterLinksStrings=c.c,exports.defaultAuthMethodSwitchStrings=c.l,exports.defaultAuthShellStrings=c.u,exports.defaultAuthSocialProvidersStrings=c.d,exports.defaultHeaderNotificationsStrings=o.s,exports.defaultHeaderSearchStrings=o.c,exports.defaultHeaderUserMenuStrings=o.l,exports.defaultPageActionsStrings=i.n,exports.defaultRenderLink=e.n,exports.defaultSidebarNavigationUserStrings=s.n,exports.defaultSidebarStrings=s.d,exports.defaultSidebarWorkspaceDropdownStrings=s.o,exports.defaultWorkspaceLocaleStripStrings=l.a,exports.defaultWorkspaceNavStrings=l.o,exports.defaultWorkspaceRecordHeaderStrings=l.s,exports.getNavKey=t.a,exports.getNavLabel=t.o,exports.isAuthBrandConfig=c.f,exports.isPathMatch=t.s,exports.resolveLayoutLinkRenderer=e.r,exports.resolveNavBadge=t.l,exports.toPath=t.u,exports.useActivePath=t.n,exports.useAuthLinks=c.p,exports.useAuthMethodSwitch=c.n,exports.useAuthShell=c.m,exports.useCommandShortcut=t.t,exports.useLayoutLinkRenderer=t.d,exports.useSidebar=s.p;
@@ -1,11 +1,11 @@
1
1
  import { n as e, r as t, t as n } from "../../_shared/layout.types-ip8BYRa7.js";
2
2
  import { a as r, d as i, i as a, l as o, n as s, o as c, r as l, s as u, t as d, u as f } from "../../_shared/hooks-CFUZJW_S.js";
3
3
  import { t as p } from "../../_shared/app-shell-Da6GHxTZ.js";
4
- import { n as m, t as h } from "../../_shared/containers-8ryMAXNr.js";
5
- import { a as g, i as _, n as v, r as y, t as b } from "../../_shared/layout-D75TJTaD.js";
6
- import { n as x, r as S, t as C } from "../../_shared/settings-D3KdypJk.js";
7
- import { a as w, c as T, d as E, i as D, l as O, n as k, o as A, r as j, s as M, t as N, u as P } from "../../_shared/header-CWyOry0f.js";
8
- import { a as F, c as I, d as L, f as R, i as z, l as B, n as ee, o as V, p as H, r as U, s as W, t as G, u as K } from "../../_shared/sidebar-BzBincq3.js";
9
- import { a as q, c as J, d as Y, f as X, h as Z, i as Q, l as $, m as te, n as ne, o as re, p as ie, r as ae, s as oe, t as se, u as ce } from "../../_shared/auth-Wipu0Oa_.js";
10
- import { a as le, i as ue, n as de, o as fe, r as pe, s as me, t as he } from "../../_shared/workspace-Bw-k_HXQ.js";
11
- export { p as AdminAppShell, p as TopbarSidebarLayout, P as AdminHeader, P as Header, z as AdminSidebar, z as AppSidebar, C as AsideNavShell, Z as AuthCard, oe as AuthFooterLinks, se as AuthMethodSwitch, ae as AuthShell, q as AuthSocialProviderButton, re as AuthSocialProviders, Q as AuthSplitPanel, m as Container, n as DefaultLinkComponent, l as DynamicIcon, l as Icon, l as SidebarIcon, E as HeaderBreadcrumbs, w as HeaderGlobalSearchTrigger, N as HeaderNotifications, A as HeaderSearch, D as HeaderToolButton, j as HeaderToolPopover, k as HeaderUserMenu, a as NavBadge, g as Page, b as PageActions, _ as PageContent, y as PageHeader, h as Section, x as SettingsShell, K as Sidebar, B as SidebarGroupedNavigation, I as SidebarLogo, U as SidebarNavigation, W as SidebarNavigationFooter, G as SidebarNavigationUser, R as SidebarProvider, F as SidebarWorkspaceDropdown, he as WorkspaceLayout, de as WorkspaceLocaleStrip, pe as WorkspaceNav, ue as WorkspaceRecordHeader, S as defaultAsideNavShellStrings, J as defaultAuthFooterLinksStrings, $ as defaultAuthMethodSwitchStrings, ce as defaultAuthShellStrings, Y as defaultAuthSocialProvidersStrings, M as defaultHeaderNotificationsStrings, T as defaultHeaderSearchStrings, O as defaultHeaderUserMenuStrings, v as defaultPageActionsStrings, e as defaultRenderLink, ee as defaultSidebarNavigationUserStrings, L as defaultSidebarStrings, V as defaultSidebarWorkspaceDropdownStrings, le as defaultWorkspaceLocaleStripStrings, fe as defaultWorkspaceNavStrings, me as defaultWorkspaceRecordHeaderStrings, r as getNavKey, c as getNavLabel, X as isAuthBrandConfig, u as isPathMatch, t as resolveLayoutLinkRenderer, o as resolveNavBadge, f as toPath, s as useActivePath, ie as useAuthLinks, ne as useAuthMethodSwitch, te as useAuthShell, d as useCommandShortcut, i as useLayoutLinkRenderer, H as useSidebar };
4
+ import { a as m, i as h, n as g, o as _, r as v, t as y } from "../../_shared/containers-GDaJ3SOV.js";
5
+ import { a as b, i as x, n as S, r as C, t as w } from "../../_shared/layout-DNrUkvzF.js";
6
+ import { n as T, r as E, t as D } from "../../_shared/settings-D3KdypJk.js";
7
+ import { a as O, c as k, d as A, i as j, l as M, n as N, o as P, r as F, s as I, t as L, u as R } from "../../_shared/header-CWyOry0f.js";
8
+ import { a as z, c as B, d as ee, f as V, i as H, l as U, n as W, o as G, p as K, r as q, s as J, t as Y, u as X } from "../../_shared/sidebar-BzBincq3.js";
9
+ import { a as Z, c as Q, d as $, f as te, h as ne, i as re, l as ie, m as ae, n as oe, o as se, p as ce, r as le, s as ue, t as de, u as fe } from "../../_shared/auth-Wipu0Oa_.js";
10
+ import { a as pe, i as me, n as he, o as ge, r as _e, s as ve, t as ye } from "../../_shared/workspace-Bw-k_HXQ.js";
11
+ export { p as AdminAppShell, p as TopbarSidebarLayout, R as AdminHeader, R as Header, H as AdminSidebar, H as AppSidebar, D as AsideNavShell, ne as AuthCard, ue as AuthFooterLinks, de as AuthMethodSwitch, le as AuthShell, Z as AuthSocialProviderButton, se as AuthSocialProviders, re as AuthSplitPanel, _ as Container, n as DefaultLinkComponent, l as DynamicIcon, l as Icon, l as SidebarIcon, A as HeaderBreadcrumbs, O as HeaderGlobalSearchTrigger, L as HeaderNotifications, P as HeaderSearch, j as HeaderToolButton, F as HeaderToolPopover, N as HeaderUserMenu, y as InnerLayoutBlock, a as NavBadge, g as OuterLayoutBlock, b as Page, w as PageActions, x as PageContent, C as PageHeader, m as Section, T as SettingsShell, X as Sidebar, U as SidebarGroupedNavigation, B as SidebarLogo, q as SidebarNavigation, J as SidebarNavigationFooter, Y as SidebarNavigationUser, V as SidebarProvider, z as SidebarWorkspaceDropdown, v as TopLayoutBlock, h as TwoColumnLayout, ye as WorkspaceLayout, he as WorkspaceLocaleStrip, _e as WorkspaceNav, me as WorkspaceRecordHeader, E as defaultAsideNavShellStrings, Q as defaultAuthFooterLinksStrings, ie as defaultAuthMethodSwitchStrings, fe as defaultAuthShellStrings, $ as defaultAuthSocialProvidersStrings, I as defaultHeaderNotificationsStrings, k as defaultHeaderSearchStrings, M as defaultHeaderUserMenuStrings, S as defaultPageActionsStrings, e as defaultRenderLink, W as defaultSidebarNavigationUserStrings, ee as defaultSidebarStrings, G as defaultSidebarWorkspaceDropdownStrings, pe as defaultWorkspaceLocaleStripStrings, ge as defaultWorkspaceNavStrings, ve as defaultWorkspaceRecordHeaderStrings, r as getNavKey, c as getNavLabel, te as isAuthBrandConfig, u as isPathMatch, t as resolveLayoutLinkRenderer, o as resolveNavBadge, f as toPath, s as useActivePath, ce as useAuthLinks, oe as useAuthMethodSwitch, ae as useAuthShell, d as useCommandShortcut, i as useLayoutLinkRenderer, K as useSidebar };
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_shared/layout-CZVEJ3p_.cjs");exports.Page=e.a,exports.PageActions=e.t,exports.PageContent=e.i,exports.PageHeader=e.r,exports.defaultPageActionsStrings=e.n;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../../_shared/layout-DN8tzvlm.cjs");exports.Page=e.a,exports.PageActions=e.t,exports.PageContent=e.i,exports.PageHeader=e.r,exports.defaultPageActionsStrings=e.n;
@@ -1,2 +1,2 @@
1
- import { a as e, i as t, n, r, t as i } from "../../../_shared/layout-D75TJTaD.js";
1
+ import { a as e, i as t, n, r, t as i } from "../../../_shared/layout-DNrUkvzF.js";
2
2
  export { e as Page, i as PageActions, t as PageContent, r as PageHeader, n as defaultPageActionsStrings };