@zonos/elements 1.3.264 → 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-d4486651.js → cart-efc42379.js} +2 -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-600fa2a4.js → invoice-9e4d479f.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-f56566ef.js → isCollectMobileTablet-630fcf87.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-06cc0379.js → localization-4b17c530.js} +1 -1
- package/dist/cjs/{paypal-52c4a4d4.js → paypal-3bb55914.js} +2 -2
- package/dist/cjs/{placeTestOrder-7c88197a.js → placeTestOrder-313cbd78.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-2ebeff09.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 +101 -22
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +12 -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-elements.cjs.js +1 -1
- 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-cart-subtotal/zonos-cart-subtotal.css +9 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +15 -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-checkout/zonos-checkout.js +9 -0
- 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/store/checkout/cart.js +1 -0
- package/dist/collection/components/utils/getContrastColor.js +27 -10
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +1 -1
- package/dist/collection/components/utils/parseLinkedText.js +65 -0
- package/dist/esm/{cart-41f41429.js → cart-62c166fc.js} +2 -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-e6721745.js → invoice-fa4ff6fb.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-d02bb448.js → isCollectMobileTablet-5f50ec81.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-ee06df70.js → localization-d2631105.js} +1 -1
- package/dist/esm/{paypal-ac74241f.js → paypal-424d040d.js} +2 -2
- package/dist/esm/{placeTestOrder-0416d327.js → placeTestOrder-cf237d95.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-99da51f5.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 +101 -22
- package/dist/esm/zonos-checkbox_2.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +12 -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-elements.js +1 -1
- 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-41f41429.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-e6721745.js → invoice-fa4ff6fb.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-d02bb448.js → isCollectMobileTablet-5f50ec81.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-ee06df70.js → localization-d2631105.js} +1 -1
- package/dist/esm-es5/{paypal-ac74241f.js → paypal-424d040d.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-0416d327.js → placeTestOrder-cf237d95.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-99da51f5.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-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 -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 +11 -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-checkout/zonos-cart-subtotal/zonos-cart-subtotal.d.ts +7 -0
- package/dist/types/components/common/zonos-stripe-select/zonos-stripe-select.d.ts +1 -2
- package/dist/types/components/store/checkout/cart.d.ts +5 -0
- package/dist/types/components/utils/parseLinkedText.d.ts +24 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +6 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-ce855245.system.js → p-01384124.system.js} +1 -1
- package/dist/zonos-elements/{p-258c0551.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-b0526805.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-9f18348f.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-7564d199.entry.js → p-1a470353.entry.js} +1 -1
- package/dist/zonos-elements/{p-9eff0691.js → p-1d6f3ab9.js} +1 -1
- package/dist/zonos-elements/{p-c52bc5ad.system.entry.js → p-209d7728.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d6b49830.entry.js → p-227ef22f.entry.js} +1 -1
- package/dist/zonos-elements/{p-07cdff18.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-98c53c77.system.js → p-2b30beea.system.js} +1 -1
- package/dist/zonos-elements/{p-db607fc3.system.js → p-305e2dd8.system.js} +1 -1
- package/dist/zonos-elements/{p-721069c3.system.js → p-37207963.system.js} +1 -1
- package/dist/zonos-elements/p-40284821.system.js +1 -0
- package/dist/zonos-elements/{p-15f70aae.system.entry.js → p-40a45837.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4495f149.system.entry.js +1 -0
- package/dist/zonos-elements/{p-52077d7c.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-9da832b2.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-0914b8a1.system.entry.js → p-72efa5b7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab73cbed.entry.js → p-7677c45a.entry.js} +1 -1
- package/dist/zonos-elements/{p-84c7cae6.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-e3bc3917.system.entry.js → p-7b74e5f2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-88596f27.system.entry.js → p-7c101a92.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b13d56b9.entry.js → p-889e5db0.entry.js} +1 -1
- package/dist/zonos-elements/p-8ccd6d3f.js +1 -0
- package/dist/zonos-elements/{p-2c027b67.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-9aaa1d80.entry.js +1 -0
- package/dist/zonos-elements/{p-4220556e.js → p-9b660cd3.js} +1 -1
- package/dist/zonos-elements/{p-b65bca4b.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-14ce8e3a.js → p-a75baf3e.js} +1 -1
- package/dist/zonos-elements/{p-dea75665.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-a2e9b2aa.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-90d19cb6.js → p-cd88efdb.js} +1 -1
- package/dist/zonos-elements/{p-076ca381.system.js → p-ce44c942.system.js} +1 -1
- package/dist/zonos-elements/{p-92a14180.entry.js → p-d63e18a8.entry.js} +1 -1
- package/dist/zonos-elements/p-daeb57cb.entry.js +1 -0
- package/dist/zonos-elements/{p-2555ba6b.system.entry.js → p-deaf0e38.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0fffa75.system.entry.js → p-ea88f7f5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9288878f.entry.js → p-f1bbad73.entry.js} +1 -1
- package/dist/zonos-elements/{p-f546bd7d.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-20e0c24e.entry.js +0 -1
- package/dist/zonos-elements/p-2fc253b3.js +0 -1
- package/dist/zonos-elements/p-349bdc03.system.entry.js +0 -1
- package/dist/zonos-elements/p-3bc1adb7.entry.js +0 -1
- package/dist/zonos-elements/p-551dd2e0.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-ba7cf5e8.system.entry.js +0 -1
- package/dist/zonos-elements/p-c9a1f774.js +0 -1
- package/dist/zonos-elements/p-ccc4f69b.entry.js +0 -1
|
@@ -2,10 +2,10 @@ import { r as registerInstance, h, a as Host, g as getElement, d as createEvent
|
|
|
2
2
|
import { f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-98c64be8.js';
|
|
5
|
-
import { b as stripeStore, t as trackConversionEvent } from './cart-
|
|
6
|
-
import { s as storageStore } from './localization-
|
|
5
|
+
import { b as stripeStore, t as trackConversionEvent } from './cart-62c166fc.js';
|
|
6
|
+
import { s as storageStore } from './localization-d2631105.js';
|
|
7
7
|
import { l as logError } from './handleFetch-a844cac1.js';
|
|
8
|
-
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-
|
|
8
|
+
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-424d040d.js';
|
|
9
9
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
10
10
|
import './isDarkColor-0a8453e7.js';
|
|
11
11
|
import './isContrastColor-6bad285e.js';
|
|
@@ -35,16 +35,16 @@ const ZonosCard = class {
|
|
|
35
35
|
customRoundRadius: `${this.borderRadius}px`,
|
|
36
36
|
overrideBorderStyle: 'ROUNDED',
|
|
37
37
|
});
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: 'ae124207be3fbddbd445d74cdf31085401a09c67', style: {
|
|
39
39
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
40
|
-
} }, h("div", { key: '
|
|
40
|
+
} }, h("div", { key: '43fe2ffcb7caa0754c93f6d94898156f5169139b', class: classes(['styled-card']), style: {
|
|
41
41
|
'--zonos--background-color': backgroundColor,
|
|
42
42
|
'--zonos--border-radius': borderRadius,
|
|
43
43
|
padding: this.spacing,
|
|
44
|
-
} }, this.label && (h("header", { key: '
|
|
44
|
+
} }, this.label && (h("header", { key: '6839065e2e630a841d6ecd7f03b19a93a988e49a', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '498435bbbb60cc6d1d13a304aad321107bd6feaf', type: "subheader" }, this.label), h("h-stack", { key: '4de3f042a72b16be374209b393cb174fc7d1b670', spacing: 8 }, this.actions))), h("slot", { key: 'add9dac3d8b9a50c0caa37d245f632c6a5e64d7f' }), (this.footerActions || this.footerContent) && (h("footer", { key: 'e83f37ed24b44d9b7316579ee28ea51a3da119d8', class: "card-footer", style: {
|
|
45
45
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
46
46
|
padding: this.spacing,
|
|
47
|
-
} }, h("div", { key: '
|
|
47
|
+
} }, h("div", { key: '685721d5f7f51c99438f4ddf23cf75122db3223c' }, this.footerContent), h("h-stack", { key: '61a44c918aea4994c10b16045564b45135296852', spacing: 8 }, this.footerActions))))));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
ZonosCard.style = ZonosCardStyle0;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { r as registerInstance, e as getAssetPath, h, a as Host, F as Fragment, d as createEvent, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { d as cartStore, I as cartStoreHasOneEligibleItem, J as stripeStoreApplyPromoCode, K as stripeStoreRemovePromoCode, b as stripeStore, C as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, M as stripeStoreMessageBasedOnStatus, N as storeCreditStore, O as storeCreditStoreReset, x as storeCreditStoreCoversFullAmount, r as cartStoreNextStep, P as stripeStoreTranslateAddressToLatin, Q as extractName, D as cartStoreOnChange, R as stripeStoreAsyncAddressUpdate, H as cartStoreUpdateSelectedShippingOption, S as cartStoreGetShippingTransitInfo, T as cartStoreGetMethod, U as sortServiceLevelOptionsByAmount } from './cart-
|
|
3
|
-
import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-
|
|
4
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
2
|
+
import { d as cartStore, I as cartStoreHasOneEligibleItem, J as stripeStoreApplyPromoCode, K as stripeStoreRemovePromoCode, b as stripeStore, C as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, M as stripeStoreMessageBasedOnStatus, N as storeCreditStore, O as storeCreditStoreReset, x as storeCreditStoreCoversFullAmount, r as cartStoreNextStep, P as stripeStoreTranslateAddressToLatin, Q as extractName, D as cartStoreOnChange, R as stripeStoreAsyncAddressUpdate, H as cartStoreUpdateSelectedShippingOption, S as cartStoreGetShippingTransitInfo, T as cartStoreGetMethod, U as sortServiceLevelOptionsByAmount } from './cart-62c166fc.js';
|
|
3
|
+
import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-d2631105.js';
|
|
4
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-513ead96.js';
|
|
5
5
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-5f7856f2.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
7
|
import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
|
|
8
|
-
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-
|
|
9
|
-
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore } from './paypal-
|
|
8
|
+
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-a73f64b7.js';
|
|
9
|
+
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore } from './paypal-424d040d.js';
|
|
10
10
|
import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
11
11
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
12
12
|
import { g as getBorderRadius } from './getBorderRadius-98c64be8.js';
|
|
13
13
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
14
14
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
15
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
15
|
+
import { p as placeTestOrder } from './placeTestOrder-cf237d95.js';
|
|
16
16
|
import { i as isDarkColor } from './isDarkColor-0a8453e7.js';
|
|
17
|
-
import { g as getContrastColor } from './getContrastColor-
|
|
17
|
+
import { g as getContrastColor } from './getContrastColor-0aa643c1.js';
|
|
18
18
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
19
19
|
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-da7fdd37.js';
|
|
20
20
|
import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
@@ -36,7 +36,7 @@ const ZonosCartItems = class {
|
|
|
36
36
|
render() {
|
|
37
37
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
38
38
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
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 => {
|
|
40
40
|
const itemImg = item.imageUrl;
|
|
41
41
|
const cleanedItemNames = cleanHtmlMarkdown(item.name);
|
|
42
42
|
const amount = item.amount * item.quantity;
|
|
@@ -144,7 +144,73 @@ const ZonosCartRestrictedItems = class {
|
|
|
144
144
|
};
|
|
145
145
|
ZonosCartRestrictedItems.style = ZonosCartRestrictedItemsStyle0;
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
// Markdown URL allows a single level of balanced `(...)` (e.g.
|
|
148
|
+
// `https://example.com/foo_(v2)`); anything deeper is rare in real-world URLs
|
|
149
|
+
// and we'd rather not write a recursive grammar. Bare URLs match greedily up
|
|
150
|
+
// to whitespace and rely on `BARE_URL_TRAILING_PUNCT` to peel off sentence
|
|
151
|
+
// punctuation.
|
|
152
|
+
const LINK_REGEX = /\[([^\]]+)\]\((https?:\/\/(?:[^\s()]|\([^\s()]*\))+)\)|(https?:\/\/[^\s]+)/g;
|
|
153
|
+
// Trailing characters that look like sentence punctuation rather than part of
|
|
154
|
+
// a URL. Stripped from bare URL matches so `Visit https://example.com.` keeps
|
|
155
|
+
// the period out of the link. `)` is intentionally excluded — Wikipedia-style
|
|
156
|
+
// URLs (e.g. `https://example.com/foo_(v2)`) embed balanced parens, and we
|
|
157
|
+
// don't want to break those.
|
|
158
|
+
const BARE_URL_TRAILING_PUNCT = /[.,;:!?\]}"']+$/;
|
|
159
|
+
/**
|
|
160
|
+
* Parse a string into an ordered list of plain-text and link segments.
|
|
161
|
+
*
|
|
162
|
+
* Supports Markdown-style links `[text](url)` and bare `https?://` URLs.
|
|
163
|
+
* Anything else is returned as a plain text segment so callers can render it
|
|
164
|
+
* as text (never `innerHTML`) — this is what keeps merchant-provided strings
|
|
165
|
+
* safe from HTML injection in [[customMessage]] banners.
|
|
166
|
+
*
|
|
167
|
+
* @example
|
|
168
|
+
* parseLinkedText('Visit [docs](https://example.com)')
|
|
169
|
+
* // [
|
|
170
|
+
* // { type: 'text', value: 'Visit ' },
|
|
171
|
+
* // { type: 'link', href: 'https://example.com', text: 'docs' },
|
|
172
|
+
* // ]
|
|
173
|
+
*/
|
|
174
|
+
const parseLinkedText = (input) => {
|
|
175
|
+
var _a, _b;
|
|
176
|
+
const segments = [];
|
|
177
|
+
// Reset the shared regex state in case a previous call left a lastIndex.
|
|
178
|
+
LINK_REGEX.lastIndex = 0;
|
|
179
|
+
let lastIndex = 0;
|
|
180
|
+
let match;
|
|
181
|
+
while ((match = LINK_REGEX.exec(input)) !== null) {
|
|
182
|
+
if (match.index > lastIndex) {
|
|
183
|
+
segments.push({
|
|
184
|
+
type: 'text',
|
|
185
|
+
value: input.slice(lastIndex, match.index),
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
const [, mdText, mdUrl, plainUrl] = match;
|
|
189
|
+
// One of the alternations matched: either a markdown link (mdText + mdUrl)
|
|
190
|
+
// or a bare URL (plainUrl). Use the URL as both href and display text for
|
|
191
|
+
// bare URLs.
|
|
192
|
+
if (mdUrl && mdText) {
|
|
193
|
+
segments.push({ href: mdUrl, text: mdText, type: 'link' });
|
|
194
|
+
}
|
|
195
|
+
else if (plainUrl) {
|
|
196
|
+
const trailing = (_b = (_a = plainUrl.match(BARE_URL_TRAILING_PUNCT)) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : '';
|
|
197
|
+
const url = trailing
|
|
198
|
+
? plainUrl.slice(0, plainUrl.length - trailing.length)
|
|
199
|
+
: plainUrl;
|
|
200
|
+
segments.push({ href: url, text: url, type: 'link' });
|
|
201
|
+
if (trailing) {
|
|
202
|
+
segments.push({ type: 'text', value: trailing });
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
lastIndex = LINK_REGEX.lastIndex;
|
|
206
|
+
}
|
|
207
|
+
if (lastIndex < input.length) {
|
|
208
|
+
segments.push({ type: 'text', value: input.slice(lastIndex) });
|
|
209
|
+
}
|
|
210
|
+
return segments;
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
const zonosCartSubtotalCss = ":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:20px 8px;vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price,:host .zonos--cart-promo-code-col{border-bottom:1px solid var(--zonos-elements-gray-200)}:host .zonos--cart-duty-tax-price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;gap:5px}:host .zonos--cart-subtotal-price{text-align:right}:host .zonos--cart-subtotal-price zonos-text{white-space:nowrap}:host .zonos--cart-subtotal-price zonos-text,:host .zonos--cart-pay-total zonos-text{white-space:nowrap}:host .zonos--cart-promo-code-input-wrapper{display:-ms-flexbox;display:flex;gap:16px;-ms-flex-align:center;align-items:center}:host .zonos--cart-promo-code-input{-ms-flex:1;flex:1}:host .zonos--cart-custom-message .zonos--column:last-child{padding:0 8px;width:auto;text-align:left}:host .zonos--cart-custom-message zonos-banner{padding:12px;border-radius:var(--zonos-elements-radius-6)}";
|
|
148
214
|
const ZonosCartSubtotalStyle0 = zonosCartSubtotalCss;
|
|
149
215
|
|
|
150
216
|
const ZonosCartSubtotal = class {
|
|
@@ -173,6 +239,19 @@ const ZonosCartSubtotal = class {
|
|
|
173
239
|
}
|
|
174
240
|
return null;
|
|
175
241
|
};
|
|
242
|
+
/**
|
|
243
|
+
* Render a single merchant-provided message line. Segments come from
|
|
244
|
+
* [[parseLinkedText]] and are emitted as VNodes (never `innerHTML`) so
|
|
245
|
+
* untrusted strings can't inject HTML.
|
|
246
|
+
*/
|
|
247
|
+
this.renderMessageLine = (line) => parseLinkedText(line).map(segment => segment.type === 'link' ? (h("zonos-link", { href: segment.href, rel: "noopener noreferrer", target: "_blank" }, segment.text)) : (segment.value));
|
|
248
|
+
this.renderCustomMessage = () => {
|
|
249
|
+
const messageLines = cartStore.customMessage.filter(line => !!line.trim());
|
|
250
|
+
if (!messageLines.length) {
|
|
251
|
+
return null;
|
|
252
|
+
}
|
|
253
|
+
return (h("tr", { class: "zonos--row zonos--cart-custom-message" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column", colSpan: 2 }, h("zonos-banner", { intent: "info" }, h("zonos-text", { type: "boldLabel" }, messageLines.map((line, idx) => (h(Fragment, null, idx > 0 && h("br", null), this.renderMessageLine(line)))))))));
|
|
254
|
+
};
|
|
176
255
|
this.getCartSubtotalSubtitle = () => {
|
|
177
256
|
const inclusivePriceType = this.getInclusivePriceType();
|
|
178
257
|
if (inclusivePriceType === 'DUTY_AND_FEE') {
|
|
@@ -302,7 +381,7 @@ const ZonosCartSubtotal = class {
|
|
|
302
381
|
}))))), h("tr", { class: "zonos--row zonos--cart-pay-total" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Order total'))), h("td", { class: "zonos--column zonos--cart-total-price" }, h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
303
382
|
amount: total,
|
|
304
383
|
isForeign: true,
|
|
305
|
-
})))))));
|
|
384
|
+
})))), this.renderCustomMessage())));
|
|
306
385
|
}
|
|
307
386
|
static get assetsDirs() { return ["assets"]; }
|
|
308
387
|
};
|
|
@@ -880,11 +959,11 @@ const ZonosCheckoutFinish = class {
|
|
|
880
959
|
}
|
|
881
960
|
render() {
|
|
882
961
|
const isTestMode = getIsTestMode();
|
|
883
|
-
return (h(Host, { key: '
|
|
962
|
+
return (h(Host, { key: '3df50a75327f2dd1d7eea538aed0501c96504f2d', class: "zonos--checkout-finish zonos--elements", style: {
|
|
884
963
|
'--zonos--border-radius': getBorderRadius({
|
|
885
964
|
overrideBorderStyle: this.borderRadius,
|
|
886
965
|
}),
|
|
887
|
-
} }, this.isImmediateRedirecting && (h("div", { key: '
|
|
966
|
+
} }, 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',
|
|
888
967
|
// Only show loading spinner if it's not an error notification
|
|
889
968
|
loading: this.isWaitingToRedirect &&
|
|
890
969
|
this.notificationType !== 'error', onClick: () => {
|
|
@@ -896,9 +975,9 @@ const ZonosCheckoutFinish = class {
|
|
|
896
975
|
}
|
|
897
976
|
this.closeClickHandler();
|
|
898
977
|
}, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
|
|
899
|
-
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '
|
|
978
|
+
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'cc9da3752636dbf9ecd3446fb787074cb1fa725b', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
|
|
900
979
|
cartStore.step === 'finish' &&
|
|
901
|
-
this.notificationType === 'success' && (h("div", { key: '
|
|
980
|
+
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: () => {
|
|
902
981
|
const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
|
|
903
982
|
this.redirectToUrl(isZonosDashboard
|
|
904
983
|
? '/orders/all'
|
|
@@ -960,10 +1039,10 @@ const ZonosCheckoutFooter = class {
|
|
|
960
1039
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
961
1040
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
962
1041
|
const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
|
|
963
|
-
return (h(Host, { key: '
|
|
1042
|
+
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$1, iconColor: colorDesktop, size: 18 }))), h("div", { key: '87b4b4b6fe789592d61dd7e69944b433c0bc0cf2', class: classes([
|
|
964
1043
|
'zonos--checkout-footer-dialog',
|
|
965
1044
|
this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
|
|
966
|
-
]) }, h("zonos-language-select", { key: '
|
|
1045
|
+
]) }, 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 })))))));
|
|
967
1046
|
}
|
|
968
1047
|
get el() { return getElement(this); }
|
|
969
1048
|
static get watchers() { return {
|
|
@@ -1271,17 +1350,17 @@ const ZonosCheckoutProgressTabs = class {
|
|
|
1271
1350
|
color: labelSelectedColor,
|
|
1272
1351
|
})
|
|
1273
1352
|
: labelSelectedColor;
|
|
1274
|
-
return (h(Host, { key: '
|
|
1353
|
+
return (h(Host, { key: '2bc73268f4413887abe526ab1ac01471627e9fbc', class: "zonos--elements", style: {
|
|
1275
1354
|
'--zonos--color': contrastLabelColor,
|
|
1276
1355
|
'--zonos--progress-percent': this.getTotalSuccessStep(),
|
|
1277
|
-
} }, h("div", { key: '
|
|
1356
|
+
} }, h("div", { key: 'fb812b9d4e6ba72f26b4f31ccf8444500a72f277', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
|
|
1278
1357
|
const isSelected = tab.value === selectedStep;
|
|
1279
1358
|
return (h("button", { "aria-label": `Tab ${tab.label}`, class: classes([
|
|
1280
1359
|
'zonos--tab-item',
|
|
1281
1360
|
tab.value === selectedStep && 'selected',
|
|
1282
1361
|
tab.isDone && 'done',
|
|
1283
1362
|
]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => this.setTabSelected(tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, translate(tab.label))));
|
|
1284
|
-
})), h("div", { key: '
|
|
1363
|
+
})), h("div", { key: '0dcaeb8d709f06df00b965c7aa081294a060120e', class: "zonos--tab-progress" }, h("div", { key: '8faef8257c4a0244e1ee5f3ac5752904ecd63d96', class: "zonos--progress-bar-fill" }))));
|
|
1285
1364
|
}
|
|
1286
1365
|
static get assetsDirs() { return ["assets"]; }
|
|
1287
1366
|
get ele() { return getElement(this); }
|
|
@@ -1994,11 +2073,11 @@ const ZonosRestState = class {
|
|
|
1994
2073
|
}
|
|
1995
2074
|
render() {
|
|
1996
2075
|
const imageUrl = this.getImageRestState();
|
|
1997
|
-
return (h(Host, { key: '
|
|
2076
|
+
return (h(Host, { key: 'c8ad36ee240e6c623cfd950a9cd2eebc89e1d264', class: classes(['zonos--elements zonos--restState']), style: {
|
|
1998
2077
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
1999
|
-
} }, h("div", { key: '
|
|
2078
|
+
} }, h("div", { key: 'c1f45b4dfc584bd492f36cd678699aec372d0b41', class: "zonos--restState-image" }, h("img", { key: 'dbbcbfcdfb849c8f31c17eba4f99d2fbf1f9f05d', alt: this.restStateType, onError: () => {
|
|
2000
2079
|
this.isErrorImageLoad = true;
|
|
2001
|
-
}, src: imageUrl })), h("div", { key: '
|
|
2080
|
+
}, src: imageUrl })), h("div", { key: 'a3f92d7c4b7c3d6b27b310024b60659903901300', class: "content" }, h("zonos-text", { key: 'c3f6af9cc17b95f988d848e18e3afbdb711c5ddd', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '656d089910ca5aa79b762d6c36b9b14ef093b706', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: 'e44d6b8bdf04cc1bc31a3ed427260c08ab05781b', class: "action" }, h("slot", { key: '662fcf9da75d402dbfdd4ec8135c5112c5cc7527' }))));
|
|
2002
2081
|
}
|
|
2003
2082
|
static get assetsDirs() { return ["assets"]; }
|
|
2004
2083
|
};
|
|
@@ -68,14 +68,14 @@ const ZonosCheckbox = class {
|
|
|
68
68
|
customRoundRadius: '4px',
|
|
69
69
|
overrideBorderStyle: this.borderStyle,
|
|
70
70
|
});
|
|
71
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: '68ce8866560fc44b0f0ccdc2c62ce6f12662b732', class: classes(['zonos--elements zonos--checkbox']), style: {
|
|
72
72
|
'--zonos--background-color': backgroundColor,
|
|
73
73
|
'--zonos--border-radius': borderStyle,
|
|
74
74
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
75
75
|
'--zonos--size': `${this.size}px`,
|
|
76
|
-
} }, h("label", { key: '
|
|
76
|
+
} }, h("label", { key: '296bc060857897219204b2f7c92f14fe95d9a4e0', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '0995da201de091b958f8a7e0aa8e160d3806c9df', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
|
|
77
77
|
this.checkboxSelected.emit(e.target.checked);
|
|
78
|
-
}, type: "checkbox" }), h("span", { key: '
|
|
78
|
+
}, type: "checkbox" }), h("span", { key: '9ea1f4c9e4eecf9ac151d10318fcdec7e3a242e2', class: "checkmark-container" }, h("svg", { key: '56a08834db133070b05d00c95017ed2e35a27d7f', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'c137dbb9448ca58d7080b48f7e8e0ca0ce534ef9', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: 'bdff3daf6e88591d3af0567c74569608e6dabb4e', size: this.fontSize }, this.label)))));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
ZonosCheckbox.style = ZonosCheckboxStyle0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as storeCreditStoreApplyCredit, x as storeCreditStoreCoversFullAmount, y as validateCheckoutSession, z as storeCreditStoreCreateOrder, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as cartStoreOnChange, E as stripeStoreOnChange, F as storeCreditStoreGetEffectiveAmount } from './cart-
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitAnalytics, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-
|
|
2
|
+
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as storeCreditStoreApplyCredit, x as storeCreditStoreCoversFullAmount, y as validateCheckoutSession, z as storeCreditStoreCreateOrder, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as cartStoreOnChange, E as stripeStoreOnChange, F as storeCreditStoreGetEffectiveAmount } from './cart-62c166fc.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitAnalytics, a as paypalStore, b as paypalInitScript } from './paypal-424d040d.js';
|
|
4
|
+
import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-d2631105.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-9662b071.js';
|
|
6
6
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
7
7
|
import { h as handleFetch, l as logError, g as getIsTestMode, j as jsonParse, b as getAdditionalLogMetadata, s as sendErrorLog, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
|
|
@@ -1798,6 +1798,9 @@ const ZonosCheckout = class {
|
|
|
1798
1798
|
// if createCartId is provided, use it to build cart. Merchant will provide create a cart from their server side and give the cart id to us.
|
|
1799
1799
|
if (typeof zonosStore.checkoutSettings.createCartId === 'function') {
|
|
1800
1800
|
log('"createCartId" is provided, start building cart');
|
|
1801
|
+
// Reset before awaiting the merchant callback so a stale banner from a
|
|
1802
|
+
// previous open is not visible while the network call is in flight.
|
|
1803
|
+
cartStore.customMessage = [];
|
|
1801
1804
|
const cartIdResult = await zonosStore.checkoutSettings.createCartId();
|
|
1802
1805
|
let cartId;
|
|
1803
1806
|
if (typeof cartIdResult === 'object') {
|
|
@@ -1807,6 +1810,12 @@ const ZonosCheckout = class {
|
|
|
1807
1810
|
this.useShippingDataFromCreateCartId(cartIdResult.shippingData);
|
|
1808
1811
|
cartStore.customerAuthenticationToken =
|
|
1809
1812
|
cartIdResult.customerAuthenticationToken || null;
|
|
1813
|
+
// Normalize against misbehaving merchant callbacks: only accept an
|
|
1814
|
+
// array of strings, drop everything else so a bad value can't crash
|
|
1815
|
+
// the renderer (`.filter(...)` would throw on non-arrays).
|
|
1816
|
+
cartStore.customMessage = Array.isArray(cartIdResult.customMessage)
|
|
1817
|
+
? cartIdResult.customMessage.filter((line) => typeof line === 'string')
|
|
1818
|
+
: [];
|
|
1810
1819
|
}
|
|
1811
1820
|
else {
|
|
1812
1821
|
cartId = cartIdResult;
|
|
@@ -53,10 +53,10 @@ const ZonosCollapse = class {
|
|
|
53
53
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
54
54
|
this.el.style.overflow = 'hidden';
|
|
55
55
|
}
|
|
56
|
-
return (h(Host, { key: '
|
|
56
|
+
return (h(Host, { key: '4266c0d5399bbcecf4725cfda02ee88fb3b74843', class: 'zonos--elements zonos--collapse', style: {
|
|
57
57
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
58
58
|
height: this.getElementHeight(),
|
|
59
|
-
} }, h("div", { key: '
|
|
59
|
+
} }, h("div", { key: 'ca2fb1d9b821402ff26e171f678083d60b401a22' }, h("iframe", { key: 'ba726164295930bba21d115b732a7bd2edad18e0', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: '1454a6f84d2e90be4b79868c99dfefdb21baf9d9' }))));
|
|
60
60
|
}
|
|
61
61
|
get el() { return getElement(this); }
|
|
62
62
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, e as getAssetPath, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import { d as cartStore } from './cart-
|
|
2
|
+
import { d as cartStore } from './cart-62c166fc.js';
|
|
3
3
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-5f7856f2.js';
|
|
4
4
|
import { f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
7
|
-
import './localization-
|
|
7
|
+
import './localization-d2631105.js';
|
|
8
8
|
import './handleFetch-a844cac1.js';
|
|
9
9
|
import './VarianceTest-572cecf5.js';
|
|
10
10
|
import './isDarkColor-0a8453e7.js';
|
|
@@ -21,7 +21,7 @@ const ZonosCollectCartItems = class {
|
|
|
21
21
|
render() {
|
|
22
22
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
23
23
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
24
|
-
return (h(Host, { key: '
|
|
24
|
+
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 => {
|
|
25
25
|
const itemImg = item.imageUrl;
|
|
26
26
|
const cleanedItemNames = cleanHtmlMarkdown(item.name);
|
|
27
27
|
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: () => {
|
|
@@ -48,10 +48,10 @@ const HStack = class {
|
|
|
48
48
|
this.spacing = 24;
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '721c4dd7d467879b21078725e6343b7ee8d76675', style: {
|
|
52
52
|
'--spacing': `${this.spacing}px`,
|
|
53
53
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
54
|
-
} }, h("slot", { key: '
|
|
54
|
+
} }, h("slot", { key: '1e4dc26d7e61893d04bc6255abf2834b4545b335' })));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
HStack.style = ZonosHStackStyle0;
|
|
@@ -74,7 +74,7 @@ const ZonosSkeleton = class {
|
|
|
74
74
|
this.skeletonHeight = '14px';
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '22a28005143f47dd80eaec233e7d9937d7e72507', class: classes(['zonos--elements zonos--skeleton']), style: styles({
|
|
78
78
|
'--zonos--skeleton-height': this.skeletonHeight,
|
|
79
79
|
'--zonos--skeleton-width': this.skeletonWidth,
|
|
80
80
|
}) }));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, C as stripeStoreReset, M as stripeStoreMessageBasedOnStatus, d as cartStore, r as cartStoreNextStep, D as cartStoreOnChange } from './cart-
|
|
3
|
-
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { t as translate, s as storageStore, l as localizationStore, p as translationStoreOnChange } from './localization-
|
|
2
|
+
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, C as stripeStoreReset, M as stripeStoreMessageBasedOnStatus, d as cartStore, r as cartStoreNextStep, D as cartStoreOnChange } from './cart-62c166fc.js';
|
|
3
|
+
import { s as submitAnalytics, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-424d040d.js';
|
|
4
|
+
import { t as translate, s as storageStore, l as localizationStore, p as translationStoreOnChange } from './localization-d2631105.js';
|
|
5
5
|
import { z as zonosStore } from './zonosStore-9662b071.js';
|
|
6
6
|
import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
7
7
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
8
8
|
import { g as getBorderRadius } from './getBorderRadius-98c64be8.js';
|
|
9
9
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
10
|
-
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-
|
|
10
|
+
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-5f50ec81.js';
|
|
11
11
|
import { c as classes } from './classes-0d95c529.js';
|
|
12
12
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
13
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
14
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
13
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-513ead96.js';
|
|
14
|
+
import { p as placeTestOrder } from './placeTestOrder-cf237d95.js';
|
|
15
15
|
import { r as renderFallback } from './renderFallback-b250f4e9.js';
|
|
16
16
|
import './isDarkColor-0a8453e7.js';
|
|
17
17
|
import './isContrastColor-6bad285e.js';
|
|
@@ -268,11 +268,11 @@ const ZonosCollectFinish = class {
|
|
|
268
268
|
}
|
|
269
269
|
render() {
|
|
270
270
|
const cartId = window.Zonos.cartId;
|
|
271
|
-
return (h(Host, { key: '
|
|
271
|
+
return (h(Host, { key: '3de21586bf8e0f31e698e2b1a51d3344aae94af1', class: "zonos--checkout-finish zonos--elements", style: {
|
|
272
272
|
'--zonos--border-radius': getBorderRadius({
|
|
273
273
|
overrideBorderStyle: this.borderRadius,
|
|
274
274
|
}),
|
|
275
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
275
|
+
} }, !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: () => {
|
|
276
276
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
277
277
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
278
278
|
}
|
|
@@ -337,15 +337,15 @@ const ZonosCollectFooter = class {
|
|
|
337
337
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
338
338
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
339
339
|
const colorDesktop = 'gray-1000';
|
|
340
|
-
return (h(Host, { key: '
|
|
340
|
+
return (h(Host, { key: '5ec7e478c6b2b4fc21634ed70261dce3b095a8a0', class: classes([
|
|
341
341
|
'zonos--elements',
|
|
342
342
|
this.isMobile && 'mobile',
|
|
343
343
|
this.isTablet && 'tablet',
|
|
344
|
-
]) }, h("div", { key: '
|
|
344
|
+
]) }, 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$1, iconColor: colorDesktop, size: 18 }))), h("div", { key: '963404ac73580e236740343fec11447b9ee22ca4', class: classes([
|
|
345
345
|
'zonos--collect-language-dialog',
|
|
346
346
|
this.showLanguageDialog &&
|
|
347
347
|
'zonos--collect-language-dialog-open',
|
|
348
|
-
]) }, h("zonos-language-select", { key: '
|
|
348
|
+
]) }, 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"))))));
|
|
349
349
|
}
|
|
350
350
|
get el() { return getElement(this); }
|
|
351
351
|
static get watchers() { return {
|
|
@@ -679,13 +679,13 @@ const ZonosCollectReview = class {
|
|
|
679
679
|
}
|
|
680
680
|
render() {
|
|
681
681
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
682
|
-
return (h(Host, { key: '
|
|
682
|
+
return (h(Host, { key: 'e80b802a45d3d6395ead284a218ed1053d2e05a7', class: classes([
|
|
683
683
|
'zonos--collect-review zonos--elements',
|
|
684
684
|
this.isMobile && 'mobile',
|
|
685
685
|
this.isTablet && 'tablet',
|
|
686
|
-
]) }, h("div", { key: '
|
|
686
|
+
]) }, h("div", { key: 'febeea7c348a5279ddf97bdd48e3d28fa07d6f22', class: "zonos--title" }, h("zonos-text", { key: '1ed640de9e3e6d87064a727ecca208368e1a1e81', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
|
|
687
687
|
organizationName: zonosStore.organizationName,
|
|
688
|
-
}))), h("div", { key: '
|
|
688
|
+
}))), h("div", { key: '0a61b9f3a8ba33e83b50b8c53edfa3b784d47051', class: "zonos--total-pay" }, renderFallback({
|
|
689
689
|
content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
|
|
690
690
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
691
691
|
isForeign: true,
|
|
@@ -751,7 +751,7 @@ const ZonosCollectSubtotal = class {
|
|
|
751
751
|
}
|
|
752
752
|
render() {
|
|
753
753
|
this.initSubtotalData();
|
|
754
|
-
return (h(Host, { key: '
|
|
754
|
+
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({
|
|
755
755
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
756
756
|
amount: this.subtotals[translate('Duties')] || 0,
|
|
757
757
|
isForeign: true,
|
|
@@ -759,7 +759,7 @@ const ZonosCollectSubtotal = class {
|
|
|
759
759
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
760
760
|
skeletonHeight: '14px',
|
|
761
761
|
skeletonWidth: '150px',
|
|
762
|
-
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '
|
|
762
|
+
})))), !!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({
|
|
763
763
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
764
764
|
amount: this.subtotals[translate('Taxes')] || 0,
|
|
765
765
|
isForeign: true,
|
|
@@ -767,7 +767,7 @@ const ZonosCollectSubtotal = class {
|
|
|
767
767
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
768
768
|
skeletonHeight: '14px',
|
|
769
769
|
skeletonWidth: '150px',
|
|
770
|
-
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '
|
|
770
|
+
})))), !!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({
|
|
771
771
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
772
772
|
amount: this.subtotals[translate('Fees')] || 0,
|
|
773
773
|
isForeign: true,
|
|
@@ -775,7 +775,7 @@ const ZonosCollectSubtotal = class {
|
|
|
775
775
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
776
776
|
skeletonHeight: '14px',
|
|
777
777
|
skeletonWidth: '150px',
|
|
778
|
-
})))), h("tr", { key: '
|
|
778
|
+
})))), 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({
|
|
779
779
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
780
780
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
781
781
|
isForeign: true,
|
|
@@ -783,7 +783,7 @@ const ZonosCollectSubtotal = class {
|
|
|
783
783
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
784
784
|
skeletonHeight: '14px',
|
|
785
785
|
skeletonWidth: '150px',
|
|
786
|
-
}))), h("tr", { key: '
|
|
786
|
+
}))), 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({
|
|
787
787
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
788
788
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
789
789
|
isForeign: true,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, F as Fragment } from './index-cfd394c8.js';
|
|
2
|
-
import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, A as stripeStoreConfirmPayment, E as stripeStoreOnChange, C as stripeStoreReset, f as cartStoreReset } from './cart-
|
|
3
|
-
import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-
|
|
4
|
-
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-
|
|
5
|
-
import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-
|
|
2
|
+
import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, A as stripeStoreConfirmPayment, E as stripeStoreOnChange, C as stripeStoreReset, f as cartStoreReset } from './cart-62c166fc.js';
|
|
3
|
+
import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-5f50ec81.js';
|
|
4
|
+
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-424d040d.js';
|
|
5
|
+
import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-d2631105.js';
|
|
6
6
|
import { z as zonosStore } from './zonosStore-9662b071.js';
|
|
7
7
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
8
8
|
import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
-
import { b as stripeStore } from './cart-
|
|
3
|
-
import { e as getOverridenZCountry, i as isValidSelector, h as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-
|
|
2
|
+
import { b as stripeStore } from './cart-62c166fc.js';
|
|
3
|
+
import { e as getOverridenZCountry, i as isValidSelector, h as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-d2631105.js';
|
|
4
4
|
import { z as zonosStore, e as zonosStoreInitSetting, f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
|
|
5
5
|
import { g as getGenericSettingsOverride, i as iframeServices, a as injectPrivateIframe } from './getGenericSettingsOverride-0bc3e118.js';
|
|
6
6
|
import { h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { l as localizationStore } from './localization-
|
|
2
|
+
import { l as localizationStore } from './localization-d2631105.js';
|
|
3
3
|
import { f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-a844cac1.js';
|