@zonos/elements 1.3.261 → 1.3.263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-d08c87e2.js → cart-02a93797.js} +4 -4
- package/dist/cjs/{debounce-3e17b4e9.js → debounce-606d1801.js} +1 -1
- package/dist/cjs/{getBorderRadius-db55a464.js → getBorderRadius-a91911e7.js} +1 -1
- package/dist/cjs/{getContrastColor-8ed1cb48.js → getContrastColor-68058615.js} +2 -2
- package/dist/cjs/{hasInclusivePrice-c781c336.js → hasInclusivePrice-751ef38b.js} +1 -1
- package/dist/cjs/index.cjs.js +12 -9
- package/dist/cjs/{invoice-e64f97c6.js → invoice-215b8d2b.js} +3 -3
- package/dist/cjs/{isCollectMobileTablet-9675485f.js → isCollectMobileTablet-0d909501.js} +3 -3
- package/dist/cjs/{isContrastColor-6a17f408.js → isContrastColor-a02c4889.js} +1 -1
- package/dist/cjs/{isDarkColor-bfe6d1eb.js → isDarkColor-e317bb06.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-a7fac4b4.js → localization-68ebf7c6.js} +1 -1
- package/dist/cjs/{paypal-73a542cb.js → paypal-f8a0cca3.js} +144 -10
- package/dist/cjs/{placeTestOrder-aefd31e8.js → placeTestOrder-ce734b60.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-a374741a.js → renderCheckoutCurrency-d163c1c4.js} +2 -2
- package/dist/cjs/submitGtag-07a3b09e.js +167 -0
- package/dist/cjs/{throttle-dac93461.js → throttle-8aebac7d.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-a3776bb0.js → updateCheckoutSessionAttributes-a9a97194.js} +1 -1
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +7 -7
- package/dist/cjs/zonos-address_4.cjs.entry.js +7 -7
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +8 -8
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +42 -33
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +15 -15
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +17 -17
- package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
- package/dist/cjs/zonos-controller.cjs.entry.js +8 -8
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -11
- package/dist/cjs/zonos-hello.cjs.entry.js +46 -14
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +17 -17
- package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-store-credit.cjs.entry.js +6 -6
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-1c517e55.js → zonosStore-0662b95f.js} +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +12 -12
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +7 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +6 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +7 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +7 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +6 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +6 -6
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +6 -6
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +2 -2
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +23 -15
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +45 -10
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +10 -8
- package/dist/collection/components/main/zonos-controller.js +2 -2
- package/dist/collection/components/store/checkout/paypal.js +4 -4
- package/dist/collection/components/store/zonosStore.js +1 -0
- package/dist/collection/components/utils/analytics/analyticsRelayState.js +112 -0
- package/dist/collection/components/utils/analytics/mapToFbEvent.js +66 -0
- package/dist/collection/components/utils/hello/getHelloWidgetSize.js +22 -0
- package/dist/collection/components/utils/submitAnalytics.js +16 -0
- package/dist/collection/components/utils/submitFbq.js +56 -0
- package/dist/collection/components/utils/submitGtag.js +15 -78
- package/dist/collection/scripts/_zonosBase.js +5 -2
- package/dist/collection/types/analyticsRelay.js +2 -2
- package/dist/collection/types/generated/graphql.internal.types.js +67 -1
- package/dist/esm/{cart-c490d252.js → cart-34b11708.js} +4 -4
- package/dist/esm/{debounce-8faafc9f.js → debounce-ab526ca0.js} +1 -1
- package/dist/esm/{getBorderRadius-66de1b16.js → getBorderRadius-98c64be8.js} +1 -1
- package/dist/esm/{getContrastColor-e14f95a7.js → getContrastColor-2340485f.js} +2 -2
- package/dist/esm/{hasInclusivePrice-7a0ce66a.js → hasInclusivePrice-dfb21fc9.js} +1 -1
- package/dist/esm/index.js +12 -9
- package/dist/esm/{invoice-3ea5715b.js → invoice-6d8bdf21.js} +3 -3
- package/dist/esm/{isCollectMobileTablet-0dcbd45a.js → isCollectMobileTablet-85403c93.js} +3 -3
- package/dist/esm/{isContrastColor-f9e65e70.js → isContrastColor-6bad285e.js} +1 -1
- package/dist/esm/{isDarkColor-8092a9fb.js → isDarkColor-0a8453e7.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-542dbe20.js → localization-2e523b35.js} +1 -1
- package/dist/esm/{paypal-38ca5d21.js → paypal-d3b3d967.js} +145 -12
- package/dist/esm/{placeTestOrder-d7001709.js → placeTestOrder-e1d6dfcd.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-75f1bba3.js → renderCheckoutCurrency-cc72a6c2.js} +2 -2
- package/dist/esm/submitGtag-ae9d5d91.js +162 -0
- package/dist/esm/{throttle-5a66b4fd.js → throttle-882b1f47.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-8f3f932e.js → updateCheckoutSessionAttributes-da7fdd37.js} +1 -1
- package/dist/esm/zonos-address-display_8.entry.js +7 -7
- package/dist/esm/zonos-address_4.entry.js +7 -7
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +8 -8
- package/dist/esm/zonos-cart-items_12.entry.js +42 -33
- package/dist/esm/zonos-checkbox_2.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +15 -15
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
- package/dist/esm/zonos-collect-finish_6.entry.js +17 -17
- package/dist/esm/zonos-collect.entry.js +9 -9
- package/dist/esm/zonos-controller.entry.js +8 -8
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +3 -3
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +13 -11
- package/dist/esm/zonos-hello.entry.js +46 -14
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +7 -7
- package/dist/esm/zonos-invoice-finish_5.entry.js +17 -17
- package/dist/esm/zonos-invoice.entry.js +9 -9
- package/dist/esm/zonos-language-select_2.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-store-credit.entry.js +6 -6
- package/dist/esm/zonos-stripe-input.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-f1d45eac.js → zonosStore-9662b071.js} +1 -0
- package/dist/esm-es5/{cart-c490d252.js → cart-34b11708.js} +1 -1
- package/dist/esm-es5/{debounce-8faafc9f.js → debounce-ab526ca0.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-66de1b16.js → getBorderRadius-98c64be8.js} +1 -1
- package/dist/esm-es5/{getContrastColor-e14f95a7.js → getContrastColor-2340485f.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-7a0ce66a.js → hasInclusivePrice-dfb21fc9.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-3ea5715b.js → invoice-6d8bdf21.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-0dcbd45a.js → isCollectMobileTablet-85403c93.js} +1 -1
- package/dist/esm-es5/{isContrastColor-f9e65e70.js → isContrastColor-6bad285e.js} +1 -1
- package/dist/esm-es5/{isDarkColor-8092a9fb.js → isDarkColor-0a8453e7.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-542dbe20.js → localization-2e523b35.js} +1 -1
- package/dist/esm-es5/paypal-d3b3d967.js +17 -0
- package/dist/esm-es5/{placeTestOrder-d7001709.js → placeTestOrder-e1d6dfcd.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-75f1bba3.js → renderCheckoutCurrency-cc72a6c2.js} +1 -1
- package/dist/esm-es5/submitGtag-ae9d5d91.js +1 -0
- package/dist/esm-es5/{throttle-5a66b4fd.js → throttle-882b1f47.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-8f3f932e.js → updateCheckoutSessionAttributes-da7fdd37.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-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-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-f1d45eac.js → zonosStore-9662b071.js} +1 -1
- package/dist/scripts/analyticsRelayOnInit.js +1 -1
- package/dist/scripts/index.d.ts +42 -15
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +8 -1
- package/dist/types/components/utils/analytics/analyticsRelayState.d.ts +43 -0
- package/dist/types/components/utils/analytics/mapToFbEvent.d.ts +11 -0
- package/dist/types/components/utils/hello/getHelloWidgetSize.d.ts +15 -0
- package/dist/types/components/utils/submitAnalytics.d.ts +12 -0
- package/dist/types/components/utils/submitFbq.d.ts +14 -0
- package/dist/types/components/utils/submitGtag.d.ts +4 -9
- package/dist/types/components.d.ts +10 -2
- package/dist/types/scripts/_zonosBase.d.ts +11 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +8 -7
- package/dist/types/types/analyticsRelay.d.ts +19 -3
- package/dist/types/types/generated/graphql.internal.types.d.ts +100 -20
- package/dist/types/types/generated/graphql.internal.types.ts +118 -20
- package/dist/types/types/hello/HelloConfig.d.ts +5 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-53fe581b.system.js → p-0207c91e.system.js} +1 -1
- package/dist/zonos-elements/{p-6726fee0.entry.js → p-024a4af5.entry.js} +1 -1
- package/dist/zonos-elements/p-06d8f294.entry.js +1 -0
- package/dist/zonos-elements/{p-a1142a95.entry.js → p-07c228a7.entry.js} +1 -1
- package/dist/zonos-elements/p-0f3b9ed7.entry.js +1 -0
- package/dist/zonos-elements/{p-ed827ca3.entry.js → p-15161658.entry.js} +1 -1
- package/dist/zonos-elements/{p-9262a57c.system.entry.js → p-17b6f9ff.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf4d2299.system.entry.js → p-191661c6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2c9714e8.system.entry.js → p-1b5d90ee.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-43a6e469.system.js → p-1bf9a1b9.system.js} +1 -1
- package/dist/zonos-elements/{p-a8bb461c.js → p-1c1149ff.js} +1 -1
- package/dist/zonos-elements/{p-e749fb81.entry.js → p-1cc651e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-e684e68f.entry.js → p-1f107c84.entry.js} +1 -1
- package/dist/zonos-elements/{p-34fc45e5.entry.js → p-1fb6b787.entry.js} +1 -1
- package/dist/zonos-elements/{p-4cee62fb.entry.js → p-20e1a5a0.entry.js} +1 -1
- package/dist/zonos-elements/{p-d7a9be55.system.js → p-227a1ecc.system.js} +1 -1
- package/dist/zonos-elements/p-22a8b44b.system.js +1 -0
- package/dist/zonos-elements/{p-55742c52.entry.js → p-235ee1d3.entry.js} +1 -1
- package/dist/zonos-elements/{p-ef12af4b.entry.js → p-2381985c.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa74b61a.system.entry.js → p-25b5ac23.system.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-27f01d76.entry.js → p-2b40fab2.entry.js} +1 -1
- package/dist/zonos-elements/{p-f00a56be.system.entry.js → p-30b19a4e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a75b8ad7.js → p-356b2068.js} +1 -1
- package/dist/zonos-elements/p-367a72bc.js +1 -0
- package/dist/zonos-elements/{p-15ef7644.system.js → p-3689821f.system.js} +1 -1
- package/dist/zonos-elements/{p-c263f95f.entry.js → p-3ae1a543.entry.js} +1 -1
- package/dist/zonos-elements/p-3baf98a0.system.entry.js +1 -0
- package/dist/zonos-elements/{p-be1032ab.system.entry.js → p-4039b72d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1917202e.system.entry.js → p-45ceb26f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2ef0416.system.entry.js → p-47a58a38.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4980facb.js +1 -0
- package/dist/zonos-elements/p-4c89d04a.js +1 -0
- package/dist/zonos-elements/p-4d0b8897.system.js +18 -0
- package/dist/zonos-elements/{p-14f156c6.system.entry.js → p-501d16ad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a661dd45.system.entry.js → p-51c60875.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a3020bc9.entry.js → p-5290d104.entry.js} +1 -1
- package/dist/zonos-elements/{p-248bdea2.system.js → p-5496e9ae.system.js} +1 -1
- package/dist/zonos-elements/p-562fbdab.js +17 -0
- package/dist/zonos-elements/p-5834833a.entry.js +1 -0
- package/dist/zonos-elements/p-5aa86f9c.entry.js +1 -0
- package/dist/zonos-elements/{p-b2cd18b4.system.entry.js → p-5d32f10f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e25e0b4b.system.js → p-5e6f85f0.system.js} +1 -1
- package/dist/zonos-elements/{p-20263609.system.js → p-60a391b8.system.js} +1 -1
- package/dist/zonos-elements/p-65ea8ae4.js +1 -0
- package/dist/zonos-elements/{p-cdbb50cf.entry.js → p-665bfd4f.entry.js} +1 -1
- package/dist/zonos-elements/{p-b47fcd8c.system.entry.js → p-6a11cccc.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6a195559.system.js +1 -0
- package/dist/zonos-elements/p-6d81901a.js +1 -0
- package/dist/zonos-elements/{p-3ff736f7.system.entry.js → p-7003d093.system.entry.js} +1 -1
- package/dist/zonos-elements/p-70c485df.js +1 -0
- package/dist/zonos-elements/{p-8d0bca3a.system.entry.js → p-7297f6bd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d50fef06.system.entry.js → p-73765370.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dc4e867e.system.entry.js → p-79a7998f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0699931c.system.js → p-7b6e65d6.system.js} +1 -1
- package/dist/zonos-elements/{p-9e761130.entry.js → p-7e313e45.entry.js} +1 -1
- package/dist/zonos-elements/{p-e76dc266.system.entry.js → p-8331aa21.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e55bc187.entry.js → p-8571f3ce.entry.js} +1 -1
- package/dist/zonos-elements/{p-e14f421d.system.entry.js → p-8603fb37.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-072c5e07.system.entry.js → p-926c33b1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f7d24382.system.entry.js → p-92f40018.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7793d334.entry.js → p-96f8cea8.entry.js} +1 -1
- package/dist/zonos-elements/p-97f0eda6.system.js +1 -0
- package/dist/zonos-elements/{p-4a227683.system.entry.js → p-9c5cce08.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9f7e7148.system.js +1 -0
- package/dist/zonos-elements/{p-196423ad.system.js → p-a076cf7f.system.js} +1 -1
- package/dist/zonos-elements/{p-3c3139d2.system.entry.js → p-a3936c44.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5223840.js → p-a50d095f.js} +1 -1
- package/dist/zonos-elements/{p-2f924331.js → p-ab0b23f2.js} +1 -1
- package/dist/zonos-elements/{p-80e7cab5.entry.js → p-adeaa7cf.entry.js} +1 -1
- package/dist/zonos-elements/{p-0ec4e307.system.js → p-b2d462f9.system.js} +1 -1
- package/dist/zonos-elements/p-b8710131.entry.js +1 -0
- package/dist/zonos-elements/{p-c7ecef98.system.entry.js → p-ba9e2612.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5a79e1f4.entry.js → p-bccae0df.entry.js} +1 -1
- package/dist/zonos-elements/{p-f0046c48.entry.js → p-bee55d71.entry.js} +1 -1
- package/dist/zonos-elements/{p-72adb40d.js → p-c2b86522.js} +1 -1
- package/dist/zonos-elements/{p-17476a30.system.entry.js → p-c361d520.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c4d057b0.js +1 -0
- package/dist/zonos-elements/p-c9a1f774.js +1 -0
- package/dist/zonos-elements/p-cda0b441.entry.js +1 -0
- package/dist/zonos-elements/{p-f6922df5.js → p-d28be518.js} +1 -1
- package/dist/zonos-elements/{p-5beab541.js → p-db3b101a.js} +1 -1
- package/dist/zonos-elements/{p-5db00bfa.system.entry.js → p-dc71be6f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-de44cccd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-00bd7e5d.entry.js → p-e06936f4.entry.js} +1 -1
- package/dist/zonos-elements/{p-d983d472.entry.js → p-e0ea6e24.entry.js} +1 -1
- package/dist/zonos-elements/p-e3292be8.system.js +1 -0
- package/dist/zonos-elements/{p-eca03303.system.entry.js → p-e4792f63.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e5dfccd8.system.js +1 -0
- package/dist/zonos-elements/{p-313b87f3.system.entry.js → p-e98e4c0b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-61be7d98.system.js → p-eb99a625.system.js} +1 -1
- package/dist/zonos-elements/{p-ed9385f4.js → p-f3cfd8fa.js} +1 -1
- package/dist/zonos-elements/{p-ade15fd2.entry.js → p-f440cd53.entry.js} +1 -1
- package/dist/zonos-elements/{p-8df3c6a0.entry.js → p-fe5303d1.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/submitGtag-9ac5a42e.js +0 -116
- package/dist/esm/submitGtag-543058f9.js +0 -113
- package/dist/esm-es5/paypal-38ca5d21.js +0 -17
- package/dist/esm-es5/submitGtag-543058f9.js +0 -1
- package/dist/zonos-elements/p-03e53ef5.entry.js +0 -1
- package/dist/zonos-elements/p-09307a03.js +0 -1
- package/dist/zonos-elements/p-17a8a514.system.js +0 -1
- package/dist/zonos-elements/p-1916c2b0.entry.js +0 -1
- package/dist/zonos-elements/p-24407504.js +0 -17
- package/dist/zonos-elements/p-31bd3851.system.js +0 -1
- package/dist/zonos-elements/p-387f6a4d.js +0 -1
- package/dist/zonos-elements/p-47bde0ba.system.js +0 -18
- package/dist/zonos-elements/p-5dff9d51.system.entry.js +0 -1
- package/dist/zonos-elements/p-6b7beb44.system.js +0 -1
- package/dist/zonos-elements/p-7158a18b.js +0 -1
- package/dist/zonos-elements/p-721fadd5.js +0 -1
- package/dist/zonos-elements/p-7c5c5318.js +0 -1
- package/dist/zonos-elements/p-7d9bbdc8.js +0 -1
- package/dist/zonos-elements/p-8bce79f4.system.js +0 -1
- package/dist/zonos-elements/p-944bf0e7.js +0 -1
- package/dist/zonos-elements/p-9cfd1dc3.entry.js +0 -1
- package/dist/zonos-elements/p-b21cf539.system.entry.js +0 -1
- package/dist/zonos-elements/p-cd563d65.system.js +0 -1
- package/dist/zonos-elements/p-cdf99051.entry.js +0 -1
- package/dist/zonos-elements/p-e6726a50.system.js +0 -1
- package/dist/zonos-elements/p-eeff2b04.entry.js +0 -1
- package/dist/zonos-elements/p-f4030586.entry.js +0 -1
- package/dist/zonos-elements/p-f68ce554.js +0 -1
|
@@ -41,7 +41,7 @@ import { sendLoadCheckoutFacadeLog } from "../../utils/logging/sendLoadCheckoutF
|
|
|
41
41
|
import { sendLoadNativeCheckoutLog } from "../../utils/logging/sendLoadNativeCheckoutLog";
|
|
42
42
|
import { mergeConfig } from "../../utils/mergeConfig";
|
|
43
43
|
import { styles } from "../../utils/styles";
|
|
44
|
-
import {
|
|
44
|
+
import { submitAnalytics } from "../../utils/submitAnalytics";
|
|
45
45
|
import { validateCheckoutSession } from "../../utils/validateCheckoutSession";
|
|
46
46
|
import { filterExpiredTests } from "../../utils/varianceTest/filterExpiredTests";
|
|
47
47
|
import { getSelectedTestVariant } from "../../utils/varianceTest/getSelectedTestVariant";
|
|
@@ -504,7 +504,7 @@ export class ZonosCheckout {
|
|
|
504
504
|
}
|
|
505
505
|
// Close the confirm dialog
|
|
506
506
|
this.confirmDialogOpen = false;
|
|
507
|
-
|
|
507
|
+
submitAnalytics({
|
|
508
508
|
event: 'zonos-checkout-close',
|
|
509
509
|
metadata: {
|
|
510
510
|
checkoutSessionId: storageStore.checkoutSessionId,
|
|
@@ -831,7 +831,7 @@ export class ZonosCheckout {
|
|
|
831
831
|
isPreview: this.preview,
|
|
832
832
|
sessionTimeout: CHECKOUT_SESSION_TIMEOUT,
|
|
833
833
|
});
|
|
834
|
-
|
|
834
|
+
submitAnalytics({
|
|
835
835
|
event: 'zonos-checkout-start',
|
|
836
836
|
metadata: {
|
|
837
837
|
checkoutSessionId: storageStore.checkoutSessionId,
|
|
@@ -1230,7 +1230,7 @@ export class ZonosCheckout {
|
|
|
1230
1230
|
async handleCustomerInfoContinue() {
|
|
1231
1231
|
var _a, _b, _c, _d;
|
|
1232
1232
|
// submit google tag when the form is complete
|
|
1233
|
-
|
|
1233
|
+
submitAnalytics({
|
|
1234
1234
|
event: 'zonos-checkout-customer-info',
|
|
1235
1235
|
metadata: {
|
|
1236
1236
|
checkoutSessionId: storageStore.checkoutSessionId,
|
|
@@ -1404,7 +1404,7 @@ export class ZonosCheckout {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
catch (err) {
|
|
1406
1406
|
logError(err);
|
|
1407
|
-
|
|
1407
|
+
submitAnalytics({
|
|
1408
1408
|
event: 'zonos-checkout-payment-fail',
|
|
1409
1409
|
metadata: {
|
|
1410
1410
|
checkoutSessionId: storageStore.checkoutSessionId,
|
|
@@ -1423,7 +1423,7 @@ export class ZonosCheckout {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
catch (err) {
|
|
1425
1425
|
logError(err);
|
|
1426
|
-
|
|
1426
|
+
submitAnalytics({
|
|
1427
1427
|
event: 'zonos-checkout-payment-fail',
|
|
1428
1428
|
metadata: {
|
|
1429
1429
|
checkoutSessionId: storageStore.checkoutSessionId,
|
|
@@ -6,6 +6,7 @@ import { storageStore } from "../../../store/storageStore";
|
|
|
6
6
|
import { translate } from "../../../store/translationStore";
|
|
7
7
|
import { getZonosStoreTheme, zonosStore, zonosStoreOnChange, } from "../../../store/zonosStore";
|
|
8
8
|
import { updateCheckoutSessionAttributes } from "../../../utils/api/updateCheckoutSessionAttributes";
|
|
9
|
+
import { classes } from "../../../utils/classes";
|
|
9
10
|
import { containsNonLatinChars } from "../../../utils/containsNonLatinChars";
|
|
10
11
|
import { extractName } from "../../../utils/extractName";
|
|
11
12
|
import { log } from "../../../utils/logging/log";
|
|
@@ -503,7 +504,10 @@ export class ZonosCustomerInfo {
|
|
|
503
504
|
const defaultEmail = ((_b = this.defaultAddress.find(Boolean)) === null || _b === void 0 ? void 0 : _b.email) ||
|
|
504
505
|
((_e = (_d = (_c = stripeStore.customerProfile) === null || _c === void 0 ? void 0 : _c.locations) === null || _d === void 0 ? void 0 : _d.find(Boolean)) === null || _e === void 0 ? void 0 : _e.email) ||
|
|
505
506
|
((_f = stripeStore.customerProfile) === null || _f === void 0 ? void 0 : _f.email);
|
|
506
|
-
return (h(Host, { class:
|
|
507
|
+
return (h(Host, { class: classes([
|
|
508
|
+
'zonos--customer-info zonos--elements',
|
|
509
|
+
this.isMobile && 'mobile',
|
|
510
|
+
]) }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), this.renderAddressComponent('shipping'), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
|
|
507
511
|
stripeStore.stripeShippingSameAsBilling = e.detail;
|
|
508
512
|
} }), h("zonos-collapse", { collapsed: !showBilling }, this.renderAddressComponent('billing')), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
|
|
509
513
|
// use primary type when on mobile mode
|
|
@@ -8,7 +8,7 @@ import { trackConversionEvent } from "../../../utils/api/trackConversionEvent";
|
|
|
8
8
|
import { renderCheckoutCurrency } from "../../../utils/checkout/renderCheckoutCurrency";
|
|
9
9
|
import { sortServiceLevelOptionsByAmount } from "../../../utils/checkout/sortServiceLevelOptionsByAmount";
|
|
10
10
|
import { classes } from "../../../utils/classes";
|
|
11
|
-
import {
|
|
11
|
+
import { submitAnalytics } from "../../../utils/submitAnalytics";
|
|
12
12
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
13
13
|
import ChevronUpIcon from "./assets/ChevronUpIcon.svg";
|
|
14
14
|
export class ZonosShipping {
|
|
@@ -81,7 +81,7 @@ export class ZonosShipping {
|
|
|
81
81
|
return;
|
|
82
82
|
}
|
|
83
83
|
// submit google tag when the form is complete
|
|
84
|
-
|
|
84
|
+
submitAnalytics({
|
|
85
85
|
event: 'zonos-checkout-shipping-info',
|
|
86
86
|
metadata: {
|
|
87
87
|
checkoutSessionId: storageStore.checkoutSessionId,
|
|
@@ -237,7 +237,10 @@ export class ZonosShipping {
|
|
|
237
237
|
this.collapsedDAPOptions = !this.collapsedDAPOptions;
|
|
238
238
|
} }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { isMobile: this.isMobile, items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod })))));
|
|
239
239
|
};
|
|
240
|
-
return (h(Host, { class:
|
|
240
|
+
return (h(Host, { class: classes([
|
|
241
|
+
'zonos--shipping zonos--elements',
|
|
242
|
+
this.isMobile && 'mobile',
|
|
243
|
+
]) }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.length ? (h("zonos-banner", { bannerTitle: cartStore.customQuotingError
|
|
241
244
|
? cartStore.customQuotingError
|
|
242
245
|
: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, renderServiceLevels())), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
243
246
|
// use primary type when on mobile mode
|
|
@@ -12,7 +12,7 @@ import { getBorderRadius } from "../../../utils/getBorderRadius";
|
|
|
12
12
|
import { handleFetch } from "../../../utils/handleFetch";
|
|
13
13
|
import { allLogs, log } from "../../../utils/logging/log";
|
|
14
14
|
import { sendErrorLog } from "../../../utils/logging/sendErrorLog";
|
|
15
|
-
import {
|
|
15
|
+
import { submitAnalytics } from "../../../utils/submitAnalytics";
|
|
16
16
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
17
17
|
import RemoveIcon from "./assets/RemoveIcon.svg";
|
|
18
18
|
/* Need to use relative import because inline-svg-stencil couldn't resolve absolute path */
|
|
@@ -146,7 +146,7 @@ export class ZonosCollectFinish {
|
|
|
146
146
|
window.history.replaceState({}, '', url.toString());
|
|
147
147
|
// Payment doesn't go through
|
|
148
148
|
if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
|
|
149
|
-
|
|
149
|
+
submitAnalytics({ event: 'zonos-checkout-payment-fail' });
|
|
150
150
|
void sendErrorLog({
|
|
151
151
|
endpoint: 'Stripe payment failed',
|
|
152
152
|
errors: [
|
|
@@ -159,7 +159,7 @@ export class ZonosCollectFinish {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
else {
|
|
162
|
-
|
|
162
|
+
submitAnalytics({ event: 'zonos-checkout-success' });
|
|
163
163
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
164
164
|
void trackConversionEvent({
|
|
165
165
|
checkoutSessionId,
|
|
@@ -204,7 +204,7 @@ export class ZonosCollectFinish {
|
|
|
204
204
|
// show success message right away when order id is already created
|
|
205
205
|
this.isLoading = false;
|
|
206
206
|
if (paypalStore.orderIdCreated) {
|
|
207
|
-
|
|
207
|
+
submitAnalytics({ event: 'zonos-checkout-success' });
|
|
208
208
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
209
209
|
void trackConversionEvent({
|
|
210
210
|
checkoutSessionId,
|
|
@@ -260,11 +260,11 @@ export class ZonosCollectFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: '89331d23e3b6b57ce708f091fb4c9cdaae84f838', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: '7539e73d3e88c6a486ded338d35ec55398a1f3f4', class: "zonos--finish-details" }, h("div", { key: '4a61f515eff3cf0ce77fc88526424c1e63e5d66a', 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: '6a44ceadf42398e95b3bef73888583cca2d4d076', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'aa83de37eaaa4e8a349d6752f11d933584d56c81', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: '26ff76617b31f1726bdc3b7d024a29841692f7b9', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '721ce7b4561f9d82c2a251ac3f595e36567aaac7', class: "zonos--button-container" }, h("zonos-button", { key: '77db63afae505f5472f089e4e5ed9e9c52e48157', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|
|
@@ -10,7 +10,7 @@ import { getIsStagingMode } from "../../../utils/checkout/getIsStagingMode";
|
|
|
10
10
|
import { getIsTestMode } from "../../../utils/checkout/getIsTestMode";
|
|
11
11
|
import { renderCheckoutCurrency } from "../../../utils/checkout/renderCheckoutCurrency";
|
|
12
12
|
import { log } from "../../../utils/logging/log";
|
|
13
|
-
import {
|
|
13
|
+
import { submitAnalytics } from "../../../utils/submitAnalytics";
|
|
14
14
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
15
15
|
import CheckmarkLineIcon from "./assets/CheckmarkLineIcon.svg";
|
|
16
16
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
@@ -64,7 +64,7 @@ export class ZonosCollectPayment {
|
|
|
64
64
|
}
|
|
65
65
|
stripeStore.checkoutSettlementCurrency = currencyCode;
|
|
66
66
|
// submit google tag when the form is complete
|
|
67
|
-
|
|
67
|
+
submitAnalytics({ event: 'zonos-checkout-payment-info' });
|
|
68
68
|
this.continueClicked.emit();
|
|
69
69
|
};
|
|
70
70
|
this.copyCardToClipboard = async (cardNumber) => {
|
|
@@ -12,7 +12,7 @@ import { getBorderRadius } from "../../../utils/getBorderRadius";
|
|
|
12
12
|
import { handleFetch } from "../../../utils/handleFetch";
|
|
13
13
|
import { allLogs, log } from "../../../utils/logging/log";
|
|
14
14
|
import { sendErrorLog } from "../../../utils/logging/sendErrorLog";
|
|
15
|
-
import {
|
|
15
|
+
import { submitAnalytics } from "../../../utils/submitAnalytics";
|
|
16
16
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
17
17
|
import RemoveIcon from "./assets/RemoveIcon.svg";
|
|
18
18
|
/* Need to use relative import because inline-svg-stencil couldn't resolve absolute path */
|
|
@@ -146,7 +146,7 @@ export class ZonosInvoiceFinish {
|
|
|
146
146
|
window.history.replaceState({}, '', url.toString());
|
|
147
147
|
// Payment doesn't go through
|
|
148
148
|
if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
|
|
149
|
-
|
|
149
|
+
submitAnalytics({ event: 'zonos-checkout-payment-fail' });
|
|
150
150
|
void sendErrorLog({
|
|
151
151
|
endpoint: 'Stripe payment failed',
|
|
152
152
|
errors: [
|
|
@@ -159,7 +159,7 @@ export class ZonosInvoiceFinish {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
else {
|
|
162
|
-
|
|
162
|
+
submitAnalytics({ event: 'zonos-checkout-success' });
|
|
163
163
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
164
164
|
void trackConversionEvent({
|
|
165
165
|
checkoutSessionId,
|
|
@@ -204,7 +204,7 @@ export class ZonosInvoiceFinish {
|
|
|
204
204
|
// show success message right away when order id is already created
|
|
205
205
|
this.isLoading = false;
|
|
206
206
|
if (paypalStore.orderIdCreated) {
|
|
207
|
-
|
|
207
|
+
submitAnalytics({ event: 'zonos-checkout-success' });
|
|
208
208
|
const checkoutSessionId = storageStore.checkoutSessionId;
|
|
209
209
|
void trackConversionEvent({
|
|
210
210
|
checkoutSessionId,
|
|
@@ -260,11 +260,11 @@ export class ZonosInvoiceFinish {
|
|
|
260
260
|
}
|
|
261
261
|
render() {
|
|
262
262
|
const cartId = window.Zonos.cartId;
|
|
263
|
-
return (h(Host, { key: '
|
|
263
|
+
return (h(Host, { key: '6c0363334a9e6602b93e83a0dfeb733285db7683', class: "zonos--checkout-finish zonos--elements", style: {
|
|
264
264
|
'--zonos--border-radius': getBorderRadius({
|
|
265
265
|
overrideBorderStyle: this.borderRadius,
|
|
266
266
|
}),
|
|
267
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
267
|
+
} }, !this.isLoading && (h("div", { key: '299a9afc37f5e1bbe828f2b68569a686b82baff1', class: "zonos--finish-details" }, h("div", { key: '24a827b96c4a74066b7701c70f6cdf980ff060f5', 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: '74bfa9e0126ea8b0a693fdc2e034cdd6ef352dcb', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: '5cc0089225fac166cfa13cc11e72efeb34ad8567', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'fb101b1058adeafe38a03d2a915b6b7f80c44061', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '2ecc8d45967ccd720f0ec4d532aa266ac42acc14', class: "zonos--button-container" }, h("zonos-button", { key: '3f04711341f273a767d5109274f92eec424b1675', onClick: () => {
|
|
268
268
|
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
269
269
|
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
270
270
|
}
|
|
@@ -10,7 +10,7 @@ import { getIsStagingMode } from "../../../utils/checkout/getIsStagingMode";
|
|
|
10
10
|
import { getIsTestMode } from "../../../utils/checkout/getIsTestMode";
|
|
11
11
|
import { renderCheckoutCurrency } from "../../../utils/checkout/renderCheckoutCurrency";
|
|
12
12
|
import { log } from "../../../utils/logging/log";
|
|
13
|
-
import {
|
|
13
|
+
import { submitAnalytics } from "../../../utils/submitAnalytics";
|
|
14
14
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
15
15
|
import CheckmarkLineIcon from "./assets/CheckmarkLineIcon.svg";
|
|
16
16
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
@@ -64,7 +64,7 @@ export class ZonosInvoicePayment {
|
|
|
64
64
|
}
|
|
65
65
|
stripeStore.checkoutSettlementCurrency = currencyCode;
|
|
66
66
|
// submit google tag when the form is complete
|
|
67
|
-
|
|
67
|
+
submitAnalytics({ event: 'zonos-checkout-payment-info' });
|
|
68
68
|
this.continueClicked.emit();
|
|
69
69
|
};
|
|
70
70
|
this.copyCardToClipboard = async (cardNumber) => {
|
|
@@ -33,6 +33,15 @@
|
|
|
33
33
|
|
|
34
34
|
:host {
|
|
35
35
|
display: inline-block;
|
|
36
|
+
--zonos-elements-hello-widget-size: 18px;
|
|
37
|
+
--zonos-elements-hello-bubble-padding: max(
|
|
38
|
+
6px,
|
|
39
|
+
calc(var(--zonos-elements-hello-widget-size) * 0.22)
|
|
40
|
+
);
|
|
41
|
+
--zonos-elements-hello-bubble-size: calc(
|
|
42
|
+
var(--zonos-elements-hello-widget-size) +
|
|
43
|
+
var(--zonos-elements-hello-bubble-padding) * 2 + 2px
|
|
44
|
+
);
|
|
36
45
|
}
|
|
37
46
|
:host .zonos--hello-wrapper {
|
|
38
47
|
position: relative;
|
|
@@ -75,14 +84,16 @@
|
|
|
75
84
|
}
|
|
76
85
|
:host .zonos--hello-widget {
|
|
77
86
|
transition: all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);
|
|
78
|
-
padding:
|
|
79
|
-
border-radius:
|
|
87
|
+
padding: var(--zonos-elements-hello-bubble-padding);
|
|
88
|
+
border-radius: 9999px;
|
|
80
89
|
background: var(--zonos-elements-page-background);
|
|
81
90
|
font-size: var(--zonos-elements-font-size-s);
|
|
82
91
|
border: var(--zonos-elements-border);
|
|
83
92
|
display: flex;
|
|
84
93
|
align-items: center;
|
|
94
|
+
justify-content: center;
|
|
85
95
|
cursor: pointer;
|
|
96
|
+
box-sizing: border-box;
|
|
86
97
|
height: fit-content;
|
|
87
98
|
width: fit-content;
|
|
88
99
|
position: relative;
|
|
@@ -100,10 +111,10 @@
|
|
|
100
111
|
background: var(--zonos-elements-page-background);
|
|
101
112
|
display: flex;
|
|
102
113
|
align-items: center;
|
|
103
|
-
border-top-left-radius:
|
|
104
|
-
border-bottom-left-radius:
|
|
114
|
+
border-top-left-radius: calc(var(--zonos-elements-hello-bubble-size) / 2);
|
|
115
|
+
border-bottom-left-radius: calc(var(--zonos-elements-hello-bubble-size) / 2);
|
|
105
116
|
left: 0;
|
|
106
|
-
transform: translateX(calc(-100% +
|
|
117
|
+
transform: translateX(calc(-100% + var(--zonos-elements-hello-bubble-size) / 2));
|
|
107
118
|
width: fit-content;
|
|
108
119
|
border-top: var(--zonos-elements-border);
|
|
109
120
|
border-bottom: var(--zonos-elements-border);
|
|
@@ -126,28 +137,23 @@
|
|
|
126
137
|
}
|
|
127
138
|
:host .zonos--hello-widget.zonos--hello-show-peek-message > .zonos--hello-message {
|
|
128
139
|
max-width: 100vw;
|
|
129
|
-
padding: 0
|
|
130
|
-
padding-right: 16px;
|
|
140
|
+
padding: 0 calc(var(--zonos-elements-hello-bubble-size) / 2);
|
|
131
141
|
border: var(--zonos-elements-border);
|
|
132
142
|
}
|
|
133
143
|
:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left) > .zonos--hello-message {
|
|
134
144
|
border-right: none;
|
|
135
145
|
}
|
|
136
146
|
:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
137
|
-
|
|
138
|
-
}
|
|
139
|
-
:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
140
|
-
padding-left: 16px;
|
|
141
|
-
padding-right: 6px;
|
|
147
|
+
padding-left: calc(var(--zonos-elements-hello-bubble-size) / 2);
|
|
142
148
|
border-left: none;
|
|
143
149
|
}
|
|
144
150
|
:host .zonos--hello-widget.zonos--hello-widget-animate-from-left > .zonos--hello-message {
|
|
145
151
|
order: 1;
|
|
146
|
-
transform: translateX(calc(100% -
|
|
152
|
+
transform: translateX(calc(100% - var(--zonos-elements-hello-bubble-size) / 2));
|
|
147
153
|
right: 0;
|
|
148
154
|
left: auto;
|
|
149
|
-
border-top-right-radius:
|
|
150
|
-
border-bottom-right-radius:
|
|
155
|
+
border-top-right-radius: calc(var(--zonos-elements-hello-bubble-size) / 2);
|
|
156
|
+
border-bottom-right-radius: calc(var(--zonos-elements-hello-bubble-size) / 2);
|
|
151
157
|
}
|
|
152
158
|
:host .zonos--hello-widget .zonos--hello-country-flag-wrapper {
|
|
153
159
|
display: flex;
|
|
@@ -162,6 +168,8 @@
|
|
|
162
168
|
box-shadow: var(--zonos-elements-v3-shadow-medium);
|
|
163
169
|
z-index: 10;
|
|
164
170
|
justify-self: center;
|
|
171
|
+
height: var(--zonos-elements-hello-widget-size);
|
|
172
|
+
width: var(--zonos-elements-hello-widget-size);
|
|
165
173
|
}
|
|
166
174
|
:host .zonos--hello-widget.zonos--hello-widget-float {
|
|
167
175
|
position: fixed;
|
|
@@ -11,6 +11,7 @@ import { currencyFormat } from "../../utils/hello/currencyConversion/currencyFor
|
|
|
11
11
|
import { detectItemRestrictions } from "../../utils/hello/detectItemRestrictions";
|
|
12
12
|
import { getCurrentHelloLocalePage } from "../../utils/hello/getCurrentHelloLocalePage";
|
|
13
13
|
import { getHasMoreSpaceOnRight } from "../../utils/hello/getHasMoreSpaceOnRight";
|
|
14
|
+
import { getHelloWidgetSize } from "../../utils/hello/getHelloWidgetSize";
|
|
14
15
|
import { getProductsOnPage } from "../../utils/hello/getProductsOnPage";
|
|
15
16
|
import { getZCountryUrlParam } from "../../utils/hello/getZCountryUrlParam";
|
|
16
17
|
import { setZCountryUrlParam } from "../../utils/hello/setZCountryUrlParam";
|
|
@@ -351,7 +352,7 @@ export class ZonosHello {
|
|
|
351
352
|
}
|
|
352
353
|
getHelloLocation() {
|
|
353
354
|
const mobileLocation = this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;
|
|
354
|
-
const desktopLocation = zonosStore.helloSettings.desktopLocation;
|
|
355
|
+
const desktopLocation = this.desktopLocationOverride || zonosStore.helloSettings.desktopLocation;
|
|
355
356
|
const isMobileWindow = this.isMobile;
|
|
356
357
|
switch (true) {
|
|
357
358
|
// Mobile
|
|
@@ -369,19 +370,27 @@ export class ZonosHello {
|
|
|
369
370
|
default:
|
|
370
371
|
case !isMobileWindow: {
|
|
371
372
|
/**
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
|
|
375
|
-
|
|
373
|
+
* Float on desktop when `desktopLocationOverride` is set (explicit
|
|
374
|
+
* consumer request) OR when no anchor is specified and a
|
|
375
|
+
* `desktopLocation` is configured in the store. With an anchor and no
|
|
376
|
+
* override, the widget renders inline at the anchor.
|
|
377
|
+
*/
|
|
378
|
+
const shouldFloat = !!this.desktopLocationOverride ||
|
|
379
|
+
(!zonosStore.helloSettings.anchorElementSelector &&
|
|
380
|
+
!!desktopLocation);
|
|
381
|
+
// When a desktopLocation is set, derive the side deterministically
|
|
382
|
+
// from it so RIGHT positions resolve to `false` (not `undefined`).
|
|
383
|
+
// Spatial detection only runs as a fallback when no location is set
|
|
384
|
+
// (e.g. inline / anchored placement).
|
|
376
385
|
const isOnLeft = this.animateFromLeftOverride ||
|
|
377
|
-
(desktopLocation
|
|
378
|
-
|
|
386
|
+
(desktopLocation
|
|
387
|
+
? desktopLocation.includes('LEFT')
|
|
388
|
+
: this.shouldAnimateLeftDesktop());
|
|
379
389
|
const isOnTop = desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('TOP');
|
|
380
390
|
return {
|
|
381
391
|
isMobileWindow,
|
|
382
392
|
isOnLeft,
|
|
383
393
|
isOnTop,
|
|
384
|
-
// Only float if
|
|
385
394
|
shouldFloat,
|
|
386
395
|
};
|
|
387
396
|
}
|
|
@@ -420,7 +429,8 @@ export class ZonosHello {
|
|
|
420
429
|
currencyCode: targetCurrency,
|
|
421
430
|
});
|
|
422
431
|
}
|
|
423
|
-
|
|
432
|
+
const widgetSize = getHelloWidgetSize(zonosStore.helloSettings.widgetSize);
|
|
433
|
+
return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme, style: { '--zonos-elements-hello-widget-size': `${widgetSize}px` } }, showHello && (h("div", { class: classes([
|
|
424
434
|
'zonos--hello-wrapper',
|
|
425
435
|
shouldFloat && 'zonos--hello-widget-float',
|
|
426
436
|
]) }, h("button", { class: classes([
|
|
@@ -443,7 +453,7 @@ export class ZonosHello {
|
|
|
443
453
|
'zonos--hello-widget-left zonos--hello-widget-animate-from-left',
|
|
444
454
|
isOnTop && 'zonos--hello-widget-top',
|
|
445
455
|
shouldFloat && 'zonos--hello-widget-float',
|
|
446
|
-
]), style: { height: this.showDialog ? 'fit-content' : '0px' } }, h("zonos-hello-dialog", { animateFromLeftOverride:
|
|
456
|
+
]), style: { height: this.showDialog ? 'fit-content' : '0px' } }, h("zonos-hello-dialog", { animateFromLeftOverride: isOnLeft, appearanceSettings: appearanceSettings, isOpen: this.showDialog, mobileLocationOverride: this.mobileLocationOverride, restrictedItems: restrictedItemsOnPage, setIsOpen: this.changeShowDialog }))))));
|
|
447
457
|
}
|
|
448
458
|
static get is() { return "zonos-hello"; }
|
|
449
459
|
static get encapsulation() { return "shadow"; }
|
|
@@ -487,6 +497,31 @@ export class ZonosHello {
|
|
|
487
497
|
"attribute": "mobile-location-override",
|
|
488
498
|
"reflect": false
|
|
489
499
|
},
|
|
500
|
+
"desktopLocationOverride": {
|
|
501
|
+
"type": "string",
|
|
502
|
+
"mutable": false,
|
|
503
|
+
"complexType": {
|
|
504
|
+
"original": "HelloDesktopLocation",
|
|
505
|
+
"resolved": "\"BOTTOM_LEFT\" | \"BOTTOM_RIGHT\" | \"TOP_LEFT\" | \"TOP_RIGHT\" | undefined",
|
|
506
|
+
"references": {
|
|
507
|
+
"HelloDesktopLocation": {
|
|
508
|
+
"location": "import",
|
|
509
|
+
"path": "src/types/generated/graphql.internal.types",
|
|
510
|
+
"id": "src/types/generated/graphql.internal.types.ts::HelloDesktopLocation"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
"required": false,
|
|
515
|
+
"optional": true,
|
|
516
|
+
"docs": {
|
|
517
|
+
"tags": [],
|
|
518
|
+
"text": "Override the configured desktop floating location. Takes precedence over\n`helloSettings.desktopLocation` and also drives the peek-message animation\ndirection, so consumers no longer need `animateFromLeftOverride` for\ndesktop positioning."
|
|
519
|
+
},
|
|
520
|
+
"getter": false,
|
|
521
|
+
"setter": false,
|
|
522
|
+
"attribute": "desktop-location-override",
|
|
523
|
+
"reflect": false
|
|
524
|
+
},
|
|
490
525
|
"animateFromLeftOverride": {
|
|
491
526
|
"type": "boolean",
|
|
492
527
|
"mutable": false,
|
|
@@ -324,18 +324,20 @@ export class ZonosHelloDialog {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
render() {
|
|
327
|
-
var _a;
|
|
327
|
+
var _a, _b;
|
|
328
328
|
const { selectedCountryCode } = localizationStore;
|
|
329
329
|
// Show additional information if selected country has tax id
|
|
330
330
|
const additionalInformation = this.getAdditionalDutyTaxMessage();
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
// Honor an explicit boolean from the parent (computed from
|
|
332
|
+
// desktop/mobile location overrides) so dialog direction always matches
|
|
333
|
+
// the widget button. Fall back to spatial detection only when undefined.
|
|
334
|
+
const animateLeft = (_a = this.animateFromLeftOverride) !== null && _a !== void 0 ? _a : (this.dialogRef && getHasMoreSpaceOnRight(this.dialogRef));
|
|
333
335
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
334
336
|
const { customMessages } = localizationStore;
|
|
335
337
|
const welcomeMessage = translate('Welcome to [storeName]', {
|
|
336
338
|
storeName: zonosStore.organizationName,
|
|
337
339
|
});
|
|
338
|
-
const defaultMessageStr = ((
|
|
340
|
+
const defaultMessageStr = ((_b = customMessages.find(x => x.pageName === 'hello_default')) === null || _b === void 0 ? void 0 : _b.message) ||
|
|
339
341
|
translate('Know about duties and taxes before you buy. Shop with confidence!');
|
|
340
342
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
341
343
|
const currentPage = this.getCurrentPageEnum();
|
|
@@ -345,25 +347,25 @@ export class ZonosHelloDialog {
|
|
|
345
347
|
// If deminimis is undefined or null, assume it's $0
|
|
346
348
|
const taxDeMinimisMessage = this.getTaxMessage();
|
|
347
349
|
const inclusivePriceMessage = this.getInclusivePriceMessage();
|
|
348
|
-
return (h(Host, { key: '
|
|
350
|
+
return (h(Host, { key: 'af2f34c21db4c521efe77a61bb779790741effba', class: "zonos--elements" }, h("div", { key: '4544ff7c5773d8cfccd6e4d866a07ee50c912a06', class: classes([
|
|
349
351
|
'zonos--hello-dialog',
|
|
350
352
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
351
353
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
352
354
|
!!this.mobileLocationOverride &&
|
|
353
355
|
'zonos--hello-dialog-mobile-override',
|
|
354
356
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
355
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
357
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '4ba3dd6d5cccda0350a47b5cf2d3dc1c74853d81' }, h("div", { key: 'd5d5990a0d66d5d8b871c595f6cc08ad6077fa79', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '51a79a23bd6ea5e632e12a73591a142a341ce4a1', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: 'a505bcd3b78b81811dcd60d16971ceeb4c1a3aa7', spacing: 24 }, h("zonos-country-flag", { key: 'b82428ef373bc174e00255e8e0491466cd0fc177', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '10d8e5a46961a02e7159ad57854835f115eb0d76', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '030655d2e3ae3bf770ace2b6bffe96b1423a8aee', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'ce954ae42f9fe90f49980d954522a2e30be23d5b', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '82de2ff11aaa0505737664757f698d9ddd199af1', spacing: 8 }, this.restrictedItems.map(item => {
|
|
356
358
|
var _a;
|
|
357
359
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
358
360
|
}), (dutyDeMinimisMessage ||
|
|
359
361
|
taxDeMinimisMessage ||
|
|
360
362
|
inclusivePriceMessage ||
|
|
361
|
-
!!(additionalInformation === null || additionalInformation === void 0 ? void 0 : additionalInformation.length)) && (h("zonos-card", { key: '
|
|
363
|
+
!!(additionalInformation === null || additionalInformation === void 0 ? void 0 : additionalInformation.length)) && (h("zonos-card", { key: 'b9134233fce6f248576b7b894b4be313aacdbf3f', spacing: "12px" }, h("zonos-v-stack", { key: 'e427aaf3dc1e4bba952511528aad5ff66a4950bb', spacing: 12 }, this.renderHelloMessage({
|
|
362
364
|
dutyDeMinimisMessage,
|
|
363
365
|
inclusivePriceMessage,
|
|
364
366
|
taxDeMinimisMessage,
|
|
365
367
|
}), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
366
|
-
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info }))))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '
|
|
368
|
+
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info }))))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '343956e04ee86fe6f9bcaa13f7e69c47d7d68c6e', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '99cd990b4df0ea4d5a8f1e81db99d23e6ebd3475' }, h("zonos-country-select", { key: 'd29ce0c79fb371c63b8b0630fd3d99892744179a', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '6a417d593d5644939f1ffbbbef3af6546e44b712' }, h("zonos-language-select", { key: '29c17d83f162a7237e9824d9f60c0cffdbdd1ae7', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
367
369
|
}
|
|
368
370
|
static get is() { return "zonos-hello-dialog"; }
|
|
369
371
|
static get encapsulation() { return "shadow"; }
|
|
@@ -143,7 +143,7 @@ export class ZonosController {
|
|
|
143
143
|
}
|
|
144
144
|
document.body.appendChild(scriptToInject);
|
|
145
145
|
});
|
|
146
|
-
// Custom HTML may set window.Zonos.googleAnalyticId; trigger relay ping so parent configures GA
|
|
146
|
+
// Custom HTML may set window.Zonos.googleAnalyticId / window.Zonos.facebookPixelId; trigger relay ping so parent configures GA / FB Pixel
|
|
147
147
|
ensureAnalyticsRelayPing();
|
|
148
148
|
}
|
|
149
149
|
async initGooglePlacesService(settings) {
|
|
@@ -331,7 +331,7 @@ export class ZonosController {
|
|
|
331
331
|
zonosStore.organizationName = organizationName;
|
|
332
332
|
}
|
|
333
333
|
render() {
|
|
334
|
-
return h(Host, { key: '
|
|
334
|
+
return h(Host, { key: 'd500743a0ed7dc7615e696aaf958216374e7c33b', class: "zonos--elements" });
|
|
335
335
|
}
|
|
336
336
|
static get is() { return "zonos-controller"; }
|
|
337
337
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ import { isContrastColor } from "../../utils/isContrastColor";
|
|
|
13
13
|
import { jsonParse } from "../../utils/jsonParse";
|
|
14
14
|
import { log } from "../../utils/logging/log";
|
|
15
15
|
import { logError } from "../../utils/logging/logError";
|
|
16
|
-
import {
|
|
16
|
+
import { submitAnalytics } from "../../utils/submitAnalytics";
|
|
17
17
|
import { validateCheckoutSession } from "../../utils/validateCheckoutSession";
|
|
18
18
|
const { onChange: paypalStoreOnChange, reset: paypalStoreReset, state: paypalStore, } = createStore(() => ({
|
|
19
19
|
intent: 'capture',
|
|
@@ -95,7 +95,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
95
95
|
// reset stripe error message
|
|
96
96
|
stripeStore.hasPaymentError = false;
|
|
97
97
|
stripeStore.customErrorMessage = null;
|
|
98
|
-
|
|
98
|
+
submitAnalytics({
|
|
99
99
|
event: 'zonos-checkout-payment-fail',
|
|
100
100
|
metadata: {
|
|
101
101
|
checkoutSessionId,
|
|
@@ -160,7 +160,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
160
160
|
// reset stripe error message
|
|
161
161
|
stripeStore.hasPaymentError = false;
|
|
162
162
|
stripeStore.customErrorMessage = null;
|
|
163
|
-
|
|
163
|
+
submitAnalytics({
|
|
164
164
|
event: 'zonos-checkout-payment-fail',
|
|
165
165
|
metadata: {
|
|
166
166
|
checkoutSessionId,
|
|
@@ -176,7 +176,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
|
|
|
176
176
|
// reset paypal error banner
|
|
177
177
|
paypalStore.paypalErrorMessage = null;
|
|
178
178
|
// submit google tag when the form is complete
|
|
179
|
-
|
|
179
|
+
submitAnalytics({
|
|
180
180
|
event: 'zonos-checkout-payment-info',
|
|
181
181
|
metadata: {
|
|
182
182
|
checkoutSessionId,
|