@zonos/elements 1.3.282 → 1.3.284
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-dc31b242.js → cart-94908542.js} +4 -4
- package/dist/cjs/{collect-463ab3d7.js → collect-0c05e2b4.js} +3 -3
- package/dist/cjs/{debounce-9a712c79.js → debounce-7ca3c878.js} +1 -1
- package/dist/cjs/{getBorderRadius-4da24d7c.js → getBorderRadius-97fd5e02.js} +1 -1
- package/dist/cjs/{getContrastColor-2fb235b8.js → getContrastColor-956dfaf7.js} +2 -2
- package/dist/cjs/{getMissingRequiredShippingFields-7cd21100.js → getMissingRequiredShippingFields-124b3f20.js} +1 -1
- package/dist/cjs/{hasInclusivePrice-d14b9d71.js → hasInclusivePrice-d0cd2007.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-8c995041.js → invoice-205fb5bc.js} +3 -3
- package/dist/cjs/{isContrastColor-ef24b7aa.js → isContrastColor-30f84a91.js} +1 -1
- package/dist/cjs/{isDarkColor-ebc74b4d.js → isDarkColor-a6e6fd5e.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-491121ad.js → localization-fb2ece37.js} +63 -2
- package/dist/cjs/{paypal-2a4c374c.js → paypal-45ca5301.js} +5 -5
- package/dist/cjs/{placeTestOrder-a940a2e9.js → placeTestOrder-302b6862.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-ab39875a.js → renderCheckoutCurrency-1b0cd5f2.js} +2 -2
- package/dist/cjs/shouldShowLanguageSelect-82985128.js +13 -0
- package/dist/cjs/{submitGtag-74762255.js → submitGtag-8a25f001.js} +1 -1
- package/dist/cjs/{throttle-34f7abf1.js → throttle-366c204b.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-f595319d.js → updateCheckoutSessionAttributes-de7b1466.js} +1 -1
- package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +101 -60
- package/dist/cjs/zonos-address-display_2.cjs.entry.js +17 -10
- package/dist/cjs/zonos-address_4.cjs.entry.js +13 -13
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +6 -6
- package/dist/cjs/zonos-badge.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-card_5.cjs.entry.js +14 -14
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +29 -26
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-checkout.cjs.entry.js +10 -10
- package/dist/cjs/zonos-collapse.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +9 -9
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +28 -26
- package/dist/cjs/zonos-collect.cjs.entry.js +10 -11
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +16 -14
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
- package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
- package/dist/cjs/zonos-input.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +11 -11
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +23 -21
- package/dist/cjs/zonos-invoice.cjs.entry.js +10 -11
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -7
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +3 -3
- package/dist/cjs/{zonosStore-fee716c9.js → zonosStore-0af0b937.js} +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +11 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +8 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +7 -4
- 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 +7 -4
- 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 +3 -3
- 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 +17 -5
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +6 -3
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +5 -5
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/hello/localization.js +22 -1
- package/dist/collection/components/store/zonosStore.js +3 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +52 -48
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/getAddressCountryOptions.js +23 -0
- package/dist/collection/components/utils/getSupportedLanguages.js +17 -0
- package/dist/collection/components/utils/shouldShowLanguageSelect.js +8 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +4 -0
- package/dist/collection/types/generated/graphql.internal.types.js +302 -15
- package/dist/esm/{cart-5282f6c1.js → cart-2e407f7b.js} +4 -4
- package/dist/esm/{collect-fdbab973.js → collect-19428e18.js} +3 -3
- package/dist/esm/{debounce-c8d67b17.js → debounce-84ade9c2.js} +1 -1
- package/dist/esm/{getBorderRadius-dc982fe6.js → getBorderRadius-1f7be586.js} +1 -1
- package/dist/esm/{getContrastColor-af895b60.js → getContrastColor-4c0ae8c1.js} +2 -2
- package/dist/esm/{getMissingRequiredShippingFields-bdeecbff.js → getMissingRequiredShippingFields-719b206f.js} +1 -1
- package/dist/esm/{hasInclusivePrice-161e203f.js → hasInclusivePrice-d801be22.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-cf6ad79e.js → invoice-67a47785.js} +3 -3
- package/dist/esm/{isContrastColor-089de6ac.js → isContrastColor-9fa0d013.js} +1 -1
- package/dist/esm/{isDarkColor-039ef212.js → isDarkColor-939d8e9c.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-0953a048.js → localization-36a4dc22.js} +62 -3
- package/dist/esm/{paypal-7c82eac4.js → paypal-6dca6567.js} +5 -5
- package/dist/esm/{placeTestOrder-6a746207.js → placeTestOrder-9563c89a.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-44f897a1.js → renderCheckoutCurrency-282384f0.js} +2 -2
- package/dist/esm/shouldShowLanguageSelect-328f50e2.js +11 -0
- package/dist/esm/{submitGtag-dc54f5b9.js → submitGtag-71c450b6.js} +1 -1
- package/dist/esm/{throttle-44bfb6b5.js → throttle-c4c24e86.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-e0a282d9.js → updateCheckoutSessionAttributes-23b222de.js} +1 -1
- package/dist/esm/zonos-address-completion-dialog_7.entry.js +101 -60
- package/dist/esm/zonos-address-display_2.entry.js +17 -10
- package/dist/esm/zonos-address_4.entry.js +13 -13
- package/dist/esm/zonos-airwallex-payment.entry.js +6 -6
- package/dist/esm/zonos-badge.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +6 -6
- package/dist/esm/zonos-card_5.entry.js +14 -14
- package/dist/esm/zonos-cart-items_12.entry.js +28 -25
- package/dist/esm/zonos-checkbox_2.entry.js +8 -8
- package/dist/esm/zonos-checkout.entry.js +10 -10
- package/dist/esm/zonos-collapse.entry.js +3 -3
- package/dist/esm/zonos-collect-cart-items_3.entry.js +9 -9
- package/dist/esm/zonos-collect-finish_6.entry.js +27 -25
- package/dist/esm/zonos-collect.entry.js +9 -10
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +7 -7
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +15 -13
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +7 -7
- package/dist/esm/zonos-hello.entry.js +3 -3
- package/dist/esm/zonos-input.entry.js +6 -6
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +11 -11
- package/dist/esm/zonos-invoice-finish_5.entry.js +22 -20
- package/dist/esm/zonos-invoice.entry.js +9 -10
- package/dist/esm/zonos-language-select_2.entry.js +6 -7
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-policy-consent_2.entry.js +6 -6
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-stripe-input.entry.js +7 -7
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +3 -3
- package/dist/esm/{zonosStore-b7d3f9b0.js → zonosStore-eca1e364.js} +3 -0
- package/dist/esm-es5/{cart-5282f6c1.js → cart-2e407f7b.js} +1 -1
- package/dist/esm-es5/{collect-fdbab973.js → collect-19428e18.js} +1 -1
- package/dist/esm-es5/{debounce-c8d67b17.js → debounce-84ade9c2.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-dc982fe6.js → getBorderRadius-1f7be586.js} +1 -1
- package/dist/esm-es5/{getContrastColor-af895b60.js → getContrastColor-4c0ae8c1.js} +1 -1
- package/dist/esm-es5/{getMissingRequiredShippingFields-bdeecbff.js → getMissingRequiredShippingFields-719b206f.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-161e203f.js → hasInclusivePrice-d801be22.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-cf6ad79e.js → invoice-67a47785.js} +1 -1
- package/dist/esm-es5/{isContrastColor-089de6ac.js → isContrastColor-9fa0d013.js} +1 -1
- package/dist/esm-es5/{isDarkColor-039ef212.js → isDarkColor-939d8e9c.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-0953a048.js → localization-36a4dc22.js} +1 -1
- package/dist/esm-es5/{paypal-7c82eac4.js → paypal-6dca6567.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-6a746207.js → placeTestOrder-9563c89a.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-44f897a1.js → renderCheckoutCurrency-282384f0.js} +1 -1
- package/dist/esm-es5/shouldShowLanguageSelect-328f50e2.js +1 -0
- package/dist/esm-es5/{submitGtag-dc54f5b9.js → submitGtag-71c450b6.js} +1 -1
- package/dist/esm-es5/throttle-c4c24e86.js +1 -0
- package/dist/esm-es5/{updateCheckoutSessionAttributes-e0a282d9.js → updateCheckoutSessionAttributes-23b222de.js} +1 -1
- package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -1
- package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.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_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-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -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-policy-consent_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-b7d3f9b0.js → zonosStore-eca1e364.js} +1 -1
- package/dist/scripts/index.d.ts +54 -34
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.d.ts +1 -0
- package/dist/types/components/store/hello/localization.d.ts +8 -1
- package/dist/types/components/store/zonosStore.d.ts +7 -0
- package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +9 -13
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/getAddressCountryOptions.d.ts +29 -0
- package/dist/types/components/utils/getSupportedLanguages.d.ts +167 -0
- package/dist/types/components/utils/shouldShowLanguageSelect.d.ts +7 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +25 -24
- package/dist/types/types/generated/graphql.frontend.types.d.ts +9 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +6 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +463 -107
- package/dist/types/types/generated/graphql.internal.types.ts +601 -102
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-b93013f7.system.entry.js → p-083a11cd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0b29169b.js +1 -0
- package/dist/zonos-elements/{p-62609f19.entry.js → p-0c972ddf.entry.js} +1 -1
- package/dist/zonos-elements/{p-7ab15d20.js → p-0c9fec73.js} +1 -1
- package/dist/zonos-elements/{p-f1dbeb85.system.entry.js → p-0e199a6c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0ff845ec.js +1 -0
- package/dist/zonos-elements/p-1277abac.system.entry.js +1 -0
- package/dist/zonos-elements/p-14afffa8.system.js +1 -0
- package/dist/zonos-elements/{p-56e9a29e.entry.js → p-171a7e1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-f1aea919.js → p-1834f486.js} +1 -1
- package/dist/zonos-elements/p-1ac0c631.system.js +1 -0
- package/dist/zonos-elements/{p-fa80a973.entry.js → p-1be53c82.entry.js} +1 -1
- package/dist/zonos-elements/p-1cdd27ec.js +1 -0
- package/dist/zonos-elements/{p-c634546a.system.entry.js → p-1f8648c8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-22e10b7d.entry.js +1 -0
- package/dist/zonos-elements/p-260ad739.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9a417eeb.js → p-27660512.js} +1 -1
- package/dist/zonos-elements/{p-28ee0860.system.js → p-2989da12.system.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-cd3f7fd7.system.js → p-2b8c96e3.system.js} +1 -1
- package/dist/zonos-elements/{p-7bdce9d4.js → p-2bbe9d91.js} +1 -1
- package/dist/zonos-elements/{p-543b25f9.entry.js → p-2c2afed4.entry.js} +1 -1
- package/dist/zonos-elements/{p-32b53999.entry.js → p-2c44e013.entry.js} +1 -1
- package/dist/zonos-elements/{p-e0cbc7c7.entry.js → p-2c7a425d.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e1f13ff.system.entry.js → p-2cab1746.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa37f436.system.entry.js → p-2cdd1b49.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d1e84608.entry.js → p-2ce039e5.entry.js} +1 -1
- package/dist/zonos-elements/{p-26bf0c31.entry.js → p-3490b6d0.entry.js} +1 -1
- package/dist/zonos-elements/p-3a13e58c.system.js +1 -0
- package/dist/zonos-elements/{p-ef2c264c.entry.js → p-4671fde7.entry.js} +1 -1
- package/dist/zonos-elements/{p-1977f4b5.js → p-46cd14e5.js} +1 -1
- package/dist/zonos-elements/{p-fb8dc23f.system.js → p-4a20893e.system.js} +1 -1
- package/dist/zonos-elements/{p-a4eddf6c.system.js → p-4b159ff3.system.js} +1 -1
- package/dist/zonos-elements/{p-34d6eb83.js → p-502d6eeb.js} +1 -1
- package/dist/zonos-elements/{p-8fa3a8f8.system.entry.js → p-51e4e61a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-496accce.system.js → p-551fa762.system.js} +1 -1
- package/dist/zonos-elements/p-5a491f28.js +1 -0
- package/dist/zonos-elements/{p-0fb4e032.entry.js → p-5b990c91.entry.js} +1 -1
- package/dist/zonos-elements/{p-23eee868.entry.js → p-5ebb7ae6.entry.js} +1 -1
- package/dist/zonos-elements/p-60832726.system.js +1 -0
- package/dist/zonos-elements/{p-2394b186.system.js → p-60a6b71d.system.js} +1 -1
- package/dist/zonos-elements/p-62f6a757.entry.js +1 -0
- package/dist/zonos-elements/p-65c1f51e.entry.js +1 -0
- package/dist/zonos-elements/{p-dab78981.system.js → p-6890e060.system.js} +1 -1
- package/dist/zonos-elements/{p-21f7d57b.entry.js → p-6afd5fab.entry.js} +1 -1
- package/dist/zonos-elements/{p-71fc8a22.js → p-6bdc5c96.js} +1 -1
- package/dist/zonos-elements/{p-fdd7ec44.system.entry.js → p-6dde1e85.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e3d0d8ff.entry.js → p-6ee4e027.entry.js} +1 -1
- package/dist/zonos-elements/p-7176f582.entry.js +1 -0
- package/dist/zonos-elements/{p-333f6018.system.entry.js → p-76834a0a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f2431e47.entry.js → p-7ada039e.entry.js} +1 -1
- package/dist/zonos-elements/{p-d706852e.system.js → p-7fbbdb0f.system.js} +1 -1
- package/dist/zonos-elements/{p-10584546.entry.js → p-8311edc7.entry.js} +1 -1
- package/dist/zonos-elements/p-8a0b8175.system.entry.js +1 -0
- package/dist/zonos-elements/p-8a6c4017.js +1 -0
- package/dist/zonos-elements/p-8b298971.system.entry.js +1 -0
- package/dist/zonos-elements/p-8be02f3a.system.js +1 -0
- package/dist/zonos-elements/{p-1cf76dd3.entry.js → p-8bfe5b2b.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc45b3a5.entry.js → p-8e6338b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-1d31b966.system.js → p-916228fb.system.js} +1 -1
- package/dist/zonos-elements/{p-c12ca8fe.system.entry.js → p-94722bf6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-947e4402.system.entry.js +1 -0
- package/dist/zonos-elements/p-9639a8ed.entry.js +1 -0
- package/dist/zonos-elements/{p-f2511b86.system.entry.js → p-9ad640b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-781b3345.system.entry.js → p-9ecb9afc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5a37683b.system.entry.js → p-a04e2750.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-95042e71.entry.js → p-a07e5011.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d6b018c.system.entry.js → p-a9ad74e5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-db65c60b.system.entry.js → p-acb7dee1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3d28353a.js → p-adfbf57b.js} +1 -1
- package/dist/zonos-elements/{p-e6e3a303.entry.js → p-ae0de3e4.entry.js} +1 -1
- package/dist/zonos-elements/p-aecb5d61.entry.js +1 -0
- package/dist/zonos-elements/p-aed4ffb2.entry.js +1 -0
- package/dist/zonos-elements/{p-e977562b.system.js → p-af19722c.system.js} +1 -1
- package/dist/zonos-elements/{p-59518657.entry.js → p-b1e95f95.entry.js} +1 -1
- package/dist/zonos-elements/{p-c8df5eee.system.entry.js → p-b4ae66cb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-55c5977b.entry.js → p-bb09ee50.entry.js} +1 -1
- package/dist/zonos-elements/{p-21489ff1.system.entry.js → p-bcaffb85.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bced320e.entry.js +1 -0
- package/dist/zonos-elements/p-be6cd28c.system.entry.js +1 -0
- package/dist/zonos-elements/p-c1631c9c.js +1 -0
- package/dist/zonos-elements/{p-cb376f03.entry.js → p-c77b049c.entry.js} +1 -1
- package/dist/zonos-elements/{p-6146bfaa.system.entry.js → p-ca87ada5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4417475f.entry.js → p-cb49dcfe.entry.js} +1 -1
- package/dist/zonos-elements/p-cb4cb5a3.system.js +1 -0
- package/dist/zonos-elements/{p-b91a8f31.system.entry.js → p-d20fe2c2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9e44c77.system.entry.js → p-d42bd250.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa1f3060.system.entry.js → p-d6a73125.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5953208b.js → p-dc80cb87.js} +1 -1
- package/dist/zonos-elements/p-dd3c00d6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-47a1d469.system.js → p-de58684b.system.js} +1 -1
- package/dist/zonos-elements/{p-1735a69b.js → p-e160b75f.js} +1 -1
- package/dist/zonos-elements/p-e1ef3984.system.entry.js +1 -0
- package/dist/zonos-elements/{p-323279b8.entry.js → p-e27b8e18.entry.js} +1 -1
- package/dist/zonos-elements/{p-646e6b47.system.entry.js → p-e2b4c082.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f1aa60fd.system.entry.js → p-e32ee011.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b11bbca.system.entry.js → p-e4b07f7d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7c70e0c7.js → p-e5c76a9b.js} +2 -2
- package/dist/zonos-elements/p-e8587f9f.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ab61ef19.system.js → p-eb5f3451.system.js} +2 -2
- package/dist/zonos-elements/p-ebbda085.system.js +1 -0
- package/dist/zonos-elements/{p-daab3824.entry.js → p-f37150e8.entry.js} +1 -1
- package/dist/zonos-elements/p-f4720b0a.js +1 -0
- package/dist/zonos-elements/{p-c8bc4ede.js → p-f4acce01.js} +1 -1
- package/dist/zonos-elements/p-f59a0129.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ca9231a0.system.entry.js → p-f8356934.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e57f862d.system.js → p-fe5f05fc.system.js} +1 -1
- package/dist/zonos-elements/p-ff4e6811.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +3 -1
- package/dist/cjs/ILanguage-98b04442.js +0 -26
- package/dist/esm/ILanguage-cd6acb72.js +0 -24
- package/dist/esm-es5/ILanguage-cd6acb72.js +0 -1
- package/dist/esm-es5/throttle-44bfb6b5.js +0 -1
- package/dist/zonos-elements/p-0287f9cd.system.js +0 -1
- package/dist/zonos-elements/p-05cb0a0d.system.entry.js +0 -1
- package/dist/zonos-elements/p-193fc2da.entry.js +0 -1
- package/dist/zonos-elements/p-1cf5e2ce.system.entry.js +0 -1
- package/dist/zonos-elements/p-30cfc9f4.entry.js +0 -1
- package/dist/zonos-elements/p-30e9a6d7.system.js +0 -1
- package/dist/zonos-elements/p-35fd0fdb.js +0 -1
- package/dist/zonos-elements/p-3642dd99.entry.js +0 -1
- package/dist/zonos-elements/p-3b479012.js +0 -1
- package/dist/zonos-elements/p-3c62acbd.js +0 -1
- package/dist/zonos-elements/p-5987dea1.js +0 -1
- package/dist/zonos-elements/p-5c30d04b.js +0 -1
- package/dist/zonos-elements/p-63b462dd.system.entry.js +0 -1
- package/dist/zonos-elements/p-68631285.system.entry.js +0 -1
- package/dist/zonos-elements/p-6f874ed9.entry.js +0 -1
- package/dist/zonos-elements/p-76e36d6d.entry.js +0 -1
- package/dist/zonos-elements/p-8418aa07.entry.js +0 -1
- package/dist/zonos-elements/p-8fb15a6b.system.entry.js +0 -1
- package/dist/zonos-elements/p-97aceb11.js +0 -1
- package/dist/zonos-elements/p-987b5d8f.js +0 -1
- package/dist/zonos-elements/p-a3c116d6.system.js +0 -1
- package/dist/zonos-elements/p-c121b2b8.entry.js +0 -1
- package/dist/zonos-elements/p-c5bfe522.system.js +0 -1
- package/dist/zonos-elements/p-c9e433c0.system.js +0 -1
- package/dist/zonos-elements/p-d06486ba.system.entry.js +0 -1
- package/dist/zonos-elements/p-d0767f88.entry.js +0 -1
- package/dist/zonos-elements/p-d2cb99ee.system.entry.js +0 -1
- package/dist/zonos-elements/p-ddd0e703.system.entry.js +0 -1
- package/dist/zonos-elements/p-dfd83cff.entry.js +0 -1
- package/dist/zonos-elements/p-e101b0de.system.entry.js +0 -1
- package/dist/zonos-elements/p-f1298203.system.entry.js +0 -1
- package/dist/zonos-elements/p-f29bcf8b.system.js +0 -1
- package/dist/zonos-elements/p-f61c0eef.system.js +0 -1
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-0af0b937.js');
|
|
7
7
|
const helpers = require('./helpers-5bdbb68c.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
9
|
+
const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
|
|
10
10
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
11
|
-
const isDarkColor = require('./isDarkColor-
|
|
11
|
+
const isDarkColor = require('./isDarkColor-a6e6fd5e.js');
|
|
12
12
|
const styles = require('./styles-d1e64fb9.js');
|
|
13
13
|
require('./VarianceTest-bec00ea8.js');
|
|
14
14
|
|
|
@@ -211,13 +211,13 @@ const ZonosButton = class {
|
|
|
211
211
|
const borderStyle = getBorderRadius.getBorderRadius({
|
|
212
212
|
overrideBorderStyle: this.borderStyle,
|
|
213
213
|
});
|
|
214
|
-
return (index.h(index.Host, { key: '
|
|
214
|
+
return (index.h(index.Host, { key: 'df2bfe5807583d29166ccb7f5da28dcf5b41dcd3', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles.styles({
|
|
215
215
|
'--zonos--background-color': backgroundColor,
|
|
216
216
|
'--zonos--border-radius': borderStyle,
|
|
217
217
|
'--zonos--color': color,
|
|
218
218
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
219
219
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
220
|
-
}) }, index.h("button", Object.assign({ key: '
|
|
220
|
+
}) }, index.h("button", Object.assign({ key: '18c6ba3797948296d847a8deed8784ee34b93113' }, this.inheritedAttributes, { class: classes.classes([
|
|
221
221
|
this.hasIcon && 'has-icon',
|
|
222
222
|
this.hasContent && 'has-content',
|
|
223
223
|
this.noBackground && 'no-background',
|
|
@@ -232,7 +232,7 @@ const ZonosButton = class {
|
|
|
232
232
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
233
233
|
]), disabled: disabled, style: {
|
|
234
234
|
justifyContent: this.justifyContent,
|
|
235
|
-
} }), this.loading && (index.h("div", { key: '
|
|
235
|
+
} }), this.loading && (index.h("div", { key: 'b468795b69f4e20f7d0ca2c915b95080a53092e4', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '368ea5d9cdb641140d78e55ac1874cbfd6b48db0', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '41ecf6db38ca534ed99fd8c2f6020bbfe99cddc9', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
236
236
|
}
|
|
237
237
|
static get delegatesFocus() { return true; }
|
|
238
238
|
get ele() { return index.getElement(this); }
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-0af0b937.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
9
|
-
const cart = require('./cart-
|
|
10
|
-
const localization = require('./localization-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
|
|
9
|
+
const cart = require('./cart-94908542.js');
|
|
10
|
+
const localization = require('./localization-fb2ece37.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
12
|
-
const paypal = require('./paypal-
|
|
12
|
+
const paypal = require('./paypal-45ca5301.js');
|
|
13
13
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
|
-
require('./isDarkColor-
|
|
14
|
+
require('./isDarkColor-a6e6fd5e.js');
|
|
15
15
|
require('./TaxId-cd9d490e.js');
|
|
16
|
-
require('./isContrastColor-
|
|
17
|
-
require('./submitGtag-
|
|
16
|
+
require('./isContrastColor-30f84a91.js');
|
|
17
|
+
require('./submitGtag-8a25f001.js');
|
|
18
18
|
|
|
19
19
|
const zonosCardCss = ":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
|
|
20
20
|
const ZonosCardStyle0 = zonosCardCss;
|
|
@@ -40,16 +40,16 @@ const ZonosCard = class {
|
|
|
40
40
|
customRoundRadius: `${this.borderRadius}px`,
|
|
41
41
|
overrideBorderStyle: 'ROUNDED',
|
|
42
42
|
});
|
|
43
|
-
return (index.h(index.Host, { key: '
|
|
43
|
+
return (index.h(index.Host, { key: 'afc0d2d9b79510aa9d85c89af3c01d5a5c767787', style: {
|
|
44
44
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
45
|
-
} }, index.h("div", { key: '
|
|
45
|
+
} }, index.h("div", { key: 'b68bbbb581f56db81f9b7819f6047c1ec48a956f', class: classes.classes(['styled-card']), style: {
|
|
46
46
|
'--zonos--background-color': backgroundColor,
|
|
47
47
|
'--zonos--border-radius': borderRadius,
|
|
48
48
|
padding: this.spacing,
|
|
49
|
-
} }, this.label && (index.h("header", { key: '
|
|
49
|
+
} }, this.label && (index.h("header", { key: '27db75fa9c5ac5dbdfefd92656aa6d8e5b654349', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: 'f54d58eb5f010346d2fcf919baf69d5c799bdbc4', type: "subheader" }, this.label), index.h("h-stack", { key: 'a3cbee0ae5fc73bb9507d5e30ab6779f2ce46f55', spacing: 8 }, this.actions))), index.h("slot", { key: '6ce557ff8df6046d428b22b290c3d79ce6bf36ad' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: '7cc44dfa05e46026444ac1db6755b30151937be0', class: "card-footer", style: {
|
|
50
50
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
51
51
|
padding: this.spacing,
|
|
52
|
-
} }, index.h("div", { key: '
|
|
52
|
+
} }, index.h("div", { key: '6c401d4fbc34346f160b239a7190eb170763c382' }, this.footerContent), index.h("h-stack", { key: 'e6cc5de886d04757374b380149fe5b78b0874cf2', spacing: 8 }, this.footerActions))))));
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
55
|
ZonosCard.style = ZonosCardStyle0;
|
|
@@ -262,7 +262,7 @@ const ZonosPayment = class {
|
|
|
262
262
|
}
|
|
263
263
|
render() {
|
|
264
264
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
265
|
-
return (index.h(index.Host, { key: '
|
|
265
|
+
return (index.h(index.Host, { key: 'faf7791e4cbf6bf8c98fe0b2f368f408ef32b644', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: 'e6103d0e04f9905b90533bf94539aaae1d5aa604', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: 'b042060ff6fef2d7f20b20ec672b2696cb5f837c', class: "zonos--payment-component" }), index.h("div", { key: 'b6a220513bb964a057c70141dcec89059dbbb0c8', class: "zonos--payment-paypal-container" })));
|
|
266
266
|
}
|
|
267
267
|
get el() { return index.getElement(this); }
|
|
268
268
|
static get watchers() { return {
|
|
@@ -326,7 +326,7 @@ const ZonosPaypalPayment = class {
|
|
|
326
326
|
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
327
327
|
}
|
|
328
328
|
render() {
|
|
329
|
-
return (index.h(index.Host, { key: '
|
|
329
|
+
return (index.h(index.Host, { key: '2eb9e7f7acbe26f51c32ceb722f1e59832ac918a', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: '47ad7f3dfdea67dd5e222e6bbba46ed4599680be', class: "zonos--payment-paypal-container" })));
|
|
330
330
|
}
|
|
331
331
|
get el() { return index.getElement(this); }
|
|
332
332
|
};
|
|
@@ -3,32 +3,32 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const renderCheckoutCurrency = require('./renderCheckoutCurrency-
|
|
6
|
+
const cart = require('./cart-94908542.js');
|
|
7
|
+
const localization = require('./localization-fb2ece37.js');
|
|
8
|
+
const renderCheckoutCurrency = require('./renderCheckoutCurrency-1b0cd5f2.js');
|
|
9
9
|
const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-57147de7.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
|
-
const zonosStore = require('./zonosStore-
|
|
12
|
-
const hasInclusivePrice = require('./hasInclusivePrice-
|
|
11
|
+
const zonosStore = require('./zonosStore-0af0b937.js');
|
|
12
|
+
const hasInclusivePrice = require('./hasInclusivePrice-d0cd2007.js');
|
|
13
13
|
const isSameHostCheckoutLink = require('./isSameHostCheckoutLink-6148cabb.js');
|
|
14
|
-
const paypal = require('./paypal-
|
|
14
|
+
const paypal = require('./paypal-45ca5301.js');
|
|
15
15
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
16
16
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
17
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
17
|
+
const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
|
|
18
18
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
19
|
-
const
|
|
20
|
-
const placeTestOrder = require('./placeTestOrder-
|
|
21
|
-
const isDarkColor = require('./isDarkColor-
|
|
22
|
-
const getContrastColor = require('./getContrastColor-
|
|
19
|
+
const shouldShowLanguageSelect = require('./shouldShowLanguageSelect-82985128.js');
|
|
20
|
+
const placeTestOrder = require('./placeTestOrder-302b6862.js');
|
|
21
|
+
const isDarkColor = require('./isDarkColor-a6e6fd5e.js');
|
|
22
|
+
const getContrastColor = require('./getContrastColor-956dfaf7.js');
|
|
23
23
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
24
|
-
const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-
|
|
25
|
-
const getMissingRequiredShippingFields = require('./getMissingRequiredShippingFields-
|
|
24
|
+
const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-de7b1466.js');
|
|
25
|
+
const getMissingRequiredShippingFields = require('./getMissingRequiredShippingFields-124b3f20.js');
|
|
26
26
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
27
27
|
const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-7d19556c.js');
|
|
28
28
|
const TaxId = require('./TaxId-cd9d490e.js');
|
|
29
|
-
require('./isContrastColor-
|
|
30
|
-
require('./submitGtag-
|
|
31
|
-
require('./debounce-
|
|
29
|
+
require('./isContrastColor-30f84a91.js');
|
|
30
|
+
require('./submitGtag-8a25f001.js');
|
|
31
|
+
require('./debounce-7ca3c878.js');
|
|
32
32
|
require('./ShortAddressCode-bec338b0.js');
|
|
33
33
|
|
|
34
34
|
const zonosCartItemsCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--cart-table td{vertical-align:top}:host .zonos--cart-item-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}:host .zonos--cart-item-name .zonos--cart-item-quantity>*{display:inline-block}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px}";
|
|
@@ -1115,13 +1115,16 @@ const ZonosCheckoutFooter = class {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
render() {
|
|
1117
1117
|
var _a;
|
|
1118
|
-
|
|
1118
|
+
// label resolves against every language, not just the offered ones, so the current
|
|
1119
|
+
// locale always renders even if the merchant later drops it from the selector
|
|
1120
|
+
const languageLabel = (_a = localization.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
1119
1121
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
1120
1122
|
const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
|
|
1121
|
-
return (index.h(index.Host, { key: '
|
|
1123
|
+
return (index.h(index.Host, { key: 'e233dc26d3869dd123a76a6a20ef7ef20be04ac9', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: 'c00938cd7e9a015227e022b7085e0544c8567fc8', class: "zonos--checkout-footer" }, index.h("div", { key: '822887a65cad7554ec8295187166da4d53406b83', class: "zonos--checkout-locale-wrapper" }, shouldShowLanguageSelect.shouldShowLanguageSelect() && (index.h(index.Fragment, { key: '1589f09bff0c417aed71f488b9799c3208c30b6b' }, index.h("zonos-button", { key: 'adb4467f16a158d3e6b6410fa0a6e81715d8b4a4', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, index.h("span", { key: '9dcd8064cb9d2bca25756d6e5d2e9d28d39bea04', class: "zonos--checkout-locale-label" }, languageLabel, index.h("zonos-icon", { key: '53d267dc3667e8f0af4dd91748a95311e67ae6bb', "aria-hidden": "true", class: "zonos--checkout-locale-chevron", content: ChevronDownIcon$1, iconColor: colorDesktop, size: 18 }))), index.h("div", { key: '48b44da80d72aa1cf2c20bd2d1faa3935ac41c0a', class: classes.classes([
|
|
1122
1124
|
'zonos--checkout-footer-dialog',
|
|
1123
|
-
this.showLanguageDialog &&
|
|
1124
|
-
|
|
1125
|
+
this.showLanguageDialog &&
|
|
1126
|
+
'zonos--checkout-footer-dialog-open',
|
|
1127
|
+
]) }, index.h("zonos-language-select", { key: '7cc39fa702bb6895556ac35815aea1a87237307b', handleOnClose: () => this.toggleLanguageDialog() }))))), index.h("div", { key: '7ea92dbdf7f70aeda580a8b06b111598e750e883', class: "zonos--checkout-footer-icon-wrapper" }, index.h("a", { key: '9463c3e591b4094e6516e55f127a193e58e63f75', href: "https://zonos.com/docs/legal/zonos-privacy-policy", rel: "noopener noreferrer", target: "_blank" }, index.h("zonos-text", { key: 'c09ac7de4a75b9667785eb3d023d838dcb70fded', textColor: colorDesktop }, localization.translate('Privacy policy'))), index.h("div", { key: 'a3b7bccb55163b3dc38a778530ed24afaec42498', class: "zonos--checkout-footer-logo" }, index.h("zonos-text", { key: 'da8f3fb699d42192e9dc120f250cbf4029132c0c', textColor: colorDesktop }, localization.translate('Powered by')), index.h("a", { key: '674f38407c93fe38801dce5475fd635b22449a44', href: "https://zonos.com", rel: "noopener noreferrer", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'f414178d37e8dc46fa6bb900112d985e9c111841', autoHeight: true, content: colorDesktop === 'gray-1000'
|
|
1125
1128
|
? ZonosIconLight
|
|
1126
1129
|
: ZonosIconDark, size: 108 })))))));
|
|
1127
1130
|
}
|
|
@@ -1594,17 +1597,17 @@ const ZonosCheckoutProgressTabs = class {
|
|
|
1594
1597
|
color: labelSelectedColor,
|
|
1595
1598
|
})
|
|
1596
1599
|
: labelSelectedColor;
|
|
1597
|
-
return (index.h(index.Host, { key: '
|
|
1600
|
+
return (index.h(index.Host, { key: '90dd30f544a4af6c2ed60b28c55c887dfd91151c', class: "zonos--elements", style: {
|
|
1598
1601
|
'--zonos--color': contrastLabelColor,
|
|
1599
1602
|
'--zonos--progress-percent': this.getTotalSuccessStep(),
|
|
1600
|
-
} }, index.h("div", { key: '
|
|
1603
|
+
} }, index.h("div", { key: '6fbdfc5306c7f266e7ad80f0daefdfe2c747df54', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
|
|
1601
1604
|
const isSelected = tab.value === selectedStep;
|
|
1602
1605
|
return (index.h("button", { "aria-label": `Tab ${tab.label}`, class: classes.classes([
|
|
1603
1606
|
'zonos--tab-item',
|
|
1604
1607
|
tab.value === selectedStep && 'selected',
|
|
1605
1608
|
tab.isDone && 'done',
|
|
1606
1609
|
]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => this.setTabSelected(tab.value) }, index.h("div", { class: "zonos--tab-index" }, index.h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index$1 + 1), index.h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), index.h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, localization.translate(tab.label))));
|
|
1607
|
-
})), index.h("div", { key: '
|
|
1610
|
+
})), index.h("div", { key: 'd797a4c506f42893919ecb30d2ee6a6f64b85ad4', class: "zonos--tab-progress" }, index.h("div", { key: '4c2a229a89f8e3bad1b8385a4311d5796981c834', class: "zonos--progress-bar-fill" }))));
|
|
1608
1611
|
}
|
|
1609
1612
|
static get assetsDirs() { return ["assets"]; }
|
|
1610
1613
|
get ele() { return index.getElement(this); }
|
|
@@ -2388,11 +2391,11 @@ const ZonosRestState = class {
|
|
|
2388
2391
|
}
|
|
2389
2392
|
render() {
|
|
2390
2393
|
const imageUrl = this.getImageRestState();
|
|
2391
|
-
return (index.h(index.Host, { key: '
|
|
2394
|
+
return (index.h(index.Host, { key: 'c59d087ef1e9d319835387dafd6044df02fbada4', class: classes.classes(['zonos--elements zonos--restState']), style: {
|
|
2392
2395
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
2393
|
-
} }, index.h("div", { key: '
|
|
2396
|
+
} }, index.h("div", { key: '66c517e9e27d02039bb8d94084d27d7bdb63acbc', class: "zonos--restState-image" }, index.h("img", { key: 'c2591b221940f1526f57eefea0a1624826188465', alt: this.restStateType, onError: () => {
|
|
2394
2397
|
this.isErrorImageLoad = true;
|
|
2395
|
-
}, src: imageUrl })), index.h("div", { key: '
|
|
2398
|
+
}, src: imageUrl })), index.h("div", { key: '12831552ca7bc7c5caed1b8337e302bd757ce066', class: "content" }, index.h("zonos-text", { key: '8d59853bd8670442b50dff2209bcadc66ceee908', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '9c0c37ca8b9b4b7db7567b962cfe2547e16c515b', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: '29487c0cf698f4f593f7b93a923810edcec1c800', class: "action" }, index.h("slot", { key: 'fc0a95a5691a15ffa2d83a7b51713209fb6ec095' }))));
|
|
2396
2399
|
}
|
|
2397
2400
|
static get assetsDirs() { return ["assets"]; }
|
|
2398
2401
|
};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-0af0b937.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
9
|
-
const isDarkColor = require('./isDarkColor-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
|
|
9
|
+
const isDarkColor = require('./isDarkColor-a6e6fd5e.js');
|
|
10
10
|
require('./VarianceTest-bec00ea8.js');
|
|
11
11
|
|
|
12
12
|
const colorPrefixes = [
|
|
@@ -72,14 +72,14 @@ const ZonosCheckbox = class {
|
|
|
72
72
|
customRoundRadius: '4px',
|
|
73
73
|
overrideBorderStyle: this.borderStyle,
|
|
74
74
|
});
|
|
75
|
-
return (index.h(index.Host, { key: '
|
|
75
|
+
return (index.h(index.Host, { key: 'fc12195af264aaca9a9738f594316d5357f8ebb1', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
|
|
76
76
|
'--zonos--background-color': backgroundColor,
|
|
77
77
|
'--zonos--border-radius': borderStyle,
|
|
78
78
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
79
79
|
'--zonos--size': `${this.size}px`,
|
|
80
|
-
} }, index.h("label", { key: '
|
|
80
|
+
} }, index.h("label", { key: '0db316fec272f3409d2525b4102e8bc6b51b5447', class: classes.classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, index.h("input", { key: '6e72a3e543dc6a0faa300d94adb226167a6f1114', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
|
|
81
81
|
this.checkboxSelected.emit(e.target.checked);
|
|
82
|
-
}, type: "checkbox" }), index.h("span", { key: '
|
|
82
|
+
}, type: "checkbox" }), index.h("span", { key: '7703e044bb17535afaf7d1f559e6808e0f7a0777', class: "checkmark-container" }, index.h("svg", { key: 'd6a0c3349d79e0d209c69e098f0b410a7ac67f98', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'e12f7a8f0ee87eb72ba9fd9d6f6dbca4e2757e14', "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 && (index.h("zonos-text", { key: 'dd53f7c4c37e21c745450476b69051ea65b03833', size: this.fontSize }, this.label)))));
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
ZonosCheckbox.style = ZonosCheckboxStyle0;
|
|
@@ -97,9 +97,9 @@ const ZonosToggle = class {
|
|
|
97
97
|
this.options = [];
|
|
98
98
|
}
|
|
99
99
|
render() {
|
|
100
|
-
return (index.h(index.Host, { key: '
|
|
100
|
+
return (index.h(index.Host, { key: 'ad5de3fba6f9f7a5d0820f95c809c6fd9e6d4ca7', class: classes.classes(['zonos--elements zonos--toggle']), style: {
|
|
101
101
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
102
|
-
} }, index.h("div", { key: '
|
|
102
|
+
} }, index.h("div", { key: 'd3d4321651c434734e86c470d6861241fcac361b', class: "wrapper" }, this.options.map(option => {
|
|
103
103
|
const selected = option.value === this.value;
|
|
104
104
|
return (index.h("button", { class: classes.classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
105
105
|
this.toggleChanged.emit(option.value);
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const localization = require('./localization-
|
|
9
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-94908542.js');
|
|
7
|
+
const paypal = require('./paypal-45ca5301.js');
|
|
8
|
+
const localization = require('./localization-fb2ece37.js');
|
|
9
|
+
const zonosStore = require('./zonosStore-0af0b937.js');
|
|
10
10
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
12
|
-
const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-
|
|
12
|
+
const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-de7b1466.js');
|
|
13
13
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
14
|
const CheckoutConfig = require('./CheckoutConfig-27c82f94.js');
|
|
15
15
|
const classes = require('./classes-b7918f56.js');
|
|
16
16
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
17
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
18
|
-
const isDarkColor = require('./isDarkColor-
|
|
17
|
+
const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
|
|
18
|
+
const isDarkColor = require('./isDarkColor-a6e6fd5e.js');
|
|
19
19
|
const styles = require('./styles-d1e64fb9.js');
|
|
20
20
|
const RemoveIcon = require('./RemoveIcon-081ac073.js');
|
|
21
21
|
require('./TaxId-cd9d490e.js');
|
|
22
|
-
require('./isContrastColor-
|
|
23
|
-
require('./submitGtag-
|
|
24
|
-
require('./debounce-
|
|
22
|
+
require('./isContrastColor-30f84a91.js');
|
|
23
|
+
require('./submitGtag-8a25f001.js');
|
|
24
|
+
require('./debounce-7ca3c878.js');
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* Check if store discount is enabled
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-0af0b937.js');
|
|
7
7
|
require('./VarianceTest-bec00ea8.js');
|
|
8
8
|
|
|
9
9
|
const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
|
|
@@ -57,10 +57,10 @@ const ZonosCollapse = class {
|
|
|
57
57
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
58
58
|
this.el.style.overflow = 'hidden';
|
|
59
59
|
}
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
60
|
+
return (index.h(index.Host, { key: 'ccd63ae063383c197ef9e3de5fdea5bdfcc1951b', class: 'zonos--elements zonos--collapse', style: {
|
|
61
61
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
62
62
|
height: this.getElementHeight(),
|
|
63
|
-
} }, index.h("div", { key: '
|
|
63
|
+
} }, index.h("div", { key: '49d68d13f7d3fab4104908ec06706ded803b32fa' }, index.h("iframe", { key: '55c8aa296b517b1c69849c0fa56f407b217ad713', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: '81207ecc6e59c358edbe4a653064d29c27ac5500' }))));
|
|
64
64
|
}
|
|
65
65
|
get el() { return index.getElement(this); }
|
|
66
66
|
};
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-94908542.js');
|
|
7
7
|
const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-57147de7.js');
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
+
const zonosStore = require('./zonosStore-0af0b937.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const styles = require('./styles-d1e64fb9.js');
|
|
11
|
-
require('./localization-
|
|
11
|
+
require('./localization-fb2ece37.js');
|
|
12
12
|
require('./handleFetch-954f30e1.js');
|
|
13
13
|
require('./VarianceTest-bec00ea8.js');
|
|
14
|
-
require('./isDarkColor-
|
|
15
|
-
require('./getBorderRadius-
|
|
14
|
+
require('./isDarkColor-a6e6fd5e.js');
|
|
15
|
+
require('./getBorderRadius-97fd5e02.js');
|
|
16
16
|
require('./TaxId-cd9d490e.js');
|
|
17
17
|
|
|
18
18
|
const zonosCollectCartItemsCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";
|
|
@@ -26,7 +26,7 @@ const ZonosCollectCartItems = class {
|
|
|
26
26
|
render() {
|
|
27
27
|
const emptyItemImg = index.getAssetPath('./assets/empty-item.jpeg');
|
|
28
28
|
const nonRestrictedItems = cart.cartStore.items.filter(item => !item.isRestricted);
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: '5a60fed50f3e58629cb85103d9c0ba52a3b88aa0', class: "zonos--collect-cart-items zonos--elements" }, index.h("table", { key: 'b1c10fa45ebe5404354284d64abb6460242f1463', class: "zonos--cart-table" }, index.h("tbody", { key: '1306747328419b524058be1cb04b6c0098c9ea89' }, nonRestrictedItems.map(item => {
|
|
30
30
|
const itemImg = item.imageUrl;
|
|
31
31
|
const cleanedItemNames = cleanHtmlMarkdown.cleanHtmlMarkdown(item.name);
|
|
32
32
|
return (index.h("tr", { class: "zonos--collect-cart-item" }, index.h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (index.h("img", { alt: item.name, onError: () => {
|
|
@@ -53,10 +53,10 @@ const HStack = class {
|
|
|
53
53
|
this.spacing = 24;
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (index.h(index.Host, { key: '
|
|
56
|
+
return (index.h(index.Host, { key: '1b810737fd49ee23a1d9ce845049efa6782f5a16', style: {
|
|
57
57
|
'--spacing': `${this.spacing}px`,
|
|
58
58
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
59
|
-
} }, index.h("slot", { key: '
|
|
59
|
+
} }, index.h("slot", { key: '64b114c99ecd5d6b953e5ce77f7d2a820f32cd36' })));
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
HStack.style = ZonosHStackStyle0;
|
|
@@ -79,7 +79,7 @@ const ZonosSkeleton = class {
|
|
|
79
79
|
this.skeletonHeight = '14px';
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (index.h(index.Host, { key: '
|
|
82
|
+
return (index.h(index.Host, { key: 'ba8efa50f345f97a2cf905068ff2d8d05557209e', class: classes.classes(['zonos--elements zonos--skeleton']), style: styles.styles({
|
|
83
83
|
'--zonos--skeleton-height': this.skeletonHeight,
|
|
84
84
|
'--zonos--skeleton-width': this.skeletonWidth,
|
|
85
85
|
}) }));
|
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const collect = require('./collect-
|
|
7
|
-
const cart = require('./cart-
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const localization = require('./localization-
|
|
10
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const collect = require('./collect-0c05e2b4.js');
|
|
7
|
+
const cart = require('./cart-94908542.js');
|
|
8
|
+
const paypal = require('./paypal-45ca5301.js');
|
|
9
|
+
const localization = require('./localization-fb2ece37.js');
|
|
10
|
+
const zonosStore = require('./zonosStore-0af0b937.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
12
12
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
13
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
13
|
+
const getBorderRadius = require('./getBorderRadius-97fd5e02.js');
|
|
14
14
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
15
15
|
const isCollectMobileTablet = require('./isCollectMobileTablet-884d4280.js');
|
|
16
16
|
const classes = require('./classes-b7918f56.js');
|
|
17
|
-
const
|
|
18
|
-
const renderCheckoutCurrency = require('./renderCheckoutCurrency-
|
|
19
|
-
const placeTestOrder = require('./placeTestOrder-
|
|
17
|
+
const shouldShowLanguageSelect = require('./shouldShowLanguageSelect-82985128.js');
|
|
18
|
+
const renderCheckoutCurrency = require('./renderCheckoutCurrency-1b0cd5f2.js');
|
|
19
|
+
const placeTestOrder = require('./placeTestOrder-302b6862.js');
|
|
20
20
|
const renderFallback = require('./renderFallback-bc20ee20.js');
|
|
21
|
-
require('./isDarkColor-
|
|
21
|
+
require('./isDarkColor-a6e6fd5e.js');
|
|
22
22
|
require('./TaxId-cd9d490e.js');
|
|
23
|
-
require('./isContrastColor-
|
|
24
|
-
require('./submitGtag-
|
|
23
|
+
require('./isContrastColor-30f84a91.js');
|
|
24
|
+
require('./submitGtag-8a25f001.js');
|
|
25
25
|
|
|
26
26
|
const RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-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" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
27
27
|
|
|
@@ -380,11 +380,11 @@ const ZonosCollectFinish = class {
|
|
|
380
380
|
}
|
|
381
381
|
render() {
|
|
382
382
|
const cartId = window.Zonos.cartId;
|
|
383
|
-
return (index.h(index.Host, { key: '
|
|
383
|
+
return (index.h(index.Host, { key: 'af26499a2062cf495d4c46a7763ed988a4da0669', class: "zonos--checkout-finish zonos--elements", style: {
|
|
384
384
|
'--zonos--border-radius': getBorderRadius.getBorderRadius({
|
|
385
385
|
overrideBorderStyle: this.borderRadius,
|
|
386
386
|
}),
|
|
387
|
-
} }, !this.isLoading && (index.h("div", { key: '
|
|
387
|
+
} }, !this.isLoading && (index.h("div", { key: '54fb28be3daee7dd1d63f1dcbdb9a84354fcdb6c', class: "zonos--finish-details" }, index.h("div", { key: '9c71e5dbd23e613e1038924f14c0465d94dbad07', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '3285f4bb8854d5bab6eef487d2b2ae3556794998', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (index.h("zonos-badge", { key: '4cecd6f15ed26fe1e525c01a48e3961845e6f6d8', badgeColor: "gray" }, this.confirmationId)), index.h("zonos-text", { key: 'dd7c4011d4d7f92fcd19d53e945adf42f2b3f05e', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.order && cartId && (index.h("div", { key: 'a11bd49a754d32dd15dc34f2311f9706d459f07b', class: "zonos--button-container" }, index.h("zonos-button", { key: '305bcf958a1772cc123414285522e9e0f0b1a839', onClick: () => {
|
|
388
388
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
389
389
|
}, size: "lg", variant: "primary" }, localization.translate('View receipt')))))))));
|
|
390
390
|
}
|
|
@@ -446,18 +446,20 @@ const ZonosCollectFooter = class {
|
|
|
446
446
|
}
|
|
447
447
|
render() {
|
|
448
448
|
var _a;
|
|
449
|
-
|
|
449
|
+
// label resolves against every language, not just the offered ones, so the current
|
|
450
|
+
// locale always renders even if the merchant later drops it from the selector
|
|
451
|
+
const languageLabel = (_a = localization.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
450
452
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
451
453
|
const colorDesktop = 'gray-1000';
|
|
452
|
-
return (index.h(index.Host, { key: '
|
|
454
|
+
return (index.h(index.Host, { key: '7733eba3e2253cc976484a9da290f66afd6ef93d', class: classes.classes([
|
|
453
455
|
'zonos--elements',
|
|
454
456
|
this.isMobile && 'mobile',
|
|
455
457
|
this.isTablet && 'tablet',
|
|
456
|
-
]) }, index.h("div", { key: '
|
|
458
|
+
]) }, index.h("div", { key: '2c5a058034844d818010f4002704fa17e6fd9a46', class: "zonos--collect-footer" }, index.h("div", { key: 'bffe2afd93ca0531b7eea825a7fd69d68b7aa308', class: "zonos--collect-locale-wrapper" }, shouldShowLanguageSelect.shouldShowLanguageSelect() && (index.h(index.Fragment, { key: '5469f522ea7b4b3f25fd7c0a63e717c29e34a84c' }, index.h("zonos-button", { key: '1c88778482c2960cf2a5e55beeda3f3c7f21b950', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, index.h("span", { key: '451485445df5f34ca64a36dddd5007ce9f229173', class: "zonos--collect-locale-label" }, languageLabel, index.h("zonos-icon", { key: 'a395943215ca541f3db4d3aa6e111c87930a6d08', "aria-hidden": "true", class: "zonos--collect-locale-chevron", content: ChevronDownIcon$1, iconColor: colorDesktop, size: 18 }))), index.h("div", { key: '46edba3f7fc8f9316b69626872e0cb478e72cbd4', class: classes.classes([
|
|
457
459
|
'zonos--collect-language-dialog',
|
|
458
460
|
this.showLanguageDialog &&
|
|
459
461
|
'zonos--collect-language-dialog-open',
|
|
460
|
-
]) }, index.h("zonos-language-select", { key: '
|
|
462
|
+
]) }, index.h("zonos-language-select", { key: 'e77a7197a218755149ee6b7f3e07a646bc95e930', handleOnClose: () => this.toggleLanguageDialog() }))))), index.h("div", { key: 'b18dcfe4f0806f3abb6b5855321381334e5206a7', class: "zonos--collect-footer-icon-wrapper" }, index.h("div", { key: '5c6c376fe1174cec16e9b6c029172138bc8b180a', class: "zonos--collect-footer-logo" }, index.h("zonos-text", { key: '0899e6990f8f37cf2d604ef15ffd3db0571d5389', textColor: colorDesktop }, "Powered by"), index.h("a", { key: '853891db2db1a4d1297597a9857772503e5b4d10', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'd8731023822bffdec3cfe821c67387df651de13a', autoHeight: true, content: ZonosWordmark, size: 42 }))), index.h("div", { key: 'ba5ae7870c1ed277142ceccf1d44276270b967d0', class: "dot" }), index.h("a", { key: '253dd9112d0626981473d0d0a3309cc577ea5b54', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'a5117f4e2194a4b5d1a5de1696763ca1e174b004', textColor: colorDesktop }, "Privacy policy"))))));
|
|
461
463
|
}
|
|
462
464
|
get el() { return index.getElement(this); }
|
|
463
465
|
static get watchers() { return {
|
|
@@ -798,13 +800,13 @@ const ZonosCollectReview = class {
|
|
|
798
800
|
}
|
|
799
801
|
render() {
|
|
800
802
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
801
|
-
return (index.h(index.Host, { key: '
|
|
803
|
+
return (index.h(index.Host, { key: '2ed81c7a0a16b9414fe1ce3799efa3b85679f982', class: classes.classes([
|
|
802
804
|
'zonos--collect-review zonos--elements',
|
|
803
805
|
this.isMobile && 'mobile',
|
|
804
806
|
this.isTablet && 'tablet',
|
|
805
|
-
]) }, index.h("div", { key: '
|
|
807
|
+
]) }, index.h("div", { key: 'fcf9fbc8dd807289bcd1c70406495b0c3396bfb8', class: "zonos--title" }, index.h("zonos-text", { key: '44cfb3b82b8e617687c212e108cacafb45713243', textColor: titleTextColor, type: 'semiBoldLabel' }, localization.translate('Pay [organizationName] duties, taxes and fees for your shipment', {
|
|
806
808
|
organizationName: zonosStore.zonosStore.organizationName,
|
|
807
|
-
}))), index.h("div", { key: '
|
|
809
|
+
}))), index.h("div", { key: '5472a1ccc61b49ce8c9578a4c3f801386cab1e7d', class: "zonos--total-pay" }, renderFallback.renderFallback({
|
|
808
810
|
content: (index.h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
809
811
|
amount: collect.collectStore.amountDutyTaxFeeTotal || 0,
|
|
810
812
|
isForeign: true,
|
|
@@ -870,7 +872,7 @@ const ZonosCollectSubtotal = class {
|
|
|
870
872
|
}
|
|
871
873
|
render() {
|
|
872
874
|
this.initSubtotalData();
|
|
873
|
-
return (index.h(index.Host, { key: '
|
|
875
|
+
return (index.h(index.Host, { key: 'f014c2ae733fe652d7d74349c0e12f93f46d71f5', class: "zonos--collect-subtotal zonos--elements" }, index.h("table", { key: '0bab186aa957c29f026151f5a112ff66bb42cb04', class: "zonos--collect-table" }, !!this.subtotals[localization.translate('Duties')] && (index.h("tr", { key: '97c24d5f179f5b59bcb91bc156b1d3e15b811262', class: "zonos--row zonos--collect-duty" }, index.h("td", { key: 'cba67296a6d17c0cd665981eb19ba95706f68843', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '6665f531a8656c4a1e0f9761d919c150587a36fb', type: "semiBoldLabel" }, localization.translate('Duties'))), index.h("td", { key: '20aeeee1fde0e63aaa168f32a5400ea82758a14c', class: "zonos--column" }), index.h("td", { key: '14994ca56e814f68fa3511098f5299a0942a295a', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
874
876
|
content: (index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
875
877
|
amount: this.subtotals[localization.translate('Duties')] || 0,
|
|
876
878
|
isForeign: true,
|
|
@@ -878,7 +880,7 @@ const ZonosCollectSubtotal = class {
|
|
|
878
880
|
isLoading: collect.collectStore.isFetchingShippingInfo,
|
|
879
881
|
skeletonHeight: '14px',
|
|
880
882
|
skeletonWidth: '150px',
|
|
881
|
-
})))), !!this.subtotals[localization.translate('Taxes')] && (index.h("tr", { key: '
|
|
883
|
+
})))), !!this.subtotals[localization.translate('Taxes')] && (index.h("tr", { key: 'cbbe4ddf13aabca9ff86b21317b067191f4155b8', class: "zonos--row zonos--collect-tax" }, index.h("td", { key: '675a36a92e136f3afd1960616e842e152cba6256', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '8896868f1e7f545d5b92c148a0f9812936ac2a9a', type: "semiBoldLabel" }, localization.translate('Taxes'))), index.h("td", { key: '8a4c29f6d2d513fd7da8be7b1ab695794f3a99ab', class: "zonos--column" }), index.h("td", { key: 'c15f7a872e59cce222a674acb55388dd18bfb74a', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
882
884
|
content: (index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
883
885
|
amount: this.subtotals[localization.translate('Taxes')] || 0,
|
|
884
886
|
isForeign: true,
|
|
@@ -886,7 +888,7 @@ const ZonosCollectSubtotal = class {
|
|
|
886
888
|
isLoading: collect.collectStore.isFetchingShippingInfo,
|
|
887
889
|
skeletonHeight: '14px',
|
|
888
890
|
skeletonWidth: '150px',
|
|
889
|
-
})))), !!this.subtotals[localization.translate('Fees')] && (index.h("tr", { key: '
|
|
891
|
+
})))), !!this.subtotals[localization.translate('Fees')] && (index.h("tr", { key: '4cf155874e4446b9ecab121cbaceba2328323359', class: "zonos--row zonos--collect-fee" }, index.h("td", { key: '3efcb4779f34f35a2398eb661f4b799b6b4480c7', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '41d30bb15d216663cd507f2c92d6639b5559708c', type: "semiBoldLabel" }, localization.translate('Fees'))), index.h("td", { key: 'ef8259d337fb047d8979f5008d2d46f3fc76b007', class: "zonos--column" }), index.h("td", { key: 'e0430efffbe23880a776953ba6a05b0cea268df4', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
890
892
|
content: (index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
891
893
|
amount: this.subtotals[localization.translate('Fees')] || 0,
|
|
892
894
|
isForeign: true,
|
|
@@ -894,7 +896,7 @@ const ZonosCollectSubtotal = class {
|
|
|
894
896
|
isLoading: collect.collectStore.isFetchingShippingInfo,
|
|
895
897
|
skeletonHeight: '14px',
|
|
896
898
|
skeletonWidth: '150px',
|
|
897
|
-
})))), index.h("tr", { key: '
|
|
899
|
+
})))), index.h("tr", { key: '279ddddfc6e9fe88bc1f16aeaeb6464737ec212f', class: "zonos--row zonos--collect-spacing" }, index.h("td", { key: 'de88842e26eb39938b573fc2ac89915d9f6708ba', class: "zonos--column", colSpan: 3 })), index.h("tr", { key: '48ecfc5852f1cb25b7816503f3279a3cffc1a581', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, index.h("td", { key: '06e65acfd5dd213481f415dc2475d9353e18ee53', class: "zonos--column" }), index.h("td", { key: 'b5ae37799d471defdb983a9167b96aa5e176f78e', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '52afa80c7b0eeda13093c26ce031dab4e4a62ee8', type: "label" }, localization.translate('Subtotal'))), index.h("td", { key: '840e0413b9c0d651ba7de6529d7c6581f165c047', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
898
900
|
content: (index.h("zonos-text", { type: "label" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
899
901
|
amount: collect.collectStore.amountDutyTaxFeeTotal || 0,
|
|
900
902
|
isForeign: true,
|
|
@@ -902,7 +904,7 @@ const ZonosCollectSubtotal = class {
|
|
|
902
904
|
isLoading: collect.collectStore.isFetchingShippingInfo,
|
|
903
905
|
skeletonHeight: '14px',
|
|
904
906
|
skeletonWidth: '150px',
|
|
905
|
-
}))), index.h("tr", { key: '
|
|
907
|
+
}))), index.h("tr", { key: '62ffc4102084c920e8bde4527415ea93d8ae8292', class: "zonos--row zonos--collect-total" }, index.h("td", { key: 'ef199898aa67686f1c36d2d0c73d1695443e81a9', class: "zonos--column" }), index.h("td", { key: '1bd5949e640823841ac7425a46b519482b975c37', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '96d53a1ffd935ac98cd5560419cc7d5395945da4', type: "semiBoldLabel" }, localization.translate('Customs fees total'))), index.h("td", { key: '008f69a34b557f2660426acccafe925f6b554293', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback.renderFallback({
|
|
906
908
|
content: (index.h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency.renderCheckoutCurrency({
|
|
907
909
|
amount: collect.collectStore.amountDutyTaxFeeTotal || 0,
|
|
908
910
|
isForeign: true,
|