@zonos/elements 1.3.261 → 1.3.262

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.
Files changed (105) hide show
  1. package/dist/cjs/index.cjs.js +12 -9
  2. package/dist/cjs/{paypal-73a542cb.js → paypal-e278f405.js} +140 -6
  3. package/dist/cjs/submitGtag-4241212b.js +167 -0
  4. package/dist/cjs/zonos-card_5.cjs.entry.js +2 -2
  5. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +30 -21
  6. package/dist/cjs/zonos-checkout.cjs.entry.js +7 -7
  7. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +8 -8
  8. package/dist/cjs/zonos-collect.cjs.entry.js +2 -2
  9. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  10. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +8 -8
  11. package/dist/cjs/zonos-invoice.cjs.entry.js +2 -2
  12. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +12 -12
  13. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -0
  14. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +7 -3
  15. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +6 -6
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +7 -0
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +5 -1
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +7 -0
  19. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +6 -3
  20. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +6 -6
  21. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +2 -2
  22. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +6 -6
  23. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +2 -2
  24. package/dist/collection/components/main/zonos-controller.js +2 -2
  25. package/dist/collection/components/store/checkout/paypal.js +4 -4
  26. package/dist/collection/components/utils/analytics/analyticsRelayState.js +112 -0
  27. package/dist/collection/components/utils/analytics/mapToFbEvent.js +66 -0
  28. package/dist/collection/components/utils/submitAnalytics.js +16 -0
  29. package/dist/collection/components/utils/submitFbq.js +56 -0
  30. package/dist/collection/components/utils/submitGtag.js +15 -78
  31. package/dist/collection/scripts/_zonosBase.js +5 -2
  32. package/dist/collection/types/analyticsRelay.js +2 -2
  33. package/dist/esm/index.js +12 -9
  34. package/dist/esm/{paypal-38ca5d21.js → paypal-d8804da5.js} +142 -9
  35. package/dist/esm/submitGtag-7f5c5bb5.js +162 -0
  36. package/dist/esm/zonos-card_5.entry.js +2 -2
  37. package/dist/esm/zonos-cart-items_12.entry.js +30 -21
  38. package/dist/esm/zonos-checkout.entry.js +7 -7
  39. package/dist/esm/zonos-collect-finish_6.entry.js +8 -8
  40. package/dist/esm/zonos-collect.entry.js +2 -2
  41. package/dist/esm/zonos-controller.entry.js +3 -3
  42. package/dist/esm/zonos-invoice-finish_5.entry.js +8 -8
  43. package/dist/esm/zonos-invoice.entry.js +2 -2
  44. package/dist/esm-es5/index.js +1 -1
  45. package/dist/esm-es5/paypal-d8804da5.js +17 -0
  46. package/dist/esm-es5/submitGtag-7f5c5bb5.js +1 -0
  47. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  48. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  49. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  50. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  51. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  52. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  53. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  54. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  55. package/dist/scripts/analyticsRelayOnInit.js +1 -1
  56. package/dist/scripts/index.d.ts +11 -0
  57. package/dist/scripts/index.js +1 -1
  58. package/dist/scripts/loadZonos.js +1 -1
  59. package/dist/scripts/zonos.js +1 -1
  60. package/dist/types/components/utils/analytics/analyticsRelayState.d.ts +43 -0
  61. package/dist/types/components/utils/analytics/mapToFbEvent.d.ts +11 -0
  62. package/dist/types/components/utils/submitAnalytics.d.ts +12 -0
  63. package/dist/types/components/utils/submitFbq.d.ts +14 -0
  64. package/dist/types/components/utils/submitGtag.d.ts +4 -9
  65. package/dist/types/scripts/_zonosBase.d.ts +11 -0
  66. package/dist/types/types/analyticsRelay.d.ts +19 -3
  67. package/dist/zonos-elements/index.esm.js +1 -1
  68. package/dist/zonos-elements/p-022ddd4a.system.entry.js +1 -0
  69. package/dist/zonos-elements/{p-6726fee0.entry.js → p-06ef4d79.entry.js} +1 -1
  70. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  71. package/dist/zonos-elements/{p-e684e68f.entry.js → p-3deb91cb.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-eca03303.system.entry.js → p-56c11359.system.entry.js} +1 -1
  73. package/dist/zonos-elements/p-5dd78b4b.js +1 -0
  74. package/dist/zonos-elements/{p-d2ef0416.system.entry.js → p-66934a78.system.entry.js} +1 -1
  75. package/dist/zonos-elements/{p-e14f421d.system.entry.js → p-7237f43b.system.entry.js} +1 -1
  76. package/dist/zonos-elements/p-72a181b5.entry.js +1 -0
  77. package/dist/zonos-elements/p-75a27c68.entry.js +1 -0
  78. package/dist/zonos-elements/{p-3c3139d2.system.entry.js → p-7df3e44b.system.entry.js} +1 -1
  79. package/dist/zonos-elements/p-838e335c.entry.js +1 -0
  80. package/dist/zonos-elements/p-947f5092.js +17 -0
  81. package/dist/zonos-elements/{p-1917202e.system.entry.js → p-9de27162.system.entry.js} +1 -1
  82. package/dist/zonos-elements/{p-be1032ab.system.entry.js → p-a2b3c1ef.system.entry.js} +1 -1
  83. package/dist/zonos-elements/p-a98b8b68.system.js +18 -0
  84. package/dist/zonos-elements/p-ca411d97.entry.js +1 -0
  85. package/dist/zonos-elements/p-cab6bd98.system.js +1 -0
  86. package/dist/zonos-elements/p-dee6adff.system.js +1 -0
  87. package/dist/zonos-elements/{p-2c9714e8.system.entry.js → p-e36e724b.system.entry.js} +1 -1
  88. package/dist/zonos-elements/{p-8df3c6a0.entry.js → p-e673a4d9.entry.js} +1 -1
  89. package/dist/zonos-elements/{p-7793d334.entry.js → p-f2909fb8.entry.js} +1 -1
  90. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  91. package/package.json +1 -1
  92. package/dist/cjs/submitGtag-9ac5a42e.js +0 -116
  93. package/dist/esm/submitGtag-543058f9.js +0 -113
  94. package/dist/esm-es5/paypal-38ca5d21.js +0 -17
  95. package/dist/esm-es5/submitGtag-543058f9.js +0 -1
  96. package/dist/zonos-elements/p-03e53ef5.entry.js +0 -1
  97. package/dist/zonos-elements/p-17a8a514.system.js +0 -1
  98. package/dist/zonos-elements/p-24407504.js +0 -17
  99. package/dist/zonos-elements/p-31bd3851.system.js +0 -1
  100. package/dist/zonos-elements/p-387f6a4d.js +0 -1
  101. package/dist/zonos-elements/p-47bde0ba.system.js +0 -18
  102. package/dist/zonos-elements/p-5dff9d51.system.entry.js +0 -1
  103. package/dist/zonos-elements/p-9cfd1dc3.entry.js +0 -1
  104. package/dist/zonos-elements/p-eeff2b04.entry.js +0 -1
  105. package/dist/zonos-elements/p-f4030586.entry.js +0 -1
@@ -10,12 +10,11 @@ const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-31da84b7.js');
10
10
  const classes = require('./classes-b7918f56.js');
11
11
  const zonosStore = require('./zonosStore-1c517e55.js');
12
12
  const hasInclusivePrice = require('./hasInclusivePrice-c781c336.js');
13
- const paypal = require('./paypal-73a542cb.js');
13
+ const paypal = require('./paypal-e278f405.js');
14
14
  const handleFetch = require('./handleFetch-954f30e1.js');
15
15
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
16
16
  const getBorderRadius = require('./getBorderRadius-db55a464.js');
17
17
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
18
- const submitGtag = require('./submitGtag-9ac5a42e.js');
19
18
  const ILanguage = require('./ILanguage-98b04442.js');
20
19
  const placeTestOrder = require('./placeTestOrder-aefd31e8.js');
21
20
  const isDarkColor = require('./isDarkColor-bfe6d1eb.js');
@@ -26,6 +25,7 @@ const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
26
25
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-b8abf6de.js');
27
26
  const TaxId = require('./TaxId-12acedde.js');
28
27
  require('./isContrastColor-6a17f408.js');
28
+ require('./submitGtag-4241212b.js');
29
29
  require('./debounce-3e17b4e9.js');
30
30
  require('./ShortAddressCode-bec338b0.js');
31
31
 
@@ -687,7 +687,7 @@ const ZonosCheckoutFinish = class {
687
687
  window.history.replaceState({}, '', url.toString());
688
688
  // Payment doesn't go through
689
689
  if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
690
- submitGtag.submitGtag({
690
+ paypal.submitAnalytics({
691
691
  event: 'zonos-checkout-payment-fail',
692
692
  metadata: {
693
693
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -708,14 +708,14 @@ const ZonosCheckoutFinish = class {
708
708
  // Save new order info in case the user reloads before we get order info
709
709
  this.saveOrderIdForDuplicationIssue();
710
710
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
711
- submitGtag.submitGtag({
711
+ paypal.submitAnalytics({
712
712
  event: 'zonos-checkout-success',
713
713
  metadata: this.buildPurchaseMetadata({
714
714
  checkoutSessionId: checkoutSessionId || '',
715
715
  currency: currency === null || currency === void 0 ? void 0 : currency.toUpperCase(),
716
716
  }),
717
717
  });
718
- submitGtag.submitGtag({
718
+ paypal.submitAnalytics({
719
719
  event: 'purchase',
720
720
  metadata: this.buildPurchaseMetadata({
721
721
  checkoutSessionId: checkoutSessionId || '',
@@ -767,13 +767,13 @@ const ZonosCheckoutFinish = class {
767
767
  // show success message right away when order id is already created
768
768
  this.isLoading = false;
769
769
  if (paypal.paypalStore.orderIdCreated) {
770
- submitGtag.submitGtag({
770
+ paypal.submitAnalytics({
771
771
  event: 'zonos-checkout-success',
772
772
  metadata: this.buildPurchaseMetadata({
773
773
  checkoutSessionId: localization.storageStore.checkoutSessionId || '',
774
774
  }),
775
775
  });
776
- submitGtag.submitGtag({
776
+ paypal.submitAnalytics({
777
777
  event: 'purchase',
778
778
  metadata: this.buildPurchaseMetadata({
779
779
  checkoutSessionId: localization.storageStore.checkoutSessionId || '',
@@ -804,13 +804,13 @@ const ZonosCheckoutFinish = class {
804
804
  this.isLoading = false;
805
805
  if (cart.storeCreditStore.orderIdCreated) {
806
806
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
807
- submitGtag.submitGtag({
807
+ paypal.submitAnalytics({
808
808
  event: 'zonos-checkout-success',
809
809
  metadata: this.buildPurchaseMetadata({
810
810
  checkoutSessionId: checkoutSessionId || '',
811
811
  }),
812
812
  });
813
- submitGtag.submitGtag({
813
+ paypal.submitAnalytics({
814
814
  event: 'purchase',
815
815
  metadata: this.buildPurchaseMetadata({
816
816
  checkoutSessionId: checkoutSessionId || '',
@@ -884,11 +884,11 @@ const ZonosCheckoutFinish = class {
884
884
  }
885
885
  render() {
886
886
  const isTestMode = handleFetch.getIsTestMode();
887
- return (index.h(index.Host, { key: '52582ef091037ac1fda75df03ae6b54ffaecb06b', class: "zonos--checkout-finish zonos--elements", style: {
887
+ return (index.h(index.Host, { key: '97291e81aef62884ec0519d93dcc7ff184b2913d', class: "zonos--checkout-finish zonos--elements", style: {
888
888
  '--zonos--border-radius': getBorderRadius.getBorderRadius({
889
889
  overrideBorderStyle: this.borderRadius,
890
890
  }),
891
- } }, this.isImmediateRedirecting && (index.h("div", { key: '3b0f1089e87e0a82539e9f3e25447b3b4f50cb8f', class: "loading-wrapper" }, index.h("zonos-spinner", { key: 'fa6f61d8b496b90af9c2a8feb1a89df0fb784827', size: 48 }))), !this.isLoading && !this.isImmediateRedirecting && (index.h("div", { key: '94cf155bd31b1806cc96f88ff504b870dfe4e661', class: "zonos--finish-details" }, index.h("div", { key: 'f103079e27fa441467e16fb0dc0ac2ba1a69ed64', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '8d85373cbaf7ab2e3372889f07e55e6546e13b72', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: 'cf120f43b009bfa2af326548b89d8139a2e0d954', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (index.h("zonos-button", { key: '10c9b15539d63c502dc8a8d6ccbd6f927dd24cc1',
891
+ } }, this.isImmediateRedirecting && (index.h("div", { key: '40569271fb67acb22a4a0fa3c0fc8e1c0c641061', class: "loading-wrapper" }, index.h("zonos-spinner", { key: '8b431c7751e5e32fe97f4244151ece7de3c6d9bc', size: 48 }))), !this.isLoading && !this.isImmediateRedirecting && (index.h("div", { key: '0f5c89c285acf8c4f79e058c69cde9011df7e1a2', class: "zonos--finish-details" }, index.h("div", { key: '7491b15a90941476338ec6b1738312ffd4ebd2c0', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '87e0d022014596b02d813ee510917b7ec9b55e09', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '456bd678d5ba6f5b74da34f906bbe9f4bed870ac', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (index.h("zonos-button", { key: 'ebde02a73e71ad88d7d68629f2cd8a34d961aa63',
892
892
  // Only show loading spinner if it's not an error notification
893
893
  loading: this.isWaitingToRedirect &&
894
894
  this.notificationType !== 'error', onClick: () => {
@@ -900,9 +900,9 @@ const ZonosCheckoutFinish = class {
900
900
  }
901
901
  this.closeClickHandler();
902
902
  }, size: "md", variant: "primary" }, localization.translate('Close'))), !window.Zonos.isLegacyCheckout &&
903
- this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: 'b2fc437d0bd21d38ad09cdcdf8b5907b7604ed31', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
903
+ this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: '2b86a3d9fb705ad080af532e645fd26aa844a14a', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
904
904
  cart.cartStore.step === 'finish' &&
905
- this.notificationType === 'success' && (index.h("div", { key: '6c1258c8d66d5127a14ae3ee5eb5477127a395aa', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: 'b3e0a8bf9eb0026595552563fd036a1894c726f8', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'c66ff9fb1998318eaa518c053998de662e53abff', onClick: () => {
905
+ this.notificationType === 'success' && (index.h("div", { key: '83a9dc9fb81baaf9e223dfa9fe0fc0fc4c106635', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: 'edf8057b0430e3e4bb8fd675554659781e1724ae', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '3c40eee58d8a2ad5951dfdfc7c8d485052b6ba73', onClick: () => {
906
906
  const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
907
907
  this.redirectToUrl(isZonosDashboard
908
908
  ? '/orders/all'
@@ -978,7 +978,7 @@ const CheckmarkLineIcon = `<svg color="var(--zonos-elements-gray-1000)" xmlns="h
978
978
 
979
979
  const RemoveLineIcon = `<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M14.475 10.586a.75.75 0 1 0-1.06-1.06L12 10.938l-1.414-1.414a.75.75 0 0 0-1.06 1.06L10.938 12l-1.414 1.414a.75.75 0 1 0 1.06 1.06L12 13.062l1.414 1.414a.75.75 0 0 0 1.06-1.06L13.062 12l1.414-1.414Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>`;
980
980
 
981
- const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:24px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:8px}.sc-zonos-checkout-payment-h .zonos--error-banner.sc-zonos-checkout-payment{margin-bottom:16px}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-checkout-payment-h .zonos--pay-in-base-currency-btn.sc-zonos-checkout-payment{-webkit-box-shadow:none;box-shadow:none}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:12px;bottom:-4px;padding-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-text.sc-zonos-checkout-payment{text-align:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}.sc-zonos-checkout-payment-h .zonos--test-cards.sc-zonos-checkout-payment{margin-top:auto;padding-top:16px}";
981
+ const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:24px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:8px}.sc-zonos-checkout-payment-h .zonos--error-banner.sc-zonos-checkout-payment{margin-bottom:16px}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-checkout-payment-h .zonos--pay-in-base-currency-btn.sc-zonos-checkout-payment{-webkit-box-shadow:none;box-shadow:none}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:12px;bottom:-4px;padding-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-text.sc-zonos-checkout-payment{text-align:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}.sc-zonos-checkout-payment-h .zonos--test-cards.sc-zonos-checkout-payment{margin-top:auto;padding-top:16px}.mobile.mobile.sc-zonos-checkout-payment-h{-ms-scroll-chaining:chained;overscroll-behavior:auto}.mobile.mobile.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{-ms-scroll-chaining:chained;overscroll-behavior:auto}";
982
982
  const ZonosCheckoutPaymentStyle0 = zonosCheckoutPaymentCss;
983
983
 
984
984
  const ZonosCheckoutPayment = class {
@@ -1036,7 +1036,7 @@ const ZonosCheckoutPayment = class {
1036
1036
  }
1037
1037
  cart.stripeStore.checkoutSettlementCurrency = currencyCode;
1038
1038
  // submit google tag when the form is complete
1039
- submitGtag.submitGtag({
1039
+ paypal.submitAnalytics({
1040
1040
  event: 'zonos-checkout-payment-info',
1041
1041
  metadata: {
1042
1042
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -1164,7 +1164,10 @@ const ZonosCheckoutPayment = class {
1164
1164
  display: isPaypalTabSelected ? 'block' : 'none',
1165
1165
  } }))), isTestMode && (index.h("zonos-card", { backgroundColor: "gray-100", borderRadius: 12, class: "zonos--test-cards" }, index.h("zonos-v-stack", { spacing: 16 }, index.h("div", null, index.h("zonos-text", { type: "semiBoldLabel" }, localization.translate('Test cards')), index.h("zonos-text", { textColor: "gray-700" }, localization.translate('Click to copy the card number. Use any future expiration date and three number CVC.'))), index.h("zonos-button", { icon: index.h("zonos-icon", { content: CheckmarkLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4242424242424242') }, localization.translate('Success'), " (****4242)"), index.h("zonos-button", { icon: index.h("zonos-icon", { content: RemoveLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4000000000000002') }, localization.translate('Failure'), " (****0002)")), index.h("zonos-notification", null)))));
1166
1166
  };
1167
- return (index.h(index.Host, { class: "zonos--checkout-payment zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Payment method')), renderPayment())));
1167
+ return (index.h(index.Host, { class: classes.classes([
1168
+ 'zonos--checkout-payment zonos--elements',
1169
+ this.isMobile && 'mobile',
1170
+ ]) }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Payment method')), renderPayment())));
1168
1171
  }
1169
1172
  get ele() { return index.getElement(this); }
1170
1173
  static get watchers() { return {
@@ -1447,7 +1450,7 @@ const taxIdValidationResult = ({ companyName, shippingCountry, taxId, }) => {
1447
1450
  };
1448
1451
  };
1449
1452
 
1450
- const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;height:100%;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info ul.sc-zonos-customer-info{list-style:disc;padding-left:8px}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-4px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
1453
+ const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;height:100%;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info ul.sc-zonos-customer-info{list-style:disc;padding-left:8px}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-4px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}.mobile.mobile.sc-zonos-customer-info-h{-ms-scroll-chaining:chained;overscroll-behavior:auto}.mobile.mobile.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{-ms-scroll-chaining:chained;overscroll-behavior:auto}";
1451
1454
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
1452
1455
 
1453
1456
  /**
@@ -1944,7 +1947,10 @@ const ZonosCustomerInfo = class {
1944
1947
  const defaultEmail = ((_b = this.defaultAddress.find(Boolean)) === null || _b === void 0 ? void 0 : _b.email) ||
1945
1948
  ((_e = (_d = (_c = cart.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) ||
1946
1949
  ((_f = cart.stripeStore.customerProfile) === null || _f === void 0 ? void 0 : _f.email);
1947
- return (index.h(index.Host, { class: "zonos--customer-info zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Customer information')), this.showErrorBanner && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, localization.translate('Missing required fields. Make sure all fields are completed.'))), index.h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: localization.translate('Contact') }), this.renderAddressComponent('shipping'), index.h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: cart.stripeStore.stripeShippingSameAsBilling, label: localization.translate('Shipping address same as billing'), onCheckboxSelected: e => {
1950
+ return (index.h(index.Host, { class: classes.classes([
1951
+ 'zonos--customer-info zonos--elements',
1952
+ this.isMobile && 'mobile',
1953
+ ]) }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Customer information')), this.showErrorBanner && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, localization.translate('Missing required fields. Make sure all fields are completed.'))), index.h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: localization.translate('Contact') }), this.renderAddressComponent('shipping'), index.h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: cart.stripeStore.stripeShippingSameAsBilling, label: localization.translate('Shipping address same as billing'), onCheckboxSelected: e => {
1948
1954
  cart.stripeStore.stripeShippingSameAsBilling = e.detail;
1949
1955
  } }), index.h("zonos-collapse", { collapsed: !showBilling }, this.renderAddressComponent('billing')), index.h("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
1950
1956
  // use primary type when on mobile mode
@@ -2087,7 +2093,7 @@ const ChevronUpIcon = `<svg width="25" height="24" viewBox="0 0 25 24" fill="non
2087
2093
  </svg>
2088
2094
  `;
2089
2095
 
2090
- const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:-16px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--error-banner.sc-zonos-shipping{margin-bottom:16px}.sc-zonos-shipping-h .zonos--shipping-method-error.sc-zonos-shipping{margin-top:24px}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;z-index:1;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h .zonos--shipping-options-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:24px;-ms-flex-align:center;align-items:center;background:transparent;width:100%;border:none;cursor:pointer;position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-transition:0.5s all ease;transition:0.5s all ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping{margin-bottom:0}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::before,.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::after{content:\"\";display:block;width:80%;height:1px;background-color:var(--zonos-elements-border-color);-ms-flex-negative:1;flex-shrink:1}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping .zonos--title-wrapper.sc-zonos-shipping{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-align:center;align-items:center}.sc-zonos-shipping-h .zonos--dap-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}";
2096
+ const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:-16px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--error-banner.sc-zonos-shipping{margin-bottom:16px}.sc-zonos-shipping-h .zonos--shipping-method-error.sc-zonos-shipping{margin-top:24px}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;z-index:1;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h .zonos--shipping-options-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:24px;-ms-flex-align:center;align-items:center;background:transparent;width:100%;border:none;cursor:pointer;position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-transition:0.5s all ease;transition:0.5s all ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping{margin-bottom:0}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::before,.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::after{content:\"\";display:block;width:80%;height:1px;background-color:var(--zonos-elements-border-color);-ms-flex-negative:1;flex-shrink:1}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping .zonos--title-wrapper.sc-zonos-shipping{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-align:center;align-items:center}.sc-zonos-shipping-h .zonos--dap-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.mobile.mobile.sc-zonos-shipping-h{-ms-scroll-chaining:chained;overscroll-behavior:auto}.mobile.mobile.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{-ms-scroll-chaining:chained;overscroll-behavior:auto}";
2091
2097
  const ZonosShippingStyle0 = zonosShippingCss;
2092
2098
 
2093
2099
  const ZonosShipping = class {
@@ -2162,7 +2168,7 @@ const ZonosShipping = class {
2162
2168
  return;
2163
2169
  }
2164
2170
  // submit google tag when the form is complete
2165
- submitGtag.submitGtag({
2171
+ paypal.submitAnalytics({
2166
2172
  event: 'zonos-checkout-shipping-info',
2167
2173
  metadata: {
2168
2174
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -2318,7 +2324,10 @@ const ZonosShipping = class {
2318
2324
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
2319
2325
  } }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${localization.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: localization.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, localization.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { isMobile: this.isMobile, items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod })))));
2320
2326
  };
2321
- return (index.h(index.Host, { class: "zonos--shipping zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, localization.translate('No shipping method selected'))), index.h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, localization.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.cartStore.customQuotingError
2327
+ return (index.h(index.Host, { class: classes.classes([
2328
+ 'zonos--shipping zonos--elements',
2329
+ this.isMobile && 'mobile',
2330
+ ]) }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, localization.translate('No shipping method selected'))), index.h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, localization.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.cartStore.customQuotingError
2322
2331
  ? cart.cartStore.customQuotingError
2323
2332
  : localization.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" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, renderServiceLevels())), index.h("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2324
2333
  // use primary type when on mobile mode
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const cart = require('./cart-d08c87e2.js');
7
- const paypal = require('./paypal-73a542cb.js');
7
+ const paypal = require('./paypal-e278f405.js');
8
8
  const localization = require('./localization-a7fac4b4.js');
9
9
  const zonosStore = require('./zonosStore-1c517e55.js');
10
10
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
@@ -17,9 +17,9 @@ const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
17
17
  const getBorderRadius = require('./getBorderRadius-db55a464.js');
18
18
  const isDarkColor = require('./isDarkColor-bfe6d1eb.js');
19
19
  const styles = require('./styles-d1e64fb9.js');
20
- const submitGtag = require('./submitGtag-9ac5a42e.js');
21
20
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
22
21
  require('./isContrastColor-6a17f408.js');
22
+ require('./submitGtag-4241212b.js');
23
23
  require('./debounce-3e17b4e9.js');
24
24
 
25
25
  /**
@@ -1631,7 +1631,7 @@ const ZonosCheckout = class {
1631
1631
  }
1632
1632
  // Close the confirm dialog
1633
1633
  this.confirmDialogOpen = false;
1634
- submitGtag.submitGtag({
1634
+ paypal.submitAnalytics({
1635
1635
  event: 'zonos-checkout-close',
1636
1636
  metadata: {
1637
1637
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -1958,7 +1958,7 @@ const ZonosCheckout = class {
1958
1958
  isPreview: this.preview,
1959
1959
  sessionTimeout: CHECKOUT_SESSION_TIMEOUT,
1960
1960
  });
1961
- submitGtag.submitGtag({
1961
+ paypal.submitAnalytics({
1962
1962
  event: 'zonos-checkout-start',
1963
1963
  metadata: {
1964
1964
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -2357,7 +2357,7 @@ const ZonosCheckout = class {
2357
2357
  async handleCustomerInfoContinue() {
2358
2358
  var _a, _b, _c, _d;
2359
2359
  // submit google tag when the form is complete
2360
- submitGtag.submitGtag({
2360
+ paypal.submitAnalytics({
2361
2361
  event: 'zonos-checkout-customer-info',
2362
2362
  metadata: {
2363
2363
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -2531,7 +2531,7 @@ const ZonosCheckout = class {
2531
2531
  }
2532
2532
  catch (err) {
2533
2533
  handleFetch.logError(err);
2534
- submitGtag.submitGtag({
2534
+ paypal.submitAnalytics({
2535
2535
  event: 'zonos-checkout-payment-fail',
2536
2536
  metadata: {
2537
2537
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -2550,7 +2550,7 @@ const ZonosCheckout = class {
2550
2550
  }
2551
2551
  catch (err) {
2552
2552
  handleFetch.logError(err);
2553
- submitGtag.submitGtag({
2553
+ paypal.submitAnalytics({
2554
2554
  event: 'zonos-checkout-payment-fail',
2555
2555
  metadata: {
2556
2556
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -4,14 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const cart = require('./cart-d08c87e2.js');
7
- const paypal = require('./paypal-73a542cb.js');
7
+ const paypal = require('./paypal-e278f405.js');
8
8
  const localization = require('./localization-a7fac4b4.js');
9
9
  const zonosStore = require('./zonosStore-1c517e55.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
12
12
  const getBorderRadius = require('./getBorderRadius-db55a464.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
- const submitGtag = require('./submitGtag-9ac5a42e.js');
15
14
  const isCollectMobileTablet = require('./isCollectMobileTablet-9675485f.js');
16
15
  const classes = require('./classes-b7918f56.js');
17
16
  const ILanguage = require('./ILanguage-98b04442.js');
@@ -20,6 +19,7 @@ const placeTestOrder = require('./placeTestOrder-aefd31e8.js');
20
19
  const renderFallback = require('./renderFallback-bc20ee20.js');
21
20
  require('./isDarkColor-bfe6d1eb.js');
22
21
  require('./isContrastColor-6a17f408.js');
22
+ require('./submitGtag-4241212b.js');
23
23
 
24
24
  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>`;
25
25
 
@@ -158,7 +158,7 @@ const ZonosCollectFinish = class {
158
158
  window.history.replaceState({}, '', url.toString());
159
159
  // Payment doesn't go through
160
160
  if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
161
- submitGtag.submitGtag({ event: 'zonos-checkout-payment-fail' });
161
+ paypal.submitAnalytics({ event: 'zonos-checkout-payment-fail' });
162
162
  void handleFetch.sendErrorLog({
163
163
  endpoint: 'Stripe payment failed',
164
164
  errors: [
@@ -171,7 +171,7 @@ const ZonosCollectFinish = class {
171
171
  });
172
172
  }
173
173
  else {
174
- submitGtag.submitGtag({ event: 'zonos-checkout-success' });
174
+ paypal.submitAnalytics({ event: 'zonos-checkout-success' });
175
175
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
176
176
  void cart.trackConversionEvent({
177
177
  checkoutSessionId,
@@ -216,7 +216,7 @@ const ZonosCollectFinish = class {
216
216
  // show success message right away when order id is already created
217
217
  this.isLoading = false;
218
218
  if (paypal.paypalStore.orderIdCreated) {
219
- submitGtag.submitGtag({ event: 'zonos-checkout-success' });
219
+ paypal.submitAnalytics({ event: 'zonos-checkout-success' });
220
220
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
221
221
  void cart.trackConversionEvent({
222
222
  checkoutSessionId,
@@ -272,11 +272,11 @@ const ZonosCollectFinish = class {
272
272
  }
273
273
  render() {
274
274
  const cartId = window.Zonos.cartId;
275
- return (index.h(index.Host, { key: 'ece5aa1dae1e8e7bb99c0904adeaf6541fbf3ea6', class: "zonos--checkout-finish zonos--elements", style: {
275
+ return (index.h(index.Host, { key: '89331d23e3b6b57ce708f091fb4c9cdaae84f838', class: "zonos--checkout-finish zonos--elements", style: {
276
276
  '--zonos--border-radius': getBorderRadius.getBorderRadius({
277
277
  overrideBorderStyle: this.borderRadius,
278
278
  }),
279
- } }, !this.isLoading && (index.h("div", { key: 'd48c2384fb55b7b318143f933775c35e29abbe38', class: "zonos--finish-details" }, index.h("div", { key: '85e03a288ee29bc1f664d03b9c99a164acc51b92', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '7fcd228d5144d4f523d15870cdf18491278f0ee6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (index.h("zonos-badge", { key: '219365d86b8aef904adffb1fab5e045db174a724', badgeColor: "gray" }, this.confirmationId)), index.h("zonos-text", { key: '4b2b41bdf35eb2d79b32fa5f7538798e3fd028f5', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.order && cartId && (index.h("div", { key: '52431496f81706a720406843309646b4fd9b2413', class: "zonos--button-container" }, index.h("zonos-button", { key: '4ccdbba8da9591c6207a472df29515fec8c0c56f', onClick: () => {
279
+ } }, !this.isLoading && (index.h("div", { key: '7539e73d3e88c6a486ded338d35ec55398a1f3f4', class: "zonos--finish-details" }, index.h("div", { key: '4a61f515eff3cf0ce77fc88526424c1e63e5d66a', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '6a44ceadf42398e95b3bef73888583cca2d4d076', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (index.h("zonos-badge", { key: 'aa83de37eaaa4e8a349d6752f11d933584d56c81', badgeColor: "gray" }, this.confirmationId)), index.h("zonos-text", { key: '26ff76617b31f1726bdc3b7d024a29841692f7b9', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.order && cartId && (index.h("div", { key: '721ce7b4561f9d82c2a251ac3f595e36567aaac7', class: "zonos--button-container" }, index.h("zonos-button", { key: '77db63afae505f5472f089e4e5ed9e9c52e48157', onClick: () => {
280
280
  window.open(this.getReceiptUrl({ cartId }), '_blank');
281
281
  }, size: "lg", variant: "primary" }, localization.translate('View receipt')))))))));
282
282
  }
@@ -498,7 +498,7 @@ const ZonosCollectPayment = class {
498
498
  }
499
499
  cart.stripeStore.checkoutSettlementCurrency = currencyCode;
500
500
  // submit google tag when the form is complete
501
- submitGtag.submitGtag({ event: 'zonos-checkout-payment-info' });
501
+ paypal.submitAnalytics({ event: 'zonos-checkout-payment-info' });
502
502
  this.continueClicked.emit();
503
503
  };
504
504
  this.copyCardToClipboard = async (cardNumber) => {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const cart = require('./cart-d08c87e2.js');
7
7
  const isCollectMobileTablet = require('./isCollectMobileTablet-9675485f.js');
8
- const paypal = require('./paypal-73a542cb.js');
8
+ const paypal = require('./paypal-e278f405.js');
9
9
  const localization = require('./localization-a7fac4b4.js');
10
10
  const zonosStore = require('./zonosStore-1c517e55.js');
11
11
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
@@ -17,7 +17,7 @@ const ILanguage = require('./ILanguage-98b04442.js');
17
17
  require('./isDarkColor-bfe6d1eb.js');
18
18
  require('./getBorderRadius-db55a464.js');
19
19
  require('./isContrastColor-6a17f408.js');
20
- require('./submitGtag-9ac5a42e.js');
20
+ require('./submitGtag-4241212b.js');
21
21
 
22
22
  const ChevronDownIcon = `<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
23
23
 
@@ -9,7 +9,7 @@ const zonosStore = require('./zonosStore-1c517e55.js');
9
9
  const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
12
- const submitGtag = require('./submitGtag-9ac5a42e.js');
12
+ const submitGtag = require('./submitGtag-4241212b.js');
13
13
  require('./isDarkColor-bfe6d1eb.js');
14
14
  require('./getBorderRadius-db55a464.js');
15
15
 
@@ -542,7 +542,7 @@ const ZonosController = class {
542
542
  }
543
543
  document.body.appendChild(scriptToInject);
544
544
  });
545
- // Custom HTML may set window.Zonos.googleAnalyticId; trigger relay ping so parent configures GA
545
+ // Custom HTML may set window.Zonos.googleAnalyticId / window.Zonos.facebookPixelId; trigger relay ping so parent configures GA / FB Pixel
546
546
  submitGtag.ensureAnalyticsRelayPing();
547
547
  }
548
548
  async initGooglePlacesService(settings) {
@@ -730,7 +730,7 @@ const ZonosController = class {
730
730
  zonosStore.zonosStore.organizationName = organizationName;
731
731
  }
732
732
  render() {
733
- return index.h(index.Host, { key: '4355afb5d8b739bf114a898803287d948fa4539e', class: "zonos--elements" });
733
+ return index.h(index.Host, { key: 'd500743a0ed7dc7615e696aaf958216374e7c33b', class: "zonos--elements" });
734
734
  }
735
735
  };
736
736
  ZonosController.style = ZonosControllerStyle0;
@@ -4,14 +4,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const cart = require('./cart-d08c87e2.js');
7
- const paypal = require('./paypal-73a542cb.js');
7
+ const paypal = require('./paypal-e278f405.js');
8
8
  const localization = require('./localization-a7fac4b4.js');
9
9
  const zonosStore = require('./zonosStore-1c517e55.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
12
12
  const getBorderRadius = require('./getBorderRadius-db55a464.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
- const submitGtag = require('./submitGtag-9ac5a42e.js');
15
14
  const isInvoiceMobileTablet = require('./isInvoiceMobileTablet-dde41e4e.js');
16
15
  const classes = require('./classes-b7918f56.js');
17
16
  const ILanguage = require('./ILanguage-98b04442.js');
@@ -21,6 +20,7 @@ const placeTestOrder = require('./placeTestOrder-aefd31e8.js');
21
20
  const renderFallback = require('./renderFallback-bc20ee20.js');
22
21
  require('./isDarkColor-bfe6d1eb.js');
23
22
  require('./isContrastColor-6a17f408.js');
23
+ require('./submitGtag-4241212b.js');
24
24
 
25
25
  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>`;
26
26
 
@@ -159,7 +159,7 @@ const ZonosInvoiceFinish = class {
159
159
  window.history.replaceState({}, '', url.toString());
160
160
  // Payment doesn't go through
161
161
  if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
162
- submitGtag.submitGtag({ event: 'zonos-checkout-payment-fail' });
162
+ paypal.submitAnalytics({ event: 'zonos-checkout-payment-fail' });
163
163
  void handleFetch.sendErrorLog({
164
164
  endpoint: 'Stripe payment failed',
165
165
  errors: [
@@ -172,7 +172,7 @@ const ZonosInvoiceFinish = class {
172
172
  });
173
173
  }
174
174
  else {
175
- submitGtag.submitGtag({ event: 'zonos-checkout-success' });
175
+ paypal.submitAnalytics({ event: 'zonos-checkout-success' });
176
176
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
177
177
  void cart.trackConversionEvent({
178
178
  checkoutSessionId,
@@ -217,7 +217,7 @@ const ZonosInvoiceFinish = class {
217
217
  // show success message right away when order id is already created
218
218
  this.isLoading = false;
219
219
  if (paypal.paypalStore.orderIdCreated) {
220
- submitGtag.submitGtag({ event: 'zonos-checkout-success' });
220
+ paypal.submitAnalytics({ event: 'zonos-checkout-success' });
221
221
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
222
222
  void cart.trackConversionEvent({
223
223
  checkoutSessionId,
@@ -273,11 +273,11 @@ const ZonosInvoiceFinish = class {
273
273
  }
274
274
  render() {
275
275
  const cartId = window.Zonos.cartId;
276
- return (index.h(index.Host, { key: '4b4f83358419134c8455c4407f91adf8c1ff37ca', class: "zonos--checkout-finish zonos--elements", style: {
276
+ return (index.h(index.Host, { key: '6c0363334a9e6602b93e83a0dfeb733285db7683', class: "zonos--checkout-finish zonos--elements", style: {
277
277
  '--zonos--border-radius': getBorderRadius.getBorderRadius({
278
278
  overrideBorderStyle: this.borderRadius,
279
279
  }),
280
- } }, !this.isLoading && (index.h("div", { key: 'fab4606540bf759d9241432f58580b10f1c12b03', class: "zonos--finish-details" }, index.h("div", { key: 'b619eee9fda1e183b4d761f3576ae28cee2a9619', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '30fa51dba81331c9aa7ff4f64c274982d36d8a23', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (index.h("zonos-badge", { key: 'f10389b65e7910c7b3bd1e0d576afde74bc28e27', badgeColor: "gray" }, this.confirmationId)), index.h("zonos-text", { key: '5033c51a90cdbccb8b0a333f7b63f3383b70c264', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.order && cartId && (index.h("div", { key: '83350cb42d4165ec874a8b18dc29e851ca4ae4c8', class: "zonos--button-container" }, index.h("zonos-button", { key: 'fa05f016f520f65660270c906b7a5940b808cb4b', onClick: () => {
280
+ } }, !this.isLoading && (index.h("div", { key: '299a9afc37f5e1bbe828f2b68569a686b82baff1', class: "zonos--finish-details" }, index.h("div", { key: '24a827b96c4a74066b7701c70f6cdf980ff060f5', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '74bfa9e0126ea8b0a693fdc2e034cdd6ef352dcb', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (index.h("zonos-badge", { key: '5cc0089225fac166cfa13cc11e72efeb34ad8567', badgeColor: "gray" }, this.confirmationId)), index.h("zonos-text", { key: 'fb101b1058adeafe38a03d2a915b6b7f80c44061', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.order && cartId && (index.h("div", { key: '2ecc8d45967ccd720f0ec4d532aa266ac42acc14', class: "zonos--button-container" }, index.h("zonos-button", { key: '3f04711341f273a767d5109274f92eec424b1675', onClick: () => {
281
281
  window.open(this.getReceiptUrl({ cartId }), '_blank');
282
282
  }, size: "lg", variant: "primary" }, localization.translate('View receipt')))))))));
283
283
  }
@@ -479,7 +479,7 @@ const ZonosInvoicePayment = class {
479
479
  }
480
480
  cart.stripeStore.checkoutSettlementCurrency = currencyCode;
481
481
  // submit google tag when the form is complete
482
- submitGtag.submitGtag({ event: 'zonos-checkout-payment-info' });
482
+ paypal.submitAnalytics({ event: 'zonos-checkout-payment-info' });
483
483
  this.continueClicked.emit();
484
484
  };
485
485
  this.copyCardToClipboard = async (cardNumber) => {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const cart = require('./cart-d08c87e2.js');
7
7
  const invoice = require('./invoice-e64f97c6.js');
8
- const paypal = require('./paypal-73a542cb.js');
8
+ const paypal = require('./paypal-e278f405.js');
9
9
  const localization = require('./localization-a7fac4b4.js');
10
10
  const zonosStore = require('./zonosStore-1c517e55.js');
11
11
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
@@ -17,7 +17,7 @@ const ILanguage = require('./ILanguage-98b04442.js');
17
17
  require('./isDarkColor-bfe6d1eb.js');
18
18
  require('./getBorderRadius-db55a464.js');
19
19
  require('./isContrastColor-6a17f408.js');
20
- require('./submitGtag-9ac5a42e.js');
20
+ require('./submitGtag-4241212b.js');
21
21
 
22
22
  const ChevronDownIcon = `<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
23
23