@zonos/elements 1.3.145 → 1.3.146

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 (84) hide show
  1. package/dist/cjs/{cart-9d5e2816.js → cart-a262c92c.js} +3 -1
  2. package/dist/cjs/index.cjs.js +7 -7
  3. package/dist/cjs/{paypal-f9015045.js → paypal-0895372a.js} +1 -1
  4. package/dist/cjs/zonos-address_8.cjs.entry.js +2 -2
  5. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +3 -3
  6. package/dist/cjs/zonos-checkout.cjs.entry.js +68 -12
  7. package/dist/cjs/zonos-controller.cjs.entry.js +9 -3
  8. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +66 -10
  15. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
  16. package/dist/collection/components/main/zonos-controller.js +8 -2
  17. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  18. package/dist/collection/components/utils/hello/getZCountryUrlParam.js +3 -1
  19. package/dist/esm/{cart-887f7d66.js → cart-a0b95207.js} +3 -1
  20. package/dist/esm/index.js +7 -7
  21. package/dist/esm/{paypal-6fd5749b.js → paypal-f1005b82.js} +1 -1
  22. package/dist/esm/zonos-address_8.entry.js +2 -2
  23. package/dist/esm/zonos-cart-items_13.entry.js +3 -3
  24. package/dist/esm/zonos-checkout.entry.js +68 -12
  25. package/dist/esm/zonos-controller.entry.js +9 -3
  26. package/dist/esm/zonos-country-flag.entry.js +1 -1
  27. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  28. package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
  29. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  30. package/dist/esm/zonos-hello.entry.js +1 -1
  31. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  32. package/dist/esm-es5/{cart-887f7d66.js → cart-a0b95207.js} +1 -1
  33. package/dist/esm-es5/index.js +1 -1
  34. package/dist/esm-es5/{paypal-6fd5749b.js → paypal-f1005b82.js} +1 -1
  35. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  36. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  37. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  38. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  39. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  40. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  41. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  42. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  43. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  44. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  45. package/dist/scripts/index.d.ts +20 -1
  46. package/dist/scripts/index.js +1 -1
  47. package/dist/scripts/loadZonos.js +1 -1
  48. package/dist/scripts/zonos.js +1 -1
  49. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +2 -0
  50. package/dist/types/types/checkout/CheckoutConfig.d.ts +20 -1
  51. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  52. package/dist/zonos-elements/index.esm.js +1 -1
  53. package/dist/zonos-elements/{p-826b5d0c.system.js → p-0101da8c.system.js} +1 -1
  54. package/dist/zonos-elements/{p-1d466ac6.entry.js → p-07a8a124.entry.js} +1 -1
  55. package/dist/zonos-elements/p-0ab922d1.js +17 -0
  56. package/dist/zonos-elements/{p-3bd17598.system.entry.js → p-0f02083d.system.entry.js} +1 -1
  57. package/dist/zonos-elements/{p-0e9826d2.system.entry.js → p-23ea1883.system.entry.js} +1 -1
  58. package/dist/zonos-elements/{p-b0ced00a.system.js → p-2d152241.system.js} +1 -1
  59. package/dist/zonos-elements/{p-4d353108.entry.js → p-2d450227.entry.js} +1 -1
  60. package/dist/zonos-elements/p-4456cc80.entry.js +1 -0
  61. package/dist/zonos-elements/{p-896dca32.entry.js → p-469dd116.entry.js} +1 -1
  62. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
  63. package/dist/zonos-elements/{p-9024f5a1.entry.js → p-576f95f8.entry.js} +1 -1
  64. package/dist/zonos-elements/p-60ea5e25.system.entry.js +1 -0
  65. package/dist/zonos-elements/{p-5e76c269.entry.js → p-68f80c51.entry.js} +1 -1
  66. package/dist/zonos-elements/{p-2e6265cc.system.entry.js → p-6ad1541e.system.entry.js} +1 -1
  67. package/dist/zonos-elements/p-89dcf124.system.entry.js +1 -0
  68. package/dist/zonos-elements/{p-fdb592a8.system.js → p-931d7fb7.system.js} +1 -1
  69. package/dist/zonos-elements/{p-fec7bdd4.system.entry.js → p-9e934cc7.system.entry.js} +1 -1
  70. package/dist/zonos-elements/{p-b4823b13.entry.js → p-ae95877a.entry.js} +1 -1
  71. package/dist/zonos-elements/{p-98db517b.entry.js → p-badca4a1.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-e3abf96c.system.entry.js → p-bcc65b55.system.entry.js} +1 -1
  73. package/dist/zonos-elements/{p-b18c4d1d.js → p-c23e256e.js} +1 -1
  74. package/dist/zonos-elements/{p-794b2d24.system.entry.js → p-d2214283.system.entry.js} +1 -1
  75. package/dist/zonos-elements/{p-e4d509be.entry.js → p-d2477bcf.entry.js} +1 -1
  76. package/dist/zonos-elements/{p-9ae29c27.system.entry.js → p-d787a694.system.entry.js} +1 -1
  77. package/dist/zonos-elements/{p-b7a40db9.system.entry.js → p-e619ff1e.system.entry.js} +1 -1
  78. package/dist/zonos-elements/{p-e8926f59.entry.js → p-ff8d0109.entry.js} +1 -1
  79. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  80. package/package.json +1 -1
  81. package/dist/zonos-elements/p-3f282167.system.entry.js +0 -1
  82. package/dist/zonos-elements/p-49b8760c.system.entry.js +0 -1
  83. package/dist/zonos-elements/p-5e4b6b77.js +0 -17
  84. package/dist/zonos-elements/p-f824a75f.entry.js +0 -1
@@ -9508,7 +9508,9 @@ const getZCountryUrlParam = (urlParams) => {
9508
9508
  const zCountry = getCountryParam('zCountry');
9509
9509
  // Fallback to legacy 'country'
9510
9510
  const fallback = getCountryParam('country');
9511
- return zCountry || fallback;
9511
+ // Fallback to customerCountry
9512
+ const secondFallback = getCountryParam('customerCountry');
9513
+ return zCountry || fallback || secondFallback;
9512
9514
  };
9513
9515
 
9514
9516
  const getLocalization = async () => {
@@ -129,7 +129,7 @@ const getZonosQaUrl = () => {
129
129
  return null;
130
130
  }
131
131
  const qaUrl = extractZonosQaUrl(window.location.href);
132
- const cdnUrl = "https://v1.3.145.js.zonos.com";
132
+ const cdnUrl = "https://v1.3.146.js.zonos.com";
133
133
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
134
134
  if (!qaUrl &&
135
135
  (cdnUrl.includes('test.') ||
@@ -313,10 +313,10 @@ const zonosLoadUrl = (() => {
313
313
  }
314
314
  return null;
315
315
  })();
316
- const ZONOS_URL = "https://v1.3.145.js.zonos.com";
317
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.145";
318
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.145";
319
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.145";
316
+ const ZONOS_URL = "https://v1.3.146.js.zonos.com";
317
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.146";
318
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.146";
319
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.146";
320
320
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
321
321
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
322
322
  class Zonos {
@@ -330,7 +330,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
330
330
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
331
331
  Zonos._paypalMockResponse = null;
332
332
  Zonos.isBigCommerce = false;
333
- Zonos.releaseDate = "1735941346400";
333
+ Zonos.releaseDate = "1736455756547";
334
334
  Zonos.isLegacyCheckout = false;
335
335
  Zonos.domain = typeof window !== 'undefined'
336
336
  ? // domain that embeds the iframe
@@ -346,7 +346,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
346
346
  Zonos.isNpm = true;
347
347
  Zonos.zonosQaUrl = null;
348
348
  Zonos.zonosQaUrlApi = null;
349
- Zonos.version = `v${"1.3.145"}`;
349
+ Zonos.version = `v${"1.3.146"}`;
350
350
  Zonos.modeAlerted = false;
351
351
  Zonos.cartData = null;
352
352
  Zonos.paypal = null;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-46809186.js');
4
- const cart = require('./cart-9d5e2816.js');
4
+ const cart = require('./cart-a262c92c.js');
5
5
  const handleFetch = require('./handleFetch-3673a0c2.js');
6
6
  const isDarkColor = require('./isDarkColor-2acf30d1.js');
7
7
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-a262c92c.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const handleFetch = require('./handleFetch-3673a0c2.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
@@ -585,7 +585,7 @@ const ZonosLinkAuthentication = class {
585
585
  return;
586
586
  }
587
587
  // No need to initialize link if this is staging mode since we will render the email input field
588
- if (cart.cartStore.isStagingMode) {
588
+ if (cart.cartStore.isStagingMode || !this.clientSecret) {
589
589
  return;
590
590
  }
591
591
  const defaultValues = this.defaultEmail
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-a262c92c.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-f9015045.js');
8
+ const paypal = require('./paypal-0895372a.js');
9
9
  const zonosStore = require('./zonosStore-46809186.js');
10
10
  const handleFetch = require('./handleFetch-3673a0c2.js');
11
11
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
@@ -2133,7 +2133,7 @@ const ZonosCurrencyToggle = class {
2133
2133
  static get assetsDirs() { return ["assets"]; }
2134
2134
  };
2135
2135
 
2136
- 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}.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;-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--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
2136
+ 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}.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;-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--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:1}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
2137
2137
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
2138
2138
 
2139
2139
  const ZonosCustomerInfo = class {
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
7
- const paypal = require('./paypal-f9015045.js');
6
+ const cart = require('./cart-a262c92c.js');
7
+ const paypal = require('./paypal-0895372a.js');
8
8
  const zonosStore = require('./zonosStore-46809186.js');
9
9
  const handleFetch = require('./handleFetch-3673a0c2.js');
10
10
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
@@ -445,7 +445,17 @@ const ZonosCheckout = class {
445
445
  // if createCartId is provided, use it to build cart. Merchant will provide create a cart from their server side and give the cart id to us.
446
446
  if (typeof zonosStore.zonosStore.checkoutSettings.createCartId === 'function') {
447
447
  handleFetch.log('"createCartId" is provided, start building cart');
448
- const cartId = await zonosStore.zonosStore.checkoutSettings.createCartId();
448
+ const cartIdResult = await zonosStore.zonosStore.checkoutSettings.createCartId();
449
+ let cartId;
450
+ if (typeof cartIdResult === 'object') {
451
+ handleFetch.log('object detected, use cartId and prefill address from createCartId');
452
+ cartId = cartIdResult.cartId;
453
+ // set prefill address if provided in createCartId callback result
454
+ this.useShippingDataFromCreateCartId(cartIdResult.shippingData);
455
+ }
456
+ else {
457
+ cartId = cartIdResult;
458
+ }
449
459
  window.Zonos.cartId = cartId;
450
460
  const cartResult = await CheckoutConfig.setupCartData(cartId);
451
461
  const cartData = cartResult === null || cartResult === void 0 ? void 0 : cartResult.cartData;
@@ -707,6 +717,30 @@ const ZonosCheckout = class {
707
717
  // apply theme to stripe elements
708
718
  void this.applyStripeTheme();
709
719
  }
720
+ useShippingDataFromCreateCartId(prefillAddress) {
721
+ // Do only if prefill address is provided
722
+ if (!prefillAddress) {
723
+ return;
724
+ }
725
+ handleFetch.log('shipping data from createCartId result', 'info', Object.entries(prefillAddress));
726
+ const { customerAddress1, customerAddress2, customerCity, customerCountry, customerEmail, customerName, customerPhone, customerState, customerZip, } = prefillAddress;
727
+ const urlParams = new URLSearchParams(window.location.search);
728
+ const country = // fallback to selected country code if country is not provided
729
+ customerCountry ||
730
+ cart.getZCountryUrlParam(urlParams) ||
731
+ cart.localizationStore.selectedCountryCode;
732
+ this.applyPrefillAddress({
733
+ customerAddress1,
734
+ customerAddress2,
735
+ customerCity,
736
+ customerCountry: country,
737
+ customerEmail,
738
+ customerName,
739
+ customerPhone,
740
+ customerState,
741
+ customerZip,
742
+ });
743
+ }
710
744
  /**
711
745
  * Set default address from query param if it's valid
712
746
  */
@@ -720,17 +754,39 @@ const ZonosCheckout = class {
720
754
  }
721
755
  return value;
722
756
  };
723
- const country =
757
+ const customerCountry =
724
758
  // fallback to selected country code if country is not provided
725
759
  cart.getZCountryUrlParam(urlParams) || cart.localizationStore.selectedCountryCode;
726
- const city = getParam('customerCity');
727
- const email = getParam('customerEmail') || '';
728
- const line1 = getParam('customerAddress1');
729
- const line2 = getParam('customerAddress2') || '';
730
- const name = getParam('customerName');
731
- const phone = getParam('customerPhone');
732
- const postal_code = getParam('customerZip') || '';
733
- const state = getParam('customerState') || '';
760
+ const customerCity = getParam('customerCity');
761
+ const customerEmail = getParam('customerEmail');
762
+ const customerAddress1 = getParam('customerAddress1');
763
+ const customerAddress2 = getParam('customerAddress2');
764
+ const customerName = getParam('customerName');
765
+ const customerPhone = getParam('customerPhone');
766
+ const customerZip = getParam('customerZip');
767
+ const customerState = getParam('customerState');
768
+ this.applyPrefillAddress({
769
+ customerAddress1,
770
+ customerAddress2,
771
+ customerCity,
772
+ customerCountry,
773
+ customerEmail,
774
+ customerName,
775
+ customerPhone,
776
+ customerState,
777
+ customerZip,
778
+ });
779
+ }
780
+ applyPrefillAddress({ customerAddress1, customerAddress2, customerCity, customerCountry, customerEmail, customerName, customerPhone, customerState, customerZip, }) {
781
+ const line1 = customerAddress1 || '';
782
+ const country = customerCountry || '';
783
+ const line2 = customerAddress2 || '';
784
+ const city = customerCity || '';
785
+ const email = customerEmail || '';
786
+ const name = customerName || '';
787
+ const phone = customerPhone || '';
788
+ const postal_code = customerZip || '';
789
+ const state = customerState || '';
734
790
  /**
735
791
  * If one of the value is null, no need to preset the default address.
736
792
  * City and state are optional (they are not always provided for example Puerto Rico)
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-a262c92c.js');
7
7
  const zonosStore = require('./zonosStore-46809186.js');
8
8
  const handleFetch = require('./handleFetch-3673a0c2.js');
9
9
  require('./isDarkColor-2acf30d1.js');
@@ -258,7 +258,13 @@ const ZonosController = class {
258
258
  const scripts = template.content.querySelectorAll('script');
259
259
  scripts.forEach(script => {
260
260
  const scriptToInject = document.createElement('script');
261
- scriptToInject.textContent = script.innerHTML;
261
+ if (script.src) {
262
+ scriptToInject.src = script.src;
263
+ scriptToInject.async = script.async;
264
+ }
265
+ else {
266
+ scriptToInject.textContent = script.innerHTML;
267
+ }
262
268
  document.body.appendChild(scriptToInject);
263
269
  });
264
270
  }
@@ -378,7 +384,7 @@ const ZonosController = class {
378
384
  zonosStore.zonosStore.organizationName = organizationName;
379
385
  }
380
386
  render() {
381
- return index.h(index.Host, { key: 'f59eff8c088135e8fc791d03f668e787ec0d0912', class: "zonos--elements" });
387
+ return index.h(index.Host, { key: '001f728dc41550b734fd1b5c9cf15f43c0c4cbdb', class: "zonos--elements" });
382
388
  }
383
389
  };
384
390
  ZonosController.style = ZonosControllerStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-a262c92c.js');
7
7
  const zonosStore = require('./zonosStore-46809186.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-3673a0c2.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-a262c92c.js');
7
7
  const zonosStore = require('./zonosStore-46809186.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
9
  const isDarkColor = require('./isDarkColor-2acf30d1.js');
@@ -6,9 +6,9 @@ const index = require('./index-2f90486e.js');
6
6
  const zonosStore = require('./zonosStore-46809186.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
9
- const cart = require('./cart-9d5e2816.js');
9
+ const cart = require('./cart-a262c92c.js');
10
10
  const handleFetch = require('./handleFetch-3673a0c2.js');
11
- const paypal = require('./paypal-f9015045.js');
11
+ const paypal = require('./paypal-0895372a.js');
12
12
  require('./isDarkColor-2acf30d1.js');
13
13
 
14
14
  const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-a262c92c.js');
7
7
  const zonosStore = require('./zonosStore-46809186.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
6
  const zonosStore = require('./zonosStore-46809186.js');
7
- const cart = require('./cart-9d5e2816.js');
7
+ const cart = require('./cart-a262c92c.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const handleFetch = require('./handleFetch-3673a0c2.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-9d5e2816.js');
6
+ const cart = require('./cart-a262c92c.js');
7
7
  const zonosStore = require('./zonosStore-46809186.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
9
  require('./handleFetch-3673a0c2.js');
@@ -235,7 +235,17 @@ export class ZonosCheckout {
235
235
  // if createCartId is provided, use it to build cart. Merchant will provide create a cart from their server side and give the cart id to us.
236
236
  if (typeof zonosStore.checkoutSettings.createCartId === 'function') {
237
237
  log('"createCartId" is provided, start building cart');
238
- const cartId = await zonosStore.checkoutSettings.createCartId();
238
+ const cartIdResult = await zonosStore.checkoutSettings.createCartId();
239
+ let cartId;
240
+ if (typeof cartIdResult === 'object') {
241
+ log('object detected, use cartId and prefill address from createCartId');
242
+ cartId = cartIdResult.cartId;
243
+ // set prefill address if provided in createCartId callback result
244
+ this.useShippingDataFromCreateCartId(cartIdResult.shippingData);
245
+ }
246
+ else {
247
+ cartId = cartIdResult;
248
+ }
239
249
  window.Zonos.cartId = cartId;
240
250
  const cartResult = await setupCartData(cartId);
241
251
  const cartData = cartResult === null || cartResult === void 0 ? void 0 : cartResult.cartData;
@@ -497,6 +507,30 @@ export class ZonosCheckout {
497
507
  // apply theme to stripe elements
498
508
  void this.applyStripeTheme();
499
509
  }
510
+ useShippingDataFromCreateCartId(prefillAddress) {
511
+ // Do only if prefill address is provided
512
+ if (!prefillAddress) {
513
+ return;
514
+ }
515
+ log('shipping data from createCartId result', 'info', Object.entries(prefillAddress));
516
+ const { customerAddress1, customerAddress2, customerCity, customerCountry, customerEmail, customerName, customerPhone, customerState, customerZip, } = prefillAddress;
517
+ const urlParams = new URLSearchParams(window.location.search);
518
+ const country = // fallback to selected country code if country is not provided
519
+ customerCountry ||
520
+ getZCountryUrlParam(urlParams) ||
521
+ localizationStore.selectedCountryCode;
522
+ this.applyPrefillAddress({
523
+ customerAddress1,
524
+ customerAddress2,
525
+ customerCity,
526
+ customerCountry: country,
527
+ customerEmail,
528
+ customerName,
529
+ customerPhone,
530
+ customerState,
531
+ customerZip,
532
+ });
533
+ }
500
534
  /**
501
535
  * Set default address from query param if it's valid
502
536
  */
@@ -510,17 +544,39 @@ export class ZonosCheckout {
510
544
  }
511
545
  return value;
512
546
  };
513
- const country =
547
+ const customerCountry =
514
548
  // fallback to selected country code if country is not provided
515
549
  getZCountryUrlParam(urlParams) || localizationStore.selectedCountryCode;
516
- const city = getParam('customerCity');
517
- const email = getParam('customerEmail') || '';
518
- const line1 = getParam('customerAddress1');
519
- const line2 = getParam('customerAddress2') || '';
520
- const name = getParam('customerName');
521
- const phone = getParam('customerPhone');
522
- const postal_code = getParam('customerZip') || '';
523
- const state = getParam('customerState') || '';
550
+ const customerCity = getParam('customerCity');
551
+ const customerEmail = getParam('customerEmail');
552
+ const customerAddress1 = getParam('customerAddress1');
553
+ const customerAddress2 = getParam('customerAddress2');
554
+ const customerName = getParam('customerName');
555
+ const customerPhone = getParam('customerPhone');
556
+ const customerZip = getParam('customerZip');
557
+ const customerState = getParam('customerState');
558
+ this.applyPrefillAddress({
559
+ customerAddress1,
560
+ customerAddress2,
561
+ customerCity,
562
+ customerCountry,
563
+ customerEmail,
564
+ customerName,
565
+ customerPhone,
566
+ customerState,
567
+ customerZip,
568
+ });
569
+ }
570
+ applyPrefillAddress({ customerAddress1, customerAddress2, customerCity, customerCountry, customerEmail, customerName, customerPhone, customerState, customerZip, }) {
571
+ const line1 = customerAddress1 || '';
572
+ const country = customerCountry || '';
573
+ const line2 = customerAddress2 || '';
574
+ const city = customerCity || '';
575
+ const email = customerEmail || '';
576
+ const name = customerName || '';
577
+ const phone = customerPhone || '';
578
+ const postal_code = customerZip || '';
579
+ const state = customerState || '';
524
580
  /**
525
581
  * If one of the value is null, no need to preset the default address.
526
582
  * City and state are optional (they are not always provided for example Puerto Rico)
@@ -89,6 +89,7 @@
89
89
  padding-top: 8px;
90
90
  margin-top: 12px;
91
91
  background: var(--zonos--primary-color, var(--zonos-elements-gray-0));
92
+ z-index: 1;
92
93
  }
93
94
  :host .zonos--group-btn zonos-button {
94
95
  width: 100%;
@@ -107,7 +107,13 @@ export class ZonosController {
107
107
  const scripts = template.content.querySelectorAll('script');
108
108
  scripts.forEach(script => {
109
109
  const scriptToInject = document.createElement('script');
110
- scriptToInject.textContent = script.innerHTML;
110
+ if (script.src) {
111
+ scriptToInject.src = script.src;
112
+ scriptToInject.async = script.async;
113
+ }
114
+ else {
115
+ scriptToInject.textContent = script.innerHTML;
116
+ }
111
117
  document.body.appendChild(scriptToInject);
112
118
  });
113
119
  }
@@ -227,7 +233,7 @@ export class ZonosController {
227
233
  zonosStore.organizationName = organizationName;
228
234
  }
229
235
  render() {
230
- return h(Host, { key: 'f59eff8c088135e8fc791d03f668e787ec0d0912', class: "zonos--elements" });
236
+ return h(Host, { key: '001f728dc41550b734fd1b5c9cf15f43c0c4cbdb', class: "zonos--elements" });
231
237
  }
232
238
  static get is() { return "zonos-controller"; }
233
239
  static get encapsulation() { return "shadow"; }
@@ -48,7 +48,7 @@ export class ZonosLinkAuthentication {
48
48
  return;
49
49
  }
50
50
  // No need to initialize link if this is staging mode since we will render the email input field
51
- if (cartStore.isStagingMode) {
51
+ if (cartStore.isStagingMode || !this.clientSecret) {
52
52
  return;
53
53
  }
54
54
  const defaultValues = this.defaultEmail
@@ -15,5 +15,7 @@ export const getZCountryUrlParam = (urlParams) => {
15
15
  const zCountry = getCountryParam('zCountry');
16
16
  // Fallback to legacy 'country'
17
17
  const fallback = getCountryParam('country');
18
- return zCountry || fallback;
18
+ // Fallback to customerCountry
19
+ const secondFallback = getCountryParam('customerCountry');
20
+ return zCountry || fallback || secondFallback;
19
21
  };
@@ -9506,7 +9506,9 @@ const getZCountryUrlParam = (urlParams) => {
9506
9506
  const zCountry = getCountryParam('zCountry');
9507
9507
  // Fallback to legacy 'country'
9508
9508
  const fallback = getCountryParam('country');
9509
- return zCountry || fallback;
9509
+ // Fallback to customerCountry
9510
+ const secondFallback = getCountryParam('customerCountry');
9511
+ return zCountry || fallback || secondFallback;
9510
9512
  };
9511
9513
 
9512
9514
  const getLocalization = async () => {
package/dist/esm/index.js CHANGED
@@ -126,7 +126,7 @@ const getZonosQaUrl = () => {
126
126
  return null;
127
127
  }
128
128
  const qaUrl = extractZonosQaUrl(window.location.href);
129
- const cdnUrl = "https://v1.3.145.js.zonos.com";
129
+ const cdnUrl = "https://v1.3.146.js.zonos.com";
130
130
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
131
131
  if (!qaUrl &&
132
132
  (cdnUrl.includes('test.') ||
@@ -310,10 +310,10 @@ const zonosLoadUrl = (() => {
310
310
  }
311
311
  return null;
312
312
  })();
313
- const ZONOS_URL = "https://v1.3.145.js.zonos.com";
314
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.145";
315
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.145";
316
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.145";
313
+ const ZONOS_URL = "https://v1.3.146.js.zonos.com";
314
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.146";
315
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.146";
316
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.146";
317
317
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
318
318
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
319
319
  class Zonos {
@@ -327,7 +327,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
327
327
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
328
328
  Zonos._paypalMockResponse = null;
329
329
  Zonos.isBigCommerce = false;
330
- Zonos.releaseDate = "1735941346400";
330
+ Zonos.releaseDate = "1736455756547";
331
331
  Zonos.isLegacyCheckout = false;
332
332
  Zonos.domain = typeof window !== 'undefined'
333
333
  ? // domain that embeds the iframe
@@ -343,7 +343,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
343
343
  Zonos.isNpm = true;
344
344
  Zonos.zonosQaUrl = null;
345
345
  Zonos.zonosQaUrlApi = null;
346
- Zonos.version = `v${"1.3.145"}`;
346
+ Zonos.version = `v${"1.3.146"}`;
347
347
  Zonos.modeAlerted = false;
348
348
  Zonos.cartData = null;
349
349
  Zonos.paypal = null;
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-44efd080.js';
2
- import { C as validateCheckoutSession, f as stripeStore, e as cartStore, x as stripeStoreHandleInventoryCheck, q as translate, w as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-887f7d66.js';
2
+ import { C as validateCheckoutSession, f as stripeStore, e as cartStore, x as stripeStoreHandleInventoryCheck, q as translate, w as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-a0b95207.js';
3
3
  import { h as handleFetch, l as log, b as logError, j as jsonParse } from './handleFetch-b4633675.js';
4
4
  import { t as tinycolor } from './isDarkColor-10f38df6.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-d82f06f2.js';
2
- import { f as stripeStore, T as getFallbackDefaultCountryCode, l as localizationStore, q as translate, e as cartStore } from './cart-887f7d66.js';
2
+ import { f as stripeStore, T as getFallbackDefaultCountryCode, l as localizationStore, q as translate, e as cartStore } from './cart-a0b95207.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
4
  import { b as logError, l as log } from './handleFetch-b4633675.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
@@ -581,7 +581,7 @@ const ZonosLinkAuthentication = class {
581
581
  return;
582
582
  }
583
583
  // No need to initialize link if this is staging mode since we will render the email input field
584
- if (cartStore.isStagingMode) {
584
+ if (cartStore.isStagingMode || !this.clientSecret) {
585
585
  return;
586
586
  }
587
587
  const defaultValues = this.defaultEmail
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-d82f06f2.js';
2
- import { e as cartStore, J as currencyFormat, q as translate, K as cartStoreHasOneEligibleItem, L as stripeStoreApplyPromoCode, M as stripeStoreRemovePromoCode, f as stripeStore, A as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, N as stripeStoreResetPromoCode, O as stripeStoreMessageBasedOnStatus, l as localizationStore, w as cartStoreNextStep, P as stripeStoreTranslateAddressToLatin, Q as cartStoreUpdateSelectedShippingOption, R as cartStoreGetShippingTransitInfo, S as sortServiceLevelOptionsByAmount } from './cart-887f7d66.js';
2
+ import { e as cartStore, J as currencyFormat, q as translate, K as cartStoreHasOneEligibleItem, L as stripeStoreApplyPromoCode, M as stripeStoreRemovePromoCode, f as stripeStore, A as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, N as stripeStoreResetPromoCode, O as stripeStoreMessageBasedOnStatus, l as localizationStore, w as cartStoreNextStep, P as stripeStoreTranslateAddressToLatin, Q as cartStoreUpdateSelectedShippingOption, R as cartStoreGetShippingTransitInfo, S as sortServiceLevelOptionsByAmount } from './cart-a0b95207.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-6fd5749b.js';
4
+ import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-f1005b82.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-44efd080.js';
6
6
  import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, g as getIsTestMode, d as allLogs, b as logError, a as getIsStagingMode } from './handleFetch-b4633675.js';
7
7
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
@@ -2129,7 +2129,7 @@ const ZonosCurrencyToggle = class {
2129
2129
  static get assetsDirs() { return ["assets"]; }
2130
2130
  };
2131
2131
 
2132
- 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}.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;-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--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
2132
+ 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}.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;-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--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:1}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
2133
2133
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
2134
2134
 
2135
2135
  const ZonosCustomerInfo = class {