@zonos/elements 1.3.265 → 1.3.266
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-c325b9e4.js → cart-efc42379.js} +1 -1
- package/dist/cjs/getContrastColor-ce80dbe7.js +54 -0
- package/dist/cjs/{hasInclusivePrice-40358cb1.js → hasInclusivePrice-400be1b2.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-ac9414df.js → invoice-9e4d479f.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-92fa5e8f.js → isCollectMobileTablet-630fcf87.js} +2 -2
- package/dist/cjs/{localization-06cc0379.js → localization-4b17c530.js} +1 -1
- package/dist/cjs/{paypal-b52e1f24.js → paypal-3bb55914.js} +2 -2
- package/dist/cjs/{placeTestOrder-d93a6f2b.js → placeTestOrder-313cbd78.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-1f521ea7.js → renderCheckoutCurrency-e0436f1c.js} +2 -2
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +19 -19
- package/dist/cjs/zonos-address_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +7 -7
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +20 -20
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +19 -19
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +1 -1
- package/dist/cjs/zonos-store-credit.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
- 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 +4 -4
- 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 +8 -7
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +2 -0
- package/dist/collection/components/utils/getContrastColor.js +27 -10
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +1 -1
- package/dist/esm/{cart-0625a766.js → cart-62c166fc.js} +1 -1
- package/dist/esm/getContrastColor-0aa643c1.js +52 -0
- package/dist/esm/{hasInclusivePrice-afc0dd6e.js → hasInclusivePrice-a73f64b7.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-0daa7f74.js → invoice-fa4ff6fb.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-8d3fb5f4.js → isCollectMobileTablet-5f50ec81.js} +2 -2
- package/dist/esm/{localization-ee06df70.js → localization-d2631105.js} +1 -1
- package/dist/esm/{paypal-78c3572c.js → paypal-424d040d.js} +2 -2
- package/dist/esm/{placeTestOrder-18de7b6f.js → placeTestOrder-cf237d95.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-ba1702db.js → renderCheckoutCurrency-513ead96.js} +2 -2
- package/dist/esm/zonos-address-display_8.entry.js +19 -19
- package/dist/esm/zonos-address_4.entry.js +6 -6
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +7 -7
- package/dist/esm/zonos-cart-items_12.entry.js +20 -20
- package/dist/esm/zonos-checkbox_2.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
- package/dist/esm/zonos-collect-finish_6.entry.js +19 -19
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +6 -6
- package/dist/esm/zonos-hello-dialog.entry.js +2 -2
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
- package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm/zonos-store-credit.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm-es5/{cart-0625a766.js → cart-62c166fc.js} +1 -1
- package/dist/esm-es5/getContrastColor-0aa643c1.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-afc0dd6e.js → hasInclusivePrice-a73f64b7.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-0daa7f74.js → invoice-fa4ff6fb.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-8d3fb5f4.js → isCollectMobileTablet-5f50ec81.js} +1 -1
- package/dist/esm-es5/{localization-ee06df70.js → localization-d2631105.js} +1 -1
- package/dist/esm-es5/{paypal-78c3572c.js → paypal-424d040d.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-18de7b6f.js → placeTestOrder-cf237d95.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-ba1702db.js → renderCheckoutCurrency-513ead96.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- 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-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-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 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/scripts/index.d.ts +5 -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/common/zonos-stripe-select/zonos-stripe-select.d.ts +1 -2
- package/dist/types/components.d.ts +2 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-a054c5eb.system.js → p-01384124.system.js} +1 -1
- package/dist/zonos-elements/{p-7c312bc2.entry.js → p-02d812c8.entry.js} +1 -1
- package/dist/zonos-elements/p-03e95598.entry.js +1 -0
- package/dist/zonos-elements/{p-24aae506.system.js → p-06c4d422.system.js} +1 -1
- package/dist/zonos-elements/{p-e89a411c.system.entry.js → p-08934304.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e6cc5a25.system.entry.js → p-0b46f3bd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d1ff24f5.entry.js → p-0e8c4a29.entry.js} +1 -1
- package/dist/zonos-elements/{p-407b49f1.system.entry.js → p-0ea16658.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-37f47658.js → p-0efd2d5a.js} +1 -1
- package/dist/zonos-elements/{p-0529a06b.system.entry.js → p-1957af5a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5353cfa4.entry.js → p-1a470353.entry.js} +1 -1
- package/dist/zonos-elements/{p-dfe45cfd.js → p-1d6f3ab9.js} +1 -1
- package/dist/zonos-elements/{p-85cc83e5.system.entry.js → p-209d7728.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c3ee352b.entry.js → p-227ef22f.entry.js} +1 -1
- package/dist/zonos-elements/{p-4baa51ef.entry.js → p-2431f95c.entry.js} +1 -1
- package/dist/zonos-elements/{p-32ecece3.entry.js → p-26c85188.entry.js} +1 -1
- package/dist/zonos-elements/{p-cc481c69.entry.js → p-27061873.entry.js} +1 -1
- package/dist/zonos-elements/{p-42518502.system.entry.js → p-27513bfe.system.entry.js} +1 -1
- package/dist/zonos-elements/p-27eeaf56.system.js +1 -0
- package/dist/zonos-elements/{p-59aa5785.entry.js → p-28e2ac3b.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-8a21ed2d.entry.js → p-2a6be4a5.entry.js} +1 -1
- package/dist/zonos-elements/{p-9bd63d7a.system.js → p-2b30beea.system.js} +1 -1
- package/dist/zonos-elements/{p-f4f71ae4.system.js → p-305e2dd8.system.js} +1 -1
- package/dist/zonos-elements/{p-62db5d7c.system.js → p-37207963.system.js} +1 -1
- package/dist/zonos-elements/p-40284821.system.js +1 -0
- package/dist/zonos-elements/{p-595e2a7d.system.entry.js → p-40a45837.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6ef88d96.system.entry.js → p-4495f149.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-105b7ebe.entry.js → p-456a600b.entry.js} +1 -1
- package/dist/zonos-elements/{p-66edcaa4.entry.js → p-46071125.entry.js} +1 -1
- package/dist/zonos-elements/{p-90a19f4c.system.entry.js → p-4d433020.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3a23ec5f.system.entry.js → p-55fb4ea3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ed2827f.entry.js → p-5ae695a3.entry.js} +1 -1
- package/dist/zonos-elements/{p-72058aac.system.entry.js → p-5e10d4ff.system.entry.js} +1 -1
- package/dist/zonos-elements/p-61d73d69.js +1 -0
- package/dist/zonos-elements/{p-f9c715ad.entry.js → p-648f3ada.entry.js} +1 -1
- package/dist/zonos-elements/{p-8a01157e.system.entry.js → p-6ab742d9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a5f5993f.system.entry.js → p-6b682a6b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5678c044.system.entry.js → p-6b6cfc59.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e5582c35.entry.js → p-71fb6126.entry.js} +1 -1
- package/dist/zonos-elements/{p-86ed51fd.entry.js → p-72187e00.entry.js} +1 -1
- package/dist/zonos-elements/{p-19a1cc70.system.entry.js → p-72efa5b7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7677c45a.entry.js +1 -0
- package/dist/zonos-elements/{p-26374593.system.entry.js → p-781cc8de.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0f9a04fe.system.entry.js → p-79e5a629.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b9ad020.entry.js → p-7b640194.entry.js} +1 -1
- package/dist/zonos-elements/{p-4477556a.system.entry.js → p-7b74e5f2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aaf9d8a4.system.entry.js → p-7c101a92.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-eaa79ed8.entry.js → p-889e5db0.entry.js} +1 -1
- package/dist/zonos-elements/p-8ccd6d3f.js +1 -0
- package/dist/zonos-elements/{p-ec6472c9.system.entry.js → p-8cd0a098.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1cc651e8.entry.js → p-928291e5.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2b91bb9.entry.js → p-9aaa1d80.entry.js} +1 -1
- package/dist/zonos-elements/{p-a52ddeb5.js → p-9b660cd3.js} +1 -1
- package/dist/zonos-elements/{p-e755ab57.system.js → p-a371f770.system.js} +1 -1
- package/dist/zonos-elements/{p-72833da8.system.entry.js → p-a49ba3ae.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3686190f.js → p-a75baf3e.js} +1 -1
- package/dist/zonos-elements/{p-8753cb36.system.js → p-a9425900.system.js} +1 -1
- package/dist/zonos-elements/{p-41f2e301.entry.js → p-acf42bc1.entry.js} +1 -1
- package/dist/zonos-elements/p-b2d276e1.js +1 -0
- package/dist/zonos-elements/{p-274a7c0e.system.entry.js → p-b6df4cc2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-34dc7755.entry.js → p-bb77b580.entry.js} +1 -1
- package/dist/zonos-elements/p-bbbbae9a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-281063f4.system.entry.js → p-bce7bfcc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e98e4c0b.system.entry.js → p-bf5c3dd7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c7047a1c.js +1 -0
- package/dist/zonos-elements/{p-3d6ce58a.js → p-cd88efdb.js} +1 -1
- package/dist/zonos-elements/{p-59e16c6f.system.js → p-ce44c942.system.js} +1 -1
- package/dist/zonos-elements/{p-3fbdb83f.entry.js → p-d63e18a8.entry.js} +1 -1
- package/dist/zonos-elements/{p-bb0ce525.entry.js → p-daeb57cb.entry.js} +1 -1
- package/dist/zonos-elements/{p-2555ba6b.system.entry.js → p-deaf0e38.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4a4c3af1.system.entry.js → p-ea88f7f5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-30a0aed1.entry.js → p-f1bbad73.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac54de99.entry.js → p-f76d5249.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/getContrastColor-68058615.js +0 -37
- package/dist/esm/getContrastColor-2340485f.js +0 -35
- package/dist/esm-es5/getContrastColor-2340485f.js +0 -1
- package/dist/zonos-elements/p-1ce71a7d.entry.js +0 -1
- package/dist/zonos-elements/p-349bdc03.system.entry.js +0 -1
- package/dist/zonos-elements/p-69e2a7dd.js +0 -1
- package/dist/zonos-elements/p-6f8abf4f.js +0 -1
- package/dist/zonos-elements/p-9b2d6f06.entry.js +0 -1
- package/dist/zonos-elements/p-9f7e7148.system.js +0 -1
- package/dist/zonos-elements/p-a901d002.js +0 -1
- package/dist/zonos-elements/p-b32cd0c5.system.js +0 -1
- package/dist/zonos-elements/p-c9a1f774.js +0 -1
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const renderCheckoutCurrency = require('./renderCheckoutCurrency-
|
|
6
|
+
const cart = require('./cart-efc42379.js');
|
|
7
|
+
const localization = require('./localization-4b17c530.js');
|
|
8
|
+
const renderCheckoutCurrency = require('./renderCheckoutCurrency-e0436f1c.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
|
-
const invoice = require('./invoice-
|
|
10
|
+
const invoice = require('./invoice-9e4d479f.js');
|
|
11
11
|
const renderFallback = require('./renderFallback-bc20ee20.js');
|
|
12
12
|
require('./zonosStore-0662b95f.js');
|
|
13
13
|
require('./VarianceTest-bec00ea8.js');
|
|
@@ -34,10 +34,10 @@ const ZonosInvoiceCartItems = class {
|
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
const nonRestrictedItems = cart.cartStore.items.filter(item => !item.isRestricted);
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
37
|
+
return (index.h(index.Host, { key: '55bb132970db23e06698701d7d27e108ff0643e0', class: classes.classes([
|
|
38
38
|
'zonos--invoice-cart-items zonos--elements',
|
|
39
39
|
this.isMobile && 'mobile',
|
|
40
|
-
]) }, index.h("table", { key: '
|
|
40
|
+
]) }, index.h("table", { key: 'c9722c17a507ca9fdcb8ca47151d14ba1d74f698', class: "zonos--cart-table" }, index.h("tbody", { key: 'd8d318e03bfeefaf687825c6131367e73c0b91ce' }, nonRestrictedItems.map(item => {
|
|
41
41
|
var _a, _b, _c, _d;
|
|
42
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
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;
|
|
@@ -73,10 +73,10 @@ const ZonosInvoiceSubtotal = class {
|
|
|
73
73
|
this.isMobile = false;
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (index.h(index.Host, { key: '
|
|
76
|
+
return (index.h(index.Host, { key: 'a8d7a91a69c2ea3aeee0788f4d9523e1e65915eb', class: classes.classes([
|
|
77
77
|
'zonos--invoice-subtotal zonos--elements',
|
|
78
78
|
this.isMobile && 'mobile',
|
|
79
|
-
]) }, index.h("table", { key: '
|
|
79
|
+
]) }, index.h("table", { key: 'fb299d6ea07b48c099fca14e0c16369bf7b93955', class: "zonos--invoice-table" }, index.h("tr", { key: '5b01748b535af171bed832076fcfeb5308279808', class: "zonos--row zonos--invoice-total" }, index.h("td", { key: '829797e7d5560c6f73b661cdc53b473c57c7ad2f', class: "zonos--column" }), index.h("td", { key: 'cc75308e6470b4fa12182001467e7d2ca7915405', class: "zonos--column zonos--invoice-subtotal-title" }, index.h("zonos-text", { key: '38c9de7d3393a999bc06a7bafe033aefa45ead5c', type: "semiBoldLabel" }, localization.translate('Payment total'))), index.h("td", { key: '962069d60839b82e374d3c4aae3b2a6709a82017', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback.renderFallback({
|
|
80
80
|
content: (index.h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
81
81
|
amount: invoice.invoiceStore.amountTotalDue || 0,
|
|
82
82
|
isForeign: true,
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const localization = require('./localization-
|
|
6
|
+
const cart = require('./cart-efc42379.js');
|
|
7
|
+
const paypal = require('./paypal-3bb55914.js');
|
|
8
|
+
const localization = require('./localization-4b17c530.js');
|
|
9
9
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
11
11
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
@@ -14,9 +14,9 @@ const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
|
14
14
|
const isInvoiceMobileTablet = require('./isInvoiceMobileTablet-dde41e4e.js');
|
|
15
15
|
const classes = require('./classes-b7918f56.js');
|
|
16
16
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
17
|
-
const invoice = require('./invoice-
|
|
18
|
-
const renderCheckoutCurrency = require('./renderCheckoutCurrency-
|
|
19
|
-
const placeTestOrder = require('./placeTestOrder-
|
|
17
|
+
const invoice = require('./invoice-9e4d479f.js');
|
|
18
|
+
const renderCheckoutCurrency = require('./renderCheckoutCurrency-e0436f1c.js');
|
|
19
|
+
const placeTestOrder = require('./placeTestOrder-313cbd78.js');
|
|
20
20
|
const renderFallback = require('./renderFallback-bc20ee20.js');
|
|
21
21
|
require('./isDarkColor-e317bb06.js');
|
|
22
22
|
require('./isContrastColor-a02c4889.js');
|
|
@@ -273,11 +273,11 @@ const ZonosInvoiceFinish = class {
|
|
|
273
273
|
}
|
|
274
274
|
render() {
|
|
275
275
|
const cartId = window.Zonos.cartId;
|
|
276
|
-
return (index.h(index.Host, { key: '
|
|
276
|
+
return (index.h(index.Host, { key: '5f563128da4ccbf30f9f09446760a83666be0987', class: "zonos--checkout-finish zonos--elements", style: {
|
|
277
277
|
'--zonos--border-radius': getBorderRadius.getBorderRadius({
|
|
278
278
|
overrideBorderStyle: this.borderRadius,
|
|
279
279
|
}),
|
|
280
|
-
} }, !this.isLoading && (index.h("div", { key: '
|
|
280
|
+
} }, !this.isLoading && (index.h("div", { key: '276f35404f91ae34b310e1f006770a8885a9751d', class: "zonos--finish-details" }, index.h("div", { key: 'e6f73be5adced5c4d7598a7c41827414a41b75fc', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '5c010a8bc22853ceb669b64cb0ac608dbd01f78c', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (index.h("zonos-badge", { key: 'c20d9274ef2d3824e581a172b416451f8ed0f4fb', badgeColor: "gray" }, this.confirmationId)), index.h("zonos-text", { key: 'eab62f7ca2bb6f9a610179a9c3a345844bf99d5b', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.order && cartId && (index.h("div", { key: '5a870802ce9b2b34769ac1fa2920e17eed0d1c91', class: "zonos--button-container" }, index.h("zonos-button", { key: '09784e7c0a421a304987d84c1d81f0ee2995c0eb', onClick: () => {
|
|
281
281
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
282
282
|
}, size: "lg", variant: "primary" }, localization.translate('View receipt')))))))));
|
|
283
283
|
}
|
|
@@ -342,15 +342,15 @@ const ZonosInvoiceFooter = class {
|
|
|
342
342
|
const languageLabel = (_a = ILanguage.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
343
343
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
344
344
|
const colorDesktop = 'gray-1000';
|
|
345
|
-
return (index.h(index.Host, { key: '
|
|
345
|
+
return (index.h(index.Host, { key: '01fce97d4d724d4bca4973a426e131da5a01dc16', class: classes.classes([
|
|
346
346
|
'zonos--elements',
|
|
347
347
|
this.isMobile && 'mobile',
|
|
348
348
|
this.isTablet && 'tablet',
|
|
349
|
-
]) }, index.h("div", { key: '
|
|
349
|
+
]) }, index.h("div", { key: '99e579f6903c96c8540d5010fc128173e34e0997', class: "zonos--invoice-footer" }, index.h("div", { key: 'fa45f5e6fbb2ff06265f252fd3c3acf74b265e1e', class: "zonos--invoice-locale-wrapper" }, index.h("zonos-button", { key: '3496814c51949ff1f1d727bd5c9fabeb4b86372f', buttonColor: colorDesktop, class: "zonos--invoice-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, index.h("span", { key: 'c669df5b12bce8be322fca8d0cb76a29b088fd25', class: "zonos--invoice-locale-label" }, languageLabel, index.h("zonos-icon", { key: '748444a42af6feef4378b418341927c15e9dc293', "aria-hidden": "true", class: "zonos--invoice-locale-chevron", content: ChevronDownIcon$1, iconColor: colorDesktop, size: 18 }))), index.h("div", { key: '80943da0cc442ff525c7fd8f5d3f0159933b1950', class: classes.classes([
|
|
350
350
|
'zonos--invoice-language-dialog',
|
|
351
351
|
this.showLanguageDialog &&
|
|
352
352
|
'zonos--invoice-language-dialog-open',
|
|
353
|
-
]) }, index.h("zonos-language-select", { key: '
|
|
353
|
+
]) }, index.h("zonos-language-select", { key: '5f72d992de939c0159979b7b054f50e803499d64', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: '5f751d324bea65a722d60643f7a55a83648dbff9', class: "zonos--invoice-footer-icon-wrapper" }, index.h("div", { key: '041e633d638437535b04029bcc0173f69dc8861c', class: "zonos--invoice-footer-logo" }, index.h("zonos-text", { key: '57adb6eb396406aa2e1bf01e404fd53bc2c9c2cf', textColor: colorDesktop }, localization.translate('Powered by')), index.h("a", { key: '6e87d992ab4d97d2edf7be4ee3d2a07d77dd93ea', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'f13be4e13b4991b65f052587feba6e0b08382332', autoHeight: true, content: ZonosWordmark, size: 42 }))), index.h("div", { key: '44dbef690ef8088bfc30f2fc7dc83f693cd530f4', class: "dot" }), index.h("a", { key: '341ceb26c07e9d0aa1f273fc8ba0e92a7ddfb93b', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: '47b7c26113144d942fc98f1dd87883f818e2ef2a', textColor: colorDesktop }, localization.translate('Privacy policy')))))));
|
|
354
354
|
}
|
|
355
355
|
get el() { return index.getElement(this); }
|
|
356
356
|
static get watchers() { return {
|
|
@@ -663,13 +663,13 @@ const ZonosInvoiceReview = class {
|
|
|
663
663
|
}
|
|
664
664
|
render() {
|
|
665
665
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
666
|
-
return (index.h(index.Host, { key: '
|
|
666
|
+
return (index.h(index.Host, { key: '52bdf36710017e5fa9edc0c138639a06cb5d05c5', class: classes.classes([
|
|
667
667
|
'zonos--invoice-review zonos--elements',
|
|
668
668
|
this.isMobile && 'mobile',
|
|
669
669
|
this.isTablet && 'tablet',
|
|
670
|
-
]) }, index.h("div", { key: '
|
|
670
|
+
]) }, index.h("div", { key: '3511c440fbf6ae155eca4d3a492f149dbfdef4c6', class: "zonos--title" }, index.h("zonos-text", { key: '8760547d3874af10a3b7e91e294ac6e68348db4f', textColor: titleTextColor, type: 'semiBoldLabel' }, localization.translate('Pay [organizationName]', {
|
|
671
671
|
organizationName: zonosStore.zonosStore.organizationName,
|
|
672
|
-
}))), index.h("div", { key: '
|
|
672
|
+
}))), index.h("div", { key: '09cd06a131b0e429e4797cea8eaf41b05cb7b676', class: "zonos--total-pay" }, renderFallback.renderFallback({
|
|
673
673
|
content: (index.h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
674
674
|
amount: invoice.invoiceStore.amountTotalDue || 0,
|
|
675
675
|
isForeign: true,
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const invoice = require('./invoice-
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const localization = require('./localization-
|
|
6
|
+
const cart = require('./cart-efc42379.js');
|
|
7
|
+
const invoice = require('./invoice-9e4d479f.js');
|
|
8
|
+
const paypal = require('./paypal-3bb55914.js');
|
|
9
|
+
const localization = require('./localization-4b17c530.js');
|
|
10
10
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
11
11
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
|
|
12
12
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const localization = require('./localization-
|
|
6
|
+
const localization = require('./localization-4b17c530.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-954f30e1.js');
|
|
@@ -34,9 +34,9 @@ const ZonosLanguageSelect = class {
|
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
36
|
const { selectedLocale } = localization.localizationStore;
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
37
|
+
return (index.h(index.Host, { key: '73a3caa12f7e3086474f200b6ee839b08213d77d', class: "zonos--elements", style: {
|
|
38
38
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
39
|
-
} }, index.h("div", { key: '
|
|
39
|
+
} }, index.h("div", { key: '1c99467d96401c5887326e54d738c305b9d15278', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '61d06916c6d8c56f6d95beb4d4869f5bd1d4704d', handleOnClose: () => this.handleOnClose(), label: localization.translate('Select a language') }), index.h("div", { key: 'b5cee89f90a0911b15607e0897803d73a182b367', class: "zonos--language-select-content" }, ILanguage.languages.map(language => (index.h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, index.h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (index.h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
|
|
@@ -60,9 +60,9 @@ const ZonosSelectDialogHeader = class {
|
|
|
60
60
|
this.label = '';
|
|
61
61
|
}
|
|
62
62
|
render() {
|
|
63
|
-
return (index.h(index.Host, { key: '
|
|
63
|
+
return (index.h(index.Host, { key: 'fe2c8fdf8526d9737d5e78c97c823a8cb18caa15', class: "zonos--elements", style: {
|
|
64
64
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
65
|
-
} }, index.h("zonos-v-stack", { key: '
|
|
65
|
+
} }, index.h("zonos-v-stack", { key: '32c1113029b0b20d98615556c3ac34bafeadf8cf', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, index.h("div", { key: '2f41e2f8d0c9593a8d2ea42af914cb9600ecb392', class: "zonos--select-dialog-header" }, index.h("zonos-text", { key: '8eb0aeee1db700d9fb70423ddc907ea83af0922a', type: "boldLabel" }, this.label), index.h("zonos-button", { key: '21d8f5a416d8cee77112dba035c9f45e2a539d3e', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), index.h("slot", { key: '5f5b18516cf6c5c98286f037804eb589e270ce3b' }))));
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
ZonosSelectDialogHeader.style = ZonosSelectDialogHeaderStyle0;
|
|
@@ -16,7 +16,7 @@ const ZonosLink = class {
|
|
|
16
16
|
this.href = '';
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'cd003919a24549f15dd74070af6298426c291551', class: "zonos--elements" }, index.h("a", { key: '0825c350db56dcde8d6f79e269ffbf04f4adb65c', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: 'bb9d77ba3dbc358e5359ee3422a638cb712af263' }))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
ZonosLink.style = ZonosLinkStyle0;
|
|
@@ -26,11 +26,11 @@ const ZonosLogo = class {
|
|
|
26
26
|
const filterColor = this.theme === 'DARK'
|
|
27
27
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
28
28
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: 'deeabf3741e7b907703667597b8a7dfe26612d66', class: classes.classes(['zonos--elements zonos--logo']), style: {
|
|
30
30
|
'--zonos--filter-color': filterColor,
|
|
31
31
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
32
32
|
'--zonos--width': this.width,
|
|
33
|
-
} }, index.h("img", { key: '
|
|
33
|
+
} }, index.h("img", { key: 'fc2d30312252068910760cbd32ae0615c7a988c1', alt: "Zonos Logo", src: index.getAssetPath('./assets/ZonosLogo.png') })));
|
|
34
34
|
}
|
|
35
35
|
static get assetsDirs() { return ["assets"]; }
|
|
36
36
|
};
|
|
@@ -6,7 +6,7 @@ const index = require('./index-b1f95d96.js');
|
|
|
6
6
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const getBorderRadius = require('./getBorderRadius-a91911e7.js');
|
|
9
|
-
const getContrastColor = require('./getContrastColor-
|
|
9
|
+
const getContrastColor = require('./getContrastColor-ce80dbe7.js');
|
|
10
10
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
11
11
|
require('./VarianceTest-bec00ea8.js');
|
|
12
12
|
require('./isDarkColor-e317bb06.js');
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
6
|
+
const cart = require('./cart-efc42379.js');
|
|
7
|
+
const localization = require('./localization-4b17c530.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-0662b95f.js');
|
|
9
|
-
const renderCheckoutCurrency = require('./renderCheckoutCurrency-
|
|
9
|
+
const renderCheckoutCurrency = require('./renderCheckoutCurrency-e0436f1c.js');
|
|
10
10
|
const getBorderRadius = require('./getBorderRadius-a91911e7.js');
|
|
11
11
|
require('./VarianceTest-bec00ea8.js');
|
|
12
12
|
require('./handleFetch-954f30e1.js');
|
|
@@ -77,7 +77,7 @@ const ZonosStripeInput = class {
|
|
|
77
77
|
? zonosStore.zonosStore.appearance.theme === 'DARK'
|
|
78
78
|
: primaryColor && isDarkColor.isDarkColor(primaryColor);
|
|
79
79
|
const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
|
|
80
|
-
return (index.h(index.Host, { key: '
|
|
80
|
+
return (index.h(index.Host, { key: 'f9f06dba4fb5f74088bd501fad3dbe9784e54b87', class: classes.classes([
|
|
81
81
|
'zonos--input zonos--elements',
|
|
82
82
|
isDark && 'dark',
|
|
83
83
|
(this.isError || !!this.error) && 'has-error',
|
|
@@ -86,10 +86,10 @@ const ZonosStripeInput = class {
|
|
|
86
86
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
87
87
|
'--zonos--font-size': `${fontSize}px`,
|
|
88
88
|
'--zonos--primary-color': secondaryColor,
|
|
89
|
-
} }, index.h("div", { key: '
|
|
89
|
+
} }, index.h("div", { key: '9af2062a1f5730eea33d3741961f359a69f5ce83', class: classes.classes([
|
|
90
90
|
'zonos--label-wrapper',
|
|
91
91
|
this.isDisabled && 'disabled',
|
|
92
|
-
]) }, index.h("input", Object.assign({ key: '
|
|
92
|
+
]) }, index.h("input", Object.assign({ key: '01d97ec638227200096f60d6f5408246c857662d' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
|
|
93
93
|
'zonos--floated-input',
|
|
94
94
|
!!this.inputLabel && 'has-label',
|
|
95
95
|
this.internalValue && 'has-content',
|
|
@@ -99,7 +99,7 @@ const ZonosStripeInput = class {
|
|
|
99
99
|
this.inputChange.emit(input.value);
|
|
100
100
|
this.el.inputValue = input.value;
|
|
101
101
|
this.el.dispatchEvent(new Event('change'));
|
|
102
|
-
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '
|
|
102
|
+
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '7344a6d20db2d94f49a1b848f49cb0dc17ad759d', class: "zonos--floated-label" }, index.h("label", { key: 'bac9810d8897672b7c7ab5e3cb07f1ae03803a8e', htmlFor: this.inputId }, this.inputLabel))), this.error && (index.h("zonos-text", { key: '7f84007f704fb2f1da0c7581f23c426d87cf1cc0', textColor: "red-600", type: "caption" }, this.error))));
|
|
103
103
|
}
|
|
104
104
|
get el() { return index.getElement(this); }
|
|
105
105
|
static get watchers() { return {
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"components/common/zonos-notification/zonos-notification.js",
|
|
6
6
|
"components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js",
|
|
7
7
|
"components/common/zonos-spinner/zonos-spinner.js",
|
|
8
|
+
"components/common/zonos-stripe-select/zonos-stripe-select.js",
|
|
8
9
|
"components/checkout/zonos-checkout/zonos-checkout.js",
|
|
9
10
|
"components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js",
|
|
10
11
|
"components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js",
|
|
@@ -59,7 +60,6 @@
|
|
|
59
60
|
"components/common/zonos-skeleton/zonos-skeleton.js",
|
|
60
61
|
"components/common/zonos-stripe-input/zonos-stripe-input.js",
|
|
61
62
|
"components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js",
|
|
62
|
-
"components/common/zonos-stripe-select/zonos-stripe-select.js",
|
|
63
63
|
"components/common/zonos-text/zonos-text.js",
|
|
64
64
|
"components/common/zonos-toggle/zonos-toggle.js",
|
|
65
65
|
"components/common/zonos-tooltip/zonos-tooltip.js",
|
|
@@ -27,15 +27,15 @@ export class ZonosAddressForm {
|
|
|
27
27
|
const { firstName, lastName } = extractName({
|
|
28
28
|
name,
|
|
29
29
|
});
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '7daab005bebe43bc506b8da0fc3603f87f5cc07e', class: "zonos--address-form zonos--elements" }, h("div", { key: '61e8f1447408a10c42cbb6dfe1e5cd2986c34824', class: "zonos--title" }, h("zonos-text", { key: 'd8b0298a92731c5d7e8297f00036cbf6a6b7e8db', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
|
|
31
31
|
? translate('Shipping')
|
|
32
|
-
: translate('Billing'))), h("div", { key: '
|
|
32
|
+
: translate('Billing'))), h("div", { key: 'b6fd70d9ee4cc61159e55a079649c79f48e4a98c', class: "zonos--address-group" }, h("div", { key: '3f163fd25a4c3a36c0fbe97b2578c9fbfbebc8e6', class: "zonos--contact" }, h("zonos-text", { key: '40ec47d730083b242fba7ed45711fa19bc1a3a73', type: "label" }, translate('Contact')), h("zonos-input", { key: '980d9afd5143a4be16b61fdd44b8badd26c0551f', class: "zonos--form-email", inputLabel: translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), h("div", { key: 'd3b7937d5c172a9aa1fb6fb294f7518702c42782', class: "zonos--name zonos--address-row" }, h("zonos-input", { key: '1cda2417557992ff1e018470f49bc553570e7ab8', class: "zonos--form-first-name", inputLabel: translate('First name'), inputValue: firstName, isError: isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
|
|
33
33
|
key: 'name',
|
|
34
34
|
value: `${e.detail} ${lastName}`,
|
|
35
|
-
}) }), h("zonos-input", { key: '
|
|
35
|
+
}) }), h("zonos-input", { key: 'faf4991bde56989dc613d321660a3084b0e9a8e6', class: "zonos--form-last-name", inputLabel: translate('Last name'), inputValue: lastName, isError: isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
|
|
36
36
|
key: 'name',
|
|
37
37
|
value: `${firstName} ${e.detail}`,
|
|
38
|
-
}) }))), h("div", { key: '
|
|
38
|
+
}) }))), h("div", { key: '831483d5496ded27e71c1b4eb78bfb5ee8af52fb', class: "zonos--address" }, h("zonos-text", { key: '4d31ee6171c36401dda6653cedb43b81cf85a3cb', type: "label" }, translate('Address')), h("zonos-input", { key: '9134efbee8a46c04873dded9985d4437766aba61', class: "zonos--form-country", inputLabel: translate('Country'), inputValue: country, isDisabled: true }), h("zonos-input", { key: '4db075bee380c24ddfc706d7e72f631c9d451af3', class: "zonos--form-line1", inputLabel: translate('Address line 1'), inputValue: line1, isError: isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), h("zonos-input", { key: '6866187e5de8caaed307b4ad3e49048ccf8b08af', class: "zonos--form-line2", inputLabel: translate('Address line 2'), inputValue: line2, isError: isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), h("div", { key: '485f219a65abda705b20c4fdad0ec06d7b640f4c', class: "zonos--address-row" }, h("zonos-input", { key: '755a75893aaba7fd3be6842a4b29886f77a691bc', class: "zonos--form-city", inputLabel: translate('City'), inputValue: city, isError: isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (h("zonos-input", { key: 'd66f0cf58169adb5c53a2c0e2cf308e66cd639ac', class: "zonos--form-state", inputLabel: translate('State/Province'), inputValue: state, isError: isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), h("zonos-input", { key: '7fb5821a69f45779e616ef714c3774745b7cb0ca', class: "zonos--form-postal-code", inputLabel: translate('Postal code'), inputValue: postal_code, isError: isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), h("zonos-input", { key: 'a45be76f3e8073c5ea152f2814c52201c12f6d3b', class: "zonos--form-phone", inputLabel: translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "zonos-address-form"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js
CHANGED
|
@@ -10,7 +10,7 @@ export class ZonosCartItems {
|
|
|
10
10
|
render() {
|
|
11
11
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
12
12
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '0533f9858716c5084f2f7d454038918dcea3f1d0', class: "zonos--cart-items zonos--elements" }, h("table", { key: '9819698277a5c597528364d19b7c5c7c3161fdd7', class: "zonos--cart-table" }, h("tbody", { key: '59493dfb49143a56f2addaf0c9eb1e8ce014dc1f' }, nonRestrictedItems.map(item => {
|
|
14
14
|
const itemImg = item.imageUrl;
|
|
15
15
|
const cleanedItemNames = cleanHtmlMarkdown(item.name);
|
|
16
16
|
const amount = item.amount * item.quantity;
|
|
@@ -583,11 +583,11 @@ export class ZonosCheckoutFinish {
|
|
|
583
583
|
}
|
|
584
584
|
render() {
|
|
585
585
|
const isTestMode = getIsTestMode();
|
|
586
|
-
return (h(Host, { key: '
|
|
586
|
+
return (h(Host, { key: '3df50a75327f2dd1d7eea538aed0501c96504f2d', class: "zonos--checkout-finish zonos--elements", style: {
|
|
587
587
|
'--zonos--border-radius': getBorderRadius({
|
|
588
588
|
overrideBorderStyle: this.borderRadius,
|
|
589
589
|
}),
|
|
590
|
-
} }, this.isImmediateRedirecting && (h("div", { key: '
|
|
590
|
+
} }, this.isImmediateRedirecting && (h("div", { key: '6031b9b4d5847bb46a201ccf7f6b1cd036b3e3df', class: "loading-wrapper" }, h("zonos-spinner", { key: 'e816086c5efdfe8c1b40ce0bad935ef829a8f88d', size: 48 }))), !this.isLoading && !this.isImmediateRedirecting && (h("div", { key: 'c787a355834af35a53f09f51f97c6796fa25c345', class: "zonos--finish-details" }, h("div", { key: 'a2a4bd3caee1cbffd514dcd69927a0f8a4e20af1', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '894069f110eab9cb02fe4dfa814d7c285dadf7cb', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '95bee491e9ac903a594569c911a81c63ebfab691', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: 'cf10c1bdfe95c5a13a2714fc7d64042fa7ef49ac',
|
|
591
591
|
// Only show loading spinner if it's not an error notification
|
|
592
592
|
loading: this.isWaitingToRedirect &&
|
|
593
593
|
this.notificationType !== 'error', onClick: () => {
|
|
@@ -599,9 +599,9 @@ export class ZonosCheckoutFinish {
|
|
|
599
599
|
}
|
|
600
600
|
this.closeClickHandler();
|
|
601
601
|
}, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
|
|
602
|
-
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '
|
|
602
|
+
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'cc9da3752636dbf9ecd3446fb787074cb1fa725b', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
|
|
603
603
|
cartStore.step === 'finish' &&
|
|
604
|
-
this.notificationType === 'success' && (h("div", { key: '
|
|
604
|
+
this.notificationType === 'success' && (h("div", { key: 'f61fedefbfcf3650377bfd2e1a86d7feb4129b12', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: 'fa794be3da7f480bc3682a2e932ee1f876ac5bb2', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '5bbff8ed5b5c585dd1a4ca8e2d206d48fb080f39', onClick: () => {
|
|
605
605
|
const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
|
|
606
606
|
this.redirectToUrl(isZonosDashboard
|
|
607
607
|
? '/orders/all'
|
|
@@ -37,10 +37,10 @@ export class ZonosCheckoutFooter {
|
|
|
37
37
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
38
38
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
39
39
|
const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'ec472ed419e634f96630332398ff6e814dcd0391', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: 'd29154eb86046ddd440460343b3b115d3e23c87d', class: "zonos--checkout-footer" }, h("div", { key: 'b0bb0fed3cc0b228fb1a80c6b27a3aaa84081b95', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: 'd6ef4aa2d32a04a5d27c8085471a85970a24dbed', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '6e7d935c324465ad501a28388d71ad73fba9c74f', class: "zonos--checkout-locale-label" }, languageLabel, h("zonos-icon", { key: '5041eee50cd91210e6c1d4257f66b63e76ce9e4a', "aria-hidden": "true", class: "zonos--checkout-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '87b4b4b6fe789592d61dd7e69944b433c0bc0cf2', class: classes([
|
|
41
41
|
'zonos--checkout-footer-dialog',
|
|
42
42
|
this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
|
|
43
|
-
]) }, h("zonos-language-select", { key: '
|
|
43
|
+
]) }, h("zonos-language-select", { key: 'de8bd0ba1085564c2fe40c2d261e74ec9f67da90', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '7c3954550c4512b2d83fbafe05b57a44f0501991', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: '7bf2b74683ee81e8aa5ed5c0175ba22b8e8b5d6e', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'c39c00e77f47dbc1d47f69003cdb5c5f17c7a4e4', textColor: colorDesktop }, "Privacy policy")), h("div", { key: '567940865a03b6dce5273d70fb85860c042f9068', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: 'e3a0727029aa676e68c2a9a174c64188f7ab029e', textColor: colorDesktop }, "Powered by"), h("a", { key: '5a7f20a70efee92be700365818004f86827cc373', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'c4a61b660e474064c35626744cad44e598206179', autoHeight: true, content: ZonosIconDark, size: 108 })))))));
|
|
44
44
|
}
|
|
45
45
|
static get is() { return "zonos-checkout-footer"; }
|
|
46
46
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ export class ZonosCollectCartItems {
|
|
|
8
8
|
render() {
|
|
9
9
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
10
10
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '085e4b2fd45b68d916f268719cb52009cc06f8a2', class: "zonos--collect-cart-items zonos--elements" }, h("table", { key: '23338d49319259769cd139ff9c329f3a9c6a059a', class: "zonos--cart-table" }, h("tbody", { key: '9a8ba11598f20b78a0ea199ccdf7254db461a0ac' }, nonRestrictedItems.map(item => {
|
|
12
12
|
const itemImg = item.imageUrl;
|
|
13
13
|
const cleanedItemNames = cleanHtmlMarkdown(item.name);
|
|
14
14
|
return (h("tr", { class: "zonos--collect-cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
|
|
@@ -260,11 +260,11 @@ export class ZonosCollectFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: '3de21586bf8e0f31e698e2b1a51d3344aae94af1', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: '66f93432802d63e1fab59de19c1fd930cfddacbe', class: "zonos--finish-details" }, h("div", { key: '0857460a375bff54492dd7fe64baddf2af1e966a', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '008c4971516d110e1c2d0a348b09fa6ca0a0b1a6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: '3e86105dbdae6cb696b0c4be81d9fcc30576ae4b', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'b372ae467ccb62b5c03aba28635135c350473986', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: 'bbf5885fe6e52135e3a2d7a82f0e85fd26e6aa74', class: "zonos--button-container" }, h("zonos-button", { key: '74dd846361072721bb3c511d675f7e42b7c063e9', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|
|
@@ -46,15 +46,15 @@ export class ZonosCollectFooter {
|
|
|
46
46
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
47
47
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
48
48
|
const colorDesktop = 'gray-1000';
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '5ec7e478c6b2b4fc21634ed70261dce3b095a8a0', class: classes([
|
|
50
50
|
'zonos--elements',
|
|
51
51
|
this.isMobile && 'mobile',
|
|
52
52
|
this.isTablet && 'tablet',
|
|
53
|
-
]) }, h("div", { key: '
|
|
53
|
+
]) }, h("div", { key: 'c16c9d6e73dbfbd416137c6bf697cbb92d2bf706', class: "zonos--collect-footer" }, h("div", { key: '7df1dde2ef014d5f1b7093e034d0ccf0e795ac61', class: "zonos--collect-locale-wrapper" }, h("zonos-button", { key: 'fcbc9ddc94b68e353b2f8f064c99abf1cc2900a9', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: 'bf58b98ed61dbc6c6cba358c34f40a15301c8c9a', class: "zonos--collect-locale-label" }, languageLabel, h("zonos-icon", { key: '2cda7ba7b226accb3f42281a0dc94d8227330193', "aria-hidden": "true", class: "zonos--collect-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '963404ac73580e236740343fec11447b9ee22ca4', class: classes([
|
|
54
54
|
'zonos--collect-language-dialog',
|
|
55
55
|
this.showLanguageDialog &&
|
|
56
56
|
'zonos--collect-language-dialog-open',
|
|
57
|
-
]) }, h("zonos-language-select", { key: '
|
|
57
|
+
]) }, h("zonos-language-select", { key: '8b41a062040737a68d3c9b00839fa65b412cf7c4', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '16c4a6476916227d6310c48fb4d0cc732ba8fd52', class: "zonos--collect-footer-icon-wrapper" }, h("div", { key: '220c6d0bb23e3d43f3a21ed2cf94f4eff016e8f5', class: "zonos--collect-footer-logo" }, h("zonos-text", { key: '6c6e2cab741612e4e75a2840dc36571e49aad40d', textColor: colorDesktop }, "Powered by"), h("a", { key: '60aa25c0951f8307974c4a892fddbb0626cc76d2', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '7f913799ae95ee9ed30aea2e6144d36c89ebd7f8', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'd74339c34ecebcbdeb60e08f8de4b83d07a93a71', class: "dot" }), h("a", { key: '8e9917e5ef37bedc593774bd7e0cab85fb7a99b4', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '2cc37adc0b69dfbb7ea7ee6b6727ad173c2cae6e', textColor: colorDesktop }, "Privacy policy"))))));
|
|
58
58
|
}
|
|
59
59
|
static get is() { return "zonos-collect-footer"; }
|
|
60
60
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,13 +39,13 @@ export class ZonosCollectReview {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'e80b802a45d3d6395ead284a218ed1053d2e05a7', class: classes([
|
|
43
43
|
'zonos--collect-review zonos--elements',
|
|
44
44
|
this.isMobile && 'mobile',
|
|
45
45
|
this.isTablet && 'tablet',
|
|
46
|
-
]) }, h("div", { key: '
|
|
46
|
+
]) }, h("div", { key: 'febeea7c348a5279ddf97bdd48e3d28fa07d6f22', class: "zonos--title" }, h("zonos-text", { key: '1ed640de9e3e6d87064a727ecca208368e1a1e81', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
|
|
47
47
|
organizationName: zonosStore.organizationName,
|
|
48
|
-
}))), h("div", { key: '
|
|
48
|
+
}))), h("div", { key: '0a61b9f3a8ba33e83b50b8c53edfa3b784d47051', class: "zonos--total-pay" }, renderFallback({
|
|
49
49
|
content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
|
|
50
50
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
51
51
|
isForeign: true,
|
|
@@ -52,7 +52,7 @@ export class ZonosCollectSubtotal {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
this.initSubtotalData();
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: '6df77785504d4076a3b675a9ef62171105fa22b5', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: '5a0917d3828ff18b5ad67d6e168e67b5646a6425', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: 'b51069b800459d0aa64cebb98c0bae99d05bde8a', class: "zonos--row zonos--collect-duty" }, h("td", { key: 'b7bd45e0256a852ec363ffed7022d95079a8282c', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '47db47e87c83c4e5361e363d8c48cbef675a1eb7', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: 'd3b083c586c04fdca1a9410992cba6350050fd75', class: "zonos--column" }), h("td", { key: '6aedc27105ffe3a15744482025e3c711de22709a', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
56
56
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
57
57
|
amount: this.subtotals[translate('Duties')] || 0,
|
|
58
58
|
isForeign: true,
|
|
@@ -60,7 +60,7 @@ export class ZonosCollectSubtotal {
|
|
|
60
60
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
61
61
|
skeletonHeight: '14px',
|
|
62
62
|
skeletonWidth: '150px',
|
|
63
|
-
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '
|
|
63
|
+
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: 'ee934191b6d95c2bdebf40c5a8d6e9a8dcc4716b', class: "zonos--row zonos--collect-tax" }, h("td", { key: 'd9966df4b307915d69e99ddca307afb3b1dac57d', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '0b074f206a3746e9428a1f7f4df95a7035770535', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: '4cd818d7d7db3bbb1b044f09420f3c0de9c2654f', class: "zonos--column" }), h("td", { key: '885a3b0d243f9687af99018c94e6f7990ab94ae4', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
64
64
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
65
65
|
amount: this.subtotals[translate('Taxes')] || 0,
|
|
66
66
|
isForeign: true,
|
|
@@ -68,7 +68,7 @@ export class ZonosCollectSubtotal {
|
|
|
68
68
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
69
69
|
skeletonHeight: '14px',
|
|
70
70
|
skeletonWidth: '150px',
|
|
71
|
-
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '
|
|
71
|
+
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '840cdf461bd3cb0780c517be7900a4db7522da6d', class: "zonos--row zonos--collect-fee" }, h("td", { key: '57edb0642163a4fb580c538334f77fba2f15efe1', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'daa9e1ab156a2a5b26aec744014c2501948872e8', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: '90cc11dda267840a4d4559aed5cfa5d61e13a986', class: "zonos--column" }), h("td", { key: '3716f79ab7323f5d6ebca7ece57bfd7b78f62b20', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
72
72
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
73
73
|
amount: this.subtotals[translate('Fees')] || 0,
|
|
74
74
|
isForeign: true,
|
|
@@ -76,7 +76,7 @@ export class ZonosCollectSubtotal {
|
|
|
76
76
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
77
77
|
skeletonHeight: '14px',
|
|
78
78
|
skeletonWidth: '150px',
|
|
79
|
-
})))), h("tr", { key: '
|
|
79
|
+
})))), h("tr", { key: '2ac89b5b3f76c2991b88ce163ca571380d91ae8b', class: "zonos--row zonos--collect-spacing" }, h("td", { key: 'fc073ec87ac579ad5af8fb2dd08fe47112e21717', class: "zonos--column", colSpan: 3 })), h("tr", { key: '87c32f3ee0ffb3c347c495ec853ebf92b6a08a0f', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: '664d161448aec51324f0d177d20fa0ef765a17bb', class: "zonos--column" }), h("td", { key: 'c14949595986be080c502ad175529883f2c789cc', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'cf141dd8e58e73b981cdb5f51c111d83099222ae', type: "label" }, translate('Subtotal'))), h("td", { key: '3cba5203e563ec1f4c591d6c42cf7b9a7c8c2045', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
80
80
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
81
81
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
82
82
|
isForeign: true,
|
|
@@ -84,7 +84,7 @@ export class ZonosCollectSubtotal {
|
|
|
84
84
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
85
85
|
skeletonHeight: '14px',
|
|
86
86
|
skeletonWidth: '150px',
|
|
87
|
-
}))), h("tr", { key: '
|
|
87
|
+
}))), h("tr", { key: '14065db117fef4acbb0f459a624fee28ea127205', class: "zonos--row zonos--collect-total" }, h("td", { key: '0bc154f6d48ddb0bdc829233a66f0e486ed9df4f', class: "zonos--column" }), h("td", { key: '1f2997cebc3250152b1ecd207066ffc44af7f124', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'd50cc0977380fc1bf858fbe26201d919000a74b5', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: '2fcd30a868708f5abea04230c1407fff62fb011d', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
88
88
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
89
89
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
90
90
|
isForeign: true,
|
|
@@ -18,10 +18,10 @@ export class ZonosInvoiceCartItems {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: '55bb132970db23e06698701d7d27e108ff0643e0', class: classes([
|
|
22
22
|
'zonos--invoice-cart-items zonos--elements',
|
|
23
23
|
this.isMobile && 'mobile',
|
|
24
|
-
]) }, h("table", { key: '
|
|
24
|
+
]) }, h("table", { key: 'c9722c17a507ca9fdcb8ca47151d14ba1d74f698', class: "zonos--cart-table" }, h("tbody", { key: 'd8d318e03bfeefaf687825c6131367e73c0b91ce' }, nonRestrictedItems.map(item => {
|
|
25
25
|
var _a, _b, _c, _d;
|
|
26
26
|
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;
|
|
27
27
|
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;
|
|
@@ -260,11 +260,11 @@ export class ZonosInvoiceFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: '5f563128da4ccbf30f9f09446760a83666be0987', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: '276f35404f91ae34b310e1f006770a8885a9751d', class: "zonos--finish-details" }, h("div", { key: 'e6f73be5adced5c4d7598a7c41827414a41b75fc', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '5c010a8bc22853ceb669b64cb0ac608dbd01f78c', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'c20d9274ef2d3824e581a172b416451f8ed0f4fb', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'eab62f7ca2bb6f9a610179a9c3a345844bf99d5b', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '5a870802ce9b2b34769ac1fa2920e17eed0d1c91', class: "zonos--button-container" }, h("zonos-button", { key: '09784e7c0a421a304987d84c1d81f0ee2995c0eb', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|