@zonos/elements 1.3.272 → 1.3.273
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-f1374a56.js → cart-660e115c.js} +32 -2
- package/dist/cjs/collect-286a9d04.js +3107 -0
- package/dist/cjs/{hasInclusivePrice-2f1232e3.js → hasInclusivePrice-b35e81aa.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-3760bec0.js → invoice-f032089f.js} +2 -2
- package/dist/cjs/isCollectMobileTablet-884d4280.js +15 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-503c8477.js → localization-f4a64f6f.js} +120 -0
- package/dist/cjs/{paypal-5e9b8224.js → paypal-125259ab.js} +2 -2
- package/dist/cjs/{placeTestOrder-d1be2c8e.js → placeTestOrder-02001a99.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-4486b06e.js → renderCheckoutCurrency-cad156a7.js} +2 -2
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +18 -18
- package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +170 -0
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +19 -19
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +150 -36
- package/dist/cjs/zonos-collect.cjs.entry.js +176 -38
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- 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 +1 -0
- package/dist/collection/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.css +43 -0
- package/dist/collection/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.js +215 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
- 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 +110 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +1 -17
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +21 -0
- 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-collect/zonos-collect.js +167 -29
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-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 +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/airwallex.js +195 -0
- package/dist/collection/components/store/checkout/collect.js +4 -1
- package/dist/collection/components/store/checkout/stripe.js +26 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
- package/dist/collection/components/store/translationStore/strings.base.js +6 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
- package/dist/collection/components/store/translationStore/strings.french.js +6 -0
- package/dist/collection/components/store/translationStore/strings.german.js +6 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -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 +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/types/generated/graphql.internal.types.js +3 -0
- package/dist/esm/{cart-1415dcf0.js → cart-23e29950.js} +32 -2
- package/dist/esm/collect-a235299d.js +3092 -0
- package/dist/esm/{hasInclusivePrice-a3b0f71c.js → hasInclusivePrice-5e106f84.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-117efa2c.js → invoice-78f069c7.js} +2 -2
- package/dist/esm/isCollectMobileTablet-111b0dd7.js +12 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-29723d89.js → localization-17546792.js} +120 -0
- package/dist/esm/{paypal-cb5559d4.js → paypal-5bc6b0d0.js} +2 -2
- package/dist/esm/{placeTestOrder-443376eb.js → placeTestOrder-e842854a.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-8390b5bf.js → renderCheckoutCurrency-e3953f67.js} +2 -2
- package/dist/esm/zonos-address-display_8.entry.js +18 -18
- package/dist/esm/zonos-address_4.entry.js +8 -8
- package/dist/esm/zonos-airwallex-payment.entry.js +166 -0
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +9 -9
- package/dist/esm/zonos-cart-items_12.entry.js +19 -19
- package/dist/esm/zonos-checkbox_2.entry.js +5 -5
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
- package/dist/esm/zonos-collect-finish_6.entry.js +135 -21
- package/dist/esm/zonos-collect.entry.js +171 -33
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +3 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +10 -10
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
- package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-policy-consent_2.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/cart-23e29950.js +1 -0
- package/dist/esm-es5/collect-a235299d.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-a3b0f71c.js → hasInclusivePrice-5e106f84.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-117efa2c.js → invoice-78f069c7.js} +1 -1
- package/dist/esm-es5/isCollectMobileTablet-111b0dd7.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-17546792.js +1 -0
- package/dist/esm-es5/{paypal-cb5559d4.js → paypal-5bc6b0d0.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-443376eb.js → placeTestOrder-e842854a.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-8390b5bf.js → renderCheckoutCurrency-e3953f67.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -0
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-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-stripe-input.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 +61 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.d.ts +46 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +7 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +4 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +29 -0
- package/dist/types/components/store/checkout/airwallex.d.ts +83 -0
- package/dist/types/components/store/checkout/collect.d.ts +12 -1
- package/dist/types/components/store/checkout/stripe.d.ts +1 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
- package/dist/types/components.d.ts +42 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +11 -1
- package/dist/types/types/checkout/api/PartyInfo.d.ts +6 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +20 -0
- package/dist/types/types/generated/graphql.internal.types.ts +29 -0
- package/dist/types/types/utils/ZonosSettings.d.ts +6 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-013575f2.entry.js +1 -0
- package/dist/zonos-elements/{p-344a1fee.entry.js → p-055ef910.entry.js} +1 -1
- package/dist/zonos-elements/{p-3efe0875.entry.js → p-08b48608.entry.js} +1 -1
- package/dist/zonos-elements/{p-26ae4ee7.system.entry.js → p-0a54dae6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aafc2155.system.entry.js → p-0b59076d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c92a5ae5.system.entry.js → p-10571f94.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-658ab5e2.entry.js → p-12a05647.entry.js} +1 -1
- package/dist/zonos-elements/{p-b453ae2b.system.js → p-14018649.system.js} +2 -2
- package/dist/zonos-elements/{p-d2ba9e3c.system.entry.js → p-1678d8b4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-171d0f9f.system.js +1 -0
- package/dist/zonos-elements/{p-5bd47a30.system.entry.js → p-1a105d6e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1a4083be.system.js +1 -0
- package/dist/zonos-elements/{p-792fce17.system.entry.js → p-1f31f5a0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2197d6ab.js +1 -0
- package/dist/zonos-elements/{p-536cbab5.system.entry.js → p-27e50593.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0b4ba025.entry.js → p-2825431d.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-73730eb9.system.entry.js → p-2a1247f4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2adbbce7.system.js +1 -0
- package/dist/zonos-elements/{p-f98cdb98.system.entry.js → p-306e5499.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-831bcfb6.entry.js → p-31577ebd.entry.js} +1 -1
- package/dist/zonos-elements/{p-889a44fc.entry.js → p-328fd90e.entry.js} +1 -1
- package/dist/zonos-elements/p-33910e8b.js +1 -0
- package/dist/zonos-elements/{p-fb684748.system.entry.js → p-36b311f9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b4e5608.system.entry.js → p-3eba657b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-41619f29.js +1 -0
- package/dist/zonos-elements/{p-cdea0f7d.js → p-42948a52.js} +1 -1
- package/dist/zonos-elements/p-46e72a90.entry.js +1 -0
- package/dist/zonos-elements/p-49d8a10f.entry.js +1 -0
- package/dist/zonos-elements/{p-54a9c772.system.entry.js → p-4a960329.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-93324ee5.entry.js → p-4b371b65.entry.js} +1 -1
- package/dist/zonos-elements/p-539bc46c.js +1 -0
- package/dist/zonos-elements/p-579932a7.js +1 -0
- package/dist/zonos-elements/{p-2afecda7.entry.js → p-59b10526.entry.js} +1 -1
- package/dist/zonos-elements/{p-98bea13e.system.entry.js → p-5aa35d1c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fd849c69.system.js → p-62c68aee.system.js} +1 -1
- package/dist/zonos-elements/{p-48f3e2d2.system.entry.js → p-6c19310e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-16948eea.system.entry.js → p-732e7373.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e8c4a29.entry.js → p-734d646b.entry.js} +1 -1
- package/dist/zonos-elements/{p-60f0ff42.entry.js → p-7eb47eb0.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb254a96.system.entry.js → p-86a9f048.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8af57c2a.js +1 -0
- package/dist/zonos-elements/{p-18c9565b.system.entry.js → p-8c4761d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c45df586.system.entry.js → p-8e77a3cd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-919c5500.entry.js +1 -0
- package/dist/zonos-elements/p-91b921a4.system.js +1 -0
- package/dist/zonos-elements/{p-3b600b89.system.js → p-9574695a.system.js} +1 -1
- package/dist/zonos-elements/p-97917371.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7ce6b8f7.system.entry.js → p-9b003a15.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-53be08c8.entry.js → p-9c3276c8.entry.js} +1 -1
- package/dist/zonos-elements/p-9cd41234.system.entry.js +1 -0
- package/dist/zonos-elements/{p-5f92db80.system.entry.js → p-a1a05de4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4c94cfd3.entry.js → p-a968ccba.entry.js} +1 -1
- package/dist/zonos-elements/{p-ee00f232.entry.js → p-abd485df.entry.js} +1 -1
- package/dist/zonos-elements/{p-7d859914.entry.js → p-ad961f5d.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b87101d.system.entry.js → p-b5c01288.system.entry.js} +1 -1
- package/dist/zonos-elements/p-bf8c98ab.system.js +1 -0
- package/dist/zonos-elements/{p-2d1055d5.entry.js → p-c13d2e3f.entry.js} +1 -1
- package/dist/zonos-elements/{p-0b46f3bd.system.entry.js → p-c15476a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0e36a7cf.system.entry.js → p-c6823974.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dae881f2.entry.js → p-c83bc4b3.entry.js} +1 -1
- package/dist/zonos-elements/{p-134c5010.system.entry.js → p-c846a5f3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7aca66cd.entry.js → p-cc508de8.entry.js} +1 -1
- package/dist/zonos-elements/{p-6609467e.entry.js → p-ccd14aa5.entry.js} +1 -1
- package/dist/zonos-elements/{p-318e704a.system.js → p-d25759fb.system.js} +1 -1
- package/dist/zonos-elements/{p-a956e28f.entry.js → p-d5e66ea6.entry.js} +1 -1
- package/dist/zonos-elements/{p-7536cf94.system.entry.js → p-daf57db3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b35a0b1e.entry.js → p-dcef2202.entry.js} +1 -1
- package/dist/zonos-elements/{p-283ffaad.entry.js → p-dd6da3de.entry.js} +1 -1
- package/dist/zonos-elements/{p-bd2daace.entry.js → p-df6fbf3f.entry.js} +1 -1
- package/dist/zonos-elements/{p-c16c7978.entry.js → p-e643346a.entry.js} +1 -1
- package/dist/zonos-elements/{p-b375372e.entry.js → p-e8cb382e.entry.js} +1 -1
- package/dist/zonos-elements/{p-f4be6ce5.system.entry.js → p-e8ec88a9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e9afd736.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c425d3d9.js → p-e9c8a235.js} +1 -1
- package/dist/zonos-elements/{p-ccc8d669.system.entry.js → p-f0eb6317.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f1cc659c.js +1 -0
- package/dist/zonos-elements/{p-b1b7d786.entry.js → p-f53c8a9f.entry.js} +1 -1
- package/dist/zonos-elements/{p-777d396e.entry.js → p-f72642de.entry.js} +1 -1
- package/dist/zonos-elements/{p-eb77dd11.system.js → p-fcaec700.system.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +2 -1
- package/dist/cjs/isCollectMobileTablet-d5c1a9ea.js +0 -176
- package/dist/esm/isCollectMobileTablet-2c62fdaa.js +0 -169
- package/dist/esm-es5/cart-1415dcf0.js +0 -1
- package/dist/esm-es5/isCollectMobileTablet-2c62fdaa.js +0 -1
- package/dist/esm-es5/localization-29723d89.js +0 -1
- package/dist/zonos-elements/p-0fa932e6.system.js +0 -1
- package/dist/zonos-elements/p-15c2dfea.entry.js +0 -1
- package/dist/zonos-elements/p-17c7a727.system.js +0 -1
- package/dist/zonos-elements/p-24aa6708.js +0 -1
- package/dist/zonos-elements/p-2585034d.entry.js +0 -1
- package/dist/zonos-elements/p-2cda42d5.system.js +0 -1
- package/dist/zonos-elements/p-53b65b80.js +0 -1
- package/dist/zonos-elements/p-58521b25.js +0 -1
- package/dist/zonos-elements/p-9259e19b.system.entry.js +0 -1
- package/dist/zonos-elements/p-99ef86c3.js +0 -1
- package/dist/zonos-elements/p-aa3a7538.js +0 -1
- package/dist/zonos-elements/p-c935390d.js +0 -1
- package/dist/zonos-elements/p-e77dd304.system.js +0 -1
- package/dist/zonos-elements/p-ea91600a.entry.js +0 -1
- package/dist/zonos-elements/p-f5d9e5e5.system.entry.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, a as Host, d as createEvent, g as getElement } from './index-cfd394c8.js';
|
|
2
|
-
import { t as translate, l as localizationStore, s as storageStore, y as storageStoreOnChange } from './localization-
|
|
2
|
+
import { t as translate, l as localizationStore, s as storageStore, y as storageStoreOnChange } from './localization-17546792.js';
|
|
3
3
|
import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
4
|
-
import { U as extractName, b as stripeStore, r as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-
|
|
4
|
+
import { U as extractName, b as stripeStore, r as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-23e29950.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { g as getBorderRadius } from './getBorderRadius-d23f47a6.js';
|
|
7
7
|
import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
@@ -72,15 +72,15 @@ const ZonosAddressForm = class {
|
|
|
72
72
|
const { firstName, lastName } = extractName({
|
|
73
73
|
name,
|
|
74
74
|
});
|
|
75
|
-
return (h(Host, { key: '
|
|
75
|
+
return (h(Host, { key: '45d9837eb2fa1799686031aae55b7a5b56683f44', class: "zonos--address-form zonos--elements" }, h("div", { key: '021635c62ccf3956099fbc4111a7cccacf87e6a1', class: "zonos--title" }, h("zonos-text", { key: 'f8a7f4423c3e1fe85d99f7a4baadfd8ec92c5e91', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
|
|
76
76
|
? translate('Shipping')
|
|
77
|
-
: translate('Billing'))), h("div", { key: '
|
|
77
|
+
: translate('Billing'))), h("div", { key: '3989feba67adc4921dc27f4b245391c933065d78', class: "zonos--address-group" }, h("div", { key: '909ef4b8f44902a16334051fb8cde1edd4f87f8b', class: "zonos--contact" }, h("zonos-text", { key: '301eb71e15a331a7423d547486b668009ce19bd0', type: "label" }, translate('Contact')), h("zonos-input", { key: '473f22469d0628db079298abb02a18f908225350', class: "zonos--form-email", inputLabel: translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), h("div", { key: 'eaa32450d028bfd8a197a3b1172a1316d6080962', class: "zonos--name zonos--address-row" }, h("zonos-input", { key: '82b3b902539cd2eb67bddfccc9146f91f7061538', class: "zonos--form-first-name", inputLabel: translate('First name'), inputValue: firstName, isError: isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
|
|
78
78
|
key: 'name',
|
|
79
79
|
value: `${e.detail} ${lastName}`,
|
|
80
|
-
}) }), h("zonos-input", { key: '
|
|
80
|
+
}) }), h("zonos-input", { key: 'cf32104d4d575eb9d5843cf5d8701aebb02c4e3c', class: "zonos--form-last-name", inputLabel: translate('Last name'), inputValue: lastName, isError: isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
|
|
81
81
|
key: 'name',
|
|
82
82
|
value: `${firstName} ${e.detail}`,
|
|
83
|
-
}) }))), h("div", { key: '
|
|
83
|
+
}) }))), h("div", { key: 'd570f7e1849bcc9a8e1bc13a15195bb5ee9bf8f2', class: "zonos--address" }, h("zonos-text", { key: 'dec7847247e97ffa3dde6d04a1ccd17347d9e8c1', type: "label" }, translate('Address')), h("zonos-input", { key: '595f540e7feb57dada3ebcf93202a75492ff447f', class: "zonos--form-country", inputLabel: translate('Country'), inputValue: country, isDisabled: true }), h("zonos-input", { key: 'c7fa3e7736ceee4c23195179f9e50b9cd43aa25a', class: "zonos--form-line1", inputLabel: translate('Address line 1'), inputValue: line1, isError: isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), h("zonos-input", { key: 'e455495f96667f7228a5ed51fc67d080df0b7991', class: "zonos--form-line2", inputLabel: translate('Address line 2'), inputValue: line2, isError: isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), h("div", { key: '5312af811975d9a2e2809896d51ce992317af54d', class: "zonos--address-row" }, h("zonos-input", { key: '49537f098a054787550266d6a7698e6fe102cad6', class: "zonos--form-city", inputLabel: translate('City'), inputValue: city, isError: isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (h("zonos-input", { key: '06d1c8c2e21300c300ddfbdaa4abaffef006793d', class: "zonos--form-state", inputLabel: translate('State/Province'), inputValue: state, isError: isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), h("zonos-input", { key: '94081e11a3184e86eef1add3eee392c3e3afb11a', class: "zonos--form-postal-code", inputLabel: translate('Postal code'), inputValue: postal_code, isError: isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), h("zonos-input", { key: '00ce7f0931179ff2c86e2da0fc82eed71cd6af19', class: "zonos--form-phone", inputLabel: translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
|
|
84
84
|
}
|
|
85
85
|
static get watchers() { return {
|
|
86
86
|
"translatedAddress": ["watchCurrentAddress"]
|
|
@@ -166,9 +166,9 @@ const ZonosAddressSuggestions = class {
|
|
|
166
166
|
return segments;
|
|
167
167
|
}
|
|
168
168
|
render() {
|
|
169
|
-
return (h(Host, { key: '
|
|
169
|
+
return (h(Host, { key: '93cce2d783f3b0eba378027d2450d13451e6ce18', class: "zonos--address-suggestions", role: "group", style: {
|
|
170
170
|
'--zonos--border-radius': getBorderRadius(),
|
|
171
|
-
} }, h("ul", { key: '
|
|
171
|
+
} }, h("ul", { key: 'e577d8dea6fb9a225f8361e5ba48601a74b8614d', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '8f4c74b030f50ed03133a443e4b9a41869c18571', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '0288a70a89c25ce227e918ad91db0b77efa42a82', class: "powered-by-container" }, h("zonos-text", { key: '2d2fe2711d2b72a4077a417ed37d9b6897184525', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: 'a7ef3f738fc67a03fa2c935c128666945ad838a0', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: 'ebe5ccc2e0315867c4dbe3c030cf4e44312d691c', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
|
|
172
172
|
this.localSuggestions = [];
|
|
173
173
|
} }))), this.localSuggestions.map(suggestion => (
|
|
174
174
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -1312,10 +1312,10 @@ const ZonosAddress = class {
|
|
|
1312
1312
|
this.country = localizationStore.selectedCountryCode;
|
|
1313
1313
|
}
|
|
1314
1314
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
1315
|
-
return (h(Host, { key: '
|
|
1315
|
+
return (h(Host, { key: 'dae45101b0b661fb0f392507cbc2642c65e72499', class: classes([
|
|
1316
1316
|
'zonos--address zonos--elements',
|
|
1317
1317
|
`zonos--${this.type}-address`,
|
|
1318
|
-
]) }, h("zonos-text", { key: '
|
|
1318
|
+
]) }, h("zonos-text", { key: '73081aa1f08f5617bc10fcd57f057abd3efd0c35', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: '4cfd89cca3254564b51f45a4a29d1f8a13bf03d1', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
|
|
1319
1319
|
}
|
|
1320
1320
|
get el() { return getElement(this); }
|
|
1321
1321
|
static get watchers() { return {
|
|
@@ -1425,7 +1425,7 @@ const ZonosDialog = class {
|
|
|
1425
1425
|
const borderStyle = getBorderRadius({
|
|
1426
1426
|
overrideBorderStyle: this.borderStyle,
|
|
1427
1427
|
});
|
|
1428
|
-
return (h(Host, { key: '
|
|
1428
|
+
return (h(Host, { key: '75ec5025b26d1c68daa95198bfe4defa9b4fccbb', class: classes([
|
|
1429
1429
|
'zonos--elements',
|
|
1430
1430
|
this.open && 'open',
|
|
1431
1431
|
this.isLoading && 'is-loading',
|
|
@@ -1437,10 +1437,10 @@ const ZonosDialog = class {
|
|
|
1437
1437
|
'--zonos--height': this.height || 'initial',
|
|
1438
1438
|
'--zonos--min-height': this.minHeight || '500px',
|
|
1439
1439
|
'--zonos--width': this.width,
|
|
1440
|
-
} }, h("div", { key: '
|
|
1440
|
+
} }, h("div", { key: '5d10176ce2b772fb8fd29f43ff45eb8ec0e4f891', class: "zonos--backdrop" }), h("div", { key: '2aa211aebf328b30d69cc32030964c68d9114380', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: 'ae077f398158ca708065bf3f2cc60c36730e16df', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'b11ef43cb4a663495bfd5dfe636df98fb692f2e3', class: "zonos--loading" }, h("zonos-spinner", { key: 'df7b43c923a59ab16d56c56034f19e2ebf367c68', size: 30 }), this.loadingTitle && (h("zonos-text", { key: 'c2a9c49f41272ae535a2dfc3f6c97d91552729a2', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (h("zonos-text", { key: 'c5a4be389ec0c5c8b9e7b126d69f39b334bd9c7c', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (h("div", { key: '21884f1a119c2b1d241b746ae27f9ebe68795b94', class: "zonos--header" }, this.headerText && (h("h3", { key: '77036606a70a57f250facdd1b95726c35807c151', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '93eafa70b68ebbc0be89b6cec54aadba9bdb91ef', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: '182ed04b1a14981aa5b679da8a1a556fcc413137', class: classes([
|
|
1441
1441
|
'zonos--body',
|
|
1442
1442
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
1443
|
-
]) }, h("slot", { key: '
|
|
1443
|
+
]) }, h("slot", { key: '65ad39c50b318b39e585301de2aeea6ef61db487' })), h("slot", { key: 'a60bb6eeee719852350584d6ff983d699f6ae84e', name: "dialog-footer" })))));
|
|
1444
1444
|
}
|
|
1445
1445
|
static get assetsDirs() { return ["assets"]; }
|
|
1446
1446
|
};
|
|
@@ -7176,24 +7176,24 @@ const ZonosStripePhoneInput = class {
|
|
|
7176
7176
|
.filter(Boolean)
|
|
7177
7177
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
7178
7178
|
: [];
|
|
7179
|
-
return (h(Host, { key: '
|
|
7179
|
+
return (h(Host, { key: 'e1bde9efe262f4605448b6ae6f9e18070090e6c8', class: classes([
|
|
7180
7180
|
'zonos--phone-input zonos--elements',
|
|
7181
7181
|
isDark && 'dark',
|
|
7182
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '
|
|
7182
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '17b929a5e37d86964c23f2954bf1aed3ca3e0b4f', class: classes([
|
|
7183
7183
|
'zonos--label-wrapper',
|
|
7184
7184
|
this.disabled && 'disabled',
|
|
7185
7185
|
this.isFocused && 'focused',
|
|
7186
7186
|
hasContent && 'has-content',
|
|
7187
7187
|
this.error && 'has-error',
|
|
7188
7188
|
this.inputLabel && 'has-label',
|
|
7189
|
-
]) }, h("select", { key: '
|
|
7189
|
+
]) }, h("select", { key: '75f827c7fa3bec95a441d75b04f815736f63d075', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
|
|
7190
7190
|
var _a;
|
|
7191
7191
|
return (h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
|
|
7192
|
-
})), h("div", { key: '
|
|
7192
|
+
})), h("div", { key: '7299389121bb37f5444c8feecc349fc7663fd645', class: "zonos--input-group" }, h("div", { key: 'ffd81d520f2ffeeb0473606ffe529704d0539999', class: "zonos--select-wrapper" }, h("div", { key: '66a8c7b1fc41c8ced6ebe2b5d87d93d3fb34283a', class: "zonos--country-select" }, h("div", { key: 'e938804c0e0aa9e52810b8d07cb0d7948c451eb5', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '1883e18a2318bf871e061c744a095dd8e5a905cc', class: "zonos--country-select-selected" }, h("div", { key: 'ae46b163ef58d71398c317ed5ceba1844fc52edc', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'f4d18cf60a089675852f8f0fca82055fa879a7b7', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: '1724ccaef84c39504ee9f2fb364d38c2b979185d', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: 'e5c45c7d4ca3fd5244803f083e6fae502e4253fa', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '9cfb2da1d454c6b9e0a64b4327ce515cf6aa72da', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '8324ec965cf0b637d4d7151728217407307b8707', class: classes([
|
|
7193
7193
|
'zonos--input-container',
|
|
7194
7194
|
this.inputLabel && 'has-label',
|
|
7195
7195
|
hasContent && 'has-content',
|
|
7196
|
-
]) }, h("input", Object.assign({ key: '
|
|
7196
|
+
]) }, h("input", Object.assign({ key: 'eace24d4a50271012b8bb95609842edcc7f8926f' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: '9c1b5249fa2a9041e8c3ed9adbf3de8af4e1f29f', class: "zonos--floated-label" }, h("label", { key: '6535de344f98dc6148ef17ffdcb6354f1e1014e1', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: '0d696d74191e3738ceb94e6adb018589fa4ad9f3', textColor: "red-600" }, this.error))));
|
|
7197
7197
|
}
|
|
7198
7198
|
get el() { return getElement(this); }
|
|
7199
7199
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
2
|
import { t as throttle_1 } from './throttle-f09d0659.js';
|
|
3
|
-
import { b as stripeStore, t as trackConversionEvent, U as extractName, H as stripeStoreOnChange, r as stripeStorePrefetchLandedCost, d as cartStore } from './cart-
|
|
4
|
-
import { s as storageStore, z as getFallbackDefaultCountryCode, t as translate, y as storageStoreOnChange, l as localizationStore } from './localization-
|
|
3
|
+
import { b as stripeStore, t as trackConversionEvent, U as extractName, H as stripeStoreOnChange, r as stripeStorePrefetchLandedCost, d as cartStore } from './cart-23e29950.js';
|
|
4
|
+
import { s as storageStore, z as getFallbackDefaultCountryCode, t as translate, y as storageStoreOnChange, l as localizationStore } from './localization-17546792.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
6
6
|
import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
|
|
7
7
|
import { a as shouldRenderTaxIdInput, s as shouldRenderShortAddressCodeInput } from './shouldRenderTaxIdInput-2572bf77.js';
|
|
@@ -354,11 +354,11 @@ const ZonosAddress = class {
|
|
|
354
354
|
this.isAddressFilled = true;
|
|
355
355
|
}
|
|
356
356
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
357
|
-
return (h(Host, { key: '
|
|
357
|
+
return (h(Host, { key: '9e66c8b7ba80d28aa430d6f5397d5eca16596e1a', class: classes([
|
|
358
358
|
'zonos--address',
|
|
359
359
|
'zonos--elements',
|
|
360
360
|
`zonos--${this.type}-address`,
|
|
361
|
-
]) }, this.titleText && (h("zonos-text", { key: '
|
|
361
|
+
]) }, this.titleText && (h("zonos-text", { key: 'a731814dbada28f16699efe8bc23a18c7b6e04ff', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: '138f499157a6628970042d14d89c3420936a5811', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), h("div", { key: '51451d40580d128e3c38ab5f3f2cd471c21aaf01', class: "zonos--address-component" })));
|
|
362
362
|
}
|
|
363
363
|
get el() { return getElement(this); }
|
|
364
364
|
static get watchers() { return {
|
|
@@ -490,13 +490,13 @@ const ZonosConfirmDialog = class {
|
|
|
490
490
|
const borderStyle = getBorderRadius();
|
|
491
491
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
492
492
|
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
493
|
-
return (h(Host, { key: '
|
|
493
|
+
return (h(Host, { key: 'a91852d7fabd934497c5a87ad42b206dcee15ae7', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
494
494
|
'--zonos--border-radius': borderStyle,
|
|
495
495
|
'--zonos--dialog-width': `${this.dialogWidth}px`,
|
|
496
496
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
497
|
-
} }, h("div", { key: '
|
|
497
|
+
} }, h("div", { key: '3074b85548fd1dc5023611423c52fbbd77a3e959', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'f326b54e65bddf562d4b9649b8964831d0545db6', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '0ab0ae9fecdca87acb7adc33c14408978a40a009', class: "zonos--confirm-dialog", onBlur: () => {
|
|
498
498
|
this.focusDialog();
|
|
499
|
-
} }, h("div", { key: '
|
|
499
|
+
} }, h("div", { key: 'd168c39fa5a31a107cbe4ff325cf4184ee8b2ad3', class: "wrapper" }, h("div", { key: 'c7cdca4f45e22e36393616fa3970556477902ead', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '1dcf75c8657a414662271a4c93b0698bd174b010', class: "content" }, h("div", { key: '191344284e3173b22a37c3383c49cb51e0fb54a5', class: "title" }, h("zonos-text", { key: '539b24aa36afa5a6fe046ac37eda57ccc1170124', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '53d54141bdcc1f0df661df450f5393e657410025', class: "subtitle" }, h("zonos-text", { key: '0a8b74eceb87355ad6869e1338a708bb0182cab8', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '68fd8147f7834074392be28f0053cf2f802faf69', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: 'a8be0abcfc980ec720d64ec0dc5cdacf5d19dadb', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: 'c72ea83faa9cd24c5e6f5894045e07d4639a5fc4', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
500
500
|
}
|
|
501
501
|
static get assetsDirs() { return ["assets"]; }
|
|
502
502
|
get el() { return getElement(this); }
|
|
@@ -730,7 +730,7 @@ const ZonosLoadingOverlay = class {
|
|
|
730
730
|
this.size = 40;
|
|
731
731
|
}
|
|
732
732
|
render() {
|
|
733
|
-
return (h(Host, { key: '
|
|
733
|
+
return (h(Host, { key: 'e9d9db9623f268cc66c39130607819fa8abede22', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: 'e766d339b90425e7379de4b773ae8f1da98992cb', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: '32a61d38a106367bd4d54cffd8aba2e6c4b1e933', size: this.size, spinnerColor: this.spinnerColor }))));
|
|
734
734
|
}
|
|
735
735
|
};
|
|
736
736
|
ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
+
import { b as airwallexStore, c as collectStore, f as airwallexStoreInitSdk, l as createElement, m as airwallexStoreGetLocale, n as airwallexStoreOnChange } from './collect-a235299d.js';
|
|
3
|
+
import { d as cartStore } from './cart-23e29950.js';
|
|
4
|
+
import { e as localizationStoreOnChange, t as translate, l as localizationStore } from './localization-17546792.js';
|
|
5
|
+
import { z as zonosStore } from './zonosStore-8e19daff.js';
|
|
6
|
+
import { l as log } from './VarianceTest-572cecf5.js';
|
|
7
|
+
import { l as logError } from './handleFetch-a844cac1.js';
|
|
8
|
+
import './isDarkColor-566f04c5.js';
|
|
9
|
+
import './getBorderRadius-d23f47a6.js';
|
|
10
|
+
|
|
11
|
+
const zonosAirwallexPaymentCss = ".sc-zonos-airwallex-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-airwallex-payment-h *.sc-zonos-airwallex-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-airwallex-payment-h img.sc-zonos-airwallex-payment{max-width:100%}.sc-zonos-airwallex-payment-h dl.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h dd.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h1.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h2.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h3.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h4.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h5.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h6.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h hr.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h figure.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h p.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h pre.sc-zonos-airwallex-payment{margin:0}.sc-zonos-airwallex-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-airwallex-payment-h{display:block}.sc-zonos-airwallex-payment-h .zonos--payment-error-banner.sc-zonos-airwallex-payment{margin-bottom:16px}.sc-zonos-airwallex-payment-h .zonos--airwallex-payment-component.sc-zonos-airwallex-payment{margin-bottom:4px;min-height:40px}";
|
|
12
|
+
const ZonosAirwallexPaymentStyle0 = zonosAirwallexPaymentCss;
|
|
13
|
+
|
|
14
|
+
const ZonosAirwallexPayment = class {
|
|
15
|
+
constructor(hostRef) {
|
|
16
|
+
registerInstance(this, hostRef);
|
|
17
|
+
this.airwallexPaymentSuccess = createEvent(this, "airwallexPaymentSuccess", 7);
|
|
18
|
+
this.airwallexPaymentError = createEvent(this, "airwallexPaymentError", 7);
|
|
19
|
+
this.element = null;
|
|
20
|
+
this.storeUnsubscribeList = [];
|
|
21
|
+
/** Client secret currently being mounted, to avoid overlapping mounts. */
|
|
22
|
+
this.mountingClientSecret = null;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the SDK failed to load or the element failed to mount.
|
|
25
|
+
*/
|
|
26
|
+
this.hasError = false;
|
|
27
|
+
/**
|
|
28
|
+
* Mirror of the store client secret so the element (re)mounts once it becomes
|
|
29
|
+
* available. The client secret is fetched asynchronously and is usually not yet
|
|
30
|
+
* set when this component first mounts.
|
|
31
|
+
*/
|
|
32
|
+
this.clientSecret = airwallexStore.clientSecret;
|
|
33
|
+
/**
|
|
34
|
+
* Build the full set of drop-in options. The SDK's `element.update` requires the
|
|
35
|
+
* first argument to contain the most up-to-date version of everything that was
|
|
36
|
+
* originally passed to `createElement`, so both calls share this.
|
|
37
|
+
*/
|
|
38
|
+
this.getDropInOptions = (clientSecret) => {
|
|
39
|
+
var _a;
|
|
40
|
+
// Authorize (hold) when a capture delay is configured, otherwise capture
|
|
41
|
+
// immediately — mirrors the PayPal intent logic in paypalInitScript.
|
|
42
|
+
const hasAuthorizeSettingSet = zonosStore.checkoutSettings.captureDelay &&
|
|
43
|
+
zonosStore.checkoutSettings.captureDelay > 0;
|
|
44
|
+
return {
|
|
45
|
+
autoCapture: !hasAuthorizeSettingSet,
|
|
46
|
+
client_secret: clientSecret,
|
|
47
|
+
// The shopper's ship-to country (from the collect shipping info).
|
|
48
|
+
country_code: ((_a = collectStore.shippingAddress) === null || _a === void 0 ? void 0 : _a.location.countryCode) || undefined,
|
|
49
|
+
currency: airwallexStore.currency || cartStore.currency,
|
|
50
|
+
intent_id: airwallexStore.paymentIntentId || undefined,
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
this.mountPaymentElement = async () => {
|
|
54
|
+
var _a;
|
|
55
|
+
const clientSecret = this.clientSecret;
|
|
56
|
+
// The client secret arrives asynchronously — wait for it instead of erroring.
|
|
57
|
+
if (!clientSecret) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
// Skip if we are already mounting (or have mounted) this exact client secret.
|
|
61
|
+
if (this.mountingClientSecret === clientSecret) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
this.mountingClientSecret = clientSecret;
|
|
65
|
+
const isReady = await airwallexStoreInitSdk();
|
|
66
|
+
if (!isReady) {
|
|
67
|
+
this.hasError = true;
|
|
68
|
+
this.mountingClientSecret = null;
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const container = this.el.querySelector('.zonos--airwallex-payment-component');
|
|
72
|
+
if (!container) {
|
|
73
|
+
logError('Cannot find container element for Airwallex payment element');
|
|
74
|
+
this.hasError = true;
|
|
75
|
+
this.mountingClientSecret = null;
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
try {
|
|
79
|
+
// Tear down any previously mounted element before remounting.
|
|
80
|
+
(_a = this.element) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
81
|
+
this.element = null;
|
|
82
|
+
const element = await createElement('dropIn', this.getDropInOptions(clientSecret));
|
|
83
|
+
if (!element) {
|
|
84
|
+
logError('Failed to create Airwallex payment element');
|
|
85
|
+
this.hasError = true;
|
|
86
|
+
this.mountingClientSecret = null;
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
element.mount(container);
|
|
90
|
+
element.on('success', () => {
|
|
91
|
+
log('Airwallex payment succeeded');
|
|
92
|
+
airwallexStore.hasPaymentError = false;
|
|
93
|
+
// The drop-in confirmed the payment — the finish step trusts this over a
|
|
94
|
+
// possibly-lagging payment intent status lookup.
|
|
95
|
+
airwallexStore.paymentConfirmed = true;
|
|
96
|
+
this.airwallexPaymentSuccess.emit();
|
|
97
|
+
});
|
|
98
|
+
element.on('error', payload => {
|
|
99
|
+
logError(payload);
|
|
100
|
+
airwallexStore.hasPaymentError = true;
|
|
101
|
+
this.airwallexPaymentError.emit();
|
|
102
|
+
});
|
|
103
|
+
this.element = element;
|
|
104
|
+
this.hasError = false;
|
|
105
|
+
}
|
|
106
|
+
catch (err) {
|
|
107
|
+
logError(err);
|
|
108
|
+
this.hasError = true;
|
|
109
|
+
this.mountingClientSecret = null;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Update the mounted element's locale whenever the shopper changes language.
|
|
114
|
+
*/
|
|
115
|
+
this.localeChangeHandler = () => {
|
|
116
|
+
if (!this.element || !this.clientSecret) {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
// `update`'s first argument must carry the most up-to-date version of all the
|
|
120
|
+
// options originally passed to `createElement`.
|
|
121
|
+
this.element.update(this.getDropInOptions(this.clientSecret), {
|
|
122
|
+
locale: airwallexStoreGetLocale(localizationStore.selectedLocale),
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* (Re)mount the payment element whenever the client secret becomes available
|
|
128
|
+
* or changes.
|
|
129
|
+
*/
|
|
130
|
+
clientSecretWatcher() {
|
|
131
|
+
void this.mountPaymentElement();
|
|
132
|
+
}
|
|
133
|
+
componentWillLoad() {
|
|
134
|
+
this.storeUnsubscribeList = [
|
|
135
|
+
// Keep the local state in sync with the store so the @Watch above fires
|
|
136
|
+
// once the asynchronously-fetched client secret becomes available.
|
|
137
|
+
airwallexStoreOnChange('clientSecret', clientSecret => {
|
|
138
|
+
this.clientSecret = clientSecret;
|
|
139
|
+
}),
|
|
140
|
+
// Keep the Airwallex element locale in sync with the selected language.
|
|
141
|
+
localizationStoreOnChange('selectedLocale', this.localeChangeHandler),
|
|
142
|
+
];
|
|
143
|
+
}
|
|
144
|
+
componentDidLoad() {
|
|
145
|
+
// If the client secret is already available on first render, mount now —
|
|
146
|
+
// @Watch does not fire for the initial value.
|
|
147
|
+
void this.mountPaymentElement();
|
|
148
|
+
}
|
|
149
|
+
disconnectedCallback() {
|
|
150
|
+
var _a;
|
|
151
|
+
// unsubscribe from store subscriptions
|
|
152
|
+
this.storeUnsubscribeList.forEach(subscription => subscription());
|
|
153
|
+
(_a = this.element) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
154
|
+
this.element = null;
|
|
155
|
+
}
|
|
156
|
+
render() {
|
|
157
|
+
return (h(Host, { key: '3d5f4aaea91533348ae6273757b8af6f17a7ab59', class: "zonos--airwallex-payment zonos--elements" }, this.hasError && (h("zonos-banner", { key: '27fe7775145b9ff4f9b572ee592eb0cdc5f2ef13', class: "zonos--payment-error-banner", intent: "error" }, translate("We couldn't complete your payment. Please verify the payment details and try again."))), h("div", { key: '48a50ebcc6ad1e3b3cbf807ef5d466030995a171', class: "zonos--airwallex-payment-component" })));
|
|
158
|
+
}
|
|
159
|
+
get el() { return getElement(this); }
|
|
160
|
+
static get watchers() { return {
|
|
161
|
+
"clientSecret": ["clientSecretWatcher"]
|
|
162
|
+
}; }
|
|
163
|
+
};
|
|
164
|
+
ZonosAirwallexPayment.style = ZonosAirwallexPaymentStyle0;
|
|
165
|
+
|
|
166
|
+
export { ZonosAirwallexPayment as zonos_airwallex_payment };
|
|
@@ -46,16 +46,16 @@ const ZonosBadge = class {
|
|
|
46
46
|
this.loading = false;
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '91ff0cbf64075ac1cb47691dd114b4205253b8e9', class: classes(['zonos--elements zonos--badge']), style: {
|
|
50
50
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
51
|
-
} }, h("div", { key: '
|
|
51
|
+
} }, h("div", { key: '129b78caecaab54f8eb0dcb42fb2e398c2cfe2e6', class: classes([
|
|
52
52
|
'zonos--badge-content',
|
|
53
53
|
this.badgeColor,
|
|
54
54
|
this.rounded && 'rounded',
|
|
55
55
|
this.iconRight && 'icon-right',
|
|
56
56
|
this.size,
|
|
57
57
|
this.bold && 'bold',
|
|
58
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
58
|
+
]) }, this.icon, h("zonos-text", { key: '69b9ef2d3d15e6753625aea7c96fe492583e50fe', textColor: `${this.badgeColor}-800` }, h("slot", { key: '7237a96503ebdd708a03f3571dc5f68abe6af496' })), this.dismissHandler && (h("zonos-icon", { key: '021350687aa80ccae8c32b2f4b7af5acc4469608', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
ZonosBadge.style = ZonosBadgeStyle0;
|
|
@@ -207,13 +207,13 @@ const ZonosButton = class {
|
|
|
207
207
|
const borderStyle = getBorderRadius({
|
|
208
208
|
overrideBorderStyle: this.borderStyle,
|
|
209
209
|
});
|
|
210
|
-
return (h(Host, { key: '
|
|
210
|
+
return (h(Host, { key: 'd07f698c62e64fe404dc346e17aa4ebb23af635a', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
211
211
|
'--zonos--background-color': backgroundColor,
|
|
212
212
|
'--zonos--border-radius': borderStyle,
|
|
213
213
|
'--zonos--color': color,
|
|
214
214
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
215
215
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
216
|
-
}) }, h("button", Object.assign({ key: '
|
|
216
|
+
}) }, h("button", Object.assign({ key: '721b3b8c4dbc0666de04510c091b7be558a7ede3' }, this.inheritedAttributes, { class: classes([
|
|
217
217
|
this.hasIcon && 'has-icon',
|
|
218
218
|
this.hasContent && 'has-content',
|
|
219
219
|
this.noBackground && 'no-background',
|
|
@@ -228,7 +228,7 @@ const ZonosButton = class {
|
|
|
228
228
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
229
229
|
]), disabled: disabled, style: {
|
|
230
230
|
justifyContent: this.justifyContent,
|
|
231
|
-
} }), this.loading && (h("div", { key: '
|
|
231
|
+
} }), this.loading && (h("div", { key: 'c60e5e9d71ddf3750fbbcb911badca7885710518', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '3c863893cf81663c5a13dfdbd44b27828f01de31', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '7856e2a360552702a19ca58a0de763763c158749', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
232
232
|
}
|
|
233
233
|
static get delegatesFocus() { return true; }
|
|
234
234
|
get ele() { return getElement(this); }
|
|
@@ -2,10 +2,10 @@ import { r as registerInstance, h, a as Host, g as getElement, d as createEvent
|
|
|
2
2
|
import { f as zonosStoreFontFamily } from './zonosStore-8e19daff.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-d23f47a6.js';
|
|
5
|
-
import { b as stripeStore, t as trackConversionEvent } from './cart-
|
|
6
|
-
import { s as storageStore } from './localization-
|
|
5
|
+
import { b as stripeStore, t as trackConversionEvent } from './cart-23e29950.js';
|
|
6
|
+
import { s as storageStore } from './localization-17546792.js';
|
|
7
7
|
import { l as logError } from './handleFetch-a844cac1.js';
|
|
8
|
-
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-
|
|
8
|
+
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-5bc6b0d0.js';
|
|
9
9
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
10
10
|
import './isDarkColor-566f04c5.js';
|
|
11
11
|
import './isContrastColor-fbddacb6.js';
|
|
@@ -35,16 +35,16 @@ const ZonosCard = class {
|
|
|
35
35
|
customRoundRadius: `${this.borderRadius}px`,
|
|
36
36
|
overrideBorderStyle: 'ROUNDED',
|
|
37
37
|
});
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '9abda7f00c442317f63521444b6eeb21f294d2bb', style: {
|
|
39
39
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
40
|
-
} }, h("div", { key: '
|
|
40
|
+
} }, h("div", { key: '2e1f1e4b59ce9ce87c7a22e58f0ae6c5dd0f0388', class: classes(['styled-card']), style: {
|
|
41
41
|
'--zonos--background-color': backgroundColor,
|
|
42
42
|
'--zonos--border-radius': borderRadius,
|
|
43
43
|
padding: this.spacing,
|
|
44
|
-
} }, this.label && (h("header", { key: '
|
|
44
|
+
} }, this.label && (h("header", { key: '215b106d17a37b8eb28e5ae730f0ff5401c02331', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '31363bdd23ac0ad625c6442fcf7110e559fa0201', type: "subheader" }, this.label), h("h-stack", { key: '10b338eaf67a92b84d7a9434f52e4c111a15f561', spacing: 8 }, this.actions))), h("slot", { key: 'afd067cc47d74d109f4fb4768fc8e0dfa4d88e70' }), (this.footerActions || this.footerContent) && (h("footer", { key: '17ee21b433ca723724c74e379b03b9c63a7b53eb', class: "card-footer", style: {
|
|
45
45
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
46
46
|
padding: this.spacing,
|
|
47
|
-
} }, h("div", { key: '
|
|
47
|
+
} }, h("div", { key: 'fd2680f6ba67a7afcb8001ba2d9e0eff49b74675' }, this.footerContent), h("h-stack", { key: 'f7c716b48b470082b5196ddaeac189e476a4c3fd', spacing: 8 }, this.footerActions))))));
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
ZonosCard.style = ZonosCardStyle0;
|
|
@@ -257,7 +257,7 @@ const ZonosPayment = class {
|
|
|
257
257
|
}
|
|
258
258
|
render() {
|
|
259
259
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
260
|
-
return (h(Host, { key: '
|
|
260
|
+
return (h(Host, { key: 'd349d019e557fd0070a9470d3bb81a0e563fea49', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '59429c85323dc6ffb1a5a7bc1f8a825318cc2da7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'a5af87c08e853790ae41f65d9514e35f094f2bf0', class: "zonos--payment-component" }), h("div", { key: '9314981cd377b893c569824068988aa1990b882e', class: "zonos--payment-paypal-container" })));
|
|
261
261
|
}
|
|
262
262
|
get el() { return getElement(this); }
|
|
263
263
|
static get watchers() { return {
|
|
@@ -321,7 +321,7 @@ const ZonosPaypalPayment = class {
|
|
|
321
321
|
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
322
322
|
}
|
|
323
323
|
render() {
|
|
324
|
-
return (h(Host, { key: '
|
|
324
|
+
return (h(Host, { key: '283f26fced92fbc16064967cf6d0cf8e7a8d34d4', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: '31f4639edea489f91bb43c4c00b9019f949acaa4', class: "zonos--payment-paypal-container" })));
|
|
325
325
|
}
|
|
326
326
|
get el() { return getElement(this); }
|
|
327
327
|
};
|