@zonos/elements 1.3.18-alpha.0 → 1.3.18-alpha.2
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-d25723e7.js → cart-941a31dd.js} +562 -12
- package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
- package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
- package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{submitGtag-484eaf9d.js → submitGtag-9210b4fe.js} +2 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +22 -11
- package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
- package/dist/cjs/zonos-card_2.cjs.entry.js +7 -7
- package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +224 -14
- package/dist/cjs/zonos-checkout.cjs.entry.js +36 -10
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +11 -11
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
- package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +2 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/ChevronUpIcon.svg +23 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.css +105 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +101 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +6 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +43 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +18 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -2
- package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
- package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
- package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
- 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-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +3 -3
- package/dist/collection/components/store/checkout/cart.js +55 -5
- package/dist/collection/components/store/checkout/stripe.js +6 -2
- package/dist/collection/components/store/hello/localization.js +12 -2
- package/dist/collection/components/store/translationStore/strings.arabic.js +24 -0
- package/dist/collection/components/store/translationStore/strings.base.js +24 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +24 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +24 -0
- package/dist/collection/components/store/translationStore/strings.french.js +24 -0
- package/dist/collection/components/store/translationStore/strings.german.js +24 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +24 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +24 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +24 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +24 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +24 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +24 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +24 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +24 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +24 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +24 -0
- package/dist/collection/components/store/zonosStore.js +1 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +1 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +6 -1
- package/dist/collection/scripts/zonosBase.js +2 -1
- package/dist/collection/types/checkout/RestrictProduct.js +1 -0
- package/dist/collection/types/generated/graphql.customer.types.js +40 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
- package/dist/components/stripe.js +79 -10
- package/dist/components/submitGtag.js +1 -1
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/translationStore.js +480 -0
- package/dist/components/zonos-address2.js +1 -1
- package/dist/components/zonos-button2.js +20 -8
- package/dist/components/zonos-cart-items2.js +2 -1
- package/dist/components/zonos-cart-restricted-items.d.ts +11 -0
- package/dist/components/zonos-cart-restricted-items.js +6 -0
- package/dist/components/zonos-cart-restricted-items2.js +135 -0
- package/dist/components/zonos-cart-subtotal2.js +6 -3
- package/dist/components/zonos-checkout-finish2.js +1 -1
- package/dist/components/zonos-checkout-payment2.js +1 -1
- package/dist/components/zonos-checkout.js +77 -38
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-confirm-dialog.d.ts +11 -0
- package/dist/components/zonos-confirm-dialog.js +6 -0
- package/dist/components/zonos-confirm-dialog2.js +161 -0
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +3 -3
- package/dist/components/zonos-custom-message2.js +2 -2
- package/dist/components/zonos-customer-info2.js +19 -3
- package/dist/components/zonos-dialog2.js +17 -5
- package/dist/components/zonos-hello-dialog-footer2.js +2 -2
- package/dist/components/zonos-hello-dialog2.js +4 -4
- package/dist/components/zonos-hello.js +1 -1
- package/dist/components/zonos-input2.js +4 -4
- package/dist/components/zonos-language-select2.js +3 -3
- package/dist/components/zonos-link-authentication2.js +1 -1
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-payment2.js +1 -1
- package/dist/components/zonos-review2.js +3 -2
- package/dist/components/zonos-select-dialog-header2.js +2 -2
- package/dist/components/zonos-shipping2.js +1 -1
- package/dist/components/zonos-tooltip2.js +2 -2
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/components/zonosStore.js +1 -0
- package/dist/esm/{cart-02f5c2ea.js → cart-cc593c2b.js} +562 -13
- package/dist/esm/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
- package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
- package/dist/esm/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{submitGtag-ba38e1ac.js → submitGtag-e50f903f.js} +2 -2
- package/dist/esm/zonos-address_8.entry.js +22 -11
- package/dist/esm/zonos-badge_2.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +22 -11
- package/dist/esm/zonos-card_2.entry.js +7 -7
- package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_11.entry.js} +223 -15
- package/dist/esm/zonos-checkout.entry.js +36 -10
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +11 -11
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-hello-dialog.entry.js +8 -8
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +7 -7
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/zonos-notification.entry.js +2 -2
- package/dist/esm/zonos-payment.entry.js +6 -6
- package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
- package/dist/esm-es5/cart-cc593c2b.js +1 -0
- package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
- package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
- package/dist/esm-es5/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-ba38e1ac.js → submitGtag-e50f903f.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.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-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.d.ts +14 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +11 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -0
- package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
- package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
- package/dist/types/components/store/checkout/cart.d.ts +38 -4
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +24 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +24 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +4 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components.d.ts +163 -5
- package/dist/types/scripts/zonosBase.d.ts +21 -2
- package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
- package/dist/types/types/checkout/RestrictProduct.d.ts +7 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +54 -0
- package/dist/types/types/generated/graphql.customer.types.ts +66 -1
- package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +2 -1
- package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
- package/dist/zonos-elements/{p-d7acc81c.entry.js → p-020a9b86.entry.js} +1 -1
- package/dist/zonos-elements/{p-905d842b.entry.js → p-04030a48.entry.js} +1 -1
- package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0267a969.entry.js → p-0e892292.entry.js} +1 -1
- package/dist/zonos-elements/{p-57adc7f8.entry.js → p-0fac99e7.entry.js} +1 -1
- package/dist/zonos-elements/p-1795c760.system.entry.js +1 -0
- package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
- package/dist/zonos-elements/{p-1ba4cf64.entry.js → p-24ac1c6f.entry.js} +1 -1
- package/dist/zonos-elements/p-26a60a6e.entry.js +1 -0
- package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
- package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
- package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
- package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
- package/dist/zonos-elements/p-32744531.entry.js +1 -0
- package/dist/zonos-elements/{p-532995a4.system.entry.js → p-35ac375a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9da0562e.system.entry.js → p-3bc88c3c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-3e26d7b3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
- package/dist/zonos-elements/{p-572a4de2.system.entry.js → p-4caaaaeb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
- package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
- package/dist/zonos-elements/{p-6ece23b9.entry.js → p-5e783394.entry.js} +1 -1
- package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
- package/dist/zonos-elements/{p-f99eb5e7.entry.js → p-6366e7e3.entry.js} +1 -1
- package/dist/zonos-elements/p-693b9985.js +1 -0
- package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6dec476d.system.entry.js → p-7c8ee4b9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
- package/dist/zonos-elements/{p-cf0f8e32.entry.js → p-80ea85b8.entry.js} +1 -1
- package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
- package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8da16d53.system.js +1 -0
- package/dist/zonos-elements/p-96b8c9ba.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f124e659.system.entry.js → p-98a0b694.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fd49d864.entry.js → p-9aab3ad7.entry.js} +1 -1
- package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-83fecb2a.entry.js → p-9e9c318b.entry.js} +1 -1
- package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-47e00966.system.entry.js → p-b98cdf39.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
- package/dist/zonos-elements/{p-ff403840.entry.js → p-c20e5430.entry.js} +1 -1
- package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
- package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-d0bc8902.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d7b8c1c1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
- package/dist/zonos-elements/p-dd0fd351.entry.js +1 -0
- package/dist/zonos-elements/p-e015cb0e.js +1 -0
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
- package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-e13bfbda.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-239cc943.system.entry.js → p-e1fbd05d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0265da6f.js → p-e553dd19.js} +1 -1
- package/dist/zonos-elements/p-e6fa0ebc.system.js +1 -0
- package/dist/zonos-elements/{p-5e33aab7.system.entry.js → p-f6546bf4.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +13 -13
- package/dist/esm-es5/cart-02f5c2ea.js +0 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
- package/dist/zonos-elements/p-154aaf95.system.js +0 -1
- package/dist/zonos-elements/p-168e5b5f.system.js +0 -1
- package/dist/zonos-elements/p-1b8082dd.entry.js +0 -1
- package/dist/zonos-elements/p-246133d3.entry.js +0 -1
- package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
- package/dist/zonos-elements/p-54a32fd7.entry.js +0 -1
- package/dist/zonos-elements/p-5d13795a.system.entry.js +0 -1
- package/dist/zonos-elements/p-981bf71a.js +0 -1
- package/dist/zonos-elements/p-e0e66004.system.js +0 -1
- package/dist/zonos-elements/p-ed7d251d.system.entry.js +0 -1
- package/dist/zonos-elements/p-f1962041.js +0 -1
|
@@ -8,7 +8,7 @@ import { d as defineCustomElement$1 } from './zonos-spinner2.js';
|
|
|
8
8
|
|
|
9
9
|
const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
|
|
10
10
|
|
|
11
|
-
const zonosDialogCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);
|
|
11
|
+
const zonosDialogCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:10002;background:var(--zonos-elements-gray-0);border-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--zonos-elements-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:10001;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;min-height:var(--min-height, auto);height:var(--height, auto);width:var(--width, auto);border-radius:var(--border-radius, var(--zonos-elements-radius-10));outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:16px 24px}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--zonos-elements-radius-10)}:host .zonos--header .zonos--close-button:hover{background:var(--zonos-elements-hover-color)}:host .zonos--body{padding:8px 24px;max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:16px 24px}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:10001;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:10002;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";
|
|
12
12
|
const ZonosDialogStyle0 = zonosDialogCss;
|
|
13
13
|
|
|
14
14
|
const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends HTMLElement {
|
|
@@ -21,6 +21,10 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
21
21
|
return this.mobile || window.innerWidth <= 768;
|
|
22
22
|
};
|
|
23
23
|
this.closeButtonHandler = () => {
|
|
24
|
+
// Only do the action if the dialog is open
|
|
25
|
+
if (!this.open) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
24
28
|
this.closeDialog.emit();
|
|
25
29
|
};
|
|
26
30
|
this.clickOutsideDialogHandler = (event) => {
|
|
@@ -32,6 +36,7 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
32
36
|
this.headerText = '';
|
|
33
37
|
this.width = '460px';
|
|
34
38
|
this.height = undefined;
|
|
39
|
+
this.minHeight = undefined;
|
|
35
40
|
this.noHeader = false;
|
|
36
41
|
this.noBodyPadding = false;
|
|
37
42
|
this.noBorder = false;
|
|
@@ -45,6 +50,11 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
45
50
|
handleWindowResize() {
|
|
46
51
|
this.isMobile = this.isMobileMode();
|
|
47
52
|
}
|
|
53
|
+
handleKeyDown(ev) {
|
|
54
|
+
if (ev.key === 'Escape') {
|
|
55
|
+
this.closeButtonHandler();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
48
58
|
componentDidLoad() {
|
|
49
59
|
this.isMobile = this.isMobileMode();
|
|
50
60
|
}
|
|
@@ -59,7 +69,7 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
59
69
|
const borderStyle = getBorderRadius({
|
|
60
70
|
overrideBorderStyle: this.borderStyle,
|
|
61
71
|
});
|
|
62
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: 'b27bdee33f67e2209dfbd9621b95633f4af726b2', class: classes([
|
|
63
73
|
'zonos--elements',
|
|
64
74
|
this.open && 'open',
|
|
65
75
|
this.isLoading && 'is-loading',
|
|
@@ -69,11 +79,12 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
69
79
|
'--border-radius': borderStyle,
|
|
70
80
|
'--font-family': zonosStoreFontFamily(),
|
|
71
81
|
'--height': this.height || 'initial',
|
|
82
|
+
'--min-height': this.minHeight || '500px',
|
|
72
83
|
'--width': this.width,
|
|
73
|
-
} }, h("div", { key: '
|
|
84
|
+
} }, h("div", { key: 'ca94e3347d10460973663685d9b8c0048418cb86', class: "zonos--backdrop" }), h("div", { key: 'e766937dc1899141ed7beb07e9f13a60066880a1', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: '41c43bb5cf011a3a810c6116c4300ad7a713c787', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '5ca28c9f3b1f6f0742484ef5414ba60f16e1faa7', class: "zonos--loading" }, h("zonos-spinner", { key: 'e0131cd9fd3fa7a9c502e7a55b75b8c76be86fc3', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '2ef2237cb4518980eb3a5c97cc1a1ea2c87444be', class: "zonos--header" }, this.headerText && (h("h3", { key: '751e1be4417cc733dffa8a683d3f4c8774ee83f5', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '720f9250c88e0097d839276ab0d2319e31fc170b', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), h("div", { key: 'd64547b7d802a4b14e64454ae329dbb6d88f1cfd', class: classes([
|
|
74
85
|
'zonos--body',
|
|
75
86
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
76
|
-
]) }, h("slot", { key: '
|
|
87
|
+
]) }, h("slot", { key: '96d1683414cc4a947a36c6ae28e5afb781be4dae' })), h("slot", { key: '06b8ff1ad17f74e28fc4980fbc4594dde5e4573f', name: "dialog-footer" })))));
|
|
77
88
|
}
|
|
78
89
|
static get assetsDirs() { return ["assets"]; }
|
|
79
90
|
static get style() { return ZonosDialogStyle0; }
|
|
@@ -82,6 +93,7 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
82
93
|
"headerText": [1, "header-text"],
|
|
83
94
|
"width": [1],
|
|
84
95
|
"height": [1],
|
|
96
|
+
"minHeight": [1, "min-height"],
|
|
85
97
|
"noHeader": [4, "no-header"],
|
|
86
98
|
"noBodyPadding": [4, "no-body-padding"],
|
|
87
99
|
"noBorder": [4, "no-border"],
|
|
@@ -91,7 +103,7 @@ const ZonosDialog = /*@__PURE__*/ proxyCustomElement(class ZonosDialog extends H
|
|
|
91
103
|
"mobile": [4],
|
|
92
104
|
"isLoading": [4, "is-loading"],
|
|
93
105
|
"isMobile": [32]
|
|
94
|
-
}, [[9, "resize", "handleWindowResize"]]]);
|
|
106
|
+
}, [[9, "resize", "handleWindowResize"], [4, "keydown", "handleKeyDown"]]]);
|
|
95
107
|
function defineCustomElement() {
|
|
96
108
|
if (typeof customElements === "undefined") {
|
|
97
109
|
return;
|
|
@@ -36,9 +36,9 @@ const ZonosHelloDialogFooter = /*@__PURE__*/ proxyCustomElement(class ZonosHello
|
|
|
36
36
|
const primaryColor = (_a = this.appearanceSettings) === null || _a === void 0 ? void 0 : _a.colorPrimary;
|
|
37
37
|
const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
|
|
38
38
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '714c0ccdaab553158a4990e24e471e0a0be64655', class: "zonos--elements" }, h("div", { key: '4c177b9120aee7ccdc242bb656399e1597b35f28', class: "zonos--hello-dialog-footer", "data-theme": footerTheme, style: {
|
|
40
40
|
'--primary-color': (_c = this.appearanceSettings) === null || _c === void 0 ? void 0 : _c.colorPrimary,
|
|
41
|
-
} }, h("a", { key: '
|
|
41
|
+
} }, h("a", { key: 'cb2b3ffb8a637825c76d4b33d71fa38d20a19220', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'affb176b938a399d51ccb6ae4fb5906e31ea2ff0', "aria-label": "Zonos Logo", autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 })), h("div", { key: '4aa0ce039d196d804b26df7e2b8608252da2a478', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '088259ecd3d2271fb9a4042126886c7f4fe3a9ba', buttonColor: "gray-1200", icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: "gray-1200" }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: 'e20dcd573266b53341e9f21bab3b34672d4d96a1', buttonColor: "gray-1200", icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
|
|
42
42
|
}
|
|
43
43
|
static get style() { return ZonosHelloDialogFooterStyle0; }
|
|
44
44
|
}, [1, "zonos-hello-dialog-footer", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { I as currencyFormat, a as localizationStore } from './stripe.js';
|
|
3
3
|
import { a as translate } from './translationStore.js';
|
|
4
4
|
import { z as zonosStore } from './zonosStore.js';
|
|
5
5
|
import { c as classes } from './classes.js';
|
|
@@ -193,17 +193,17 @@ const ZonosHelloDialog = /*@__PURE__*/ proxyCustomElement(class ZonosHelloDialog
|
|
|
193
193
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
194
194
|
const currentPage = this.getCurrentPageEnum();
|
|
195
195
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
196
|
-
return (h(Host, { key: '
|
|
196
|
+
return (h(Host, { key: 'e6432c897bf4f7c60e69f3e4e4c356be11e61842', class: "zonos--elements" }, h("div", { key: 'd18df4158ffb6be5037251a9a665739fee6a0755', "aria-hidden": "true", class: classes([
|
|
197
197
|
'zonos--hello-dialog',
|
|
198
198
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
199
199
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
200
200
|
!!this.mobileLocationOverride &&
|
|
201
201
|
'zonos--hello-dialog-mobile-override',
|
|
202
202
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
203
|
-
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
203
|
+
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '1266216272683cb9f7086190686551df57ad8741' }, h("div", { key: 'ab2cb53cd0cc4c33002ae19925e8c32ebf94e426', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '9d973abe25de4a7e18f3bf588b6f0247b8edc96d', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: 'cb8eb025500c0a4eed79e690e67edc418dc6c1e1', spacing: 24 }, h("zonos-country-flag", { key: '3ceddaa0d44d9c0779124a7ea199cf12a763d82c', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'd49da8684213be9ceb686428343247d0387e61e5', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '1edc2747b7760479916276ddcaf3461cc5678461', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'fbb00b765b4a29230db98253c72c320e02a5fccf', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '0614fbd574c7832e6dee73b3e26c659c2679b714', spacing: 8 }, this.restrictedItems.map(item => {
|
|
204
204
|
var _a;
|
|
205
205
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
206
|
-
}), h("zonos-card", { key: '
|
|
206
|
+
}), h("zonos-card", { key: '05ec570de14760e8a07d9bfa7a0fca6def3bfe4b', spacing: "12px" }, h("zonos-v-stack", { key: '9b5c301c737c784bd4e7738080fe90dfc0c82bb5', spacing: 12 }, h("div", { key: '5c3691d22fefcab028c4836d2ce774609789e9f3', class: "zonos--flex-message" }, h("zonos-icon", { key: '9a498a80b3c3652f9aec2e409d30acd09b983397', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: 'c7b0323a0f4704a5ee29b4275cab60e7390f1f9a' }, dutyDeMinimisMessage)), h("div", { key: '5910f4b782a28777fb6fa41ae9399dfae3a8cee8', class: "zonos--flex-message" }, h("zonos-icon", { key: 'ed57f0c4e985332568c0197506ba6b07c2da5b34', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: '72727be7a47c98b2b6105532d3370fbc05bfca3e' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: 'f802df72c31a9031ae737a2d2b461482354d21d8', class: "zonos--flex-message" }, h("zonos-icon", { key: '66ac284793d67089e46671aff79691f025abbc31', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: '9931ab1b57336d4d4326d8f52975566638340e01' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '81576154c1db509ea3a9f8dfbe0dfb811f49b495', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'e9109f275db0fbd9baca229af1004de0497753d8' }, h("zonos-country-select", { key: '8ac0328e65ae7346ebe024e7bd735afdd506d120', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '5ea929a6f391b6f00d0da0e462239bff5f0550d2' }, h("zonos-language-select", { key: 'f59d0da0cb849f1bfe77184d10a713ef6b25f225', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
207
207
|
}
|
|
208
208
|
static get assetsDirs() { return ["assets"]; }
|
|
209
209
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore.js';
|
|
3
|
-
import {
|
|
3
|
+
import { v as handleFetch, l as logError, a as localizationStore, B as isValidSelector, D as getZCountryUrlParam, E as setZCountryUrlParam, d as log, F as currencyDisplay, G as currencyConvertAndFormat, H as currencyConvert, I as currencyFormat } from './stripe.js';
|
|
4
4
|
import { a as translate } from './translationStore.js';
|
|
5
5
|
import { c as classes } from './classes.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight, d as defineCustomElement$9 } from './zonos-hello-dialog2.js';
|
|
@@ -25,17 +25,17 @@ const ZonosInput = /*@__PURE__*/ proxyCustomElement(class ZonosInput extends HTM
|
|
|
25
25
|
this.inputChange.emit(newValue);
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: 'c032eae81e9183b73ed9f12ca3397786e499d8a7', class: classes([
|
|
29
29
|
'zonos--input zonos--elements',
|
|
30
30
|
this.inputSize,
|
|
31
31
|
this.isError && 'has-error',
|
|
32
32
|
]), style: {
|
|
33
33
|
'--border-radius': getBorderRadius(),
|
|
34
34
|
'--font-family': zonosStoreFontFamily(),
|
|
35
|
-
} }, h("div", { key: '
|
|
35
|
+
} }, h("div", { key: '54177758c126bf8d4043cc5e3dd92f0aa6e2c838', class: classes([
|
|
36
36
|
'zonos--label-wrapper',
|
|
37
37
|
this.isDisabled && 'disabled',
|
|
38
|
-
]) }, h("input", { key: '
|
|
38
|
+
]) }, h("input", { key: '10f853e84c278aa9d9a050548801ea366583836d', class: classes([
|
|
39
39
|
'zonos--floated-input',
|
|
40
40
|
!!this.inputLabel && 'has-label',
|
|
41
41
|
this.inputValue && 'has-content',
|
|
@@ -43,7 +43,7 @@ const ZonosInput = /*@__PURE__*/ proxyCustomElement(class ZonosInput extends HTM
|
|
|
43
43
|
]), disabled: this.isDisabled, onInput: e => {
|
|
44
44
|
const input = e.target;
|
|
45
45
|
this.inputChange.emit(input.value);
|
|
46
|
-
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '
|
|
46
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '0f9a9fcb308f4117ec0f08a07d4de8d6f5c4fb03', class: "zonos--floated-label", "data-label": this.inputLabel }))));
|
|
47
47
|
}
|
|
48
48
|
get el() { return this; }
|
|
49
49
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { y as localizationStoreUpdateSelectedLocale, a as localizationStore } from './stripe.js';
|
|
3
3
|
import { a as translate } from './translationStore.js';
|
|
4
4
|
import { a as zonosStoreFontFamily } from './zonosStore.js';
|
|
5
5
|
import { l as languages } from './ILanguage.js';
|
|
@@ -33,9 +33,9 @@ const ZonosLanguageSelect = /*@__PURE__*/ proxyCustomElement(class ZonosLanguage
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const { selectedLocale } = localizationStore;
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: 'e719b6e5e5d52ec572525ba02c78989bfe6c6b91', class: "zonos--elements", style: {
|
|
37
37
|
'--font-family': zonosStoreFontFamily(),
|
|
38
|
-
} }, h("div", { key: '
|
|
38
|
+
} }, h("div", { key: '5a2d7fe751fe92455f7e56bf02360ef9992baffb', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: 'b37d91ffc91949aac8dda2d2ec94acbdfadfcdf4', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '881a00e8bd3e4358a5c1784bd957a81917863134', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
39
39
|
}
|
|
40
40
|
static get style() { return ZonosLanguageSelectStyle0; }
|
|
41
41
|
}, [1, "zonos-language-select", {
|
|
@@ -44,7 +44,7 @@ const ZonosLinkAuthentication = /*@__PURE__*/ proxyCustomElement(class ZonosLink
|
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
46
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
47
|
-
return (h(Host, { key: '
|
|
47
|
+
return (h(Host, { key: '1a206ef754ae3df55e57f7b8f587bde7d04c20d3', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '7f938c30d9ee5d404df05db96b814a48786c9c83', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'fddc855fd5eabf43a4d99532516053f0da71ae20', class: "zonos--link-authentication-component" })));
|
|
48
48
|
}
|
|
49
49
|
get el() { return this; }
|
|
50
50
|
static get watchers() { return {
|
|
@@ -17,11 +17,11 @@ const ZonosLogo$1 = /*@__PURE__*/ proxyCustomElement(class ZonosLogo extends HTM
|
|
|
17
17
|
const filterColor = this.theme === 'DARK'
|
|
18
18
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
19
19
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
20
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'c790c72d413c586a873c5046a1aee797c1f0af36', class: classes(['zonos--elements zonos--logo']), style: {
|
|
21
21
|
'--filter-color': filterColor,
|
|
22
22
|
'--font-family': zonosStoreFontFamily(),
|
|
23
23
|
'--width': this.width,
|
|
24
|
-
} }, h("img", { key: '
|
|
24
|
+
} }, h("img", { key: '68efd2097a0d8488308de0b50bef30cc67deb6fa', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
25
25
|
}
|
|
26
26
|
static get assetsDirs() { return ["assets"]; }
|
|
27
27
|
static get style() { return ZonosLogoStyle0; }
|
|
@@ -39,7 +39,7 @@ const ZonosPayment = /*@__PURE__*/ proxyCustomElement(class ZonosPayment extends
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'fa213e672515b2aa3e389f0e7f918350a076e493', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'ed1fa911c3765962f7a3a7ce606a334541ca0a9a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'afeb5892da35ae3fef9659d05a0bb77924acb7f0', class: "zonos--payment-component" })));
|
|
43
43
|
}
|
|
44
44
|
get el() { return this; }
|
|
45
45
|
static get watchers() { return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as cartStore } from './stripe.js';
|
|
2
|
+
import { b as cartStoreHasOneEligibleItem, c as cartStore } from './stripe.js';
|
|
3
3
|
import { a as translate } from './translationStore.js';
|
|
4
4
|
import { z as zonosStore } from './zonosStore.js';
|
|
5
5
|
import { i as isCheckoutMobile } from './isCheckoutMobile.js';
|
|
@@ -31,6 +31,7 @@ const ZonosReview = /*@__PURE__*/ proxyCustomElement(class ZonosReview extends H
|
|
|
31
31
|
this.isMobile = isCheckoutMobile(this.mobile);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
+
const total = cartStoreHasOneEligibleItem() ? cartStore.total : 0;
|
|
34
35
|
const titleTextType = this.isMobile ? 'boldSubheader' : 'semiBoldLabel';
|
|
35
36
|
const totalTextType = this.isMobile
|
|
36
37
|
? 'boldSubheader'
|
|
@@ -50,7 +51,7 @@ const ZonosReview = /*@__PURE__*/ proxyCustomElement(class ZonosReview extends H
|
|
|
50
51
|
'zonos--review zonos--elements',
|
|
51
52
|
this.isMobile && 'mobile',
|
|
52
53
|
]) }, h("div", { class: "zonos--title" }, h("zonos-text", { textColor: titleTextColor, type: titleTextType }, translate('Pay'), " ", zonosStore.organizationName), renderCollapseIcon()), h("div", { class: "zonos--total-pay" }, h("zonos-text", { type: totalTextType }, formatCurrency({
|
|
53
|
-
amount:
|
|
54
|
+
amount: total,
|
|
54
55
|
currency: cartStore.currency,
|
|
55
56
|
})))));
|
|
56
57
|
}
|
|
@@ -20,9 +20,9 @@ const ZonosSelectDialogHeader = /*@__PURE__*/ proxyCustomElement(class ZonosSele
|
|
|
20
20
|
this.label = '';
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: '6bbc81e8045153c49da17c4b999bc1992aa9f01d', class: "zonos--elements", style: {
|
|
24
24
|
'--font-family': zonosStoreFontFamily(),
|
|
25
|
-
} }, h("zonos-v-stack", { key: '
|
|
25
|
+
} }, h("zonos-v-stack", { key: 'c0184343c6cefd3c996695964800d242d1673ee1', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: 'ae13d39c8a0917df33aec34a10853892d9470a9c', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '32e9af076b72f63cb1ec0c92b7e77d3196572106', type: "boldLabel" }, this.label), h("zonos-button", { key: 'eb4d2f0cef4a2b0eafe628c19d0fcbac4f3493e6', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '98a6f0e4f44e74208b5e446ad8066b74b1f7beaa' }))));
|
|
26
26
|
}
|
|
27
27
|
static get style() { return ZonosSelectDialogHeaderStyle0; }
|
|
28
28
|
}, [1, "zonos-select-dialog-header", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as cartStore,
|
|
2
|
+
import { c as cartStore, z as cartStoreUpdateSelectedShippingOption, A as cartStoreGetShippingTransitInfo } from './stripe.js';
|
|
3
3
|
import { a as translate } from './translationStore.js';
|
|
4
4
|
import { t as trackConversionEvent } from './trackConversionEvent.js';
|
|
5
5
|
import { f as formatCurrency } from './formatCurrency.js';
|
|
@@ -15,10 +15,10 @@ const ZonosTooltip = /*@__PURE__*/ proxyCustomElement(class ZonosTooltip extends
|
|
|
15
15
|
this.showTooltip = false;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'dd98e35a2295dd72209775ce1e63d6f653913466', class: "zonos--elements" }, h("div", { key: '4bee5ca82e3a493826b723f620baa6d7cf7af63a', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '1320496e6caed5f16d940f0e5119d5f19186f565' }), h("div", { key: '2a9b891c672d03cdbe8babf59312942e101704a7', class: classes([
|
|
19
19
|
this.showTooltip && 'zonos--show-tooltip',
|
|
20
20
|
'zonos--tooltip-content',
|
|
21
|
-
]) }, h("zonos-text", { key: '
|
|
21
|
+
]) }, h("zonos-text", { key: '0146fad3f70fa07e9eb644b26d6dd65963a70c3d', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '36e76d4624927255679107ee47022b7314479441', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
22
22
|
}
|
|
23
23
|
static get style() { return ZonosTooltipStyle0; }
|
|
24
24
|
}, [1, "zonos-tooltip", {
|
|
@@ -13,9 +13,9 @@ const VStack = /*@__PURE__*/ proxyCustomElement(class VStack extends HTMLElement
|
|
|
13
13
|
this.spacing = 24;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '3d0753111d525b29e1f36684c89b7216ee0b323f', style: {
|
|
17
17
|
'--font-family': zonosStoreFontFamily(),
|
|
18
|
-
} }, h("div", { key: '
|
|
18
|
+
} }, h("div", { key: '95b732681743abc1b08b1b8bc722855c3c8e967a', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'b93347c5fb986a70f9f1d67ce2216bba84db7ba4' }))));
|
|
19
19
|
}
|
|
20
20
|
static get style() { return ZonosVStackStyle0; }
|
|
21
21
|
}, [1, "zonos-v-stack", {
|
|
@@ -2871,6 +2871,7 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
|
|
|
2871
2871
|
zonosStore.organizationName = ((_b = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _b === void 0 ? void 0 : _b.name) || '';
|
|
2872
2872
|
zonosStore.storeId = ((_d = (_c = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _c === void 0 ? void 0 : _c.references) === null || _d === void 0 ? void 0 : _d.storeId) || null;
|
|
2873
2873
|
zonosStore.currencyConverter = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.currencyConverter;
|
|
2874
|
+
zonosStore.onCountryChange = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.onCountryChange;
|
|
2874
2875
|
};
|
|
2875
2876
|
const zonosStoreFontFamily = () => {
|
|
2876
2877
|
const fontFamily = zonosStore.appearance.fontFamily || 'Inter';
|