@zonos/elements 1.3.128 → 1.3.129

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 (107) hide show
  1. package/dist/cjs/{CheckoutConfig-8e3cdcb3.js → CheckoutConfig-62479cef.js} +1 -1
  2. package/dist/cjs/{cart-3bdaf092.js → cart-ba8cca00.js} +22 -3
  3. package/dist/cjs/{handleFetch-fa0ce321.js → handleFetch-a8dfb07c.js} +1 -1
  4. package/dist/cjs/index.cjs.js +15 -9
  5. package/dist/cjs/{paypal-2f48ab8d.js → paypal-441c3f79.js} +2 -2
  6. package/dist/cjs/zonos-address_7.cjs.entry.js +2 -2
  7. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +6 -9
  8. package/dist/cjs/zonos-checkout.cjs.entry.js +7 -8
  9. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  10. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-country-select_4.cjs.entry.js +2 -2
  12. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-notification_3.cjs.entry.js +3 -3
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +3 -6
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +3 -3
  18. package/dist/collection/components/store/checkout/stripe.js +17 -2
  19. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +4 -0
  20. package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +0 -1
  21. package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
  22. package/dist/collection/scripts/_zonosBase.js +6 -0
  23. package/dist/collection/types/generated/graphql.frontend.types.js +5 -0
  24. package/dist/collection/types/generated/graphql.internal.types.js +39 -0
  25. package/dist/esm/{CheckoutConfig-101b97e6.js → CheckoutConfig-5da839fa.js} +1 -1
  26. package/dist/esm/{cart-519f08e3.js → cart-01b5bf4a.js} +22 -3
  27. package/dist/esm/{handleFetch-da1a9c5d.js → handleFetch-40fc3562.js} +1 -1
  28. package/dist/esm/index.js +16 -10
  29. package/dist/esm/{paypal-d0a05eda.js → paypal-4c094b25.js} +2 -2
  30. package/dist/esm/zonos-address_7.entry.js +2 -2
  31. package/dist/esm/zonos-cart-items_13.entry.js +6 -9
  32. package/dist/esm/zonos-checkout.entry.js +7 -8
  33. package/dist/esm/zonos-controller.entry.js +2 -2
  34. package/dist/esm/zonos-country-flag.entry.js +2 -2
  35. package/dist/esm/zonos-country-select_4.entry.js +2 -2
  36. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  37. package/dist/esm/zonos-hello.entry.js +2 -2
  38. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  39. package/dist/esm/zonos-notification_3.entry.js +3 -3
  40. package/dist/esm-es5/{CheckoutConfig-101b97e6.js → CheckoutConfig-5da839fa.js} +1 -1
  41. package/dist/esm-es5/{cart-519f08e3.js → cart-01b5bf4a.js} +1 -1
  42. package/dist/esm-es5/handleFetch-40fc3562.js +1 -0
  43. package/dist/esm-es5/index.js +1 -1
  44. package/dist/esm-es5/{paypal-d0a05eda.js → paypal-4c094b25.js} +1 -1
  45. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  46. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  47. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  48. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  49. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  50. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  51. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  52. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  53. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  54. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  55. package/dist/scripts/index.d.ts +6 -0
  56. package/dist/scripts/index.js +1 -1
  57. package/dist/scripts/loadZonos.js +1 -1
  58. package/dist/scripts/zonos.js +1 -1
  59. package/dist/types/components/store/checkout/stripe.d.ts +1 -0
  60. package/dist/types/scripts/_zonosBase.d.ts +2 -0
  61. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -0
  62. package/dist/types/types/generated/graphql.frontend.types.d.ts +23 -0
  63. package/dist/types/types/generated/graphql.frontend.types.ts +33 -0
  64. package/dist/types/types/generated/graphql.internal.types.d.ts +44 -0
  65. package/dist/types/types/generated/graphql.internal.types.ts +57 -0
  66. package/dist/zonos-elements/index.esm.js +1 -1
  67. package/dist/zonos-elements/{p-eca920dc.system.entry.js → p-08948e65.system.entry.js} +1 -1
  68. package/dist/zonos-elements/p-0cfb97ae.js +1 -0
  69. package/dist/zonos-elements/p-0e8613be.entry.js +1 -0
  70. package/dist/zonos-elements/{p-0cb426b8.entry.js → p-0f465aa6.entry.js} +1 -1
  71. package/dist/zonos-elements/{p-f962fc6a.system.entry.js → p-10aef679.system.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-2db962f9.system.entry.js → p-17a5550a.system.entry.js} +1 -1
  73. package/dist/zonos-elements/p-26172f0d.entry.js +1 -0
  74. package/dist/zonos-elements/{p-8df3d5d0.system.entry.js → p-2bb86f3d.system.entry.js} +1 -1
  75. package/dist/zonos-elements/p-2faa3104.system.entry.js +1 -0
  76. package/dist/zonos-elements/p-4d4ea5dc.system.entry.js +1 -0
  77. package/dist/zonos-elements/{p-ea8663b7.entry.js → p-55a3db7d.entry.js} +1 -1
  78. package/dist/zonos-elements/{p-f7d56ce5.system.js → p-582cdd52.system.js} +1 -1
  79. package/dist/zonos-elements/{p-d9dceba1.system.js → p-5e22a288.system.js} +1 -1
  80. package/dist/zonos-elements/{p-9833f37d.system.entry.js → p-5ee9685e.system.entry.js} +1 -1
  81. package/dist/zonos-elements/p-60b0025b.system.js +1 -0
  82. package/dist/zonos-elements/p-6305e92c.system.js +1 -0
  83. package/dist/zonos-elements/{p-3dbfe639.entry.js → p-700c5732.entry.js} +1 -1
  84. package/dist/zonos-elements/{p-e2cda105.system.entry.js → p-7312d038.system.entry.js} +1 -1
  85. package/dist/zonos-elements/{p-167b7fa8.system.entry.js → p-8390f23d.system.entry.js} +1 -1
  86. package/dist/zonos-elements/{p-d6f1b6fa.system.entry.js → p-8612f8d1.system.entry.js} +1 -1
  87. package/dist/zonos-elements/{p-723c9d4d.entry.js → p-91e111c4.entry.js} +1 -1
  88. package/dist/zonos-elements/{p-2402e12c.js → p-94146bc9.js} +1 -1
  89. package/dist/zonos-elements/p-9b0cbd91.entry.js +1 -0
  90. package/dist/zonos-elements/{p-f50f48da.entry.js → p-9d057d1d.entry.js} +1 -1
  91. package/dist/zonos-elements/{p-00ff4f4a.js → p-a9069f68.js} +1 -1
  92. package/dist/zonos-elements/{p-a3b195e9.js → p-b7cfbfc1.js} +1 -1
  93. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  94. package/dist/zonos-elements/{p-abbfde44.system.js → p-c93c9524.system.js} +2 -2
  95. package/dist/zonos-elements/{p-76d03238.entry.js → p-ce391c90.entry.js} +1 -1
  96. package/dist/zonos-elements/{p-efffbaec.entry.js → p-d6f8309b.entry.js} +1 -1
  97. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  98. package/package.json +1 -1
  99. package/dist/esm-es5/handleFetch-da1a9c5d.js +0 -1
  100. package/dist/zonos-elements/p-0fa85ff9.system.js +0 -1
  101. package/dist/zonos-elements/p-61380d53.system.entry.js +0 -1
  102. package/dist/zonos-elements/p-685e395e.entry.js +0 -1
  103. package/dist/zonos-elements/p-7769b60c.js +0 -1
  104. package/dist/zonos-elements/p-a7eaa9ad.entry.js +0 -1
  105. package/dist/zonos-elements/p-bc9987f2.system.entry.js +0 -1
  106. package/dist/zonos-elements/p-bf2f9095.entry.js +0 -1
  107. package/dist/zonos-elements/p-dcd4e458.system.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const handleFetch = require('./handleFetch-fa0ce321.js');
3
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
4
4
 
5
5
  const getTempCartById = async ({ cartId, retries, }) => {
6
6
  const urlParams = new URLSearchParams(window.location.search);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-e12d459c.js');
4
- const handleFetch = require('./handleFetch-fa0ce321.js');
4
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
5
5
  const isDarkColor = require('./isDarkColor-d206c6fa.js');
6
6
  const getBorderRadius = require('./getBorderRadius-61ed5601.js');
7
7
 
@@ -9210,6 +9210,7 @@ const getTranslatedAddress = ({ currentAddress, translatedAddress, }) => {
9210
9210
  */
9211
9211
  const prepCartCalculateLandedCost = (cartId) => {
9212
9212
  var _a;
9213
+ const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
9213
9214
  // maybe we don't need email now for prefetch the landed cost
9214
9215
  const stripeLinkData = stripeStore.stripeLinkEventData;
9215
9216
  const stripeAddressData = stripeStore.stripeAddressEventData;
@@ -9260,6 +9261,7 @@ const prepCartCalculateLandedCost = (cartId) => {
9260
9261
  lastName: shippingLastName,
9261
9262
  phone: translatedShippingAddress.phone,
9262
9263
  },
9264
+ isTest: !!isE2ETest,
9263
9265
  landedCostAdjustments: cartStore.promoCode
9264
9266
  ? [
9265
9267
  {
@@ -9282,6 +9284,7 @@ const prepCartCalculateLandedCost = (cartId) => {
9282
9284
  };
9283
9285
  };
9284
9286
  const prepCalculateLandedCost = () => {
9287
+ const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
9285
9288
  // maybe we don't need email now for prefetch the landed cost
9286
9289
  const stripeLinkData = stripeStore.stripeLinkEventData;
9287
9290
  const stripeAddressData = stripeStore.stripeAddressEventData;
@@ -9342,6 +9345,7 @@ const prepCalculateLandedCost = () => {
9342
9345
  lastName: shippingLastName,
9343
9346
  phone: translatedShippingAddress.phone,
9344
9347
  },
9348
+ isTest: isE2ETest,
9345
9349
  items: cartStore.items,
9346
9350
  landedCostAdjustments: adjustments,
9347
9351
  shippingAddress: {
@@ -9860,6 +9864,7 @@ const stripeCalculateLandedCost = async () => {
9860
9864
  };
9861
9865
  const stripeStorePrefetchLandedCost = async (params) => {
9862
9866
  var _a, _b, _c, _d, _e, _f, _g, _h;
9867
+ const retries = (params === null || params === void 0 ? void 0 : params.retries) || 0;
9863
9868
  const applyingPromocode = !!(params === null || params === void 0 ? void 0 : params.applyingPromocode);
9864
9869
  const stripeAddressReady = !!((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete);
9865
9870
  const stripeLinkReady = !!((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.complete);
@@ -9879,7 +9884,16 @@ const stripeStorePrefetchLandedCost = async (params) => {
9879
9884
  !stripeBillingAddressReady) {
9880
9885
  return;
9881
9886
  }
9882
- stripeStore.isFetchingLandedCost = true;
9887
+ // If there is retries, stop loading for a moment and then showing the spinner again (this is just so customer can see that checkout is doing something and not stuck)
9888
+ if (retries) {
9889
+ stripeStore.isFetchingLandedCost = false;
9890
+ setTimeout(() => {
9891
+ stripeStore.isFetchingLandedCost = true;
9892
+ }, 300);
9893
+ }
9894
+ else {
9895
+ stripeStore.isFetchingLandedCost = true;
9896
+ }
9883
9897
  if (stripeStore.stripeAddressEventData) {
9884
9898
  stripeStore.stripeAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeAddressEventData);
9885
9899
  }
@@ -9918,9 +9932,14 @@ const stripeStorePrefetchLandedCost = async (params) => {
9918
9932
  if (err instanceof Error &&
9919
9933
  err.message &&
9920
9934
  !excludeErrors.includes(err.message)) {
9935
+ if (retries < 1) {
9936
+ // retry fetching landed cost one more time
9937
+ await stripeStorePrefetchLandedCost(Object.assign(Object.assign({}, params), { retries: (retries || 0) + 1 }));
9938
+ return;
9939
+ }
9921
9940
  const shipToAddress = (_h = stripeStore.stripeAddressUsedWhenFetchingLC) === null || _h === void 0 ? void 0 : _h.value;
9922
9941
  void handleFetch.sendErrorLog({
9923
- endpoint: 'Failed to fetch landed cost',
9942
+ endpoint: `Failed to fetch landed cost (${retries} retries)`,
9924
9943
  errors: [err.message],
9925
9944
  metadata: {
9926
9945
  cartId: window.Zonos.cartId,
@@ -141,7 +141,7 @@ const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseError
141
141
  endpoint,
142
142
  errors,
143
143
  href: window.location.href,
144
- metadata: Object.assign({ userAgent: userAgentData && userAgentData.brands.length > 0
144
+ metadata: Object.assign({ domain: window.Zonos.domain, userAgent: userAgentData && userAgentData.brands.length > 0
145
145
  ? userAgentData
146
146
  : window.navigator.userAgent }, metadata),
147
147
  };
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const handleFetch = require('./handleFetch-fa0ce321.js');
6
- const CheckoutConfig = require('./CheckoutConfig-8e3cdcb3.js');
5
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
6
+ const CheckoutConfig = require('./CheckoutConfig-62479cef.js');
7
7
 
8
8
  /**
9
9
  * Get the load version and url based on the loadScriptSrc and version
@@ -97,7 +97,7 @@ const getZonosQaUrl = () => {
97
97
  return null;
98
98
  }
99
99
  const qaUrl = extractZonosQaUrl(window.location.href);
100
- const cdnUrl = "https://v1.3.128.js.zonos.com";
100
+ const cdnUrl = "https://v1.3.129.js.zonos.com";
101
101
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
102
102
  if (!qaUrl &&
103
103
  (cdnUrl.includes('test.') ||
@@ -281,10 +281,10 @@ const zonosLoadUrl = (() => {
281
281
  }
282
282
  return null;
283
283
  })();
284
- const ZONOS_URL = "https://v1.3.128.js.zonos.com";
285
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.128";
286
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.128";
287
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.128";
284
+ const ZONOS_URL = "https://v1.3.129.js.zonos.com";
285
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.129";
286
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.129";
287
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.129";
288
288
  const INTER_FONT_URL = 'https://rsms.me';
289
289
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
290
290
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -299,8 +299,14 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
299
299
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
300
300
  Zonos._paypalMockResponse = null;
301
301
  Zonos.isBigCommerce = false;
302
- Zonos.releaseDate = "1731429497368";
302
+ Zonos.releaseDate = "1731519234165";
303
303
  Zonos.isLegacyCheckout = false;
304
+ Zonos.domain = typeof window !== 'undefined'
305
+ ? // domain that embeds the iframe
306
+ (window.location != window.parent.location && document.referrer) ||
307
+ // current domain
308
+ document.location.hostname
309
+ : '';
304
310
  Zonos.showBaseForeign = typeof window !== 'undefined' &&
305
311
  window.location.search.includes('zonosShowBaseForeign');
306
312
  /**
@@ -309,7 +315,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
309
315
  Zonos.isNpm = true;
310
316
  Zonos.zonosQaUrl = null;
311
317
  Zonos.zonosQaUrlApi = null;
312
- Zonos.version = `v${"1.3.128"}`;
318
+ Zonos.version = `v${"1.3.129"}`;
313
319
  Zonos.modeAlerted = false;
314
320
  Zonos.cartData = null;
315
321
  Zonos.paypal = null;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-e12d459c.js');
4
- const cart = require('./cart-3bdaf092.js');
5
- const handleFetch = require('./handleFetch-fa0ce321.js');
4
+ const cart = require('./cart-ba8cca00.js');
5
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
6
6
  const isDarkColor = require('./isDarkColor-d206c6fa.js');
7
7
 
8
8
  /*!
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-3bdaf092.js');
6
+ const cart = require('./cart-ba8cca00.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
- const handleFetch = require('./handleFetch-fa0ce321.js');
8
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
10
10
  const zonosStore = require('./zonosStore-e12d459c.js');
11
11
  const classes = require('./classes-b7918f56.js');
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-3bdaf092.js');
6
+ const cart = require('./cart-ba8cca00.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-2f48ab8d.js');
8
+ const paypal = require('./paypal-441c3f79.js');
9
9
  const zonosStore = require('./zonosStore-e12d459c.js');
10
10
  const createCustomEvent = require('./createCustomEvent-3e982e57.js');
11
11
  const getBorderRadius = require('./getBorderRadius-61ed5601.js');
12
- const handleFetch = require('./handleFetch-fa0ce321.js');
12
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
13
13
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
14
14
  const ILanguage = require('./ILanguage-98b04442.js');
15
15
  const isDarkColor = require('./isDarkColor-d206c6fa.js');
@@ -1389,7 +1389,6 @@ const ZonosCheckoutFinish = class {
1389
1389
  metadata: {
1390
1390
  allLogs: handleFetch.allLogs,
1391
1391
  checkoutSessionId: cart.cartStore.checkoutSessionId || '',
1392
- domain: window.location.hostname,
1393
1392
  orderId: order.id,
1394
1393
  storeId: zonosStore.zonosStore.storeId,
1395
1394
  },
@@ -1404,7 +1403,6 @@ const ZonosCheckoutFinish = class {
1404
1403
  metadata: {
1405
1404
  allLogs: handleFetch.allLogs,
1406
1405
  checkoutSessionId: cart.cartStore.checkoutSessionId || '',
1407
- domain: window.location.hostname,
1408
1406
  orderId: order.id,
1409
1407
  storeId: zonosStore.zonosStore.storeId,
1410
1408
  },
@@ -1424,7 +1422,6 @@ const ZonosCheckoutFinish = class {
1424
1422
  metadata: {
1425
1423
  allLogs: handleFetch.allLogs,
1426
1424
  checkoutSessionId: cart.cartStore.checkoutSessionId || '',
1427
- domain: window.location.hostname,
1428
1425
  storeId: zonosStore.zonosStore.storeId,
1429
1426
  },
1430
1427
  });
@@ -1566,12 +1563,12 @@ const ZonosCheckoutFinish = class {
1566
1563
  }
1567
1564
  render() {
1568
1565
  const isTestMode = createCustomEvent.getIsTestMode();
1569
- return (index.h(index.Host, { key: 'e9e088880a1b13f821dfdb7804b2e27efae5298c', class: "zonos--checkout-finish zonos--elements", style: {
1566
+ return (index.h(index.Host, { key: '09ad6462aeafdfa1be8b0f0e34159aa74934b85c', class: "zonos--checkout-finish zonos--elements", style: {
1570
1567
  '--zonos--border-radius': getBorderRadius.getBorderRadius({
1571
1568
  overrideBorderStyle: this.borderRadius,
1572
1569
  }),
1573
- } }, !this.isLoading && (index.h("div", { key: 'a1ec6900c645aedfd4f4662fa5251b5b9adebadf', class: "zonos--finish-details" }, index.h("div", { key: '6e08efc67a101ca4af34c67d853709d1f4f0f436', 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: '049e7cbaef783b113daaf449b842bb27e1cd9fd4', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '9ff5e5794bd0762341ef27cfca03bb52829c3463', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), !window.Zonos.isLegacyCheckout &&
1574
- this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: '0546063749a2b2c96762488e03507bfa31643b33', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: 'ef75fac530f2a3cf69ccd28c2d48f93771b8459e', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '5e8dd1c3e34c1e97b14e9f6225817005b79bd679', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '40c1c75fb3afae2c20ce8b018285f5cc21abbb96', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1570
+ } }, !this.isLoading && (index.h("div", { key: '81df3ec5804d346938cd0052232446500805e5dd', class: "zonos--finish-details" }, index.h("div", { key: '49f0b91cd04f2f6e1291de3c542cec6ed1f3c0a9', 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: '398e803727b65d2dd7da40bb37e25702f69009d6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '75ee45470ceca25057259916c76dd227f62b7276', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), !window.Zonos.isLegacyCheckout &&
1571
+ this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: 'cd792a9dd314e291d0957e0859e3b0e088cf1767', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: 'b54c583f058c23b2b5001179acac0c98780b1ded', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '2405f70c3143725d51d6f6a5e5a440350aeb9b80', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'c977d79e45170cce70695006de1274ef7cc39df4', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1575
1572
  }
1576
1573
  static get assetsDirs() { return ["assets"]; }
1577
1574
  };
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-3bdaf092.js');
7
- const paypal = require('./paypal-2f48ab8d.js');
6
+ const cart = require('./cart-ba8cca00.js');
7
+ const paypal = require('./paypal-441c3f79.js');
8
8
  const zonosStore = require('./zonosStore-e12d459c.js');
9
- const handleFetch = require('./handleFetch-fa0ce321.js');
9
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
10
10
  const createCustomEvent = require('./createCustomEvent-3e982e57.js');
11
11
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
12
12
  const classes = require('./classes-b7918f56.js');
13
13
  const getBorderRadius = require('./getBorderRadius-61ed5601.js');
14
14
  const isDarkColor = require('./isDarkColor-d206c6fa.js');
15
15
  const styles = require('./styles-d1e64fb9.js');
16
- const CheckoutConfig = require('./CheckoutConfig-8e3cdcb3.js');
16
+ const CheckoutConfig = require('./CheckoutConfig-62479cef.js');
17
17
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
18
18
 
19
19
  /**
@@ -155,7 +155,6 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
155
155
  JSON.stringify(Object.entries(shippingAddress)),
156
156
  ],
157
157
  metadata: {
158
- domain: window.location.hostname,
159
158
  storeId: zonosStore.zonosStore.storeId,
160
159
  },
161
160
  });
@@ -604,12 +603,12 @@ const ZonosCheckout = class {
604
603
  const postal_code = getParam('customerZip') || '';
605
604
  const state = getParam('customerState') || '';
606
605
  /**
607
- * If one of the value is null, no need to preset the default address
606
+ * If one of the value is null, no need to preset the default address.
607
+ * City and state are optional (they are not always provided for example Puerto Rico)
608
608
  **/
609
- if (!line1 || (!city && !state) || !name || !phone || !country) {
609
+ if (!line1 || !name || !phone || !country) {
610
610
  handleFetch.log('Missing required query params so it can not be prefilled', 'info', [
611
611
  !line1 && 'line1',
612
- !city && 'city',
613
612
  !name && 'name',
614
613
  !phone && 'phone',
615
614
  !country && 'country',
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-3bdaf092.js');
6
+ const cart = require('./cart-ba8cca00.js');
7
7
  const zonosStore = require('./zonosStore-e12d459c.js');
8
- const handleFetch = require('./handleFetch-fa0ce321.js');
8
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
9
9
  require('./isDarkColor-d206c6fa.js');
10
10
  require('./getBorderRadius-61ed5601.js');
11
11
 
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-3bdaf092.js');
6
+ const cart = require('./cart-ba8cca00.js');
7
7
  const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
- require('./handleFetch-fa0ce321.js');
9
+ require('./handleFetch-a8dfb07c.js');
10
10
  require('./isDarkColor-d206c6fa.js');
11
11
  require('./getBorderRadius-61ed5601.js');
12
12
 
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-3bdaf092.js');
6
+ const cart = require('./cart-ba8cca00.js');
7
7
  const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
9
  const isDarkColor = require('./isDarkColor-d206c6fa.js');
10
10
  const ILanguage = require('./ILanguage-98b04442.js');
11
- require('./handleFetch-fa0ce321.js');
11
+ require('./handleFetch-a8dfb07c.js');
12
12
  require('./getBorderRadius-61ed5601.js');
13
13
 
14
14
  /**
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-3bdaf092.js');
6
+ const cart = require('./cart-ba8cca00.js');
7
7
  const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
11
- require('./handleFetch-fa0ce321.js');
11
+ require('./handleFetch-a8dfb07c.js');
12
12
  require('./isDarkColor-d206c6fa.js');
13
13
  require('./getBorderRadius-61ed5601.js');
14
14
 
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
6
  const zonosStore = require('./zonosStore-e12d459c.js');
7
- const cart = require('./cart-3bdaf092.js');
7
+ const cart = require('./cart-ba8cca00.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
- const handleFetch = require('./handleFetch-fa0ce321.js');
9
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
11
11
  require('./isDarkColor-d206c6fa.js');
12
12
  require('./getBorderRadius-61ed5601.js');
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-3bdaf092.js');
6
+ const cart = require('./cart-ba8cca00.js');
7
7
  const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
- require('./handleFetch-fa0ce321.js');
9
+ require('./handleFetch-a8dfb07c.js');
10
10
  require('./isDarkColor-d206c6fa.js');
11
11
  require('./getBorderRadius-61ed5601.js');
12
12
 
@@ -6,9 +6,9 @@ const index = require('./index-d56e0a8b.js');
6
6
  const zonosStore = require('./zonosStore-e12d459c.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-61ed5601.js');
9
- const cart = require('./cart-3bdaf092.js');
10
- const handleFetch = require('./handleFetch-fa0ce321.js');
11
- const paypal = require('./paypal-2f48ab8d.js');
9
+ const cart = require('./cart-ba8cca00.js');
10
+ const handleFetch = require('./handleFetch-a8dfb07c.js');
11
+ const paypal = require('./paypal-441c3f79.js');
12
12
  require('./isDarkColor-d206c6fa.js');
13
13
 
14
14
  const zonosNotificationCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";
@@ -150,7 +150,6 @@ export class ZonosCheckoutFinish {
150
150
  metadata: {
151
151
  allLogs,
152
152
  checkoutSessionId: cartStore.checkoutSessionId || '',
153
- domain: window.location.hostname,
154
153
  orderId: order.id,
155
154
  storeId: zonosStore.storeId,
156
155
  },
@@ -165,7 +164,6 @@ export class ZonosCheckoutFinish {
165
164
  metadata: {
166
165
  allLogs,
167
166
  checkoutSessionId: cartStore.checkoutSessionId || '',
168
- domain: window.location.hostname,
169
167
  orderId: order.id,
170
168
  storeId: zonosStore.storeId,
171
169
  },
@@ -185,7 +183,6 @@ export class ZonosCheckoutFinish {
185
183
  metadata: {
186
184
  allLogs,
187
185
  checkoutSessionId: cartStore.checkoutSessionId || '',
188
- domain: window.location.hostname,
189
186
  storeId: zonosStore.storeId,
190
187
  },
191
188
  });
@@ -327,12 +324,12 @@ export class ZonosCheckoutFinish {
327
324
  }
328
325
  render() {
329
326
  const isTestMode = getIsTestMode();
330
- return (h(Host, { key: 'e9e088880a1b13f821dfdb7804b2e27efae5298c', class: "zonos--checkout-finish zonos--elements", style: {
327
+ return (h(Host, { key: '09ad6462aeafdfa1be8b0f0e34159aa74934b85c', class: "zonos--checkout-finish zonos--elements", style: {
331
328
  '--zonos--border-radius': getBorderRadius({
332
329
  overrideBorderStyle: this.borderRadius,
333
330
  }),
334
- } }, !this.isLoading && (h("div", { key: 'a1ec6900c645aedfd4f4662fa5251b5b9adebadf', class: "zonos--finish-details" }, h("div", { key: '6e08efc67a101ca4af34c67d853709d1f4f0f436', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '049e7cbaef783b113daaf449b842bb27e1cd9fd4', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '9ff5e5794bd0762341ef27cfca03bb52829c3463', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), !window.Zonos.isLegacyCheckout &&
335
- this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '0546063749a2b2c96762488e03507bfa31643b33', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'ef75fac530f2a3cf69ccd28c2d48f93771b8459e', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '5e8dd1c3e34c1e97b14e9f6225817005b79bd679', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '40c1c75fb3afae2c20ce8b018285f5cc21abbb96', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
331
+ } }, !this.isLoading && (h("div", { key: '81df3ec5804d346938cd0052232446500805e5dd', class: "zonos--finish-details" }, h("div", { key: '49f0b91cd04f2f6e1291de3c542cec6ed1f3c0a9', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '398e803727b65d2dd7da40bb37e25702f69009d6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '75ee45470ceca25057259916c76dd227f62b7276', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), !window.Zonos.isLegacyCheckout &&
332
+ this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'cd792a9dd314e291d0957e0859e3b0e088cf1767', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'b54c583f058c23b2b5001179acac0c98780b1ded', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '2405f70c3143725d51d6f6a5e5a440350aeb9b80', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'c977d79e45170cce70695006de1274ef7cc39df4', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
336
333
  }
337
334
  static get is() { return "zonos-checkout-finish"; }
338
335
  static get encapsulation() { return "shadow"; }
@@ -391,12 +391,12 @@ export class ZonosCheckout {
391
391
  const postal_code = getParam('customerZip') || '';
392
392
  const state = getParam('customerState') || '';
393
393
  /**
394
- * If one of the value is null, no need to preset the default address
394
+ * If one of the value is null, no need to preset the default address.
395
+ * City and state are optional (they are not always provided for example Puerto Rico)
395
396
  **/
396
- if (!line1 || (!city && !state) || !name || !phone || !country) {
397
+ if (!line1 || !name || !phone || !country) {
397
398
  log('Missing required query params so it can not be prefilled', 'info', [
398
399
  !line1 && 'line1',
399
- !city && 'city',
400
400
  !name && 'name',
401
401
  !phone && 'phone',
402
402
  !country && 'country',
@@ -205,6 +205,7 @@ const stripeCalculateLandedCost = async () => {
205
205
  };
206
206
  const stripeStorePrefetchLandedCost = async (params) => {
207
207
  var _a, _b, _c, _d, _e, _f, _g, _h;
208
+ const retries = (params === null || params === void 0 ? void 0 : params.retries) || 0;
208
209
  const applyingPromocode = !!(params === null || params === void 0 ? void 0 : params.applyingPromocode);
209
210
  const stripeAddressReady = !!((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete);
210
211
  const stripeLinkReady = !!((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.complete);
@@ -224,7 +225,16 @@ const stripeStorePrefetchLandedCost = async (params) => {
224
225
  !stripeBillingAddressReady) {
225
226
  return;
226
227
  }
227
- stripeStore.isFetchingLandedCost = true;
228
+ // If there is retries, stop loading for a moment and then showing the spinner again (this is just so customer can see that checkout is doing something and not stuck)
229
+ if (retries) {
230
+ stripeStore.isFetchingLandedCost = false;
231
+ setTimeout(() => {
232
+ stripeStore.isFetchingLandedCost = true;
233
+ }, 300);
234
+ }
235
+ else {
236
+ stripeStore.isFetchingLandedCost = true;
237
+ }
228
238
  if (stripeStore.stripeAddressEventData) {
229
239
  stripeStore.stripeAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeAddressEventData);
230
240
  }
@@ -263,9 +273,14 @@ const stripeStorePrefetchLandedCost = async (params) => {
263
273
  if (err instanceof Error &&
264
274
  err.message &&
265
275
  !excludeErrors.includes(err.message)) {
276
+ if (retries < 1) {
277
+ // retry fetching landed cost one more time
278
+ await stripeStorePrefetchLandedCost(Object.assign(Object.assign({}, params), { retries: (retries || 0) + 1 }));
279
+ return;
280
+ }
266
281
  const shipToAddress = (_h = stripeStore.stripeAddressUsedWhenFetchingLC) === null || _h === void 0 ? void 0 : _h.value;
267
282
  void sendErrorLog({
268
- endpoint: 'Failed to fetch landed cost',
283
+ endpoint: `Failed to fetch landed cost (${retries} retries)`,
269
284
  errors: [err.message],
270
285
  metadata: {
271
286
  cartId: window.Zonos.cartId,
@@ -25,6 +25,7 @@ const getTranslatedAddress = ({ currentAddress, translatedAddress, }) => {
25
25
  */
26
26
  export const prepCartCalculateLandedCost = (cartId) => {
27
27
  var _a;
28
+ const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
28
29
  // maybe we don't need email now for prefetch the landed cost
29
30
  const stripeLinkData = stripeStore.stripeLinkEventData;
30
31
  const stripeAddressData = stripeStore.stripeAddressEventData;
@@ -75,6 +76,7 @@ export const prepCartCalculateLandedCost = (cartId) => {
75
76
  lastName: shippingLastName,
76
77
  phone: translatedShippingAddress.phone,
77
78
  },
79
+ isTest: !!isE2ETest,
78
80
  landedCostAdjustments: cartStore.promoCode
79
81
  ? [
80
82
  {
@@ -97,6 +99,7 @@ export const prepCartCalculateLandedCost = (cartId) => {
97
99
  };
98
100
  };
99
101
  export const prepCalculateLandedCost = () => {
102
+ const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
100
103
  // maybe we don't need email now for prefetch the landed cost
101
104
  const stripeLinkData = stripeStore.stripeLinkEventData;
102
105
  const stripeAddressData = stripeStore.stripeAddressEventData;
@@ -157,6 +160,7 @@ export const prepCalculateLandedCost = () => {
157
160
  lastName: shippingLastName,
158
161
  phone: translatedShippingAddress.phone,
159
162
  },
163
+ isTest: isE2ETest,
160
164
  items: cartStore.items,
161
165
  landedCostAdjustments: adjustments,
162
166
  shippingAddress: {
@@ -80,7 +80,6 @@ export const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector
80
80
  JSON.stringify(Object.entries(shippingAddress)),
81
81
  ],
82
82
  metadata: {
83
- domain: window.location.hostname,
84
83
  storeId: zonosStore.storeId,
85
84
  },
86
85
  });
@@ -23,7 +23,7 @@ export const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostRelea
23
23
  endpoint,
24
24
  errors,
25
25
  href: window.location.href,
26
- metadata: Object.assign({ userAgent: userAgentData && userAgentData.brands.length > 0
26
+ metadata: Object.assign({ domain: window.Zonos.domain, userAgent: userAgentData && userAgentData.brands.length > 0
27
27
  ? userAgentData
28
28
  : window.navigator.userAgent }, metadata),
29
29
  };
@@ -44,6 +44,12 @@ Zonos._paypalMockResponse = null;
44
44
  Zonos.isBigCommerce = false;
45
45
  Zonos.releaseDate = process.env.NEXT_PUBLIC_RELEASE_DATE;
46
46
  Zonos.isLegacyCheckout = false;
47
+ Zonos.domain = typeof window !== 'undefined'
48
+ ? // domain that embeds the iframe
49
+ (window.location != window.parent.location && document.referrer) ||
50
+ // current domain
51
+ document.location.hostname
52
+ : '';
47
53
  Zonos.showBaseForeign = typeof window !== 'undefined' &&
48
54
  window.location.search.includes('zonosShowBaseForeign');
49
55
  /**
@@ -29,6 +29,7 @@ export const featureAspectKeyEnum = {
29
29
  NewPayoutReport: 'new_payout_report',
30
30
  PageAuditor: 'page_auditor',
31
31
  PromptExplorer: 'prompt_explorer',
32
+ SupportTicketSystem: 'support_ticket_system',
32
33
  TeamAuditor: 'team_auditor',
33
34
  };
34
35
  export const featureAudienceNameEnum = {
@@ -54,6 +55,7 @@ export const featureAudienceNameEnum = {
54
55
  PrincipalEngineer: 'principal_engineer',
55
56
  ProServeHead: 'pro_serve_head',
56
57
  ProductManager: 'product_manager',
58
+ SupportTicketMerchants: 'support_ticket_merchants',
57
59
  TechLead: 'tech_lead',
58
60
  };
59
61
  export const graphHubCategoryLabelEnum = {
@@ -483,6 +485,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
483
485
  deleteReserveOrders(variables, requestHeaders) {
484
486
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'deleteReserveOrders', 'mutation');
485
487
  },
488
+ failToGetQuoteErrors(variables, requestHeaders) {
489
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'failToGetQuoteErrors', 'query');
490
+ },
486
491
  getAudienceByAspectKey(variables, requestHeaders) {
487
492
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'getAudienceByAspectKey', 'query');
488
493
  },