@zonos/elements 1.3.262 → 1.3.264
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-d08c87e2.js → cart-d4486651.js} +4 -4
- package/dist/cjs/{debounce-3e17b4e9.js → debounce-606d1801.js} +1 -1
- package/dist/cjs/{getBorderRadius-db55a464.js → getBorderRadius-a91911e7.js} +1 -1
- package/dist/cjs/{getContrastColor-8ed1cb48.js → getContrastColor-68058615.js} +2 -2
- package/dist/cjs/{hasInclusivePrice-c781c336.js → hasInclusivePrice-40358cb1.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-e64f97c6.js → invoice-600fa2a4.js} +3 -3
- package/dist/cjs/{isCollectMobileTablet-9675485f.js → isCollectMobileTablet-f56566ef.js} +3 -3
- package/dist/cjs/{isContrastColor-6a17f408.js → isContrastColor-a02c4889.js} +1 -1
- package/dist/cjs/{isDarkColor-bfe6d1eb.js → isDarkColor-e317bb06.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-a7fac4b4.js → localization-06cc0379.js} +16 -2
- package/dist/cjs/{paypal-e278f405.js → paypal-52c4a4d4.js} +5 -5
- package/dist/cjs/{placeTestOrder-aefd31e8.js → placeTestOrder-7c88197a.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-a374741a.js → renderCheckoutCurrency-2ebeff09.js} +2 -2
- package/dist/cjs/{submitGtag-4241212b.js → submitGtag-07a3b09e.js} +1 -1
- package/dist/cjs/{throttle-dac93461.js → throttle-8aebac7d.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-a3776bb0.js → updateCheckoutSessionAttributes-a9a97194.js} +1 -1
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +24 -24
- package/dist/cjs/zonos-address_4.cjs.entry.js +13 -13
- package/dist/cjs/zonos-badge.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-card_5.cjs.entry.js +14 -14
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +25 -23
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-checkout.cjs.entry.js +217 -67
- package/dist/cjs/zonos-collapse.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +9 -9
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +27 -25
- package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +15 -13
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -11
- package/dist/cjs/zonos-hello.cjs.entry.js +46 -14
- package/dist/cjs/zonos-input.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +11 -11
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +22 -20
- package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-store-credit.cjs.entry.js +6 -6
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +3 -3
- package/dist/cjs/{zonosStore-1c517e55.js → zonosStore-0662b95f.js} +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +52 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +5 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +5 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +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/zonos-hello.css +23 -15
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +45 -10
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +5 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +4 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +10 -8
- 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/zonosStore.js +1 -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/components/utils/checkout/bigcommerceStorefrontApi.js +1 -1
- package/dist/collection/components/utils/checkout/getBigCommerceCustomerAddresses.js +99 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +15 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +1 -1
- package/dist/collection/components/utils/hello/getHelloWidgetSize.js +22 -0
- package/dist/collection/types/generated/graphql.internal.types.js +67 -1
- package/dist/esm/{cart-c490d252.js → cart-41f41429.js} +4 -4
- package/dist/esm/{debounce-8faafc9f.js → debounce-ab526ca0.js} +1 -1
- package/dist/esm/{getBorderRadius-66de1b16.js → getBorderRadius-98c64be8.js} +1 -1
- package/dist/esm/{getContrastColor-e14f95a7.js → getContrastColor-2340485f.js} +2 -2
- package/dist/esm/{hasInclusivePrice-7a0ce66a.js → hasInclusivePrice-afc0dd6e.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-3ea5715b.js → invoice-e6721745.js} +3 -3
- package/dist/esm/{isCollectMobileTablet-0dcbd45a.js → isCollectMobileTablet-d02bb448.js} +3 -3
- package/dist/esm/{isContrastColor-f9e65e70.js → isContrastColor-6bad285e.js} +1 -1
- package/dist/esm/{isDarkColor-8092a9fb.js → isDarkColor-0a8453e7.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-542dbe20.js → localization-ee06df70.js} +16 -2
- package/dist/esm/{paypal-d8804da5.js → paypal-ac74241f.js} +5 -5
- package/dist/esm/{placeTestOrder-d7001709.js → placeTestOrder-0416d327.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-75f1bba3.js → renderCheckoutCurrency-99da51f5.js} +2 -2
- package/dist/esm/{submitGtag-7f5c5bb5.js → submitGtag-ae9d5d91.js} +1 -1
- package/dist/esm/{throttle-5a66b4fd.js → throttle-882b1f47.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-8f3f932e.js → updateCheckoutSessionAttributes-da7fdd37.js} +1 -1
- package/dist/esm/zonos-address-display_8.entry.js +24 -24
- package/dist/esm/zonos-address_4.entry.js +13 -13
- package/dist/esm/zonos-badge.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +6 -6
- package/dist/esm/zonos-card_5.entry.js +14 -14
- package/dist/esm/zonos-cart-items_12.entry.js +25 -23
- package/dist/esm/zonos-checkbox_2.entry.js +8 -8
- package/dist/esm/zonos-checkout.entry.js +218 -68
- package/dist/esm/zonos-collapse.entry.js +3 -3
- package/dist/esm/zonos-collect-cart-items_3.entry.js +9 -9
- package/dist/esm/zonos-collect-finish_6.entry.js +27 -25
- package/dist/esm/zonos-collect.entry.js +9 -9
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +7 -7
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +15 -13
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +13 -11
- package/dist/esm/zonos-hello.entry.js +46 -14
- package/dist/esm/zonos-input.entry.js +6 -6
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +11 -11
- package/dist/esm/zonos-invoice-finish_5.entry.js +22 -20
- package/dist/esm/zonos-invoice.entry.js +9 -9
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-store-credit.entry.js +6 -6
- package/dist/esm/zonos-stripe-input.entry.js +7 -7
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +3 -3
- package/dist/esm/{zonosStore-f1d45eac.js → zonosStore-9662b071.js} +1 -0
- package/dist/esm-es5/{cart-c490d252.js → cart-41f41429.js} +1 -1
- package/dist/esm-es5/{debounce-8faafc9f.js → debounce-ab526ca0.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-66de1b16.js → getBorderRadius-98c64be8.js} +1 -1
- package/dist/esm-es5/{getContrastColor-e14f95a7.js → getContrastColor-2340485f.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-7a0ce66a.js → hasInclusivePrice-afc0dd6e.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-3ea5715b.js → invoice-e6721745.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-0dcbd45a.js → isCollectMobileTablet-d02bb448.js} +1 -1
- package/dist/esm-es5/{isContrastColor-f9e65e70.js → isContrastColor-6bad285e.js} +1 -1
- package/dist/esm-es5/{isDarkColor-8092a9fb.js → isDarkColor-0a8453e7.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-542dbe20.js → localization-ee06df70.js} +1 -1
- package/dist/esm-es5/{paypal-d8804da5.js → paypal-ac74241f.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-d7001709.js → placeTestOrder-0416d327.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-75f1bba3.js → renderCheckoutCurrency-99da51f5.js} +1 -1
- package/dist/esm-es5/{submitGtag-7f5c5bb5.js → submitGtag-ae9d5d91.js} +1 -1
- package/dist/esm-es5/{throttle-5a66b4fd.js → throttle-882b1f47.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-8f3f932e.js → updateCheckoutSessionAttributes-da7fdd37.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-f1d45eac.js → zonosStore-9662b071.js} +1 -1
- package/dist/scripts/index.d.ts +31 -15
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +9 -0
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +8 -1
- package/dist/types/components/utils/checkout/bigcommerceStorefrontApi.d.ts +22 -11
- package/dist/types/components/utils/checkout/getBigCommerceCustomerAddresses.d.ts +26 -0
- package/dist/types/components/utils/hello/getHelloWidgetSize.d.ts +15 -0
- package/dist/types/components.d.ts +10 -2
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +8 -7
- package/dist/types/types/generated/graphql.internal.types.d.ts +100 -20
- package/dist/types/types/generated/graphql.internal.types.ts +118 -20
- package/dist/types/types/hello/HelloConfig.d.ts +5 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-53fe581b.system.js → p-0207c91e.system.js} +1 -1
- package/dist/zonos-elements/{p-9262a57c.system.entry.js → p-0529a06b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d7a9be55.system.js → p-076ca381.system.js} +1 -1
- package/dist/zonos-elements/{p-5a79e1f4.entry.js → p-07cdff18.entry.js} +1 -1
- package/dist/zonos-elements/{p-5db00bfa.system.entry.js → p-0914b8a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-155b4425.entry.js → p-0b4ba025.entry.js} +1 -1
- package/dist/zonos-elements/{p-17476a30.system.entry.js → p-0f9a04fe.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-72adb40d.js → p-14ce8e3a.js} +1 -1
- package/dist/zonos-elements/{p-7df3e44b.system.entry.js → p-15f70aae.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b1c76c38.system.entry.js → p-16948eea.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-43a6e469.system.js → p-1bf9a1b9.system.js} +1 -1
- package/dist/zonos-elements/{p-e749fb81.entry.js → p-1cc651e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-a3020bc9.entry.js → p-1ed2827f.entry.js} +1 -1
- package/dist/zonos-elements/p-20e0c24e.entry.js +1 -0
- package/dist/zonos-elements/{p-248bdea2.system.js → p-24aae506.system.js} +1 -1
- package/dist/zonos-elements/{p-f7d24382.system.entry.js → p-2555ba6b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3deb91cb.entry.js → p-258c0551.entry.js} +1 -1
- package/dist/zonos-elements/{p-f00a56be.system.entry.js → p-274a7c0e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fb87172c.entry.js → p-283ffaad.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-aa74b61a.system.entry.js → p-2c027b67.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2fc253b3.js +1 -0
- package/dist/zonos-elements/{p-00bd7e5d.entry.js → p-32ecece3.entry.js} +1 -1
- package/dist/zonos-elements/p-349bdc03.system.entry.js +1 -0
- package/dist/zonos-elements/{p-80e7cab5.entry.js → p-34dc7755.entry.js} +1 -1
- package/dist/zonos-elements/p-367a72bc.js +1 -0
- package/dist/zonos-elements/{p-15ef7644.system.js → p-3689821f.system.js} +1 -1
- package/dist/zonos-elements/{p-a75b8ad7.js → p-37f47658.js} +1 -1
- package/dist/zonos-elements/{p-4a227683.system.entry.js → p-3a23ec5f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3bc1adb7.entry.js +1 -0
- package/dist/zonos-elements/p-41f2e301.entry.js +1 -0
- package/dist/zonos-elements/{p-b5223840.js → p-4220556e.js} +1 -1
- package/dist/zonos-elements/{p-072c5e07.system.entry.js → p-42518502.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4980facb.js +1 -0
- package/dist/zonos-elements/{p-5dd78b4b.js → p-4c89d04a.js} +1 -1
- package/dist/zonos-elements/{p-27f01d76.entry.js → p-52077d7c.entry.js} +1 -1
- package/dist/zonos-elements/p-551dd2e0.js +1 -0
- package/dist/zonos-elements/{p-b2cd18b4.system.entry.js → p-5678c044.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ed827ca3.entry.js → p-59aa5785.entry.js} +1 -1
- package/dist/zonos-elements/{p-e25e0b4b.system.js → p-5e6f85f0.system.js} +1 -1
- package/dist/zonos-elements/{p-cdbb50cf.entry.js → p-665bfd4f.entry.js} +1 -1
- package/dist/zonos-elements/{p-4cee62fb.entry.js → p-66edcaa4.entry.js} +1 -1
- package/dist/zonos-elements/{p-cab6bd98.system.js → p-6a195559.system.js} +1 -1
- package/dist/zonos-elements/p-6b9ad020.entry.js +1 -0
- package/dist/zonos-elements/p-6d81901a.js +1 -0
- package/dist/zonos-elements/{p-3ff736f7.system.entry.js → p-7003d093.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-196423ad.system.js → p-721069c3.system.js} +1 -1
- package/dist/zonos-elements/{p-14f156c6.system.entry.js → p-72833da8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f2909fb8.entry.js → p-7564d199.entry.js} +1 -1
- package/dist/zonos-elements/{p-e76dc266.system.entry.js → p-79f3c227.system.entry.js} +1 -1
- package/dist/zonos-elements/p-84c7cae6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-e55bc187.entry.js → p-8571f3ce.entry.js} +1 -1
- package/dist/zonos-elements/p-86ed51fd.entry.js +1 -0
- package/dist/zonos-elements/{p-d50fef06.system.entry.js → p-88596f27.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8a01157e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9e761130.entry.js → p-8a21ed2d.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf4d2299.system.entry.js → p-90a19f4c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-947f5092.js → p-90d19cb6.js} +1 -1
- package/dist/zonos-elements/{p-06ef4d79.entry.js → p-9288878f.entry.js} +1 -1
- package/dist/zonos-elements/{p-ef12af4b.entry.js → p-92a14180.entry.js} +1 -1
- package/dist/zonos-elements/{p-dee6adff.system.js → p-98c53c77.system.js} +1 -1
- package/dist/zonos-elements/{p-8d0bca3a.system.entry.js → p-9da832b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a8bb461c.js → p-9eff0691.js} +1 -1
- package/dist/zonos-elements/{p-66934a78.system.entry.js → p-9f18348f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9f7e7148.system.js +1 -0
- package/dist/zonos-elements/{p-e36e724b.system.entry.js → p-a2e9b2aa.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a661dd45.system.entry.js → p-a5f5993f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a901d002.js +1 -0
- package/dist/zonos-elements/{p-2f924331.js → p-ab0b23f2.js} +1 -1
- package/dist/zonos-elements/{p-e673a4d9.entry.js → p-ab73cbed.entry.js} +1 -1
- package/dist/zonos-elements/p-b0526805.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f0046c48.entry.js → p-b13d56b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b7beb44.system.js → p-b32cd0c5.system.js} +1 -1
- package/dist/zonos-elements/{p-ade15fd2.entry.js → p-b4b23475.entry.js} +1 -1
- package/dist/zonos-elements/{p-0699931c.system.js → p-b65bca4b.system.js} +1 -1
- package/dist/zonos-elements/p-ba7cf5e8.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c7ecef98.system.entry.js → p-ba9e2612.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9de27162.system.entry.js → p-c0fffa75.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c52bc5ad.system.entry.js +1 -0
- package/dist/zonos-elements/p-c9a1f774.js +1 -0
- package/dist/zonos-elements/{p-a1142a95.entry.js → p-cc481c69.entry.js} +1 -1
- package/dist/zonos-elements/p-ccc4f69b.entry.js +1 -0
- package/dist/zonos-elements/{p-20263609.system.js → p-ce855245.system.js} +1 -1
- package/dist/zonos-elements/{p-4d776228.entry.js → p-d1ff24f5.entry.js} +1 -1
- package/dist/zonos-elements/{p-f6922df5.js → p-d28be518.js} +1 -1
- package/dist/zonos-elements/p-d6b49830.entry.js +1 -0
- package/dist/zonos-elements/{p-5beab541.js → p-db3b101a.js} +1 -1
- package/dist/zonos-elements/{p-0ec4e307.system.js → p-db607fc3.system.js} +1 -1
- package/dist/zonos-elements/{p-a98b8b68.system.js → p-dea75665.system.js} +2 -2
- package/dist/zonos-elements/p-e3292be8.system.js +1 -0
- package/dist/zonos-elements/{p-b47fcd8c.system.entry.js → p-e3bc3917.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d983d472.entry.js → p-e5582c35.entry.js} +1 -1
- package/dist/zonos-elements/p-e5dfccd8.system.js +1 -0
- package/dist/zonos-elements/{p-7dbac3ae.system.entry.js → p-e6cc5a25.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-313b87f3.system.entry.js → p-e98e4c0b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-61be7d98.system.js → p-eb99a625.system.js} +1 -1
- package/dist/zonos-elements/{p-ed9385f4.js → p-f3cfd8fa.js} +1 -1
- package/dist/zonos-elements/{p-c263f95f.entry.js → p-f546bd7d.entry.js} +1 -1
- package/dist/zonos-elements/{p-55742c52.entry.js → p-f9c715ad.entry.js} +1 -1
- package/dist/zonos-elements/{p-50a15e3d.system.entry.js → p-fb684748.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-022ddd4a.system.entry.js +0 -1
- package/dist/zonos-elements/p-09307a03.js +0 -1
- package/dist/zonos-elements/p-1916c2b0.entry.js +0 -1
- package/dist/zonos-elements/p-34fc45e5.entry.js +0 -1
- package/dist/zonos-elements/p-56c11359.system.entry.js +0 -1
- package/dist/zonos-elements/p-7158a18b.js +0 -1
- package/dist/zonos-elements/p-721fadd5.js +0 -1
- package/dist/zonos-elements/p-7237f43b.system.entry.js +0 -1
- package/dist/zonos-elements/p-72a181b5.entry.js +0 -1
- package/dist/zonos-elements/p-75a27c68.entry.js +0 -1
- package/dist/zonos-elements/p-7c5c5318.js +0 -1
- package/dist/zonos-elements/p-7d9bbdc8.js +0 -1
- package/dist/zonos-elements/p-838e335c.entry.js +0 -1
- package/dist/zonos-elements/p-8bce79f4.system.js +0 -1
- package/dist/zonos-elements/p-944bf0e7.js +0 -1
- package/dist/zonos-elements/p-a2b3c1ef.system.entry.js +0 -1
- package/dist/zonos-elements/p-b21cf539.system.entry.js +0 -1
- package/dist/zonos-elements/p-ca411d97.entry.js +0 -1
- package/dist/zonos-elements/p-cd563d65.system.js +0 -1
- package/dist/zonos-elements/p-cdf99051.entry.js +0 -1
- package/dist/zonos-elements/p-dc4e867e.system.entry.js +0 -1
- package/dist/zonos-elements/p-e6726a50.system.js +0 -1
- package/dist/zonos-elements/p-f68ce554.js +0 -1
|
@@ -13,12 +13,14 @@ import { selectVarianceTest } from "../../utils/api/selectVarianceTest";
|
|
|
13
13
|
import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
|
|
14
14
|
import { updateCheckoutSessionAttributes } from "../../utils/api/updateCheckoutSessionAttributes";
|
|
15
15
|
import { buildCartUrl } from "../../utils/buildCartUrl";
|
|
16
|
+
import { fetchBigCommerceCheckout, fetchCheckoutId, isBigCommerceCustomerLoggedIn, } from "../../utils/checkout/bigcommerceStorefrontApi";
|
|
16
17
|
import { BIGCOMMERCE_INTERNATIONAL_CHECKOUT_FLAG } from "../../utils/checkout/buildBigcommerceLoginUrl";
|
|
17
18
|
import { buildBigcommerceRedirectUrl } from "../../utils/checkout/buildBigcommerceRedirectUrl";
|
|
18
19
|
import { checkBigCommerceBypassCustomerGroup, initBigCommerceBypassCheck, } from "../../utils/checkout/checkBigCommerceBypassCustomerGroup";
|
|
19
20
|
import { checkBigCommerceForceLogin, initBigCommerceForceLoginCheck, } from "../../utils/checkout/checkBigCommerceForceLogin";
|
|
20
21
|
import { fixBigCommerceLoginCreateAccountLink } from "../../utils/checkout/fixBigCommerceLoginCreateAccountLink";
|
|
21
22
|
import { getAbandonedCartRenewTokenValue } from "../../utils/checkout/getAbandonedCartRenewTokenValue";
|
|
23
|
+
import { getBigCommerceCustomerAddresses } from "../../utils/checkout/getBigCommerceCustomerAddresses";
|
|
22
24
|
import { getIsStagingMode } from "../../utils/checkout/getIsStagingMode";
|
|
23
25
|
import { getIsTestMode } from "../../utils/checkout/getIsTestMode";
|
|
24
26
|
import { isCheckoutMobile } from "../../utils/checkout/isCheckoutMobile";
|
|
@@ -389,6 +391,51 @@ export class ZonosCheckout {
|
|
|
389
391
|
settlementAmount: total,
|
|
390
392
|
};
|
|
391
393
|
};
|
|
394
|
+
/**
|
|
395
|
+
* For BigCommerce stores with a logged-in shopper, seed
|
|
396
|
+
* `defaultCustomerProfileAddress` from the BC Storefront API so the
|
|
397
|
+
* `zonos-address` picker prefills the shopper's saved address book without
|
|
398
|
+
* forcing them to retype anything. Skips when an address has already been
|
|
399
|
+
* prefilled by another path (Stripe customer profile, merchant-provided
|
|
400
|
+
* `defaultAddress`, or the BC redirect's session-storage handoff).
|
|
401
|
+
*/
|
|
402
|
+
this.prefillBigCommerceCustomerAddresses = async () => {
|
|
403
|
+
if (!window.Zonos.isBigCommerce) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
if (this.defaultCustomerProfileAddress.length) {
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
const hasManualDefault = (Array.isArray(this.defaultAddress) && this.defaultAddress.length > 0) ||
|
|
410
|
+
(!Array.isArray(this.defaultAddress) &&
|
|
411
|
+
typeof this.defaultAddress === 'object' &&
|
|
412
|
+
this.defaultAddress !== null);
|
|
413
|
+
if (hasManualDefault) {
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
416
|
+
const checkoutId = await fetchCheckoutId();
|
|
417
|
+
if (!checkoutId) {
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
const checkout = await fetchBigCommerceCheckout(checkoutId);
|
|
421
|
+
if (!isBigCommerceCustomerLoggedIn(checkout)) {
|
|
422
|
+
return;
|
|
423
|
+
}
|
|
424
|
+
const addresses = getBigCommerceCustomerAddresses(checkout, {
|
|
425
|
+
isShippable: countryCode => isShippableCountry(false, countryCode),
|
|
426
|
+
selectedCountryCode: localizationStore.selectedCountryCode || undefined,
|
|
427
|
+
});
|
|
428
|
+
if (!addresses.length) {
|
|
429
|
+
return;
|
|
430
|
+
}
|
|
431
|
+
// Re-check after the awaits — another prefill path may have populated state
|
|
432
|
+
// while we were waiting on the network.
|
|
433
|
+
if (this.defaultCustomerProfileAddress.length) {
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
this.defaultCustomerProfileAddress = addresses;
|
|
437
|
+
log(`Prefilled ${String(addresses.length)} BigCommerce customer address(es) for logged-in shopper`, 'info');
|
|
438
|
+
};
|
|
392
439
|
this.getDefaultAddress = () => {
|
|
393
440
|
// If checkout customer is authenticated, use the address from the customer profile
|
|
394
441
|
if (this.defaultCustomerProfileAddress.length) {
|
|
@@ -1077,6 +1124,11 @@ export class ZonosCheckout {
|
|
|
1077
1124
|
// resume flag, auto-open the international checkout. Strip the flag
|
|
1078
1125
|
// from the URL so a refresh doesn't keep re-triggering the dialog.
|
|
1079
1126
|
this.handleBigcommerceInternationalResumeFlag();
|
|
1127
|
+
// For BigCommerce + logged-in shopper, prefetch the saved address book
|
|
1128
|
+
// (`customer.addresses` include) so the international checkout's address
|
|
1129
|
+
// picker is populated by the time the shopper opens it. Fire-and-forget —
|
|
1130
|
+
// the prefill itself guards against overwriting other prefill sources.
|
|
1131
|
+
void this.prefillBigCommerceCustomerAddresses();
|
|
1080
1132
|
// check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
|
|
1081
1133
|
watchImmediateBigcommerceDomesticCheckoutRedirect({
|
|
1082
1134
|
domesticRedirectedBtnSelector: domesticRedirectedBtnSelector,
|
|
@@ -8,7 +8,7 @@ export class ZonosCollectCartItems {
|
|
|
8
8
|
render() {
|
|
9
9
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
10
10
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'ccad7b37a4f0d00d679dfdecb98fa15c2600aea2', class: "zonos--collect-cart-items zonos--elements" }, h("table", { key: '0464336c854621f6f2b31b2fa6ce93daa152e607', class: "zonos--cart-table" }, h("tbody", { key: 'a32edcb6ed81d0117fb96f93c9e4fea5d1971abe' }, nonRestrictedItems.map(item => {
|
|
12
12
|
const itemImg = item.imageUrl;
|
|
13
13
|
const cleanedItemNames = cleanHtmlMarkdown(item.name);
|
|
14
14
|
return (h("tr", { class: "zonos--collect-cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
|
|
@@ -260,11 +260,11 @@ export class ZonosCollectFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: 'ebc550d41d82330609ce842578fb9414397f11d2', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: 'e63176b8eb34a1c9bac491cc653c1108e085e77e', class: "zonos--finish-details" }, h("div", { key: 'abad1b8c765417e3d1cb4eb5f97c2713bc780517', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '00924614cb5e3553bd572008a7e13ecd7c516272', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'e39986d7d0f739a7ea221546f3f06aa5327ef824', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'b4894f5156a213413e58484fe465905e1c5e48d4', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '8770f7a408b8b9862a2ef5ac4fa02a6caae6183a', class: "zonos--button-container" }, h("zonos-button", { key: '3bebe519d938bccb40c65c668fa58088cfeff47f', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|
|
@@ -80,6 +80,11 @@
|
|
|
80
80
|
gap: 4px;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
:host .zonos--collect-footer .zonos--collect-locale-wrapper .zonos--collect-locale-label {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
gap: 4px;
|
|
87
|
+
}
|
|
83
88
|
:host .zonos--collect-footer .zonos--collect-language-dialog {
|
|
84
89
|
position: absolute;
|
|
85
90
|
bottom: 36px;
|
|
@@ -4,6 +4,8 @@ import { isCollectMobile, isCollectTablet, } from "../../../utils/checkout/isCol
|
|
|
4
4
|
import { classes } from "../../../utils/classes";
|
|
5
5
|
import { languages } from "../../../../types/ILanguage";
|
|
6
6
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
7
|
+
import ChevronDownIcon from "./assets/chevronDownIcon.svg";
|
|
8
|
+
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
7
9
|
import Globe from "./assets/globe.svg";
|
|
8
10
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
9
11
|
import ZonosWordmark from "./assets/zonosWordmark.svg";
|
|
@@ -44,15 +46,15 @@ export class ZonosCollectFooter {
|
|
|
44
46
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
45
47
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
46
48
|
const colorDesktop = 'gray-1000';
|
|
47
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '2650da0d6942ec1389d65316d4f387b205eb3d23', class: classes([
|
|
48
50
|
'zonos--elements',
|
|
49
51
|
this.isMobile && 'mobile',
|
|
50
52
|
this.isTablet && 'tablet',
|
|
51
|
-
]) }, h("div", { key: '
|
|
53
|
+
]) }, h("div", { key: '711017e883a7c88de6a8c4d2761d969045fa7511', class: "zonos--collect-footer" }, h("div", { key: '3eb3e89a254e3dba1cbd0a4dca0e257f0f7a64f7', class: "zonos--collect-locale-wrapper" }, h("zonos-button", { key: '2615195358247954888d47aa01b873c2e1ff738d', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '90d0c4ca757c3825865cf82b9991a13d2972254d', class: "zonos--collect-locale-label" }, languageLabel, h("zonos-icon", { key: '6badf11c60712883ee1ed037a8ddb955a7675d53', "aria-hidden": "true", class: "zonos--collect-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: 'e8b45be9f457a57482da8ed95193ca2c36525525', class: classes([
|
|
52
54
|
'zonos--collect-language-dialog',
|
|
53
55
|
this.showLanguageDialog &&
|
|
54
56
|
'zonos--collect-language-dialog-open',
|
|
55
|
-
]) }, h("zonos-language-select", { key: '
|
|
57
|
+
]) }, h("zonos-language-select", { key: 'a0a9bc9fca4df158e615ae387a5be2598a7b9f36', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '8e4743edc609ac041cb283a2a4864efcbda0a86e', class: "zonos--collect-footer-icon-wrapper" }, h("div", { key: 'd1119f22e17b80d015198c2803657c0280939ec7', class: "zonos--collect-footer-logo" }, h("zonos-text", { key: '4faac90e9cb3469ffeb743155345232de8e3730a', textColor: colorDesktop }, "Powered by"), h("a", { key: '63b6ad613f96d8bd6f88b931c0c3833d08744479', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '09d6e961e27583a37b319be89fd0f80dbb9e96bd', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'b78088f8ab0cdc6b8dba6f1e0012e4c96407dd92', class: "dot" }), h("a", { key: '5ada46bc9f2fa3b52e235b3ec0231423e15fb5f5', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'b22d50bd1aaf5fddf8e1795f68b85c0e4f0125e8', textColor: colorDesktop }, "Privacy policy"))))));
|
|
56
58
|
}
|
|
57
59
|
static get is() { return "zonos-collect-footer"; }
|
|
58
60
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,13 +39,13 @@ export class ZonosCollectReview {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: '9b00168e63cbd687c01583577eefe9f5e9958996', class: classes([
|
|
43
43
|
'zonos--collect-review zonos--elements',
|
|
44
44
|
this.isMobile && 'mobile',
|
|
45
45
|
this.isTablet && 'tablet',
|
|
46
|
-
]) }, h("div", { key: '
|
|
46
|
+
]) }, h("div", { key: '5d29409d7c09ce620b32d6f4512bbd280817cfa8', class: "zonos--title" }, h("zonos-text", { key: 'b06ea84a112b06f1aba656060c85680cada09808', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
|
|
47
47
|
organizationName: zonosStore.organizationName,
|
|
48
|
-
}))), h("div", { key: '
|
|
48
|
+
}))), h("div", { key: '7d96f27c70d54f69862816be87bf1c084a91ecb9', class: "zonos--total-pay" }, renderFallback({
|
|
49
49
|
content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
|
|
50
50
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
51
51
|
isForeign: true,
|
|
@@ -52,7 +52,7 @@ export class ZonosCollectSubtotal {
|
|
|
52
52
|
}
|
|
53
53
|
render() {
|
|
54
54
|
this.initSubtotalData();
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'dbdf16aeb070857018db4456e06b8c74cc135d78', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: '90e8278e1f518f5531813c3cf0b032707fe42eb8', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: '3c63319c6be8719069eb7d80eda2546dcc76f273', class: "zonos--row zonos--collect-duty" }, h("td", { key: '942aa283152bbf69439e7a864156c2f4a71f66dd', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'db7ee74968f1b452e93a9e1d46de833e2513f582', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: 'dfae6f70ace82c38bdce41de0b4f900c790fa9ae', class: "zonos--column" }), h("td", { key: '943c6781ad1909d6c5c315f705fcb08547a92660', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
56
56
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
57
57
|
amount: this.subtotals[translate('Duties')] || 0,
|
|
58
58
|
isForeign: true,
|
|
@@ -60,7 +60,7 @@ export class ZonosCollectSubtotal {
|
|
|
60
60
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
61
61
|
skeletonHeight: '14px',
|
|
62
62
|
skeletonWidth: '150px',
|
|
63
|
-
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '
|
|
63
|
+
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: 'e87cf556d84fa66789f2410b77e049229eb54732', class: "zonos--row zonos--collect-tax" }, h("td", { key: '5941322ab31a1227a6944a05b25b27f387e184e7', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '729fd97147df76283b5d97a30015e2af84a4fbb6', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: 'a51514811435edae33c37f6062b0323ef2acfd05', class: "zonos--column" }), h("td", { key: 'a091d24821800034b1629813e05b40854951908d', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
64
64
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
65
65
|
amount: this.subtotals[translate('Taxes')] || 0,
|
|
66
66
|
isForeign: true,
|
|
@@ -68,7 +68,7 @@ export class ZonosCollectSubtotal {
|
|
|
68
68
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
69
69
|
skeletonHeight: '14px',
|
|
70
70
|
skeletonWidth: '150px',
|
|
71
|
-
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '
|
|
71
|
+
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '1ee4eae6bc0ea9be2d3b98733a3d51034db3b2c3', class: "zonos--row zonos--collect-fee" }, h("td", { key: '6548ee27908c32e7c39f4f16a7c6f202df256e28', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'b911ffc5f29252efba3989e494eca1c5ec0fbd54', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: 'f01086495ba4e1864f63de5fdd212de922e335c6', class: "zonos--column" }), h("td", { key: 'f2e628f5fb0087cebc5b135194325127357828e2', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
72
72
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
73
73
|
amount: this.subtotals[translate('Fees')] || 0,
|
|
74
74
|
isForeign: true,
|
|
@@ -76,7 +76,7 @@ export class ZonosCollectSubtotal {
|
|
|
76
76
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
77
77
|
skeletonHeight: '14px',
|
|
78
78
|
skeletonWidth: '150px',
|
|
79
|
-
})))), h("tr", { key: '
|
|
79
|
+
})))), h("tr", { key: '1b3c7371aa2b395c310e1bbfbda5071fc76bc523', class: "zonos--row zonos--collect-spacing" }, h("td", { key: 'ffcab1bd04d14fbc8c57d6731f2243945d889b9f', class: "zonos--column", colSpan: 3 })), h("tr", { key: 'c674e6737e1888c3ef4dfa9a2cc06ec595ddc74f', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: 'c79170263853ebba9168b566ed0985af9e7f7bec', class: "zonos--column" }), h("td", { key: '05bff80d6dd83b047ec4f40dedbb42dcef822a34', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '61e4f56cd4da5187bb64c746920b04655ed4624a', type: "label" }, translate('Subtotal'))), h("td", { key: 'a1701fa2c16e87cdba274349b7c5f9f0b90093ea', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
80
80
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
81
81
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
82
82
|
isForeign: true,
|
|
@@ -84,7 +84,7 @@ export class ZonosCollectSubtotal {
|
|
|
84
84
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
85
85
|
skeletonHeight: '14px',
|
|
86
86
|
skeletonWidth: '150px',
|
|
87
|
-
}))), h("tr", { key: '
|
|
87
|
+
}))), h("tr", { key: '83b981afc2f2ddfa5a21ee28fea2e00ec3aef4e8', class: "zonos--row zonos--collect-total" }, h("td", { key: '041fdf582712439e15521ab290f6475106d890cc', class: "zonos--column" }), h("td", { key: '82734ce4831e6255d8d6fe6aa73e8c132ba65d1d', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'd7b1771c43d5176226d1e503ec9308da5806fa52', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: '5bebbeaaa0ed0c112e73e4e6283d1364b9ae4f64', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
88
88
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
89
89
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
90
90
|
isForeign: true,
|
|
@@ -18,10 +18,10 @@ export class ZonosInvoiceCartItems {
|
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
20
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'a79106d8930a18d9806ca7f82dbfada663f46964', class: classes([
|
|
22
22
|
'zonos--invoice-cart-items zonos--elements',
|
|
23
23
|
this.isMobile && 'mobile',
|
|
24
|
-
]) }, h("table", { key: '
|
|
24
|
+
]) }, h("table", { key: '89496bfdd77e168ee388d94e83981b3657fea40b', class: "zonos--cart-table" }, h("tbody", { key: 'fa5a7a17018942300f8168e2d1ac0ea349f02da5' }, nonRestrictedItems.map(item => {
|
|
25
25
|
var _a, _b, _c, _d;
|
|
26
26
|
const invoiceId = (_b = (_a = item.attributes) === null || _a === void 0 ? void 0 : _a.find(metadata => metadata.key === 'invoiceId' || metadata.key === 'INVOICE_ID')) === null || _b === void 0 ? void 0 : _b.value;
|
|
27
27
|
const invoiceCreatedAt = (_d = (_c = item.attributes) === null || _c === void 0 ? void 0 : _c.find(metadata => metadata.key === 'invoiceCreatedAt')) === null || _d === void 0 ? void 0 : _d.value;
|
|
@@ -260,11 +260,11 @@ export class ZonosInvoiceFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: '0e85f53a2195cb775590ca7cf815fe5ff555a5a7', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: 'a72982af4d9e1ccd015486185841bdfb8100de4f', class: "zonos--finish-details" }, h("div", { key: '905c39d1f8d0c4db69fe69af86b5d2fd27e6c6bc', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '4b4aac452d596888d9a2a132e4909cb96985e3e1', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'df0281e69b04b3f2ad238cbfb4a8a142e6c08447', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'f92416cc2024dc6e58c3886f0d8990a3753c82f4', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: 'cbd8a00f6ee518a62cab4edb8c29167a108710c0', class: "zonos--button-container" }, h("zonos-button", { key: 'bcc697820cfbab42417626c2bf1d887bee67fa5f', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|
|
@@ -80,6 +80,11 @@
|
|
|
80
80
|
gap: 4px;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
+
:host .zonos--invoice-footer .zonos--invoice-locale-wrapper .zonos--invoice-locale-label {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
gap: 4px;
|
|
87
|
+
}
|
|
83
88
|
:host .zonos--invoice-footer .zonos--invoice-language-dialog {
|
|
84
89
|
position: absolute;
|
|
85
90
|
bottom: 36px;
|
|
@@ -5,6 +5,8 @@ import { isInvoiceMobile, isInvoiceTablet, } from "../../../utils/checkout/isInv
|
|
|
5
5
|
import { classes } from "../../../utils/classes";
|
|
6
6
|
import { languages } from "../../../../types/ILanguage";
|
|
7
7
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
8
|
+
import ChevronDownIcon from "./assets/chevronDownIcon.svg";
|
|
9
|
+
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
8
10
|
import Globe from "./assets/globe.svg";
|
|
9
11
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
10
12
|
import ZonosWordmark from "./assets/zonosWordmark.svg";
|
|
@@ -45,15 +47,15 @@ export class ZonosInvoiceFooter {
|
|
|
45
47
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
46
48
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
47
49
|
const colorDesktop = 'gray-1000';
|
|
48
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'f1df2afbf4312c216d2b0776b08bdf18a99918fa', class: classes([
|
|
49
51
|
'zonos--elements',
|
|
50
52
|
this.isMobile && 'mobile',
|
|
51
53
|
this.isTablet && 'tablet',
|
|
52
|
-
]) }, h("div", { key: '
|
|
54
|
+
]) }, h("div", { key: '15ec928ff1686fab2644fdad65b528e16f887c3d', class: "zonos--invoice-footer" }, h("div", { key: 'b3a81689dca77c65837366168b4cc512e873ebe6', class: "zonos--invoice-locale-wrapper" }, h("zonos-button", { key: 'f599ee52720855f47f1775f16b4beb5d673bc1fa', buttonColor: colorDesktop, class: "zonos--invoice-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: 'b5ac314d22571b01be5d7ddea7012b6431fde634', class: "zonos--invoice-locale-label" }, languageLabel, h("zonos-icon", { key: 'fa150a4e7d75327510e2bfc07e9911a8adb9a3ba', "aria-hidden": "true", class: "zonos--invoice-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '673eed561dace62416822df5e7948fdfb423e6c3', class: classes([
|
|
53
55
|
'zonos--invoice-language-dialog',
|
|
54
56
|
this.showLanguageDialog &&
|
|
55
57
|
'zonos--invoice-language-dialog-open',
|
|
56
|
-
]) }, h("zonos-language-select", { key: '
|
|
58
|
+
]) }, h("zonos-language-select", { key: '6d1a6ae828bf8701fe08605ab5952528e74ad92f', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '3b2484d4a4a0899b746a81e055cd9a4a4fcf6db9', class: "zonos--invoice-footer-icon-wrapper" }, h("div", { key: '3b4a8431e9cbd3133c69356c1bba186f7cec2fdf', class: "zonos--invoice-footer-logo" }, h("zonos-text", { key: '73f8f0b9978b715d611c72beded88862e27c8473', textColor: colorDesktop }, translate('Powered by')), h("a", { key: 'e9a9a63c0c042f40c76d1293c05d2c23165c7af1', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '5bd7ac7cd01581ba40a258f491417b04ab71c250', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'cf86cea8570caac18fbe1532478141e64e6cfd70', class: "dot" }), h("a", { key: '12b5cfa380ae7c2fbc2d3e7501c415761a1f199a', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '9588bdc785c892a39d3c37d034d1f874c8492fa2', textColor: colorDesktop }, translate('Privacy policy')))))));
|
|
57
59
|
}
|
|
58
60
|
static get is() { return "zonos-invoice-footer"; }
|
|
59
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -39,13 +39,13 @@ export class ZonosInvoiceReview {
|
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
41
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
42
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'be8d8f1688a86ccaa9431cae2885c57a08f3ee9b', class: classes([
|
|
43
43
|
'zonos--invoice-review zonos--elements',
|
|
44
44
|
this.isMobile && 'mobile',
|
|
45
45
|
this.isTablet && 'tablet',
|
|
46
|
-
]) }, h("div", { key: '
|
|
46
|
+
]) }, h("div", { key: '74dce7ae0a90490d95852c789d8e27ee51846ed5', class: "zonos--title" }, h("zonos-text", { key: '3539a1110abdac4b1dc909f37a4845d8a0ad8fa0', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
|
|
47
47
|
organizationName: zonosStore.organizationName,
|
|
48
|
-
}))), h("div", { key: '
|
|
48
|
+
}))), h("div", { key: 'd6feffd7216357889bbe9fba177feb8f24ad9222', class: "zonos--total-pay" }, renderFallback({
|
|
49
49
|
content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
|
|
50
50
|
amount: invoiceStore.amountTotalDue || 0,
|
|
51
51
|
isForeign: true,
|
|
@@ -12,10 +12,10 @@ export class ZonosInvoiceSubtotal {
|
|
|
12
12
|
this.isMobile = false;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: '4b2a1e8fe3d6b6c4bafa16bbcd596c10fc19267d', class: classes([
|
|
16
16
|
'zonos--invoice-subtotal zonos--elements',
|
|
17
17
|
this.isMobile && 'mobile',
|
|
18
|
-
]) }, h("table", { key: '
|
|
18
|
+
]) }, h("table", { key: '34b2b3019193b694d3a38560aeec57289f1ef284', class: "zonos--invoice-table" }, h("tr", { key: '76ba9947536d494fe651da0a94b8e66a702f5728', class: "zonos--row zonos--invoice-total" }, h("td", { key: '1510c0eb1f4db6bd3f4295b0eba6c1b845f86043', class: "zonos--column" }), h("td", { key: '5d3a1fde0d9bac22ee32f961da18f749e01b2038', class: "zonos--column zonos--invoice-subtotal-title" }, h("zonos-text", { key: '0e61607f2795cea761e6082749ac9e85ec5a502a', type: "semiBoldLabel" }, translate('Payment total'))), h("td", { key: '5b5bf8f17e8850b4b6428454adfb05f85a0a9f63', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback({
|
|
19
19
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
20
20
|
amount: invoiceStore.amountTotalDue || 0,
|
|
21
21
|
isForeign: true,
|
|
@@ -37,16 +37,16 @@ export class ZonosBadge {
|
|
|
37
37
|
this.loading = false;
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: '76d8a0655e3d4009085f34ea0cbc56c180076081', class: classes(['zonos--elements zonos--badge']), style: {
|
|
41
41
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
42
|
-
} }, h("div", { key: '
|
|
42
|
+
} }, h("div", { key: 'c512b84c92030ad81f1a6180304fd79c2a3c3708', class: classes([
|
|
43
43
|
'zonos--badge-content',
|
|
44
44
|
this.badgeColor,
|
|
45
45
|
this.rounded && 'rounded',
|
|
46
46
|
this.iconRight && 'icon-right',
|
|
47
47
|
this.size,
|
|
48
48
|
this.bold && 'bold',
|
|
49
|
-
]) }, this.icon, h("zonos-text", { key: '
|
|
49
|
+
]) }, this.icon, h("zonos-text", { key: '680812e8220ca3ad0a18a90c5bb614b5fea13c38', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'e939a288add6c2936746ed4b40721d13c38e793c' })), this.dismissHandler && (h("zonos-icon", { key: 'fddf84b6af4dda95c6937273d6168fc17290d747', "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); } })))));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "zonos-badge"; }
|
|
52
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -184,13 +184,13 @@ export class ZonosButton {
|
|
|
184
184
|
const borderStyle = getBorderRadius({
|
|
185
185
|
overrideBorderStyle: this.borderStyle,
|
|
186
186
|
});
|
|
187
|
-
return (h(Host, { key: '
|
|
187
|
+
return (h(Host, { key: '0e8c9eaa41b5769793e8b598e675f74e76061a7d', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
188
188
|
'--zonos--background-color': backgroundColor,
|
|
189
189
|
'--zonos--border-radius': borderStyle,
|
|
190
190
|
'--zonos--color': color,
|
|
191
191
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
192
192
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
193
|
-
}) }, h("button", Object.assign({ key: '
|
|
193
|
+
}) }, h("button", Object.assign({ key: '5de21db7f0fb00f327ffb9d9da450269e8493b43' }, this.inheritedAttributes, { class: classes([
|
|
194
194
|
this.hasIcon && 'has-icon',
|
|
195
195
|
this.hasContent && 'has-content',
|
|
196
196
|
this.noBackground && 'no-background',
|
|
@@ -205,7 +205,7 @@ export class ZonosButton {
|
|
|
205
205
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
206
206
|
]), disabled: disabled, style: {
|
|
207
207
|
justifyContent: this.justifyContent,
|
|
208
|
-
} }), this.loading && (h("div", { key: '
|
|
208
|
+
} }), this.loading && (h("div", { key: 'ff288d4a7ab7fc79e7e66328e413034e653ddc13', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '14f473f5f16407c020ae6163e5ccba00b6b8ea76', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '3fdd8e722cf4cb730f3227fe0562011af106da28', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
209
209
|
}
|
|
210
210
|
static get is() { return "zonos-button"; }
|
|
211
211
|
static get encapsulation() { return "shadow"; }
|
|
@@ -23,16 +23,16 @@ export class ZonosCard {
|
|
|
23
23
|
customRoundRadius: `${this.borderRadius}px`,
|
|
24
24
|
overrideBorderStyle: 'ROUNDED',
|
|
25
25
|
});
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '04b66449d19c5862587b5ef4b2f7cb32524b03bd', style: {
|
|
27
27
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
28
|
-
} }, h("div", { key: '
|
|
28
|
+
} }, h("div", { key: '218a1def4d384b3bf589e87ca657168de2cea3e5', class: classes(['styled-card']), style: {
|
|
29
29
|
'--zonos--background-color': backgroundColor,
|
|
30
30
|
'--zonos--border-radius': borderRadius,
|
|
31
31
|
padding: this.spacing,
|
|
32
|
-
} }, this.label && (h("header", { key: '
|
|
32
|
+
} }, this.label && (h("header", { key: 'bc5f2eaa90786860e20e40987df70e0cc9c527bb', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '90be1e3b9cd28f5a7aacf79c65c56e14a37bc019', type: "subheader" }, this.label), h("h-stack", { key: 'c25845c181e02eadca3cacb2d73c7173ba0a1a50', spacing: 8 }, this.actions))), h("slot", { key: '1e875f0fc6d86ae7cc5bdcdc0fc509bdcc1e1862' }), (this.footerActions || this.footerContent) && (h("footer", { key: '8fdca089c61d02ca14946dc3aaa8cb62c2feae99', class: "card-footer", style: {
|
|
33
33
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
34
34
|
padding: this.spacing,
|
|
35
|
-
} }, h("div", { key: '
|
|
35
|
+
} }, h("div", { key: '801f46a84cbb1185185ee35f51bf211f09d5aaee' }, this.footerContent), h("h-stack", { key: 'c995fab1c343973cf5da3079b99baa8b11af2903', spacing: 8 }, this.footerActions))))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "zonos-card"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,14 +51,14 @@ export class ZonosCheckbox {
|
|
|
51
51
|
customRoundRadius: '4px',
|
|
52
52
|
overrideBorderStyle: this.borderStyle,
|
|
53
53
|
});
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'b72500a3ead1362eebf6cd90fc60fddbade0bccf', class: classes(['zonos--elements zonos--checkbox']), style: {
|
|
55
55
|
'--zonos--background-color': backgroundColor,
|
|
56
56
|
'--zonos--border-radius': borderStyle,
|
|
57
57
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
58
58
|
'--zonos--size': `${this.size}px`,
|
|
59
|
-
} }, h("label", { key: '
|
|
59
|
+
} }, h("label", { key: '3a5104fa8f2b3874108f27732df0aee9d4bebbd6', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: 'aea12725ffa80d01c7fe1753d637f6e94e1d0fad', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
|
|
60
60
|
this.checkboxSelected.emit(e.target.checked);
|
|
61
|
-
}, type: "checkbox" }), h("span", { key: '
|
|
61
|
+
}, type: "checkbox" }), h("span", { key: '807f1b1b8acf88793abe74d329c8ffd81a450d9b', class: "checkmark-container" }, h("svg", { key: '18bec57b0554f70704f5c53e57a5929a48165f44', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'd98ba6681c05d63e242518b332b7d3292e19d39e', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: 'f540e55464dd67bf513cf6a77b078c7492945b50', size: this.fontSize }, this.label)))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "zonos-checkbox"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -77,17 +77,17 @@ export class ZonosCheckoutProgressTabs {
|
|
|
77
77
|
color: labelSelectedColor,
|
|
78
78
|
})
|
|
79
79
|
: labelSelectedColor;
|
|
80
|
-
return (h(Host, { key: '
|
|
80
|
+
return (h(Host, { key: '425c77b4ab1b9a29ada76644a60c2c6f54fa2e28', class: "zonos--elements", style: {
|
|
81
81
|
'--zonos--color': contrastLabelColor,
|
|
82
82
|
'--zonos--progress-percent': this.getTotalSuccessStep(),
|
|
83
|
-
} }, h("div", { key: '
|
|
83
|
+
} }, h("div", { key: 'd8e13a57521242f597c8b8adf7c6f304b3a9d3ce', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
|
|
84
84
|
const isSelected = tab.value === selectedStep;
|
|
85
85
|
return (h("button", { "aria-label": `Tab ${tab.label}`, class: classes([
|
|
86
86
|
'zonos--tab-item',
|
|
87
87
|
tab.value === selectedStep && 'selected',
|
|
88
88
|
tab.isDone && 'done',
|
|
89
89
|
]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => this.setTabSelected(tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, translate(tab.label))));
|
|
90
|
-
})), h("div", { key: '
|
|
90
|
+
})), h("div", { key: '9461341c83a92c810a3cf02f3828610732eecfe2', class: "zonos--tab-progress" }, h("div", { key: '142824930f5a8a6ef4fdafc7b39d9a96aa518cff', class: "zonos--progress-bar-fill" }))));
|
|
91
91
|
}
|
|
92
92
|
static get is() { return "zonos-checkout-progress-tabs"; }
|
|
93
93
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,10 +48,10 @@ export class ZonosCollapse {
|
|
|
48
48
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
49
49
|
this.el.style.overflow = 'hidden';
|
|
50
50
|
}
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '3e88dfbb76bc891e26c8b25729719b3bdc7e4087', class: 'zonos--elements zonos--collapse', style: {
|
|
52
52
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
53
53
|
height: this.getElementHeight(),
|
|
54
|
-
} }, h("div", { key: '
|
|
54
|
+
} }, h("div", { key: '3304ccae3cf01ee2100f10e0e4751bb1ea709d00' }, h("iframe", { key: 'c7af721e790b0b7cea8a5345403d485c8ed0dae4', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'be37b54db2a486750777edf71ff1001e4589f80a' }))));
|
|
55
55
|
}
|
|
56
56
|
static get is() { return "zonos-collapse"; }
|
|
57
57
|
static get encapsulation() { return "shadow"; }
|
|
@@ -108,13 +108,13 @@ export class ZonosConfirmDialog {
|
|
|
108
108
|
const borderStyle = getBorderRadius();
|
|
109
109
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
110
110
|
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
111
|
-
return (h(Host, { key: '
|
|
111
|
+
return (h(Host, { key: 'ae8a2dd88cbeeb8865f1ed67eae5d42356359d53', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
112
112
|
'--zonos--border-radius': borderStyle,
|
|
113
113
|
'--zonos--dialog-width': `${this.dialogWidth}px`,
|
|
114
114
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
115
|
-
} }, h("div", { key: '
|
|
115
|
+
} }, h("div", { key: 'c0622ae7cbbe469554716558eb56c452f9693568', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '3c42ad4fb2b793d65f564484126a519e97297743', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '18b46b2281cdf26b4dce3784b91a0ccd45cde7f2', class: "zonos--confirm-dialog", onBlur: () => {
|
|
116
116
|
this.focusDialog();
|
|
117
|
-
} }, h("div", { key: '
|
|
117
|
+
} }, h("div", { key: '9455881ea4d3c557b4de814235b0f66519e6fc6b', class: "wrapper" }, h("div", { key: '51f52ec83eb9fdbe1af20fdb0d149ce291597468', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: 'cdd954985d40e509eab4c15d063e1e7c9ebec839', class: "content" }, h("div", { key: '0ffddb684d1c33d421e2bf077fec01dba934a1e4', class: "title" }, h("zonos-text", { key: '5d778ebc6795ca69caf7df33503b6ec8ea3636c0', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'fab99060495ebeb545477e06417816c7fc8f9f3c', class: "subtitle" }, h("zonos-text", { key: 'c4baa52a5b53497db336018f62d5999e298d3ccf', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '5d92f093bd1ee37ee54c4e771e73a1d2b6b7bb39', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '0aa3788620a75732d72fca23c16b6b1a2fb694a0', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: 'a7195241b38061b363cae7b99828b714c96dbbff', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
118
118
|
}
|
|
119
119
|
static get is() { return "zonos-confirm-dialog"; }
|
|
120
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -51,13 +51,13 @@ export class ZonosCountrySelect {
|
|
|
51
51
|
? fuseObject.map(country => country.item)
|
|
52
52
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
53
53
|
const isEmpty = !filteredCountries.length;
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'cd9acce39e76670301cd0eddde05d3933e8f4b57', class: "zonos--elements", style: {
|
|
55
55
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
56
|
-
} }, h("div", { key: '
|
|
56
|
+
} }, h("div", { key: '804da9b6cf7156f1dc071417f8e2c4a4495fe76a', class: "zonos--country-select" }, h("zonos-v-stack", { key: 'c1b530398ca6e35195cbdec87a4c3d715bf982c0', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: 'ccde759c50a589c61b92980b3842c4236003412e', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: '2d86eb33f79cf77178485f8ee1a07094c2402c56', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), ref: el => {
|
|
57
57
|
if (el) {
|
|
58
58
|
this.inputRef = el;
|
|
59
59
|
}
|
|
60
|
-
}, type: "text", value: this.inputValue }))), h("div", { key: '
|
|
60
|
+
}, type: "text", value: this.inputValue }))), h("div", { key: '9d3f7a5a6938c0f728ef255ac829794c62dfd9f1', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: 'a0d4a6844e882ac15711b759c452c18407c567d4', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: '3f15965c334c827ded8fde07609d74c26cac0ce5', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
|
|
61
61
|
const country = filteredCountries[index];
|
|
62
62
|
if (!country) {
|
|
63
63
|
return null;
|
|
@@ -14,9 +14,9 @@ export class ZonosCustomMessage {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const messageWithLinks = formatStringWithLinks(this.message);
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '74877279697e5e29703bea70e89cae5cb164fbeb', class: "zonos--elements", style: {
|
|
18
18
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
19
|
-
} }, this.message && (h("zonos-card", { key: '
|
|
19
|
+
} }, this.message && (h("zonos-card", { key: 'c3ce65422f7cc7e55026147745349efe987a47a0', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: 'bae02d71232fed3850946d6426f871d9ede486b8', class: "zonos--flex-message" }, h("zonos-icon", { key: '7b5878e3ffb4f2b012fd17f2ada54fae08df69ae', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: '714897772ab498d4c74f3d29e4186a1bf54397f2', innerHTML: messageWithLinks }))))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "zonos-custom-message"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|