themelia-ui 3.0.0 → 3.2.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 (746) hide show
  1. package/.agents/skills/themelia-ui/SKILL.md +60 -33
  2. package/.agents/skills/themelia-ui/manifest.json +23 -0
  3. package/.agents/skills/themelia-ui/references/api-compatibility.md +5 -4
  4. package/.agents/skills/themelia-ui/references/blocks.md +123 -0
  5. package/.agents/skills/themelia-ui/references/composition-ladder.md +8 -8
  6. package/.agents/skills/themelia-ui/references/composition.md +100 -19
  7. package/.agents/skills/themelia-ui/references/forms.md +23 -3
  8. package/.agents/skills/themelia-ui/references/framework-wiring.md +41 -13
  9. package/.agents/skills/themelia-ui/references/i18n.md +4 -2
  10. package/.agents/skills/themelia-ui/references/imports.md +104 -104
  11. package/.agents/skills/themelia-ui/references/installation.md +60 -31
  12. package/.agents/skills/themelia-ui/references/migration.md +156 -5
  13. package/.agents/skills/themelia-ui/references/provider-and-scoping.md +37 -25
  14. package/.agents/skills/themelia-ui/references/reference-workflows.md +43 -0
  15. package/.agents/skills/themelia-ui/references/structure-and-spacing.md +147 -0
  16. package/.agents/skills/themelia-ui/references/theming.md +174 -131
  17. package/.agents/skills/themelia-ui/references/troubleshooting.md +88 -30
  18. package/.agents/skills/themelia-ui/references/verification.md +60 -5
  19. package/CHANGELOG.md +212 -0
  20. package/README.md +48 -60
  21. package/dist/accordion-CHuzMmWL.js +143 -0
  22. package/dist/{action-menu-BNLURfMK.js → action-menu-BwiL_F6I.js} +35 -33
  23. package/dist/{alert-dialog-BMVo6Z-8.js → alert-dialog-Cg2HhuBe.js} +1 -1
  24. package/dist/avatar-Dc_BNYfB.js +93 -0
  25. package/dist/badge-VlJVZjdm.js +45 -0
  26. package/dist/base/accordion.js +1 -1
  27. package/dist/base/action-menu.js +1 -1
  28. package/dist/base/alert-dialog.js +1 -1
  29. package/dist/base/aspect-ratio.js +3 -1
  30. package/dist/base/avatar.js +1 -1
  31. package/dist/base/badge.js +2 -2
  32. package/dist/base/batch-action-bar.js +1 -1
  33. package/dist/base/buttons.js +1 -1
  34. package/dist/base/cards.js +1 -1
  35. package/dist/base/carousel.js +6 -4
  36. package/dist/base/chart.js +1 -1
  37. package/dist/base/choice-inputs.js +1 -1
  38. package/dist/base/combobox.js +1 -1
  39. package/dist/base/command.js +1 -1
  40. package/dist/base/context-menu.js +22 -21
  41. package/dist/base/copyable.js +1 -1
  42. package/dist/base/date-pickers.js +1 -1
  43. package/dist/base/dialog.js +1 -1
  44. package/dist/base/display.js +1 -1
  45. package/dist/base/dropdown-menu.js +1 -1
  46. package/dist/base/feedback.js +1 -1
  47. package/dist/base/forms-numeric.js +1 -1
  48. package/dist/base/forms.js +1 -1
  49. package/dist/base/hover-card.js +26 -23
  50. package/dist/base/input-group.js +1 -1
  51. package/dist/base/item.js +1 -1
  52. package/dist/base/label.js +1 -1
  53. package/dist/base/menubar.js +20 -14
  54. package/dist/base/navigation-menu.js +47 -38
  55. package/dist/base/navigation.js +1 -1
  56. package/dist/base/otp-input.js +36 -30
  57. package/dist/base/overlay.js +1 -1
  58. package/dist/base/popover-menu.js +1 -1
  59. package/dist/base/popover.js +1 -1
  60. package/dist/base/qr-code.js +51 -47
  61. package/dist/base/repeaters.js +1 -1
  62. package/dist/base/resizable.js +2 -0
  63. package/dist/base/sheet.js +1 -1
  64. package/dist/base/sidebar.js +1 -1
  65. package/dist/base/skeleton.js +1 -1
  66. package/dist/base/spinner.js +1 -1
  67. package/dist/base/structure.js +1 -1
  68. package/dist/base/table.js +1 -1
  69. package/dist/base/text-inputs.js +1 -1
  70. package/dist/base/timeline.js +1 -1
  71. package/dist/base/toaster.js +1 -1
  72. package/dist/base/toggle.js +21 -15
  73. package/dist/base/toolbar.js +1 -1
  74. package/dist/base/tooltip.js +1 -1
  75. package/dist/base/typography.js +2 -2
  76. package/dist/base/upload.js +1 -1
  77. package/dist/base/value-inputs.js +1 -1
  78. package/dist/{batch-action-bar-BZYNKXdV.js → batch-action-bar-DZVMVW83.js} +11 -8
  79. package/dist/{admin/patterns → blocks/admin}/access.js +79 -76
  80. package/dist/blocks/admin/commerce.js +2493 -0
  81. package/dist/{patterns → blocks}/analytics.js +312 -303
  82. package/dist/{patterns → blocks}/onboarding.js +27 -23
  83. package/dist/{patterns → blocks}/timelines.js +1 -1
  84. package/dist/buttons-BX2JfL5X.js +173 -0
  85. package/dist/cards-Ddhz43Bz.js +279 -0
  86. package/dist/chart-BkK3Xm10.js +201 -0
  87. package/dist/choice-inputs-NwRxvmZN.js +694 -0
  88. package/dist/combobox-519ubijc.js +292 -0
  89. package/dist/command-JjApYFds.js +156 -0
  90. package/dist/comments-CCQ2QRaU.js +1443 -0
  91. package/dist/components/base/action-menu/action-menu.d.ts +1 -1
  92. package/dist/components/base/action-menu/action-menu.types.d.ts +2 -2
  93. package/dist/components/base/avatar/avatar.d.ts +5 -2
  94. package/dist/components/base/badge/badge.d.ts +10 -10
  95. package/dist/components/base/badge/badge.variants.d.ts +1 -2
  96. package/dist/components/base/badge/index.d.ts +1 -2
  97. package/dist/components/base/buttons/button.d.ts +9 -8
  98. package/dist/components/base/buttons/button.types.d.ts +2 -2
  99. package/dist/components/base/buttons/index.d.ts +1 -1
  100. package/dist/components/base/buttons/text-button.d.ts +1 -1
  101. package/dist/components/base/cards/card-actions.d.ts +1 -1
  102. package/dist/components/base/cards/card.d.ts +3 -1
  103. package/dist/components/base/cards/partials/card-header.d.ts +2 -1
  104. package/dist/components/base/choice-inputs/choice.types.d.ts +2 -2
  105. package/dist/components/base/choice-inputs/partials/choice-parts.d.ts +3 -3
  106. package/dist/components/base/command/command.d.ts +5 -2
  107. package/dist/components/base/display/icon-badge.d.ts +5 -3
  108. package/dist/components/base/display/index.d.ts +1 -1
  109. package/dist/components/base/display/metadata-list.d.ts +6 -6
  110. package/dist/components/base/display/metadata-value.d.ts +1 -1
  111. package/dist/components/base/display/separator.d.ts +2 -2
  112. package/dist/components/base/feedback/alert.d.ts +3 -2
  113. package/dist/components/base/feedback/empty.d.ts +5 -4
  114. package/dist/components/base/feedback/progress-circle.d.ts +2 -2
  115. package/dist/components/base/feedback/progress.d.ts +3 -1
  116. package/dist/components/base/forms/form-field.d.ts +2 -2
  117. package/dist/components/base/input-group/input-group.d.ts +8 -10
  118. package/dist/components/base/item/item.d.ts +2 -2
  119. package/dist/components/base/overlay/index.d.ts +1 -1
  120. package/dist/components/base/overlay/overlay.types.d.ts +7 -5
  121. package/dist/components/base/qr-code/qr-code.d.ts +4 -4
  122. package/dist/components/base/sheet/sheet.d.ts +1 -1
  123. package/dist/components/base/sidebar/sidebar.d.ts +9 -13
  124. package/dist/components/base/spinner/spinner.d.ts +2 -2
  125. package/dist/components/base/structure/adaptive-grid.d.ts +3 -3
  126. package/dist/components/base/structure/bleed.d.ts +4 -2
  127. package/dist/components/base/structure/grid.d.ts +10 -4
  128. package/dist/components/base/structure/index.d.ts +1 -1
  129. package/dist/components/base/structure/split.d.ts +4 -3
  130. package/dist/components/base/structure/stack.d.ts +5 -5
  131. package/dist/components/base/structure/structure.maps.d.ts +2 -1
  132. package/dist/components/base/structure/structure.types.d.ts +10 -4
  133. package/dist/components/base/toggle/toggle.d.ts +2 -2
  134. package/dist/components/base/toolbar/toolbar.d.ts +3 -3
  135. package/dist/components/base/typography/index.d.ts +2 -0
  136. package/dist/components/base/typography/rich-text/rich-text.variants.d.ts +9 -0
  137. package/dist/components/base/typography/text/index.d.ts +1 -0
  138. package/dist/components/base/typography/text/text.d.ts +15 -8
  139. package/dist/components/base/typography/text/text.variants.d.ts +41 -0
  140. package/dist/components/base/value-inputs/color-input.d.ts +1 -7
  141. package/dist/components/base/value-inputs/slider.d.ts +2 -7
  142. package/dist/components/{admin/patterns → blocks/admin}/commerce/vendor-profile.d.ts +2 -1
  143. package/dist/components/{patterns → blocks}/analytics/analytics.strings.d.ts +2 -5
  144. package/dist/components/features/actions/action-adapters.d.ts +3 -3
  145. package/dist/components/features/actions/actions.types.d.ts +3 -5
  146. package/dist/components/features/actions/index.d.ts +1 -1
  147. package/dist/components/features/activities/activities-feed.d.ts +1 -1
  148. package/dist/components/features/activities/activities.types.d.ts +4 -4
  149. package/dist/components/features/activities/activity-parts.d.ts +3 -3
  150. package/dist/components/features/activities/activity-row.d.ts +4 -4
  151. package/dist/components/features/activities/index.d.ts +1 -1
  152. package/dist/components/features/ai-chat/ai-chat.types.d.ts +10 -3
  153. package/dist/components/features/ai-chat/ai-message-surfaces.d.ts +1 -1
  154. package/dist/components/features/ai-chat/ai-work-surfaces.d.ts +1 -1
  155. package/dist/components/features/combobox/combobox.strings.d.ts +2 -2
  156. package/dist/components/features/combobox/fetching-combobox.d.ts +2 -1
  157. package/dist/components/features/combobox/resource-combobox.d.ts +3 -0
  158. package/dist/components/features/combobox/use-suggestions.d.ts +7 -0
  159. package/dist/components/features/event-calendar/event-calendar.types.d.ts +3 -0
  160. package/dist/components/features/media-library/index.d.ts +1 -1
  161. package/dist/components/features/media-library/media-library-parts.d.ts +4 -3
  162. package/dist/components/features/media-library/media-library-views.d.ts +4 -3
  163. package/dist/components/features/media-library/media-library.d.ts +1 -1
  164. package/dist/components/features/media-library/media-library.strings.d.ts +12 -13
  165. package/dist/components/features/media-library/media-library.types.d.ts +11 -9
  166. package/dist/components/features/media-library/media-resource-gallery.d.ts +1 -1
  167. package/dist/components/features/media-library/use-media-library.d.ts +1 -4
  168. package/dist/components/features/overlays/action-overlay-frame.d.ts +1 -1
  169. package/dist/components/features/overlays/index.d.ts +1 -1
  170. package/dist/components/features/overlays/overlay-parts.d.ts +3 -3
  171. package/dist/components/features/overlays/overlays.types.d.ts +8 -7
  172. package/dist/components/features/rich-text-editor/index.d.ts +0 -1
  173. package/dist/components/features/table/data-table-body.d.ts +1 -1
  174. package/dist/components/features/table/data-table-expanded-row.d.ts +27 -0
  175. package/dist/components/features/table/data-table-header.d.ts +1 -1
  176. package/dist/components/features/table/data-table-size.d.ts +1 -1
  177. package/dist/components/features/table/data-table.d.ts +1 -1
  178. package/dist/components/features/table/index.d.ts +1 -1
  179. package/dist/components/features/table/table-helpers.d.ts +9 -3
  180. package/dist/components/features/table/table.strings.d.ts +11 -0
  181. package/dist/components/features/table/table.types.d.ts +60 -2
  182. package/dist/components/features/theme-tweaker/index.d.ts +1 -1
  183. package/dist/components/features/theme-tweaker/theme-tweaker.strings.d.ts +1 -1
  184. package/dist/components/features/theme-tweaker/theme-tweaker.types.d.ts +6 -10
  185. package/dist/components/features/theme-tweaker/theme-tweaker.utils.d.ts +22 -6
  186. package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
  187. package/dist/components/layout/auth/auth.d.ts +1 -1
  188. package/dist/components/layout/auth/auth.types.d.ts +1 -1
  189. package/dist/components/primitives/value.d.ts +3 -1
  190. package/dist/containers-B8d8U9GS.js +2 -0
  191. package/dist/{copyable-H1TUEY-H.js → copyable-D9Okb1w6.js} +12 -11
  192. package/dist/core.css +2 -2
  193. package/dist/css/access.css +2 -1
  194. package/dist/css/accordion.css +2 -1
  195. package/dist/css/action-menu.css +2 -1
  196. package/dist/css/activities.css +2 -1
  197. package/dist/css/ai-chat.css +2 -1
  198. package/dist/css/analytics.css +2 -1
  199. package/dist/css/app-shell.css +2 -1
  200. package/dist/css/aspect-ratio.css +2 -1
  201. package/dist/css/async-preview.css +2 -1
  202. package/dist/css/auth.css +2 -1
  203. package/dist/css/avatar.css +2 -1
  204. package/dist/css/badge.css +2 -1
  205. package/dist/css/batch-action-bar.css +2 -1
  206. package/dist/css/buttons.css +2 -1
  207. package/dist/css/cards.css +2 -1
  208. package/dist/css/carousel.css +2 -1
  209. package/dist/css/chart.css +2 -1
  210. package/dist/css/choice-inputs.css +2 -1
  211. package/dist/css/combobox.css +2 -1
  212. package/dist/css/combobox2.css +2 -1
  213. package/dist/css/command.css +2 -1
  214. package/dist/css/comments.css +2 -1
  215. package/dist/css/commerce.css +2 -1
  216. package/dist/css/containers.css +2 -1
  217. package/dist/css/copyable.css +2 -1
  218. package/dist/css/data-view.css +2 -1
  219. package/dist/css/date-pickers.css +2 -1
  220. package/dist/css/display.css +2 -1
  221. package/dist/css/dropdown-menu.css +2 -1
  222. package/dist/css/event-calendar.css +2 -1
  223. package/dist/css/feedback.css +2 -1
  224. package/dist/css/filters.css +2 -1
  225. package/dist/css/forms-numeric.css +2 -1
  226. package/dist/css/forms.css +2 -1
  227. package/dist/css/global-search.css +2 -1
  228. package/dist/css/header.css +2 -1
  229. package/dist/css/hover-card.css +2 -1
  230. package/dist/css/input-group.css +2 -1
  231. package/dist/css/item.css +2 -1
  232. package/dist/css/kanban.css +2 -1
  233. package/dist/css/label.css +2 -1
  234. package/dist/css/map.css +2 -1
  235. package/dist/css/media-library.css +2 -1
  236. package/dist/css/mentions.css +2 -1
  237. package/dist/css/menubar.css +2 -1
  238. package/dist/css/navigation-menu.css +2 -1
  239. package/dist/css/navigation.css +2 -1
  240. package/dist/css/navigation2.css +2 -1
  241. package/dist/css/onboarding.css +2 -1
  242. package/dist/css/otp-input.css +2 -1
  243. package/dist/css/overlay.css +2 -1
  244. package/dist/css/overlays.css +2 -1
  245. package/dist/css/page.css +2 -1
  246. package/dist/css/popover-menu.css +2 -1
  247. package/dist/css/popover.css +2 -1
  248. package/dist/css/primitives.css +2 -1
  249. package/dist/css/products.css +2 -1
  250. package/dist/css/qr-code.css +2 -1
  251. package/dist/css/repeaters.css +2 -1
  252. package/dist/css/resizable.css +2 -1
  253. package/dist/css/resource-assignment.css +2 -1
  254. package/dist/css/resource.css +2 -1
  255. package/dist/css/rich-text-editor.css +2 -1
  256. package/dist/css/schema-form.css +2 -1
  257. package/dist/css/sidebar.css +2 -1
  258. package/dist/css/sidebar2.css +2 -1
  259. package/dist/css/skeleton.css +2 -1
  260. package/dist/css/spinner.css +2 -1
  261. package/dist/css/structure.css +2 -1
  262. package/dist/css/sync.css +2 -1
  263. package/dist/css/table.css +2 -1
  264. package/dist/css/table2.css +2 -1
  265. package/dist/css/text-inputs.css +2 -1
  266. package/dist/css/theme-tweaker.css +2 -1
  267. package/dist/css/timeline.css +2 -1
  268. package/dist/css/timelines.css +2 -1
  269. package/dist/css/toaster.css +2 -1
  270. package/dist/css/toggle.css +2 -1
  271. package/dist/css/toolbar.css +2 -1
  272. package/dist/css/tooltip.css +2 -1
  273. package/dist/css/typography.css +2 -1
  274. package/dist/css/upload.css +2 -1
  275. package/dist/css/value-inputs.css +2 -1
  276. package/dist/css/workspace.css +2 -1
  277. package/dist/css-graph.json +1027 -0
  278. package/dist/date-pickers-BwCwKIVM.js +685 -0
  279. package/dist/{dialog-CtFCuTUF.js → dialog-CAnwRNrm.js} +1 -1
  280. package/dist/display-a7AoX_u7.js +664 -0
  281. package/dist/dropdown-menu-Br8kvjrF.js +235 -0
  282. package/dist/empty.js +0 -0
  283. package/dist/features/actions.js +6 -6
  284. package/dist/features/activities.js +219 -216
  285. package/dist/features/ai-chat.js +593 -565
  286. package/dist/features/async-preview.js +105 -286
  287. package/dist/features/combobox.js +328 -314
  288. package/dist/features/comments.js +1 -1
  289. package/dist/features/data-view.js +56 -55
  290. package/dist/features/event-calendar.js +189 -185
  291. package/dist/features/filters.js +1 -1
  292. package/dist/features/global-search.js +259 -260
  293. package/dist/features/kanban.js +39 -37
  294. package/dist/features/map.js +357 -354
  295. package/dist/features/media-library.js +931 -931
  296. package/dist/features/mentions.js +1 -1
  297. package/dist/features/overlays.js +1 -1
  298. package/dist/features/products.js +950 -942
  299. package/dist/features/resource-assignment.js +39 -37
  300. package/dist/features/resource.js +70 -71
  301. package/dist/features/rich-text-editor.js +2 -2
  302. package/dist/features/schema-form.js +342 -338
  303. package/dist/features/sync.js +14 -12
  304. package/dist/features/table.js +1 -1
  305. package/dist/features/theme-tweaker.js +1002 -962
  306. package/dist/feedback-D4qVsKlD.js +430 -0
  307. package/dist/{filters-DOLKRSmb.js → filters-BhsTkWpZ.js} +386 -383
  308. package/dist/forms-C0WeNPFF.js +250 -0
  309. package/dist/forms-numeric-IwQ1ltNf.js +582 -0
  310. package/dist/hooks/use-native-dialog.d.ts +1 -1
  311. package/dist/index.js +2 -2
  312. package/dist/input-group-HS_Z0Ei_.js +119 -0
  313. package/dist/item-M2pmpWXh.js +150 -0
  314. package/dist/{label-DumoMDm6.js → label-HOBXAscw.js} +7 -5
  315. package/dist/layout/app-shell.js +4 -2
  316. package/dist/layout/auth.js +102 -100
  317. package/dist/layout/header.js +190 -180
  318. package/dist/layout/navigation.js +1 -1
  319. package/dist/layout/page.js +18 -16
  320. package/dist/layout/settings.js +2 -2
  321. package/dist/layout/sidebar.js +50 -46
  322. package/dist/layout/workspace.js +71 -69
  323. package/dist/lib/action-presentation.d.ts +3 -3
  324. package/dist/lib/component-vocabulary.d.ts +2 -2
  325. package/dist/lib/css-length.d.ts +2 -0
  326. package/dist/lib/responsive.d.ts +1 -1
  327. package/dist/lib/theming/index.d.ts +1 -0
  328. package/dist/lib/theming/recipes.d.ts +2 -2
  329. package/dist/lib/theming/themes/dense.d.ts +3 -0
  330. package/dist/lib/theming/themes/editorial.d.ts +3 -0
  331. package/dist/lib/theming/themes/index.d.ts +8 -0
  332. package/dist/lib/theming/themes/pair.d.ts +7 -0
  333. package/dist/lib/theming/themes/sharp.d.ts +3 -0
  334. package/dist/lib/theming/themes/soft.d.ts +3 -0
  335. package/dist/lib/theming/themes/types.d.ts +12 -0
  336. package/dist/lib/ui-provider/index.d.ts +1 -1
  337. package/dist/lib/ui-provider/scope.d.ts +5 -8
  338. package/dist/lib/ui-provider/tokens.d.ts +11 -3
  339. package/dist/lib/ui-provider/tokens.generated.d.ts +6 -4
  340. package/dist/lib/ui-provider/types.d.ts +17 -19
  341. package/dist/lib/ui-provider/ui-scope.d.ts +1 -1
  342. package/dist/{mentions-BbsEHlcH.js → mentions-BOxbigwp.js} +113 -111
  343. package/dist/navigation-Bgu7Vc0M.js +622 -0
  344. package/dist/navigation-DiYACqpE.js +216 -0
  345. package/dist/overlay-BuQOl8aP.js +356 -0
  346. package/dist/{overlays-DvVoS3td.js → overlays-1sULyytH.js} +77 -75
  347. package/dist/popover-CA7SP_iz.js +127 -0
  348. package/dist/popover-menu-QXgQeWeG.js +192 -0
  349. package/dist/{primitives-D0bdDozz.js → primitives-BskKlf35.js} +181 -178
  350. package/dist/primitives.js +1 -1
  351. package/dist/profiles/admin.json +6 -36
  352. package/dist/profiles/general.json +6 -96
  353. package/dist/repeaters-CeH20dvr.js +445 -0
  354. package/dist/rich-text-editor-D_Ppm8yh.js +491 -0
  355. package/dist/{sheet-CKcmRbJ9.js → sheet-CJ1-OAla.js} +3 -3
  356. package/dist/sidebar-D8uGqxio.js +421 -0
  357. package/dist/skeleton-BTKNKTdj.js +173 -0
  358. package/dist/spinner-Tc1QCnxM.js +30 -0
  359. package/dist/{structure-D0WGQAP3.js → structure-CynEZ-OY.js} +15 -23
  360. package/dist/style.css +1 -1
  361. package/dist/styles/TOKENS.md +116 -275
  362. package/dist/styles/animation.css +114 -0
  363. package/dist/styles/base.css +7 -6
  364. package/dist/styles/fields.css +45 -63
  365. package/dist/styles/focus.css +12 -0
  366. package/dist/styles/forced-colors.css +11 -10
  367. package/dist/styles/index.css +23 -30
  368. package/dist/styles/map.css +45 -34
  369. package/dist/styles/mentions.css +14 -52
  370. package/dist/styles/overlays.css +7 -7
  371. package/dist/styles/tailwind.css +76 -127
  372. package/dist/styles/targets.css +3 -3
  373. package/dist/styles/theme/colour.css +86 -0
  374. package/dist/styles/theme/density.css +31 -0
  375. package/dist/styles/theme/elevation.css +9 -0
  376. package/dist/styles/theme/layout.css +18 -0
  377. package/dist/styles/theme/motion.css +18 -0
  378. package/dist/styles/theme/shape.css +12 -0
  379. package/dist/styles/theme/size.css +10 -0
  380. package/dist/styles/theme/spacing.css +11 -0
  381. package/dist/styles/theme/typography.css +20 -0
  382. package/dist/styles/tone.css +61 -0
  383. package/dist/table-B7dtIFUx.js +1262 -0
  384. package/dist/table-Ds_eO9av.js +191 -0
  385. package/dist/tailwind.css +76 -127
  386. package/dist/text-inputs-BboE77nZ.js +395 -0
  387. package/dist/theming-C5ygF5uf.js +292 -0
  388. package/dist/theming.js +2 -2
  389. package/dist/{timeline-BdaGRyj-.js → timeline-BR_jNgvz.js} +57 -49
  390. package/dist/{timelines-BB7550mz.js → timelines-DXG1BfIN.js} +69 -67
  391. package/dist/{toaster-bBMgXm8z.js → toaster-CXL8L7Mm.js} +106 -99
  392. package/dist/tokens.json +1027 -636
  393. package/dist/toolbar-DBK-c4yy.js +74 -0
  394. package/dist/tooltip-BPYP-jUm.js +76 -0
  395. package/dist/{typography-BkxEiwQ1.js → typography-DmeR05Er.js} +87 -53
  396. package/dist/{ui-provider-Cmoq6i_D.js → ui-provider-DpzLUD12.js} +117 -69
  397. package/dist/ui-provider.js +1 -1
  398. package/dist/upload-CYuoJykZ.js +968 -0
  399. package/dist/use-async-preview-BFwf9ElY.js +188 -0
  400. package/dist/value-inputs-ng8aVJJZ.js +728 -0
  401. package/docs/README.md +13 -3
  402. package/docs/build/browser-composition-fixture.ts +28 -0
  403. package/docs/build/recipes.md +11484 -10723
  404. package/docs/generated/component-index.json +9809 -9169
  405. package/docs/generated/components/INDEX.md +5 -5
  406. package/docs/generated/components/base--accordion.md +51 -2
  407. package/docs/generated/components/base--action-menu.md +14 -15
  408. package/docs/generated/components/base--alert-dialog.md +3 -4
  409. package/docs/generated/components/base--aspect-ratio.md +3 -4
  410. package/docs/generated/components/base--avatar.md +7 -7
  411. package/docs/generated/components/base--badge.md +159 -27
  412. package/docs/generated/components/base--batch-action-bar.md +6 -7
  413. package/docs/generated/components/base--buttons.md +151 -47
  414. package/docs/generated/components/base--cards.md +107 -14
  415. package/docs/generated/components/base--carousel.md +1 -2
  416. package/docs/generated/components/base--chart.md +44 -8
  417. package/docs/generated/components/base--choice-inputs.md +10 -11
  418. package/docs/generated/components/base--combobox.md +3 -4
  419. package/docs/generated/components/base--command.md +6 -6
  420. package/docs/generated/components/base--context-menu.md +1 -2
  421. package/docs/generated/components/base--copyable.md +6 -7
  422. package/docs/generated/components/base--date-pickers.md +6 -7
  423. package/docs/generated/components/base--dialog.md +6 -7
  424. package/docs/generated/components/base--direction.md +1 -1
  425. package/docs/generated/components/base--display.md +234 -54
  426. package/docs/generated/components/base--dropdown-menu.md +6 -7
  427. package/docs/generated/components/base--feedback.md +71 -18
  428. package/docs/generated/components/base--forms-numeric.md +6 -7
  429. package/docs/generated/components/base--forms.md +84 -14
  430. package/docs/generated/components/base--hover-card.md +3 -4
  431. package/docs/generated/components/base--input-group.md +27 -30
  432. package/docs/generated/components/base--item.md +8 -9
  433. package/docs/generated/components/base--label.md +2 -3
  434. package/docs/generated/components/base--menubar.md +2 -4
  435. package/docs/generated/components/base--navigation-menu.md +2 -3
  436. package/docs/generated/components/base--navigation.md +2 -3
  437. package/docs/generated/components/base--otp-input.md +3 -4
  438. package/docs/generated/components/base--overlay.md +56 -47
  439. package/docs/generated/components/base--popover-menu.md +7 -8
  440. package/docs/generated/components/base--popover.md +9 -10
  441. package/docs/generated/components/base--qr-code.md +7 -8
  442. package/docs/generated/components/base--repeaters.md +6 -7
  443. package/docs/generated/components/base--resizable.md +2 -3
  444. package/docs/generated/components/base--sheet.md +12 -13
  445. package/docs/generated/components/base--sidebar.md +9 -11
  446. package/docs/generated/components/base--skeleton.md +6 -7
  447. package/docs/generated/components/base--slot.md +1 -1
  448. package/docs/generated/components/base--spinner.md +5 -7
  449. package/docs/generated/components/base--structure.md +320 -70
  450. package/docs/generated/components/base--table.md +61 -3
  451. package/docs/generated/components/base--text-inputs.md +17 -18
  452. package/docs/generated/components/base--timeline.md +45 -4
  453. package/docs/generated/components/base--toaster.md +43 -12
  454. package/docs/generated/components/base--toggle.md +11 -12
  455. package/docs/generated/components/base--toolbar.md +7 -8
  456. package/docs/generated/components/base--tooltip.md +5 -6
  457. package/docs/generated/components/base--typography.md +317 -32
  458. package/docs/generated/components/base--upload.md +8 -9
  459. package/docs/generated/components/base--value-inputs.md +9 -38
  460. package/docs/generated/components/{admin--patterns--access.md → blocks--admin--access.md} +15 -6
  461. package/docs/generated/components/{admin--patterns--commerce.md → blocks--admin--commerce.md} +40 -41
  462. package/docs/generated/components/{patterns--analytics.md → blocks--analytics.md} +57 -14
  463. package/docs/generated/components/{patterns--onboarding.md → blocks--onboarding.md} +6 -7
  464. package/docs/generated/components/{patterns--timelines.md → blocks--timelines.md} +6 -7
  465. package/docs/generated/components/features--actions.md +8 -18
  466. package/docs/generated/components/features--activities.md +31 -32
  467. package/docs/generated/components/features--ai-chat.md +15 -15
  468. package/docs/generated/components/features--async-preview.md +5 -6
  469. package/docs/generated/components/features--combobox.md +71 -5
  470. package/docs/generated/components/features--comments.md +0 -1
  471. package/docs/generated/components/features--data-view.md +63 -8
  472. package/docs/generated/components/features--event-calendar.md +1 -2
  473. package/docs/generated/components/features--filters.md +11 -2
  474. package/docs/generated/components/features--global-search.md +1 -2
  475. package/docs/generated/components/features--kanban.md +1 -2
  476. package/docs/generated/components/features--map.md +1 -2
  477. package/docs/generated/components/features--media-library.md +105 -38
  478. package/docs/generated/components/features--mentions.md +7 -7
  479. package/docs/generated/components/features--overlays.md +75 -22
  480. package/docs/generated/components/features--products.md +10 -11
  481. package/docs/generated/components/features--resource-assignment.md +2 -3
  482. package/docs/generated/components/features--resource.md +3 -4
  483. package/docs/generated/components/features--rich-text-editor.md +42 -13
  484. package/docs/generated/components/features--schema-form.md +1 -2
  485. package/docs/generated/components/features--sync.md +2 -3
  486. package/docs/generated/components/features--table.md +162 -12
  487. package/docs/generated/components/features--theme-tweaker.md +30 -15
  488. package/docs/generated/components/forms.md +2 -2
  489. package/docs/generated/components/layout--app-shell.md +41 -11
  490. package/docs/generated/components/layout--auth.md +8 -9
  491. package/docs/generated/components/layout--containers.md +40 -1
  492. package/docs/generated/components/layout--header.md +2 -3
  493. package/docs/generated/components/layout--navigation.md +0 -1
  494. package/docs/generated/components/layout--page.md +33 -5
  495. package/docs/generated/components/layout--settings.md +0 -1
  496. package/docs/generated/components/layout--sidebar.md +47 -7
  497. package/docs/generated/components/layout--workspace.md +3 -4
  498. package/docs/generated/components/primitives.md +128 -17
  499. package/docs/generated/components/theming.md +147 -4
  500. package/docs/generated/components/ui-provider.md +96 -78
  501. package/docs/generated/composition-ladder.md +8 -8
  502. package/docs/generated/consumer-contract.json +5736 -0
  503. package/docs/generated/imports.md +104 -104
  504. package/docs/generated/migration-broad-imports.json +267 -90
  505. package/docs/generated/migration-broad-imports.md +266 -101
  506. package/docs/generated/migration-codemod.json +365 -70
  507. package/docs/generated/migration.md +665 -95
  508. package/docs/generated/profiles.md +27 -27
  509. package/docs/generated/public-api.md +104 -102
  510. package/docs/generated/recipes.json +755 -810
  511. package/docs/generated/workflows/communications-overview/analytics/communications-reference.tsx +19 -0
  512. package/docs/generated/workflows/index.json +691 -0
  513. package/docs/generated/workflows/media-picking/media-library/media-picking-reference.tsx +63 -0
  514. package/docs/generated/workflows/media-picking/media-library/reference-data.ts +3 -0
  515. package/docs/generated/workflows/multi-section-form/form-workflow/multi-section-reference.tsx +46 -0
  516. package/docs/generated/workflows/nested-action-flow/action-overlays/nested-action-reference.tsx +39 -0
  517. package/docs/generated/workflows/record-detail/page-layout/record-detail-reference.tsx +24 -0
  518. package/docs/generated/workflows/resource-index/data-view/resource-index-reference.tsx +51 -0
  519. package/docs/generated/workflows/scoped-resource-selection/combobox/scoped-resource-reference.tsx +50 -0
  520. package/docs/generated/workflows/website-content-editor/media-library/reference-data.ts +3 -0
  521. package/docs/generated/workflows/website-content-editor/rich-text-editor/website-content-reference.tsx +33 -0
  522. package/docs/generated/workflows/workspace-navigation/app-shell/workspace-navigation-reference.tsx +26 -0
  523. package/docs/learn/api-compatibility.md +5 -4
  524. package/docs/learn/blocks.md +123 -0
  525. package/docs/learn/composition.md +100 -19
  526. package/docs/learn/forms.md +23 -3
  527. package/docs/learn/framework-wiring.md +41 -13
  528. package/docs/learn/i18n.md +4 -2
  529. package/docs/learn/installation.md +60 -31
  530. package/docs/learn/migration.md +156 -5
  531. package/docs/learn/provider-and-scoping.md +37 -25
  532. package/docs/learn/reference-workflows.md +43 -0
  533. package/docs/learn/structure-and-spacing.md +147 -0
  534. package/docs/learn/theming.md +174 -131
  535. package/docs/learn/troubleshooting.md +88 -30
  536. package/docs/learn/verification.md +60 -5
  537. package/package.json +42 -473
  538. package/scripts/consumer/codemod.mjs +50 -32
  539. package/scripts/consumer/contract-reader.mjs +42 -0
  540. package/scripts/consumer/css-scan.mjs +51 -0
  541. package/scripts/consumer/diagnose.mjs +136 -0
  542. package/scripts/consumer/find-component.mjs +30 -17
  543. package/scripts/consumer/install-skill.mjs +93 -11
  544. package/src/styles/TOKENS.md +116 -275
  545. package/dist/accordion-6YPJ9XRO.js +0 -135
  546. package/dist/admin/patterns/access.css +0 -15
  547. package/dist/admin/patterns/commerce.css +0 -29
  548. package/dist/admin/patterns/commerce.js +0 -2493
  549. package/dist/avatar-CS7zow2q.js +0 -85
  550. package/dist/badge-CxOuTfVr.js +0 -63
  551. package/dist/base/accordion.css +0 -3
  552. package/dist/base/action-menu.css +0 -6
  553. package/dist/base/alert-dialog.css +0 -4
  554. package/dist/base/aspect-ratio.css +0 -2
  555. package/dist/base/avatar.css +0 -4
  556. package/dist/base/badge.css +0 -2
  557. package/dist/base/batch-action-bar.css +0 -5
  558. package/dist/base/buttons.css +0 -4
  559. package/dist/base/cards.css +0 -13
  560. package/dist/base/carousel.css +0 -5
  561. package/dist/base/chart.css +0 -2
  562. package/dist/base/choice-inputs.css +0 -10
  563. package/dist/base/combobox.css +0 -3
  564. package/dist/base/command.css +0 -9
  565. package/dist/base/context-menu.css +0 -2
  566. package/dist/base/copyable.css +0 -6
  567. package/dist/base/date-pickers.css +0 -11
  568. package/dist/base/dialog.css +0 -4
  569. package/dist/base/display.css +0 -8
  570. package/dist/base/dropdown-menu.css +0 -2
  571. package/dist/base/feedback.css +0 -5
  572. package/dist/base/forms-numeric.css +0 -12
  573. package/dist/base/forms.css +0 -14
  574. package/dist/base/hover-card.css +0 -2
  575. package/dist/base/input-group.css +0 -6
  576. package/dist/base/item.css +0 -9
  577. package/dist/base/label.css +0 -3
  578. package/dist/base/menubar.css +0 -2
  579. package/dist/base/navigation-menu.css +0 -2
  580. package/dist/base/navigation.css +0 -12
  581. package/dist/base/otp-input.css +0 -9
  582. package/dist/base/overlay.css +0 -4
  583. package/dist/base/popover-menu.css +0 -11
  584. package/dist/base/popover.css +0 -3
  585. package/dist/base/qr-code.css +0 -2
  586. package/dist/base/repeaters.css +0 -18
  587. package/dist/base/resizable.css +0 -2
  588. package/dist/base/sheet.css +0 -4
  589. package/dist/base/sidebar.css +0 -12
  590. package/dist/base/skeleton.css +0 -9
  591. package/dist/base/spinner.css +0 -2
  592. package/dist/base/structure.css +0 -2
  593. package/dist/base/table.css +0 -3
  594. package/dist/base/text-inputs.css +0 -2
  595. package/dist/base/timeline.css +0 -9
  596. package/dist/base/toaster.css +0 -2
  597. package/dist/base/toggle.css +0 -2
  598. package/dist/base/toolbar.css +0 -5
  599. package/dist/base/tooltip.css +0 -2
  600. package/dist/base/typography.css +0 -2
  601. package/dist/base/upload.css +0 -10
  602. package/dist/base/value-inputs.css +0 -14
  603. package/dist/buttons-CqXKWty3.js +0 -179
  604. package/dist/cards-C6Ulbkw7.js +0 -271
  605. package/dist/chart-nomhJ87z.js +0 -193
  606. package/dist/choice-inputs-OUDn0kQw.js +0 -680
  607. package/dist/combobox-C8oP92bT.js +0 -266
  608. package/dist/command-Bp3B6pUu.js +0 -143
  609. package/dist/comments-CAnDlyXO.js +0 -1438
  610. package/dist/components/admin/patterns/index.d.ts +0 -2
  611. package/dist/components/features/rich-text-editor/exec-command-engine.d.ts +0 -2
  612. package/dist/components/patterns/index.d.ts +0 -3
  613. package/dist/css/styles.css +0 -1
  614. package/dist/date-pickers-DOwIT-Nk.js +0 -661
  615. package/dist/display-B3Q17h5z.js +0 -645
  616. package/dist/dropdown-menu-TyNLCLML.js +0 -223
  617. package/dist/features/actions.css +0 -11
  618. package/dist/features/activities.css +0 -25
  619. package/dist/features/ai-chat.css +0 -14
  620. package/dist/features/async-preview.css +0 -10
  621. package/dist/features/combobox.css +0 -12
  622. package/dist/features/comments.css +0 -24
  623. package/dist/features/data-view.css +0 -31
  624. package/dist/features/event-calendar.css +0 -17
  625. package/dist/features/filters.css +0 -24
  626. package/dist/features/global-search.css +0 -19
  627. package/dist/features/kanban.css +0 -7
  628. package/dist/features/map.css +0 -15
  629. package/dist/features/media-library.css +0 -27
  630. package/dist/features/mentions.css +0 -17
  631. package/dist/features/overlays.css +0 -11
  632. package/dist/features/products.css +0 -29
  633. package/dist/features/resource-assignment.css +0 -14
  634. package/dist/features/resource.css +0 -15
  635. package/dist/features/rich-text-editor.css +0 -8
  636. package/dist/features/schema-form.css +0 -22
  637. package/dist/features/sync.css +0 -11
  638. package/dist/features/table.css +0 -20
  639. package/dist/features/theme-tweaker.css +0 -27
  640. package/dist/feedback-DRerHGuV.js +0 -469
  641. package/dist/forms-CPrGGif_.js +0 -242
  642. package/dist/forms-numeric-CPVsL7Vf.js +0 -569
  643. package/dist/index.css +0 -3
  644. package/dist/input-group-BYe0rhoB.js +0 -126
  645. package/dist/item-B3yQ26as.js +0 -146
  646. package/dist/layout/app-shell.css +0 -13
  647. package/dist/layout/auth.css +0 -14
  648. package/dist/layout/containers.css +0 -2
  649. package/dist/layout/header.css +0 -20
  650. package/dist/layout/navigation.css +0 -11
  651. package/dist/layout/page.css +0 -15
  652. package/dist/layout/settings.css +0 -16
  653. package/dist/layout/sidebar.css +0 -16
  654. package/dist/layout/workspace.css +0 -15
  655. package/dist/navigation-CsqTA16F.js +0 -614
  656. package/dist/navigation-DzxzPuwg.js +0 -202
  657. package/dist/overlay-WQOsLd69.js +0 -345
  658. package/dist/patterns/analytics.css +0 -15
  659. package/dist/patterns/onboarding.css +0 -11
  660. package/dist/patterns/timelines.css +0 -11
  661. package/dist/popover-DriLnIFc.js +0 -123
  662. package/dist/popover-menu-C2UCMAe7.js +0 -189
  663. package/dist/primitives.css +0 -3
  664. package/dist/repeaters-DuP1N0nw.js +0 -438
  665. package/dist/rich-text-editor-BQXFe9oN.js +0 -595
  666. package/dist/sidebar-D0N6ckJL.js +0 -412
  667. package/dist/skeleton-DGR9df28.js +0 -172
  668. package/dist/spinner-CUAVFecI.js +0 -52
  669. package/dist/styles/FACTORS.md +0 -36
  670. package/dist/styles/SCOPES.md +0 -86
  671. package/dist/styles/themes/default.css +0 -164
  672. package/dist/styles/theming/animation.css +0 -143
  673. package/dist/styles/theming/colors.css +0 -97
  674. package/dist/styles/theming/feedback.css +0 -17
  675. package/dist/styles/theming/field.css +0 -21
  676. package/dist/styles/theming/focus.css +0 -88
  677. package/dist/styles/theming/layers.css +0 -13
  678. package/dist/styles/theming/layout.css +0 -21
  679. package/dist/styles/theming/motion.css +0 -42
  680. package/dist/styles/theming/overlay.css +0 -52
  681. package/dist/styles/theming/sizing.css +0 -118
  682. package/dist/styles/theming/text.css +0 -30
  683. package/dist/styles/theming/typography.css +0 -26
  684. package/dist/styles/tokens/components.css +0 -22
  685. package/dist/styles/tokens/foundation.css +0 -80
  686. package/dist/styles/tokens/layout.css +0 -19
  687. package/dist/styles/tokens/palette.css +0 -88
  688. package/dist/styles/tokens/primitives.css +0 -18
  689. package/dist/styles/tokens/states.css +0 -77
  690. package/dist/table-BC4qqsUb.js +0 -180
  691. package/dist/table-BHDpjajL.js +0 -982
  692. package/dist/text-inputs-DF_lD7pA.js +0 -385
  693. package/dist/theming-D6KRU7hO.js +0 -104
  694. package/dist/toolbar-DWRywF0R.js +0 -68
  695. package/dist/tooltip-t1VQQ2tZ.js +0 -73
  696. package/dist/upload-B38YZeFJ.js +0 -938
  697. package/dist/value-inputs-Q4ymjXlV.js +0 -716
  698. package/src/styles/FACTORS.md +0 -36
  699. package/src/styles/SCOPES.md +0 -86
  700. /package/dist/components/{admin/patterns → blocks/admin}/access/admin.strings.d.ts +0 -0
  701. /package/dist/components/{admin/patterns → blocks/admin}/access/credential-list.d.ts +0 -0
  702. /package/dist/components/{admin/patterns → blocks/admin}/access/index.d.ts +0 -0
  703. /package/dist/components/{admin/patterns → blocks/admin}/access/role-permissions.d.ts +0 -0
  704. /package/dist/components/{admin/patterns → blocks/admin}/access/sensitive-action.d.ts +0 -0
  705. /package/dist/components/{admin/patterns → blocks/admin}/commerce/account.d.ts +0 -0
  706. /package/dist/components/{admin/patterns → blocks/admin}/commerce/address-lines.d.ts +0 -0
  707. /package/dist/components/{admin/patterns → blocks/admin}/commerce/booking.d.ts +0 -0
  708. /package/dist/components/{admin/patterns → blocks/admin}/commerce/cart.d.ts +0 -0
  709. /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.strings.d.ts +0 -0
  710. /package/dist/components/{admin/patterns → blocks/admin}/commerce/commerce.types.d.ts +0 -0
  711. /package/dist/components/{admin/patterns → blocks/admin}/commerce/format-amount.d.ts +0 -0
  712. /package/dist/components/{admin/patterns → blocks/admin}/commerce/index.d.ts +0 -0
  713. /package/dist/components/{admin/patterns → blocks/admin}/commerce/inventory-section.d.ts +0 -0
  714. /package/dist/components/{admin/patterns → blocks/admin}/commerce/invoice.d.ts +0 -0
  715. /package/dist/components/{admin/patterns → blocks/admin}/commerce/loyalty.d.ts +0 -0
  716. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-customer.d.ts +0 -0
  717. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-detail.d.ts +0 -0
  718. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-line-item.d.ts +0 -0
  719. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order-transactions.d.ts +0 -0
  720. /package/dist/components/{admin/patterns → blocks/admin}/commerce/order.d.ts +0 -0
  721. /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-listing.d.ts +0 -0
  722. /package/dist/components/{admin/patterns → blocks/admin}/commerce/seo-score.d.ts +0 -0
  723. /package/dist/components/{admin/patterns → blocks/admin}/commerce/summary-panel.d.ts +0 -0
  724. /package/dist/components/{patterns → blocks}/analytics/activity-heatmap.d.ts +0 -0
  725. /package/dist/components/{patterns → blocks}/analytics/analytics.types.d.ts +0 -0
  726. /package/dist/components/{patterns → blocks}/analytics/chart-card.d.ts +0 -0
  727. /package/dist/components/{patterns → blocks}/analytics/format-metric-value.d.ts +0 -0
  728. /package/dist/components/{patterns → blocks}/analytics/index.d.ts +0 -0
  729. /package/dist/components/{patterns → blocks}/analytics/metric-bar.d.ts +0 -0
  730. /package/dist/components/{patterns → blocks}/analytics/metric-comparison.d.ts +0 -0
  731. /package/dist/components/{patterns → blocks}/analytics/metric-gradient.d.ts +0 -0
  732. /package/dist/components/{patterns → blocks}/analytics/metric-grid.d.ts +0 -0
  733. /package/dist/components/{patterns → blocks}/analytics/metric-micro-grid.d.ts +0 -0
  734. /package/dist/components/{patterns → blocks}/analytics/metric-skeleton.d.ts +0 -0
  735. /package/dist/components/{patterns → blocks}/analytics/metric-trend-chip.d.ts +0 -0
  736. /package/dist/components/{patterns → blocks}/analytics/metric.d.ts +0 -0
  737. /package/dist/components/{patterns → blocks}/analytics/time-ruler.d.ts +0 -0
  738. /package/dist/components/{patterns → blocks}/onboarding/checklist.d.ts +0 -0
  739. /package/dist/components/{patterns → blocks}/onboarding/index.d.ts +0 -0
  740. /package/dist/components/{patterns → blocks}/onboarding/onboarding.strings.d.ts +0 -0
  741. /package/dist/components/{patterns → blocks}/timelines/changelog-timeline.d.ts +0 -0
  742. /package/dist/components/{patterns → blocks}/timelines/index.d.ts +0 -0
  743. /package/dist/components/{patterns → blocks}/timelines/milestones-timeline.d.ts +0 -0
  744. /package/dist/components/{patterns → blocks}/timelines/steps.d.ts +0 -0
  745. /package/dist/components/{patterns → blocks}/timelines/timelines.strings.d.ts +0 -0
  746. /package/dist/styles/{theming/breakpoints.css → breakpoints.css} +0 -0
@@ -0,0 +1,2493 @@
1
+ "use client";
2
+ import "#core.css";
3
+ import { a as e, c as t, o as n, s as r } from "../../typography-DmeR05Er.js";
4
+ import { t as i } from "../../cx--CBrhWH0.js";
5
+ import { c as a } from "../../buttons-BX2JfL5X.js";
6
+ import { n as o, t as s } from "../../action-menu-BwiL_F6I.js";
7
+ import { o as c } from "../../structure-CynEZ-OY.js";
8
+ import { a as l, c as u, r as d } from "../../avatar-Dc_BNYfB.js";
9
+ import { t as f } from "../../strings-Co9_qArR.js";
10
+ import { B as p, D as m, E as h, F as g, I as _, T as v, k as y, w as b } from "../../primitives-BskKlf35.js";
11
+ import { t as x } from "../../badge-VlJVZjdm.js";
12
+ import { _ as ee, h as S, p as C, s as w } from "../../feedback-D4qVsKlD.js";
13
+ import { _ as T, c as te, d as ne, g as re, h as E, l as D, n as O, u as k, v as A } from "../../display-a7AoX_u7.js";
14
+ import { s as ie, v as ae } from "../../choice-inputs-NwRxvmZN.js";
15
+ import { l as oe } from "../../text-inputs-BboE77nZ.js";
16
+ import { t as se } from "../../copyable-D9Okb1w6.js";
17
+ import { u as j } from "../../forms-C0WeNPFF.js";
18
+ import { c as ce, i as M, n as le, o as N, r as P, t as F, u as I } from "../../item-M2pmpWXh.js";
19
+ import { d as ue, f as de, p as fe, u as pe } from "../../navigation-Bgu7Vc0M.js";
20
+ import { t as me } from "../../use-controllable-state-HHu2LRI-.js";
21
+ import { c as he, i as L, l as R, n as ge, o as _e, s as z, t as ve } from "../../table-Ds_eO9av.js";
22
+ import { r as B } from "../../timeline-BR_jNgvz.js";
23
+ import { s as ye } from "../../value-inputs-ng8aVJJZ.js";
24
+ import { t as be } from "../../timelines-DXG1BfIN.js";
25
+ import { BanIcon as xe, CheckIcon as Se, CircleAlertIcon as Ce, CircleCheckIcon as we, CircleXIcon as Te, CreditCardIcon as V, DownloadIcon as Ee, FileTextIcon as De, GiftIcon as Oe, ImageIcon as ke, MailIcon as Ae, MapPinIcon as je, PackageIcon as Me, PencilIcon as Ne, PhoneIcon as Pe, ReceiptIcon as Fe, RepeatIcon as Ie, RotateCcwIcon as Le, SearchIcon as Re, ShieldCheckIcon as ze, ShoppingBagIcon as Be, TagIcon as Ve, TicketIcon as He, TriangleAlertIcon as Ue, TruckIcon as We, XIcon as Ge } from "lucide-react";
26
+ import { useState as Ke } from "react";
27
+ import { Fragment as H, jsx as U, jsxs as W } from "react/jsx-runtime";
28
+ import "#css/commerce.css";
29
+ //#region src/components/blocks/admin/commerce/commerce.strings.ts
30
+ var qe = {
31
+ title: "Cart",
32
+ subtotal: "Subtotal",
33
+ tax: "Tax",
34
+ shipping: "Shipping",
35
+ discount: "Discount",
36
+ total: "Total",
37
+ checkout: "Checkout",
38
+ formatQuantity: (e) => `×${e}`
39
+ }, Je = {
40
+ title: "Tax",
41
+ subtotal: "Subtotal",
42
+ totalTax: "Total tax",
43
+ total: "Total"
44
+ }, Ye = {
45
+ title: "Have a code?",
46
+ fieldLabel: "Discount code",
47
+ placeholder: "Enter code",
48
+ apply: "Apply",
49
+ remove: "Remove",
50
+ applied: "Applied",
51
+ balance: "Remaining balance"
52
+ }, Xe = {
53
+ title: "Redeem a gift card",
54
+ helperText: "One gift card or voucher per order.",
55
+ fieldLabel: "Gift card code",
56
+ placeholder: "Enter gift card code",
57
+ apply: "Check balance",
58
+ remove: "Remove",
59
+ applied: "Applied",
60
+ balance: "Available balance"
61
+ }, Ze = {
62
+ title: "Applied discounts",
63
+ totalSavings: "Total savings"
64
+ }, G = {
65
+ title: "Invoice",
66
+ billFrom: "Bill from",
67
+ billTo: "Bill to",
68
+ issued: "Issued",
69
+ due: "Due",
70
+ amountDue: "Amount due",
71
+ item: "Item",
72
+ quantity: "Qty",
73
+ price: "Price",
74
+ amount: "Amount",
75
+ subtotal: "Subtotal",
76
+ tax: "Tax",
77
+ total: "Total",
78
+ paid: "Paid",
79
+ pending: "Pending",
80
+ overdue: "Overdue",
81
+ formatLineCount: (e) => `${e} ${e === 1 ? "item" : "items"}`
82
+ }, Qe = {
83
+ title: "Order status",
84
+ statusLabel: "Current status",
85
+ latestEvent: "Latest event",
86
+ nextStep: "Next step",
87
+ eta: "Estimated delivery",
88
+ formatHistory: (e) => `Order history (${e} ${e === 1 ? "event" : "events"})`,
89
+ pending: "Pending",
90
+ paid: "Paid",
91
+ fulfilled: "Fulfilled",
92
+ shipped: "Shipped",
93
+ delivered: "Delivered",
94
+ cancelled: "Cancelled"
95
+ }, $e = {
96
+ title: "Shipment",
97
+ carrier: "Carrier",
98
+ trackingNumber: "Tracking number",
99
+ pending: "Pending",
100
+ inTransit: "In transit",
101
+ delivered: "Delivered",
102
+ delayed: "Delayed"
103
+ }, et = {
104
+ title: "Refund",
105
+ amount: "Refund amount",
106
+ reason: "Reason",
107
+ method: "Refund to",
108
+ eta: "Expected by",
109
+ requested: "Requested",
110
+ approved: "Approved",
111
+ processing: "Processing",
112
+ completed: "Completed"
113
+ }, tt = {
114
+ defaultBadge: "Default",
115
+ edit: "Edit",
116
+ remove: "Remove",
117
+ makeDefault: "Make default",
118
+ shipping: "Shipping address",
119
+ billing: "Billing address",
120
+ pickup: "Pickup address"
121
+ }, nt = {
122
+ title: "Payment method",
123
+ defaultBadge: "Default",
124
+ expires: "Expires",
125
+ change: "Change",
126
+ formatCard: (e, t) => `${e} ending ${t}`
127
+ }, rt = {
128
+ title: "Subscription",
129
+ plan: "Plan",
130
+ nextBilling: "Next billing",
131
+ included: "Included",
132
+ manage: "Manage",
133
+ upgrade: "Upgrade"
134
+ }, it = {
135
+ inStock: "In stock",
136
+ lowStock: "Low stock",
137
+ outOfStock: "Out of stock",
138
+ reorderAt: "Reorder at",
139
+ lastRestocked: "Last restocked",
140
+ formatLevel: (e, t) => `${e} of ${t} units`
141
+ }, at = {
142
+ title: "Loyalty",
143
+ balanceLabel: "Balance",
144
+ pointsAvailable: "points available",
145
+ activityLabel: "Recent activity",
146
+ redeem: "Redeem points"
147
+ }, ot = {
148
+ tabOverview: "Overview",
149
+ tabStats: "Performance",
150
+ totalEarnings: "Total earnings",
151
+ message: "Message",
152
+ hire: "Hire vendor",
153
+ verified: "Verified"
154
+ }, st = {
155
+ title: "Search appearance",
156
+ edit: "Edit listing",
157
+ noTitle: "Untitled page",
158
+ noDescription: "No description yet. Search engines will pick their own.",
159
+ noPermalink: "No permalink yet",
160
+ checks: {
161
+ title: "Title length",
162
+ description: "Description length",
163
+ permalink: "Permalink length",
164
+ slug: "Slug format",
165
+ url: "Secure origin",
166
+ keyword: "Keyword present"
167
+ },
168
+ status: {
169
+ good: "Good",
170
+ review: "Needs review",
171
+ missing: "Missing"
172
+ },
173
+ formatScore: (e) => `${e} / 100`,
174
+ formatPercent: (e) => `${e}%`,
175
+ formatMeasure: (e, t) => `${e} / ${t}`
176
+ }, ct = {
177
+ title: "Inventory",
178
+ description: "Stock, identifiers, and how this product ships.",
179
+ sections: {
180
+ identity: "Product identifiers",
181
+ tracking: "Stock management",
182
+ location: "Storage location",
183
+ shipping: "Shipping",
184
+ customs: "Customs",
185
+ tags: "Organization"
186
+ },
187
+ fields: {
188
+ sku: "SKU",
189
+ barcode: "Barcode",
190
+ trackQuantity: "Track quantity",
191
+ available: "Available",
192
+ committed: "Committed",
193
+ incoming: "Incoming",
194
+ lowStockThreshold: "Low stock at",
195
+ inventoryPolicy: "When out of stock",
196
+ binLocation: "Bin",
197
+ requiresShipping: "Requires shipping",
198
+ weight: "Weight",
199
+ countryOfOrigin: "Country of origin",
200
+ hsCode: "HS code",
201
+ tags: "Tags"
202
+ },
203
+ placeholders: {
204
+ sku: "ABC-123",
205
+ barcode: "0123456789012",
206
+ binLocation: "A-14-3",
207
+ hsCode: "6109.10",
208
+ tags: "Add a tag"
209
+ },
210
+ hints: {
211
+ trackQuantity: "Off means this product is always available to sell.",
212
+ lowStockThreshold: "Below this, the product reads as low stock.",
213
+ inventoryPolicy: "Whether customers can order past zero.",
214
+ binLocation: "Where it sits in the warehouse.",
215
+ customs: "Used on customs forms for international shipments.",
216
+ hsCode: "The tariff classification for this product."
217
+ },
218
+ policy: {
219
+ deny: "Stop selling",
220
+ continue: "Keep selling (backorder)"
221
+ },
222
+ summary: {
223
+ available: "Available",
224
+ committed: "Committed",
225
+ incoming: "Incoming",
226
+ threshold: "Low stock at"
227
+ }
228
+ }, lt = {
229
+ formatOrderNumber: (e) => `#${e}`,
230
+ formatOrigin: (e, t) => `${e} from ${t}`
231
+ }, K = {
232
+ fulfillment: {
233
+ unfulfilled: "Unfulfilled",
234
+ partiallyFulfilled: "Partially fulfilled",
235
+ fulfilled: "Fulfilled",
236
+ scheduled: "Scheduled",
237
+ onHold: "On hold",
238
+ cancelled: "Cancelled"
239
+ },
240
+ payment: {
241
+ pending: "Pending",
242
+ authorized: "Authorized",
243
+ paid: "Paid",
244
+ partiallyRefunded: "Partially refunded",
245
+ refunded: "Refunded",
246
+ voided: "Voided"
247
+ }
248
+ }, q = {
249
+ formatHeading: (e, t) => `${e} (${t})`,
250
+ formatUnitPrice: (e, t) => `${e} × ${t}`
251
+ }, ut = { title: "Payment" }, dt = {
252
+ title: "Transactions",
253
+ kind: {
254
+ authorization: "Authorization",
255
+ capture: "Capture",
256
+ sale: "Sale",
257
+ refund: "Refund",
258
+ void: "Void",
259
+ chargeback: "Chargeback"
260
+ },
261
+ status: {
262
+ success: "Success",
263
+ pending: "Pending",
264
+ failure: "Failed"
265
+ },
266
+ reference: "Reference",
267
+ empty: "No transactions yet."
268
+ }, ft = {
269
+ title: "Customer",
270
+ shippingAddress: "Shipping address",
271
+ billingAddress: "Billing address",
272
+ editShipping: "Edit shipping address",
273
+ editBilling: "Edit billing address",
274
+ sameAsShipping: "Same as shipping address",
275
+ noAddress: "No address on file",
276
+ formatOrderCount: (e) => `${e} ${e === 1 ? "order" : "orders"}`
277
+ }, pt = "−";
278
+ function J(e) {
279
+ return e.replace(/^[\s−-]+/, "");
280
+ }
281
+ function mt(e) {
282
+ return e.trim() ? `−${J(e)}` : e;
283
+ }
284
+ var Y = {
285
+ block: "commerce__block___7oBUn",
286
+ summaryPanel: "commerce__summaryPanel___9Uik7",
287
+ amountRow: "commerce__amountRow___qHwSc",
288
+ amountLabel: "commerce__amountLabel___xYwnp",
289
+ amountNote: "commerce__amountNote___TAVTC",
290
+ amountValue: "commerce__amountValue___OEFkR",
291
+ summaryRollup: "commerce__summaryRollup___-hyOK",
292
+ cartThumb: "commerce__cartThumb___iPZav",
293
+ commerceLine: "commerce__commerceLine___zp_TA",
294
+ summaryLineMedia: "commerce__summaryLineMedia___2OSNK",
295
+ summaryLineBody: "commerce__summaryLineBody___YB7Ef",
296
+ summaryLineTitle: "commerce__summaryLineTitle___ZkDgx",
297
+ summaryLinePrice: "commerce__summaryLinePrice___uSV3T",
298
+ bookingDate: "commerce__bookingDate___1GsAB",
299
+ couponForm: "commerce__couponForm___yN6YH",
300
+ couponField: "commerce__couponField___DAGMI",
301
+ couponApplied: "commerce__couponApplied___7Q4jj",
302
+ couponAppliedBody: "commerce__couponAppliedBody___l2fJc",
303
+ couponCode: "commerce__couponCode___Dg6JW",
304
+ couponAmount: "commerce__couponAmount___1Zz-E",
305
+ orderFact: "commerce__orderFact___iiZp1",
306
+ paymentTimeline: "commerce__paymentTimeline___m5jqj",
307
+ refundStages: "commerce__refundStages___MfAug",
308
+ refundStage: "commerce__refundStage___m-07h",
309
+ refundBar: "commerce__refundBar___XH_bb",
310
+ invoiceLines: "commerce__invoiceLines___KHMW4",
311
+ invoiceTable: "commerce__invoiceTable___sPfN9",
312
+ invoiceMobile: "commerce__invoiceMobile___gDxIw",
313
+ invoiceParties: "commerce__invoiceParties___vZ6GR",
314
+ invoiceMini: "commerce__invoiceMini___fEppe",
315
+ invoiceMiniHead: "commerce__invoiceMiniHead___X6Kg2",
316
+ invoiceMiniFoot: "commerce__invoiceMiniFoot___J19Qe",
317
+ invoiceMiniMeta: "commerce__invoiceMiniMeta___MxtH0",
318
+ address: "commerce__address___Utw6H",
319
+ addressName: "commerce__addressName___Z7oPR",
320
+ blockActions: "commerce__blockActions___SFFOE",
321
+ paymentIdentity: "commerce__paymentIdentity___SXVFO",
322
+ paymentIdentityBody: "commerce__paymentIdentityBody___p4BFk",
323
+ perks: "commerce__perks___GxeBF",
324
+ perkList: "commerce__perkList___-KtFb",
325
+ perk: "commerce__perk___5bYii",
326
+ perkIcon: "commerce__perkIcon___BPHCq",
327
+ bookingDetails: "commerce__bookingDetails___DGBV_",
328
+ bookingDetail: "commerce__bookingDetail___OtYF6",
329
+ bookingValue: "commerce__bookingValue___FaUla",
330
+ bookingAction: "commerce__bookingAction___kCFcz",
331
+ loyaltyBalance: "commerce__loyaltyBalance___DZD7M",
332
+ loyaltyActivity: "commerce__loyaltyActivity___8VGUR",
333
+ loyaltyFigure: "commerce__loyaltyFigure___LAc9v",
334
+ vendorIdentity: "commerce__vendorIdentity___GfEUh",
335
+ vendorIdentityBody: "commerce__vendorIdentityBody___gko9Q",
336
+ vendorName: "commerce__vendorName____7HmM",
337
+ vendorVerified: "commerce__vendorVerified___3mNq9",
338
+ vendorStats: "commerce__vendorStats___IOQLs",
339
+ vendorActions: "commerce__vendorActions___jESyd",
340
+ vendorStat: "commerce__vendorStat___vkuHs",
341
+ seoPreview: "commerce__seoPreview___c3vhI",
342
+ seoUrl: "commerce__seoUrl___6ERO3",
343
+ seoTitle: "commerce__seoTitle___2j1yX",
344
+ seoDescription: "commerce__seoDescription___hgvfs",
345
+ seoChecks: "commerce__seoChecks___VOXUR",
346
+ seoCheck: "commerce__seoCheck___KbpHQ",
347
+ seoCheckIcon: "commerce__seoCheckIcon___CfepN",
348
+ seoCheckBody: "commerce__seoCheckBody___gFon9",
349
+ inventoryGroup: "commerce__inventoryGroup___DzHT1",
350
+ inventoryLegend: "commerce__inventoryLegend____MWSd",
351
+ inventoryToggle: "commerce__inventoryToggle___n90g4",
352
+ inventoryFields: "commerce__inventoryFields___L-hc_",
353
+ orderHeader: "commerce__orderHeader___w7Wgc",
354
+ orderHeaderTop: "commerce__orderHeaderTop___C6Hsy",
355
+ orderHeaderActions: "commerce__orderHeaderActions___D6mN1",
356
+ orderHistoryToggle: "commerce__orderHistoryToggle___ShKn5",
357
+ orderHistory: "commerce__orderHistory___iAlXv",
358
+ group: "commerce__group___QsD1W",
359
+ groupHead: "commerce__groupHead___tpMpa",
360
+ groupHeadTop: "commerce__groupHeadTop___zIzRz",
361
+ groupLocation: "commerce__groupLocation___S3QJm",
362
+ groupNotice: "commerce__groupNotice___Ixktc",
363
+ groupMarkIcon: "commerce__groupMarkIcon___qUKya",
364
+ groupItems: "commerce__groupItems___e4v2A",
365
+ groupActions: "commerce__groupActions___nw39P",
366
+ lineItem: "commerce__lineItem___vwf0A",
367
+ lineThumb: "commerce__lineThumb___xphAB",
368
+ lineThumbIcon: "commerce__lineThumbIcon___1HdO9",
369
+ lineBody: "commerce__lineBody___EhCBT",
370
+ lineMeta: "commerce__lineMeta___GZfmA",
371
+ linePrice: "commerce__linePrice___Vg8D9",
372
+ lineTotal: "commerce__lineTotal___wl-9E",
373
+ transactions: "commerce__transactions___WBnUN",
374
+ transaction: "commerce__transaction___VgkeR",
375
+ transactionBody: "commerce__transactionBody___qESVC",
376
+ transactionHead: "commerce__transactionHead___lKH1O",
377
+ transactionMeta: "commerce__transactionMeta___GuJjV",
378
+ transactionAmount: "commerce__transactionAmount___b_2P8",
379
+ customerSection: "commerce__customerSection___Hvx9H",
380
+ customerSectionHead: "commerce__customerSectionHead___V6glW",
381
+ customerIdentity: "commerce__customerIdentity___6v1B1",
382
+ customerIdentityBody: "commerce__customerIdentityBody___yx9qs",
383
+ customerName: "commerce__customerName___y2NvM",
384
+ customerContact: "commerce__customerContact___jXFV1",
385
+ customerContactLine: "commerce__customerContactLine___qkTar",
386
+ customerContactIcon: "commerce__customerContactIcon___0PS5S",
387
+ customerAddresses: "commerce__customerAddresses___7XGNC"
388
+ };
389
+ //#endregion
390
+ //#region src/components/blocks/admin/commerce/summary-panel.tsx
391
+ function X({ label: e, amount: t, total: n = !1, deduction: a = !1, note: o, className: s, ...c }) {
392
+ return /* @__PURE__ */ W("div", {
393
+ "data-total": n ? "" : void 0,
394
+ "data-deduction": a ? "" : void 0,
395
+ className: i("amount-row--component", Y.amountRow, s),
396
+ ...c,
397
+ children: [
398
+ /* @__PURE__ */ U(r, {
399
+ tag: "span",
400
+ type: n ? "main" : "secondary",
401
+ weight: n ? "semibold" : "normal",
402
+ className: Y.amountLabel,
403
+ children: e
404
+ }),
405
+ /* @__PURE__ */ U(r, {
406
+ tag: "span",
407
+ size: "xs",
408
+ type: "secondary",
409
+ className: Y.amountNote,
410
+ children: o
411
+ }),
412
+ /* @__PURE__ */ U(r, {
413
+ tag: "span",
414
+ numeric: !0,
415
+ type: a ? "success" : "main",
416
+ weight: n ? "bold" : "medium",
417
+ className: i("amount-row--value", Y.amountValue),
418
+ children: a ? mt(t) : t
419
+ })
420
+ ]
421
+ });
422
+ }
423
+ function Z({ children: e, className: t, ...n }) {
424
+ return /* @__PURE__ */ U("div", {
425
+ className: i("summary-panel--component", Y.summaryPanel, t),
426
+ ...n,
427
+ children: e
428
+ });
429
+ }
430
+ //#endregion
431
+ //#region src/components/blocks/admin/commerce/cart.tsx
432
+ function ht({ line: e }) {
433
+ let [t, n] = Ke(!1);
434
+ return e.imageSrc && !t ? /* @__PURE__ */ U("img", {
435
+ src: e.imageSrc,
436
+ alt: e.imageAlt ?? e.title,
437
+ onError: () => n(!0)
438
+ }) : /* @__PURE__ */ U("span", {
439
+ className: Y.cartThumb,
440
+ "aria-hidden": "true",
441
+ children: /* @__PURE__ */ U(g, { value: e.title })
442
+ });
443
+ }
444
+ function gt({ items: e, subtotal: t, tax: n, shipping: o, discount: s, total: l, onCheckout: u, strings: d, className: f, ...p }) {
445
+ let m = {
446
+ ...qe,
447
+ ...d
448
+ }, h = !!(t || n || o || s);
449
+ return /* @__PURE__ */ W(D, {
450
+ icon: /* @__PURE__ */ U(Be, { "aria-hidden": "true" }),
451
+ title: m.title,
452
+ className: i("cart-summary--component", Y.block, f),
453
+ ...p,
454
+ children: [
455
+ /* @__PURE__ */ U(N, {
456
+ ruled: !0,
457
+ children: e.map((e) => /* @__PURE__ */ W(F, {
458
+ className: Y.commerceLine,
459
+ children: [
460
+ /* @__PURE__ */ U(ce, {
461
+ variant: "image",
462
+ className: Y.summaryLineMedia,
463
+ children: /* @__PURE__ */ U(ht, { line: e }, e.imageSrc)
464
+ }),
465
+ /* @__PURE__ */ W(P, {
466
+ className: Y.summaryLineBody,
467
+ children: [/* @__PURE__ */ U(I, {
468
+ className: Y.summaryLineTitle,
469
+ children: e.title
470
+ }), /* @__PURE__ */ W(c, {
471
+ direction: "horizontal",
472
+ align: "baseline",
473
+ wrap: !0,
474
+ gap: "sm",
475
+ children: [e.variantTitle && /* @__PURE__ */ U(M, { children: e.variantTitle }), /* @__PURE__ */ U(r, {
476
+ tag: "span",
477
+ size: "xs",
478
+ type: "secondary",
479
+ numeric: !0,
480
+ children: m.formatQuantity(e.quantity)
481
+ })]
482
+ })]
483
+ }),
484
+ /* @__PURE__ */ U(P, {
485
+ className: Y.summaryLinePrice,
486
+ children: /* @__PURE__ */ U(r, {
487
+ tag: "span",
488
+ weight: "semibold",
489
+ numeric: !0,
490
+ children: e.price
491
+ })
492
+ })
493
+ ]
494
+ }, e.id))
495
+ }),
496
+ /* @__PURE__ */ W(Z, { children: [
497
+ t != null && /* @__PURE__ */ U(X, {
498
+ label: m.subtotal,
499
+ amount: t
500
+ }),
501
+ n != null && /* @__PURE__ */ U(X, {
502
+ label: m.tax,
503
+ amount: n
504
+ }),
505
+ o != null && /* @__PURE__ */ U(X, {
506
+ label: m.shipping,
507
+ amount: o
508
+ }),
509
+ s != null && /* @__PURE__ */ U(X, {
510
+ label: m.discount,
511
+ amount: s,
512
+ deduction: !0
513
+ }),
514
+ /* @__PURE__ */ U(X, {
515
+ label: m.total,
516
+ amount: l,
517
+ total: !0,
518
+ className: h ? Y.summaryRollup : void 0
519
+ })
520
+ ] }),
521
+ u && /* @__PURE__ */ U(a, {
522
+ fullWidth: !0,
523
+ onClick: u,
524
+ children: m.checkout
525
+ })
526
+ ]
527
+ });
528
+ }
529
+ function _t({ subtotal: e, taxes: t, totalTax: n, total: r, strings: a, className: o, ...s }) {
530
+ let c = {
531
+ ...Je,
532
+ ...a
533
+ };
534
+ return /* @__PURE__ */ U(D, {
535
+ icon: /* @__PURE__ */ U(Fe, { "aria-hidden": "true" }),
536
+ title: c.title,
537
+ className: i("tax-breakdown--component", Y.block, o),
538
+ ...s,
539
+ children: /* @__PURE__ */ W(Z, { children: [
540
+ /* @__PURE__ */ U(X, {
541
+ label: c.subtotal,
542
+ amount: e
543
+ }),
544
+ t.map((e, t) => /* @__PURE__ */ U(X, {
545
+ label: e.label,
546
+ note: e.rate,
547
+ amount: e.amount
548
+ }, e.id ?? `${e.label}-${t}`)),
549
+ n != null && t.length > 1 && /* @__PURE__ */ U(X, {
550
+ label: c.totalTax,
551
+ amount: n
552
+ }),
553
+ /* @__PURE__ */ U(X, {
554
+ label: c.total,
555
+ amount: r,
556
+ total: !0,
557
+ className: Y.summaryRollup
558
+ })
559
+ ] })
560
+ });
561
+ }
562
+ function vt({ discounts: e, totalSavings: t, strings: n, className: r, ...a }) {
563
+ let o = {
564
+ ...Ze,
565
+ ...n
566
+ };
567
+ return /* @__PURE__ */ W(D, {
568
+ icon: /* @__PURE__ */ U(Ve, { "aria-hidden": "true" }),
569
+ title: o.title,
570
+ className: i("discount-stack--component", Y.block, r),
571
+ ...a,
572
+ children: [
573
+ /* @__PURE__ */ U(Z, { children: e.map((e, t) => /* @__PURE__ */ U(X, {
574
+ label: e.label,
575
+ note: e.kind,
576
+ amount: e.amount,
577
+ deduction: !0
578
+ }, e.id ?? `${e.label}-${t}`)) }),
579
+ /* @__PURE__ */ U(A, {}),
580
+ /* @__PURE__ */ U(X, {
581
+ label: o.totalSavings,
582
+ amount: t,
583
+ total: !0,
584
+ deduction: !0
585
+ })
586
+ ]
587
+ });
588
+ }
589
+ function yt({ kind: e = "discount", appliedCode: t, appliedDiscount: n, balance: o, error: s, loading: c = !1, onApply: l, onRemove: u, strings: d, className: f, ...p }) {
590
+ let m = {
591
+ ...e === "gift" ? Xe : Ye,
592
+ ...d
593
+ }, [h, g] = Ke("");
594
+ return /* @__PURE__ */ U(D, {
595
+ icon: U(e === "gift" ? Oe : He, { "aria-hidden": "true" }),
596
+ title: m.title,
597
+ description: m.helperText,
598
+ className: i("code-entry--component", Y.block, f),
599
+ ...p,
600
+ children: t == null ? /* @__PURE__ */ W("form", {
601
+ className: Y.couponForm,
602
+ onSubmit: (t) => {
603
+ t.preventDefault();
604
+ let n = e === "gift" ? h.trim().toUpperCase() : h.trim();
605
+ n && !c && l?.(n);
606
+ },
607
+ children: [/* @__PURE__ */ U(j, {
608
+ error: s,
609
+ className: Y.couponField,
610
+ children: /* @__PURE__ */ U(oe, {
611
+ value: h,
612
+ disabled: c,
613
+ placeholder: m.placeholder,
614
+ "aria-label": m.fieldLabel,
615
+ onChange: (e) => g(e.target.value),
616
+ invalid: !!s
617
+ })
618
+ }), /* @__PURE__ */ U(a, {
619
+ type: "submit",
620
+ loading: c,
621
+ disabled: !h.trim(),
622
+ children: m.apply
623
+ })]
624
+ }) : /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W("div", {
625
+ className: Y.couponApplied,
626
+ children: [
627
+ /* @__PURE__ */ U(k, {
628
+ icon: Se,
629
+ tone: "success",
630
+ shape: "circle",
631
+ solid: !0,
632
+ "aria-hidden": "true"
633
+ }),
634
+ /* @__PURE__ */ W("span", {
635
+ className: Y.couponAppliedBody,
636
+ children: [/* @__PURE__ */ U(r, {
637
+ tag: "span",
638
+ weight: "semibold",
639
+ mono: !0,
640
+ className: Y.couponCode,
641
+ children: t
642
+ }), /* @__PURE__ */ U(r, {
643
+ tag: "span",
644
+ size: "xs",
645
+ type: "secondary",
646
+ children: m.applied
647
+ })]
648
+ }),
649
+ n != null && /* @__PURE__ */ U(r, {
650
+ tag: "span",
651
+ type: "success",
652
+ numeric: !0,
653
+ weight: "bold",
654
+ className: Y.couponAmount,
655
+ children: n
656
+ }),
657
+ u && /* @__PURE__ */ U(a, {
658
+ tone: "secondary",
659
+ appearance: "ghost",
660
+ onClick: u,
661
+ disabled: c,
662
+ "aria-label": m.remove,
663
+ iconOnly: !0,
664
+ children: /* @__PURE__ */ U(Ge, { "aria-hidden": "true" })
665
+ })
666
+ ]
667
+ }), o != null && /* @__PURE__ */ U(Z, { children: /* @__PURE__ */ U(X, {
668
+ label: m.balance,
669
+ amount: o,
670
+ total: !0
671
+ }) })] })
672
+ });
673
+ }
674
+ //#endregion
675
+ //#region src/components/blocks/admin/commerce/commerce.types.ts
676
+ var bt = {
677
+ paid: "success",
678
+ pending: "warning",
679
+ overdue: "destructive"
680
+ }, xt = {
681
+ pending: "warning",
682
+ paid: "info",
683
+ fulfilled: "info",
684
+ shipped: "primary",
685
+ delivered: "success",
686
+ cancelled: "destructive"
687
+ }, St = {
688
+ pending: "neutral",
689
+ inTransit: "info",
690
+ delivered: "success",
691
+ delayed: "warning"
692
+ }, Ct = [
693
+ "requested",
694
+ "approved",
695
+ "processing",
696
+ "completed"
697
+ ], wt = {
698
+ unfulfilled: "warning",
699
+ partiallyFulfilled: "warning",
700
+ fulfilled: "success",
701
+ scheduled: "info",
702
+ onHold: "neutral",
703
+ cancelled: "destructive"
704
+ }, Tt = {
705
+ pending: "warning",
706
+ authorized: "info",
707
+ paid: "success",
708
+ partiallyRefunded: "neutral",
709
+ refunded: "neutral",
710
+ voided: "neutral"
711
+ }, Et = {
712
+ success: "success",
713
+ pending: "warning",
714
+ failure: "destructive"
715
+ }, Dt = /* @__PURE__ */ new Set([
716
+ "refund",
717
+ "void",
718
+ "chargeback"
719
+ ]);
720
+ //#endregion
721
+ //#region src/components/blocks/admin/commerce/order.tsx
722
+ function Ot({ orderNumber: e, status: t, events: n, eta: a, defaultHistoryOpen: o = !1, strings: s, className: c, ...l }) {
723
+ let u = {
724
+ ...Qe,
725
+ ...s
726
+ }, d = u[t], f = n.findLastIndex((e) => e.complete), m = n[f], h = t === "cancelled" || t === "delivered" ? void 0 : n.slice(f + 1).find((e) => !e.complete);
727
+ return /* @__PURE__ */ W(D, {
728
+ icon: /* @__PURE__ */ U(Me, { "aria-hidden": "true" }),
729
+ title: u.title,
730
+ titleSuffix: /* @__PURE__ */ U(x, {
731
+ tone: xt[t],
732
+ children: d
733
+ }),
734
+ description: /* @__PURE__ */ U(p, { children: e }),
735
+ className: i("order-status--component", Y.block, c),
736
+ ...l,
737
+ children: [(m || h || a != null) && /* @__PURE__ */ U(Z, { children: /* @__PURE__ */ U(O, {
738
+ layout: "rows",
739
+ items: [
740
+ ...m ? [{
741
+ id: "latest",
742
+ label: u.latestEvent,
743
+ value: m.label,
744
+ description: m.timestamp
745
+ }] : [],
746
+ ...h ? [{
747
+ id: "next",
748
+ label: u.nextStep,
749
+ value: h.label
750
+ }] : [],
751
+ ...a == null ? [] : [{
752
+ id: "eta",
753
+ label: u.eta,
754
+ value: a
755
+ }]
756
+ ]
757
+ }) }), n.length > 0 && /* @__PURE__ */ W(E, {
758
+ defaultOpen: o,
759
+ children: [/* @__PURE__ */ U(T, {
760
+ className: Y.orderHistoryToggle,
761
+ children: /* @__PURE__ */ U(r, {
762
+ tag: "span",
763
+ size: "xs",
764
+ weight: "medium",
765
+ children: u.formatHistory(n.length)
766
+ })
767
+ }), /* @__PURE__ */ U(re, {
768
+ className: Y.orderHistory,
769
+ children: /* @__PURE__ */ U(B, { items: n.map((e) => ({
770
+ id: e.id,
771
+ title: e.label,
772
+ timestamp: e.timestamp,
773
+ status: e.complete ? "completed" : "pending"
774
+ })) })
775
+ })]
776
+ })]
777
+ });
778
+ }
779
+ function kt({ events: e, className: t, ...n }) {
780
+ let r = e.map((e) => ({
781
+ id: e.id,
782
+ title: e.title,
783
+ description: e.description,
784
+ timestamp: e.timestamp,
785
+ status: e.status
786
+ }));
787
+ return /* @__PURE__ */ U(D, {
788
+ className: i("order-timeline--component", t),
789
+ ...n,
790
+ children: /* @__PURE__ */ U(B, { items: r })
791
+ });
792
+ }
793
+ function At({ events: e, className: t, ...n }) {
794
+ let a = e.map((e) => ({
795
+ id: e.id,
796
+ title: e.label,
797
+ description: e.date,
798
+ icon: e.icon,
799
+ status: e.settled ? "success" : "pending",
800
+ trailing: e.amount == null ? void 0 : /* @__PURE__ */ U(r, {
801
+ tag: "span",
802
+ weight: "medium",
803
+ numeric: !0,
804
+ children: e.amount
805
+ })
806
+ }));
807
+ return /* @__PURE__ */ U("div", {
808
+ className: i("payment-timeline--component", Y.paymentTimeline, t),
809
+ ...n,
810
+ children: /* @__PURE__ */ U(B, { items: a })
811
+ });
812
+ }
813
+ function jt({ trackingNumber: e, carrier: t, status: n, steps: r, details: a, strings: o, className: s, ...c }) {
814
+ let l = {
815
+ ...$e,
816
+ ...o
817
+ }, u = r.findLastIndex((e) => e.done), d = n === "delivered" ? -1 : Math.max(0, u), f = r.map((e, t) => ({
818
+ id: e.id ?? `${e.label}-${t}`,
819
+ title: e.label,
820
+ timestamp: e.timestamp,
821
+ status: t === d ? "current" : e.done ? "completed" : "upcoming"
822
+ }));
823
+ return /* @__PURE__ */ W(D, {
824
+ icon: /* @__PURE__ */ U(We, { "aria-hidden": "true" }),
825
+ title: l.title,
826
+ titleSuffix: /* @__PURE__ */ U(x, {
827
+ tone: St[n],
828
+ children: l[n]
829
+ }),
830
+ className: i("shipment-tracking--component", Y.block, s),
831
+ ...c,
832
+ children: [/* @__PURE__ */ U(Z, { children: /* @__PURE__ */ U(O, {
833
+ layout: "rows",
834
+ items: [
835
+ {
836
+ id: "tracking",
837
+ label: l.trackingNumber,
838
+ render: () => /* @__PURE__ */ U(se, {
839
+ value: e,
840
+ mono: !0,
841
+ compact: !0,
842
+ truncate: !0
843
+ })
844
+ },
845
+ ...t == null ? [] : [{
846
+ id: "carrier",
847
+ label: l.carrier,
848
+ value: t
849
+ }],
850
+ ...(a ?? []).map((e, t) => ({
851
+ id: `detail-${t}`,
852
+ label: e.label,
853
+ value: e.value
854
+ }))
855
+ ]
856
+ }) }), f.length > 0 && /* @__PURE__ */ U(be, { steps: f })]
857
+ });
858
+ }
859
+ function Mt({ stage: e, amount: t, reason: n, method: a, eta: o, strings: s, className: c, ...l }) {
860
+ let u = {
861
+ ...et,
862
+ ...s
863
+ }, d = Ct.indexOf(e);
864
+ return /* @__PURE__ */ W(D, {
865
+ icon: /* @__PURE__ */ U(Le, { "aria-hidden": "true" }),
866
+ title: u.title,
867
+ className: i("refund-status--component", Y.block, c),
868
+ ...l,
869
+ children: [
870
+ /* @__PURE__ */ U(Z, { children: /* @__PURE__ */ U(X, {
871
+ label: u.amount,
872
+ amount: t,
873
+ total: !0
874
+ }) }),
875
+ /* @__PURE__ */ U("ol", {
876
+ className: Y.refundStages,
877
+ children: Ct.map((e, t) => /* @__PURE__ */ W("li", {
878
+ "data-reached": t <= d ? "" : void 0,
879
+ "data-current": t === d ? "" : void 0,
880
+ "aria-current": t === d ? "step" : void 0,
881
+ className: Y.refundStage,
882
+ children: [/* @__PURE__ */ U("span", {
883
+ className: Y.refundBar,
884
+ "aria-hidden": "true"
885
+ }), /* @__PURE__ */ U(r, {
886
+ tag: "span",
887
+ size: "xs",
888
+ type: "inherit",
889
+ weight: t === d ? "semibold" : "normal",
890
+ children: u[e]
891
+ })]
892
+ }, e))
893
+ }),
894
+ /* @__PURE__ */ U(O, {
895
+ layout: "rows",
896
+ items: [
897
+ ...a == null ? [] : [{
898
+ id: "method",
899
+ label: u.method,
900
+ value: a
901
+ }],
902
+ ...o == null ? [] : [{
903
+ id: "eta",
904
+ label: u.eta,
905
+ value: o
906
+ }],
907
+ ...n == null ? [] : [{
908
+ id: "reason",
909
+ label: u.reason,
910
+ value: n
911
+ }]
912
+ ]
913
+ })
914
+ ]
915
+ });
916
+ }
917
+ //#endregion
918
+ //#region src/components/blocks/admin/commerce/invoice.tsx
919
+ function Nt({ invoiceNumber: t, status: n, from: a, to: o, issuedAt: s, dueAt: c, amountDue: l, strings: u, className: d, ...f }) {
920
+ let m = {
921
+ ...G,
922
+ ...u
923
+ };
924
+ return /* @__PURE__ */ W(D, {
925
+ icon: /* @__PURE__ */ U(De, { "aria-hidden": "true" }),
926
+ title: m.title,
927
+ titleSuffix: /* @__PURE__ */ U(x, {
928
+ tone: bt[n],
929
+ children: m[n]
930
+ }),
931
+ description: /* @__PURE__ */ U(p, { children: t }),
932
+ className: i("invoice-header--component", Y.block, d),
933
+ ...f,
934
+ children: [/* @__PURE__ */ U("div", {
935
+ className: Y.invoiceParties,
936
+ children: [{
937
+ heading: m.billFrom,
938
+ party: a
939
+ }, {
940
+ heading: m.billTo,
941
+ party: o
942
+ }].map(({ heading: t, party: n }) => /* @__PURE__ */ W("div", {
943
+ className: Y.orderFact,
944
+ children: [
945
+ /* @__PURE__ */ U(e, { children: t }),
946
+ /* @__PURE__ */ U(r, {
947
+ weight: "semibold",
948
+ children: n.name
949
+ }),
950
+ n.location != null && /* @__PURE__ */ U(r, {
951
+ size: "xs",
952
+ type: "secondary",
953
+ children: n.location
954
+ })
955
+ ]
956
+ }, t))
957
+ }), /* @__PURE__ */ W(Z, { children: [
958
+ s != null && /* @__PURE__ */ U(X, {
959
+ label: m.issued,
960
+ amount: s
961
+ }),
962
+ c != null && /* @__PURE__ */ U(X, {
963
+ label: m.due,
964
+ amount: c
965
+ }),
966
+ /* @__PURE__ */ U(X, {
967
+ label: m.amountDue,
968
+ amount: l,
969
+ total: !0
970
+ })
971
+ ] })]
972
+ });
973
+ }
974
+ function Pt({ lines: e, currency: t, taxRate: n, strings: a, className: o, ...s }) {
975
+ let c = {
976
+ ...G,
977
+ ...a
978
+ }, l = e.reduce((e, t) => e + t.quantity * t.unitPrice, 0), u = n == null ? null : l * n, d = l + (u ?? 0);
979
+ return /* @__PURE__ */ W("div", {
980
+ className: i("invoice-line-items--component", Y.invoiceLines, o),
981
+ ...s,
982
+ children: [/* @__PURE__ */ U("div", {
983
+ className: Y.invoiceTable,
984
+ children: /* @__PURE__ */ W(ve, { children: [
985
+ /* @__PURE__ */ U(he, { children: /* @__PURE__ */ W(R, { children: [
986
+ /* @__PURE__ */ U(z, { children: c.item }),
987
+ /* @__PURE__ */ U(z, {
988
+ align: "end",
989
+ children: c.quantity
990
+ }),
991
+ /* @__PURE__ */ U(z, {
992
+ align: "end",
993
+ children: c.price
994
+ }),
995
+ /* @__PURE__ */ U(z, {
996
+ align: "end",
997
+ children: c.amount
998
+ })
999
+ ] }) }),
1000
+ /* @__PURE__ */ U(ge, { children: e.map((e, n) => /* @__PURE__ */ W(R, { children: [
1001
+ /* @__PURE__ */ U(L, { children: e.description }),
1002
+ /* @__PURE__ */ U(L, {
1003
+ align: "end",
1004
+ children: /* @__PURE__ */ U(r, {
1005
+ tag: "span",
1006
+ numeric: !0,
1007
+ children: e.quantity
1008
+ })
1009
+ }),
1010
+ /* @__PURE__ */ U(L, {
1011
+ align: "end",
1012
+ children: /* @__PURE__ */ U(h, {
1013
+ amount: e.unitPrice,
1014
+ currency: t
1015
+ })
1016
+ }),
1017
+ /* @__PURE__ */ U(L, {
1018
+ align: "end",
1019
+ children: /* @__PURE__ */ U(h, {
1020
+ amount: e.quantity * e.unitPrice,
1021
+ currency: t
1022
+ })
1023
+ })
1024
+ ] }, e.id ?? `${e.description}-${n}`)) }),
1025
+ /* @__PURE__ */ W(_e, { children: [
1026
+ /* @__PURE__ */ W(R, { children: [/* @__PURE__ */ U(L, {
1027
+ colSpan: 3,
1028
+ align: "end",
1029
+ children: c.subtotal
1030
+ }), /* @__PURE__ */ U(L, {
1031
+ align: "end",
1032
+ children: /* @__PURE__ */ U(h, {
1033
+ amount: l,
1034
+ currency: t
1035
+ })
1036
+ })] }),
1037
+ u !== null && /* @__PURE__ */ W(R, { children: [/* @__PURE__ */ W(L, {
1038
+ colSpan: 3,
1039
+ align: "end",
1040
+ children: [
1041
+ c.tax,
1042
+ " ",
1043
+ /* @__PURE__ */ U(v, { value: n })
1044
+ ]
1045
+ }), /* @__PURE__ */ U(L, {
1046
+ align: "end",
1047
+ children: /* @__PURE__ */ U(h, {
1048
+ amount: u,
1049
+ currency: t
1050
+ })
1051
+ })] }),
1052
+ /* @__PURE__ */ W(R, { children: [/* @__PURE__ */ U(L, {
1053
+ colSpan: 3,
1054
+ align: "end",
1055
+ children: /* @__PURE__ */ U(r, {
1056
+ tag: "span",
1057
+ weight: "semibold",
1058
+ children: c.total
1059
+ })
1060
+ }), /* @__PURE__ */ U(L, {
1061
+ align: "end",
1062
+ children: /* @__PURE__ */ U(h, {
1063
+ amount: d,
1064
+ currency: t,
1065
+ weight: "bold"
1066
+ })
1067
+ })] })
1068
+ ] })
1069
+ ] })
1070
+ }), /* @__PURE__ */ W("div", {
1071
+ className: Y.invoiceMobile,
1072
+ children: [/* @__PURE__ */ U(N, {
1073
+ ruled: !0,
1074
+ children: e.map((e, n) => /* @__PURE__ */ W(F, { children: [/* @__PURE__ */ W(P, { children: [/* @__PURE__ */ U(I, { children: e.description }), /* @__PURE__ */ W(M, { children: [
1075
+ /* @__PURE__ */ U(r, {
1076
+ tag: "span",
1077
+ size: "inherit",
1078
+ type: "inherit",
1079
+ numeric: !0,
1080
+ children: e.quantity
1081
+ }),
1082
+ " × ",
1083
+ /* @__PURE__ */ U(h, {
1084
+ amount: e.unitPrice,
1085
+ currency: t,
1086
+ size: "inherit",
1087
+ type: "inherit"
1088
+ })
1089
+ ] })] }), /* @__PURE__ */ U(le, { children: /* @__PURE__ */ U(h, {
1090
+ amount: e.quantity * e.unitPrice,
1091
+ currency: t,
1092
+ weight: "semibold"
1093
+ }) })] }, e.id ?? `${e.description}-${n}`))
1094
+ }), /* @__PURE__ */ U(Z, { children: [
1095
+ {
1096
+ label: c.subtotal,
1097
+ amount: l
1098
+ },
1099
+ ...u === null ? [] : [{
1100
+ label: /* @__PURE__ */ W(H, { children: [
1101
+ c.tax,
1102
+ " ",
1103
+ /* @__PURE__ */ U(v, { value: n })
1104
+ ] }),
1105
+ amount: u
1106
+ }],
1107
+ {
1108
+ label: c.total,
1109
+ amount: d,
1110
+ total: !0
1111
+ }
1112
+ ].map((e, n) => /* @__PURE__ */ W("div", {
1113
+ className: i(Y.amountRow, e.total && Y.summaryRollup),
1114
+ children: [/* @__PURE__ */ U(r, {
1115
+ weight: e.total ? "semibold" : "normal",
1116
+ type: e.total ? "main" : "secondary",
1117
+ children: e.label
1118
+ }), /* @__PURE__ */ U(h, {
1119
+ amount: e.amount,
1120
+ currency: t,
1121
+ weight: e.total ? "bold" : "medium",
1122
+ className: Y.amountValue
1123
+ })]
1124
+ }, n)) })]
1125
+ })]
1126
+ });
1127
+ }
1128
+ function Ft({ invoiceNumber: e, status: t, customerName: n, lineCount: a, dueAt: o, total: s, strings: c, className: l, ...u }) {
1129
+ let d = {
1130
+ ...G,
1131
+ ...c
1132
+ };
1133
+ return /* @__PURE__ */ W("div", {
1134
+ className: i("invoice-mini--component", Y.invoiceMini, l),
1135
+ ...u,
1136
+ children: [
1137
+ /* @__PURE__ */ W("div", {
1138
+ className: Y.invoiceMiniHead,
1139
+ children: [/* @__PURE__ */ U(p, {
1140
+ truncate: !0,
1141
+ children: e
1142
+ }), /* @__PURE__ */ U(x, {
1143
+ tone: bt[t],
1144
+ dot: !0,
1145
+ children: d[t]
1146
+ })]
1147
+ }),
1148
+ /* @__PURE__ */ U(r, {
1149
+ type: "secondary",
1150
+ truncate: !0,
1151
+ children: n
1152
+ }),
1153
+ /* @__PURE__ */ W("div", {
1154
+ className: Y.invoiceMiniFoot,
1155
+ children: [/* @__PURE__ */ W("span", {
1156
+ className: Y.invoiceMiniMeta,
1157
+ children: [/* @__PURE__ */ U(r, {
1158
+ size: "xs",
1159
+ type: "secondary",
1160
+ children: d.formatLineCount(a)
1161
+ }), /* @__PURE__ */ U(r, {
1162
+ size: "xs",
1163
+ type: "secondary",
1164
+ numeric: !0,
1165
+ children: o
1166
+ })]
1167
+ }), /* @__PURE__ */ U(r, {
1168
+ tag: "span",
1169
+ weight: "bold",
1170
+ numeric: !0,
1171
+ children: s
1172
+ })]
1173
+ })
1174
+ ]
1175
+ });
1176
+ }
1177
+ //#endregion
1178
+ //#region src/components/blocks/admin/commerce/address-lines.tsx
1179
+ function It({ address: e, prominent: t = !1, className: n, ...a }) {
1180
+ let o = [
1181
+ e.city,
1182
+ e.region,
1183
+ e.postalCode
1184
+ ].filter(Boolean).join(", ");
1185
+ return /* @__PURE__ */ W("address", {
1186
+ className: i("address-lines--component", Y.address, n),
1187
+ ...a,
1188
+ children: [
1189
+ e.name != null && /* @__PURE__ */ U(r, {
1190
+ size: "inherit",
1191
+ weight: t ? "semibold" : void 0,
1192
+ className: Y.addressName,
1193
+ children: e.name
1194
+ }),
1195
+ /* @__PURE__ */ U(r, {
1196
+ size: "inherit",
1197
+ type: "secondary",
1198
+ children: e.line1
1199
+ }),
1200
+ e.line2 != null && /* @__PURE__ */ U(r, {
1201
+ size: "inherit",
1202
+ type: "secondary",
1203
+ children: e.line2
1204
+ }),
1205
+ /* @__PURE__ */ U(r, {
1206
+ size: "inherit",
1207
+ type: "secondary",
1208
+ children: o
1209
+ }),
1210
+ /* @__PURE__ */ U(r, {
1211
+ size: "inherit",
1212
+ type: "secondary",
1213
+ children: e.country
1214
+ }),
1215
+ e.phone != null && /* @__PURE__ */ U(y, { value: e.phone })
1216
+ ]
1217
+ });
1218
+ }
1219
+ //#endregion
1220
+ //#region src/components/blocks/admin/commerce/account.tsx
1221
+ function Lt({ kind: e = "shipping", name: t, line1: n, line2: r, city: o, region: s, postalCode: c, country: l, phone: u, isDefault: d = !1, onEdit: f, onRemove: p, onMakeDefault: m, strings: h, className: g, ..._ }) {
1222
+ let v = {
1223
+ ...tt,
1224
+ ...h
1225
+ };
1226
+ return /* @__PURE__ */ W(D, {
1227
+ icon: /* @__PURE__ */ U(je, { "aria-hidden": "true" }),
1228
+ title: v[e],
1229
+ titleSuffix: d ? /* @__PURE__ */ U(x, {
1230
+ tone: "info",
1231
+ children: v.defaultBadge
1232
+ }) : void 0,
1233
+ className: i("address-card--component", Y.block, g),
1234
+ ..._,
1235
+ children: [/* @__PURE__ */ U(It, {
1236
+ prominent: !0,
1237
+ address: {
1238
+ name: t,
1239
+ line1: n,
1240
+ line2: r,
1241
+ city: o,
1242
+ region: s,
1243
+ postalCode: c,
1244
+ country: l,
1245
+ phone: u
1246
+ }
1247
+ }), (f || p || m) && /* @__PURE__ */ W("div", {
1248
+ className: Y.blockActions,
1249
+ children: [
1250
+ f && /* @__PURE__ */ U(a, {
1251
+ tone: "secondary",
1252
+ appearance: "outline",
1253
+ onClick: f,
1254
+ children: v.edit
1255
+ }),
1256
+ m && !d && /* @__PURE__ */ U(a, {
1257
+ tone: "secondary",
1258
+ appearance: "ghost",
1259
+ onClick: m,
1260
+ children: v.makeDefault
1261
+ }),
1262
+ p && /* @__PURE__ */ U(a, {
1263
+ tone: "destructive",
1264
+ appearance: "ghost",
1265
+ onClick: p,
1266
+ children: v.remove
1267
+ })
1268
+ ]
1269
+ })]
1270
+ });
1271
+ }
1272
+ var Rt = {
1273
+ visa: "Visa",
1274
+ mastercard: "Mastercard",
1275
+ amex: "American Express",
1276
+ paypal: "PayPal",
1277
+ applePay: "Apple Pay",
1278
+ googlePay: "Google Pay",
1279
+ unknown: "Card"
1280
+ };
1281
+ function zt({ brand: e, last4: t, expiry: n, holderName: o, isDefault: s = !1, onChange: c, strings: l, className: u, ...d }) {
1282
+ let f = {
1283
+ ...nt,
1284
+ ...l
1285
+ }, p = Rt[e];
1286
+ return /* @__PURE__ */ W(D, {
1287
+ icon: /* @__PURE__ */ U(V, { "aria-hidden": "true" }),
1288
+ title: f.title,
1289
+ titleSuffix: s ? /* @__PURE__ */ U(x, {
1290
+ tone: "info",
1291
+ children: f.defaultBadge
1292
+ }) : void 0,
1293
+ className: i("payment-method--component", Y.block, u),
1294
+ ...d,
1295
+ children: [/* @__PURE__ */ W("div", {
1296
+ className: Y.paymentIdentity,
1297
+ children: [
1298
+ /* @__PURE__ */ U(k, {
1299
+ icon: V,
1300
+ shape: "rounded"
1301
+ }),
1302
+ /* @__PURE__ */ W("div", {
1303
+ className: Y.paymentIdentityBody,
1304
+ children: [/* @__PURE__ */ U(r, {
1305
+ weight: "semibold",
1306
+ children: f.formatCard(p, t)
1307
+ }), o != null && /* @__PURE__ */ U(r, {
1308
+ size: "xs",
1309
+ type: "secondary",
1310
+ children: o
1311
+ })]
1312
+ }),
1313
+ c && /* @__PURE__ */ U(a, {
1314
+ tone: "secondary",
1315
+ appearance: "ghost",
1316
+ onClick: c,
1317
+ children: f.change
1318
+ })
1319
+ ]
1320
+ }), n != null && /* @__PURE__ */ U(Z, { children: /* @__PURE__ */ U(X, {
1321
+ label: f.expires,
1322
+ amount: n
1323
+ }) })]
1324
+ });
1325
+ }
1326
+ function Bt({ planName: t, price: n, cycle: o, nextBillingDate: s, status: c, perks: l, onManage: u, onUpgrade: d, strings: f, className: p, ...m }) {
1327
+ let h = {
1328
+ ...rt,
1329
+ ...f
1330
+ };
1331
+ return /* @__PURE__ */ W(D, {
1332
+ icon: /* @__PURE__ */ U(Ie, { "aria-hidden": "true" }),
1333
+ title: h.title,
1334
+ titleSuffix: c == null ? void 0 : /* @__PURE__ */ U(x, {
1335
+ tone: "success",
1336
+ children: c
1337
+ }),
1338
+ className: i("subscription-summary--component", Y.block, p),
1339
+ ...m,
1340
+ children: [
1341
+ /* @__PURE__ */ W("div", {
1342
+ className: Y.orderFact,
1343
+ children: [/* @__PURE__ */ U(e, { children: h.plan }), /* @__PURE__ */ U(r, {
1344
+ weight: "semibold",
1345
+ children: t
1346
+ })]
1347
+ }),
1348
+ /* @__PURE__ */ W(Z, { children: [/* @__PURE__ */ U(X, {
1349
+ label: o,
1350
+ amount: n,
1351
+ total: !0
1352
+ }), /* @__PURE__ */ U(X, {
1353
+ label: h.nextBilling,
1354
+ amount: s
1355
+ })] }),
1356
+ l && l.length > 0 && /* @__PURE__ */ W("div", {
1357
+ className: Y.perks,
1358
+ children: [/* @__PURE__ */ U(e, { children: h.included }), /* @__PURE__ */ U("ul", {
1359
+ className: Y.perkList,
1360
+ children: l.map((e) => /* @__PURE__ */ W("li", {
1361
+ className: Y.perk,
1362
+ children: [e.icon && /* @__PURE__ */ U(e.icon, {
1363
+ className: Y.perkIcon,
1364
+ "aria-hidden": "true"
1365
+ }), /* @__PURE__ */ U(r, {
1366
+ tag: "span",
1367
+ children: e.label
1368
+ })]
1369
+ }, e.label))
1370
+ })]
1371
+ }),
1372
+ (u || d) && /* @__PURE__ */ W("div", {
1373
+ className: Y.blockActions,
1374
+ children: [d && /* @__PURE__ */ U(a, {
1375
+ onClick: d,
1376
+ children: h.upgrade
1377
+ }), u && /* @__PURE__ */ U(a, {
1378
+ tone: "secondary",
1379
+ appearance: "outline",
1380
+ onClick: u,
1381
+ children: h.manage
1382
+ })]
1383
+ })
1384
+ ]
1385
+ });
1386
+ }
1387
+ function Vt({ productName: e, variant: t, stock: n, reorderLevel: a, maxStock: o, lastRestocked: s, strings: c, className: l, ...u }) {
1388
+ let d = {
1389
+ ...it,
1390
+ ...c
1391
+ }, f = n <= 0 ? "out" : n <= a ? "low" : "ok", p = f === "out" ? "destructive" : f === "low" ? "warning" : "success", m = f === "out" ? d.outOfStock : f === "low" ? d.lowStock : d.inStock;
1392
+ return /* @__PURE__ */ W(D, {
1393
+ icon: /* @__PURE__ */ U(Me, { "aria-hidden": "true" }),
1394
+ title: e,
1395
+ description: t,
1396
+ titleSuffix: /* @__PURE__ */ U(x, {
1397
+ tone: p,
1398
+ children: m
1399
+ }),
1400
+ className: i("inventory-level--component", Y.block, l),
1401
+ ...u,
1402
+ children: [
1403
+ /* @__PURE__ */ U(r, {
1404
+ weight: "semibold",
1405
+ numeric: !0,
1406
+ children: d.formatLevel(n, o)
1407
+ }),
1408
+ /* @__PURE__ */ U(w, {
1409
+ value: n,
1410
+ max: o,
1411
+ tone: p,
1412
+ label: d.formatLevel(n, o)
1413
+ }),
1414
+ /* @__PURE__ */ W(Z, { children: [/* @__PURE__ */ U(X, {
1415
+ label: d.reorderAt,
1416
+ amount: String(a)
1417
+ }), s != null && /* @__PURE__ */ U(X, {
1418
+ label: d.lastRestocked,
1419
+ amount: s
1420
+ })] })
1421
+ ]
1422
+ });
1423
+ }
1424
+ //#endregion
1425
+ //#region src/components/blocks/admin/commerce/booking.tsx
1426
+ function Ht({ bookings: e, boxedDate: t = !1, className: n, ...a }) {
1427
+ return /* @__PURE__ */ U("div", {
1428
+ className: i("upcoming-bookings--component", n),
1429
+ ...a,
1430
+ children: /* @__PURE__ */ U(N, {
1431
+ ruled: !0,
1432
+ children: e.map((e) => /* @__PURE__ */ W(F, {
1433
+ className: Y.commerceLine,
1434
+ children: [
1435
+ /* @__PURE__ */ U(ce, {
1436
+ className: Y.summaryLineMedia,
1437
+ children: /* @__PURE__ */ U(te, {
1438
+ date: e.date,
1439
+ showWeekday: !1,
1440
+ boxed: t,
1441
+ className: Y.bookingDate
1442
+ })
1443
+ }),
1444
+ /* @__PURE__ */ W(P, {
1445
+ className: Y.summaryLineBody,
1446
+ children: [/* @__PURE__ */ U(I, {
1447
+ className: Y.summaryLineTitle,
1448
+ children: e.service
1449
+ }), /* @__PURE__ */ W(c, {
1450
+ direction: "horizontal",
1451
+ align: "baseline",
1452
+ wrap: !0,
1453
+ gap: "sm",
1454
+ children: [/* @__PURE__ */ U(r, {
1455
+ tag: "span",
1456
+ size: "xs",
1457
+ numeric: !0,
1458
+ children: e.time
1459
+ }), /* @__PURE__ */ U(M, { children: e.customer })]
1460
+ })]
1461
+ }),
1462
+ /* @__PURE__ */ U(P, {
1463
+ className: Y.summaryLinePrice,
1464
+ children: /* @__PURE__ */ U(r, {
1465
+ tag: "span",
1466
+ weight: "semibold",
1467
+ numeric: !0,
1468
+ children: e.amount
1469
+ })
1470
+ })
1471
+ ]
1472
+ }, e.id))
1473
+ })
1474
+ });
1475
+ }
1476
+ function Ut({ status: t, details: n, actionLabel: o, onAction: s, className: c, ...l }) {
1477
+ return /* @__PURE__ */ W(D, {
1478
+ titleSuffix: t,
1479
+ className: i("booking-card--component", Y.block, c),
1480
+ ...l,
1481
+ children: [/* @__PURE__ */ U("dl", {
1482
+ className: i("booking-card--details", Y.bookingDetails),
1483
+ children: n.map((t) => /* @__PURE__ */ W("div", {
1484
+ "data-full": t.fullWidth ? "" : void 0,
1485
+ className: Y.bookingDetail,
1486
+ children: [/* @__PURE__ */ U("dt", { children: /* @__PURE__ */ U(e, { children: t.label }) }), /* @__PURE__ */ U("dd", {
1487
+ className: Y.bookingValue,
1488
+ children: /* @__PURE__ */ U(r, {
1489
+ tag: "div",
1490
+ children: t.value
1491
+ })
1492
+ })]
1493
+ }, t.id))
1494
+ }), o != null && s && /* @__PURE__ */ U("div", {
1495
+ className: Y.bookingAction,
1496
+ children: /* @__PURE__ */ U(a, {
1497
+ onClick: s,
1498
+ children: o
1499
+ })
1500
+ })]
1501
+ });
1502
+ }
1503
+ //#endregion
1504
+ //#region src/components/blocks/admin/commerce/loyalty.tsx
1505
+ function Wt({ balance: t, tier: n, tierTone: o = "warning", movements: s, onRedeem: c, strings: l, className: u, ...d }) {
1506
+ let f = {
1507
+ ...at,
1508
+ ...l
1509
+ };
1510
+ return /* @__PURE__ */ W(D, {
1511
+ title: f.title,
1512
+ titleSuffix: n == null ? void 0 : /* @__PURE__ */ U(x, {
1513
+ tone: o,
1514
+ children: n
1515
+ }),
1516
+ className: i("loyalty-points--component", Y.block, u),
1517
+ ...d,
1518
+ children: [
1519
+ /* @__PURE__ */ W("div", {
1520
+ className: Y.loyaltyBalance,
1521
+ children: [/* @__PURE__ */ U(e, { children: f.balanceLabel }), /* @__PURE__ */ W("span", {
1522
+ className: Y.loyaltyFigure,
1523
+ children: [/* @__PURE__ */ U(r, {
1524
+ tag: "span",
1525
+ size: "xl",
1526
+ weight: "bold",
1527
+ numeric: !0,
1528
+ lineHeight: "none",
1529
+ children: typeof t == "number" ? /* @__PURE__ */ U(b, {
1530
+ value: t,
1531
+ size: "inherit",
1532
+ weight: "bold"
1533
+ }) : t
1534
+ }), /* @__PURE__ */ U(r, {
1535
+ tag: "span",
1536
+ size: "xs",
1537
+ type: "secondary",
1538
+ children: f.pointsAvailable
1539
+ })]
1540
+ })]
1541
+ }),
1542
+ s && s.length > 0 && /* @__PURE__ */ W("div", {
1543
+ className: Y.loyaltyActivity,
1544
+ children: [/* @__PURE__ */ U(e, { children: f.activityLabel }), /* @__PURE__ */ U(N, {
1545
+ ruled: !0,
1546
+ children: s.map((e) => /* @__PURE__ */ W(F, { children: [/* @__PURE__ */ W(P, { children: [/* @__PURE__ */ U(I, { children: e.label }), /* @__PURE__ */ U(M, { children: e.date })] }), /* @__PURE__ */ U(le, { children: /* @__PURE__ */ W(r, {
1547
+ tag: "span",
1548
+ type: e.earned ? "success" : "secondary",
1549
+ weight: "semibold",
1550
+ numeric: !0,
1551
+ children: [e.earned ? "+" : "−", J(e.points).replace(/^\+\s*/, "")]
1552
+ }) })] }, e.id))
1553
+ })]
1554
+ }),
1555
+ c && /* @__PURE__ */ U("div", {
1556
+ className: Y.blockActions,
1557
+ children: /* @__PURE__ */ U(a, {
1558
+ onClick: c,
1559
+ children: f.redeem
1560
+ })
1561
+ })
1562
+ ]
1563
+ });
1564
+ }
1565
+ //#endregion
1566
+ //#region src/components/blocks/admin/commerce/vendor-profile.tsx
1567
+ function Gt({ name: t, initials: n, avatarUrl: o, role: s, verified: c = !1, earnings: f, metrics: p, stats: m, view: h, onViewChange: g, onMessage: v, onHire: y, strings: b, className: ee, ...S }) {
1568
+ let C = {
1569
+ ...ot,
1570
+ ...b
1571
+ }, w = !!p?.length, T = !!m?.length, te = w && T, [ne, re] = me({
1572
+ value: h,
1573
+ defaultValue: w ? "overview" : "stats",
1574
+ onChange: g
1575
+ }), E = w && /* @__PURE__ */ U(O, {
1576
+ layout: "rows",
1577
+ items: p.map((e, t) => ({
1578
+ id: e.id ?? String(t),
1579
+ label: e.label,
1580
+ value: e.value,
1581
+ render: () => /* @__PURE__ */ U(r, {
1582
+ tag: "div",
1583
+ weight: "medium",
1584
+ children: e.value
1585
+ })
1586
+ }))
1587
+ }), A = T && /* @__PURE__ */ U("div", {
1588
+ className: Y.vendorStats,
1589
+ children: m.map((t, n) => /* @__PURE__ */ W("div", {
1590
+ className: Y.vendorStat,
1591
+ children: [
1592
+ /* @__PURE__ */ U(e, { children: t.label }),
1593
+ /* @__PURE__ */ U(r, {
1594
+ size: "lg",
1595
+ weight: "semibold",
1596
+ lineHeight: "tight",
1597
+ children: t.value
1598
+ }),
1599
+ t.change != null && /* @__PURE__ */ U(x, {
1600
+ tone: t.changeTone ?? "secondary",
1601
+ children: t.change
1602
+ })
1603
+ ]
1604
+ }, t.id ?? n))
1605
+ });
1606
+ return /* @__PURE__ */ W(D, {
1607
+ className: i("vendor-profile--component", Y.block, ee),
1608
+ ...S,
1609
+ children: [
1610
+ /* @__PURE__ */ W("div", {
1611
+ className: Y.vendorIdentity,
1612
+ children: [/* @__PURE__ */ W(d, { children: [o != null && /* @__PURE__ */ U(u, {
1613
+ src: o,
1614
+ alt: ""
1615
+ }), /* @__PURE__ */ U(l, { children: n ?? _(t) })] }), /* @__PURE__ */ W("div", {
1616
+ className: Y.vendorIdentityBody,
1617
+ children: [/* @__PURE__ */ W("span", {
1618
+ className: Y.vendorName,
1619
+ children: [/* @__PURE__ */ U(r, {
1620
+ tag: "span",
1621
+ weight: "semibold",
1622
+ children: t
1623
+ }), c && /* @__PURE__ */ U(k, {
1624
+ icon: Se,
1625
+ tone: "success",
1626
+ shape: "circle",
1627
+ solid: !0,
1628
+ role: "img",
1629
+ "aria-label": C.verified,
1630
+ className: Y.vendorVerified
1631
+ })]
1632
+ }), s != null && /* @__PURE__ */ U(r, {
1633
+ size: "xs",
1634
+ type: "secondary",
1635
+ children: s
1636
+ })]
1637
+ })]
1638
+ }),
1639
+ f != null && /* @__PURE__ */ U(Z, { children: /* @__PURE__ */ U(X, {
1640
+ label: C.totalEarnings,
1641
+ amount: f,
1642
+ total: !0
1643
+ }) }),
1644
+ te ? /* @__PURE__ */ W(fe, {
1645
+ value: ne,
1646
+ onValueChange: (e) => re(e),
1647
+ children: [
1648
+ /* @__PURE__ */ W(ue, { children: [/* @__PURE__ */ U(pe, {
1649
+ value: "overview",
1650
+ children: C.tabOverview
1651
+ }), /* @__PURE__ */ U(pe, {
1652
+ value: "stats",
1653
+ children: C.tabStats
1654
+ })] }),
1655
+ /* @__PURE__ */ U(de, {
1656
+ value: "overview",
1657
+ children: E
1658
+ }),
1659
+ /* @__PURE__ */ U(de, {
1660
+ value: "stats",
1661
+ children: A
1662
+ })
1663
+ ]
1664
+ }) : /* @__PURE__ */ W(H, { children: [E, A] }),
1665
+ (v || y) && /* @__PURE__ */ W("div", {
1666
+ className: i(Y.blockActions, Y.vendorActions),
1667
+ children: [y && /* @__PURE__ */ U(a, {
1668
+ onClick: y,
1669
+ children: C.hire
1670
+ }), v && /* @__PURE__ */ U(a, {
1671
+ tone: "secondary",
1672
+ appearance: "outline",
1673
+ onClick: v,
1674
+ children: C.message
1675
+ })]
1676
+ })
1677
+ ]
1678
+ });
1679
+ }
1680
+ //#endregion
1681
+ //#region src/components/blocks/admin/commerce/seo-score.ts
1682
+ var Kt = {
1683
+ titleMin: 35,
1684
+ titleMax: 60,
1685
+ descriptionMin: 120,
1686
+ descriptionMax: 160,
1687
+ permalinkMax: 75
1688
+ };
1689
+ function qt(e) {
1690
+ return Number.isFinite(e) ? Math.max(0, Math.min(1, e)) : 0;
1691
+ }
1692
+ function Jt(e, t) {
1693
+ if (t <= 0) return "missing";
1694
+ let n = e / t;
1695
+ return n >= .9 ? "good" : n >= .5 ? "review" : "missing";
1696
+ }
1697
+ function Q(e, t, n, r, i) {
1698
+ let a = qt(t), o = Math.round(a * n);
1699
+ return {
1700
+ id: e,
1701
+ score: o,
1702
+ maxScore: n,
1703
+ ratio: a,
1704
+ actual: r,
1705
+ status: Jt(o, n),
1706
+ ...i
1707
+ };
1708
+ }
1709
+ function Yt(e, t, n) {
1710
+ let r = e.trim().length;
1711
+ return r === 0 ? 0 : r >= t && r <= n ? 1 : r < t ? Math.max(.35, r / t) : r > n * 2 ? .35 : Math.max(.55, 1 - (r - n) / n);
1712
+ }
1713
+ function $(e) {
1714
+ let t = e?.trim() ?? "";
1715
+ return t ? ((t.split("#")[0] ?? "").split("?")[0] ?? "").replace(/^https?:\/\/[^/]+/i, "").replace(/^\/+|\/+$/g, "") : "";
1716
+ }
1717
+ function Xt(e) {
1718
+ return $(e).split("/").filter(Boolean).at(-1) ?? "";
1719
+ }
1720
+ function Zt(e, t) {
1721
+ let n = $(e);
1722
+ return n ? n.length <= t ? 1 : n.length > t * 2 ? .35 : Math.max(.55, 1 - (n.length - t) / t) : 0;
1723
+ }
1724
+ function Qt(e) {
1725
+ let t = Xt(e);
1726
+ 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;
1727
+ }
1728
+ function $t(e) {
1729
+ let t = e?.trim() ?? "";
1730
+ return t ? /^https:\/\//i.test(t) ? 1 : /^http:\/\//i.test(t) ? .6 : .45 : 0;
1731
+ }
1732
+ function en(e) {
1733
+ let t = e.keyword?.trim().toLowerCase();
1734
+ if (!t) return null;
1735
+ let n = [
1736
+ e.title,
1737
+ e.description,
1738
+ $(e.permalink)
1739
+ ].filter(Boolean).join(" ").toLowerCase();
1740
+ return n ? n.includes(t) ? 1 : .35 : 0;
1741
+ }
1742
+ function tn(e) {
1743
+ let t = {
1744
+ ...Kt,
1745
+ ...e.limits
1746
+ }, n = e.title?.trim() ?? "", r = e.description?.trim() ?? "", i = [
1747
+ Q("title", Yt(n, t.titleMin, t.titleMax), 30, n.length, {
1748
+ min: t.titleMin,
1749
+ max: t.titleMax
1750
+ }),
1751
+ Q("description", Yt(r, t.descriptionMin, t.descriptionMax), 30, r.length, {
1752
+ min: t.descriptionMin,
1753
+ max: t.descriptionMax
1754
+ }),
1755
+ Q("permalink", Zt(e.permalink, t.permalinkMax), 15, $(e.permalink).length, { max: t.permalinkMax }),
1756
+ Q("slug", Qt(e.permalink), 10, Xt(e.permalink).length),
1757
+ Q("url", $t(e.baseUrl), 10, e.baseUrl?.trim().length ?? 0)
1758
+ ], a = en(e);
1759
+ a !== null && i.push(Q("keyword", a, 5, e.keyword?.trim().length ?? 0));
1760
+ let o = i.reduce((e, t) => e + t.score, 0), s = i.reduce((e, t) => e + t.maxScore, 0), c = Math.round(o / s * 100);
1761
+ return {
1762
+ score: c,
1763
+ status: Jt(c, 100),
1764
+ checks: i,
1765
+ limits: t
1766
+ };
1767
+ }
1768
+ //#endregion
1769
+ //#region src/components/blocks/admin/commerce/seo-listing.tsx
1770
+ var nn = {
1771
+ good: we,
1772
+ review: Ce,
1773
+ missing: Te
1774
+ }, rn = {
1775
+ good: "success",
1776
+ review: "warning",
1777
+ missing: "destructive"
1778
+ };
1779
+ function an({ listing: e, score: t, onEdit: n, strings: o, className: s, ...c }) {
1780
+ let l = f(st, o), u = t ?? tn(e), d = $(e.permalink), p = [e.baseUrl?.trim().replace(/\/+$/, "") ?? "", d].filter(Boolean).join("/"), m = (e) => l.checks[e.id], h = (e) => e.max == null ? String(e.actual) : l.formatMeasure(e.actual, e.max);
1781
+ return /* @__PURE__ */ W(D, {
1782
+ icon: /* @__PURE__ */ U(Re, { "aria-hidden": "true" }),
1783
+ title: l.title,
1784
+ titleSuffix: /* @__PURE__ */ U(x, {
1785
+ tone: rn[u.status],
1786
+ children: l.formatScore(u.score)
1787
+ }),
1788
+ className: i("seo-listing--component", Y.block, s),
1789
+ ...c,
1790
+ children: [
1791
+ /* @__PURE__ */ W(D, {
1792
+ surface: "bordered",
1793
+ className: i("seo-listing--preview", Y.seoPreview),
1794
+ children: [
1795
+ /* @__PURE__ */ U("span", {
1796
+ className: Y.seoUrl,
1797
+ children: /* @__PURE__ */ U(r, {
1798
+ tag: "span",
1799
+ size: "xs",
1800
+ type: "secondary",
1801
+ children: p || l.noPermalink
1802
+ })
1803
+ }),
1804
+ /* @__PURE__ */ U(r, {
1805
+ weight: "semibold",
1806
+ className: Y.seoTitle,
1807
+ children: e.title?.trim() || l.noTitle
1808
+ }),
1809
+ /* @__PURE__ */ U(r, {
1810
+ type: "secondary",
1811
+ className: Y.seoDescription,
1812
+ children: e.description?.trim() || l.noDescription
1813
+ })
1814
+ ]
1815
+ }),
1816
+ /* @__PURE__ */ U("ul", {
1817
+ className: i("seo-listing--checks", Y.seoChecks),
1818
+ children: u.checks.map((e) => {
1819
+ let t = nn[e.status], n = e.max != null, i = Math.round((e.ratio ?? e.score / (e.maxScore || 1)) * 100);
1820
+ return /* @__PURE__ */ W("li", {
1821
+ "data-status": e.status,
1822
+ className: Y.seoCheck,
1823
+ children: [
1824
+ /* @__PURE__ */ U(t, {
1825
+ "data-tone": rn[e.status],
1826
+ className: Y.seoCheckIcon,
1827
+ "aria-hidden": "true"
1828
+ }),
1829
+ /* @__PURE__ */ W("span", {
1830
+ className: Y.seoCheckBody,
1831
+ children: [/* @__PURE__ */ U(r, {
1832
+ tag: "span",
1833
+ weight: "medium",
1834
+ children: m(e)
1835
+ }), /* @__PURE__ */ W(r, {
1836
+ tag: "span",
1837
+ size: "xs",
1838
+ type: "secondary",
1839
+ children: [n ? /* @__PURE__ */ W(H, { children: [h(e), " · "] }) : null, l.status[e.status]]
1840
+ })]
1841
+ }),
1842
+ /* @__PURE__ */ U(r, {
1843
+ tag: "span",
1844
+ size: "xs",
1845
+ type: "secondary",
1846
+ numeric: !0,
1847
+ children: l.formatPercent(i)
1848
+ })
1849
+ ]
1850
+ }, e.id);
1851
+ })
1852
+ }),
1853
+ n && /* @__PURE__ */ U("div", {
1854
+ className: Y.blockActions,
1855
+ children: /* @__PURE__ */ U(a, {
1856
+ tone: "secondary",
1857
+ appearance: "outline",
1858
+ onClick: n,
1859
+ children: l.edit
1860
+ })
1861
+ })
1862
+ ]
1863
+ });
1864
+ }
1865
+ //#endregion
1866
+ //#region src/components/blocks/admin/commerce/inventory-section.tsx
1867
+ var on = [
1868
+ "summary",
1869
+ "identity",
1870
+ "tracking",
1871
+ "location",
1872
+ "shipping",
1873
+ "customs",
1874
+ "tags"
1875
+ ];
1876
+ function sn({ value: t, onFieldChange: n, sections: a = on, strings: o, className: s, ...c }) {
1877
+ let l = f(ct, o), u = new Set(a), d = t.trackQuantity !== !1;
1878
+ function p(e, r) {
1879
+ n?.({
1880
+ field: e,
1881
+ value: r,
1882
+ previousValue: t[e]
1883
+ });
1884
+ }
1885
+ let m = (e, r) => /* @__PURE__ */ U(j, {
1886
+ label: l.fields[e],
1887
+ hint: r,
1888
+ children: /* @__PURE__ */ U(oe, {
1889
+ value: t[e] ?? "",
1890
+ readOnly: !n,
1891
+ inputMode: e === "weight" ? "decimal" : [
1892
+ "available",
1893
+ "committed",
1894
+ "incoming",
1895
+ "lowStockThreshold"
1896
+ ].includes(e) ? "numeric" : void 0,
1897
+ placeholder: l.placeholders[e],
1898
+ onChange: (t) => p(e, t.target.value)
1899
+ })
1900
+ });
1901
+ return /* @__PURE__ */ W(D, {
1902
+ title: l.title,
1903
+ description: l.description,
1904
+ className: i("inventory-section--component", Y.block, s),
1905
+ ...c,
1906
+ children: [
1907
+ u.has("summary") && d && /* @__PURE__ */ U(Z, {
1908
+ className: "inventory-section--summary",
1909
+ children: /* @__PURE__ */ U(O, {
1910
+ columns: {
1911
+ base: 2,
1912
+ lg: 4
1913
+ },
1914
+ items: [
1915
+ {
1916
+ id: "available",
1917
+ label: l.summary.available,
1918
+ value: t.available ?? "0"
1919
+ },
1920
+ {
1921
+ id: "committed",
1922
+ label: l.summary.committed,
1923
+ value: t.committed ?? "0"
1924
+ },
1925
+ {
1926
+ id: "incoming",
1927
+ label: l.summary.incoming,
1928
+ value: t.incoming ?? "0"
1929
+ },
1930
+ ...t.lowStockThreshold == null ? [] : [{
1931
+ id: "threshold",
1932
+ label: l.summary.threshold,
1933
+ value: t.lowStockThreshold
1934
+ }]
1935
+ ].map((e) => ({
1936
+ ...e,
1937
+ render: () => /* @__PURE__ */ U(r, {
1938
+ size: "lg",
1939
+ weight: "semibold",
1940
+ numeric: !0,
1941
+ lineHeight: "tight",
1942
+ children: e.value
1943
+ })
1944
+ }))
1945
+ })
1946
+ }),
1947
+ u.has("identity") && /* @__PURE__ */ W("fieldset", {
1948
+ className: i("inventory-section--group", Y.inventoryGroup),
1949
+ children: [/* @__PURE__ */ U("legend", {
1950
+ className: Y.inventoryLegend,
1951
+ children: /* @__PURE__ */ U(e, { children: l.sections.identity })
1952
+ }), /* @__PURE__ */ W("div", {
1953
+ className: Y.inventoryFields,
1954
+ children: [m("sku"), m("barcode")]
1955
+ })]
1956
+ }),
1957
+ u.has("tracking") && /* @__PURE__ */ W("fieldset", {
1958
+ className: i("inventory-section--group", Y.inventoryGroup),
1959
+ children: [
1960
+ /* @__PURE__ */ U("legend", {
1961
+ className: Y.inventoryLegend,
1962
+ children: /* @__PURE__ */ U(e, { children: l.sections.tracking })
1963
+ }),
1964
+ /* @__PURE__ */ U(j, {
1965
+ label: l.fields.trackQuantity,
1966
+ className: Y.inventoryToggle,
1967
+ hint: l.hints.trackQuantity,
1968
+ children: /* @__PURE__ */ U(ae, {
1969
+ disabled: !n,
1970
+ checked: d,
1971
+ onChange: (e) => p("trackQuantity", e.target.checked)
1972
+ })
1973
+ }),
1974
+ d && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ W("div", {
1975
+ className: Y.inventoryFields,
1976
+ children: [
1977
+ m("available"),
1978
+ m("committed"),
1979
+ m("incoming"),
1980
+ m("lowStockThreshold", l.hints.lowStockThreshold)
1981
+ ]
1982
+ }), /* @__PURE__ */ U(j, {
1983
+ label: l.fields.inventoryPolicy,
1984
+ hint: l.hints.inventoryPolicy,
1985
+ children: /* @__PURE__ */ U(ie, {
1986
+ disabled: !n,
1987
+ value: t.inventoryPolicy ?? "deny",
1988
+ onValueChange: (e) => e && p("inventoryPolicy", e),
1989
+ options: [{
1990
+ value: "deny",
1991
+ label: l.policy.deny
1992
+ }, {
1993
+ value: "continue",
1994
+ label: l.policy.continue
1995
+ }]
1996
+ })
1997
+ })] })
1998
+ ]
1999
+ }),
2000
+ u.has("location") && /* @__PURE__ */ W("fieldset", {
2001
+ className: i("inventory-section--group", Y.inventoryGroup),
2002
+ children: [/* @__PURE__ */ U("legend", {
2003
+ className: Y.inventoryLegend,
2004
+ children: /* @__PURE__ */ U(e, { children: l.sections.location })
2005
+ }), /* @__PURE__ */ U("div", {
2006
+ className: Y.inventoryFields,
2007
+ children: m("binLocation", l.hints.binLocation)
2008
+ })]
2009
+ }),
2010
+ u.has("shipping") && /* @__PURE__ */ W("fieldset", {
2011
+ className: i("inventory-section--group", Y.inventoryGroup),
2012
+ children: [
2013
+ /* @__PURE__ */ U("legend", {
2014
+ className: Y.inventoryLegend,
2015
+ children: /* @__PURE__ */ U(e, { children: l.sections.shipping })
2016
+ }),
2017
+ /* @__PURE__ */ U(j, {
2018
+ label: l.fields.requiresShipping,
2019
+ className: Y.inventoryToggle,
2020
+ children: /* @__PURE__ */ U(ae, {
2021
+ disabled: !n,
2022
+ checked: t.requiresShipping !== !1,
2023
+ onChange: (e) => p("requiresShipping", e.target.checked)
2024
+ })
2025
+ }),
2026
+ t.requiresShipping !== !1 && /* @__PURE__ */ U("div", {
2027
+ className: Y.inventoryFields,
2028
+ children: m("weight")
2029
+ })
2030
+ ]
2031
+ }),
2032
+ u.has("customs") && /* @__PURE__ */ W("fieldset", {
2033
+ className: i("inventory-section--group", Y.inventoryGroup),
2034
+ children: [
2035
+ /* @__PURE__ */ U("legend", {
2036
+ className: Y.inventoryLegend,
2037
+ children: /* @__PURE__ */ U(e, { children: l.sections.customs })
2038
+ }),
2039
+ /* @__PURE__ */ U(r, {
2040
+ size: "xs",
2041
+ type: "secondary",
2042
+ children: l.hints.customs
2043
+ }),
2044
+ /* @__PURE__ */ W("div", {
2045
+ className: Y.inventoryFields,
2046
+ children: [m("countryOfOrigin"), m("hsCode", l.hints.hsCode)]
2047
+ })
2048
+ ]
2049
+ }),
2050
+ u.has("tags") && /* @__PURE__ */ W("fieldset", {
2051
+ className: i("inventory-section--group", Y.inventoryGroup),
2052
+ children: [/* @__PURE__ */ U("legend", {
2053
+ className: Y.inventoryLegend,
2054
+ children: /* @__PURE__ */ U(e, { children: l.sections.tags })
2055
+ }), /* @__PURE__ */ U(j, {
2056
+ label: l.fields.tags,
2057
+ children: /* @__PURE__ */ U(ye, {
2058
+ disabled: !n,
2059
+ value: t.tags ?? [],
2060
+ placeholder: l.placeholders.tags,
2061
+ onValueChange: (e) => p("tags", e)
2062
+ })
2063
+ })]
2064
+ })
2065
+ ]
2066
+ });
2067
+ }
2068
+ //#endregion
2069
+ //#region src/components/blocks/admin/commerce/order-line-item.tsx
2070
+ function cn({ id: e, title: t, variantTitle: n, sku: a, imageSrc: o, imageAlt: s, unitPrice: c, quantity: l, total: u, properties: d, children: f, strings: m, className: h, ...g }) {
2071
+ let _ = {
2072
+ ...q,
2073
+ ...m
2074
+ };
2075
+ return /* @__PURE__ */ W("div", {
2076
+ className: i("order-line-item--component", Y.lineItem, h),
2077
+ ...g,
2078
+ children: [
2079
+ /* @__PURE__ */ U("span", {
2080
+ className: Y.lineThumb,
2081
+ children: o ? /* @__PURE__ */ U("img", {
2082
+ src: o,
2083
+ alt: s ?? t,
2084
+ onError: (e) => {
2085
+ e.currentTarget.hidden = !0;
2086
+ }
2087
+ }) : /* @__PURE__ */ U(ke, {
2088
+ className: Y.lineThumbIcon,
2089
+ "aria-hidden": "true"
2090
+ })
2091
+ }),
2092
+ /* @__PURE__ */ W("div", {
2093
+ className: Y.lineBody,
2094
+ children: [
2095
+ /* @__PURE__ */ U(r, {
2096
+ weight: "medium",
2097
+ className: "order-line-item--title",
2098
+ children: t
2099
+ }),
2100
+ (n != null || a != null) && /* @__PURE__ */ W("span", {
2101
+ className: Y.lineMeta,
2102
+ children: [n != null && /* @__PURE__ */ U(x, {
2103
+ tone: "neutral",
2104
+ children: n
2105
+ }), a != null && /* @__PURE__ */ U(p, {
2106
+ size: "xs",
2107
+ type: "secondary",
2108
+ children: a
2109
+ })]
2110
+ }),
2111
+ d && d.length > 0 && /* @__PURE__ */ U(O, {
2112
+ layout: "inline",
2113
+ size: "sm",
2114
+ items: d.map((e, t) => ({
2115
+ id: String(t),
2116
+ label: e.label,
2117
+ value: e.value
2118
+ }))
2119
+ }),
2120
+ f
2121
+ ]
2122
+ }),
2123
+ /* @__PURE__ */ W("span", {
2124
+ className: Y.linePrice,
2125
+ children: [
2126
+ /* @__PURE__ */ U(ne, { children: _.formatUnitPrice(c, l) }),
2127
+ /* @__PURE__ */ U(r, {
2128
+ tag: "span",
2129
+ size: "xs",
2130
+ type: "secondary",
2131
+ numeric: !0,
2132
+ "aria-hidden": "true",
2133
+ children: c
2134
+ }),
2135
+ /* @__PURE__ */ U(r, {
2136
+ tag: "span",
2137
+ size: "xs",
2138
+ type: "secondary",
2139
+ "aria-hidden": "true",
2140
+ children: "×"
2141
+ }),
2142
+ /* @__PURE__ */ U(r, {
2143
+ tag: "span",
2144
+ size: "xs",
2145
+ weight: "medium",
2146
+ numeric: !0,
2147
+ "aria-hidden": "true",
2148
+ children: l
2149
+ })
2150
+ ]
2151
+ }),
2152
+ /* @__PURE__ */ U(r, {
2153
+ tag: "span",
2154
+ weight: "medium",
2155
+ numeric: !0,
2156
+ className: Y.lineTotal,
2157
+ children: u
2158
+ })
2159
+ ]
2160
+ });
2161
+ }
2162
+ //#endregion
2163
+ //#region src/components/blocks/admin/commerce/order-detail.tsx
2164
+ function ln(e) {
2165
+ return {
2166
+ fulfillment: {
2167
+ ...K.fulfillment,
2168
+ ...e?.fulfillment
2169
+ },
2170
+ payment: {
2171
+ ...K.payment,
2172
+ ...e?.payment
2173
+ }
2174
+ };
2175
+ }
2176
+ function un({ orderNumber: e, fulfillmentStatus: t, paymentStatus: a, placedAt: s, source: c, actions: l, strings: u, vocabulary: d, className: f, ...p }) {
2177
+ let m = {
2178
+ ...lt,
2179
+ ...u
2180
+ }, h = ln(d), g = s != null && c != null ? m.formatOrigin(s, c) : s ?? c;
2181
+ return /* @__PURE__ */ W("div", {
2182
+ className: i("order-header--component", Y.orderHeader, f),
2183
+ ...p,
2184
+ children: [/* @__PURE__ */ W("div", {
2185
+ className: Y.orderHeaderTop,
2186
+ children: [
2187
+ /* @__PURE__ */ U(n, {
2188
+ level: 1,
2189
+ size: "lg",
2190
+ className: "order-header--number",
2191
+ children: m.formatOrderNumber(e)
2192
+ }),
2193
+ a != null && /* @__PURE__ */ U(x, {
2194
+ tone: Tt[a],
2195
+ dot: !0,
2196
+ children: h.payment[a]
2197
+ }),
2198
+ t != null && /* @__PURE__ */ U(x, {
2199
+ tone: wt[t],
2200
+ dot: !0,
2201
+ children: h.fulfillment[t]
2202
+ }),
2203
+ l && l.length > 0 && /* @__PURE__ */ U("span", {
2204
+ className: Y.orderHeaderActions,
2205
+ children: /* @__PURE__ */ U(o, { actions: l })
2206
+ })
2207
+ ]
2208
+ }), g != null && /* @__PURE__ */ U(r, {
2209
+ size: "xs",
2210
+ type: "secondary",
2211
+ className: "order-header--origin",
2212
+ children: g
2213
+ })]
2214
+ });
2215
+ }
2216
+ function dn({ status: e, location: t, notice: n, noticeIcon: a, items: o, children: c, actions: l, strings: u, vocabulary: d, className: f, ...p }) {
2217
+ let m = {
2218
+ ...q,
2219
+ ...u
2220
+ }, h = ln(d), g = o == null ? h.fulfillment[e] : m.formatHeading(h.fulfillment[e], o.length);
2221
+ return /* @__PURE__ */ W(D, {
2222
+ surface: "card",
2223
+ flush: !0,
2224
+ className: i("fulfillment-group--component", Y.group, f),
2225
+ ...p,
2226
+ children: [
2227
+ /* @__PURE__ */ W("div", {
2228
+ className: i("fulfillment-group--header", Y.groupHead),
2229
+ children: [/* @__PURE__ */ W("div", {
2230
+ className: Y.groupHeadTop,
2231
+ children: [/* @__PURE__ */ U(x, {
2232
+ tone: wt[e],
2233
+ dot: !0,
2234
+ children: g
2235
+ }), t != null && /* @__PURE__ */ W("span", {
2236
+ className: i("fulfillment-group--location", Y.groupLocation),
2237
+ children: [/* @__PURE__ */ U(je, {
2238
+ className: Y.groupMarkIcon,
2239
+ "aria-hidden": "true"
2240
+ }), /* @__PURE__ */ U(r, {
2241
+ tag: "span",
2242
+ size: "xs",
2243
+ type: "secondary",
2244
+ children: t
2245
+ })]
2246
+ })]
2247
+ }), n != null && /* @__PURE__ */ W("span", {
2248
+ className: Y.groupNotice,
2249
+ children: [a && /* @__PURE__ */ U(a, {
2250
+ className: Y.groupMarkIcon,
2251
+ "aria-hidden": "true"
2252
+ }), /* @__PURE__ */ U(r, {
2253
+ tag: "span",
2254
+ size: "xs",
2255
+ type: "secondary",
2256
+ children: n
2257
+ })]
2258
+ })]
2259
+ }),
2260
+ /* @__PURE__ */ U("div", {
2261
+ className: i("fulfillment-group--items", Y.groupItems),
2262
+ children: c ?? o?.map((e) => /* @__PURE__ */ U(cn, {
2263
+ ...e,
2264
+ strings: u
2265
+ }, e.id))
2266
+ }),
2267
+ l && l.length > 0 && /* @__PURE__ */ U("div", {
2268
+ className: Y.groupActions,
2269
+ children: /* @__PURE__ */ U(s, {
2270
+ actions: l,
2271
+ max: 1
2272
+ })
2273
+ })
2274
+ ]
2275
+ });
2276
+ }
2277
+ function fn({ goods: e, total: t, payments: n, paymentStatus: r, alert: a, strings: o, vocabulary: s, className: c, ...l }) {
2278
+ let u = {
2279
+ ...ut,
2280
+ ...o
2281
+ }, d = ln(s), f = (e, t, n = !1) => /* @__PURE__ */ U(X, {
2282
+ label: e.label,
2283
+ note: e.note,
2284
+ amount: e.amount,
2285
+ deduction: e.deduction,
2286
+ total: n
2287
+ }, e.id ?? t);
2288
+ return /* @__PURE__ */ W(D, {
2289
+ title: u.title,
2290
+ headerEnd: r == null ? void 0 : /* @__PURE__ */ U(x, {
2291
+ tone: Tt[r],
2292
+ children: d.payment[r]
2293
+ }),
2294
+ className: i("order-summary--component", Y.block, c),
2295
+ ...l,
2296
+ children: [
2297
+ /* @__PURE__ */ W(Z, { children: [e.map((e, t) => f(e, t)), f(t, -1, !0)] }),
2298
+ n && n.length > 0 && /* @__PURE__ */ U(Z, { children: n.map((e, t) => f(e, t)) }),
2299
+ a != null && /* @__PURE__ */ U(S, {
2300
+ tone: "warning",
2301
+ role: "note",
2302
+ className: "order-summary--alert",
2303
+ children: /* @__PURE__ */ U(ee, { children: a })
2304
+ })
2305
+ ]
2306
+ });
2307
+ }
2308
+ //#endregion
2309
+ //#region src/components/blocks/admin/commerce/order-transactions.tsx
2310
+ var pn = {
2311
+ authorization: ze,
2312
+ capture: Ee,
2313
+ sale: V,
2314
+ refund: Le,
2315
+ void: xe,
2316
+ chargeback: Ue
2317
+ };
2318
+ function mn({ transactions: e, strings: t, className: n, ...a }) {
2319
+ let o = f(dt, t);
2320
+ return /* @__PURE__ */ U(D, {
2321
+ title: o.title,
2322
+ className: i("order-transactions--component", Y.block, n),
2323
+ ...a,
2324
+ children: e.length === 0 ? /* @__PURE__ */ U(C, {
2325
+ padding: "sm",
2326
+ title: o.empty,
2327
+ description: !1
2328
+ }) : /* @__PURE__ */ U(D, {
2329
+ surface: "bordered",
2330
+ flush: !0,
2331
+ children: /* @__PURE__ */ U("ol", {
2332
+ className: Y.transactions,
2333
+ children: e.map((e) => {
2334
+ let t = Dt.has(e.kind), n = `${t ? "−" : ""}${J(e.amount)}`, a = pn[e.kind], s = e.status === "failure" ? "destructive" : t ? "warning" : "neutral";
2335
+ return /* @__PURE__ */ W("li", {
2336
+ "data-status": e.status,
2337
+ "data-outgoing": t ? "" : void 0,
2338
+ className: i("order-transactions--row", Y.transaction),
2339
+ children: [
2340
+ /* @__PURE__ */ U(k, {
2341
+ icon: a,
2342
+ tone: s,
2343
+ "aria-hidden": "true"
2344
+ }),
2345
+ /* @__PURE__ */ W("div", {
2346
+ className: Y.transactionBody,
2347
+ children: [
2348
+ /* @__PURE__ */ W("span", {
2349
+ className: Y.transactionHead,
2350
+ children: [/* @__PURE__ */ U(r, {
2351
+ tag: "span",
2352
+ weight: "medium",
2353
+ children: o.kind[e.kind]
2354
+ }), e.status !== "success" && /* @__PURE__ */ U(x, {
2355
+ tone: Et[e.status],
2356
+ appearance: "solid",
2357
+ children: o.status[e.status]
2358
+ })]
2359
+ }),
2360
+ /* @__PURE__ */ W("span", {
2361
+ className: Y.transactionMeta,
2362
+ children: [
2363
+ /* @__PURE__ */ U(r, {
2364
+ tag: "span",
2365
+ size: "xs",
2366
+ type: "secondary",
2367
+ numeric: !0,
2368
+ children: e.processedAt
2369
+ }),
2370
+ e.method != null && /* @__PURE__ */ U(r, {
2371
+ tag: "span",
2372
+ size: "xs",
2373
+ type: "secondary",
2374
+ children: e.method
2375
+ }),
2376
+ e.gateway != null && /* @__PURE__ */ U(r, {
2377
+ tag: "span",
2378
+ size: "xs",
2379
+ type: "secondary",
2380
+ children: e.gateway
2381
+ })
2382
+ ]
2383
+ }),
2384
+ e.reference != null && /* @__PURE__ */ U(p, {
2385
+ size: "xs",
2386
+ type: "secondary",
2387
+ children: e.reference
2388
+ })
2389
+ ]
2390
+ }),
2391
+ /* @__PURE__ */ U(r, {
2392
+ tag: "span",
2393
+ weight: "semibold",
2394
+ numeric: !0,
2395
+ className: Y.transactionAmount,
2396
+ children: n
2397
+ })
2398
+ ]
2399
+ }, e.id);
2400
+ })
2401
+ })
2402
+ })
2403
+ });
2404
+ }
2405
+ //#endregion
2406
+ //#region src/components/blocks/admin/commerce/order-customer.tsx
2407
+ function hn({ icon: e, children: t }) {
2408
+ return /* @__PURE__ */ W("span", {
2409
+ className: Y.customerContactLine,
2410
+ children: [/* @__PURE__ */ U("span", {
2411
+ className: Y.customerContactIcon,
2412
+ "aria-hidden": "true",
2413
+ children: e
2414
+ }), t]
2415
+ });
2416
+ }
2417
+ function gn({ name: n, email: o, phone: s, orderCount: c, shippingAddress: u, billingAddress: f, billingSameAsShipping: p = !1, onOpenCustomer: h, onEditShipping: g, onEditBilling: v, strings: b, className: x, ...ee }) {
2418
+ let S = {
2419
+ ...ft,
2420
+ ...b
2421
+ }, C = (n, i, o, s, c = !1) => /* @__PURE__ */ W("div", {
2422
+ className: Y.customerSection,
2423
+ children: [/* @__PURE__ */ W("div", {
2424
+ className: Y.customerSectionHead,
2425
+ children: [/* @__PURE__ */ U(e, { children: n }), s && /* @__PURE__ */ U(a, {
2426
+ tone: "secondary",
2427
+ appearance: "ghost",
2428
+ iconOnly: !0,
2429
+ "aria-label": i,
2430
+ onClick: s,
2431
+ children: /* @__PURE__ */ U(Ne, { "aria-hidden": "true" })
2432
+ })]
2433
+ }), c ? /* @__PURE__ */ U(r, {
2434
+ size: "xs",
2435
+ type: "secondary",
2436
+ children: S.sameAsShipping
2437
+ }) : o ? /* @__PURE__ */ U(It, {
2438
+ address: o,
2439
+ className: t({ size: "xs" })
2440
+ }) : /* @__PURE__ */ U(r, {
2441
+ size: "xs",
2442
+ type: "secondary",
2443
+ children: S.noAddress
2444
+ })]
2445
+ }), w = /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(r, {
2446
+ weight: "semibold",
2447
+ children: n
2448
+ }), c != null && /* @__PURE__ */ U(r, {
2449
+ size: "xs",
2450
+ type: "secondary",
2451
+ children: S.formatOrderCount(c)
2452
+ })] });
2453
+ return /* @__PURE__ */ W(D, {
2454
+ title: S.title,
2455
+ className: i("order-customer--component", Y.block, x),
2456
+ ...ee,
2457
+ children: [
2458
+ /* @__PURE__ */ W("div", {
2459
+ className: i("order-customer--identity", Y.customerIdentity),
2460
+ children: [/* @__PURE__ */ U(d, { children: /* @__PURE__ */ U(l, { children: _(n) }) }), h ? /* @__PURE__ */ U(a, {
2461
+ tone: "neutral",
2462
+ appearance: "ghost",
2463
+ onClick: h,
2464
+ className: Y.customerName,
2465
+ children: /* @__PURE__ */ U("span", {
2466
+ className: Y.customerIdentityBody,
2467
+ children: w
2468
+ })
2469
+ }) : /* @__PURE__ */ U("span", {
2470
+ className: Y.customerIdentityBody,
2471
+ children: w
2472
+ })]
2473
+ }),
2474
+ (o != null || s != null) && /* @__PURE__ */ W(H, { children: [/* @__PURE__ */ U(A, {}), /* @__PURE__ */ W("div", {
2475
+ className: Y.customerContact,
2476
+ children: [o != null && /* @__PURE__ */ U(hn, {
2477
+ icon: /* @__PURE__ */ U(Ae, {}),
2478
+ children: /* @__PURE__ */ U(m, { value: o })
2479
+ }), s != null && /* @__PURE__ */ U(hn, {
2480
+ icon: /* @__PURE__ */ U(Pe, {}),
2481
+ children: /* @__PURE__ */ U(y, { value: s })
2482
+ })]
2483
+ })] }),
2484
+ /* @__PURE__ */ U(A, {}),
2485
+ /* @__PURE__ */ W("div", {
2486
+ className: i("order-customer--addresses", Y.customerAddresses),
2487
+ children: [C(S.shippingAddress, S.editShipping, u, g), C(S.billingAddress, S.editBilling, f, v, p)]
2488
+ })
2489
+ ]
2490
+ });
2491
+ }
2492
+ //#endregion
2493
+ export { Lt as AddressCard, X as AmountRow, Ut as BookingCard, gt as CartSummary, yt as CodeEntry, Kt as DEFAULT_SEO_LIMITS, vt as DiscountStack, wt as FULFILLMENT_STATUS_TONE, dn as FulfillmentGroup, bt as INVOICE_STATUS_TONE, Vt as InventoryLevel, sn as InventorySection, Nt as InvoiceHeader, Pt as InvoiceLineItems, Ft as InvoiceMini, Wt as LoyaltyPoints, pt as MINUS_SIGN, xt as ORDER_STATUS_TONE, Dt as OUTGOING_TRANSACTION_KINDS, gn as OrderCustomer, un as OrderHeader, cn as OrderLineItem, Ot as OrderStatusCard, fn as OrderSummary, kt as OrderTimeline, mn as OrderTransactions, Tt as PAYMENT_STATUS_TONE, zt as PaymentMethodCard, At as PaymentTimeline, Ct as REFUND_STAGES, Mt as RefundStatus, St as SHIPMENT_STATUS_TONE, an as SeoListing, jt as ShipmentTracking, Bt as SubscriptionSummary, Z as SummaryPanel, Et as TRANSACTION_STATUS_TONE, _t as TaxBreakdown, Ht as UpcomingBookings, Gt as VendorProfile, tn as calculateSeoScore, tt as defaultAddressStrings, qe as defaultCartStrings, Ye as defaultDiscountCodeStrings, Ze as defaultDiscountStackStrings, q as defaultFulfillmentGroupStrings, Xe as defaultGiftCodeStrings, ct as defaultInventorySectionStrings, it as defaultInventoryStrings, G as defaultInvoiceStrings, at as defaultLoyaltyStrings, ft as defaultOrderCustomerStrings, lt as defaultOrderHeaderStrings, Qe as defaultOrderStatusStrings, K as defaultOrderStatusVocabulary, ut as defaultOrderSummaryStrings, nt as defaultPaymentMethodStrings, et as defaultRefundStrings, st as defaultSeoStrings, $e as defaultShipmentStrings, rt as defaultSubscriptionStrings, Je as defaultTaxBreakdownStrings, dt as defaultTransactionStrings, ot as defaultVendorStrings, mt as formatDeduction, $ as seoPermalinkPath, Xt as seoPermalinkSlug, J as stripLeadingMinus };