@zonos/elements 1.3.122 → 1.3.123

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 (79) hide show
  1. package/dist/cjs/{cart-0e01d134.js → cart-d2676914.js} +20 -14
  2. package/dist/cjs/index.cjs.js +7 -7
  3. package/dist/cjs/{paypal-f1366d51.js → paypal-617669c3.js} +1 -1
  4. package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
  5. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +2 -2
  6. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -2
  7. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  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-hello-dialog.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  14. package/dist/collection/__tests__/build-utils/urlCheckOne.js +7 -15
  15. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -1
  16. package/dist/collection/components/store/checkout/stripe.js +19 -14
  17. package/dist/esm/{cart-782d513d.js → cart-5346e4d9.js} +20 -15
  18. package/dist/esm/index.js +7 -7
  19. package/dist/esm/{paypal-7df6311e.js → paypal-db99e15a.js} +1 -1
  20. package/dist/esm/zonos-address_7.entry.js +1 -1
  21. package/dist/esm/zonos-cart-items_13.entry.js +2 -2
  22. package/dist/esm/zonos-checkout.entry.js +3 -2
  23. package/dist/esm/zonos-controller.entry.js +1 -1
  24. package/dist/esm/zonos-country-flag.entry.js +1 -1
  25. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  26. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  27. package/dist/esm/zonos-hello.entry.js +1 -1
  28. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  29. package/dist/esm/zonos-notification_3.entry.js +2 -2
  30. package/dist/esm-es5/{cart-782d513d.js → cart-5346e4d9.js} +1 -1
  31. package/dist/esm-es5/index.js +1 -1
  32. package/dist/esm-es5/{paypal-7df6311e.js → paypal-db99e15a.js} +1 -1
  33. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  34. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  35. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  36. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  37. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  38. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  39. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  40. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  41. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  42. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  43. package/dist/scripts/index.js +1 -1
  44. package/dist/scripts/loadZonos.js +1 -1
  45. package/dist/scripts/zonos.js +1 -1
  46. package/dist/types/__tests__/build-utils/urlCheckOne.d.ts +1 -3
  47. package/dist/types/components/store/checkout/stripe.d.ts +2 -1
  48. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  49. package/dist/zonos-elements/index.esm.js +1 -1
  50. package/dist/zonos-elements/{p-f12c1c1a.entry.js → p-06636f62.entry.js} +1 -1
  51. package/dist/zonos-elements/{p-80919c61.system.entry.js → p-20411dc5.system.entry.js} +1 -1
  52. package/dist/zonos-elements/p-3a3dd0a7.entry.js +1 -0
  53. package/dist/zonos-elements/{p-78887e65.system.js → p-3ef38f02.system.js} +1 -1
  54. package/dist/zonos-elements/{p-d8e9e915.entry.js → p-4f5da154.entry.js} +1 -1
  55. package/dist/zonos-elements/{p-5834b65d.system.js → p-5fe1e3f6.system.js} +1 -1
  56. package/dist/zonos-elements/{p-fcb2227b.js → p-62384488.js} +1 -1
  57. package/dist/zonos-elements/{p-2cb215fd.entry.js → p-6efffc06.entry.js} +1 -1
  58. package/dist/zonos-elements/{p-22cb3fa7.js → p-8231711f.js} +1 -1
  59. package/dist/zonos-elements/{p-5e6b1a44.entry.js → p-860716a1.entry.js} +1 -1
  60. package/dist/zonos-elements/{p-e50eaf44.system.js → p-8c7715aa.system.js} +1 -1
  61. package/dist/zonos-elements/{p-daac8c76.system.entry.js → p-8f7935f6.system.entry.js} +1 -1
  62. package/dist/zonos-elements/{p-1b240438.system.entry.js → p-97334e5a.system.entry.js} +1 -1
  63. package/dist/zonos-elements/{p-36cfebe1.entry.js → p-9afea72c.entry.js} +1 -1
  64. package/dist/zonos-elements/{p-86d875a8.system.entry.js → p-9ea5037d.system.entry.js} +1 -1
  65. package/dist/zonos-elements/{p-75d4bd5f.system.entry.js → p-b00508d3.system.entry.js} +1 -1
  66. package/dist/zonos-elements/{p-bce88a97.entry.js → p-b3b1c105.entry.js} +1 -1
  67. package/dist/zonos-elements/p-b98e54b2.system.entry.js +1 -0
  68. package/dist/zonos-elements/{p-91a332f3.system.entry.js → p-c504e50e.system.entry.js} +1 -1
  69. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  70. package/dist/zonos-elements/{p-0a5d1db8.entry.js → p-c97b9a45.entry.js} +1 -1
  71. package/dist/zonos-elements/{p-100dc75c.entry.js → p-ccfd1d50.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-19d75216.entry.js → p-cfaac5aa.entry.js} +1 -1
  73. package/dist/zonos-elements/{p-850b0e2a.system.entry.js → p-d1f1f84d.system.entry.js} +1 -1
  74. package/dist/zonos-elements/{p-bbddbf97.system.entry.js → p-d5cf05b7.system.entry.js} +1 -1
  75. package/dist/zonos-elements/{p-05820096.system.entry.js → p-eb94b8c5.system.entry.js} +1 -1
  76. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  77. package/package.json +1 -1
  78. package/dist/zonos-elements/p-05839a81.system.entry.js +0 -1
  79. package/dist/zonos-elements/p-878e3c68.entry.js +0 -1
@@ -9640,7 +9640,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
9640
9640
  const themeBasedColor = primaryColor && isDarkColor.isDarkColor(primaryColor) ? 'night' : 'flat';
9641
9641
  // if overrideTheme is provided, use it. Otherwise, use theme based on primary color
9642
9642
  const theme = overrideTheme === 'DARK' ? 'night' : 'flat';
9643
- const paypalPaymenType = paypalEnabled ? ['external_paypal'] : [];
9643
+ const paypalPaymentType = paypalEnabled ? ['external_paypal'] : [];
9644
9644
  return {
9645
9645
  appearance: {
9646
9646
  labels: 'floating',
@@ -9655,7 +9655,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
9655
9655
  colorPrimary: secondaryColor }),
9656
9656
  },
9657
9657
  clientSecret,
9658
- externalPaymentMethodTypes: [...paypalPaymenType],
9658
+ externalPaymentMethodTypes: [...paypalPaymentType],
9659
9659
  locale: localizationStore.selectedLocale,
9660
9660
  };
9661
9661
  };
@@ -10058,18 +10058,9 @@ const stripeStoreConfirmPayment = async () => {
10058
10058
  }
10059
10059
  }
10060
10060
  };
10061
- /**
10062
- * Init checkout session
10063
- * @returns {boolean} whether or not the checkout session is successfully created
10064
- */
10065
- const stripeStoreInitCheckoutSession = async () => {
10066
- var _a, _b;
10061
+ const getCheckoutSessionBody = () => {
10062
+ var _a;
10067
10063
  const total = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
10068
- if (!localizationStore.targetCurrency) {
10069
- handleFetch.logError(`Failed to create checkout session - missing localizationStore.targetCurrency`);
10070
- return false;
10071
- }
10072
- stripeStore.isFetchingSession = true;
10073
10064
  const body = {
10074
10065
  adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
10075
10066
  cartId: window.Zonos.cartId,
@@ -10095,6 +10086,20 @@ const stripeStoreInitCheckoutSession = async () => {
10095
10086
  ],
10096
10087
  presentmentCountryCode: localizationStore.selectedCountryCode,
10097
10088
  };
10089
+ return body;
10090
+ };
10091
+ /**
10092
+ * Init checkout session
10093
+ * @returns {boolean} whether or not the checkout session is successfully created
10094
+ */
10095
+ const stripeStoreInitCheckoutSession = async () => {
10096
+ var _a;
10097
+ if (!localizationStore.targetCurrency) {
10098
+ handleFetch.logError(`Failed to create checkout session - missing localizationStore.targetCurrency`);
10099
+ return false;
10100
+ }
10101
+ stripeStore.isFetchingSession = true;
10102
+ const body = getCheckoutSessionBody();
10098
10103
  handleFetch.log('Checkout session body', 'info', body);
10099
10104
  const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/create-checkout-session', {
10100
10105
  body,
@@ -10110,7 +10115,7 @@ const stripeStoreInitCheckoutSession = async () => {
10110
10115
  cartStoreSetCheckoutSession(result);
10111
10116
  stripeStore.clientSecret = result.clientSecret;
10112
10117
  cartStoreApplySubtotals({
10113
- method: ((_b = result.landedCost) === null || _b === void 0 ? void 0 : _b.method) || 'DDP',
10118
+ method: ((_a = result.landedCost) === null || _a === void 0 ? void 0 : _a.method) || 'DDP',
10114
10119
  subtotals: result.subtotals,
10115
10120
  });
10116
10121
  handleFetch.log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
@@ -10689,6 +10694,7 @@ exports.currencyConvert = currencyConvert;
10689
10694
  exports.currencyConvertAndFormat = currencyConvertAndFormat;
10690
10695
  exports.currencyDisplay = currencyDisplay;
10691
10696
  exports.currencyFormat = currencyFormat;
10697
+ exports.getCheckoutSessionBody = getCheckoutSessionBody;
10692
10698
  exports.getFallbackDefaultCountryCode = getFallbackDefaultCountryCode;
10693
10699
  exports.getZCountryUrlParam = getZCountryUrlParam;
10694
10700
  exports.initLocalizationStore = initLocalizationStore;
@@ -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.122.js.zonos.com";
100
+ const cdnUrl = "https://v1.3.123.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.122.js.zonos.com";
285
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.122";
286
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.122";
287
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.122";
284
+ const ZONOS_URL = "https://v1.3.123.js.zonos.com";
285
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.123";
286
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.123";
287
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.123";
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,7 +299,7 @@ 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 = "1730912119121";
302
+ Zonos.releaseDate = "1730930859534";
303
303
  Zonos.isLegacyCheckout = false;
304
304
  Zonos.showBaseForeign = typeof window !== 'undefined' &&
305
305
  window.location.search.includes('zonosShowBaseForeign');
@@ -309,7 +309,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
309
309
  Zonos.isNpm = true;
310
310
  Zonos.zonosQaUrl = null;
311
311
  Zonos.zonosQaUrlApi = null;
312
- Zonos.version = `v${"1.3.122"}`;
312
+ Zonos.version = `v${"1.3.123"}`;
313
313
  Zonos.modeAlerted = false;
314
314
  Zonos.cartData = null;
315
315
  Zonos.paypal = null;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-e12d459c.js');
4
- const cart = require('./cart-0e01d134.js');
4
+ const cart = require('./cart-d2676914.js');
5
5
  const handleFetch = require('./handleFetch-83c97d08.js');
6
6
  const isDarkColor = require('./isDarkColor-d206c6fa.js');
7
7
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-0e01d134.js');
6
+ const cart = require('./cart-d2676914.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const handleFetch = require('./handleFetch-83c97d08.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
@@ -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-0e01d134.js');
6
+ const cart = require('./cart-d2676914.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-f1366d51.js');
8
+ const paypal = require('./paypal-617669c3.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');
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-0e01d134.js');
7
- const paypal = require('./paypal-f1366d51.js');
6
+ const cart = require('./cart-d2676914.js');
7
+ const paypal = require('./paypal-617669c3.js');
8
8
  const zonosStore = require('./zonosStore-e12d459c.js');
9
9
  const handleFetch = require('./handleFetch-83c97d08.js');
10
10
  const createCustomEvent = require('./createCustomEvent-3e982e57.js');
@@ -534,6 +534,7 @@ const ZonosCheckout = class {
534
534
  metadata: {
535
535
  allLogs: handleFetch.allLogs,
536
536
  cartId: window.Zonos.cartId,
537
+ checkoutSessionBody: cart.getCheckoutSessionBody(),
537
538
  href: window.location.href,
538
539
  storeBaseUrl: (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl,
539
540
  },
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-0e01d134.js');
6
+ const cart = require('./cart-d2676914.js');
7
7
  const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const handleFetch = require('./handleFetch-83c97d08.js');
9
9
  require('./isDarkColor-d206c6fa.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-0e01d134.js');
6
+ const cart = require('./cart-d2676914.js');
7
7
  const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-83c97d08.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-0e01d134.js');
6
+ const cart = require('./cart-d2676914.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');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-0e01d134.js');
6
+ const cart = require('./cart-d2676914.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');
@@ -4,7 +4,7 @@ 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-0e01d134.js');
7
+ const cart = require('./cart-d2676914.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const handleFetch = require('./handleFetch-83c97d08.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-d56e0a8b.js');
6
- const cart = require('./cart-0e01d134.js');
6
+ const cart = require('./cart-d2676914.js');
7
7
  const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
9
  require('./handleFetch-83c97d08.js');
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-d56e0a8b.js');
6
6
  const zonosStore = require('./zonosStore-e12d459c.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const cart = require('./cart-0e01d134.js');
8
+ const cart = require('./cart-d2676914.js');
9
9
  const handleFetch = require('./handleFetch-83c97d08.js');
10
- const paypal = require('./paypal-f1366d51.js');
10
+ const paypal = require('./paypal-617669c3.js');
11
11
  require('./isDarkColor-d206c6fa.js');
12
12
  require('./getBorderRadius-61ed5601.js');
13
13
 
@@ -1,6 +1,5 @@
1
1
  import { readFileSync } from "fs";
2
- export const urlCheckOne = async ({ branch, filePath, packageVersion, }) => {
3
- const majorVersion = packageVersion === null || packageVersion === void 0 ? void 0 : packageVersion.split('.')[0];
2
+ export const urlCheckOne = async ({ filePath, packageVersion, }) => {
4
3
  const fileContent = readFileSync(filePath, { encoding: 'utf-8' });
5
4
  const zonosUrlRegexResult = fileContent.matchAll(/https:\/\/[a-zA-Z0-9-\.]+?(.js.zonos.com)/g);
6
5
  if (!zonosUrlRegexResult) {
@@ -17,7 +16,7 @@ export const urlCheckOne = async ({ branch, filePath, packageVersion, }) => {
17
16
  ];
18
17
  // these files are load file, no need to check version url here
19
18
  const excludeFiles = ['zonosBase', 'zonos', 'loadZonos'];
20
- result.forEach(([fullUrl]) => {
19
+ result.some(([fullUrl]) => {
21
20
  if (fullUrl.includes('.js.zonos.com') &&
22
21
  !excludeDomainPattern.includes(fullUrl) &&
23
22
  !excludeFiles.some(file => filePath.includes(file))) {
@@ -25,6 +24,11 @@ export const urlCheckOne = async ({ branch, filePath, packageVersion, }) => {
25
24
  const versioned =
26
25
  // @ts-ignore ts v5.5 requires target to be ES2017 to use group, but we run this in node and not in compiled version, so it should work with current target ES2017
27
26
  /(v(?<major>\d+)(?<patch>\.\d+(\-alpha\.\d+)*)*)\.*(.*?js\.zonos\.com)/g.exec(fullUrl);
27
+ // if it's the route js, no need to version as API is versionless
28
+ const isRouteUrl = fullUrl === null || fullUrl === void 0 ? void 0 : fullUrl.includes('route.js.zonos.com');
29
+ if (isRouteUrl) {
30
+ return false;
31
+ }
28
32
  if (!versioned) {
29
33
  throw new Error(`${filePath}: url in the file is not versioned for url "${fullUrl}"`);
30
34
  }
@@ -35,18 +39,6 @@ export const urlCheckOne = async ({ branch, filePath, packageVersion, }) => {
35
39
  if (!version) {
36
40
  throw new Error(`${filePath}: no version found after the regex for url "${fullUrl}"`);
37
41
  }
38
- const isRouteUrl = url.includes('route.js.zonos.com');
39
- // if it's the route js, the version would be just major version
40
- if (isRouteUrl) {
41
- if (branch === 'qa') {
42
- // qa branch is not versioned, should always use the latest version
43
- return;
44
- }
45
- if (version !== `v${majorVersion}`) {
46
- throw new Error(`[ROUTE] ${filePath}: found version (${version}) is not the expected major version (${majorVersion}) for url "${fullUrl}"`);
47
- }
48
- return;
49
- }
50
42
  if (version !== `v${packageVersion}`) {
51
43
  // now the rest would be just `js.zonos.com`, the version prefix should be full version
52
44
  throw new Error(`[CDN] ${filePath}: found version (${version}) is not the expected full version (${packageVersion}) for url "${fullUrl}"`);
@@ -1,7 +1,7 @@
1
1
  import { Fragment, h, Host, } from "@stencil/core";
2
2
  import { cartStore, cartStoreClearCheckoutInterval, cartStoreNextStep, cartStoreReset, cartStoreResetTabItems, cartStoreSetCheckoutSession, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateToErrorState, } from "../../store/checkout/cart";
3
3
  import { paypalInitScript, paypalStoreHasPaypalEnabled, } from "../../store/checkout/paypal";
4
- import { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, } from "../../store/checkout/stripe";
4
+ import { getCheckoutSessionBody, initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, } from "../../store/checkout/stripe";
5
5
  import { localizationStore, localizationStoreOnUpdate, } from "../../store/hello/localization";
6
6
  import { translate } from "../../store/translationStore";
7
7
  import { getZonosStoreTheme, zonosStore, } from "../../store/zonosStore";
@@ -321,6 +321,7 @@ export class ZonosCheckout {
321
321
  metadata: {
322
322
  allLogs,
323
323
  cartId: window.Zonos.cartId,
324
+ checkoutSessionBody: getCheckoutSessionBody(),
324
325
  href: window.location.href,
325
326
  storeBaseUrl: (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl,
326
327
  },
@@ -54,7 +54,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
54
54
  const themeBasedColor = primaryColor && isDarkColor(primaryColor) ? 'night' : 'flat';
55
55
  // if overrideTheme is provided, use it. Otherwise, use theme based on primary color
56
56
  const theme = overrideTheme === 'DARK' ? 'night' : 'flat';
57
- const paypalPaymenType = paypalEnabled ? ['external_paypal'] : [];
57
+ const paypalPaymentType = paypalEnabled ? ['external_paypal'] : [];
58
58
  return {
59
59
  appearance: {
60
60
  labels: 'floating',
@@ -70,7 +70,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
70
70
  }),
71
71
  },
72
72
  clientSecret,
73
- externalPaymentMethodTypes: [...paypalPaymenType],
73
+ externalPaymentMethodTypes: [...paypalPaymentType],
74
74
  locale: localizationStore.selectedLocale,
75
75
  };
76
76
  };
@@ -473,18 +473,9 @@ const stripeStoreConfirmPayment = async () => {
473
473
  }
474
474
  }
475
475
  };
476
- /**
477
- * Init checkout session
478
- * @returns {boolean} whether or not the checkout session is successfully created
479
- */
480
- const stripeStoreInitCheckoutSession = async () => {
481
- var _a, _b;
476
+ export const getCheckoutSessionBody = () => {
477
+ var _a;
482
478
  const total = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
483
- if (!localizationStore.targetCurrency) {
484
- logError(`Failed to create checkout session - missing localizationStore.targetCurrency`);
485
- return false;
486
- }
487
- stripeStore.isFetchingSession = true;
488
479
  const body = {
489
480
  adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
490
481
  cartId: window.Zonos.cartId,
@@ -510,6 +501,20 @@ const stripeStoreInitCheckoutSession = async () => {
510
501
  ],
511
502
  presentmentCountryCode: localizationStore.selectedCountryCode,
512
503
  };
504
+ return body;
505
+ };
506
+ /**
507
+ * Init checkout session
508
+ * @returns {boolean} whether or not the checkout session is successfully created
509
+ */
510
+ const stripeStoreInitCheckoutSession = async () => {
511
+ var _a;
512
+ if (!localizationStore.targetCurrency) {
513
+ logError(`Failed to create checkout session - missing localizationStore.targetCurrency`);
514
+ return false;
515
+ }
516
+ stripeStore.isFetchingSession = true;
517
+ const body = getCheckoutSessionBody();
513
518
  log('Checkout session body', 'info', body);
514
519
  const { errors, json } = await handleFetch('/api/zonos-elements/create-checkout-session', {
515
520
  body,
@@ -525,7 +530,7 @@ const stripeStoreInitCheckoutSession = async () => {
525
530
  cartStoreSetCheckoutSession(result);
526
531
  stripeStore.clientSecret = result.clientSecret;
527
532
  cartStoreApplySubtotals({
528
- method: ((_b = result.landedCost) === null || _b === void 0 ? void 0 : _b.method) || 'DDP',
533
+ method: ((_a = result.landedCost) === null || _a === void 0 ? void 0 : _a.method) || 'DDP',
529
534
  subtotals: result.subtotals,
530
535
  });
531
536
  log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
@@ -9638,7 +9638,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
9638
9638
  const themeBasedColor = primaryColor && isDarkColor(primaryColor) ? 'night' : 'flat';
9639
9639
  // if overrideTheme is provided, use it. Otherwise, use theme based on primary color
9640
9640
  const theme = overrideTheme === 'DARK' ? 'night' : 'flat';
9641
- const paypalPaymenType = paypalEnabled ? ['external_paypal'] : [];
9641
+ const paypalPaymentType = paypalEnabled ? ['external_paypal'] : [];
9642
9642
  return {
9643
9643
  appearance: {
9644
9644
  labels: 'floating',
@@ -9653,7 +9653,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
9653
9653
  colorPrimary: secondaryColor }),
9654
9654
  },
9655
9655
  clientSecret,
9656
- externalPaymentMethodTypes: [...paypalPaymenType],
9656
+ externalPaymentMethodTypes: [...paypalPaymentType],
9657
9657
  locale: localizationStore.selectedLocale,
9658
9658
  };
9659
9659
  };
@@ -10056,18 +10056,9 @@ const stripeStoreConfirmPayment = async () => {
10056
10056
  }
10057
10057
  }
10058
10058
  };
10059
- /**
10060
- * Init checkout session
10061
- * @returns {boolean} whether or not the checkout session is successfully created
10062
- */
10063
- const stripeStoreInitCheckoutSession = async () => {
10064
- var _a, _b;
10059
+ const getCheckoutSessionBody = () => {
10060
+ var _a;
10065
10061
  const total = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
10066
- if (!localizationStore.targetCurrency) {
10067
- logError(`Failed to create checkout session - missing localizationStore.targetCurrency`);
10068
- return false;
10069
- }
10070
- stripeStore.isFetchingSession = true;
10071
10062
  const body = {
10072
10063
  adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
10073
10064
  cartId: window.Zonos.cartId,
@@ -10093,6 +10084,20 @@ const stripeStoreInitCheckoutSession = async () => {
10093
10084
  ],
10094
10085
  presentmentCountryCode: localizationStore.selectedCountryCode,
10095
10086
  };
10087
+ return body;
10088
+ };
10089
+ /**
10090
+ * Init checkout session
10091
+ * @returns {boolean} whether or not the checkout session is successfully created
10092
+ */
10093
+ const stripeStoreInitCheckoutSession = async () => {
10094
+ var _a;
10095
+ if (!localizationStore.targetCurrency) {
10096
+ logError(`Failed to create checkout session - missing localizationStore.targetCurrency`);
10097
+ return false;
10098
+ }
10099
+ stripeStore.isFetchingSession = true;
10100
+ const body = getCheckoutSessionBody();
10096
10101
  log('Checkout session body', 'info', body);
10097
10102
  const { errors, json } = await handleFetch('/api/zonos-elements/create-checkout-session', {
10098
10103
  body,
@@ -10108,7 +10113,7 @@ const stripeStoreInitCheckoutSession = async () => {
10108
10113
  cartStoreSetCheckoutSession(result);
10109
10114
  stripeStore.clientSecret = result.clientSecret;
10110
10115
  cartStoreApplySubtotals({
10111
- method: ((_b = result.landedCost) === null || _b === void 0 ? void 0 : _b.method) || 'DDP',
10116
+ method: ((_a = result.landedCost) === null || _a === void 0 ? void 0 : _a.method) || 'DDP',
10112
10117
  subtotals: result.subtotals,
10113
10118
  });
10114
10119
  log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
@@ -10671,4 +10676,4 @@ const cartStoreResetTabItems = () => {
10671
10676
  cartStoreResetSelectedShippingOption();
10672
10677
  };
10673
10678
 
10674
- export { isValidSelector as A, initLocalizationStore as B, setZCountryUrlParam as C, currencyDisplay as D, currencyConvertAndFormat as E, currencyConvert as F, currencyFormat as G, cartStoreHasOneEligibleItem as H, stripeStoreApplyPromoCode as I, stripeStoreRemovePromoCode as J, stripeStoreRetrievePayment as K, stripeStoreResetPromoCode as L, stripeStoreMessageBasedOnStatus as M, stripeStoreTranslateAddressToLatin as N, cartStoreUpdateSelectedShippingOption as O, cartStoreGetShippingTransitInfo as P, sortServiceLevelOptionsByAmount as Q, getFallbackDefaultCountryCode as R, localizationStoreUpdateSelectedLocale as S, 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, translate as o, getZCountryUrlParam as p, cartStoreSetCheckoutSession as q, stripeStorePrefetchLandedCost as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, cartStoreNextStep as u, stripeStoreHandleInventoryCheck as v, stripeStoreConfirmPayment as w, stripeStoreHandleInventoryRefund as x, stripeStoreReset as y, localizationStoreOnUpdate as z };
10679
+ export { localizationStoreOnUpdate as A, isValidSelector as B, initLocalizationStore as C, setZCountryUrlParam as D, currencyDisplay as E, currencyConvertAndFormat as F, currencyConvert as G, currencyFormat as H, cartStoreHasOneEligibleItem as I, stripeStoreApplyPromoCode as J, stripeStoreRemovePromoCode as K, stripeStoreRetrievePayment as L, stripeStoreResetPromoCode as M, stripeStoreMessageBasedOnStatus as N, stripeStoreTranslateAddressToLatin as O, cartStoreUpdateSelectedShippingOption as P, cartStoreGetShippingTransitInfo as Q, sortServiceLevelOptionsByAmount as R, getFallbackDefaultCountryCode as S, localizationStoreUpdateSelectedLocale as T, 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, getCheckoutSessionBody as n, cartStoreUpdateToErrorState as o, translate as p, getZCountryUrlParam as q, cartStoreSetCheckoutSession as r, stripeStoreGetDomesticShippingSession as s, trackConversionEvent as t, stripeStorePrefetchLandedCost as u, cartStoreNextStep as v, stripeStoreHandleInventoryCheck as w, stripeStoreConfirmPayment as x, stripeStoreHandleInventoryRefund as y, stripeStoreReset as z };
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.122.js.zonos.com";
97
+ const cdnUrl = "https://v1.3.123.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.122.js.zonos.com";
282
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.122";
283
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.122";
284
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.122";
281
+ const ZONOS_URL = "https://v1.3.123.js.zonos.com";
282
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.123";
283
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.123";
284
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.123";
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 = "1730912119121";
299
+ Zonos.releaseDate = "1730930859534";
300
300
  Zonos.isLegacyCheckout = false;
301
301
  Zonos.showBaseForeign = typeof window !== 'undefined' &&
302
302
  window.location.search.includes('zonosShowBaseForeign');
@@ -306,7 +306,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
306
306
  Zonos.isNpm = true;
307
307
  Zonos.zonosQaUrl = null;
308
308
  Zonos.zonosQaUrlApi = null;
309
- Zonos.version = `v${"1.3.122"}`;
309
+ Zonos.version = `v${"1.3.123"}`;
310
310
  Zonos.modeAlerted = false;
311
311
  Zonos.cartData = null;
312
312
  Zonos.paypal = null;
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-6b5bd87c.js';
2
- import { d as cartStore, v as stripeStoreHandleInventoryCheck, o as translate, u as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-782d513d.js';
2
+ import { d as cartStore, w as stripeStoreHandleInventoryCheck, p as translate, v as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-5346e4d9.js';
3
3
  import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-7424d200.js';
4
4
  import { t as tinycolor } from './isDarkColor-dc08fa26.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-86b8247e.js';
2
- import { j as stripeStore, R as getFallbackDefaultCountryCode, l as localizationStore, o as translate } from './cart-782d513d.js';
2
+ import { j as stripeStore, S as getFallbackDefaultCountryCode, l as localizationStore, p as translate } from './cart-5346e4d9.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
4
  import { a as logError, l as log } from './handleFetch-7424d200.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
@@ -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-86b8247e.js';
2
- import { d as cartStore, G as currencyFormat, o as translate, H as cartStoreHasOneEligibleItem, I as stripeStoreApplyPromoCode, J as stripeStoreRemovePromoCode, y as stripeStoreReset, j as stripeStore, K as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, M as stripeStoreMessageBasedOnStatus, l as localizationStore, N as stripeStoreTranslateAddressToLatin, O as cartStoreUpdateSelectedShippingOption, P as cartStoreGetShippingTransitInfo, Q as sortServiceLevelOptionsByAmount } from './cart-782d513d.js';
2
+ import { d as cartStore, H as currencyFormat, p as translate, I as cartStoreHasOneEligibleItem, J as stripeStoreApplyPromoCode, K as stripeStoreRemovePromoCode, z as stripeStoreReset, j as stripeStore, L as stripeStoreRetrievePayment, t as trackConversionEvent, M as stripeStoreResetPromoCode, N as stripeStoreMessageBasedOnStatus, l as localizationStore, O as stripeStoreTranslateAddressToLatin, P as cartStoreUpdateSelectedShippingOption, Q as cartStoreGetShippingTransitInfo, R as sortServiceLevelOptionsByAmount } from './cart-5346e4d9.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-7df6311e.js';
4
+ import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-db99e15a.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
6
6
  import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
7
7
  import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
@@ -1,6 +1,6 @@
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, t as trackConversionEvent, n as cartStoreUpdateToErrorState, o as translate, p as getZCountryUrlParam, q as cartStoreSetCheckoutSession, r as stripeStorePrefetchLandedCost, u as cartStoreNextStep, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as localizationStoreOnUpdate } from './cart-782d513d.js';
3
- import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-7df6311e.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, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as translate, q as getZCountryUrlParam, r as cartStoreSetCheckoutSession, u as stripeStorePrefetchLandedCost, v as cartStoreNextStep, w as stripeStoreHandleInventoryCheck, x as stripeStoreConfirmPayment, y as stripeStoreHandleInventoryRefund, z as stripeStoreReset, A as localizationStoreOnUpdate } from './cart-5346e4d9.js';
3
+ import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-db99e15a.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-6b5bd87c.js';
5
5
  import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs, j as jsonParse } from './handleFetch-7424d200.js';
6
6
  import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
@@ -530,6 +530,7 @@ const ZonosCheckout = class {
530
530
  metadata: {
531
531
  allLogs,
532
532
  cartId: window.Zonos.cartId,
533
+ checkoutSessionBody: getCheckoutSessionBody(),
533
534
  href: window.location.href,
534
535
  storeBaseUrl: (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl,
535
536
  },
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
2
- import { A as isValidSelector, j as stripeStore, B as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-782d513d.js';
2
+ import { B as isValidSelector, j as stripeStore, C as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-5346e4d9.js';
3
3
  import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
4
4
  import { h as handleFetch, a as logError, l as log } from './handleFetch-7424d200.js';
5
5
  import './isDarkColor-dc08fa26.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-782d513d.js';
2
+ import { l as localizationStore } from './cart-5346e4d9.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './handleFetch-7424d200.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, o as translate, l as localizationStore } from './cart-782d513d.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, p as translate, l as localizationStore } from './cart-5346e4d9.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
5
  import { i as isDarkColor } from './isDarkColor-dc08fa26.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 { o as translate, l as localizationStore, G as currencyFormat } from './cart-782d513d.js';
2
+ import { p as translate, l as localizationStore, H as currencyFormat } from './cart-5346e4d9.js';
3
3
  import { z as zonosStore } from './zonosStore-6b5bd87c.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-6b5bd87c.js';
3
- import { l as localizationStore, A as isValidSelector, o as translate, p as getZCountryUrlParam, C as setZCountryUrlParam, D as currencyDisplay, E as currencyConvertAndFormat, F as currencyConvert, G as currencyFormat } from './cart-782d513d.js';
3
+ import { l as localizationStore, B as isValidSelector, p as translate, q as getZCountryUrlParam, D as setZCountryUrlParam, E as currencyDisplay, F as currencyConvertAndFormat, G as currencyConvert, H as currencyFormat } from './cart-5346e4d9.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-7424d200.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 { S as localizationStoreUpdateSelectedLocale, o as translate, l as localizationStore } from './cart-782d513d.js';
2
+ import { T as localizationStoreUpdateSelectedLocale, p as translate, l as localizationStore } from './cart-5346e4d9.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
4
4
  import { l as languages } from './ILanguage-cd6acb72.js';
5
5
  import './handleFetch-7424d200.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-6b5bd87c.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { j as stripeStore } from './cart-782d513d.js';
4
+ import { j as stripeStore } from './cart-5346e4d9.js';
5
5
  import { a as logError, l as log } from './handleFetch-7424d200.js';
6
- import { d as paypalStoreInitButtons } from './paypal-7df6311e.js';
6
+ import { d as paypalStoreInitButtons } from './paypal-db99e15a.js';
7
7
  import './isDarkColor-dc08fa26.js';
8
8
  import './getBorderRadius-008516a4.js';
9
9