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