themelia-react-ui 1.0.1 → 2.0.0

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 (640) hide show
  1. package/CHANGELOG.md +417 -0
  2. package/README.md +67 -16
  3. package/dist/{accordion-B-5Focs8.js → accordion-CQXVcd7Q.js} +15 -15
  4. package/dist/accordion-CQXVcd7Q.js.map +1 -0
  5. package/dist/action-menu-BTpyPWJ2.js +264 -0
  6. package/dist/action-menu-BTpyPWJ2.js.map +1 -0
  7. package/dist/affordance-geometry.generated-CCIXb2A1.js +68 -0
  8. package/dist/affordance-geometry.generated-CCIXb2A1.js.map +1 -0
  9. package/dist/{ai-artifact-B5tPpXnS.js → ai-artifact-2PQ2fItc.js} +206 -215
  10. package/dist/ai-artifact-2PQ2fItc.js.map +1 -0
  11. package/dist/{app-shell-at8Kt4l_.js → app-shell-BE_j8-AT.js} +11 -10
  12. package/dist/app-shell-BE_j8-AT.js.map +1 -0
  13. package/dist/{attachment-BO2R47wn.js → attachment-q69dlt5Y.js} +14 -14
  14. package/dist/attachment-q69dlt5Y.js.map +1 -0
  15. package/dist/auth-M3vGMgDR.js +723 -0
  16. package/dist/auth-M3vGMgDR.js.map +1 -0
  17. package/dist/{avatar-Bpzty83c.js → avatar-djdaaQ_s.js} +15 -13
  18. package/dist/avatar-djdaaQ_s.js.map +1 -0
  19. package/dist/{badge-BZXZT9wd.js → badge-0tATj-tW.js} +9 -9
  20. package/dist/badge-0tATj-tW.js.map +1 -0
  21. package/dist/base/accordion.js +1 -1
  22. package/dist/base/action-menu.js +1 -1
  23. package/dist/base/attachment.js +1 -1
  24. package/dist/base/avatar.js +1 -1
  25. package/dist/base/badge.js +1 -1
  26. package/dist/base/buttons.js +3 -2
  27. package/dist/base/cards.js +3 -3
  28. package/dist/base/carousel.js +33 -35
  29. package/dist/base/carousel.js.map +1 -1
  30. package/dist/base/cascader.js +246 -222
  31. package/dist/base/cascader.js.map +1 -1
  32. package/dist/base/chart.js +1 -1
  33. package/dist/base/choice-inputs.js +2 -2
  34. package/dist/base/code-block.js +1 -1
  35. package/dist/base/combobox.js +1 -1
  36. package/dist/base/command.js +1 -1
  37. package/dist/base/copyable.js +1 -1
  38. package/dist/base/date-pickers.js +3 -3
  39. package/dist/base/display.js +7 -7
  40. package/dist/base/feedback.js +4 -4
  41. package/dist/base/forms-numeric.js +1 -1
  42. package/dist/base/forms.js +2 -2
  43. package/dist/base/inline-edit.js +94 -92
  44. package/dist/base/inline-edit.js.map +1 -1
  45. package/dist/base/item.js +1 -1
  46. package/dist/base/media-gallery.js +1 -1
  47. package/dist/base/navigation.js +6 -6
  48. package/dist/base/popover-menu.js +1 -1
  49. package/dist/base/popover.js +1 -1
  50. package/dist/base/qr-code.js +7 -4
  51. package/dist/base/qr-code.js.map +1 -1
  52. package/dist/base/repeaters.js +53 -53
  53. package/dist/base/repeaters.js.map +1 -1
  54. package/dist/base/sheet.js +1 -1
  55. package/dist/base/sidebar.js +1 -1
  56. package/dist/base/signature-pad.js +84 -82
  57. package/dist/base/signature-pad.js.map +1 -1
  58. package/dist/base/skeleton.js +1 -1
  59. package/dist/base/spinner.js +1 -1
  60. package/dist/base/structure.js +1 -1
  61. package/dist/base/table.js +1 -1
  62. package/dist/base/text-inputs.js +2 -2
  63. package/dist/base/toaster.js +7 -7
  64. package/dist/base/toaster.js.map +1 -1
  65. package/dist/base/tree.js +1 -1
  66. package/dist/base/upload-queue.js +1 -1
  67. package/dist/base/upload.js +3 -3
  68. package/dist/base/value-inputs.js +1 -1
  69. package/dist/blocks/admin.js +228 -219
  70. package/dist/blocks/admin.js.map +1 -1
  71. package/dist/blocks/ai.js +182 -212
  72. package/dist/blocks/ai.js.map +1 -1
  73. package/dist/blocks/analytics/usage-card.js +1 -1
  74. package/dist/blocks/analytics.js +665 -620
  75. package/dist/blocks/analytics.js.map +1 -1
  76. package/dist/blocks/collaboration.js +2 -2
  77. package/dist/blocks/commerce/receipt.js +1 -1
  78. package/dist/blocks/commerce.js +1439 -1553
  79. package/dist/blocks/commerce.js.map +1 -1
  80. package/dist/blocks/data-display.js +1 -1
  81. package/dist/blocks/onboarding.js +6 -6
  82. package/dist/blocks/onboarding.js.map +1 -1
  83. package/dist/blocks/planning.js +88 -97
  84. package/dist/blocks/planning.js.map +1 -1
  85. package/dist/blocks/timelines.js +1 -1
  86. package/dist/{breadcrumbs-DdQ_I5ra.js → breadcrumbs-BG_FfMK4.js} +10 -9
  87. package/dist/breadcrumbs-BG_FfMK4.js.map +1 -0
  88. package/dist/button-BS3KDg00.js +674 -0
  89. package/dist/button-BS3KDg00.js.map +1 -0
  90. package/dist/{button-BS6l5JUw.js → button-R9CCoH7A.js} +3 -3
  91. package/dist/button-R9CCoH7A.js.map +1 -0
  92. package/dist/buttons-DS0ZIwJ_.js +99 -0
  93. package/dist/buttons-DS0ZIwJ_.js.map +1 -0
  94. package/dist/{cards-Cum56XOF.js → cards-QoJ4syG9.js} +12 -12
  95. package/dist/{cards-Cum56XOF.js.map → cards-QoJ4syG9.js.map} +1 -1
  96. package/dist/chart-DwYRKKc-.js +152 -0
  97. package/dist/chart-DwYRKKc-.js.map +1 -0
  98. package/dist/checkbox-B7ygNTYp.js +35 -0
  99. package/dist/checkbox-B7ygNTYp.js.map +1 -0
  100. package/dist/choice-inputs-DrJ17tpL.js +752 -0
  101. package/dist/choice-inputs-DrJ17tpL.js.map +1 -0
  102. package/dist/{code-block-xHKbAJDj.js → code-block-CD0B7M93.js} +27 -27
  103. package/dist/code-block-CD0B7M93.js.map +1 -0
  104. package/dist/{collapsible-DsnktFNv.js → collapsible-oMUGM4tr.js} +3 -3
  105. package/dist/{collapsible-DsnktFNv.js.map → collapsible-oMUGM4tr.js.map} +1 -1
  106. package/dist/{collection-content-C4fthJV_.js → collection-content-Ys-OZOkY.js} +3 -3
  107. package/dist/{collection-content-C4fthJV_.js.map → collection-content-Ys-OZOkY.js.map} +1 -1
  108. package/dist/combobox-6dvVny2q.js +272 -0
  109. package/dist/combobox-6dvVny2q.js.map +1 -0
  110. package/dist/combobox-CB7039j7.js +865 -0
  111. package/dist/combobox-CB7039j7.js.map +1 -0
  112. package/dist/{command-C0xe7u9B.js → command-kPMPjIxJ.js} +35 -31
  113. package/dist/command-kPMPjIxJ.js.map +1 -0
  114. package/dist/{comments-DviPLnwy.js → comments-You0Bzbr.js} +434 -409
  115. package/dist/comments-You0Bzbr.js.map +1 -0
  116. package/dist/components/base/accordion/accordion-variants.d.ts +3 -3
  117. package/dist/components/base/action-menu/action-menu.d.ts +7 -2
  118. package/dist/components/base/avatar/stacked-avatars.d.ts +5 -4
  119. package/dist/components/base/badge/badge.d.ts +1 -1
  120. package/dist/components/base/badge/badge.recipes.d.ts +4 -4
  121. package/dist/components/base/buttons/base-button.d.ts +7 -0
  122. package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
  123. package/dist/components/base/buttons/button.recipes.d.ts +10 -19
  124. package/dist/components/base/buttons/button.variants.d.ts +1 -0
  125. package/dist/components/base/buttons/loader-button.d.ts +3 -1
  126. package/dist/components/base/buttons/text-button.d.ts +2 -2
  127. package/dist/components/base/buttons/use-pending-button-focus.d.ts +3 -0
  128. package/dist/components/base/cards/card.recipes.d.ts +13 -5
  129. package/dist/components/base/cards/partials/card-primitives.d.ts +9 -4
  130. package/dist/components/base/cards/smart-card.types.d.ts +1 -1
  131. package/dist/components/base/carousel/carousel.d.ts +3 -1
  132. package/dist/components/base/chart/chart.d.ts +7 -7
  133. package/dist/components/base/choice-inputs/checkbox.d.ts +6 -7
  134. package/dist/components/base/choice-inputs/choice-types.d.ts +10 -1
  135. package/dist/components/base/choice-inputs/pill-radio-group.d.ts +9 -0
  136. package/dist/components/base/choice-inputs/select-popup.d.ts +9 -1
  137. package/dist/components/base/choice-inputs/switch-card.d.ts +1 -1
  138. package/dist/components/base/date-pickers/date-picker-field.d.ts +23 -0
  139. package/dist/components/base/date-pickers/date-picker.recipes.d.ts +5 -18
  140. package/dist/components/base/date-pickers/datepicker.types.d.ts +16 -3
  141. package/dist/components/base/display/alert-dialog.d.ts +8 -2
  142. package/dist/components/base/display/content-block.d.ts +4 -2
  143. package/dist/components/base/display/date-block.d.ts +1 -1
  144. package/dist/components/base/display/dialog.d.ts +12 -5
  145. package/dist/components/base/display/surface-title.d.ts +6 -1
  146. package/dist/components/base/feedback/alert.d.ts +1 -1
  147. package/dist/components/base/feedback/state-display.d.ts +5 -4
  148. package/dist/components/base/forms/form-field.d.ts +1 -0
  149. package/dist/components/base/forms/form-sizing.d.ts +35 -3
  150. package/dist/components/base/forms/workflow.d.ts +2 -0
  151. package/dist/components/base/forms-numeric/coordinates-input.d.ts +3 -0
  152. package/dist/components/base/forms-numeric/rounding-mode-select.d.ts +4 -1
  153. package/dist/components/base/navigation/dropdown-menu.d.ts +2 -2
  154. package/dist/components/base/navigation/language-switcher.d.ts +4 -1
  155. package/dist/components/base/navigation/overflow-tab-bar.d.ts +7 -0
  156. package/dist/components/base/navigation/page-header/page-header.d.ts +4 -1
  157. package/dist/components/base/navigation/tabs.d.ts +3 -5
  158. package/dist/components/base/popover/popover.recipes.d.ts +3 -3
  159. package/dist/components/base/qr-code/qr-code.d.ts +2 -0
  160. package/dist/components/base/sheet/index.d.ts +29 -1
  161. package/dist/components/base/sheet/sheet.d.ts +14 -5
  162. package/dist/components/base/spinner/spinner.d.ts +3 -2
  163. package/dist/components/base/structure/structure.types.d.ts +1 -1
  164. package/dist/components/base/table/index.d.ts +1 -1
  165. package/dist/components/base/text-inputs/clear-native-field.d.ts +2 -0
  166. package/dist/components/base/text-inputs/input-group.d.ts +2 -2
  167. package/dist/components/base/text-inputs/input-trailing-action.d.ts +3 -0
  168. package/dist/components/base/upload/upload.recipes.d.ts +11 -0
  169. package/dist/components/base/value-inputs/date-time-input.d.ts +4 -2
  170. package/dist/components/base/value-inputs/tags-input.d.ts +2 -0
  171. package/dist/components/blocks/admin/api-key-list/api-key-list.types.d.ts +1 -1
  172. package/dist/components/blocks/analytics/format-metric-value.d.ts +11 -1
  173. package/dist/components/blocks/analytics/index.d.ts +1 -1
  174. package/dist/components/blocks/analytics/types.d.ts +1 -1
  175. package/dist/components/blocks/analytics/use-metric-format-options.d.ts +3 -0
  176. package/dist/components/blocks/collaboration/message/message.recipes.d.ts +12 -0
  177. package/dist/components/blocks/commerce/address-card/address-card.d.ts +1 -1
  178. package/dist/components/blocks/commerce/address-card/types.d.ts +3 -1
  179. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.d.ts +4 -0
  180. package/dist/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.types.d.ts +2 -2
  181. package/dist/components/blocks/commerce/discount-stack/types.d.ts +1 -1
  182. package/dist/components/blocks/commerce/inventory-section/types.d.ts +4 -1
  183. package/dist/components/blocks/commerce/loyalty-points/types.d.ts +1 -1
  184. package/dist/components/blocks/commerce/order-status/types.d.ts +4 -0
  185. package/dist/components/blocks/commerce/payment-method/payment-method.d.ts +1 -1
  186. package/dist/components/blocks/commerce/payment-method/types.d.ts +3 -1
  187. package/dist/components/blocks/commerce/seo-listing/seo-listing-card.d.ts +1 -1
  188. package/dist/components/blocks/commerce/seo-listing/types.d.ts +3 -1
  189. package/dist/components/blocks/commerce/vendor-profile/types.d.ts +4 -1
  190. package/dist/components/blocks/data-display/dense-info-card/dense-info.strings.d.ts +4 -1
  191. package/dist/components/blocks/data-display/empty-state/partials/illustrations/document-stack.d.ts +1 -4
  192. package/dist/components/blocks/data-display/empty-state/partials/illustrations/inbox-clean.d.ts +1 -4
  193. package/dist/components/blocks/data-display/empty-state/partials/illustrations/index.d.ts +3 -3
  194. package/dist/components/blocks/data-display/empty-state/partials/illustrations/stacked-cards.d.ts +1 -6
  195. package/dist/components/blocks/data-display/inline-stat/inline-stat.d.ts +4 -1
  196. package/dist/components/features/combobox/components/error-message.d.ts +1 -1
  197. package/dist/components/features/comments/hooks/use-attachment-upload.d.ts +5 -0
  198. package/dist/components/features/filters/facets/search-facet.d.ts +0 -12
  199. package/dist/components/features/filters/facets/tags-facet.d.ts +1 -1
  200. package/dist/components/features/global-search/partials/global-search-idle-state.d.ts +1 -1
  201. package/dist/components/features/media-library/media-library.d.ts +1 -1
  202. package/dist/components/features/media-library/media-library.types.d.ts +9 -1
  203. package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
  204. package/dist/components/features/overlays/alert-dialog.d.ts +1 -1
  205. package/dist/components/features/overlays/drawer.d.ts +1 -1
  206. package/dist/components/features/overlays/hooks/use-overlay-actions.d.ts +2 -2
  207. package/dist/components/features/overlays/hooks/use-overlay-visibility.d.ts +11 -4
  208. package/dist/components/features/overlays/hooks/use-pending-overlay-focus.d.ts +2 -0
  209. package/dist/components/features/overlays/overlay-tone-icon.d.ts +37 -0
  210. package/dist/components/features/overlays/overlays.types.d.ts +46 -22
  211. package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
  212. package/dist/components/features/products/partials/index.d.ts +1 -1
  213. package/dist/components/features/products/partials/product-metric-tile.d.ts +6 -0
  214. package/dist/components/features/products/partials/product-tone.d.ts +11 -1
  215. package/dist/components/features/products/products.types.d.ts +2 -1
  216. package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +2 -1
  217. package/dist/components/features/table/data-table.d.ts +1 -1
  218. package/dist/components/features/table/partials/cell-renderers.d.ts +1 -1
  219. package/dist/components/features/table/table.types.d.ts +1 -1
  220. package/dist/components/features/theme-tweaker/theme-provider-settings.d.ts +3 -1
  221. package/dist/components/layout/auth/auth.types.d.ts +1 -0
  222. package/dist/components/layout/page/index.d.ts +1 -1
  223. package/dist/components/layout/page/page.d.ts +0 -1
  224. package/dist/components/layout/page/page.types.d.ts +62 -6
  225. package/dist/components/layout/page/partials/page-header-commands.d.ts +13 -0
  226. package/dist/components/layout/page/partials/page-header.d.ts +1 -1
  227. package/dist/components/layout/sidebar/sidebar.context.d.ts +1 -1
  228. package/dist/components/layout/sidebar/sidebar.types.d.ts +4 -0
  229. package/dist/components/layout/workspace/workspace.types.d.ts +3 -0
  230. package/dist/components/primitives/date.d.ts +16 -3
  231. package/dist/components/primitives/dimensions.d.ts +6 -0
  232. package/dist/components/primitives/duration.d.ts +6 -0
  233. package/dist/components/primitives/file-size.d.ts +6 -0
  234. package/dist/components/primitives/index.d.ts +1 -1
  235. package/dist/components/primitives/initials.d.ts +11 -2
  236. package/dist/components/primitives/link.d.ts +7 -0
  237. package/dist/components/primitives/money.d.ts +29 -7
  238. package/dist/components/primitives/number.d.ts +17 -0
  239. package/dist/components/primitives/value-typography.d.ts +54 -0
  240. package/dist/components/primitives/value.d.ts +31 -6
  241. package/dist/components/typography/heading.d.ts +13 -2
  242. package/dist/components/typography/index.d.ts +1 -1
  243. package/dist/components/typography/label.d.ts +3 -0
  244. package/dist/components/typography/running-text.d.ts +12 -0
  245. package/dist/components/typography/text-link.d.ts +23 -1
  246. package/dist/components/typography/text.d.ts +12 -0
  247. package/dist/components/typography/text.styles.d.ts +37 -5
  248. package/dist/components/ui/button.d.ts +1 -1
  249. package/dist/components/ui/checkbox.d.ts +5 -0
  250. package/dist/components/ui/overlay.recipes.d.ts +15 -2
  251. package/dist/components/ui/popover.d.ts +1 -1
  252. package/dist/components/ui/select.d.ts +3 -1
  253. package/dist/components/ui/sidebar.d.ts +1 -1
  254. package/dist/components/ui/switch.d.ts +5 -0
  255. package/dist/components/ui/table.d.ts +2 -1
  256. package/dist/container.recipes-D9t8MHR3.js +27 -0
  257. package/dist/container.recipes-D9t8MHR3.js.map +1 -0
  258. package/dist/{containers-6s-ucRQQ.js → containers-D_L4mTVb.js} +34 -57
  259. package/dist/containers-D_L4mTVb.js.map +1 -0
  260. package/dist/control-group-recipes-DBXmfh2E.js +21 -0
  261. package/dist/control-group-recipes-DBXmfh2E.js.map +1 -0
  262. package/dist/{copyable-B7SBXJMr.js → copyable-DDjTeW_j.js} +6 -6
  263. package/dist/{copyable-B7SBXJMr.js.map → copyable-DDjTeW_j.js.map} +1 -1
  264. package/dist/data-display-3xWQUnMA.js +1335 -0
  265. package/dist/data-display-3xWQUnMA.js.map +1 -0
  266. package/dist/date-picker-DrDFj8Lo.js +1527 -0
  267. package/dist/date-picker-DrDFj8Lo.js.map +1 -0
  268. package/dist/date-pickers-CnFCb0n2.js +174 -0
  269. package/dist/date-pickers-CnFCb0n2.js.map +1 -0
  270. package/dist/date-uf3z37Nm.js +144 -0
  271. package/dist/date-uf3z37Nm.js.map +1 -0
  272. package/dist/{display-CFM5myut.js → display-DrdvPwF0.js} +25 -25
  273. package/dist/display-DrdvPwF0.js.map +1 -0
  274. package/dist/{dropdown-menu-BlnyHr-9.js → dropdown-menu-CURh59jb.js} +22 -15
  275. package/dist/dropdown-menu-CURh59jb.js.map +1 -0
  276. package/dist/features/activities.js +177 -163
  277. package/dist/features/activities.js.map +1 -1
  278. package/dist/features/ai-chat.js +187 -183
  279. package/dist/features/ai-chat.js.map +1 -1
  280. package/dist/features/async-preview.js +9 -9
  281. package/dist/features/async-preview.js.map +1 -1
  282. package/dist/features/combobox.js +1 -1
  283. package/dist/features/comments.js +1 -1
  284. package/dist/features/data-view.js +25 -23
  285. package/dist/features/data-view.js.map +1 -1
  286. package/dist/features/email-composer/engine.js +1 -1
  287. package/dist/features/email-composer.js +353 -355
  288. package/dist/features/email-composer.js.map +1 -1
  289. package/dist/features/event-calendar.js +346 -354
  290. package/dist/features/event-calendar.js.map +1 -1
  291. package/dist/features/filters.js +1 -1
  292. package/dist/features/global-search.js +225 -227
  293. package/dist/features/global-search.js.map +1 -1
  294. package/dist/features/kanban.js +29 -29
  295. package/dist/features/kanban.js.map +1 -1
  296. package/dist/features/map.js +59 -58
  297. package/dist/features/map.js.map +1 -1
  298. package/dist/features/media-library.js +898 -900
  299. package/dist/features/media-library.js.map +1 -1
  300. package/dist/features/mentions.js +1 -1
  301. package/dist/features/overlays.js +1 -1
  302. package/dist/features/products.js +1412 -1444
  303. package/dist/features/products.js.map +1 -1
  304. package/dist/features/questionnaire.js +51 -49
  305. package/dist/features/questionnaire.js.map +1 -1
  306. package/dist/features/resource-assignment.js +103 -97
  307. package/dist/features/resource-assignment.js.map +1 -1
  308. package/dist/features/resource.js +13 -13
  309. package/dist/features/resource.js.map +1 -1
  310. package/dist/features/rich-text-editor.js +2 -2
  311. package/dist/features/schema-form.js +187 -183
  312. package/dist/features/schema-form.js.map +1 -1
  313. package/dist/features/suggestions.js +3 -3
  314. package/dist/features/sync.js +7 -7
  315. package/dist/features/sync.js.map +1 -1
  316. package/dist/features/table.js +1 -1
  317. package/dist/features/theme-tweaker.js +508 -503
  318. package/dist/features/theme-tweaker.js.map +1 -1
  319. package/dist/{feedback-DWUkgEjR.js → feedback-C7nR0UtT.js} +30 -31
  320. package/dist/feedback-C7nR0UtT.js.map +1 -0
  321. package/dist/field-affordance-recipes-CkOCdE2y.js +46 -0
  322. package/dist/field-affordance-recipes-CkOCdE2y.js.map +1 -0
  323. package/dist/{field-state-recipes-CBTRt9Bt.js → field-state-recipes-C-MFBX_8.js} +5 -5
  324. package/dist/field-state-recipes-C-MFBX_8.js.map +1 -0
  325. package/dist/{filters-BhsUtsxW.js → filters-Da-gNPsE.js} +760 -765
  326. package/dist/filters-Da-gNPsE.js.map +1 -0
  327. package/dist/{form-field-Bn7ZH1rA.js → form-field-VZRULhUK.js} +20 -12
  328. package/dist/form-field-VZRULhUK.js.map +1 -0
  329. package/dist/form-sizing-uWP4lzVh.js +126 -0
  330. package/dist/form-sizing-uWP4lzVh.js.map +1 -0
  331. package/dist/{forms-B7pzS25o.js → forms-DDeEnXSY.js} +38 -38
  332. package/dist/forms-DDeEnXSY.js.map +1 -0
  333. package/dist/forms-numeric-D3CO60IF.js +905 -0
  334. package/dist/forms-numeric-D3CO60IF.js.map +1 -0
  335. package/dist/{header-C59QZyxV.js → header-2ycNqGOR.js} +42 -37
  336. package/dist/header-2ycNqGOR.js.map +1 -0
  337. package/dist/{hooks-CM1Vp9Pe.js → hooks-DQ5SPwZw.js} +2 -2
  338. package/dist/{hooks-CM1Vp9Pe.js.map → hooks-DQ5SPwZw.js.map} +1 -1
  339. package/dist/{http-CLTVJc5I.js → http-CdEIHyQf.js} +2 -2
  340. package/dist/http-CdEIHyQf.js.map +1 -0
  341. package/dist/{icon-badge-Dv0RYQwj.js → icon-badge-DKlaKXoo.js} +4 -4
  342. package/dist/{icon-badge-Dv0RYQwj.js.map → icon-badge-DKlaKXoo.js.map} +1 -1
  343. package/dist/index.js +2 -2
  344. package/dist/input-BoLm9Hks.js +20 -0
  345. package/dist/input-BoLm9Hks.js.map +1 -0
  346. package/dist/input-DhQdBnV3.js +255 -0
  347. package/dist/input-DhQdBnV3.js.map +1 -0
  348. package/dist/item-xzh8Df65.js +264 -0
  349. package/dist/item-xzh8Df65.js.map +1 -0
  350. package/dist/layout/app-shell.js +1 -1
  351. package/dist/layout/auth.js +1 -1
  352. package/dist/layout/containers.js +1 -1
  353. package/dist/layout/header.js +1 -1
  354. package/dist/layout/hooks.js +1 -1
  355. package/dist/layout/navigation.js +1 -1
  356. package/dist/layout/page.js +1 -1
  357. package/dist/layout/settings.js +1 -1
  358. package/dist/layout/sidebar.js +2 -2
  359. package/dist/layout/workspace.js +1 -1
  360. package/dist/layout.js +10 -10
  361. package/dist/lib/affordance-geometry.generated.d.ts +46 -10
  362. package/dist/lib/control-group-recipes.d.ts +22 -0
  363. package/dist/lib/field-affordance-recipes.d.ts +70 -2
  364. package/dist/lib/field-state-recipes.d.ts +6 -4
  365. package/dist/lib/format.d.ts +9 -0
  366. package/dist/lib/money-format.d.ts +30 -0
  367. package/dist/lib/navigation-row-recipes.d.ts +3 -2
  368. package/dist/lib/overlay-anatomy-recipes.d.ts +2 -2
  369. package/dist/lib/surface-recipes.d.ts +13 -8
  370. package/dist/lib/token-merge.generated.d.ts +144 -2
  371. package/dist/lib/track-recipes.d.ts +1 -1
  372. package/dist/lib/ui-provider/provider.d.ts +7 -2
  373. package/dist/lib/ui-provider/store.d.ts +6 -2
  374. package/dist/lib/ui-provider/types.d.ts +9 -4
  375. package/dist/lib/use-prefers-reduced-motion.d.ts +2 -0
  376. package/dist/lib/utils.js +1 -1
  377. package/dist/media-gallery-DQUQ0m3O.js +201 -0
  378. package/dist/media-gallery-DQUQ0m3O.js.map +1 -0
  379. package/dist/{mentions-B8Ko-fhS.js → mentions-DwnO1hh4.js} +40 -39
  380. package/dist/{mentions-B8Ko-fhS.js.map → mentions-DwnO1hh4.js.map} +1 -1
  381. package/dist/message-YfFmbXNP.js +127 -0
  382. package/dist/message-YfFmbXNP.js.map +1 -0
  383. package/dist/{navigation-BUIn2Qxx.js → navigation-Cbp5V8gG.js} +27 -28
  384. package/dist/navigation-Cbp5V8gG.js.map +1 -0
  385. package/dist/navigation-Cs1npsPm.js +300 -0
  386. package/dist/navigation-Cs1npsPm.js.map +1 -0
  387. package/dist/{navigation-row-recipes-GVh11KiT.js → navigation-row-recipes-DlU-4QYO.js} +3 -3
  388. package/dist/navigation-row-recipes-DlU-4QYO.js.map +1 -0
  389. package/dist/number-CKRBYmZK.js +352 -0
  390. package/dist/number-CKRBYmZK.js.map +1 -0
  391. package/dist/overlay.recipes-CNO2S9V6.js +34 -0
  392. package/dist/overlay.recipes-CNO2S9V6.js.map +1 -0
  393. package/dist/overlays-DhZO7N-I.js +994 -0
  394. package/dist/overlays-DhZO7N-I.js.map +1 -0
  395. package/dist/page-C6R_8jFt.js +325 -0
  396. package/dist/page-C6R_8jFt.js.map +1 -0
  397. package/dist/{page-header-DQRa0jug.js → page-header-hUTzcRZX.js} +12 -12
  398. package/dist/page-header-hUTzcRZX.js.map +1 -0
  399. package/dist/{pagination-C29vvt3I.js → pagination-Cm0jqa3I.js} +21 -21
  400. package/dist/pagination-Cm0jqa3I.js.map +1 -0
  401. package/dist/{popover-CoLDEg19.js → popover-Dcv_9jxr.js} +23 -22
  402. package/dist/popover-Dcv_9jxr.js.map +1 -0
  403. package/dist/{popover-menu-GLIQTJTx.js → popover-menu-DnRFKnHP.js} +6 -6
  404. package/dist/{popover-menu-GLIQTJTx.js.map → popover-menu-DnRFKnHP.js.map} +1 -1
  405. package/dist/{popover.recipes-zgBhMlUu.js → popover.recipes-wmbvL8Ah.js} +5 -5
  406. package/dist/popover.recipes-wmbvL8Ah.js.map +1 -0
  407. package/dist/primitives-BHrwQXFC.js +379 -0
  408. package/dist/primitives-BHrwQXFC.js.map +1 -0
  409. package/dist/primitives.js +5 -5
  410. package/dist/{progress-BOe8l_FZ.js → progress-Br9WTFya.js} +12 -11
  411. package/dist/progress-Br9WTFya.js.map +1 -0
  412. package/dist/{receipt-BM8xsGFy.js → receipt-CV89q1fs.js} +8 -8
  413. package/dist/{receipt-BM8xsGFy.js.map → receipt-CV89q1fs.js.map} +1 -1
  414. package/dist/rich-text-editor-CF8QYt5p.js +574 -0
  415. package/dist/rich-text-editor-CF8QYt5p.js.map +1 -0
  416. package/dist/{rich-text-editor.recipes-DxvOE0Lp.js → rich-text-editor.recipes-CnrbmTS1.js} +35 -26
  417. package/dist/rich-text-editor.recipes-CnrbmTS1.js.map +1 -0
  418. package/dist/{rich-text-B7sBAdDG.js → rich-text-j-FGAeZW.js} +4 -4
  419. package/dist/{rich-text-B7sBAdDG.js.map → rich-text-j-FGAeZW.js.map} +1 -1
  420. package/dist/{scroll-area-BheMQ270.js → scroll-area-DRdr16Pt.js} +3 -3
  421. package/dist/scroll-area-DRdr16Pt.js.map +1 -0
  422. package/dist/{separator-DO0EbCEm.js → separator-BMEvwnSX.js} +2 -2
  423. package/dist/{separator-DO0EbCEm.js.map → separator-BMEvwnSX.js.map} +1 -1
  424. package/dist/{separator-Gk_WXH-l.js → separator-Do5GWDYi.js} +4 -4
  425. package/dist/separator-Do5GWDYi.js.map +1 -0
  426. package/dist/services/actions/action-adapters.d.ts +4 -0
  427. package/dist/services/actions.js +8 -3
  428. package/dist/services/actions.js.map +1 -1
  429. package/dist/{settings-BnCyyPOJ.js → settings-DHk0L2MF.js} +20 -19
  430. package/dist/settings-DHk0L2MF.js.map +1 -0
  431. package/dist/sheet-DRFNY1_D.js +207 -0
  432. package/dist/sheet-DRFNY1_D.js.map +1 -0
  433. package/dist/sidebar-Cb8WzOvE.js +511 -0
  434. package/dist/sidebar-Cb8WzOvE.js.map +1 -0
  435. package/dist/{sidebar-DPR7fmqN.js → sidebar-Crc9M9JV.js} +220 -201
  436. package/dist/sidebar-Crc9M9JV.js.map +1 -0
  437. package/dist/{skeleton-CmT1ppqb.js → skeleton-DVMXr15h.js} +5 -5
  438. package/dist/{skeleton-CmT1ppqb.js.map → skeleton-DVMXr15h.js.map} +1 -1
  439. package/dist/smart-card-Bek-TwUp.js +599 -0
  440. package/dist/smart-card-Bek-TwUp.js.map +1 -0
  441. package/dist/{spinner-BY9HbUEh.js → spinner-CmTAbEp0.js} +8 -6
  442. package/dist/spinner-CmTAbEp0.js.map +1 -0
  443. package/dist/{structure-MvKVq-oL.js → structure-hzCW-XsV.js} +3 -3
  444. package/dist/{structure-MvKVq-oL.js.map → structure-hzCW-XsV.js.map} +1 -1
  445. package/dist/{structure.recipes-Bqhf9oIh.js → structure.recipes-EPz60cU8.js} +37 -19
  446. package/dist/structure.recipes-EPz60cU8.js.map +1 -0
  447. package/dist/style.css +1 -1
  448. package/dist/surface-recipes-DOdoBXGm.js +28 -0
  449. package/dist/surface-recipes-DOdoBXGm.js.map +1 -0
  450. package/dist/table-D6zKeYQX.js +162 -0
  451. package/dist/table-D6zKeYQX.js.map +1 -0
  452. package/dist/table-Dn4XSrSB.js +1444 -0
  453. package/dist/table-Dn4XSrSB.js.map +1 -0
  454. package/dist/tabs-Dk8E_knt.js +189 -0
  455. package/dist/tabs-Dk8E_knt.js.map +1 -0
  456. package/dist/text-inputs-BFpku0Qd.js +331 -0
  457. package/dist/text-inputs-BFpku0Qd.js.map +1 -0
  458. package/dist/{text.styles-BwB7vAF2.js → text.styles-g4He6UIW.js} +26 -15
  459. package/dist/text.styles-g4He6UIW.js.map +1 -0
  460. package/dist/theme.css +90 -124
  461. package/dist/themes/green.css +24 -0
  462. package/dist/{timelines-B9ICkQcV.js → timelines-CxuAFIc2.js} +97 -104
  463. package/dist/timelines-CxuAFIc2.js.map +1 -0
  464. package/dist/track-recipes-CDcKmndW.js +10 -0
  465. package/dist/track-recipes-CDcKmndW.js.map +1 -0
  466. package/dist/{tree-BdWSaoFT.js → tree-BotPlyiD.js} +13 -13
  467. package/dist/{tree-BdWSaoFT.js.map → tree-BotPlyiD.js.map} +1 -1
  468. package/dist/typography/rich-text.js +1 -1
  469. package/dist/typography-CAr3dQhX.js +116 -0
  470. package/dist/typography-CAr3dQhX.js.map +1 -0
  471. package/dist/typography.js +2 -2
  472. package/dist/{ui-provider-CftIB6TY.js → ui-provider-D2_TeLqw.js} +22 -22
  473. package/dist/ui-provider-D2_TeLqw.js.map +1 -0
  474. package/dist/ui-provider.js +1 -1
  475. package/dist/{upload-D8Za5x_c.js → upload-B0WHW7ak.js} +278 -274
  476. package/dist/upload-B0WHW7ak.js.map +1 -0
  477. package/dist/{upload-queue-hIIYBLS7.js → upload-queue-BHZ_wBfd.js} +72 -75
  478. package/dist/upload-queue-BHZ_wBfd.js.map +1 -0
  479. package/dist/{usage-card-DnmnJ58D.js → usage-card-U0YBLTNT.js} +31 -33
  480. package/dist/usage-card-U0YBLTNT.js.map +1 -0
  481. package/dist/utils-Cospvlj1.js +4445 -0
  482. package/dist/utils-Cospvlj1.js.map +1 -0
  483. package/dist/value-inputs-CjfzGMsN.js +854 -0
  484. package/dist/value-inputs-CjfzGMsN.js.map +1 -0
  485. package/dist/value-typography-Deb3yQZg.js +116 -0
  486. package/dist/value-typography-Deb3yQZg.js.map +1 -0
  487. package/dist/{workspace-C1PZmk8L.js → workspace-YoFjXi6i.js} +97 -105
  488. package/dist/workspace-YoFjXi6i.js.map +1 -0
  489. package/docs/consumer-skill/SKILL.md +123 -119
  490. package/docs/consumer-skill/examples/analytics.tsx +34 -0
  491. package/docs/consumer-skill/examples/app-layout.tsx +42 -14
  492. package/docs/consumer-skill/examples/detail.tsx +20 -5
  493. package/docs/consumer-skill/examples/edit.tsx +1 -1
  494. package/docs/consumer-skill/examples/layout-blocks.tsx +20 -0
  495. package/docs/consumer-skill/examples/manifest.json +37 -3
  496. package/docs/consumer-skill/examples/scoped-directory.tsx +2 -2
  497. package/docs/consumer-skill/examples/website.tsx +56 -0
  498. package/docs/consumer-skill/references/analytics.md +70 -0
  499. package/docs/consumer-skill/references/composition.md +195 -9
  500. package/docs/consumer-skill/references/design-contract.md +33 -7
  501. package/docs/consumer-skill/references/discovery.md +80 -5
  502. package/docs/consumer-skill/references/installation.md +22 -0
  503. package/docs/consumer-skill/references/integration.md +46 -1
  504. package/docs/consumer-skill/references/public-api.json +2083 -237
  505. package/docs/consumer-skill/references/review.md +74 -6
  506. package/docs/consumer-skill/references/theming.md +59 -8
  507. package/docs/consumer-skill/references/tokens.json +180 -9
  508. package/docs/consumer-skill/references/workflows.md +34 -0
  509. package/docs/consumer-skill/scripts/check-composition.mjs +1 -1
  510. package/docs/consumer-skill/scripts/composition-policy.mjs +271 -18
  511. package/docs/consumer-skill/scripts/discovery.mjs +69 -9
  512. package/docs/consumer-skill/scripts/pin-button-defaults.mjs +95 -0
  513. package/docs/consumer-skill/scripts/surface-policy.mjs +44 -0
  514. package/package.json +11 -6
  515. package/dist/accordion-B-5Focs8.js.map +0 -1
  516. package/dist/action-menu-Cx3SdfbN.js +0 -265
  517. package/dist/action-menu-Cx3SdfbN.js.map +0 -1
  518. package/dist/affordance-geometry.generated-D8Jcfb0G.js +0 -32
  519. package/dist/affordance-geometry.generated-D8Jcfb0G.js.map +0 -1
  520. package/dist/ai-artifact-B5tPpXnS.js.map +0 -1
  521. package/dist/app-shell-at8Kt4l_.js.map +0 -1
  522. package/dist/attachment-BO2R47wn.js.map +0 -1
  523. package/dist/auth-OFwWSAap.js +0 -704
  524. package/dist/auth-OFwWSAap.js.map +0 -1
  525. package/dist/avatar-Bpzty83c.js.map +0 -1
  526. package/dist/badge-BZXZT9wd.js.map +0 -1
  527. package/dist/breadcrumbs-DdQ_I5ra.js.map +0 -1
  528. package/dist/button-BS6l5JUw.js.map +0 -1
  529. package/dist/buttons-Co6GavvM.js +0 -674
  530. package/dist/buttons-Co6GavvM.js.map +0 -1
  531. package/dist/chart-DVfcwQu6.js +0 -149
  532. package/dist/chart-DVfcwQu6.js.map +0 -1
  533. package/dist/checkbox-BavDRjF7.js +0 -34
  534. package/dist/checkbox-BavDRjF7.js.map +0 -1
  535. package/dist/choice-inputs-CC7XqPQO.js +0 -619
  536. package/dist/choice-inputs-CC7XqPQO.js.map +0 -1
  537. package/dist/code-block-xHKbAJDj.js.map +0 -1
  538. package/dist/combobox-DEbdr-3u.js +0 -273
  539. package/dist/combobox-DEbdr-3u.js.map +0 -1
  540. package/dist/combobox-xv3yJbzl.js +0 -850
  541. package/dist/combobox-xv3yJbzl.js.map +0 -1
  542. package/dist/command-C0xe7u9B.js.map +0 -1
  543. package/dist/comments-DviPLnwy.js.map +0 -1
  544. package/dist/containers-6s-ucRQQ.js.map +0 -1
  545. package/dist/data-display-cWIRdeaf.js +0 -1129
  546. package/dist/data-display-cWIRdeaf.js.map +0 -1
  547. package/dist/date-BFNMnrS5.js +0 -140
  548. package/dist/date-BFNMnrS5.js.map +0 -1
  549. package/dist/date-picker-CA6ogMQB.js +0 -1521
  550. package/dist/date-picker-CA6ogMQB.js.map +0 -1
  551. package/dist/date-pickers-BPIKLdsD.js +0 -224
  552. package/dist/date-pickers-BPIKLdsD.js.map +0 -1
  553. package/dist/display-CFM5myut.js.map +0 -1
  554. package/dist/dropdown-menu-BlnyHr-9.js.map +0 -1
  555. package/dist/feedback-DWUkgEjR.js.map +0 -1
  556. package/dist/field-affordance-recipes-IjzPrCTw.js +0 -17
  557. package/dist/field-affordance-recipes-IjzPrCTw.js.map +0 -1
  558. package/dist/field-state-recipes-CBTRt9Bt.js.map +0 -1
  559. package/dist/filters-BhsUtsxW.js.map +0 -1
  560. package/dist/form-field-Bn7ZH1rA.js.map +0 -1
  561. package/dist/form-sizing-BWs70_a2.js +0 -100
  562. package/dist/form-sizing-BWs70_a2.js.map +0 -1
  563. package/dist/format-iamDSqs2.js +0 -110
  564. package/dist/format-iamDSqs2.js.map +0 -1
  565. package/dist/forms-B7pzS25o.js.map +0 -1
  566. package/dist/forms-numeric-BUBxELBv.js +0 -867
  567. package/dist/forms-numeric-BUBxELBv.js.map +0 -1
  568. package/dist/header-C59QZyxV.js.map +0 -1
  569. package/dist/http-CLTVJc5I.js.map +0 -1
  570. package/dist/input-WwYQZJzG.js +0 -202
  571. package/dist/input-WwYQZJzG.js.map +0 -1
  572. package/dist/input-ci9fIgFH.js +0 -20
  573. package/dist/input-ci9fIgFH.js.map +0 -1
  574. package/dist/item-pJ0GsOiJ.js +0 -257
  575. package/dist/item-pJ0GsOiJ.js.map +0 -1
  576. package/dist/media-gallery-DhDRgnVZ.js +0 -200
  577. package/dist/media-gallery-DhDRgnVZ.js.map +0 -1
  578. package/dist/message-COsdEvXT.js +0 -108
  579. package/dist/message-COsdEvXT.js.map +0 -1
  580. package/dist/navigation-BUIn2Qxx.js.map +0 -1
  581. package/dist/navigation-DBEu4POU.js +0 -267
  582. package/dist/navigation-DBEu4POU.js.map +0 -1
  583. package/dist/navigation-row-recipes-GVh11KiT.js.map +0 -1
  584. package/dist/number-BNT_BIzJ.js +0 -269
  585. package/dist/number-BNT_BIzJ.js.map +0 -1
  586. package/dist/overlay.recipes-BxW5FIfK.js +0 -6
  587. package/dist/overlay.recipes-BxW5FIfK.js.map +0 -1
  588. package/dist/overlays-B11wZka6.js +0 -982
  589. package/dist/overlays-B11wZka6.js.map +0 -1
  590. package/dist/page-BV6ioQg3.js +0 -202
  591. package/dist/page-BV6ioQg3.js.map +0 -1
  592. package/dist/page-header-DQRa0jug.js.map +0 -1
  593. package/dist/pagination-C29vvt3I.js.map +0 -1
  594. package/dist/popover-CoLDEg19.js.map +0 -1
  595. package/dist/popover.recipes-zgBhMlUu.js.map +0 -1
  596. package/dist/primitives-DKPOGVpj.js +0 -330
  597. package/dist/primitives-DKPOGVpj.js.map +0 -1
  598. package/dist/progress-BOe8l_FZ.js.map +0 -1
  599. package/dist/rich-text-editor-CoVrTiSv.js +0 -575
  600. package/dist/rich-text-editor-CoVrTiSv.js.map +0 -1
  601. package/dist/rich-text-editor.recipes-DxvOE0Lp.js.map +0 -1
  602. package/dist/scroll-area-BheMQ270.js.map +0 -1
  603. package/dist/select-B2mb-qN2.js +0 -108
  604. package/dist/select-B2mb-qN2.js.map +0 -1
  605. package/dist/separator-Gk_WXH-l.js.map +0 -1
  606. package/dist/settings-BnCyyPOJ.js.map +0 -1
  607. package/dist/sheet-B-q914Ad.js +0 -205
  608. package/dist/sheet-B-q914Ad.js.map +0 -1
  609. package/dist/sidebar-C_2p3Tfj.js +0 -501
  610. package/dist/sidebar-C_2p3Tfj.js.map +0 -1
  611. package/dist/sidebar-DPR7fmqN.js.map +0 -1
  612. package/dist/smart-card-CYLn46e6.js +0 -578
  613. package/dist/smart-card-CYLn46e6.js.map +0 -1
  614. package/dist/spinner-BY9HbUEh.js.map +0 -1
  615. package/dist/structure.recipes-Bqhf9oIh.js.map +0 -1
  616. package/dist/surface-recipes-CQfRr-VL.js +0 -27
  617. package/dist/surface-recipes-CQfRr-VL.js.map +0 -1
  618. package/dist/table-BS39xnlq.js +0 -1424
  619. package/dist/table-BS39xnlq.js.map +0 -1
  620. package/dist/table-DnlAJ-xR.js +0 -146
  621. package/dist/table-DnlAJ-xR.js.map +0 -1
  622. package/dist/tabs-B5cNMWiP.js +0 -187
  623. package/dist/tabs-B5cNMWiP.js.map +0 -1
  624. package/dist/text-inputs-Dh9XGyiS.js +0 -331
  625. package/dist/text-inputs-Dh9XGyiS.js.map +0 -1
  626. package/dist/text.styles-BwB7vAF2.js.map +0 -1
  627. package/dist/timelines-B9ICkQcV.js.map +0 -1
  628. package/dist/track-recipes-LLPNVwFg.js +0 -10
  629. package/dist/track-recipes-LLPNVwFg.js.map +0 -1
  630. package/dist/typography-Cv8MT-82.js +0 -96
  631. package/dist/typography-Cv8MT-82.js.map +0 -1
  632. package/dist/ui-provider-CftIB6TY.js.map +0 -1
  633. package/dist/upload-D8Za5x_c.js.map +0 -1
  634. package/dist/upload-queue-hIIYBLS7.js.map +0 -1
  635. package/dist/usage-card-DnmnJ58D.js.map +0 -1
  636. package/dist/utils-C2EKeIw3.js +0 -72
  637. package/dist/utils-C2EKeIw3.js.map +0 -1
  638. package/dist/value-inputs-DX2dbxjj.js +0 -824
  639. package/dist/value-inputs-DX2dbxjj.js.map +0 -1
  640. package/dist/workspace-C1PZmk8L.js.map +0 -1
@@ -1,41 +1,42 @@
1
1
  "use client";
2
- import { u as e } from "../ui-provider-CftIB6TY.js";
2
+ import { u as e } from "../ui-provider-D2_TeLqw.js";
3
3
  import { mergeStrings as t, useStrings as n } from "../lib/strings.js";
4
- import { t as r } from "../utils-C2EKeIw3.js";
5
- import { n as i } from "../buttons-Co6GavvM.js";
6
- import { a, i as o, r as s, t as c } from "../typography-Cv8MT-82.js";
7
- import { r as l, t as u } from "../structure-MvKVq-oL.js";
8
- import { t as d, u as f } from "../smart-card-CYLn46e6.js";
9
- import { t as p } from "../progress-BOe8l_FZ.js";
10
- import { n as m } from "../cards-Cum56XOF.js";
11
- import { _ as h, c as g, g as _, m as v, u as y } from "../primitives-DKPOGVpj.js";
12
- import { n as b, r as x, t as S } from "../number-BNT_BIzJ.js";
13
- import { t as C } from "../icon-badge-Dv0RYQwj.js";
14
- import { i as w, n as T, s as E } from "../avatar-Bpzty83c.js";
15
- import { t as D } from "../badge-BZXZT9wd.js";
16
- import { t as O } from "../separator-Gk_WXH-l.js";
17
- import { t as k } from "../input-WwYQZJzG.js";
18
- import { i as A, n as j } from "../display-CFM5myut.js";
19
- import { t as M } from "../form-field-Bn7ZH1rA.js";
20
- import { a as N, c as ee, r as te } from "../choice-inputs-CC7XqPQO.js";
21
- import { u as ne } from "../value-inputs-DX2dbxjj.js";
22
- import { d as P, n as re } from "../forms-numeric-BUBxELBv.js";
23
- import { a as ie, c as F, i as I, n as L, o as R, r as z, t as B, u as V } from "../item-pJ0GsOiJ.js";
24
- import { i as ae, n as oe, r as se, t as ce } from "../tabs-B5cNMWiP.js";
25
- import { g as H, n as U } from "../data-display-cWIRdeaf.js";
26
- import { n as le, t as ue } from "../receipt-BM8xsGFy.js";
27
- import { s as de } from "../timelines-B9ICkQcV.js";
28
- import { forwardRef as fe, useEffect as pe, useId as me, useRef as he, useState as ge } from "react";
29
- import { Fragment as W, jsx as G, jsxs as K } from "react/jsx-runtime";
30
- import { ArrowRight as _e, Barcode as ve, Calendar as ye, CalendarClock as be, Check as q, CheckCircle2 as xe, ChevronRight as Se, Circle as Ce, CircleAlert as we, Copy as Te, CreditCard as Ee, Edit2 as De, ExternalLink as Oe, Eye as ke, Gauge as Ae, Gift as J, Loader2 as je, MapPin as Me, MessageSquare as Ne, Package as Pe, PackageCheck as Fe, Pencil as Ie, Receipt as Le, RefreshCw as Re, Repeat as ze, RotateCcw as Be, Search as Ve, ShoppingBag as He, Sparkles as Ue, Star as We, TicketPercent as Ge, Trash2 as Ke, TriangleAlert as qe, Trophy as Je, X as Ye } from "lucide-react";
4
+ import { t as r } from "../utils-Cospvlj1.js";
5
+ import { t as i } from "../buttons-DS0ZIwJ_.js";
6
+ import { a, o, s, t as c } from "../typography-CAr3dQhX.js";
7
+ import { t as l } from "../button-BS3KDg00.js";
8
+ import { r as u, t as d } from "../structure-hzCW-XsV.js";
9
+ import { d as f, t as p } from "../smart-card-Bek-TwUp.js";
10
+ import { t as m } from "../progress-Br9WTFya.js";
11
+ import { n as h } from "../cards-QoJ4syG9.js";
12
+ import { _ as g, c as _, g as v, m as y, u as b } from "../primitives-BHrwQXFC.js";
13
+ import { n as x, r as S, t as C } from "../number-CKRBYmZK.js";
14
+ import { t as w } from "../icon-badge-DKlaKXoo.js";
15
+ import { i as T, n as E, s as D } from "../avatar-djdaaQ_s.js";
16
+ import { t as O } from "../badge-0tATj-tW.js";
17
+ import { t as k } from "../separator-Do5GWDYi.js";
18
+ import { t as A } from "../input-DhQdBnV3.js";
19
+ import { t as j } from "../form-field-VZRULhUK.js";
20
+ import { a as M, c as N, r as P } from "../choice-inputs-DrJ17tpL.js";
21
+ import { i as F, n as I } from "../display-DrdvPwF0.js";
22
+ import { u as ee } from "../value-inputs-CjfzGMsN.js";
23
+ import { d as L, n as te } from "../forms-numeric-D3CO60IF.js";
24
+ import { c as R, i as z, n as B, o as V, r as H, t as U, u as W } from "../item-xzh8Df65.js";
25
+ import { i as ne, n as re, r as ie, t as ae } from "../tabs-Dk8E_knt.js";
26
+ import { g as G, n as K } from "../data-display-3xWQUnMA.js";
27
+ import { n as oe, t as se } from "../receipt-CV89q1fs.js";
28
+ import { s as ce } from "../timelines-CxuAFIc2.js";
29
+ import { forwardRef as le, useEffect as ue, useId as de, useRef as fe, useState as pe } from "react";
30
+ import { Fragment as me, jsx as q, jsxs as J } from "react/jsx-runtime";
31
+ import { ArrowRight as he, CalendarClock as ge, Check as _e, CheckCircle2 as ve, ChevronRight as ye, Circle as be, CircleAlert as xe, Copy as Se, Edit2 as Ce, ExternalLink as we, Loader2 as Te, Pencil as Ee, Star as De, Trash2 as Oe, TriangleAlert as ke, X as Ae } from "lucide-react";
31
32
  //#region src/components/blocks/commerce/upcoming-booking/upcoming-booking.tsx
32
- function Xe({ bookings: e, className: t, locale: n, dateTone: i = "neutral", dateVariant: a = "default", timePlacement: o = "below" }) {
33
- return /* @__PURE__ */ G(R, {
34
- className: r("upcoming-booking--component w-full gap-space-md", t),
35
- children: e.map((e, t) => /* @__PURE__ */ K(B, {
33
+ function je({ bookings: e, className: t, locale: n, dateTone: i = "neutral", dateVariant: a = "default", timePlacement: o = "below" }) {
34
+ return /* @__PURE__ */ q(V, {
35
+ className: r("upcoming-booking--component w-full", t),
36
+ children: e.map((e, t) => /* @__PURE__ */ J(U, {
36
37
  className: "items-center",
37
38
  children: [
38
- /* @__PURE__ */ G(F, { children: /* @__PURE__ */ G(A, {
39
+ /* @__PURE__ */ q(R, { children: /* @__PURE__ */ q(F, {
39
40
  date: e.date,
40
41
  time: o === "below" ? e.time : void 0,
41
42
  tone: i,
@@ -44,20 +45,20 @@ function Xe({ bookings: e, className: t, locale: n, dateTone: i = "neutral", dat
44
45
  timePlacement: "below",
45
46
  layout: "stacked"
46
47
  }) }),
47
- /* @__PURE__ */ K(z, {
48
+ /* @__PURE__ */ J(H, {
48
49
  className: "min-w-0 sm:min-w-48",
49
- children: [/* @__PURE__ */ G(V, { children: e.service }), /* @__PURE__ */ G(I, {
50
+ children: [/* @__PURE__ */ q(W, { children: e.service }), /* @__PURE__ */ q(z, {
50
51
  clamp: 1,
51
52
  children: e.customer
52
53
  })]
53
54
  }),
54
- /* @__PURE__ */ K(L, {
55
+ /* @__PURE__ */ J(B, {
55
56
  className: "ml-auto shrink-0 flex-wrap justify-end",
56
- children: [o === "inline-trailing" && /* @__PURE__ */ G(_, {
57
+ children: [o === "inline-trailing" && /* @__PURE__ */ q(v, {
57
58
  size: "xs",
58
59
  className: "shrink-0 tabular-nums",
59
60
  children: e.time
60
- }), /* @__PURE__ */ G(h, {
61
+ }), /* @__PURE__ */ q(g, {
61
62
  weight: "semibold",
62
63
  className: "shrink-0 tabular-nums",
63
64
  children: e.amount
@@ -67,172 +68,172 @@ function Xe({ bookings: e, className: t, locale: n, dateTone: i = "neutral", dat
67
68
  }, e.id ?? `${e.service}-${e.time}-${t}`))
68
69
  });
69
70
  }
70
- Xe.displayName = "UpcomingBookingRow";
71
+ je.displayName = "UpcomingBookingRow";
71
72
  //#endregion
72
73
  //#region src/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.tsx
73
- function Ze(e) {
74
- return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ G(h, { children: String(e) }) : e;
74
+ function Me(e) {
75
+ return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ q(g, { children: String(e) }) : e;
75
76
  }
76
- function Qe({ title: e, description: t, status: n, items: i, actionLabel: a, onAction: o, className: c, contentClassName: l }) {
77
- return /* @__PURE__ */ K(j, {
77
+ function Ne({ title: e, description: t, status: n, items: i, actionLabel: o, onAction: s, className: c, contentClassName: l }) {
78
+ return /* @__PURE__ */ J(I, {
78
79
  title: e,
80
+ titleSuffix: n,
79
81
  description: t,
80
- headerEnd: n,
81
- headerDivider: !0,
82
82
  className: r("booking-calendar-event-card--component @container/booking-calendar-event-card", c),
83
- contentClassName: r("grid gap-space-lg", l),
84
- children: [/* @__PURE__ */ G("dl", {
83
+ contentClassName: r("grid gap-space-2xl", l),
84
+ children: [/* @__PURE__ */ q("dl", {
85
85
  className: "booking-calendar-event-card--details grid gap-space-lg @md/booking-calendar-event-card:grid-cols-2",
86
- children: i.map((e) => /* @__PURE__ */ K("div", {
87
- className: r("grid min-w-0 gap-space-sm", e.fullWidth === !0 && "@md/booking-calendar-event-card:col-span-2 rounded-radius bg-muted/45 p-surface-xs"),
88
- children: [/* @__PURE__ */ G("dt", { children: /* @__PURE__ */ G(s, { children: e.label }) }), /* @__PURE__ */ G("dd", {
89
- className: "min-w-0",
90
- children: Ze(e.value)
86
+ children: i.map((e) => /* @__PURE__ */ J("div", {
87
+ className: r("grid min-w-0 gap-normal", e.fullWidth === !0 && "@md/booking-calendar-event-card:col-span-2"),
88
+ children: [/* @__PURE__ */ q("dt", {
89
+ className: "flex",
90
+ children: /* @__PURE__ */ q(a, { children: e.label })
91
+ }), /* @__PURE__ */ q("dd", {
92
+ className: "min-w-0 leading-normal",
93
+ children: Me(e.value)
91
94
  })]
92
95
  }, e.id))
93
- }), /* @__PURE__ */ G("div", {
94
- className: "booking-calendar-event-card--action flex justify-end border-t border-border/60 pt-space-lg",
95
- children: /* @__PURE__ */ G(m, {
96
+ }), /* @__PURE__ */ q("div", {
97
+ className: "booking-calendar-event-card--action flex justify-end",
98
+ children: /* @__PURE__ */ q(h, {
96
99
  fullWidth: !1,
97
100
  className: "w-full @md/booking-calendar-event-card:w-auto",
98
- onClick: o,
99
- children: a
101
+ onClick: s,
102
+ children: o
100
103
  })
101
104
  })]
102
105
  });
103
106
  }
104
- Qe.displayName = "BookingCalendarEventCard";
107
+ Ne.displayName = "BookingCalendarEventCard";
105
108
  //#endregion
106
109
  //#region src/components/blocks/commerce/loyalty-points/types.ts
107
- var $e = {
108
- balanceLabel: "Loyalty Balance",
110
+ var Pe = {
111
+ balanceLabel: "Loyalty balance",
109
112
  pointsAvailable: "points available",
110
- redeem: "Redeem Points",
111
- tier: "Gold Tier"
113
+ redeem: "Redeem points",
114
+ tier: "Gold tier"
112
115
  };
113
116
  //#endregion
114
117
  //#region src/components/blocks/commerce/loyalty-points/loyalty-points.tsx
115
- function et({ balance: e, tier: t, tierTone: s = "warning", history: c = [], onRedeem: l, className: u, strings: d }) {
116
- let f = n($e, d);
117
- return /* @__PURE__ */ K(j, {
118
+ function Fe({ balance: e, tier: t, tierTone: i = "neutral", history: a = [], onRedeem: c, className: u, strings: f }) {
119
+ let p = n(Pe, f);
120
+ return /* @__PURE__ */ J(I, {
121
+ title: p.balanceLabel,
122
+ titleSuffix: /* @__PURE__ */ q(O, {
123
+ tone: i,
124
+ children: t ?? p.tier
125
+ }),
126
+ contentGap: "2xl",
118
127
  className: r("loyalty-points--component w-full", u),
119
128
  children: [
120
- /* @__PURE__ */ G(H, {
121
- label: f.balanceLabel,
122
- value: /* @__PURE__ */ K(D, {
123
- tone: s,
124
- children: [/* @__PURE__ */ G(Je, { className: "mr-1 inline size-icon-sm" }), t ?? f.tier]
125
- })
126
- }),
127
- /* @__PURE__ */ G(o, {
128
- tag: "h3",
129
- className: "text-base tabular-nums tracking-tight",
130
- children: typeof e == "number" ? /* @__PURE__ */ G(S, {
131
- value: e,
132
- size: "base",
133
- weight: "bold",
134
- align: "left"
135
- }) : e
136
- }),
137
- /* @__PURE__ */ G(a, {
138
- size: "xs",
139
- type: "secondary",
140
- children: f.pointsAvailable
129
+ /* @__PURE__ */ J(d, {
130
+ gap: "dense",
131
+ className: "loyalty-points--balance",
132
+ children: [/* @__PURE__ */ q(o, {
133
+ tag: "h3",
134
+ className: "text-base tabular-nums tracking-tight",
135
+ children: typeof e == "number" ? /* @__PURE__ */ q(C, {
136
+ value: e,
137
+ size: "base",
138
+ weight: "bold",
139
+ align: "left"
140
+ }) : e
141
+ }), /* @__PURE__ */ q(s, {
142
+ size: "xs",
143
+ type: "secondary",
144
+ children: p.pointsAvailable
145
+ })]
141
146
  }),
142
- /* @__PURE__ */ G(O, { className: "my-space-xl" }),
143
- /* @__PURE__ */ G(R, { children: c.map((e) => /* @__PURE__ */ K(B, {
147
+ a.length > 0 && /* @__PURE__ */ q(V, { children: a.map((e) => /* @__PURE__ */ J(U, {
144
148
  size: "sm",
145
- children: [/* @__PURE__ */ K(z, { children: [/* @__PURE__ */ G(V, {
149
+ children: [/* @__PURE__ */ J(H, { children: [/* @__PURE__ */ q(W, {
146
150
  bold: !1,
147
151
  children: e.label
148
- }), /* @__PURE__ */ G(I, {
152
+ }), /* @__PURE__ */ q(z, {
149
153
  clamp: 1,
150
154
  children: e.date
151
- })] }), /* @__PURE__ */ G(L, { children: /* @__PURE__ */ G(a, {
155
+ })] }), /* @__PURE__ */ q(B, { children: /* @__PURE__ */ q(s, {
152
156
  weight: "semibold",
153
157
  className: r("tabular-nums", e.positive ? "text-success" : "text-destructive"),
154
158
  children: e.points
155
159
  }) })]
156
160
  }, e.date + e.label)) }),
157
- /* @__PURE__ */ G(i, {
158
- icon: J,
161
+ !!c && /* @__PURE__ */ q(l, {
162
+ tone: "primary",
159
163
  fullWidth: !0,
160
- className: "mt-space-xl",
161
- onClick: l,
162
- children: f.redeem
164
+ onClick: c,
165
+ children: p.redeem
163
166
  })
164
167
  ]
165
168
  });
166
169
  }
167
- et.displayName = "LoyaltyPoints";
168
- function tt(e) {
170
+ Fe.displayName = "LoyaltyPoints";
171
+ function Ie(e) {
169
172
  return e.replace(/^[\s−-]+/, "");
170
173
  }
171
- function nt(e) {
172
- return e.trim() ? `−${tt(e)}` : e;
174
+ function Le(e) {
175
+ return e.trim() ? `−${Ie(e)}` : e;
173
176
  }
174
177
  //#endregion
175
178
  //#region src/components/blocks/commerce/discount-stack/types.ts
176
- var rt = {
177
- title: "Applied Discounts",
178
- totalSavings: "Total Savings"
179
+ var Re = {
180
+ title: "Applied discounts",
181
+ totalSavings: "Total savings"
179
182
  };
180
183
  //#endregion
181
184
  //#region src/components/blocks/commerce/discount-stack/discount-stack.tsx
182
- function it({ discounts: e, totalSavings: t, className: i, strings: s }) {
183
- let c = n(rt, s);
184
- return /* @__PURE__ */ K(j, {
185
+ function ze({ discounts: e, totalSavings: t, className: i, strings: a }) {
186
+ let c = n(Re, a);
187
+ return /* @__PURE__ */ J(I, {
185
188
  title: c.title,
189
+ contentGap: "xl",
186
190
  className: r("discount-stack--component w-full", i),
187
191
  children: [
188
- /* @__PURE__ */ G(R, {
189
- className: "mt-space-xl",
190
- children: e.map((e, t) => /* @__PURE__ */ K(B, {
191
- size: "sm",
192
- children: [
193
- /* @__PURE__ */ G(F, { children: /* @__PURE__ */ G(D, {
194
- tone: e.badge,
195
- className: "w-16 justify-center",
196
- children: e.type
197
- }) }),
198
- /* @__PURE__ */ G(z, { children: /* @__PURE__ */ G(V, {
199
- bold: !1,
200
- children: e.label
201
- }) }),
202
- /* @__PURE__ */ G(L, { children: /* @__PURE__ */ G(h, {
203
- weight: "semibold",
204
- className: "tabular-nums text-success",
205
- children: nt(e.amount)
206
- }) })
207
- ]
208
- }, `${e.type}-${e.label}-${String(t)}`))
209
- }),
210
- /* @__PURE__ */ G(O, { className: "my-space-xl" }),
211
- /* @__PURE__ */ G(H, {
212
- label: /* @__PURE__ */ G(a, {
192
+ /* @__PURE__ */ q(V, { children: e.map((e, t) => /* @__PURE__ */ J(U, {
193
+ size: "sm",
194
+ children: [
195
+ /* @__PURE__ */ q(R, { children: /* @__PURE__ */ q(O, {
196
+ tone: e.badge,
197
+ className: "w-16 justify-center",
198
+ children: e.type
199
+ }) }),
200
+ /* @__PURE__ */ q(H, { children: /* @__PURE__ */ q(W, {
201
+ bold: !1,
202
+ children: e.label
203
+ }) }),
204
+ /* @__PURE__ */ q(B, { children: /* @__PURE__ */ q(g, {
205
+ weight: "semibold",
206
+ className: "tabular-nums text-success",
207
+ children: Le(e.amount)
208
+ }) })
209
+ ]
210
+ }, `${e.type}-${e.label}-${String(t)}`)) }),
211
+ /* @__PURE__ */ q(k, {}),
212
+ /* @__PURE__ */ q(G, {
213
+ label: /* @__PURE__ */ q(s, {
213
214
  tag: "span",
214
215
  weight: "semibold",
215
216
  lineHeight: "tight",
216
217
  children: c.totalSavings
217
218
  }),
218
- value: /* @__PURE__ */ G(o, {
219
+ value: /* @__PURE__ */ q(o, {
219
220
  tag: "h4",
220
221
  className: "text-base tabular-nums tracking-tight text-success border-none pb-0",
221
- children: nt(t)
222
+ children: Le(t)
222
223
  })
223
224
  })
224
225
  ]
225
226
  });
226
227
  }
227
- it.displayName = "DiscountStackPreview";
228
+ ze.displayName = "DiscountStackPreview";
228
229
  //#endregion
229
230
  //#region src/components/blocks/commerce/shipment-tracking/types.ts
230
- var at = {
231
+ var Be = {
231
232
  pending: "bg-muted-foreground",
232
233
  in_transit: "bg-info",
233
234
  delivered: "bg-success",
234
235
  delayed: "bg-warning"
235
- }, ot = {
236
+ }, Ve = {
236
237
  title: "Shipment tracking",
237
238
  pending: "Pending",
238
239
  in_transit: "In transit",
@@ -241,40 +242,40 @@ var at = {
241
242
  };
242
243
  //#endregion
243
244
  //#region src/components/blocks/commerce/shipment-tracking/shipment-tracking.tsx
244
- function st({ trackingNumber: e, carrier: t, status: i, steps: o, details: s = [], className: c, strings: l }) {
245
- let u = n(ot, l);
246
- return /* @__PURE__ */ K(j, {
245
+ function He({ trackingNumber: e, carrier: t, status: i, steps: a, details: o = [], className: c, strings: l }) {
246
+ let u = n(Ve, l);
247
+ return /* @__PURE__ */ J(I, {
247
248
  "aria-label": u.title,
248
249
  className: r("shipment-tracking--component w-full", c),
249
250
  children: [
250
- /* @__PURE__ */ K("div", {
251
- className: "flex items-center justify-between",
252
- children: [/* @__PURE__ */ G(v, {
251
+ /* @__PURE__ */ J("div", {
252
+ className: "flex items-center gap-space-sm",
253
+ children: [/* @__PURE__ */ q(y, {
253
254
  className: "text-muted-foreground tracking-wide",
254
255
  children: e
255
- }), !!t && /* @__PURE__ */ G(D, {
256
- tone: "info",
256
+ }), !!t && /* @__PURE__ */ q(O, {
257
+ tone: "neutral",
257
258
  children: t
258
259
  })]
259
260
  }),
260
- /* @__PURE__ */ K("div", {
261
+ /* @__PURE__ */ J("div", {
261
262
  className: "shipment-tracking--status mt-space-xl flex items-center gap-space-sm",
262
- children: [/* @__PURE__ */ G("span", {
263
+ children: [/* @__PURE__ */ q("span", {
263
264
  "aria-hidden": "true",
264
- className: r("shipment-tracking--status-dot h-2 w-2 rounded-full", at[i])
265
- }), /* @__PURE__ */ G(a, {
265
+ className: r("shipment-tracking--status-dot h-2 w-2 rounded-full", Be[i])
266
+ }), /* @__PURE__ */ q(s, {
266
267
  weight: "semibold",
267
268
  children: u[i]
268
269
  })]
269
270
  }),
270
- /* @__PURE__ */ G("div", {
271
- className: "mt-5 flex items-center justify-between",
272
- children: o.map((e, t) => /* @__PURE__ */ K("div", {
271
+ /* @__PURE__ */ q("div", {
272
+ className: "mt-space-xl flex items-center justify-between",
273
+ children: a.map((e, t) => /* @__PURE__ */ J("div", {
273
274
  className: "flex flex-1 flex-col items-start gap-space-md",
274
- children: [/* @__PURE__ */ K("div", {
275
+ children: [/* @__PURE__ */ J("div", {
275
276
  className: "flex w-full items-center",
276
- children: [/* @__PURE__ */ G("div", { className: r("size-icon-sm shrink-0 rounded-full", e.done ? "bg-success" : "bg-muted") }), t < o.length - 1 && /* @__PURE__ */ G("div", { className: r("h-0.5 flex-1", e.done ? "bg-success" : "bg-muted") })]
277
- }), /* @__PURE__ */ G(a, {
277
+ children: [/* @__PURE__ */ q("div", { className: r("size-icon-sm shrink-0 rounded-full", e.done ? "bg-success" : "bg-muted") }), t < a.length - 1 && /* @__PURE__ */ q("div", { className: r("h-0.5 flex-1", e.done ? "bg-success" : "bg-muted") })]
278
+ }), /* @__PURE__ */ q(s, {
278
279
  size: "xs",
279
280
  type: "secondary",
280
281
  className: "text-left leading-tight",
@@ -282,18 +283,18 @@ function st({ trackingNumber: e, carrier: t, status: i, steps: o, details: s = [
282
283
  })]
283
284
  }, e.label))
284
285
  }),
285
- s.length > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(O, { className: "my-space-xl" }), /* @__PURE__ */ G("div", {
286
- className: "space-y-space-md",
287
- children: s.map((e) => /* @__PURE__ */ G(H, {
286
+ o.length > 0 && /* @__PURE__ */ q("div", {
287
+ className: "mt-space-2xl space-y-space-md",
288
+ children: o.map((e) => /* @__PURE__ */ q(G, {
288
289
  label: e.label,
289
290
  value: e.value,
290
291
  valueClassName: "font-medium truncate max-w-[180px]"
291
292
  }, e.label))
292
- })] })
293
+ })
293
294
  ]
294
295
  });
295
296
  }
296
- st.displayName = "ShipmentTracking";
297
+ He.displayName = "ShipmentTracking";
297
298
  //#endregion
298
299
  //#region src/components/blocks/commerce/giftcard-card/types.ts
299
300
  var Y = {
@@ -303,41 +304,41 @@ var Y = {
303
304
  expired: "Expired",
304
305
  disabled: "Disabled"
305
306
  },
306
- giftCard: "Gift Card",
307
+ giftCard: "Gift card",
307
308
  balance: "Balance",
308
- personalMessage: "Personal Message",
309
+ personalMessage: "Personal message",
309
310
  to: "To",
310
311
  from: "From",
311
312
  expires: "Expires",
312
313
  recipient: "Recipient",
313
- viewDetails: "View Details",
314
+ viewDetails: "View details",
314
315
  copyCode: "Copy code",
315
316
  copiedCode: "Code copied",
316
317
  copyFailed: "Could not copy code. Try again.",
317
318
  copyingCode: "Copying code…"
318
- }, ct = {
319
+ }, Ue = {
319
320
  active: "success",
320
321
  redeemed: "secondary",
321
322
  expired: "destructive",
322
323
  disabled: "warning"
323
- }, lt = "bg-inverse-background from-inverse-background via-inverse-surface to-inverse-background", ut = {
324
+ }, We = "bg-inverse-background from-inverse-background via-inverse-surface to-inverse-background", Ge = {
324
325
  purple: {
325
- card: lt,
326
+ card: We,
326
327
  strip: "from-primary via-primary/90 to-info"
327
328
  },
328
329
  green: {
329
- card: lt,
330
+ card: We,
330
331
  strip: "from-success via-info to-success"
331
332
  },
332
333
  warm: {
333
- card: lt,
334
+ card: We,
334
335
  strip: "from-warning via-warning/90 to-destructive"
335
336
  }
336
- }, dt = {
337
+ }, Ke = {
337
338
  purple: "from-primary to-info",
338
339
  green: "from-success to-info",
339
340
  warm: "from-warning to-destructive"
340
- }, ft = {
341
+ }, qe = {
341
342
  green: {
342
343
  line: "bg-success",
343
344
  iconBg: "bg-success/15 text-success"
@@ -350,102 +351,99 @@ var Y = {
350
351
  line: "bg-warning",
351
352
  iconBg: "bg-warning/15 text-warning-accent"
352
353
  }
353
- }, pt = {
354
+ }, Je = {
354
355
  green: "from-success to-info",
355
356
  blue: "from-info to-primary",
356
357
  amber: "from-warning to-destructive"
357
358
  };
358
359
  //#endregion
359
360
  //#region src/components/blocks/commerce/giftcard-card/partials/giftcard-compact.tsx
360
- function mt({ code: e, amount: t, remainingAmount: i, status: a, recipientName: o, gradient: s = "purple", className: c, strings: l }) {
361
- let d = n(Y, l).status[a], f = ct[a], p = !!i && i !== t, m = p ? i : t;
362
- return /* @__PURE__ */ K(B, {
361
+ function Ye({ code: e, amount: t, remainingAmount: i, status: a, recipientName: o, gradient: s = "purple", className: c, strings: l }) {
362
+ let u = n(Y, l).status[a], f = Ue[a], p = !!i && i !== t, m = p ? i : t;
363
+ return /* @__PURE__ */ J(U, {
363
364
  size: "sm",
364
365
  variant: "outline",
365
366
  padding: "default",
366
- className: r("giftcard-card--component giftcard-compact--component flex-nowrap gap-x-2.5 shadow-sm transition-colors duration-150 hover:border-border", c),
367
+ className: r("giftcard-card--component giftcard-compact--component flex-nowrap shadow-sm transition-colors duration-150 hover:border-border", c),
367
368
  children: [
368
- /* @__PURE__ */ G(F, {
369
+ /* @__PURE__ */ q(R, {
369
370
  variant: "image",
370
- children: /* @__PURE__ */ G("div", {
371
- className: r("flex size-full items-center justify-center bg-gradient-to-br p-space-2xs", dt[s]),
372
- children: /* @__PURE__ */ G("span", {
373
- className: "flex size-full items-center justify-center rounded-inner bg-inverse-background",
374
- children: /* @__PURE__ */ G(J, { className: "h-4 w-4 text-inverse-foreground" })
375
- })
371
+ children: /* @__PURE__ */ q("div", {
372
+ className: r("flex size-full items-center justify-center bg-gradient-to-br p-space-2xs", Ke[s]),
373
+ children: /* @__PURE__ */ q("span", { className: "size-full rounded-inner bg-inverse-background" })
376
374
  })
377
375
  }),
378
- /* @__PURE__ */ K(z, {
376
+ /* @__PURE__ */ J(H, {
379
377
  className: "min-w-0",
380
- children: [/* @__PURE__ */ G(V, {
378
+ children: [/* @__PURE__ */ q(W, {
381
379
  className: "w-full max-w-full truncate whitespace-nowrap",
382
- children: /* @__PURE__ */ G(v, { children: e })
383
- }), !!o && /* @__PURE__ */ G(I, {
380
+ children: /* @__PURE__ */ q(y, { children: e })
381
+ }), !!o && /* @__PURE__ */ q(z, {
384
382
  clamp: 1,
385
383
  children: o
386
384
  })]
387
385
  }),
388
- /* @__PURE__ */ G(L, {
386
+ /* @__PURE__ */ q(B, {
389
387
  className: "shrink-0",
390
- children: /* @__PURE__ */ K(u, {
388
+ children: /* @__PURE__ */ J(d, {
391
389
  gap: "2xs",
392
390
  align: "end",
393
391
  className: "shrink-0",
394
- children: [/* @__PURE__ */ K("div", {
392
+ children: [/* @__PURE__ */ J("div", {
395
393
  className: "flex items-baseline gap-space-xs",
396
- children: [/* @__PURE__ */ G(h, {
394
+ children: [/* @__PURE__ */ q(g, {
397
395
  weight: "bold",
398
396
  className: "tabular-nums",
399
397
  children: m
400
- }), !!p && /* @__PURE__ */ G(h, {
398
+ }), !!p && /* @__PURE__ */ q(g, {
401
399
  size: "xs",
402
400
  className: "line-through tabular-nums text-muted-foreground",
403
401
  children: t
404
402
  })]
405
- }), /* @__PURE__ */ G(D, {
403
+ }), /* @__PURE__ */ q(O, {
406
404
  tone: f,
407
405
  size: "sm",
408
- children: d
406
+ children: u
409
407
  })]
410
408
  })
411
409
  })
412
410
  ]
413
411
  });
414
412
  }
415
- mt.displayName = "GiftcardCompact";
413
+ Ye.displayName = "GiftcardCompact";
416
414
  //#endregion
417
415
  //#region src/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.tsx
418
- function ht({ code: e, strings: t, inverse: o = !1, className: s }) {
419
- let c = n(Y, t), l = he(0), [u, d] = ge({
416
+ function Xe({ code: e, strings: t, inverse: i = !1, className: a }) {
417
+ let o = n(Y, t), c = fe(0), [u, d] = pe({
420
418
  code: e,
421
419
  state: "idle"
422
420
  }), f = u.code === e ? u.state : "idle";
423
- pe(() => (l.current++, d((t) => t.code === e ? t : {
421
+ ue(() => (c.current++, d((t) => t.code === e ? t : {
424
422
  code: e,
425
423
  state: "idle"
426
424
  }), () => {
427
- l.current++;
425
+ c.current++;
428
426
  }), [e]);
429
- let p = f === "copied" ? c.copiedCode : f === "failed" ? c.copyFailed : f === "pending" ? c.copyingCode : c.copyCode, m = f === "copied" ? q : f === "failed" ? Ye : f === "pending" ? je : Te, h = async () => {
427
+ let p = f === "copied" ? o.copiedCode : f === "failed" ? o.copyFailed : f === "pending" ? o.copyingCode : o.copyCode, m = f === "copied" ? _e : f === "failed" ? Ae : f === "pending" ? Te : Se, h = async () => {
430
428
  if (!e || f === "pending") return;
431
- let t = l.current;
429
+ let t = c.current;
432
430
  d({
433
431
  code: e,
434
432
  state: "pending"
435
433
  });
436
434
  try {
437
- await navigator.clipboard.writeText(e), l.current === t && d({
435
+ await navigator.clipboard.writeText(e), c.current === t && d({
438
436
  code: e,
439
437
  state: "copied"
440
438
  });
441
439
  } catch {
442
- l.current === t && d({
440
+ c.current === t && d({
443
441
  code: e,
444
442
  state: "failed"
445
443
  });
446
444
  }
447
445
  };
448
- return /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(i, {
446
+ return /* @__PURE__ */ J(me, { children: [/* @__PURE__ */ q(l, {
449
447
  type: "button",
450
448
  tone: "secondary",
451
449
  buttonStyle: "ghost",
@@ -455,13 +453,13 @@ function ht({ code: e, strings: t, inverse: o = !1, className: s }) {
455
453
  "aria-busy": f === "pending",
456
454
  "aria-label": p,
457
455
  withTooltip: p,
458
- className: r("giftcard-copy--component", s, o && "text-inverse-foreground [&:not([aria-disabled=true]):not(:disabled)]:hover:bg-inverse-surface [&:not([aria-disabled=true]):not(:disabled)]:hover:text-inverse-foreground focus-visible:bg-inverse-surface focus-visible:ring-offset-inverse-background"),
456
+ className: r("giftcard-copy--component", a, i && "text-inverse-foreground [&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-inverse-surface [&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:text-inverse-foreground [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-inverse-surface-strong focus-visible:bg-inverse-surface focus-visible:ring-offset-inverse-background"),
459
457
  onClick: () => void h(),
460
- children: /* @__PURE__ */ G(m, {
458
+ children: /* @__PURE__ */ q(m, {
461
459
  "aria-hidden": !0,
462
460
  className: r("size-icon-sm", f === "pending" && "animate-spin")
463
461
  })
464
- }), (f === "copied" || f === "failed") && /* @__PURE__ */ G(a, {
462
+ }), (f === "copied" || f === "failed") && /* @__PURE__ */ q(s, {
465
463
  tag: "span",
466
464
  role: "status",
467
465
  className: "sr-only",
@@ -470,97 +468,88 @@ function ht({ code: e, strings: t, inverse: o = !1, className: s }) {
470
468
  }
471
469
  //#endregion
472
470
  //#region src/components/blocks/commerce/giftcard-card/partials/giftcard-dark.tsx
473
- function gt({ code: e, amount: t, remainingAmount: s, status: c, recipientName: l, expiresAt: d, onView: f, className: p, strings: m }) {
474
- let g = n(Y, m), _ = g.status[c], y = ct[c], b = !!s && s !== t, x = b ? s : t, S = [...l ? [{
475
- label: g.recipient,
476
- value: l
477
- }] : [], ...d ? [{
478
- label: g.expires,
479
- value: d
471
+ function Ze({ code: e, amount: t, remainingAmount: i, status: a, recipientName: c, expiresAt: u, onView: f, className: p, strings: m }) {
472
+ let h = n(Y, m), _ = h.status[a], v = Ue[a], b = !!i && i !== t, x = b ? i : t, S = [...c ? [{
473
+ label: h.recipient,
474
+ value: c
475
+ }] : [], ...u ? [{
476
+ label: h.expires,
477
+ value: u
480
478
  }] : []];
481
- return /* @__PURE__ */ K("div", {
479
+ return /* @__PURE__ */ q("div", {
482
480
  className: r("giftcard-card--component giftcard-dark--component dark w-full max-w-sm overflow-hidden rounded-radius bg-card text-card-foreground shadow-sm ring-1 ring-border", p),
483
- children: [
484
- /* @__PURE__ */ K(B, {
485
- size: "sm",
486
- className: "p-surface",
487
- children: [
488
- /* @__PURE__ */ G(F, { children: /* @__PURE__ */ G("div", {
489
- className: "flex h-8 w-8 items-center justify-center rounded-full bg-warning/15",
490
- children: /* @__PURE__ */ G(J, { className: "h-4 w-4 text-warning" })
491
- }) }),
492
- /* @__PURE__ */ G(z, { children: /* @__PURE__ */ G(V, {
493
- bold: !1,
494
- children: /* @__PURE__ */ G(a, {
495
- tag: "span",
496
- size: "inherit",
497
- className: "text-inverse-muted",
498
- children: g.giftCard
499
- })
500
- }) }),
501
- /* @__PURE__ */ G(L, { children: /* @__PURE__ */ G(D, {
502
- tone: y,
481
+ children: /* @__PURE__ */ J(d, {
482
+ gap: "lg",
483
+ className: "giftcard-dark--body p-surface",
484
+ children: [
485
+ /* @__PURE__ */ J(d, {
486
+ direction: "horizontal",
487
+ justify: "between",
488
+ align: "center",
489
+ gap: "md",
490
+ wrap: !1,
491
+ children: [/* @__PURE__ */ q(s, {
492
+ tag: "span",
493
+ className: "text-inverse-muted",
494
+ children: h.giftCard
495
+ }), /* @__PURE__ */ q(O, {
496
+ tone: v,
497
+ className: "shrink-0",
503
498
  children: _
504
- }) })
505
- ]
506
- }),
507
- /* @__PURE__ */ G("div", {
508
- className: "px-surface pb-surface-xs pt-space-sm",
509
- children: /* @__PURE__ */ K("div", {
499
+ })]
500
+ }),
501
+ /* @__PURE__ */ J("div", {
510
502
  className: "flex items-baseline gap-space-md",
511
- children: [/* @__PURE__ */ G(o, {
503
+ children: [/* @__PURE__ */ q(o, {
512
504
  tag: "h2",
513
- className: "border-none pb-0 text-base tabular-nums text-inverse-foreground",
505
+ size: "2xl",
506
+ className: "border-none pb-0 tabular-nums text-inverse-foreground",
514
507
  children: x
515
- }), !!b && /* @__PURE__ */ G(h, {
508
+ }), !!b && /* @__PURE__ */ q(g, {
516
509
  className: "line-through tabular-nums text-inverse-disabled",
517
510
  children: t
518
511
  })]
519
- })
520
- }),
521
- /* @__PURE__ */ G("div", {
522
- className: "mx-space-xl rounded-radius-md border border-inverse-border bg-inverse-surface p-surface-xs",
523
- children: /* @__PURE__ */ K(u, {
524
- direction: "horizontal",
525
- align: "center",
526
- gap: "md",
527
- children: [/* @__PURE__ */ G(v, {
528
- className: "flex-1 tracking-[0.15em] text-inverse-foreground",
529
- children: e
530
- }), /* @__PURE__ */ G(ht, {
531
- code: e,
532
- strings: g,
533
- inverse: !0
534
- })]
535
- })
536
- }),
537
- /* @__PURE__ */ G(U, {
538
- items: S,
539
- columns: 1,
540
- className: "px-surface pb-surface-xs pt-surface-xs [&_.metadata-list--label]:text-inverse-muted [&_.metadata-list--value]:text-inverse-foreground"
541
- }),
542
- !!f && /* @__PURE__ */ G("div", {
543
- className: "px-surface pb-surface pt-space-sm",
544
- children: /* @__PURE__ */ G(i, {
512
+ }),
513
+ /* @__PURE__ */ q("div", {
514
+ className: "giftcard-dark--code rounded-inner border border-inverse-border bg-inverse-surface p-surface-xs",
515
+ children: /* @__PURE__ */ J(d, {
516
+ direction: "horizontal",
517
+ align: "center",
518
+ gap: "md",
519
+ children: [/* @__PURE__ */ q(y, {
520
+ className: "flex-1 tracking-[0.15em] text-inverse-foreground",
521
+ children: e
522
+ }), /* @__PURE__ */ q(Xe, {
523
+ code: e,
524
+ strings: h,
525
+ inverse: !0
526
+ })]
527
+ })
528
+ }),
529
+ /* @__PURE__ */ q(K, {
530
+ items: S,
531
+ columns: 1,
532
+ className: "[&_.metadata-list--label]:text-inverse-muted [&_.metadata-list--value]:text-inverse-foreground"
533
+ }),
534
+ !!f && /* @__PURE__ */ q(l, {
545
535
  tone: "neutral",
546
536
  buttonStyle: "solid",
547
- icon: ke,
548
537
  fullWidth: !0,
549
538
  onClick: f,
550
- children: g.viewDetails
539
+ children: h.viewDetails
551
540
  })
552
- })
553
- ]
541
+ ]
542
+ })
554
543
  });
555
544
  }
556
- gt.displayName = "GiftcardCardDark";
545
+ Ze.displayName = "GiftcardCardDark";
557
546
  //#endregion
558
547
  //#region src/components/blocks/commerce/giftcard-card/partials/giftcard-full.tsx
559
- function _t({ code: e, amount: t, remainingAmount: c, status: l, recipientName: d, senderName: f, message: p, expiresAt: m, createdAt: g, template: _, onView: y, gradient: b = "purple", pattern: x = "none", className: S, strings: C }) {
560
- let w = n(Y, C), T = w.status[l], E = ct[l], O = !!c && c !== t, k = O ? c : t, A = [
561
- ...d ? [{
548
+ function Qe({ code: e, amount: t, remainingAmount: i, status: c, recipientName: u, senderName: f, message: p, expiresAt: m, createdAt: h, template: _, onView: v, gradient: b = "purple", pattern: x = "none", className: S, strings: C }) {
549
+ let w = n(Y, C), T = w.status[c], E = Ue[c], D = !!i && i !== t, k = D ? i : t, A = [
550
+ ...u ? [{
562
551
  label: w.to,
563
- value: d
552
+ value: u
564
553
  }] : [],
565
554
  ...f ? [{
566
555
  label: w.from,
@@ -571,85 +560,86 @@ function _t({ code: e, amount: t, remainingAmount: c, status: l, recipientName:
571
560
  value: m
572
561
  }] : []
573
562
  ];
574
- return /* @__PURE__ */ K("div", {
563
+ return /* @__PURE__ */ J("div", {
575
564
  className: r("giftcard-card--component w-full max-w-sm transition-shadow duration-300 ease-out", "hover:shadow-md hover:shadow-foreground/10", S),
576
- children: [/* @__PURE__ */ K("div", {
577
- className: r("relative overflow-hidden rounded-t-radius bg-gradient-to-br p-surface", ut[b].card),
565
+ children: [/* @__PURE__ */ J("div", {
566
+ className: r("relative overflow-hidden rounded-t-radius bg-gradient-to-br p-surface", Ge[b].card),
578
567
  children: [
579
- /* @__PURE__ */ G("div", {
568
+ /* @__PURE__ */ q("div", {
580
569
  "aria-hidden": !0,
581
- className: r("absolute inset-x-0 top-0 h-1 bg-gradient-to-r", ut[b].strip)
570
+ className: r("absolute inset-x-0 top-0 z-10 h-1 bg-gradient-to-r", Ge[b].strip)
582
571
  }),
583
- x === "circles" && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G("div", {
572
+ x === "circles" && /* @__PURE__ */ J(me, { children: [/* @__PURE__ */ q("div", {
584
573
  className: "absolute -top-8 -right-8 h-32 w-32 rounded-full bg-inverse-decoration",
585
574
  "aria-hidden": "true"
586
- }), /* @__PURE__ */ G("div", {
575
+ }), /* @__PURE__ */ q("div", {
587
576
  className: "absolute -bottom-4 -left-4 h-20 w-20 rounded-full bg-inverse-decoration",
588
577
  "aria-hidden": "true"
589
578
  })] }),
590
- x === "waves" && /* @__PURE__ */ K("svg", {
579
+ x === "waves" && /* @__PURE__ */ J("svg", {
591
580
  className: "absolute inset-0 h-full w-full opacity-5",
592
581
  viewBox: "0 0 400 200",
593
582
  preserveAspectRatio: "none",
594
583
  "aria-hidden": "true",
595
- children: [/* @__PURE__ */ G("path", {
584
+ children: [/* @__PURE__ */ q("path", {
596
585
  d: "M0 80 C100 20, 200 140, 400 60 L400 200 L0 200 Z",
597
586
  className: "fill-inverse-foreground"
598
- }), /* @__PURE__ */ G("path", {
587
+ }), /* @__PURE__ */ q("path", {
599
588
  d: "M0 120 C120 60, 280 180, 400 100 L400 200 L0 200 Z",
600
589
  className: "fill-inverse-foreground"
601
590
  })]
602
591
  }),
603
- /* @__PURE__ */ G("div", {
592
+ /* @__PURE__ */ q("div", {
604
593
  className: "absolute top-4 right-4 z-20",
605
- children: /* @__PURE__ */ G(D, {
594
+ children: /* @__PURE__ */ q(O, {
606
595
  tone: E,
607
596
  inline: !0,
608
597
  dot: !0,
609
- className: "border border-inverse-border bg-inverse-background text-inverse-foreground shadow-sm backdrop-blur-md",
598
+ className: "border border-inverse-border bg-inverse-background text-inverse-foreground shadow-sm",
610
599
  "data-status": E,
611
600
  children: T
612
601
  })
613
602
  }),
614
- /* @__PURE__ */ K("div", {
603
+ /* @__PURE__ */ J(d, {
604
+ gap: "xl",
615
605
  className: "relative z-10",
616
606
  children: [
617
- /* @__PURE__ */ K("div", {
618
- className: "flex items-center gap-space-md",
619
- children: [/* @__PURE__ */ G(J, { className: "h-5 w-5 text-inverse-muted" }), /* @__PURE__ */ G(a, {
620
- weight: "medium",
621
- className: "text-inverse-muted",
622
- children: w.giftCard
623
- })]
607
+ /* @__PURE__ */ q(s, {
608
+ weight: "medium",
609
+ className: "text-inverse-muted",
610
+ children: w.giftCard
624
611
  }),
625
- /* @__PURE__ */ K("div", {
626
- className: "mt-8 mb-5",
627
- children: [/* @__PURE__ */ G(s, {
612
+ /* @__PURE__ */ J(d, {
613
+ gap: "dense",
614
+ children: [/* @__PURE__ */ q(a, {
628
615
  tone: "inverse",
629
616
  children: w.balance
630
- }), /* @__PURE__ */ K("div", {
631
- className: "flex items-baseline gap-2.5 mt-1",
632
- children: [/* @__PURE__ */ G(o, {
617
+ }), /* @__PURE__ */ J(d, {
618
+ direction: "horizontal",
619
+ align: "baseline",
620
+ gap: "lg",
621
+ children: [/* @__PURE__ */ q(o, {
633
622
  tag: "h2",
634
- className: "text-base border-none pb-0 text-inverse-foreground tabular-nums drop-shadow-sm",
623
+ size: "2xl",
624
+ className: "border-none pb-0 text-inverse-foreground tabular-nums drop-shadow-sm",
635
625
  children: k
636
- }), !!O && /* @__PURE__ */ G(h, {
626
+ }), !!D && /* @__PURE__ */ q(g, {
637
627
  className: "line-through tabular-nums text-inverse-disabled",
638
628
  children: t
639
629
  })]
640
630
  })]
641
631
  }),
642
- /* @__PURE__ */ G("div", {
643
- className: r("giftcard-full--code", "rounded-radius p-surface-xs", "bg-inverse-surface backdrop-blur-sm", "border border-inverse-border", "shadow-sm"),
644
- children: /* @__PURE__ */ K(u, {
632
+ /* @__PURE__ */ q("div", {
633
+ className: r("giftcard-full--code", "rounded-radius p-surface-xs", "bg-inverse-surface", "border border-inverse-border", "shadow-sm"),
634
+ children: /* @__PURE__ */ J(d, {
645
635
  direction: "horizontal",
646
636
  align: "center",
647
637
  gap: "md",
648
- children: [/* @__PURE__ */ G(v, {
638
+ children: [/* @__PURE__ */ q(y, {
649
639
  weight: "semibold",
650
640
  className: "flex-1 tracking-[0.2em] text-inverse-foreground",
651
641
  children: e
652
- }), /* @__PURE__ */ G(ht, {
642
+ }), /* @__PURE__ */ q(Xe, {
653
643
  code: e,
654
644
  strings: w,
655
645
  inverse: !0
@@ -659,17 +649,15 @@ function _t({ code: e, amount: t, remainingAmount: c, status: l, recipientName:
659
649
  ]
660
650
  })
661
651
  ]
662
- }), /* @__PURE__ */ G("div", {
652
+ }), /* @__PURE__ */ q("div", {
663
653
  className: "rounded-b-radius bg-card p-surface shadow-sm border border-t-0 border-border/50",
664
- children: /* @__PURE__ */ K(u, {
654
+ children: /* @__PURE__ */ J(d, {
665
655
  gap: "xl",
666
656
  children: [
667
- !!p && /* @__PURE__ */ K("div", {
668
- className: "giftcard-full--message rounded-radius bg-muted/50 p-surface-xs border border-border/30",
669
- children: [/* @__PURE__ */ G(s, {
670
- className: "mb-1",
671
- children: w.personalMessage
672
- }), /* @__PURE__ */ K(a, {
657
+ !!p && /* @__PURE__ */ J(d, {
658
+ gap: "normal",
659
+ className: "giftcard-full--message",
660
+ children: [/* @__PURE__ */ q(a, { children: w.personalMessage }), /* @__PURE__ */ J(s, {
673
661
  type: "secondary",
674
662
  className: "italic leading-relaxed",
675
663
  children: [
@@ -679,19 +667,18 @@ function _t({ code: e, amount: t, remainingAmount: c, status: l, recipientName:
679
667
  ]
680
668
  })]
681
669
  }),
682
- /* @__PURE__ */ G(U, {
670
+ /* @__PURE__ */ q(K, {
683
671
  items: A,
684
672
  columns: {
685
673
  base: 1,
686
674
  sm: 2
687
675
  }
688
676
  }),
689
- !!y && /* @__PURE__ */ G(i, {
677
+ !!v && /* @__PURE__ */ q(l, {
690
678
  tone: "secondary",
691
679
  buttonStyle: "outline",
692
- icon: ke,
693
680
  fullWidth: !0,
694
- onClick: y,
681
+ onClick: v,
695
682
  children: w.viewDetails
696
683
  })
697
684
  ]
@@ -699,405 +686,389 @@ function _t({ code: e, amount: t, remainingAmount: c, status: l, recipientName:
699
686
  })]
700
687
  });
701
688
  }
702
- _t.displayName = "GiftcardFull";
689
+ Qe.displayName = "GiftcardFull";
703
690
  //#endregion
704
691
  //#region src/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.tsx
705
- function vt({ code: e, amount: t, remainingAmount: c, status: l, recipientName: d, expiresAt: f, onView: p, headerColor: m = "green", className: g, strings: _ }) {
706
- let y = n(Y, _), b = y.status[l], x = ct[l], S = !!c && c !== t, w = S ? c : t, T = [...d ? [{
707
- label: y.recipient,
708
- value: d
692
+ function $e({ code: e, amount: t, remainingAmount: i, status: c, recipientName: u, expiresAt: f, onView: p, headerColor: m = "green", className: h, strings: _ }) {
693
+ let v = n(Y, _), b = v.status[c], x = Ue[c], S = !!i && i !== t, C = S ? i : t, w = [...u ? [{
694
+ label: v.recipient,
695
+ value: u
709
696
  }] : [], ...f ? [{
710
- label: y.expires,
697
+ label: v.expires,
711
698
  value: f
712
699
  }] : []];
713
- return /* @__PURE__ */ K("div", {
714
- className: r("giftcard-card--component giftcard-illustrated--component w-full max-w-sm overflow-hidden rounded-radius border border-border bg-card shadow-sm", g),
715
- children: [/* @__PURE__ */ K("div", {
700
+ return /* @__PURE__ */ J("div", {
701
+ className: r("giftcard-card--component giftcard-illustrated--component w-full max-w-sm overflow-hidden rounded-radius border border-border bg-card shadow-sm", h),
702
+ children: [/* @__PURE__ */ J("div", {
716
703
  className: "relative flex h-16 items-center justify-between overflow-hidden bg-inverse-background bg-gradient-to-br from-inverse-background via-inverse-surface to-inverse-background px-surface",
717
704
  children: [
718
- /* @__PURE__ */ G("div", {
705
+ /* @__PURE__ */ q("div", {
719
706
  "aria-hidden": !0,
720
- className: r("absolute inset-x-0 top-0 h-1 bg-gradient-to-r", pt[m])
707
+ className: r("absolute inset-x-0 top-0 h-1 bg-gradient-to-r", Je[m])
721
708
  }),
722
- /* @__PURE__ */ G("div", {
709
+ /* @__PURE__ */ q("div", {
723
710
  className: "absolute inset-0 opacity-80",
724
711
  style: { backgroundImage: "repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in oklch, var(--inverse-foreground) 3%, transparent) 10px 20px)" },
725
712
  "aria-hidden": "true"
726
713
  }),
727
- /* @__PURE__ */ G(C, {
728
- icon: J,
729
- size: "md",
730
- shape: "square",
731
- className: r("relative rounded-radius-md bg-inverse-surface text-inverse-foreground ring-1 ring-inverse-border")
732
- }),
733
- /* @__PURE__ */ G(s, {
714
+ /* @__PURE__ */ q(a, {
734
715
  tone: "inverse",
735
716
  className: "relative",
736
- children: y.giftCard
717
+ children: v.giftCard
737
718
  })
738
719
  ]
739
- }), /* @__PURE__ */ G("div", {
720
+ }), /* @__PURE__ */ q("div", {
740
721
  className: "p-surface",
741
- children: /* @__PURE__ */ K(u, {
722
+ children: /* @__PURE__ */ J(d, {
742
723
  gap: "lg",
743
724
  children: [
744
- /* @__PURE__ */ K("div", {
725
+ /* @__PURE__ */ J("div", {
745
726
  className: "flex items-start justify-between",
746
- children: [/* @__PURE__ */ K("div", { children: [/* @__PURE__ */ K("div", {
747
- className: "flex items-baseline gap-space-md",
748
- children: [/* @__PURE__ */ G(o, {
749
- tag: "h2",
750
- className: "border-none pb-0 text-base tabular-nums",
751
- children: w
752
- }), !!S && /* @__PURE__ */ G(h, {
753
- className: "line-through tabular-nums text-muted-foreground",
754
- children: t
727
+ children: [/* @__PURE__ */ J(d, {
728
+ gap: "dense",
729
+ children: [/* @__PURE__ */ J("div", {
730
+ className: "flex items-baseline gap-space-md",
731
+ children: [/* @__PURE__ */ q(o, {
732
+ tag: "h2",
733
+ size: "2xl",
734
+ className: "border-none pb-0 tabular-nums",
735
+ children: C
736
+ }), !!S && /* @__PURE__ */ q(g, {
737
+ className: "line-through tabular-nums text-muted-foreground",
738
+ children: t
739
+ })]
740
+ }), /* @__PURE__ */ q(s, {
741
+ size: "xs",
742
+ type: "secondary",
743
+ children: v.balance
755
744
  })]
756
- }), /* @__PURE__ */ G(a, {
757
- size: "xs",
758
- type: "secondary",
759
- className: "mt-0.5",
760
- children: y.balance
761
- })] }), /* @__PURE__ */ G(D, {
745
+ }), /* @__PURE__ */ q(O, {
762
746
  tone: x,
763
747
  children: b
764
748
  })]
765
749
  }),
766
- /* @__PURE__ */ G("div", {
767
- className: "giftcard-illustrated--code rounded-radius-md border border-border/50 bg-muted/40 p-surface-xs",
768
- children: /* @__PURE__ */ K(u, {
750
+ /* @__PURE__ */ q("div", {
751
+ className: "giftcard-illustrated--code rounded-inner border border-border/50 bg-muted/40 p-surface-xs",
752
+ children: /* @__PURE__ */ J(d, {
769
753
  direction: "horizontal",
770
754
  align: "center",
771
755
  gap: "md",
772
- children: [/* @__PURE__ */ G(v, {
756
+ children: [/* @__PURE__ */ q(y, {
773
757
  className: "flex-1 tracking-[0.15em]",
774
758
  children: e
775
- }), /* @__PURE__ */ G(ht, {
759
+ }), /* @__PURE__ */ q(Xe, {
776
760
  code: e,
777
- strings: y
761
+ strings: v
778
762
  })]
779
763
  })
780
764
  }),
781
- /* @__PURE__ */ G(U, {
782
- items: T,
765
+ /* @__PURE__ */ q(K, {
766
+ items: w,
783
767
  columns: 2
784
768
  }),
785
- !!p && /* @__PURE__ */ G(i, {
769
+ !!p && /* @__PURE__ */ q(l, {
786
770
  tone: "secondary",
787
771
  buttonStyle: "outline",
788
- icon: ke,
789
772
  fullWidth: !0,
790
773
  onClick: p,
791
- children: y.viewDetails
774
+ children: v.viewDetails
792
775
  })
793
776
  ]
794
777
  })
795
778
  })]
796
779
  });
797
780
  }
798
- vt.displayName = "GiftcardCardIllustrated";
781
+ $e.displayName = "GiftcardCardIllustrated";
799
782
  //#endregion
800
783
  //#region src/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.tsx
801
- function yt({ code: e, amount: t, remainingAmount: s, status: c, recipientName: l, expiresAt: d, onView: f, color: p = "green", className: m, strings: g }) {
802
- let _ = n(Y, g), y = _.status[c], b = ct[c], x = !!s && s !== t, S = x ? s : t, C = ft[p], w = [...l ? [{
784
+ function et({ code: e, amount: t, remainingAmount: a, status: c, recipientName: l, expiresAt: u, onView: f, color: p = "green", className: m, strings: h }) {
785
+ let _ = n(Y, h), v = _.status[c], b = Ue[c], x = !!a && a !== t, S = x ? a : t, C = qe[p], w = [...l ? [{
803
786
  label: _.recipient,
804
787
  value: l
805
- }] : [], ...d ? [{
788
+ }] : [], ...u ? [{
806
789
  label: _.expires,
807
- value: d
790
+ value: u
808
791
  }] : []];
809
- return /* @__PURE__ */ K("div", {
792
+ return /* @__PURE__ */ q("div", {
810
793
  className: r("giftcard-card--component giftcard-minimal--component w-full max-w-sm overflow-hidden rounded-radius border border-border bg-card shadow-sm", m),
811
- children: [
812
- /* @__PURE__ */ G("div", { className: r("mx-space-xl mt-space-lg h-1 w-12 rounded-radius-sm", C.line) }),
813
- /* @__PURE__ */ K(B, {
814
- size: "sm",
815
- className: "flex-nowrap items-center p-surface-xs",
816
- children: [
817
- /* @__PURE__ */ G(F, { children: /* @__PURE__ */ G("div", {
818
- className: r("flex h-7 w-7 items-center justify-center rounded-full", C.iconBg),
819
- children: /* @__PURE__ */ G(J, { className: "h-3.5 w-3.5" })
820
- }) }),
821
- /* @__PURE__ */ G(z, { children: /* @__PURE__ */ G(V, {
822
- bold: !1,
823
- children: /* @__PURE__ */ G(a, {
824
- tag: "span",
825
- size: "inherit",
826
- type: "secondary",
827
- children: _.giftCard
828
- })
829
- }) }),
830
- /* @__PURE__ */ G(L, {
794
+ children: /* @__PURE__ */ J(d, {
795
+ gap: "lg",
796
+ className: "giftcard-minimal--body p-surface",
797
+ children: [
798
+ /* @__PURE__ */ q("div", {
799
+ "aria-hidden": "true",
800
+ className: r("h-1 w-12 rounded-radius-sm", C.line)
801
+ }),
802
+ /* @__PURE__ */ J(d, {
803
+ direction: "horizontal",
804
+ justify: "between",
805
+ align: "center",
806
+ gap: "md",
807
+ wrap: !1,
808
+ children: [/* @__PURE__ */ q(s, {
809
+ tag: "span",
810
+ type: "secondary",
811
+ children: _.giftCard
812
+ }), /* @__PURE__ */ q(O, {
813
+ tone: b,
814
+ size: "sm",
831
815
  className: "shrink-0",
832
- children: /* @__PURE__ */ G(D, {
833
- tone: b,
834
- size: "sm",
835
- children: y
836
- })
837
- })
838
- ]
839
- }),
840
- /* @__PURE__ */ G("div", {
841
- className: "px-surface pb-surface-xs pt-0",
842
- children: /* @__PURE__ */ K("div", {
816
+ children: v
817
+ })]
818
+ }),
819
+ /* @__PURE__ */ J("div", {
843
820
  className: "flex items-baseline gap-space-md",
844
- children: [/* @__PURE__ */ G(o, {
821
+ children: [/* @__PURE__ */ q(o, {
845
822
  tag: "h2",
846
- className: "border-none pb-0 text-base tabular-nums",
823
+ size: "2xl",
824
+ className: "border-none pb-0 tabular-nums",
847
825
  children: S
848
- }), !!x && /* @__PURE__ */ G(h, {
826
+ }), !!x && /* @__PURE__ */ q(g, {
849
827
  className: "line-through tabular-nums text-muted-foreground",
850
828
  children: t
851
829
  })]
852
- })
853
- }),
854
- /* @__PURE__ */ G("div", {
855
- className: "giftcard-minimal--code mx-space-xl rounded-radius-md border border-border/30 bg-muted/50 p-surface-xs",
856
- children: /* @__PURE__ */ K(u, {
857
- direction: "horizontal",
858
- align: "center",
859
- gap: "sm",
860
- children: [/* @__PURE__ */ G(v, {
861
- className: "flex-1 tracking-[0.15em]",
862
- children: e
863
- }), /* @__PURE__ */ G(ht, {
864
- code: e,
865
- strings: _,
866
- className: "shrink-0"
867
- })]
868
- })
869
- }),
870
- /* @__PURE__ */ G(U, {
871
- items: w,
872
- columns: 1,
873
- density: "compact",
874
- className: "px-surface pb-space-sm pt-space-md [&_.metadata-list--grid]:gap-space-sm"
875
- }),
876
- !!f && /* @__PURE__ */ G("div", {
877
- className: "mt-1 border-t border-border/30 p-surface-xs",
878
- children: /* @__PURE__ */ K(i, {
879
- tone: "secondary",
880
- buttonStyle: "ghost",
830
+ }),
831
+ /* @__PURE__ */ q("div", {
832
+ className: "giftcard-minimal--code rounded-inner border border-border/30 bg-muted/50 p-surface-xs",
833
+ children: /* @__PURE__ */ J(d, {
834
+ direction: "horizontal",
835
+ align: "center",
836
+ gap: "sm",
837
+ children: [/* @__PURE__ */ q(y, {
838
+ className: "flex-1 tracking-[0.15em]",
839
+ children: e
840
+ }), /* @__PURE__ */ q(Xe, {
841
+ code: e,
842
+ strings: _,
843
+ className: "shrink-0"
844
+ })]
845
+ })
846
+ }),
847
+ /* @__PURE__ */ q(K, {
848
+ items: w,
849
+ columns: 1,
850
+ density: "compact",
851
+ className: "[&_.metadata-list--grid]:gap-space-sm"
852
+ }),
853
+ !!f && /* @__PURE__ */ J(i, {
881
854
  onClick: f,
882
- className: "group/link",
883
- children: [_.viewDetails, /* @__PURE__ */ G(_e, { className: "ml-1 h-3.5 w-3.5 transition-transform group-hover/link:translate-x-0.5" })]
855
+ className: "group/link self-start",
856
+ children: [_.viewDetails, /* @__PURE__ */ q(he, {
857
+ "aria-hidden": "true",
858
+ className: "ml-1 size-icon-sm transition-transform group-hover/link:translate-x-0.5"
859
+ })]
884
860
  })
885
- })
886
- ]
861
+ ]
862
+ })
887
863
  });
888
864
  }
889
- yt.displayName = "GiftcardCardMinimal";
865
+ et.displayName = "GiftcardCardMinimal";
890
866
  //#endregion
891
867
  //#region src/components/blocks/commerce/giftcard-card/giftcard-card.tsx
892
- function bt(e) {
868
+ function tt(e) {
893
869
  let t = r("giftcard-card--component", e.className);
894
870
  switch (e.variant) {
895
- case "compact": return /* @__PURE__ */ G(mt, {
871
+ case "compact": return /* @__PURE__ */ q(Ye, {
896
872
  ...e,
897
873
  className: t
898
874
  });
899
- case "minimal": return /* @__PURE__ */ G(yt, {
875
+ case "minimal": return /* @__PURE__ */ q(et, {
900
876
  ...e,
901
877
  className: t
902
878
  });
903
- case "dark": return /* @__PURE__ */ G(gt, {
879
+ case "dark": return /* @__PURE__ */ q(Ze, {
904
880
  ...e,
905
881
  className: t
906
882
  });
907
- case "illustrated": return /* @__PURE__ */ G(vt, {
883
+ case "illustrated": return /* @__PURE__ */ q($e, {
908
884
  ...e,
909
885
  className: t
910
886
  });
911
- default: return /* @__PURE__ */ G(_t, {
887
+ default: return /* @__PURE__ */ q(Qe, {
912
888
  ...e,
913
889
  className: t
914
890
  });
915
891
  }
916
892
  }
917
- bt.displayName = "GiftcardCard";
893
+ tt.displayName = "GiftcardCard";
918
894
  //#endregion
919
895
  //#region src/components/blocks/commerce/vendor-profile/types.ts
920
- var xt = {
896
+ var nt = {
921
897
  tabOverview: "Overview",
922
898
  tabStats: "Stats",
923
899
  totalEarnings: "Total earnings",
924
900
  message: "Message",
925
901
  hire: "Hire vendor",
926
902
  verifiedAriaLabel: "Verified"
927
- }, St = {
903
+ }, rt = {
928
904
  secondary: "secondary",
929
905
  success: "success",
930
906
  warning: "warning",
931
907
  destructive: "destructive"
932
908
  };
933
- function Ct({ children: e, tone: t }) {
934
- return f(e) ? /* @__PURE__ */ G(D, {
935
- tone: St[t ?? "secondary"],
909
+ function it({ children: e, tone: t }) {
910
+ return f(e) ? /* @__PURE__ */ q(O, {
911
+ tone: rt[t ?? "secondary"],
936
912
  className: "vendor-profile--change shrink-0 tabular-nums",
937
913
  children: e
938
914
  }) : null;
939
915
  }
940
- var wt = fe(function({ name: e, initials: t, avatarUrl: a, role: o, verified: c = !1, earnings: p, earningsChange: m, earningsChangeTone: g, metrics: _ = [], stats: v = [], view: b, defaultView: x = "overview", onViewChange: S, onMessage: C, onHire: O, surface: k, className: A, strings: j }, M) {
941
- let N = n(xt, j), [ee, te] = ge(x), ne = b !== void 0, P = f(p), re = P || _.length > 0, ie = v.length > 0, R = [...re ? ["overview"] : [], ...ie ? ["stats"] : []], U = ne ? b : ee, le = R.includes(U) ? U : R[0] ?? "overview", ue = R.length > 0, de = !!(C || O), fe = (e) => {
942
- (e === "overview" || e === "stats") && R.includes(e) && (ne || te(e), S?.(e));
943
- }, pe = /* @__PURE__ */ K(u, {
944
- gap: "lg",
916
+ var at = le(function({ name: e, initials: t, avatarUrl: i, role: o, verified: s = !1, earnings: c, earningsChange: m, earningsChangeTone: h, metrics: _ = [], stats: v = [], view: y, defaultView: x = "overview", onViewChange: S, onMessage: C, onHire: w, surface: k, className: A, strings: j }, M) {
917
+ let N = n(nt, j), [P, F] = pe(x), I = y !== void 0, ee = f(c), L = ee || _.length > 0, te = v.length > 0, B = [...L ? ["overview"] : [], ...te ? ["stats"] : []], V = I ? y : P, K = B.includes(V) ? V : B[0] ?? "overview", oe = B.length > 0, se = !!(C || w), ce = (e) => {
918
+ (e === "overview" || e === "stats") && B.includes(e) && (I || F(e), S?.(e));
919
+ }, le = /* @__PURE__ */ J(d, {
920
+ gap: "xl",
945
921
  className: "vendor-profile--overview",
946
- children: [P && /* @__PURE__ */ K("div", {
947
- className: "vendor-profile--earnings rounded-radius bg-muted/45 p-surface-xs",
948
- children: [/* @__PURE__ */ G(s, { children: N.totalEarnings }), /* @__PURE__ */ K(u, {
922
+ children: [ee && /* @__PURE__ */ J(d, {
923
+ gap: "normal",
924
+ className: "vendor-profile--earnings",
925
+ children: [/* @__PURE__ */ q(a, { children: N.totalEarnings }), /* @__PURE__ */ J(d, {
949
926
  direction: "horizontal",
950
- gap: "md",
927
+ gap: "sm",
951
928
  align: "baseline",
952
- justify: "between",
953
- className: "mt-space-sm",
954
- children: [/* @__PURE__ */ G(h, {
929
+ children: [/* @__PURE__ */ q(g, {
955
930
  size: "base",
956
931
  weight: "semibold",
957
932
  className: "tabular-nums tracking-tight",
958
- children: p
959
- }), /* @__PURE__ */ G(Ct, {
960
- tone: g,
933
+ children: c
934
+ }), /* @__PURE__ */ q(it, {
935
+ tone: h,
961
936
  children: m
962
937
  })]
963
938
  })]
964
- }), _.length > 0 && /* @__PURE__ */ G("div", {
939
+ }), _.length > 0 && /* @__PURE__ */ q("div", {
965
940
  className: "vendor-profile--metrics divide-y divide-border/60",
966
- children: _.map((e, t) => /* @__PURE__ */ G(H, {
941
+ children: _.map((e, t) => /* @__PURE__ */ q(G, {
967
942
  className: "py-row-y first:pt-0 last:pb-0",
968
943
  label: e.label,
969
944
  value: e.value,
970
945
  valueClassName: "font-medium"
971
946
  }, e.id ?? t))
972
947
  })]
973
- }), me = /* @__PURE__ */ G(l, {
948
+ }), ue = /* @__PURE__ */ q(u, {
974
949
  columns: {
975
950
  base: 1,
976
951
  sm: 2
977
952
  },
978
- gap: "sm",
953
+ gap: "xl",
979
954
  className: "vendor-profile--stats",
980
- children: v.map((e, t) => /* @__PURE__ */ G("div", {
981
- className: "vendor-profile--stat rounded-radius bg-muted/45 p-surface-xs",
982
- children: /* @__PURE__ */ K(u, {
955
+ children: v.map((e, t) => /* @__PURE__ */ J(d, {
956
+ gap: "normal",
957
+ className: "vendor-profile--stat",
958
+ children: [/* @__PURE__ */ q(a, {
959
+ className: "truncate",
960
+ children: e.label
961
+ }), /* @__PURE__ */ J(d, {
962
+ direction: "horizontal",
983
963
  gap: "sm",
984
- children: [/* @__PURE__ */ G(s, {
985
- className: "truncate",
986
- children: e.label
987
- }), /* @__PURE__ */ K(u, {
988
- direction: "horizontal",
989
- gap: "sm",
990
- align: "baseline",
991
- justify: "between",
992
- children: [/* @__PURE__ */ G(h, {
993
- weight: "semibold",
994
- className: "min-w-0 tabular-nums",
995
- children: e.value
996
- }), /* @__PURE__ */ G(Ct, {
997
- tone: e.changeTone,
998
- children: e.change
999
- })]
964
+ align: "baseline",
965
+ children: [/* @__PURE__ */ q(g, {
966
+ weight: "semibold",
967
+ className: "min-w-0 tabular-nums",
968
+ children: e.value
969
+ }), /* @__PURE__ */ q(it, {
970
+ tone: e.changeTone,
971
+ children: e.change
1000
972
  })]
1001
- })
973
+ })]
1002
974
  }, e.id ?? t))
1003
- }), he = R.length > 1 ? /* @__PURE__ */ K(ce, {
1004
- value: le,
1005
- onValueChange: fe,
975
+ }), de = B.length > 1 ? /* @__PURE__ */ J(ae, {
976
+ value: K,
977
+ onValueChange: ce,
1006
978
  className: "vendor-profile--tabs gap-space-lg",
1007
979
  children: [
1008
- /* @__PURE__ */ K(se, {
1009
- className: "grid h-auto w-full grid-cols-2 rounded-radius p-space-xs",
1010
- children: [/* @__PURE__ */ G(ae, {
980
+ /* @__PURE__ */ J(ie, {
981
+ className: "grid h-auto w-full grid-cols-2 rounded-inner p-space-xs",
982
+ children: [/* @__PURE__ */ q(ne, {
1011
983
  value: "overview",
1012
- className: "h-action-sm rounded-radius-sm px-control-sm text-pxs",
984
+ className: "h-action-sm rounded-inner px-control-sm text-pxs",
1013
985
  children: N.tabOverview
1014
- }), /* @__PURE__ */ G(ae, {
986
+ }), /* @__PURE__ */ q(ne, {
1015
987
  value: "stats",
1016
- className: "h-action-sm rounded-radius-sm px-control-sm text-pxs",
988
+ className: "h-action-sm rounded-inner px-control-sm text-pxs",
1017
989
  children: N.tabStats
1018
990
  })]
1019
991
  }),
1020
- /* @__PURE__ */ G(oe, {
992
+ /* @__PURE__ */ q(re, {
1021
993
  value: "overview",
1022
994
  className: "mt-0",
1023
- children: pe
995
+ children: le
1024
996
  }),
1025
- /* @__PURE__ */ G(oe, {
997
+ /* @__PURE__ */ q(re, {
1026
998
  value: "stats",
1027
999
  className: "mt-0",
1028
- children: me
1000
+ children: ue
1029
1001
  })
1030
1002
  ]
1031
- }) : le === "stats" ? me : pe;
1032
- return /* @__PURE__ */ G(d, {
1003
+ }) : K === "stats" ? ue : le;
1004
+ return /* @__PURE__ */ q(p, {
1033
1005
  ref: M,
1034
1006
  surface: k,
1035
- headerStart: /* @__PURE__ */ K(B, {
1007
+ padding: k === "flat" ? "none" : "md",
1008
+ gap: "xl",
1009
+ headerStart: /* @__PURE__ */ J(U, {
1036
1010
  className: "vendor-profile--identity flex-nowrap py-0",
1037
- children: [
1038
- /* @__PURE__ */ G(F, {
1039
- variant: "avatar",
1040
- children: /* @__PURE__ */ K(T, { children: [!!a && /* @__PURE__ */ G(E, {
1041
- src: a,
1042
- alt: e
1043
- }), /* @__PURE__ */ G(w, {
1044
- className: "bg-primary/12 text-primary-accent",
1045
- children: t ?? /* @__PURE__ */ G(y, {
1046
- value: e,
1047
- strategy: "first-words"
1048
- })
1049
- })] })
1050
- }),
1051
- /* @__PURE__ */ K(z, { children: [/* @__PURE__ */ G(V, { children: e }), !!o && /* @__PURE__ */ G(I, {
1052
- clamp: 2,
1053
- children: o
1054
- })] }),
1055
- !!c && /* @__PURE__ */ G(L, { children: /* @__PURE__ */ K(D, {
1011
+ children: [/* @__PURE__ */ q(R, {
1012
+ variant: "avatar",
1013
+ children: /* @__PURE__ */ J(E, { children: [!!i && /* @__PURE__ */ q(D, {
1014
+ src: i,
1015
+ alt: e
1016
+ }), /* @__PURE__ */ q(T, {
1017
+ className: "bg-primary/12 text-primary-accent",
1018
+ children: t ?? /* @__PURE__ */ q(b, {
1019
+ value: e,
1020
+ strategy: "first-words"
1021
+ })
1022
+ })] })
1023
+ }), /* @__PURE__ */ J(H, { children: [/* @__PURE__ */ J(d, {
1024
+ direction: "horizontal",
1025
+ gap: "sm",
1026
+ wrap: !1,
1027
+ className: "min-w-0",
1028
+ children: [/* @__PURE__ */ q(W, {
1029
+ className: "min-w-0 truncate",
1030
+ children: e
1031
+ }), !!s && /* @__PURE__ */ q(O, {
1056
1032
  tone: "success",
1057
- "aria-label": N.verifiedAriaLabel,
1058
- children: [/* @__PURE__ */ G(q, {
1059
- className: "size-icon-sm",
1060
- "aria-hidden": "true"
1061
- }), N.verifiedAriaLabel]
1062
- }) })
1063
- ]
1033
+ className: "shrink-0",
1034
+ children: N.verifiedAriaLabel
1035
+ })]
1036
+ }), !!o && /* @__PURE__ */ q(z, {
1037
+ clamp: 2,
1038
+ children: o
1039
+ })] })]
1064
1040
  }),
1065
- headerDivider: ue,
1066
- footerDivider: de,
1067
- footerSlot: de ? /* @__PURE__ */ K("div", {
1041
+ footerSlot: se ? /* @__PURE__ */ J("div", {
1068
1042
  className: "vendor-profile--actions flex flex-wrap gap-space-sm",
1069
- children: [!!C && /* @__PURE__ */ K(i, {
1043
+ children: [!!C && /* @__PURE__ */ q(l, {
1070
1044
  type: "button",
1071
1045
  tone: "secondary",
1072
1046
  buttonStyle: "outline",
1073
1047
  className: "min-w-0 flex-1",
1074
1048
  onClick: C,
1075
- children: [/* @__PURE__ */ G(Ne, {
1076
- className: "size-icon-sm",
1077
- "aria-hidden": "true"
1078
- }), N.message]
1079
- }), !!O && /* @__PURE__ */ K(i, {
1049
+ children: N.message
1050
+ }), !!w && /* @__PURE__ */ J(l, {
1080
1051
  type: "button",
1081
1052
  tone: "primary",
1082
1053
  className: "min-w-0 flex-1",
1083
- onClick: O,
1084
- children: [N.hire, /* @__PURE__ */ G(Se, {
1054
+ onClick: w,
1055
+ children: [N.hire, /* @__PURE__ */ q(ye, {
1085
1056
  className: "size-icon-sm",
1086
1057
  "aria-hidden": "true"
1087
1058
  })]
1088
1059
  })]
1089
1060
  }) : void 0,
1090
- contentClassName: r(!ue && "hidden"),
1061
+ contentClassName: r(!oe && "hidden"),
1091
1062
  className: r("vendor-profile--component", A),
1092
- children: ue ? he : null
1063
+ children: oe ? de : null
1093
1064
  });
1094
1065
  });
1095
- wt.displayName = "VendorProfileCard";
1066
+ at.displayName = "VendorProfileCard";
1096
1067
  //#endregion
1097
1068
  //#region src/components/blocks/commerce/inventory-level/inventory-level.strings.ts
1098
- var Tt = {
1099
- statusInStock: "In Stock",
1100
- statusLowStock: "Low Stock",
1069
+ var ot = {
1070
+ statusInStock: "In stock",
1071
+ statusLowStock: "Low stock",
1101
1072
  statusCritical: "Critical",
1102
1073
  variantLabel: "Variant",
1103
1074
  unitsAvailable: "units available",
@@ -1106,66 +1077,82 @@ var Tt = {
1106
1077
  };
1107
1078
  //#endregion
1108
1079
  //#region src/components/blocks/commerce/inventory-level/inventory-level.tsx
1109
- function Et({ productName: e, variant: t, stock: i, reorderLevel: o, maxStock: s, lastRestocked: c, className: l, strings: d }) {
1110
- let f = n(Tt, d), p = Math.round(i / s * 100), m = i <= o, h = i <= o * .5, g = h ? "destructive" : m ? "warning" : "success", v = h ? f.statusCritical : m ? f.statusLowStock : f.statusInStock;
1111
- return /* @__PURE__ */ K(u, {
1080
+ function st({ productName: e, variant: t, stock: i, reorderLevel: a, maxStock: o, lastRestocked: c, className: l, strings: u }) {
1081
+ let f = n(ot, u), p = Math.round(i / o * 100), m = i <= a, h = i <= a * .5, g = h ? "destructive" : m ? "warning" : "success", _ = h ? f.statusCritical : m ? f.statusLowStock : f.statusInStock;
1082
+ return /* @__PURE__ */ J(d, {
1112
1083
  "data-component": "inventory-level",
1113
1084
  "data-slot": "inventory-level",
1114
- gap: "md",
1085
+ gap: "xl",
1115
1086
  className: r("inventory-level--component", l),
1116
1087
  children: [
1117
- /* @__PURE__ */ G(B, {
1118
- size: "sm",
1119
- title: e,
1120
- description: t ? `${f.variantLabel}: ${t}` : void 0,
1121
- descriptionClamp: 1,
1122
- trailing: /* @__PURE__ */ G(D, {
1123
- tone: g,
1124
- children: v
1125
- })
1126
- }),
1127
- /* @__PURE__ */ G(S, {
1128
- value: i,
1129
- weight: "semibold",
1130
- align: "left",
1131
- className: "tracking-tight"
1088
+ /* @__PURE__ */ J(d, {
1089
+ gap: "dense",
1090
+ className: "inventory-level--product",
1091
+ children: [/* @__PURE__ */ J(d, {
1092
+ direction: "horizontal",
1093
+ gap: "sm",
1094
+ wrap: !1,
1095
+ className: "min-w-0",
1096
+ children: [/* @__PURE__ */ q(s, {
1097
+ weight: "semibold",
1098
+ className: "min-w-0 truncate",
1099
+ children: e
1100
+ }), /* @__PURE__ */ q(O, {
1101
+ tone: g,
1102
+ className: "shrink-0",
1103
+ children: _
1104
+ })]
1105
+ }), !!t && /* @__PURE__ */ q(s, {
1106
+ size: "xs",
1107
+ type: "secondary",
1108
+ className: "truncate",
1109
+ children: `${f.variantLabel}: ${t}`
1110
+ })]
1132
1111
  }),
1133
- /* @__PURE__ */ G(a, {
1134
- size: "xs",
1135
- type: "secondary",
1136
- children: f.unitsAvailable
1112
+ /* @__PURE__ */ J(d, {
1113
+ gap: "dense",
1114
+ className: "inventory-level--stock",
1115
+ children: [/* @__PURE__ */ q(C, {
1116
+ value: i,
1117
+ weight: "semibold",
1118
+ align: "left",
1119
+ className: "tracking-tight"
1120
+ }), /* @__PURE__ */ q(s, {
1121
+ size: "xs",
1122
+ type: "secondary",
1123
+ children: f.unitsAvailable
1124
+ })]
1137
1125
  }),
1138
- /* @__PURE__ */ K(u, {
1126
+ /* @__PURE__ */ J(d, {
1139
1127
  gap: "md",
1140
- className: "mt-space-xl",
1141
- children: [/* @__PURE__ */ G("div", {
1128
+ className: "inventory-level--gauge",
1129
+ children: [/* @__PURE__ */ q("div", {
1142
1130
  className: "h-1.5 overflow-hidden rounded-full bg-muted",
1143
- children: /* @__PURE__ */ G("div", {
1131
+ children: /* @__PURE__ */ q("div", {
1144
1132
  className: r("h-full rounded-full transition-all", h ? "bg-destructive" : m ? "bg-warning" : "bg-success"),
1145
1133
  style: { width: `${p}%` }
1146
1134
  })
1147
- }), /* @__PURE__ */ K("div", {
1135
+ }), /* @__PURE__ */ J("div", {
1148
1136
  className: "flex items-center justify-between",
1149
- children: [/* @__PURE__ */ K(a, {
1137
+ children: [/* @__PURE__ */ J(s, {
1150
1138
  size: "xs",
1151
1139
  type: "secondary",
1152
1140
  children: [
1153
1141
  f.reorderAtLabel,
1154
1142
  ": ",
1155
- /* @__PURE__ */ G(S, {
1156
- value: o,
1157
- size: "xs",
1143
+ /* @__PURE__ */ q(C, {
1144
+ value: a,
1158
1145
  weight: "medium",
1159
1146
  align: "left"
1160
1147
  })
1161
1148
  ]
1162
- }), !!c && /* @__PURE__ */ K(a, {
1149
+ }), !!c && /* @__PURE__ */ J(s, {
1163
1150
  size: "xs",
1164
1151
  type: "secondary",
1165
1152
  children: [
1166
1153
  f.lastRestockedLabel,
1167
1154
  ": ",
1168
- /* @__PURE__ */ G(_, {
1155
+ /* @__PURE__ */ q(v, {
1169
1156
  size: "xs",
1170
1157
  children: c
1171
1158
  })
@@ -1176,87 +1163,82 @@ function Et({ productName: e, variant: t, stock: i, reorderLevel: o, maxStock: s
1176
1163
  ]
1177
1164
  });
1178
1165
  }
1179
- Et.displayName = "InventoryLevel";
1166
+ st.displayName = "InventoryLevel";
1180
1167
  //#endregion
1181
1168
  //#region src/components/blocks/commerce/tax-breakdown/types.ts
1182
- var Dt = {
1183
- title: "Tax Breakdown",
1169
+ var ct = {
1170
+ title: "Tax breakdown",
1184
1171
  subtotal: "Subtotal",
1185
- totalTax: "Total Tax",
1172
+ totalTax: "Total tax",
1186
1173
  total: "Total"
1187
1174
  };
1188
1175
  //#endregion
1189
1176
  //#region src/components/blocks/commerce/tax-breakdown/tax-breakdown.tsx
1190
- function Ot({ subtotal: e, taxes: t, totalTax: i, total: o, className: s, strings: c }) {
1191
- let l = n(Dt, c);
1192
- return /* @__PURE__ */ K(j, {
1193
- icon: /* @__PURE__ */ G(Le, { className: "size-icon" }),
1177
+ function lt({ subtotal: e, taxes: t, totalTax: i, total: a, className: o, strings: c }) {
1178
+ let l = n(ct, c);
1179
+ return /* @__PURE__ */ J(I, {
1194
1180
  title: l.title,
1195
- className: r("tax-breakdown--component w-full", s),
1181
+ contentGap: "lg",
1182
+ className: r("tax-breakdown--component w-full", o),
1196
1183
  children: [
1197
- /* @__PURE__ */ G(H, {
1184
+ /* @__PURE__ */ q(G, {
1198
1185
  label: l.subtotal,
1199
1186
  value: e,
1200
- mono: !0,
1201
- valueClassName: "text-sm font-medium"
1187
+ valueClassName: "text-sm font-medium tabular-nums"
1202
1188
  }),
1203
- /* @__PURE__ */ G("div", {
1204
- className: "mt-space-lg rounded-radius border border-border/50 bg-muted/30 p-surface",
1205
- children: /* @__PURE__ */ K(u, {
1206
- gap: "sm",
1207
- children: [t.map((e, t) => /* @__PURE__ */ K(u, {
1189
+ /* @__PURE__ */ q(d, {
1190
+ gap: "sm",
1191
+ className: "tax-breakdown--lines",
1192
+ children: t.map((e, t) => /* @__PURE__ */ J(d, {
1193
+ direction: "horizontal",
1194
+ align: "baseline",
1195
+ justify: "between",
1196
+ gap: "lg",
1197
+ children: [/* @__PURE__ */ J(d, {
1208
1198
  direction: "horizontal",
1209
1199
  align: "baseline",
1210
- justify: "between",
1211
- gap: "lg",
1212
- children: [/* @__PURE__ */ K(u, {
1213
- direction: "horizontal",
1214
- align: "baseline",
1215
- gap: "sm",
1216
- className: "min-w-0",
1217
- children: [/* @__PURE__ */ G(a, {
1218
- className: "truncate",
1219
- children: e.label
1220
- }), !!e.rate && /* @__PURE__ */ G(a, {
1221
- tag: "span",
1222
- size: "xs",
1223
- type: "discrete",
1224
- className: "shrink-0",
1225
- children: e.rate
1226
- })]
1227
- }), /* @__PURE__ */ G(h, {
1228
- weight: "medium",
1229
- className: "shrink-0 tabular-nums",
1230
- children: e.amount
1200
+ gap: "sm",
1201
+ className: "min-w-0",
1202
+ children: [/* @__PURE__ */ q(s, {
1203
+ className: "truncate",
1204
+ children: e.label
1205
+ }), !!e.rate && /* @__PURE__ */ q(s, {
1206
+ tag: "span",
1207
+ size: "xs",
1208
+ type: "discrete",
1209
+ className: "shrink-0",
1210
+ children: e.rate
1231
1211
  })]
1232
- }, e.id ?? `${e.label}-${t}`)), !!i && t.length > 1 && /* @__PURE__ */ G(H, {
1233
- label: l.totalTax,
1234
- value: i,
1235
- mono: !0,
1236
- className: "border-t border-border/50 pt-1.5 mt-0.5",
1237
- valueClassName: "text-sm font-semibold"
1212
+ }), /* @__PURE__ */ q(g, {
1213
+ weight: "medium",
1214
+ className: "shrink-0 tabular-nums",
1215
+ children: e.amount
1238
1216
  })]
1239
- })
1217
+ }, e.id ?? `${e.label}-${t}`))
1218
+ }),
1219
+ !!i && t.length > 1 && /* @__PURE__ */ q(G, {
1220
+ label: l.totalTax,
1221
+ value: i,
1222
+ valueClassName: "text-sm font-semibold tabular-nums"
1240
1223
  }),
1241
- /* @__PURE__ */ G(O, { className: "my-space-lg" }),
1242
- /* @__PURE__ */ G(H, {
1243
- label: /* @__PURE__ */ G(a, {
1224
+ /* @__PURE__ */ q(k, {}),
1225
+ /* @__PURE__ */ q(G, {
1226
+ label: /* @__PURE__ */ q(s, {
1244
1227
  tag: "span",
1245
1228
  weight: "semibold",
1246
1229
  lineHeight: "tight",
1247
1230
  children: l.total
1248
1231
  }),
1249
- value: o,
1250
- mono: !0,
1251
- valueClassName: "text-base font-bold"
1232
+ value: a,
1233
+ valueClassName: "text-base font-bold tabular-nums"
1252
1234
  })
1253
1235
  ]
1254
1236
  });
1255
1237
  }
1256
- Ot.displayName = "TaxBreakdownCard";
1238
+ lt.displayName = "TaxBreakdownCard";
1257
1239
  //#endregion
1258
1240
  //#region src/components/blocks/commerce/subscription-summary/types.ts
1259
- var kt = {
1241
+ var ut = {
1260
1242
  title: "Subscription",
1261
1243
  plan: "Plan",
1262
1244
  nextBilling: "Next billing",
@@ -1266,104 +1248,94 @@ var kt = {
1266
1248
  };
1267
1249
  //#endregion
1268
1250
  //#region src/components/blocks/commerce/subscription-summary/subscription-summary.tsx
1269
- function At({ planName: e, priceLabel: t, cycleLabel: c, nextBillingDate: l, statusLabel: d, perks: f = [], onManage: p, onUpgrade: m, className: g, strings: _ }) {
1270
- let v = n(kt, _);
1271
- return /* @__PURE__ */ K(j, {
1272
- icon: /* @__PURE__ */ G(ze, { className: "size-icon" }),
1251
+ function dt({ planName: e, priceLabel: t, cycleLabel: i, nextBillingDate: c, statusLabel: u, perks: f = [], onManage: p, onUpgrade: m, className: h, strings: _ }) {
1252
+ let v = n(ut, _);
1253
+ return /* @__PURE__ */ J(I, {
1273
1254
  title: v.title,
1274
- headerEnd: d ? /* @__PURE__ */ G(D, {
1255
+ titleSuffix: u ? /* @__PURE__ */ q(O, {
1275
1256
  tone: "success",
1276
- children: d
1257
+ children: u
1277
1258
  }) : null,
1278
- className: r("subscription-summary--component w-full", g),
1259
+ contentGap: "2xl",
1260
+ className: r("subscription-summary--component w-full", h),
1279
1261
  children: [
1280
- /* @__PURE__ */ G("div", {
1281
- className: "rounded-radius border border-border/60 bg-muted/30 p-surface",
1282
- children: /* @__PURE__ */ K(u, {
1262
+ /* @__PURE__ */ J(d, {
1263
+ gap: "lg",
1264
+ className: "subscription-summary--plan",
1265
+ children: [/* @__PURE__ */ J(d, {
1283
1266
  direction: "horizontal",
1284
1267
  justify: "between",
1285
- align: "start",
1268
+ align: "end",
1286
1269
  gap: "lg",
1287
- children: [/* @__PURE__ */ K(u, {
1288
- gap: "none",
1270
+ children: [/* @__PURE__ */ J(d, {
1271
+ gap: "dense",
1289
1272
  className: "min-w-0",
1290
- children: [/* @__PURE__ */ G(s, { children: v.plan }), /* @__PURE__ */ G(o, {
1273
+ children: [/* @__PURE__ */ q(a, { children: v.plan }), /* @__PURE__ */ q(o, {
1291
1274
  tag: "h3",
1292
- className: "mt-1 text-base font-semibold tracking-tight border-none pb-0",
1275
+ className: "text-base font-semibold tracking-tight border-none pb-0",
1293
1276
  children: e
1294
1277
  })]
1295
- }), /* @__PURE__ */ K(u, {
1278
+ }), /* @__PURE__ */ J(d, {
1296
1279
  direction: "horizontal",
1297
1280
  align: "baseline",
1298
1281
  gap: "xs",
1299
1282
  className: "shrink-0",
1300
- children: [/* @__PURE__ */ G(h, {
1283
+ children: [/* @__PURE__ */ q(g, {
1301
1284
  weight: "bold",
1302
1285
  className: "tabular-nums",
1303
1286
  children: t
1304
- }), /* @__PURE__ */ G(a, {
1287
+ }), /* @__PURE__ */ q(s, {
1305
1288
  type: "secondary",
1306
- children: c
1289
+ children: i
1307
1290
  })]
1308
1291
  })]
1309
- })
1310
- }),
1311
- /* @__PURE__ */ K("div", {
1312
- className: "mt-space-lg flex items-center justify-between rounded-radius-md bg-card px-space-xs",
1313
- children: [/* @__PURE__ */ K("div", {
1314
- className: "flex items-center gap-space-md",
1315
- children: [/* @__PURE__ */ G(ye, { className: "size-icon-md text-muted-foreground" }), /* @__PURE__ */ G(a, {
1316
- size: "xs",
1317
- type: "secondary",
1318
- children: v.nextBilling
1319
- })]
1320
- }), /* @__PURE__ */ G(h, {
1321
- weight: "semibold",
1322
- className: "tabular-nums",
1323
- children: l
1292
+ }), /* @__PURE__ */ q(G, {
1293
+ label: v.nextBilling,
1294
+ value: c,
1295
+ valueClassName: "font-semibold tabular-nums"
1324
1296
  })]
1325
1297
  }),
1326
- f.length > 0 && /* @__PURE__ */ K(u, {
1298
+ f.length > 0 && /* @__PURE__ */ J(d, {
1327
1299
  gap: "md",
1328
- className: "mt-space-xl",
1329
- children: [/* @__PURE__ */ G(s, { children: v.perks }), /* @__PURE__ */ G(R, { children: f.map((e, t) => {
1330
- let n = e.icon ?? q;
1331
- return /* @__PURE__ */ K(B, {
1300
+ className: "subscription-summary--perks",
1301
+ children: [/* @__PURE__ */ q(a, { children: v.perks }), /* @__PURE__ */ q(V, { children: f.map((e, t) => {
1302
+ let n = e.icon;
1303
+ return /* @__PURE__ */ J(U, {
1332
1304
  size: "sm",
1333
- children: [/* @__PURE__ */ G(F, { children: /* @__PURE__ */ G(C, {
1334
- icon: n,
1335
- tone: "success",
1336
- size: "sm"
1337
- }) }), /* @__PURE__ */ G(z, { children: /* @__PURE__ */ G(V, {
1305
+ density: "compact",
1306
+ children: [!!n && /* @__PURE__ */ q(R, { children: /* @__PURE__ */ q(n, {
1307
+ "aria-hidden": "true",
1308
+ className: "size-icon text-muted-foreground"
1309
+ }) }), /* @__PURE__ */ q(H, { children: /* @__PURE__ */ q(W, {
1338
1310
  bold: !1,
1339
1311
  children: e.label
1340
1312
  }) })]
1341
1313
  }, `${e.label}-${t}`);
1342
1314
  }) })]
1343
1315
  }),
1344
- (p || m) && /* @__PURE__ */ K("div", {
1345
- className: "mt-space-xl flex items-center gap-space-md",
1346
- children: [!!p && /* @__PURE__ */ G(i, {
1316
+ (p || m) && /* @__PURE__ */ J("div", {
1317
+ className: "flex items-center gap-space-md",
1318
+ children: [!!p && /* @__PURE__ */ q(l, {
1347
1319
  tone: "secondary",
1348
1320
  buttonStyle: "outline",
1349
1321
  onClick: p,
1350
1322
  className: "flex-1",
1351
1323
  children: v.manage
1352
- }), !!m && /* @__PURE__ */ K(i, {
1324
+ }), !!m && /* @__PURE__ */ J(l, {
1353
1325
  tone: "primary",
1354
1326
  onClick: m,
1355
1327
  className: "flex-1",
1356
- children: [v.upgrade, /* @__PURE__ */ G(Se, { className: "ml-1 size-icon-md" })]
1328
+ children: [v.upgrade, /* @__PURE__ */ q(ye, { className: "ml-1 size-icon-md" })]
1357
1329
  })]
1358
1330
  })
1359
1331
  ]
1360
1332
  });
1361
1333
  }
1362
- At.displayName = "SubscriptionSummaryCard";
1334
+ dt.displayName = "SubscriptionSummaryCard";
1363
1335
  //#endregion
1364
1336
  //#region src/components/blocks/commerce/refund-status/types.ts
1365
- var jt = {
1366
- title: "Refund Status",
1337
+ var ft = {
1338
+ title: "Refund status",
1367
1339
  requested: "Requested",
1368
1340
  approved: "Approved",
1369
1341
  processing: "Processing",
@@ -1372,64 +1344,63 @@ var jt = {
1372
1344
  reason: "Reason",
1373
1345
  eta: "Expected by",
1374
1346
  method: "Refund to"
1375
- }, Mt = [
1347
+ }, pt = [
1376
1348
  "requested",
1377
1349
  "approved",
1378
1350
  "processing",
1379
1351
  "completed"
1380
1352
  ];
1381
- function Nt({ stage: e, amount: t, reason: i, method: o, eta: c, requestedAt: l, className: d, strings: f }) {
1382
- let p = n(jt, f), m = Mt.indexOf(e);
1383
- return /* @__PURE__ */ K(j, {
1384
- icon: /* @__PURE__ */ G(Be, { className: "size-icon" }),
1353
+ function mt({ stage: e, amount: t, reason: i, method: o, eta: c, requestedAt: l, className: u, strings: f }) {
1354
+ let p = n(ft, f), m = pt.indexOf(e);
1355
+ return /* @__PURE__ */ J(I, {
1385
1356
  title: p.title,
1386
- className: r("refund-status--component w-full", d),
1357
+ contentGap: "2xl",
1358
+ className: r("refund-status--component w-full", u),
1387
1359
  children: [
1388
- /* @__PURE__ */ K("div", {
1389
- className: "rounded-radius bg-muted/40 p-surface",
1390
- children: [/* @__PURE__ */ K(u, {
1360
+ /* @__PURE__ */ J(d, {
1361
+ gap: "dense",
1362
+ children: [/* @__PURE__ */ J(d, {
1391
1363
  direction: "horizontal",
1392
1364
  justify: "between",
1393
1365
  align: "baseline",
1394
1366
  gap: "lg",
1395
- children: [/* @__PURE__ */ G(s, { children: p.amount }), /* @__PURE__ */ G(h, {
1367
+ children: [/* @__PURE__ */ q(a, { children: p.amount }), /* @__PURE__ */ q(g, {
1396
1368
  size: "base",
1397
1369
  weight: "bold",
1398
1370
  className: "tabular-nums tracking-tight",
1399
1371
  children: t
1400
1372
  })]
1401
- }), !!l && /* @__PURE__ */ K(a, {
1373
+ }), !!l && /* @__PURE__ */ J(s, {
1402
1374
  size: "xs",
1403
1375
  type: "secondary",
1404
- className: "mt-0.5",
1405
1376
  children: [
1406
1377
  p.requested,
1407
1378
  ": ",
1408
- /* @__PURE__ */ G(_, {
1379
+ /* @__PURE__ */ q(v, {
1409
1380
  size: "xs",
1410
1381
  children: l
1411
1382
  })
1412
1383
  ]
1413
1384
  })]
1414
1385
  }),
1415
- /* @__PURE__ */ G("div", {
1416
- className: "mt-space-xl flex items-center justify-between",
1417
- children: Mt.map((e, t) => {
1386
+ /* @__PURE__ */ q("div", {
1387
+ className: "flex items-center justify-between",
1388
+ children: pt.map((e, t) => {
1418
1389
  let n = t <= m, i = t === m;
1419
- return /* @__PURE__ */ K("div", {
1390
+ return /* @__PURE__ */ J("div", {
1420
1391
  className: "flex flex-1 flex-col items-start gap-space-sm",
1421
- children: [/* @__PURE__ */ K("div", {
1392
+ children: [/* @__PURE__ */ J("div", {
1422
1393
  className: "flex w-full items-center",
1423
- children: [/* @__PURE__ */ G("div", {
1394
+ children: [/* @__PURE__ */ q("div", {
1424
1395
  className: r("relative flex size-icon-lg shrink-0 items-center justify-center rounded-full", n ? "bg-success text-success-foreground" : "border border-border bg-card text-muted-foreground", i && "ring-2 ring-success/30 ring-offset-2 ring-offset-background"),
1425
- children: n ? /* @__PURE__ */ G(q, { className: "size-icon-sm" }) : /* @__PURE__ */ G(S, {
1396
+ children: n ? /* @__PURE__ */ q(_e, { className: "size-icon-sm" }) : /* @__PURE__ */ q(C, {
1426
1397
  value: t + 1,
1427
1398
  size: "xs",
1428
1399
  weight: "medium",
1429
1400
  align: "center"
1430
1401
  })
1431
- }), t < Mt.length - 1 && /* @__PURE__ */ G("div", { className: r("h-0.5 flex-1", t < m ? "bg-success" : "bg-border") })]
1432
- }), /* @__PURE__ */ G(a, {
1402
+ }), t < pt.length - 1 && /* @__PURE__ */ q("div", { className: r("h-0.5 flex-1", t < m ? "bg-success" : "bg-border") })]
1403
+ }), /* @__PURE__ */ q(s, {
1433
1404
  size: "xs",
1434
1405
  weight: i ? "semibold" : "medium",
1435
1406
  type: n ? "main" : "secondary",
@@ -1439,35 +1410,34 @@ function Nt({ stage: e, amount: t, reason: i, method: o, eta: c, requestedAt: l,
1439
1410
  }, e);
1440
1411
  })
1441
1412
  }),
1442
- (i || o || c) && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(O, { className: "my-space-xl" }), /* @__PURE__ */ K("div", {
1443
- className: "space-y-space-md",
1413
+ (i || o || c) && /* @__PURE__ */ J(d, {
1414
+ gap: "md",
1444
1415
  children: [
1445
- !!i && /* @__PURE__ */ G(H, {
1416
+ !!i && /* @__PURE__ */ q(G, {
1446
1417
  label: p.reason,
1447
1418
  value: i,
1448
1419
  className: "items-start",
1449
1420
  valueClassName: "text-sm font-medium text-right"
1450
1421
  }),
1451
- !!o && /* @__PURE__ */ G(H, {
1422
+ !!o && /* @__PURE__ */ q(G, {
1452
1423
  label: p.method,
1453
1424
  value: o,
1454
1425
  valueClassName: "text-sm font-medium"
1455
1426
  }),
1456
- !!c && /* @__PURE__ */ G(H, {
1427
+ !!c && /* @__PURE__ */ q(G, {
1457
1428
  label: p.eta,
1458
1429
  value: c,
1459
- mono: !0,
1460
- valueClassName: "text-sm font-medium"
1430
+ valueClassName: "text-sm font-medium tabular-nums"
1461
1431
  })
1462
1432
  ]
1463
- })] })
1433
+ })
1464
1434
  ]
1465
1435
  });
1466
1436
  }
1467
- Nt.displayName = "RefundStatusCard";
1437
+ mt.displayName = "RefundStatusCard";
1468
1438
  //#endregion
1469
1439
  //#region src/components/blocks/commerce/address-card/types.ts
1470
- var Pt = {
1440
+ var ht = {
1471
1441
  defaultBadge: "Default",
1472
1442
  edit: "Edit",
1473
1443
  remove: "Remove",
@@ -1478,71 +1448,74 @@ var Pt = {
1478
1448
  };
1479
1449
  //#endregion
1480
1450
  //#region src/components/blocks/commerce/address-card/address-card.tsx
1481
- function Ft({ kind: e = "shipping", name: t, line1: i, line2: o, city: s, region: c, postalCode: l, country: d, phone: f, default: p = !1, onEdit: m, onRemove: h, onMakeDefault: _, className: v, strings: y }) {
1482
- let b = n(Pt, y), x = {
1483
- shipping: b.shipping,
1484
- billing: b.billing,
1485
- pickup: b.pickup
1486
- }, S = [
1487
- s,
1451
+ function gt({ kind: e = "shipping", name: t, line1: i, line2: a, city: o, region: c, postalCode: l, country: u, phone: f, default: m = !1, onEdit: h, onRemove: g, onMakeDefault: v, surface: y = "flat", padding: b = y === "flat" ? "none" : "md", headerDivider: x = y !== "flat" && void 0, className: S, strings: C }) {
1452
+ let w = n(ht, C), T = {
1453
+ shipping: w.shipping,
1454
+ billing: w.billing,
1455
+ pickup: w.pickup
1456
+ }, E = [
1457
+ o,
1488
1458
  c,
1489
1459
  l
1490
- ].filter(Boolean).join(", "), C = [];
1491
- return m && C.push({
1460
+ ].filter(Boolean).join(", "), D = [];
1461
+ return h && D.push({
1492
1462
  id: "edit",
1493
- label: b.edit,
1494
- icon: /* @__PURE__ */ G(De, { className: "size-icon-md" }),
1495
- onClick: m
1496
- }), _ && !p && C.push({
1463
+ label: w.edit,
1464
+ icon: /* @__PURE__ */ q(Ce, { className: "size-icon-md" }),
1465
+ onClick: h
1466
+ }), v && !m && D.push({
1497
1467
  id: "make-default",
1498
- label: b.makeDefault,
1499
- icon: /* @__PURE__ */ G(We, { className: "size-icon-md" }),
1500
- onClick: _
1501
- }), h && C.push({
1468
+ label: w.makeDefault,
1469
+ icon: /* @__PURE__ */ q(De, { className: "size-icon-md" }),
1470
+ onClick: v
1471
+ }), g && D.push({
1502
1472
  id: "remove",
1503
- label: b.remove,
1504
- icon: /* @__PURE__ */ G(Ke, { className: "size-icon-md" }),
1505
- onClick: h
1506
- }), /* @__PURE__ */ G(j, {
1507
- icon: /* @__PURE__ */ G(Me, { className: "size-icon" }),
1508
- title: x[e],
1509
- titleSuffix: p ? /* @__PURE__ */ G(D, {
1510
- tone: "primary",
1511
- children: b.defaultBadge
1473
+ label: w.remove,
1474
+ icon: /* @__PURE__ */ q(Oe, { className: "size-icon-md" }),
1475
+ onClick: g
1476
+ }), /* @__PURE__ */ q(p, {
1477
+ surface: y,
1478
+ padding: b,
1479
+ headerDivider: x,
1480
+ title: T[e],
1481
+ titleSuffix: m ? /* @__PURE__ */ q(O, {
1482
+ tone: "neutral",
1483
+ children: w.defaultBadge
1512
1484
  }) : null,
1513
- actions: C.length > 0 ? C : void 0,
1514
- className: r("address-card--component w-full", v),
1515
- children: /* @__PURE__ */ K(u, {
1516
- gap: "2xs",
1517
- children: [
1518
- /* @__PURE__ */ G(a, {
1519
- weight: "semibold",
1520
- children: t
1521
- }),
1522
- /* @__PURE__ */ G(a, { children: i }),
1523
- !!o && /* @__PURE__ */ G(a, { children: o }),
1524
- !!S && /* @__PURE__ */ G(a, { children: S }),
1525
- /* @__PURE__ */ G(a, {
1526
- type: "secondary",
1527
- children: d
1528
- }),
1529
- !!f && /* @__PURE__ */ G(g, {
1530
- value: f,
1531
- display: /* @__PURE__ */ G(a, {
1532
- tag: "span",
1533
- size: "xs",
1534
- children: f
1485
+ actions: D.length > 0 ? D : void 0,
1486
+ className: r("address-card--component w-full", S),
1487
+ children: /* @__PURE__ */ J(d, {
1488
+ gap: "md",
1489
+ children: [/* @__PURE__ */ J(d, {
1490
+ gap: "2xs",
1491
+ children: [
1492
+ /* @__PURE__ */ q(s, {
1493
+ weight: "semibold",
1494
+ children: t
1535
1495
  }),
1536
- className: "mt-space-sm inline-flex"
1537
- })
1538
- ]
1496
+ /* @__PURE__ */ q(s, { children: i }),
1497
+ !!a && /* @__PURE__ */ q(s, { children: a }),
1498
+ !!E && /* @__PURE__ */ q(s, { children: E }),
1499
+ /* @__PURE__ */ q(s, {
1500
+ type: "secondary",
1501
+ children: u
1502
+ })
1503
+ ]
1504
+ }), !!f && /* @__PURE__ */ q(_, {
1505
+ value: f,
1506
+ display: /* @__PURE__ */ q(s, {
1507
+ tag: "span",
1508
+ children: f
1509
+ }),
1510
+ className: "self-start"
1511
+ })]
1539
1512
  })
1540
1513
  });
1541
1514
  }
1542
- Ft.displayName = "AddressCard";
1515
+ gt.displayName = "AddressCard";
1543
1516
  //#endregion
1544
1517
  //#region src/components/blocks/commerce/voucher-entry/types.ts
1545
- var It = {
1518
+ var _t = {
1546
1519
  title: "Redeem a gift card",
1547
1520
  inputLabel: "Gift card code",
1548
1521
  placeholder: "Enter gift card code",
@@ -1552,114 +1525,108 @@ var It = {
1552
1525
  balance: "Available balance",
1553
1526
  applied: "Applied",
1554
1527
  notFound: "That gift card code is not valid."
1555
- }, Lt = (e) => e.toUpperCase();
1556
- function Rt({ appliedCode: e, balance: t, error: a, loading: o, onCheck: s, onRemove: c, className: l, strings: d }) {
1557
- let f = n(It, d), p = me(), [m, g] = ge(""), _ = m.trim();
1558
- return e ? /* @__PURE__ */ G(j, {
1559
- icon: /* @__PURE__ */ G(J, { className: "size-icon" }),
1560
- title: f.title,
1561
- className: r("voucher-entry--component w-full", l),
1562
- children: /* @__PURE__ */ K(B, {
1528
+ }, vt = (e) => e.toUpperCase();
1529
+ function yt({ appliedCode: e, balance: t, error: i, loading: o, onCheck: s, onRemove: c, className: u, strings: f }) {
1530
+ let p = n(_t, f), m = de(), [h, _] = pe(""), v = h.trim();
1531
+ return e ? /* @__PURE__ */ q(I, {
1532
+ title: p.title,
1533
+ className: r("voucher-entry--component w-full", u),
1534
+ children: /* @__PURE__ */ J(U, {
1563
1535
  size: "sm",
1564
- variant: "outline",
1565
- className: "items-center gap-x-2.5 gap-y-space-sm border-success/30 bg-success/5",
1536
+ variant: "muted",
1537
+ className: "items-center gap-y-space-sm border border-success/30 bg-success/8",
1566
1538
  children: [
1567
- /* @__PURE__ */ G(F, { children: /* @__PURE__ */ G(C, {
1568
- icon: q,
1539
+ /* @__PURE__ */ q(R, { children: /* @__PURE__ */ q(w, {
1540
+ icon: _e,
1569
1541
  tone: "success",
1570
1542
  size: "md",
1571
1543
  className: "ring-1 ring-success/20"
1572
1544
  }) }),
1573
- /* @__PURE__ */ K(z, {
1574
- className: "min-w-0",
1575
- children: [/* @__PURE__ */ K(u, {
1545
+ /* @__PURE__ */ J(H, {
1546
+ className: "min-w-0 basis-48",
1547
+ children: [/* @__PURE__ */ J(d, {
1576
1548
  direction: "horizontal",
1577
- wrap: !0,
1578
1549
  align: "center",
1579
1550
  gap: "sm",
1580
- children: [/* @__PURE__ */ G(V, {
1551
+ className: "min-w-0",
1552
+ children: [/* @__PURE__ */ q(W, {
1581
1553
  className: "max-w-full",
1582
- children: /* @__PURE__ */ G(v, {
1554
+ children: /* @__PURE__ */ q(y, {
1583
1555
  className: "tracking-wider",
1584
1556
  children: e
1585
1557
  })
1586
- }), /* @__PURE__ */ G(D, {
1587
- tone: "success",
1588
- size: "sm",
1589
- children: f.applied
1558
+ }), /* @__PURE__ */ q(a, {
1559
+ className: "shrink-0",
1560
+ children: p.applied
1590
1561
  })]
1591
- }), /* @__PURE__ */ G(I, {
1562
+ }), !!t && /* @__PURE__ */ q(z, {
1592
1563
  clamp: 1,
1593
- children: f.balance
1564
+ children: p.balance
1594
1565
  })]
1595
1566
  }),
1596
- /* @__PURE__ */ K(ie, {
1597
- className: "border-t border-success/15 pt-1",
1598
- children: [/* @__PURE__ */ G("span", {}), /* @__PURE__ */ K(L, {
1599
- className: "shrink-0 gap-space-sm",
1600
- children: [!!t && /* @__PURE__ */ G(h, {
1601
- weight: "semibold",
1602
- className: "shrink-0 tabular-nums text-success",
1603
- children: t
1604
- }), !!c && /* @__PURE__ */ G(i, {
1605
- type: "button",
1606
- tone: "destructive",
1607
- buttonStyle: "ghost",
1608
- size: "sm",
1609
- iconOnly: !0,
1610
- onClick: c,
1611
- "aria-label": f.remove,
1612
- className: "size-action-xs shrink-0 text-muted-foreground hover:text-destructive",
1613
- children: /* @__PURE__ */ G(Ye, { className: "size-icon-sm" })
1614
- })]
1567
+ /* @__PURE__ */ J(B, {
1568
+ className: "ml-auto shrink-0 gap-space-sm",
1569
+ children: [!!t && /* @__PURE__ */ q(g, {
1570
+ weight: "semibold",
1571
+ className: "shrink-0 tabular-nums",
1572
+ children: t
1573
+ }), !!c && /* @__PURE__ */ q(l, {
1574
+ type: "button",
1575
+ tone: "destructive",
1576
+ buttonStyle: "ghost",
1577
+ size: "sm",
1578
+ iconOnly: !0,
1579
+ onClick: c,
1580
+ "aria-label": p.remove,
1581
+ className: "size-action-xs shrink-0 text-muted-foreground hover:text-destructive",
1582
+ children: /* @__PURE__ */ q(Ae, { className: "size-icon-sm" })
1615
1583
  })]
1616
1584
  })
1617
1585
  ]
1618
1586
  })
1619
- }) : /* @__PURE__ */ G(j, {
1620
- icon: /* @__PURE__ */ G(J, { className: "size-icon" }),
1621
- title: f.title,
1622
- className: r("voucher-entry--component w-full", l),
1623
- children: /* @__PURE__ */ G("form", {
1587
+ }) : /* @__PURE__ */ q(I, {
1588
+ title: p.title,
1589
+ className: r("voucher-entry--component w-full", u),
1590
+ children: /* @__PURE__ */ q("form", {
1624
1591
  onSubmit: (e) => {
1625
- e.preventDefault(), _ && s?.(_);
1592
+ e.preventDefault(), v && s?.(v);
1626
1593
  },
1627
- children: /* @__PURE__ */ G(M, {
1628
- label: f.inputLabel,
1629
- htmlFor: p,
1630
- error: a,
1631
- hint: a ? void 0 : f.helperText,
1632
- children: /* @__PURE__ */ K("div", {
1594
+ children: /* @__PURE__ */ q(j, {
1595
+ label: p.inputLabel,
1596
+ htmlFor: m,
1597
+ error: i,
1598
+ hint: i ? void 0 : p.helperText,
1599
+ children: /* @__PURE__ */ J("div", {
1633
1600
  className: "flex flex-wrap gap-space-md",
1634
- children: [/* @__PURE__ */ G("div", {
1601
+ children: [/* @__PURE__ */ q("div", {
1635
1602
  className: "min-w-48 flex-1",
1636
- children: /* @__PURE__ */ G(k, {
1637
- id: p,
1638
- value: m,
1639
- onChange: (e) => g(Lt(e.target.value)),
1640
- placeholder: f.placeholder,
1641
- startIcon: J,
1603
+ children: /* @__PURE__ */ q(A, {
1604
+ id: m,
1605
+ value: h,
1606
+ onChange: (e) => _(vt(e.target.value)),
1607
+ placeholder: p.placeholder,
1642
1608
  autoCapitalize: "characters",
1643
1609
  spellCheck: !1,
1644
1610
  className: "font-mono",
1645
- invalid: !!a
1611
+ invalid: !!i
1646
1612
  })
1647
- }), /* @__PURE__ */ G(i, {
1613
+ }), /* @__PURE__ */ q(l, {
1614
+ tone: "primary",
1648
1615
  type: "submit",
1649
1616
  loading: o,
1650
- disabled: !_,
1617
+ disabled: !v,
1651
1618
  className: "shrink-0",
1652
- children: f.check
1619
+ children: p.check
1653
1620
  })]
1654
1621
  })
1655
1622
  })
1656
1623
  })
1657
1624
  });
1658
1625
  }
1659
- Rt.displayName = "VoucherEntry";
1626
+ yt.displayName = "VoucherEntry";
1660
1627
  //#endregion
1661
1628
  //#region src/components/blocks/commerce/cart-summary/types.ts
1662
- var zt = {
1629
+ var bt = {
1663
1630
  title: "Cart",
1664
1631
  subtotal: "Subtotal",
1665
1632
  tax: "Tax",
@@ -1667,21 +1634,21 @@ var zt = {
1667
1634
  discount: "Discount",
1668
1635
  total: "Total",
1669
1636
  checkout: "Checkout"
1670
- }, Bt = (e) => [
1637
+ }, xt = (e) => [
1671
1638
  e.productTitle,
1672
1639
  e.title,
1673
1640
  e.name
1674
- ].find((e) => !!e?.trim()) ?? e.id, Vt = (e) => [
1641
+ ].find((e) => !!e?.trim()) ?? e.id, St = (e) => [
1675
1642
  e.imageUrl,
1676
1643
  e.imageSrc,
1677
1644
  e.src,
1678
1645
  e.url
1679
1646
  ].find((e) => !!e?.trim());
1680
- function Ht({ title: e }) {
1681
- return /* @__PURE__ */ G("div", {
1647
+ function Ct({ title: e }) {
1648
+ return /* @__PURE__ */ q("div", {
1682
1649
  "aria-hidden": "true",
1683
1650
  className: "flex size-full items-center justify-center rounded-[inherit] bg-muted ring-1 ring-border/60",
1684
- children: /* @__PURE__ */ G(y, {
1651
+ children: /* @__PURE__ */ q(b, {
1685
1652
  value: e,
1686
1653
  strategy: "first-words",
1687
1654
  fallback: e.trim().slice(0, 2).toUpperCase(),
@@ -1691,50 +1658,50 @@ function Ht({ title: e }) {
1691
1658
  })
1692
1659
  });
1693
1660
  }
1694
- function Ut({ items: e, subtotal: t, tax: o, shipping: s, discount: c, total: l, onCheckout: d, className: f, strings: p }) {
1695
- let m = n(zt, p), g = !!(t || o || s || c);
1696
- return /* @__PURE__ */ K(j, {
1697
- icon: /* @__PURE__ */ G(He, { className: "size-icon" }),
1661
+ function wt({ items: e, subtotal: t, tax: i, shipping: a, discount: o, total: c, onCheckout: u, className: f, strings: p }) {
1662
+ let m = n(bt, p), h = !!(t || i || a || o);
1663
+ return /* @__PURE__ */ J(I, {
1698
1664
  title: m.title,
1665
+ contentGap: "2xl",
1699
1666
  className: r("cart-summary--component w-full", f),
1700
1667
  children: [
1701
- /* @__PURE__ */ G(R, { children: e.map((e) => {
1702
- let t = Bt(e), n = Vt(e);
1703
- return /* @__PURE__ */ K(B, {
1668
+ /* @__PURE__ */ q(V, { children: e.map((e) => {
1669
+ let t = xt(e), n = St(e);
1670
+ return /* @__PURE__ */ J(U, {
1704
1671
  className: "cart-summary--item",
1705
1672
  children: [
1706
- /* @__PURE__ */ G(F, {
1673
+ /* @__PURE__ */ q(R, {
1707
1674
  variant: "image",
1708
1675
  className: "cart-summary--item-media",
1709
- children: n ? /* @__PURE__ */ G("img", {
1676
+ children: n ? /* @__PURE__ */ q("img", {
1710
1677
  src: n,
1711
1678
  alt: e.imageAlt ?? t
1712
- }) : /* @__PURE__ */ G(Ht, { title: t })
1679
+ }) : /* @__PURE__ */ q(Ct, { title: t })
1713
1680
  }),
1714
- /* @__PURE__ */ K(z, {
1681
+ /* @__PURE__ */ J(H, {
1715
1682
  className: "cart-summary--item-content",
1716
- children: [/* @__PURE__ */ G(V, { children: t }), !!e.variantTitle && /* @__PURE__ */ G(I, {
1683
+ children: [/* @__PURE__ */ q(W, { children: t }), !!e.variantTitle && /* @__PURE__ */ q(z, {
1717
1684
  clamp: 1,
1718
1685
  children: e.variantTitle
1719
1686
  })]
1720
1687
  }),
1721
- /* @__PURE__ */ G(L, {
1688
+ /* @__PURE__ */ q(B, {
1722
1689
  className: "cart-summary--item-actions",
1723
- children: /* @__PURE__ */ K(u, {
1690
+ children: /* @__PURE__ */ J(d, {
1724
1691
  gap: "2xs",
1725
1692
  align: "end",
1726
1693
  className: "shrink-0",
1727
- children: [/* @__PURE__ */ K(a, {
1694
+ children: [/* @__PURE__ */ J(s, {
1728
1695
  tag: "span",
1729
1696
  size: "xs",
1730
1697
  type: "secondary",
1731
- children: ["x", /* @__PURE__ */ G(S, {
1698
+ children: ["x", /* @__PURE__ */ q(C, {
1732
1699
  value: e.qty,
1733
1700
  size: "xs",
1734
1701
  type: "secondary",
1735
1702
  align: "left"
1736
1703
  })]
1737
- }), /* @__PURE__ */ G(h, {
1704
+ }), /* @__PURE__ */ q(g, {
1738
1705
  weight: "semibold",
1739
1706
  className: "tabular-nums",
1740
1707
  children: e.price
@@ -1744,63 +1711,62 @@ function Ut({ items: e, subtotal: t, tax: o, shipping: s, discount: c, total: l,
1744
1711
  ]
1745
1712
  }, e.id);
1746
1713
  }) }),
1747
- !!g && /* @__PURE__ */ G("div", {
1748
- className: "mt-space-lg rounded-radius bg-muted/30 p-surface",
1749
- children: /* @__PURE__ */ K(u, {
1750
- gap: "sm",
1751
- children: [
1752
- !!t && /* @__PURE__ */ G(H, {
1753
- label: m.subtotal,
1754
- value: t,
1755
- mono: !0,
1756
- valueClassName: "font-medium"
1757
- }),
1758
- !!o && /* @__PURE__ */ G(H, {
1759
- label: m.tax,
1760
- value: o,
1761
- mono: !0,
1762
- valueClassName: "font-medium"
1763
- }),
1764
- !!s && /* @__PURE__ */ G(H, {
1765
- label: m.shipping,
1766
- value: s,
1767
- mono: !0,
1768
- valueClassName: "font-medium"
1714
+ /* @__PURE__ */ J(d, {
1715
+ gap: "lg",
1716
+ className: "cart-summary--totals",
1717
+ children: [
1718
+ !!h && /* @__PURE__ */ J(d, {
1719
+ gap: "sm",
1720
+ className: "cart-summary--breakdown",
1721
+ children: [
1722
+ !!t && /* @__PURE__ */ q(G, {
1723
+ label: m.subtotal,
1724
+ value: t,
1725
+ valueClassName: "font-medium tabular-nums"
1726
+ }),
1727
+ !!i && /* @__PURE__ */ q(G, {
1728
+ label: m.tax,
1729
+ value: i,
1730
+ valueClassName: "font-medium tabular-nums"
1731
+ }),
1732
+ !!a && /* @__PURE__ */ q(G, {
1733
+ label: m.shipping,
1734
+ value: a,
1735
+ valueClassName: "font-medium tabular-nums"
1736
+ }),
1737
+ !!o && /* @__PURE__ */ q(G, {
1738
+ label: m.discount,
1739
+ value: Le(o),
1740
+ valueClassName: "font-semibold tabular-nums text-success"
1741
+ })
1742
+ ]
1743
+ }),
1744
+ /* @__PURE__ */ q(k, {}),
1745
+ /* @__PURE__ */ q(G, {
1746
+ label: /* @__PURE__ */ q(s, {
1747
+ tag: "span",
1748
+ weight: "semibold",
1749
+ lineHeight: "tight",
1750
+ children: m.total
1769
1751
  }),
1770
- !!c && /* @__PURE__ */ G(H, {
1771
- label: m.discount,
1772
- value: nt(c),
1773
- mono: !0,
1774
- valueClassName: "font-semibold text-success"
1775
- })
1776
- ]
1777
- })
1778
- }),
1779
- /* @__PURE__ */ G(O, { className: "my-space-lg" }),
1780
- /* @__PURE__ */ G(H, {
1781
- label: /* @__PURE__ */ G(a, {
1782
- tag: "span",
1783
- weight: "semibold",
1784
- lineHeight: "tight",
1785
- children: m.total
1786
- }),
1787
- value: l,
1788
- mono: !0,
1789
- valueClassName: "text-base font-bold"
1752
+ value: c,
1753
+ valueClassName: "text-base font-bold tabular-nums"
1754
+ })
1755
+ ]
1790
1756
  }),
1791
- !!d && /* @__PURE__ */ G(i, {
1792
- onClick: d,
1757
+ !!u && /* @__PURE__ */ q(l, {
1758
+ tone: "primary",
1759
+ onClick: u,
1793
1760
  fullWidth: !0,
1794
- className: "mt-space-xl",
1795
1761
  children: m.checkout
1796
1762
  })
1797
1763
  ]
1798
1764
  });
1799
1765
  }
1800
- Ut.displayName = "CartSummaryCard";
1766
+ wt.displayName = "CartSummaryCard";
1801
1767
  //#endregion
1802
1768
  //#region src/components/blocks/commerce/coupon-input/types.ts
1803
- var Wt = {
1769
+ var Tt = {
1804
1770
  title: "Have a code?",
1805
1771
  fieldLabel: "Coupon code",
1806
1772
  placeholder: "Enter coupon code",
@@ -1808,183 +1774,160 @@ var Wt = {
1808
1774
  remove: "Remove",
1809
1775
  applied: "Applied",
1810
1776
  invalid: "That code is not valid"
1811
- }, Gt = (e) => e.toUpperCase();
1812
- function Kt({ appliedCode: e, appliedDiscount: t, error: o, onApply: c, onRemove: l, loading: d, className: f, strings: p }) {
1813
- let m = n(Wt, p), [h, g] = ge(""), _ = h.trim();
1814
- return e ? /* @__PURE__ */ G(j, {
1815
- icon: /* @__PURE__ */ G(Ge, { className: "size-icon" }),
1777
+ }, Et = (e) => e.toUpperCase();
1778
+ function Dt({ appliedCode: e, appliedDiscount: t, error: i, onApply: o, onRemove: c, loading: u, className: f, strings: p }) {
1779
+ let m = n(Tt, p), [h, g] = pe(""), _ = h.trim();
1780
+ return e ? /* @__PURE__ */ q(I, {
1816
1781
  title: m.title,
1817
1782
  className: r("coupon-input--component w-full", f),
1818
- children: /* @__PURE__ */ K(B, {
1783
+ children: /* @__PURE__ */ J(U, {
1819
1784
  size: "sm",
1820
1785
  variant: "muted",
1821
- className: "items-center gap-x-2.5 gap-y-space-sm border border-success/30 bg-success/8",
1786
+ className: "items-center gap-y-space-sm border border-success/30 bg-success/8",
1822
1787
  children: [
1823
- /* @__PURE__ */ G(F, { children: /* @__PURE__ */ G(C, {
1824
- icon: q,
1788
+ /* @__PURE__ */ q(R, { children: /* @__PURE__ */ q(w, {
1789
+ icon: _e,
1825
1790
  tone: "success",
1826
1791
  size: "md",
1827
1792
  className: "ring-1 ring-success/20"
1828
1793
  }) }),
1829
- /* @__PURE__ */ G(z, {
1794
+ /* @__PURE__ */ q(H, {
1830
1795
  className: "min-w-0",
1831
- children: /* @__PURE__ */ K(u, {
1796
+ children: /* @__PURE__ */ J(d, {
1832
1797
  direction: "horizontal",
1833
1798
  align: "center",
1834
1799
  gap: "sm",
1835
1800
  wrap: !1,
1836
1801
  className: "min-w-0",
1837
- children: [/* @__PURE__ */ G(V, {
1802
+ children: [/* @__PURE__ */ q(W, {
1838
1803
  className: "min-w-0 truncate font-mono tracking-wider",
1839
1804
  children: e
1840
- }), /* @__PURE__ */ G(s, {
1805
+ }), /* @__PURE__ */ q(a, {
1841
1806
  className: "shrink-0",
1842
1807
  children: m.applied
1843
1808
  })]
1844
1809
  })
1845
1810
  }),
1846
- /* @__PURE__ */ K(L, {
1811
+ /* @__PURE__ */ J(B, {
1847
1812
  className: "ml-auto shrink-0 gap-space-sm",
1848
- children: [!!t && /* @__PURE__ */ G(a, {
1813
+ children: [!!t && /* @__PURE__ */ q(s, {
1849
1814
  tag: "span",
1850
1815
  size: "xs",
1851
1816
  weight: "semibold",
1852
1817
  type: "success",
1853
1818
  className: "tabular-nums shrink-0",
1854
- children: nt(t)
1855
- }), !!l && /* @__PURE__ */ G(i, {
1819
+ children: Le(t)
1820
+ }), !!c && /* @__PURE__ */ q(l, {
1856
1821
  type: "button",
1857
1822
  tone: "destructive",
1858
1823
  buttonStyle: "ghost",
1859
1824
  size: "sm",
1860
1825
  iconOnly: !0,
1861
- onClick: l,
1826
+ onClick: c,
1862
1827
  "aria-label": m.remove,
1863
1828
  className: "size-action-xs shrink-0 text-muted-foreground hover:text-destructive",
1864
- children: /* @__PURE__ */ G(Ye, { className: "size-icon-sm" })
1829
+ children: /* @__PURE__ */ q(Ae, { className: "size-icon-sm" })
1865
1830
  })]
1866
1831
  })
1867
1832
  ]
1868
1833
  })
1869
- }) : /* @__PURE__ */ G(j, {
1870
- icon: /* @__PURE__ */ G(Ge, { className: "size-icon" }),
1834
+ }) : /* @__PURE__ */ q(I, {
1871
1835
  title: m.title,
1872
1836
  className: r("coupon-input--component w-full", f),
1873
- children: /* @__PURE__ */ K(u, {
1837
+ children: /* @__PURE__ */ J(d, {
1874
1838
  gap: "md",
1875
- children: [/* @__PURE__ */ K("div", {
1839
+ children: [/* @__PURE__ */ J("div", {
1876
1840
  className: "flex flex-wrap gap-space-md",
1877
- children: [/* @__PURE__ */ G("div", {
1841
+ children: [/* @__PURE__ */ q("div", {
1878
1842
  className: "min-w-44 flex-1",
1879
- children: /* @__PURE__ */ G(k, {
1843
+ children: /* @__PURE__ */ q(A, {
1880
1844
  value: h,
1881
- onChange: (e) => g(Gt(e.target.value)),
1845
+ onChange: (e) => g(Et(e.target.value)),
1882
1846
  "aria-label": m.fieldLabel,
1883
1847
  placeholder: m.placeholder,
1884
- startIcon: Ue,
1885
1848
  autoCapitalize: "characters",
1886
1849
  spellCheck: !1,
1887
1850
  className: "font-mono",
1888
- invalid: !!o
1851
+ invalid: !!i
1889
1852
  })
1890
- }), /* @__PURE__ */ G(i, {
1853
+ }), /* @__PURE__ */ q(l, {
1854
+ tone: "primary",
1891
1855
  size: "md",
1892
- onClick: () => c?.(_),
1893
- loading: d,
1856
+ onClick: () => o?.(_),
1857
+ loading: u,
1894
1858
  disabled: !_,
1895
1859
  className: "shrink-0",
1896
1860
  children: m.apply
1897
1861
  })]
1898
- }), !!o && /* @__PURE__ */ G(a, {
1862
+ }), !!i && /* @__PURE__ */ q(s, {
1899
1863
  size: "xs",
1900
1864
  type: "error",
1901
- children: o || m.invalid
1865
+ children: i || m.invalid
1902
1866
  })]
1903
1867
  })
1904
1868
  });
1905
1869
  }
1906
- Kt.displayName = "CouponInputCard";
1870
+ Dt.displayName = "CouponInputCard";
1907
1871
  //#endregion
1908
1872
  //#region src/components/blocks/commerce/order-status/types.ts
1909
- var qt = {
1873
+ var Ot = {
1910
1874
  title: "Order status",
1911
1875
  statusLabel: "Current status",
1912
1876
  eta: "ETA",
1913
1877
  latestEvent: "Latest event",
1914
1878
  currentStep: "Current step"
1915
- }, Jt = {
1879
+ }, kt = {
1916
1880
  pending: "warning",
1917
1881
  paid: "info",
1918
1882
  fulfilled: "info",
1919
- shipped: "primary",
1883
+ shipped: "info",
1920
1884
  delivered: "success",
1921
1885
  cancelled: "destructive"
1922
1886
  };
1923
- function Yt({ orderNumber: e, status: t, statusTone: i, events: o, currentEta: c, className: u, strings: d }) {
1924
- let f = n(qt, d), p = i ?? Jt[t], m = o.reduce((e, t, n) => t.complete ? n : e, -1), g = o[m] ?? o[0], v = o.find((e) => !e.complete);
1925
- return /* @__PURE__ */ K(j, {
1926
- icon: /* @__PURE__ */ G(Pe, { className: "size-icon" }),
1927
- title: f.title,
1928
- titleSuffix: /* @__PURE__ */ G(D, {
1929
- tone: p,
1887
+ function At({ orderNumber: e, status: t, statusTone: i, events: a, currentEta: o, className: c, strings: l }) {
1888
+ let u = n(Ot, l), d = i ?? kt[t], f = a.reduce((e, t, n) => t.complete ? n : e, -1), p = a.find((e) => !e.complete);
1889
+ return /* @__PURE__ */ J(I, {
1890
+ title: u.title,
1891
+ titleSuffix: /* @__PURE__ */ q(O, {
1892
+ tone: d,
1930
1893
  className: "capitalize",
1931
1894
  children: t
1932
1895
  }),
1933
1896
  description: `#${e}`,
1934
- className: r("order-status--component w-full", u),
1935
- children: [/* @__PURE__ */ G("div", {
1936
- className: "rounded-radius border border-border bg-muted/20 p-surface",
1937
- children: /* @__PURE__ */ K(l, {
1938
- columns: {
1939
- base: 1,
1940
- sm: 3
1941
- },
1942
- gap: "lg",
1943
- children: [
1944
- /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(s, { children: f.statusLabel }), /* @__PURE__ */ G(a, {
1945
- weight: "semibold",
1946
- className: "mt-0.5 capitalize",
1947
- children: t
1948
- })] }),
1949
- !!g && /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(s, { children: g.complete ? f.latestEvent : f.currentStep }), /* @__PURE__ */ G(a, {
1950
- weight: "semibold",
1951
- className: "mt-0.5",
1952
- children: g.label
1953
- })] }),
1954
- !!c && /* @__PURE__ */ K("div", { children: [/* @__PURE__ */ G(s, { children: f.eta }), /* @__PURE__ */ G(h, {
1955
- weight: "semibold",
1956
- className: "mt-0.5 block tabular-nums",
1957
- children: c
1958
- })] })
1959
- ]
1960
- })
1961
- }), o.length > 0 && /* @__PURE__ */ G("ol", {
1962
- className: "mt-space-xl",
1963
- children: o.map((e, t) => {
1964
- let n = t === o.length - 1, i = v ? e === v : t === m;
1965
- return /* @__PURE__ */ K("li", {
1897
+ contentGap: "xl",
1898
+ className: r("order-status--component w-full", c),
1899
+ children: [!!o && /* @__PURE__ */ q(G, {
1900
+ label: u.eta,
1901
+ value: o,
1902
+ className: "order-status--eta",
1903
+ valueClassName: "font-medium tabular-nums"
1904
+ }), a.length > 0 && /* @__PURE__ */ q("ol", {
1905
+ className: "m-0 p-0 list-none",
1906
+ children: a.map((e, t) => {
1907
+ let n = t === a.length - 1, i = p ? e === p : t === f;
1908
+ return /* @__PURE__ */ J("li", {
1966
1909
  className: "relative flex gap-space-lg",
1967
- children: [/* @__PURE__ */ K("div", {
1910
+ children: [/* @__PURE__ */ J("div", {
1968
1911
  className: "flex flex-col items-center",
1969
- children: [/* @__PURE__ */ G("span", {
1912
+ children: [/* @__PURE__ */ q("span", {
1970
1913
  className: r("flex size-6 shrink-0 items-center justify-center rounded-full border", e.complete ? "border-success bg-success text-success-foreground" : "border-border bg-card text-muted-foreground", i && !e.complete && "border-2 border-primary-accent bg-primary/10 text-primary-accent ring-4 ring-primary/30"),
1971
- children: e.complete ? /* @__PURE__ */ G(q, {
1914
+ children: e.complete ? /* @__PURE__ */ q(_e, {
1972
1915
  className: "size-icon-md",
1973
1916
  strokeWidth: 2.5
1974
- }) : i ? /* @__PURE__ */ G(be, { className: "size-icon-md" }) : /* @__PURE__ */ G(Ce, { className: "size-icon-sm" })
1975
- }), !n && /* @__PURE__ */ G("span", {
1917
+ }) : i ? /* @__PURE__ */ q(ge, { className: "size-icon-md" }) : /* @__PURE__ */ q(be, { className: "size-icon-sm" })
1918
+ }), !n && /* @__PURE__ */ q("span", {
1976
1919
  "aria-hidden": "true",
1977
- className: r("min-h-6 w-px flex-1", t < m ? "bg-success" : "bg-border")
1920
+ className: r("min-h-6 w-px flex-1", t < f ? "bg-success" : "bg-border")
1978
1921
  })]
1979
- }), /* @__PURE__ */ K("div", {
1922
+ }), /* @__PURE__ */ J("div", {
1980
1923
  className: r("min-w-0 flex-1 pb-space-xl", n && "pb-0"),
1981
- children: [/* @__PURE__ */ G(a, {
1924
+ children: [/* @__PURE__ */ q(s, {
1982
1925
  weight: e.complete || i ? "semibold" : "medium",
1983
1926
  className: r(!e.complete && !i && "text-muted-foreground"),
1984
1927
  children: e.label
1985
- }), !!e.timestamp && /* @__PURE__ */ G(_, {
1928
+ }), !!e.timestamp && /* @__PURE__ */ q(v, {
1986
1929
  size: "xs",
1987
- className: "mt-0.5 tabular-nums",
1930
+ className: "tabular-nums",
1988
1931
  children: e.timestamp
1989
1932
  })]
1990
1933
  })]
@@ -1993,16 +1936,16 @@ function Yt({ orderNumber: e, status: t, statusTone: i, events: o, currentEta: c
1993
1936
  })]
1994
1937
  });
1995
1938
  }
1996
- Yt.displayName = "OrderStatusCard";
1939
+ At.displayName = "OrderStatusCard";
1997
1940
  //#endregion
1998
1941
  //#region src/components/blocks/commerce/payment-method/types.ts
1999
- var Xt = {
1942
+ var jt = {
2000
1943
  title: "Payment method",
2001
1944
  default: "Default",
2002
1945
  cardHolder: "Card holder",
2003
1946
  expires: "Expires",
2004
1947
  change: "Change"
2005
- }, Zt = {
1948
+ }, Mt = {
2006
1949
  visa: "VISA",
2007
1950
  mastercard: "MasterCard",
2008
1951
  amex: "AMEX",
@@ -2010,7 +1953,7 @@ var Xt = {
2010
1953
  applepay: "Apple Pay",
2011
1954
  googlepay: "Google Pay",
2012
1955
  unknown: "Card"
2013
- }, X = "bg-inverse-background from-inverse-background via-inverse-surface-strong to-inverse-background", Qt = {
1956
+ }, X = "bg-inverse-background from-inverse-background via-inverse-surface-strong to-inverse-background", Nt = {
2014
1957
  visa: X,
2015
1958
  mastercard: X,
2016
1959
  amex: X,
@@ -2019,74 +1962,76 @@ var Xt = {
2019
1962
  googlepay: X,
2020
1963
  unknown: X
2021
1964
  };
2022
- function $t({ brand: e, last4: t, expiry: o, holderName: c, default: l = !1, onChange: d, className: f, strings: p }) {
2023
- let m = n(Xt, p), g = Zt[e], _ = Qt[e];
2024
- return /* @__PURE__ */ G(j, {
2025
- icon: /* @__PURE__ */ G(Ee, { className: "size-icon" }),
2026
- title: m.title,
2027
- titleSuffix: l ? /* @__PURE__ */ G(D, {
2028
- tone: "primary",
2029
- children: m.default
1965
+ function Pt({ brand: e, last4: t, expiry: i, holderName: o, default: c = !1, onChange: u, surface: f = "flat", padding: m = f === "flat" ? "none" : "md", headerDivider: h = f !== "flat" && void 0, className: _, strings: v }) {
1966
+ let y = n(jt, v), b = Mt[e], x = Nt[e];
1967
+ return /* @__PURE__ */ q(p, {
1968
+ surface: f,
1969
+ padding: m,
1970
+ headerDivider: h,
1971
+ title: y.title,
1972
+ titleSuffix: c ? /* @__PURE__ */ q(O, {
1973
+ tone: "neutral",
1974
+ children: y.default
2030
1975
  }) : null,
2031
- headerAction: d ? /* @__PURE__ */ G(i, {
1976
+ headerAction: u ? /* @__PURE__ */ q(l, {
2032
1977
  buttonStyle: "ghost",
2033
1978
  tone: "secondary",
2034
- onClick: d,
2035
- children: m.change
1979
+ onClick: u,
1980
+ children: y.change
2036
1981
  }) : void 0,
2037
- className: r("payment-method--component w-full", f),
2038
- children: /* @__PURE__ */ K("div", {
2039
- className: r("relative mx-auto flex aspect-[85.6/53.98] w-full max-w-[22rem] flex-col justify-between overflow-hidden rounded-radius bg-gradient-to-br p-surface text-inverse-foreground shadow-sm ring-1 ring-inverse-border", _),
1982
+ className: r("payment-method--component w-full", _),
1983
+ children: /* @__PURE__ */ J("div", {
1984
+ className: r("relative flex aspect-[85.6/53.98] w-full max-w-[22rem] flex-col justify-between overflow-hidden rounded-radius bg-gradient-to-br p-surface text-inverse-foreground shadow-sm ring-1 ring-inverse-border", x),
2040
1985
  children: [
2041
- /* @__PURE__ */ K("div", {
1986
+ /* @__PURE__ */ J("div", {
2042
1987
  className: "relative flex items-start justify-between",
2043
- children: [/* @__PURE__ */ G("div", {
1988
+ children: [/* @__PURE__ */ q("div", {
2044
1989
  className: "flex size-7 items-center justify-center rounded-radius-md bg-gradient-to-br from-muted to-muted-foreground/60 shadow-sm",
2045
- children: /* @__PURE__ */ G("div", { className: "size-icon rounded-radius-sm border border-warning-foreground/25 bg-warning-foreground/15" })
2046
- }), /* @__PURE__ */ G(a, {
1990
+ children: /* @__PURE__ */ q("div", { className: "size-icon rounded-radius-sm border border-warning-foreground/25 bg-warning-foreground/15" })
1991
+ }), /* @__PURE__ */ q(s, {
2047
1992
  tag: "span",
2048
1993
  weight: "bold",
2049
- className: "rounded bg-inverse-surface px-2 py-0.5 tracking-[0.15em] text-inverse-foreground backdrop-blur-sm",
2050
- children: g
1994
+ className: "rounded bg-inverse-surface px-space-md py-space-2xs tracking-[0.15em] text-inverse-foreground",
1995
+ children: b
2051
1996
  })]
2052
1997
  }),
2053
- /* @__PURE__ */ G("div", {
1998
+ /* @__PURE__ */ q("div", {
2054
1999
  className: "relative",
2055
- children: /* @__PURE__ */ K(a, {
2000
+ children: /* @__PURE__ */ J(s, {
2056
2001
  tag: "span",
2057
- size: "base",
2002
+ size: "sm",
2058
2003
  weight: "semibold",
2059
- className: "block font-mono tracking-[0.25em] text-inverse-foreground",
2004
+ className: "payment-method--number block whitespace-nowrap font-mono tracking-widest text-inverse-foreground",
2060
2005
  children: ["•••• •••• •••• ", t]
2061
2006
  })
2062
2007
  }),
2063
- /* @__PURE__ */ K(u, {
2008
+ /* @__PURE__ */ J(d, {
2064
2009
  direction: "horizontal",
2065
2010
  align: "end",
2066
2011
  justify: "between",
2067
2012
  gap: "lg",
2068
2013
  className: "relative",
2069
- children: [/* @__PURE__ */ G("div", {
2014
+ children: [/* @__PURE__ */ q("div", {
2070
2015
  className: "min-w-0",
2071
- children: !!c && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(s, {
2016
+ children: !!o && /* @__PURE__ */ J(me, { children: [/* @__PURE__ */ q(a, {
2072
2017
  tone: "inverse",
2073
2018
  className: "block",
2074
- children: m.cardHolder
2075
- }), /* @__PURE__ */ G(a, {
2019
+ children: y.cardHolder
2020
+ }), /* @__PURE__ */ q(s, {
2076
2021
  weight: "semibold",
2077
2022
  className: "truncate text-inverse-foreground",
2078
- children: c
2023
+ children: o
2079
2024
  })] })
2080
- }), !!o && /* @__PURE__ */ K("div", {
2025
+ }), !!i && /* @__PURE__ */ J("div", {
2081
2026
  className: "text-right shrink-0",
2082
- children: [/* @__PURE__ */ G(s, {
2027
+ children: [/* @__PURE__ */ q(a, {
2083
2028
  tone: "inverse",
2084
2029
  className: "block",
2085
- children: m.expires
2086
- }), /* @__PURE__ */ G(h, {
2030
+ children: y.expires
2031
+ }), /* @__PURE__ */ q(g, {
2087
2032
  weight: "semibold",
2088
2033
  className: "tabular-nums text-inverse-foreground",
2089
- children: o
2034
+ children: i
2090
2035
  })]
2091
2036
  })]
2092
2037
  })
@@ -2094,42 +2039,42 @@ function $t({ brand: e, last4: t, expiry: o, holderName: c, default: l = !1, onC
2094
2039
  })
2095
2040
  });
2096
2041
  }
2097
- $t.displayName = "PaymentMethod";
2042
+ Pt.displayName = "PaymentMethod";
2098
2043
  //#endregion
2099
2044
  //#region src/components/blocks/commerce/seo-listing/seo-listing-score.ts
2100
- var en = {
2045
+ var Ft = {
2101
2046
  titleMin: 35,
2102
2047
  titleMax: 60,
2103
2048
  descriptionMin: 120,
2104
2049
  descriptionMax: 160,
2105
2050
  permalinkMax: 75
2106
2051
  };
2107
- function tn(e) {
2052
+ function It(e) {
2108
2053
  return {
2109
- ...en,
2054
+ ...Ft,
2110
2055
  ...e
2111
2056
  };
2112
2057
  }
2113
- function nn(e) {
2058
+ function Lt(e) {
2114
2059
  return Number.isFinite(e) ? Math.max(0, Math.min(1, e)) : 0;
2115
2060
  }
2116
- function rn(e, t) {
2061
+ function Rt(e, t) {
2117
2062
  if (t <= 0) return "missing";
2118
2063
  let n = e / t;
2119
2064
  return n >= .9 ? "good" : n >= .5 ? "review" : "missing";
2120
2065
  }
2121
2066
  function Z(e, t, n, r, i) {
2122
- let a = Math.round(nn(t) * n);
2067
+ let a = Math.round(Lt(t) * n);
2123
2068
  return {
2124
2069
  id: e,
2125
2070
  score: a,
2126
2071
  maxScore: n,
2127
2072
  actual: r,
2128
- status: rn(a, n),
2073
+ status: Rt(a, n),
2129
2074
  ...i
2130
2075
  };
2131
2076
  }
2132
- function an(e, t, n) {
2077
+ function zt(e, t, n) {
2133
2078
  let r = e.trim().length;
2134
2079
  if (r === 0) return 0;
2135
2080
  if (r >= t && r <= n) return 1;
@@ -2142,22 +2087,22 @@ function Q(e) {
2142
2087
  let t = e?.trim() ?? "";
2143
2088
  return t ? ((t.split("#")[0] ?? "").split("?")[0] ?? "").replace(/^https?:\/\/[^/]+/i, "").replace(/^\/+|\/+$/g, "") : "";
2144
2089
  }
2145
- function on(e) {
2090
+ function Bt(e) {
2146
2091
  return Q(e).split("/").filter(Boolean).at(-1) ?? "";
2147
2092
  }
2148
- function sn(e, t = en.permalinkMax) {
2093
+ function Vt(e, t = Ft.permalinkMax) {
2149
2094
  let n = Q(e);
2150
2095
  return n ? n.length <= t ? 1 : n.length > t * 2 ? .35 : Math.max(.55, 1 - (n.length - t) / t) : 0;
2151
2096
  }
2152
- function cn(e) {
2153
- let t = on(e);
2097
+ function Ht(e) {
2098
+ let t = Bt(e);
2154
2099
  return t ? /^[\p{L}\p{N}]+(?:-[\p{L}\p{N}]+)*$/u.test(t) && t === t.toLowerCase() ? 1 : !/\s/.test(t) && !/[?#]/.test(t) ? .65 : .25 : 0;
2155
2100
  }
2156
- function ln(e) {
2101
+ function Ut(e) {
2157
2102
  let t = e?.trim() ?? "";
2158
2103
  return t ? /^https:\/\//i.test(t) ? 1 : /^http:\/\//i.test(t) ? .6 : .45 : 0;
2159
2104
  }
2160
- function un(e) {
2105
+ function Wt(e) {
2161
2106
  let t = e.keyword?.trim().toLowerCase();
2162
2107
  if (!t) return null;
2163
2108
  let n = [
@@ -2167,32 +2112,32 @@ function un(e) {
2167
2112
  ].filter(Boolean).join(" ").toLowerCase();
2168
2113
  return n ? n.includes(t) ? 1 : .35 : 0;
2169
2114
  }
2170
- function dn(e) {
2171
- let t = tn(e.limits), n = e.title?.trim() ?? "", r = e.description?.trim() ?? "", i = Q(e.permalink), a = on(e.permalink), o = [
2172
- Z("title", an(n, t.titleMin, t.titleMax), 30, n.length, {
2115
+ function Gt(e) {
2116
+ let t = It(e.limits), n = e.title?.trim() ?? "", r = e.description?.trim() ?? "", i = Q(e.permalink), a = Bt(e.permalink), o = [
2117
+ Z("title", zt(n, t.titleMin, t.titleMax), 30, n.length, {
2173
2118
  min: t.titleMin,
2174
2119
  max: t.titleMax
2175
2120
  }),
2176
- Z("description", an(r, t.descriptionMin, t.descriptionMax), 30, r.length, {
2121
+ Z("description", zt(r, t.descriptionMin, t.descriptionMax), 30, r.length, {
2177
2122
  min: t.descriptionMin,
2178
2123
  max: t.descriptionMax
2179
2124
  }),
2180
- Z("permalink", sn(e.permalink, t.permalinkMax), 15, i.length, { max: t.permalinkMax }),
2181
- Z("slug", cn(e.permalink), 10, a.length),
2182
- Z("url", ln(e.baseUrl), 10, e.baseUrl?.trim().length ?? 0)
2183
- ], s = un(e);
2125
+ Z("permalink", Vt(e.permalink, t.permalinkMax), 15, i.length, { max: t.permalinkMax }),
2126
+ Z("slug", Ht(e.permalink), 10, a.length),
2127
+ Z("url", Ut(e.baseUrl), 10, e.baseUrl?.trim().length ?? 0)
2128
+ ], s = Wt(e);
2184
2129
  s !== null && o.push(Z("keyword", s, 5, e.keyword?.trim().length ?? 0));
2185
2130
  let c = Math.round(o.reduce((e, t) => e + t.score, 0) / o.reduce((e, t) => e + t.maxScore, 0) * 100);
2186
2131
  return {
2187
2132
  score: c,
2188
- status: rn(c, 100),
2133
+ status: Rt(c, 100),
2189
2134
  checks: o,
2190
2135
  limits: t
2191
2136
  };
2192
2137
  }
2193
2138
  //#endregion
2194
2139
  //#region src/components/blocks/commerce/seo-listing/types.ts
2195
- var fn = {
2140
+ var Kt = {
2196
2141
  title: "Search engine listing",
2197
2142
  editLabel: "Edit search listing",
2198
2143
  scoreLabel: "SEO score",
@@ -2225,90 +2170,75 @@ var fn = {
2225
2170
  url: "Prefer a secure canonical URL.",
2226
2171
  keyword: "Use the focus keyword in the title, description, or permalink."
2227
2172
  }
2228
- }, pn = {
2173
+ }, qt = {
2229
2174
  good: "success",
2230
2175
  review: "warning",
2231
2176
  missing: "destructive"
2232
- }, mn = {
2177
+ }, Jt = {
2233
2178
  good: "[&_[data-slot=progress-indicator]]:bg-success",
2234
2179
  review: "[&_[data-slot=progress-indicator]]:bg-warning",
2235
2180
  missing: "[&_[data-slot=progress-indicator]]:bg-destructive"
2236
- }, hn = {
2237
- good: "border-success/20 bg-success/5",
2238
- review: "border-warning/30 bg-warning/10",
2239
- missing: "border-destructive/20 bg-destructive/5"
2240
- }, gn = {
2241
- good: "bg-success/10 text-success",
2242
- review: "bg-warning/10 text-warning-accent",
2243
- missing: "bg-destructive/10 text-destructive"
2244
- }, _n = {
2245
- good: xe,
2246
- review: qe,
2247
- missing: we
2248
- }, vn = {
2249
- good: "bg-success/10 text-success",
2250
- review: "bg-warning/10 text-warning-accent",
2251
- missing: "bg-destructive/10 text-destructive"
2252
- }, yn = {
2253
- good: "border-success/25 bg-success/5",
2254
- review: "border-warning/30 bg-warning/10",
2255
- missing: "border-destructive/20 bg-destructive/5"
2181
+ }, Yt = {
2182
+ good: ve,
2183
+ review: ke,
2184
+ missing: xe
2185
+ }, Xt = {
2186
+ good: "text-success",
2187
+ review: "text-warning-accent",
2188
+ missing: "text-destructive"
2256
2189
  };
2257
- function bn(e) {
2190
+ function Zt(e) {
2258
2191
  return e.replace(/^\/+|\/+$/g, "");
2259
2192
  }
2260
- function xn(e, t, n) {
2193
+ function Qt(e, t, n) {
2261
2194
  let r = Q(n).split("/").filter(Boolean);
2262
2195
  return [
2263
2196
  e,
2264
- ...t.map(bn).filter(Boolean),
2197
+ ...t.map(Zt).filter(Boolean),
2265
2198
  ...r
2266
2199
  ].filter(Boolean);
2267
2200
  }
2268
- function Sn(e, t, n) {
2201
+ function $t(e, t, n) {
2269
2202
  if (!e.trim()) return;
2270
- let r = e.replace(/\/+$/g, ""), i = [...t.map(bn).filter(Boolean), ...Q(n).split("/").filter(Boolean)].join("/");
2203
+ let r = e.replace(/\/+$/g, ""), i = [...t.map(Zt).filter(Boolean), ...Q(n).split("/").filter(Boolean)].join("/");
2271
2204
  return i ? `${r}/${i}` : r;
2272
2205
  }
2273
- function Cn(e, t) {
2206
+ function en(e, t) {
2274
2207
  return e.id === "title" || e.id === "description" ? `${e.actual}/${e.max} ${t.characters} · ${t.targetLabel} ${e.min}-${e.max}` : e.id === "permalink" ? `${e.actual}/${e.max} ${t.characters} ${t.maxLabel}` : t.checkHints[e.id];
2275
2208
  }
2276
- function wn({ check: e, detail: t, strings: n }) {
2277
- let i = _n[e.status];
2278
- return /* @__PURE__ */ G("div", {
2279
- className: r("seo-listing-card--check min-w-0 rounded-radius-sm border px-space-lg py-space-md", yn[e.status]),
2280
- children: /* @__PURE__ */ K(u, {
2209
+ function tn({ check: e, detail: t, strings: n }) {
2210
+ let i = Yt[e.status];
2211
+ return /* @__PURE__ */ q("div", {
2212
+ className: "seo-listing-card--check min-w-0",
2213
+ children: /* @__PURE__ */ J(d, {
2281
2214
  direction: "horizontal",
2282
- gap: "lg",
2215
+ gap: "md",
2283
2216
  align: "start",
2284
2217
  wrap: !1,
2285
- children: [/* @__PURE__ */ G("span", {
2286
- className: r("seo-listing-card--check-icon inline-flex size-icon-lg shrink-0 items-center justify-center rounded-radius-sm", vn[e.status]),
2287
- children: /* @__PURE__ */ G(i, {
2288
- className: "size-icon-sm",
2289
- "aria-hidden": "true"
2290
- })
2291
- }), /* @__PURE__ */ K(u, {
2218
+ children: [/* @__PURE__ */ q(i, {
2219
+ className: r("seo-listing-card--check-icon size-icon shrink-0 translate-y-0.5", Xt[e.status]),
2220
+ "aria-hidden": "true"
2221
+ }), /* @__PURE__ */ J(d, {
2292
2222
  gap: "dense",
2293
2223
  className: "min-w-0 flex-1",
2294
- children: [/* @__PURE__ */ K(u, {
2224
+ children: [/* @__PURE__ */ J(d, {
2295
2225
  direction: "horizontal",
2296
2226
  gap: "sm",
2297
2227
  justify: "between",
2298
2228
  wrap: !1,
2299
- children: [/* @__PURE__ */ G(a, {
2229
+ children: [/* @__PURE__ */ q(s, {
2300
2230
  tag: "span",
2301
2231
  weight: "medium",
2302
2232
  className: "truncate",
2303
2233
  children: n.checkLabels[e.id]
2304
- }), /* @__PURE__ */ G(D, {
2305
- tone: pn[e.status],
2234
+ }), /* @__PURE__ */ q(O, {
2235
+ tone: qt[e.status],
2306
2236
  size: "sm",
2307
2237
  inline: !0,
2308
2238
  className: "shrink-0",
2309
2239
  children: n.status[e.status]
2310
2240
  })]
2311
- }), /* @__PURE__ */ G(a, {
2241
+ }), /* @__PURE__ */ q(s, {
2312
2242
  size: "xs",
2313
2243
  type: "secondary",
2314
2244
  lineHeight: "snug",
@@ -2318,72 +2248,74 @@ function wn({ check: e, detail: t, strings: n }) {
2318
2248
  })
2319
2249
  });
2320
2250
  }
2321
- function Tn({ siteName: e, baseUrl: t, pathSegments: o = [], permalink: s, title: l, description: d, price: f, keyword: m, score: g, limits: v, showChecks: y = !0, onEdit: b, className: x, strings: C }) {
2322
- let w = n(fn, C), T = t?.trim() || w.urlFallback, E = e?.trim() || w.siteFallback, O = l?.trim() || w.titleFallback, k = d?.trim() || w.descriptionFallback, A = g ?? dn({
2323
- title: l,
2324
- description: d,
2325
- permalink: s,
2251
+ function nn({ siteName: e, baseUrl: t, pathSegments: i = [], permalink: a, title: o, description: u, price: f, keyword: h, score: _, limits: y, showChecks: b = !0, onEdit: x, surface: S = "flat", padding: w = S === "flat" ? "none" : "md", headerDivider: T = S !== "flat" && void 0, className: E, strings: D }) {
2252
+ let k = n(Kt, D), A = t?.trim() || k.urlFallback, j = e?.trim() || k.siteFallback, M = o?.trim() || k.titleFallback, N = u?.trim() || k.descriptionFallback, P = _ ?? Gt({
2253
+ title: o,
2254
+ description: u,
2255
+ permalink: a,
2326
2256
  baseUrl: t,
2327
- keyword: m,
2328
- limits: v
2329
- }), M = Sn(T, o, s), N = xn(T, o, s), ee = pn[A.status];
2330
- return /* @__PURE__ */ K(j, {
2331
- icon: /* @__PURE__ */ G(Ve, { className: "size-icon" }),
2332
- title: w.title,
2333
- titleSuffix: /* @__PURE__ */ K(D, {
2257
+ keyword: h,
2258
+ limits: y
2259
+ }), F = $t(A, i, a), I = Qt(A, i, a), ee = qt[P.status];
2260
+ return /* @__PURE__ */ J(p, {
2261
+ surface: S,
2262
+ padding: w,
2263
+ headerDivider: T,
2264
+ title: k.title,
2265
+ titleSuffix: /* @__PURE__ */ J(O, {
2334
2266
  tone: ee,
2335
2267
  size: "sm",
2336
2268
  inline: !0,
2337
2269
  className: "shrink-0",
2338
2270
  children: [
2339
- A.score,
2271
+ P.score,
2340
2272
  "/100 ",
2341
- w.status[A.status]
2273
+ k.status[P.status]
2342
2274
  ]
2343
2275
  }),
2344
- className: r("seo-listing-card--component @container/seo-listing-card w-full", x),
2345
- contentGap: "xl",
2346
- headerAction: b ? /* @__PURE__ */ G(i, {
2276
+ className: r("seo-listing-card--component @container/seo-listing-card w-full", E),
2277
+ contentGap: "2xl",
2278
+ headerAction: x ? /* @__PURE__ */ q(l, {
2347
2279
  type: "button",
2348
2280
  tone: "secondary",
2349
2281
  buttonStyle: "ghost",
2350
2282
  size: "sm",
2351
2283
  iconOnly: !0,
2352
- "aria-label": w.editLabel,
2353
- onClick: b,
2354
- children: /* @__PURE__ */ G(Ie, { className: "size-icon-sm" })
2284
+ "aria-label": k.editLabel,
2285
+ onClick: x,
2286
+ children: /* @__PURE__ */ q(Ee, { className: "size-icon-sm" })
2355
2287
  }) : void 0,
2356
- children: [/* @__PURE__ */ G("div", {
2288
+ children: [/* @__PURE__ */ q("div", {
2357
2289
  "data-artwork": "serp",
2358
- className: "seo-listing-card--preview min-w-0 rounded-radius border border-border/60 bg-background px-control py-space-xl shadow-xs",
2359
- children: /* @__PURE__ */ K(u, {
2290
+ className: "seo-listing-card--preview min-w-0 rounded-radius border border-border/60 bg-background p-surface shadow-xs",
2291
+ children: /* @__PURE__ */ J(d, {
2360
2292
  gap: "sm",
2361
2293
  className: "min-w-0",
2362
2294
  children: [
2363
- /* @__PURE__ */ K(u, {
2295
+ /* @__PURE__ */ J(d, {
2364
2296
  direction: "horizontal",
2365
2297
  gap: "sm",
2366
2298
  wrap: !1,
2367
- children: [/* @__PURE__ */ G(a, {
2299
+ children: [/* @__PURE__ */ q(s, {
2368
2300
  weight: "medium",
2369
2301
  className: "truncate",
2370
- children: E
2371
- }), !!M && /* @__PURE__ */ G(Oe, {
2302
+ children: j
2303
+ }), !!F && /* @__PURE__ */ q(we, {
2372
2304
  className: "size-icon-sm shrink-0 text-muted-foreground",
2373
2305
  "aria-hidden": "true"
2374
2306
  })]
2375
2307
  }),
2376
- /* @__PURE__ */ G("div", {
2308
+ /* @__PURE__ */ q("div", {
2377
2309
  className: "seo-listing-card--url flex min-w-0 flex-wrap items-center gap-x-space-sm gap-y-space-2xs",
2378
- children: N.map((e, t) => /* @__PURE__ */ K("span", {
2310
+ children: I.map((e, t) => /* @__PURE__ */ J("span", {
2379
2311
  className: "inline-flex min-w-0 items-center gap-space-sm",
2380
- children: [/* @__PURE__ */ G(a, {
2312
+ children: [/* @__PURE__ */ q(s, {
2381
2313
  tag: "span",
2382
2314
  size: "xs",
2383
2315
  type: "secondary",
2384
2316
  className: "truncate",
2385
2317
  children: e
2386
- }), t < N.length - 1 && /* @__PURE__ */ G(a, {
2318
+ }), t < I.length - 1 && /* @__PURE__ */ q(s, {
2387
2319
  tag: "span",
2388
2320
  size: "xs",
2389
2321
  type: "secondary",
@@ -2392,177 +2324,155 @@ function Tn({ siteName: e, baseUrl: t, pathSegments: o = [], permalink: s, title
2392
2324
  })]
2393
2325
  }, `${e}-${t}`))
2394
2326
  }),
2395
- M ? /* @__PURE__ */ G(c, {
2396
- href: M,
2327
+ F ? /* @__PURE__ */ q(c, {
2328
+ href: F,
2397
2329
  size: "base",
2398
2330
  lineHeight: "snug",
2399
2331
  underline: !1,
2400
2332
  className: "seo-listing-card--snippet-title block text-[#1a0dab] dark:text-[#8ab4f8]",
2401
- children: O
2402
- }) : /* @__PURE__ */ G(a, {
2333
+ children: M
2334
+ }) : /* @__PURE__ */ q(s, {
2403
2335
  size: "base",
2404
2336
  lineHeight: "snug",
2405
2337
  className: "seo-listing-card--snippet-title text-[#1a0dab] dark:text-[#8ab4f8]",
2406
- children: O
2338
+ children: M
2407
2339
  }),
2408
- /* @__PURE__ */ G(a, {
2340
+ /* @__PURE__ */ q(s, {
2409
2341
  type: "secondary",
2410
2342
  lineHeight: "relaxed",
2411
2343
  className: "seo-listing-card--description max-w-4xl",
2412
- children: k
2344
+ children: N
2413
2345
  }),
2414
- !!f && /* @__PURE__ */ G(_, {
2346
+ !!f && /* @__PURE__ */ q(v, {
2415
2347
  size: "xs",
2416
2348
  className: "seo-listing-card--price block tabular-nums",
2417
2349
  children: f
2418
2350
  })
2419
2351
  ]
2420
2352
  })
2421
- }), /* @__PURE__ */ K("div", {
2422
- className: r("seo-listing-card--score overflow-hidden rounded-radius border", hn[A.status]),
2423
- children: [/* @__PURE__ */ K(u, {
2424
- direction: "horizontal",
2425
- gap: "lg",
2426
- justify: "between",
2427
- wrap: !1,
2428
- className: "border-b border-border/60 px-control py-space-lg",
2429
- children: [/* @__PURE__ */ K(u, {
2353
+ }), /* @__PURE__ */ J(d, {
2354
+ gap: "lg",
2355
+ className: "seo-listing-card--score",
2356
+ children: [
2357
+ /* @__PURE__ */ J(d, {
2430
2358
  direction: "horizontal",
2431
- gap: "sm",
2359
+ gap: "lg",
2360
+ justify: "between",
2361
+ align: "start",
2432
2362
  wrap: !1,
2433
- children: [/* @__PURE__ */ G("span", {
2434
- className: r("seo-listing-card--score-icon inline-flex size-icon-lg shrink-0 items-center justify-center rounded-radius-sm", gn[A.status]),
2435
- children: /* @__PURE__ */ G(Ae, {
2436
- className: "size-icon-sm",
2437
- "aria-hidden": "true"
2438
- })
2439
- }), /* @__PURE__ */ K("div", {
2363
+ children: [/* @__PURE__ */ J(d, {
2364
+ gap: "dense",
2440
2365
  className: "min-w-0",
2441
- children: [/* @__PURE__ */ G(a, {
2366
+ children: [/* @__PURE__ */ q(s, {
2442
2367
  weight: "semibold",
2443
- children: w.scoreLabel
2444
- }), /* @__PURE__ */ K(_, {
2368
+ children: k.scoreLabel
2369
+ }), /* @__PURE__ */ J(v, {
2445
2370
  size: "xs",
2446
2371
  className: "tabular-nums",
2447
2372
  children: [
2448
- /* @__PURE__ */ G(S, {
2449
- value: A.checks.length,
2373
+ /* @__PURE__ */ q(C, {
2374
+ value: P.checks.length,
2450
2375
  size: "xs",
2451
2376
  type: "secondary",
2452
2377
  align: "left"
2453
2378
  }),
2454
2379
  " ",
2455
- w.checksLabel
2380
+ k.checksLabel
2456
2381
  ]
2457
2382
  })]
2458
- })]
2459
- }), /* @__PURE__ */ K(u, {
2460
- direction: "horizontal",
2461
- gap: "sm",
2462
- wrap: !1,
2463
- className: "shrink-0",
2464
- children: [/* @__PURE__ */ K(h, {
2383
+ }), /* @__PURE__ */ J(g, {
2465
2384
  weight: "semibold",
2466
- className: "tabular-nums",
2467
- children: [A.score, "/100"]
2468
- }), /* @__PURE__ */ G(D, {
2469
- tone: ee,
2470
- size: "sm",
2471
- inline: !0,
2472
- children: w.status[A.status]
2385
+ className: "shrink-0 tabular-nums",
2386
+ children: [P.score, "/100"]
2473
2387
  })]
2474
- })]
2475
- }), /* @__PURE__ */ K(u, {
2476
- gap: "lg",
2477
- className: "px-control py-space-lg",
2478
- children: [/* @__PURE__ */ G(p, {
2479
- value: A.score,
2480
- "aria-label": w.scoreLabel,
2481
- className: r("seo-listing-card--score-progress", "[&_[data-slot=progress-track]]:h-space-md", mn[A.status])
2482
- }), !!y && /* @__PURE__ */ G("div", {
2483
- className: "seo-listing-card--checks grid gap-x-space-lg gap-y-space-lg @xl/seo-listing-card:grid-cols-2",
2484
- children: A.checks.map((e) => /* @__PURE__ */ G(wn, {
2388
+ }),
2389
+ /* @__PURE__ */ q(m, {
2390
+ value: P.score,
2391
+ "aria-label": k.scoreLabel,
2392
+ className: r("seo-listing-card--score-progress", "[&_[data-slot=progress-track]]:h-space-md", Jt[P.status])
2393
+ }),
2394
+ !!b && /* @__PURE__ */ q("div", {
2395
+ className: "seo-listing-card--checks grid gap-x-space-2xl gap-y-space-lg @xl/seo-listing-card:grid-cols-2",
2396
+ children: P.checks.map((e) => /* @__PURE__ */ q(tn, {
2485
2397
  check: e,
2486
- detail: Cn(e, w),
2487
- strings: w
2398
+ detail: en(e, k),
2399
+ strings: k
2488
2400
  }, e.id))
2489
- })]
2490
- })]
2401
+ })
2402
+ ]
2491
2403
  })]
2492
2404
  });
2493
2405
  }
2494
- Tn.displayName = "SeoListingCard";
2406
+ nn.displayName = "SeoListingCard";
2495
2407
  //#endregion
2496
2408
  //#region src/components/blocks/commerce/invoice-mini/types.ts
2497
- var En = {
2409
+ var rn = {
2498
2410
  paid: "Paid",
2499
2411
  pending: "Pending",
2500
2412
  overdue: "Overdue",
2501
2413
  items: (e) => e === 1 ? "1 line item" : `${e} line items`,
2502
2414
  due: "Due"
2503
- }, Dn = {
2415
+ }, an = {
2504
2416
  paid: "success",
2505
2417
  pending: "warning",
2506
2418
  overdue: "destructive"
2507
2419
  };
2508
2420
  //#endregion
2509
2421
  //#region src/components/blocks/commerce/invoice-mini/invoice-mini.tsx
2510
- function On({ invoice: e, className: n, strings: i }) {
2511
- let o = t(En, i), s = {
2512
- paid: o.paid,
2513
- pending: o.pending,
2514
- overdue: o.overdue
2422
+ function on({ invoice: e, className: n, strings: i }) {
2423
+ let a = t(rn, i), o = {
2424
+ paid: a.paid,
2425
+ pending: a.pending,
2426
+ overdue: a.overdue
2515
2427
  };
2516
- return /* @__PURE__ */ K(u, {
2428
+ return /* @__PURE__ */ J(d, {
2517
2429
  gap: "md",
2518
2430
  "data-component": "invoice-mini",
2519
2431
  "data-slot": "invoice-mini",
2520
2432
  className: r("invoice-mini--component", n),
2521
2433
  children: [
2522
- /* @__PURE__ */ K(u, {
2434
+ /* @__PURE__ */ J(d, {
2523
2435
  direction: "horizontal",
2524
- gap: "md",
2525
- justify: "between",
2436
+ gap: "sm",
2526
2437
  wrap: !1,
2527
- children: [/* @__PURE__ */ G(v, {
2528
- className: "min-w-0 flex-1 truncate tracking-wide",
2438
+ children: [/* @__PURE__ */ q(y, {
2439
+ className: "min-w-0 truncate tracking-wide",
2529
2440
  children: e.invoiceNumber
2530
- }), /* @__PURE__ */ G(D, {
2531
- tone: Dn[e.status],
2441
+ }), /* @__PURE__ */ q(O, {
2442
+ tone: an[e.status],
2532
2443
  size: "sm",
2533
- dot: !0,
2534
2444
  className: "shrink-0",
2535
- children: s[e.status]
2445
+ children: o[e.status]
2536
2446
  })]
2537
2447
  }),
2538
- /* @__PURE__ */ G(a, {
2448
+ /* @__PURE__ */ q(s, {
2539
2449
  type: "secondary",
2540
2450
  className: "truncate",
2541
2451
  children: e.customerName
2542
2452
  }),
2543
- /* @__PURE__ */ K(u, {
2453
+ /* @__PURE__ */ J(d, {
2544
2454
  direction: "horizontal",
2545
2455
  gap: "lg",
2546
2456
  align: "end",
2547
2457
  justify: "between",
2548
2458
  className: "pt-space-xs",
2549
- children: [/* @__PURE__ */ K(u, {
2459
+ children: [/* @__PURE__ */ J(d, {
2550
2460
  gap: "2xs",
2551
2461
  className: "min-w-0",
2552
- children: [/* @__PURE__ */ G(a, {
2462
+ children: [/* @__PURE__ */ q(s, {
2553
2463
  size: "xs",
2554
2464
  type: "secondary",
2555
- children: o.items(e.lineItemsCount)
2556
- }), /* @__PURE__ */ K(_, {
2465
+ children: a.items(e.lineItemsCount)
2466
+ }), /* @__PURE__ */ J(v, {
2557
2467
  size: "xs",
2558
2468
  className: "whitespace-nowrap tabular-nums",
2559
2469
  children: [
2560
- o.due,
2470
+ a.due,
2561
2471
  " ",
2562
2472
  e.dueDate
2563
2473
  ]
2564
2474
  })]
2565
- }), /* @__PURE__ */ G(h, {
2475
+ }), /* @__PURE__ */ q(g, {
2566
2476
  size: "base",
2567
2477
  weight: "bold",
2568
2478
  className: r("ml-auto shrink-0 tabular-nums leading-none"),
@@ -2572,34 +2482,34 @@ function On({ invoice: e, className: n, strings: i }) {
2572
2482
  ]
2573
2483
  });
2574
2484
  }
2575
- On.displayName = "InvoiceMini";
2485
+ on.displayName = "InvoiceMini";
2576
2486
  //#endregion
2577
2487
  //#region src/components/blocks/commerce/invoice-header/types.ts
2578
- var kn = {
2488
+ var sn = {
2579
2489
  title: "Invoice",
2580
- billFrom: "Bill From",
2581
- billTo: "Bill To",
2490
+ billFrom: "Bill from",
2491
+ billTo: "Bill to",
2582
2492
  issued: "Issued",
2583
2493
  due: "Due",
2584
- amountDue: "Amount Due",
2494
+ amountDue: "Amount due",
2585
2495
  paid: "Paid",
2586
2496
  pending: "Pending",
2587
2497
  overdue: "Overdue"
2588
2498
  };
2589
2499
  //#endregion
2590
2500
  //#region src/components/blocks/commerce/invoice-header/invoice-header.tsx
2591
- function An({ eyebrow: e, name: t, location: n }) {
2592
- return /* @__PURE__ */ K(u, {
2501
+ function cn({ eyebrow: e, name: t, location: n }) {
2502
+ return /* @__PURE__ */ J(d, {
2593
2503
  gap: "xs",
2594
2504
  className: "invoice-header--party",
2595
2505
  children: [
2596
- /* @__PURE__ */ G(s, { children: e }),
2597
- /* @__PURE__ */ G(a, {
2506
+ /* @__PURE__ */ q(a, { children: e }),
2507
+ /* @__PURE__ */ q(s, {
2598
2508
  weight: "semibold",
2599
2509
  className: "leading-snug",
2600
2510
  children: t
2601
2511
  }),
2602
- !!n && /* @__PURE__ */ G(a, {
2512
+ !!n && /* @__PURE__ */ q(s, {
2603
2513
  size: "xs",
2604
2514
  type: "secondary",
2605
2515
  className: "leading-snug",
@@ -2608,34 +2518,33 @@ function An({ eyebrow: e, name: t, location: n }) {
2608
2518
  ]
2609
2519
  });
2610
2520
  }
2611
- function jn({ invoiceNumber: e, status: t, statusTone: i, from: c, to: d, issuedDate: f, dueDate: p, amount: m, className: h, strings: g }) {
2612
- let _ = n(kn, g), v = {
2521
+ function ln({ invoiceNumber: e, status: t, statusTone: i, from: c, to: l, issuedDate: f, dueDate: p, amount: m, className: h, strings: g }) {
2522
+ let _ = n(sn, g), v = {
2613
2523
  paid: _.paid,
2614
2524
  pending: _.pending,
2615
2525
  overdue: _.overdue
2616
- }, y = i ?? Dn[t];
2617
- return /* @__PURE__ */ K(u, {
2526
+ }, y = i ?? an[t];
2527
+ return /* @__PURE__ */ J(d, {
2618
2528
  gap: "2xl",
2619
2529
  "data-component": "invoice-header",
2620
2530
  "data-slot": "invoice-header",
2621
2531
  className: r("invoice-header--component min-w-0", h),
2622
2532
  "aria-label": _.title,
2623
2533
  children: [
2624
- /* @__PURE__ */ K(u, {
2534
+ /* @__PURE__ */ J(d, {
2625
2535
  direction: "horizontal",
2626
2536
  align: "center",
2627
- justify: "between",
2628
- gap: "lg",
2629
- children: [/* @__PURE__ */ G(a, {
2537
+ gap: "sm",
2538
+ children: [/* @__PURE__ */ q(s, {
2630
2539
  weight: "bold",
2631
2540
  className: "font-mono tracking-wide",
2632
2541
  children: e
2633
- }), /* @__PURE__ */ G(D, {
2542
+ }), /* @__PURE__ */ q(O, {
2634
2543
  tone: y,
2635
2544
  children: v[t]
2636
2545
  })]
2637
2546
  }),
2638
- /* @__PURE__ */ K(l, {
2547
+ /* @__PURE__ */ J(u, {
2639
2548
  columns: {
2640
2549
  base: 1,
2641
2550
  sm: 2
@@ -2644,42 +2553,40 @@ function jn({ invoiceNumber: e, status: t, statusTone: i, from: c, to: d, issued
2644
2553
  base: "xl",
2645
2554
  sm: "2xl"
2646
2555
  },
2647
- children: [/* @__PURE__ */ G(An, {
2556
+ children: [/* @__PURE__ */ q(cn, {
2648
2557
  eyebrow: _.billFrom,
2649
2558
  name: c.name,
2650
2559
  location: c.location
2651
- }), /* @__PURE__ */ G(An, {
2560
+ }), /* @__PURE__ */ q(cn, {
2652
2561
  eyebrow: _.billTo,
2653
- name: d.name,
2654
- location: d.location
2562
+ name: l.name,
2563
+ location: l.location
2655
2564
  })]
2656
2565
  }),
2657
- /* @__PURE__ */ G(O, {}),
2658
- /* @__PURE__ */ K(u, {
2566
+ /* @__PURE__ */ J(d, {
2659
2567
  direction: "horizontal",
2660
2568
  gap: "xl",
2661
2569
  align: "end",
2662
2570
  justify: "between",
2663
- children: [/* @__PURE__ */ K(u, {
2571
+ children: [/* @__PURE__ */ J(d, {
2664
2572
  gap: "xs",
2665
- children: [!!f && /* @__PURE__ */ G(H, {
2573
+ children: [!!f && /* @__PURE__ */ q(G, {
2666
2574
  layout: "inline",
2667
2575
  label: _.issued,
2668
2576
  value: f,
2669
- mono: !0,
2670
- valueClassName: "font-medium"
2671
- }), !!p && /* @__PURE__ */ G(H, {
2577
+ valueClassName: "font-medium tabular-nums"
2578
+ }), !!p && /* @__PURE__ */ q(G, {
2672
2579
  layout: "inline",
2673
2580
  label: _.due,
2674
2581
  value: p,
2675
- mono: !0,
2676
- valueClassName: "font-medium"
2582
+ valueClassName: "font-medium tabular-nums"
2677
2583
  })]
2678
- }), /* @__PURE__ */ K("div", {
2584
+ }), /* @__PURE__ */ J(d, {
2585
+ gap: "dense",
2679
2586
  className: "text-right",
2680
- children: [/* @__PURE__ */ G(s, { children: _.amountDue }), /* @__PURE__ */ G(o, {
2587
+ children: [/* @__PURE__ */ q(a, { children: _.amountDue }), /* @__PURE__ */ q(o, {
2681
2588
  tag: "h3",
2682
- className: r("mt-1 text-base tabular-nums leading-none tracking-tight border-none pb-0"),
2589
+ className: r("text-base tabular-nums leading-none tracking-tight border-none pb-0"),
2683
2590
  children: m
2684
2591
  })]
2685
2592
  })]
@@ -2687,23 +2594,23 @@ function jn({ invoiceNumber: e, status: t, statusTone: i, from: c, to: d, issued
2687
2594
  ]
2688
2595
  });
2689
2596
  }
2690
- jn.displayName = "InvoiceHeader";
2597
+ ln.displayName = "InvoiceHeader";
2691
2598
  //#endregion
2692
2599
  //#region src/components/blocks/commerce/invoice-line-items/types.ts
2693
- var Mn = {
2600
+ var un = {
2694
2601
  item: "Item",
2695
2602
  quantity: "Qty",
2696
2603
  price: "Price",
2697
2604
  subtotal: "Subtotal",
2698
2605
  tax: "Tax",
2699
2606
  total: "Total"
2700
- }, Nn = "border border-border shadow-sm", Pn = {
2607
+ }, dn = "border border-border shadow-sm", fn = {
2701
2608
  left: "text-left justify-start",
2702
2609
  right: "text-right justify-end",
2703
2610
  center: "text-center justify-center"
2704
2611
  };
2705
- function Fn({ amount: e, currency: t, weight: n = "regular" }) {
2706
- return /* @__PURE__ */ G(x, {
2612
+ function pn({ amount: e, currency: t, weight: n = "regular" }) {
2613
+ return /* @__PURE__ */ q(S, {
2707
2614
  amount: e,
2708
2615
  currency: t,
2709
2616
  minimumFractionDigits: 2,
@@ -2711,13 +2618,13 @@ function Fn({ amount: e, currency: t, weight: n = "regular" }) {
2711
2618
  weight: n
2712
2619
  });
2713
2620
  }
2714
- function In(e, t) {
2621
+ function mn(e, t) {
2715
2622
  return [
2716
2623
  {
2717
2624
  id: "description",
2718
2625
  header: t.item,
2719
2626
  width: "minmax(0,1fr)",
2720
- cell: (e) => /* @__PURE__ */ G(a, {
2627
+ cell: (e) => /* @__PURE__ */ q(s, {
2721
2628
  className: "break-words",
2722
2629
  children: e.description
2723
2630
  })
@@ -2727,7 +2634,7 @@ function In(e, t) {
2727
2634
  header: t.quantity,
2728
2635
  width: "36px",
2729
2636
  align: "center",
2730
- cell: (e) => /* @__PURE__ */ G(S, {
2637
+ cell: (e) => /* @__PURE__ */ q(C, {
2731
2638
  value: e.qty,
2732
2639
  align: "center"
2733
2640
  })
@@ -2737,7 +2644,7 @@ function In(e, t) {
2737
2644
  header: t.price,
2738
2645
  width: "82px",
2739
2646
  align: "right",
2740
- cell: (t) => /* @__PURE__ */ G(Fn, {
2647
+ cell: (t) => /* @__PURE__ */ q(pn, {
2741
2648
  amount: t.price,
2742
2649
  currency: e
2743
2650
  })
@@ -2747,38 +2654,38 @@ function In(e, t) {
2747
2654
  header: t.total,
2748
2655
  width: "82px",
2749
2656
  align: "right",
2750
- cell: (t) => /* @__PURE__ */ G(Fn, {
2657
+ cell: (t) => /* @__PURE__ */ q(pn, {
2751
2658
  amount: t.total,
2752
2659
  currency: e
2753
2660
  })
2754
2661
  }
2755
2662
  ];
2756
2663
  }
2757
- function Ln(e, t, n, r) {
2664
+ function hn(e, t, n, r) {
2758
2665
  let i = e.reduce((e, t) => e + t.total, 0), a = Math.round(i * t * 100) / 100, o = i + a;
2759
2666
  return [
2760
2667
  {
2761
2668
  label: r.subtotal,
2762
- value: /* @__PURE__ */ G(Fn, {
2669
+ value: /* @__PURE__ */ q(pn, {
2763
2670
  amount: i,
2764
2671
  currency: n
2765
2672
  })
2766
2673
  },
2767
2674
  {
2768
- label: /* @__PURE__ */ K(W, { children: [
2675
+ label: /* @__PURE__ */ J(me, { children: [
2769
2676
  r.tax,
2770
2677
  " (",
2771
- /* @__PURE__ */ G(b, { value: t }),
2678
+ /* @__PURE__ */ q(x, { value: t }),
2772
2679
  ")"
2773
2680
  ] }),
2774
- value: /* @__PURE__ */ G(Fn, {
2681
+ value: /* @__PURE__ */ q(pn, {
2775
2682
  amount: a,
2776
2683
  currency: n
2777
2684
  })
2778
2685
  },
2779
2686
  {
2780
2687
  label: r.total,
2781
- value: /* @__PURE__ */ G(Fn, {
2688
+ value: /* @__PURE__ */ q(pn, {
2782
2689
  amount: o,
2783
2690
  currency: n,
2784
2691
  weight: "bold"
@@ -2787,52 +2694,52 @@ function Ln(e, t, n, r) {
2787
2694
  }
2788
2695
  ];
2789
2696
  }
2790
- function Rn({ items: t, columns: i, footerRows: o, taxRate: c = .2, currency: l, className: d, strings: f }) {
2791
- let p = n(Mn, f), { defaultCurrency: m } = e(), g = l ?? m ?? "€", _ = i ?? In(g, p), v = o ?? (i ? [] : Ln(t, c, g, p)), y = i ? _.map((e) => e.width ?? "1fr").join(" ") : void 0, b = "grid-cols-3 @lg/invoice-line-items:grid-cols-[minmax(0,1fr)_36px_82px_82px]";
2792
- return /* @__PURE__ */ K("div", {
2793
- className: r("invoice-line-items--component", "@container/invoice-line-items w-full min-w-0 max-w-full overflow-hidden rounded-radius bg-card", Nn, d),
2697
+ function gn({ items: t, columns: i, footerRows: o, taxRate: c = .2, currency: l, className: u, strings: f }) {
2698
+ let p = n(un, f), { defaultCurrency: m } = e(), h = l ?? m ?? "€", _ = i ?? mn(h, p), v = o ?? (i ? [] : hn(t, c, h, p)), y = i ? _.map((e) => e.width ?? "1fr").join(" ") : void 0, b = "grid-cols-3 @lg/invoice-line-items:grid-cols-[minmax(0,1fr)_36px_82px_82px]";
2699
+ return /* @__PURE__ */ J("div", {
2700
+ className: r("invoice-line-items--component", "@container/invoice-line-items w-full min-w-0 max-w-full overflow-hidden rounded-radius bg-card", dn, u),
2794
2701
  children: [
2795
- /* @__PURE__ */ G("div", {
2702
+ /* @__PURE__ */ q("div", {
2796
2703
  className: r("invoice-line-items--header min-w-0 gap-space-md bg-muted/40 px-row-x py-row-y", i ? "grid" : ["hidden @lg/invoice-line-items:grid", b]),
2797
2704
  style: { gridTemplateColumns: y },
2798
- children: _.map((e) => /* @__PURE__ */ G("div", {
2799
- className: r("flex min-w-0", Pn[e.align ?? "left"], e.headerClassName),
2800
- children: /* @__PURE__ */ G(s, {
2705
+ children: _.map((e) => /* @__PURE__ */ q("div", {
2706
+ className: r("flex min-w-0", fn[e.align ?? "left"], e.headerClassName),
2707
+ children: /* @__PURE__ */ q(a, {
2801
2708
  className: "min-w-0 truncate",
2802
2709
  children: e.header
2803
2710
  })
2804
2711
  }, e.id))
2805
2712
  }),
2806
- t.map((e, t) => /* @__PURE__ */ G("div", {
2713
+ t.map((e, t) => /* @__PURE__ */ q("div", {
2807
2714
  className: r("invoice-line-items--row grid min-w-0 gap-space-md px-row-x py-row-y", !i && b, t % 2 == 1 && "bg-muted/20"),
2808
2715
  style: { gridTemplateColumns: y },
2809
- children: _.map((n) => /* @__PURE__ */ K("div", {
2716
+ children: _.map((n) => /* @__PURE__ */ J("div", {
2810
2717
  "data-column": n.id,
2811
- className: r("min-w-0", i ? ["flex items-center", Pn[n.align ?? "left"]] : n.id === "description" ? "col-span-full @lg/invoice-line-items:col-span-1" : ["grid gap-space-xs", n.align === "center" ? "text-center justify-items-center" : "text-right justify-items-end"], n.cellClassName),
2812
- children: [!i && n.id !== "description" && /* @__PURE__ */ G(s, {
2718
+ className: r("min-w-0", i ? ["flex items-center", fn[n.align ?? "left"]] : n.id === "description" ? "col-span-full @lg/invoice-line-items:col-span-1" : ["grid gap-space-xs", n.align === "center" ? "text-center justify-items-center" : "text-right justify-items-end"], n.cellClassName),
2719
+ children: [!i && n.id !== "description" && /* @__PURE__ */ q(a, {
2813
2720
  className: "@lg/invoice-line-items:hidden",
2814
2721
  children: n.header
2815
2722
  }), n.cell(e, t)]
2816
2723
  }, n.id))
2817
2724
  }, t)),
2818
- v.length > 0 && /* @__PURE__ */ K(W, { children: [/* @__PURE__ */ G(O, {}), /* @__PURE__ */ G("div", {
2725
+ v.length > 0 && /* @__PURE__ */ J(me, { children: [/* @__PURE__ */ q(k, {}), /* @__PURE__ */ q("div", {
2819
2726
  className: "invoice-line-items--footer p-surface",
2820
- children: /* @__PURE__ */ G(u, {
2727
+ children: /* @__PURE__ */ q(d, {
2821
2728
  gap: "sm",
2822
- children: v.map((e, t) => /* @__PURE__ */ K(u, {
2729
+ children: v.map((e, t) => /* @__PURE__ */ J(d, {
2823
2730
  direction: "horizontal",
2824
2731
  gap: "sm",
2825
2732
  justify: "between",
2826
2733
  align: "baseline",
2827
2734
  className: r(e.emphasis === "total" && "pt-space-md"),
2828
- children: [/* @__PURE__ */ G(a, {
2735
+ children: [/* @__PURE__ */ q(s, {
2829
2736
  type: e.emphasis === "total" ? void 0 : "secondary",
2830
2737
  weight: e.emphasis === "total" ? "bold" : "regular",
2831
2738
  children: e.label
2832
- }), zn(e.value) ? /* @__PURE__ */ G(h, {
2739
+ }), _n(e.value) ? /* @__PURE__ */ q(g, {
2833
2740
  weight: e.emphasis === "total" ? "bold" : "regular",
2834
2741
  children: e.value
2835
- }) : /* @__PURE__ */ G("div", {
2742
+ }) : /* @__PURE__ */ q("div", {
2836
2743
  className: "invoice-line-items--footer-value shrink-0",
2837
2744
  children: e.value
2838
2745
  })]
@@ -2842,13 +2749,13 @@ function Rn({ items: t, columns: i, footerRows: o, taxRate: c = .2, currency: l,
2842
2749
  ]
2843
2750
  });
2844
2751
  }
2845
- Rn.displayName = "InvoiceLineItems";
2846
- function zn(e) {
2752
+ gn.displayName = "InvoiceLineItems";
2753
+ function _n(e) {
2847
2754
  return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
2848
2755
  }
2849
2756
  //#endregion
2850
2757
  //#region src/components/blocks/commerce/order-timeline/order-timeline.tsx
2851
- function Bn({ title: e, description: t, events: n, footerText: i, className: a }) {
2758
+ function vn({ title: e, description: t, events: n, footerText: i, className: a }) {
2852
2759
  let o = n.map((e) => ({
2853
2760
  id: e.id,
2854
2761
  title: e.title,
@@ -2856,46 +2763,46 @@ function Bn({ title: e, description: t, events: n, footerText: i, className: a }
2856
2763
  timestamp: e.timestamp,
2857
2764
  status: e.status
2858
2765
  }));
2859
- return /* @__PURE__ */ G(j, {
2766
+ return /* @__PURE__ */ q(I, {
2860
2767
  "data-component": "order-timeline",
2861
2768
  "data-slot": "order-timeline",
2862
2769
  title: e,
2863
2770
  description: t,
2864
2771
  footerText: i,
2865
2772
  className: r("order-timeline--component", a),
2866
- children: /* @__PURE__ */ G(de, { items: o })
2773
+ children: /* @__PURE__ */ q(ce, { items: o })
2867
2774
  });
2868
2775
  }
2869
- Bn.displayName = "OrderTimeline";
2776
+ vn.displayName = "OrderTimeline";
2870
2777
  //#endregion
2871
2778
  //#region src/components/blocks/commerce/payment-timeline/payment-timeline.tsx
2872
- function Vn({ events: e, className: t }) {
2779
+ function yn({ events: e, className: t }) {
2873
2780
  let n = e.map((e, t) => ({
2874
2781
  id: `${e.label}-${String(t)}`,
2875
2782
  title: e.label,
2876
2783
  description: e.date,
2877
2784
  icon: e.icon,
2878
2785
  status: e.done ? "success" : "pending",
2879
- children: e.amount ? /* @__PURE__ */ G(h, {
2786
+ children: e.amount ? /* @__PURE__ */ q(g, {
2880
2787
  weight: "medium",
2881
- className: "tabular-nums text-success",
2788
+ className: "tabular-nums",
2882
2789
  children: e.amount
2883
2790
  }) : void 0
2884
2791
  }));
2885
- return /* @__PURE__ */ G("div", {
2792
+ return /* @__PURE__ */ q("div", {
2886
2793
  "data-component": "payment-timeline",
2887
2794
  "data-slot": "payment-timeline",
2888
2795
  className: r("payment-timeline--component min-w-0", t),
2889
- children: /* @__PURE__ */ G(de, {
2796
+ children: /* @__PURE__ */ q(ce, {
2890
2797
  items: n,
2891
2798
  dotSize: "lg"
2892
2799
  })
2893
2800
  });
2894
2801
  }
2895
- Vn.displayName = "PaymentTimeline";
2802
+ yn.displayName = "PaymentTimeline";
2896
2803
  //#endregion
2897
2804
  //#region src/components/blocks/commerce/inventory-section/types.ts
2898
- var Hn = {
2805
+ var bn = {
2899
2806
  title: "Inventory",
2900
2807
  description: "Manage stock tracking, availability, fulfillment, and compliance details.",
2901
2808
  status: {
@@ -2986,55 +2893,46 @@ var Hn = {
2986
2893
  clearAll: "Clear tags",
2987
2894
  summary: (e, t) => `${e} / ${t} tags`
2988
2895
  }
2989
- }, Un = {
2896
+ }, xn = {
2990
2897
  in_stock: "success",
2991
2898
  low_stock: "warning",
2992
2899
  out_of_stock: "destructive",
2993
2900
  untracked: "secondary"
2994
- }, Wn = {
2995
- default: "border-border/60 bg-muted/20",
2996
- success: "border-success/20 bg-success/5",
2997
- warning: "border-warning/30 bg-warning/10",
2998
- error: "border-destructive/20 bg-destructive/5",
2999
- info: "border-info/20 bg-info/5"
3000
2901
  };
3001
- function Gn(e) {
2902
+ function Sn(e) {
3002
2903
  if (e === void 0 || e.trim() === "") return;
3003
2904
  let t = Number(e);
3004
2905
  return Number.isFinite(t) ? t : void 0;
3005
2906
  }
3006
- function Kn(e) {
2907
+ function Cn(e) {
3007
2908
  if (!(e.trackQuantity ?? !0)) return "untracked";
3008
- let t = Gn(e.available) ?? 0;
2909
+ let t = Sn(e.available) ?? 0;
3009
2910
  if (t <= 0) return "out_of_stock";
3010
- let n = Gn(e.lowStockThreshold);
2911
+ let n = Sn(e.lowStockThreshold);
3011
2912
  return n !== void 0 && t <= n ? "low_stock" : "in_stock";
3012
2913
  }
3013
- function qn(e, t) {
3014
- return e === "available" ? t === "in_stock" ? "success" : t === "low_stock" ? "warning" : t === "out_of_stock" ? "error" : "default" : "default";
3015
- }
3016
2914
  function $({ children: e, className: t }) {
3017
- return /* @__PURE__ */ G(a, {
2915
+ return /* @__PURE__ */ q(s, {
3018
2916
  weight: "semibold",
3019
2917
  className: r("inventory-section-card--section-title", t),
3020
2918
  children: e
3021
2919
  });
3022
2920
  }
3023
- function Jn({ metric: e }) {
3024
- return /* @__PURE__ */ K("div", {
3025
- className: r("inventory-section-card--metric min-w-0 rounded-radius-sm border px-space-lg py-space-md", Wn[e.tone ?? "default"]),
2921
+ function wn({ metric: e }) {
2922
+ return /* @__PURE__ */ J("div", {
2923
+ className: "inventory-section-card--metric min-w-0",
3026
2924
  children: [
3027
- /* @__PURE__ */ G(a, {
2925
+ /* @__PURE__ */ q(s, {
3028
2926
  size: "xs",
3029
2927
  type: "secondary",
3030
2928
  children: e.label
3031
2929
  }),
3032
- /* @__PURE__ */ G(h, {
2930
+ /* @__PURE__ */ q(g, {
3033
2931
  weight: "semibold",
3034
2932
  className: "tabular-nums",
3035
2933
  children: e.value
3036
2934
  }),
3037
- !!e.description && /* @__PURE__ */ G(a, {
2935
+ !!e.description && /* @__PURE__ */ q(s, {
3038
2936
  size: "xs",
3039
2937
  type: "secondary",
3040
2938
  lineHeight: "snug",
@@ -3043,8 +2941,8 @@ function Jn({ metric: e }) {
3043
2941
  ]
3044
2942
  });
3045
2943
  }
3046
- function Yn({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly: s = !1, visibleSections: c, visibleFields: d, locationOptions: f = [], countryOptions: p = [], tagRecommendations: m, maxTags: h, onGenerateSku: g, onRestock: _, className: v, strings: y }) {
3047
- let b = n(Hn, y), x = Kn(e), S = o || s, C = e.trackQuantity ?? !0, w = e.requiresShipping ?? !0, T = S || !w, E = (e) => c?.[e] !== !1, O = (e) => d?.[e] !== !1, A = (n, r) => {
2944
+ function Tn({ value: e, onValueChange: t, errors: i, disabled: a = !1, readOnly: o = !1, visibleSections: s, visibleFields: c, locationOptions: f = [], countryOptions: m = [], tagRecommendations: h, maxTags: g, onGenerateSku: _, onRestock: v, className: y, strings: b }) {
2945
+ let x = n(bn, b), S = Cn(e), C = a || o, w = e.trackQuantity ?? !0, T = e.requiresShipping ?? !0, E = C || !T, D = (e) => s?.[e] !== !1, k = (e) => c?.[e] !== !1, F = (n, r) => {
3048
2946
  let i = e[n], a = {
3049
2947
  ...e,
3050
2948
  [n]: r
@@ -3054,340 +2952,328 @@ function Yn({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
3054
2952
  value: r,
3055
2953
  previousValue: i
3056
2954
  });
3057
- }, ie = () => {
3058
- if (!g || S) return;
3059
- let t = g(e);
3060
- typeof t == "string" && A("sku", t);
3061
- }, F = [
2955
+ }, I = () => {
2956
+ if (!_ || C) return;
2957
+ let t = _(e);
2958
+ typeof t == "string" && F("sku", t);
2959
+ }, R = [
3062
2960
  {
3063
2961
  id: "available",
3064
- label: b.summary.available,
3065
- value: C ? e.available || "0" : "-",
3066
- description: C ? void 0 : b.summary.untracked,
3067
- tone: qn("available", x)
2962
+ label: x.summary.available,
2963
+ value: w ? e.available || "0" : "—",
2964
+ description: w ? void 0 : x.summary.untracked
3068
2965
  },
3069
2966
  {
3070
2967
  id: "committed",
3071
- label: b.summary.committed,
3072
- value: e.committed || "0",
3073
- tone: qn("committed", x)
2968
+ label: x.summary.committed,
2969
+ value: e.committed || "0"
3074
2970
  },
3075
2971
  {
3076
2972
  id: "incoming",
3077
- label: b.summary.incoming,
3078
- value: e.incoming || "0",
3079
- tone: qn("incoming", x)
2973
+ label: x.summary.incoming,
2974
+ value: e.incoming || "0"
3080
2975
  },
3081
2976
  {
3082
2977
  id: "threshold",
3083
- label: b.summary.threshold,
3084
- value: e.lowStockThreshold || "-",
3085
- tone: qn("threshold", x)
2978
+ label: x.summary.threshold,
2979
+ value: e.lowStockThreshold || "-"
3086
2980
  }
3087
2981
  ];
3088
- return /* @__PURE__ */ K(j, {
3089
- icon: /* @__PURE__ */ G(Fe, { className: "size-icon" }),
3090
- title: b.title,
3091
- description: b.description,
3092
- titleSuffix: /* @__PURE__ */ G(D, {
3093
- tone: Un[x],
3094
- children: b.status[x]
2982
+ return /* @__PURE__ */ J(p, {
2983
+ surface: "flat",
2984
+ padding: "none",
2985
+ gap: "xl",
2986
+ title: x.title,
2987
+ description: x.description,
2988
+ titleSuffix: /* @__PURE__ */ q(O, {
2989
+ tone: xn[S],
2990
+ children: x.status[S]
3095
2991
  }),
3096
- headerAction: /* @__PURE__ */ K(u, {
2992
+ headerAction: /* @__PURE__ */ J(d, {
3097
2993
  direction: "horizontal",
3098
2994
  gap: "sm",
3099
2995
  className: "w-full @md/inventory-section-card:w-auto @md/inventory-section-card:justify-end",
3100
- children: [!!g && /* @__PURE__ */ K(i, {
2996
+ children: [!!_ && /* @__PURE__ */ q(l, {
3101
2997
  type: "button",
3102
2998
  tone: "secondary",
3103
2999
  buttonStyle: "outline",
3104
3000
  size: "sm",
3105
- onClick: ie,
3106
- disabled: S,
3107
- children: [/* @__PURE__ */ G(Ue, {
3108
- className: "size-icon-sm",
3109
- "aria-hidden": "true"
3110
- }), b.actions.generateSku]
3111
- }), !!_ && /* @__PURE__ */ K(i, {
3001
+ onClick: I,
3002
+ disabled: C,
3003
+ children: x.actions.generateSku
3004
+ }), !!v && /* @__PURE__ */ q(l, {
3112
3005
  type: "button",
3113
3006
  tone: "secondary",
3114
3007
  buttonStyle: "ghost",
3115
3008
  size: "sm",
3116
- onClick: () => _(e),
3117
- disabled: S,
3118
- children: [/* @__PURE__ */ G(Re, {
3119
- className: "size-icon-sm",
3120
- "aria-hidden": "true"
3121
- }), b.actions.restock]
3009
+ onClick: () => v(e),
3010
+ disabled: C,
3011
+ children: x.actions.restock
3122
3012
  })]
3123
3013
  }),
3124
- headerDivider: !0,
3125
- className: r("inventory-section-card--component @container/inventory-section-card w-full", v),
3126
- headerClassName: "@max-md/inventory-section-card:flex-col @max-md/inventory-section-card:items-stretch",
3127
- contentGap: "xl",
3014
+ className: r("inventory-section-card--component @container/inventory-section-card w-full", y),
3015
+ contentGap: "2xl",
3128
3016
  children: [
3129
- !!E("summary") && /* @__PURE__ */ G("div", {
3130
- className: "inventory-section-card--summary grid min-w-0 grid-cols-1 gap-space-md @md/inventory-section-card:grid-cols-2 @3xl/inventory-section-card:grid-cols-4",
3131
- children: F.map((e) => /* @__PURE__ */ G(Jn, { metric: e }, e.id))
3017
+ !!D("summary") && /* @__PURE__ */ q("div", {
3018
+ className: "inventory-section-card--summary grid min-w-0 grid-cols-1 gap-space-xl @md/inventory-section-card:grid-cols-2 @3xl/inventory-section-card:grid-cols-4",
3019
+ children: R.map((e) => /* @__PURE__ */ q(wn, { metric: e }, e.id))
3132
3020
  }),
3133
- !!E("identity") && /* @__PURE__ */ K(u, {
3134
- render: /* @__PURE__ */ G("section", {}),
3021
+ !!D("identity") && /* @__PURE__ */ J(d, {
3022
+ render: /* @__PURE__ */ q("section", {}),
3135
3023
  gap: "md",
3136
3024
  className: "inventory-section-card--identity",
3137
- children: [/* @__PURE__ */ G($, { children: b.sections.identity }), /* @__PURE__ */ K(l, { children: [!!O("sku") && /* @__PURE__ */ G(M, {
3138
- label: b.fields.sku,
3139
- error: a?.sku,
3140
- hint: b.hints.sku,
3141
- children: /* @__PURE__ */ G(k, {
3025
+ children: [/* @__PURE__ */ q($, { children: x.sections.identity }), /* @__PURE__ */ J(u, { children: [!!k("sku") && /* @__PURE__ */ q(j, {
3026
+ label: x.fields.sku,
3027
+ error: i?.sku,
3028
+ hint: x.hints.sku,
3029
+ children: /* @__PURE__ */ q(A, {
3142
3030
  value: e.sku ?? "",
3143
- onChange: (e) => A("sku", e.target.value),
3144
- placeholder: b.placeholders.sku,
3145
- startIcon: Fe,
3146
- disabled: S,
3147
- invalid: !!a?.sku
3031
+ onChange: (e) => F("sku", e.target.value),
3032
+ placeholder: x.placeholders.sku,
3033
+ disabled: C,
3034
+ invalid: !!i?.sku
3148
3035
  })
3149
- }), !!O("barcode") && /* @__PURE__ */ G(M, {
3150
- label: b.fields.barcode,
3151
- error: a?.barcode,
3152
- hint: b.hints.barcode,
3153
- children: /* @__PURE__ */ G(k, {
3036
+ }), !!k("barcode") && /* @__PURE__ */ q(j, {
3037
+ label: x.fields.barcode,
3038
+ error: i?.barcode,
3039
+ hint: x.hints.barcode,
3040
+ children: /* @__PURE__ */ q(A, {
3154
3041
  value: e.barcode ?? "",
3155
- onChange: (e) => A("barcode", e.target.value),
3156
- placeholder: b.placeholders.barcode,
3157
- startIcon: ve,
3158
- disabled: S,
3159
- invalid: !!a?.barcode
3042
+ onChange: (e) => F("barcode", e.target.value),
3043
+ placeholder: x.placeholders.barcode,
3044
+ disabled: C,
3045
+ invalid: !!i?.barcode
3160
3046
  })
3161
3047
  })] })]
3162
3048
  }),
3163
- !!E("tracking") && /* @__PURE__ */ K(u, {
3164
- render: /* @__PURE__ */ G("section", {}),
3049
+ !!D("tracking") && /* @__PURE__ */ J(d, {
3050
+ render: /* @__PURE__ */ q("section", {}),
3165
3051
  gap: "md",
3166
- className: "inventory-section-card--tracking border-t border-border/60 pt-space-xl",
3052
+ className: "inventory-section-card--tracking",
3167
3053
  children: [
3168
- /* @__PURE__ */ G($, { children: b.sections.tracking }),
3169
- !!O("trackQuantity") && /* @__PURE__ */ G(N, {
3170
- label: b.fields.trackQuantity,
3171
- description: b.hints.available,
3172
- value: C,
3173
- onValueChange: (e) => A("trackQuantity", e),
3174
- disabled: S
3054
+ /* @__PURE__ */ q($, { children: x.sections.tracking }),
3055
+ !!k("trackQuantity") && /* @__PURE__ */ q(M, {
3056
+ label: x.fields.trackQuantity,
3057
+ description: x.hints.available,
3058
+ value: w,
3059
+ onValueChange: (e) => F("trackQuantity", e),
3060
+ disabled: C
3175
3061
  }),
3176
- /* @__PURE__ */ K("div", {
3062
+ /* @__PURE__ */ J("div", {
3177
3063
  className: "inventory-section-card--tracking-grid grid min-w-0 grid-cols-1 gap-space-xl @md/inventory-section-card:grid-cols-2 @3xl/inventory-section-card:grid-cols-4",
3178
3064
  children: [
3179
- !!O("available") && /* @__PURE__ */ G(M, {
3180
- label: b.fields.available,
3181
- error: a?.available,
3182
- hint: b.hints.available,
3183
- children: /* @__PURE__ */ G(P, {
3065
+ !!k("available") && /* @__PURE__ */ q(j, {
3066
+ label: x.fields.available,
3067
+ error: i?.available,
3068
+ hint: x.hints.available,
3069
+ children: /* @__PURE__ */ q(L, {
3184
3070
  value: e.available ?? "",
3185
- onChange: (e) => A("available", e.target.value),
3186
- placeholder: b.placeholders.available,
3071
+ onChange: (e) => F("available", e.target.value),
3072
+ placeholder: x.placeholders.available,
3187
3073
  min: 0,
3188
3074
  decimalPlaces: 0,
3189
3075
  step: 1,
3190
- disabled: S || !C,
3191
- invalid: !!a?.available
3076
+ disabled: C || !w,
3077
+ invalid: !!i?.available
3192
3078
  })
3193
3079
  }),
3194
- !!O("committed") && /* @__PURE__ */ G(M, {
3195
- label: b.fields.committed,
3196
- error: a?.committed,
3197
- hint: b.hints.committed,
3198
- children: /* @__PURE__ */ G(P, {
3080
+ !!k("committed") && /* @__PURE__ */ q(j, {
3081
+ label: x.fields.committed,
3082
+ error: i?.committed,
3083
+ hint: x.hints.committed,
3084
+ children: /* @__PURE__ */ q(L, {
3199
3085
  value: e.committed ?? "",
3200
- onChange: (e) => A("committed", e.target.value),
3201
- placeholder: b.placeholders.committed,
3086
+ onChange: (e) => F("committed", e.target.value),
3087
+ placeholder: x.placeholders.committed,
3202
3088
  min: 0,
3203
3089
  decimalPlaces: 0,
3204
3090
  step: 1,
3205
- disabled: S || !C,
3206
- invalid: !!a?.committed
3091
+ disabled: C || !w,
3092
+ invalid: !!i?.committed
3207
3093
  })
3208
3094
  }),
3209
- !!O("incoming") && /* @__PURE__ */ G(M, {
3210
- label: b.fields.incoming,
3211
- error: a?.incoming,
3212
- hint: b.hints.incoming,
3213
- children: /* @__PURE__ */ G(P, {
3095
+ !!k("incoming") && /* @__PURE__ */ q(j, {
3096
+ label: x.fields.incoming,
3097
+ error: i?.incoming,
3098
+ hint: x.hints.incoming,
3099
+ children: /* @__PURE__ */ q(L, {
3214
3100
  value: e.incoming ?? "",
3215
- onChange: (e) => A("incoming", e.target.value),
3216
- placeholder: b.placeholders.incoming,
3101
+ onChange: (e) => F("incoming", e.target.value),
3102
+ placeholder: x.placeholders.incoming,
3217
3103
  min: 0,
3218
3104
  decimalPlaces: 0,
3219
3105
  step: 1,
3220
- disabled: S || !C,
3221
- invalid: !!a?.incoming
3106
+ disabled: C || !w,
3107
+ invalid: !!i?.incoming
3222
3108
  })
3223
3109
  }),
3224
- !!O("lowStockThreshold") && /* @__PURE__ */ G(M, {
3225
- label: b.fields.lowStockThreshold,
3226
- error: a?.lowStockThreshold,
3227
- hint: b.hints.lowStockThreshold,
3228
- children: /* @__PURE__ */ G(P, {
3110
+ !!k("lowStockThreshold") && /* @__PURE__ */ q(j, {
3111
+ label: x.fields.lowStockThreshold,
3112
+ error: i?.lowStockThreshold,
3113
+ hint: x.hints.lowStockThreshold,
3114
+ children: /* @__PURE__ */ q(L, {
3229
3115
  value: e.lowStockThreshold ?? "",
3230
- onChange: (e) => A("lowStockThreshold", e.target.value),
3231
- placeholder: b.placeholders.lowStockThreshold,
3116
+ onChange: (e) => F("lowStockThreshold", e.target.value),
3117
+ placeholder: x.placeholders.lowStockThreshold,
3232
3118
  min: 0,
3233
3119
  decimalPlaces: 0,
3234
3120
  step: 1,
3235
- disabled: S || !C,
3236
- invalid: !!a?.lowStockThreshold
3121
+ disabled: C || !w,
3122
+ invalid: !!i?.lowStockThreshold
3237
3123
  })
3238
3124
  })
3239
3125
  ]
3240
3126
  }),
3241
- !!O("inventoryPolicy") && /* @__PURE__ */ G(M, {
3242
- label: b.fields.inventoryPolicy,
3243
- error: a?.inventoryPolicy,
3244
- hint: b.hints.inventoryPolicy,
3245
- children: /* @__PURE__ */ G(te, {
3127
+ !!k("inventoryPolicy") && /* @__PURE__ */ q(j, {
3128
+ label: x.fields.inventoryPolicy,
3129
+ error: i?.inventoryPolicy,
3130
+ hint: x.hints.inventoryPolicy,
3131
+ children: /* @__PURE__ */ q(P, {
3246
3132
  columns: 2,
3247
3133
  value: e.inventoryPolicy ?? "deny",
3248
- onValueChange: (e) => A("inventoryPolicy", e),
3249
- disabled: S || !C,
3250
- invalid: !!a?.inventoryPolicy,
3134
+ onValueChange: (e) => F("inventoryPolicy", e),
3135
+ disabled: C || !w,
3136
+ invalid: !!i?.inventoryPolicy,
3251
3137
  options: [{
3252
3138
  value: "deny",
3253
- label: b.policyOptions.deny.label,
3254
- description: b.policyOptions.deny.description
3139
+ label: x.policyOptions.deny.label,
3140
+ description: x.policyOptions.deny.description
3255
3141
  }, {
3256
3142
  value: "continue",
3257
- label: b.policyOptions.continue.label,
3258
- description: b.policyOptions.continue.description
3143
+ label: x.policyOptions.continue.label,
3144
+ description: x.policyOptions.continue.description
3259
3145
  }]
3260
3146
  })
3261
3147
  })
3262
3148
  ]
3263
3149
  }),
3264
- !!E("location") && /* @__PURE__ */ K(u, {
3265
- render: /* @__PURE__ */ G("section", {}),
3150
+ !!D("location") && /* @__PURE__ */ J(d, {
3151
+ render: /* @__PURE__ */ q("section", {}),
3266
3152
  gap: "md",
3267
- className: "inventory-section-card--location border-t border-border/60 pt-space-xl",
3268
- children: [/* @__PURE__ */ G($, { children: b.sections.location }), /* @__PURE__ */ K(l, { children: [!!O("locationId") && /* @__PURE__ */ G(M, {
3269
- label: b.fields.locationId,
3270
- error: a?.locationId,
3271
- hint: b.hints.locationId,
3272
- children: f.length > 0 ? /* @__PURE__ */ G(ee, {
3153
+ className: "inventory-section-card--location",
3154
+ children: [/* @__PURE__ */ q($, { children: x.sections.location }), /* @__PURE__ */ J(u, { children: [!!k("locationId") && /* @__PURE__ */ q(j, {
3155
+ label: x.fields.locationId,
3156
+ error: i?.locationId,
3157
+ hint: x.hints.locationId,
3158
+ children: f.length > 0 ? /* @__PURE__ */ q(N, {
3273
3159
  value: e.locationId ?? null,
3274
- onValueChange: (e) => A("locationId", e),
3160
+ onValueChange: (e) => F("locationId", e),
3275
3161
  options: f,
3276
- placeholder: b.placeholders.locationId,
3277
- disabled: S,
3278
- invalid: !!a?.locationId,
3162
+ placeholder: x.placeholders.locationId,
3163
+ disabled: C,
3164
+ invalid: !!i?.locationId,
3279
3165
  allowClear: !0
3280
- }) : /* @__PURE__ */ G(k, {
3166
+ }) : /* @__PURE__ */ q(A, {
3281
3167
  value: e.locationId ?? "",
3282
- onChange: (e) => A("locationId", e.target.value),
3283
- placeholder: b.placeholders.locationId,
3284
- disabled: S,
3285
- invalid: !!a?.locationId
3168
+ onChange: (e) => F("locationId", e.target.value),
3169
+ placeholder: x.placeholders.locationId,
3170
+ disabled: C,
3171
+ invalid: !!i?.locationId
3286
3172
  })
3287
- }), !!O("binLocation") && /* @__PURE__ */ G(M, {
3288
- label: b.fields.binLocation,
3289
- error: a?.binLocation,
3290
- hint: b.hints.binLocation,
3291
- children: /* @__PURE__ */ G(k, {
3173
+ }), !!k("binLocation") && /* @__PURE__ */ q(j, {
3174
+ label: x.fields.binLocation,
3175
+ error: i?.binLocation,
3176
+ hint: x.hints.binLocation,
3177
+ children: /* @__PURE__ */ q(A, {
3292
3178
  value: e.binLocation ?? "",
3293
- onChange: (e) => A("binLocation", e.target.value),
3294
- placeholder: b.placeholders.binLocation,
3295
- disabled: S,
3296
- invalid: !!a?.binLocation
3179
+ onChange: (e) => F("binLocation", e.target.value),
3180
+ placeholder: x.placeholders.binLocation,
3181
+ disabled: C,
3182
+ invalid: !!i?.binLocation
3297
3183
  })
3298
3184
  })] })]
3299
3185
  }),
3300
- !!E("shipping") && /* @__PURE__ */ K(u, {
3301
- render: /* @__PURE__ */ G("section", {}),
3186
+ !!D("shipping") && /* @__PURE__ */ J(d, {
3187
+ render: /* @__PURE__ */ q("section", {}),
3302
3188
  gap: "md",
3303
- className: "inventory-section-card--shipping border-t border-border/60 pt-space-xl",
3189
+ className: "inventory-section-card--shipping",
3304
3190
  children: [
3305
- /* @__PURE__ */ G($, { children: b.sections.shipping }),
3306
- !!O("requiresShipping") && /* @__PURE__ */ G(N, {
3307
- label: b.fields.requiresShipping,
3308
- description: b.hints.weight,
3309
- value: w,
3310
- onValueChange: (e) => A("requiresShipping", e),
3311
- disabled: S
3191
+ /* @__PURE__ */ q($, { children: x.sections.shipping }),
3192
+ !!k("requiresShipping") && /* @__PURE__ */ q(M, {
3193
+ label: x.fields.requiresShipping,
3194
+ description: x.hints.weight,
3195
+ value: T,
3196
+ onValueChange: (e) => F("requiresShipping", e),
3197
+ disabled: C
3312
3198
  }),
3313
- !!O("weight") && /* @__PURE__ */ G(M, {
3314
- label: b.fields.weight,
3315
- error: a?.weight ?? a?.weightUnit,
3316
- hint: b.hints.weight,
3317
- children: /* @__PURE__ */ G(re, {
3199
+ !!k("weight") && /* @__PURE__ */ q(j, {
3200
+ label: x.fields.weight,
3201
+ error: i?.weight ?? i?.weightUnit,
3202
+ hint: x.hints.weight,
3203
+ children: /* @__PURE__ */ q(te, {
3318
3204
  value: e.weight ?? "",
3319
3205
  unit: e.weightUnit ?? "kg",
3320
- onChange: (e) => A("weight", e.target.value),
3321
- onUnitChange: (e) => A("weightUnit", e),
3322
- disabled: T,
3323
- invalid: !!a?.weight || !!a?.weightUnit,
3206
+ onChange: (e) => F("weight", e.target.value),
3207
+ onUnitChange: (e) => F("weightUnit", e),
3208
+ disabled: E,
3209
+ invalid: !!i?.weight || !!i?.weightUnit,
3324
3210
  decimalPlaces: 2,
3325
3211
  min: 0
3326
3212
  })
3327
3213
  })
3328
3214
  ]
3329
3215
  }),
3330
- !!E("customs") && /* @__PURE__ */ K(u, {
3331
- render: /* @__PURE__ */ G("section", {}),
3216
+ !!D("customs") && /* @__PURE__ */ J(d, {
3217
+ render: /* @__PURE__ */ q("section", {}),
3332
3218
  gap: "md",
3333
- className: "inventory-section-card--customs border-t border-border/60 pt-space-xl",
3334
- children: [/* @__PURE__ */ G($, { children: b.sections.customs }), /* @__PURE__ */ K(l, { children: [!!O("countryOfOrigin") && /* @__PURE__ */ G(M, {
3335
- label: b.fields.countryOfOrigin,
3336
- error: a?.countryOfOrigin,
3337
- hint: b.hints.countryOfOrigin,
3338
- children: p.length > 0 ? /* @__PURE__ */ G(ee, {
3219
+ className: "inventory-section-card--customs",
3220
+ children: [/* @__PURE__ */ q($, { children: x.sections.customs }), /* @__PURE__ */ J(u, { children: [!!k("countryOfOrigin") && /* @__PURE__ */ q(j, {
3221
+ label: x.fields.countryOfOrigin,
3222
+ error: i?.countryOfOrigin,
3223
+ hint: x.hints.countryOfOrigin,
3224
+ children: m.length > 0 ? /* @__PURE__ */ q(N, {
3339
3225
  value: e.countryOfOrigin ?? null,
3340
- onValueChange: (e) => A("countryOfOrigin", e),
3341
- options: p,
3342
- placeholder: b.placeholders.countryOfOrigin,
3343
- disabled: T,
3344
- invalid: !!a?.countryOfOrigin,
3226
+ onValueChange: (e) => F("countryOfOrigin", e),
3227
+ options: m,
3228
+ placeholder: x.placeholders.countryOfOrigin,
3229
+ disabled: E,
3230
+ invalid: !!i?.countryOfOrigin,
3345
3231
  allowClear: !0
3346
- }) : /* @__PURE__ */ G(k, {
3232
+ }) : /* @__PURE__ */ q(A, {
3347
3233
  value: e.countryOfOrigin ?? "",
3348
- onChange: (e) => A("countryOfOrigin", e.target.value),
3349
- placeholder: b.placeholders.countryOfOrigin,
3350
- disabled: T,
3351
- invalid: !!a?.countryOfOrigin
3234
+ onChange: (e) => F("countryOfOrigin", e.target.value),
3235
+ placeholder: x.placeholders.countryOfOrigin,
3236
+ disabled: E,
3237
+ invalid: !!i?.countryOfOrigin
3352
3238
  })
3353
- }), !!O("hsCode") && /* @__PURE__ */ G(M, {
3354
- label: b.fields.hsCode,
3355
- error: a?.hsCode,
3356
- hint: b.hints.hsCode,
3357
- children: /* @__PURE__ */ G(k, {
3239
+ }), !!k("hsCode") && /* @__PURE__ */ q(j, {
3240
+ label: x.fields.hsCode,
3241
+ error: i?.hsCode,
3242
+ hint: x.hints.hsCode,
3243
+ children: /* @__PURE__ */ q(A, {
3358
3244
  value: e.hsCode ?? "",
3359
- onChange: (e) => A("hsCode", e.target.value),
3360
- placeholder: b.placeholders.hsCode,
3361
- disabled: T,
3362
- invalid: !!a?.hsCode
3245
+ onChange: (e) => F("hsCode", e.target.value),
3246
+ placeholder: x.placeholders.hsCode,
3247
+ disabled: E,
3248
+ invalid: !!i?.hsCode
3363
3249
  })
3364
3250
  })] })]
3365
3251
  }),
3366
- !!E("tags") && !!O("tags") && /* @__PURE__ */ K(u, {
3367
- render: /* @__PURE__ */ G("section", {}),
3252
+ !!D("tags") && !!k("tags") && /* @__PURE__ */ J(d, {
3253
+ render: /* @__PURE__ */ q("section", {}),
3368
3254
  gap: "md",
3369
- className: "inventory-section-card--tags border-t border-border/60 pt-space-xl",
3370
- children: [/* @__PURE__ */ G($, { children: b.sections.tags }), /* @__PURE__ */ G(M, {
3371
- label: b.fields.tags,
3372
- error: a?.tags,
3373
- hint: b.hints.tags,
3374
- children: /* @__PURE__ */ G(ne, {
3255
+ className: "inventory-section-card--tags",
3256
+ children: [/* @__PURE__ */ q($, { children: x.sections.tags }), /* @__PURE__ */ q(j, {
3257
+ label: x.fields.tags,
3258
+ error: i?.tags,
3259
+ hint: x.hints.tags,
3260
+ children: /* @__PURE__ */ q(ee, {
3375
3261
  value: e.tags ?? [],
3376
- onValueChange: (e) => A("tags", e),
3377
- recommendations: m,
3378
- maxTags: h,
3379
- showMaxTags: h !== void 0,
3380
- disabled: S,
3381
- invalid: !!a?.tags,
3382
- strings: b.tagInput
3262
+ onValueChange: (e) => F("tags", e),
3263
+ recommendations: h,
3264
+ maxTags: g,
3265
+ showMaxTags: g !== void 0,
3266
+ disabled: C,
3267
+ invalid: !!i?.tags,
3268
+ strings: x.tagInput
3383
3269
  })
3384
3270
  })]
3385
3271
  })
3386
3272
  ]
3387
3273
  });
3388
3274
  }
3389
- Yn.displayName = "InventorySectionCard";
3275
+ Tn.displayName = "InventorySectionCard";
3390
3276
  //#endregion
3391
- export { Ft as AddressCard, Qe as BookingCalendarEventCard, Ut as CartSummaryCard, Kt as CouponInputCard, en as DEFAULT_SEO_LISTING_LIMITS, it as DiscountStackPreview, bt as GiftcardCard, Et as InventoryLevel, Yn as InventorySectionCard, jn as InvoiceHeader, Rn as InvoiceLineItems, On as InvoiceMini, et as LoyaltyPoints, Yt as OrderStatusCard, Bn as OrderTimeline, $t as PaymentMethod, Vn as PaymentTimeline, le as Receipt, ue as ReceiptItems, Nt as RefundStatusCard, Tn as SeoListingCard, st as ShipmentTracking, At as SubscriptionSummaryCard, Ot as TaxBreakdownCard, Xe as UpcomingBookingRow, wt as VendorProfileCard, Rt as VoucherEntry, dn as calculateSeoListingScore, Pt as defaultAddressCardStrings, zt as defaultCartSummaryStrings, Wt as defaultCouponInputStrings, rt as defaultDiscountStackStrings, Tt as defaultInventoryLevelStrings, Hn as defaultInventorySectionStrings, $e as defaultLoyaltyPointsStrings, qt as defaultOrderStatusStrings, Xt as defaultPaymentMethodStrings, jt as defaultRefundStatusStrings, fn as defaultSeoListingCardStrings, ot as defaultShipmentTrackingStrings, kt as defaultSubscriptionSummaryStrings, Dt as defaultTaxBreakdownStrings, xt as defaultVendorProfileStrings, It as defaultVoucherEntryStrings, Q as getSeoPermalinkPath, on as getSeoPermalinkSlug };
3277
+ export { gt as AddressCard, Ne as BookingCalendarEventCard, wt as CartSummaryCard, Dt as CouponInputCard, Ft as DEFAULT_SEO_LISTING_LIMITS, ze as DiscountStackPreview, tt as GiftcardCard, st as InventoryLevel, Tn as InventorySectionCard, ln as InvoiceHeader, gn as InvoiceLineItems, on as InvoiceMini, Fe as LoyaltyPoints, At as OrderStatusCard, vn as OrderTimeline, Pt as PaymentMethod, yn as PaymentTimeline, oe as Receipt, se as ReceiptItems, mt as RefundStatusCard, nn as SeoListingCard, He as ShipmentTracking, dt as SubscriptionSummaryCard, lt as TaxBreakdownCard, je as UpcomingBookingRow, at as VendorProfileCard, yt as VoucherEntry, Gt as calculateSeoListingScore, ht as defaultAddressCardStrings, bt as defaultCartSummaryStrings, Tt as defaultCouponInputStrings, Re as defaultDiscountStackStrings, ot as defaultInventoryLevelStrings, bn as defaultInventorySectionStrings, Pe as defaultLoyaltyPointsStrings, Ot as defaultOrderStatusStrings, jt as defaultPaymentMethodStrings, ft as defaultRefundStatusStrings, Kt as defaultSeoListingCardStrings, Ve as defaultShipmentTrackingStrings, ut as defaultSubscriptionSummaryStrings, ct as defaultTaxBreakdownStrings, nt as defaultVendorProfileStrings, _t as defaultVoucherEntryStrings, Q as getSeoPermalinkPath, Bt as getSeoPermalinkSlug };
3392
3278
 
3393
3279
  //# sourceMappingURL=commerce.js.map