@zonos/elements 1.3.233 → 1.3.235
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/dist/cjs/{cart-bc615014.js → cart-22ced7cc.js} +33 -29
- package/dist/cjs/{shouldRenderTaxIdInput-9b8a8de1.js → containsNonLatinChars-2be5129b.js} +0 -23
- package/dist/cjs/{hasInclusivePrice-84145546.js → hasInclusivePrice-ca85cabd.js} +1 -1
- package/dist/cjs/index.cjs.js +11 -7
- package/dist/cjs/invoice-8fd4242c.js +151 -0
- package/dist/cjs/{renderFallback-c2576fbe.js → isCollectMobileTablet-7962c57f.js} +2 -11
- package/dist/cjs/isInvoiceMobileTablet-dde41e4e.js +15 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{translationStore-08d3ff9c.js → localization-8ef6250a.js} +1059 -1
- package/dist/cjs/{paypal-1d6f1a71.js → paypal-4a086f84.js} +7 -8
- package/dist/cjs/placeTestOrder-f25d08ee.js +45 -0
- package/dist/cjs/{placeTestOrder-a5469e40.js → renderCheckoutCurrency-5494e45b.js} +2 -42
- package/dist/cjs/renderFallback-78b54537.js +12 -0
- package/dist/cjs/shouldRenderTaxIdInput-eda13ef8.js +25 -0
- package/dist/cjs/throttle-7dd64984.js +76 -0
- package/dist/cjs/{zonos-address_11.cjs.entry.js → zonos-address-display_9.cjs.entry.js} +62 -668
- package/dist/cjs/zonos-address_4.cjs.entry.js +715 -0
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner_2.cjs.entry.js → zonos-banner.cjs.entry.js} +0 -40
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-empty-state-payment_4.cjs.entry.js → zonos-card_5.cjs.entry.js} +44 -6
- package/dist/cjs/{zonos-cart-items_13.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +75 -92
- package/dist/cjs/zonos-checkout.cjs.entry.js +20 -21
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -6
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +66 -65
- package/dist/cjs/zonos-collect.cjs.entry.js +25 -25
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +39 -10
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -11
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +30 -31
- package/dist/cjs/zonos-hello.cjs.entry.js +7 -8
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +94 -0
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +686 -0
- package/dist/cjs/zonos-invoice.cjs.entry.js +468 -0
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -6
- package/dist/cjs/zonos-link.cjs.entry.js +24 -0
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +5 -5
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/checkout/zonos-invoice/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.css +72 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +87 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.css +90 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +405 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.css +155 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +165 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.css +117 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.js +175 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +368 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.css +71 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +151 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.css +83 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +65 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.css +350 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.js +547 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +45 -4
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/invoice.js +148 -0
- package/dist/collection/components/store/checkout/stripe.js +8 -3
- package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +8 -5
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/initInvoice.js +15 -0
- package/dist/collection/components/utils/checkout/isInvoiceMobileTablet.js +10 -0
- package/dist/collection/scripts/_zonosBase.js +4 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
- package/dist/collection/types/generated/graphql.internal.types.js +239 -5
- package/dist/esm/{cart-14f305b3.js → cart-66aecbb3.js} +9 -5
- package/dist/esm/{shouldRenderTaxIdInput-8bc112bb.js → containsNonLatinChars-2d8810c3.js} +1 -23
- package/dist/esm/{hasInclusivePrice-0eda8ba9.js → hasInclusivePrice-2a1bf474.js} +1 -1
- package/dist/esm/index.js +11 -7
- package/dist/esm/invoice-c7452847.js +146 -0
- package/dist/esm/{renderFallback-dbf1e3ae.js → isCollectMobileTablet-921002b0.js} +3 -11
- package/dist/esm/isInvoiceMobileTablet-1f7b614e.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{translationStore-690c4e04.js → localization-04b05867.js} +1041 -2
- package/dist/esm/{paypal-fded8844.js → paypal-56564874.js} +2 -3
- package/dist/esm/placeTestOrder-6b9eda9e.js +43 -0
- package/dist/esm/{placeTestOrder-2250f719.js → renderCheckoutCurrency-cb808110.js} +3 -42
- package/dist/esm/renderFallback-3f010b48.js +10 -0
- package/dist/esm/shouldRenderTaxIdInput-d45ceeb4.js +23 -0
- package/dist/esm/throttle-ce2432ab.js +74 -0
- package/dist/esm/{zonos-address_11.entry.js → zonos-address-display_9.entry.js} +32 -636
- package/dist/esm/zonos-address_4.entry.js +708 -0
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner_2.entry.js → zonos-banner.entry.js} +1 -40
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-empty-state-payment_4.entry.js → zonos-card_5.entry.js} +44 -7
- package/dist/esm/{zonos-cart-items_13.entry.js → zonos-cart-items_12.entry.js} +15 -31
- package/dist/esm/zonos-checkout.entry.js +3 -4
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -6
- package/dist/esm/zonos-collect-finish_6.entry.js +7 -6
- package/dist/esm/zonos-collect.entry.js +5 -5
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +39 -10
- package/dist/esm/zonos-country-flag.entry.js +1 -2
- package/dist/esm/zonos-country-select_4.entry.js +10 -11
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -7
- package/dist/esm/zonos-hello.entry.js +1 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +89 -0
- package/dist/esm/zonos-invoice-finish_5.entry.js +678 -0
- package/dist/esm/zonos-invoice.entry.js +464 -0
- package/dist/esm/zonos-language-select_2.entry.js +5 -6
- package/dist/esm/zonos-link.entry.js +20 -0
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +5 -5
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/cart-66aecbb3.js +1 -0
- package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-0eda8ba9.js → hasInclusivePrice-2a1bf474.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/invoice-c7452847.js +1 -0
- package/dist/esm-es5/isCollectMobileTablet-921002b0.js +1 -0
- package/dist/esm-es5/isInvoiceMobileTablet-1f7b614e.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-04b05867.js +1 -0
- package/dist/esm-es5/{paypal-fded8844.js → paypal-56564874.js} +1 -1
- package/dist/esm-es5/placeTestOrder-6b9eda9e.js +1 -0
- package/dist/esm-es5/renderCheckoutCurrency-cb808110.js +1 -0
- package/dist/esm-es5/renderFallback-3f010b48.js +1 -0
- package/dist/esm-es5/shouldRenderTaxIdInput-d45ceeb4.js +1 -0
- package/dist/esm-es5/throttle-ce2432ab.js +1 -0
- package/dist/esm-es5/zonos-address-display_9.entry.js +1 -0
- package/dist/esm-es5/zonos-address_4.entry.js +1 -0
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -0
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -0
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -0
- package/dist/esm-es5/zonos-invoice.entry.js +1 -0
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -0
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +356 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.d.ts +10 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.d.ts +50 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.d.ts +28 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.d.ts +7 -0
- package/dist/types/components/checkout/zonos-invoice/zonos-invoice.d.ts +86 -0
- package/dist/types/components/main/zonos-controller.d.ts +4 -0
- package/dist/types/components/store/checkout/invoice.d.ts +19 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initInvoice.d.ts +1 -0
- package/dist/types/components/utils/checkout/isInvoiceMobileTablet.d.ts +4 -0
- package/dist/types/components.d.ts +351 -0
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +4 -0
- package/dist/types/types/checkout/api/PartyInfo.d.ts +21 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +5 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +5 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +285 -8
- package/dist/types/types/generated/graphql.internal.types.ts +367 -10
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-00719e49.entry.js +1 -0
- package/dist/zonos-elements/p-01b0a2e2.js +1 -0
- package/dist/zonos-elements/p-01dada4e.js +1 -0
- package/dist/zonos-elements/p-0c64dbbb.js +1 -0
- package/dist/zonos-elements/p-0cd5bcb3.entry.js +1 -0
- package/dist/zonos-elements/p-0e82fcea.entry.js +1 -0
- package/dist/zonos-elements/p-10316d4d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-0a90dd80.system.entry.js → p-121c60c1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf9d889f.entry.js → p-14314ad3.entry.js} +1 -1
- package/dist/zonos-elements/p-170314a3.js +1 -0
- package/dist/zonos-elements/p-17a09191.entry.js +1 -0
- package/dist/zonos-elements/p-18bc6c7a.entry.js +1 -0
- package/dist/zonos-elements/{p-a25428eb.system.js → p-18d20206.system.js} +2 -2
- package/dist/zonos-elements/p-1a30fe18.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c7b658cb.entry.js → p-1c4d12f0.entry.js} +1 -1
- package/dist/zonos-elements/p-1f3549c6.js +1 -0
- package/dist/zonos-elements/p-2250e585.entry.js +1 -0
- package/dist/zonos-elements/p-248dd596.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5f398c28.entry.js → p-264690d7.entry.js} +1 -1
- package/dist/zonos-elements/p-2670438c.system.js +1 -0
- package/dist/zonos-elements/p-27f6930b.js +1 -0
- package/dist/zonos-elements/{p-eea0eb57.system.entry.js → p-2f869f2c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-30c661b3.system.entry.js +1 -0
- package/dist/zonos-elements/p-34bf7bbe.system.js +1 -0
- package/dist/zonos-elements/p-38913b2f.entry.js +1 -0
- package/dist/zonos-elements/p-3bec13dd.system.js +1 -0
- package/dist/zonos-elements/{p-00ec22b2.entry.js → p-43a22d85.entry.js} +1 -1
- package/dist/zonos-elements/p-44b50260.entry.js +1 -0
- package/dist/zonos-elements/p-48dc96f9.system.entry.js +1 -0
- package/dist/zonos-elements/p-4aa86184.system.entry.js +1 -0
- package/dist/zonos-elements/p-4d594c8e.system.js +1 -0
- package/dist/zonos-elements/p-4ffbb0d6.system.js +1 -0
- package/dist/zonos-elements/{p-452fb638.system.entry.js → p-5062dcf3.system.entry.js} +1 -1
- package/dist/zonos-elements/p-50f31c12.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c5cb2364.system.entry.js → p-57cee1b5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-59a76f73.entry.js +1 -0
- package/dist/zonos-elements/{p-d556c6d1.system.entry.js → p-5afb9260.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-88ea9f82.entry.js → p-6626d240.entry.js} +1 -1
- package/dist/zonos-elements/p-6688473e.entry.js +1 -0
- package/dist/zonos-elements/p-6f23a26a.system.js +1 -0
- package/dist/zonos-elements/{p-82739127.js → p-73c737aa.js} +2 -2
- package/dist/zonos-elements/p-757d4c62.system.entry.js +1 -0
- package/dist/zonos-elements/p-7aa50ef2.entry.js +1 -0
- package/dist/zonos-elements/p-7e17667d.js +1 -0
- package/dist/zonos-elements/p-7e469c5c.entry.js +1 -0
- package/dist/zonos-elements/p-7f91617c.system.entry.js +1 -0
- package/dist/zonos-elements/p-81e3eb5b.js +1 -0
- package/dist/zonos-elements/p-82febf70.system.js +1 -0
- package/dist/zonos-elements/{p-770852bf.system.entry.js → p-836db369.system.entry.js} +1 -1
- package/dist/zonos-elements/p-83b3f824.system.entry.js +1 -0
- package/dist/zonos-elements/p-851011aa.system.entry.js +1 -0
- package/dist/zonos-elements/{p-936b54c1.entry.js → p-865536f0.entry.js} +1 -1
- package/dist/zonos-elements/{p-b1fd1ec2.system.entry.js → p-8792fef2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-890bfc42.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c288c6da.system.entry.js → p-89a5e936.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8af188f8.system.js +1 -0
- package/dist/zonos-elements/p-8d3a62fb.entry.js +1 -0
- package/dist/zonos-elements/{p-00ac999f.system.entry.js → p-8dc025c7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-944d00da.entry.js +1 -0
- package/dist/zonos-elements/p-9479f155.system.js +1 -0
- package/dist/zonos-elements/p-95dc475b.system.js +1 -0
- package/dist/zonos-elements/p-976afc17.system.js +1 -0
- package/dist/zonos-elements/p-9b9bfb6d.entry.js +1 -0
- package/dist/zonos-elements/{p-55e2e4ed.entry.js → p-9f1bd9b8.entry.js} +1 -1
- package/dist/zonos-elements/p-9fa32fdf.js +1 -0
- package/dist/zonos-elements/p-a2a0bf4e.js +1 -0
- package/dist/zonos-elements/p-a610c24e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9b8750f3.entry.js → p-aedd3911.entry.js} +1 -1
- package/dist/zonos-elements/{p-db628e49.system.entry.js → p-b5c31ca4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ba456282.system.entry.js +1 -0
- package/dist/zonos-elements/{p-31af91f0.entry.js → p-bd603c1a.entry.js} +1 -1
- package/dist/zonos-elements/p-c2442878.system.js +1 -1
- package/dist/zonos-elements/p-c8cc20d9.system.js +1 -0
- package/dist/zonos-elements/p-dc5fb21c.js +1 -0
- package/dist/zonos-elements/p-dc94d7eb.js +1 -0
- package/dist/zonos-elements/{p-540cec7e.system.entry.js → p-e9e6bea7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb9ee025.system.js +1 -0
- package/dist/zonos-elements/p-ed8ae947.system.entry.js +1 -0
- package/dist/zonos-elements/p-f1d4d6da.entry.js +1 -0
- package/dist/zonos-elements/p-f1d9dd4e.entry.js +1 -0
- package/dist/zonos-elements/p-f3962950.system.entry.js +1 -0
- package/dist/zonos-elements/p-f4e976ae.entry.js +1 -0
- package/dist/zonos-elements/p-f513b231.entry.js +1 -0
- package/dist/zonos-elements/p-f64207fa.system.entry.js +1 -0
- package/dist/zonos-elements/{p-31975752.entry.js → p-fa322dc1.entry.js} +1 -1
- package/dist/zonos-elements/p-fb9fb873.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/localization-39516612.js +0 -884
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +0 -168
- package/dist/esm/localization-c5029ffc.js +0 -863
- package/dist/esm/zonos-confirm-dialog_2.entry.js +0 -163
- package/dist/esm-es5/cart-14f305b3.js +0 -1
- package/dist/esm-es5/localization-c5029ffc.js +0 -1
- package/dist/esm-es5/placeTestOrder-2250f719.js +0 -1
- package/dist/esm-es5/renderFallback-dbf1e3ae.js +0 -1
- package/dist/esm-es5/shouldRenderTaxIdInput-8bc112bb.js +0 -1
- package/dist/esm-es5/translationStore-690c4e04.js +0 -1
- package/dist/esm-es5/zonos-address_11.entry.js +0 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +0 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +0 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +0 -1
- package/dist/zonos-elements/p-03ff7b01.system.entry.js +0 -1
- package/dist/zonos-elements/p-100f6a88.system.entry.js +0 -1
- package/dist/zonos-elements/p-143d706b.entry.js +0 -1
- package/dist/zonos-elements/p-14d7489d.js +0 -1
- package/dist/zonos-elements/p-1bfae137.entry.js +0 -1
- package/dist/zonos-elements/p-1d5aa016.system.js +0 -1
- package/dist/zonos-elements/p-1eae4987.entry.js +0 -1
- package/dist/zonos-elements/p-23b45714.system.entry.js +0 -1
- package/dist/zonos-elements/p-2557b96b.js +0 -1
- package/dist/zonos-elements/p-2ca8b037.entry.js +0 -1
- package/dist/zonos-elements/p-2dbcecf4.entry.js +0 -1
- package/dist/zonos-elements/p-316f9052.system.entry.js +0 -1
- package/dist/zonos-elements/p-3185968f.entry.js +0 -1
- package/dist/zonos-elements/p-4e41143a.system.entry.js +0 -1
- package/dist/zonos-elements/p-52b87408.system.entry.js +0 -1
- package/dist/zonos-elements/p-561be3a2.system.js +0 -1
- package/dist/zonos-elements/p-5c680f72.js +0 -1
- package/dist/zonos-elements/p-5f77d19e.js +0 -1
- package/dist/zonos-elements/p-74ca7739.entry.js +0 -1
- package/dist/zonos-elements/p-767a31a8.system.js +0 -1
- package/dist/zonos-elements/p-78a6e775.system.js +0 -1
- package/dist/zonos-elements/p-7c705c76.system.js +0 -1
- package/dist/zonos-elements/p-81ba2820.system.entry.js +0 -1
- package/dist/zonos-elements/p-84078c57.system.js +0 -1
- package/dist/zonos-elements/p-8a23bbf5.js +0 -1
- package/dist/zonos-elements/p-905d2490.entry.js +0 -1
- package/dist/zonos-elements/p-93f2e1ee.system.entry.js +0 -1
- package/dist/zonos-elements/p-a0a4e43d.system.entry.js +0 -1
- package/dist/zonos-elements/p-a2819807.system.entry.js +0 -1
- package/dist/zonos-elements/p-a6e74856.entry.js +0 -1
- package/dist/zonos-elements/p-ae940a99.js +0 -1
- package/dist/zonos-elements/p-b7ea5f4f.system.entry.js +0 -1
- package/dist/zonos-elements/p-c0c458f7.system.entry.js +0 -1
- package/dist/zonos-elements/p-c1ecab92.entry.js +0 -1
- package/dist/zonos-elements/p-c50cc926.entry.js +0 -1
- package/dist/zonos-elements/p-cf765af3.system.js +0 -1
- package/dist/zonos-elements/p-e03e1a62.entry.js +0 -1
- package/dist/zonos-elements/p-e7874318.system.entry.js +0 -1
- package/dist/zonos-elements/p-e8949e7e.entry.js +0 -1
- package/dist/zonos-elements/p-ea0b5d10.system.js +0 -1
- package/dist/zonos-elements/p-eae3462c.entry.js +0 -1
- package/dist/zonos-elements/p-eeb1081e.js +0 -1
- package/dist/zonos-elements/p-f892595d.system.entry.js +0 -1
- package/dist/zonos-elements/p-fd3b46ee.entry.js +0 -1
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-69fa8852.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const translationStore = require('./translationStore-08d3ff9c.js');
|
|
6
|
+
const localization = require('./localization-8ef6250a.js');
|
|
8
7
|
const zonosStore = require('./zonosStore-37a4b4f4.js');
|
|
9
8
|
const classes = require('./classes-b7918f56.js');
|
|
10
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
11
|
-
const hasInclusivePrice = require('./hasInclusivePrice-
|
|
10
|
+
const hasInclusivePrice = require('./hasInclusivePrice-ca85cabd.js');
|
|
12
11
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
13
12
|
const TaxId = require('./TaxId-12acedde.js');
|
|
14
13
|
require('./handleFetch-954f30e1.js');
|
|
@@ -136,7 +135,7 @@ const ZonosHelloDialog = class {
|
|
|
136
135
|
// For GB, if the store doesn't allow low value orders, we would like to tell shopper that duties will always apply as there would be a custom message saying "Orders to United Kingdom must be over .* to ship."
|
|
137
136
|
if (!(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.allowLowValueOrders) &&
|
|
138
137
|
(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode) === 'GB') {
|
|
139
|
-
return
|
|
138
|
+
return localization.translate('Duties will apply to all orders.');
|
|
140
139
|
}
|
|
141
140
|
// Our Robby API spells deminimis wrong here
|
|
142
141
|
const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
|
|
@@ -144,17 +143,17 @@ const ZonosHelloDialog = class {
|
|
|
144
143
|
: null;
|
|
145
144
|
// If deminimis is undefined or null, assume it's $0
|
|
146
145
|
return dutyDeminimis
|
|
147
|
-
?
|
|
146
|
+
? localization.translate('Spend up to [threshold] duty free.', {
|
|
148
147
|
threshold: dutyDeminimis,
|
|
149
148
|
})
|
|
150
|
-
:
|
|
149
|
+
: localization.translate('Duties will apply to all orders.');
|
|
151
150
|
};
|
|
152
151
|
this.getTaxMessage = () => {
|
|
153
152
|
const { countryLandedCost } = localization.localizationStore;
|
|
154
153
|
// For GB, if the store doesn't allow low value orders, we would like to tell shopper that taxes will always apply as there would be a custom message saying "Orders to United Kingdom must be over .* to ship."
|
|
155
154
|
if (!(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.allowLowValueOrders) &&
|
|
156
155
|
(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode) === 'GB') {
|
|
157
|
-
return
|
|
156
|
+
return localization.translate('Taxes will apply to all orders.');
|
|
158
157
|
}
|
|
159
158
|
// Our Robby API spells deminimis wrong here
|
|
160
159
|
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
@@ -162,35 +161,35 @@ const ZonosHelloDialog = class {
|
|
|
162
161
|
: null;
|
|
163
162
|
return taxDeminimis &&
|
|
164
163
|
!this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
|
|
165
|
-
?
|
|
164
|
+
? localization.translate('Spend up to [threshold] tax free.', {
|
|
166
165
|
threshold: taxDeminimis,
|
|
167
166
|
})
|
|
168
|
-
:
|
|
167
|
+
: localization.translate('Taxes will apply to all orders.');
|
|
169
168
|
};
|
|
170
169
|
this.getEuDutyTaxMessage = (landedCost) => {
|
|
171
170
|
return [
|
|
172
|
-
`${
|
|
171
|
+
`${localization.translate('Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
173
172
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
174
173
|
})} ${wrapStringWithLink({
|
|
175
174
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss',
|
|
176
|
-
text:
|
|
175
|
+
text: localization.translate('Learn more.'),
|
|
177
176
|
})}`,
|
|
178
177
|
];
|
|
179
178
|
};
|
|
180
179
|
this.getUkDutyTaxMessage = (landedCost) => {
|
|
181
180
|
if (landedCost.allowLowValueOrders) {
|
|
182
181
|
return [
|
|
183
|
-
`${
|
|
182
|
+
`${localization.translate('Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
184
183
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
185
184
|
})} ${wrapStringWithLink({
|
|
186
185
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss',
|
|
187
|
-
text:
|
|
186
|
+
text: localization.translate('Learn more.'),
|
|
188
187
|
})}`,
|
|
189
188
|
];
|
|
190
189
|
}
|
|
191
190
|
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
192
191
|
return [
|
|
193
|
-
|
|
192
|
+
localization.translate('Orders to [countryName] must be over [threshold] to ship.', {
|
|
194
193
|
countryName: 'United Kingdom',
|
|
195
194
|
threshold: localization.currencyFormat({ amount: dutyDeminimis }),
|
|
196
195
|
}),
|
|
@@ -201,11 +200,11 @@ const ZonosHelloDialog = class {
|
|
|
201
200
|
return [];
|
|
202
201
|
}
|
|
203
202
|
return [
|
|
204
|
-
`${
|
|
203
|
+
`${localization.translate('Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
205
204
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
206
205
|
})} ${wrapStringWithLink({
|
|
207
206
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
|
|
208
|
-
text:
|
|
207
|
+
text: localization.translate('Learn more.'),
|
|
209
208
|
})}`,
|
|
210
209
|
];
|
|
211
210
|
};
|
|
@@ -214,11 +213,11 @@ const ZonosHelloDialog = class {
|
|
|
214
213
|
return null;
|
|
215
214
|
}
|
|
216
215
|
return [
|
|
217
|
-
`${
|
|
216
|
+
`${localization.translate('Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
218
217
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
219
218
|
})} ${wrapStringWithLink({
|
|
220
219
|
href: 'https://zonos.com/docs/guides/country-guides/new-zealand/new-zealand-import-taxes',
|
|
221
|
-
text:
|
|
220
|
+
text: localization.translate('Learn more.'),
|
|
222
221
|
})}`,
|
|
223
222
|
];
|
|
224
223
|
};
|
|
@@ -227,11 +226,11 @@ const ZonosHelloDialog = class {
|
|
|
227
226
|
return null;
|
|
228
227
|
}
|
|
229
228
|
return [
|
|
230
|
-
`${
|
|
229
|
+
`${localization.translate('Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
231
230
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
232
231
|
})} ${wrapStringWithLink({
|
|
233
232
|
href: 'https://zonos.com/docs/guides/country-guides/norway-voec-scheme',
|
|
234
|
-
text:
|
|
233
|
+
text: localization.translate('Learn more.'),
|
|
235
234
|
})}`,
|
|
236
235
|
];
|
|
237
236
|
};
|
|
@@ -240,11 +239,11 @@ const ZonosHelloDialog = class {
|
|
|
240
239
|
return null;
|
|
241
240
|
}
|
|
242
241
|
return [
|
|
243
|
-
`${
|
|
242
|
+
`${localization.translate('Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
244
243
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
245
244
|
})} ${wrapStringWithLink({
|
|
246
245
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/singapore-gst-settings',
|
|
247
|
-
text:
|
|
246
|
+
text: localization.translate('Learn more.'),
|
|
248
247
|
})}`,
|
|
249
248
|
];
|
|
250
249
|
};
|
|
@@ -261,19 +260,19 @@ const ZonosHelloDialog = class {
|
|
|
261
260
|
(taxConfiguration === null || taxConfiguration === void 0 ? void 0 : taxConfiguration.status) === 'ENABLED') {
|
|
262
261
|
return {
|
|
263
262
|
inclusiveType: 'DUTIES_TAXES_AND_FEES',
|
|
264
|
-
message:
|
|
263
|
+
message: localization.translate('Product prices already include duties, taxes and fees. No additional duties, taxes, or fees will be added at checkout.'),
|
|
265
264
|
};
|
|
266
265
|
}
|
|
267
266
|
if ((dutyConfiguration === null || dutyConfiguration === void 0 ? void 0 : dutyConfiguration.status) === 'ENABLED') {
|
|
268
267
|
return {
|
|
269
268
|
inclusiveType: 'DUTIES_FEES',
|
|
270
|
-
message:
|
|
269
|
+
message: localization.translate('Product prices already include duties and fees. No additional duties or fees will be added at checkout.'),
|
|
271
270
|
};
|
|
272
271
|
}
|
|
273
272
|
if ((taxConfiguration === null || taxConfiguration === void 0 ? void 0 : taxConfiguration.status) === 'ENABLED') {
|
|
274
273
|
return {
|
|
275
274
|
inclusiveType: 'TAXES',
|
|
276
|
-
message:
|
|
275
|
+
message: localization.translate('Product prices already include taxes. No additional taxes will be added at checkout.'),
|
|
277
276
|
};
|
|
278
277
|
}
|
|
279
278
|
return null;
|
|
@@ -350,26 +349,26 @@ const ZonosHelloDialog = class {
|
|
|
350
349
|
(this.dialogRef && getHasMoreSpaceOnRight.getHasMoreSpaceOnRight(this.dialogRef));
|
|
351
350
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
352
351
|
const { customMessages } = localization.localizationStore;
|
|
353
|
-
const welcomeMessage =
|
|
352
|
+
const welcomeMessage = localization.translate('Welcome to [storeName]', {
|
|
354
353
|
storeName: zonosStore.zonosStore.organizationName,
|
|
355
354
|
});
|
|
356
355
|
const defaultMessageStr = ((_a = customMessages.find(x => x.pageName === 'hello_default')) === null || _a === void 0 ? void 0 : _a.message) ||
|
|
357
|
-
|
|
356
|
+
localization.translate('Know about duties and taxes before you buy. Shop with confidence!');
|
|
358
357
|
const defaultMessage = formatStringWithLinks.formatStringWithLinks(defaultMessageStr);
|
|
359
358
|
const currentPage = this.getCurrentPageEnum();
|
|
360
359
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
361
|
-
return (index.h(index.Host, { key: '
|
|
360
|
+
return (index.h(index.Host, { key: '11ed48bbde2bad56be9789726660115cca4c3855', class: "zonos--elements" }, index.h("div", { key: 'ecd279d309005b8f222e119725f9c60167891021', class: classes.classes([
|
|
362
361
|
'zonos--hello-dialog',
|
|
363
362
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
364
363
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
365
364
|
!!this.mobileLocationOverride &&
|
|
366
365
|
'zonos--hello-dialog-mobile-override',
|
|
367
366
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
368
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (index.h("div", { key: '
|
|
367
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (index.h("div", { key: '94d205fc69b6121b1267433c5781408665285be5' }, index.h("div", { key: '342cafb1e634043b1f6d5f663d4ff7af4c70f8d9', class: "zonos--hello-dialog-content" }, index.h("zonos-button", { key: 'cbdb975b86b1ff4268d9fb4d266d2efb389deed7', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), index.h("zonos-v-stack", { key: 'f3247b193b881f12acce10d0dbc05b06d1267921', spacing: 24 }, index.h("zonos-country-flag", { key: '719c94e322c6b4ec30e3c2aeb1874816dd5052e9', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), index.h("zonos-v-stack", { key: '45bad14718218a4e89e13cf50cc6c4cf04fb30e1', class: "zonos--hello-dialog-header", spacing: 4 }, index.h("zonos-text", { key: 'e17e42f358d7dd3e85b872e25bfd8429c71cccf6', type: "boldSubheader" }, welcomeMessage), index.h("zonos-text", { key: 'f7dc626a99daa381a029398b0654591a6a7ef4e4', innerHTML: defaultMessage, textColor: "gray-800" })), index.h("zonos-v-stack", { key: 'd3c64e56e515290db8778badf7bbfc575093c3ad', spacing: 8 }, this.restrictedItems.map(item => {
|
|
369
368
|
var _a;
|
|
370
369
|
return item && (index.h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (index.h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
371
|
-
}), index.h("zonos-card", { key: '
|
|
372
|
-
additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), index.h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '
|
|
370
|
+
}), index.h("zonos-card", { key: 'f1c9f532220a65b080581b1dcf70507e7ef3159c', spacing: "12px" }, index.h("zonos-v-stack", { key: '39b12d0cafeb884771c900d25b48338522ebeceb', spacing: 12 }, this.renderHelloMessage(), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
371
|
+
additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), index.h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: 'be2f1edf9a1f1220c0e6c138cafe65eae0fc7ec9', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (index.h("div", { key: '37ca201defd370a60a127dc9fc6058d2724d8473' }, index.h("zonos-country-select", { key: 'f3c004eb15c75566ab133d4742a70b4191925ede', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (index.h("div", { key: 'b9b0ac6125fc30f935e3675a8903044e69d5f5c7' }, index.h("zonos-language-select", { key: 'c4cb6f926840f69cb8e7dd8e10c6435940c4e8c5', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
373
372
|
}
|
|
374
373
|
static get assetsDirs() { return ["assets"]; }
|
|
375
374
|
static get watchers() { return {
|
|
@@ -4,8 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-69fa8852.js');
|
|
6
6
|
const debounce = require('./debounce-815d1517.js');
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const translationStore = require('./translationStore-08d3ff9c.js');
|
|
7
|
+
const localization = require('./localization-8ef6250a.js');
|
|
9
8
|
const zonosStore = require('./zonosStore-37a4b4f4.js');
|
|
10
9
|
const classes = require('./classes-b7918f56.js');
|
|
11
10
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
@@ -157,20 +156,20 @@ const ZonosHello = class {
|
|
|
157
156
|
const isRestrictionPage = zonosStore.zonosStore.currentHelloPage === 'productDetail' ||
|
|
158
157
|
zonosStore.zonosStore.currentHelloPage === 'productList';
|
|
159
158
|
if (isRestrictionPage && this.allRestrictedItems.length) {
|
|
160
|
-
const clickMessage =
|
|
159
|
+
const clickMessage = localization.translate('click to learn more');
|
|
161
160
|
const restrictMessage = zonosStore.zonosStore.currentHelloPage === 'productDetail'
|
|
162
|
-
?
|
|
163
|
-
:
|
|
161
|
+
? localization.translate('Restricted item')
|
|
162
|
+
: localization.translate('Restricted items found');
|
|
164
163
|
return `${restrictMessage} - ${clickMessage}`;
|
|
165
164
|
}
|
|
166
165
|
switch (zonosStore.zonosStore.currentHelloPage) {
|
|
167
166
|
case 'cart':
|
|
168
|
-
return
|
|
167
|
+
return localization.translate(`Prepay duties and taxes at checkout`);
|
|
169
168
|
case 'productList':
|
|
170
169
|
case 'productDetail':
|
|
171
|
-
return
|
|
170
|
+
return localization.translate(`See duty and tax thresholds`);
|
|
172
171
|
default:
|
|
173
|
-
return
|
|
172
|
+
return localization.translate('Welcome to [storeName]', {
|
|
174
173
|
storeName: organizationName,
|
|
175
174
|
});
|
|
176
175
|
}
|
|
@@ -42,17 +42,17 @@ const ZonosInput = class {
|
|
|
42
42
|
this.inputChange.emit(newValue);
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (index.h(index.Host, { key: '
|
|
45
|
+
return (index.h(index.Host, { key: 'c0e1dfd6cf7f7f3021d373f72a477317518a1f32', class: classes.classes([
|
|
46
46
|
'zonos--input zonos--elements',
|
|
47
47
|
this.inputSize,
|
|
48
48
|
this.isError && 'has-error',
|
|
49
49
|
]), style: {
|
|
50
50
|
'--zonos--border-radius': getBorderRadius.getBorderRadius(),
|
|
51
51
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
52
|
-
} }, index.h("div", { key: '
|
|
52
|
+
} }, index.h("div", { key: '632868fc469c71f74696f2817e91b8293dc825a6', class: classes.classes([
|
|
53
53
|
'zonos--label-wrapper',
|
|
54
54
|
this.isDisabled && 'disabled',
|
|
55
|
-
]) }, index.h("input", { key: '
|
|
55
|
+
]) }, index.h("input", { key: 'af801641f363523c1e32ae96a5d5ddf410f1ef9c', class: classes.classes([
|
|
56
56
|
'zonos--floated-input',
|
|
57
57
|
!!this.inputLabel && 'has-label',
|
|
58
58
|
this.inputValue && 'has-content',
|
|
@@ -60,7 +60,7 @@ const ZonosInput = class {
|
|
|
60
60
|
]), disabled: this.isDisabled, onInput: e => {
|
|
61
61
|
const input = e.target;
|
|
62
62
|
this.inputChange.emit(input.value);
|
|
63
|
-
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), index.h("label", { key: '
|
|
63
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), index.h("label", { key: '419c140e987039cda4191f5b1bc8393c41b4a680', class: "zonos--floated-label", "data-label": this.inputLabel }))));
|
|
64
64
|
}
|
|
65
65
|
get el() { return index.getElement(this); }
|
|
66
66
|
static get watchers() { return {
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-69fa8852.js');
|
|
6
|
+
const cart = require('./cart-22ced7cc.js');
|
|
7
|
+
const localization = require('./localization-8ef6250a.js');
|
|
8
|
+
const renderCheckoutCurrency = require('./renderCheckoutCurrency-5494e45b.js');
|
|
9
|
+
const classes = require('./classes-b7918f56.js');
|
|
10
|
+
const invoice = require('./invoice-8fd4242c.js');
|
|
11
|
+
const renderFallback = require('./renderFallback-78b54537.js');
|
|
12
|
+
require('./zonosStore-37a4b4f4.js');
|
|
13
|
+
require('./VarianceTest-bec00ea8.js');
|
|
14
|
+
require('./handleFetch-954f30e1.js');
|
|
15
|
+
require('./isDarkColor-878e600e.js');
|
|
16
|
+
require('./getBorderRadius-2ef1170d.js');
|
|
17
|
+
|
|
18
|
+
const zonosInvoiceCartItemsCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--cart-table .zonos--column:first-child{padding-left:0;width:50px}:host .zonos--cart-table .zonos--cart-item-link{text-align:left}:host .zonos--cart-table .zonos--cart-item-created-at{text-align:right}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host(.mobile) table{margin-top:16px}:host(.mobile) table td{vertical-align:top}";
|
|
19
|
+
const ZonosInvoiceCartItemsStyle0 = zonosInvoiceCartItemsCss;
|
|
20
|
+
|
|
21
|
+
const ZonosInvoiceCartItems = class {
|
|
22
|
+
constructor(hostRef) {
|
|
23
|
+
index.registerInstance(this, hostRef);
|
|
24
|
+
/**
|
|
25
|
+
* Whether the component is mobile
|
|
26
|
+
*/
|
|
27
|
+
this.isMobile = false;
|
|
28
|
+
this.errorImages = [];
|
|
29
|
+
this.locale = null;
|
|
30
|
+
}
|
|
31
|
+
componentWillLoad() {
|
|
32
|
+
const locale = navigator.language;
|
|
33
|
+
this.locale = locale;
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
const nonRestrictedItems = cart.cartStore.items.filter(item => !item.isRestricted);
|
|
37
|
+
return (index.h(index.Host, { key: '33a10486833e881dd8405984cfc59611b064bef5', class: classes.classes([
|
|
38
|
+
'zonos--invoice-cart-items zonos--elements',
|
|
39
|
+
this.isMobile && 'mobile',
|
|
40
|
+
]) }, index.h("table", { key: 'c6c3a6017050cc385bc5944e83ca8db1f2564884', class: "zonos--cart-table" }, index.h("tbody", { key: '6a232dbdf2e6e6c58b65d6360c9190d720c7dc1f' }, nonRestrictedItems.map(item => {
|
|
41
|
+
var _a, _b, _c, _d;
|
|
42
|
+
const invoiceId = (_b = (_a = item.attributes) === null || _a === void 0 ? void 0 : _a.find(metadata => metadata.key === 'invoiceId' || metadata.key === 'INVOICE_ID')) === null || _b === void 0 ? void 0 : _b.value;
|
|
43
|
+
const invoiceCreatedAt = (_d = (_c = item.attributes) === null || _c === void 0 ? void 0 : _c.find(metadata => metadata.key === 'invoiceCreatedAt')) === null || _d === void 0 ? void 0 : _d.value;
|
|
44
|
+
const invoiceCreatedAtDate = invoiceCreatedAt && this.locale
|
|
45
|
+
? new Date(invoiceCreatedAt).toLocaleDateString(this.locale, {
|
|
46
|
+
day: 'numeric',
|
|
47
|
+
month: 'long',
|
|
48
|
+
year: 'numeric',
|
|
49
|
+
})
|
|
50
|
+
: null;
|
|
51
|
+
const invoiceLink = invoiceId
|
|
52
|
+
? `https://dashboard.zonos.com/billing/invoices/${invoiceId}`
|
|
53
|
+
: null;
|
|
54
|
+
return (index.h("tr", { class: "zonos--invoice-cart-item" }, index.h("td", { class: "zonos--column zonos--cart-item-title" }, index.h("zonos-text", { type: "semiBoldLabel" }, localization.translate('Invoice:'))), index.h("td", { class: "zonos--column zonos--cart-item-link" }, invoiceLink && invoiceId && (index.h("zonos-link", { href: invoiceLink }, invoiceId)), this.isMobile && (index.h("zonos-text", { type: "caption" }, invoiceCreatedAtDate))), index.h("td", { class: "zonos--column zonos--cart-item-created-at" }, !this.isMobile && (index.h("zonos-text", { type: "label" }, invoiceCreatedAtDate))), index.h("td", { class: "zonos--column zonos--cart-item-price" }, index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
55
|
+
amount: item.amount,
|
|
56
|
+
isForeign: false,
|
|
57
|
+
})))));
|
|
58
|
+
})))));
|
|
59
|
+
}
|
|
60
|
+
static get assetsDirs() { return ["assets"]; }
|
|
61
|
+
};
|
|
62
|
+
ZonosInvoiceCartItems.style = ZonosInvoiceCartItemsStyle0;
|
|
63
|
+
|
|
64
|
+
const zonosInvoiceSubtotalCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:-webkit-sticky;position:sticky;bottom:60px}:host .zonos--invoice-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--invoice-table .zonos--column{padding:8px 8px;vertical-align:top}:host .zonos--invoice-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--invoice-table .zonos--column:first-child{width:60px;max-width:100px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}:host .zonos--invoice-subtotal-price{text-align:right}:host .zonos--invoice-subtotal-price zonos-text{white-space:nowrap}:host .zonos--invoice-total .zonos--column{padding:16px 0}:host .zonos--invoice-total .zonos--invoice-subtotal-title,:host .zonos--invoice-total .zonos--invoice-subtotal-price{border-top:1px solid var(--zonos-elements-gray-200)}:host .zonos--invoice-subtotal-price zonos-text,:host .zonos--invoice-pay-total zonos-text{white-space:nowrap}:host(.mobile){position:relative;bottom:0}";
|
|
65
|
+
const ZonosInvoiceSubtotalStyle0 = zonosInvoiceSubtotalCss;
|
|
66
|
+
|
|
67
|
+
const ZonosInvoiceSubtotal = class {
|
|
68
|
+
constructor(hostRef) {
|
|
69
|
+
index.registerInstance(this, hostRef);
|
|
70
|
+
/**
|
|
71
|
+
* Whether the component is mobile
|
|
72
|
+
*/
|
|
73
|
+
this.isMobile = false;
|
|
74
|
+
}
|
|
75
|
+
render() {
|
|
76
|
+
return (index.h(index.Host, { key: '99eaf74026ee26cc11ab78adf57f1b7eb55309d3', class: classes.classes([
|
|
77
|
+
'zonos--invoice-subtotal zonos--elements',
|
|
78
|
+
this.isMobile && 'mobile',
|
|
79
|
+
]) }, index.h("table", { key: 'a3f9a029a979fd4afeaee02c55a49c4e6547e483', class: "zonos--invoice-table" }, index.h("tr", { key: 'bf8594623c4eb7492899647fbe3bc4fa0a8b1973', class: "zonos--row zonos--invoice-total" }, index.h("td", { key: 'b967b527461161244479ff8ac5ae40bdbd7f2b38', class: "zonos--column" }), index.h("td", { key: '4af6f40176c19c0aad1109a8be722a2b41fc66e9', class: "zonos--column zonos--invoice-subtotal-title" }, index.h("zonos-text", { key: '0b01c51ddabd61c0abaf8214e05db2fe6a650941', type: "semiBoldLabel" }, localization.translate('Payment total'))), index.h("td", { key: '00109c0948f0110c478643461a0a70a7cc2441ba', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback.renderFallback({
|
|
80
|
+
content: (index.h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
81
|
+
amount: invoice.invoiceStore.amountTotalDue || 0,
|
|
82
|
+
isForeign: true,
|
|
83
|
+
}))),
|
|
84
|
+
isLoading: invoice.invoiceStore.isFetchingPayorInfo,
|
|
85
|
+
skeletonHeight: '14px',
|
|
86
|
+
skeletonWidth: '150px',
|
|
87
|
+
}))))));
|
|
88
|
+
}
|
|
89
|
+
static get assetsDirs() { return ["assets"]; }
|
|
90
|
+
};
|
|
91
|
+
ZonosInvoiceSubtotal.style = ZonosInvoiceSubtotalStyle0;
|
|
92
|
+
|
|
93
|
+
exports.zonos_invoice_cart_items = ZonosInvoiceCartItems;
|
|
94
|
+
exports.zonos_invoice_subtotal = ZonosInvoiceSubtotal;
|