@zonos/elements 1.3.203 → 1.3.205
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-0d91ad0b.js → cart-193af95a.js} +6 -5
- package/dist/cjs/{debounce-94e1b7ff.js → debounce-0b9c0f8a.js} +1 -1
- package/dist/cjs/{getBorderRadius-8d3b1049.js → getBorderRadius-c424eb05.js} +1 -1
- package/dist/cjs/{index-0993f42d.js → index-1c710d00.js} +455 -377
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isDarkColor-bcf49625.js → isDarkColor-35e8daec.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{localization-2f17c95f.js → localization-88da0959.js} +1 -1
- package/dist/cjs/{paypal-9953115b.js → paypal-8525404c.js} +4 -4
- package/dist/cjs/zonos-address_11.cjs.entry.js +321 -142
- package/dist/cjs/zonos-badge.cjs.entry.js +26 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +6 -5
- package/dist/cjs/zonos-button_3.cjs.entry.js +89 -24
- package/dist/cjs/zonos-card.cjs.entry.js +10 -9
- package/dist/cjs/zonos-cart-items_14.cjs.entry.js +193 -74
- package/dist/cjs/zonos-checkout.cjs.entry.js +91 -35
- package/dist/cjs/zonos-collapse.cjs.entry.js +8 -2
- package/dist/cjs/zonos-component.cjs.entry.js +10 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -8
- package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +52 -24
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +11 -10
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +21 -13
- package/dist/cjs/zonos-hello.cjs.entry.js +29 -17
- package/dist/cjs/zonos-input.cjs.entry.js +18 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +15 -4
- package/dist/cjs/zonos-link.cjs.entry.js +4 -4
- package/dist/cjs/zonos-logo.cjs.entry.js +8 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +8 -8
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +25 -9
- package/dist/cjs/zonos-text.cjs.entry.js +11 -4
- package/dist/cjs/zonos-toggle.cjs.entry.js +5 -3
- package/dist/cjs/zonos-tooltip.cjs.entry.js +7 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -2
- package/dist/cjs/{zonosStore-9264749e.js → zonosStore-7c1e1bc1.js} +4 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +0 -4
- 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-address-update-dialog/zonos-address-update-dialog.js +24 -13
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +6 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +14 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +25 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +84 -28
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +54 -17
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +8 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +20 -12
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +24 -2
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +69 -18
- package/dist/collection/components/common/zonos-card/zonos-card.js +7 -6
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -2
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +6 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +34 -9
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +5 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +6 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +6 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +48 -14
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +12 -1
- package/dist/collection/components/common/zonos-input/zonos-input.js +15 -1
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +5 -1
- package/dist/collection/components/common/zonos-link/zonos-link.js +3 -3
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +7 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +6 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +4 -4
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +7 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +5 -5
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +21 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +19 -14
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +37 -12
- package/dist/collection/components/common/zonos-text/zonos-text.js +9 -2
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +3 -1
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +6 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +4 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -7
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +9 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +25 -13
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +8 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +0 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +17 -9
- package/dist/collection/components/main/zonos-controller.js +0 -4
- package/dist/collection/components/store/checkout/stripe.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +21 -8
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +13 -5
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +123 -53
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +11 -6
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -2
- package/dist/collection/types/generated/graphql.internal.types.js +4 -0
- package/dist/esm/{cart-db61eb95.js → cart-a921e0b7.js} +7 -6
- package/dist/esm/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
- package/dist/esm/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
- package/dist/esm/{index-a457c60c.js → index-5ea9f81d.js} +455 -377
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{localization-bf7224aa.js → localization-a2b8f9ed.js} +1 -1
- package/dist/esm/{paypal-2e0ffb07.js → paypal-67d51f03.js} +4 -4
- package/dist/esm/zonos-address_11.entry.js +321 -142
- package/dist/esm/zonos-badge.entry.js +26 -4
- package/dist/esm/zonos-banner.entry.js +6 -5
- package/dist/esm/zonos-button_3.entry.js +89 -24
- package/dist/esm/zonos-card.entry.js +10 -9
- package/dist/esm/zonos-cart-items_14.entry.js +193 -74
- package/dist/esm/zonos-checkout.entry.js +91 -35
- package/dist/esm/zonos-collapse.entry.js +8 -2
- package/dist/esm/zonos-component.entry.js +10 -1
- package/dist/esm/zonos-controller.entry.js +6 -8
- package/dist/esm/zonos-country-flag.entry.js +8 -4
- package/dist/esm/zonos-country-select_4.entry.js +52 -24
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-empty-state-payment_4.entry.js +11 -10
- package/dist/esm/zonos-hello-dialog.entry.js +21 -13
- package/dist/esm/zonos-hello.entry.js +29 -17
- package/dist/esm/zonos-input.entry.js +18 -4
- package/dist/esm/zonos-language-select_2.entry.js +15 -4
- package/dist/esm/zonos-link.entry.js +4 -4
- package/dist/esm/zonos-logo.entry.js +8 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +8 -8
- package/dist/esm/zonos-stripe-input.entry.js +25 -9
- package/dist/esm/zonos-text.entry.js +11 -4
- package/dist/esm/zonos-toggle.entry.js +5 -3
- package/dist/esm/zonos-tooltip.entry.js +7 -1
- package/dist/esm/zonos-v-stack.entry.js +6 -2
- package/dist/esm/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +4 -5
- package/dist/esm-es5/{cart-db61eb95.js → cart-a921e0b7.js} +1 -1
- package/dist/esm-es5/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
- package/dist/esm-es5/index-5ea9f81d.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-bf7224aa.js → localization-a2b8f9ed.js} +1 -1
- package/dist/esm-es5/{paypal-2e0ffb07.js → paypal-67d51f03.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_14.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-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-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +1 -1
- package/dist/scripts/index.d.ts +4 -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/stripe/zonos-custom-address/zonos-custom-address.d.ts +1 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +9 -0
- package/dist/types/types/generated/graphql.internal.types.ts +10 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-019f8637.entry.js +1 -0
- package/dist/zonos-elements/p-02da743b.system.js +2 -0
- package/dist/zonos-elements/{p-df4c46a6.entry.js → p-05a91fe6.entry.js} +1 -1
- package/dist/zonos-elements/p-0c4c8d63.entry.js +1 -0
- package/dist/zonos-elements/{p-5d0f7364.system.js → p-0d2df4d2.system.js} +1 -1
- package/dist/zonos-elements/p-0d7af8be.system.entry.js +1 -0
- package/dist/zonos-elements/p-12cd9d3a.entry.js +1 -0
- package/dist/zonos-elements/{p-d42dfd32.system.js → p-1327b935.system.js} +1 -1
- package/dist/zonos-elements/p-1640d77f.js +2 -0
- package/dist/zonos-elements/{p-3d82a352.js → p-16678764.js} +1 -1
- package/dist/zonos-elements/p-16e858f9.entry.js +1 -0
- package/dist/zonos-elements/{p-c291bac1.entry.js → p-18149db1.entry.js} +1 -1
- package/dist/zonos-elements/{p-db025dfc.system.entry.js → p-1ad099ec.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c5fcbc92.system.entry.js → p-1bc09abe.system.entry.js} +1 -1
- package/dist/zonos-elements/p-20ac92e1.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d46349d3.system.entry.js → p-22cb6880.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9aa902e.system.entry.js → p-2866fd29.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0693422b.system.js → p-28fcd277.system.js} +1 -1
- package/dist/zonos-elements/p-3196bf98.entry.js +1 -0
- package/dist/zonos-elements/p-3afc27ef.entry.js +1 -0
- package/dist/zonos-elements/p-3c921768.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ea6d87a1.system.js → p-3ee44728.system.js} +1 -1
- package/dist/zonos-elements/{p-be5afc91.system.entry.js → p-4329f616.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-715d0f59.system.entry.js → p-43b72ad6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f8d0d488.system.entry.js → p-469ccc66.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4a3bb31d.entry.js +1 -0
- package/dist/zonos-elements/{p-80bbd9c0.system.entry.js → p-4fb88ebc.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5fbaa153.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7cd09f1f.system.js → p-69577745.system.js} +1 -1
- package/dist/zonos-elements/p-6d467dfb.entry.js +1 -0
- package/dist/zonos-elements/{p-3284f459.system.entry.js → p-719e14a8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbe36bc8.system.entry.js → p-7234f876.system.entry.js} +1 -1
- package/dist/zonos-elements/p-74bcb5cc.entry.js +1 -0
- package/dist/zonos-elements/{p-27987298.system.entry.js → p-7777d85f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa1193bc.entry.js → p-848e08e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab176281.system.entry.js → p-858b7908.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f255e822.js → p-8609e956.js} +1 -1
- package/dist/zonos-elements/p-87e807b4.entry.js +1 -0
- package/dist/zonos-elements/{p-cdd3087f.system.entry.js → p-8debefec.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d99d9e00.js → p-8e000d8d.js} +1 -1
- package/dist/zonos-elements/p-90c185ac.entry.js +1 -0
- package/dist/zonos-elements/p-91fc6911.entry.js +1 -0
- package/dist/zonos-elements/{p-851c642e.system.entry.js → p-93aeba62.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9b8a5372.entry.js +1 -0
- package/dist/zonos-elements/{p-cb823c4d.system.js → p-9e9ac7a2.system.js} +1 -1
- package/dist/zonos-elements/p-9fa17353.js +1 -0
- package/dist/zonos-elements/{p-01987cb2.system.entry.js → p-a0f570ea.system.entry.js} +1 -1
- package/dist/zonos-elements/p-abc83d01.entry.js +1 -0
- package/dist/zonos-elements/{p-45ebc788.entry.js → p-b21b0330.entry.js} +1 -1
- package/dist/zonos-elements/{p-488ad646.system.entry.js → p-b50eaeac.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b922c441.system.js +1 -0
- package/dist/zonos-elements/{p-6b6a9dd6.system.js → p-be53e893.system.js} +1 -1
- package/dist/zonos-elements/{p-c50b3100.system.js → p-c666d557.system.js} +1 -1
- package/dist/zonos-elements/{p-f891d470.entry.js → p-c988cf84.entry.js} +1 -1
- package/dist/zonos-elements/{p-26a634a5.system.entry.js → p-d649fb9a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-dcbd57df.entry.js +1 -0
- package/dist/zonos-elements/p-dd0f8f06.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a9307caa.js → p-dfe7d1dd.js} +1 -1
- package/dist/zonos-elements/p-e0587eeb.entry.js +1 -0
- package/dist/zonos-elements/p-e0ebbefe.entry.js +1 -0
- package/dist/zonos-elements/{p-72f37935.js → p-e337fa88.js} +1 -1
- package/dist/zonos-elements/{p-d6a10007.entry.js → p-e5152c04.entry.js} +1 -1
- package/dist/zonos-elements/p-eb2560b6.system.entry.js +1 -0
- package/dist/zonos-elements/p-ebe08e44.entry.js +1 -0
- package/dist/zonos-elements/{p-452070af.system.entry.js → p-eca09508.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e26c9e83.js → p-ed20f2f7.js} +1 -1
- package/dist/zonos-elements/{p-5c74e5c9.system.entry.js → p-ee7a661d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f98276ed.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +50 -40
- package/dist/esm-es5/index-a457c60c.js +0 -2
- package/dist/zonos-elements/p-04b43dd5.entry.js +0 -1
- package/dist/zonos-elements/p-06f25f75.entry.js +0 -1
- package/dist/zonos-elements/p-0c62cfb3.entry.js +0 -1
- package/dist/zonos-elements/p-1dcdb65f.system.entry.js +0 -1
- package/dist/zonos-elements/p-25970cb8.system.entry.js +0 -1
- package/dist/zonos-elements/p-2bb8ca7d.system.entry.js +0 -1
- package/dist/zonos-elements/p-2f70d0eb.entry.js +0 -1
- package/dist/zonos-elements/p-411b8e10.entry.js +0 -1
- package/dist/zonos-elements/p-43633269.system.js +0 -2
- package/dist/zonos-elements/p-4c81112f.entry.js +0 -1
- package/dist/zonos-elements/p-4efa8187.js +0 -1
- package/dist/zonos-elements/p-5170bc41.entry.js +0 -1
- package/dist/zonos-elements/p-54cdc47f.system.entry.js +0 -1
- package/dist/zonos-elements/p-7ae5cd60.entry.js +0 -1
- package/dist/zonos-elements/p-8d870d4c.entry.js +0 -1
- package/dist/zonos-elements/p-9af5e93a.entry.js +0 -1
- package/dist/zonos-elements/p-bc8bda92.entry.js +0 -1
- package/dist/zonos-elements/p-c137dc82.js +0 -2
- package/dist/zonos-elements/p-c3d2422e.entry.js +0 -1
- package/dist/zonos-elements/p-c767242b.entry.js +0 -1
- package/dist/zonos-elements/p-cf6ae7dc.entry.js +0 -1
- package/dist/zonos-elements/p-d2165441.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcd6acd4.system.entry.js +0 -1
- package/dist/zonos-elements/p-dd1cfa74.entry.js +0 -1
- package/dist/zonos-elements/p-dfd1ba1d.entry.js +0 -1
- package/dist/zonos-elements/p-e68d5219.entry.js +0 -1
- package/dist/zonos-elements/p-ef3e05e5.system.js +0 -1
- package/dist/zonos-elements/p-f655ec36.entry.js +0 -1
- package/dist/zonos-elements/p-fcc2e712.entry.js +0 -1
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-1c710d00.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-7c1e1bc1.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
require('./VarianceTest-0cb1e118.js');
|
|
9
9
|
|
|
@@ -18,14 +18,36 @@ const ZonosBadgeStyle0 = zonosBadgeCss;
|
|
|
18
18
|
const ZonosBadge = class {
|
|
19
19
|
constructor(hostRef) {
|
|
20
20
|
index.registerInstance(this, hostRef);
|
|
21
|
+
/**
|
|
22
|
+
* Whether or not the badge is bold
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
21
25
|
this.bold = false;
|
|
26
|
+
/**
|
|
27
|
+
* The color of the badge
|
|
28
|
+
* @default 24
|
|
29
|
+
*/
|
|
22
30
|
this.badgeColor = 'gray';
|
|
23
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Position the icon to the right when icon is specified
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
24
35
|
this.iconRight = false;
|
|
36
|
+
/**
|
|
37
|
+
* The size of the badge
|
|
38
|
+
* @default 'default'
|
|
39
|
+
*/
|
|
25
40
|
this.size = 'default';
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not the badge is rounded
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
26
45
|
this.rounded = false;
|
|
46
|
+
/**
|
|
47
|
+
* Whether or not the badge is loading
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
27
50
|
this.loading = false;
|
|
28
|
-
this.dismissHandler = undefined;
|
|
29
51
|
}
|
|
30
52
|
render() {
|
|
31
53
|
return (index.h(index.Host, { key: 'd8a6a11f10c36a272ecdb52c54919f9ad45e1a9a', class: classes.classes(['zonos--elements zonos--badge']), style: {
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-1c710d00.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-7c1e1bc1.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
require('./VarianceTest-0cb1e118.js');
|
|
9
9
|
|
|
@@ -13,15 +13,16 @@ const ZonosBannerStyle0 = zonosBannerCss;
|
|
|
13
13
|
const ZonosBanner = class {
|
|
14
14
|
constructor(hostRef) {
|
|
15
15
|
index.registerInstance(this, hostRef);
|
|
16
|
+
/**
|
|
17
|
+
* Whether or not the button has content
|
|
18
|
+
*/
|
|
19
|
+
this.hasContent = false;
|
|
16
20
|
/**
|
|
17
21
|
* Detect if the button has an content
|
|
18
22
|
*/
|
|
19
23
|
this.handleSlotChange = () => {
|
|
20
24
|
this.hasContent = true;
|
|
21
25
|
};
|
|
22
|
-
this.bannerTitle = undefined;
|
|
23
|
-
this.intent = undefined;
|
|
24
|
-
this.hasContent = false;
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
28
|
const renderContent = ({ color }) => {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-1c710d00.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-7c1e1bc1.js');
|
|
7
7
|
const helpers = require('./helpers-5bdbb68c.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
9
|
+
const getBorderRadius = require('./getBorderRadius-c424eb05.js');
|
|
10
10
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
11
|
-
const isDarkColor = require('./isDarkColor-
|
|
11
|
+
const isDarkColor = require('./isDarkColor-35e8daec.js');
|
|
12
12
|
const styles = require('./styles-d1e64fb9.js');
|
|
13
13
|
require('./VarianceTest-0cb1e118.js');
|
|
14
14
|
|
|
@@ -41,6 +41,75 @@ const ZonosButton = class {
|
|
|
41
41
|
* Inherited attributes from the host element
|
|
42
42
|
*/
|
|
43
43
|
this.inheritedAttributes = {};
|
|
44
|
+
/**
|
|
45
|
+
* Whether or not the button is disabled
|
|
46
|
+
* @note Prop should not conflict name with native html attribute if the prop is also affected by another prop.
|
|
47
|
+
* The issue is the component has internal disabled @prop(). @prop decorator is to watch the update of the attribute of the component in the dom.
|
|
48
|
+
* And `disabled` prop is not an only factor to determine the component is disabled. isLoading @prop() also affect that.
|
|
49
|
+
* <Host> is also referred to a component itself, if disabled prop is true, the `zonos-button` will have disabled attribute.
|
|
50
|
+
* So let's say when the loading state is true, and the component consume the zonos-button doesn't pass the disabled prop down.
|
|
51
|
+
* It accidentally turns the disabled prop on even thought the disabled state is not changed from the outside.
|
|
52
|
+
*/
|
|
53
|
+
this.isDisabled = false;
|
|
54
|
+
/**
|
|
55
|
+
* The icon element to display
|
|
56
|
+
* @default null
|
|
57
|
+
*/
|
|
58
|
+
this.icon = null;
|
|
59
|
+
/**
|
|
60
|
+
* Whether or not the icon is on the right
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
this.iconRight = false;
|
|
64
|
+
/**
|
|
65
|
+
* The size of the button
|
|
66
|
+
* @default 'sm'
|
|
67
|
+
*/
|
|
68
|
+
this.size = 'sm';
|
|
69
|
+
/**
|
|
70
|
+
* The variance of the button
|
|
71
|
+
* @note If the button `variant` is set to 'standard', backgroundColor will be disregarded
|
|
72
|
+
* @default standard
|
|
73
|
+
*/
|
|
74
|
+
this.variant = 'standard';
|
|
75
|
+
/**
|
|
76
|
+
* Whether or not the button has a background
|
|
77
|
+
* @default false
|
|
78
|
+
*/
|
|
79
|
+
this.noBackground = false;
|
|
80
|
+
/**
|
|
81
|
+
* Whether or not the button has a box shadow
|
|
82
|
+
*/
|
|
83
|
+
this.withBoxShadow = false;
|
|
84
|
+
/**
|
|
85
|
+
* Whether or not the button has a left padding
|
|
86
|
+
*/
|
|
87
|
+
this.noPaddingLeft = false;
|
|
88
|
+
/**
|
|
89
|
+
* Whether or not the button has a right padding
|
|
90
|
+
*/
|
|
91
|
+
this.noPaddingRight = false;
|
|
92
|
+
/**
|
|
93
|
+
* Whether or not the button is loading
|
|
94
|
+
*/
|
|
95
|
+
this.loading = false;
|
|
96
|
+
/**
|
|
97
|
+
* The content alignment within the button
|
|
98
|
+
* @default 'center'
|
|
99
|
+
*/
|
|
100
|
+
this.justifyContent = 'center';
|
|
101
|
+
/**
|
|
102
|
+
* Whether or not the button text color is bold
|
|
103
|
+
*/
|
|
104
|
+
this.bold = false;
|
|
105
|
+
/**
|
|
106
|
+
* Whether or not the button has an icon
|
|
107
|
+
*/
|
|
108
|
+
this.hasIcon = !!this.icon;
|
|
109
|
+
/**
|
|
110
|
+
* Whether or not the button has content
|
|
111
|
+
*/
|
|
112
|
+
this.hasContent = false;
|
|
44
113
|
/**
|
|
45
114
|
* Detect if the button has an content
|
|
46
115
|
*/
|
|
@@ -111,24 +180,6 @@ const ZonosButton = class {
|
|
|
111
180
|
}
|
|
112
181
|
}
|
|
113
182
|
};
|
|
114
|
-
this.buttonColor = undefined;
|
|
115
|
-
this.backgroundColor = undefined;
|
|
116
|
-
this.borderStyle = undefined;
|
|
117
|
-
this.isDisabled = false;
|
|
118
|
-
this.icon = null;
|
|
119
|
-
this.iconRight = false;
|
|
120
|
-
this.size = 'sm';
|
|
121
|
-
this.variant = 'standard';
|
|
122
|
-
this.noBackground = false;
|
|
123
|
-
this.withBoxShadow = false;
|
|
124
|
-
this.noPaddingLeft = false;
|
|
125
|
-
this.noPaddingRight = false;
|
|
126
|
-
this.loading = false;
|
|
127
|
-
this.justifyContent = 'center';
|
|
128
|
-
this.bold = false;
|
|
129
|
-
this.theme = undefined;
|
|
130
|
-
this.hasIcon = !!this.icon;
|
|
131
|
-
this.hasContent = false;
|
|
132
183
|
}
|
|
133
184
|
/**
|
|
134
185
|
* Detect if the icon changes and update the state accordingly
|
|
@@ -197,9 +248,20 @@ const ZonosIconStyle0 = zonosIconCss;
|
|
|
197
248
|
const ZonosIcon = class {
|
|
198
249
|
constructor(hostRef) {
|
|
199
250
|
index.registerInstance(this, hostRef);
|
|
251
|
+
/**
|
|
252
|
+
* Determines if the icon should be auto height instead of square
|
|
253
|
+
* @default false
|
|
254
|
+
*/
|
|
200
255
|
this.autoHeight = false;
|
|
256
|
+
/**
|
|
257
|
+
* Color of the SVG
|
|
258
|
+
* @default 'gray-1000'
|
|
259
|
+
*/
|
|
201
260
|
this.iconColor = 'gray-1000';
|
|
202
|
-
|
|
261
|
+
/**
|
|
262
|
+
* The size of the icon
|
|
263
|
+
* @default 24
|
|
264
|
+
*/
|
|
203
265
|
this.size = 24;
|
|
204
266
|
}
|
|
205
267
|
render() {
|
|
@@ -227,8 +289,11 @@ const ZonosSpinnerStyle0 = zonosSpinnerCss;
|
|
|
227
289
|
const ZonosSpinner = class {
|
|
228
290
|
constructor(hostRef) {
|
|
229
291
|
index.registerInstance(this, hostRef);
|
|
292
|
+
/**
|
|
293
|
+
* The size of the spinner
|
|
294
|
+
* @default 32
|
|
295
|
+
*/
|
|
230
296
|
this.size = 32;
|
|
231
|
-
this.spinnerColor = undefined;
|
|
232
297
|
}
|
|
233
298
|
render() {
|
|
234
299
|
if (!this.el.shadowRoot) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
5
|
+
const index = require('./index-1c710d00.js');
|
|
6
|
+
const zonosStore = require('./zonosStore-7c1e1bc1.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-c424eb05.js');
|
|
9
9
|
require('./VarianceTest-0cb1e118.js');
|
|
10
10
|
|
|
11
11
|
const zonosCardCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
|
|
@@ -14,13 +14,14 @@ const ZonosCardStyle0 = zonosCardCss;
|
|
|
14
14
|
const ZonosCard = class {
|
|
15
15
|
constructor(hostRef) {
|
|
16
16
|
index.registerInstance(this, hostRef);
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The border radius of the card
|
|
19
|
+
* @default 6
|
|
20
|
+
*/
|
|
19
21
|
this.borderRadius = 6;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.label = undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The spacing to apply between elements in the card
|
|
24
|
+
*/
|
|
24
25
|
this.spacing = '24px';
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
5
|
+
const index = require('./index-1c710d00.js');
|
|
6
|
+
const cart = require('./cart-193af95a.js');
|
|
7
|
+
const localization = require('./localization-88da0959.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
|
-
const paypal = require('./paypal-
|
|
10
|
-
const zonosStore = require('./zonosStore-
|
|
9
|
+
const paypal = require('./paypal-8525404c.js');
|
|
10
|
+
const zonosStore = require('./zonosStore-7c1e1bc1.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
12
12
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
13
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
13
|
+
const getBorderRadius = require('./getBorderRadius-c424eb05.js');
|
|
14
14
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
15
|
-
const isDarkColor = require('./isDarkColor-
|
|
15
|
+
const isDarkColor = require('./isDarkColor-35e8daec.js');
|
|
16
16
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
17
17
|
const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-9b8a8de1.js');
|
|
18
18
|
const TaxId = require('./TaxId-12acedde.js');
|
|
@@ -1112,9 +1112,15 @@ const ZonosCartRestrictedItemsStyle0 = zonosCartRestrictedItemsCss;
|
|
|
1112
1112
|
const ZonosCartRestrictedItems = class {
|
|
1113
1113
|
constructor(hostRef) {
|
|
1114
1114
|
index.registerInstance(this, hostRef);
|
|
1115
|
+
/**
|
|
1116
|
+
* This is to hide the section when the parent collapse on mobile
|
|
1117
|
+
*/
|
|
1115
1118
|
this.hide = false;
|
|
1116
1119
|
this.errorImages = [];
|
|
1117
1120
|
this.internalCollapsed = true;
|
|
1121
|
+
/**
|
|
1122
|
+
* Should do something after the component is loaded
|
|
1123
|
+
*/
|
|
1118
1124
|
this.firstRender = true;
|
|
1119
1125
|
}
|
|
1120
1126
|
componentDidLoad() {
|
|
@@ -1171,8 +1177,9 @@ const ZonosCartSubtotalStyle0 = zonosCartSubtotalCss;
|
|
|
1171
1177
|
const ZonosCartSubtotal = class {
|
|
1172
1178
|
constructor(hostRef) {
|
|
1173
1179
|
index.registerInstance(this, hostRef);
|
|
1174
|
-
|
|
1175
|
-
|
|
1180
|
+
/**
|
|
1181
|
+
* Loading state for apply promo code button
|
|
1182
|
+
*/
|
|
1176
1183
|
this.loading = false;
|
|
1177
1184
|
}
|
|
1178
1185
|
render() {
|
|
@@ -1280,6 +1287,20 @@ const ZonosCheckoutFinish = class {
|
|
|
1280
1287
|
constructor(hostRef) {
|
|
1281
1288
|
index.registerInstance(this, hostRef);
|
|
1282
1289
|
this.closeClick = index.createEvent(this, "closeClick", 7);
|
|
1290
|
+
/**
|
|
1291
|
+
* The border radius style of the dialog
|
|
1292
|
+
*/
|
|
1293
|
+
this.borderRadius = 'ROUNDED';
|
|
1294
|
+
this.isLoading = true;
|
|
1295
|
+
this.notificationType = 'success';
|
|
1296
|
+
this.notificationTitle = '';
|
|
1297
|
+
this.notificationMessages = [];
|
|
1298
|
+
this.notificationActionText = localization.translate('Keep shopping');
|
|
1299
|
+
this.order = null;
|
|
1300
|
+
/**
|
|
1301
|
+
* Is waiting to redirect to a different page
|
|
1302
|
+
*/
|
|
1303
|
+
this.isWaitingToRedirect = true;
|
|
1283
1304
|
this.pullOrder = async () => {
|
|
1284
1305
|
var _a, _b;
|
|
1285
1306
|
const checkoutSessionId = localization.storageStore.checkoutSessionId;
|
|
@@ -1610,16 +1631,6 @@ const ZonosCheckoutFinish = class {
|
|
|
1610
1631
|
};
|
|
1611
1632
|
localStorage.setItem('zonos--placed-order-info', JSON.stringify(placedOrderTime));
|
|
1612
1633
|
};
|
|
1613
|
-
this.borderRadius = 'ROUNDED';
|
|
1614
|
-
this.storybookForceStatus = undefined;
|
|
1615
|
-
this.overrideNotification = undefined;
|
|
1616
|
-
this.isLoading = true;
|
|
1617
|
-
this.notificationType = 'success';
|
|
1618
|
-
this.notificationTitle = '';
|
|
1619
|
-
this.notificationMessages = [];
|
|
1620
|
-
this.notificationActionText = localization.translate('Keep shopping');
|
|
1621
|
-
this.order = null;
|
|
1622
|
-
this.isWaitingToRedirect = true;
|
|
1623
1634
|
}
|
|
1624
1635
|
componentDidLoad() {
|
|
1625
1636
|
// Reset local storage for placed order info
|
|
@@ -1691,8 +1702,10 @@ const ZonosCheckoutFooterStyle0 = zonosCheckoutFooterCss;
|
|
|
1691
1702
|
const ZonosCheckoutFooter = class {
|
|
1692
1703
|
constructor(hostRef) {
|
|
1693
1704
|
index.registerInstance(this, hostRef);
|
|
1705
|
+
/**
|
|
1706
|
+
* Override mobile mode
|
|
1707
|
+
*/
|
|
1694
1708
|
this.mobile = false;
|
|
1695
|
-
this.dataTheme = undefined;
|
|
1696
1709
|
this.showLanguageDialog = false;
|
|
1697
1710
|
this.isMobile = false;
|
|
1698
1711
|
}
|
|
@@ -1778,6 +1791,31 @@ const ZonosCheckoutPayment = class {
|
|
|
1778
1791
|
this.continueClicked = index.createEvent(this, "continueClicked", 7);
|
|
1779
1792
|
this.paypalSessionFailed = index.createEvent(this, "paypalSessionFailed", 7);
|
|
1780
1793
|
this.paypalSessionDone = index.createEvent(this, "paypalSessionDone", 7);
|
|
1794
|
+
/**
|
|
1795
|
+
* Whether or not the continue button is loading
|
|
1796
|
+
*/
|
|
1797
|
+
this.continueLoading = false;
|
|
1798
|
+
/**
|
|
1799
|
+
* Whether or not the checkout is in mobile mode
|
|
1800
|
+
*/
|
|
1801
|
+
this.isMobile = false;
|
|
1802
|
+
/**
|
|
1803
|
+
* Show error banner when the form is not complete, and user clicks on `Submit` button
|
|
1804
|
+
* @default false
|
|
1805
|
+
*/
|
|
1806
|
+
this.showErrorBanner = false;
|
|
1807
|
+
/**
|
|
1808
|
+
* Show payment error banner when the payment is failed
|
|
1809
|
+
*/
|
|
1810
|
+
this.hasStripePaymentError = false;
|
|
1811
|
+
/**
|
|
1812
|
+
* Error message when the staging order creation is failed
|
|
1813
|
+
*/
|
|
1814
|
+
this.stagingOrderCreateErrorMessage = '';
|
|
1815
|
+
/**
|
|
1816
|
+
* Internal state to handle continue loading
|
|
1817
|
+
*/
|
|
1818
|
+
this.internalContinueLoading = this.continueLoading;
|
|
1781
1819
|
this.handleValidate = () => {
|
|
1782
1820
|
var _a;
|
|
1783
1821
|
return !!((_a = cart.stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.complete);
|
|
@@ -1844,15 +1882,6 @@ const ZonosCheckoutPayment = class {
|
|
|
1844
1882
|
// continue to the next step
|
|
1845
1883
|
cart.cartStoreNextStep();
|
|
1846
1884
|
};
|
|
1847
|
-
this.submitBtnType = undefined;
|
|
1848
|
-
this.continueLoading = false;
|
|
1849
|
-
this.submitBtnColor = undefined;
|
|
1850
|
-
this.isMobile = false;
|
|
1851
|
-
this.overridePrimaryColor = undefined;
|
|
1852
|
-
this.showErrorBanner = false;
|
|
1853
|
-
this.hasStripePaymentError = false;
|
|
1854
|
-
this.stagingOrderCreateErrorMessage = '';
|
|
1855
|
-
this.internalContinueLoading = this.continueLoading;
|
|
1856
1885
|
}
|
|
1857
1886
|
continueLoadingWatcher() {
|
|
1858
1887
|
this.internalContinueLoading = this.continueLoading;
|
|
@@ -1988,6 +2017,14 @@ const ZonosCheckoutProgressTabsStyle0 = zonosCheckoutProgressTabsCss;
|
|
|
1988
2017
|
const ZonosCheckoutProgressTabs = class {
|
|
1989
2018
|
constructor(hostRef) {
|
|
1990
2019
|
index.registerInstance(this, hostRef);
|
|
2020
|
+
/**
|
|
2021
|
+
* Color of the tab progress bar and label, override the secondary color of the appearance settings
|
|
2022
|
+
*/
|
|
2023
|
+
this.tabColor = null;
|
|
2024
|
+
/**
|
|
2025
|
+
* Background color of the parent that's wrapped around the tab progress bar
|
|
2026
|
+
*/
|
|
2027
|
+
this.backgroundColor = null;
|
|
1991
2028
|
/**
|
|
1992
2029
|
* The total number of steps that's done
|
|
1993
2030
|
*/
|
|
@@ -2011,8 +2048,6 @@ const ZonosCheckoutProgressTabs = class {
|
|
|
2011
2048
|
.slice(0, currentTab.index - 1)
|
|
2012
2049
|
.every(tab => tab.isDone);
|
|
2013
2050
|
};
|
|
2014
|
-
this.tabColor = null;
|
|
2015
|
-
this.backgroundColor = null;
|
|
2016
2051
|
}
|
|
2017
2052
|
/**
|
|
2018
2053
|
* Set the tab items data. This is to be used in storybook
|
|
@@ -2089,22 +2124,47 @@ const ZonosConfirmDialog = class {
|
|
|
2089
2124
|
index.registerInstance(this, hostRef);
|
|
2090
2125
|
this.confirmClicked = index.createEvent(this, "confirmClicked", 7);
|
|
2091
2126
|
this.cancelClicked = index.createEvent(this, "cancelClicked", 7);
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
};
|
|
2127
|
+
/**
|
|
2128
|
+
* Dialog title text
|
|
2129
|
+
* @default "Are you sure?"
|
|
2130
|
+
*/
|
|
2097
2131
|
this.dialogTitle = localization.translate('Are you sure?');
|
|
2132
|
+
/**
|
|
2133
|
+
* Dialog intent (for icon and button color)
|
|
2134
|
+
* @default "info"
|
|
2135
|
+
*/
|
|
2098
2136
|
this.dialogIntent = 'info';
|
|
2137
|
+
/**
|
|
2138
|
+
* Dialog subtitle text
|
|
2139
|
+
* @default null No subtitle
|
|
2140
|
+
*/
|
|
2099
2141
|
this.dialogSubtitle = null;
|
|
2100
|
-
|
|
2101
|
-
|
|
2142
|
+
/**
|
|
2143
|
+
* Dialog width
|
|
2144
|
+
* @default 350 px
|
|
2145
|
+
*/
|
|
2102
2146
|
this.dialogWidth = 350;
|
|
2103
|
-
|
|
2147
|
+
/**
|
|
2148
|
+
* Type of dialog
|
|
2149
|
+
* - "alert" - Only confirm button
|
|
2150
|
+
* - "confirm" - Both Confirm and cancel buttons
|
|
2151
|
+
* @default "confirm"
|
|
2152
|
+
*/
|
|
2104
2153
|
this.dialogType = 'confirm';
|
|
2154
|
+
/**
|
|
2155
|
+
* Whether or not the dialog is open
|
|
2156
|
+
*/
|
|
2105
2157
|
this.isMobile = false;
|
|
2106
|
-
|
|
2158
|
+
/**
|
|
2159
|
+
* Whether or not to close the dialog when clicking outside of it
|
|
2160
|
+
* @default false
|
|
2161
|
+
*/
|
|
2107
2162
|
this.noClickOutside = false;
|
|
2163
|
+
this.clickOutsideDialogHandler = (event) => {
|
|
2164
|
+
if (event.target === event.currentTarget && !this.noClickOutside) {
|
|
2165
|
+
this.closeDialogHandler();
|
|
2166
|
+
}
|
|
2167
|
+
};
|
|
2108
2168
|
}
|
|
2109
2169
|
handleKeyDown(ev) {
|
|
2110
2170
|
if (ev.key === 'Escape') {
|
|
@@ -2288,6 +2348,60 @@ const ZonosCustomerInfo = class {
|
|
|
2288
2348
|
index.registerInstance(this, hostRef);
|
|
2289
2349
|
this.continueClicked = index.createEvent(this, "continueClicked", 7);
|
|
2290
2350
|
this.testContinueClicked = index.createEvent(this, "testContinueClicked", 7);
|
|
2351
|
+
/**
|
|
2352
|
+
* Whether or not the continue button is loading
|
|
2353
|
+
*/
|
|
2354
|
+
this.continueLoading = false;
|
|
2355
|
+
/**
|
|
2356
|
+
* Whether or not the dialog is open
|
|
2357
|
+
*/
|
|
2358
|
+
this.isMobile = false;
|
|
2359
|
+
/**
|
|
2360
|
+
* Default address to use for the checkout (preview mode)
|
|
2361
|
+
*/
|
|
2362
|
+
this.defaultAddress = [];
|
|
2363
|
+
/**
|
|
2364
|
+
* Whether to override custom address form to be always visible
|
|
2365
|
+
*/
|
|
2366
|
+
this.shouldUseCustomAddressFormOverride = false;
|
|
2367
|
+
/**
|
|
2368
|
+
* Due to Stripe's validation difficulties, we need to show a banner when users hasn't filled out the form correctly but clicked continue
|
|
2369
|
+
*/
|
|
2370
|
+
this.showErrorBanner = false;
|
|
2371
|
+
this.shippingCountry = '';
|
|
2372
|
+
this.isCheckingForRestrictedItems = false;
|
|
2373
|
+
/**
|
|
2374
|
+
* Whether or not the address is being validated
|
|
2375
|
+
*/
|
|
2376
|
+
this.isValidatingAddress = false;
|
|
2377
|
+
/**
|
|
2378
|
+
* Whether or not the tax id input is invalid
|
|
2379
|
+
*/
|
|
2380
|
+
this.taxIdErrorMessage = '';
|
|
2381
|
+
/**
|
|
2382
|
+
* Whether or not the shipping address contains invalid characters
|
|
2383
|
+
*/
|
|
2384
|
+
this.invalidShippingCharacterList = null;
|
|
2385
|
+
/**
|
|
2386
|
+
* Whether or not the shipping address contains invalid characters
|
|
2387
|
+
*/
|
|
2388
|
+
this.invalidBillingCharacterList = null;
|
|
2389
|
+
/**
|
|
2390
|
+
* Handler for the dialog close button
|
|
2391
|
+
*/
|
|
2392
|
+
this.openAddressValidationDialog = false;
|
|
2393
|
+
/**
|
|
2394
|
+
* Whether or not the custom address form is enabled
|
|
2395
|
+
*/
|
|
2396
|
+
this.shouldEnabledCustomAddress = false;
|
|
2397
|
+
/**
|
|
2398
|
+
* Handler for the email error state
|
|
2399
|
+
*/
|
|
2400
|
+
this.isEmailError = false;
|
|
2401
|
+
/**
|
|
2402
|
+
* Whether or not the custom address form is used
|
|
2403
|
+
*/
|
|
2404
|
+
this.recordedFormTypeUsed = false;
|
|
2291
2405
|
/**
|
|
2292
2406
|
* Handler for invalid characters in the address
|
|
2293
2407
|
*/
|
|
@@ -2518,23 +2632,6 @@ const ZonosCustomerInfo = class {
|
|
|
2518
2632
|
// Render Stripe address component by default
|
|
2519
2633
|
return (index.h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: localization.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
|
|
2520
2634
|
};
|
|
2521
|
-
this.continueLoading = false;
|
|
2522
|
-
this.submitBtnType = undefined;
|
|
2523
|
-
this.submitBtnColor = undefined;
|
|
2524
|
-
this.isMobile = false;
|
|
2525
|
-
this.defaultAddress = [];
|
|
2526
|
-
this.shouldUseCustomAddressFormOverride = false;
|
|
2527
|
-
this.showErrorBanner = false;
|
|
2528
|
-
this.shippingCountry = '';
|
|
2529
|
-
this.isCheckingForRestrictedItems = false;
|
|
2530
|
-
this.isValidatingAddress = false;
|
|
2531
|
-
this.taxIdErrorMessage = '';
|
|
2532
|
-
this.invalidShippingCharacterList = null;
|
|
2533
|
-
this.invalidBillingCharacterList = null;
|
|
2534
|
-
this.openAddressValidationDialog = false;
|
|
2535
|
-
this.shouldEnabledCustomAddress = false;
|
|
2536
|
-
this.isEmailError = false;
|
|
2537
|
-
this.recordedFormTypeUsed = false;
|
|
2538
2635
|
}
|
|
2539
2636
|
watchShowErrorBanner() {
|
|
2540
2637
|
// start validate on typing after error banner is shown, and hide it if the form is complete
|
|
@@ -2626,8 +2723,14 @@ const ZonosLoadingOverlayStyle0 = zonosLoadingOverlayCss;
|
|
|
2626
2723
|
const ZonosLoadingOverlay = class {
|
|
2627
2724
|
constructor(hostRef) {
|
|
2628
2725
|
index.registerInstance(this, hostRef);
|
|
2726
|
+
/**
|
|
2727
|
+
* Whether or not the overlay is open
|
|
2728
|
+
* @default false
|
|
2729
|
+
*/
|
|
2629
2730
|
this.open = false;
|
|
2630
|
-
|
|
2731
|
+
/**
|
|
2732
|
+
* Spinner size (optional, default 40)
|
|
2733
|
+
*/
|
|
2631
2734
|
this.size = 40;
|
|
2632
2735
|
}
|
|
2633
2736
|
render() {
|
|
@@ -2642,14 +2745,14 @@ const ZonosRestStateStyle0 = zonosRestStateCss;
|
|
|
2642
2745
|
const ZonosRestState = class {
|
|
2643
2746
|
constructor(hostRef) {
|
|
2644
2747
|
index.registerInstance(this, hostRef);
|
|
2748
|
+
/**
|
|
2749
|
+
* Whether or not the image failed to load
|
|
2750
|
+
*/
|
|
2751
|
+
this.isErrorImageLoad = false;
|
|
2645
2752
|
this.getImageRestState = () => {
|
|
2646
2753
|
const imageSrc = index.getAssetPath(`./assets/${this.restStateType}.png`);
|
|
2647
2754
|
return imageSrc;
|
|
2648
2755
|
};
|
|
2649
|
-
this.restStateSubtitle = undefined;
|
|
2650
|
-
this.restStateTitle = undefined;
|
|
2651
|
-
this.restStateType = undefined;
|
|
2652
|
-
this.isErrorImageLoad = false;
|
|
2653
2756
|
}
|
|
2654
2757
|
render() {
|
|
2655
2758
|
const imageUrl = this.getImageRestState();
|
|
@@ -2673,7 +2776,15 @@ const ZonosReviewStyle0 = zonosReviewCss;
|
|
|
2673
2776
|
const ZonosReview = class {
|
|
2674
2777
|
constructor(hostRef) {
|
|
2675
2778
|
index.registerInstance(this, hostRef);
|
|
2779
|
+
/**
|
|
2780
|
+
* Whether or not the component is being rendered with mobile styles
|
|
2781
|
+
*/
|
|
2676
2782
|
this.mobile = false;
|
|
2783
|
+
/**
|
|
2784
|
+
* Whether or not to show the collapse icon
|
|
2785
|
+
* This is controled from the collapsed state of the zonos-collapse component
|
|
2786
|
+
* to show the collapse icon
|
|
2787
|
+
*/
|
|
2677
2788
|
this.collapsed = false;
|
|
2678
2789
|
this.isMobile = false;
|
|
2679
2790
|
}
|
|
@@ -2746,6 +2857,26 @@ const ZonosShipping = class {
|
|
|
2746
2857
|
constructor(hostRef) {
|
|
2747
2858
|
index.registerInstance(this, hostRef);
|
|
2748
2859
|
this.continueClicked = index.createEvent(this, "continueClicked", 7);
|
|
2860
|
+
/**
|
|
2861
|
+
* Whether or not the continue button is loading
|
|
2862
|
+
*/
|
|
2863
|
+
this.continueLoading = false;
|
|
2864
|
+
this.selectedShippingMethod = null;
|
|
2865
|
+
this.collapsedDAPOptions = true;
|
|
2866
|
+
/**
|
|
2867
|
+
* Whether or not the user is selecting a shipping method
|
|
2868
|
+
*/
|
|
2869
|
+
this.isSelecting = false;
|
|
2870
|
+
/**
|
|
2871
|
+
* Show error banner when the form is not complete, and user clicks on `Submit` button
|
|
2872
|
+
* @default false
|
|
2873
|
+
*/
|
|
2874
|
+
this.showErrorBanner = false;
|
|
2875
|
+
this.serviceLevelsDDP = [];
|
|
2876
|
+
this.serviceLevelsDAP = [];
|
|
2877
|
+
this.serviceLevelsOther = [];
|
|
2878
|
+
this.serviceLevelsAll = [];
|
|
2879
|
+
this.displayBaseCurrency = false;
|
|
2749
2880
|
this.handleRadioSelected = async (e) => {
|
|
2750
2881
|
var _a;
|
|
2751
2882
|
this.selectedShippingMethod = e.detail;
|
|
@@ -2884,18 +3015,6 @@ const ZonosShipping = class {
|
|
|
2884
3015
|
});
|
|
2885
3016
|
}
|
|
2886
3017
|
};
|
|
2887
|
-
this.continueLoading = false;
|
|
2888
|
-
this.submitBtnColor = undefined;
|
|
2889
|
-
this.submitBtnType = undefined;
|
|
2890
|
-
this.selectedShippingMethod = null;
|
|
2891
|
-
this.collapsedDAPOptions = true;
|
|
2892
|
-
this.isSelecting = false;
|
|
2893
|
-
this.showErrorBanner = false;
|
|
2894
|
-
this.serviceLevelsDDP = [];
|
|
2895
|
-
this.serviceLevelsDAP = [];
|
|
2896
|
-
this.serviceLevelsOther = [];
|
|
2897
|
-
this.serviceLevelsAll = [];
|
|
2898
|
-
this.displayBaseCurrency = false;
|
|
2899
3018
|
}
|
|
2900
3019
|
componentWillLoad() {
|
|
2901
3020
|
this.preselectFirstShippingMethod();
|