@zonos/elements 1.3.218 → 1.3.219
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/buildCartItemsByTempCart-309fcebf.js +28 -0
- package/dist/cjs/{cart-c54d05ce.js → cart-9a2b32e4.js} +90 -47
- package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
- package/dist/cjs/index.cjs.js +19 -9
- package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localization-b12edb2a.js +738 -0
- package/dist/cjs/{paypal-d36b5dd1.js → paypal-e80871d0.js} +12 -8
- package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
- package/dist/cjs/{localization-ab7e1902.js → translationStore-20a6d8bf.js} +963 -734
- package/dist/cjs/zonos-address_11.cjs.entry.js +102 -72
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +73 -1292
- package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
- package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
- package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +15 -5
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
- package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
- package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +91 -25
- package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
- package/dist/collection/components/store/checkout/cart.js +36 -15
- package/dist/collection/components/store/checkout/collect.js +157 -0
- package/dist/collection/components/store/checkout/paypal.js +4 -2
- package/dist/collection/components/store/checkout/stripe.js +31 -12
- package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
- package/dist/collection/components/store/translationStore/strings.base.js +48 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
- package/dist/collection/components/store/translationStore/strings.french.js +48 -0
- package/dist/collection/components/store/translationStore/strings.german.js +48 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
- package/dist/collection/components/store/translationStore.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/initCollect.js +15 -0
- package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
- package/dist/collection/components/utils/renderFallback.js +7 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
- package/dist/collection/scripts/_zonosBase.js +7 -1
- package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +103 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
- package/dist/esm/{cart-bb0ee971.js → cart-acf4ebf5.js} +68 -27
- package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
- package/dist/esm/index.js +19 -9
- package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localization-8646f526.js +719 -0
- package/dist/esm/{paypal-bd4520eb.js → paypal-2fa930eb.js} +7 -4
- package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
- package/dist/esm/{localization-d8326254.js → translationStore-c9743292.js} +963 -718
- package/dist/esm/zonos-address_11.entry.js +71 -41
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +23 -1240
- package/dist/esm/zonos-checkout.entry.js +6 -29
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
- package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
- package/dist/esm/zonos-collect.entry.js +464 -0
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
- package/dist/esm/zonos-controller.entry.js +84 -28
- package/dist/esm/zonos-country-flag.entry.js +2 -1
- package/dist/esm/zonos-country-select_4.entry.js +11 -10
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +15 -5
- package/dist/esm/zonos-hello-dialog.entry.js +6 -5
- package/dist/esm/zonos-hello.entry.js +2 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +6 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +9 -6
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
- package/dist/esm-es5/cart-acf4ebf5.js +1 -0
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-8646f526.js +1 -0
- package/dist/esm-es5/paypal-2fa930eb.js +17 -0
- package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
- package/dist/esm-es5/translationStore-c9743292.js +1 -0
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
- package/dist/esm-es5/zonos-collect.entry.js +1 -0
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
- 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-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-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-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +470 -3
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
- package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
- package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
- package/dist/types/components/main/zonos-controller.d.ts +5 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
- package/dist/types/components/store/checkout/cart.d.ts +23 -3
- package/dist/types/components/store/checkout/collect.d.ts +21 -0
- package/dist/types/components/store/checkout/paypal.d.ts +4 -3
- package/dist/types/components/store/checkout/stripe.d.ts +6 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
- package/dist/types/components/store/translationStore.d.ts +2 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
- package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
- package/dist/types/components/utils/renderFallback.d.ts +6 -0
- package/dist/types/components.d.ts +401 -2
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
- package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
- package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
- package/dist/types/types/generated/graphql.internal.types.ts +428 -10
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
- package/dist/zonos-elements/p-07bea979.system.js +1 -0
- package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
- package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
- package/dist/zonos-elements/p-0ef2a242.js +1 -0
- package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
- package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
- package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
- package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
- package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
- package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
- package/dist/zonos-elements/p-29c80a34.js +1 -0
- package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
- package/dist/zonos-elements/p-2cc031b3.js +17 -0
- package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
- package/dist/zonos-elements/p-485416ec.js +1 -0
- package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
- package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
- package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
- package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
- package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
- package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
- package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
- package/dist/zonos-elements/p-6761091e.entry.js +1 -0
- package/dist/zonos-elements/p-6761286d.js +1 -0
- package/dist/zonos-elements/p-69451a50.system.js +1 -0
- package/dist/zonos-elements/p-69fd1b88.js +1 -0
- package/dist/zonos-elements/p-6dd63754.system.js +1 -0
- package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
- package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
- package/dist/zonos-elements/p-772ac0b7.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-81e23f30.system.js +1 -0
- package/dist/zonos-elements/p-873b698a.entry.js +1 -0
- package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
- package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
- package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
- package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
- package/dist/zonos-elements/p-986ebccc.js +1 -0
- package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
- package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
- package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
- package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
- package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
- package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
- package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
- package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
- package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
- package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
- package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
- package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
- package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
- package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d63696ac.system.js +17 -0
- package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
- package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
- package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
- package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
- package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/zonos-card.cjs.entry.js +0 -49
- package/dist/esm/zonos-card.entry.js +0 -45
- package/dist/esm-es5/cart-bb0ee971.js +0 -1
- package/dist/esm-es5/localization-d8326254.js +0 -1
- package/dist/esm-es5/paypal-bd4520eb.js +0 -17
- package/dist/esm-es5/zonos-banner.entry.js +0 -1
- package/dist/esm-es5/zonos-card.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
- package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
- package/dist/zonos-elements/p-0631d2b9.js +0 -1
- package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
- package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
- package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
- package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
- package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
- package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
- package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
- package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
- package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
- package/dist/zonos-elements/p-674981ad.system.js +0 -1
- package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
- package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
- package/dist/zonos-elements/p-795d223d.entry.js +0 -1
- package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
- package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
- package/dist/zonos-elements/p-88f7256d.js +0 -1
- package/dist/zonos-elements/p-8b083884.entry.js +0 -1
- package/dist/zonos-elements/p-a449940d.entry.js +0 -1
- package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
- package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
- package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
- package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
- package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
- package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
- package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
- package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
- package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef75da6f.js +0 -17
- package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
- package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
|
@@ -6,11 +6,12 @@ const index = require('./index-1c710d00.js');
|
|
|
6
6
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
const getBorderRadius = require('./getBorderRadius-1b5e33cf.js');
|
|
9
|
-
const cart = require('./cart-
|
|
10
|
-
const localization = require('./localization-
|
|
9
|
+
const cart = require('./cart-9a2b32e4.js');
|
|
10
|
+
const localization = require('./localization-b12edb2a.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
12
|
-
const paypal = require('./paypal-
|
|
12
|
+
const paypal = require('./paypal-e80871d0.js');
|
|
13
13
|
require('./VarianceTest-0cb1e118.js');
|
|
14
|
+
require('./translationStore-20a6d8bf.js');
|
|
14
15
|
require('./isDarkColor-428965f4.js');
|
|
15
16
|
|
|
16
17
|
const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -211,7 +212,7 @@ const ZonosPayment = class {
|
|
|
211
212
|
}
|
|
212
213
|
render() {
|
|
213
214
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
214
|
-
return (index.h(index.Host, { key: '
|
|
215
|
+
return (index.h(index.Host, { key: '1828cd97531009303635ded8725233c07e45fba3', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: '899f8ef9f1e008a8d613e54fd1196c1bab7cefdc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: '9e9b67bd29a4caf71a6f34fba03c67cbff03b0c7', class: "zonos--payment-component" }), index.h("div", { key: '1aeb4114ca6eac6541e0bafe72077093bdfb777e', class: "zonos--payment-paypal-container" })));
|
|
215
216
|
}
|
|
216
217
|
get el() { return index.getElement(this); }
|
|
217
218
|
static get watchers() { return {
|
|
@@ -230,6 +231,7 @@ const ZonosPaypalPayment = class {
|
|
|
230
231
|
index.registerInstance(this, hostRef);
|
|
231
232
|
this.paypalSessionDone = index.createEvent(this, "paypalSessionDone", 7);
|
|
232
233
|
this.paypalSessionFail = index.createEvent(this, "paypalSessionFail", 7);
|
|
234
|
+
this.storeUnsubscribeList = [];
|
|
233
235
|
}
|
|
234
236
|
async loadPaypal() {
|
|
235
237
|
if (!window.Zonos.paypal) {
|
|
@@ -261,12 +263,20 @@ const ZonosPaypalPayment = class {
|
|
|
261
263
|
await paypalButton.render(container);
|
|
262
264
|
});
|
|
263
265
|
}
|
|
266
|
+
componentWillLoad() {
|
|
267
|
+
this.storeUnsubscribeList = [
|
|
268
|
+
paypal.paypalStoreOnChange('paypal', this.loadPaypal.bind(this)),
|
|
269
|
+
];
|
|
270
|
+
}
|
|
264
271
|
componentDidLoad() {
|
|
265
272
|
// @Watch doesn't get trigger on initial load
|
|
266
273
|
void this.loadPaypal();
|
|
267
274
|
}
|
|
275
|
+
disconnectedCallback() {
|
|
276
|
+
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
277
|
+
}
|
|
268
278
|
render() {
|
|
269
|
-
return (index.h(index.Host, { key: '
|
|
279
|
+
return (index.h(index.Host, { key: 'af7d707c64d3f1b637d5d296d46e59023fff0744', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: '5a387dc0c7ae0ef6492b5f68b548989dd9832380', class: "zonos--payment-paypal-container" })));
|
|
270
280
|
}
|
|
271
281
|
get el() { return index.getElement(this); }
|
|
272
282
|
};
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const localization = require('./localization-
|
|
6
|
+
const localization = require('./localization-b12edb2a.js');
|
|
7
|
+
const translationStore = require('./translationStore-20a6d8bf.js');
|
|
7
8
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
8
9
|
const classes = require('./classes-b7918f56.js');
|
|
9
10
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
@@ -138,7 +139,7 @@ const ZonosHelloDialog = class {
|
|
|
138
139
|
// For GB, if the store doesn't allow low value orders, we would like to tell shopper that duties will always apply as there would be a custom message saying "Orders to United Kingdom must be over .* to ship."
|
|
139
140
|
if (!(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.allowLowValueOrders) &&
|
|
140
141
|
(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode) === 'GB') {
|
|
141
|
-
return
|
|
142
|
+
return translationStore.translate('Duties will apply to all orders.');
|
|
142
143
|
}
|
|
143
144
|
// Our Robby API spells deminimis wrong here
|
|
144
145
|
const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
|
|
@@ -146,17 +147,17 @@ const ZonosHelloDialog = class {
|
|
|
146
147
|
: null;
|
|
147
148
|
// If deminimis is undefined or null, assume it's $0
|
|
148
149
|
return dutyDeminimis
|
|
149
|
-
?
|
|
150
|
+
? translationStore.translate('Spend up to [threshold] duty free.', {
|
|
150
151
|
threshold: dutyDeminimis,
|
|
151
152
|
})
|
|
152
|
-
:
|
|
153
|
+
: translationStore.translate('Duties will apply to all orders.');
|
|
153
154
|
};
|
|
154
155
|
this.getTaxMessage = () => {
|
|
155
156
|
const { countryLandedCost } = localization.localizationStore;
|
|
156
157
|
// For GB, if the store doesn't allow low value orders, we would like to tell shopper that taxes will always apply as there would be a custom message saying "Orders to United Kingdom must be over .* to ship."
|
|
157
158
|
if (!(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.allowLowValueOrders) &&
|
|
158
159
|
(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode) === 'GB') {
|
|
159
|
-
return
|
|
160
|
+
return translationStore.translate('Taxes will apply to all orders.');
|
|
160
161
|
}
|
|
161
162
|
// Our Robby API spells deminimis wrong here
|
|
162
163
|
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
@@ -164,35 +165,35 @@ const ZonosHelloDialog = class {
|
|
|
164
165
|
: null;
|
|
165
166
|
return taxDeminimis &&
|
|
166
167
|
!this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
|
|
167
|
-
?
|
|
168
|
+
? translationStore.translate('Spend up to [threshold] tax free.', {
|
|
168
169
|
threshold: taxDeminimis,
|
|
169
170
|
})
|
|
170
|
-
:
|
|
171
|
+
: translationStore.translate('Taxes will apply to all orders.');
|
|
171
172
|
};
|
|
172
173
|
this.getEuDutyTaxMessage = (landedCost) => {
|
|
173
174
|
return [
|
|
174
|
-
`${
|
|
175
|
+
`${translationStore.translate('Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
175
176
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
176
177
|
})} ${wrapStringWithLink({
|
|
177
178
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss',
|
|
178
|
-
text:
|
|
179
|
+
text: translationStore.translate('Learn more.'),
|
|
179
180
|
})}`,
|
|
180
181
|
];
|
|
181
182
|
};
|
|
182
183
|
this.getUkDutyTaxMessage = (landedCost) => {
|
|
183
184
|
if (landedCost.allowLowValueOrders) {
|
|
184
185
|
return [
|
|
185
|
-
`${
|
|
186
|
+
`${translationStore.translate('Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
186
187
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
187
188
|
})} ${wrapStringWithLink({
|
|
188
189
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss',
|
|
189
|
-
text:
|
|
190
|
+
text: translationStore.translate('Learn more.'),
|
|
190
191
|
})}`,
|
|
191
192
|
];
|
|
192
193
|
}
|
|
193
194
|
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
194
195
|
return [
|
|
195
|
-
|
|
196
|
+
translationStore.translate('Orders to [countryName] must be over [threshold] to ship.', {
|
|
196
197
|
countryName: 'United Kingdom',
|
|
197
198
|
threshold: localization.currencyFormat({ amount: dutyDeminimis }),
|
|
198
199
|
}),
|
|
@@ -203,11 +204,11 @@ const ZonosHelloDialog = class {
|
|
|
203
204
|
return [];
|
|
204
205
|
}
|
|
205
206
|
return [
|
|
206
|
-
`${
|
|
207
|
+
`${translationStore.translate('Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
207
208
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
208
209
|
})} ${wrapStringWithLink({
|
|
209
210
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
|
|
210
|
-
text:
|
|
211
|
+
text: translationStore.translate('Learn more.'),
|
|
211
212
|
})}`,
|
|
212
213
|
];
|
|
213
214
|
};
|
|
@@ -216,11 +217,11 @@ const ZonosHelloDialog = class {
|
|
|
216
217
|
return null;
|
|
217
218
|
}
|
|
218
219
|
return [
|
|
219
|
-
`${
|
|
220
|
+
`${translationStore.translate('Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
220
221
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
221
222
|
})} ${wrapStringWithLink({
|
|
222
223
|
href: 'https://zonos.com/docs/guides/country-guides/new-zealand/new-zealand-import-taxes',
|
|
223
|
-
text:
|
|
224
|
+
text: translationStore.translate('Learn more.'),
|
|
224
225
|
})}`,
|
|
225
226
|
];
|
|
226
227
|
};
|
|
@@ -229,11 +230,11 @@ const ZonosHelloDialog = class {
|
|
|
229
230
|
return null;
|
|
230
231
|
}
|
|
231
232
|
return [
|
|
232
|
-
`${
|
|
233
|
+
`${translationStore.translate('Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
233
234
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
234
235
|
})} ${wrapStringWithLink({
|
|
235
236
|
href: 'https://zonos.com/docs/guides/country-guides/norway-voec-scheme',
|
|
236
|
-
text:
|
|
237
|
+
text: translationStore.translate('Learn more.'),
|
|
237
238
|
})}`,
|
|
238
239
|
];
|
|
239
240
|
};
|
|
@@ -242,11 +243,11 @@ const ZonosHelloDialog = class {
|
|
|
242
243
|
return null;
|
|
243
244
|
}
|
|
244
245
|
return [
|
|
245
|
-
`${
|
|
246
|
+
`${translationStore.translate('Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
246
247
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
247
248
|
})} ${wrapStringWithLink({
|
|
248
249
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/singapore-gst-settings',
|
|
249
|
-
text:
|
|
250
|
+
text: translationStore.translate('Learn more.'),
|
|
250
251
|
})}`,
|
|
251
252
|
];
|
|
252
253
|
};
|
|
@@ -258,28 +259,28 @@ const ZonosHelloDialog = class {
|
|
|
258
259
|
if (setting.duty.status === 'INCLUDED' &&
|
|
259
260
|
setting.tax.status === 'INCLUDED' &&
|
|
260
261
|
setting.fee.status === 'INCLUDED') {
|
|
261
|
-
return
|
|
262
|
+
return translationStore.translate('Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.');
|
|
262
263
|
}
|
|
263
264
|
if (setting.duty.status === 'INCLUDED' &&
|
|
264
265
|
setting.tax.status === 'INCLUDED') {
|
|
265
|
-
return
|
|
266
|
+
return translationStore.translate('Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.');
|
|
266
267
|
}
|
|
267
268
|
if (setting.duty.status === 'INCLUDED' &&
|
|
268
269
|
setting.fee.status === 'INCLUDED') {
|
|
269
|
-
return
|
|
270
|
+
return translationStore.translate('Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.');
|
|
270
271
|
}
|
|
271
272
|
if (setting.tax.status === 'INCLUDED' &&
|
|
272
273
|
setting.fee.status === 'INCLUDED') {
|
|
273
|
-
return
|
|
274
|
+
return translationStore.translate('Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions.');
|
|
274
275
|
}
|
|
275
276
|
if (setting.duty.status === 'INCLUDED') {
|
|
276
|
-
return
|
|
277
|
+
return translationStore.translate('Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.');
|
|
277
278
|
}
|
|
278
279
|
if (setting.tax.status === 'INCLUDED') {
|
|
279
|
-
return
|
|
280
|
+
return translationStore.translate('Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions.');
|
|
280
281
|
}
|
|
281
282
|
if (setting.fee.status === 'INCLUDED') {
|
|
282
|
-
return
|
|
283
|
+
return translationStore.translate('Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.');
|
|
283
284
|
}
|
|
284
285
|
return null;
|
|
285
286
|
};
|
|
@@ -339,26 +340,26 @@ const ZonosHelloDialog = class {
|
|
|
339
340
|
(this.dialogRef && getHasMoreSpaceOnRight.getHasMoreSpaceOnRight(this.dialogRef));
|
|
340
341
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
341
342
|
const { customMessages } = localization.localizationStore;
|
|
342
|
-
const welcomeMessage =
|
|
343
|
+
const welcomeMessage = translationStore.translate('Welcome to [storeName]', {
|
|
343
344
|
storeName: zonosStore.zonosStore.organizationName,
|
|
344
345
|
});
|
|
345
346
|
const defaultMessageStr = ((_a = customMessages.find(x => x.pageName === 'hello_default')) === null || _a === void 0 ? void 0 : _a.message) ||
|
|
346
|
-
|
|
347
|
+
translationStore.translate('Know about duties and taxes before you buy. Shop with confidence!');
|
|
347
348
|
const defaultMessage = formatStringWithLinks.formatStringWithLinks(defaultMessageStr);
|
|
348
349
|
const currentPage = this.getCurrentPageEnum();
|
|
349
350
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
350
|
-
return (index.h(index.Host, { key: '
|
|
351
|
+
return (index.h(index.Host, { key: 'cb93edb34ae6e427ca22018f78bd9f83bed8fb6c', class: "zonos--elements" }, index.h("div", { key: '36f0560ccc1b49c412077203eca49c8d8fbde0c1', class: classes.classes([
|
|
351
352
|
'zonos--hello-dialog',
|
|
352
353
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
353
354
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
354
355
|
!!this.mobileLocationOverride &&
|
|
355
356
|
'zonos--hello-dialog-mobile-override',
|
|
356
357
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
357
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (index.h("div", { key: '
|
|
358
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (index.h("div", { key: 'f5561b5699dc9ab8871e5c55002907f31551f06d' }, index.h("div", { key: '4f9d3e67db0d77c9cf945a02b3e7e5f7f4e8a2ef', class: "zonos--hello-dialog-content" }, index.h("zonos-button", { key: '47cc0055cd7077e5d8482446785e75addd50cc55', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), index.h("zonos-v-stack", { key: '757fe60f5af6721f9b0e23e8182c5283c5e891b0', spacing: 24 }, index.h("zonos-country-flag", { key: '26dbfbceb8e3d16cc07debcb92d8759c8beb47da', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), index.h("zonos-v-stack", { key: 'fc41d363ac000d991a55cb5643d3db5bf65e86a7', class: "zonos--hello-dialog-header", spacing: 4 }, index.h("zonos-text", { key: 'ed02015e70e28bab9584f0cffae0401189537379', type: "boldSubheader" }, welcomeMessage), index.h("zonos-text", { key: '7c12a8d379e4c8bf2235b06d1d020bdad7f63a6c', innerHTML: defaultMessage, textColor: "gray-800" })), index.h("zonos-v-stack", { key: '120bd4591063877c10663559e2186875adeed017', spacing: 8 }, this.restrictedItems.map(item => {
|
|
358
359
|
var _a;
|
|
359
360
|
return item && (index.h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (index.h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
360
|
-
}), index.h("zonos-card", { key: '
|
|
361
|
-
additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), index.h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '
|
|
361
|
+
}), index.h("zonos-card", { key: '2d47773d1db35acf323f1a92808535c909e245ca', spacing: "12px" }, index.h("zonos-v-stack", { key: '9bd445564c4d13d03772a5289a758fc19c9853a5', spacing: 12 }, hasInclusivePrices ? (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), index.h("zonos-text", null, inclusivePriceMessage))) : (index.h(index.Fragment, null, dutyDeMinimisMessage && (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis icon", content: ImportIcon }), index.h("zonos-text", { "aria-label": "Duty de minimis message" }, dutyDeMinimisMessage))), taxDeMinimisMessage && (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Tax de minimis icon", content: MoneyIcon }), index.h("zonos-text", { "aria-label": "Tax de minimis message" }, taxDeMinimisMessage))))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
362
|
+
additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), index.h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '6ea82d255084e05957e6d82e6305b945388998ad', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (index.h("div", { key: '1b007ad4dadcb7b6f25e96a14e00dc8dcf4b9d5a' }, index.h("zonos-country-select", { key: 'f442a030a5abbb707fdddbc51a1126cd1fb3ef99', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (index.h("div", { key: 'aba190f3fafb298bc063f2ba05dfe74af7cc97ae' }, index.h("zonos-language-select", { key: '105c6c35f630d2c7b551518665f433a90d13c488', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
362
363
|
}
|
|
363
364
|
static get assetsDirs() { return ["assets"]; }
|
|
364
365
|
static get watchers() { return {
|
|
@@ -4,7 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
6
|
const debounce = require('./debounce-465a4328.js');
|
|
7
|
-
const localization = require('./localization-
|
|
7
|
+
const localization = require('./localization-b12edb2a.js');
|
|
8
|
+
const translationStore = require('./translationStore-20a6d8bf.js');
|
|
8
9
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
9
10
|
const classes = require('./classes-b7918f56.js');
|
|
10
11
|
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
@@ -156,20 +157,20 @@ const ZonosHello = class {
|
|
|
156
157
|
const isRestrictionPage = zonosStore.zonosStore.currentHelloPage === 'productDetail' ||
|
|
157
158
|
zonosStore.zonosStore.currentHelloPage === 'productList';
|
|
158
159
|
if (isRestrictionPage && this.allRestrictedItems.length) {
|
|
159
|
-
const clickMessage =
|
|
160
|
+
const clickMessage = translationStore.translate('click to learn more');
|
|
160
161
|
const restrictMessage = zonosStore.zonosStore.currentHelloPage === 'productDetail'
|
|
161
|
-
?
|
|
162
|
-
:
|
|
162
|
+
? translationStore.translate('Restricted item')
|
|
163
|
+
: translationStore.translate('Restricted items found');
|
|
163
164
|
return `${restrictMessage} - ${clickMessage}`;
|
|
164
165
|
}
|
|
165
166
|
switch (zonosStore.zonosStore.currentHelloPage) {
|
|
166
167
|
case 'cart':
|
|
167
|
-
return
|
|
168
|
+
return translationStore.translate(`Prepay duties and taxes at checkout`);
|
|
168
169
|
case 'productList':
|
|
169
170
|
case 'productDetail':
|
|
170
|
-
return
|
|
171
|
+
return translationStore.translate(`See duty and tax thresholds`);
|
|
171
172
|
default:
|
|
172
|
-
return
|
|
173
|
+
return translationStore.translate('Welcome to [storeName]', {
|
|
173
174
|
storeName: organizationName,
|
|
174
175
|
});
|
|
175
176
|
}
|
|
@@ -42,17 +42,17 @@ const ZonosInput = class {
|
|
|
42
42
|
this.inputChange.emit(newValue);
|
|
43
43
|
}
|
|
44
44
|
render() {
|
|
45
|
-
return (index.h(index.Host, { key: '
|
|
45
|
+
return (index.h(index.Host, { key: 'a239adc57fc0cd31bff05447fe10d0ad1e825007', class: classes.classes([
|
|
46
46
|
'zonos--input zonos--elements',
|
|
47
47
|
this.inputSize,
|
|
48
48
|
this.isError && 'has-error',
|
|
49
49
|
]), style: {
|
|
50
50
|
'--zonos--border-radius': getBorderRadius.getBorderRadius(),
|
|
51
51
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
52
|
-
} }, index.h("div", { key: '
|
|
52
|
+
} }, index.h("div", { key: 'd2f1086b2139b9c7af5ae2882e0dfb0db65028dc', class: classes.classes([
|
|
53
53
|
'zonos--label-wrapper',
|
|
54
54
|
this.isDisabled && 'disabled',
|
|
55
|
-
]) }, index.h("input", { key: '
|
|
55
|
+
]) }, index.h("input", { key: '8e48977b401aed6b36079f732adbc6493bb05804', class: classes.classes([
|
|
56
56
|
'zonos--floated-input',
|
|
57
57
|
!!this.inputLabel && 'has-label',
|
|
58
58
|
this.inputValue && 'has-content',
|
|
@@ -60,7 +60,7 @@ const ZonosInput = class {
|
|
|
60
60
|
]), disabled: this.isDisabled, onInput: e => {
|
|
61
61
|
const input = e.target;
|
|
62
62
|
this.inputChange.emit(input.value);
|
|
63
|
-
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), index.h("label", { key: '
|
|
63
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), index.h("label", { key: '23ece9b49c1d718340a6f0bb59b93ad2dfe34828', class: "zonos--floated-label", "data-label": this.inputLabel }))));
|
|
64
64
|
}
|
|
65
65
|
get el() { return index.getElement(this); }
|
|
66
66
|
static get watchers() { return {
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const localization = require('./localization-
|
|
6
|
+
const localization = require('./localization-b12edb2a.js');
|
|
7
|
+
const translationStore = require('./translationStore-20a6d8bf.js');
|
|
7
8
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
8
9
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
10
|
require('./handleFetch-45f35cac.js');
|
|
@@ -34,9 +35,9 @@ const ZonosLanguageSelect = class {
|
|
|
34
35
|
}
|
|
35
36
|
render() {
|
|
36
37
|
const { selectedLocale } = localization.localizationStore;
|
|
37
|
-
return (index.h(index.Host, { key: '
|
|
38
|
+
return (index.h(index.Host, { key: '74b0315ab257fff13cf23057f485c0dcfb7edd1b', class: "zonos--elements", style: {
|
|
38
39
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
39
|
-
} }, index.h("div", { key: '
|
|
40
|
+
} }, index.h("div", { key: 'cc220539afcb6b883eec939edfb6933bf9fb08a0', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '297b34a17100fb10b2fd95b44bc5c9cadad960ab', handleOnClose: () => this.handleOnClose(), label: translationStore.translate('Select a language') }), index.h("div", { key: '2b85c2aeba8ddcb5a7725089daaf9b0cea025d76', class: "zonos--language-select-content" }, ILanguage.languages.map(language => (index.h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, index.h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (index.h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
43
|
ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
|
|
@@ -60,9 +61,9 @@ const ZonosSelectDialogHeader = class {
|
|
|
60
61
|
this.label = '';
|
|
61
62
|
}
|
|
62
63
|
render() {
|
|
63
|
-
return (index.h(index.Host, { key: '
|
|
64
|
+
return (index.h(index.Host, { key: '999f6edfe39142a7539164d2c046aa44945ff23f', class: "zonos--elements", style: {
|
|
64
65
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
65
|
-
} }, index.h("zonos-v-stack", { key: '
|
|
66
|
+
} }, index.h("zonos-v-stack", { key: '1213364336cd7f809f4f2539835f86b2b6b30273', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, index.h("div", { key: 'af342994ec6e54a08ccee92443977c06e5e6bd65', class: "zonos--select-dialog-header" }, index.h("zonos-text", { key: '81c1a17bb93b0e4ba7a9874d34f6ce2fdcf3321e', type: "boldLabel" }, this.label), index.h("zonos-button", { key: 'e321c6d3a6020d4c3ccdac84bbf1025e5ef490c1', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), index.h("slot", { key: 'f3583feb7eba033767769e1b06c24961d2e4f56a' }))));
|
|
66
67
|
}
|
|
67
68
|
};
|
|
68
69
|
ZonosSelectDialogHeader.style = ZonosSelectDialogHeaderStyle0;
|
|
@@ -16,7 +16,7 @@ const ZonosLink = class {
|
|
|
16
16
|
this.href = '';
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return (index.h(index.Host, { key: '
|
|
19
|
+
return (index.h(index.Host, { key: 'd39155a476f2043e12e6869abdec2bde6872951a', class: "zonos--elements" }, index.h("a", { key: '8fe2d59047850181984a00747ddc341ef88cb302', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: '4eef2f735b77fce6f254e44ca0d4aded68863468' }))));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
ZonosLink.style = ZonosLinkStyle0;
|
|
@@ -26,11 +26,11 @@ const ZonosLogo = class {
|
|
|
26
26
|
const filterColor = this.theme === 'DARK'
|
|
27
27
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
28
28
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
29
|
-
return (index.h(index.Host, { key: '
|
|
29
|
+
return (index.h(index.Host, { key: '0b8e78167613096d36d1f500e21284194246974e', class: classes.classes(['zonos--elements zonos--logo']), style: {
|
|
30
30
|
'--zonos--filter-color': filterColor,
|
|
31
31
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
32
32
|
'--zonos--width': this.width,
|
|
33
|
-
} }, index.h("img", { key: '
|
|
33
|
+
} }, index.h("img", { key: 'd657a31c178c580a90e268ebc4b06fb4d0e15eae', alt: "Zonos Logo", src: index.getAssetPath('./assets/ZonosLogo.png') })));
|
|
34
34
|
}
|
|
35
35
|
static get assetsDirs() { return ["assets"]; }
|
|
36
36
|
};
|
|
@@ -72,9 +72,12 @@ const ZonosStripeInput = class {
|
|
|
72
72
|
render() {
|
|
73
73
|
const primaryColor = this.overridePrimaryColor || zonosStore.zonosStore.appearance.colorPrimary;
|
|
74
74
|
const secondaryColor = this.overrideSecondaryColor || zonosStore.zonosStore.appearance.colorSecondary;
|
|
75
|
-
|
|
75
|
+
// Always use theme from appearance settings if it's collect
|
|
76
|
+
const isDark = window.Zonos.isCollect
|
|
77
|
+
? zonosStore.zonosStore.appearance.theme === 'DARK'
|
|
78
|
+
: primaryColor && isDarkColor.isDarkColor(primaryColor);
|
|
76
79
|
const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
|
|
77
|
-
return (index.h(index.Host, { key: '
|
|
80
|
+
return (index.h(index.Host, { key: '351f86f2aa5ab9ee9fcb2b1919443a8b3d57a4c2', class: classes.classes([
|
|
78
81
|
'zonos--input zonos--elements',
|
|
79
82
|
isDark && 'dark',
|
|
80
83
|
(this.isError || !!this.error) && 'has-error',
|
|
@@ -83,10 +86,10 @@ const ZonosStripeInput = class {
|
|
|
83
86
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
84
87
|
'--zonos--font-size': `${fontSize}px`,
|
|
85
88
|
'--zonos--primary-color': secondaryColor,
|
|
86
|
-
} }, index.h("div", { key: '
|
|
89
|
+
} }, index.h("div", { key: 'fb0b3e3d5feb11a458a6d4f3509ff812600b5935', class: classes.classes([
|
|
87
90
|
'zonos--label-wrapper',
|
|
88
91
|
this.isDisabled && 'disabled',
|
|
89
|
-
]) }, index.h("input", Object.assign({ key: '
|
|
92
|
+
]) }, index.h("input", Object.assign({ key: '499164e3c30a1a72032dd815899c380f328cc431' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
|
|
90
93
|
'zonos--floated-input',
|
|
91
94
|
!!this.inputLabel && 'has-label',
|
|
92
95
|
this.internalValue && 'has-content',
|
|
@@ -96,7 +99,7 @@ const ZonosStripeInput = class {
|
|
|
96
99
|
this.inputChange.emit(input.value);
|
|
97
100
|
this.el.inputValue = input.value;
|
|
98
101
|
this.el.dispatchEvent(new Event('change'));
|
|
99
|
-
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '
|
|
102
|
+
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '27b56860180c0758d51b6f73e0336bdecf4d85e6', class: "zonos--floated-label" }, index.h("label", { key: '8119e9b68b052f9eaea762da61007a6eb4c29bd4', htmlFor: this.inputId }, this.inputLabel))), this.error && (index.h("zonos-text", { key: 'c141d6887bdfc3ac6fa580fcc47de25a9b99853b', textColor: "red-600", type: "caption" }, this.error))));
|
|
100
103
|
}
|
|
101
104
|
get el() { return index.getElement(this); }
|
|
102
105
|
static get watchers() { return {
|
|
@@ -109,7 +109,7 @@ const textOptions = {
|
|
|
109
109
|
},
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
const zonosTextCss = ":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{color:var(--zonos--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos--font-size-3xl, var(--zonos-elements-font-size-3xl))}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos--font-size-2xl, var(--zonos-elements-font-size-2xl))}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos--font-size-xl, var(--zonos-elements-font-size-xl))}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos--font-size-l, var(--zonos-elements-font-size-l))}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos--font-size-base, var(--zonos-elements-font-size-base))}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos--font-size-s, var(--zonos-elements-font-size-s))}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos--font-size-xs, var(--zonos-elements-font-size-xs))}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";
|
|
112
|
+
const zonosTextCss = ":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{color:var(--zonos--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos--font-size-3xl, var(--zonos-elements-font-size-3xl))}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos--font-size-2xl, var(--zonos-elements-font-size-2xl));line-height:32px}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos--font-size-xl, var(--zonos-elements-font-size-xl))}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos--font-size-l, var(--zonos-elements-font-size-l))}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos--font-size-base, var(--zonos-elements-font-size-base))}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos--font-size-s, var(--zonos-elements-font-size-s))}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos--font-size-xs, var(--zonos-elements-font-size-xs))}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";
|
|
113
113
|
const ZonosTextStyle0 = zonosTextCss;
|
|
114
114
|
|
|
115
115
|
const ZonosText = class {
|
|
@@ -20,9 +20,9 @@ const ZonosToggle = class {
|
|
|
20
20
|
this.options = [];
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: '1490dbdc9cc90d4d51ccc9e665fb5ee00455bf0e', class: classes.classes(['zonos--elements zonos--toggle']), style: {
|
|
24
24
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
|
-
} }, index.h("div", { key: '
|
|
25
|
+
} }, index.h("div", { key: 'af24e513fc988893be3dba1a08044d69c9493522', class: "wrapper" }, this.options.map(option => {
|
|
26
26
|
const selected = option.value === this.value;
|
|
27
27
|
return (index.h("button", { class: classes.classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
28
28
|
this.toggleChanged.emit(option.value);
|
|
@@ -22,10 +22,10 @@ const ZonosTooltip = class {
|
|
|
22
22
|
this.showTooltip = false;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '10a391b40266e3f80d94f0870754fc1a5aaa1822', class: "zonos--elements" }, index.h("div", { key: '31236e53e67d2199204894d02590bfa5e54eaf8e', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '37a6de3ef4e6fdd64ecb3f3bdcc21f0dd091e4da' }), index.h("div", { key: 'ecd0222cd1a712790b8864d265919278493e8252', class: classes.classes([
|
|
26
26
|
this.showTooltip && 'zonos--show-tooltip',
|
|
27
27
|
'zonos--tooltip-content',
|
|
28
|
-
]) }, index.h("zonos-text", { key: '
|
|
28
|
+
]) }, index.h("zonos-text", { key: 'afb6494edf8cbe4e3257a27cdc815b91995704e7', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '8d7c0ce999a9ee7fe49dd506497343734c99f76e', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -20,9 +20,9 @@ const VStack = class {
|
|
|
20
20
|
this.spacing = 24;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: 'dc01f22fed27bc4804c12c0a0236bddf2ad95c51', style: {
|
|
24
24
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
|
-
} }, index.h("div", { key: '
|
|
25
|
+
} }, index.h("div", { key: '460e86adabb0c867eab109806968fa1a72c2e58f', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: '5ea93490a795258d57d15f45cda39da6b244314a' }))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
VStack.style = ZonosVStackStyle0;
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
"components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js",
|
|
20
20
|
"components/checkout/zonos-checkout/zonos-review/zonos-review.js",
|
|
21
21
|
"components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js",
|
|
22
|
+
"components/checkout/zonos-collect/zonos-collect.js",
|
|
23
|
+
"components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js",
|
|
24
|
+
"components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js",
|
|
25
|
+
"components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js",
|
|
26
|
+
"components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js",
|
|
27
|
+
"components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js",
|
|
28
|
+
"components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js",
|
|
29
|
+
"components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js",
|
|
22
30
|
"components/common/zonos-badge/zonos-badge.js",
|
|
23
31
|
"components/common/zonos-button/zonos-button.js",
|
|
24
32
|
"components/common/zonos-card/zonos-card.js",
|
|
@@ -30,6 +38,7 @@
|
|
|
30
38
|
"components/common/zonos-country-select/zonos-country-select.js",
|
|
31
39
|
"components/common/zonos-custom-message/zonos-custom-message.js",
|
|
32
40
|
"components/common/zonos-dialog/zonos-dialog.js",
|
|
41
|
+
"components/common/zonos-h-stack/zonos-h-stack.js",
|
|
33
42
|
"components/common/zonos-icon/zonos-icon.js",
|
|
34
43
|
"components/common/zonos-input/zonos-input.js",
|
|
35
44
|
"components/common/zonos-language-select/zonos-language-select.js",
|
|
@@ -38,6 +47,7 @@
|
|
|
38
47
|
"components/common/zonos-logo/zonos-logo.js",
|
|
39
48
|
"components/common/zonos-rest-state/zonos-rest-state.js",
|
|
40
49
|
"components/common/zonos-select-dialog-header/zonos-select-dialog-header.js",
|
|
50
|
+
"components/common/zonos-skeleton/zonos-skeleton.js",
|
|
41
51
|
"components/common/zonos-stripe-input/zonos-stripe-input.js",
|
|
42
52
|
"components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js",
|
|
43
53
|
"components/common/zonos-stripe-select/zonos-stripe-select.js",
|
|
@@ -129,6 +129,9 @@ export class ZonosCheckoutPayment {
|
|
|
129
129
|
if (!stripeStore.stripeElements) {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
132
|
+
if (!stripeStore.clientSecret && !cartStore.isStagingMode) {
|
|
133
|
+
return null;
|
|
134
|
+
}
|
|
132
135
|
// start validate on typing after error banner is shown, and hide it if the form is complete
|
|
133
136
|
if (this.showErrorBanner) {
|
|
134
137
|
this.showErrorBanner = !this.handleValidate();
|
|
@@ -498,7 +498,7 @@ export class ZonosCheckout {
|
|
|
498
498
|
const cartIdResult = await zonosStore.checkoutSettings.createCartId();
|
|
499
499
|
let cartId;
|
|
500
500
|
if (typeof cartIdResult === 'object') {
|
|
501
|
-
log('object detected, use cartId and prefill address from createCartId');
|
|
501
|
+
log('object detected, use cartId and prefill address from createCartId', 'info', cartIdResult);
|
|
502
502
|
cartId = cartIdResult.cartId;
|
|
503
503
|
// set prefill address if provided in createCartId callback result
|
|
504
504
|
this.useShippingDataFromCreateCartId(cartIdResult.shippingData);
|
|
@@ -1798,7 +1798,7 @@ export class ZonosCheckout {
|
|
|
1798
1798
|
"signature": "(session: CheckoutSessionDetailsFragment) => Promise<void>",
|
|
1799
1799
|
"parameters": [{
|
|
1800
1800
|
"name": "session",
|
|
1801
|
-
"type": "{ cartId: string | null; clientSecret: string; customerProfile: { email: string | null; locations: { administrativeArea: string; countryCode: CountryCode; email: string | null; line1: string; line2: string | null; locality: string; name: string | null; phone: string | null; postalCode: string; }[] | null; name: string | null; } | null; customerSessionClientSecret: string | null; id: string; landedCost: { amountSubtotals: { discounts: number | null; duties: number; fees: number; items: number; landedCostTotal: number; shipping: number; taxes: number; } | null;
|
|
1801
|
+
"type": "{ cartId: string | null; clientSecret: string; completedAt: string | null; customerProfile: { email: string | null; locations: { administrativeArea: string; countryCode: CountryCode; email: string | null; line1: string; line2: string | null; locality: string; name: string | null; phone: string | null; postalCode: string; }[] | null; name: string | null; } | null; customerSessionClientSecret: string | null; id: string; landedCost: { amountSubtotals: { discounts: number | null; duties: number; fees: number; items: number; landedCostTotal: number; shipping: number; taxes: number; } | null; appliedAdjustments: { adjustment: { name: string | null; source: AdjustmentSource | null; } | null; amount: number; item: { amount: number; } | null; type: LandedCostAdjustmentType | null; }[] | null; deMinimis: { type: DeMinimisType; threshold: DeMinimisThreshold; method: IncotermCode; note: string; formula: string; }[]; duties: { amount: number; currencyCode: CurrencyCode; }[]; fees: { amount: number; currencyCode: CurrencyCode; }[]; rootId: string; landedCostGuaranteeCode: LandedCostGuaranteeCode; method: IncotermCode; remittance: { amount: number; description: string; }[]; id: string; shipmentRating: { amount: number; currencyCode: CurrencyCode; displayName: string; id: string; shippingProfile: { transitTime: { guaranteedDelivery: string | null; max: number | null; min: number | null; type: TransitTypeCode | null; } | null; } | null; }; taxes: { amount: number; currencyCode: CurrencyCode; }[]; } | null; metadata: ({ key: string; value: string; } | null)[] | null; organizationId: string; subtotals: { adjustments: number; duties: number; exchangeRate: { id: string; rate: number; sourceCurrencyCode: CurrencyCode; targetCurrencyCode: CurrencyCode; type: ExchangeRateType; }; fees: number; items: number; landedCostTotal: number; presentmentCurrencyCode: CurrencyCode; shipping: number; taxes: number; total: number; }; varianceTestResults: { selectedVariantKey: string; testKey: string; }[] | null; }",
|
|
1802
1802
|
"docs": ""
|
|
1803
1803
|
}],
|
|
1804
1804
|
"references": {
|
|
@@ -49,7 +49,11 @@ export class ZonosShipping {
|
|
|
49
49
|
// update the address async if we already got landed cost data
|
|
50
50
|
await stripeStoreAsyncAddressUpdate();
|
|
51
51
|
// save selected shipping option to store
|
|
52
|
-
await cartStoreUpdateSelectedShippingOption(
|
|
52
|
+
await cartStoreUpdateSelectedShippingOption({
|
|
53
|
+
applySubtotalsOnly: false,
|
|
54
|
+
landedCostId: e.detail.landedCostId,
|
|
55
|
+
selectedShippingOption,
|
|
56
|
+
});
|
|
53
57
|
this.isSelecting = false;
|
|
54
58
|
};
|
|
55
59
|
this.handleValidate = () => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
|