@zonos/elements 1.3.90 → 1.3.92

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 (87) hide show
  1. package/dist/cjs/{cart-e15290ab.js → cart-d456e0b8.js} +28 -11
  2. package/dist/cjs/{createCustomEvent-3da45800.js → createCustomEvent-94c259c7.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{paypal-47b71e3b.js → paypal-5c5f8d32.js} +1 -5
  5. package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
  6. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +17 -18
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +19 -12
  8. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  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/cjs/zonos-notification_3.cjs.entry.js +2 -2
  15. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +11 -8
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +1 -5
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +18 -10
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +3 -3
  19. package/dist/collection/components/store/checkout/cart.js +15 -10
  20. package/dist/collection/components/utils/hello/getZCountryUrlParam.js +14 -2
  21. package/dist/esm/{cart-08c2a740.js → cart-1083aa3b.js} +29 -12
  22. package/dist/esm/{createCustomEvent-a8a9fe09.js → createCustomEvent-a45228e7.js} +1 -1
  23. package/dist/esm/index.js +7 -7
  24. package/dist/esm/{paypal-4a21792c.js → paypal-a2399ed3.js} +2 -5
  25. package/dist/esm/zonos-address_7.entry.js +1 -1
  26. package/dist/esm/zonos-cart-items_12.entry.js +17 -18
  27. package/dist/esm/zonos-checkout.entry.js +19 -12
  28. package/dist/esm/zonos-controller.entry.js +1 -1
  29. package/dist/esm/zonos-country-flag.entry.js +1 -1
  30. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  31. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  32. package/dist/esm/zonos-hello.entry.js +1 -1
  33. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  34. package/dist/esm/zonos-notification_3.entry.js +2 -2
  35. package/dist/esm-es5/{cart-08c2a740.js → cart-1083aa3b.js} +1 -1
  36. package/dist/esm-es5/{createCustomEvent-a8a9fe09.js → createCustomEvent-a45228e7.js} +1 -1
  37. package/dist/esm-es5/index.js +1 -1
  38. package/dist/esm-es5/{paypal-4a21792c.js → paypal-a2399ed3.js} +2 -2
  39. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  40. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  41. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  42. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  43. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  44. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  45. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  46. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  47. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  48. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  49. package/dist/scripts/index.js +1 -1
  50. package/dist/scripts/loadZonos.js +1 -1
  51. package/dist/scripts/zonos.js +1 -1
  52. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  53. package/dist/zonos-elements/index.esm.js +1 -1
  54. package/dist/zonos-elements/{p-4f13a851.entry.js → p-1560ee37.entry.js} +1 -1
  55. package/dist/zonos-elements/{p-fc2191b7.system.entry.js → p-1f1aaf73.system.entry.js} +1 -1
  56. package/dist/zonos-elements/p-340408f2.system.entry.js +1 -0
  57. package/dist/zonos-elements/{p-db4c833d.js → p-362bd7de.js} +2 -2
  58. package/dist/zonos-elements/{p-2aeb1f26.entry.js → p-3d6a7efd.entry.js} +1 -1
  59. package/dist/zonos-elements/p-403b3460.entry.js +1 -0
  60. package/dist/zonos-elements/{p-49010cea.system.entry.js → p-460cc134.system.entry.js} +1 -1
  61. package/dist/zonos-elements/{p-c1f0aeb4.system.js → p-4854c65b.system.js} +1 -1
  62. package/dist/zonos-elements/{p-76015899.system.entry.js → p-4e3d23ad.system.entry.js} +1 -1
  63. package/dist/zonos-elements/{p-dbd51a62.system.entry.js → p-52fdf52d.system.entry.js} +1 -1
  64. package/dist/zonos-elements/{p-05b75d37.system.js → p-57aa09e7.system.js} +1 -1
  65. package/dist/zonos-elements/{p-3951ac01.entry.js → p-7995965e.entry.js} +1 -1
  66. package/dist/zonos-elements/{p-5f0c4397.system.js → p-8aad6abd.system.js} +2 -2
  67. package/dist/zonos-elements/{p-7c8ad901.js → p-8dc1342e.js} +1 -1
  68. package/dist/zonos-elements/{p-6d5d31ac.entry.js → p-8e4348e9.entry.js} +1 -1
  69. package/dist/zonos-elements/{p-3214b2df.js → p-95b4ea5e.js} +1 -1
  70. package/dist/zonos-elements/{p-9c7da870.system.js → p-b53f9c25.system.js} +1 -1
  71. package/dist/zonos-elements/{p-f5e29ed6.system.entry.js → p-ba0aef88.system.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-531973ca.entry.js → p-c39c3ed6.entry.js} +1 -1
  73. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  74. package/dist/zonos-elements/{p-3ac3a8be.entry.js → p-cf28a962.entry.js} +1 -1
  75. package/dist/zonos-elements/{p-0033c20b.system.entry.js → p-d8a3b001.system.entry.js} +1 -1
  76. package/dist/zonos-elements/{p-aab5ccde.entry.js → p-dbe8a5de.entry.js} +1 -1
  77. package/dist/zonos-elements/{p-12f25739.system.entry.js → p-ded2ae47.system.entry.js} +1 -1
  78. package/dist/zonos-elements/{p-4a417566.system.entry.js → p-e8c3387c.system.entry.js} +1 -1
  79. package/dist/zonos-elements/p-e9ee2062.entry.js +1 -0
  80. package/dist/zonos-elements/p-ed276123.system.entry.js +1 -0
  81. package/dist/zonos-elements/{p-9773abc9.entry.js → p-f13738a1.entry.js} +1 -1
  82. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  83. package/package.json +1 -1
  84. package/dist/zonos-elements/p-48b151ae.entry.js +0 -1
  85. package/dist/zonos-elements/p-8bbe007f.system.entry.js +0 -1
  86. package/dist/zonos-elements/p-c28824a0.system.entry.js +0 -1
  87. package/dist/zonos-elements/p-f49ca64f.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { createStore } from "@stencil/store";
2
- import { stripeStore, stripeStoreReset, stripeStoreUpdateCheckoutSession, } from "./stripe";
2
+ import { stripeStore, stripeStoreInitCheckoutSession, stripeStoreReset, stripeStoreUpdateCheckoutSession, } from "./stripe";
3
3
  import { localizationStore } from "../hello/localization";
4
4
  import { translate } from "../translationStore";
5
5
  import { log } from "../../utils/logging/log";
@@ -170,7 +170,7 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
170
170
  cartStore.externalConfirmationPageURL = externalConfirmationPageURL;
171
171
  }
172
172
  };
173
- const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, }) => {
173
+ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, shouldInitSessionOnFailure, }) => {
174
174
  var _a;
175
175
  if (landedCostId && cartStore.selectedLandedCost) {
176
176
  // update cart total right away if we have landed cost id to avoid order total flickering
@@ -184,7 +184,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
184
184
  }
185
185
  // update checkout session
186
186
  if (!cartStore.checkoutSessionId) {
187
- logError('Could not update cart total without checkout session id');
187
+ log('Could not update cart total without checkout session id', 'info');
188
188
  return false;
189
189
  }
190
190
  const { errors, json } = await stripeStoreUpdateCheckoutSession({
@@ -198,13 +198,16 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
198
198
  });
199
199
  if (errors.length > 0 || !json) {
200
200
  // do nothing if we can't get checkout session
201
- logError('Error occurs when updating checkout session');
202
- cartStoreUpdateToErrorState({
203
- messages: [
204
- translate("There's been an error updating your checkout session. Please reload and try again or contact support if the error persists"),
205
- ],
206
- title: translate('Error updating Checkout'),
207
- });
201
+ logError('Error occurs when updating checkout session.');
202
+ if (shouldInitSessionOnFailure) {
203
+ log('Initiating checkout session on failure', 'info');
204
+ const success = await stripeStoreInitCheckoutSession();
205
+ log(`stripeStoreInitCheckoutSession: ${success}`);
206
+ if (!success) {
207
+ return false;
208
+ }
209
+ return true;
210
+ }
208
211
  return false;
209
212
  }
210
213
  if (!landedCostId) {
@@ -322,6 +325,8 @@ const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
322
325
  currency: currency,
323
326
  dutiesTaxesFeesEstimate: 0,
324
327
  itemsAmount: total,
328
+ // attempt to init session on failure to update checkout session
329
+ shouldInitSessionOnFailure: true,
325
330
  });
326
331
  stripeStore.isFetchingSession = false;
327
332
  };
@@ -1,7 +1,19 @@
1
+ const validateCountryCode = (countryCode) => {
2
+ // Check that the country is two characters and is upper case
3
+ if (countryCode && /^[A-Z]{2}$/.test(countryCode)) {
4
+ return countryCode;
5
+ }
6
+ return null;
7
+ };
1
8
  export const getZCountryUrlParam = (urlParams) => {
2
9
  const urlSearchParams = new URLSearchParams(urlParams || window.location.search);
3
- const zCountry = urlSearchParams.get('zCountry');
10
+ const getCountryParam = (param) => {
11
+ const country = urlSearchParams.get(param);
12
+ // Check that the country is two characters and is upper case
13
+ return validateCountryCode(country);
14
+ };
15
+ const zCountry = getCountryParam('zCountry');
4
16
  // Fallback to legacy 'country'
5
- const fallback = urlSearchParams.get('country');
17
+ const fallback = getCountryParam('country');
6
18
  return zCountry || fallback;
7
19
  };
@@ -8109,11 +8109,23 @@ const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
8109
8109
  return json.locale_countryCodesPage;
8110
8110
  };
8111
8111
 
8112
+ const validateCountryCode = (countryCode) => {
8113
+ // Check that the country is two characters and is upper case
8114
+ if (countryCode && /^[A-Z]{2}$/.test(countryCode)) {
8115
+ return countryCode;
8116
+ }
8117
+ return null;
8118
+ };
8112
8119
  const getZCountryUrlParam = (urlParams) => {
8113
8120
  const urlSearchParams = new URLSearchParams(urlParams || window.location.search);
8114
- const zCountry = urlSearchParams.get('zCountry');
8121
+ const getCountryParam = (param) => {
8122
+ const country = urlSearchParams.get(param);
8123
+ // Check that the country is two characters and is upper case
8124
+ return validateCountryCode(country);
8125
+ };
8126
+ const zCountry = getCountryParam('zCountry');
8115
8127
  // Fallback to legacy 'country'
8116
- const fallback = urlSearchParams.get('country');
8128
+ const fallback = getCountryParam('country');
8117
8129
  return zCountry || fallback;
8118
8130
  };
8119
8131
 
@@ -9824,7 +9836,7 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
9824
9836
  cartStore.externalConfirmationPageURL = externalConfirmationPageURL;
9825
9837
  }
9826
9838
  };
9827
- const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, }) => {
9839
+ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, shouldInitSessionOnFailure, }) => {
9828
9840
  var _a;
9829
9841
  if (landedCostId && cartStore.selectedLandedCost) {
9830
9842
  // update cart total right away if we have landed cost id to avoid order total flickering
@@ -9838,7 +9850,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
9838
9850
  }
9839
9851
  // update checkout session
9840
9852
  if (!cartStore.checkoutSessionId) {
9841
- logError('Could not update cart total without checkout session id');
9853
+ log('Could not update cart total without checkout session id', 'info');
9842
9854
  return false;
9843
9855
  }
9844
9856
  const { errors, json } = await stripeStoreUpdateCheckoutSession({
@@ -9852,13 +9864,16 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
9852
9864
  });
9853
9865
  if (errors.length > 0 || !json) {
9854
9866
  // do nothing if we can't get checkout session
9855
- logError('Error occurs when updating checkout session');
9856
- cartStoreUpdateToErrorState({
9857
- messages: [
9858
- translate("There's been an error updating your checkout session. Please reload and try again or contact support if the error persists"),
9859
- ],
9860
- title: translate('Error updating Checkout'),
9861
- });
9867
+ logError('Error occurs when updating checkout session.');
9868
+ if (shouldInitSessionOnFailure) {
9869
+ log('Initiating checkout session on failure', 'info');
9870
+ const success = await stripeStoreInitCheckoutSession();
9871
+ log(`stripeStoreInitCheckoutSession: ${success}`);
9872
+ if (!success) {
9873
+ return false;
9874
+ }
9875
+ return true;
9876
+ }
9862
9877
  return false;
9863
9878
  }
9864
9879
  if (!landedCostId) {
@@ -9976,6 +9991,8 @@ const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
9976
9991
  currency: currency,
9977
9992
  dutiesTaxesFeesEstimate: 0,
9978
9993
  itemsAmount: total,
9994
+ // attempt to init session on failure to update checkout session
9995
+ shouldInitSessionOnFailure: true,
9979
9996
  });
9980
9997
  stripeStore.isFetchingSession = false;
9981
9998
  };
@@ -10023,4 +10040,4 @@ const cartStoreResetTabItems = () => {
10023
10040
  cartStoreResetSelectedShippingOption();
10024
10041
  };
10025
10042
 
10026
- export { setZCountryUrlParam as A, currencyDisplay as B, currencyConvertAndFormat as C, currencyConvert as D, currencyFormat as E, cartStoreHasOneEligibleItem as F, stripeStoreApplyPromoCode as G, stripeStoreRemovePromoCode as H, stripeStoreRetrievePayment as I, stripeStoreMessageBasedOnStatus as J, stripeStoreResetPromoCode as K, stripeStoreTranslateAddressToLatin as L, cartStoreUpdateSelectedShippingOption as M, cartStoreGetShippingTransitInfo as N, sortServiceLevelOptionsByAmount as O, getFallbackDefaultCountryCode as P, localizationStoreUpdateSelectedLocale as Q, localizationStoreUpdateSelectedCountryCode as a, stripeStoreCleanupDomesticShippingSession as b, stripeStoreSaveDomesticShippingSession as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreStartCheckoutInterval as m, cartStoreUpdateToErrorState as n, cartStoreSetCheckoutSession as o, stripeStorePrefetchLandedCost as p, cartStoreNextStep as q, stripeStoreHandleInventoryCheck as r, stripeStoreGetDomesticShippingSession as s, translate as t, stripeStoreConfirmPayment as u, stripeStoreReset as v, localizationStoreOnUpdate as w, isValidSelector as x, initLocalizationStore as y, getZCountryUrlParam as z };
10043
+ export { setZCountryUrlParam as A, currencyDisplay as B, currencyConvertAndFormat as C, currencyConvert as D, currencyFormat as E, cartStoreHasOneEligibleItem as F, stripeStoreApplyPromoCode as G, stripeStoreRemovePromoCode as H, stripeStoreRetrievePayment as I, stripeStoreMessageBasedOnStatus as J, stripeStoreResetPromoCode as K, stripeStoreTranslateAddressToLatin as L, cartStoreUpdateSelectedShippingOption as M, cartStoreGetShippingTransitInfo as N, sortServiceLevelOptionsByAmount as O, getFallbackDefaultCountryCode as P, localizationStoreUpdateSelectedLocale as Q, localizationStoreUpdateSelectedCountryCode as a, stripeStoreCleanupDomesticShippingSession as b, stripeStoreSaveDomesticShippingSession as c, cartStore as d, cartStoreUpdateItems as e, cartStoreReset as f, cartStoreResetTabItems as g, cartStoreClearCheckoutInterval as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreStartCheckoutInterval as m, cartStoreUpdateToErrorState as n, getZCountryUrlParam as o, cartStoreSetCheckoutSession as p, stripeStorePrefetchLandedCost as q, cartStoreNextStep as r, stripeStoreGetDomesticShippingSession as s, translate as t, stripeStoreHandleInventoryCheck as u, stripeStoreConfirmPayment as v, stripeStoreReset as w, localizationStoreOnUpdate as x, isValidSelector as y, initLocalizationStore as z };
@@ -1,4 +1,4 @@
1
- import { d as cartStore, l as localizationStore } from './cart-08c2a740.js';
1
+ import { d as cartStore, l as localizationStore } from './cart-1083aa3b.js';
2
2
  import { z as zonosStore } from './zonosStore-0dc7a947.js';
3
3
  import { h as handleFetch } from './handleFetch-0133265e.js';
4
4
 
package/dist/esm/index.js CHANGED
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
94
94
  return null;
95
95
  }
96
96
  const qaUrl = extractZonosQaUrl(window.location.href);
97
- const cdnUrl = "https://v1.3.90.js.zonos.com";
97
+ const cdnUrl = "https://v1.3.92.js.zonos.com";
98
98
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
99
99
  if (!qaUrl &&
100
100
  (cdnUrl.includes('test.') ||
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
278
278
  }
279
279
  return null;
280
280
  })();
281
- const ZONOS_URL = "https://v1.3.90.js.zonos.com";
282
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.90";
283
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.90";
284
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.90";
281
+ const ZONOS_URL = "https://v1.3.92.js.zonos.com";
282
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.92";
283
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.92";
284
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.92";
285
285
  const INTER_FONT_URL = 'https://rsms.me';
286
286
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
287
287
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
296
296
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
297
297
  Zonos._paypalMockResponse = null;
298
298
  Zonos.isBigCommerce = false;
299
- Zonos.releaseDate = "1728926225081";
299
+ Zonos.releaseDate = "1728934623320";
300
300
  Zonos.isLegacyCheckout = false;
301
301
  /**
302
302
  * By default, the package will load from npm
@@ -304,7 +304,7 @@ Zonos.isLegacyCheckout = false;
304
304
  Zonos.isNpm = true;
305
305
  Zonos.zonosQaUrl = null;
306
306
  Zonos.zonosQaUrlApi = null;
307
- Zonos.version = `v${"1.3.90"}`;
307
+ Zonos.version = `v${"1.3.92"}`;
308
308
  Zonos.modeAlerted = false;
309
309
  Zonos.cartData = null;
310
310
  Zonos.paypal = null;
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-0dc7a947.js';
2
- import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-08c2a740.js';
2
+ import { d as cartStore, u as stripeStoreHandleInventoryCheck, t as translate, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-1083aa3b.js';
3
3
  import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-0133265e.js';
4
4
  import { t as tinycolor } from './isDarkColor-b3afa948.js';
5
5
 
@@ -446,8 +446,5 @@ const paypalStoreInitButtons = (props) => {
446
446
  .filter(Boolean);
447
447
  return paypalStore.paypalButtons;
448
448
  };
449
- const paypalStoreHasPaypalEnabled = () => {
450
- return !!paypalStore.paypalButtons.length;
451
- };
452
449
 
453
- export { paypalStore as a, paypalStoreReset as b, paypalStoreHasPaypalEnabled as c, paypalStoreInitButtons as d, isContrastColor as i, paypalInitScript as p, submitGtag as s };
450
+ export { paypalStore as a, paypalStoreReset as b, paypalStoreInitButtons as c, isContrastColor as i, paypalInitScript as p, submitGtag as s };
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-08c2a740.js';
2
+ import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-1083aa3b.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
4
  import { a as logError, l as log } from './handleFetch-0133265e.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
2
- import { d as cartStore, t as translate, E as currencyFormat, F as cartStoreHasOneEligibleItem, G as stripeStoreApplyPromoCode, H as stripeStoreRemovePromoCode, v as stripeStoreReset, j as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, K as stripeStoreResetPromoCode, l as localizationStore, L as stripeStoreTranslateAddressToLatin, M as cartStoreUpdateSelectedShippingOption, N as cartStoreGetShippingTransitInfo, O as sortServiceLevelOptionsByAmount } from './cart-08c2a740.js';
2
+ import { d as cartStore, t as translate, E as currencyFormat, F as cartStoreHasOneEligibleItem, G as stripeStoreApplyPromoCode, H as stripeStoreRemovePromoCode, w as stripeStoreReset, j as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, K as stripeStoreResetPromoCode, l as localizationStore, L as stripeStoreTranslateAddressToLatin, M as cartStoreUpdateSelectedShippingOption, N as cartStoreGetShippingTransitInfo, O as sortServiceLevelOptionsByAmount } from './cart-1083aa3b.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { s as submitGtag, a as paypalStore, b as paypalStoreReset, c as paypalStoreHasPaypalEnabled, i as isContrastColor } from './paypal-4a21792c.js';
4
+ import { s as submitGtag, a as paypalStore, b as paypalStoreReset, i as isContrastColor } from './paypal-a2399ed3.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
6
- import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-a8a9fe09.js';
6
+ import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-a45228e7.js';
7
7
  import { g as getBorderRadius } from './getBorderRadius-cff1e39b.js';
8
8
  import { h as handleFetch, s as sendErrorLog } from './handleFetch-0133265e.js';
9
9
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
@@ -1284,12 +1284,15 @@ const ZonosCheckoutFinish = class {
1284
1284
  };
1285
1285
  // TODO: This method of pulling orders is temporary. Once we have a working event registry system, we will rely on that to tell us when the order is ready to trigger onOrderSuccess
1286
1286
  this.getPullOrder = async (attempts = 0) => {
1287
- var _a, _b, _c;
1287
+ var _a, _b;
1288
1288
  const { baseUrl, order } = await this.pullOrder();
1289
- const legacyOrderNumberExist = !!((_c = (_b = (_a = this.order) === null || _a === void 0 ? void 0 : _a.references) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _c === void 0 ? void 0 : _c.value);
1290
- // legacy customers are still using the old order number so we need to wait for legacy order number to attach to dgs order before redirecting
1291
- if ((order && attempts >= 5) || legacyOrderNumberExist) {
1292
- if (!legacyOrderNumberExist) {
1289
+ const { isLegacyCheckout } = window.Zonos;
1290
+ const foundLegacyOrderNumber = !!((_b = (_a = order === null || order === void 0 ? void 0 : order.references) === null || _a === void 0 ? void 0 : _a.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _b === void 0 ? void 0 : _b.value);
1291
+ if ((order && !isLegacyCheckout) ||
1292
+ (!order && attempts >= 5) ||
1293
+ foundLegacyOrderNumber) {
1294
+ if (isLegacyCheckout && !foundLegacyOrderNumber) {
1295
+ // We pushed this one through without the legacy order number, so we should log this
1293
1296
  const checkoutSessionId = cartStore.checkoutSessionId;
1294
1297
  void sendErrorLog({
1295
1298
  endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order === null || order === void 0 ? void 0 : order.id}`,
@@ -1306,7 +1309,7 @@ const ZonosCheckoutFinish = class {
1306
1309
  this.order = order;
1307
1310
  this.handleSuccessBehavior();
1308
1311
  }
1309
- else if ((!order || !legacyOrderNumberExist) && attempts < 5) {
1312
+ else if ((!order || !foundLegacyOrderNumber) && attempts < 5) {
1310
1313
  // Wait for 1 second before the next attempt
1311
1314
  await new Promise(resolve => setTimeout(resolve, 1000));
1312
1315
  await this.getPullOrder(attempts + 1);
@@ -1442,11 +1445,11 @@ const ZonosCheckoutFinish = class {
1442
1445
  var _a, _b;
1443
1446
  const orderId = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.accountOrderNumber) || getGraphQlShortId((_b = this.order) === null || _b === void 0 ? void 0 : _b.id);
1444
1447
  const isTestMode = getIsTestMode();
1445
- return (h(Host, { key: '3c6c69c59622b7b2731f9bc6eb1cc8a7f3491572', class: "zonos--checkout-finish zonos--elements", style: {
1448
+ return (h(Host, { key: '87ced5680c0d1bab551332541d74e8e32fd7ed43', class: "zonos--checkout-finish zonos--elements", style: {
1446
1449
  '--border-radius': getBorderRadius({
1447
1450
  overrideBorderStyle: this.borderRadius,
1448
1451
  }),
1449
- } }, this.isLoading && (h("div", { key: '45ce0e608dca725237abc09295656c8b6471d26c', class: "loading-wrapper" }, h("zonos-spinner", { key: 'fd1a193d34ecf41af9bb6eff082c192c6a8d46db' }))), !this.isLoading && (h("div", { key: '64f652a419330967f13b9d01a172fcc52f6dfd5b', class: "zonos--finish-details" }, h("div", { key: '945cb9e55b418de79921c1995604572e6e009459', 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: '241bd7034c5ab5e83e4cedd526a181120a743ad0', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: '959595c1be3f65aa6cd2e00e4398c5bb4df702b6', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: 'a23dce69391c3abf49eb512e715af454c971977e', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: 'ce87734e2d46e8a044bc0ded7a6ed6a4a705685d', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'a46cee8819c83fb76a54dbe049ee2452b7fc150a', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '514fdff77f5aff9f4b9657a0579ab843833af7b0', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '59630cf7504c1ef9d24854d041b063bbfdc3a1a4', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1452
+ } }, this.isLoading && (h("div", { key: '8063a0e619af1958afc99e4a9aa8bdfeb3f3f896', class: "loading-wrapper" }, h("zonos-spinner", { key: '28d4219090e3c9cb0c8a48fa369ace28f74aa938' }))), !this.isLoading && (h("div", { key: '094b79103e3a26e57c0d81a1153682649dce693e', class: "zonos--finish-details" }, h("div", { key: 'c3a6fe214d5ac5cd58ec533c75e146e573b5da25', 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: 'c9e1b5c7ed5be8b6adbd00e5b3896e023271976e', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: '8f32ef78f8e584e43988a12bc94f0d52c0348eba', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: 'b9aebf9fdfc17d141367deb110440272fed7a6d9', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '25fb15e1e2fb08e2911c787060215f8e1d7c33c6', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'd39ae7b5a0889278e0f6a3594ad69dfa0de2159a', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '09e0dfa830577c1eec035f34342528a73bffe944', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'eedb6a440713fe5f14a05a747284a2703af1a639', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1450
1453
  }
1451
1454
  static get assetsDirs() { return ["assets"]; }
1452
1455
  };
@@ -1558,12 +1561,8 @@ const ZonosCheckoutPayment = class {
1558
1561
  this.showErrorBanner = !this.handleValidate();
1559
1562
  }
1560
1563
  const isTestMode = getIsTestMode();
1561
- const hasPaypalEnabled = paypalStoreHasPaypalEnabled();
1562
1564
  const isPaypalTabSelected = ((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.value.type) === 'external_paypal';
1563
1565
  return (h(Host, { class: "zonos--checkout-payment zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Payment method')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), stripeStore.hasPaymentError && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, translate("We couldn't complete your payment. Please verify the payment details and try again."))), paypalStore.paypalErrorMessage && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, paypalStore.paypalErrorMessage)), h("zonos-payment", null), h("div", { class: "zonos--group-btn" }, !isPaypalTabSelected && (h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.continueLoading, onClick: () => {
1564
- if (!hasPaypalEnabled) {
1565
- return;
1566
- }
1567
1566
  this.continueClickHandler();
1568
1567
  }, size: "lg",
1569
1568
  // use primary type when on mobile mode
@@ -2207,7 +2206,7 @@ const ZonosShipping = class {
2207
2206
  ...this.serviceLevelsDAP,
2208
2207
  ...this.serviceLevelsOther,
2209
2208
  ];
2210
- const selectedServiceLevel = allServiceLevels.find(item => { var _a; return item.value === ((_a = cartStore.selectedShippingOption) === null || _a === void 0 ? void 0 : _a.id); }) || null;
2209
+ const selectedServiceLevel = allServiceLevels.find(item => { var _a; return item.shipmentRatingId === ((_a = cartStore.selectedShippingOption) === null || _a === void 0 ? void 0 : _a.id); }) || null;
2211
2210
  if (selectedServiceLevel) {
2212
2211
  // keep the selected shipping method
2213
2212
  this.selectedShippingMethod = selectedServiceLevel;
@@ -2235,13 +2234,13 @@ const ZonosShipping = class {
2235
2234
  if (this.showErrorBanner) {
2236
2235
  this.showErrorBanner = !this.handleValidate();
2237
2236
  }
2238
- return (h(Host, { key: 'e376545666893a373bca1591083a868892804fb1', class: "zonos--shipping zonos--elements" }, h("div", { key: 'f8901d3d8fbeb6a285a7a33b9cea940476413c68', class: "zonos--group" }, h("zonos-text", { key: '83e02010c5e11647064ebf28468def163dd3395a', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!allServiceLevels.length && (h("zonos-banner", { key: 'e65f0ce2e968612bd7c1efeca8309e69a03a8c65', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: 'cdae794614c6879477e96de435d5c4e59f469fe9', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !allServiceLevels.length ? (h("zonos-banner", { bannerTitle: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2237
+ return (h(Host, { key: '9c866cd1545c3a695b449113a8dbe40560e5fe26', class: "zonos--shipping zonos--elements" }, h("div", { key: '7d683e7d7b2c3e25758240ac2299eac06b7f4a51', class: "zonos--group" }, h("zonos-text", { key: '5710e5185b2628e7793e59251073fdd8cb8cfd2e', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!allServiceLevels.length && (h("zonos-banner", { key: 'afdd98898cb3305d90bfe06832a0b9f672183b47', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '07543d3f7aec9494311d3cdb38306661d5789f4a', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !allServiceLevels.length ? (h("zonos-banner", { bannerTitle: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2239
2238
  !!this.serviceLevelsDAP.length && (h("button", { class: classes([
2240
2239
  'zonos--shipping-options-collapse-trigger',
2241
2240
  this.collapsedDAPOptions && 'collapsed',
2242
2241
  ]), onClick: () => {
2243
2242
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
2244
- } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: '2dded1f7168a16ed6432ea0b147b8ec78fd774a6', class: "zonos--group-btn" }, h("zonos-button", { key: '54c05db9336209c34a7c7c518bbdf859e97b51f1', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2243
+ } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: '7dc61c1435b40731463279f5824b60cf67e1470d', class: "zonos--group-btn" }, h("zonos-button", { key: 'eea4d432ad5cfb7001fcd0c7b795b2ee3ebbbac5', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2245
2244
  // use primary type when on mobile mode
2246
2245
  variant: this.submitBtnType }, translate('Go to payment'))))));
2247
2246
  }
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, H as Host, F as Fragment } from './index-86b8247e.js';
2
- import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as cartStoreSetCheckoutSession, p as stripeStorePrefetchLandedCost, q as cartStoreNextStep, r as stripeStoreHandleInventoryCheck, u as stripeStoreConfirmPayment, v as stripeStoreReset, w as localizationStoreOnUpdate } from './cart-08c2a740.js';
3
- import { s as submitGtag, p as paypalInitScript } from './paypal-4a21792c.js';
2
+ import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as getZCountryUrlParam, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreHandleInventoryCheck, v as stripeStoreConfirmPayment, w as stripeStoreReset, x as localizationStoreOnUpdate } from './cart-1083aa3b.js';
3
+ import { s as submitGtag, p as paypalInitScript } from './paypal-a2399ed3.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
5
- import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-a8a9fe09.js';
5
+ import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-a45228e7.js';
6
6
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
7
7
  import { l as log, a as logError, s as sendErrorLog, b as allLogs } from './handleFetch-0133265e.js';
8
8
  import { c as classes } from './classes-0d95c529.js';
@@ -431,18 +431,25 @@ const ZonosCheckout = class {
431
431
  */
432
432
  useLegacyQueryParams() {
433
433
  const urlParams = new URLSearchParams(window.location.search);
434
+ const getParam = (param) => {
435
+ const value = urlParams.get(param);
436
+ if (!value || value === 'undefined') {
437
+ return null;
438
+ }
439
+ return value;
440
+ };
434
441
  const legacyShippingInfo = {
435
442
  country:
436
443
  // fallback to selected country code if country is not provided
437
- urlParams.get('country') || localizationStore.selectedCountryCode,
438
- customerAddress1: urlParams.get('customerAddress1'),
439
- customerAddress2: urlParams.get('customerAddress2'),
440
- customerCity: urlParams.get('customerCity'),
441
- customerEmail: urlParams.get('customerEmail'),
442
- customerName: urlParams.get('customerName'),
443
- customerPhone: urlParams.get('customerPhone'),
444
- customerState: urlParams.get('customerState'),
445
- customerZip: urlParams.get('customerZip'),
444
+ getZCountryUrlParam(urlParams) || localizationStore.selectedCountryCode,
445
+ customerAddress1: getParam('customerAddress1'),
446
+ customerAddress2: getParam('customerAddress2'),
447
+ customerCity: getParam('customerCity'),
448
+ customerEmail: getParam('customerEmail'),
449
+ customerName: getParam('customerName'),
450
+ customerPhone: getParam('customerPhone'),
451
+ customerState: getParam('customerState'),
452
+ customerZip: getParam('customerZip'),
446
453
  };
447
454
  // if one of the value is null, no need to preset the default address
448
455
  if (!legacyShippingInfo.customerAddress1 ||
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
2
- import { x as isValidSelector, j as stripeStore, y as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-08c2a740.js';
2
+ import { y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-1083aa3b.js';
3
3
  import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
4
4
  import { h as handleFetch, a as logError, l as log } from './handleFetch-0133265e.js';
5
5
  import './isDarkColor-b3afa948.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { l as localizationStore } from './cart-08c2a740.js';
2
+ import { l as localizationStore } from './cart-1083aa3b.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './handleFetch-0133265e.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-08c2a740.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-1083aa3b.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
5
  import { i as isDarkColor } from './isDarkColor-b3afa948.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-86b8247e.js';
2
- import { t as translate, l as localizationStore, E as currencyFormat } from './cart-08c2a740.js';
2
+ import { t as translate, l as localizationStore, E as currencyFormat } from './cart-1083aa3b.js';
3
3
  import { z as zonosStore } from './zonosStore-0dc7a947.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
2
  import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
3
- import { l as localizationStore, x as isValidSelector, t as translate, z as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-08c2a740.js';
3
+ import { l as localizationStore, y as isValidSelector, t as translate, o as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-1083aa3b.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { h as handleFetch, a as logError, l as log } from './handleFetch-0133265e.js';
6
6
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-08c2a740.js';
2
+ import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-1083aa3b.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
4
4
  import { l as languages } from './ILanguage-cd6acb72.js';
5
5
  import './handleFetch-0133265e.js';
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-86b8247e.js';
2
2
  import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { j as stripeStore } from './cart-08c2a740.js';
4
+ import { j as stripeStore } from './cart-1083aa3b.js';
5
5
  import { a as logError, l as log } from './handleFetch-0133265e.js';
6
- import { d as paypalStoreInitButtons } from './paypal-4a21792c.js';
6
+ import { c as paypalStoreInitButtons } from './paypal-a2399ed3.js';
7
7
  import './isDarkColor-b3afa948.js';
8
8
  import './getBorderRadius-cff1e39b.js';
9
9