themelia-react-ui 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +135 -0
- package/README.md +113 -18
- package/dist/{accordion-96o0pN62.js → accordion-B9MHG0cT.js} +11 -11
- package/dist/accordion-B9MHG0cT.js.map +1 -0
- package/dist/{action-menu-CHgs8vmj.js → action-menu-Dr8K-ghE.js} +48 -45
- package/dist/action-menu-Dr8K-ghE.js.map +1 -0
- package/dist/{affordance-geometry.generated-B8yGOr8-.js → affordance-geometry.generated-P-aVJisu.js} +36 -36
- package/dist/affordance-geometry.generated-P-aVJisu.js.map +1 -0
- package/dist/{ai-artifact-BZUGwBq6.js → ai-artifact-C58tQcBy.js} +210 -174
- package/dist/ai-artifact-C58tQcBy.js.map +1 -0
- package/dist/app-shell-B_IuNWOo.js +321 -0
- package/dist/app-shell-B_IuNWOo.js.map +1 -0
- package/dist/{attachment-DkoqHPPl.js → attachment-Dg_69lPS.js} +9 -9
- package/dist/{attachment-DkoqHPPl.js.map → attachment-Dg_69lPS.js.map} +1 -1
- package/dist/{auth-D2FVZ1MH.js → auth-DTkkshS8.js} +43 -46
- package/dist/auth-DTkkshS8.js.map +1 -0
- package/dist/{avatar-DWO_HHhB.js → avatar-CeZaFmNH.js} +8 -8
- package/dist/avatar-CeZaFmNH.js.map +1 -0
- package/dist/{badge-DErMA7ul.js → badge-xIiV_E7f.js} +5 -5
- package/dist/{badge-DErMA7ul.js.map → badge-xIiV_E7f.js.map} +1 -1
- package/dist/base/accordion.js +1 -1
- package/dist/base/action-menu.js +1 -1
- package/dist/base/attachment.js +1 -1
- package/dist/base/avatar.js +1 -1
- package/dist/base/badge.js +1 -1
- package/dist/base/batch-action-bar.js +1 -1
- package/dist/base/buttons.js +1 -1
- package/dist/base/cards.js +2 -2
- package/dist/base/carousel.js +3 -3
- package/dist/base/cascader.js +2 -372
- package/dist/base/chart.js +1 -1
- package/dist/base/choice-inputs.js +2 -2
- package/dist/base/code-block.js +1 -1
- package/dist/base/combobox.js +2 -2
- package/dist/base/command.js +1 -1
- package/dist/base/copyable.js +1 -1
- package/dist/base/date-pickers.js +2 -2
- package/dist/base/display.js +6 -6
- package/dist/base/feedback.js +3 -3
- package/dist/base/forms-numeric.js +1 -1
- package/dist/base/forms.js +2 -2
- package/dist/base/inline-edit.js +10 -10
- package/dist/base/item.js +1 -1
- package/dist/base/media-gallery.js +1 -1
- package/dist/base/metadata-list.js +1 -1
- package/dist/base/navigation.js +7 -7
- package/dist/base/popover-menu.js +1 -1
- package/dist/base/popover.js +1 -1
- package/dist/base/qr-code.js +1 -1
- package/dist/base/repeaters.js +12 -12
- package/dist/base/repeaters.js.map +1 -1
- package/dist/base/sheet.js +1 -1
- package/dist/base/sidebar.js +2 -2
- package/dist/base/signature-pad.js +7 -7
- package/dist/base/signature-pad.js.map +1 -1
- package/dist/base/skeleton.js +1 -1
- package/dist/base/spinner.js +4 -4
- package/dist/base/structure.js +1 -1
- package/dist/base/table.js +1 -1
- package/dist/base/text-inputs.js +2 -2
- package/dist/base/toaster.js +36 -36
- package/dist/base/toaster.js.map +1 -1
- package/dist/base/tree.js +1 -1
- package/dist/base/upload-queue.js +1 -1
- package/dist/base/upload.js +3 -3
- package/dist/base/value-inputs.js +1 -1
- package/dist/{batch-action-bar-CdfIkCsV.js → batch-action-bar-Cb8cuvyy.js} +6 -6
- package/dist/batch-action-bar-Cb8cuvyy.js.map +1 -0
- package/dist/blocks/admin.js +21 -21
- package/dist/blocks/admin.js.map +1 -1
- package/dist/blocks/ai.js +230 -216
- package/dist/blocks/ai.js.map +1 -1
- package/dist/blocks/analytics/usage-card.js +1 -1
- package/dist/blocks/analytics.js +325 -306
- package/dist/blocks/analytics.js.map +1 -1
- package/dist/blocks/collaboration.js +1 -1
- package/dist/blocks/commerce/receipt.js +1 -1
- package/dist/blocks/commerce.js +1259 -1184
- package/dist/blocks/commerce.js.map +1 -1
- package/dist/blocks/data-display.js +2 -2
- package/dist/blocks/onboarding.js +6 -6
- package/dist/blocks/onboarding.js.map +1 -1
- package/dist/blocks/planning.js +11 -11
- package/dist/blocks/timelines.js +1 -1
- package/dist/{breadcrumbs-B-WFKecD.js → breadcrumbs-J-K2kl4c.js} +6 -6
- package/dist/{breadcrumbs-B-WFKecD.js.map → breadcrumbs-J-K2kl4c.js.map} +1 -1
- package/dist/{button-DkmK-z8E.js → button-S2Cubiiz.js} +3 -3
- package/dist/button-S2Cubiiz.js.map +1 -0
- package/dist/{buttons-BbfzgczK.js → buttons-BedGfygC.js} +16 -16
- package/dist/buttons-BedGfygC.js.map +1 -0
- package/dist/cards-rNX1M4Xn.js +69 -0
- package/dist/cards-rNX1M4Xn.js.map +1 -0
- package/dist/cascader-B1MiqkBq.js +439 -0
- package/dist/cascader-B1MiqkBq.js.map +1 -0
- package/dist/chart-Darg_0Kv.js +162 -0
- package/dist/chart-Darg_0Kv.js.map +1 -0
- package/dist/{checkbox-CzYUTPeJ.js → checkbox-fflqmODR.js} +2 -2
- package/dist/{checkbox-CzYUTPeJ.js.map → checkbox-fflqmODR.js.map} +1 -1
- package/dist/{choice-inputs-JLtij2y4.js → choice-inputs-zUgBZfE4.js} +258 -257
- package/dist/choice-inputs-zUgBZfE4.js.map +1 -0
- package/dist/{code-block-CGNaUtAE.js → code-block-BzmM9Eig.js} +8 -8
- package/dist/code-block-BzmM9Eig.js.map +1 -0
- package/dist/{collapsible-Do4G0zcC.js → collapsible-BkAI_XD4.js} +5 -5
- package/dist/{collapsible-Do4G0zcC.js.map → collapsible-BkAI_XD4.js.map} +1 -1
- package/dist/{collection-content-C0e8SsTm.js → collection-content-gDh1v6O4.js} +3 -3
- package/dist/{collection-content-C0e8SsTm.js.map → collection-content-gDh1v6O4.js.map} +1 -1
- package/dist/combobox-BEx0vJgF.js +362 -0
- package/dist/combobox-BEx0vJgF.js.map +1 -0
- package/dist/{combobox-CBJDs6w_.js → combobox-BwzoXFSG.js} +254 -247
- package/dist/combobox-BwzoXFSG.js.map +1 -0
- package/dist/{command-D8NrBj-b.js → command-CrlPIL6m.js} +11 -11
- package/dist/command-CrlPIL6m.js.map +1 -0
- package/dist/{comments-Di4w0H_S.js → comments-Dmpp0YIc.js} +29 -29
- package/dist/{comments-Di4w0H_S.js.map → comments-Dmpp0YIc.js.map} +1 -1
- package/dist/components/base/action-menu/action-menu.d.ts +7 -1
- package/dist/components/base/buttons/button-group.recipes.d.ts +2 -2
- package/dist/components/base/cards/card.recipes.d.ts +6 -4
- package/dist/components/base/cards/partials/card-primitives.d.ts +9 -2
- package/dist/components/base/cards/partials/smart-card-header-row.d.ts +3 -1
- package/dist/components/base/cards/smart-card.types.d.ts +3 -4
- package/dist/components/base/cascader/cascader-panel.d.ts +76 -0
- package/dist/components/base/chart/chart.d.ts +6 -1
- package/dist/components/base/choice-inputs/choice-types.d.ts +1 -1
- package/dist/components/base/combobox/index.d.ts +4 -2
- package/dist/components/base/feedback/alert.d.ts +1 -1
- package/dist/components/base/forms/form-sizing.d.ts +7 -7
- package/dist/components/base/forms/workflow.d.ts +7 -1
- package/dist/components/base/forms-numeric/coordinates-input.d.ts +4 -0
- package/dist/components/base/metadata-list/metadata-list.d.ts +1 -1
- package/dist/components/base/navigation/dropdown-menu.d.ts +1 -1
- package/dist/components/base/navigation/page-header/page-header-commands.d.ts +14 -7
- package/dist/components/base/navigation/page-header/page-header.d.ts +10 -3
- package/dist/components/base/popover/popover.d.ts +3 -3
- package/dist/components/base/popover/popover.recipes.d.ts +10 -6
- package/dist/components/base/sheet/sheet.d.ts +2 -0
- package/dist/components/base/sidebar/index.d.ts +1 -1
- package/dist/components/base/sidebar/sidebar.d.ts +27 -5
- package/dist/components/base/toaster/index.d.ts +1 -0
- package/dist/components/blocks/ai/ai-file-tree/types.d.ts +1 -1
- package/dist/components/blocks/ai/ai-tool-call/types.d.ts +3 -1
- package/dist/components/blocks/ai/ai.strings.d.ts +2 -0
- package/dist/components/blocks/analytics/metric-comparison/metric-comparison.d.ts +2 -0
- package/dist/components/blocks/analytics/usage-card/usage-card.strings.d.ts +2 -0
- package/dist/components/blocks/commerce/cart-summary/cart-summary.d.ts +1 -1
- package/dist/components/blocks/commerce/cart-summary/types.d.ts +3 -1
- package/dist/components/blocks/commerce/discount-stack/discount-stack.d.ts +1 -1
- package/dist/components/blocks/commerce/discount-stack/types.d.ts +3 -1
- package/dist/components/blocks/commerce/fulfillment-group/fulfillment-group.d.ts +1 -1
- package/dist/components/blocks/commerce/fulfillment-group/types.d.ts +11 -2
- package/dist/components/blocks/commerce/index.d.ts +7 -6
- package/dist/components/blocks/commerce/inventory-section/inventory-section.d.ts +1 -1
- package/dist/components/blocks/commerce/inventory-section/types.d.ts +7 -2
- package/dist/components/blocks/commerce/invoice-header/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-header/invoice-header.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-header/types.d.ts +20 -6
- package/dist/components/blocks/commerce/invoice-line-items/invoice-line-items.d.ts +1 -1
- package/dist/components/blocks/commerce/invoice-line-items/types.d.ts +24 -7
- package/dist/components/blocks/commerce/invoice-mini/index.d.ts +2 -1
- package/dist/components/blocks/commerce/invoice-mini/types.d.ts +7 -1
- package/dist/components/blocks/commerce/order-customer/order-customer.d.ts +1 -1
- package/dist/components/blocks/commerce/order-customer/types.d.ts +9 -1
- package/dist/components/blocks/commerce/refund-status/refund-status.d.ts +1 -1
- package/dist/components/blocks/commerce/refund-status/types.d.ts +3 -1
- package/dist/components/blocks/commerce/shipment-tracking/shipment-tracking.d.ts +1 -1
- package/dist/components/blocks/commerce/shipment-tracking/types.d.ts +3 -1
- package/dist/components/blocks/commerce/tax-breakdown/tax-breakdown.d.ts +1 -1
- package/dist/components/blocks/commerce/tax-breakdown/types.d.ts +3 -1
- package/dist/components/features/activities/activities.types.d.ts +8 -2
- package/dist/components/features/activities/partials/activity-marker.d.ts +7 -3
- package/dist/components/features/activities/partials/activity-row.d.ts +24 -0
- package/dist/components/features/event-calendar/colors.d.ts +2 -2
- package/dist/components/features/event-calendar/event-calendar.types.d.ts +4 -0
- package/dist/components/features/filters/facets/select-facet.d.ts +2 -1
- package/dist/components/features/filters/filters.strings.d.ts +4 -0
- package/dist/components/features/filters/filters.types.d.ts +3 -0
- package/dist/components/features/filters/partials/filter-editor-header.d.ts +16 -0
- package/dist/components/features/filters/partials/filter-popover-content.d.ts +1 -1
- package/dist/components/features/filters/partials/nested-filter-options.d.ts +21 -0
- package/dist/components/features/filters/partials/regular-filter-content.d.ts +2 -1
- package/dist/components/features/filters/utils/filter-utils.d.ts +21 -3
- package/dist/components/features/global-search/global-search.types.d.ts +2 -0
- package/dist/components/features/global-search/partials/global-search-input.d.ts +10 -0
- package/dist/components/features/global-search/partials/global-search-result-row.d.ts +7 -1
- package/dist/components/features/media-library/media-library.strings.d.ts +2 -0
- package/dist/components/features/media-library/media-library.types.d.ts +14 -4
- package/dist/components/features/media-library/partials/media-library-partials.d.ts +1 -1
- package/dist/components/features/products/components/product-options-matrix.d.ts +1 -1
- package/dist/components/features/products/components/product-variant-editor.d.ts +1 -1
- package/dist/components/features/products/components/product-variants-manager.d.ts +1 -1
- package/dist/components/features/products/products.strings.d.ts +9 -1
- package/dist/components/features/products/products.types.d.ts +43 -6
- package/dist/components/features/resource/resource.d.ts +5 -1
- package/dist/components/features/resource/resource.types.d.ts +12 -1
- package/dist/components/features/rich-text-editor/partials/image-uploads.d.ts +1 -1
- package/dist/components/features/rich-text-editor/rich-text-editor.recipes.d.ts +12 -2
- package/dist/components/features/table/partials/resource-cell.d.ts +22 -5
- package/dist/components/features/table/table.types.d.ts +1 -1
- package/dist/components/layout/app-shell/app-shell.types.d.ts +35 -6
- package/dist/components/layout/app-shell/index.d.ts +1 -1
- package/dist/components/layout/app-shell/shell-regions.d.ts +27 -0
- package/dist/components/layout/app-shell/sidebar-inset-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/stacked-layout.d.ts +1 -1
- package/dist/components/layout/app-shell/topbar-sidebar-layout.d.ts +1 -1
- package/dist/components/layout/containers/two-column-layout.d.ts +2 -0
- package/dist/components/layout/header/header.recipes.d.ts +6 -0
- package/dist/components/layout/header/header.types.d.ts +6 -6
- package/dist/components/layout/navigation/section-nav/section-nav.d.ts +5 -0
- package/dist/components/layout/page/index.d.ts +2 -1
- package/dist/components/layout/page/page.d.ts +1 -0
- package/dist/components/layout/page/page.strings.d.ts +11 -0
- package/dist/components/layout/page/page.types.d.ts +69 -17
- package/dist/components/layout/page/partials/page-header.d.ts +1 -1
- package/dist/components/layout/settings/settings.d.ts +9 -2
- package/dist/components/layout/sidebar/app-sidebar.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-grouped-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/components/sidebar-navigation.d.ts +1 -1
- package/dist/components/layout/sidebar/index.d.ts +2 -1
- package/dist/components/layout/sidebar/sidebar-navigation-rail.d.ts +36 -0
- package/dist/components/layout/sidebar/sidebar.context.d.ts +5 -7
- package/dist/components/layout/sidebar/sidebar.types.d.ts +48 -10
- package/dist/components/layout/sidebar/sidebar.utils.d.ts +9 -1
- package/dist/components/layout/workspace/workspace.types.d.ts +8 -1
- package/dist/components/ui/alert-dialog.d.ts +2 -2
- package/dist/components/ui/combobox.d.ts +1 -1
- package/dist/components/ui/dialog.d.ts +2 -2
- package/dist/components/ui/overlay-layer.d.ts +18 -0
- package/dist/components/ui/sheet.d.ts +5 -1
- package/dist/components/ui/sidebar-state.d.ts +82 -0
- package/dist/components/ui/sidebar.d.ts +5 -17
- package/dist/{containers-CRmHf7GP.js → containers-CIxwbZt5.js} +26 -18
- package/dist/containers-CIxwbZt5.js.map +1 -0
- package/dist/{control-group-recipes-DBXmfh2E.js → control-group-recipes-fMuFo0H7.js} +6 -6
- package/dist/control-group-recipes-fMuFo0H7.js.map +1 -0
- package/dist/{copyable-CnGCZdX4.js → copyable-DIznBqiT.js} +7 -7
- package/dist/{copyable-CnGCZdX4.js.map → copyable-DIznBqiT.js.map} +1 -1
- package/dist/{data-display-D4oujtx0.js → data-display-BdgCAw8T.js} +268 -277
- package/dist/data-display-BdgCAw8T.js.map +1 -0
- package/dist/{date-Q7jnXxpk.js → date-Cq8ioE4o.js} +5 -5
- package/dist/{date-Q7jnXxpk.js.map → date-Cq8ioE4o.js.map} +1 -1
- package/dist/{date-picker-zOt1oNss.js → date-picker-RlIzKom_.js} +446 -437
- package/dist/date-picker-RlIzKom_.js.map +1 -0
- package/dist/{date-pickers-cj8IXbDC.js → date-pickers-DY-CpXS1.js} +12 -12
- package/dist/{date-pickers-cj8IXbDC.js.map → date-pickers-DY-CpXS1.js.map} +1 -1
- package/dist/{display-BB4BL_-K.js → display-KsZLw9Ov.js} +9 -9
- package/dist/{display-BB4BL_-K.js.map → display-KsZLw9Ov.js.map} +1 -1
- package/dist/dropdown-menu-CLs8Lihj.js +194 -0
- package/dist/dropdown-menu-CLs8Lihj.js.map +1 -0
- package/dist/features/activities.js +302 -253
- package/dist/features/activities.js.map +1 -1
- package/dist/features/ai-chat.js +15 -14
- package/dist/features/ai-chat.js.map +1 -1
- package/dist/features/appointment-calendar.js +22 -22
- package/dist/features/appointment-calendar.js.map +1 -1
- package/dist/features/async-preview.js +11 -10
- package/dist/features/async-preview.js.map +1 -1
- package/dist/features/combobox.js +1 -1
- package/dist/features/comments.js +1 -1
- package/dist/features/data-view.js +13 -13
- package/dist/features/data-view.js.map +1 -1
- package/dist/features/email-composer.js +237 -238
- package/dist/features/email-composer.js.map +1 -1
- package/dist/features/event-calendar.js +140 -146
- package/dist/features/event-calendar.js.map +1 -1
- package/dist/features/filters.js +1 -1
- package/dist/features/global-search.js +167 -138
- package/dist/features/global-search.js.map +1 -1
- package/dist/features/kanban.js +6 -7
- package/dist/features/kanban.js.map +1 -1
- package/dist/features/map.js +269 -260
- package/dist/features/map.js.map +1 -1
- package/dist/features/media-library.js +375 -326
- package/dist/features/media-library.js.map +1 -1
- package/dist/features/mentions.js +1 -1
- package/dist/features/overlays.js +1 -1
- package/dist/features/products.js +1266 -1193
- package/dist/features/products.js.map +1 -1
- package/dist/features/questionnaire.js +13 -13
- package/dist/features/questionnaire.js.map +1 -1
- package/dist/features/resource-assignment.js +8 -8
- package/dist/features/resource.js +69 -66
- package/dist/features/resource.js.map +1 -1
- package/dist/features/rich-text-editor.js +2 -2
- package/dist/features/schema-form.js +13 -13
- package/dist/features/suggestions.js +3 -3
- package/dist/features/sync.js +3 -3
- package/dist/features/table.js +1 -1
- package/dist/features/theme-tweaker.js +94 -95
- package/dist/features/theme-tweaker.js.map +1 -1
- package/dist/{feedback-DZNL5Lg1.js → feedback-Dm4izqFn.js} +80 -79
- package/dist/feedback-Dm4izqFn.js.map +1 -0
- package/dist/{field-affordance-recipes-DjwGx8eM.js → field-affordance-recipes-DWcNcOjh.js} +4 -4
- package/dist/field-affordance-recipes-DWcNcOjh.js.map +1 -0
- package/dist/{filters-BcT-uoFy.js → filters-DzgSJpMK.js} +693 -645
- package/dist/filters-DzgSJpMK.js.map +1 -0
- package/dist/{form-field-CsgRmdit.js → form-field-BriWAXyg.js} +6 -6
- package/dist/{form-field-CsgRmdit.js.map → form-field-BriWAXyg.js.map} +1 -1
- package/dist/{form-sizing-NXgjkmBG.js → form-sizing-Bs2qFUeE.js} +4 -4
- package/dist/form-sizing-Bs2qFUeE.js.map +1 -0
- package/dist/{forms-BV5m5aQF.js → forms-C0RGnJTe.js} +17 -13
- package/dist/forms-C0RGnJTe.js.map +1 -0
- package/dist/{forms-numeric-Cd33AKbD.js → forms-numeric-DIhghX1Q.js} +86 -82
- package/dist/forms-numeric-DIhghX1Q.js.map +1 -0
- package/dist/{header-BA697l4a.js → header-DMMxG__r.js} +67 -63
- package/dist/header-DMMxG__r.js.map +1 -0
- package/dist/header.recipes-BigdJjw1.js +6 -0
- package/dist/header.recipes-BigdJjw1.js.map +1 -0
- package/dist/{hooks-BQ-L7Uu2.js → hooks-DB6CJ4MR.js} +26 -14
- package/dist/hooks-DB6CJ4MR.js.map +1 -0
- package/dist/{icon-badge-COWbCCWu.js → icon-badge-DZF-YjQp.js} +4 -4
- package/dist/{icon-badge-COWbCCWu.js.map → icon-badge-DZF-YjQp.js.map} +1 -1
- package/dist/index.js +4 -5
- package/dist/{input-Cdw4k0fb.js → input-CvyDQlY7.js} +8 -8
- package/dist/{input-Cdw4k0fb.js.map → input-CvyDQlY7.js.map} +1 -1
- package/dist/input-DMBwAZmr.js +21 -0
- package/dist/input-DMBwAZmr.js.map +1 -0
- package/dist/{item-BvZ2DR_x.js → item-DjCcM18E.js} +16 -16
- package/dist/item-DjCcM18E.js.map +1 -0
- package/dist/layout/app-shell.js +1 -1
- package/dist/layout/auth.js +1 -1
- package/dist/layout/containers.js +1 -1
- package/dist/layout/header.js +1 -1
- package/dist/layout/hooks.js +1 -1
- package/dist/layout/navigation.js +1 -1
- package/dist/layout/page.js +2 -2
- package/dist/layout/settings.js +1 -1
- package/dist/layout/sidebar.js +3 -3
- package/dist/layout/workspace.js +1 -1
- package/dist/layout.js +11 -11
- package/dist/lib/affordance-geometry.generated.d.ts +35 -35
- package/dist/lib/control-group-recipes.d.ts +5 -5
- package/dist/lib/field-affordance-recipes.d.ts +2 -2
- package/dist/lib/motion-recipes.d.ts +3 -0
- package/dist/lib/navigation-row-recipes.d.ts +7 -7
- package/dist/lib/overlay-anatomy-recipes.d.ts +3 -3
- package/dist/lib/portal-recipes.d.ts +3 -0
- package/dist/lib/token-merge.generated.d.ts +13 -10
- package/dist/lib/utils.js +1 -1
- package/dist/map-demo-tile.svg +1 -1
- package/dist/{media-gallery-CSl5W1Fy.js → media-gallery-C-vChPmE.js} +6 -6
- package/dist/{media-gallery-CSl5W1Fy.js.map → media-gallery-C-vChPmE.js.map} +1 -1
- package/dist/{mentions-RKOQaaIB.js → mentions-0_4nWuI-.js} +10 -10
- package/dist/{mentions-RKOQaaIB.js.map → mentions-0_4nWuI-.js.map} +1 -1
- package/dist/{message-INU2xsxu.js → message-g8p7eVtN.js} +7 -7
- package/dist/message-g8p7eVtN.js.map +1 -0
- package/dist/{metadata-list-qVV7AVxa.js → metadata-list-C3MkU-Om.js} +64 -64
- package/dist/metadata-list-C3MkU-Om.js.map +1 -0
- package/dist/{motion-recipes-ChBg4HBq.js → motion-recipes-DitYv6P2.js} +10 -2
- package/dist/motion-recipes-DitYv6P2.js.map +1 -0
- package/dist/navigation-C90-oQFq.js +255 -0
- package/dist/navigation-C90-oQFq.js.map +1 -0
- package/dist/{navigation-BQNcg1jT.js → navigation-DaRjthVk.js} +101 -82
- package/dist/navigation-DaRjthVk.js.map +1 -0
- package/dist/{navigation-row-recipes-WZEs-hYo.js → navigation-row-recipes-BGVLvU_O.js} +9 -9
- package/dist/navigation-row-recipes-BGVLvU_O.js.map +1 -0
- package/dist/{number-E_OiIfJz.js → number-CRU3kGuk.js} +5 -5
- package/dist/{number-E_OiIfJz.js.map → number-CRU3kGuk.js.map} +1 -1
- package/dist/overflow-tab-bar-IVFVQFV6.js +172 -0
- package/dist/overflow-tab-bar-IVFVQFV6.js.map +1 -0
- package/dist/overlays-BSgCtM2v.js +1013 -0
- package/dist/overlays-BSgCtM2v.js.map +1 -0
- package/dist/page-DUUKDAjo.js +331 -0
- package/dist/page-DUUKDAjo.js.map +1 -0
- package/dist/page-header-commands-7P3sfE9u.js +193 -0
- package/dist/page-header-commands-7P3sfE9u.js.map +1 -0
- package/dist/{pagination-Ch8X_47u.js → pagination-CgCjElfu.js} +7 -7
- package/dist/{pagination-Ch8X_47u.js.map → pagination-CgCjElfu.js.map} +1 -1
- package/dist/popover-B85RenIl.js +201 -0
- package/dist/popover-B85RenIl.js.map +1 -0
- package/dist/{popover-menu-BYaCdFhf.js → popover-menu-DlnQ2zlR.js} +7 -7
- package/dist/{popover-menu-BYaCdFhf.js.map → popover-menu-DlnQ2zlR.js.map} +1 -1
- package/dist/{popover.recipes-D3j8R8Yp.js → popover.recipes-DdiEp0rd.js} +18 -11
- package/dist/popover.recipes-DdiEp0rd.js.map +1 -0
- package/dist/portal-recipes-BpsV_iRw.js +9 -0
- package/dist/portal-recipes-BpsV_iRw.js.map +1 -0
- package/dist/{primitives-Du64iDbb.js → primitives-ByWgGUgt.js} +5 -5
- package/dist/{primitives-Du64iDbb.js.map → primitives-ByWgGUgt.js.map} +1 -1
- package/dist/primitives.js +4 -4
- package/dist/{progress-BvF2oCdV.js → progress-BJhQP9WX.js} +9 -9
- package/dist/{progress-BvF2oCdV.js.map → progress-BJhQP9WX.js.map} +1 -1
- package/dist/{receipt-D789Jwyy.js → receipt-tOc7B3hw.js} +7 -7
- package/dist/receipt-tOc7B3hw.js.map +1 -0
- package/dist/{rich-text-CLJEf76s.js → rich-text-Dth5E882.js} +3 -3
- package/dist/{rich-text-CLJEf76s.js.map → rich-text-Dth5E882.js.map} +1 -1
- package/dist/{rich-text-editor-Cm1dpUpQ.js → rich-text-editor-C1fOjBTd.js} +429 -430
- package/dist/rich-text-editor-C1fOjBTd.js.map +1 -0
- package/dist/{rich-text-editor-toolbar-L__e4x47.js → rich-text-editor-toolbar-laT3tpBT.js} +32 -28
- package/dist/rich-text-editor-toolbar-laT3tpBT.js.map +1 -0
- package/dist/{scroll-area-La5RXsEk.js → scroll-area-B0dB2cBi.js} +2 -2
- package/dist/{scroll-area-La5RXsEk.js.map → scroll-area-B0dB2cBi.js.map} +1 -1
- package/dist/{separator-DAEV0w65.js → separator-Bb17I4pu.js} +2 -2
- package/dist/{separator-DAEV0w65.js.map → separator-Bb17I4pu.js.map} +1 -1
- package/dist/{separator-GNfPG-90.js → separator-Ct_WSWTJ.js} +3 -3
- package/dist/{separator-GNfPG-90.js.map → separator-Ct_WSWTJ.js.map} +1 -1
- package/dist/services/actions.js +1 -1
- package/dist/{settings-BA2iboic.js → settings-Bar5wiSo.js} +31 -38
- package/dist/settings-Bar5wiSo.js.map +1 -0
- package/dist/sheet-BGPERY55.js +250 -0
- package/dist/sheet-BGPERY55.js.map +1 -0
- package/dist/sidebar-D-JYMMbY.js +686 -0
- package/dist/sidebar-D-JYMMbY.js.map +1 -0
- package/dist/sidebar-f9gRWXIR.js +1001 -0
- package/dist/sidebar-f9gRWXIR.js.map +1 -0
- package/dist/skeleton-BapcJd9C.js +265 -0
- package/dist/skeleton-BapcJd9C.js.map +1 -0
- package/dist/smart-card-CW0hjetE.js +617 -0
- package/dist/smart-card-CW0hjetE.js.map +1 -0
- package/dist/{structure-C0V0_Fyf.js → structure-DuxKl954.js} +2 -2
- package/dist/{structure-C0V0_Fyf.js.map → structure-DuxKl954.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{table-CpvnzJn9.js → table-B4TE7iOV.js} +3 -3
- package/dist/{table-CpvnzJn9.js.map → table-B4TE7iOV.js.map} +1 -1
- package/dist/{table-DH7rozUv.js → table-CFOWY9pQ.js} +394 -388
- package/dist/table-CFOWY9pQ.js.map +1 -0
- package/dist/{tabs-eqVsJZWO.js → tabs-e7ko9S2o.js} +11 -11
- package/dist/tabs-e7ko9S2o.js.map +1 -0
- package/dist/{text-inputs-DXItiR0O.js → text-inputs-B1culiSK.js} +17 -17
- package/dist/text-inputs-B1culiSK.js.map +1 -0
- package/dist/theme.css +40 -37
- package/dist/{timelines-DmtztAY_.js → timelines-D3Sl9ueq.js} +13 -12
- package/dist/timelines-D3Sl9ueq.js.map +1 -0
- package/dist/tooltip-8wz5S_Zr.js +113 -0
- package/dist/tooltip-8wz5S_Zr.js.map +1 -0
- package/dist/{tree-CV11PURP.js → tree-CzUJHnFs.js} +8 -8
- package/dist/{tree-CV11PURP.js.map → tree-CzUJHnFs.js.map} +1 -1
- package/dist/typography/rich-text.js +1 -1
- package/dist/{typography-CSyJrh28.js → typography-BQnine1k.js} +12 -12
- package/dist/{typography-CSyJrh28.js.map → typography-BQnine1k.js.map} +1 -1
- package/dist/typography.js +1 -1
- package/dist/ui-provider-C-74NVLc.js +178 -0
- package/dist/ui-provider-C-74NVLc.js.map +1 -0
- package/dist/ui-provider.js +2 -3
- package/dist/{upload-C9SA0X-8.js → upload-BOW6U2tI.js} +25 -24
- package/dist/upload-BOW6U2tI.js.map +1 -0
- package/dist/{upload-queue-DhQJiSRc.js → upload-queue-qUXn1ykN.js} +16 -14
- package/dist/upload-queue-qUXn1ykN.js.map +1 -0
- package/dist/{usage-card-DVTRDmGz.js → usage-card-BeSLY0i0.js} +24 -17
- package/dist/usage-card-BeSLY0i0.js.map +1 -0
- package/dist/{utils-CF3c95Io.js → utils-B6kKb8jB.js} +237 -141
- package/dist/utils-B6kKb8jB.js.map +1 -0
- package/dist/value-inputs-skdVB2zh.js +980 -0
- package/dist/value-inputs-skdVB2zh.js.map +1 -0
- package/dist/{value-typography-ClupF0Gz.js → value-typography-uAmWUAL1.js} +2 -2
- package/dist/{value-typography-ClupF0Gz.js.map → value-typography-uAmWUAL1.js.map} +1 -1
- package/dist/{workspace-9EFVXUyk.js → workspace-DHeHv0qw.js} +50 -49
- package/dist/workspace-DHeHv0qw.js.map +1 -0
- package/docs/consumer-skill/SKILL.md +4 -3
- package/docs/consumer-skill/agents/themelia-ui-designer.md +96 -0
- package/docs/consumer-skill/examples/app-layout.tsx +52 -1
- package/docs/consumer-skill/examples/commerce-lines.tsx +271 -0
- package/docs/consumer-skill/examples/custom-composition.tsx +21 -0
- package/docs/consumer-skill/examples/detail.tsx +5 -4
- package/docs/consumer-skill/examples/editable-sections.tsx +38 -0
- package/docs/consumer-skill/examples/index-table.tsx +4 -4
- package/docs/consumer-skill/examples/manifest.json +38 -1
- package/docs/consumer-skill/examples/product-media.tsx +41 -0
- package/docs/consumer-skill/examples/product-parts.tsx +81 -0
- package/docs/consumer-skill/examples/rhf-edit-page.tsx +1 -1
- package/docs/consumer-skill/examples/rhf-overlay-form.tsx +24 -11
- package/docs/consumer-skill/examples/token-domain-structure.tsx +68 -0
- package/docs/consumer-skill/references/agents-md.md +19 -17
- package/docs/consumer-skill/references/analytics.md +18 -1
- package/docs/consumer-skill/references/commerce-composition.md +97 -0
- package/docs/consumer-skill/references/component-contracts.json +7131 -1754
- package/docs/consumer-skill/references/composition-mapping.md +17 -3
- package/docs/consumer-skill/references/composition.md +159 -31
- package/docs/consumer-skill/references/critique-rubric.md +98 -0
- package/docs/consumer-skill/references/custom-composition.md +261 -0
- package/docs/consumer-skill/references/data-reading.md +79 -0
- package/docs/consumer-skill/references/design-contract.md +11 -9
- package/docs/consumer-skill/references/discovery.md +27 -3
- package/docs/consumer-skill/references/domain-structures.md +124 -0
- package/docs/consumer-skill/references/installation.md +15 -4
- package/docs/consumer-skill/references/integration.md +35 -0
- package/docs/consumer-skill/references/product-composition.md +94 -0
- package/docs/consumer-skill/references/public-api.json +2881 -420
- package/docs/consumer-skill/references/review.md +39 -2
- package/docs/consumer-skill/references/rhf-workflows.md +7 -0
- package/docs/consumer-skill/references/screen-archetypes.md +19 -7
- package/docs/consumer-skill/references/screen-decisions.md +126 -0
- package/docs/consumer-skill/references/theming.md +17 -18
- package/docs/consumer-skill/references/tokens.json +9 -9
- package/docs/consumer-skill/references/view-craft.md +153 -0
- package/docs/consumer-skill/references/view-spec.md +73 -0
- package/docs/consumer-skill/references/workflows.md +7 -1
- package/docs/consumer-skill/scripts/composition-policy.mjs +39 -3
- package/docs/consumer-skill/scripts/composition-schema.mjs +1 -1
- package/docs/consumer-skill/scripts/composition.mjs +61 -5
- package/docs/consumer-skill/scripts/discovery.mjs +54 -0
- package/docs/consumer-skill/scripts/inspect-component.mjs +1 -1
- package/docs/consumer-skill/scripts/inspection.mjs +73 -18
- package/docs/consumer-skill/scripts/setup-skills.mjs +41 -6
- package/docs/consumer-skill/scripts/surface-policy.mjs +5 -5
- package/docs/consumer-skills/themelia-components/SKILL.md +14 -13
- package/docs/consumer-skills/themelia-composition/SKILL.md +16 -17
- package/docs/consumer-skills/themelia-design/SKILL.md +55 -0
- package/docs/consumer-skills/themelia-foundation/SKILL.md +2 -1
- package/docs/consumer-skills/themelia-tokenization/SKILL.md +24 -17
- package/package.json +1 -1
- package/dist/accordion-96o0pN62.js.map +0 -1
- package/dist/action-menu-CHgs8vmj.js.map +0 -1
- package/dist/affordance-geometry.generated-B8yGOr8-.js.map +0 -1
- package/dist/ai-artifact-BZUGwBq6.js.map +0 -1
- package/dist/app-shell-D63ATkIK.js +0 -237
- package/dist/app-shell-D63ATkIK.js.map +0 -1
- package/dist/auth-D2FVZ1MH.js.map +0 -1
- package/dist/avatar-DWO_HHhB.js.map +0 -1
- package/dist/base/cascader.js.map +0 -1
- package/dist/batch-action-bar-CdfIkCsV.js.map +0 -1
- package/dist/button-DkmK-z8E.js.map +0 -1
- package/dist/buttons-BbfzgczK.js.map +0 -1
- package/dist/cards-4JTWqvVe.js +0 -68
- package/dist/cards-4JTWqvVe.js.map +0 -1
- package/dist/chart-C19flDQb.js +0 -155
- package/dist/chart-C19flDQb.js.map +0 -1
- package/dist/choice-inputs-JLtij2y4.js.map +0 -1
- package/dist/code-block-CGNaUtAE.js.map +0 -1
- package/dist/combobox-CBJDs6w_.js.map +0 -1
- package/dist/combobox-hbhSS18O.js +0 -355
- package/dist/combobox-hbhSS18O.js.map +0 -1
- package/dist/command-D8NrBj-b.js.map +0 -1
- package/dist/containers-CRmHf7GP.js.map +0 -1
- package/dist/control-group-recipes-DBXmfh2E.js.map +0 -1
- package/dist/data-display-D4oujtx0.js.map +0 -1
- package/dist/date-picker-zOt1oNss.js.map +0 -1
- package/dist/dropdown-menu-CjY8Vt7W.js +0 -193
- package/dist/dropdown-menu-CjY8Vt7W.js.map +0 -1
- package/dist/feedback-DZNL5Lg1.js.map +0 -1
- package/dist/field-affordance-recipes-DjwGx8eM.js.map +0 -1
- package/dist/filters-BcT-uoFy.js.map +0 -1
- package/dist/form-sizing-NXgjkmBG.js.map +0 -1
- package/dist/forms-BV5m5aQF.js.map +0 -1
- package/dist/forms-numeric-Cd33AKbD.js.map +0 -1
- package/dist/header-BA697l4a.js.map +0 -1
- package/dist/hooks-BQ-L7Uu2.js.map +0 -1
- package/dist/input-DOPL5_QE.js +0 -21
- package/dist/input-DOPL5_QE.js.map +0 -1
- package/dist/item-BvZ2DR_x.js.map +0 -1
- package/dist/message-INU2xsxu.js.map +0 -1
- package/dist/metadata-list-qVV7AVxa.js.map +0 -1
- package/dist/motion-recipes-ChBg4HBq.js.map +0 -1
- package/dist/navigation-BQNcg1jT.js.map +0 -1
- package/dist/navigation-DLF3E1IC.js +0 -145
- package/dist/navigation-DLF3E1IC.js.map +0 -1
- package/dist/navigation-row-recipes-WZEs-hYo.js.map +0 -1
- package/dist/overflow-tab-bar-CrbqMteP.js +0 -284
- package/dist/overflow-tab-bar-CrbqMteP.js.map +0 -1
- package/dist/overlays-BlKynmde.js +0 -1004
- package/dist/overlays-BlKynmde.js.map +0 -1
- package/dist/page-CIwNUtGr.js +0 -227
- package/dist/page-CIwNUtGr.js.map +0 -1
- package/dist/page-header-commands-DFMlNYzN.js +0 -128
- package/dist/page-header-commands-DFMlNYzN.js.map +0 -1
- package/dist/popover-uwzX2vo7.js +0 -198
- package/dist/popover-uwzX2vo7.js.map +0 -1
- package/dist/popover.recipes-D3j8R8Yp.js.map +0 -1
- package/dist/receipt-D789Jwyy.js.map +0 -1
- package/dist/rich-text-editor-Cm1dpUpQ.js.map +0 -1
- package/dist/rich-text-editor-toolbar-L__e4x47.js.map +0 -1
- package/dist/settings-BA2iboic.js.map +0 -1
- package/dist/sheet-DoAxTb2J.js +0 -213
- package/dist/sheet-DoAxTb2J.js.map +0 -1
- package/dist/sidebar-ByqKR_W5.js +0 -512
- package/dist/sidebar-ByqKR_W5.js.map +0 -1
- package/dist/sidebar-D2iSnGJ7.js +0 -619
- package/dist/sidebar-D2iSnGJ7.js.map +0 -1
- package/dist/skeleton-CUj8O5Bd.js +0 -264
- package/dist/skeleton-CUj8O5Bd.js.map +0 -1
- package/dist/smart-card-CqkzQsK-.js +0 -614
- package/dist/smart-card-CqkzQsK-.js.map +0 -1
- package/dist/table-DH7rozUv.js.map +0 -1
- package/dist/tabs-eqVsJZWO.js.map +0 -1
- package/dist/text-inputs-DXItiR0O.js.map +0 -1
- package/dist/theme-scope-BJ6eE2xt.js +0 -50
- package/dist/theme-scope-BJ6eE2xt.js.map +0 -1
- package/dist/timelines-DmtztAY_.js.map +0 -1
- package/dist/tooltip-B4hjKtoV.js +0 -111
- package/dist/tooltip-B4hjKtoV.js.map +0 -1
- package/dist/ui-provider-CQCuCBcy.js +0 -136
- package/dist/ui-provider-CQCuCBcy.js.map +0 -1
- package/dist/upload-C9SA0X-8.js.map +0 -1
- package/dist/upload-queue-DhQJiSRc.js.map +0 -1
- package/dist/usage-card-DVTRDmGz.js.map +0 -1
- package/dist/use-mobile-vaLKwgyf.js +0 -15
- package/dist/use-mobile-vaLKwgyf.js.map +0 -1
- package/dist/utils-CF3c95Io.js.map +0 -1
- package/dist/value-inputs-C0o70p-U.js +0 -980
- package/dist/value-inputs-C0o70p-U.js.map +0 -1
- package/dist/workspace-9EFVXUyk.js.map +0 -1
package/dist/blocks/commerce.js
CHANGED
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { m as e } from "../ui-provider-C-74NVLc.js";
|
|
3
3
|
import { mergeStrings as t, useStrings as n } from "../lib/strings.js";
|
|
4
|
-
import { t as r } from "../utils-
|
|
5
|
-
import { n as i, t as a } from "../buttons-
|
|
6
|
-
import { c as o, o as s, s as c, t as l } from "../typography-
|
|
7
|
-
import { i as u, r as d, t as f } from "../structure-
|
|
4
|
+
import { t as r } from "../utils-B6kKb8jB.js";
|
|
5
|
+
import { n as i, t as a } from "../buttons-BedGfygC.js";
|
|
6
|
+
import { c as o, o as s, s as c, t as l } from "../typography-BQnine1k.js";
|
|
7
|
+
import { i as u, r as d, t as f } from "../structure-DuxKl954.js";
|
|
8
8
|
import { i as p } from "../tone-recipes-BPsRAvhu.js";
|
|
9
|
-
import { d as m, h, p as g, t as _ } from "../smart-card-
|
|
10
|
-
import { t as v } from "../progress-
|
|
11
|
-
import {
|
|
12
|
-
import { n as x, t as S } from "../
|
|
13
|
-
import { n as C } from "../
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { t as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
9
|
+
import { d as m, h, p as g, t as _ } from "../smart-card-CW0hjetE.js";
|
|
10
|
+
import { t as v } from "../progress-BJhQP9WX.js";
|
|
11
|
+
import { i as y, t as b } from "../surface-recipes-BKRVW8Os.js";
|
|
12
|
+
import { n as x, t as S } from "../composition.recipes-COdiFhxB.js";
|
|
13
|
+
import { n as C, t as w } from "../action-menu-Dr8K-ghE.js";
|
|
14
|
+
import { n as T } from "../cards-rNX1M4Xn.js";
|
|
15
|
+
import { t as E } from "../interaction-recipes-XR9ZpVYL.js";
|
|
16
|
+
import { _ as D, c as O, g as k, m as A, o as j, u as M } from "../primitives-ByWgGUgt.js";
|
|
17
|
+
import { t as N } from "../initials-format-CDoQEOd_.js";
|
|
18
|
+
import { n as ee, r as te, t as P } from "../number-CRU3kGuk.js";
|
|
19
|
+
import { t as F } from "../icon-badge-DZF-YjQp.js";
|
|
20
|
+
import { i as ne, n as re, s as ie } from "../avatar-CeZaFmNH.js";
|
|
21
|
+
import { t as I } from "../badge-xIiV_E7f.js";
|
|
22
|
+
import { t as ae } from "../separator-Ct_WSWTJ.js";
|
|
23
|
+
import { t as L } from "../input-CvyDQlY7.js";
|
|
24
|
+
import { t as oe } from "../copyable-DIznBqiT.js";
|
|
25
|
+
import { t as R } from "../form-field-BriWAXyg.js";
|
|
26
|
+
import { a as se, l as ce, r as le } from "../choice-inputs-zUgBZfE4.js";
|
|
27
|
+
import { i as ue, n as z, o as de } from "../display-KsZLw9Ov.js";
|
|
28
|
+
import { u as fe } from "../value-inputs-skdVB2zh.js";
|
|
29
|
+
import { d as pe, n as me } from "../forms-numeric-DIhghX1Q.js";
|
|
30
|
+
import { c as B, i as V, n as he, o as ge, r as H, t as U, u as W } from "../item-DjCcM18E.js";
|
|
31
|
+
import { t as G } from "../metadata-list-C3MkU-Om.js";
|
|
32
|
+
import { i as _e, n as ve, r as ye, t as be } from "../tabs-e7ko9S2o.js";
|
|
33
|
+
import { m as K } from "../data-display-BdgCAw8T.js";
|
|
34
|
+
import { n as xe, t as Se } from "../receipt-tOc7B3hw.js";
|
|
35
|
+
import { s as Ce } from "../timelines-D3Sl9ueq.js";
|
|
36
|
+
import { forwardRef as we, useEffect as Te, useId as Ee, useMemo as De, useRef as Oe, useState as ke } from "react";
|
|
37
|
+
import { Fragment as Ae, jsx as q, jsxs as J } from "react/jsx-runtime";
|
|
38
|
+
import { ArrowRight as je, CalendarClock as Me, Check as Ne, CheckCircle2 as Pe, ChevronRight as Fe, Circle as Ie, CircleAlert as Le, Copy as Re, Edit2 as ze, ExternalLink as Be, Loader2 as Ve, Pencil as He, Star as Ue, Trash2 as We, TriangleAlert as Ge, X as Ke } from "lucide-react";
|
|
38
39
|
//#region src/components/blocks/commerce/upcoming-booking/upcoming-booking.tsx
|
|
39
|
-
function
|
|
40
|
-
return /* @__PURE__ */
|
|
40
|
+
function qe({ bookings: e, className: t, locale: n, dateTone: i = "neutral", dateVariant: a = "default", timePlacement: o = "below" }) {
|
|
41
|
+
return /* @__PURE__ */ q(ge, {
|
|
41
42
|
className: r("upcoming-booking--component w-full", t),
|
|
42
|
-
children: e.map((e, t) => /* @__PURE__ */
|
|
43
|
+
children: e.map((e, t) => /* @__PURE__ */ J(U, {
|
|
43
44
|
className: "items-center",
|
|
44
45
|
children: [
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
+
/* @__PURE__ */ q(B, { children: /* @__PURE__ */ q(ue, {
|
|
46
47
|
date: e.date,
|
|
47
48
|
time: o === "below" ? e.time : void 0,
|
|
48
49
|
tone: i,
|
|
@@ -51,20 +52,20 @@ function Je({ bookings: e, className: t, locale: n, dateTone: i = "neutral", dat
|
|
|
51
52
|
timePlacement: "below",
|
|
52
53
|
layout: "stacked"
|
|
53
54
|
}) }),
|
|
54
|
-
/* @__PURE__ */
|
|
55
|
+
/* @__PURE__ */ J(H, {
|
|
55
56
|
className: "min-w-0 sm:min-w-48",
|
|
56
|
-
children: [/* @__PURE__ */ W
|
|
57
|
+
children: [/* @__PURE__ */ q(W, { children: e.service }), /* @__PURE__ */ q(V, {
|
|
57
58
|
clamp: 1,
|
|
58
59
|
children: e.customer
|
|
59
60
|
})]
|
|
60
61
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ J(he, {
|
|
62
63
|
className: "ml-auto shrink-0 flex-wrap justify-end",
|
|
63
|
-
children: [o === "inline-trailing" && /* @__PURE__ */
|
|
64
|
+
children: [o === "inline-trailing" && /* @__PURE__ */ q(k, {
|
|
64
65
|
size: "xs",
|
|
65
66
|
className: "shrink-0 tabular-nums",
|
|
66
67
|
children: e.time
|
|
67
|
-
}), /* @__PURE__ */
|
|
68
|
+
}), /* @__PURE__ */ q(D, {
|
|
68
69
|
type: "inherit",
|
|
69
70
|
weight: "semibold",
|
|
70
71
|
className: "shrink-0 tabular-nums",
|
|
@@ -75,37 +76,37 @@ function Je({ bookings: e, className: t, locale: n, dateTone: i = "neutral", dat
|
|
|
75
76
|
}, e.id ?? `${e.service}-${e.time}-${t}`))
|
|
76
77
|
});
|
|
77
78
|
}
|
|
78
|
-
|
|
79
|
+
qe.displayName = "UpcomingBookingRow";
|
|
79
80
|
//#endregion
|
|
80
81
|
//#region src/components/blocks/commerce/booking-calendar-event-card/booking-calendar-event-card.tsx
|
|
81
|
-
function
|
|
82
|
-
return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */
|
|
82
|
+
function Je(e) {
|
|
83
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "bigint" ? /* @__PURE__ */ q(D, {
|
|
83
84
|
type: "inherit",
|
|
84
85
|
children: String(e)
|
|
85
86
|
}) : e;
|
|
86
87
|
}
|
|
87
|
-
function
|
|
88
|
-
return /* @__PURE__ */
|
|
88
|
+
function Ye({ title: e, description: t, status: n, items: i, actionLabel: a, onAction: o, className: c, contentClassName: l }) {
|
|
89
|
+
return /* @__PURE__ */ J(z, {
|
|
89
90
|
title: e,
|
|
90
91
|
titleSuffix: n,
|
|
91
92
|
description: t,
|
|
92
93
|
className: r("booking-calendar-event-card--component @container/booking-calendar-event-card", c),
|
|
93
94
|
contentClassName: r("grid gap-space-2xl", l),
|
|
94
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ q("dl", {
|
|
95
96
|
className: "booking-calendar-event-card--details grid gap-space-lg @md/booking-calendar-event-card:grid-cols-2",
|
|
96
|
-
children: i.map((e) => /* @__PURE__ */
|
|
97
|
+
children: i.map((e) => /* @__PURE__ */ J("div", {
|
|
97
98
|
className: r("grid min-w-0 gap-normal", e.fullWidth === !0 && "@md/booking-calendar-event-card:col-span-2"),
|
|
98
|
-
children: [/* @__PURE__ */
|
|
99
|
+
children: [/* @__PURE__ */ q("dt", {
|
|
99
100
|
className: "flex",
|
|
100
|
-
children: /* @__PURE__ */
|
|
101
|
-
}), /* @__PURE__ */
|
|
101
|
+
children: /* @__PURE__ */ q(s, { children: e.label })
|
|
102
|
+
}), /* @__PURE__ */ q("dd", {
|
|
102
103
|
className: "min-w-0 leading-normal",
|
|
103
|
-
children:
|
|
104
|
+
children: Je(e.value)
|
|
104
105
|
})]
|
|
105
106
|
}, e.id))
|
|
106
|
-
}), /* @__PURE__ */
|
|
107
|
+
}), /* @__PURE__ */ q("div", {
|
|
107
108
|
className: "booking-calendar-event-card--action flex justify-end",
|
|
108
|
-
children: /* @__PURE__ */
|
|
109
|
+
children: /* @__PURE__ */ q(T, {
|
|
109
110
|
fullWidth: !1,
|
|
110
111
|
className: "w-full @md/booking-calendar-event-card:w-auto",
|
|
111
112
|
onClick: o,
|
|
@@ -114,10 +115,10 @@ function Xe({ title: e, description: t, status: n, items: i, actionLabel: a, onA
|
|
|
114
115
|
})]
|
|
115
116
|
});
|
|
116
117
|
}
|
|
117
|
-
|
|
118
|
+
Ye.displayName = "BookingCalendarEventCard";
|
|
118
119
|
//#endregion
|
|
119
120
|
//#region src/components/blocks/commerce/loyalty-points/types.ts
|
|
120
|
-
var
|
|
121
|
+
var Xe = {
|
|
121
122
|
balanceLabel: "Loyalty balance",
|
|
122
123
|
pointsAvailable: "points available",
|
|
123
124
|
redeem: "Redeem points",
|
|
@@ -125,49 +126,49 @@ var Ze = {
|
|
|
125
126
|
};
|
|
126
127
|
//#endregion
|
|
127
128
|
//#region src/components/blocks/commerce/loyalty-points/loyalty-points.tsx
|
|
128
|
-
function
|
|
129
|
-
let p = n(
|
|
130
|
-
return /* @__PURE__ */
|
|
129
|
+
function Ze({ balance: e, tier: t, tierTone: a = "neutral", history: s = [], onRedeem: l, className: u, strings: d }) {
|
|
130
|
+
let p = n(Xe, d);
|
|
131
|
+
return /* @__PURE__ */ J(z, {
|
|
131
132
|
title: p.balanceLabel,
|
|
132
|
-
titleSuffix: /* @__PURE__ */
|
|
133
|
+
titleSuffix: /* @__PURE__ */ q(I, {
|
|
133
134
|
tone: a,
|
|
134
135
|
children: t ?? p.tier
|
|
135
136
|
}),
|
|
136
137
|
contentGap: "2xl",
|
|
137
138
|
className: r("loyalty-points--component w-full", u),
|
|
138
139
|
children: [
|
|
139
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ J(f, {
|
|
140
141
|
gap: "dense",
|
|
141
142
|
className: "loyalty-points--balance",
|
|
142
|
-
children: [/* @__PURE__ */
|
|
143
|
+
children: [/* @__PURE__ */ q(c, {
|
|
143
144
|
tag: "h3",
|
|
144
145
|
className: "tabular-nums text-inherit",
|
|
145
|
-
children: typeof e == "number" ? /* @__PURE__ */
|
|
146
|
+
children: typeof e == "number" ? /* @__PURE__ */ q(P, {
|
|
146
147
|
type: "inherit",
|
|
147
148
|
value: e,
|
|
148
149
|
align: "left"
|
|
149
150
|
}) : e
|
|
150
|
-
}), /* @__PURE__ */
|
|
151
|
+
}), /* @__PURE__ */ q(o, {
|
|
151
152
|
size: "xs",
|
|
152
153
|
type: "secondary",
|
|
153
154
|
children: p.pointsAvailable
|
|
154
155
|
})]
|
|
155
156
|
}),
|
|
156
|
-
s.length > 0 && /* @__PURE__ */
|
|
157
|
+
s.length > 0 && /* @__PURE__ */ q(ge, { children: s.map((e) => /* @__PURE__ */ J(U, {
|
|
157
158
|
size: "sm",
|
|
158
|
-
children: [/* @__PURE__ */
|
|
159
|
+
children: [/* @__PURE__ */ J(H, { children: [/* @__PURE__ */ q(W, {
|
|
159
160
|
bold: !1,
|
|
160
161
|
children: e.label
|
|
161
|
-
}), /* @__PURE__ */
|
|
162
|
+
}), /* @__PURE__ */ q(V, {
|
|
162
163
|
clamp: 1,
|
|
163
164
|
children: e.date
|
|
164
|
-
})] }), /* @__PURE__ */
|
|
165
|
+
})] }), /* @__PURE__ */ q(he, { children: /* @__PURE__ */ q(o, {
|
|
165
166
|
weight: "semibold",
|
|
166
167
|
className: r("tabular-nums", e.positive ? "text-success" : "text-destructive"),
|
|
167
168
|
children: e.points
|
|
168
169
|
}) })]
|
|
169
170
|
}, e.date + e.label)) }),
|
|
170
|
-
!!l && /* @__PURE__ */
|
|
171
|
+
!!l && /* @__PURE__ */ q(i, {
|
|
171
172
|
tone: "primary",
|
|
172
173
|
fullWidth: !0,
|
|
173
174
|
onClick: l,
|
|
@@ -176,21 +177,21 @@ function Qe({ balance: e, tier: t, tierTone: a = "neutral", history: s = [], onR
|
|
|
176
177
|
]
|
|
177
178
|
});
|
|
178
179
|
}
|
|
179
|
-
|
|
180
|
-
function
|
|
180
|
+
Ze.displayName = "LoyaltyPoints";
|
|
181
|
+
function Qe(e) {
|
|
181
182
|
return e.replace(/^[\s−-]+/, "");
|
|
182
183
|
}
|
|
183
|
-
function
|
|
184
|
-
return e.trim() ? `−${
|
|
184
|
+
function $e(e) {
|
|
185
|
+
return e.trim() ? `−${Qe(e)}` : e;
|
|
185
186
|
}
|
|
186
187
|
//#endregion
|
|
187
188
|
//#region src/components/blocks/commerce/summary-panel/amount-row.tsx
|
|
188
|
-
function
|
|
189
|
+
function et(e) {
|
|
189
190
|
return typeof e == "string" || typeof e == "number";
|
|
190
191
|
}
|
|
191
|
-
var
|
|
192
|
+
var Y = we(function({ label: e, amount: t, note: n, total: i = !1, deduction: a = !1, rollup: s = !1, className: c, ...l }, u) {
|
|
192
193
|
let d = n != null && n !== !1 && n !== "";
|
|
193
|
-
return /* @__PURE__ */
|
|
194
|
+
return /* @__PURE__ */ J("div", {
|
|
194
195
|
ref: u,
|
|
195
196
|
"data-slot": "amount-row",
|
|
196
197
|
"data-total": i ? "" : void 0,
|
|
@@ -199,42 +200,42 @@ var q = Ee(function({ label: e, amount: t, note: n, total: i = !1, deduction: a
|
|
|
199
200
|
className: r("amount-row--component flex min-w-0 items-baseline gap-space-md", s && "mt-space-sm border-t border-border pt-space-lg", c),
|
|
200
201
|
...l,
|
|
201
202
|
children: [
|
|
202
|
-
|
|
203
|
+
et(e) ? /* @__PURE__ */ q(o, {
|
|
203
204
|
tag: "span",
|
|
204
205
|
type: i ? "inherit" : "secondary",
|
|
205
206
|
weight: i ? "semibold" : "regular",
|
|
206
207
|
lineHeight: i ? "tight" : "normal",
|
|
207
208
|
className: "amount-row--label min-w-0 flex-1 wrap-anywhere",
|
|
208
209
|
children: e
|
|
209
|
-
}) : /* @__PURE__ */
|
|
210
|
+
}) : /* @__PURE__ */ q("span", {
|
|
210
211
|
className: "amount-row--label min-w-0 flex-1",
|
|
211
212
|
children: e
|
|
212
213
|
}),
|
|
213
|
-
!!d && (
|
|
214
|
+
!!d && (et(n) ? /* @__PURE__ */ q(o, {
|
|
214
215
|
tag: "span",
|
|
215
216
|
size: "xs",
|
|
216
217
|
type: "secondary",
|
|
217
218
|
className: "amount-row--note shrink-0 tabular-nums",
|
|
218
219
|
children: n
|
|
219
|
-
}) : /* @__PURE__ */
|
|
220
|
+
}) : /* @__PURE__ */ q("span", {
|
|
220
221
|
className: "amount-row--note inline-flex shrink-0 items-center",
|
|
221
222
|
children: n
|
|
222
223
|
})),
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ q(o, {
|
|
224
225
|
tag: "span",
|
|
225
226
|
type: a ? "success" : "inherit",
|
|
226
227
|
weight: i ? "bold" : "medium",
|
|
227
228
|
className: "amount-row--value shrink-0 text-end tabular-nums",
|
|
228
|
-
children: a ?
|
|
229
|
+
children: a ? $e(t) : t
|
|
229
230
|
})
|
|
230
231
|
]
|
|
231
232
|
});
|
|
232
233
|
});
|
|
233
|
-
|
|
234
|
+
Y.displayName = "AmountRow";
|
|
234
235
|
//#endregion
|
|
235
236
|
//#region src/components/blocks/commerce/summary-panel/summary-panel.tsx
|
|
236
|
-
var
|
|
237
|
-
return /* @__PURE__ */
|
|
237
|
+
var X = we(function({ className: e, children: t, ...n }, i) {
|
|
238
|
+
return /* @__PURE__ */ q(f, {
|
|
238
239
|
ref: i,
|
|
239
240
|
gap: "sm",
|
|
240
241
|
"data-slot": "summary-panel",
|
|
@@ -243,43 +244,44 @@ var J = Ee(function({ className: e, children: t, ...n }, i) {
|
|
|
243
244
|
children: t
|
|
244
245
|
});
|
|
245
246
|
});
|
|
246
|
-
|
|
247
|
+
X.displayName = "SummaryPanel";
|
|
247
248
|
//#endregion
|
|
248
249
|
//#region src/components/blocks/commerce/discount-stack/types.ts
|
|
249
|
-
var
|
|
250
|
+
var tt = {
|
|
250
251
|
title: "Applied discounts",
|
|
251
252
|
totalSavings: "Total savings"
|
|
252
253
|
};
|
|
253
254
|
//#endregion
|
|
254
255
|
//#region src/components/blocks/commerce/discount-stack/discount-stack.tsx
|
|
255
|
-
function
|
|
256
|
+
function nt(e) {
|
|
256
257
|
let t = e.kind ?? e.type;
|
|
257
|
-
if (t != null && t !== "") return e.badge ? /* @__PURE__ */
|
|
258
|
+
if (t != null && t !== "") return e.badge ? /* @__PURE__ */ q(I, {
|
|
258
259
|
tone: e.badge,
|
|
259
260
|
size: "sm",
|
|
260
261
|
children: t
|
|
261
262
|
}) : t;
|
|
262
263
|
}
|
|
263
|
-
function
|
|
264
|
-
let
|
|
265
|
-
return /* @__PURE__ */
|
|
266
|
-
...
|
|
267
|
-
surface:
|
|
268
|
-
padding:
|
|
269
|
-
|
|
264
|
+
function rt({ discounts: e, totalSavings: t, className: i, strings: a, surface: o = "flat", padding: s = o === "flat" ? "none" : "md", headerDivider: c, ...l }) {
|
|
265
|
+
let u = n(tt, a);
|
|
266
|
+
return /* @__PURE__ */ q(_, {
|
|
267
|
+
...l,
|
|
268
|
+
surface: o,
|
|
269
|
+
padding: s,
|
|
270
|
+
headerDivider: c,
|
|
271
|
+
title: u.title,
|
|
270
272
|
"data-slot": "discount-stack",
|
|
271
273
|
className: r("discount-stack--component w-full", i),
|
|
272
|
-
children: /* @__PURE__ */
|
|
274
|
+
children: /* @__PURE__ */ J(X, {
|
|
273
275
|
className: "discount-stack--ledger",
|
|
274
|
-
children: [e.map((e, t) => /* @__PURE__ */
|
|
276
|
+
children: [e.map((e, t) => /* @__PURE__ */ q(Y, {
|
|
275
277
|
className: "discount-stack--row",
|
|
276
278
|
label: e.label,
|
|
277
|
-
note:
|
|
279
|
+
note: nt(e),
|
|
278
280
|
amount: e.amount,
|
|
279
281
|
deduction: !0
|
|
280
|
-
}, e.id ?? `${e.type ?? ""}-${e.label}-${String(t)}`)), /* @__PURE__ */
|
|
282
|
+
}, e.id ?? `${e.type ?? ""}-${e.label}-${String(t)}`)), /* @__PURE__ */ q(Y, {
|
|
281
283
|
className: "discount-stack--total",
|
|
282
|
-
label:
|
|
284
|
+
label: u.totalSavings,
|
|
283
285
|
amount: t,
|
|
284
286
|
total: !0,
|
|
285
287
|
deduction: !0,
|
|
@@ -288,13 +290,13 @@ function it({ discounts: e, totalSavings: t, className: i, strings: a, ...o }) {
|
|
|
288
290
|
})
|
|
289
291
|
});
|
|
290
292
|
}
|
|
291
|
-
|
|
292
|
-
var
|
|
293
|
+
rt.displayName = "DiscountStackPreview";
|
|
294
|
+
var it = rt, at = {
|
|
293
295
|
pending: "neutral",
|
|
294
296
|
in_transit: "info",
|
|
295
297
|
delivered: "success",
|
|
296
298
|
delayed: "warning"
|
|
297
|
-
},
|
|
299
|
+
}, ot = {
|
|
298
300
|
title: "Shipment tracking",
|
|
299
301
|
trackingNumber: "Tracking number",
|
|
300
302
|
carrier: "Carrier",
|
|
@@ -306,69 +308,72 @@ var at = it, ot = {
|
|
|
306
308
|
};
|
|
307
309
|
//#endregion
|
|
308
310
|
//#region src/components/blocks/commerce/shipment-tracking/shipment-tracking.tsx
|
|
309
|
-
function
|
|
311
|
+
function st(e) {
|
|
310
312
|
for (let t = e.length - 1; t >= 0; --t) if (e[t]?.done) return t;
|
|
311
313
|
return -1;
|
|
312
314
|
}
|
|
313
|
-
function
|
|
314
|
-
let
|
|
315
|
+
function ct({ trackingNumber: e, carrier: t, status: i, steps: a, details: o = [], onCopyTracking: s, className: c, strings: l, surface: u = "flat", padding: d = u === "flat" ? "none" : "md", headerDivider: f, ...p }) {
|
|
316
|
+
let m = n(ot, l), h = i === "delivered" ? -1 : st(a), g = a.map((e, t) => ({
|
|
315
317
|
id: e.id ?? `${e.label}-${String(t)}`,
|
|
316
318
|
title: e.label,
|
|
317
319
|
timestamp: e.timestamp,
|
|
318
|
-
status: t ===
|
|
319
|
-
}))
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
320
|
+
status: t === h ? "current" : e.done ? "completed" : "pending"
|
|
321
|
+
})), v = [
|
|
322
|
+
{
|
|
323
|
+
id: "tracking-number",
|
|
324
|
+
label: m.trackingNumber,
|
|
325
|
+
value: /* @__PURE__ */ q(oe, {
|
|
326
|
+
value: e,
|
|
327
|
+
mono: !0,
|
|
328
|
+
truncate: !0,
|
|
329
|
+
onCopy: s,
|
|
330
|
+
strings: { copyLabel: m.copyTrackingNumber },
|
|
331
|
+
className: "shipment-tracking--tracking-number"
|
|
332
|
+
})
|
|
333
|
+
},
|
|
334
|
+
...t ? [{
|
|
335
|
+
id: "carrier",
|
|
336
|
+
label: m.carrier,
|
|
337
|
+
value: t
|
|
338
|
+
}] : [],
|
|
339
|
+
...o.map((e, t) => ({
|
|
340
|
+
id: `detail-${String(t)}`,
|
|
341
|
+
label: e.label,
|
|
342
|
+
value: e.value
|
|
343
|
+
}))
|
|
344
|
+
];
|
|
345
|
+
return /* @__PURE__ */ J(_, {
|
|
346
|
+
...p,
|
|
347
|
+
surface: u,
|
|
348
|
+
padding: d,
|
|
349
|
+
headerDivider: f,
|
|
350
|
+
title: m.title,
|
|
351
|
+
titleSuffix: /* @__PURE__ */ q(I, {
|
|
352
|
+
tone: at[i],
|
|
327
353
|
className: "shipment-tracking--status",
|
|
328
|
-
children:
|
|
354
|
+
children: m[i]
|
|
329
355
|
}),
|
|
330
356
|
contentGap: "2xl",
|
|
331
357
|
"data-slot": "shipment-tracking",
|
|
332
358
|
className: r("shipment-tracking--component w-full", c),
|
|
333
|
-
children: [/* @__PURE__ */ G
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
truncate: !0,
|
|
343
|
-
onCopy: s,
|
|
344
|
-
strings: { copyLabel: d.copyTrackingNumber },
|
|
345
|
-
className: "shipment-tracking--tracking-number"
|
|
346
|
-
}),
|
|
347
|
-
valueClassName: "min-w-0"
|
|
348
|
-
}),
|
|
349
|
-
!!t && /* @__PURE__ */ W(U, {
|
|
350
|
-
label: d.carrier,
|
|
351
|
-
value: t,
|
|
352
|
-
valueWeight: "medium"
|
|
353
|
-
}),
|
|
354
|
-
o.map((e, t) => /* @__PURE__ */ W(U, {
|
|
355
|
-
label: e.label,
|
|
356
|
-
value: e.value,
|
|
357
|
-
valueWeight: "medium",
|
|
358
|
-
valueClassName: "min-w-0 truncate"
|
|
359
|
-
}, `${e.label}-${String(t)}`))
|
|
360
|
-
]
|
|
361
|
-
}), m.length > 0 && /* @__PURE__ */ W(Te, {
|
|
362
|
-
items: m,
|
|
359
|
+
children: [/* @__PURE__ */ q(G, {
|
|
360
|
+
items: v,
|
|
361
|
+
columns: {
|
|
362
|
+
base: 1,
|
|
363
|
+
sm: 2
|
|
364
|
+
},
|
|
365
|
+
className: "shipment-tracking--facts"
|
|
366
|
+
}), g.length > 0 && /* @__PURE__ */ q(Ce, {
|
|
367
|
+
items: g,
|
|
363
368
|
dotSize: "sm",
|
|
364
369
|
className: "shipment-tracking--rail"
|
|
365
370
|
})]
|
|
366
371
|
});
|
|
367
372
|
}
|
|
368
|
-
|
|
373
|
+
ct.displayName = "ShipmentTracking";
|
|
369
374
|
//#endregion
|
|
370
375
|
//#region src/components/blocks/commerce/giftcard-card/types.ts
|
|
371
|
-
var
|
|
376
|
+
var Z = {
|
|
372
377
|
status: {
|
|
373
378
|
active: "Active",
|
|
374
379
|
redeemed: "Redeemed",
|
|
@@ -387,29 +392,34 @@ var Y = {
|
|
|
387
392
|
copiedCode: "Code copied",
|
|
388
393
|
copyFailed: "Could not copy code. Try again.",
|
|
389
394
|
copyingCode: "Copying code…"
|
|
390
|
-
},
|
|
395
|
+
}, lt = {
|
|
391
396
|
active: "success",
|
|
392
397
|
redeemed: "secondary",
|
|
393
398
|
expired: "destructive",
|
|
394
399
|
disabled: "warning"
|
|
395
|
-
},
|
|
400
|
+
}, ut = "bg-inverse-background from-inverse-background via-inverse-surface to-inverse-background", Q = {
|
|
401
|
+
purple: "from-chart-3 to-chart-4",
|
|
402
|
+
green: "from-chart-1 to-chart-2",
|
|
403
|
+
warm: "from-chart-5 to-warning",
|
|
404
|
+
blue: "from-chart-2 to-chart-3"
|
|
405
|
+
}, dt = {
|
|
396
406
|
purple: {
|
|
397
|
-
card:
|
|
398
|
-
strip:
|
|
407
|
+
card: ut,
|
|
408
|
+
strip: Q.purple
|
|
399
409
|
},
|
|
400
410
|
green: {
|
|
401
|
-
card:
|
|
402
|
-
strip:
|
|
411
|
+
card: ut,
|
|
412
|
+
strip: Q.green
|
|
403
413
|
},
|
|
404
414
|
warm: {
|
|
405
|
-
card:
|
|
406
|
-
strip:
|
|
415
|
+
card: ut,
|
|
416
|
+
strip: Q.warm
|
|
407
417
|
}
|
|
418
|
+
}, ft = {
|
|
419
|
+
purple: Q.purple,
|
|
420
|
+
green: Q.green,
|
|
421
|
+
warm: Q.warm
|
|
408
422
|
}, pt = {
|
|
409
|
-
purple: "from-primary to-info",
|
|
410
|
-
green: "from-success to-info",
|
|
411
|
-
warm: "from-warning to-destructive"
|
|
412
|
-
}, mt = {
|
|
413
423
|
green: {
|
|
414
424
|
line: p.success.solid,
|
|
415
425
|
iconBg: `${p.success.tint} ${p.success.ink}`
|
|
@@ -422,60 +432,60 @@ var Y = {
|
|
|
422
432
|
line: p.warning.solid,
|
|
423
433
|
iconBg: `${p.warning.tint} ${p.warning.ink}`
|
|
424
434
|
}
|
|
425
|
-
},
|
|
426
|
-
green:
|
|
427
|
-
blue:
|
|
428
|
-
amber:
|
|
435
|
+
}, mt = {
|
|
436
|
+
green: Q.green,
|
|
437
|
+
blue: Q.blue,
|
|
438
|
+
amber: Q.warm
|
|
429
439
|
};
|
|
430
440
|
//#endregion
|
|
431
441
|
//#region src/components/blocks/commerce/giftcard-card/partials/giftcard-compact.tsx
|
|
432
|
-
function
|
|
433
|
-
let u = n(
|
|
434
|
-
return /* @__PURE__ */
|
|
442
|
+
function ht({ code: e, amount: t, remainingAmount: i, status: a, recipientName: o, gradient: s = "purple", className: c, strings: l }) {
|
|
443
|
+
let u = n(Z, l).status[a], d = lt[a], p = !!i && i !== t, m = p ? i : t;
|
|
444
|
+
return /* @__PURE__ */ J(U, {
|
|
435
445
|
size: "sm",
|
|
436
446
|
variant: "outline",
|
|
437
447
|
padding: "default",
|
|
438
448
|
className: r("giftcard-card--component giftcard-compact--component flex-nowrap shadow-sm transition-colors duration-150 hover:border-border", c),
|
|
439
449
|
children: [
|
|
440
|
-
/* @__PURE__ */
|
|
450
|
+
/* @__PURE__ */ q(B, {
|
|
441
451
|
variant: "image",
|
|
442
|
-
children: /* @__PURE__ */
|
|
443
|
-
className: r("flex size-full items-center justify-center bg-gradient-to-br p-space-2xs",
|
|
444
|
-
children: /* @__PURE__ */
|
|
452
|
+
children: /* @__PURE__ */ q("div", {
|
|
453
|
+
className: r("flex size-full items-center justify-center bg-gradient-to-br p-space-2xs", ft[s]),
|
|
454
|
+
children: /* @__PURE__ */ q("span", { className: "size-full rounded-radius bg-inverse-background" })
|
|
445
455
|
})
|
|
446
456
|
}),
|
|
447
|
-
/* @__PURE__ */
|
|
457
|
+
/* @__PURE__ */ J(H, {
|
|
448
458
|
className: "min-w-0",
|
|
449
|
-
children: [/* @__PURE__ */ W
|
|
459
|
+
children: [/* @__PURE__ */ q(W, {
|
|
450
460
|
className: "w-full max-w-full truncate whitespace-nowrap",
|
|
451
|
-
children: /* @__PURE__ */
|
|
461
|
+
children: /* @__PURE__ */ q(A, {
|
|
452
462
|
type: "inherit",
|
|
453
463
|
children: e
|
|
454
464
|
})
|
|
455
|
-
}), !!o && /* @__PURE__ */
|
|
465
|
+
}), !!o && /* @__PURE__ */ q(V, {
|
|
456
466
|
clamp: 1,
|
|
457
467
|
children: o
|
|
458
468
|
})]
|
|
459
469
|
}),
|
|
460
|
-
/* @__PURE__ */
|
|
470
|
+
/* @__PURE__ */ q(he, {
|
|
461
471
|
className: "shrink-0",
|
|
462
|
-
children: /* @__PURE__ */
|
|
472
|
+
children: /* @__PURE__ */ J(f, {
|
|
463
473
|
gap: "2xs",
|
|
464
474
|
align: "end",
|
|
465
475
|
className: "shrink-0",
|
|
466
|
-
children: [/* @__PURE__ */
|
|
476
|
+
children: [/* @__PURE__ */ J("div", {
|
|
467
477
|
className: "flex items-baseline gap-space-xs",
|
|
468
|
-
children: [/* @__PURE__ */
|
|
478
|
+
children: [/* @__PURE__ */ q(D, {
|
|
469
479
|
type: "inherit",
|
|
470
480
|
weight: "bold",
|
|
471
481
|
className: "tabular-nums",
|
|
472
482
|
children: m
|
|
473
|
-
}), !!p && /* @__PURE__ */
|
|
483
|
+
}), !!p && /* @__PURE__ */ q(D, {
|
|
474
484
|
size: "xs",
|
|
475
485
|
className: "line-through tabular-nums text-muted-foreground",
|
|
476
486
|
children: t
|
|
477
487
|
})]
|
|
478
|
-
}), /* @__PURE__ */
|
|
488
|
+
}), /* @__PURE__ */ q(I, {
|
|
479
489
|
tone: d,
|
|
480
490
|
size: "sm",
|
|
481
491
|
children: u
|
|
@@ -485,21 +495,21 @@ function gt({ code: e, amount: t, remainingAmount: i, status: a, recipientName:
|
|
|
485
495
|
]
|
|
486
496
|
});
|
|
487
497
|
}
|
|
488
|
-
|
|
498
|
+
ht.displayName = "GiftcardCompact";
|
|
489
499
|
//#endregion
|
|
490
500
|
//#region src/components/blocks/commerce/giftcard-card/partials/giftcard-copy-button.tsx
|
|
491
|
-
function
|
|
492
|
-
let c = n(
|
|
501
|
+
function gt({ code: e, strings: t, inverse: a = !1, className: s }) {
|
|
502
|
+
let c = n(Z, t), l = Oe(0), [u, d] = ke({
|
|
493
503
|
code: e,
|
|
494
504
|
state: "idle"
|
|
495
505
|
}), f = u.code === e ? u.state : "idle";
|
|
496
|
-
|
|
506
|
+
Te(() => (l.current++, d((t) => t.code === e ? t : {
|
|
497
507
|
code: e,
|
|
498
508
|
state: "idle"
|
|
499
509
|
}), () => {
|
|
500
510
|
l.current++;
|
|
501
511
|
}), [e]);
|
|
502
|
-
let p = f === "copied" ? c.copiedCode : f === "failed" ? c.copyFailed : f === "pending" ? c.copyingCode : c.copyCode, m = f === "copied" ?
|
|
512
|
+
let p = f === "copied" ? c.copiedCode : f === "failed" ? c.copyFailed : f === "pending" ? c.copyingCode : c.copyCode, m = f === "copied" ? Ne : f === "failed" ? Ke : f === "pending" ? Ve : Re, h = async () => {
|
|
503
513
|
if (!e || f === "pending") return;
|
|
504
514
|
let t = l.current;
|
|
505
515
|
d({
|
|
@@ -518,7 +528,7 @@ function _t({ code: e, strings: t, inverse: a = !1, className: s }) {
|
|
|
518
528
|
});
|
|
519
529
|
}
|
|
520
530
|
};
|
|
521
|
-
return /* @__PURE__ */
|
|
531
|
+
return /* @__PURE__ */ J(Ae, { children: [/* @__PURE__ */ q(i, {
|
|
522
532
|
type: "button",
|
|
523
533
|
tone: "secondary",
|
|
524
534
|
buttonStyle: "ghost",
|
|
@@ -530,11 +540,11 @@ function _t({ code: e, strings: t, inverse: a = !1, className: s }) {
|
|
|
530
540
|
withTooltip: p,
|
|
531
541
|
className: r("giftcard-copy--component", s, a && "text-inverse-foreground [&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-inverse-surface [&:hover:not(:active):not(:disabled):not([data-disabled]):not([aria-disabled=true])]:text-inverse-foreground [&:active:not(:disabled):not([data-disabled]):not([aria-disabled=true])]:bg-inverse-surface-strong focus-visible:bg-inverse-surface"),
|
|
532
542
|
onClick: () => void h(),
|
|
533
|
-
children: /* @__PURE__ */
|
|
543
|
+
children: /* @__PURE__ */ q(m, {
|
|
534
544
|
"aria-hidden": !0,
|
|
535
545
|
className: r("size-icon-sm", f === "pending" && "animate-spin")
|
|
536
546
|
})
|
|
537
|
-
}), (f === "copied" || f === "failed") && /* @__PURE__ */
|
|
547
|
+
}), (f === "copied" || f === "failed") && /* @__PURE__ */ q(o, {
|
|
538
548
|
tag: "span",
|
|
539
549
|
role: "status",
|
|
540
550
|
className: "sr-only",
|
|
@@ -543,71 +553,71 @@ function _t({ code: e, strings: t, inverse: a = !1, className: s }) {
|
|
|
543
553
|
}
|
|
544
554
|
//#endregion
|
|
545
555
|
//#region src/components/blocks/commerce/giftcard-card/partials/giftcard-dark.tsx
|
|
546
|
-
function
|
|
547
|
-
let h = n(
|
|
556
|
+
function _t({ code: e, amount: t, remainingAmount: a, status: s, recipientName: l, expiresAt: u, onView: d, className: p, strings: m }) {
|
|
557
|
+
let h = n(Z, m), g = h.status[s], v = lt[s], y = !!a && a !== t, b = y ? a : t, x = [...l ? [{
|
|
548
558
|
label: h.recipient,
|
|
549
559
|
value: l
|
|
550
560
|
}] : [], ...u ? [{
|
|
551
561
|
label: h.expires,
|
|
552
562
|
value: u
|
|
553
563
|
}] : []];
|
|
554
|
-
return /* @__PURE__ */
|
|
564
|
+
return /* @__PURE__ */ q(_, {
|
|
555
565
|
surface: "card",
|
|
556
566
|
className: r("giftcard-card--component giftcard-dark--component dark max-w-sm", p),
|
|
557
|
-
children: /* @__PURE__ */
|
|
567
|
+
children: /* @__PURE__ */ J(f, {
|
|
558
568
|
gap: "lg",
|
|
559
569
|
className: "giftcard-dark--body",
|
|
560
570
|
children: [
|
|
561
|
-
/* @__PURE__ */
|
|
571
|
+
/* @__PURE__ */ J(f, {
|
|
562
572
|
direction: "horizontal",
|
|
563
573
|
justify: "between",
|
|
564
574
|
align: "center",
|
|
565
575
|
gap: "md",
|
|
566
576
|
wrap: !1,
|
|
567
|
-
children: [/* @__PURE__ */
|
|
577
|
+
children: [/* @__PURE__ */ q(o, {
|
|
568
578
|
tag: "span",
|
|
569
579
|
className: "text-inverse-muted",
|
|
570
580
|
children: h.giftCard
|
|
571
|
-
}), /* @__PURE__ */
|
|
581
|
+
}), /* @__PURE__ */ q(I, {
|
|
572
582
|
tone: v,
|
|
573
583
|
className: "shrink-0",
|
|
574
584
|
children: g
|
|
575
585
|
})]
|
|
576
586
|
}),
|
|
577
|
-
/* @__PURE__ */
|
|
587
|
+
/* @__PURE__ */ J("div", {
|
|
578
588
|
className: "flex items-baseline gap-space-md",
|
|
579
|
-
children: [/* @__PURE__ */
|
|
589
|
+
children: [/* @__PURE__ */ q(c, {
|
|
580
590
|
tag: "h2",
|
|
581
591
|
size: "2xl",
|
|
582
592
|
className: "tabular-nums text-inverse-foreground",
|
|
583
593
|
children: b
|
|
584
|
-
}), !!y && /* @__PURE__ */
|
|
594
|
+
}), !!y && /* @__PURE__ */ q(D, {
|
|
585
595
|
className: "line-through tabular-nums text-inverse-disabled",
|
|
586
596
|
children: t
|
|
587
597
|
})]
|
|
588
598
|
}),
|
|
589
|
-
/* @__PURE__ */
|
|
590
|
-
className: "giftcard-dark--code rounded-
|
|
591
|
-
children: /* @__PURE__ */
|
|
599
|
+
/* @__PURE__ */ q("div", {
|
|
600
|
+
className: "giftcard-dark--code rounded-radius border border-inverse-border bg-inverse-surface p-surface-xs",
|
|
601
|
+
children: /* @__PURE__ */ J(f, {
|
|
592
602
|
direction: "horizontal",
|
|
593
603
|
align: "center",
|
|
594
604
|
gap: "md",
|
|
595
|
-
children: [/* @__PURE__ */
|
|
605
|
+
children: [/* @__PURE__ */ q(A, {
|
|
596
606
|
className: "flex-1 tracking-[0.15em] text-inverse-foreground",
|
|
597
607
|
children: e
|
|
598
|
-
}), /* @__PURE__ */
|
|
608
|
+
}), /* @__PURE__ */ q(gt, {
|
|
599
609
|
code: e,
|
|
600
610
|
strings: h,
|
|
601
611
|
inverse: !0
|
|
602
612
|
})]
|
|
603
613
|
})
|
|
604
614
|
}),
|
|
605
|
-
/* @__PURE__ */
|
|
615
|
+
/* @__PURE__ */ q(G, {
|
|
606
616
|
items: x,
|
|
607
617
|
columns: 1,
|
|
608
618
|
className: "[&_.metadata-list--label]:text-inverse-muted [&_.metadata-list--value]:text-inverse-foreground"
|
|
609
619
|
}),
|
|
610
|
-
!!d && /* @__PURE__ */
|
|
620
|
+
!!d && /* @__PURE__ */ q(i, {
|
|
611
621
|
tone: "neutral",
|
|
612
622
|
buttonStyle: "solid",
|
|
613
623
|
fullWidth: !0,
|
|
@@ -618,11 +628,11 @@ function vt({ code: e, amount: t, remainingAmount: a, status: s, recipientName:
|
|
|
618
628
|
})
|
|
619
629
|
});
|
|
620
630
|
}
|
|
621
|
-
|
|
631
|
+
_t.displayName = "GiftcardCardDark";
|
|
622
632
|
//#endregion
|
|
623
633
|
//#region src/components/blocks/commerce/giftcard-card/partials/giftcard-full.tsx
|
|
624
|
-
function
|
|
625
|
-
let S = n(
|
|
634
|
+
function vt({ code: e, amount: t, remainingAmount: a, status: l, recipientName: u, senderName: d, message: p, expiresAt: m, createdAt: h, template: g, onView: _, gradient: v = "purple", pattern: y = "none", className: b, strings: x }) {
|
|
635
|
+
let S = n(Z, x), C = S.status[l], w = lt[l], T = !!a && a !== t, E = T ? a : t, O = [
|
|
626
636
|
...u ? [{
|
|
627
637
|
label: S.to,
|
|
628
638
|
value: u
|
|
@@ -636,38 +646,38 @@ function yt({ code: e, amount: t, remainingAmount: a, status: l, recipientName:
|
|
|
636
646
|
value: m
|
|
637
647
|
}] : []
|
|
638
648
|
];
|
|
639
|
-
return /* @__PURE__ */
|
|
649
|
+
return /* @__PURE__ */ J("div", {
|
|
640
650
|
className: r("giftcard-card--component w-full max-w-sm transition-shadow", "hover:shadow-md", b),
|
|
641
|
-
children: [/* @__PURE__ */
|
|
642
|
-
className: r("relative overflow-hidden rounded-t-
|
|
651
|
+
children: [/* @__PURE__ */ J("div", {
|
|
652
|
+
className: r("relative overflow-hidden rounded-t-surface bg-linear-to-br p-surface", dt[v].card),
|
|
643
653
|
children: [
|
|
644
|
-
/* @__PURE__ */
|
|
654
|
+
/* @__PURE__ */ q("div", {
|
|
645
655
|
"aria-hidden": !0,
|
|
646
|
-
className: r("absolute inset-x-0 top-0 z-10 h-1 bg-gradient-to-r",
|
|
656
|
+
className: r("absolute inset-x-0 top-0 z-10 h-1 bg-gradient-to-r", dt[v].strip)
|
|
647
657
|
}),
|
|
648
|
-
y === "circles" && /* @__PURE__ */
|
|
658
|
+
y === "circles" && /* @__PURE__ */ J(Ae, { children: [/* @__PURE__ */ q("div", {
|
|
649
659
|
className: "absolute -top-8 -right-8 h-32 w-32 rounded-full bg-inverse-decoration",
|
|
650
660
|
"aria-hidden": "true"
|
|
651
|
-
}), /* @__PURE__ */
|
|
661
|
+
}), /* @__PURE__ */ q("div", {
|
|
652
662
|
className: "absolute -bottom-4 -left-4 h-20 w-20 rounded-full bg-inverse-decoration",
|
|
653
663
|
"aria-hidden": "true"
|
|
654
664
|
})] }),
|
|
655
|
-
y === "waves" && /* @__PURE__ */
|
|
665
|
+
y === "waves" && /* @__PURE__ */ J("svg", {
|
|
656
666
|
className: "absolute inset-0 h-full w-full opacity-5",
|
|
657
667
|
viewBox: "0 0 400 200",
|
|
658
668
|
preserveAspectRatio: "none",
|
|
659
669
|
"aria-hidden": "true",
|
|
660
|
-
children: [/* @__PURE__ */
|
|
670
|
+
children: [/* @__PURE__ */ q("path", {
|
|
661
671
|
d: "M0 80 C100 20, 200 140, 400 60 L400 200 L0 200 Z",
|
|
662
672
|
className: "fill-inverse-foreground"
|
|
663
|
-
}), /* @__PURE__ */
|
|
673
|
+
}), /* @__PURE__ */ q("path", {
|
|
664
674
|
d: "M0 120 C120 60, 280 180, 400 100 L400 200 L0 200 Z",
|
|
665
675
|
className: "fill-inverse-foreground"
|
|
666
676
|
})]
|
|
667
677
|
}),
|
|
668
|
-
/* @__PURE__ */
|
|
678
|
+
/* @__PURE__ */ q("div", {
|
|
669
679
|
className: "absolute top-4 right-4 z-10",
|
|
670
|
-
children: /* @__PURE__ */
|
|
680
|
+
children: /* @__PURE__ */ q(I, {
|
|
671
681
|
tone: w,
|
|
672
682
|
inline: !0,
|
|
673
683
|
dot: !0,
|
|
@@ -676,46 +686,46 @@ function yt({ code: e, amount: t, remainingAmount: a, status: l, recipientName:
|
|
|
676
686
|
children: C
|
|
677
687
|
})
|
|
678
688
|
}),
|
|
679
|
-
/* @__PURE__ */
|
|
689
|
+
/* @__PURE__ */ J(f, {
|
|
680
690
|
gap: "xl",
|
|
681
691
|
className: "relative z-10",
|
|
682
692
|
children: [
|
|
683
|
-
/* @__PURE__ */
|
|
693
|
+
/* @__PURE__ */ q(o, {
|
|
684
694
|
weight: "medium",
|
|
685
695
|
className: "text-inverse-muted",
|
|
686
696
|
children: S.giftCard
|
|
687
697
|
}),
|
|
688
|
-
/* @__PURE__ */
|
|
698
|
+
/* @__PURE__ */ J(f, {
|
|
689
699
|
gap: "dense",
|
|
690
|
-
children: [/* @__PURE__ */
|
|
700
|
+
children: [/* @__PURE__ */ q(s, {
|
|
691
701
|
tone: "inverse",
|
|
692
702
|
children: S.balance
|
|
693
|
-
}), /* @__PURE__ */
|
|
703
|
+
}), /* @__PURE__ */ J(f, {
|
|
694
704
|
direction: "horizontal",
|
|
695
705
|
align: "baseline",
|
|
696
706
|
gap: "lg",
|
|
697
|
-
children: [/* @__PURE__ */
|
|
707
|
+
children: [/* @__PURE__ */ q(c, {
|
|
698
708
|
tag: "h2",
|
|
699
709
|
size: "2xl",
|
|
700
710
|
className: "text-inverse-foreground tabular-nums drop-shadow-sm",
|
|
701
|
-
children:
|
|
702
|
-
}), !!
|
|
711
|
+
children: E
|
|
712
|
+
}), !!T && /* @__PURE__ */ q(D, {
|
|
703
713
|
className: "line-through tabular-nums text-inverse-disabled",
|
|
704
714
|
children: t
|
|
705
715
|
})]
|
|
706
716
|
})]
|
|
707
717
|
}),
|
|
708
|
-
/* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ q("div", {
|
|
709
719
|
className: r("giftcard-full--code", "rounded-radius p-surface-xs", "bg-inverse-surface", "border border-inverse-border", "shadow-sm"),
|
|
710
|
-
children: /* @__PURE__ */
|
|
720
|
+
children: /* @__PURE__ */ J(f, {
|
|
711
721
|
direction: "horizontal",
|
|
712
722
|
align: "center",
|
|
713
723
|
gap: "md",
|
|
714
|
-
children: [/* @__PURE__ */
|
|
724
|
+
children: [/* @__PURE__ */ q(A, {
|
|
715
725
|
weight: "semibold",
|
|
716
726
|
className: "flex-1 tracking-[0.2em] text-inverse-foreground",
|
|
717
727
|
children: e
|
|
718
|
-
}), /* @__PURE__ */
|
|
728
|
+
}), /* @__PURE__ */ q(gt, {
|
|
719
729
|
code: e,
|
|
720
730
|
strings: S,
|
|
721
731
|
inverse: !0
|
|
@@ -725,15 +735,15 @@ function yt({ code: e, amount: t, remainingAmount: a, status: l, recipientName:
|
|
|
725
735
|
]
|
|
726
736
|
})
|
|
727
737
|
]
|
|
728
|
-
}), /* @__PURE__ */
|
|
729
|
-
className: "box-border rounded-b-
|
|
730
|
-
children: /* @__PURE__ */
|
|
738
|
+
}), /* @__PURE__ */ q("div", {
|
|
739
|
+
className: "box-border rounded-b-surface bg-card text-card-foreground p-surface shadow-sm border border-t-0 border-border",
|
|
740
|
+
children: /* @__PURE__ */ J(f, {
|
|
731
741
|
gap: "xl",
|
|
732
742
|
children: [
|
|
733
|
-
!!p && /* @__PURE__ */
|
|
743
|
+
!!p && /* @__PURE__ */ J(f, {
|
|
734
744
|
gap: "normal",
|
|
735
745
|
className: "giftcard-full--message",
|
|
736
|
-
children: [/* @__PURE__ */
|
|
746
|
+
children: [/* @__PURE__ */ q(s, { children: S.personalMessage }), /* @__PURE__ */ J(o, {
|
|
737
747
|
type: "secondary",
|
|
738
748
|
lineHeight: "relaxed",
|
|
739
749
|
className: "italic",
|
|
@@ -744,15 +754,15 @@ function yt({ code: e, amount: t, remainingAmount: a, status: l, recipientName:
|
|
|
744
754
|
]
|
|
745
755
|
})]
|
|
746
756
|
}),
|
|
747
|
-
/* @__PURE__ */
|
|
757
|
+
/* @__PURE__ */ q(G, {
|
|
748
758
|
adaptTo: "container",
|
|
749
|
-
items:
|
|
759
|
+
items: O,
|
|
750
760
|
columns: {
|
|
751
761
|
base: 1,
|
|
752
762
|
sm: 2
|
|
753
763
|
}
|
|
754
764
|
}),
|
|
755
|
-
!!_ && /* @__PURE__ */
|
|
765
|
+
!!_ && /* @__PURE__ */ q(i, {
|
|
756
766
|
tone: "secondary",
|
|
757
767
|
buttonStyle: "outline",
|
|
758
768
|
fullWidth: !0,
|
|
@@ -764,90 +774,90 @@ function yt({ code: e, amount: t, remainingAmount: a, status: l, recipientName:
|
|
|
764
774
|
})]
|
|
765
775
|
});
|
|
766
776
|
}
|
|
767
|
-
|
|
777
|
+
vt.displayName = "GiftcardFull";
|
|
768
778
|
//#endregion
|
|
769
779
|
//#region src/components/blocks/commerce/giftcard-card/partials/giftcard-illustrated.tsx
|
|
770
|
-
function
|
|
771
|
-
let v = n(
|
|
780
|
+
function yt({ code: e, amount: t, remainingAmount: a, status: l, recipientName: u, expiresAt: d, onView: p, headerColor: m = "green", className: h, strings: g }) {
|
|
781
|
+
let v = n(Z, g), y = v.status[l], b = lt[l], x = !!a && a !== t, S = x ? a : t, C = [...u ? [{
|
|
772
782
|
label: v.recipient,
|
|
773
783
|
value: u
|
|
774
784
|
}] : [], ...d ? [{
|
|
775
785
|
label: v.expires,
|
|
776
786
|
value: d
|
|
777
787
|
}] : []];
|
|
778
|
-
return /* @__PURE__ */
|
|
788
|
+
return /* @__PURE__ */ J(_, {
|
|
779
789
|
surface: "card",
|
|
780
790
|
padding: "none",
|
|
781
791
|
className: r("giftcard-card--component giftcard-illustrated--component max-w-sm", h),
|
|
782
|
-
children: [/* @__PURE__ */
|
|
792
|
+
children: [/* @__PURE__ */ J("div", {
|
|
783
793
|
className: "relative flex h-16 items-center justify-between overflow-hidden bg-inverse-background bg-gradient-to-br from-inverse-background via-inverse-surface to-inverse-background px-surface",
|
|
784
794
|
children: [
|
|
785
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ q("div", {
|
|
786
796
|
"aria-hidden": !0,
|
|
787
|
-
className: r("absolute inset-x-0 top-0 h-1 bg-gradient-to-r",
|
|
797
|
+
className: r("absolute inset-x-0 top-0 h-1 bg-gradient-to-r", mt[m])
|
|
788
798
|
}),
|
|
789
|
-
/* @__PURE__ */
|
|
799
|
+
/* @__PURE__ */ q("div", {
|
|
790
800
|
className: "absolute inset-0 opacity-80",
|
|
791
801
|
style: { backgroundImage: "repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in oklch, var(--inverse-foreground) 3%, transparent) 10px 20px)" },
|
|
792
802
|
"aria-hidden": "true"
|
|
793
803
|
}),
|
|
794
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ q(s, {
|
|
795
805
|
tone: "inverse",
|
|
796
806
|
className: "relative",
|
|
797
807
|
children: v.giftCard
|
|
798
808
|
})
|
|
799
809
|
]
|
|
800
|
-
}), /* @__PURE__ */
|
|
810
|
+
}), /* @__PURE__ */ J(f, {
|
|
801
811
|
gap: "lg",
|
|
802
812
|
className: "giftcard-illustrated--body p-surface",
|
|
803
813
|
children: [
|
|
804
|
-
/* @__PURE__ */
|
|
814
|
+
/* @__PURE__ */ J("div", {
|
|
805
815
|
className: "flex items-start justify-between",
|
|
806
|
-
children: [/* @__PURE__ */
|
|
816
|
+
children: [/* @__PURE__ */ J(f, {
|
|
807
817
|
gap: "dense",
|
|
808
|
-
children: [/* @__PURE__ */
|
|
818
|
+
children: [/* @__PURE__ */ J("div", {
|
|
809
819
|
className: "flex items-baseline gap-space-md",
|
|
810
|
-
children: [/* @__PURE__ */
|
|
820
|
+
children: [/* @__PURE__ */ q(c, {
|
|
811
821
|
tag: "h2",
|
|
812
822
|
size: "2xl",
|
|
813
823
|
className: "tabular-nums text-inherit",
|
|
814
824
|
children: S
|
|
815
|
-
}), !!x && /* @__PURE__ */
|
|
825
|
+
}), !!x && /* @__PURE__ */ q(D, {
|
|
816
826
|
className: "line-through tabular-nums text-muted-foreground",
|
|
817
827
|
children: t
|
|
818
828
|
})]
|
|
819
|
-
}), /* @__PURE__ */
|
|
829
|
+
}), /* @__PURE__ */ q(o, {
|
|
820
830
|
size: "xs",
|
|
821
831
|
type: "secondary",
|
|
822
832
|
children: v.balance
|
|
823
833
|
})]
|
|
824
|
-
}), /* @__PURE__ */
|
|
834
|
+
}), /* @__PURE__ */ q(I, {
|
|
825
835
|
tone: b,
|
|
826
836
|
children: y
|
|
827
837
|
})]
|
|
828
838
|
}),
|
|
829
|
-
/* @__PURE__ */
|
|
830
|
-
className: "giftcard-illustrated--code rounded-
|
|
831
|
-
children: /* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ q("div", {
|
|
840
|
+
className: "giftcard-illustrated--code rounded-radius border border-border bg-muted/30 p-surface-xs",
|
|
841
|
+
children: /* @__PURE__ */ J(f, {
|
|
832
842
|
direction: "horizontal",
|
|
833
843
|
align: "center",
|
|
834
844
|
gap: "md",
|
|
835
|
-
children: [/* @__PURE__ */
|
|
845
|
+
children: [/* @__PURE__ */ q(A, {
|
|
836
846
|
type: "inherit",
|
|
837
847
|
className: "flex-1 tracking-[0.15em]",
|
|
838
848
|
children: e
|
|
839
|
-
}), /* @__PURE__ */
|
|
849
|
+
}), /* @__PURE__ */ q(gt, {
|
|
840
850
|
code: e,
|
|
841
851
|
strings: v
|
|
842
852
|
})]
|
|
843
853
|
})
|
|
844
854
|
}),
|
|
845
|
-
/* @__PURE__ */
|
|
855
|
+
/* @__PURE__ */ q(G, {
|
|
846
856
|
adaptTo: "container",
|
|
847
857
|
items: C,
|
|
848
858
|
columns: 2
|
|
849
859
|
}),
|
|
850
|
-
!!p && /* @__PURE__ */
|
|
860
|
+
!!p && /* @__PURE__ */ q(i, {
|
|
851
861
|
tone: "secondary",
|
|
852
862
|
buttonStyle: "outline",
|
|
853
863
|
fullWidth: !0,
|
|
@@ -858,84 +868,84 @@ function bt({ code: e, amount: t, remainingAmount: a, status: l, recipientName:
|
|
|
858
868
|
})]
|
|
859
869
|
});
|
|
860
870
|
}
|
|
861
|
-
|
|
871
|
+
yt.displayName = "GiftcardCardIllustrated";
|
|
862
872
|
//#endregion
|
|
863
873
|
//#region src/components/blocks/commerce/giftcard-card/partials/giftcard-minimal.tsx
|
|
864
|
-
function
|
|
865
|
-
let g = n(
|
|
874
|
+
function bt({ code: e, amount: t, remainingAmount: i, status: s, recipientName: l, expiresAt: u, onView: d, color: p = "green", className: m, strings: h }) {
|
|
875
|
+
let g = n(Z, h), v = g.status[s], y = lt[s], b = !!i && i !== t, x = b ? i : t, S = pt[p], C = [...l ? [{
|
|
866
876
|
label: g.recipient,
|
|
867
877
|
value: l
|
|
868
878
|
}] : [], ...u ? [{
|
|
869
879
|
label: g.expires,
|
|
870
880
|
value: u
|
|
871
881
|
}] : []];
|
|
872
|
-
return /* @__PURE__ */
|
|
882
|
+
return /* @__PURE__ */ q(_, {
|
|
873
883
|
surface: "card",
|
|
874
884
|
className: r("giftcard-card--component giftcard-minimal--component max-w-sm", m),
|
|
875
|
-
children: /* @__PURE__ */
|
|
885
|
+
children: /* @__PURE__ */ J(f, {
|
|
876
886
|
gap: "lg",
|
|
877
887
|
className: "giftcard-minimal--body",
|
|
878
888
|
children: [
|
|
879
|
-
/* @__PURE__ */
|
|
889
|
+
/* @__PURE__ */ q("div", {
|
|
880
890
|
"aria-hidden": "true",
|
|
881
891
|
className: r("h-1 w-12 rounded-radius-sm", S.line)
|
|
882
892
|
}),
|
|
883
|
-
/* @__PURE__ */
|
|
893
|
+
/* @__PURE__ */ J(f, {
|
|
884
894
|
direction: "horizontal",
|
|
885
895
|
justify: "between",
|
|
886
896
|
align: "center",
|
|
887
897
|
gap: "md",
|
|
888
898
|
wrap: !1,
|
|
889
|
-
children: [/* @__PURE__ */
|
|
899
|
+
children: [/* @__PURE__ */ q(o, {
|
|
890
900
|
tag: "span",
|
|
891
901
|
type: "secondary",
|
|
892
902
|
children: g.giftCard
|
|
893
|
-
}), /* @__PURE__ */
|
|
903
|
+
}), /* @__PURE__ */ q(I, {
|
|
894
904
|
tone: y,
|
|
895
905
|
size: "sm",
|
|
896
906
|
className: "shrink-0",
|
|
897
907
|
children: v
|
|
898
908
|
})]
|
|
899
909
|
}),
|
|
900
|
-
/* @__PURE__ */
|
|
910
|
+
/* @__PURE__ */ J("div", {
|
|
901
911
|
className: "flex items-baseline gap-space-md",
|
|
902
|
-
children: [/* @__PURE__ */
|
|
912
|
+
children: [/* @__PURE__ */ q(c, {
|
|
903
913
|
tag: "h2",
|
|
904
914
|
size: "2xl",
|
|
905
915
|
className: "tabular-nums text-inherit",
|
|
906
916
|
children: x
|
|
907
|
-
}), !!b && /* @__PURE__ */
|
|
917
|
+
}), !!b && /* @__PURE__ */ q(D, {
|
|
908
918
|
className: "line-through tabular-nums text-muted-foreground",
|
|
909
919
|
children: t
|
|
910
920
|
})]
|
|
911
921
|
}),
|
|
912
|
-
/* @__PURE__ */
|
|
913
|
-
className: "giftcard-minimal--code rounded-
|
|
914
|
-
children: /* @__PURE__ */
|
|
922
|
+
/* @__PURE__ */ q("div", {
|
|
923
|
+
className: "giftcard-minimal--code rounded-radius border border-border bg-muted/30 p-surface-xs",
|
|
924
|
+
children: /* @__PURE__ */ J(f, {
|
|
915
925
|
direction: "horizontal",
|
|
916
926
|
align: "center",
|
|
917
927
|
gap: "sm",
|
|
918
|
-
children: [/* @__PURE__ */
|
|
928
|
+
children: [/* @__PURE__ */ q(A, {
|
|
919
929
|
type: "inherit",
|
|
920
930
|
className: "flex-1 tracking-[0.15em]",
|
|
921
931
|
children: e
|
|
922
|
-
}), /* @__PURE__ */
|
|
932
|
+
}), /* @__PURE__ */ q(gt, {
|
|
923
933
|
code: e,
|
|
924
934
|
strings: g,
|
|
925
935
|
className: "shrink-0"
|
|
926
936
|
})]
|
|
927
937
|
})
|
|
928
938
|
}),
|
|
929
|
-
/* @__PURE__ */
|
|
939
|
+
/* @__PURE__ */ q(G, {
|
|
930
940
|
items: C,
|
|
931
941
|
columns: 1,
|
|
932
942
|
density: "compact",
|
|
933
943
|
className: "[&_.metadata-list--grid]:gap-space-sm"
|
|
934
944
|
}),
|
|
935
|
-
!!d && /* @__PURE__ */
|
|
945
|
+
!!d && /* @__PURE__ */ J(a, {
|
|
936
946
|
onClick: d,
|
|
937
947
|
className: "group/link self-start",
|
|
938
|
-
children: [g.viewDetails, /* @__PURE__ */
|
|
948
|
+
children: [g.viewDetails, /* @__PURE__ */ q(je, {
|
|
939
949
|
"aria-hidden": "true",
|
|
940
950
|
className: "ml-1 size-icon-sm transition-transform group-hover/link:translate-x-0.5"
|
|
941
951
|
})]
|
|
@@ -944,210 +954,210 @@ function xt({ code: e, amount: t, remainingAmount: i, status: s, recipientName:
|
|
|
944
954
|
})
|
|
945
955
|
});
|
|
946
956
|
}
|
|
947
|
-
|
|
957
|
+
bt.displayName = "GiftcardCardMinimal";
|
|
948
958
|
//#endregion
|
|
949
959
|
//#region src/components/blocks/commerce/giftcard-card/giftcard-card.tsx
|
|
950
|
-
function
|
|
960
|
+
function xt(e) {
|
|
951
961
|
let t = r("giftcard-card--component", e.className);
|
|
952
962
|
switch (e.variant) {
|
|
953
|
-
case "compact": return /* @__PURE__ */
|
|
963
|
+
case "compact": return /* @__PURE__ */ q(ht, {
|
|
954
964
|
...e,
|
|
955
965
|
className: t
|
|
956
966
|
});
|
|
957
|
-
case "minimal": return /* @__PURE__ */
|
|
967
|
+
case "minimal": return /* @__PURE__ */ q(bt, {
|
|
958
968
|
...e,
|
|
959
969
|
className: t
|
|
960
970
|
});
|
|
961
|
-
case "dark": return /* @__PURE__ */
|
|
971
|
+
case "dark": return /* @__PURE__ */ q(_t, {
|
|
962
972
|
...e,
|
|
963
973
|
className: t
|
|
964
974
|
});
|
|
965
|
-
case "illustrated": return /* @__PURE__ */
|
|
975
|
+
case "illustrated": return /* @__PURE__ */ q(yt, {
|
|
966
976
|
...e,
|
|
967
977
|
className: t
|
|
968
978
|
});
|
|
969
|
-
default: return /* @__PURE__ */
|
|
979
|
+
default: return /* @__PURE__ */ q(vt, {
|
|
970
980
|
...e,
|
|
971
981
|
className: t
|
|
972
982
|
});
|
|
973
983
|
}
|
|
974
984
|
}
|
|
975
|
-
|
|
985
|
+
xt.displayName = "GiftcardCard";
|
|
976
986
|
//#endregion
|
|
977
987
|
//#region src/components/blocks/commerce/vendor-profile/types.ts
|
|
978
|
-
var
|
|
988
|
+
var St = {
|
|
979
989
|
tabOverview: "Overview",
|
|
980
990
|
tabStats: "Stats",
|
|
981
991
|
totalEarnings: "Total earnings",
|
|
982
992
|
message: "Message",
|
|
983
993
|
hire: "Hire vendor",
|
|
984
994
|
verifiedAriaLabel: "Verified"
|
|
985
|
-
},
|
|
995
|
+
}, Ct = {
|
|
986
996
|
secondary: "secondary",
|
|
987
997
|
success: "success",
|
|
988
998
|
warning: "warning",
|
|
989
999
|
destructive: "destructive"
|
|
990
1000
|
};
|
|
991
|
-
function
|
|
992
|
-
return m(e) ? /* @__PURE__ */
|
|
993
|
-
tone:
|
|
1001
|
+
function wt({ children: e, tone: t }) {
|
|
1002
|
+
return m(e) ? /* @__PURE__ */ q(I, {
|
|
1003
|
+
tone: Ct[t ?? "secondary"],
|
|
994
1004
|
className: "vendor-profile--change shrink-0 tabular-nums",
|
|
995
1005
|
children: e
|
|
996
1006
|
}) : null;
|
|
997
1007
|
}
|
|
998
|
-
var
|
|
999
|
-
let k = n(
|
|
1000
|
-
(e === "overview" || e === "stats") &&
|
|
1001
|
-
},
|
|
1008
|
+
var Tt = we(function({ name: e, initials: t, avatarUrl: a, role: o, verified: c = !1, earnings: l, earningsChange: u, earningsChangeTone: p, metrics: h = [], stats: g = [], view: v, defaultView: y = "overview", onViewChange: b, onMessage: x, onHire: C, surface: w, className: T, strings: E }, O) {
|
|
1009
|
+
let k = n(St, E), [A, j] = ke(y), N = v !== void 0, ee = m(l), te = ee || h.length > 0, P = g.length > 0, F = [...te ? ["overview"] : [], ...P ? ["stats"] : []], ae = N ? v : A, L = F.includes(ae) ? ae : F[0] ?? "overview", oe = F.length > 0, R = !!(x || C), se = (e) => {
|
|
1010
|
+
(e === "overview" || e === "stats") && F.includes(e) && (N || j(e), b?.(e));
|
|
1011
|
+
}, ce = /* @__PURE__ */ J(f, {
|
|
1002
1012
|
gap: "xl",
|
|
1003
1013
|
className: "vendor-profile--overview",
|
|
1004
|
-
children: [
|
|
1014
|
+
children: [ee && /* @__PURE__ */ J(f, {
|
|
1005
1015
|
gap: "normal",
|
|
1006
1016
|
className: "vendor-profile--earnings",
|
|
1007
|
-
children: [/* @__PURE__ */
|
|
1017
|
+
children: [/* @__PURE__ */ q(s, { children: k.totalEarnings }), /* @__PURE__ */ J(f, {
|
|
1008
1018
|
direction: "horizontal",
|
|
1009
1019
|
gap: "sm",
|
|
1010
1020
|
align: "baseline",
|
|
1011
|
-
children: [/* @__PURE__ */
|
|
1021
|
+
children: [/* @__PURE__ */ q(D, {
|
|
1012
1022
|
type: "inherit",
|
|
1013
1023
|
size: "base",
|
|
1014
1024
|
weight: "semibold",
|
|
1015
1025
|
className: "tabular-nums",
|
|
1016
1026
|
children: l
|
|
1017
|
-
}), /* @__PURE__ */
|
|
1027
|
+
}), /* @__PURE__ */ q(wt, {
|
|
1018
1028
|
tone: p,
|
|
1019
1029
|
children: u
|
|
1020
1030
|
})]
|
|
1021
1031
|
})]
|
|
1022
|
-
}), h.length > 0 && /* @__PURE__ */
|
|
1032
|
+
}), h.length > 0 && /* @__PURE__ */ q("div", {
|
|
1023
1033
|
className: "vendor-profile--metrics divide-y divide-border/60",
|
|
1024
|
-
children: h.map((e, t) => /* @__PURE__ */
|
|
1034
|
+
children: h.map((e, t) => /* @__PURE__ */ q(K, {
|
|
1025
1035
|
className: "py-row-y first:pt-0 last:pb-0",
|
|
1026
1036
|
label: e.label,
|
|
1027
1037
|
value: e.value,
|
|
1028
1038
|
valueWeight: "medium"
|
|
1029
1039
|
}, e.id ?? t))
|
|
1030
1040
|
})]
|
|
1031
|
-
}),
|
|
1041
|
+
}), le = /* @__PURE__ */ q(d, {
|
|
1032
1042
|
columns: {
|
|
1033
1043
|
base: 1,
|
|
1034
1044
|
sm: 2
|
|
1035
1045
|
},
|
|
1036
1046
|
gap: "xl",
|
|
1037
1047
|
className: "vendor-profile--stats",
|
|
1038
|
-
children: g.map((e, t) => /* @__PURE__ */
|
|
1048
|
+
children: g.map((e, t) => /* @__PURE__ */ J(f, {
|
|
1039
1049
|
gap: "normal",
|
|
1040
1050
|
className: "vendor-profile--stat",
|
|
1041
|
-
children: [/* @__PURE__ */
|
|
1051
|
+
children: [/* @__PURE__ */ q(s, {
|
|
1042
1052
|
className: "truncate",
|
|
1043
1053
|
children: e.label
|
|
1044
|
-
}), /* @__PURE__ */
|
|
1054
|
+
}), /* @__PURE__ */ J(f, {
|
|
1045
1055
|
direction: "horizontal",
|
|
1046
1056
|
gap: "sm",
|
|
1047
1057
|
align: "baseline",
|
|
1048
|
-
children: [/* @__PURE__ */
|
|
1058
|
+
children: [/* @__PURE__ */ q(D, {
|
|
1049
1059
|
type: "inherit",
|
|
1050
1060
|
weight: "semibold",
|
|
1051
1061
|
className: "min-w-0 tabular-nums",
|
|
1052
1062
|
children: e.value
|
|
1053
|
-
}), /* @__PURE__ */
|
|
1063
|
+
}), /* @__PURE__ */ q(wt, {
|
|
1054
1064
|
tone: e.changeTone,
|
|
1055
1065
|
children: e.change
|
|
1056
1066
|
})]
|
|
1057
1067
|
})]
|
|
1058
1068
|
}, e.id ?? t))
|
|
1059
|
-
}),
|
|
1060
|
-
value:
|
|
1061
|
-
onValueChange:
|
|
1069
|
+
}), ue = F.length > 1 ? /* @__PURE__ */ J(be, {
|
|
1070
|
+
value: L,
|
|
1071
|
+
onValueChange: se,
|
|
1062
1072
|
className: "vendor-profile--tabs gap-space-lg",
|
|
1063
1073
|
children: [
|
|
1064
|
-
/* @__PURE__ */
|
|
1065
|
-
className: "grid h-auto w-full grid-cols-2 rounded-
|
|
1066
|
-
children: [/* @__PURE__ */
|
|
1074
|
+
/* @__PURE__ */ J(ye, {
|
|
1075
|
+
className: "grid h-auto w-full grid-cols-2 rounded-radius p-space-xs",
|
|
1076
|
+
children: [/* @__PURE__ */ q(_e, {
|
|
1067
1077
|
value: "overview",
|
|
1068
|
-
className: "h-action-sm rounded-
|
|
1078
|
+
className: "h-action-sm rounded-radius px-control-sm text-pxs",
|
|
1069
1079
|
children: k.tabOverview
|
|
1070
|
-
}), /* @__PURE__ */
|
|
1080
|
+
}), /* @__PURE__ */ q(_e, {
|
|
1071
1081
|
value: "stats",
|
|
1072
|
-
className: "h-action-sm rounded-
|
|
1082
|
+
className: "h-action-sm rounded-radius px-control-sm text-pxs",
|
|
1073
1083
|
children: k.tabStats
|
|
1074
1084
|
})]
|
|
1075
1085
|
}),
|
|
1076
|
-
/* @__PURE__ */
|
|
1086
|
+
/* @__PURE__ */ q(ve, {
|
|
1077
1087
|
value: "overview",
|
|
1078
1088
|
className: "mt-0",
|
|
1079
|
-
children:
|
|
1089
|
+
children: ce
|
|
1080
1090
|
}),
|
|
1081
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ q(ve, {
|
|
1082
1092
|
value: "stats",
|
|
1083
1093
|
className: "mt-0",
|
|
1084
|
-
children:
|
|
1094
|
+
children: le
|
|
1085
1095
|
})
|
|
1086
1096
|
]
|
|
1087
|
-
}) :
|
|
1088
|
-
return /* @__PURE__ */
|
|
1097
|
+
}) : L === "stats" ? le : ce;
|
|
1098
|
+
return /* @__PURE__ */ q(_, {
|
|
1089
1099
|
ref: O,
|
|
1090
1100
|
surface: w,
|
|
1091
1101
|
padding: w === "flat" ? "none" : "md",
|
|
1092
1102
|
gap: "xl",
|
|
1093
|
-
headerStart: /* @__PURE__ */
|
|
1103
|
+
headerStart: /* @__PURE__ */ J(U, {
|
|
1094
1104
|
className: "vendor-profile--identity flex-nowrap py-0",
|
|
1095
|
-
children: [/* @__PURE__ */
|
|
1105
|
+
children: [/* @__PURE__ */ q(B, {
|
|
1096
1106
|
variant: "avatar",
|
|
1097
|
-
children: /* @__PURE__ */
|
|
1107
|
+
children: /* @__PURE__ */ J(re, { children: [!!a && /* @__PURE__ */ q(ie, {
|
|
1098
1108
|
src: a,
|
|
1099
1109
|
alt: e
|
|
1100
|
-
}), /* @__PURE__ */
|
|
1110
|
+
}), /* @__PURE__ */ q(ne, { children: t ?? /* @__PURE__ */ q(M, {
|
|
1101
1111
|
value: e,
|
|
1102
1112
|
strategy: "first-words"
|
|
1103
1113
|
}) })] })
|
|
1104
|
-
}), /* @__PURE__ */
|
|
1114
|
+
}), /* @__PURE__ */ J(H, { children: [/* @__PURE__ */ J(f, {
|
|
1105
1115
|
direction: "horizontal",
|
|
1106
1116
|
gap: "sm",
|
|
1107
1117
|
wrap: !1,
|
|
1108
1118
|
className: "min-w-0",
|
|
1109
|
-
children: [/* @__PURE__ */ W
|
|
1119
|
+
children: [/* @__PURE__ */ q(W, {
|
|
1110
1120
|
className: "min-w-0 truncate",
|
|
1111
1121
|
children: e
|
|
1112
|
-
}), !!c && /* @__PURE__ */
|
|
1122
|
+
}), !!c && /* @__PURE__ */ q(I, {
|
|
1113
1123
|
tone: "success",
|
|
1114
1124
|
className: "shrink-0",
|
|
1115
1125
|
children: k.verifiedAriaLabel
|
|
1116
1126
|
})]
|
|
1117
|
-
}), !!o && /* @__PURE__ */
|
|
1127
|
+
}), !!o && /* @__PURE__ */ q(V, {
|
|
1118
1128
|
clamp: 2,
|
|
1119
1129
|
children: o
|
|
1120
1130
|
})] })]
|
|
1121
1131
|
}),
|
|
1122
|
-
footerSlot:
|
|
1123
|
-
className: r("vendor-profile--actions flex flex-wrap",
|
|
1124
|
-
children: [!!
|
|
1132
|
+
footerSlot: R ? /* @__PURE__ */ J("div", {
|
|
1133
|
+
className: r("vendor-profile--actions flex flex-wrap", S.commands),
|
|
1134
|
+
children: [!!x && /* @__PURE__ */ q(i, {
|
|
1125
1135
|
type: "button",
|
|
1126
1136
|
tone: "secondary",
|
|
1127
1137
|
buttonStyle: "outline",
|
|
1128
1138
|
className: "min-w-0 flex-1",
|
|
1129
|
-
onClick:
|
|
1139
|
+
onClick: x,
|
|
1130
1140
|
children: k.message
|
|
1131
|
-
}), !!C && /* @__PURE__ */
|
|
1141
|
+
}), !!C && /* @__PURE__ */ J(i, {
|
|
1132
1142
|
type: "button",
|
|
1133
1143
|
tone: "primary",
|
|
1134
1144
|
className: "min-w-0 flex-1",
|
|
1135
1145
|
onClick: C,
|
|
1136
|
-
children: [k.hire, /* @__PURE__ */
|
|
1146
|
+
children: [k.hire, /* @__PURE__ */ q(Fe, {
|
|
1137
1147
|
className: "size-icon-sm",
|
|
1138
1148
|
"aria-hidden": "true"
|
|
1139
1149
|
})]
|
|
1140
1150
|
})]
|
|
1141
1151
|
}) : void 0,
|
|
1142
|
-
contentClassName: r(!
|
|
1143
|
-
className: r("vendor-profile--component",
|
|
1144
|
-
children:
|
|
1152
|
+
contentClassName: r(!oe && "hidden"),
|
|
1153
|
+
className: r("vendor-profile--component", T),
|
|
1154
|
+
children: oe ? ue : null
|
|
1145
1155
|
});
|
|
1146
1156
|
});
|
|
1147
|
-
|
|
1157
|
+
Tt.displayName = "VendorProfileCard";
|
|
1148
1158
|
//#endregion
|
|
1149
1159
|
//#region src/components/blocks/commerce/inventory-level/inventory-level.strings.ts
|
|
1150
|
-
var
|
|
1160
|
+
var Et = {
|
|
1151
1161
|
statusInStock: "In stock",
|
|
1152
1162
|
statusLowStock: "Low stock",
|
|
1153
1163
|
statusCritical: "Critical",
|
|
@@ -1158,84 +1168,84 @@ var Dt = {
|
|
|
1158
1168
|
};
|
|
1159
1169
|
//#endregion
|
|
1160
1170
|
//#region src/components/blocks/commerce/inventory-level/inventory-level.tsx
|
|
1161
|
-
function
|
|
1162
|
-
let d = n(
|
|
1163
|
-
return /* @__PURE__ */
|
|
1171
|
+
function Dt({ productName: e, variant: t, stock: i, reorderLevel: a, maxStock: s, lastRestocked: c, className: l, strings: u }) {
|
|
1172
|
+
let d = n(Et, u), p = Ee(), m = i <= a, h = i <= a * .5, g = h ? "destructive" : m ? "warning" : "success", _ = h ? d.statusCritical : m ? d.statusLowStock : d.statusInStock;
|
|
1173
|
+
return /* @__PURE__ */ J(f, {
|
|
1164
1174
|
"data-component": "inventory-level",
|
|
1165
1175
|
"data-slot": "inventory-level",
|
|
1166
1176
|
gap: "xl",
|
|
1167
1177
|
className: r("inventory-level--component", l),
|
|
1168
1178
|
children: [
|
|
1169
|
-
/* @__PURE__ */
|
|
1179
|
+
/* @__PURE__ */ J(f, {
|
|
1170
1180
|
gap: "dense",
|
|
1171
1181
|
className: "inventory-level--product",
|
|
1172
|
-
children: [/* @__PURE__ */
|
|
1182
|
+
children: [/* @__PURE__ */ J(f, {
|
|
1173
1183
|
direction: "horizontal",
|
|
1174
1184
|
gap: "sm",
|
|
1175
1185
|
wrap: !1,
|
|
1176
1186
|
className: "min-w-0",
|
|
1177
|
-
children: [/* @__PURE__ */
|
|
1187
|
+
children: [/* @__PURE__ */ q(o, {
|
|
1178
1188
|
type: "inherit",
|
|
1179
1189
|
weight: "semibold",
|
|
1180
1190
|
className: "min-w-0 truncate",
|
|
1181
1191
|
children: e
|
|
1182
|
-
}), /* @__PURE__ */
|
|
1192
|
+
}), /* @__PURE__ */ q(I, {
|
|
1183
1193
|
tone: g,
|
|
1184
1194
|
className: "shrink-0",
|
|
1185
1195
|
children: _
|
|
1186
1196
|
})]
|
|
1187
|
-
}), !!t && /* @__PURE__ */
|
|
1197
|
+
}), !!t && /* @__PURE__ */ q(o, {
|
|
1188
1198
|
size: "xs",
|
|
1189
1199
|
type: "secondary",
|
|
1190
1200
|
className: "truncate",
|
|
1191
1201
|
children: `${d.variantLabel}: ${t}`
|
|
1192
1202
|
})]
|
|
1193
1203
|
}),
|
|
1194
|
-
/* @__PURE__ */
|
|
1204
|
+
/* @__PURE__ */ J(f, {
|
|
1195
1205
|
id: p,
|
|
1196
1206
|
gap: "dense",
|
|
1197
1207
|
className: "inventory-level--stock",
|
|
1198
|
-
children: [/* @__PURE__ */
|
|
1208
|
+
children: [/* @__PURE__ */ q(P, {
|
|
1199
1209
|
type: "inherit",
|
|
1200
1210
|
value: i,
|
|
1201
1211
|
weight: "semibold",
|
|
1202
1212
|
align: "left"
|
|
1203
|
-
}), /* @__PURE__ */
|
|
1213
|
+
}), /* @__PURE__ */ q(o, {
|
|
1204
1214
|
size: "xs",
|
|
1205
1215
|
type: "secondary",
|
|
1206
1216
|
children: d.unitsAvailable
|
|
1207
1217
|
})]
|
|
1208
1218
|
}),
|
|
1209
|
-
/* @__PURE__ */
|
|
1219
|
+
/* @__PURE__ */ J(f, {
|
|
1210
1220
|
gap: "md",
|
|
1211
1221
|
className: "inventory-level--gauge",
|
|
1212
|
-
children: [/* @__PURE__ */
|
|
1222
|
+
children: [/* @__PURE__ */ q(v, {
|
|
1213
1223
|
value: i,
|
|
1214
1224
|
max: s,
|
|
1215
1225
|
tone: g,
|
|
1216
1226
|
"aria-labelledby": p
|
|
1217
|
-
}), /* @__PURE__ */
|
|
1227
|
+
}), /* @__PURE__ */ J("div", {
|
|
1218
1228
|
className: "flex items-center justify-between",
|
|
1219
|
-
children: [/* @__PURE__ */
|
|
1229
|
+
children: [/* @__PURE__ */ J(o, {
|
|
1220
1230
|
size: "xs",
|
|
1221
1231
|
type: "secondary",
|
|
1222
1232
|
children: [
|
|
1223
1233
|
d.reorderAtLabel,
|
|
1224
1234
|
": ",
|
|
1225
|
-
/* @__PURE__ */
|
|
1235
|
+
/* @__PURE__ */ q(P, {
|
|
1226
1236
|
type: "inherit",
|
|
1227
1237
|
value: a,
|
|
1228
1238
|
weight: "medium",
|
|
1229
1239
|
align: "left"
|
|
1230
1240
|
})
|
|
1231
1241
|
]
|
|
1232
|
-
}), !!c && /* @__PURE__ */
|
|
1242
|
+
}), !!c && /* @__PURE__ */ J(o, {
|
|
1233
1243
|
size: "xs",
|
|
1234
1244
|
type: "secondary",
|
|
1235
1245
|
children: [
|
|
1236
1246
|
d.lastRestockedLabel,
|
|
1237
1247
|
": ",
|
|
1238
|
-
/* @__PURE__ */
|
|
1248
|
+
/* @__PURE__ */ q(k, {
|
|
1239
1249
|
size: "xs",
|
|
1240
1250
|
children: c
|
|
1241
1251
|
})
|
|
@@ -1246,10 +1256,10 @@ function Ot({ productName: e, variant: t, stock: i, reorderLevel: a, maxStock: s
|
|
|
1246
1256
|
]
|
|
1247
1257
|
});
|
|
1248
1258
|
}
|
|
1249
|
-
|
|
1259
|
+
Dt.displayName = "InventoryLevel";
|
|
1250
1260
|
//#endregion
|
|
1251
1261
|
//#region src/components/blocks/commerce/tax-breakdown/types.ts
|
|
1252
|
-
var
|
|
1262
|
+
var Ot = {
|
|
1253
1263
|
title: "Tax breakdown",
|
|
1254
1264
|
subtotal: "Subtotal",
|
|
1255
1265
|
totalTax: "Total tax",
|
|
@@ -1257,34 +1267,35 @@ var kt = {
|
|
|
1257
1267
|
};
|
|
1258
1268
|
//#endregion
|
|
1259
1269
|
//#region src/components/blocks/commerce/tax-breakdown/tax-breakdown.tsx
|
|
1260
|
-
function
|
|
1261
|
-
let
|
|
1262
|
-
return /* @__PURE__ */
|
|
1263
|
-
...
|
|
1264
|
-
surface:
|
|
1265
|
-
padding:
|
|
1266
|
-
|
|
1270
|
+
function kt({ subtotal: e, taxes: t, totalTax: i, total: a, className: o, strings: s, surface: c = "flat", padding: l = c === "flat" ? "none" : "md", headerDivider: u, ...d }) {
|
|
1271
|
+
let f = n(Ot, s);
|
|
1272
|
+
return /* @__PURE__ */ q(_, {
|
|
1273
|
+
...d,
|
|
1274
|
+
surface: c,
|
|
1275
|
+
padding: l,
|
|
1276
|
+
headerDivider: u,
|
|
1277
|
+
title: f.title,
|
|
1267
1278
|
"data-slot": "tax-breakdown",
|
|
1268
1279
|
className: r("tax-breakdown--component w-full", o),
|
|
1269
|
-
children: /* @__PURE__ */
|
|
1280
|
+
children: /* @__PURE__ */ J(X, {
|
|
1270
1281
|
className: "tax-breakdown--ledger",
|
|
1271
1282
|
children: [
|
|
1272
|
-
/* @__PURE__ */
|
|
1273
|
-
label:
|
|
1283
|
+
/* @__PURE__ */ q(Y, {
|
|
1284
|
+
label: f.subtotal,
|
|
1274
1285
|
amount: e
|
|
1275
1286
|
}),
|
|
1276
|
-
t.map((e, t) => /* @__PURE__ */
|
|
1287
|
+
t.map((e, t) => /* @__PURE__ */ q(Y, {
|
|
1277
1288
|
className: "tax-breakdown--line",
|
|
1278
1289
|
label: e.label,
|
|
1279
1290
|
note: e.rate,
|
|
1280
1291
|
amount: e.amount
|
|
1281
1292
|
}, e.id ?? `${e.label}-${t}`)),
|
|
1282
|
-
!!i && t.length > 1 && /* @__PURE__ */
|
|
1283
|
-
label:
|
|
1293
|
+
!!i && t.length > 1 && /* @__PURE__ */ q(Y, {
|
|
1294
|
+
label: f.totalTax,
|
|
1284
1295
|
amount: i
|
|
1285
1296
|
}),
|
|
1286
|
-
/* @__PURE__ */
|
|
1287
|
-
label:
|
|
1297
|
+
/* @__PURE__ */ q(Y, {
|
|
1298
|
+
label: f.total,
|
|
1288
1299
|
amount: a,
|
|
1289
1300
|
total: !0,
|
|
1290
1301
|
rollup: !0
|
|
@@ -1293,10 +1304,10 @@ function At({ subtotal: e, taxes: t, totalTax: i, total: a, className: o, string
|
|
|
1293
1304
|
})
|
|
1294
1305
|
});
|
|
1295
1306
|
}
|
|
1296
|
-
|
|
1307
|
+
kt.displayName = "TaxBreakdownCard";
|
|
1297
1308
|
//#endregion
|
|
1298
1309
|
//#region src/components/blocks/commerce/subscription-summary/types.ts
|
|
1299
|
-
var
|
|
1310
|
+
var At = {
|
|
1300
1311
|
title: "Subscription",
|
|
1301
1312
|
plan: "Plan",
|
|
1302
1313
|
nextBilling: "Next billing",
|
|
@@ -1306,95 +1317,95 @@ var jt = {
|
|
|
1306
1317
|
};
|
|
1307
1318
|
//#endregion
|
|
1308
1319
|
//#region src/components/blocks/commerce/subscription-summary/subscription-summary.tsx
|
|
1309
|
-
function
|
|
1310
|
-
let _ = n(
|
|
1311
|
-
return /* @__PURE__ */
|
|
1320
|
+
function jt({ planName: e, priceLabel: t, cycleLabel: a, nextBillingDate: l, statusLabel: u, perks: d = [], onManage: p, onUpgrade: m, className: h, strings: g }) {
|
|
1321
|
+
let _ = n(At, g);
|
|
1322
|
+
return /* @__PURE__ */ J(z, {
|
|
1312
1323
|
title: _.title,
|
|
1313
|
-
titleSuffix: u ? /* @__PURE__ */
|
|
1324
|
+
titleSuffix: u ? /* @__PURE__ */ q(I, {
|
|
1314
1325
|
tone: "success",
|
|
1315
1326
|
children: u
|
|
1316
1327
|
}) : null,
|
|
1317
1328
|
contentGap: "2xl",
|
|
1318
1329
|
className: r("subscription-summary--component w-full", h),
|
|
1319
1330
|
children: [
|
|
1320
|
-
/* @__PURE__ */
|
|
1331
|
+
/* @__PURE__ */ J(f, {
|
|
1321
1332
|
gap: "lg",
|
|
1322
1333
|
className: "subscription-summary--plan",
|
|
1323
|
-
children: [/* @__PURE__ */
|
|
1334
|
+
children: [/* @__PURE__ */ J(f, {
|
|
1324
1335
|
direction: "horizontal",
|
|
1325
1336
|
justify: "between",
|
|
1326
1337
|
align: "end",
|
|
1327
1338
|
gap: "lg",
|
|
1328
|
-
children: [/* @__PURE__ */
|
|
1339
|
+
children: [/* @__PURE__ */ J(f, {
|
|
1329
1340
|
gap: "dense",
|
|
1330
1341
|
className: "min-w-0",
|
|
1331
|
-
children: [/* @__PURE__ */
|
|
1342
|
+
children: [/* @__PURE__ */ q(s, { children: _.plan }), /* @__PURE__ */ q(c, {
|
|
1332
1343
|
className: "text-inherit",
|
|
1333
1344
|
tag: "h3",
|
|
1334
1345
|
children: e
|
|
1335
1346
|
})]
|
|
1336
|
-
}), /* @__PURE__ */
|
|
1347
|
+
}), /* @__PURE__ */ J(f, {
|
|
1337
1348
|
direction: "horizontal",
|
|
1338
1349
|
align: "baseline",
|
|
1339
1350
|
gap: "xs",
|
|
1340
1351
|
className: "shrink-0",
|
|
1341
|
-
children: [/* @__PURE__ */
|
|
1352
|
+
children: [/* @__PURE__ */ q(D, {
|
|
1342
1353
|
type: "inherit",
|
|
1343
1354
|
weight: "bold",
|
|
1344
1355
|
className: "tabular-nums",
|
|
1345
1356
|
children: t
|
|
1346
|
-
}), /* @__PURE__ */
|
|
1357
|
+
}), /* @__PURE__ */ q(o, {
|
|
1347
1358
|
type: "secondary",
|
|
1348
1359
|
children: a
|
|
1349
1360
|
})]
|
|
1350
1361
|
})]
|
|
1351
|
-
}), /* @__PURE__ */
|
|
1362
|
+
}), /* @__PURE__ */ q(K, {
|
|
1352
1363
|
label: _.nextBilling,
|
|
1353
1364
|
value: l,
|
|
1354
1365
|
valueWeight: "semibold",
|
|
1355
1366
|
valueClassName: "tabular-nums"
|
|
1356
1367
|
})]
|
|
1357
1368
|
}),
|
|
1358
|
-
d.length > 0 && /* @__PURE__ */
|
|
1369
|
+
d.length > 0 && /* @__PURE__ */ J(f, {
|
|
1359
1370
|
gap: "md",
|
|
1360
1371
|
className: "subscription-summary--perks",
|
|
1361
|
-
children: [/* @__PURE__ */
|
|
1372
|
+
children: [/* @__PURE__ */ q(s, { children: _.perks }), /* @__PURE__ */ q(ge, { children: d.map((e, t) => {
|
|
1362
1373
|
let n = e.icon;
|
|
1363
|
-
return /* @__PURE__ */
|
|
1374
|
+
return /* @__PURE__ */ J(U, {
|
|
1364
1375
|
size: "sm",
|
|
1365
1376
|
density: "compact",
|
|
1366
|
-
children: [!!n && /* @__PURE__ */
|
|
1377
|
+
children: [!!n && /* @__PURE__ */ q(B, { children: /* @__PURE__ */ q(n, {
|
|
1367
1378
|
"aria-hidden": "true",
|
|
1368
1379
|
className: "size-icon text-muted-foreground"
|
|
1369
|
-
}) }), /* @__PURE__ */
|
|
1380
|
+
}) }), /* @__PURE__ */ q(H, { children: /* @__PURE__ */ q(W, {
|
|
1370
1381
|
bold: !1,
|
|
1371
1382
|
children: e.label
|
|
1372
1383
|
}) })]
|
|
1373
1384
|
}, `${e.label}-${t}`);
|
|
1374
1385
|
}) })]
|
|
1375
1386
|
}),
|
|
1376
|
-
(p || m) && /* @__PURE__ */
|
|
1387
|
+
(p || m) && /* @__PURE__ */ J("div", {
|
|
1377
1388
|
className: "flex items-center gap-space-md",
|
|
1378
|
-
children: [!!p && /* @__PURE__ */
|
|
1389
|
+
children: [!!p && /* @__PURE__ */ q(i, {
|
|
1379
1390
|
tone: "secondary",
|
|
1380
1391
|
buttonStyle: "outline",
|
|
1381
1392
|
onClick: p,
|
|
1382
1393
|
className: "flex-1",
|
|
1383
1394
|
children: _.manage
|
|
1384
|
-
}), !!m && /* @__PURE__ */
|
|
1395
|
+
}), !!m && /* @__PURE__ */ J(i, {
|
|
1385
1396
|
tone: "primary",
|
|
1386
1397
|
onClick: m,
|
|
1387
1398
|
className: "flex-1",
|
|
1388
|
-
children: [_.upgrade, /* @__PURE__ */
|
|
1399
|
+
children: [_.upgrade, /* @__PURE__ */ q(Fe, { className: "ml-1 size-icon-md" })]
|
|
1389
1400
|
})]
|
|
1390
1401
|
})
|
|
1391
1402
|
]
|
|
1392
1403
|
});
|
|
1393
1404
|
}
|
|
1394
|
-
|
|
1405
|
+
jt.displayName = "SubscriptionSummaryCard";
|
|
1395
1406
|
//#endregion
|
|
1396
1407
|
//#region src/components/blocks/commerce/refund-status/types.ts
|
|
1397
|
-
var
|
|
1408
|
+
var Mt = {
|
|
1398
1409
|
title: "Refund status",
|
|
1399
1410
|
requested: "Requested",
|
|
1400
1411
|
approved: "Approved",
|
|
@@ -1404,97 +1415,98 @@ var Nt = {
|
|
|
1404
1415
|
reason: "Reason",
|
|
1405
1416
|
eta: "Expected by",
|
|
1406
1417
|
method: "Refund to"
|
|
1407
|
-
},
|
|
1418
|
+
}, Nt = [
|
|
1408
1419
|
"requested",
|
|
1409
1420
|
"approved",
|
|
1410
1421
|
"processing",
|
|
1411
1422
|
"completed"
|
|
1412
1423
|
];
|
|
1413
|
-
function
|
|
1424
|
+
function Pt(e) {
|
|
1414
1425
|
return e != null && e !== !1 && e !== "";
|
|
1415
1426
|
}
|
|
1416
|
-
function Ft({ stage: e, amount: t, reason: i, method: a, eta: s, requestedAt: c, className: l, strings: u,
|
|
1417
|
-
let
|
|
1418
|
-
return /* @__PURE__ */
|
|
1419
|
-
...
|
|
1420
|
-
surface:
|
|
1421
|
-
padding:
|
|
1422
|
-
|
|
1427
|
+
function Ft({ stage: e, amount: t, reason: i, method: a, eta: s, requestedAt: c, className: l, strings: u, surface: d = "flat", padding: m = d === "flat" ? "none" : "md", headerDivider: h, ...g }) {
|
|
1428
|
+
let v = n(Mt, u), y = Nt.indexOf(e), b = Pt(i) || Pt(a) || Pt(s);
|
|
1429
|
+
return /* @__PURE__ */ J(_, {
|
|
1430
|
+
...g,
|
|
1431
|
+
surface: d,
|
|
1432
|
+
padding: m,
|
|
1433
|
+
headerDivider: h,
|
|
1434
|
+
title: v.title,
|
|
1423
1435
|
contentGap: "2xl",
|
|
1424
1436
|
"data-slot": "refund-status",
|
|
1425
1437
|
className: r("refund-status--component w-full", l),
|
|
1426
1438
|
children: [
|
|
1427
|
-
/* @__PURE__ */
|
|
1439
|
+
/* @__PURE__ */ J(f, {
|
|
1428
1440
|
gap: "dense",
|
|
1429
|
-
children: [/* @__PURE__ */
|
|
1430
|
-
label:
|
|
1441
|
+
children: [/* @__PURE__ */ q(Y, {
|
|
1442
|
+
label: v.amount,
|
|
1431
1443
|
amount: t,
|
|
1432
1444
|
total: !0,
|
|
1433
1445
|
className: "refund-status--amount"
|
|
1434
|
-
}), !!c && /* @__PURE__ */
|
|
1446
|
+
}), !!c && /* @__PURE__ */ J(o, {
|
|
1435
1447
|
size: "xs",
|
|
1436
1448
|
type: "secondary",
|
|
1437
1449
|
children: [
|
|
1438
|
-
|
|
1450
|
+
v.requested,
|
|
1439
1451
|
": ",
|
|
1440
|
-
/* @__PURE__ */
|
|
1452
|
+
/* @__PURE__ */ q(k, {
|
|
1441
1453
|
size: "xs",
|
|
1442
1454
|
children: c
|
|
1443
1455
|
})
|
|
1444
1456
|
]
|
|
1445
1457
|
})]
|
|
1446
1458
|
}),
|
|
1447
|
-
/* @__PURE__ */
|
|
1459
|
+
/* @__PURE__ */ q("ol", {
|
|
1448
1460
|
className: "refund-status--stages m-0 flex list-none items-start p-0",
|
|
1449
|
-
children:
|
|
1450
|
-
let n = t <=
|
|
1451
|
-
return /* @__PURE__ */
|
|
1461
|
+
children: Nt.map((e, t) => {
|
|
1462
|
+
let n = t <= y, i = t === y;
|
|
1463
|
+
return /* @__PURE__ */ J("li", {
|
|
1452
1464
|
"data-reached": n ? "" : void 0,
|
|
1453
1465
|
"data-current": i ? "" : void 0,
|
|
1454
1466
|
"aria-current": i ? "step" : void 0,
|
|
1455
1467
|
className: "refund-status--stage flex min-w-0 flex-1 flex-col items-start gap-space-sm",
|
|
1456
|
-
children: [/* @__PURE__ */
|
|
1468
|
+
children: [/* @__PURE__ */ J("div", {
|
|
1457
1469
|
"aria-hidden": "true",
|
|
1458
1470
|
className: "flex w-full items-center",
|
|
1459
|
-
children: [/* @__PURE__ */
|
|
1471
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1460
1472
|
className: r("relative flex size-icon-lg shrink-0 items-center justify-center rounded-full", n ? "bg-success text-success-foreground" : "border border-border bg-card text-muted-foreground", i && r("ring-4", p.success.halo)),
|
|
1461
|
-
children: n ? /* @__PURE__ */
|
|
1473
|
+
children: n ? /* @__PURE__ */ q(Ne, { className: "size-icon-sm" }) : /* @__PURE__ */ q(P, {
|
|
1462
1474
|
type: "inherit",
|
|
1463
1475
|
value: t + 1,
|
|
1464
1476
|
size: "xs",
|
|
1465
1477
|
weight: "medium",
|
|
1466
1478
|
align: "center"
|
|
1467
1479
|
})
|
|
1468
|
-
}), t <
|
|
1469
|
-
}), /* @__PURE__ */
|
|
1480
|
+
}), t < Nt.length - 1 && /* @__PURE__ */ q("div", { className: r("h-0.5 flex-1", t < y ? "bg-success" : "bg-border") })]
|
|
1481
|
+
}), /* @__PURE__ */ q(o, {
|
|
1470
1482
|
size: "xs",
|
|
1471
1483
|
weight: i ? "semibold" : "medium",
|
|
1472
1484
|
type: n ? "main" : "secondary",
|
|
1473
1485
|
lineHeight: "tight",
|
|
1474
1486
|
className: "refund-status--stage-label",
|
|
1475
|
-
children:
|
|
1487
|
+
children: v[e]
|
|
1476
1488
|
})]
|
|
1477
1489
|
}, e);
|
|
1478
1490
|
})
|
|
1479
1491
|
}),
|
|
1480
|
-
!!
|
|
1492
|
+
!!b && /* @__PURE__ */ J(f, {
|
|
1481
1493
|
gap: "md",
|
|
1482
1494
|
className: "refund-status--facts",
|
|
1483
1495
|
children: [
|
|
1484
|
-
|
|
1485
|
-
label:
|
|
1496
|
+
Pt(i) && /* @__PURE__ */ q(K, {
|
|
1497
|
+
label: v.reason,
|
|
1486
1498
|
value: i,
|
|
1487
1499
|
className: "items-start",
|
|
1488
1500
|
valueWeight: "medium",
|
|
1489
1501
|
valueClassName: "text-end"
|
|
1490
1502
|
}),
|
|
1491
|
-
|
|
1492
|
-
label:
|
|
1503
|
+
Pt(a) && /* @__PURE__ */ q(K, {
|
|
1504
|
+
label: v.method,
|
|
1493
1505
|
value: a,
|
|
1494
1506
|
valueWeight: "medium"
|
|
1495
1507
|
}),
|
|
1496
|
-
|
|
1497
|
-
label:
|
|
1508
|
+
Pt(s) && /* @__PURE__ */ q(K, {
|
|
1509
|
+
label: v.eta,
|
|
1498
1510
|
value: s,
|
|
1499
1511
|
valueWeight: "medium",
|
|
1500
1512
|
valueClassName: "tabular-nums"
|
|
@@ -1514,33 +1526,33 @@ function Lt({ address: e, prominent: t = !1, className: n, ...i }) {
|
|
|
1514
1526
|
e.region,
|
|
1515
1527
|
e.postalCode
|
|
1516
1528
|
].filter(Boolean).join(", ");
|
|
1517
|
-
return /* @__PURE__ */
|
|
1529
|
+
return /* @__PURE__ */ J(f, {
|
|
1518
1530
|
gap: "2xs",
|
|
1519
|
-
render: /* @__PURE__ */
|
|
1531
|
+
render: /* @__PURE__ */ q("address", { ...i }),
|
|
1520
1532
|
className: r("address-lines--component not-italic", n),
|
|
1521
1533
|
children: [
|
|
1522
|
-
!!e.name && /* @__PURE__ */
|
|
1534
|
+
!!e.name && /* @__PURE__ */ q(o, {
|
|
1523
1535
|
type: "inherit",
|
|
1524
1536
|
weight: t ? "semibold" : "regular",
|
|
1525
1537
|
children: e.name
|
|
1526
1538
|
}),
|
|
1527
|
-
/* @__PURE__ */
|
|
1539
|
+
/* @__PURE__ */ q(o, {
|
|
1528
1540
|
type: "inherit",
|
|
1529
1541
|
children: e.line1
|
|
1530
1542
|
}),
|
|
1531
|
-
!!e.line2 && /* @__PURE__ */
|
|
1543
|
+
!!e.line2 && /* @__PURE__ */ q(o, {
|
|
1532
1544
|
type: "inherit",
|
|
1533
1545
|
children: e.line2
|
|
1534
1546
|
}),
|
|
1535
|
-
!!a && /* @__PURE__ */
|
|
1547
|
+
!!a && /* @__PURE__ */ q(o, {
|
|
1536
1548
|
type: "inherit",
|
|
1537
1549
|
children: a
|
|
1538
1550
|
}),
|
|
1539
|
-
/* @__PURE__ */
|
|
1551
|
+
/* @__PURE__ */ q(o, {
|
|
1540
1552
|
type: "secondary",
|
|
1541
1553
|
children: e.country
|
|
1542
1554
|
}),
|
|
1543
|
-
!!e.phone && /* @__PURE__ */
|
|
1555
|
+
!!e.phone && /* @__PURE__ */ q(O, {
|
|
1544
1556
|
value: e.phone,
|
|
1545
1557
|
className: "self-start"
|
|
1546
1558
|
})
|
|
@@ -1565,37 +1577,37 @@ function zt({ kind: e = "shipping", name: t, line1: i, line2: a, city: s, region
|
|
|
1565
1577
|
shipping: w.shipping,
|
|
1566
1578
|
billing: w.billing,
|
|
1567
1579
|
pickup: w.pickup
|
|
1568
|
-
},
|
|
1569
|
-
return m &&
|
|
1580
|
+
}, E = [];
|
|
1581
|
+
return m && E.push({
|
|
1570
1582
|
id: "edit",
|
|
1571
1583
|
label: w.edit,
|
|
1572
|
-
icon: /* @__PURE__ */
|
|
1584
|
+
icon: /* @__PURE__ */ q(ze, { className: "size-icon-md" }),
|
|
1573
1585
|
onClick: m
|
|
1574
|
-
}), g && !p &&
|
|
1586
|
+
}), g && !p && E.push({
|
|
1575
1587
|
id: "make-default",
|
|
1576
1588
|
label: w.makeDefault,
|
|
1577
|
-
icon: /* @__PURE__ */
|
|
1589
|
+
icon: /* @__PURE__ */ q(Ue, { className: "size-icon-md" }),
|
|
1578
1590
|
onClick: g
|
|
1579
|
-
}), h &&
|
|
1591
|
+
}), h && E.push({
|
|
1580
1592
|
id: "remove",
|
|
1581
1593
|
label: w.remove,
|
|
1582
|
-
icon: /* @__PURE__ */
|
|
1594
|
+
icon: /* @__PURE__ */ q(We, { className: "size-icon-md" }),
|
|
1583
1595
|
onClick: h
|
|
1584
|
-
}), /* @__PURE__ */
|
|
1596
|
+
}), /* @__PURE__ */ q(_, {
|
|
1585
1597
|
...C,
|
|
1586
1598
|
surface: v,
|
|
1587
1599
|
padding: y,
|
|
1588
1600
|
headerDivider: b,
|
|
1589
1601
|
title: T[e],
|
|
1590
|
-
titleSuffix: p ? /* @__PURE__ */
|
|
1602
|
+
titleSuffix: p ? /* @__PURE__ */ q(I, {
|
|
1591
1603
|
tone: "neutral",
|
|
1592
1604
|
children: w.defaultBadge
|
|
1593
1605
|
}) : null,
|
|
1594
|
-
actions:
|
|
1606
|
+
actions: E.length > 0 ? E : void 0,
|
|
1595
1607
|
className: r("address-card--component w-full", x),
|
|
1596
|
-
children: /* @__PURE__ */
|
|
1608
|
+
children: /* @__PURE__ */ J(f, {
|
|
1597
1609
|
gap: "md",
|
|
1598
|
-
children: [/* @__PURE__ */
|
|
1610
|
+
children: [/* @__PURE__ */ q(Lt, {
|
|
1599
1611
|
address: {
|
|
1600
1612
|
name: t,
|
|
1601
1613
|
line1: i,
|
|
@@ -1606,9 +1618,9 @@ function zt({ kind: e = "shipping", name: t, line1: i, line2: a, city: s, region
|
|
|
1606
1618
|
country: u
|
|
1607
1619
|
},
|
|
1608
1620
|
prominent: !0
|
|
1609
|
-
}), !!d && /* @__PURE__ */
|
|
1621
|
+
}), !!d && /* @__PURE__ */ q(O, {
|
|
1610
1622
|
value: d,
|
|
1611
|
-
display: /* @__PURE__ */
|
|
1623
|
+
display: /* @__PURE__ */ q(o, {
|
|
1612
1624
|
type: "inherit",
|
|
1613
1625
|
tag: "span",
|
|
1614
1626
|
children: d
|
|
@@ -1633,51 +1645,51 @@ var Bt = {
|
|
|
1633
1645
|
notFound: "That gift card code is not valid."
|
|
1634
1646
|
}, Vt = (e) => e.toUpperCase();
|
|
1635
1647
|
function Ht({ appliedCode: e, balance: t, error: a, loading: o, onCheck: c, onRemove: l, className: u, strings: d }) {
|
|
1636
|
-
let m = n(Bt, d), h =
|
|
1637
|
-
return e ? /* @__PURE__ */
|
|
1648
|
+
let m = n(Bt, d), h = Ee(), [g, _] = ke(""), v = g.trim();
|
|
1649
|
+
return e ? /* @__PURE__ */ q(z, {
|
|
1638
1650
|
title: m.title,
|
|
1639
1651
|
className: r("voucher-entry--component w-full", u),
|
|
1640
|
-
children: /* @__PURE__ */
|
|
1652
|
+
children: /* @__PURE__ */ J(U, {
|
|
1641
1653
|
size: "sm",
|
|
1642
1654
|
variant: "muted",
|
|
1643
1655
|
className: r("items-center gap-y-space-sm border", p.success.edge, p.success.wash),
|
|
1644
1656
|
children: [
|
|
1645
|
-
/* @__PURE__ */
|
|
1646
|
-
icon:
|
|
1657
|
+
/* @__PURE__ */ q(B, { children: /* @__PURE__ */ q(F, {
|
|
1658
|
+
icon: Ne,
|
|
1647
1659
|
tone: "success",
|
|
1648
1660
|
size: "md"
|
|
1649
1661
|
}) }),
|
|
1650
|
-
/* @__PURE__ */
|
|
1662
|
+
/* @__PURE__ */ J(H, {
|
|
1651
1663
|
className: "min-w-0 basis-48",
|
|
1652
|
-
children: [/* @__PURE__ */
|
|
1664
|
+
children: [/* @__PURE__ */ J(f, {
|
|
1653
1665
|
direction: "horizontal",
|
|
1654
1666
|
align: "center",
|
|
1655
1667
|
gap: "sm",
|
|
1656
1668
|
className: "min-w-0",
|
|
1657
|
-
children: [/* @__PURE__ */ W
|
|
1669
|
+
children: [/* @__PURE__ */ q(W, {
|
|
1658
1670
|
className: "max-w-full",
|
|
1659
|
-
children: /* @__PURE__ */
|
|
1671
|
+
children: /* @__PURE__ */ q(A, {
|
|
1660
1672
|
type: "inherit",
|
|
1661
1673
|
className: "tracking-wider",
|
|
1662
1674
|
children: e
|
|
1663
1675
|
})
|
|
1664
|
-
}), /* @__PURE__ */
|
|
1676
|
+
}), /* @__PURE__ */ q(s, {
|
|
1665
1677
|
className: "shrink-0",
|
|
1666
1678
|
children: m.applied
|
|
1667
1679
|
})]
|
|
1668
|
-
}), !!t && /* @__PURE__ */
|
|
1680
|
+
}), !!t && /* @__PURE__ */ q(V, {
|
|
1669
1681
|
clamp: 1,
|
|
1670
1682
|
children: m.balance
|
|
1671
1683
|
})]
|
|
1672
1684
|
}),
|
|
1673
|
-
/* @__PURE__ */
|
|
1685
|
+
/* @__PURE__ */ J(he, {
|
|
1674
1686
|
className: "ml-auto shrink-0 gap-space-sm",
|
|
1675
|
-
children: [!!t && /* @__PURE__ */
|
|
1687
|
+
children: [!!t && /* @__PURE__ */ q(D, {
|
|
1676
1688
|
type: "inherit",
|
|
1677
1689
|
weight: "semibold",
|
|
1678
1690
|
className: "shrink-0 tabular-nums",
|
|
1679
1691
|
children: t
|
|
1680
|
-
}), !!l && /* @__PURE__ */
|
|
1692
|
+
}), !!l && /* @__PURE__ */ q(i, {
|
|
1681
1693
|
type: "button",
|
|
1682
1694
|
tone: "destructive",
|
|
1683
1695
|
buttonStyle: "ghost",
|
|
@@ -1686,28 +1698,28 @@ function Ht({ appliedCode: e, balance: t, error: a, loading: o, onCheck: c, onRe
|
|
|
1686
1698
|
onClick: l,
|
|
1687
1699
|
"aria-label": m.remove,
|
|
1688
1700
|
className: "size-action-xs shrink-0 text-muted-foreground hover:text-destructive",
|
|
1689
|
-
children: /* @__PURE__ */
|
|
1701
|
+
children: /* @__PURE__ */ q(Ke, { className: "size-icon-sm" })
|
|
1690
1702
|
})]
|
|
1691
1703
|
})
|
|
1692
1704
|
]
|
|
1693
1705
|
})
|
|
1694
|
-
}) : /* @__PURE__ */
|
|
1706
|
+
}) : /* @__PURE__ */ q(z, {
|
|
1695
1707
|
title: m.title,
|
|
1696
1708
|
className: r("voucher-entry--component w-full", u),
|
|
1697
|
-
children: /* @__PURE__ */
|
|
1709
|
+
children: /* @__PURE__ */ q("form", {
|
|
1698
1710
|
onSubmit: (e) => {
|
|
1699
1711
|
e.preventDefault(), v && c?.(v);
|
|
1700
1712
|
},
|
|
1701
|
-
children: /* @__PURE__ */
|
|
1713
|
+
children: /* @__PURE__ */ q(R, {
|
|
1702
1714
|
label: m.inputLabel,
|
|
1703
1715
|
htmlFor: h,
|
|
1704
1716
|
error: a,
|
|
1705
1717
|
hint: a ? void 0 : m.helperText,
|
|
1706
|
-
children: /* @__PURE__ */
|
|
1718
|
+
children: /* @__PURE__ */ J("div", {
|
|
1707
1719
|
className: "flex flex-wrap gap-space-md",
|
|
1708
|
-
children: [/* @__PURE__ */
|
|
1720
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1709
1721
|
className: "min-w-48 flex-1",
|
|
1710
|
-
children: /* @__PURE__ */
|
|
1722
|
+
children: /* @__PURE__ */ q(L, {
|
|
1711
1723
|
id: h,
|
|
1712
1724
|
value: g,
|
|
1713
1725
|
onChange: (e) => _(Vt(e.target.value)),
|
|
@@ -1717,7 +1729,7 @@ function Ht({ appliedCode: e, balance: t, error: a, loading: o, onCheck: c, onRe
|
|
|
1717
1729
|
className: "font-mono",
|
|
1718
1730
|
invalid: !!a
|
|
1719
1731
|
})
|
|
1720
|
-
}), /* @__PURE__ */
|
|
1732
|
+
}), /* @__PURE__ */ q(i, {
|
|
1721
1733
|
tone: "primary",
|
|
1722
1734
|
type: "submit",
|
|
1723
1735
|
loading: o,
|
|
@@ -1734,10 +1746,10 @@ Ht.displayName = "VoucherEntry";
|
|
|
1734
1746
|
//#endregion
|
|
1735
1747
|
//#region src/components/blocks/commerce/shared/line-thumbnail.tsx
|
|
1736
1748
|
function Ut({ title: e }) {
|
|
1737
|
-
return /* @__PURE__ */
|
|
1749
|
+
return /* @__PURE__ */ q("div", {
|
|
1738
1750
|
"aria-hidden": "true",
|
|
1739
1751
|
className: "line-thumbnail--placeholder flex size-full items-center justify-center rounded-[inherit] bg-muted ring-1 ring-border/60",
|
|
1740
|
-
children: /* @__PURE__ */
|
|
1752
|
+
children: /* @__PURE__ */ q(M, {
|
|
1741
1753
|
value: e,
|
|
1742
1754
|
strategy: "first-words",
|
|
1743
1755
|
fallback: e.trim().slice(0, 2).toUpperCase(),
|
|
@@ -1748,8 +1760,8 @@ function Ut({ title: e }) {
|
|
|
1748
1760
|
});
|
|
1749
1761
|
}
|
|
1750
1762
|
function Wt({ src: e, alt: t, title: n }) {
|
|
1751
|
-
let [r, i] =
|
|
1752
|
-
return !a || r === a ? /* @__PURE__ */
|
|
1763
|
+
let [r, i] = ke(void 0), a = e?.trim() ? e : void 0;
|
|
1764
|
+
return !a || r === a ? /* @__PURE__ */ q(Ut, { title: n }) : /* @__PURE__ */ q("img", {
|
|
1753
1765
|
src: a,
|
|
1754
1766
|
alt: t ?? n,
|
|
1755
1767
|
className: "line-thumbnail--image",
|
|
@@ -1777,51 +1789,52 @@ var Gt = {
|
|
|
1777
1789
|
e.src,
|
|
1778
1790
|
e.url
|
|
1779
1791
|
].find((e) => !!e?.trim());
|
|
1780
|
-
function Jt({ items: e, subtotal: t, tax: a, shipping: s, discount: c, total: l, onCheckout: u, className: d, strings: p,
|
|
1781
|
-
let
|
|
1782
|
-
return /* @__PURE__ */
|
|
1783
|
-
...
|
|
1784
|
-
surface:
|
|
1785
|
-
padding:
|
|
1786
|
-
|
|
1792
|
+
function Jt({ items: e, subtotal: t, tax: a, shipping: s, discount: c, total: l, onCheckout: u, className: d, strings: p, surface: m = "flat", padding: h = m === "flat" ? "none" : "md", headerDivider: g, ...v }) {
|
|
1793
|
+
let y = n(Gt, p), b = !!(t || a || s || c);
|
|
1794
|
+
return /* @__PURE__ */ J(_, {
|
|
1795
|
+
...v,
|
|
1796
|
+
surface: m,
|
|
1797
|
+
padding: h,
|
|
1798
|
+
headerDivider: g,
|
|
1799
|
+
title: y.title,
|
|
1787
1800
|
contentGap: "2xl",
|
|
1788
1801
|
"data-slot": "cart-summary",
|
|
1789
1802
|
className: r("cart-summary--component w-full", d),
|
|
1790
1803
|
children: [
|
|
1791
|
-
/* @__PURE__ */
|
|
1804
|
+
/* @__PURE__ */ q(ge, { children: e.map((e) => {
|
|
1792
1805
|
let t = Kt(e), n = qt(e);
|
|
1793
|
-
return /* @__PURE__ */
|
|
1806
|
+
return /* @__PURE__ */ J(U, {
|
|
1794
1807
|
className: "cart-summary--item",
|
|
1795
1808
|
children: [
|
|
1796
|
-
/* @__PURE__ */
|
|
1809
|
+
/* @__PURE__ */ q(B, {
|
|
1797
1810
|
variant: "image",
|
|
1798
1811
|
className: "cart-summary--item-media",
|
|
1799
|
-
children: /* @__PURE__ */
|
|
1812
|
+
children: /* @__PURE__ */ q(Wt, {
|
|
1800
1813
|
src: n,
|
|
1801
1814
|
alt: e.imageAlt,
|
|
1802
1815
|
title: t
|
|
1803
1816
|
})
|
|
1804
1817
|
}),
|
|
1805
|
-
/* @__PURE__ */
|
|
1818
|
+
/* @__PURE__ */ J(H, {
|
|
1806
1819
|
className: "cart-summary--item-content",
|
|
1807
|
-
children: [/* @__PURE__ */ W
|
|
1820
|
+
children: [/* @__PURE__ */ q(W, { children: t }), !!e.variantTitle && /* @__PURE__ */ q(V, {
|
|
1808
1821
|
clamp: 1,
|
|
1809
1822
|
children: e.variantTitle
|
|
1810
1823
|
})]
|
|
1811
1824
|
}),
|
|
1812
|
-
/* @__PURE__ */
|
|
1825
|
+
/* @__PURE__ */ q(he, {
|
|
1813
1826
|
className: "cart-summary--item-actions",
|
|
1814
|
-
children: /* @__PURE__ */
|
|
1827
|
+
children: /* @__PURE__ */ J(f, {
|
|
1815
1828
|
gap: "2xs",
|
|
1816
1829
|
align: "end",
|
|
1817
1830
|
className: "shrink-0",
|
|
1818
|
-
children: [/* @__PURE__ */
|
|
1831
|
+
children: [/* @__PURE__ */ q(o, {
|
|
1819
1832
|
tag: "span",
|
|
1820
1833
|
size: "xs",
|
|
1821
1834
|
type: "secondary",
|
|
1822
1835
|
className: "cart-summary--quantity tabular-nums",
|
|
1823
|
-
children:
|
|
1824
|
-
}), /* @__PURE__ */
|
|
1836
|
+
children: y.formatQuantity(e.qty)
|
|
1837
|
+
}), /* @__PURE__ */ q(D, {
|
|
1825
1838
|
type: "inherit",
|
|
1826
1839
|
weight: "semibold",
|
|
1827
1840
|
className: "tabular-nums",
|
|
@@ -1832,39 +1845,39 @@ function Jt({ items: e, subtotal: t, tax: a, shipping: s, discount: c, total: l,
|
|
|
1832
1845
|
]
|
|
1833
1846
|
}, e.id);
|
|
1834
1847
|
}) }),
|
|
1835
|
-
/* @__PURE__ */
|
|
1848
|
+
/* @__PURE__ */ J(X, {
|
|
1836
1849
|
className: "cart-summary--totals",
|
|
1837
1850
|
children: [
|
|
1838
|
-
!!t && /* @__PURE__ */
|
|
1839
|
-
label:
|
|
1851
|
+
!!t && /* @__PURE__ */ q(Y, {
|
|
1852
|
+
label: y.subtotal,
|
|
1840
1853
|
amount: t
|
|
1841
1854
|
}),
|
|
1842
|
-
!!a && /* @__PURE__ */
|
|
1843
|
-
label:
|
|
1855
|
+
!!a && /* @__PURE__ */ q(Y, {
|
|
1856
|
+
label: y.tax,
|
|
1844
1857
|
amount: a
|
|
1845
1858
|
}),
|
|
1846
|
-
!!s && /* @__PURE__ */
|
|
1847
|
-
label:
|
|
1859
|
+
!!s && /* @__PURE__ */ q(Y, {
|
|
1860
|
+
label: y.shipping,
|
|
1848
1861
|
amount: s
|
|
1849
1862
|
}),
|
|
1850
|
-
!!c && /* @__PURE__ */
|
|
1851
|
-
label:
|
|
1863
|
+
!!c && /* @__PURE__ */ q(Y, {
|
|
1864
|
+
label: y.discount,
|
|
1852
1865
|
amount: c,
|
|
1853
1866
|
deduction: !0
|
|
1854
1867
|
}),
|
|
1855
|
-
/* @__PURE__ */
|
|
1856
|
-
label:
|
|
1868
|
+
/* @__PURE__ */ q(Y, {
|
|
1869
|
+
label: y.total,
|
|
1857
1870
|
amount: l,
|
|
1858
1871
|
total: !0,
|
|
1859
|
-
rollup:
|
|
1872
|
+
rollup: b
|
|
1860
1873
|
})
|
|
1861
1874
|
]
|
|
1862
1875
|
}),
|
|
1863
|
-
!!u && /* @__PURE__ */
|
|
1876
|
+
!!u && /* @__PURE__ */ q(i, {
|
|
1864
1877
|
tone: "primary",
|
|
1865
1878
|
onClick: u,
|
|
1866
1879
|
fullWidth: !0,
|
|
1867
|
-
children:
|
|
1880
|
+
children: y.checkout
|
|
1868
1881
|
})
|
|
1869
1882
|
]
|
|
1870
1883
|
});
|
|
@@ -1880,48 +1893,48 @@ var Yt = Jt, Xt = {
|
|
|
1880
1893
|
invalid: "That code is not valid"
|
|
1881
1894
|
}, Zt = (e) => e.toUpperCase();
|
|
1882
1895
|
function Qt({ appliedCode: e, appliedDiscount: t, error: a, onApply: c, onRemove: l, loading: u, className: d, strings: m }) {
|
|
1883
|
-
let h = n(Xt, m), [g, _] =
|
|
1884
|
-
return e ? /* @__PURE__ */
|
|
1896
|
+
let h = n(Xt, m), [g, _] = ke(""), v = g.trim();
|
|
1897
|
+
return e ? /* @__PURE__ */ q(z, {
|
|
1885
1898
|
title: h.title,
|
|
1886
1899
|
className: r("coupon-input--component w-full", d),
|
|
1887
|
-
children: /* @__PURE__ */
|
|
1900
|
+
children: /* @__PURE__ */ J(U, {
|
|
1888
1901
|
size: "sm",
|
|
1889
1902
|
variant: "muted",
|
|
1890
1903
|
className: r("items-center gap-y-space-sm border", p.success.edge, p.success.wash),
|
|
1891
1904
|
children: [
|
|
1892
|
-
/* @__PURE__ */
|
|
1893
|
-
icon:
|
|
1905
|
+
/* @__PURE__ */ q(B, { children: /* @__PURE__ */ q(F, {
|
|
1906
|
+
icon: Ne,
|
|
1894
1907
|
tone: "success",
|
|
1895
1908
|
size: "md"
|
|
1896
1909
|
}) }),
|
|
1897
|
-
/* @__PURE__ */
|
|
1910
|
+
/* @__PURE__ */ q(H, {
|
|
1898
1911
|
className: "min-w-0",
|
|
1899
|
-
children: /* @__PURE__ */
|
|
1912
|
+
children: /* @__PURE__ */ J(f, {
|
|
1900
1913
|
direction: "horizontal",
|
|
1901
1914
|
align: "center",
|
|
1902
1915
|
gap: "sm",
|
|
1903
1916
|
wrap: !1,
|
|
1904
1917
|
className: "min-w-0",
|
|
1905
|
-
children: [/* @__PURE__ */ W
|
|
1918
|
+
children: [/* @__PURE__ */ q(W, {
|
|
1906
1919
|
className: "min-w-0 truncate font-mono tracking-wider",
|
|
1907
1920
|
title: e,
|
|
1908
1921
|
children: e
|
|
1909
|
-
}), /* @__PURE__ */
|
|
1922
|
+
}), /* @__PURE__ */ q(s, {
|
|
1910
1923
|
className: "shrink-0",
|
|
1911
1924
|
children: h.applied
|
|
1912
1925
|
})]
|
|
1913
1926
|
})
|
|
1914
1927
|
}),
|
|
1915
|
-
/* @__PURE__ */
|
|
1928
|
+
/* @__PURE__ */ J(he, {
|
|
1916
1929
|
className: "ml-auto shrink-0 gap-space-sm",
|
|
1917
|
-
children: [!!t && /* @__PURE__ */
|
|
1930
|
+
children: [!!t && /* @__PURE__ */ q(o, {
|
|
1918
1931
|
tag: "span",
|
|
1919
1932
|
size: "xs",
|
|
1920
1933
|
weight: "semibold",
|
|
1921
1934
|
type: "success",
|
|
1922
1935
|
className: "tabular-nums shrink-0",
|
|
1923
|
-
children:
|
|
1924
|
-
}), !!l && /* @__PURE__ */
|
|
1936
|
+
children: $e(t)
|
|
1937
|
+
}), !!l && /* @__PURE__ */ q(i, {
|
|
1925
1938
|
type: "button",
|
|
1926
1939
|
tone: "destructive",
|
|
1927
1940
|
buttonStyle: "ghost",
|
|
@@ -1930,21 +1943,21 @@ function Qt({ appliedCode: e, appliedDiscount: t, error: a, onApply: c, onRemove
|
|
|
1930
1943
|
onClick: l,
|
|
1931
1944
|
"aria-label": h.remove,
|
|
1932
1945
|
className: "size-action-xs shrink-0 text-muted-foreground hover:text-destructive",
|
|
1933
|
-
children: /* @__PURE__ */
|
|
1946
|
+
children: /* @__PURE__ */ q(Ke, { className: "size-icon-sm" })
|
|
1934
1947
|
})]
|
|
1935
1948
|
})
|
|
1936
1949
|
]
|
|
1937
1950
|
})
|
|
1938
|
-
}) : /* @__PURE__ */
|
|
1951
|
+
}) : /* @__PURE__ */ q(z, {
|
|
1939
1952
|
title: h.title,
|
|
1940
1953
|
className: r("coupon-input--component w-full", d),
|
|
1941
|
-
children: /* @__PURE__ */
|
|
1954
|
+
children: /* @__PURE__ */ J(f, {
|
|
1942
1955
|
gap: "md",
|
|
1943
|
-
children: [/* @__PURE__ */
|
|
1956
|
+
children: [/* @__PURE__ */ J("div", {
|
|
1944
1957
|
className: "flex flex-wrap gap-space-md",
|
|
1945
|
-
children: [/* @__PURE__ */
|
|
1958
|
+
children: [/* @__PURE__ */ q("div", {
|
|
1946
1959
|
className: "min-w-44 flex-1",
|
|
1947
|
-
children: /* @__PURE__ */
|
|
1960
|
+
children: /* @__PURE__ */ q(L, {
|
|
1948
1961
|
value: g,
|
|
1949
1962
|
onChange: (e) => _(Zt(e.target.value)),
|
|
1950
1963
|
"aria-label": h.fieldLabel,
|
|
@@ -1954,7 +1967,7 @@ function Qt({ appliedCode: e, appliedDiscount: t, error: a, onApply: c, onRemove
|
|
|
1954
1967
|
className: "font-mono",
|
|
1955
1968
|
invalid: !!a
|
|
1956
1969
|
})
|
|
1957
|
-
}), /* @__PURE__ */
|
|
1970
|
+
}), /* @__PURE__ */ q(i, {
|
|
1958
1971
|
tone: "primary",
|
|
1959
1972
|
size: "md",
|
|
1960
1973
|
onClick: () => c?.(v),
|
|
@@ -1963,7 +1976,7 @@ function Qt({ appliedCode: e, appliedDiscount: t, error: a, onApply: c, onRemove
|
|
|
1963
1976
|
className: "shrink-0",
|
|
1964
1977
|
children: h.apply
|
|
1965
1978
|
})]
|
|
1966
|
-
}), !!a && /* @__PURE__ */
|
|
1979
|
+
}), !!a && /* @__PURE__ */ q(o, {
|
|
1967
1980
|
size: "xs",
|
|
1968
1981
|
type: "error",
|
|
1969
1982
|
children: a || h.invalid
|
|
@@ -1990,9 +2003,9 @@ var $t = {
|
|
|
1990
2003
|
};
|
|
1991
2004
|
function tn({ orderNumber: e, status: t, statusTone: i, events: a, currentEta: s, className: c, strings: l }) {
|
|
1992
2005
|
let u = n($t, l), d = i ?? en[t], f = a.reduce((e, t, n) => t.complete ? n : e, -1), m = a.find((e) => !e.complete);
|
|
1993
|
-
return /* @__PURE__ */
|
|
2006
|
+
return /* @__PURE__ */ J(z, {
|
|
1994
2007
|
title: u.title,
|
|
1995
|
-
titleSuffix: /* @__PURE__ */
|
|
2008
|
+
titleSuffix: /* @__PURE__ */ q(I, {
|
|
1996
2009
|
tone: d,
|
|
1997
2010
|
className: "capitalize",
|
|
1998
2011
|
children: t
|
|
@@ -2000,37 +2013,37 @@ function tn({ orderNumber: e, status: t, statusTone: i, events: a, currentEta: s
|
|
|
2000
2013
|
description: `#${e}`,
|
|
2001
2014
|
contentGap: "xl",
|
|
2002
2015
|
className: r("order-status--component w-full", c),
|
|
2003
|
-
children: [!!s && /* @__PURE__ */
|
|
2016
|
+
children: [!!s && /* @__PURE__ */ q(K, {
|
|
2004
2017
|
label: u.eta,
|
|
2005
2018
|
value: s,
|
|
2006
2019
|
className: "order-status--eta",
|
|
2007
2020
|
valueWeight: "medium",
|
|
2008
2021
|
valueClassName: "tabular-nums"
|
|
2009
|
-
}), a.length > 0 && /* @__PURE__ */
|
|
2022
|
+
}), a.length > 0 && /* @__PURE__ */ q("ol", {
|
|
2010
2023
|
className: "m-0 p-0 list-none",
|
|
2011
2024
|
children: a.map((e, t) => {
|
|
2012
2025
|
let n = t === a.length - 1, i = m ? e === m : t === f;
|
|
2013
|
-
return /* @__PURE__ */
|
|
2026
|
+
return /* @__PURE__ */ J("li", {
|
|
2014
2027
|
className: "relative flex gap-space-lg",
|
|
2015
|
-
children: [/* @__PURE__ */
|
|
2028
|
+
children: [/* @__PURE__ */ J("div", {
|
|
2016
2029
|
className: "flex flex-col items-center",
|
|
2017
|
-
children: [/* @__PURE__ */
|
|
2030
|
+
children: [/* @__PURE__ */ q("span", {
|
|
2018
2031
|
className: r("flex size-6 shrink-0 items-center justify-center rounded-full border", e.complete ? "border-success bg-success text-success-foreground" : "border-border bg-card text-muted-foreground", i && !e.complete && r("border-2 border-primary-accent ring-4", p.primary.tint, p.primary.ink, p.primary.halo)),
|
|
2019
|
-
children: e.complete ? /* @__PURE__ */
|
|
2032
|
+
children: e.complete ? /* @__PURE__ */ q(Ne, {
|
|
2020
2033
|
className: "size-icon-md",
|
|
2021
2034
|
strokeWidth: 2.5
|
|
2022
|
-
}) : i ? /* @__PURE__ */
|
|
2023
|
-
}), !n && /* @__PURE__ */
|
|
2035
|
+
}) : i ? /* @__PURE__ */ q(Me, { className: "size-icon-md" }) : /* @__PURE__ */ q(Ie, { className: "size-icon-sm" })
|
|
2036
|
+
}), !n && /* @__PURE__ */ q("span", {
|
|
2024
2037
|
"aria-hidden": "true",
|
|
2025
2038
|
className: r("min-h-6 w-px flex-1", t < f ? "bg-success" : "bg-border")
|
|
2026
2039
|
})]
|
|
2027
|
-
}), /* @__PURE__ */
|
|
2040
|
+
}), /* @__PURE__ */ J("div", {
|
|
2028
2041
|
className: r("min-w-0 flex-1 pb-space-xl", n && "pb-0"),
|
|
2029
|
-
children: [/* @__PURE__ */
|
|
2042
|
+
children: [/* @__PURE__ */ q(o, {
|
|
2030
2043
|
weight: e.complete || i ? "semibold" : "medium",
|
|
2031
2044
|
className: r(!e.complete && !i && "text-muted-foreground"),
|
|
2032
2045
|
children: e.label
|
|
2033
|
-
}), !!e.timestamp && /* @__PURE__ */
|
|
2046
|
+
}), !!e.timestamp && /* @__PURE__ */ q(k, {
|
|
2034
2047
|
size: "xs",
|
|
2035
2048
|
className: "tabular-nums",
|
|
2036
2049
|
children: e.timestamp
|
|
@@ -2071,17 +2084,17 @@ var nn = {
|
|
|
2071
2084
|
}, an = "bg-inverse-background from-inverse-background via-inverse-surface-strong to-inverse-background";
|
|
2072
2085
|
function on({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onChange: u, variant: d = "card", surface: p = "flat", padding: m = p === "flat" ? "none" : "md", headerDivider: h, className: g, strings: v, ...y }) {
|
|
2073
2086
|
let b = n(nn, v), x = b.formatCard(b.brands[e], t);
|
|
2074
|
-
return /* @__PURE__ */
|
|
2087
|
+
return /* @__PURE__ */ q(_, {
|
|
2075
2088
|
...y,
|
|
2076
2089
|
surface: p,
|
|
2077
2090
|
padding: m,
|
|
2078
2091
|
headerDivider: h,
|
|
2079
2092
|
title: b.title,
|
|
2080
|
-
titleSuffix: l ? /* @__PURE__ */
|
|
2093
|
+
titleSuffix: l ? /* @__PURE__ */ q(I, {
|
|
2081
2094
|
tone: "neutral",
|
|
2082
2095
|
children: b.default
|
|
2083
2096
|
}) : null,
|
|
2084
|
-
headerAction: u ? /* @__PURE__ */
|
|
2097
|
+
headerAction: u ? /* @__PURE__ */ q(i, {
|
|
2085
2098
|
buttonStyle: "ghost",
|
|
2086
2099
|
tone: "secondary",
|
|
2087
2100
|
onClick: u,
|
|
@@ -2089,30 +2102,30 @@ function on({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onC
|
|
|
2089
2102
|
}) : void 0,
|
|
2090
2103
|
"data-variant": d,
|
|
2091
2104
|
className: r("payment-method--component w-full", g),
|
|
2092
|
-
children: d === "row" ? /* @__PURE__ */
|
|
2105
|
+
children: d === "row" ? /* @__PURE__ */ J(f, {
|
|
2093
2106
|
gap: "dense",
|
|
2094
2107
|
className: "payment-method--identity min-w-0",
|
|
2095
2108
|
children: [
|
|
2096
|
-
/* @__PURE__ */
|
|
2109
|
+
/* @__PURE__ */ q(o, {
|
|
2097
2110
|
type: "inherit",
|
|
2098
2111
|
weight: "semibold",
|
|
2099
2112
|
className: "payment-method--name",
|
|
2100
2113
|
children: x
|
|
2101
2114
|
}),
|
|
2102
|
-
!!c && /* @__PURE__ */
|
|
2115
|
+
!!c && /* @__PURE__ */ q(o, {
|
|
2103
2116
|
size: "xs",
|
|
2104
2117
|
type: "secondary",
|
|
2105
2118
|
className: "payment-method--holder truncate",
|
|
2106
2119
|
children: c
|
|
2107
2120
|
}),
|
|
2108
|
-
!!a && /* @__PURE__ */
|
|
2121
|
+
!!a && /* @__PURE__ */ J(o, {
|
|
2109
2122
|
size: "xs",
|
|
2110
2123
|
type: "secondary",
|
|
2111
2124
|
className: "payment-method--expiry",
|
|
2112
2125
|
children: [
|
|
2113
2126
|
b.expires,
|
|
2114
2127
|
" ",
|
|
2115
|
-
/* @__PURE__ */
|
|
2128
|
+
/* @__PURE__ */ q(D, {
|
|
2116
2129
|
type: "inherit",
|
|
2117
2130
|
className: "tabular-nums",
|
|
2118
2131
|
children: a
|
|
@@ -2120,27 +2133,27 @@ function on({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onC
|
|
|
2120
2133
|
]
|
|
2121
2134
|
})
|
|
2122
2135
|
]
|
|
2123
|
-
}) : /* @__PURE__ */
|
|
2124
|
-
className: r("payment-method--face relative flex aspect-[85.6/53.98] w-full max-w-[22rem] flex-col justify-between overflow-hidden rounded-
|
|
2136
|
+
}) : /* @__PURE__ */ J("div", {
|
|
2137
|
+
className: r("payment-method--face relative flex aspect-[85.6/53.98] w-full max-w-[22rem] flex-col justify-between overflow-hidden rounded-surface bg-linear-to-br p-surface text-inverse-foreground shadow-sm ring-1 ring-inverse-border", an),
|
|
2125
2138
|
children: [
|
|
2126
|
-
/* @__PURE__ */
|
|
2127
|
-
/* @__PURE__ */
|
|
2139
|
+
/* @__PURE__ */ q(de, { children: x }),
|
|
2140
|
+
/* @__PURE__ */ J("div", {
|
|
2128
2141
|
"aria-hidden": "true",
|
|
2129
2142
|
className: "relative flex items-start justify-between",
|
|
2130
|
-
children: [/* @__PURE__ */
|
|
2143
|
+
children: [/* @__PURE__ */ q("div", {
|
|
2131
2144
|
className: "flex size-7 items-center justify-center rounded-radius-md bg-gradient-to-br from-muted to-muted-foreground/60 shadow-sm",
|
|
2132
|
-
children: /* @__PURE__ */
|
|
2133
|
-
}), /* @__PURE__ */
|
|
2145
|
+
children: /* @__PURE__ */ q("div", { className: "size-icon rounded-radius-sm border border-warning-foreground/25 bg-warning-foreground/15" })
|
|
2146
|
+
}), /* @__PURE__ */ q(o, {
|
|
2134
2147
|
tag: "span",
|
|
2135
2148
|
weight: "bold",
|
|
2136
2149
|
className: "rounded-radius-xs bg-inverse-surface px-space-md py-space-2xs tracking-[0.15em] text-inverse-foreground",
|
|
2137
2150
|
children: rn[e]
|
|
2138
2151
|
})]
|
|
2139
2152
|
}),
|
|
2140
|
-
/* @__PURE__ */
|
|
2153
|
+
/* @__PURE__ */ q("div", {
|
|
2141
2154
|
"aria-hidden": "true",
|
|
2142
2155
|
className: "relative",
|
|
2143
|
-
children: /* @__PURE__ */
|
|
2156
|
+
children: /* @__PURE__ */ J(o, {
|
|
2144
2157
|
tag: "span",
|
|
2145
2158
|
size: "sm",
|
|
2146
2159
|
weight: "semibold",
|
|
@@ -2148,30 +2161,30 @@ function on({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onC
|
|
|
2148
2161
|
children: ["•••• •••• •••• ", t]
|
|
2149
2162
|
})
|
|
2150
2163
|
}),
|
|
2151
|
-
/* @__PURE__ */
|
|
2164
|
+
/* @__PURE__ */ J(f, {
|
|
2152
2165
|
direction: "horizontal",
|
|
2153
2166
|
align: "end",
|
|
2154
2167
|
justify: "between",
|
|
2155
2168
|
gap: "lg",
|
|
2156
2169
|
className: "relative",
|
|
2157
|
-
children: [/* @__PURE__ */
|
|
2170
|
+
children: [/* @__PURE__ */ q("div", {
|
|
2158
2171
|
className: "min-w-0",
|
|
2159
|
-
children: !!c && /* @__PURE__ */
|
|
2172
|
+
children: !!c && /* @__PURE__ */ J(Ae, { children: [/* @__PURE__ */ q(s, {
|
|
2160
2173
|
tone: "inverse",
|
|
2161
2174
|
className: "block",
|
|
2162
2175
|
children: b.cardHolder
|
|
2163
|
-
}), /* @__PURE__ */
|
|
2176
|
+
}), /* @__PURE__ */ q(o, {
|
|
2164
2177
|
weight: "semibold",
|
|
2165
2178
|
className: "truncate text-inverse-foreground",
|
|
2166
2179
|
children: c
|
|
2167
2180
|
})] })
|
|
2168
|
-
}), !!a && /* @__PURE__ */
|
|
2181
|
+
}), !!a && /* @__PURE__ */ J("div", {
|
|
2169
2182
|
className: "text-right shrink-0",
|
|
2170
|
-
children: [/* @__PURE__ */
|
|
2183
|
+
children: [/* @__PURE__ */ q(s, {
|
|
2171
2184
|
tone: "inverse",
|
|
2172
2185
|
className: "block",
|
|
2173
2186
|
children: b.expires
|
|
2174
|
-
}), /* @__PURE__ */
|
|
2187
|
+
}), /* @__PURE__ */ q(D, {
|
|
2175
2188
|
weight: "semibold",
|
|
2176
2189
|
className: "tabular-nums text-inverse-foreground",
|
|
2177
2190
|
children: a
|
|
@@ -2184,7 +2197,7 @@ function on({ brand: e, last4: t, expiry: a, holderName: c, default: l = !1, onC
|
|
|
2184
2197
|
}
|
|
2185
2198
|
on.displayName = "PaymentMethod";
|
|
2186
2199
|
function sn({ variant: e = "row", ...t }) {
|
|
2187
|
-
return /* @__PURE__ */
|
|
2200
|
+
return /* @__PURE__ */ q(on, {
|
|
2188
2201
|
variant: e,
|
|
2189
2202
|
...t
|
|
2190
2203
|
});
|
|
@@ -2213,7 +2226,7 @@ function dn(e, t) {
|
|
|
2213
2226
|
let n = e / t;
|
|
2214
2227
|
return n >= .9 ? "good" : n >= .5 ? "review" : "missing";
|
|
2215
2228
|
}
|
|
2216
|
-
function
|
|
2229
|
+
function fn(e, t, n, r, i) {
|
|
2217
2230
|
let a = Math.round(un(t) * n);
|
|
2218
2231
|
return {
|
|
2219
2232
|
id: e,
|
|
@@ -2224,7 +2237,7 @@ function Z(e, t, n, r, i) {
|
|
|
2224
2237
|
...i
|
|
2225
2238
|
};
|
|
2226
2239
|
}
|
|
2227
|
-
function
|
|
2240
|
+
function pn(e, t, n) {
|
|
2228
2241
|
let r = e.trim().length;
|
|
2229
2242
|
if (r === 0) return 0;
|
|
2230
2243
|
if (r >= t && r <= n) return 1;
|
|
@@ -2233,50 +2246,50 @@ function fn(e, t, n) {
|
|
|
2233
2246
|
let i = r - n;
|
|
2234
2247
|
return Math.max(.55, 1 - i / n);
|
|
2235
2248
|
}
|
|
2236
|
-
function
|
|
2249
|
+
function $(e) {
|
|
2237
2250
|
let t = e?.trim() ?? "";
|
|
2238
2251
|
return t ? ((t.split("#")[0] ?? "").split("?")[0] ?? "").replace(/^https?:\/\/[^/]+/i, "").replace(/^\/+|\/+$/g, "") : "";
|
|
2239
2252
|
}
|
|
2240
|
-
function
|
|
2241
|
-
return
|
|
2253
|
+
function mn(e) {
|
|
2254
|
+
return $(e).split("/").filter(Boolean).at(-1) ?? "";
|
|
2242
2255
|
}
|
|
2243
|
-
function
|
|
2244
|
-
let n =
|
|
2256
|
+
function hn(e, t = cn.permalinkMax) {
|
|
2257
|
+
let n = $(e);
|
|
2245
2258
|
return n ? n.length <= t ? 1 : n.length > t * 2 ? .35 : Math.max(.55, 1 - (n.length - t) / t) : 0;
|
|
2246
2259
|
}
|
|
2247
|
-
function
|
|
2248
|
-
let t =
|
|
2260
|
+
function gn(e) {
|
|
2261
|
+
let t = mn(e);
|
|
2249
2262
|
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;
|
|
2250
2263
|
}
|
|
2251
|
-
function
|
|
2264
|
+
function _n(e) {
|
|
2252
2265
|
let t = e?.trim() ?? "";
|
|
2253
2266
|
return t ? /^https:\/\//i.test(t) ? 1 : /^http:\/\//i.test(t) ? .6 : .45 : 0;
|
|
2254
2267
|
}
|
|
2255
|
-
function
|
|
2268
|
+
function vn(e) {
|
|
2256
2269
|
let t = e.keyword?.trim().toLowerCase();
|
|
2257
2270
|
if (!t) return null;
|
|
2258
2271
|
let n = [
|
|
2259
2272
|
e.title,
|
|
2260
2273
|
e.description,
|
|
2261
|
-
|
|
2274
|
+
$(e.permalink)
|
|
2262
2275
|
].filter(Boolean).join(" ").toLowerCase();
|
|
2263
2276
|
return n ? n.includes(t) ? 1 : .35 : 0;
|
|
2264
2277
|
}
|
|
2265
|
-
function
|
|
2266
|
-
let t = ln(e.limits), n = e.title?.trim() ?? "", r = e.description?.trim() ?? "", i =
|
|
2267
|
-
|
|
2278
|
+
function yn(e) {
|
|
2279
|
+
let t = ln(e.limits), n = e.title?.trim() ?? "", r = e.description?.trim() ?? "", i = $(e.permalink), a = mn(e.permalink), o = [
|
|
2280
|
+
fn("title", pn(n, t.titleMin, t.titleMax), 30, n.length, {
|
|
2268
2281
|
min: t.titleMin,
|
|
2269
2282
|
max: t.titleMax
|
|
2270
2283
|
}),
|
|
2271
|
-
|
|
2284
|
+
fn("description", pn(r, t.descriptionMin, t.descriptionMax), 30, r.length, {
|
|
2272
2285
|
min: t.descriptionMin,
|
|
2273
2286
|
max: t.descriptionMax
|
|
2274
2287
|
}),
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
], s =
|
|
2279
|
-
s !== null && o.push(
|
|
2288
|
+
fn("permalink", hn(e.permalink, t.permalinkMax), 15, i.length, { max: t.permalinkMax }),
|
|
2289
|
+
fn("slug", gn(e.permalink), 10, a.length),
|
|
2290
|
+
fn("url", _n(e.baseUrl), 10, e.baseUrl?.trim().length ?? 0)
|
|
2291
|
+
], s = vn(e);
|
|
2292
|
+
s !== null && o.push(fn("keyword", s, 5, e.keyword?.trim().length ?? 0));
|
|
2280
2293
|
let c = Math.round(o.reduce((e, t) => e + t.score, 0) / o.reduce((e, t) => e + t.maxScore, 0) * 100);
|
|
2281
2294
|
return {
|
|
2282
2295
|
score: c,
|
|
@@ -2287,7 +2300,7 @@ function vn(e) {
|
|
|
2287
2300
|
}
|
|
2288
2301
|
//#endregion
|
|
2289
2302
|
//#region src/components/blocks/commerce/seo-listing/types.ts
|
|
2290
|
-
var
|
|
2303
|
+
var bn = {
|
|
2291
2304
|
title: "Search engine listing",
|
|
2292
2305
|
editLabel: "Edit search listing",
|
|
2293
2306
|
scoreLabel: "SEO score",
|
|
@@ -2320,76 +2333,76 @@ var yn = {
|
|
|
2320
2333
|
url: "Prefer a secure canonical URL.",
|
|
2321
2334
|
keyword: "Use the focus keyword in the title, description, or permalink."
|
|
2322
2335
|
}
|
|
2323
|
-
},
|
|
2336
|
+
}, xn = {
|
|
2324
2337
|
good: "success",
|
|
2325
2338
|
review: "warning",
|
|
2326
2339
|
missing: "destructive"
|
|
2327
|
-
},
|
|
2340
|
+
}, Sn = {
|
|
2328
2341
|
good: "[&_[data-slot=progress-indicator]]:bg-success",
|
|
2329
2342
|
review: "[&_[data-slot=progress-indicator]]:bg-warning",
|
|
2330
2343
|
missing: "[&_[data-slot=progress-indicator]]:bg-destructive"
|
|
2331
|
-
}, Sn = {
|
|
2332
|
-
good: Fe,
|
|
2333
|
-
review: Ke,
|
|
2334
|
-
missing: Re
|
|
2335
2344
|
}, Cn = {
|
|
2345
|
+
good: Pe,
|
|
2346
|
+
review: Ge,
|
|
2347
|
+
missing: Le
|
|
2348
|
+
}, wn = {
|
|
2336
2349
|
good: "text-success",
|
|
2337
2350
|
review: "text-warning-accent",
|
|
2338
2351
|
missing: "text-destructive"
|
|
2339
2352
|
};
|
|
2340
|
-
function
|
|
2353
|
+
function Tn(e) {
|
|
2341
2354
|
return e.replace(/^\/+|\/+$/g, "");
|
|
2342
2355
|
}
|
|
2343
|
-
function
|
|
2344
|
-
let r =
|
|
2356
|
+
function En(e, t, n) {
|
|
2357
|
+
let r = $(n).split("/").filter(Boolean);
|
|
2345
2358
|
return [
|
|
2346
2359
|
e,
|
|
2347
|
-
...t.map(
|
|
2360
|
+
...t.map(Tn).filter(Boolean),
|
|
2348
2361
|
...r
|
|
2349
2362
|
].filter(Boolean);
|
|
2350
2363
|
}
|
|
2351
|
-
function
|
|
2364
|
+
function Dn(e, t, n) {
|
|
2352
2365
|
if (!e.trim()) return;
|
|
2353
|
-
let r = e.replace(/\/+$/g, ""), i = [...t.map(
|
|
2366
|
+
let r = e.replace(/\/+$/g, ""), i = [...t.map(Tn).filter(Boolean), ...$(n).split("/").filter(Boolean)].join("/");
|
|
2354
2367
|
return i ? `${r}/${i}` : r;
|
|
2355
2368
|
}
|
|
2356
|
-
function
|
|
2369
|
+
function On(e, t) {
|
|
2357
2370
|
return e.id === "title" || e.id === "description" ? `${e.actual}/${e.max} ${t.characters} · ${t.targetLabel} ${e.min}-${e.max}` : e.id === "permalink" ? `${e.actual}/${e.max} ${t.characters} ${t.maxLabel}` : t.checkHints[e.id];
|
|
2358
2371
|
}
|
|
2359
|
-
function
|
|
2360
|
-
let i =
|
|
2361
|
-
return /* @__PURE__ */
|
|
2372
|
+
function kn({ check: e, detail: t, strings: n }) {
|
|
2373
|
+
let i = Cn[e.status];
|
|
2374
|
+
return /* @__PURE__ */ q("div", {
|
|
2362
2375
|
className: "seo-listing-card--check min-w-0",
|
|
2363
|
-
children: /* @__PURE__ */
|
|
2376
|
+
children: /* @__PURE__ */ J(f, {
|
|
2364
2377
|
direction: "horizontal",
|
|
2365
2378
|
gap: "md",
|
|
2366
2379
|
align: "start",
|
|
2367
2380
|
wrap: !1,
|
|
2368
|
-
children: [/* @__PURE__ */
|
|
2369
|
-
className: r("seo-listing-card--check-icon size-icon shrink-0 translate-y-0.5",
|
|
2381
|
+
children: [/* @__PURE__ */ q(i, {
|
|
2382
|
+
className: r("seo-listing-card--check-icon size-icon shrink-0 translate-y-0.5", wn[e.status]),
|
|
2370
2383
|
"aria-hidden": "true"
|
|
2371
|
-
}), /* @__PURE__ */
|
|
2384
|
+
}), /* @__PURE__ */ J(f, {
|
|
2372
2385
|
gap: "dense",
|
|
2373
2386
|
className: "min-w-0 flex-1",
|
|
2374
|
-
children: [/* @__PURE__ */
|
|
2387
|
+
children: [/* @__PURE__ */ J(f, {
|
|
2375
2388
|
direction: "horizontal",
|
|
2376
2389
|
gap: "sm",
|
|
2377
2390
|
justify: "between",
|
|
2378
2391
|
wrap: !1,
|
|
2379
|
-
children: [/* @__PURE__ */
|
|
2392
|
+
children: [/* @__PURE__ */ q(o, {
|
|
2380
2393
|
type: "inherit",
|
|
2381
2394
|
tag: "span",
|
|
2382
2395
|
weight: "medium",
|
|
2383
2396
|
className: "truncate",
|
|
2384
2397
|
children: n.checkLabels[e.id]
|
|
2385
|
-
}), /* @__PURE__ */
|
|
2386
|
-
tone:
|
|
2398
|
+
}), /* @__PURE__ */ q(I, {
|
|
2399
|
+
tone: xn[e.status],
|
|
2387
2400
|
size: "sm",
|
|
2388
2401
|
inline: !0,
|
|
2389
2402
|
className: "shrink-0",
|
|
2390
2403
|
children: n.status[e.status]
|
|
2391
2404
|
})]
|
|
2392
|
-
}), /* @__PURE__ */
|
|
2405
|
+
}), /* @__PURE__ */ q(o, {
|
|
2393
2406
|
size: "xs",
|
|
2394
2407
|
type: "secondary",
|
|
2395
2408
|
lineHeight: "snug",
|
|
@@ -2399,75 +2412,75 @@ function On({ check: e, detail: t, strings: n }) {
|
|
|
2399
2412
|
})
|
|
2400
2413
|
});
|
|
2401
2414
|
}
|
|
2402
|
-
function
|
|
2403
|
-
let
|
|
2415
|
+
function An({ siteName: e, baseUrl: t, pathSegments: a = [], permalink: s, title: c, description: u, price: d, keyword: p, score: m, limits: h, showChecks: g = !0, onEdit: y, surface: b = "flat", padding: x = b === "flat" ? "none" : "md", headerDivider: S, className: C, strings: w }) {
|
|
2416
|
+
let T = n(bn, w), E = t?.trim() || T.urlFallback, O = e?.trim() || T.siteFallback, A = c?.trim() || T.titleFallback, j = u?.trim() || T.descriptionFallback, M = m ?? yn({
|
|
2404
2417
|
title: c,
|
|
2405
2418
|
description: u,
|
|
2406
2419
|
permalink: s,
|
|
2407
2420
|
baseUrl: t,
|
|
2408
2421
|
keyword: p,
|
|
2409
2422
|
limits: h
|
|
2410
|
-
}),
|
|
2411
|
-
return /* @__PURE__ */
|
|
2423
|
+
}), N = Dn(E, a, s), ee = En(E, a, s), te = xn[M.status];
|
|
2424
|
+
return /* @__PURE__ */ J(_, {
|
|
2412
2425
|
surface: b,
|
|
2413
2426
|
padding: x,
|
|
2414
2427
|
headerDivider: S,
|
|
2415
|
-
title:
|
|
2416
|
-
titleSuffix: /* @__PURE__ */
|
|
2417
|
-
tone:
|
|
2428
|
+
title: T.title,
|
|
2429
|
+
titleSuffix: /* @__PURE__ */ J(I, {
|
|
2430
|
+
tone: te,
|
|
2418
2431
|
size: "sm",
|
|
2419
2432
|
inline: !0,
|
|
2420
2433
|
className: "shrink-0",
|
|
2421
2434
|
children: [
|
|
2422
|
-
|
|
2435
|
+
M.score,
|
|
2423
2436
|
"/100 ",
|
|
2424
|
-
|
|
2437
|
+
T.status[M.status]
|
|
2425
2438
|
]
|
|
2426
2439
|
}),
|
|
2427
2440
|
className: r("seo-listing-card--component @container/seo-listing-card w-full", C),
|
|
2428
2441
|
contentGap: "2xl",
|
|
2429
|
-
headerAction: y ? /* @__PURE__ */
|
|
2442
|
+
headerAction: y ? /* @__PURE__ */ q(i, {
|
|
2430
2443
|
type: "button",
|
|
2431
2444
|
tone: "secondary",
|
|
2432
2445
|
buttonStyle: "ghost",
|
|
2433
2446
|
size: "sm",
|
|
2434
2447
|
iconOnly: !0,
|
|
2435
|
-
"aria-label":
|
|
2448
|
+
"aria-label": T.editLabel,
|
|
2436
2449
|
onClick: y,
|
|
2437
|
-
children: /* @__PURE__ */
|
|
2450
|
+
children: /* @__PURE__ */ q(He, { className: "size-icon-sm" })
|
|
2438
2451
|
}) : void 0,
|
|
2439
|
-
children: [/* @__PURE__ */
|
|
2452
|
+
children: [/* @__PURE__ */ q("div", {
|
|
2440
2453
|
"data-artwork": "serp",
|
|
2441
2454
|
className: "seo-listing-card--preview min-w-0 rounded-radius border border-border/60 bg-background text-foreground p-surface shadow-xs",
|
|
2442
|
-
children: /* @__PURE__ */
|
|
2455
|
+
children: /* @__PURE__ */ J(f, {
|
|
2443
2456
|
gap: "sm",
|
|
2444
2457
|
className: "min-w-0",
|
|
2445
2458
|
children: [
|
|
2446
|
-
/* @__PURE__ */
|
|
2459
|
+
/* @__PURE__ */ J(f, {
|
|
2447
2460
|
direction: "horizontal",
|
|
2448
2461
|
gap: "sm",
|
|
2449
2462
|
wrap: !1,
|
|
2450
|
-
children: [/* @__PURE__ */
|
|
2463
|
+
children: [/* @__PURE__ */ q(o, {
|
|
2451
2464
|
type: "inherit",
|
|
2452
2465
|
weight: "medium",
|
|
2453
2466
|
className: "truncate",
|
|
2454
|
-
children:
|
|
2455
|
-
}), !!
|
|
2467
|
+
children: O
|
|
2468
|
+
}), !!N && /* @__PURE__ */ q(Be, {
|
|
2456
2469
|
className: "size-icon-sm shrink-0 text-muted-foreground",
|
|
2457
2470
|
"aria-hidden": "true"
|
|
2458
2471
|
})]
|
|
2459
2472
|
}),
|
|
2460
|
-
/* @__PURE__ */
|
|
2473
|
+
/* @__PURE__ */ q("div", {
|
|
2461
2474
|
className: "seo-listing-card--url flex min-w-0 flex-wrap items-center gap-x-space-sm gap-y-space-2xs",
|
|
2462
|
-
children:
|
|
2475
|
+
children: ee.map((e, t) => /* @__PURE__ */ J("span", {
|
|
2463
2476
|
className: "inline-flex min-w-0 items-center gap-space-sm",
|
|
2464
|
-
children: [/* @__PURE__ */
|
|
2477
|
+
children: [/* @__PURE__ */ q(o, {
|
|
2465
2478
|
tag: "span",
|
|
2466
2479
|
size: "xs",
|
|
2467
2480
|
type: "secondary",
|
|
2468
2481
|
className: "truncate",
|
|
2469
2482
|
children: e
|
|
2470
|
-
}), t <
|
|
2483
|
+
}), t < ee.length - 1 && /* @__PURE__ */ q(o, {
|
|
2471
2484
|
tag: "span",
|
|
2472
2485
|
size: "xs",
|
|
2473
2486
|
type: "secondary",
|
|
@@ -2476,151 +2489,157 @@ function kn({ siteName: e, baseUrl: t, pathSegments: a = [], permalink: s, title
|
|
|
2476
2489
|
})]
|
|
2477
2490
|
}, `${e}-${t}`))
|
|
2478
2491
|
}),
|
|
2479
|
-
|
|
2480
|
-
href:
|
|
2492
|
+
N ? /* @__PURE__ */ q(l, {
|
|
2493
|
+
href: N,
|
|
2481
2494
|
size: "base",
|
|
2482
2495
|
lineHeight: "snug",
|
|
2483
2496
|
underline: !1,
|
|
2484
2497
|
className: "seo-listing-card--snippet-title block text-[#1a0dab] dark:text-[#8ab4f8]",
|
|
2485
|
-
children:
|
|
2486
|
-
}) : /* @__PURE__ */
|
|
2498
|
+
children: A
|
|
2499
|
+
}) : /* @__PURE__ */ q(o, {
|
|
2487
2500
|
type: "inherit",
|
|
2488
2501
|
size: "base",
|
|
2489
2502
|
lineHeight: "snug",
|
|
2490
2503
|
className: "seo-listing-card--snippet-title text-[#1a0dab] dark:text-[#8ab4f8]",
|
|
2491
|
-
children:
|
|
2504
|
+
children: A
|
|
2492
2505
|
}),
|
|
2493
|
-
/* @__PURE__ */
|
|
2506
|
+
/* @__PURE__ */ q(o, {
|
|
2494
2507
|
type: "secondary",
|
|
2495
2508
|
lineHeight: "relaxed",
|
|
2496
2509
|
className: "seo-listing-card--description max-w-4xl",
|
|
2497
|
-
children:
|
|
2510
|
+
children: j
|
|
2498
2511
|
}),
|
|
2499
|
-
!!d && /* @__PURE__ */
|
|
2512
|
+
!!d && /* @__PURE__ */ q(k, {
|
|
2500
2513
|
size: "xs",
|
|
2501
2514
|
className: "seo-listing-card--price block tabular-nums",
|
|
2502
2515
|
children: d
|
|
2503
2516
|
})
|
|
2504
2517
|
]
|
|
2505
2518
|
})
|
|
2506
|
-
}), /* @__PURE__ */
|
|
2519
|
+
}), /* @__PURE__ */ J(f, {
|
|
2507
2520
|
gap: "lg",
|
|
2508
2521
|
className: "seo-listing-card--score",
|
|
2509
2522
|
children: [
|
|
2510
|
-
/* @__PURE__ */
|
|
2523
|
+
/* @__PURE__ */ J(f, {
|
|
2511
2524
|
direction: "horizontal",
|
|
2512
2525
|
gap: "lg",
|
|
2513
2526
|
justify: "between",
|
|
2514
2527
|
align: "start",
|
|
2515
2528
|
wrap: !1,
|
|
2516
|
-
children: [/* @__PURE__ */
|
|
2529
|
+
children: [/* @__PURE__ */ J(f, {
|
|
2517
2530
|
gap: "dense",
|
|
2518
2531
|
className: "min-w-0",
|
|
2519
|
-
children: [/* @__PURE__ */
|
|
2532
|
+
children: [/* @__PURE__ */ q(o, {
|
|
2520
2533
|
type: "inherit",
|
|
2521
2534
|
weight: "semibold",
|
|
2522
|
-
children:
|
|
2523
|
-
}), /* @__PURE__ */
|
|
2535
|
+
children: T.scoreLabel
|
|
2536
|
+
}), /* @__PURE__ */ J(k, {
|
|
2524
2537
|
size: "xs",
|
|
2525
2538
|
className: "tabular-nums",
|
|
2526
2539
|
children: [
|
|
2527
|
-
/* @__PURE__ */
|
|
2528
|
-
value:
|
|
2540
|
+
/* @__PURE__ */ q(P, {
|
|
2541
|
+
value: M.checks.length,
|
|
2529
2542
|
size: "xs",
|
|
2530
2543
|
type: "secondary",
|
|
2531
2544
|
align: "left"
|
|
2532
2545
|
}),
|
|
2533
2546
|
" ",
|
|
2534
|
-
|
|
2547
|
+
T.checksLabel
|
|
2535
2548
|
]
|
|
2536
2549
|
})]
|
|
2537
|
-
}), /* @__PURE__ */
|
|
2550
|
+
}), /* @__PURE__ */ J(D, {
|
|
2538
2551
|
type: "inherit",
|
|
2539
2552
|
weight: "semibold",
|
|
2540
2553
|
className: "shrink-0 tabular-nums",
|
|
2541
|
-
children: [
|
|
2554
|
+
children: [M.score, "/100"]
|
|
2542
2555
|
})]
|
|
2543
2556
|
}),
|
|
2544
|
-
/* @__PURE__ */
|
|
2545
|
-
value:
|
|
2546
|
-
"aria-label":
|
|
2547
|
-
className: r("seo-listing-card--score-progress", "[&_[data-slot=progress-track]]:h-space-md",
|
|
2557
|
+
/* @__PURE__ */ q(v, {
|
|
2558
|
+
value: M.score,
|
|
2559
|
+
"aria-label": T.scoreLabel,
|
|
2560
|
+
className: r("seo-listing-card--score-progress", "[&_[data-slot=progress-track]]:h-space-md", Sn[M.status])
|
|
2548
2561
|
}),
|
|
2549
|
-
!!g && /* @__PURE__ */
|
|
2562
|
+
!!g && /* @__PURE__ */ q("div", {
|
|
2550
2563
|
className: "seo-listing-card--checks grid gap-x-space-2xl gap-y-space-lg @xl/seo-listing-card:grid-cols-2",
|
|
2551
|
-
children:
|
|
2564
|
+
children: M.checks.map((e) => /* @__PURE__ */ q(kn, {
|
|
2552
2565
|
check: e,
|
|
2553
|
-
detail:
|
|
2554
|
-
strings:
|
|
2566
|
+
detail: On(e, T),
|
|
2567
|
+
strings: T
|
|
2555
2568
|
}, e.id))
|
|
2556
2569
|
})
|
|
2557
2570
|
]
|
|
2558
2571
|
})]
|
|
2559
2572
|
});
|
|
2560
2573
|
}
|
|
2561
|
-
|
|
2574
|
+
An.displayName = "SeoListingCard";
|
|
2562
2575
|
//#endregion
|
|
2563
2576
|
//#region src/components/blocks/commerce/invoice-mini/types.ts
|
|
2564
|
-
var
|
|
2577
|
+
var jn = {
|
|
2578
|
+
draft: "Draft",
|
|
2565
2579
|
paid: "Paid",
|
|
2566
2580
|
pending: "Pending",
|
|
2567
2581
|
overdue: "Overdue",
|
|
2582
|
+
disputed: "Disputed",
|
|
2568
2583
|
items: (e) => e === 1 ? "1 line item" : `${e} line items`,
|
|
2569
2584
|
due: "Due"
|
|
2570
|
-
},
|
|
2585
|
+
}, Mn = {
|
|
2586
|
+
draft: "secondary",
|
|
2571
2587
|
paid: "success",
|
|
2572
2588
|
pending: "warning",
|
|
2573
|
-
overdue: "destructive"
|
|
2589
|
+
overdue: "destructive",
|
|
2590
|
+
disputed: "warning"
|
|
2574
2591
|
};
|
|
2575
2592
|
//#endregion
|
|
2576
2593
|
//#region src/components/blocks/commerce/invoice-mini/invoice-mini.tsx
|
|
2577
|
-
function
|
|
2578
|
-
let s = t(
|
|
2594
|
+
function Nn({ invoice: e, className: n, strings: i, ...a }) {
|
|
2595
|
+
let s = t(jn, i), c = {
|
|
2596
|
+
draft: s.draft,
|
|
2579
2597
|
paid: s.paid,
|
|
2580
2598
|
pending: s.pending,
|
|
2581
|
-
overdue: s.overdue
|
|
2599
|
+
overdue: s.overdue,
|
|
2600
|
+
disputed: s.disputed
|
|
2582
2601
|
};
|
|
2583
|
-
return /* @__PURE__ */
|
|
2602
|
+
return /* @__PURE__ */ J(f, {
|
|
2584
2603
|
...a,
|
|
2585
2604
|
gap: "md",
|
|
2586
2605
|
"data-component": "invoice-mini",
|
|
2587
2606
|
"data-slot": "invoice-mini",
|
|
2588
2607
|
className: r("invoice-mini--component", n),
|
|
2589
2608
|
children: [
|
|
2590
|
-
/* @__PURE__ */
|
|
2609
|
+
/* @__PURE__ */ J(f, {
|
|
2591
2610
|
direction: "horizontal",
|
|
2592
2611
|
gap: "sm",
|
|
2593
2612
|
wrap: !1,
|
|
2594
|
-
children: [/* @__PURE__ */
|
|
2613
|
+
children: [/* @__PURE__ */ q(A, {
|
|
2595
2614
|
type: "inherit",
|
|
2596
2615
|
className: "min-w-0 truncate tracking-wide",
|
|
2597
2616
|
children: e.invoiceNumber
|
|
2598
|
-
}), /* @__PURE__ */
|
|
2599
|
-
tone:
|
|
2617
|
+
}), /* @__PURE__ */ q(I, {
|
|
2618
|
+
tone: Mn[e.status],
|
|
2600
2619
|
size: "sm",
|
|
2601
2620
|
className: "shrink-0",
|
|
2602
2621
|
children: c[e.status]
|
|
2603
2622
|
})]
|
|
2604
2623
|
}),
|
|
2605
|
-
/* @__PURE__ */
|
|
2624
|
+
/* @__PURE__ */ q(o, {
|
|
2606
2625
|
type: "secondary",
|
|
2607
2626
|
className: "truncate",
|
|
2608
2627
|
children: e.customerName
|
|
2609
2628
|
}),
|
|
2610
|
-
/* @__PURE__ */
|
|
2629
|
+
/* @__PURE__ */ J(f, {
|
|
2611
2630
|
direction: "horizontal",
|
|
2612
2631
|
gap: "lg",
|
|
2613
2632
|
align: "end",
|
|
2614
2633
|
justify: "between",
|
|
2615
2634
|
className: "pt-space-xs",
|
|
2616
|
-
children: [/* @__PURE__ */
|
|
2635
|
+
children: [/* @__PURE__ */ J(f, {
|
|
2617
2636
|
gap: "2xs",
|
|
2618
2637
|
className: "min-w-0",
|
|
2619
|
-
children: [/* @__PURE__ */
|
|
2638
|
+
children: [/* @__PURE__ */ q(o, {
|
|
2620
2639
|
size: "xs",
|
|
2621
2640
|
type: "secondary",
|
|
2622
2641
|
children: s.items(e.lineItemsCount)
|
|
2623
|
-
}), /* @__PURE__ */
|
|
2642
|
+
}), /* @__PURE__ */ J(k, {
|
|
2624
2643
|
size: "xs",
|
|
2625
2644
|
className: "whitespace-nowrap tabular-nums",
|
|
2626
2645
|
children: [
|
|
@@ -2629,7 +2648,7 @@ function Mn({ invoice: e, className: n, strings: i, ...a }) {
|
|
|
2629
2648
|
e.dueDate
|
|
2630
2649
|
]
|
|
2631
2650
|
})]
|
|
2632
|
-
}), /* @__PURE__ */
|
|
2651
|
+
}), /* @__PURE__ */ q(D, {
|
|
2633
2652
|
type: "inherit",
|
|
2634
2653
|
size: "base",
|
|
2635
2654
|
weight: "bold",
|
|
@@ -2641,63 +2660,76 @@ function Mn({ invoice: e, className: n, strings: i, ...a }) {
|
|
|
2641
2660
|
]
|
|
2642
2661
|
});
|
|
2643
2662
|
}
|
|
2644
|
-
|
|
2663
|
+
Nn.displayName = "InvoiceMini";
|
|
2645
2664
|
//#endregion
|
|
2646
2665
|
//#region src/components/blocks/commerce/invoice-header/types.ts
|
|
2647
|
-
var
|
|
2666
|
+
var Pn = {
|
|
2648
2667
|
title: "Invoice",
|
|
2649
2668
|
billFrom: "Bill from",
|
|
2650
2669
|
billTo: "Bill to",
|
|
2651
2670
|
issued: "Issued",
|
|
2652
2671
|
due: "Due",
|
|
2653
2672
|
amountDue: "Amount due",
|
|
2673
|
+
draft: "Draft",
|
|
2654
2674
|
paid: "Paid",
|
|
2655
2675
|
pending: "Pending",
|
|
2656
|
-
overdue: "Overdue"
|
|
2676
|
+
overdue: "Overdue",
|
|
2677
|
+
disputed: "Disputed"
|
|
2657
2678
|
};
|
|
2658
2679
|
//#endregion
|
|
2659
2680
|
//#region src/components/blocks/commerce/invoice-header/invoice-header.tsx
|
|
2660
|
-
function
|
|
2661
|
-
return /* @__PURE__ */
|
|
2681
|
+
function Fn({ eyebrow: e, name: t, location: n, details: r }) {
|
|
2682
|
+
return /* @__PURE__ */ J(f, {
|
|
2662
2683
|
gap: "xs",
|
|
2663
2684
|
className: "invoice-header--party",
|
|
2664
2685
|
children: [
|
|
2665
|
-
/* @__PURE__ */
|
|
2686
|
+
/* @__PURE__ */ q(s, {
|
|
2666
2687
|
tag: "div",
|
|
2667
2688
|
children: e
|
|
2668
2689
|
}),
|
|
2669
|
-
/* @__PURE__ */
|
|
2690
|
+
/* @__PURE__ */ q(o, {
|
|
2670
2691
|
type: "inherit",
|
|
2671
2692
|
weight: "semibold",
|
|
2672
2693
|
lineHeight: "snug",
|
|
2673
2694
|
children: t
|
|
2674
2695
|
}),
|
|
2675
|
-
!!n && /* @__PURE__ */
|
|
2696
|
+
!!n && /* @__PURE__ */ q(o, {
|
|
2676
2697
|
tag: "div",
|
|
2677
2698
|
size: "xs",
|
|
2678
2699
|
type: "secondary",
|
|
2679
2700
|
lineHeight: "snug",
|
|
2680
2701
|
children: n
|
|
2702
|
+
}),
|
|
2703
|
+
!!r && /* @__PURE__ */ q(o, {
|
|
2704
|
+
tag: "div",
|
|
2705
|
+
size: "xs",
|
|
2706
|
+
type: "secondary",
|
|
2707
|
+
lineHeight: "snug",
|
|
2708
|
+
className: "invoice-header--party-details",
|
|
2709
|
+
children: r
|
|
2681
2710
|
})
|
|
2682
2711
|
]
|
|
2683
2712
|
});
|
|
2684
2713
|
}
|
|
2685
|
-
function
|
|
2686
|
-
let
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2714
|
+
function In({ invoiceNumber: e, status: t, statusTone: i, from: a, to: o, issuedDate: s, dueDate: c, amount: l, className: d, strings: p, surface: m = "flat", padding: h = m === "flat" ? "none" : "md", headerDivider: g, ...v }) {
|
|
2715
|
+
let y = n(Pn, p), b = {
|
|
2716
|
+
draft: y.draft,
|
|
2717
|
+
paid: y.paid,
|
|
2718
|
+
pending: y.pending,
|
|
2719
|
+
overdue: y.overdue,
|
|
2720
|
+
disputed: y.disputed
|
|
2721
|
+
}, x = i ?? (t ? Mn[t] : void 0);
|
|
2722
|
+
return /* @__PURE__ */ J(_, {
|
|
2723
|
+
...v,
|
|
2724
|
+
surface: m,
|
|
2725
|
+
padding: h,
|
|
2726
|
+
headerDivider: g,
|
|
2727
|
+
title: y.title,
|
|
2728
|
+
titleSuffix: t ? /* @__PURE__ */ q(I, {
|
|
2729
|
+
tone: x,
|
|
2730
|
+
children: b[t]
|
|
2731
|
+
}) : void 0,
|
|
2732
|
+
description: /* @__PURE__ */ q(A, {
|
|
2701
2733
|
type: "inherit",
|
|
2702
2734
|
className: "invoice-header--number tracking-wide",
|
|
2703
2735
|
children: e
|
|
@@ -2706,37 +2738,39 @@ function Fn({ invoiceNumber: e, status: t, statusTone: i, from: a, to: o, issued
|
|
|
2706
2738
|
"data-component": "invoice-header",
|
|
2707
2739
|
"data-slot": "invoice-header",
|
|
2708
2740
|
className: r("invoice-header--component min-w-0", d),
|
|
2709
|
-
children: [/* @__PURE__ */
|
|
2741
|
+
children: [/* @__PURE__ */ J(u, {
|
|
2710
2742
|
minColumnWidth: "sm",
|
|
2711
2743
|
gap: "xl",
|
|
2712
2744
|
className: "invoice-header--parties",
|
|
2713
|
-
children: [/* @__PURE__ */
|
|
2714
|
-
eyebrow:
|
|
2745
|
+
children: [/* @__PURE__ */ q(Fn, {
|
|
2746
|
+
eyebrow: y.billFrom,
|
|
2715
2747
|
name: a.name,
|
|
2716
|
-
location: a.location
|
|
2717
|
-
|
|
2718
|
-
|
|
2748
|
+
location: a.location,
|
|
2749
|
+
details: a.details
|
|
2750
|
+
}), /* @__PURE__ */ q(Fn, {
|
|
2751
|
+
eyebrow: y.billTo,
|
|
2719
2752
|
name: o.name,
|
|
2720
|
-
location: o.location
|
|
2753
|
+
location: o.location,
|
|
2754
|
+
details: o.details
|
|
2721
2755
|
})]
|
|
2722
|
-
}), /* @__PURE__ */
|
|
2756
|
+
}), /* @__PURE__ */ J(f, {
|
|
2723
2757
|
gap: "sm",
|
|
2724
2758
|
className: "invoice-header--amounts",
|
|
2725
2759
|
children: [
|
|
2726
|
-
!!s && /* @__PURE__ */
|
|
2727
|
-
label:
|
|
2760
|
+
!!s && /* @__PURE__ */ q(K, {
|
|
2761
|
+
label: y.issued,
|
|
2728
2762
|
value: s,
|
|
2729
2763
|
valueWeight: "medium",
|
|
2730
2764
|
valueClassName: "tabular-nums"
|
|
2731
2765
|
}),
|
|
2732
|
-
!!c && /* @__PURE__ */
|
|
2733
|
-
label:
|
|
2766
|
+
!!c && /* @__PURE__ */ q(K, {
|
|
2767
|
+
label: y.due,
|
|
2734
2768
|
value: c,
|
|
2735
2769
|
valueWeight: "medium",
|
|
2736
2770
|
valueClassName: "tabular-nums"
|
|
2737
2771
|
}),
|
|
2738
|
-
/* @__PURE__ */
|
|
2739
|
-
label:
|
|
2772
|
+
/* @__PURE__ */ q(Y, {
|
|
2773
|
+
label: y.amountDue,
|
|
2740
2774
|
amount: l,
|
|
2741
2775
|
total: !0
|
|
2742
2776
|
})
|
|
@@ -2744,23 +2778,26 @@ function Fn({ invoiceNumber: e, status: t, statusTone: i, from: a, to: o, issued
|
|
|
2744
2778
|
})]
|
|
2745
2779
|
});
|
|
2746
2780
|
}
|
|
2747
|
-
|
|
2781
|
+
In.displayName = "InvoiceHeader";
|
|
2748
2782
|
//#endregion
|
|
2749
2783
|
//#region src/components/blocks/commerce/invoice-line-items/types.ts
|
|
2750
|
-
var
|
|
2784
|
+
var Ln = {
|
|
2751
2785
|
item: "Item",
|
|
2752
2786
|
quantity: "Qty",
|
|
2753
2787
|
price: "Price",
|
|
2754
2788
|
subtotal: "Subtotal",
|
|
2755
2789
|
tax: "Tax",
|
|
2756
2790
|
total: "Total"
|
|
2757
|
-
},
|
|
2791
|
+
}, Rn = {
|
|
2792
|
+
card: r("overflow-hidden rounded-surface border border-border bg-card text-card-foreground", b.card),
|
|
2793
|
+
flat: ""
|
|
2794
|
+
}, zn = {
|
|
2758
2795
|
left: "text-left justify-start",
|
|
2759
2796
|
right: "text-right justify-end",
|
|
2760
2797
|
center: "text-center justify-center"
|
|
2761
|
-
};
|
|
2762
|
-
function
|
|
2763
|
-
return /* @__PURE__ */
|
|
2798
|
+
}, Bn = "minmax(3rem,auto)", Vn = "minmax(6.5rem,auto)", Hn = "minmax(7rem,auto)", Un = "grid-cols-[minmax(0,1fr)_auto] @lg/invoice-line-items:grid-cols-[minmax(0,1fr)_minmax(3rem,auto)_minmax(6.5rem,auto)_minmax(7rem,auto)]", Wn = "hidden @lg/invoice-line-items:flex", Gn = "grid-cols-(--invoice-line-items-columns) @lg/invoice-line-items:grid-cols-(--invoice-line-items-wide-columns)", Kn = "@lg/invoice-line-items:hidden", qn = "whitespace-nowrap tabular-nums";
|
|
2799
|
+
function Jn({ amount: e, currency: t, weight: n = "regular" }) {
|
|
2800
|
+
return /* @__PURE__ */ q(te, {
|
|
2764
2801
|
type: "inherit",
|
|
2765
2802
|
amount: e,
|
|
2766
2803
|
currency: t,
|
|
@@ -2769,35 +2806,58 @@ function zn({ amount: e, currency: t, weight: n = "regular" }) {
|
|
|
2769
2806
|
weight: n
|
|
2770
2807
|
});
|
|
2771
2808
|
}
|
|
2772
|
-
function
|
|
2809
|
+
function Yn(e, t) {
|
|
2773
2810
|
return [
|
|
2774
2811
|
{
|
|
2775
2812
|
id: "description",
|
|
2776
2813
|
header: t.item,
|
|
2777
2814
|
width: "minmax(0,1fr)",
|
|
2778
|
-
cell: (
|
|
2779
|
-
|
|
2780
|
-
className: "
|
|
2781
|
-
children:
|
|
2815
|
+
cell: (t) => /* @__PURE__ */ J(f, {
|
|
2816
|
+
gap: "dense",
|
|
2817
|
+
className: "min-w-0",
|
|
2818
|
+
children: [/* @__PURE__ */ q(o, {
|
|
2819
|
+
type: "inherit",
|
|
2820
|
+
className: "break-words",
|
|
2821
|
+
children: t.description
|
|
2822
|
+
}), /* @__PURE__ */ J(o, {
|
|
2823
|
+
tag: "div",
|
|
2824
|
+
size: "xs",
|
|
2825
|
+
type: "secondary",
|
|
2826
|
+
className: r("invoice-line-items--calculation tabular-nums", Kn),
|
|
2827
|
+
children: [
|
|
2828
|
+
/* @__PURE__ */ q(P, {
|
|
2829
|
+
type: "inherit",
|
|
2830
|
+
value: t.qty
|
|
2831
|
+
}),
|
|
2832
|
+
" × ",
|
|
2833
|
+
/* @__PURE__ */ q(Jn, {
|
|
2834
|
+
amount: t.price,
|
|
2835
|
+
currency: e
|
|
2836
|
+
})
|
|
2837
|
+
]
|
|
2838
|
+
})]
|
|
2782
2839
|
})
|
|
2783
2840
|
},
|
|
2784
2841
|
{
|
|
2785
2842
|
id: "qty",
|
|
2786
2843
|
header: t.quantity,
|
|
2787
|
-
width:
|
|
2788
|
-
align: "
|
|
2789
|
-
|
|
2844
|
+
width: Bn,
|
|
2845
|
+
align: "right",
|
|
2846
|
+
headerClassName: Wn,
|
|
2847
|
+
cellClassName: r(qn, Wn),
|
|
2848
|
+
cell: (e) => /* @__PURE__ */ q(P, {
|
|
2790
2849
|
type: "inherit",
|
|
2791
|
-
value: e.qty
|
|
2792
|
-
align: "center"
|
|
2850
|
+
value: e.qty
|
|
2793
2851
|
})
|
|
2794
2852
|
},
|
|
2795
2853
|
{
|
|
2796
2854
|
id: "price",
|
|
2797
2855
|
header: t.price,
|
|
2798
|
-
width:
|
|
2856
|
+
width: Vn,
|
|
2799
2857
|
align: "right",
|
|
2800
|
-
|
|
2858
|
+
headerClassName: Wn,
|
|
2859
|
+
cellClassName: r(qn, Wn),
|
|
2860
|
+
cell: (t) => /* @__PURE__ */ q(Jn, {
|
|
2801
2861
|
amount: t.price,
|
|
2802
2862
|
currency: e
|
|
2803
2863
|
})
|
|
@@ -2805,43 +2865,44 @@ function Bn(e, t) {
|
|
|
2805
2865
|
{
|
|
2806
2866
|
id: "total",
|
|
2807
2867
|
header: t.total,
|
|
2808
|
-
width:
|
|
2868
|
+
width: Hn,
|
|
2809
2869
|
align: "right",
|
|
2810
|
-
|
|
2870
|
+
cellClassName: qn,
|
|
2871
|
+
cell: (t) => /* @__PURE__ */ q(Jn, {
|
|
2811
2872
|
amount: t.total,
|
|
2812
2873
|
currency: e
|
|
2813
2874
|
})
|
|
2814
2875
|
}
|
|
2815
2876
|
];
|
|
2816
2877
|
}
|
|
2817
|
-
function
|
|
2878
|
+
function Xn(e, t, n, r) {
|
|
2818
2879
|
let i = e.reduce((e, t) => e + t.total, 0), a = Math.round(i * t * 100) / 100, o = i + a;
|
|
2819
2880
|
return [
|
|
2820
2881
|
{
|
|
2821
2882
|
label: r.subtotal,
|
|
2822
|
-
value: /* @__PURE__ */
|
|
2883
|
+
value: /* @__PURE__ */ q(Jn, {
|
|
2823
2884
|
amount: i,
|
|
2824
2885
|
currency: n
|
|
2825
2886
|
})
|
|
2826
2887
|
},
|
|
2827
2888
|
{
|
|
2828
|
-
label: /* @__PURE__ */
|
|
2889
|
+
label: /* @__PURE__ */ J(Ae, { children: [
|
|
2829
2890
|
r.tax,
|
|
2830
2891
|
" (",
|
|
2831
|
-
/* @__PURE__ */
|
|
2892
|
+
/* @__PURE__ */ q(ee, {
|
|
2832
2893
|
type: "inherit",
|
|
2833
2894
|
value: t
|
|
2834
2895
|
}),
|
|
2835
2896
|
")"
|
|
2836
2897
|
] }),
|
|
2837
|
-
value: /* @__PURE__ */
|
|
2898
|
+
value: /* @__PURE__ */ q(Jn, {
|
|
2838
2899
|
amount: a,
|
|
2839
2900
|
currency: n
|
|
2840
2901
|
})
|
|
2841
2902
|
},
|
|
2842
2903
|
{
|
|
2843
2904
|
label: r.total,
|
|
2844
|
-
value: /* @__PURE__ */
|
|
2905
|
+
value: /* @__PURE__ */ q(Jn, {
|
|
2845
2906
|
amount: o,
|
|
2846
2907
|
currency: n,
|
|
2847
2908
|
weight: "bold"
|
|
@@ -2850,69 +2911,71 @@ function Vn(e, t, n, r) {
|
|
|
2850
2911
|
}
|
|
2851
2912
|
];
|
|
2852
2913
|
}
|
|
2853
|
-
function
|
|
2854
|
-
let
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2914
|
+
function Zn({ items: t, columns: i, footerRows: a, taxRate: c = .2, currency: l, surface: u = "card", className: d, strings: p }) {
|
|
2915
|
+
let m = n(Ln, p), { defaultCurrency: h } = e(), g = l ?? h ?? "€", _ = u === "flat", v = i ?? Yn(g, m), b = a ?? (i ? [] : Xn(t, c, g, m)), x = (e) => e.map((e) => e.width ?? "1fr").join(" "), S = !!i && v.some((e) => e.wideOnly), C = i ? S ? {
|
|
2916
|
+
"--invoice-line-items-columns": x(v.filter((e) => !e.wideOnly)),
|
|
2917
|
+
"--invoice-line-items-wide-columns": x(v)
|
|
2918
|
+
} : { gridTemplateColumns: x(v) } : void 0, w = _ ? "py-row-y" : "px-row-x py-row-y", T = "col-span-full grid min-w-0 grid-cols-subgrid";
|
|
2919
|
+
return /* @__PURE__ */ J("div", {
|
|
2920
|
+
"data-surface": u,
|
|
2921
|
+
className: r("invoice-line-items--component", "@container/invoice-line-items box-border w-full min-w-0 max-w-full", Rn[u], d),
|
|
2922
|
+
children: [/* @__PURE__ */ q("div", {
|
|
2923
|
+
className: r("invoice-line-items--scroller w-full min-w-0", i && "overflow-x-auto", i && _ && "-mx-space-xs w-auto px-space-xs"),
|
|
2924
|
+
children: /* @__PURE__ */ J("div", {
|
|
2925
|
+
className: r("invoice-line-items--body grid min-w-min gap-x-space-md", !i && Un, S && Gn),
|
|
2926
|
+
style: C,
|
|
2927
|
+
children: [/* @__PURE__ */ q("div", {
|
|
2928
|
+
className: r("invoice-line-items--header", T, w, _ ? "border-b border-border/60" : y.band, !i && "hidden @lg/invoice-line-items:grid"),
|
|
2929
|
+
children: v.map((e) => /* @__PURE__ */ q("div", {
|
|
2930
|
+
className: r("flex min-w-0", zn[e.align ?? "left"], i && e.wideOnly && Wn, e.headerClassName),
|
|
2931
|
+
children: /* @__PURE__ */ q(s, {
|
|
2932
|
+
className: "min-w-0 truncate",
|
|
2933
|
+
children: e.header
|
|
2934
|
+
})
|
|
2935
|
+
}, e.id))
|
|
2936
|
+
}), t.map((e, t) => /* @__PURE__ */ q("div", {
|
|
2937
|
+
className: r("invoice-line-items--row", T, w, _ ? t > 0 && "border-t border-border/60" : t % 2 == 1 && y.wash),
|
|
2938
|
+
children: v.map((n) => /* @__PURE__ */ q("div", {
|
|
2939
|
+
"data-column": n.id,
|
|
2940
|
+
className: r("flex min-w-0 items-start", zn[n.align ?? "left"], i && n.wideOnly && Wn, n.cellClassName),
|
|
2941
|
+
children: n.cell(e, t)
|
|
2942
|
+
}, n.id))
|
|
2943
|
+
}, t))]
|
|
2944
|
+
})
|
|
2945
|
+
}), b.length > 0 && /* @__PURE__ */ J(Ae, { children: [/* @__PURE__ */ q(ae, {}), /* @__PURE__ */ q("div", {
|
|
2946
|
+
className: r("invoice-line-items--footer", _ ? "pt-surface" : "px-row-x py-surface"),
|
|
2947
|
+
children: /* @__PURE__ */ q(f, {
|
|
2948
|
+
gap: "sm",
|
|
2949
|
+
children: b.map((e, t) => /* @__PURE__ */ J(f, {
|
|
2950
|
+
direction: "horizontal",
|
|
2884
2951
|
gap: "sm",
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
children:
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
}, t))
|
|
2904
|
-
})
|
|
2905
|
-
})] })
|
|
2906
|
-
]
|
|
2952
|
+
justify: "between",
|
|
2953
|
+
align: "baseline",
|
|
2954
|
+
className: r(e.emphasis === "total" && "pt-space-md"),
|
|
2955
|
+
children: [/* @__PURE__ */ q(o, {
|
|
2956
|
+
type: e.emphasis === "total" ? "inherit" : "secondary",
|
|
2957
|
+
weight: e.emphasis === "total" ? "bold" : "regular",
|
|
2958
|
+
children: e.label
|
|
2959
|
+
}), Qn(e.value) ? /* @__PURE__ */ q(D, {
|
|
2960
|
+
type: "inherit",
|
|
2961
|
+
weight: e.emphasis === "total" ? "bold" : "regular",
|
|
2962
|
+
children: e.value
|
|
2963
|
+
}) : /* @__PURE__ */ q("div", {
|
|
2964
|
+
className: "invoice-line-items--footer-value shrink-0",
|
|
2965
|
+
children: e.value
|
|
2966
|
+
})]
|
|
2967
|
+
}, t))
|
|
2968
|
+
})
|
|
2969
|
+
})] })]
|
|
2907
2970
|
});
|
|
2908
2971
|
}
|
|
2909
|
-
|
|
2910
|
-
function
|
|
2972
|
+
Zn.displayName = "InvoiceLineItems";
|
|
2973
|
+
function Qn(e) {
|
|
2911
2974
|
return typeof e == "string" || typeof e == "number" || typeof e == "bigint";
|
|
2912
2975
|
}
|
|
2913
2976
|
//#endregion
|
|
2914
2977
|
//#region src/components/blocks/commerce/order-timeline/order-timeline.tsx
|
|
2915
|
-
function
|
|
2978
|
+
function $n({ title: e, description: t, events: n, footerText: i, className: a }) {
|
|
2916
2979
|
let o = n.map((e) => ({
|
|
2917
2980
|
id: e.id,
|
|
2918
2981
|
title: e.title,
|
|
@@ -2920,47 +2983,47 @@ function Wn({ title: e, description: t, events: n, footerText: i, className: a }
|
|
|
2920
2983
|
timestamp: e.timestamp,
|
|
2921
2984
|
status: e.status
|
|
2922
2985
|
}));
|
|
2923
|
-
return /* @__PURE__ */
|
|
2986
|
+
return /* @__PURE__ */ q(z, {
|
|
2924
2987
|
"data-component": "order-timeline",
|
|
2925
2988
|
"data-slot": "order-timeline",
|
|
2926
2989
|
title: e,
|
|
2927
2990
|
description: t,
|
|
2928
2991
|
footerText: i,
|
|
2929
2992
|
className: r("order-timeline--component", a),
|
|
2930
|
-
children: /* @__PURE__ */
|
|
2993
|
+
children: /* @__PURE__ */ q(Ce, { items: o })
|
|
2931
2994
|
});
|
|
2932
2995
|
}
|
|
2933
|
-
|
|
2996
|
+
$n.displayName = "OrderTimeline";
|
|
2934
2997
|
//#endregion
|
|
2935
2998
|
//#region src/components/blocks/commerce/payment-timeline/payment-timeline.tsx
|
|
2936
|
-
function
|
|
2999
|
+
function er({ events: e, className: t }) {
|
|
2937
3000
|
let n = e.map((e, t) => ({
|
|
2938
3001
|
id: `${e.label}-${String(t)}`,
|
|
2939
3002
|
title: e.label,
|
|
2940
3003
|
description: e.date,
|
|
2941
3004
|
icon: e.icon,
|
|
2942
3005
|
status: e.done ? "success" : "pending",
|
|
2943
|
-
children: e.amount ? /* @__PURE__ */
|
|
3006
|
+
children: e.amount ? /* @__PURE__ */ q(D, {
|
|
2944
3007
|
type: "inherit",
|
|
2945
3008
|
weight: "medium",
|
|
2946
3009
|
className: "tabular-nums",
|
|
2947
3010
|
children: e.amount
|
|
2948
3011
|
}) : void 0
|
|
2949
3012
|
}));
|
|
2950
|
-
return /* @__PURE__ */
|
|
3013
|
+
return /* @__PURE__ */ q("div", {
|
|
2951
3014
|
"data-component": "payment-timeline",
|
|
2952
3015
|
"data-slot": "payment-timeline",
|
|
2953
3016
|
className: r("payment-timeline--component min-w-0", t),
|
|
2954
|
-
children: /* @__PURE__ */
|
|
3017
|
+
children: /* @__PURE__ */ q(Ce, {
|
|
2955
3018
|
items: n,
|
|
2956
3019
|
dotSize: "lg"
|
|
2957
3020
|
})
|
|
2958
3021
|
});
|
|
2959
3022
|
}
|
|
2960
|
-
|
|
3023
|
+
er.displayName = "PaymentTimeline";
|
|
2961
3024
|
//#endregion
|
|
2962
3025
|
//#region src/components/blocks/commerce/inventory-section/types.ts
|
|
2963
|
-
var
|
|
3026
|
+
var tr = {
|
|
2964
3027
|
title: "Inventory",
|
|
2965
3028
|
description: "Manage stock tracking, availability, fulfillment, and compliance details.",
|
|
2966
3029
|
status: {
|
|
@@ -3051,48 +3114,48 @@ var Kn = {
|
|
|
3051
3114
|
clearAll: "Clear tags",
|
|
3052
3115
|
summary: (e, t) => `${e} / ${t} tags`
|
|
3053
3116
|
}
|
|
3054
|
-
},
|
|
3117
|
+
}, nr = {
|
|
3055
3118
|
in_stock: "success",
|
|
3056
3119
|
low_stock: "warning",
|
|
3057
3120
|
out_of_stock: "destructive",
|
|
3058
3121
|
untracked: "secondary"
|
|
3059
3122
|
};
|
|
3060
|
-
function
|
|
3123
|
+
function rr(e) {
|
|
3061
3124
|
if (e === void 0 || e.trim() === "") return;
|
|
3062
3125
|
let t = Number(e);
|
|
3063
3126
|
return Number.isFinite(t) ? t : void 0;
|
|
3064
3127
|
}
|
|
3065
|
-
function
|
|
3128
|
+
function ir(e) {
|
|
3066
3129
|
if (!(e.trackQuantity ?? !0)) return "untracked";
|
|
3067
|
-
let t =
|
|
3130
|
+
let t = rr(e.available) ?? 0;
|
|
3068
3131
|
if (t <= 0) return "out_of_stock";
|
|
3069
|
-
let n =
|
|
3132
|
+
let n = rr(e.lowStockThreshold);
|
|
3070
3133
|
return n !== void 0 && t <= n ? "low_stock" : "in_stock";
|
|
3071
3134
|
}
|
|
3072
|
-
function
|
|
3073
|
-
return /* @__PURE__ */
|
|
3135
|
+
function ar({ children: e, className: t }) {
|
|
3136
|
+
return /* @__PURE__ */ q(o, {
|
|
3074
3137
|
type: "inherit",
|
|
3075
3138
|
weight: "semibold",
|
|
3076
3139
|
className: r("inventory-section-card--section-title", t),
|
|
3077
3140
|
children: e
|
|
3078
3141
|
});
|
|
3079
3142
|
}
|
|
3080
|
-
function
|
|
3081
|
-
return /* @__PURE__ */
|
|
3143
|
+
function or({ metric: e }) {
|
|
3144
|
+
return /* @__PURE__ */ J("div", {
|
|
3082
3145
|
className: "inventory-section-card--metric min-w-0",
|
|
3083
3146
|
children: [
|
|
3084
|
-
/* @__PURE__ */
|
|
3147
|
+
/* @__PURE__ */ q(o, {
|
|
3085
3148
|
size: "xs",
|
|
3086
3149
|
type: "secondary",
|
|
3087
3150
|
children: e.label
|
|
3088
3151
|
}),
|
|
3089
|
-
/* @__PURE__ */
|
|
3152
|
+
/* @__PURE__ */ q(D, {
|
|
3090
3153
|
type: "inherit",
|
|
3091
3154
|
weight: "semibold",
|
|
3092
3155
|
className: "tabular-nums",
|
|
3093
3156
|
children: e.value
|
|
3094
3157
|
}),
|
|
3095
|
-
!!e.description && /* @__PURE__ */
|
|
3158
|
+
!!e.description && /* @__PURE__ */ q(o, {
|
|
3096
3159
|
size: "xs",
|
|
3097
3160
|
type: "secondary",
|
|
3098
3161
|
lineHeight: "snug",
|
|
@@ -3101,8 +3164,8 @@ function Xn({ metric: e }) {
|
|
|
3101
3164
|
]
|
|
3102
3165
|
});
|
|
3103
3166
|
}
|
|
3104
|
-
function
|
|
3105
|
-
let
|
|
3167
|
+
function sr({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly: s = !1, visibleSections: c, visibleFields: l, locationOptions: u = [], countryOptions: p = [], tagRecommendations: m, maxTags: h, onGenerateSku: g, onRestock: v, surface: y = "flat", padding: b = y === "flat" ? "none" : "md", headerDivider: x, className: S, strings: C }) {
|
|
3168
|
+
let w = n(tr, C), T = ir(e), E = o || s, D = e.trackQuantity ?? !0, O = e.requiresShipping ?? !0, k = E || !O, A = (e) => c?.[e] !== !1, j = (e) => l?.[e] !== !1, M = (n, r) => {
|
|
3106
3169
|
let i = e[n], a = {
|
|
3107
3170
|
...e,
|
|
3108
3171
|
[n]: r
|
|
@@ -3112,260 +3175,261 @@ function Zn({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3112
3175
|
value: r,
|
|
3113
3176
|
previousValue: i
|
|
3114
3177
|
});
|
|
3115
|
-
},
|
|
3116
|
-
if (!g ||
|
|
3178
|
+
}, N = () => {
|
|
3179
|
+
if (!g || E) return;
|
|
3117
3180
|
let t = g(e);
|
|
3118
|
-
typeof t == "string" &&
|
|
3119
|
-
},
|
|
3181
|
+
typeof t == "string" && M("sku", t);
|
|
3182
|
+
}, ee = [
|
|
3120
3183
|
{
|
|
3121
3184
|
id: "available",
|
|
3122
|
-
label:
|
|
3123
|
-
value:
|
|
3124
|
-
description:
|
|
3185
|
+
label: w.summary.available,
|
|
3186
|
+
value: D ? e.available || "0" : "—",
|
|
3187
|
+
description: D ? void 0 : w.summary.untracked
|
|
3125
3188
|
},
|
|
3126
3189
|
{
|
|
3127
3190
|
id: "committed",
|
|
3128
|
-
label:
|
|
3191
|
+
label: w.summary.committed,
|
|
3129
3192
|
value: e.committed || "0"
|
|
3130
3193
|
},
|
|
3131
3194
|
{
|
|
3132
3195
|
id: "incoming",
|
|
3133
|
-
label:
|
|
3196
|
+
label: w.summary.incoming,
|
|
3134
3197
|
value: e.incoming || "0"
|
|
3135
3198
|
},
|
|
3136
3199
|
{
|
|
3137
3200
|
id: "threshold",
|
|
3138
|
-
label:
|
|
3201
|
+
label: w.summary.threshold,
|
|
3139
3202
|
value: e.lowStockThreshold || "-"
|
|
3140
3203
|
}
|
|
3141
3204
|
];
|
|
3142
|
-
return /* @__PURE__ */
|
|
3143
|
-
surface:
|
|
3144
|
-
padding:
|
|
3205
|
+
return /* @__PURE__ */ J(_, {
|
|
3206
|
+
surface: y,
|
|
3207
|
+
padding: b,
|
|
3208
|
+
headerDivider: x,
|
|
3145
3209
|
gap: "xl",
|
|
3146
|
-
title:
|
|
3147
|
-
description:
|
|
3148
|
-
titleSuffix: /* @__PURE__ */
|
|
3149
|
-
tone:
|
|
3150
|
-
children:
|
|
3210
|
+
title: w.title,
|
|
3211
|
+
description: w.description,
|
|
3212
|
+
titleSuffix: /* @__PURE__ */ q(I, {
|
|
3213
|
+
tone: nr[T],
|
|
3214
|
+
children: w.status[T]
|
|
3151
3215
|
}),
|
|
3152
|
-
headerAction: /* @__PURE__ */
|
|
3216
|
+
headerAction: /* @__PURE__ */ J(f, {
|
|
3153
3217
|
direction: "horizontal",
|
|
3154
3218
|
gap: "sm",
|
|
3155
3219
|
className: "w-full @md/inventory-section-card:w-auto @md/inventory-section-card:justify-end",
|
|
3156
|
-
children: [!!g && /* @__PURE__ */
|
|
3220
|
+
children: [!!g && /* @__PURE__ */ q(i, {
|
|
3157
3221
|
type: "button",
|
|
3158
3222
|
tone: "secondary",
|
|
3159
3223
|
buttonStyle: "outline",
|
|
3160
3224
|
size: "sm",
|
|
3161
|
-
onClick:
|
|
3162
|
-
disabled:
|
|
3163
|
-
children:
|
|
3164
|
-
}), !!v && /* @__PURE__ */
|
|
3225
|
+
onClick: N,
|
|
3226
|
+
disabled: E,
|
|
3227
|
+
children: w.actions.generateSku
|
|
3228
|
+
}), !!v && /* @__PURE__ */ q(i, {
|
|
3165
3229
|
type: "button",
|
|
3166
3230
|
tone: "secondary",
|
|
3167
3231
|
buttonStyle: "ghost",
|
|
3168
3232
|
size: "sm",
|
|
3169
3233
|
onClick: () => v(e),
|
|
3170
|
-
disabled:
|
|
3171
|
-
children:
|
|
3234
|
+
disabled: E,
|
|
3235
|
+
children: w.actions.restock
|
|
3172
3236
|
})]
|
|
3173
3237
|
}),
|
|
3174
|
-
className: r("inventory-section-card--component @container/inventory-section-card w-full",
|
|
3238
|
+
className: r("inventory-section-card--component @container/inventory-section-card w-full", S),
|
|
3175
3239
|
contentGap: "2xl",
|
|
3176
3240
|
children: [
|
|
3177
|
-
!!
|
|
3241
|
+
!!A("summary") && /* @__PURE__ */ q("div", {
|
|
3178
3242
|
className: "inventory-section-card--summary grid min-w-0 grid-cols-1 gap-space-xl @md/inventory-section-card:grid-cols-2 @3xl/inventory-section-card:grid-cols-4",
|
|
3179
|
-
children:
|
|
3243
|
+
children: ee.map((e) => /* @__PURE__ */ q(or, { metric: e }, e.id))
|
|
3180
3244
|
}),
|
|
3181
|
-
!!
|
|
3182
|
-
render: /* @__PURE__ */
|
|
3245
|
+
!!A("identity") && /* @__PURE__ */ J(f, {
|
|
3246
|
+
render: /* @__PURE__ */ q("section", {}),
|
|
3183
3247
|
gap: "md",
|
|
3184
3248
|
className: "inventory-section-card--identity",
|
|
3185
|
-
children: [/* @__PURE__ */
|
|
3186
|
-
label:
|
|
3249
|
+
children: [/* @__PURE__ */ q(ar, { children: w.sections.identity }), /* @__PURE__ */ J(d, { children: [!!j("sku") && /* @__PURE__ */ q(R, {
|
|
3250
|
+
label: w.fields.sku,
|
|
3187
3251
|
error: a?.sku,
|
|
3188
|
-
hint:
|
|
3189
|
-
children: /* @__PURE__ */
|
|
3252
|
+
hint: w.hints.sku,
|
|
3253
|
+
children: /* @__PURE__ */ q(L, {
|
|
3190
3254
|
value: e.sku ?? "",
|
|
3191
|
-
onChange: (e) =>
|
|
3192
|
-
placeholder:
|
|
3193
|
-
disabled:
|
|
3255
|
+
onChange: (e) => M("sku", e.target.value),
|
|
3256
|
+
placeholder: w.placeholders.sku,
|
|
3257
|
+
disabled: E,
|
|
3194
3258
|
invalid: !!a?.sku
|
|
3195
3259
|
})
|
|
3196
|
-
}), !!
|
|
3197
|
-
label:
|
|
3260
|
+
}), !!j("barcode") && /* @__PURE__ */ q(R, {
|
|
3261
|
+
label: w.fields.barcode,
|
|
3198
3262
|
error: a?.barcode,
|
|
3199
|
-
hint:
|
|
3200
|
-
children: /* @__PURE__ */
|
|
3263
|
+
hint: w.hints.barcode,
|
|
3264
|
+
children: /* @__PURE__ */ q(L, {
|
|
3201
3265
|
value: e.barcode ?? "",
|
|
3202
|
-
onChange: (e) =>
|
|
3203
|
-
placeholder:
|
|
3204
|
-
disabled:
|
|
3266
|
+
onChange: (e) => M("barcode", e.target.value),
|
|
3267
|
+
placeholder: w.placeholders.barcode,
|
|
3268
|
+
disabled: E,
|
|
3205
3269
|
invalid: !!a?.barcode
|
|
3206
3270
|
})
|
|
3207
3271
|
})] })]
|
|
3208
3272
|
}),
|
|
3209
|
-
!!
|
|
3210
|
-
render: /* @__PURE__ */
|
|
3273
|
+
!!A("tracking") && /* @__PURE__ */ J(f, {
|
|
3274
|
+
render: /* @__PURE__ */ q("section", {}),
|
|
3211
3275
|
gap: "md",
|
|
3212
3276
|
className: "inventory-section-card--tracking",
|
|
3213
3277
|
children: [
|
|
3214
|
-
/* @__PURE__ */
|
|
3215
|
-
!!
|
|
3216
|
-
label:
|
|
3217
|
-
description:
|
|
3218
|
-
value:
|
|
3219
|
-
onValueChange: (e) =>
|
|
3220
|
-
disabled:
|
|
3278
|
+
/* @__PURE__ */ q(ar, { children: w.sections.tracking }),
|
|
3279
|
+
!!j("trackQuantity") && /* @__PURE__ */ q(se, {
|
|
3280
|
+
label: w.fields.trackQuantity,
|
|
3281
|
+
description: w.hints.available,
|
|
3282
|
+
value: D,
|
|
3283
|
+
onValueChange: (e) => M("trackQuantity", e),
|
|
3284
|
+
disabled: E
|
|
3221
3285
|
}),
|
|
3222
|
-
/* @__PURE__ */
|
|
3286
|
+
/* @__PURE__ */ J("div", {
|
|
3223
3287
|
className: "inventory-section-card--tracking-grid grid min-w-0 grid-cols-1 gap-space-xl @md/inventory-section-card:grid-cols-2 @3xl/inventory-section-card:grid-cols-4",
|
|
3224
3288
|
children: [
|
|
3225
|
-
!!
|
|
3226
|
-
label:
|
|
3289
|
+
!!j("available") && /* @__PURE__ */ q(R, {
|
|
3290
|
+
label: w.fields.available,
|
|
3227
3291
|
error: a?.available,
|
|
3228
|
-
hint:
|
|
3229
|
-
children: /* @__PURE__ */
|
|
3292
|
+
hint: w.hints.available,
|
|
3293
|
+
children: /* @__PURE__ */ q(pe, {
|
|
3230
3294
|
value: e.available ?? "",
|
|
3231
|
-
onChange: (e) =>
|
|
3232
|
-
placeholder:
|
|
3295
|
+
onChange: (e) => M("available", e.target.value),
|
|
3296
|
+
placeholder: w.placeholders.available,
|
|
3233
3297
|
min: 0,
|
|
3234
3298
|
decimalPlaces: 0,
|
|
3235
3299
|
step: 1,
|
|
3236
|
-
disabled:
|
|
3300
|
+
disabled: E || !D,
|
|
3237
3301
|
invalid: !!a?.available
|
|
3238
3302
|
})
|
|
3239
3303
|
}),
|
|
3240
|
-
!!
|
|
3241
|
-
label:
|
|
3304
|
+
!!j("committed") && /* @__PURE__ */ q(R, {
|
|
3305
|
+
label: w.fields.committed,
|
|
3242
3306
|
error: a?.committed,
|
|
3243
|
-
hint:
|
|
3244
|
-
children: /* @__PURE__ */
|
|
3307
|
+
hint: w.hints.committed,
|
|
3308
|
+
children: /* @__PURE__ */ q(pe, {
|
|
3245
3309
|
value: e.committed ?? "",
|
|
3246
|
-
onChange: (e) =>
|
|
3247
|
-
placeholder:
|
|
3310
|
+
onChange: (e) => M("committed", e.target.value),
|
|
3311
|
+
placeholder: w.placeholders.committed,
|
|
3248
3312
|
min: 0,
|
|
3249
3313
|
decimalPlaces: 0,
|
|
3250
3314
|
step: 1,
|
|
3251
|
-
disabled:
|
|
3315
|
+
disabled: E || !D,
|
|
3252
3316
|
invalid: !!a?.committed
|
|
3253
3317
|
})
|
|
3254
3318
|
}),
|
|
3255
|
-
!!
|
|
3256
|
-
label:
|
|
3319
|
+
!!j("incoming") && /* @__PURE__ */ q(R, {
|
|
3320
|
+
label: w.fields.incoming,
|
|
3257
3321
|
error: a?.incoming,
|
|
3258
|
-
hint:
|
|
3259
|
-
children: /* @__PURE__ */
|
|
3322
|
+
hint: w.hints.incoming,
|
|
3323
|
+
children: /* @__PURE__ */ q(pe, {
|
|
3260
3324
|
value: e.incoming ?? "",
|
|
3261
|
-
onChange: (e) =>
|
|
3262
|
-
placeholder:
|
|
3325
|
+
onChange: (e) => M("incoming", e.target.value),
|
|
3326
|
+
placeholder: w.placeholders.incoming,
|
|
3263
3327
|
min: 0,
|
|
3264
3328
|
decimalPlaces: 0,
|
|
3265
3329
|
step: 1,
|
|
3266
|
-
disabled:
|
|
3330
|
+
disabled: E || !D,
|
|
3267
3331
|
invalid: !!a?.incoming
|
|
3268
3332
|
})
|
|
3269
3333
|
}),
|
|
3270
|
-
!!
|
|
3271
|
-
label:
|
|
3334
|
+
!!j("lowStockThreshold") && /* @__PURE__ */ q(R, {
|
|
3335
|
+
label: w.fields.lowStockThreshold,
|
|
3272
3336
|
error: a?.lowStockThreshold,
|
|
3273
|
-
hint:
|
|
3274
|
-
children: /* @__PURE__ */
|
|
3337
|
+
hint: w.hints.lowStockThreshold,
|
|
3338
|
+
children: /* @__PURE__ */ q(pe, {
|
|
3275
3339
|
value: e.lowStockThreshold ?? "",
|
|
3276
|
-
onChange: (e) =>
|
|
3277
|
-
placeholder:
|
|
3340
|
+
onChange: (e) => M("lowStockThreshold", e.target.value),
|
|
3341
|
+
placeholder: w.placeholders.lowStockThreshold,
|
|
3278
3342
|
min: 0,
|
|
3279
3343
|
decimalPlaces: 0,
|
|
3280
3344
|
step: 1,
|
|
3281
|
-
disabled:
|
|
3345
|
+
disabled: E || !D,
|
|
3282
3346
|
invalid: !!a?.lowStockThreshold
|
|
3283
3347
|
})
|
|
3284
3348
|
})
|
|
3285
3349
|
]
|
|
3286
3350
|
}),
|
|
3287
|
-
!!
|
|
3288
|
-
label:
|
|
3351
|
+
!!j("inventoryPolicy") && /* @__PURE__ */ q(R, {
|
|
3352
|
+
label: w.fields.inventoryPolicy,
|
|
3289
3353
|
error: a?.inventoryPolicy,
|
|
3290
|
-
hint:
|
|
3291
|
-
children: /* @__PURE__ */
|
|
3354
|
+
hint: w.hints.inventoryPolicy,
|
|
3355
|
+
children: /* @__PURE__ */ q(le, {
|
|
3292
3356
|
columns: 2,
|
|
3293
3357
|
value: e.inventoryPolicy ?? "deny",
|
|
3294
|
-
onValueChange: (e) =>
|
|
3295
|
-
disabled:
|
|
3358
|
+
onValueChange: (e) => M("inventoryPolicy", e),
|
|
3359
|
+
disabled: E || !D,
|
|
3296
3360
|
invalid: !!a?.inventoryPolicy,
|
|
3297
3361
|
options: [{
|
|
3298
3362
|
value: "deny",
|
|
3299
|
-
label:
|
|
3300
|
-
description:
|
|
3363
|
+
label: w.policyOptions.deny.label,
|
|
3364
|
+
description: w.policyOptions.deny.description
|
|
3301
3365
|
}, {
|
|
3302
3366
|
value: "continue",
|
|
3303
|
-
label:
|
|
3304
|
-
description:
|
|
3367
|
+
label: w.policyOptions.continue.label,
|
|
3368
|
+
description: w.policyOptions.continue.description
|
|
3305
3369
|
}]
|
|
3306
3370
|
})
|
|
3307
3371
|
})
|
|
3308
3372
|
]
|
|
3309
3373
|
}),
|
|
3310
|
-
!!
|
|
3311
|
-
render: /* @__PURE__ */
|
|
3374
|
+
!!A("location") && /* @__PURE__ */ J(f, {
|
|
3375
|
+
render: /* @__PURE__ */ q("section", {}),
|
|
3312
3376
|
gap: "md",
|
|
3313
3377
|
className: "inventory-section-card--location",
|
|
3314
|
-
children: [/* @__PURE__ */
|
|
3315
|
-
label:
|
|
3378
|
+
children: [/* @__PURE__ */ q(ar, { children: w.sections.location }), /* @__PURE__ */ J(d, { children: [!!j("locationId") && /* @__PURE__ */ q(R, {
|
|
3379
|
+
label: w.fields.locationId,
|
|
3316
3380
|
error: a?.locationId,
|
|
3317
|
-
hint:
|
|
3318
|
-
children: u.length > 0 ? /* @__PURE__ */
|
|
3381
|
+
hint: w.hints.locationId,
|
|
3382
|
+
children: u.length > 0 ? /* @__PURE__ */ q(ce, {
|
|
3319
3383
|
value: e.locationId ?? null,
|
|
3320
|
-
onValueChange: (e) =>
|
|
3384
|
+
onValueChange: (e) => M("locationId", e),
|
|
3321
3385
|
options: u,
|
|
3322
|
-
placeholder:
|
|
3323
|
-
disabled:
|
|
3386
|
+
placeholder: w.placeholders.locationId,
|
|
3387
|
+
disabled: E,
|
|
3324
3388
|
invalid: !!a?.locationId,
|
|
3325
3389
|
allowClear: !0
|
|
3326
|
-
}) : /* @__PURE__ */
|
|
3390
|
+
}) : /* @__PURE__ */ q(L, {
|
|
3327
3391
|
value: e.locationId ?? "",
|
|
3328
|
-
onChange: (e) =>
|
|
3329
|
-
placeholder:
|
|
3330
|
-
disabled:
|
|
3392
|
+
onChange: (e) => M("locationId", e.target.value),
|
|
3393
|
+
placeholder: w.placeholders.locationId,
|
|
3394
|
+
disabled: E,
|
|
3331
3395
|
invalid: !!a?.locationId
|
|
3332
3396
|
})
|
|
3333
|
-
}), !!
|
|
3334
|
-
label:
|
|
3397
|
+
}), !!j("binLocation") && /* @__PURE__ */ q(R, {
|
|
3398
|
+
label: w.fields.binLocation,
|
|
3335
3399
|
error: a?.binLocation,
|
|
3336
|
-
hint:
|
|
3337
|
-
children: /* @__PURE__ */
|
|
3400
|
+
hint: w.hints.binLocation,
|
|
3401
|
+
children: /* @__PURE__ */ q(L, {
|
|
3338
3402
|
value: e.binLocation ?? "",
|
|
3339
|
-
onChange: (e) =>
|
|
3340
|
-
placeholder:
|
|
3341
|
-
disabled:
|
|
3403
|
+
onChange: (e) => M("binLocation", e.target.value),
|
|
3404
|
+
placeholder: w.placeholders.binLocation,
|
|
3405
|
+
disabled: E,
|
|
3342
3406
|
invalid: !!a?.binLocation
|
|
3343
3407
|
})
|
|
3344
3408
|
})] })]
|
|
3345
3409
|
}),
|
|
3346
|
-
!!
|
|
3347
|
-
render: /* @__PURE__ */
|
|
3410
|
+
!!A("shipping") && /* @__PURE__ */ J(f, {
|
|
3411
|
+
render: /* @__PURE__ */ q("section", {}),
|
|
3348
3412
|
gap: "md",
|
|
3349
3413
|
className: "inventory-section-card--shipping",
|
|
3350
3414
|
children: [
|
|
3351
|
-
/* @__PURE__ */
|
|
3352
|
-
!!
|
|
3353
|
-
label:
|
|
3354
|
-
description:
|
|
3355
|
-
value:
|
|
3356
|
-
onValueChange: (e) =>
|
|
3357
|
-
disabled:
|
|
3415
|
+
/* @__PURE__ */ q(ar, { children: w.sections.shipping }),
|
|
3416
|
+
!!j("requiresShipping") && /* @__PURE__ */ q(se, {
|
|
3417
|
+
label: w.fields.requiresShipping,
|
|
3418
|
+
description: w.hints.weight,
|
|
3419
|
+
value: O,
|
|
3420
|
+
onValueChange: (e) => M("requiresShipping", e),
|
|
3421
|
+
disabled: E
|
|
3358
3422
|
}),
|
|
3359
|
-
!!
|
|
3360
|
-
label:
|
|
3423
|
+
!!j("weight") && /* @__PURE__ */ q(R, {
|
|
3424
|
+
label: w.fields.weight,
|
|
3361
3425
|
error: a?.weight ?? a?.weightUnit,
|
|
3362
|
-
hint:
|
|
3363
|
-
children: /* @__PURE__ */
|
|
3426
|
+
hint: w.hints.weight,
|
|
3427
|
+
children: /* @__PURE__ */ q(me, {
|
|
3364
3428
|
value: e.weight ?? "",
|
|
3365
3429
|
unit: e.weightUnit ?? "kg",
|
|
3366
|
-
onChange: (e) =>
|
|
3367
|
-
onUnitChange: (e) =>
|
|
3368
|
-
disabled:
|
|
3430
|
+
onChange: (e) => M("weight", e.target.value),
|
|
3431
|
+
onUnitChange: (e) => M("weightUnit", e),
|
|
3432
|
+
disabled: k,
|
|
3369
3433
|
invalid: !!a?.weight || !!a?.weightUnit,
|
|
3370
3434
|
decimalPlaces: 2,
|
|
3371
3435
|
min: 0
|
|
@@ -3373,91 +3437,91 @@ function Zn({ value: e, onValueChange: t, errors: a, disabled: o = !1, readOnly:
|
|
|
3373
3437
|
})
|
|
3374
3438
|
]
|
|
3375
3439
|
}),
|
|
3376
|
-
!!
|
|
3377
|
-
render: /* @__PURE__ */
|
|
3440
|
+
!!A("customs") && /* @__PURE__ */ J(f, {
|
|
3441
|
+
render: /* @__PURE__ */ q("section", {}),
|
|
3378
3442
|
gap: "md",
|
|
3379
3443
|
className: "inventory-section-card--customs",
|
|
3380
|
-
children: [/* @__PURE__ */
|
|
3381
|
-
label:
|
|
3444
|
+
children: [/* @__PURE__ */ q(ar, { children: w.sections.customs }), /* @__PURE__ */ J(d, { children: [!!j("countryOfOrigin") && /* @__PURE__ */ q(R, {
|
|
3445
|
+
label: w.fields.countryOfOrigin,
|
|
3382
3446
|
error: a?.countryOfOrigin,
|
|
3383
|
-
hint:
|
|
3384
|
-
children: p.length > 0 ? /* @__PURE__ */
|
|
3447
|
+
hint: w.hints.countryOfOrigin,
|
|
3448
|
+
children: p.length > 0 ? /* @__PURE__ */ q(ce, {
|
|
3385
3449
|
value: e.countryOfOrigin ?? null,
|
|
3386
|
-
onValueChange: (e) =>
|
|
3450
|
+
onValueChange: (e) => M("countryOfOrigin", e),
|
|
3387
3451
|
options: p,
|
|
3388
|
-
placeholder:
|
|
3389
|
-
disabled:
|
|
3452
|
+
placeholder: w.placeholders.countryOfOrigin,
|
|
3453
|
+
disabled: k,
|
|
3390
3454
|
invalid: !!a?.countryOfOrigin,
|
|
3391
3455
|
allowClear: !0
|
|
3392
|
-
}) : /* @__PURE__ */
|
|
3456
|
+
}) : /* @__PURE__ */ q(L, {
|
|
3393
3457
|
value: e.countryOfOrigin ?? "",
|
|
3394
|
-
onChange: (e) =>
|
|
3395
|
-
placeholder:
|
|
3396
|
-
disabled:
|
|
3458
|
+
onChange: (e) => M("countryOfOrigin", e.target.value),
|
|
3459
|
+
placeholder: w.placeholders.countryOfOrigin,
|
|
3460
|
+
disabled: k,
|
|
3397
3461
|
invalid: !!a?.countryOfOrigin
|
|
3398
3462
|
})
|
|
3399
|
-
}), !!
|
|
3400
|
-
label:
|
|
3463
|
+
}), !!j("hsCode") && /* @__PURE__ */ q(R, {
|
|
3464
|
+
label: w.fields.hsCode,
|
|
3401
3465
|
error: a?.hsCode,
|
|
3402
|
-
hint:
|
|
3403
|
-
children: /* @__PURE__ */
|
|
3466
|
+
hint: w.hints.hsCode,
|
|
3467
|
+
children: /* @__PURE__ */ q(L, {
|
|
3404
3468
|
value: e.hsCode ?? "",
|
|
3405
|
-
onChange: (e) =>
|
|
3406
|
-
placeholder:
|
|
3407
|
-
disabled:
|
|
3469
|
+
onChange: (e) => M("hsCode", e.target.value),
|
|
3470
|
+
placeholder: w.placeholders.hsCode,
|
|
3471
|
+
disabled: k,
|
|
3408
3472
|
invalid: !!a?.hsCode
|
|
3409
3473
|
})
|
|
3410
3474
|
})] })]
|
|
3411
3475
|
}),
|
|
3412
|
-
!!
|
|
3413
|
-
render: /* @__PURE__ */
|
|
3476
|
+
!!A("tags") && !!j("tags") && /* @__PURE__ */ J(f, {
|
|
3477
|
+
render: /* @__PURE__ */ q("section", {}),
|
|
3414
3478
|
gap: "md",
|
|
3415
3479
|
className: "inventory-section-card--tags",
|
|
3416
|
-
children: [/* @__PURE__ */
|
|
3417
|
-
label:
|
|
3480
|
+
children: [/* @__PURE__ */ q(ar, { children: w.sections.tags }), /* @__PURE__ */ q(R, {
|
|
3481
|
+
label: w.fields.tags,
|
|
3418
3482
|
error: a?.tags,
|
|
3419
|
-
hint:
|
|
3420
|
-
children: /* @__PURE__ */
|
|
3483
|
+
hint: w.hints.tags,
|
|
3484
|
+
children: /* @__PURE__ */ q(fe, {
|
|
3421
3485
|
value: e.tags ?? [],
|
|
3422
|
-
onValueChange: (e) =>
|
|
3486
|
+
onValueChange: (e) => M("tags", e),
|
|
3423
3487
|
recommendations: m,
|
|
3424
3488
|
maxTags: h,
|
|
3425
3489
|
showMaxTags: h !== void 0,
|
|
3426
|
-
disabled:
|
|
3490
|
+
disabled: E,
|
|
3427
3491
|
invalid: !!a?.tags,
|
|
3428
|
-
strings:
|
|
3492
|
+
strings: w.tagInput
|
|
3429
3493
|
})
|
|
3430
3494
|
})]
|
|
3431
3495
|
})
|
|
3432
3496
|
]
|
|
3433
3497
|
});
|
|
3434
3498
|
}
|
|
3435
|
-
|
|
3499
|
+
sr.displayName = "InventorySectionCard";
|
|
3436
3500
|
//#endregion
|
|
3437
3501
|
//#region src/components/blocks/commerce/shared/order-status.ts
|
|
3438
|
-
var
|
|
3502
|
+
var cr = {
|
|
3439
3503
|
unfulfilled: "warning",
|
|
3440
3504
|
partiallyFulfilled: "warning",
|
|
3441
3505
|
fulfilled: "success",
|
|
3442
3506
|
scheduled: "info",
|
|
3443
3507
|
onHold: "neutral",
|
|
3444
3508
|
cancelled: "destructive"
|
|
3445
|
-
},
|
|
3509
|
+
}, lr = {
|
|
3446
3510
|
pending: "warning",
|
|
3447
3511
|
authorized: "info",
|
|
3448
3512
|
paid: "success",
|
|
3449
3513
|
partiallyRefunded: "neutral",
|
|
3450
3514
|
refunded: "neutral",
|
|
3451
3515
|
voided: "neutral"
|
|
3452
|
-
},
|
|
3516
|
+
}, ur = {
|
|
3453
3517
|
success: "success",
|
|
3454
3518
|
pending: "warning",
|
|
3455
3519
|
failure: "destructive"
|
|
3456
|
-
},
|
|
3520
|
+
}, dr = /* @__PURE__ */ new Set([
|
|
3457
3521
|
"refund",
|
|
3458
3522
|
"void",
|
|
3459
3523
|
"chargeback"
|
|
3460
|
-
]),
|
|
3524
|
+
]), fr = {
|
|
3461
3525
|
fulfillment: {
|
|
3462
3526
|
unfulfilled: "Unfulfilled",
|
|
3463
3527
|
partiallyFulfilled: "Partially fulfilled",
|
|
@@ -3474,59 +3538,59 @@ var Qn = {
|
|
|
3474
3538
|
refunded: "Refunded",
|
|
3475
3539
|
voided: "Voided"
|
|
3476
3540
|
}
|
|
3477
|
-
},
|
|
3478
|
-
...
|
|
3541
|
+
}, pr = {
|
|
3542
|
+
...fr,
|
|
3479
3543
|
formatOrderNumber: (e) => `#${e}`,
|
|
3480
3544
|
formatOrigin: (e, t) => `${e} from ${t}`,
|
|
3481
3545
|
moreActions: "More actions"
|
|
3482
3546
|
};
|
|
3483
3547
|
//#endregion
|
|
3484
3548
|
//#region src/components/blocks/commerce/order-header/order-header.tsx
|
|
3485
|
-
function
|
|
3486
|
-
let g = n(
|
|
3487
|
-
return /* @__PURE__ */
|
|
3549
|
+
function mr({ orderNumber: e, fulfillmentStatus: t, paymentStatus: i, placedAt: a, source: s, actions: l, renderLink: u, headingTag: d = "h1", className: p, strings: m, ...h }) {
|
|
3550
|
+
let g = n(pr, m), _ = a && s ? g.formatOrigin(a, s) : a || s || void 0;
|
|
3551
|
+
return /* @__PURE__ */ J(f, {
|
|
3488
3552
|
...h,
|
|
3489
3553
|
gap: "xs",
|
|
3490
3554
|
"data-slot": "order-header",
|
|
3491
3555
|
className: r("order-header--component min-w-0", p),
|
|
3492
|
-
children: [/* @__PURE__ */
|
|
3556
|
+
children: [/* @__PURE__ */ J(f, {
|
|
3493
3557
|
direction: "horizontal",
|
|
3494
3558
|
gap: "md",
|
|
3495
3559
|
align: "center",
|
|
3496
3560
|
wrap: !1,
|
|
3497
3561
|
className: "order-header--title-row min-w-0",
|
|
3498
|
-
children: [/* @__PURE__ */
|
|
3562
|
+
children: [/* @__PURE__ */ J(f, {
|
|
3499
3563
|
direction: "horizontal",
|
|
3500
3564
|
gap: "md",
|
|
3501
3565
|
align: "center",
|
|
3502
3566
|
wrap: !0,
|
|
3503
3567
|
className: "order-header--title-line min-w-0 flex-1",
|
|
3504
3568
|
children: [
|
|
3505
|
-
/* @__PURE__ */
|
|
3569
|
+
/* @__PURE__ */ q(c, {
|
|
3506
3570
|
tag: d,
|
|
3507
3571
|
size: "lg",
|
|
3508
3572
|
className: "order-header--number text-inherit",
|
|
3509
3573
|
children: g.formatOrderNumber(e)
|
|
3510
3574
|
}),
|
|
3511
|
-
!!i && /* @__PURE__ */
|
|
3512
|
-
tone:
|
|
3575
|
+
!!i && /* @__PURE__ */ q(I, {
|
|
3576
|
+
tone: lr[i],
|
|
3513
3577
|
"data-axis": "payment",
|
|
3514
3578
|
className: "order-header--payment",
|
|
3515
3579
|
children: g.payment[i]
|
|
3516
3580
|
}),
|
|
3517
|
-
!!t && /* @__PURE__ */
|
|
3518
|
-
tone:
|
|
3581
|
+
!!t && /* @__PURE__ */ q(I, {
|
|
3582
|
+
tone: cr[t],
|
|
3519
3583
|
"data-axis": "fulfillment",
|
|
3520
3584
|
className: "order-header--fulfillment",
|
|
3521
3585
|
children: g.fulfillment[t]
|
|
3522
3586
|
})
|
|
3523
3587
|
]
|
|
3524
|
-
}), !!l?.length && /* @__PURE__ */
|
|
3588
|
+
}), !!l?.length && /* @__PURE__ */ q(C, {
|
|
3525
3589
|
actions: l,
|
|
3526
3590
|
srText: g.moreActions,
|
|
3527
3591
|
renderLink: u
|
|
3528
3592
|
})]
|
|
3529
|
-
}), !!_ && /* @__PURE__ */
|
|
3593
|
+
}), !!_ && /* @__PURE__ */ q(o, {
|
|
3530
3594
|
size: "xs",
|
|
3531
3595
|
type: "secondary",
|
|
3532
3596
|
className: "order-header--origin",
|
|
@@ -3534,58 +3598,58 @@ function ir({ orderNumber: e, fulfillmentStatus: t, paymentStatus: i, placedAt:
|
|
|
3534
3598
|
})]
|
|
3535
3599
|
});
|
|
3536
3600
|
}
|
|
3537
|
-
|
|
3601
|
+
mr.displayName = "OrderHeader";
|
|
3538
3602
|
//#endregion
|
|
3539
3603
|
//#region src/components/blocks/commerce/order-line-item/types.ts
|
|
3540
|
-
var
|
|
3604
|
+
var hr = { formatUnitPrice: (e, t) => `${e} × ${t}` };
|
|
3541
3605
|
//#endregion
|
|
3542
3606
|
//#region src/components/blocks/commerce/order-line-item/order-line-item.tsx
|
|
3543
|
-
function
|
|
3544
|
-
let v = n(
|
|
3545
|
-
return /* @__PURE__ */
|
|
3607
|
+
function gr({ id: e, title: t, variantTitle: i, sku: a, imageSrc: s, imageAlt: c, unitPrice: l, quantity: u, total: d, properties: p, children: m, className: h, strings: g, ..._ }) {
|
|
3608
|
+
let v = n(hr, g), y = !!i || !!a;
|
|
3609
|
+
return /* @__PURE__ */ q("div", {
|
|
3546
3610
|
..._,
|
|
3547
3611
|
"data-slot": "order-line-item",
|
|
3548
3612
|
"data-line-id": e,
|
|
3549
3613
|
className: r("order-line-item--component @container/order-line-item min-w-0", h),
|
|
3550
|
-
children: /* @__PURE__ */
|
|
3614
|
+
children: /* @__PURE__ */ J("div", {
|
|
3551
3615
|
className: "flex min-w-0 items-start gap-space-lg",
|
|
3552
|
-
children: [/* @__PURE__ */
|
|
3616
|
+
children: [/* @__PURE__ */ q(B, {
|
|
3553
3617
|
variant: "image",
|
|
3554
3618
|
className: "order-line-item--media",
|
|
3555
|
-
children: /* @__PURE__ */
|
|
3619
|
+
children: /* @__PURE__ */ q(Wt, {
|
|
3556
3620
|
src: s,
|
|
3557
3621
|
alt: c,
|
|
3558
3622
|
title: t
|
|
3559
3623
|
})
|
|
3560
|
-
}), /* @__PURE__ */
|
|
3561
|
-
className: "order-line-item--layout grid min-w-0 flex-1 gap-space-sm @md/order-line-item:grid-cols-[minmax(0,1fr)_auto_minmax(5rem,auto)] @md/order-line-item:items-
|
|
3562
|
-
children: [/* @__PURE__ */
|
|
3624
|
+
}), /* @__PURE__ */ J("div", {
|
|
3625
|
+
className: "order-line-item--layout grid min-w-0 flex-1 gap-space-sm @md/order-line-item:grid-cols-[minmax(0,1fr)_auto_minmax(5rem,auto)] @md/order-line-item:items-baseline @md/order-line-item:gap-x-space-xl",
|
|
3626
|
+
children: [/* @__PURE__ */ J(f, {
|
|
3563
3627
|
gap: "xs",
|
|
3564
3628
|
className: "order-line-item--body min-w-0",
|
|
3565
3629
|
children: [
|
|
3566
|
-
/* @__PURE__ */
|
|
3630
|
+
/* @__PURE__ */ q(o, {
|
|
3567
3631
|
type: "inherit",
|
|
3568
3632
|
weight: "medium",
|
|
3569
3633
|
className: "order-line-item--title wrap-anywhere",
|
|
3570
3634
|
children: t
|
|
3571
3635
|
}),
|
|
3572
|
-
!!y && /* @__PURE__ */
|
|
3636
|
+
!!y && /* @__PURE__ */ J(f, {
|
|
3573
3637
|
direction: "horizontal",
|
|
3574
3638
|
gap: "sm",
|
|
3575
3639
|
align: "center",
|
|
3576
3640
|
wrap: !0,
|
|
3577
3641
|
className: "order-line-item--meta",
|
|
3578
|
-
children: [!!i && /* @__PURE__ */
|
|
3642
|
+
children: [!!i && /* @__PURE__ */ q(I, {
|
|
3579
3643
|
tone: "neutral",
|
|
3580
3644
|
size: "sm",
|
|
3581
3645
|
children: i
|
|
3582
|
-
}), !!a && /* @__PURE__ */
|
|
3646
|
+
}), !!a && /* @__PURE__ */ q(A, {
|
|
3583
3647
|
size: "xs",
|
|
3584
3648
|
type: "secondary",
|
|
3585
3649
|
children: a
|
|
3586
3650
|
})]
|
|
3587
3651
|
}),
|
|
3588
|
-
!!p?.length && /* @__PURE__ */
|
|
3652
|
+
!!p?.length && /* @__PURE__ */ q(G, {
|
|
3589
3653
|
layout: "rows",
|
|
3590
3654
|
density: "compact",
|
|
3591
3655
|
className: "order-line-item--properties",
|
|
@@ -3597,13 +3661,13 @@ function or({ id: e, title: t, variantTitle: i, sku: a, imageSrc: s, imageAlt: c
|
|
|
3597
3661
|
}),
|
|
3598
3662
|
m
|
|
3599
3663
|
]
|
|
3600
|
-
}), /* @__PURE__ */
|
|
3664
|
+
}), /* @__PURE__ */ J("div", {
|
|
3601
3665
|
className: "order-line-item--figures flex min-w-0 items-baseline justify-between gap-space-md @md/order-line-item:contents",
|
|
3602
|
-
children: [/* @__PURE__ */
|
|
3666
|
+
children: [/* @__PURE__ */ J("span", {
|
|
3603
3667
|
className: "order-line-item--price inline-flex items-baseline gap-space-xs @md/order-line-item:justify-end",
|
|
3604
3668
|
children: [
|
|
3605
|
-
/* @__PURE__ */
|
|
3606
|
-
/* @__PURE__ */
|
|
3669
|
+
/* @__PURE__ */ q(de, { children: v.formatUnitPrice(l, u) }),
|
|
3670
|
+
/* @__PURE__ */ q(o, {
|
|
3607
3671
|
tag: "span",
|
|
3608
3672
|
size: "xs",
|
|
3609
3673
|
type: "secondary",
|
|
@@ -3611,14 +3675,14 @@ function or({ id: e, title: t, variantTitle: i, sku: a, imageSrc: s, imageAlt: c
|
|
|
3611
3675
|
className: "tabular-nums",
|
|
3612
3676
|
children: l
|
|
3613
3677
|
}),
|
|
3614
|
-
/* @__PURE__ */
|
|
3678
|
+
/* @__PURE__ */ q(o, {
|
|
3615
3679
|
tag: "span",
|
|
3616
3680
|
size: "xs",
|
|
3617
3681
|
type: "secondary",
|
|
3618
3682
|
"aria-hidden": "true",
|
|
3619
3683
|
children: "×"
|
|
3620
3684
|
}),
|
|
3621
|
-
/* @__PURE__ */
|
|
3685
|
+
/* @__PURE__ */ q(o, {
|
|
3622
3686
|
type: "inherit",
|
|
3623
3687
|
tag: "span",
|
|
3624
3688
|
size: "xs",
|
|
@@ -3628,7 +3692,7 @@ function or({ id: e, title: t, variantTitle: i, sku: a, imageSrc: s, imageAlt: c
|
|
|
3628
3692
|
children: u
|
|
3629
3693
|
})
|
|
3630
3694
|
]
|
|
3631
|
-
}), /* @__PURE__ */
|
|
3695
|
+
}), /* @__PURE__ */ q(o, {
|
|
3632
3696
|
type: "inherit",
|
|
3633
3697
|
tag: "span",
|
|
3634
3698
|
weight: "medium",
|
|
@@ -3640,100 +3704,100 @@ function or({ id: e, title: t, variantTitle: i, sku: a, imageSrc: s, imageAlt: c
|
|
|
3640
3704
|
})
|
|
3641
3705
|
});
|
|
3642
3706
|
}
|
|
3643
|
-
|
|
3707
|
+
gr.displayName = "OrderLineItem";
|
|
3644
3708
|
//#endregion
|
|
3645
3709
|
//#region src/components/blocks/commerce/fulfillment-group/types.ts
|
|
3646
|
-
var
|
|
3647
|
-
...
|
|
3648
|
-
fulfillment:
|
|
3710
|
+
var _r = {
|
|
3711
|
+
...hr,
|
|
3712
|
+
fulfillment: fr.fulfillment,
|
|
3649
3713
|
formatHeading: (e, t) => `${e} (${t})`,
|
|
3650
3714
|
moreActions: "More actions"
|
|
3651
3715
|
};
|
|
3652
3716
|
//#endregion
|
|
3653
3717
|
//#region src/components/blocks/commerce/fulfillment-group/fulfillment-group.tsx
|
|
3654
|
-
function
|
|
3655
|
-
let
|
|
3656
|
-
return /* @__PURE__ */
|
|
3657
|
-
...
|
|
3658
|
-
surface:
|
|
3659
|
-
padding:
|
|
3718
|
+
function vr({ status: e, location: t, notice: i, noticeIcon: a, items: s, count: c, children: l, actions: u, renderLink: d, surface: p = "card", padding: h = p === "flat" ? "none" : "md", className: g, strings: v, ...y }) {
|
|
3719
|
+
let b = n(_r, v), S = De(() => ({ formatUnitPrice: b.formatUnitPrice }), [b.formatUnitPrice]), T = b.fulfillment[e], E = c ?? s?.length, D = E === void 0 ? T : b.formatHeading(T, E), [O, ...k] = (u ?? []).filter((e) => e.visible !== !1), A = t != null && t !== "", j = i != null && i !== "";
|
|
3720
|
+
return /* @__PURE__ */ q(_, {
|
|
3721
|
+
...y,
|
|
3722
|
+
surface: p,
|
|
3723
|
+
padding: h,
|
|
3660
3724
|
"data-status": e,
|
|
3661
|
-
title: /* @__PURE__ */
|
|
3725
|
+
title: /* @__PURE__ */ q("span", {
|
|
3662
3726
|
role: "heading",
|
|
3663
3727
|
"aria-level": 2,
|
|
3664
3728
|
className: "fulfillment-group--heading inline-flex max-w-full",
|
|
3665
|
-
children: /* @__PURE__ */
|
|
3666
|
-
tone:
|
|
3667
|
-
children:
|
|
3729
|
+
children: /* @__PURE__ */ q(I, {
|
|
3730
|
+
tone: cr[e],
|
|
3731
|
+
children: D
|
|
3668
3732
|
})
|
|
3669
3733
|
}),
|
|
3670
|
-
description:
|
|
3734
|
+
description: A || j ? /* @__PURE__ */ J(f, {
|
|
3671
3735
|
gap: "2xs",
|
|
3672
3736
|
className: "fulfillment-group--context",
|
|
3673
|
-
children: [!!
|
|
3737
|
+
children: [!!A && /* @__PURE__ */ q(o, {
|
|
3674
3738
|
tag: "div",
|
|
3675
3739
|
type: "secondary",
|
|
3676
3740
|
className: "fulfillment-group--location",
|
|
3677
3741
|
children: t
|
|
3678
|
-
}), !!
|
|
3742
|
+
}), !!j && /* @__PURE__ */ J(f, {
|
|
3679
3743
|
direction: "horizontal",
|
|
3680
3744
|
gap: "sm",
|
|
3681
3745
|
align: "center",
|
|
3682
3746
|
wrap: !1,
|
|
3683
3747
|
className: "fulfillment-group--notice text-muted-foreground",
|
|
3684
|
-
children: [!!a && /* @__PURE__ */
|
|
3748
|
+
children: [!!a && /* @__PURE__ */ q(a, {
|
|
3685
3749
|
"aria-hidden": "true",
|
|
3686
3750
|
className: "size-icon-sm shrink-0"
|
|
3687
|
-
}), /* @__PURE__ */
|
|
3751
|
+
}), /* @__PURE__ */ q(o, {
|
|
3688
3752
|
tag: "span",
|
|
3689
3753
|
type: "secondary",
|
|
3690
3754
|
children: i
|
|
3691
3755
|
})]
|
|
3692
3756
|
})]
|
|
3693
3757
|
}) : void 0,
|
|
3694
|
-
footerSlot:
|
|
3758
|
+
footerSlot: O ? /* @__PURE__ */ J(f, {
|
|
3695
3759
|
direction: "horizontal",
|
|
3696
|
-
gap:
|
|
3760
|
+
gap: x.commands,
|
|
3697
3761
|
justify: "end",
|
|
3698
3762
|
className: "fulfillment-group--actions",
|
|
3699
|
-
children: [/* @__PURE__ */
|
|
3700
|
-
actions: [
|
|
3701
|
-
renderLink:
|
|
3702
|
-
}),
|
|
3703
|
-
actions:
|
|
3763
|
+
children: [/* @__PURE__ */ q(w, {
|
|
3764
|
+
actions: [O],
|
|
3765
|
+
renderLink: d
|
|
3766
|
+
}), k.length > 0 && /* @__PURE__ */ q(C, {
|
|
3767
|
+
actions: k,
|
|
3704
3768
|
context: "commands",
|
|
3705
|
-
srText:
|
|
3769
|
+
srText: b.moreActions,
|
|
3706
3770
|
buttonProps: { size: "sm" },
|
|
3707
|
-
renderLink:
|
|
3771
|
+
renderLink: d
|
|
3708
3772
|
})]
|
|
3709
3773
|
}) : void 0,
|
|
3710
|
-
className: r("fulfillment-group--component w-full",
|
|
3711
|
-
children: m(
|
|
3774
|
+
className: r("fulfillment-group--component w-full", g),
|
|
3775
|
+
children: m(l) ? /* @__PURE__ */ q("div", {
|
|
3712
3776
|
className: "fulfillment-group--items min-w-0",
|
|
3713
|
-
children:
|
|
3714
|
-
}) : /* @__PURE__ */
|
|
3777
|
+
children: l
|
|
3778
|
+
}) : /* @__PURE__ */ q("ul", {
|
|
3715
3779
|
className: "fulfillment-group--items m-0 min-w-0 list-none p-0",
|
|
3716
|
-
children: (s ?? []).map((e) => /* @__PURE__ */
|
|
3780
|
+
children: (s ?? []).map((e) => /* @__PURE__ */ q("li", {
|
|
3717
3781
|
className: "fulfillment-group--line border-t border-border/60 py-space-lg first:border-t-0 first:pt-0 last:pb-0",
|
|
3718
|
-
children: /* @__PURE__ */
|
|
3782
|
+
children: /* @__PURE__ */ q(gr, {
|
|
3719
3783
|
...e,
|
|
3720
|
-
strings:
|
|
3784
|
+
strings: S
|
|
3721
3785
|
})
|
|
3722
3786
|
}, e.id))
|
|
3723
3787
|
})
|
|
3724
3788
|
});
|
|
3725
3789
|
}
|
|
3726
|
-
|
|
3790
|
+
vr.displayName = "FulfillmentGroup";
|
|
3727
3791
|
//#endregion
|
|
3728
3792
|
//#region src/components/blocks/commerce/order-summary/types.ts
|
|
3729
|
-
var
|
|
3793
|
+
var yr = {
|
|
3730
3794
|
title: "Payment",
|
|
3731
|
-
payment:
|
|
3795
|
+
payment: fr.payment
|
|
3732
3796
|
};
|
|
3733
3797
|
//#endregion
|
|
3734
3798
|
//#region src/components/blocks/commerce/order-summary/order-summary.tsx
|
|
3735
|
-
function
|
|
3736
|
-
return /* @__PURE__ */
|
|
3799
|
+
function br({ line: e, total: t = !1, rollup: n = !1 }) {
|
|
3800
|
+
return /* @__PURE__ */ q(Y, {
|
|
3737
3801
|
label: e.label,
|
|
3738
3802
|
note: e.note,
|
|
3739
3803
|
amount: e.amount,
|
|
@@ -3742,45 +3806,45 @@ function ur({ line: e, total: t = !1, rollup: n = !1 }) {
|
|
|
3742
3806
|
rollup: n
|
|
3743
3807
|
});
|
|
3744
3808
|
}
|
|
3745
|
-
function
|
|
3746
|
-
let p = n(
|
|
3747
|
-
return /* @__PURE__ */
|
|
3809
|
+
function xr({ goods: e, total: t, payments: i, paymentStatus: a, alert: o, surface: s = "flat", padding: c = s === "flat" ? "none" : "md", headerDivider: l, className: u, strings: d, ...f }) {
|
|
3810
|
+
let p = n(yr, d), m = o != null && o !== !1 && o !== "";
|
|
3811
|
+
return /* @__PURE__ */ J(_, {
|
|
3748
3812
|
...f,
|
|
3749
3813
|
surface: s,
|
|
3750
3814
|
padding: c,
|
|
3751
3815
|
headerDivider: l,
|
|
3752
3816
|
title: p.title,
|
|
3753
|
-
titleSuffix: a ? /* @__PURE__ */
|
|
3754
|
-
tone:
|
|
3817
|
+
titleSuffix: a ? /* @__PURE__ */ q(I, {
|
|
3818
|
+
tone: lr[a],
|
|
3755
3819
|
className: "order-summary--status",
|
|
3756
3820
|
children: p.payment[a]
|
|
3757
3821
|
}) : void 0,
|
|
3758
3822
|
contentGap: "xl",
|
|
3759
|
-
contentBottom: m ? /* @__PURE__ */
|
|
3823
|
+
contentBottom: m ? /* @__PURE__ */ J(g, {
|
|
3760
3824
|
tone: "warning",
|
|
3761
3825
|
role: "note",
|
|
3762
3826
|
className: "order-summary--alert",
|
|
3763
|
-
children: [/* @__PURE__ */
|
|
3827
|
+
children: [/* @__PURE__ */ q(Ge, { "aria-hidden": "true" }), /* @__PURE__ */ q(h, { children: o })]
|
|
3764
3828
|
}) : void 0,
|
|
3765
3829
|
"data-slot": "order-summary",
|
|
3766
3830
|
className: r("order-summary--component w-full", u),
|
|
3767
|
-
children: [/* @__PURE__ */
|
|
3831
|
+
children: [/* @__PURE__ */ J(X, {
|
|
3768
3832
|
className: "order-summary--goods",
|
|
3769
|
-
children: [e.map((e, t) => /* @__PURE__ */
|
|
3833
|
+
children: [e.map((e, t) => /* @__PURE__ */ q(br, { line: e }, e.id ?? String(t))), /* @__PURE__ */ q(br, {
|
|
3770
3834
|
line: t,
|
|
3771
3835
|
total: !0,
|
|
3772
3836
|
rollup: e.length > 0
|
|
3773
3837
|
})]
|
|
3774
|
-
}), !!i?.length && /* @__PURE__ */
|
|
3838
|
+
}), !!i?.length && /* @__PURE__ */ q(X, {
|
|
3775
3839
|
className: "order-summary--payments",
|
|
3776
|
-
children: i.map((e, t) => /* @__PURE__ */
|
|
3840
|
+
children: i.map((e, t) => /* @__PURE__ */ q(br, { line: e }, e.id ?? String(t)))
|
|
3777
3841
|
})]
|
|
3778
3842
|
});
|
|
3779
3843
|
}
|
|
3780
|
-
|
|
3844
|
+
xr.displayName = "OrderSummary";
|
|
3781
3845
|
//#endregion
|
|
3782
3846
|
//#region src/components/blocks/commerce/order-transactions/types.ts
|
|
3783
|
-
var
|
|
3847
|
+
var Sr = {
|
|
3784
3848
|
title: "Transactions",
|
|
3785
3849
|
kind: {
|
|
3786
3850
|
authorization: "Authorization",
|
|
@@ -3800,9 +3864,9 @@ var fr = {
|
|
|
3800
3864
|
};
|
|
3801
3865
|
//#endregion
|
|
3802
3866
|
//#region src/components/blocks/commerce/order-transactions/order-transactions.tsx
|
|
3803
|
-
function
|
|
3804
|
-
let u = n(
|
|
3805
|
-
return /* @__PURE__ */
|
|
3867
|
+
function Cr({ transactions: e, surface: t = "flat", padding: i = t === "flat" ? "none" : "md", headerDivider: a, className: s, strings: c, ...l }) {
|
|
3868
|
+
let u = n(Sr, c);
|
|
3869
|
+
return /* @__PURE__ */ q(_, {
|
|
3806
3870
|
...l,
|
|
3807
3871
|
surface: t,
|
|
3808
3872
|
padding: i,
|
|
@@ -3810,53 +3874,53 @@ function pr({ transactions: e, surface: t = "flat", padding: i = t === "flat" ?
|
|
|
3810
3874
|
title: u.title,
|
|
3811
3875
|
"data-slot": "order-transactions",
|
|
3812
3876
|
className: r("order-transactions--component w-full", s),
|
|
3813
|
-
children: e.length === 0 ? /* @__PURE__ */
|
|
3814
|
-
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
}) : /* @__PURE__ */
|
|
3877
|
+
children: e.length === 0 ? /* @__PURE__ */ q(o, {
|
|
3878
|
+
role: "status",
|
|
3879
|
+
type: "secondary",
|
|
3880
|
+
"data-slot": "empty",
|
|
3881
|
+
className: "order-transactions--empty",
|
|
3882
|
+
children: u.empty
|
|
3883
|
+
}) : /* @__PURE__ */ q("ol", {
|
|
3820
3884
|
className: "order-transactions--list m-0 list-none p-0",
|
|
3821
3885
|
children: e.map((e) => {
|
|
3822
|
-
let t =
|
|
3886
|
+
let t = dr.has(e.kind), n = e.status === "failure", r = Qe(e.amount), i = t && !n ? `−${r}` : r, a = [
|
|
3823
3887
|
e.processedAt,
|
|
3824
3888
|
e.method,
|
|
3825
3889
|
e.gateway
|
|
3826
3890
|
].filter((e) => !!e);
|
|
3827
|
-
return /* @__PURE__ */
|
|
3891
|
+
return /* @__PURE__ */ J("li", {
|
|
3828
3892
|
"data-status": e.status,
|
|
3829
3893
|
"data-kind": e.kind,
|
|
3830
3894
|
"data-outgoing": t ? "" : void 0,
|
|
3831
3895
|
className: "order-transactions--row flex min-w-0 items-start gap-space-lg border-t border-border/60 py-row-y-lg first:border-t-0 first:pt-0 last:pb-0",
|
|
3832
|
-
children: [/* @__PURE__ */
|
|
3896
|
+
children: [/* @__PURE__ */ J(f, {
|
|
3833
3897
|
gap: "2xs",
|
|
3834
3898
|
className: "order-transactions--body min-w-0 flex-1",
|
|
3835
3899
|
children: [
|
|
3836
|
-
/* @__PURE__ */
|
|
3900
|
+
/* @__PURE__ */ J(f, {
|
|
3837
3901
|
direction: "horizontal",
|
|
3838
3902
|
gap: "sm",
|
|
3839
3903
|
align: "center",
|
|
3840
3904
|
wrap: !0,
|
|
3841
3905
|
className: "min-w-0",
|
|
3842
|
-
children: [/* @__PURE__ */
|
|
3906
|
+
children: [/* @__PURE__ */ q(o, {
|
|
3843
3907
|
type: "inherit",
|
|
3844
3908
|
tag: "span",
|
|
3845
3909
|
weight: "medium",
|
|
3846
3910
|
children: u.kind[e.kind]
|
|
3847
|
-
}), e.status !== "success" && /* @__PURE__ */
|
|
3848
|
-
tone:
|
|
3911
|
+
}), e.status !== "success" && /* @__PURE__ */ q(I, {
|
|
3912
|
+
tone: ur[e.status],
|
|
3849
3913
|
size: "sm",
|
|
3850
3914
|
className: "order-transactions--status",
|
|
3851
3915
|
children: u.status[e.status]
|
|
3852
3916
|
})]
|
|
3853
3917
|
}),
|
|
3854
|
-
/* @__PURE__ */
|
|
3918
|
+
/* @__PURE__ */ q(f, {
|
|
3855
3919
|
direction: "horizontal",
|
|
3856
3920
|
gap: "md",
|
|
3857
3921
|
wrap: !0,
|
|
3858
3922
|
className: "order-transactions--meta min-w-0",
|
|
3859
|
-
children: a.map((e, t) => /* @__PURE__ */
|
|
3923
|
+
children: a.map((e, t) => /* @__PURE__ */ q(o, {
|
|
3860
3924
|
tag: "span",
|
|
3861
3925
|
size: "xs",
|
|
3862
3926
|
type: "secondary",
|
|
@@ -3864,18 +3928,18 @@ function pr({ transactions: e, surface: t = "flat", padding: i = t === "flat" ?
|
|
|
3864
3928
|
children: e
|
|
3865
3929
|
}, `${String(t)}-${e}`))
|
|
3866
3930
|
}),
|
|
3867
|
-
!!e.reference && /* @__PURE__ */
|
|
3931
|
+
!!e.reference && /* @__PURE__ */ J(o, {
|
|
3868
3932
|
tag: "span",
|
|
3869
3933
|
size: "xs",
|
|
3870
3934
|
type: "secondary",
|
|
3871
3935
|
className: "order-transactions--reference min-w-0 break-all",
|
|
3872
|
-
children: [/* @__PURE__ */
|
|
3936
|
+
children: [/* @__PURE__ */ q(de, { children: `${u.reference}: ` }), /* @__PURE__ */ q(A, {
|
|
3873
3937
|
type: "inherit",
|
|
3874
3938
|
children: e.reference
|
|
3875
3939
|
})]
|
|
3876
3940
|
})
|
|
3877
3941
|
]
|
|
3878
|
-
}), /* @__PURE__ */
|
|
3942
|
+
}), /* @__PURE__ */ q(o, {
|
|
3879
3943
|
tag: "span",
|
|
3880
3944
|
weight: "semibold",
|
|
3881
3945
|
type: n ? "secondary" : "main",
|
|
@@ -3887,10 +3951,10 @@ function pr({ transactions: e, surface: t = "flat", padding: i = t === "flat" ?
|
|
|
3887
3951
|
})
|
|
3888
3952
|
});
|
|
3889
3953
|
}
|
|
3890
|
-
|
|
3954
|
+
Cr.displayName = "OrderTransactions";
|
|
3891
3955
|
//#endregion
|
|
3892
3956
|
//#region src/components/blocks/commerce/order-customer/types.ts
|
|
3893
|
-
var
|
|
3957
|
+
var wr = {
|
|
3894
3958
|
title: "Customer",
|
|
3895
3959
|
shippingAddress: "Shipping address",
|
|
3896
3960
|
billingAddress: "Billing address",
|
|
@@ -3902,103 +3966,114 @@ var mr = {
|
|
|
3902
3966
|
};
|
|
3903
3967
|
//#endregion
|
|
3904
3968
|
//#region src/components/blocks/commerce/order-customer/order-customer.tsx
|
|
3905
|
-
function
|
|
3906
|
-
return /* @__PURE__ */
|
|
3969
|
+
function Tr({ label: e, editLabel: t, address: n, onEdit: a, replacement: c, emptyLabel: l, note: u, className: d }) {
|
|
3970
|
+
return /* @__PURE__ */ J(f, {
|
|
3907
3971
|
gap: "sm",
|
|
3908
|
-
className: r("order-customer--address min-w-0",
|
|
3909
|
-
children: [
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3972
|
+
className: r("order-customer--address min-w-0", d),
|
|
3973
|
+
children: [
|
|
3974
|
+
/* @__PURE__ */ J(f, {
|
|
3975
|
+
direction: "horizontal",
|
|
3976
|
+
gap: "sm",
|
|
3977
|
+
align: "center",
|
|
3978
|
+
justify: "between",
|
|
3979
|
+
wrap: !1,
|
|
3980
|
+
className: "min-h-action-sm",
|
|
3981
|
+
children: [/* @__PURE__ */ q(s, {
|
|
3982
|
+
tag: "div",
|
|
3983
|
+
children: e
|
|
3984
|
+
}), !!a && /* @__PURE__ */ q(i, {
|
|
3985
|
+
type: "button",
|
|
3986
|
+
tone: "secondary",
|
|
3987
|
+
buttonStyle: "ghost",
|
|
3988
|
+
size: "sm",
|
|
3989
|
+
iconOnly: !0,
|
|
3990
|
+
"aria-label": t,
|
|
3991
|
+
onClick: a,
|
|
3992
|
+
className: "order-customer--edit",
|
|
3993
|
+
children: /* @__PURE__ */ q(He, {
|
|
3994
|
+
"aria-hidden": "true",
|
|
3995
|
+
className: "size-icon-sm"
|
|
3996
|
+
})
|
|
3997
|
+
})]
|
|
3998
|
+
}),
|
|
3999
|
+
c ? /* @__PURE__ */ q(o, {
|
|
4000
|
+
type: "secondary",
|
|
4001
|
+
children: c
|
|
4002
|
+
}) : n ? /* @__PURE__ */ q(Lt, { address: n }) : /* @__PURE__ */ q(o, {
|
|
4003
|
+
type: "secondary",
|
|
4004
|
+
children: l
|
|
4005
|
+
}),
|
|
4006
|
+
!!u && /* @__PURE__ */ q(o, {
|
|
3917
4007
|
tag: "div",
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
iconOnly: !0,
|
|
3925
|
-
"aria-label": t,
|
|
3926
|
-
onClick: a,
|
|
3927
|
-
className: "order-customer--edit",
|
|
3928
|
-
children: /* @__PURE__ */ W(Ue, {
|
|
3929
|
-
"aria-hidden": "true",
|
|
3930
|
-
className: "size-icon-sm"
|
|
3931
|
-
})
|
|
3932
|
-
})]
|
|
3933
|
-
}), c ? /* @__PURE__ */ W(o, {
|
|
3934
|
-
type: "secondary",
|
|
3935
|
-
children: c
|
|
3936
|
-
}) : n ? /* @__PURE__ */ W(Lt, { address: n }) : /* @__PURE__ */ W(o, {
|
|
3937
|
-
type: "secondary",
|
|
3938
|
-
children: l
|
|
3939
|
-
})]
|
|
4008
|
+
size: "xs",
|
|
4009
|
+
type: "secondary",
|
|
4010
|
+
className: "order-customer--address-note",
|
|
4011
|
+
children: u
|
|
4012
|
+
})
|
|
4013
|
+
]
|
|
3940
4014
|
});
|
|
3941
4015
|
}
|
|
3942
|
-
function
|
|
3943
|
-
let
|
|
3944
|
-
return /* @__PURE__ */
|
|
3945
|
-
...
|
|
3946
|
-
surface:
|
|
3947
|
-
padding:
|
|
3948
|
-
headerDivider:
|
|
3949
|
-
title:
|
|
4016
|
+
function Er({ name: e, email: t, phone: i, orderCount: a, shippingAddress: o, shippingMethod: s, showShippingAddress: c = !0, billingAddress: l, billingSameAsShipping: d = !1, onOpenCustomer: p, onEditShipping: m, onEditBilling: h, surface: g = "flat", padding: v = g === "flat" ? "none" : "md", headerDivider: y, className: b, strings: x, ...S }) {
|
|
4017
|
+
let C = n(wr, x), w = !!t || !!i;
|
|
4018
|
+
return /* @__PURE__ */ J(_, {
|
|
4019
|
+
...S,
|
|
4020
|
+
surface: g,
|
|
4021
|
+
padding: v,
|
|
4022
|
+
headerDivider: y,
|
|
4023
|
+
title: C.title,
|
|
3950
4024
|
contentGap: "2xl",
|
|
3951
4025
|
"data-slot": "order-customer",
|
|
3952
|
-
className: r("order-customer--component w-full",
|
|
4026
|
+
className: r("order-customer--component w-full", b),
|
|
3953
4027
|
children: [
|
|
3954
|
-
/* @__PURE__ */
|
|
3955
|
-
className: r("order-customer--identity flex-nowrap", !!
|
|
3956
|
-
padding:
|
|
3957
|
-
render:
|
|
4028
|
+
/* @__PURE__ */ q(U, {
|
|
4029
|
+
className: r("order-customer--identity flex-nowrap", !!p && r("-mx-row-x w-auto text-start", E.rowHover)),
|
|
4030
|
+
padding: p ? "default" : "none",
|
|
4031
|
+
render: p ? /* @__PURE__ */ q("button", {
|
|
3958
4032
|
type: "button",
|
|
3959
|
-
onClick:
|
|
4033
|
+
onClick: p
|
|
3960
4034
|
}) : void 0,
|
|
3961
|
-
media: /* @__PURE__ */
|
|
4035
|
+
media: /* @__PURE__ */ q(re, { children: /* @__PURE__ */ q(ne, { children: N(e) }) }),
|
|
3962
4036
|
title: e,
|
|
3963
|
-
description: a === void 0 ? void 0 :
|
|
4037
|
+
description: a === void 0 ? void 0 : C.formatOrderCount(a)
|
|
3964
4038
|
}),
|
|
3965
|
-
!!
|
|
4039
|
+
!!w && /* @__PURE__ */ J(f, {
|
|
3966
4040
|
gap: "xs",
|
|
3967
4041
|
className: "order-customer--contact min-w-0",
|
|
3968
|
-
children: [!!t && /* @__PURE__ */
|
|
4042
|
+
children: [!!t && /* @__PURE__ */ q(j, {
|
|
3969
4043
|
value: t,
|
|
3970
4044
|
className: "self-start"
|
|
3971
|
-
}), !!i && /* @__PURE__ */
|
|
4045
|
+
}), !!i && /* @__PURE__ */ q(O, {
|
|
3972
4046
|
value: i,
|
|
3973
4047
|
className: "self-start"
|
|
3974
4048
|
})]
|
|
3975
4049
|
}),
|
|
3976
|
-
/* @__PURE__ */
|
|
4050
|
+
/* @__PURE__ */ J(u, {
|
|
3977
4051
|
minColumnWidth: "sm",
|
|
3978
4052
|
gap: "xl",
|
|
3979
4053
|
className: "order-customer--addresses",
|
|
3980
|
-
children: [/* @__PURE__ */
|
|
3981
|
-
label:
|
|
3982
|
-
editLabel:
|
|
4054
|
+
children: [c && /* @__PURE__ */ q(Tr, {
|
|
4055
|
+
label: C.shippingAddress,
|
|
4056
|
+
editLabel: C.editShipping,
|
|
3983
4057
|
address: o,
|
|
3984
|
-
onEdit:
|
|
3985
|
-
emptyLabel:
|
|
4058
|
+
onEdit: m,
|
|
4059
|
+
emptyLabel: C.noAddress,
|
|
4060
|
+
note: s,
|
|
3986
4061
|
className: "order-customer--shipping"
|
|
3987
|
-
}), /* @__PURE__ */
|
|
3988
|
-
label:
|
|
3989
|
-
editLabel:
|
|
3990
|
-
address:
|
|
3991
|
-
onEdit:
|
|
3992
|
-
replacement:
|
|
3993
|
-
emptyLabel:
|
|
4062
|
+
}), /* @__PURE__ */ q(Tr, {
|
|
4063
|
+
label: C.billingAddress,
|
|
4064
|
+
editLabel: C.editBilling,
|
|
4065
|
+
address: l,
|
|
4066
|
+
onEdit: h,
|
|
4067
|
+
replacement: d ? C.sameAsShipping : void 0,
|
|
4068
|
+
emptyLabel: C.noAddress,
|
|
3994
4069
|
className: "order-customer--billing"
|
|
3995
4070
|
})]
|
|
3996
4071
|
})
|
|
3997
4072
|
]
|
|
3998
4073
|
});
|
|
3999
4074
|
}
|
|
4000
|
-
|
|
4075
|
+
Er.displayName = "OrderCustomer";
|
|
4001
4076
|
//#endregion
|
|
4002
|
-
export { zt as AddressCard,
|
|
4077
|
+
export { zt as AddressCard, Y as AmountRow, Ye as BookingCalendarEventCard, Yt as CartSummary, Jt as CartSummaryCard, Qt as CouponInputCard, cn as DEFAULT_SEO_LISTING_LIMITS, it as DiscountStack, rt as DiscountStackPreview, vr as FulfillmentGroup, xt as GiftcardCard, Dt as InventoryLevel, sr as InventorySectionCard, In as InvoiceHeader, Zn as InvoiceLineItems, Nn as InvoiceMini, Ze as LoyaltyPoints, Er as OrderCustomer, mr as OrderHeader, gr as OrderLineItem, tn as OrderStatusCard, xr as OrderSummary, $n as OrderTimeline, Cr as OrderTransactions, on as PaymentMethod, sn as PaymentMethodCard, er as PaymentTimeline, xe as Receipt, Se as ReceiptItems, It as RefundStatus, Ft as RefundStatusCard, An as SeoListingCard, ct as ShipmentTracking, jt as SubscriptionSummaryCard, X as SummaryPanel, kt as TaxBreakdownCard, qe as UpcomingBookingRow, Tt as VendorProfileCard, Ht as VoucherEntry, yn as calculateSeoListingScore, Rt as defaultAddressCardStrings, Gt as defaultCartSummaryStrings, Xt as defaultCouponInputStrings, tt as defaultDiscountStackStrings, _r as defaultFulfillmentGroupStrings, Et as defaultInventoryLevelStrings, tr as defaultInventorySectionStrings, Pn as defaultInvoiceHeaderStrings, Ln as defaultInvoiceLineItemsStrings, jn as defaultInvoiceMiniStrings, Xe as defaultLoyaltyPointsStrings, wr as defaultOrderCustomerStrings, pr as defaultOrderHeaderStrings, hr as defaultOrderLineItemStrings, $t as defaultOrderStatusStrings, yr as defaultOrderSummaryStrings, Sr as defaultOrderTransactionsStrings, nn as defaultPaymentMethodStrings, Mt as defaultRefundStatusStrings, bn as defaultSeoListingCardStrings, ot as defaultShipmentTrackingStrings, At as defaultSubscriptionSummaryStrings, Ot as defaultTaxBreakdownStrings, St as defaultVendorProfileStrings, Bt as defaultVoucherEntryStrings, cr as fulfillmentStatusTone, $ as getSeoPermalinkPath, mn as getSeoPermalinkSlug, Mn as invoiceStatusTone, lr as paymentStatusTone, ur as transactionStatusTone };
|
|
4003
4078
|
|
|
4004
4079
|
//# sourceMappingURL=commerce.js.map
|