@zonos/elements 1.3.247 → 1.3.249
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-97a2d20a.js → cart-eca56521.js} +6 -4
- package/dist/cjs/{cleanHtmlMarkdown-577d0a77.js → cleanHtmlMarkdown-31da84b7.js} +9 -7
- package/dist/cjs/{debounce-815d1517.js → debounce-0c75ba33.js} +1 -1
- package/dist/cjs/{getBorderRadius-2ef1170d.js → getBorderRadius-27a74844.js} +1 -1
- package/dist/cjs/{getContrastColor-30848800.js → getContrastColor-cc087c53.js} +2 -2
- package/dist/cjs/{hasInclusivePrice-134b0250.js → hasInclusivePrice-e7d67b45.js} +1 -1
- package/dist/cjs/index-b1f95d96.js +4065 -0
- package/dist/cjs/index.cjs.js +14 -7
- package/dist/cjs/{invoice-05a10ee1.js → invoice-918f2c2b.js} +3 -3
- package/dist/cjs/{isCollectMobileTablet-edd4804c.js → isCollectMobileTablet-89911215.js} +3 -3
- package/dist/cjs/{isContrastColor-09f5924a.js → isContrastColor-d1936a5c.js} +1 -1
- package/dist/cjs/{isDarkColor-878e600e.js → isDarkColor-a68abf7a.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-00e73920.js → localization-878ef681.js} +1 -1
- package/dist/cjs/{paypal-0b4b352b.js → paypal-6acca678.js} +71 -37
- package/dist/cjs/{placeTestOrder-07b46688.js → placeTestOrder-f1c1e939.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-dd3b0609.js → renderCheckoutCurrency-d9590e81.js} +2 -2
- package/dist/cjs/{renderFallback-78b54537.js → renderFallback-bc20ee20.js} +1 -1
- package/dist/cjs/submitGtag-cb4fb332.js +116 -0
- package/dist/cjs/{throttle-7dd64984.js → throttle-ff483793.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-3a1db9de.js → updateCheckoutSessionAttributes-8be63b63.js} +1 -1
- package/dist/cjs/zonos-address-display_9.cjs.entry.js +1314 -1608
- package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-card_5.cjs.entry.js +9 -8
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +120 -28
- package/dist/cjs/zonos-checkout.cjs.entry.js +35 -14
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +19 -18
- package/dist/cjs/zonos-collect.cjs.entry.js +11 -10
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +10 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
- package/dist/cjs/zonos-elements.cjs.js +29 -2
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
- package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +19 -18
- package/dist/cjs/zonos-invoice.cjs.entry.js +10 -9
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +6 -6
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-37a4b4f4.js → zonosStore-f5a61112.js} +110 -25
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +88 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +9 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +24 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +9 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +5 -5
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +1 -1
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +1 -1
- package/dist/collection/components/common/zonos-button/zonos-button.css +3 -1
- package/dist/collection/components/common/zonos-input/zonos-input.css +3 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +3 -1
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +3 -1
- package/dist/collection/components/main/zonos-controller.js +4 -1
- package/dist/collection/components/store/checkout/paypal.js +19 -1
- package/dist/collection/components/store/checkout/stripe.js +2 -0
- package/dist/collection/components/utils/submitGtag.js +90 -2
- package/dist/collection/scripts/_zonosBase.js +7 -0
- package/dist/collection/types/analyticsRelay.js +6 -0
- package/dist/esm/{cart-99ec4a3d.js → cart-efb30253.js} +6 -4
- package/dist/esm/{cleanHtmlMarkdown-b5b18743.js → cleanHtmlMarkdown-5f7856f2.js} +9 -7
- package/dist/esm/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
- package/dist/esm/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
- package/dist/esm/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +2 -2
- package/dist/esm/{hasInclusivePrice-6fcc712f.js → hasInclusivePrice-565ddbe5.js} +1 -1
- package/dist/esm/index-cfd394c8.js +4028 -0
- package/dist/esm/index.js +14 -7
- package/dist/esm/{invoice-44e97c22.js → invoice-0e462fcc.js} +3 -3
- package/dist/esm/{isCollectMobileTablet-566ff0aa.js → isCollectMobileTablet-0bcba25a.js} +3 -3
- package/dist/esm/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
- package/dist/esm/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{localization-853b48a9.js → localization-c1aff677.js} +1 -1
- package/dist/esm/{paypal-56534e48.js → paypal-06b67be0.js} +72 -37
- package/dist/esm/{placeTestOrder-9e0ab5fd.js → placeTestOrder-6c9a6c8a.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-1bd40006.js → renderCheckoutCurrency-910fea67.js} +2 -2
- package/dist/esm/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
- package/dist/esm/submitGtag-13de9f1f.js +113 -0
- package/dist/esm/{throttle-ce2432ab.js → throttle-0504ba2c.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
- package/dist/esm/zonos-address-display_9.entry.js +1314 -1608
- package/dist/esm/zonos-address_4.entry.js +8 -8
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +5 -5
- package/dist/esm/zonos-card_5.entry.js +9 -8
- package/dist/esm/zonos-cart-items_12.entry.js +120 -28
- package/dist/esm/zonos-checkout.entry.js +35 -14
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
- package/dist/esm/zonos-collect-finish_6.entry.js +19 -18
- package/dist/esm/zonos-collect.entry.js +11 -10
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +10 -7
- package/dist/esm/zonos-country-flag.entry.js +3 -3
- package/dist/esm/zonos-country-select_4.entry.js +4 -4
- package/dist/esm/zonos-elements.js +30 -3
- package/dist/esm/zonos-hello-dialog.entry.js +4 -4
- package/dist/esm/zonos-hello.entry.js +4 -4
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -9
- package/dist/esm/zonos-invoice-finish_5.entry.js +19 -18
- package/dist/esm/zonos-invoice.entry.js +10 -9
- package/dist/esm/zonos-language-select_2.entry.js +3 -3
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +6 -6
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-b434e436.js → zonosStore-5242a58d.js} +110 -25
- package/dist/esm-es5/{cart-99ec4a3d.js → cart-efb30253.js} +1 -1
- package/dist/esm-es5/cleanHtmlMarkdown-5f7856f2.js +1 -0
- package/dist/esm-es5/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
- package/dist/esm-es5/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-6fcc712f.js → hasInclusivePrice-565ddbe5.js} +1 -1
- package/dist/esm-es5/index-cfd394c8.js +13 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-44e97c22.js → invoice-0e462fcc.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-566ff0aa.js → isCollectMobileTablet-0bcba25a.js} +1 -1
- package/dist/esm-es5/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
- package/dist/esm-es5/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-853b48a9.js → localization-c1aff677.js} +1 -1
- package/dist/esm-es5/paypal-06b67be0.js +17 -0
- package/dist/esm-es5/{placeTestOrder-9e0ab5fd.js → placeTestOrder-6c9a6c8a.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-1bd40006.js → renderCheckoutCurrency-910fea67.js} +1 -1
- package/dist/esm-es5/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
- package/dist/esm-es5/submitGtag-13de9f1f.js +1 -0
- package/dist/esm-es5/{throttle-ce2432ab.js → throttle-0504ba2c.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
- package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-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-5242a58d.js +1 -0
- package/dist/scripts/analyticsRelayOnInit.js +1 -0
- package/dist/scripts/index.d.ts +13 -2
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +4 -0
- package/dist/types/components/store/checkout/stripe.d.ts +6 -0
- package/dist/types/components/utils/submitGtag.d.ts +32 -2
- package/dist/types/environment.d.ts +2 -2
- package/dist/types/scripts/_zonosBase.d.ts +11 -0
- package/dist/types/types/analyticsRelay.d.ts +12 -0
- package/dist/types/types/global.d.ts +2 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-058f6124.js +1 -0
- package/dist/zonos-elements/{p-d5b7d3c3.entry.js → p-06e2bc14.entry.js} +1 -1
- package/dist/zonos-elements/p-079bc009.system.entry.js +1 -0
- package/dist/zonos-elements/p-09110bb7.system.entry.js +1 -0
- package/dist/zonos-elements/{p-dca14319.system.js → p-096182f0.system.js} +1 -1
- package/dist/zonos-elements/{p-8205ae87.system.entry.js → p-0a2abbab.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0aeba2c7.system.js +1 -0
- package/dist/zonos-elements/{p-7aa50ef2.entry.js → p-0d18d94b.entry.js} +1 -1
- package/dist/zonos-elements/{p-7b400b5f.system.entry.js → p-101226f3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c01f86b4.entry.js → p-12459b59.entry.js} +1 -1
- package/dist/zonos-elements/p-127e0395.js +17 -0
- package/dist/zonos-elements/p-18d411c3.system.entry.js +1 -0
- package/dist/zonos-elements/p-197d9b23.system.entry.js +1 -0
- package/dist/zonos-elements/{p-678331f0.system.js → p-1b5f89d5.system.js} +1 -1
- package/dist/zonos-elements/p-1b8771bb.js +1 -0
- package/dist/zonos-elements/{p-382601a9.system.entry.js → p-1f1bf95c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5062dcf3.system.entry.js → p-234f0339.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2c2a1339.system.entry.js → p-25dd58f8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-53a9da45.entry.js → p-26718a78.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -0
- package/dist/zonos-elements/{p-1c4d12f0.entry.js → p-2aa44601.entry.js} +1 -1
- package/dist/zonos-elements/{p-3908f78d.system.entry.js → p-302b7105.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-46ece7ae.js → p-321d2963.js} +1 -1
- package/dist/zonos-elements/p-34d10122.js +1 -0
- package/dist/zonos-elements/p-358dfb9e.entry.js +1 -0
- package/dist/zonos-elements/{p-b54a95ea.system.entry.js → p-36bea5d5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-14c920b2.system.entry.js → p-38881641.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3ad2a9a3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-2f55895c.system.entry.js → p-3ece0f96.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c6e3d747.system.js → p-3fbd9cc0.system.js} +1 -1
- package/dist/zonos-elements/p-445072f8.js +1 -0
- package/dist/zonos-elements/{p-1b86711b.js → p-456c0e52.js} +1 -1
- package/dist/zonos-elements/p-45bd8072.system.js +1 -0
- package/dist/zonos-elements/p-4a395eea.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9c49daa4.entry.js → p-4aefd668.entry.js} +1 -1
- package/dist/zonos-elements/p-4c087a8e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-403b9fca.entry.js → p-4d081ce8.entry.js} +1 -1
- package/dist/zonos-elements/p-4d4b7faa.entry.js +1 -0
- package/dist/zonos-elements/{p-a359e0a2.system.entry.js → p-4e4fa1fb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4f7d64f6.js +1 -0
- package/dist/zonos-elements/{p-09aabce0.js → p-507f00d2.js} +1 -1
- package/dist/zonos-elements/p-53db5f85.system.js +1 -0
- package/dist/zonos-elements/p-54c95926.entry.js +1 -0
- package/dist/zonos-elements/p-5dd86dd9.system.js +1 -0
- package/dist/zonos-elements/{p-83377e23.entry.js → p-5eaa0de1.entry.js} +1 -1
- package/dist/zonos-elements/p-5f628e57.entry.js +1 -0
- package/dist/zonos-elements/{p-ae26aec5.system.js → p-5fd0cd66.system.js} +1 -1
- package/dist/zonos-elements/p-661cd4ce.system.entry.js +1 -0
- package/dist/zonos-elements/{p-aa028d91.entry.js → p-66d72216.entry.js} +1 -1
- package/dist/zonos-elements/{p-57fa64d7.js → p-67897a0d.js} +1 -1
- package/dist/zonos-elements/p-6d37f669.entry.js +1 -0
- package/dist/zonos-elements/{p-917f714c.system.entry.js → p-6f19845a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-232b0fb5.system.entry.js → p-70c8a47d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7261e245.system.js +13 -0
- package/dist/zonos-elements/{p-3e67ca05.entry.js → p-7427dd1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-23d497e3.system.js → p-7501c637.system.js} +1 -1
- package/dist/zonos-elements/{p-c1fb3a2d.entry.js → p-777e0a81.entry.js} +1 -1
- package/dist/zonos-elements/p-7d7ffb42.js +1 -0
- package/dist/zonos-elements/p-7e77b055.system.entry.js +1 -0
- package/dist/zonos-elements/p-80524eac.entry.js +1 -0
- package/dist/zonos-elements/{p-cfb9b847.system.entry.js → p-87d89870.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-69b9b711.entry.js → p-8a424412.entry.js} +1 -1
- package/dist/zonos-elements/p-8b206982.system.js +1 -0
- package/dist/zonos-elements/{p-443e1f30.system.js → p-8c6624b6.system.js} +1 -1
- package/dist/zonos-elements/p-8d1efd7b.entry.js +1 -0
- package/dist/zonos-elements/{p-57cee1b5.system.entry.js → p-8d5f928c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5762e217.js → p-908f13ae.js} +1 -1
- package/dist/zonos-elements/{p-8f0f6449.entry.js → p-939ba2a5.entry.js} +1 -1
- package/dist/zonos-elements/p-9581bffb.js +1 -0
- package/dist/zonos-elements/p-959918fe.system.js +1 -0
- package/dist/zonos-elements/{p-f6f1d779.system.entry.js → p-9c64ca98.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f8d56ba9.system.js → p-9d44fef6.system.js} +1 -1
- package/dist/zonos-elements/p-9eea270b.entry.js +1 -0
- package/dist/zonos-elements/{p-fb9fb873.system.entry.js → p-a1c476d6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-10355cf6.system.entry.js → p-a75b3efc.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ab25379f.system.js +1 -0
- package/dist/zonos-elements/p-ac30b7a8.system.js +1 -0
- package/dist/zonos-elements/{p-37bb5f2d.entry.js → p-b004146f.entry.js} +1 -1
- package/dist/zonos-elements/{p-2e8f842c.entry.js → p-b360ee5b.entry.js} +1 -1
- package/dist/zonos-elements/p-b589f621.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d0411b2d.entry.js → p-b9a4430c.entry.js} +1 -1
- package/dist/zonos-elements/p-bc6b33fa.entry.js +1 -0
- package/dist/zonos-elements/p-bd004403.system.js +1 -0
- package/dist/zonos-elements/{p-84cf1a90.system.entry.js → p-bdaf94a4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-231baaf8.entry.js → p-c1ab70d2.entry.js} +1 -1
- package/dist/zonos-elements/{p-ce98e472.js → p-c4e358f2.js} +1 -1
- package/dist/zonos-elements/p-c87d3d50.system.js +1 -0
- package/dist/zonos-elements/{p-aedd3911.entry.js → p-c9d4eb42.entry.js} +1 -1
- package/dist/zonos-elements/{p-df6e62f8.system.js → p-c9e3bc98.system.js} +1 -1
- package/dist/zonos-elements/p-cda52300.js +1 -0
- package/dist/zonos-elements/p-ce75b047.js +2 -0
- package/dist/zonos-elements/{p-909e2bc3.system.js → p-d18a2b2c.system.js} +1 -1
- package/dist/zonos-elements/p-d233ef0d.entry.js +1 -0
- package/dist/zonos-elements/{p-14735e9a.system.entry.js → p-dbb3db89.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4592ae49.entry.js → p-ddcbea81.entry.js} +1 -1
- package/dist/zonos-elements/p-def2d465.js +1 -0
- package/dist/zonos-elements/p-e219d011.js +1 -0
- package/dist/zonos-elements/{p-6adfb3af.system.entry.js → p-ed61dedd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ee217693.entry.js +1 -0
- package/dist/zonos-elements/p-f0938b51.system.entry.js +1 -0
- package/dist/zonos-elements/p-f31fbbf0.entry.js +1 -0
- package/dist/zonos-elements/p-f830f800.js +1 -0
- package/dist/zonos-elements/p-f8f7d491.js +1 -0
- package/dist/zonos-elements/p-fc0aa91e.system.js +18 -0
- package/dist/zonos-elements/zonos-elements.css +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +70 -52
- package/dist/cjs/index-69fa8852.js +0 -1961
- package/dist/esm/index-0bbe9693.js +0 -1928
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +0 -1
- package/dist/esm-es5/index-0bbe9693.js +0 -2
- package/dist/esm-es5/paypal-56534e48.js +0 -17
- package/dist/esm-es5/zonosStore-b434e436.js +0 -1
- package/dist/zonos-elements/p-01dada4e.js +0 -1
- package/dist/zonos-elements/p-08365fdb.system.js +0 -1
- package/dist/zonos-elements/p-0c201c39.system.entry.js +0 -1
- package/dist/zonos-elements/p-0cb5f151.system.entry.js +0 -1
- package/dist/zonos-elements/p-0ef2a242.js +0 -1
- package/dist/zonos-elements/p-1dbeeab2.entry.js +0 -1
- package/dist/zonos-elements/p-1f894984.js +0 -1
- package/dist/zonos-elements/p-27f6930b.js +0 -1
- package/dist/zonos-elements/p-2c10b067.system.entry.js +0 -1
- package/dist/zonos-elements/p-3bec13dd.system.js +0 -1
- package/dist/zonos-elements/p-3e2f175c.entry.js +0 -1
- package/dist/zonos-elements/p-41299ffb.js +0 -1
- package/dist/zonos-elements/p-43a22d85.entry.js +0 -1
- package/dist/zonos-elements/p-4ffbb0d6.system.js +0 -1
- package/dist/zonos-elements/p-5295d36e.entry.js +0 -1
- package/dist/zonos-elements/p-64870563.entry.js +0 -1
- package/dist/zonos-elements/p-695e0803.system.entry.js +0 -1
- package/dist/zonos-elements/p-6e3cf6eb.entry.js +0 -1
- package/dist/zonos-elements/p-6f430d6f.system.entry.js +0 -1
- package/dist/zonos-elements/p-71185d24.system.js +0 -1
- package/dist/zonos-elements/p-786d1c24.js +0 -1
- package/dist/zonos-elements/p-794d29dc.entry.js +0 -1
- package/dist/zonos-elements/p-8defdf0d.system.js +0 -17
- package/dist/zonos-elements/p-8e98a7c8.js +0 -1
- package/dist/zonos-elements/p-95348ebf.system.entry.js +0 -1
- package/dist/zonos-elements/p-989d3af9.system.js +0 -2
- package/dist/zonos-elements/p-9a066833.system.entry.js +0 -1
- package/dist/zonos-elements/p-9fa90292.system.entry.js +0 -1
- package/dist/zonos-elements/p-aa6c2348.system.entry.js +0 -1
- package/dist/zonos-elements/p-ab41bab5.js +0 -2
- package/dist/zonos-elements/p-ada8841a.js +0 -1
- package/dist/zonos-elements/p-af85846e.system.js +0 -1
- package/dist/zonos-elements/p-b2a0ab4a.js +0 -1
- package/dist/zonos-elements/p-b2ae8eb7.system.js +0 -1
- package/dist/zonos-elements/p-c2442878.system.js +0 -1
- package/dist/zonos-elements/p-c75b7c47.entry.js +0 -1
- package/dist/zonos-elements/p-caff391d.system.entry.js +0 -1
- package/dist/zonos-elements/p-d45285aa.system.js +0 -1
- package/dist/zonos-elements/p-dcf999d8.entry.js +0 -1
- package/dist/zonos-elements/p-dd19d9d8.js +0 -17
- package/dist/zonos-elements/p-df90bccf.entry.js +0 -1
- package/dist/zonos-elements/p-e07aaf09.system.js +0 -1
- package/dist/zonos-elements/p-e458f737.entry.js +0 -1
- package/dist/zonos-elements/p-e9e6bea7.system.entry.js +0 -1
- package/dist/zonos-elements/p-eea7ac64.js +0 -1
- package/dist/zonos-elements/p-f8eb618b.entry.js +0 -1
- package/dist/zonos-elements/p-fc776473.js +0 -1
- package/dist/zonos-elements/p-fe96e239.system.js +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
import { t as throttle_1 } from './throttle-
|
|
3
|
-
import { b as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-
|
|
4
|
-
import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-
|
|
5
|
-
import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
+
import { t as throttle_1 } from './throttle-0504ba2c.js';
|
|
3
|
+
import { b as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-efb30253.js';
|
|
4
|
+
import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-c1aff677.js';
|
|
5
|
+
import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
|
|
6
6
|
import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
|
|
7
7
|
import { a as shouldRenderTaxIdInput, s as shouldRenderShortAddressCodeInput } from './shouldRenderTaxIdInput-2572bf77.js';
|
|
8
8
|
import { c as classes } from './classes-0d95c529.js';
|
|
9
9
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
10
10
|
import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
|
|
11
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
12
|
-
import './debounce-
|
|
13
|
-
import './isDarkColor-
|
|
11
|
+
import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
|
|
12
|
+
import './debounce-efc0e473.js';
|
|
13
|
+
import './isDarkColor-3537021b.js';
|
|
14
14
|
import './ShortAddressCode-7620e622.js';
|
|
15
15
|
|
|
16
16
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--company-name-input.sc-zonos-address,.sc-zonos-address-h .zonos--tax-id-input.sc-zonos-address,.sc-zonos-address-h .zonos--short-address-code-input.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
+
import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import './VarianceTest-572cecf5.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
+
import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import './VarianceTest-572cecf5.js';
|
|
5
5
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
+
import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
|
|
3
3
|
import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
5
|
+
import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
|
|
6
6
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
7
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
7
|
+
import { i as isDarkColor } from './isDarkColor-3537021b.js';
|
|
8
8
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
9
9
|
import './VarianceTest-572cecf5.js';
|
|
10
10
|
|
|
@@ -27,7 +27,7 @@ const isElementUsingDarkTheme = (element) => isDarkColor(window
|
|
|
27
27
|
.getComputedStyle(element)
|
|
28
28
|
.getPropertyValue('--zonos-elements-gray-0'));
|
|
29
29
|
|
|
30
|
-
const zonosButtonCss = ":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{display:-ms-inline-flexbox;display:inline-flex;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:var(--zonos--font-weight, 500);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--zonos--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--zonos--color, var(--zonos-elements-gray-1000));margin:1px
|
|
30
|
+
const zonosButtonCss = ":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{display:-ms-inline-flexbox;display:inline-flex;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:var(--zonos--font-weight, 500);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--zonos--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--zonos--color, var(--zonos-elements-gray-1000));margin:1px}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button{}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--zonos--background-color, var(--zonos-elements-gray-0));color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:1px solid var(--zonos--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:rgba(0, 0, 0, 0.1)}:host button:not(.override-background).subtle:not([disabled]):active{background:rgba(0, 0, 0, 0.2)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-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;border-radius:var(--zonos-elements-radius-4);width:24px}";
|
|
31
31
|
const ZonosButtonStyle0 = zonosButtonCss;
|
|
32
32
|
|
|
33
33
|
const ZonosButton = class {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement, d as createEvent } from './index-cfd394c8.js';
|
|
2
|
+
import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
5
|
-
import { b as stripeStore, t as trackConversionEvent } from './cart-
|
|
6
|
-
import { s as storageStore } from './localization-
|
|
4
|
+
import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
|
|
5
|
+
import { b as stripeStore, t as trackConversionEvent } from './cart-efb30253.js';
|
|
6
|
+
import { s as storageStore } from './localization-c1aff677.js';
|
|
7
7
|
import { l as logError } from './handleFetch-a844cac1.js';
|
|
8
|
-
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-
|
|
8
|
+
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-06b67be0.js';
|
|
9
9
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
10
|
-
import './isDarkColor-
|
|
11
|
-
import './isContrastColor-
|
|
10
|
+
import './isDarkColor-3537021b.js';
|
|
11
|
+
import './isContrastColor-c17e83c9.js';
|
|
12
|
+
import './submitGtag-13de9f1f.js';
|
|
12
13
|
|
|
13
14
|
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
15
|
const ZonosCardStyle0 = zonosCardCss;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
import { d as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, b as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-
|
|
3
|
-
import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-
|
|
4
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
5
|
-
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-
|
|
1
|
+
import { r as registerInstance, e as getAssetPath, h, a as Host, F as Fragment, d as createEvent, g as getElement } from './index-cfd394c8.js';
|
|
2
|
+
import { d as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, b as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-efb30253.js';
|
|
3
|
+
import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-c1aff677.js';
|
|
4
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-910fea67.js';
|
|
5
|
+
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-5f7856f2.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
|
-
import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-
|
|
8
|
-
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-
|
|
9
|
-
import {
|
|
7
|
+
import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
|
|
8
|
+
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-565ddbe5.js';
|
|
9
|
+
import { c as paypalStoreReset, a as paypalStore } from './paypal-06b67be0.js';
|
|
10
10
|
import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
11
11
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
12
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
12
|
+
import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
|
|
13
13
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
14
|
+
import { s as submitGtag } from './submitGtag-13de9f1f.js';
|
|
14
15
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
15
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
16
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
17
|
-
import { g as getContrastColor } from './getContrastColor-
|
|
16
|
+
import { p as placeTestOrder } from './placeTestOrder-6c9a6c8a.js';
|
|
17
|
+
import { i as isDarkColor } from './isDarkColor-3537021b.js';
|
|
18
|
+
import { g as getContrastColor } from './getContrastColor-98f0d1d5.js';
|
|
18
19
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
19
|
-
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-
|
|
20
|
+
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-b9f7e982.js';
|
|
20
21
|
import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
|
|
21
22
|
import { s as shouldRenderShortAddressCodeInput, a as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-2572bf77.js';
|
|
22
23
|
import { e as euCountryCodes } from './TaxId-50d72254.js';
|
|
23
|
-
import './isContrastColor-
|
|
24
|
-
import './debounce-
|
|
24
|
+
import './isContrastColor-c17e83c9.js';
|
|
25
|
+
import './debounce-efc0e473.js';
|
|
25
26
|
import './ShortAddressCode-7620e622.js';
|
|
26
27
|
|
|
27
28
|
const zonosCartItemsCss = ":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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--cart-table td{vertical-align:top}:host .zonos--cart-item-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}:host .zonos--cart-item-name .zonos--cart-item-quantity>*{display:inline-block}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px}";
|
|
@@ -355,6 +356,56 @@ const ZonosCheckoutFinish = class {
|
|
|
355
356
|
order: json,
|
|
356
357
|
};
|
|
357
358
|
};
|
|
359
|
+
/**
|
|
360
|
+
* Metadata for purchase event in GA4
|
|
361
|
+
*/
|
|
362
|
+
this.buildPurchaseMetadata = ({ checkoutSessionId, currency, }) => {
|
|
363
|
+
var _a, _b, _c, _d, _e, _f;
|
|
364
|
+
const items = cartStore.items
|
|
365
|
+
.filter(item => item.amount >= 0)
|
|
366
|
+
.map(item => ({
|
|
367
|
+
item_id: item.sku || item.productId || item.name,
|
|
368
|
+
item_name: item.name,
|
|
369
|
+
price: item.amount,
|
|
370
|
+
quantity: item.quantity,
|
|
371
|
+
}));
|
|
372
|
+
/**
|
|
373
|
+
* The value of this parameter should be the sum of all item amounts in the transaction (without shipping and tax).
|
|
374
|
+
* @ref https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag#parameters_22
|
|
375
|
+
*/
|
|
376
|
+
const subtotal = ((_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.subtotals.items) ||
|
|
377
|
+
((_b = this.order) === null || _b === void 0 ? void 0 : _b.amountSubtotals.items);
|
|
378
|
+
const currencyCode = ((_c = cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.subtotals.presentmentCurrencyCode) ||
|
|
379
|
+
((_d = this.order) === null || _d === void 0 ? void 0 : _d.currencyCode) ||
|
|
380
|
+
(currency === null || currency === void 0 ? void 0 : currency.toUpperCase());
|
|
381
|
+
// Cart subtotal amount, can be different on the final checkout session/payment intent, therefore only use it if the order/checkout session can not be found.
|
|
382
|
+
const cartSubtotal = items.reduce((acc, item) => acc + item.price * item.quantity, 0);
|
|
383
|
+
const cartCurrency = (_e = cartStore.items.find(Boolean)) === null || _e === void 0 ? void 0 : _e.currencyCode;
|
|
384
|
+
const transactionId = ((_f = this.order) === null || _f === void 0 ? void 0 : _f.id) || checkoutSessionId || new Date().getTime().toString();
|
|
385
|
+
if (currencyCode && subtotal) {
|
|
386
|
+
return {
|
|
387
|
+
currency: currencyCode,
|
|
388
|
+
items,
|
|
389
|
+
transaction_id: transactionId,
|
|
390
|
+
value: subtotal,
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
// Use cart currency and subtotal if the order/checkout session can not be found
|
|
394
|
+
if (cartCurrency && cartSubtotal) {
|
|
395
|
+
return {
|
|
396
|
+
currency: cartCurrency,
|
|
397
|
+
items,
|
|
398
|
+
transaction_id: transactionId,
|
|
399
|
+
value: cartSubtotal,
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
return {
|
|
403
|
+
currency: undefined,
|
|
404
|
+
items,
|
|
405
|
+
transaction_id: transactionId,
|
|
406
|
+
value: undefined,
|
|
407
|
+
};
|
|
408
|
+
};
|
|
358
409
|
this.redirectToUrl = (url) => {
|
|
359
410
|
// reset store and checkout session id before redirecting
|
|
360
411
|
stripeStoreReset();
|
|
@@ -537,7 +588,7 @@ const ZonosCheckoutFinish = class {
|
|
|
537
588
|
this.checkStripePaymentStatus = async () => {
|
|
538
589
|
const clientSecret = new URLSearchParams(window.location.search).get('payment_intent_client_secret') || stripeStore.clientSecret;
|
|
539
590
|
if (clientSecret || this.storybookForceStatus) {
|
|
540
|
-
const { error, messages, status } = await stripeStoreRetrievePayment({
|
|
591
|
+
const { currency, error, messages, status } = await stripeStoreRetrievePayment({
|
|
541
592
|
clientSecret,
|
|
542
593
|
storybookForceStatus: this.storybookForceStatus,
|
|
543
594
|
});
|
|
@@ -563,7 +614,12 @@ const ZonosCheckoutFinish = class {
|
|
|
563
614
|
window.history.replaceState({}, '', url.toString());
|
|
564
615
|
// Payment doesn't go through
|
|
565
616
|
if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
|
|
566
|
-
submitGtag(
|
|
617
|
+
submitGtag({
|
|
618
|
+
event: 'zonos-checkout-payment-fail',
|
|
619
|
+
metadata: {
|
|
620
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
621
|
+
},
|
|
622
|
+
});
|
|
567
623
|
void sendErrorLog({
|
|
568
624
|
endpoint: 'Stripe payment failed',
|
|
569
625
|
errors: [
|
|
@@ -578,8 +634,21 @@ const ZonosCheckoutFinish = class {
|
|
|
578
634
|
else {
|
|
579
635
|
// Save new order info in case the user reloads before we get order info
|
|
580
636
|
this.saveOrderIdForDuplicationIssue();
|
|
581
|
-
submitGtag('zonos-checkout-success');
|
|
582
637
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
638
|
+
submitGtag({
|
|
639
|
+
event: 'zonos-checkout-success',
|
|
640
|
+
metadata: this.buildPurchaseMetadata({
|
|
641
|
+
checkoutSessionId: checkoutSessionId || '',
|
|
642
|
+
currency: currency === null || currency === void 0 ? void 0 : currency.toUpperCase(),
|
|
643
|
+
}),
|
|
644
|
+
});
|
|
645
|
+
submitGtag({
|
|
646
|
+
event: 'purchase',
|
|
647
|
+
metadata: this.buildPurchaseMetadata({
|
|
648
|
+
checkoutSessionId: checkoutSessionId || '',
|
|
649
|
+
currency: currency === null || currency === void 0 ? void 0 : currency.toUpperCase(),
|
|
650
|
+
}),
|
|
651
|
+
});
|
|
583
652
|
void trackConversionEvent({
|
|
584
653
|
checkoutSessionId,
|
|
585
654
|
eventName: 'checkout_orderCompleted',
|
|
@@ -625,7 +694,18 @@ const ZonosCheckoutFinish = class {
|
|
|
625
694
|
// show success message right away when order id is already created
|
|
626
695
|
this.isLoading = false;
|
|
627
696
|
if (paypalStore.orderIdCreated) {
|
|
628
|
-
submitGtag(
|
|
697
|
+
submitGtag({
|
|
698
|
+
event: 'zonos-checkout-success',
|
|
699
|
+
metadata: this.buildPurchaseMetadata({
|
|
700
|
+
checkoutSessionId: storageStore.checkoutSessionId || '',
|
|
701
|
+
}),
|
|
702
|
+
});
|
|
703
|
+
submitGtag({
|
|
704
|
+
event: 'purchase',
|
|
705
|
+
metadata: this.buildPurchaseMetadata({
|
|
706
|
+
checkoutSessionId: storageStore.checkoutSessionId || '',
|
|
707
|
+
}),
|
|
708
|
+
});
|
|
629
709
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
630
710
|
void trackConversionEvent({
|
|
631
711
|
checkoutSessionId,
|
|
@@ -687,11 +767,11 @@ const ZonosCheckoutFinish = class {
|
|
|
687
767
|
}
|
|
688
768
|
render() {
|
|
689
769
|
const isTestMode = getIsTestMode();
|
|
690
|
-
return (h(Host, { key: '
|
|
770
|
+
return (h(Host, { key: '80a543fca5dbc63dde41806702b2f6dd4fa849ab', class: "zonos--checkout-finish zonos--elements", style: {
|
|
691
771
|
'--zonos--border-radius': getBorderRadius({
|
|
692
772
|
overrideBorderStyle: this.borderRadius,
|
|
693
773
|
}),
|
|
694
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
774
|
+
} }, !this.isLoading && (h("div", { key: '6cab293041902e156563f37db6f0e77caaeeaaf9', class: "zonos--finish-details" }, h("div", { key: '6bf32844fa9d38eae6e9f337e56b7918e49bf793', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'bf13e59b7bc2380609ffba879fa2b1d8c5d9a9e0', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: 'c246affb94a9799e0c556affb73b2ebfb69a9c7f', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: '61fa4fa0e09c0ce2905281b2696f42172c7a2bcd',
|
|
695
775
|
// Only show loading spinner if it's not an error notification
|
|
696
776
|
loading: this.isWaitingToRedirect &&
|
|
697
777
|
this.notificationType !== 'error', onClick: () => {
|
|
@@ -703,9 +783,9 @@ const ZonosCheckoutFinish = class {
|
|
|
703
783
|
}
|
|
704
784
|
this.closeClickHandler();
|
|
705
785
|
}, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
|
|
706
|
-
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '
|
|
786
|
+
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '9227d7832ed477be556cb6d59c644a74c293c740', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
|
|
707
787
|
cartStore.step === 'finish' &&
|
|
708
|
-
this.notificationType === 'success' && (h("div", { key: '
|
|
788
|
+
this.notificationType === 'success' && (h("div", { key: '9107be1ef7895b0a5e3fe0a985036a11de7011d3', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: 'b0de8743bea8dd9ac7099bd5b77811f80d80a380', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'f90749b9af4c17eac554efb6d3d12cc41ac6e3c8', onClick: () => {
|
|
709
789
|
const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
|
|
710
790
|
this.redirectToUrl(isZonosDashboard
|
|
711
791
|
? '/orders/all'
|
|
@@ -823,7 +903,7 @@ const ZonosCheckoutPayment = class {
|
|
|
823
903
|
* handler for continue button click
|
|
824
904
|
*/
|
|
825
905
|
this.continueClickHandler = async ({ currencyCode, }) => {
|
|
826
|
-
var _a;
|
|
906
|
+
var _a, _b;
|
|
827
907
|
if (!this.handleValidate()) {
|
|
828
908
|
this.showErrorBanner = true;
|
|
829
909
|
// Attempt to submit the form so the missing input error will be shown in Stripe
|
|
@@ -838,7 +918,13 @@ const ZonosCheckoutPayment = class {
|
|
|
838
918
|
}
|
|
839
919
|
stripeStore.checkoutSettlementCurrency = currencyCode;
|
|
840
920
|
// submit google tag when the form is complete
|
|
841
|
-
submitGtag(
|
|
921
|
+
submitGtag({
|
|
922
|
+
event: 'zonos-checkout-payment-info',
|
|
923
|
+
metadata: {
|
|
924
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
925
|
+
paymentMethod: (_b = stripeStore.stripePaymentEventData) === null || _b === void 0 ? void 0 : _b.value.type,
|
|
926
|
+
},
|
|
927
|
+
});
|
|
842
928
|
this.continueClicked.emit();
|
|
843
929
|
};
|
|
844
930
|
this.copyCardToClipboard = async (cardNumber) => {
|
|
@@ -1945,20 +2031,26 @@ const ZonosShipping = class {
|
|
|
1945
2031
|
* handler for continue button click
|
|
1946
2032
|
*/
|
|
1947
2033
|
this.continueClickHandler = () => {
|
|
1948
|
-
var _a;
|
|
2034
|
+
var _a, _b;
|
|
1949
2035
|
// show error banner if the form is not complete
|
|
1950
2036
|
if (!this.handleValidate()) {
|
|
1951
2037
|
this.showErrorBanner = true;
|
|
1952
2038
|
return;
|
|
1953
2039
|
}
|
|
1954
2040
|
// submit google tag when the form is complete
|
|
1955
|
-
submitGtag(
|
|
2041
|
+
submitGtag({
|
|
2042
|
+
event: 'zonos-checkout-shipping-info',
|
|
2043
|
+
metadata: {
|
|
2044
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
2045
|
+
serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
|
|
2046
|
+
},
|
|
2047
|
+
});
|
|
1956
2048
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
1957
2049
|
void trackConversionEvent({
|
|
1958
2050
|
checkoutSessionId,
|
|
1959
2051
|
eventName: 'checkout_shippingInfoCompleted',
|
|
1960
2052
|
metadata: {
|
|
1961
|
-
serviceLevelId: (
|
|
2053
|
+
serviceLevelId: (_b = this.selectedShippingMethod) === null || _b === void 0 ? void 0 : _b.value,
|
|
1962
2054
|
},
|
|
1963
2055
|
});
|
|
1964
2056
|
this.showErrorBanner = false;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { r as registerInstance, h, F as Fragment,
|
|
2
|
-
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as cartStoreOnChange } from './cart-
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled,
|
|
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, F as Fragment, a as Host } from './index-cfd394c8.js';
|
|
2
|
+
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as cartStoreOnChange } from './cart-efb30253.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, a as paypalStore, b as paypalInitScript } from './paypal-06b67be0.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-c1aff677.js';
|
|
5
|
+
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-5242a58d.js';
|
|
6
6
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
7
7
|
import { h as handleFetch, b as getAdditionalLogMetadata, g as getIsTestMode, l as logError, j as jsonParse, s as sendErrorLog, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
|
|
8
|
-
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-
|
|
8
|
+
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-b9f7e982.js';
|
|
9
9
|
import { _ as _getIsValidCartId, c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector, d as domesticRedirectedBtnSelector, g as getAbandonedCartRenewTokenValue } from './CheckoutConfig-724d7bae.js';
|
|
10
10
|
import { l as log, g as getElapsedTime, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
11
11
|
import { c as classes } from './classes-0d95c529.js';
|
|
12
12
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
13
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
14
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
13
|
+
import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
|
|
14
|
+
import { i as isDarkColor } from './isDarkColor-3537021b.js';
|
|
15
15
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
16
|
+
import { s as submitGtag } from './submitGtag-13de9f1f.js';
|
|
16
17
|
import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
|
|
17
|
-
import './isContrastColor-
|
|
18
|
-
import './debounce-
|
|
18
|
+
import './isContrastColor-c17e83c9.js';
|
|
19
|
+
import './debounce-efc0e473.js';
|
|
19
20
|
|
|
20
21
|
/**
|
|
21
22
|
* Check if store discount is enabled
|
|
@@ -909,7 +910,12 @@ const ZonosCheckout = class {
|
|
|
909
910
|
}
|
|
910
911
|
// Close the confirm dialog
|
|
911
912
|
this.confirmDialogOpen = false;
|
|
912
|
-
submitGtag(
|
|
913
|
+
submitGtag({
|
|
914
|
+
event: 'zonos-checkout-close',
|
|
915
|
+
metadata: {
|
|
916
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
917
|
+
},
|
|
918
|
+
});
|
|
913
919
|
this.open = this.forceDialogOpen || false;
|
|
914
920
|
if (!this.preview && cartStore.step === 'finish') {
|
|
915
921
|
// reset cart store if it's not preview mode and only when checkout is in the finish step.
|
|
@@ -1195,7 +1201,12 @@ const ZonosCheckout = class {
|
|
|
1195
1201
|
isPreview: this.preview,
|
|
1196
1202
|
sessionTimeout: CHECKOUT_SESSION_TIMEOUT,
|
|
1197
1203
|
});
|
|
1198
|
-
submitGtag(
|
|
1204
|
+
submitGtag({
|
|
1205
|
+
event: 'zonos-checkout-start',
|
|
1206
|
+
metadata: {
|
|
1207
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
1208
|
+
},
|
|
1209
|
+
});
|
|
1199
1210
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
1200
1211
|
void trackConversionEvent({
|
|
1201
1212
|
checkoutSessionId,
|
|
@@ -1516,7 +1527,12 @@ const ZonosCheckout = class {
|
|
|
1516
1527
|
async handleCustomerInfoContinue() {
|
|
1517
1528
|
var _a, _b, _c, _d;
|
|
1518
1529
|
// submit google tag when the form is complete
|
|
1519
|
-
submitGtag(
|
|
1530
|
+
submitGtag({
|
|
1531
|
+
event: 'zonos-checkout-customer-info',
|
|
1532
|
+
metadata: {
|
|
1533
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
1534
|
+
},
|
|
1535
|
+
});
|
|
1520
1536
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
1521
1537
|
void trackConversionEvent({
|
|
1522
1538
|
checkoutSessionId,
|
|
@@ -1655,7 +1671,12 @@ const ZonosCheckout = class {
|
|
|
1655
1671
|
}
|
|
1656
1672
|
catch (err) {
|
|
1657
1673
|
logError(err);
|
|
1658
|
-
submitGtag(
|
|
1674
|
+
submitGtag({
|
|
1675
|
+
event: 'zonos-checkout-payment-fail',
|
|
1676
|
+
metadata: {
|
|
1677
|
+
checkoutSessionId: storageStore.checkoutSessionId,
|
|
1678
|
+
},
|
|
1679
|
+
});
|
|
1659
1680
|
stripeStore.hasPaymentError = true;
|
|
1660
1681
|
// should request inventory refund if there's an error during payment
|
|
1661
1682
|
if (stripeStore.shouldInventoryRefund) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h,
|
|
2
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
+
import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
|
|
3
3
|
import './VarianceTest-572cecf5.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}";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
import { d as cartStore } from './cart-
|
|
3
|
-
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-
|
|
4
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, e as getAssetPath, h, a as Host } from './index-cfd394c8.js';
|
|
2
|
+
import { d as cartStore } from './cart-efb30253.js';
|
|
3
|
+
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-5f7856f2.js';
|
|
4
|
+
import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
7
|
-
import './localization-
|
|
7
|
+
import './localization-c1aff677.js';
|
|
8
8
|
import './handleFetch-a844cac1.js';
|
|
9
9
|
import './VarianceTest-572cecf5.js';
|
|
10
|
-
import './isDarkColor-
|
|
11
|
-
import './getBorderRadius-
|
|
10
|
+
import './isDarkColor-3537021b.js';
|
|
11
|
+
import './getBorderRadius-c21a42e5.js';
|
|
12
12
|
|
|
13
13
|
const zonosCollectCartItemsCss = ":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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";
|
|
14
14
|
const ZonosCollectCartItemsStyle0 = zonosCollectCartItemsCss;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { r as registerInstance,
|
|
2
|
-
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, y as stripeStoreReset, I as stripeStoreMessageBasedOnStatus, d as cartStore, r as cartStoreNextStep, z as cartStoreOnChange } from './cart-
|
|
3
|
-
import {
|
|
4
|
-
import { t as translate, s as storageStore, l as localizationStore, p as translationStoreOnChange } from './localization-
|
|
5
|
-
import { z as zonosStore } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, d as createEvent, h, F as Fragment, a as Host, g as getElement } from './index-cfd394c8.js';
|
|
2
|
+
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, y as stripeStoreReset, I as stripeStoreMessageBasedOnStatus, d as cartStore, r as cartStoreNextStep, z as cartStoreOnChange } from './cart-efb30253.js';
|
|
3
|
+
import { c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-06b67be0.js';
|
|
4
|
+
import { t as translate, s as storageStore, l as localizationStore, p as translationStoreOnChange } from './localization-c1aff677.js';
|
|
5
|
+
import { z as zonosStore } from './zonosStore-5242a58d.js';
|
|
6
6
|
import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
7
7
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
8
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
8
|
+
import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
|
|
9
9
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
10
|
-
import {
|
|
10
|
+
import { s as submitGtag } from './submitGtag-13de9f1f.js';
|
|
11
|
+
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-0bcba25a.js';
|
|
11
12
|
import { c as classes } from './classes-0d95c529.js';
|
|
12
13
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
13
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
14
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
15
|
-
import { r as renderFallback } from './renderFallback-
|
|
16
|
-
import './isDarkColor-
|
|
17
|
-
import './isContrastColor-
|
|
14
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-910fea67.js';
|
|
15
|
+
import { p as placeTestOrder } from './placeTestOrder-6c9a6c8a.js';
|
|
16
|
+
import { r as renderFallback } from './renderFallback-b250f4e9.js';
|
|
17
|
+
import './isDarkColor-3537021b.js';
|
|
18
|
+
import './isContrastColor-c17e83c9.js';
|
|
18
19
|
|
|
19
20
|
const RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-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" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
20
21
|
|
|
@@ -153,7 +154,7 @@ const ZonosCollectFinish = class {
|
|
|
153
154
|
window.history.replaceState({}, '', url.toString());
|
|
154
155
|
// Payment doesn't go through
|
|
155
156
|
if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
|
|
156
|
-
submitGtag('zonos-checkout-payment-fail');
|
|
157
|
+
submitGtag({ event: 'zonos-checkout-payment-fail' });
|
|
157
158
|
void sendErrorLog({
|
|
158
159
|
endpoint: 'Stripe payment failed',
|
|
159
160
|
errors: [
|
|
@@ -166,7 +167,7 @@ const ZonosCollectFinish = class {
|
|
|
166
167
|
});
|
|
167
168
|
}
|
|
168
169
|
else {
|
|
169
|
-
submitGtag('zonos-checkout-success');
|
|
170
|
+
submitGtag({ event: 'zonos-checkout-success' });
|
|
170
171
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
171
172
|
void trackConversionEvent({
|
|
172
173
|
checkoutSessionId,
|
|
@@ -211,7 +212,7 @@ const ZonosCollectFinish = class {
|
|
|
211
212
|
// show success message right away when order id is already created
|
|
212
213
|
this.isLoading = false;
|
|
213
214
|
if (paypalStore.orderIdCreated) {
|
|
214
|
-
submitGtag('zonos-checkout-success');
|
|
215
|
+
submitGtag({ event: 'zonos-checkout-success' });
|
|
215
216
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
216
217
|
void trackConversionEvent({
|
|
217
218
|
checkoutSessionId,
|
|
@@ -267,11 +268,11 @@ const ZonosCollectFinish = class {
|
|
|
267
268
|
}
|
|
268
269
|
render() {
|
|
269
270
|
const cartId = window.Zonos.cartId;
|
|
270
|
-
return (h(Host, { key: '
|
|
271
|
+
return (h(Host, { key: 'c085862ecf1f50752634fb44f99b5cb5d82a9e24', class: "zonos--checkout-finish zonos--elements", style: {
|
|
271
272
|
'--zonos--border-radius': getBorderRadius({
|
|
272
273
|
overrideBorderStyle: this.borderRadius,
|
|
273
274
|
}),
|
|
274
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
275
|
+
} }, !this.isLoading && (h("div", { key: '9b30b12c817c3422b355a2f544bbf2908f736c80', class: "zonos--finish-details" }, h("div", { key: '697fff3258a6e74d99500ec25f5d3923f8c7cfc2', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '8457c0c9b22c2fb6374b60e492099981026d2690', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: '21ab18878abb37a2c37d873c494d71aee3d4ed71', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: '389918dd57e6ce5744b7192baa3c06c6db3f70cd', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: 'cca6b625a6bea62b788cf8dd6bb9e03e6505d81c', class: "zonos--button-container" }, h("zonos-button", { key: '0f45987515ae99045e5b449b5b1aaae11d70d9fb', onClick: () => {
|
|
275
276
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
276
277
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
277
278
|
}
|
|
@@ -493,7 +494,7 @@ const ZonosCollectPayment = class {
|
|
|
493
494
|
}
|
|
494
495
|
stripeStore.checkoutSettlementCurrency = currencyCode;
|
|
495
496
|
// submit google tag when the form is complete
|
|
496
|
-
submitGtag('zonos-checkout-payment-info');
|
|
497
|
+
submitGtag({ event: 'zonos-checkout-payment-info' });
|
|
497
498
|
this.continueClicked.emit();
|
|
498
499
|
};
|
|
499
500
|
this.copyCardToClipboard = async (cardNumber) => {
|