@zonos/elements 1.3.204 → 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 +1 -1
- 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 +273 -121
- 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 +90 -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 +2 -2
- 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 +83 -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 +73 -33
- 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/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 +2 -2
- 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 +273 -121
- 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 +90 -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 +3 -3
- 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.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +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-6a71f76b.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-0944fe64.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-43633269.system.js +0 -2
- package/dist/zonos-elements/p-4b5197e7.system.entry.js +0 -1
- 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-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-c66fc4e5.system.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-f29edb65.entry.js +0 -1
- package/dist/zonos-elements/p-f655ec36.entry.js +0 -1
- package/dist/zonos-elements/p-fcc2e712.entry.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, F as Fragment } from './index-
|
|
2
|
-
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreCleanupDomesticShippingSession, b as stripeStoreSaveDomesticShippingSession,
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-
|
|
4
|
-
import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-
|
|
5
|
-
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, F as Fragment } from './index-5ea9f81d.js';
|
|
2
|
+
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreCleanupDomesticShippingSession, b as stripeStoreSaveDomesticShippingSession, c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as cartStoreUpdateItems, g as cartStoreReset, h as cartStoreResetTabItems, j as cartStoreClearCheckoutInterval, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset } from './cart-a921e0b7.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-67d51f03.js';
|
|
4
|
+
import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-a2b8f9ed.js';
|
|
5
|
+
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-1e015fa5.js';
|
|
6
6
|
import { h as handleFetch, l as log, b as logError, s as sendErrorLog, c as getElapsedTime, d as allLogs, e as getAdditionalLogMetadata, g as getIsTestMode, j as jsonParse, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
|
|
7
7
|
import { c as classes } from './classes-0d95c529.js';
|
|
8
8
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
9
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
10
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
9
|
+
import { g as getBorderRadius } from './getBorderRadius-b18c924f.js';
|
|
10
|
+
import { i as isDarkColor } from './isDarkColor-d8bb8659.js';
|
|
11
11
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
12
12
|
import { _ as _getIsValidCartId, c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-eb7d6954.js';
|
|
13
13
|
import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
|
|
@@ -455,6 +455,89 @@ const ZonosCheckout = class {
|
|
|
455
455
|
*/
|
|
456
456
|
this.onChangeLocaleListener = () => { };
|
|
457
457
|
this.isRedirectAfterOrder = false;
|
|
458
|
+
/**
|
|
459
|
+
* Preview checkout without needing to click on the button. This would be useful for demo purpose
|
|
460
|
+
*/
|
|
461
|
+
this.preview = false;
|
|
462
|
+
/**
|
|
463
|
+
* Hidden mode to hide the checkout modal in preview mode
|
|
464
|
+
*/
|
|
465
|
+
this.hiddenMode = false;
|
|
466
|
+
/**
|
|
467
|
+
* Flag to determine if the checkout is on mobile
|
|
468
|
+
*/
|
|
469
|
+
this.mobile = false;
|
|
470
|
+
/**
|
|
471
|
+
* Default address to use for the checkout (preview mode)
|
|
472
|
+
*/
|
|
473
|
+
this.defaultAddress = [];
|
|
474
|
+
/**
|
|
475
|
+
* Force dialog to be open
|
|
476
|
+
*/
|
|
477
|
+
this.forceDialogOpen = false;
|
|
478
|
+
this.defaultAddressParams = [];
|
|
479
|
+
/**
|
|
480
|
+
* List of addresses from authenticated checkout customer
|
|
481
|
+
*/
|
|
482
|
+
this.defaultCustomerProfileAddress = [];
|
|
483
|
+
/**
|
|
484
|
+
* Customer profile of the authenticated checkout user
|
|
485
|
+
*/
|
|
486
|
+
this.customerProfile = null;
|
|
487
|
+
/**
|
|
488
|
+
* Whether or not the dialog is open
|
|
489
|
+
*/
|
|
490
|
+
this.open = this.forceDialogOpen;
|
|
491
|
+
/**
|
|
492
|
+
* Whether or not the overlay is loading (for waiting for fetching test variance)
|
|
493
|
+
*/
|
|
494
|
+
this.isOverlayLoading = false;
|
|
495
|
+
/**
|
|
496
|
+
* The stripe instance
|
|
497
|
+
*/
|
|
498
|
+
this.stripe = window.Zonos.stripe;
|
|
499
|
+
/**
|
|
500
|
+
* Whether or not the submit button is loading in `step` component
|
|
501
|
+
*/
|
|
502
|
+
this.submitLoading = false;
|
|
503
|
+
// default to collapse the review on mobile
|
|
504
|
+
this.collapseReviewMobile = true;
|
|
505
|
+
/**
|
|
506
|
+
* Determine if we should skip and not hijack the Checkout button click event
|
|
507
|
+
* Sometimes stripe or our api has error, we don't want to hijack the click event.
|
|
508
|
+
*/
|
|
509
|
+
this.isAttachError = false;
|
|
510
|
+
this.isMobile = false;
|
|
511
|
+
this.isIframed = false;
|
|
512
|
+
this.isLegacyCheckout = window.Zonos.isLegacyCheckout;
|
|
513
|
+
/**
|
|
514
|
+
* Confirm dialog open state
|
|
515
|
+
*/
|
|
516
|
+
this.confirmDialogOpen = false;
|
|
517
|
+
/**
|
|
518
|
+
* Cart expired state to show the cart expired dialog
|
|
519
|
+
*/
|
|
520
|
+
this.isCartExpired = false;
|
|
521
|
+
/**
|
|
522
|
+
* Pay in USD confirm dialog open state
|
|
523
|
+
*/
|
|
524
|
+
this.payInUsdConfirmDialogOpen = false;
|
|
525
|
+
/**
|
|
526
|
+
* Error message from onInventoryCheck callback
|
|
527
|
+
*/
|
|
528
|
+
this.inventoryCheckErrorMessage = null;
|
|
529
|
+
/**
|
|
530
|
+
* Placed order info to show the confirm dialog to the user
|
|
531
|
+
*/
|
|
532
|
+
this.placedOrderInfo = null;
|
|
533
|
+
/**
|
|
534
|
+
* Client secret value
|
|
535
|
+
*/
|
|
536
|
+
this.clientSecret = stripeStore.clientSecret;
|
|
537
|
+
/**
|
|
538
|
+
* Client secret value of customer session (use to load saved payment method and render saved consent)
|
|
539
|
+
*/
|
|
540
|
+
this.stripeCustomerSessionClientSecret = stripeStore.stripeCustomerSessionClientSecret;
|
|
458
541
|
this.applyStripeTheme = async () => {
|
|
459
542
|
var _a, _b, _c, _d;
|
|
460
543
|
const theme = ((_a = this.appearanceSettingsOverride) === null || _a === void 0 ? void 0 : _a.theme) || zonosStore.appearance.theme;
|
|
@@ -754,34 +837,6 @@ const ZonosCheckout = class {
|
|
|
754
837
|
url.searchParams.delete('zonosVariantTest');
|
|
755
838
|
window.history.replaceState({}, '', url.toString());
|
|
756
839
|
};
|
|
757
|
-
this.appearanceSettingsOverride = undefined;
|
|
758
|
-
this.preview = false;
|
|
759
|
-
this.hiddenMode = false;
|
|
760
|
-
this.mobile = false;
|
|
761
|
-
this.overrideStagingMode = undefined;
|
|
762
|
-
this.defaultAddress = [];
|
|
763
|
-
this.forceDialogOpen = false;
|
|
764
|
-
this.defaultAddressParams = [];
|
|
765
|
-
this.defaultCustomerProfileAddress = [];
|
|
766
|
-
this.customerProfile = null;
|
|
767
|
-
this.open = this.forceDialogOpen;
|
|
768
|
-
this.isOverlayLoading = false;
|
|
769
|
-
this.stripe = window.Zonos.stripe;
|
|
770
|
-
this.submitLoading = false;
|
|
771
|
-
this.collapseReviewMobile = true;
|
|
772
|
-
this.isAttachError = false;
|
|
773
|
-
this.isMobile = false;
|
|
774
|
-
this.isIframed = false;
|
|
775
|
-
this.zonosReviewRef = undefined;
|
|
776
|
-
this.storybookPaymentStatusOverride = undefined;
|
|
777
|
-
this.isLegacyCheckout = window.Zonos.isLegacyCheckout;
|
|
778
|
-
this.confirmDialogOpen = false;
|
|
779
|
-
this.isCartExpired = false;
|
|
780
|
-
this.payInUsdConfirmDialogOpen = false;
|
|
781
|
-
this.inventoryCheckErrorMessage = null;
|
|
782
|
-
this.placedOrderInfo = null;
|
|
783
|
-
this.clientSecret = stripeStore.clientSecret;
|
|
784
|
-
this.stripeCustomerSessionClientSecret = stripeStore.stripeCustomerSessionClientSecret;
|
|
785
840
|
}
|
|
786
841
|
/**
|
|
787
842
|
* Init cart info handler event
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, d as getElement } from './index-5ea9f81d.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
|
|
3
3
|
import './VarianceTest-fef2d958.js';
|
|
4
4
|
|
|
5
5
|
const zonosCollapseCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
|
|
@@ -8,7 +8,13 @@ const ZonosCollapseStyle0 = zonosCollapseCss;
|
|
|
8
8
|
const ZonosCollapse = class {
|
|
9
9
|
constructor(hostRef) {
|
|
10
10
|
registerInstance(this, hostRef);
|
|
11
|
+
/**
|
|
12
|
+
* Collapsed state of the element
|
|
13
|
+
*/
|
|
11
14
|
this.collapsed = false;
|
|
15
|
+
/**
|
|
16
|
+
* Collapsed size when collapsed
|
|
17
|
+
*/
|
|
12
18
|
this.collapseSize = 0;
|
|
13
19
|
this.height = this.el.scrollHeight;
|
|
14
20
|
this.iframe = null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h } from './index-
|
|
1
|
+
import { r as registerInstance, h } from './index-5ea9f81d.js';
|
|
2
2
|
|
|
3
3
|
function format(first, middle, last) {
|
|
4
4
|
return ((first || '') + (middle ? ` ${middle}` : '') + (last ? ` ${last}` : ''));
|
|
@@ -10,8 +10,17 @@ const ZonosComponentStyle0 = zonosComponentCss;
|
|
|
10
10
|
const ZonosComponent = class {
|
|
11
11
|
constructor(hostRef) {
|
|
12
12
|
registerInstance(this, hostRef);
|
|
13
|
+
/**
|
|
14
|
+
* The first name
|
|
15
|
+
*/
|
|
13
16
|
this.first = '';
|
|
17
|
+
/**
|
|
18
|
+
* The middle name
|
|
19
|
+
*/
|
|
14
20
|
this.middle = '';
|
|
21
|
+
/**
|
|
22
|
+
* The last name
|
|
23
|
+
*/
|
|
15
24
|
this.last = '';
|
|
16
25
|
}
|
|
17
26
|
getText() {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-
|
|
2
|
-
import {
|
|
3
|
-
import { i as isValidSelector, e as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-
|
|
4
|
-
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-5ea9f81d.js';
|
|
2
|
+
import { c as stripeStore } from './cart-a921e0b7.js';
|
|
3
|
+
import { i as isValidSelector, e as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-a2b8f9ed.js';
|
|
4
|
+
import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
|
|
5
5
|
import { g as getGenericSettingsOverride, i as iframeServices, a as injectPrivateIframe } from './getGenericSettingsOverride-0bc3e118.js';
|
|
6
6
|
import { h as handleFetch, b as logError, l as log } from './handleFetch-621e45bc.js';
|
|
7
|
-
import './isDarkColor-
|
|
8
|
-
import './getBorderRadius-
|
|
7
|
+
import './isDarkColor-d8bb8659.js';
|
|
8
|
+
import './getBorderRadius-b18c924f.js';
|
|
9
9
|
import './VarianceTest-fef2d958.js';
|
|
10
10
|
|
|
11
11
|
const getZonosSettings = async () => {
|
|
@@ -370,8 +370,6 @@ const ZonosController = class {
|
|
|
370
370
|
registerInstance(this, hostRef);
|
|
371
371
|
this.paypalInitEvent = createEvent(this, "paypalInitEvent", 7);
|
|
372
372
|
this.stripeInitEvent = createEvent(this, "stripeInitEvent", 7);
|
|
373
|
-
this.config = undefined;
|
|
374
|
-
this.zonosApiKey = undefined;
|
|
375
373
|
}
|
|
376
374
|
/**
|
|
377
375
|
* Method to initialize checkout element
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { l as localizationStore } from './localization-
|
|
3
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, d as getElement } from './index-5ea9f81d.js';
|
|
2
|
+
import { l as localizationStore } from './localization-a2b8f9ed.js';
|
|
3
|
+
import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-621e45bc.js';
|
|
6
6
|
import './VarianceTest-fef2d958.js';
|
|
@@ -12,8 +12,12 @@ const FLAG_URL = "https://zonos-store-assets.s3.amazonaws.com/images/elements-fl
|
|
|
12
12
|
const ZonosCountryFlag = class {
|
|
13
13
|
constructor(hostRef) {
|
|
14
14
|
registerInstance(this, hostRef);
|
|
15
|
+
/**
|
|
16
|
+
* The country code for the flag
|
|
17
|
+
* @default localizationStore.selectedCountryCode
|
|
18
|
+
* @example 'US'
|
|
19
|
+
*/
|
|
15
20
|
this.countryCode = localizationStore.selectedCountryCode;
|
|
16
|
-
this.size = undefined;
|
|
17
21
|
}
|
|
18
22
|
render() {
|
|
19
23
|
if (!this.el.shadowRoot || !this.countryCode) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement } from './index-
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-
|
|
3
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, d as getElement } from './index-5ea9f81d.js';
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-a2b8f9ed.js';
|
|
3
|
+
import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
5
|
+
import { i as isDarkColor } from './isDarkColor-d8bb8659.js';
|
|
6
6
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
7
7
|
import './handleFetch-621e45bc.js';
|
|
8
8
|
import './VarianceTest-fef2d958.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* Fuse.js v7.
|
|
11
|
+
* Fuse.js v7.1.0 - Lightweight fuzzy-search (http://fusejs.io)
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) 2025 Kiro Risk (http://kiro.me)
|
|
14
14
|
* All Rights Reserved. Apache Software License 2.0
|
|
15
15
|
*
|
|
16
16
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
@@ -235,6 +235,8 @@ const BasicOptions = {
|
|
|
235
235
|
// When `true`, the algorithm continues searching to the end of the input even if a perfect
|
|
236
236
|
// match is found before the end of the same input.
|
|
237
237
|
isCaseSensitive: false,
|
|
238
|
+
// When `true`, the algorithm will ignore diacritics (accents) in comparisons
|
|
239
|
+
ignoreDiacritics: false,
|
|
238
240
|
// When true, the matching function will continue to the end of a search pattern even if
|
|
239
241
|
includeScore: false,
|
|
240
242
|
// List of properties that will be searched. This also supports nested properties.
|
|
@@ -736,6 +738,10 @@ function createPatternAlphabet(pattern) {
|
|
|
736
738
|
return mask
|
|
737
739
|
}
|
|
738
740
|
|
|
741
|
+
const stripDiacritics = String.prototype.normalize
|
|
742
|
+
? ((str) => str.normalize('NFD').replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g, ''))
|
|
743
|
+
: ((str) => str);
|
|
744
|
+
|
|
739
745
|
class BitapSearch {
|
|
740
746
|
constructor(
|
|
741
747
|
pattern,
|
|
@@ -747,6 +753,7 @@ class BitapSearch {
|
|
|
747
753
|
findAllMatches = Config.findAllMatches,
|
|
748
754
|
minMatchCharLength = Config.minMatchCharLength,
|
|
749
755
|
isCaseSensitive = Config.isCaseSensitive,
|
|
756
|
+
ignoreDiacritics = Config.ignoreDiacritics,
|
|
750
757
|
ignoreLocation = Config.ignoreLocation
|
|
751
758
|
} = {}
|
|
752
759
|
) {
|
|
@@ -758,10 +765,13 @@ class BitapSearch {
|
|
|
758
765
|
findAllMatches,
|
|
759
766
|
minMatchCharLength,
|
|
760
767
|
isCaseSensitive,
|
|
768
|
+
ignoreDiacritics,
|
|
761
769
|
ignoreLocation
|
|
762
770
|
};
|
|
763
771
|
|
|
764
|
-
|
|
772
|
+
pattern = isCaseSensitive ? pattern : pattern.toLowerCase();
|
|
773
|
+
pattern = ignoreDiacritics ? stripDiacritics(pattern) : pattern;
|
|
774
|
+
this.pattern = pattern;
|
|
765
775
|
|
|
766
776
|
this.chunks = [];
|
|
767
777
|
|
|
@@ -799,11 +809,10 @@ class BitapSearch {
|
|
|
799
809
|
}
|
|
800
810
|
|
|
801
811
|
searchIn(text) {
|
|
802
|
-
const { isCaseSensitive, includeMatches } = this.options;
|
|
812
|
+
const { isCaseSensitive, ignoreDiacritics, includeMatches } = this.options;
|
|
803
813
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}
|
|
814
|
+
text = isCaseSensitive ? text : text.toLowerCase();
|
|
815
|
+
text = ignoreDiacritics ? stripDiacritics(text) : text;
|
|
807
816
|
|
|
808
817
|
// Exact match
|
|
809
818
|
if (this.pattern === text) {
|
|
@@ -1053,6 +1062,7 @@ class FuzzyMatch extends BaseMatch {
|
|
|
1053
1062
|
findAllMatches = Config.findAllMatches,
|
|
1054
1063
|
minMatchCharLength = Config.minMatchCharLength,
|
|
1055
1064
|
isCaseSensitive = Config.isCaseSensitive,
|
|
1065
|
+
ignoreDiacritics = Config.ignoreDiacritics,
|
|
1056
1066
|
ignoreLocation = Config.ignoreLocation
|
|
1057
1067
|
} = {}
|
|
1058
1068
|
) {
|
|
@@ -1065,6 +1075,7 @@ class FuzzyMatch extends BaseMatch {
|
|
|
1065
1075
|
findAllMatches,
|
|
1066
1076
|
minMatchCharLength,
|
|
1067
1077
|
isCaseSensitive,
|
|
1078
|
+
ignoreDiacritics,
|
|
1068
1079
|
ignoreLocation
|
|
1069
1080
|
});
|
|
1070
1081
|
}
|
|
@@ -1221,6 +1232,7 @@ class ExtendedSearch {
|
|
|
1221
1232
|
pattern,
|
|
1222
1233
|
{
|
|
1223
1234
|
isCaseSensitive = Config.isCaseSensitive,
|
|
1235
|
+
ignoreDiacritics = Config.ignoreDiacritics,
|
|
1224
1236
|
includeMatches = Config.includeMatches,
|
|
1225
1237
|
minMatchCharLength = Config.minMatchCharLength,
|
|
1226
1238
|
ignoreLocation = Config.ignoreLocation,
|
|
@@ -1233,6 +1245,7 @@ class ExtendedSearch {
|
|
|
1233
1245
|
this.query = null;
|
|
1234
1246
|
this.options = {
|
|
1235
1247
|
isCaseSensitive,
|
|
1248
|
+
ignoreDiacritics,
|
|
1236
1249
|
includeMatches,
|
|
1237
1250
|
minMatchCharLength,
|
|
1238
1251
|
findAllMatches,
|
|
@@ -1242,7 +1255,9 @@ class ExtendedSearch {
|
|
|
1242
1255
|
distance
|
|
1243
1256
|
};
|
|
1244
1257
|
|
|
1245
|
-
|
|
1258
|
+
pattern = isCaseSensitive ? pattern : pattern.toLowerCase();
|
|
1259
|
+
pattern = ignoreDiacritics ? stripDiacritics(pattern) : pattern;
|
|
1260
|
+
this.pattern = pattern;
|
|
1246
1261
|
this.query = parseQuery(this.pattern, this.options);
|
|
1247
1262
|
}
|
|
1248
1263
|
|
|
@@ -1260,9 +1275,10 @@ class ExtendedSearch {
|
|
|
1260
1275
|
}
|
|
1261
1276
|
}
|
|
1262
1277
|
|
|
1263
|
-
const { includeMatches, isCaseSensitive } = this.options;
|
|
1278
|
+
const { includeMatches, isCaseSensitive, ignoreDiacritics } = this.options;
|
|
1264
1279
|
|
|
1265
1280
|
text = isCaseSensitive ? text : text.toLowerCase();
|
|
1281
|
+
text = ignoreDiacritics ? stripDiacritics(text) : text;
|
|
1266
1282
|
|
|
1267
1283
|
let numMatches = 0;
|
|
1268
1284
|
let allIndices = [];
|
|
@@ -1771,7 +1787,7 @@ class Fuse {
|
|
|
1771
1787
|
}
|
|
1772
1788
|
}
|
|
1773
1789
|
|
|
1774
|
-
Fuse.version = '7.
|
|
1790
|
+
Fuse.version = '7.1.0';
|
|
1775
1791
|
Fuse.createIndex = createIndex;
|
|
1776
1792
|
Fuse.parseIndex = parseIndex;
|
|
1777
1793
|
Fuse.config = Config;
|
|
@@ -1796,6 +1812,12 @@ const ZonosCountrySelectStyle0 = zonosCountrySelectCss;
|
|
|
1796
1812
|
const ZonosCountrySelect = class {
|
|
1797
1813
|
constructor(hostRef) {
|
|
1798
1814
|
registerInstance(this, hostRef);
|
|
1815
|
+
/**
|
|
1816
|
+
* Function to close the country select
|
|
1817
|
+
* @default () => {}
|
|
1818
|
+
*/
|
|
1819
|
+
this.handleOnClose = () => { };
|
|
1820
|
+
this.inputValue = '';
|
|
1799
1821
|
this.countrySelected = (countryCode) => {
|
|
1800
1822
|
// mutate the selected country code in store
|
|
1801
1823
|
void localizationStoreUpdateSelectedCountryCode(countryCode);
|
|
@@ -1812,8 +1834,6 @@ const ZonosCountrySelect = class {
|
|
|
1812
1834
|
countryListSelector.scrollTop = 0;
|
|
1813
1835
|
}
|
|
1814
1836
|
};
|
|
1815
|
-
this.handleOnClose = () => { };
|
|
1816
|
-
this.inputValue = '';
|
|
1817
1837
|
}
|
|
1818
1838
|
componentDidRender() {
|
|
1819
1839
|
var _a, _b;
|
|
@@ -1853,7 +1873,13 @@ const ZonosCustomMessageStyle0 = zonosCustomMessageCss;
|
|
|
1853
1873
|
const ZonosCustomMessage = class {
|
|
1854
1874
|
constructor(hostRef) {
|
|
1855
1875
|
registerInstance(this, hostRef);
|
|
1876
|
+
/**
|
|
1877
|
+
* The custom message icon
|
|
1878
|
+
*/
|
|
1856
1879
|
this.icon = '';
|
|
1880
|
+
/**
|
|
1881
|
+
* The custom message text
|
|
1882
|
+
*/
|
|
1857
1883
|
this.message = '';
|
|
1858
1884
|
}
|
|
1859
1885
|
render() {
|
|
@@ -1883,8 +1909,15 @@ const ZonosHelloDialogFooterStyle0 = zonosHelloDialogFooterCss;
|
|
|
1883
1909
|
const ZonosHelloDialogFooter = class {
|
|
1884
1910
|
constructor(hostRef) {
|
|
1885
1911
|
registerInstance(this, hostRef);
|
|
1886
|
-
|
|
1912
|
+
/**
|
|
1913
|
+
* Whether or not the country select dialog is open
|
|
1914
|
+
* @default false
|
|
1915
|
+
*/
|
|
1887
1916
|
this.setShowCountrySelect = () => { };
|
|
1917
|
+
/**
|
|
1918
|
+
* Whether or not the language select dialog is open
|
|
1919
|
+
* @default false
|
|
1920
|
+
*/
|
|
1888
1921
|
this.setShowLanguageSelect = () => { };
|
|
1889
1922
|
}
|
|
1890
1923
|
render() {
|
|
@@ -1907,16 +1940,11 @@ const ZonosVirtualScrollStyle0 = zonosVirtualScrollCss;
|
|
|
1907
1940
|
const ZonosVirtualScroll = class {
|
|
1908
1941
|
constructor(hostRef) {
|
|
1909
1942
|
registerInstance(this, hostRef);
|
|
1943
|
+
this.scrollTop = 0;
|
|
1944
|
+
this.totalHeight = 1;
|
|
1910
1945
|
this.scrollListener = (_ev) => {
|
|
1911
1946
|
this.scrollTop = this.ele.scrollTop;
|
|
1912
1947
|
};
|
|
1913
|
-
this.container = undefined;
|
|
1914
|
-
this.renderItem = undefined;
|
|
1915
|
-
this.itemWidth = undefined;
|
|
1916
|
-
this.fallbackItemHeight = undefined;
|
|
1917
|
-
this.itemHeights = undefined;
|
|
1918
|
-
this.scrollTop = 0;
|
|
1919
|
-
this.totalHeight = 1;
|
|
1920
1948
|
}
|
|
1921
1949
|
updateTotalHeight() {
|
|
1922
1950
|
this.totalHeight = this.itemHeights.reduce((acc, height) => acc + (height || this.fallbackItemHeight), 0);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { p as promiseResolve, b as bootstrapLazy } from './index-
|
|
2
|
-
export { s as setNonce } from './index-
|
|
1
|
+
import { p as promiseResolve, b as bootstrapLazy } from './index-5ea9f81d.js';
|
|
2
|
+
export { s as setNonce } from './index-5ea9f81d.js';
|
|
3
3
|
import { g as globalScripts } from './app-globals-0f993ce5.js';
|
|
4
4
|
|
|
5
5
|
/*
|
|
6
|
-
Stencil Client Patch Browser v4.
|
|
6
|
+
Stencil Client Patch Browser v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
7
7
|
*/
|
|
8
8
|
var patchBrowser = () => {
|
|
9
9
|
const importMeta = import.meta.url;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-
|
|
2
|
-
import { d as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-5ea9f81d.js';
|
|
2
|
+
import { d as zonosStoreFontFamily } from './zonosStore-1e015fa5.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
5
|
-
import {
|
|
6
|
-
import { s as storageStore } from './localization-
|
|
4
|
+
import { g as getBorderRadius } from './getBorderRadius-b18c924f.js';
|
|
5
|
+
import { c as stripeStore, t as trackConversionEvent } from './cart-a921e0b7.js';
|
|
6
|
+
import { s as storageStore } from './localization-a2b8f9ed.js';
|
|
7
7
|
import { b as logError, l as log } from './handleFetch-621e45bc.js';
|
|
8
|
-
import { d as paypalStoreInitButtons } from './paypal-
|
|
8
|
+
import { d as paypalStoreInitButtons } from './paypal-67d51f03.js';
|
|
9
9
|
import './VarianceTest-fef2d958.js';
|
|
10
|
-
import './isDarkColor-
|
|
10
|
+
import './isDarkColor-d8bb8659.js';
|
|
11
11
|
|
|
12
12
|
const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
13
13
|
<mask id="mask0_3739_19124" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="536" height="200">
|
|
@@ -63,7 +63,9 @@ const ZonosEmptyStatePaymentStyle0 = zonosEmptyStatePaymentCss;
|
|
|
63
63
|
const ZonosEmptyStatePayment = class {
|
|
64
64
|
constructor(hostRef) {
|
|
65
65
|
registerInstance(this, hostRef);
|
|
66
|
-
|
|
66
|
+
/**
|
|
67
|
+
* Theme color of the icon
|
|
68
|
+
*/
|
|
67
69
|
this.theme = 'LIGHT';
|
|
68
70
|
}
|
|
69
71
|
render() {
|
|
@@ -156,11 +158,10 @@ const ZonosPaymentStyle0 = zonosPaymentCss;
|
|
|
156
158
|
const ZonosPayment = class {
|
|
157
159
|
constructor(hostRef) {
|
|
158
160
|
registerInstance(this, hostRef);
|
|
159
|
-
this.trackingSent = false;
|
|
160
|
-
this.titleText = undefined;
|
|
161
161
|
this.stripe = stripeStore.stripe;
|
|
162
162
|
this.stripeElements = stripeStore.stripeElements;
|
|
163
163
|
this.isPaymentInfoFilled = false;
|
|
164
|
+
this.trackingSent = false;
|
|
164
165
|
}
|
|
165
166
|
watchIsPaymentInfoFilled() {
|
|
166
167
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-
|
|
2
|
-
import { t as translate, l as localizationStore, d as currencyFormat } from './localization-
|
|
3
|
-
import { z as zonosStore } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-5ea9f81d.js';
|
|
2
|
+
import { t as translate, l as localizationStore, d as currencyFormat } from './localization-a2b8f9ed.js';
|
|
3
|
+
import { z as zonosStore } from './zonosStore-1e015fa5.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
6
6
|
import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
|
|
@@ -50,7 +50,7 @@ const MoneyIcon = `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" x
|
|
|
50
50
|
|
|
51
51
|
const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
|
|
52
52
|
|
|
53
|
-
const zonosHelloDialogCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--zonos-elements-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--zonos-elements-radius-12);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:8px;top:8px;width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--zonos-elements-hover-color);border-radius:var(--zonos-elements-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:16px}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}
|
|
53
|
+
const zonosHelloDialogCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--zonos-elements-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--zonos-elements-radius-12);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:8px;top:8px;width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--zonos-elements-hover-color);border-radius:var(--zonos-elements-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:16px}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";
|
|
54
54
|
const ZonosHelloDialogStyle0 = zonosHelloDialogCss;
|
|
55
55
|
|
|
56
56
|
const dutyTaxMessage_AU_lowValueGST = `${translate('The low-value GST law passed July 1st, 2018 applies to this retailer.')} ${wrapStringWithLink({
|
|
@@ -61,6 +61,23 @@ const ZonosHelloDialog = class {
|
|
|
61
61
|
constructor(hostRef) {
|
|
62
62
|
registerInstance(this, hostRef);
|
|
63
63
|
this.closeDialog = createEvent(this, "closeDialog", 7);
|
|
64
|
+
/**
|
|
65
|
+
* Whether or not the dialog is open
|
|
66
|
+
*/
|
|
67
|
+
this.isOpen = false;
|
|
68
|
+
/**
|
|
69
|
+
* The function to set the open state
|
|
70
|
+
* @default () => {}
|
|
71
|
+
*/
|
|
72
|
+
this.setIsOpen = () => { };
|
|
73
|
+
/**
|
|
74
|
+
* Item restrictions array if any
|
|
75
|
+
* @default []
|
|
76
|
+
*/
|
|
77
|
+
this.restrictedItems = [];
|
|
78
|
+
this.welcomeMessage = 'Welcome to our Demo App!';
|
|
79
|
+
this.showCountrySelect = false;
|
|
80
|
+
this.showLanguageSelect = false;
|
|
64
81
|
this.clickOutsideDialogHandler = (e) => {
|
|
65
82
|
if (!e.composedPath().includes(this.dialogRef) && this.isOpen) {
|
|
66
83
|
this.setIsOpen(false);
|
|
@@ -225,15 +242,6 @@ const ZonosHelloDialog = class {
|
|
|
225
242
|
return null;
|
|
226
243
|
}
|
|
227
244
|
};
|
|
228
|
-
this.isOpen = false;
|
|
229
|
-
this.setIsOpen = () => { };
|
|
230
|
-
this.mobileLocationOverride = undefined;
|
|
231
|
-
this.animateFromLeftOverride = undefined;
|
|
232
|
-
this.appearanceSettings = undefined;
|
|
233
|
-
this.restrictedItems = [];
|
|
234
|
-
this.welcomeMessage = 'Welcome to our Demo App!';
|
|
235
|
-
this.showCountrySelect = false;
|
|
236
|
-
this.showLanguageSelect = false;
|
|
237
245
|
}
|
|
238
246
|
globalClickHandler(e) {
|
|
239
247
|
this.clickOutsideDialogHandler(e);
|