@zonos/elements 1.3.49 → 1.3.51

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 (172) hide show
  1. package/dist/cjs/{cart-8fac8840.js → cart-546d1602.js} +43 -6
  2. package/dist/cjs/{createCustomEvent-21addb75.js → createCustomEvent-9b91480b.js} +2 -2
  3. package/dist/cjs/{getBorderRadius-4413e191.js → getBorderRadius-a6a3b35e.js} +1 -1
  4. package/dist/cjs/index.cjs.js +7 -7
  5. package/dist/cjs/{isDarkColor-4eb96a1e.js → isDarkColor-7a056d05.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-8d507ea7.js → paypal-83f49f9a.js} +3 -3
  8. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-badge_2.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-card.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +6 -6
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
  15. package/dist/cjs/zonos-controller.cjs.entry.js +28 -15
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  20. package/dist/cjs/zonos-hello.cjs.entry.js +58 -15
  21. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
  23. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  25. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  27. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  28. package/dist/cjs/{zonosStore-56401fdb.js → zonosStore-67139f0e.js} +5 -0
  29. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +53 -103
  30. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +55 -11
  31. package/dist/collection/components/main/zonos-controller.js +12 -4
  32. package/dist/collection/components/store/zonosStore.js +5 -0
  33. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +2 -2
  34. package/dist/collection/components/utils/handleFetch.js +6 -1
  35. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +7 -1
  36. package/dist/collection/components/utils/hello/currencyConversion/numberFormat.js +27 -0
  37. package/dist/collection/components/utils/hello/initHello.js +14 -9
  38. package/dist/collection/types/generated/graphql.customer.types.js +20 -0
  39. package/dist/esm/{cart-e14f2366.js → cart-51529af2.js} +43 -6
  40. package/dist/esm/{createCustomEvent-444ddf02.js → createCustomEvent-b8bbdf5e.js} +2 -2
  41. package/dist/esm/{getBorderRadius-3ba98361.js → getBorderRadius-23398fc6.js} +1 -1
  42. package/dist/esm/index.js +7 -7
  43. package/dist/esm/{isDarkColor-3119e351.js → isDarkColor-c927f77d.js} +1 -1
  44. package/dist/esm/loader.js +1 -1
  45. package/dist/esm/{paypal-eef2a2a3.js → paypal-905325d0.js} +3 -3
  46. package/dist/esm/zonos-address_8.entry.js +4 -4
  47. package/dist/esm/zonos-badge_2.entry.js +1 -1
  48. package/dist/esm/zonos-banner.entry.js +1 -1
  49. package/dist/esm/zonos-button_3.entry.js +3 -3
  50. package/dist/esm/zonos-card.entry.js +2 -2
  51. package/dist/esm/zonos-cart-items_12.entry.js +6 -6
  52. package/dist/esm/zonos-checkout.entry.js +6 -6
  53. package/dist/esm/zonos-controller.entry.js +28 -15
  54. package/dist/esm/zonos-country-flag.entry.js +4 -4
  55. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  56. package/dist/esm/zonos-elements.js +1 -1
  57. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  58. package/dist/esm/zonos-hello.entry.js +58 -15
  59. package/dist/esm/zonos-input.entry.js +2 -2
  60. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  61. package/dist/esm/zonos-logo.entry.js +1 -1
  62. package/dist/esm/zonos-notification_3.entry.js +5 -5
  63. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  64. package/dist/esm/zonos-text.entry.js +1 -1
  65. package/dist/esm/zonos-v-stack.entry.js +1 -1
  66. package/dist/esm/{zonosStore-8fc9ceb2.js → zonosStore-473f4654.js} +5 -0
  67. package/dist/esm-es5/{cart-e14f2366.js → cart-51529af2.js} +1 -1
  68. package/dist/esm-es5/{createCustomEvent-444ddf02.js → createCustomEvent-b8bbdf5e.js} +1 -1
  69. package/dist/esm-es5/{getBorderRadius-3ba98361.js → getBorderRadius-23398fc6.js} +1 -1
  70. package/dist/esm-es5/index.js +1 -1
  71. package/dist/esm-es5/{isDarkColor-3119e351.js → isDarkColor-c927f77d.js} +1 -1
  72. package/dist/esm-es5/loader.js +1 -1
  73. package/dist/esm-es5/{paypal-eef2a2a3.js → paypal-905325d0.js} +1 -1
  74. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  75. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  77. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  78. package/dist/esm-es5/zonos-card.entry.js +1 -1
  79. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  80. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  81. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  82. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  83. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  84. package/dist/esm-es5/zonos-elements.js +1 -1
  85. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  86. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  87. package/dist/esm-es5/zonos-input.entry.js +1 -1
  88. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  89. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  90. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  91. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  92. package/dist/esm-es5/zonos-text.entry.js +1 -1
  93. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  94. package/dist/esm-es5/{zonosStore-8fc9ceb2.js → zonosStore-473f4654.js} +1 -1
  95. package/dist/scripts/index.d.ts +82 -6
  96. package/dist/scripts/index.js +1 -1
  97. package/dist/scripts/loadZonos.js +1 -1
  98. package/dist/scripts/zonos.js +1 -1
  99. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +9 -0
  100. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  101. package/dist/types/components/utils/hello/currencyConversion/numberFormat.d.ts +13 -0
  102. package/dist/types/components/utils/hello/initHello.d.ts +6 -2
  103. package/dist/types/components/utils/logging/sendErrorLog.d.ts +1 -1
  104. package/dist/types/scripts/_zonosBase.d.ts +77 -3
  105. package/dist/types/types/generated/graphql.customer.types.d.ts +27 -3
  106. package/dist/types/types/generated/graphql.customer.types.ts +38 -3
  107. package/dist/types/types/generated/graphql.frontend.types.d.ts +14 -14
  108. package/dist/types/types/generated/graphql.frontend.types.ts +12 -12
  109. package/dist/types/types/hello/HelloConfig.d.ts +3 -1
  110. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  111. package/dist/zonos-elements/index.esm.js +1 -1
  112. package/dist/zonos-elements/{p-a4a2ccb6.system.entry.js → p-00100b17.system.entry.js} +1 -1
  113. package/dist/zonos-elements/{p-46bb8fd1.entry.js → p-101c41bf.entry.js} +1 -1
  114. package/dist/zonos-elements/{p-5a2d27cd.system.entry.js → p-1828a4ff.system.entry.js} +1 -1
  115. package/dist/zonos-elements/{p-e8f7fb29.system.entry.js → p-1c72e53f.system.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-6ac72711.js → p-23a84835.js} +1 -1
  117. package/dist/zonos-elements/{p-40c21634.system.js → p-29814fd7.system.js} +1 -1
  118. package/dist/zonos-elements/{p-7ec264d3.system.js → p-2c323311.system.js} +1 -1
  119. package/dist/zonos-elements/{p-b4963e20.system.entry.js → p-3c4eec63.system.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-d5268ba8.system.entry.js → p-47945026.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-6bb0b7d2.system.entry.js → p-47c72c50.system.entry.js} +1 -1
  122. package/dist/zonos-elements/p-496e040f.system.entry.js +1 -0
  123. package/dist/zonos-elements/{p-717028a2.system.entry.js → p-4b59ada6.system.entry.js} +1 -1
  124. package/dist/zonos-elements/p-4e77ed65.system.entry.js +1 -0
  125. package/dist/zonos-elements/{p-e07bf9ea.entry.js → p-54f66cd1.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-b5ef10aa.entry.js → p-58d9803d.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-ee05c6c1.system.entry.js → p-59e85369.system.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-52947dab.system.entry.js → p-5a59ed7f.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-0f59fba9.entry.js → p-5e56828a.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-9220f63d.entry.js → p-5f7f51bd.entry.js} +1 -1
  131. package/dist/zonos-elements/{p-9a319774.entry.js → p-6013e370.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-a171d025.system.entry.js → p-6b42fa1b.system.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-9420f9db.entry.js → p-6dcef5ce.entry.js} +1 -1
  134. package/dist/zonos-elements/{p-c7301a88.entry.js → p-70bb4a25.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-14067782.system.entry.js → p-7ef2737b.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-4d0c5518.system.entry.js → p-8473f99a.system.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-9eadd9a7.system.entry.js → p-89d8c1ad.system.entry.js} +1 -1
  138. package/dist/zonos-elements/p-8b8ef484.entry.js +1 -0
  139. package/dist/zonos-elements/p-8e8defdc.system.js +1 -0
  140. package/dist/zonos-elements/{p-dc368ad5.entry.js → p-8e9dcaa3.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-c8393dae.entry.js → p-9a0401fd.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-04054425.js → p-9dd6b00d.js} +1 -1
  143. package/dist/zonos-elements/p-9e976332.entry.js +1 -0
  144. package/dist/zonos-elements/{p-4f454a91.system.entry.js → p-a3547b34.system.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-9d1f13c2.entry.js → p-a4309beb.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-b0d100bc.js → p-aa5d669b.js} +1 -1
  147. package/dist/zonos-elements/{p-3e6d9006.system.entry.js → p-b1a8b874.system.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-62db3f69.entry.js → p-b57d24f2.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-ec21c7f0.entry.js → p-ba0289f9.entry.js} +1 -1
  150. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  151. package/dist/zonos-elements/{p-1bc23926.system.js → p-c89859cf.system.js} +1 -1
  152. package/dist/zonos-elements/{p-da3edde8.js → p-c8a3303b.js} +1 -1
  153. package/dist/zonos-elements/{p-412e5260.entry.js → p-cc7a4fca.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-8b01aafb.entry.js → p-cf9a46e8.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-7da895a1.js → p-d413cd13.js} +1 -1
  156. package/dist/zonos-elements/{p-b5c47b6d.system.js → p-e758ec31.system.js} +1 -1
  157. package/dist/zonos-elements/p-e97793ce.system.js +1 -0
  158. package/dist/zonos-elements/{p-706d2bad.entry.js → p-eb3520e7.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-0229282c.system.entry.js → p-ecd6a58a.system.entry.js} +1 -1
  160. package/dist/zonos-elements/p-f05f3e27.js +1 -0
  161. package/dist/zonos-elements/{p-c4bb2949.system.entry.js → p-f3811c4c.system.entry.js} +1 -1
  162. package/dist/zonos-elements/{p-baa03426.system.js → p-fcfde531.system.js} +1 -1
  163. package/dist/zonos-elements/{p-a6f1a790.entry.js → p-ffd76226.entry.js} +1 -1
  164. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  165. package/package.json +2 -1
  166. package/dist/zonos-elements/p-52fb6876.js +0 -1
  167. package/dist/zonos-elements/p-539974db.system.js +0 -1
  168. package/dist/zonos-elements/p-6058a37a.entry.js +0 -1
  169. package/dist/zonos-elements/p-8809964a.system.js +0 -1
  170. package/dist/zonos-elements/p-c024a9b3.entry.js +0 -1
  171. package/dist/zonos-elements/p-ca508c67.system.entry.js +0 -1
  172. package/dist/zonos-elements/p-ef664d5a.system.entry.js +0 -1
@@ -17,7 +17,6 @@ import { setZCountryUrlParam } from "../../utils/hello/setZCountryUrlParam";
17
17
  import { log } from "../../utils/logging/log";
18
18
  import { mergeConfig } from "../../utils/mergeConfig";
19
19
  const PEEK_MESSAGE_CLOSE_DELAY_MS = 3000;
20
- const RESIZE_DEBOUNCE_DELAY_MS = 500;
21
20
  export class ZonosHello {
22
21
  constructor() {
23
22
  this.getHelloPeekMessage = (organizationName) => {
@@ -162,6 +161,9 @@ export class ZonosHello {
162
161
  this.changeShowDialog = (value) => {
163
162
  this.showDialog = value;
164
163
  };
164
+ /**
165
+ * Determine if the peek message should animate from left or not
166
+ */
165
167
  this.shouldAnimateLeftDesktop = () => {
166
168
  // Get Hello position (relative = desktop, fixed = mobile)
167
169
  const elPosition = this.helloRef && getComputedStyle(this.helloRef).position;
@@ -203,6 +205,7 @@ export class ZonosHello {
203
205
  this.allFoundProducts = [];
204
206
  this.productsOnPage = [];
205
207
  this.isHelloWidgetRendered = false;
208
+ this.isMobile = false;
206
209
  }
207
210
  /**
208
211
  * Get the country list the hello widget's country select is using
@@ -269,7 +272,7 @@ export class ZonosHello {
269
272
  this.changeShowDialog(value);
270
273
  }
271
274
  handleResize() {
272
- debounce(this.render.bind(this), RESIZE_DEBOUNCE_DELAY_MS);
275
+ this.isMobile = window.innerWidth <= 768;
273
276
  }
274
277
  /**
275
278
  * This method will handle the Hello widget initialized state, should only trigger once
@@ -290,6 +293,44 @@ export class ZonosHello {
290
293
  }));
291
294
  }
292
295
  }
296
+ getHelloLocation() {
297
+ const mobileLocation = this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;
298
+ const desktopLocation = zonosStore.helloSettings.desktopLocation;
299
+ const isMobileWindow = this.isMobile;
300
+ switch (true) {
301
+ // Mobile
302
+ case isMobileWindow: {
303
+ const isOnLeft = this.animateFromLeftOverride || (mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('LEFT'));
304
+ const isOnTop = mobileLocation === null || mobileLocation === void 0 ? void 0 : mobileLocation.includes('TOP');
305
+ return {
306
+ isMobileWindow,
307
+ isOnLeft,
308
+ isOnTop,
309
+ shouldFloat: !!mobileLocation,
310
+ };
311
+ }
312
+ // Desktop
313
+ default:
314
+ case !isMobileWindow: {
315
+ /**
316
+ * Only float on desktop if there is no anchor specified and desktopLocation is set
317
+ * This is to keep the same behavior as it is now (display at anchor if set on desktop, float on mobile).
318
+ **/
319
+ const shouldFloat = !zonosStore.helloSettings.anchorElementSelector && !!desktopLocation;
320
+ const isOnLeft = this.animateFromLeftOverride ||
321
+ (desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('LEFT')) ||
322
+ this.shouldAnimateLeftDesktop();
323
+ const isOnTop = desktopLocation === null || desktopLocation === void 0 ? void 0 : desktopLocation.includes('TOP');
324
+ return {
325
+ isMobileWindow,
326
+ isOnLeft,
327
+ isOnTop,
328
+ // Only float if
329
+ shouldFloat,
330
+ };
331
+ }
332
+ }
333
+ }
293
334
  handleAppearanceSettingsOverrideChange() {
294
335
  var _a;
295
336
  if ((_a = this.appearanceSettingsOverride) === null || _a === void 0 ? void 0 : _a.theme) {
@@ -297,6 +338,9 @@ export class ZonosHello {
297
338
  this.appearanceSettingsOverride.theme = getZonosStoreTheme(this.appearanceSettingsOverride.theme);
298
339
  }
299
340
  }
341
+ componentDidLoad() {
342
+ this.isMobile = window.innerWidth <= 768;
343
+ }
300
344
  render() {
301
345
  var _a, _b;
302
346
  const isExcludedUrl = (_a = zonosStore.helloSettings.excludedUrlPatterns) === null || _a === void 0 ? void 0 : _a.some(pattern => new RegExp(pattern).test(window.location.href));
@@ -305,13 +349,7 @@ export class ZonosHello {
305
349
  return null;
306
350
  }
307
351
  const { selectedCountryCode, targetCurrency } = localizationStore;
308
- const mobileLocation = this.mobileLocationOverride || zonosStore.helloSettings.mobileLocation;
309
- const isMobileWindow = window.innerWidth < 768;
310
- const isOnLeft = this.animateFromLeftOverride ||
311
- (isMobileWindow && mobileLocation.includes('LEFT')) ||
312
- this.shouldAnimateLeftDesktop() ||
313
- false;
314
- const isOnTop = mobileLocation.includes('TOP');
352
+ const { isOnLeft, isOnTop, shouldFloat } = this.getHelloLocation();
315
353
  const appearanceSettings = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride);
316
354
  const { theme } = appearanceSettings;
317
355
  const restrictedItemsOnPage = (_b = this.allRestrictedItems) === null || _b === void 0 ? void 0 : _b.filter(product => this.productsOnPage.some(restriction => restriction.description === product.itemDescription));
@@ -326,7 +364,10 @@ export class ZonosHello {
326
364
  currencyCode: targetCurrency,
327
365
  });
328
366
  }
329
- return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (h("div", { class: "zonos--hello-wrapper" }, h("button", { class: classes([
367
+ return (h(Host, { class: "zonos--hello zonos--elements", "data-theme": theme }, showHello && (h("div", { class: classes([
368
+ 'zonos--hello-wrapper',
369
+ shouldFloat && 'zonos--hello-widget-float',
370
+ ]) }, h("button", { class: classes([
330
371
  'zonos--hello-widget',
331
372
  this.showPeekMessage && 'zonos--hello-show-peek-message',
332
373
  this.mobileLocationOverride && 'zonos--hello-mobile-override',
@@ -335,12 +376,14 @@ export class ZonosHello {
335
376
  isOnTop && 'zonos--hello-widget-top',
336
377
  !!this.allRestrictedItems.length &&
337
378
  'zonos--hello-has-restrictions',
379
+ shouldFloat && 'zonos--hello-widget-float',
338
380
  ]), onClick: () => {
339
381
  void this.changeShowDialog(!this.showDialog);
340
382
  }, onMouseEnter: () => this.enableShowPeekMessage(), onMouseLeave: () => (this.showPeekMessage = false), ref: el => el && (this.helloRef = el) }, h("zonos-text", { class: "zonos--hello-message" }, this.peekMessage), selectedCountryCode && (h("div", { class: "zonos--hello-country-flag-wrapper" }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode })))), h("div", { class: classes([
341
383
  'zonos--hello-dialog-wrapper',
342
384
  this.mobileLocationOverride &&
343
385
  'zonos--hello-dialog-wrapper-mobile-override',
386
+ shouldFloat && 'zonos--hello-widget-float',
344
387
  ]), style: { height: this.showDialog ? 'fit-content' : '0px' } }, h("zonos-hello-dialog", { animateFromLeftOverride: this.animateFromLeftOverride, appearanceSettings: appearanceSettings, isOpen: this.showDialog, mobileLocationOverride: this.mobileLocationOverride, restrictedItems: restrictedItemsOnPage, setIsOpen: this.changeShowDialog }))))));
345
388
  }
346
389
  static get is() { return "zonos-hello"; }
@@ -440,7 +483,8 @@ export class ZonosHello {
440
483
  "allRestrictedItems": {},
441
484
  "allFoundProducts": {},
442
485
  "productsOnPage": {},
443
- "isHelloWidgetRendered": {}
486
+ "isHelloWidgetRendered": {},
487
+ "isMobile": {}
444
488
  };
445
489
  }
446
490
  static get methods() {
@@ -54,8 +54,10 @@ export class ZonosController {
54
54
  const searchParams = new URLSearchParams();
55
55
  searchParams.set('family', fontSelected);
56
56
  const { errors, json } = await handleFetch(`/api/zonos-elements/get-font-detail?${searchParams.toString()}`);
57
+ // Keep using Inter font, font in the setting maybe outdated and not found in google font, API will return Inter font instead
57
58
  if (errors.length > 0 || !json) {
58
59
  log(`Failed to load font ${fontSelected}`, 'warn');
60
+ zonosStore.appearance = Object.assign(Object.assign({}, zonosStore.appearance), { fontFamily: 'Inter' });
59
61
  return;
60
62
  }
61
63
  const fontUrl = json.fontUrl;
@@ -112,7 +114,13 @@ export class ZonosController {
112
114
  zonosStore.zonosMode = zonosMode;
113
115
  // setup google font after store loaded
114
116
  void this.setupGoogleFont();
115
- if (zonosStore.helloSettings) {
117
+ if (zonosStore.helloSettings.visibilityStatus === 'DISABLED') {
118
+ // Store owner disabled this intentionally
119
+ log('=== Hello is disabled by store owner ===', 'warn');
120
+ }
121
+ if (zonosStore.helloSettings &&
122
+ zonosStore.helloSettings.visibilityStatus === 'ENABLED') {
123
+ log('Initializing hello');
116
124
  void initHello(zonosStore.helloSettings);
117
125
  }
118
126
  // init localization store
@@ -187,7 +195,7 @@ export class ZonosController {
187
195
  zonosStore.organizationName = organizationName;
188
196
  }
189
197
  render() {
190
- return h(Host, { key: 'b8a056dc3bbd14495e048a89a11f27a6fb3fdb10', class: "zonos--elements" });
198
+ return h(Host, { key: '10fe4b2e7b375fa25484bb55077b73d2421735ae', class: "zonos--elements" });
191
199
  }
192
200
  static get is() { return "zonos-controller"; }
193
201
  static get encapsulation() { return "shadow"; }
@@ -208,7 +216,7 @@ export class ZonosController {
208
216
  "mutable": false,
209
217
  "complexType": {
210
218
  "original": "LoadZonosParamsConfig",
211
- "resolved": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; overrideCurrencyFormat?: { currencyDisplay?: \"symbol\" | \"name\" | \"code\" | \"narrowSymbol\" | undefined; } | ((params: { amount: number; countryCode: CurrencyCode; }) => string) | undefined; onCountryChange?: ((props: { countryCode: CountryCode; currencyCode: CurrencyCode; }) => void) | undefined; }",
219
+ "resolved": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; overrideCurrencyFormat?: { currencyDisplay?: \"symbol\" | \"name\" | \"code\" | \"narrowSymbol\" | undefined; } | ((params: { amount: number; currencyCode: CurrencyCode; numberFormat: NumberFormat; }) => string) | undefined; onCountryChange?: ((props: { countryCode: CountryCode; currencyCode: CurrencyCode; }) => void) | undefined; }",
212
220
  "references": {
213
221
  "LoadZonosParamsConfig": {
214
222
  "location": "import",
@@ -373,7 +381,7 @@ export class ZonosController {
373
381
  "signature": "(config: LoadZonosParamsConfig) => Promise<void>",
374
382
  "parameters": [{
375
383
  "name": "config",
376
- "type": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; overrideCurrencyFormat?: { currencyDisplay?: \"symbol\" | \"name\" | \"code\" | \"narrowSymbol\" | undefined; } | ((params: { amount: number; countryCode: CurrencyCode; }) => string) | undefined; onCountryChange?: ((props: { countryCode: CountryCode; currencyCode: CurrencyCode; }) => void) | undefined; }",
384
+ "type": "{ appearance?: Partial<AppearanceConfig> | undefined; checkoutSettings?: Partial<CheckoutConfig> | undefined; currencyConverter?: CurrencyConverter | undefined; helloSettings?: Partial<HelloConfig> | undefined; overrideCurrencyFormat?: { currencyDisplay?: \"symbol\" | \"name\" | \"code\" | \"narrowSymbol\" | undefined; } | ((params: { amount: number; currencyCode: CurrencyCode; numberFormat: NumberFormat; }) => string) | undefined; onCountryChange?: ((props: { countryCode: CountryCode; currencyCode: CurrencyCode; }) => void) | undefined; }",
377
385
  "docs": "config that need to override the default setting"
378
386
  }],
379
387
  "references": {
@@ -55,6 +55,10 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
55
55
  countryOverrideBehavior: 'URL_PARAM',
56
56
  currencyBehavior: 'ENABLED',
57
57
  currencyElementSelector: '.money',
58
+ /**
59
+ * Default to bottom right so hello would float if anchorElementSelector is not set. Otherwise, this will be ignored
60
+ */
61
+ desktopLocation: 'BOTTOM_RIGHT',
58
62
  excludedUrlPatterns: [],
59
63
  homepageUrlPattern: '',
60
64
  mobileLocation: 'BOTTOM_RIGHT',
@@ -69,6 +73,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
69
73
  productTitleElementSelector: '',
70
74
  restrictionBehavior: 'DISABLED',
71
75
  showForCountries: 'ONLY_SHIPPABLE',
76
+ visibilityStatus: 'ENABLED',
72
77
  },
73
78
  loadedConfig: false,
74
79
  organizationId: '',
@@ -1,5 +1,5 @@
1
1
  import { prepCalculateLandedCost } from "./prepCalculateLandedCost";
2
- import { MAIN_BASE_API } from "../getNextFallbackApi";
2
+ import { fallbackApiList } from "../getNextFallbackApi";
3
3
  import { handleFetch } from "../handleFetch";
4
4
  export const triggerBuildLandedCost = async (buildLandedCost) => {
5
5
  var _a, _b, _c, _d;
@@ -10,7 +10,7 @@ export const triggerBuildLandedCost = async (buildLandedCost) => {
10
10
  checkoutSessionId: data.checkoutSessionId,
11
11
  contact: data.contact,
12
12
  shippingAddress: data.shippingAddress,
13
- zonosApiRoute: MAIN_BASE_API,
13
+ zonosApiRoute: fallbackApiList['vercel'],
14
14
  });
15
15
  if (!landedCost || ((_a = landedCost.errors) === null || _a === void 0 ? void 0 : _a.length)) {
16
16
  throw new Error(`Failed to build landed cost: ${((_c = (_b = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message) || 'Unknown error'}`);
@@ -117,8 +117,13 @@ const handleRequest = async ({ basePathType, options, path, }) => {
117
117
  };
118
118
  }
119
119
  };
120
- const handleRequestWithFallback = async ({ basePathType, options, path, }) => {
120
+ const handleRequestWithFallback = async ({ basePathType: _basePathType, options, path, }) => {
121
121
  var _a, _b;
122
+ // use vercel API if the path is `/api/bigcommerce`
123
+ const isBigcommerceEndpoint = path.startsWith('/api/bigcommerce');
124
+ const basePathType = isBigcommerceEndpoint
125
+ ? 'vercel'
126
+ : _basePathType;
122
127
  const _c = await handleRequest({
123
128
  basePathType,
124
129
  options,
@@ -1,5 +1,6 @@
1
1
  import { localizationStore } from "../../../store/hello/localization";
2
2
  import { zonosStore } from "../../../store/zonosStore";
3
+ import { numberFormat } from "./numberFormat";
3
4
  export const currencyFormat = ({ amount, currency, }) => {
4
5
  if (isNaN(amount) || (amount !== 0 && !amount)) {
5
6
  return '';
@@ -11,7 +12,12 @@ export const currencyFormat = ({ amount, currency, }) => {
11
12
  if (typeof overrideCurrencyFormat === 'function') {
12
13
  return overrideCurrencyFormat({
13
14
  amount: amount,
14
- countryCode: targetCurrency,
15
+ currencyCode: targetCurrency,
16
+ numberFormat: ({ amount: _amount }) => numberFormat({
17
+ amount: _amount,
18
+ currency: targetCurrency,
19
+ targetFormat: (exchangeRate === null || exchangeRate === void 0 ? void 0 : exchangeRate.targetFormat) || null,
20
+ }),
15
21
  });
16
22
  }
17
23
  const { targetFormat } = exchangeRate || {};
@@ -0,0 +1,27 @@
1
+ import { localizationStore } from "../../../store/hello/localization";
2
+ /**
3
+ * This function only to format the number in
4
+ * @returns
5
+ */
6
+ export const numberFormat = ({ amount, currency, targetFormat, }) => {
7
+ const targetCurrency = currency || localizationStore.targetCurrency;
8
+ const minimumFractionDigits = (targetFormat === null || targetFormat === void 0 ? void 0 : targetFormat.scale) || 2;
9
+ const isIE = window.navigator.userAgent.indexOf('MSIE ') !== -1;
10
+ const numberFormatExists = typeof Intl === 'object' && Intl && typeof Intl.NumberFormat === 'function';
11
+ if (isIE || !numberFormatExists) {
12
+ // use native number formatting if it's IE.
13
+ const formattedNumber = Number(amount)
14
+ .toFixed(minimumFractionDigits)
15
+ .replace('.', '|dec|')
16
+ .replace(',', (targetFormat === null || targetFormat === void 0 ? void 0 : targetFormat.thousandsDelimiter) || '')
17
+ .replace('|dec|', (targetFormat === null || targetFormat === void 0 ? void 0 : targetFormat.decimalDelimiter) || '');
18
+ return formattedNumber;
19
+ }
20
+ const formatedNumber = new Intl.NumberFormat(window.navigator.language, {
21
+ currency: targetCurrency,
22
+ currencyDisplay: 'code',
23
+ minimumFractionDigits: minimumFractionDigits,
24
+ style: 'currency',
25
+ }).format(amount);
26
+ return formatedNumber.replace(new RegExp(`${targetCurrency}\\s+`), '');
27
+ };
@@ -16,7 +16,7 @@ const injectHelloComponent = (anchorElementSelector) => {
16
16
  * Injects the hello mobile wrapper to the DOM and returns the anchor element selector
17
17
  * @returns anchor element selector
18
18
  */
19
- const injectHelloMobileWrapper = ({ position = 'bottom-right', }) => {
19
+ const injectDefaultWrapper = ({ position = 'bottom-right', }) => {
20
20
  const mobileAnchorSelector = '.zonos--hello-mobile-wrapper';
21
21
  const helloMobileWrapper = document.querySelector(mobileAnchorSelector);
22
22
  if (helloMobileWrapper) {
@@ -47,11 +47,18 @@ const injectHelloMobileWrapper = ({ position = 'bottom-right', }) => {
47
47
  };
48
48
  export const initHello = async (helloSettings) => {
49
49
  const { anchorElementSelector } = helloSettings;
50
- const mobileHelloAnchor = injectHelloMobileWrapper({
51
- position: 'bottom-right',
52
- });
53
- // default to mobile anchor if anchorElementSelector is not provided, so for bigcommerce, we don't need to manually add a anchor every time we onboard a new store
54
- const helloAnchor = anchorElementSelector || mobileHelloAnchor;
50
+ // default to mobile anchor if anchorElementSelector is not provided
51
+ let helloAnchor = anchorElementSelector;
52
+ /**
53
+ * Use default mobile anchor only if desktopLocation is provided and no anchorElementSelector is provided
54
+ * So for bigcommerce, we don't need to manually add a anchor every time we onboard a new store
55
+ **/
56
+ if (!helloSettings.anchorElementSelector && helloSettings.desktopLocation) {
57
+ const defaultAnchor = injectDefaultWrapper({
58
+ position: 'bottom-right',
59
+ });
60
+ helloAnchor = defaultAnchor;
61
+ }
55
62
  // check if checkout button anchor selector user pass in is valid to setup hello
56
63
  if (!helloAnchor || !isValidSelector(helloAnchor)) {
57
64
  logError(`Selector anchorElementSelector "${helloSettings.anchorElementSelector}" is not a valid selector.`);
@@ -72,11 +79,9 @@ export const initHello = async (helloSettings) => {
72
79
  childList: true,
73
80
  subtree: true,
74
81
  });
75
- // kill observer after 1 second if the hello still not injected, if the hello still not injected after 1 second, it's likely that the selector the user doesn't want to use hello
76
82
  setTimeout(() => {
77
- observer.disconnect();
78
83
  // inject hello to mobile anchor if hello is still not found
79
- injectHelloComponent(mobileHelloAnchor);
84
+ injectHelloComponent(helloAnchor);
80
85
  }, 1000);
81
86
  }
82
87
  };
@@ -68,6 +68,11 @@ export const batteryPackingType = {
68
68
  BatteryOnly: 'BATTERY_ONLY',
69
69
  BatteryPackagedWithEquipment: 'BATTERY_PACKAGED_WITH_EQUIPMENT',
70
70
  };
71
+ export const billingCompanyAccountType = {
72
+ StripeBillingCustomer: 'STRIPE_BILLING_CUSTOMER',
73
+ StripePaymentsConnectAccount: 'STRIPE_PAYMENTS_CONNECT_ACCOUNT',
74
+ StripeThirdPartyBillingCustomer: 'STRIPE_THIRD_PARTY_BILLING_CUSTOMER',
75
+ };
71
76
  export const billingOptionCode = {
72
77
  DdpAndDdu: 'DDP_AND_DDU',
73
78
  ShipperOnly: 'SHIPPER_ONLY',
@@ -208,6 +213,11 @@ export const carrierRateType = {
208
213
  Negotiated: 'NEGOTIATED',
209
214
  Retail: 'RETAIL',
210
215
  };
216
+ export const cartAdjustmentType = {
217
+ CartTotal: 'CART_TOTAL',
218
+ Item: 'ITEM',
219
+ Shipping: 'SHIPPING',
220
+ };
211
221
  export const catalogItemExportJobAction = {
212
222
  Email: 'EMAIL',
213
223
  None: 'NONE',
@@ -322,6 +332,11 @@ export const collectUploadStatus = {
322
332
  Succeeded: 'SUCCEEDED',
323
333
  SucceededWithErrors: 'SUCCEEDED_WITH_ERRORS',
324
334
  };
335
+ export const commercialInvoiceImageCarrier = {
336
+ Dhl: 'DHL',
337
+ Fedex: 'FEDEX',
338
+ Ups: 'UPS',
339
+ };
325
340
  export const confidenceScoreDisplayStatus = {
326
341
  Disabled: 'DISABLED',
327
342
  Enabled: 'ENABLED',
@@ -1123,6 +1138,11 @@ export const elementsUiTheme = {
1123
1138
  Light: 'LIGHT',
1124
1139
  System: 'SYSTEM',
1125
1140
  };
1141
+ export const emailSenderStatus = {
1142
+ NotVerified: 'NOT_VERIFIED',
1143
+ Pending: 'PENDING',
1144
+ Verified: 'VERIFIED',
1145
+ };
1126
1146
  export const emailTemplateProviderType = {
1127
1147
  Sendgrid: 'SENDGRID',
1128
1148
  };
@@ -1,7 +1,7 @@
1
- import { c as createStore, z as zonosStore } from './zonosStore-8fc9ceb2.js';
1
+ import { c as createStore, z as zonosStore } from './zonosStore-473f4654.js';
2
2
  import { l as log, a as logError } from './logError-c456c092.js';
3
- import { i as isDarkColor } from './isDarkColor-3119e351.js';
4
- import { g as getBorderRadius } from './getBorderRadius-3ba98361.js';
3
+ import { i as isDarkColor } from './isDarkColor-c927f77d.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-23398fc6.js';
5
5
 
6
6
  const stringsArabic = {
7
7
  'Above de minimis threshold for': {
@@ -7363,8 +7363,13 @@ const handleRequest = async ({ basePathType, options, path, }) => {
7363
7363
  };
7364
7364
  }
7365
7365
  };
7366
- const handleRequestWithFallback = async ({ basePathType, options, path, }) => {
7366
+ const handleRequestWithFallback = async ({ basePathType: _basePathType, options, path, }) => {
7367
7367
  var _a, _b;
7368
+ // use vercel API if the path is `/api/bigcommerce`
7369
+ const isBigcommerceEndpoint = path.startsWith('/api/bigcommerce');
7370
+ const basePathType = isBigcommerceEndpoint
7371
+ ? 'vercel'
7372
+ : _basePathType;
7368
7373
  const _c = await handleRequest({
7369
7374
  basePathType,
7370
7375
  options,
@@ -7577,6 +7582,33 @@ const currencyConvert = (value) => {
7577
7582
  return Number(fixedValue);
7578
7583
  };
7579
7584
 
7585
+ /**
7586
+ * This function only to format the number in
7587
+ * @returns
7588
+ */
7589
+ const numberFormat = ({ amount, currency, targetFormat, }) => {
7590
+ const targetCurrency = currency || localizationStore.targetCurrency;
7591
+ const minimumFractionDigits = (targetFormat === null || targetFormat === void 0 ? void 0 : targetFormat.scale) || 2;
7592
+ const isIE = window.navigator.userAgent.indexOf('MSIE ') !== -1;
7593
+ const numberFormatExists = typeof Intl === 'object' && Intl && typeof Intl.NumberFormat === 'function';
7594
+ if (isIE || !numberFormatExists) {
7595
+ // use native number formatting if it's IE.
7596
+ const formattedNumber = Number(amount)
7597
+ .toFixed(minimumFractionDigits)
7598
+ .replace('.', '|dec|')
7599
+ .replace(',', (targetFormat === null || targetFormat === void 0 ? void 0 : targetFormat.thousandsDelimiter) || '')
7600
+ .replace('|dec|', (targetFormat === null || targetFormat === void 0 ? void 0 : targetFormat.decimalDelimiter) || '');
7601
+ return formattedNumber;
7602
+ }
7603
+ const formatedNumber = new Intl.NumberFormat(window.navigator.language, {
7604
+ currency: targetCurrency,
7605
+ currencyDisplay: 'code',
7606
+ minimumFractionDigits: minimumFractionDigits,
7607
+ style: 'currency',
7608
+ }).format(amount);
7609
+ return formatedNumber.replace(new RegExp(`${targetCurrency}\\s+`), '');
7610
+ };
7611
+
7580
7612
  const currencyFormat = ({ amount, currency, }) => {
7581
7613
  if (isNaN(amount) || (amount !== 0 && !amount)) {
7582
7614
  return '';
@@ -7588,7 +7620,12 @@ const currencyFormat = ({ amount, currency, }) => {
7588
7620
  if (typeof overrideCurrencyFormat === 'function') {
7589
7621
  return overrideCurrencyFormat({
7590
7622
  amount: amount,
7591
- countryCode: targetCurrency,
7623
+ currencyCode: targetCurrency,
7624
+ numberFormat: ({ amount: _amount }) => numberFormat({
7625
+ amount: _amount,
7626
+ currency: targetCurrency,
7627
+ targetFormat: (exchangeRate === null || exchangeRate === void 0 ? void 0 : exchangeRate.targetFormat) || null,
7628
+ }),
7592
7629
  });
7593
7630
  }
7594
7631
  const { targetFormat } = exchangeRate || {};
@@ -8075,7 +8112,7 @@ const triggerBuildLandedCost = async (buildLandedCost) => {
8075
8112
  checkoutSessionId: data.checkoutSessionId,
8076
8113
  contact: data.contact,
8077
8114
  shippingAddress: data.shippingAddress,
8078
- zonosApiRoute: MAIN_BASE_API,
8115
+ zonosApiRoute: fallbackApiList['vercel'],
8079
8116
  });
8080
8117
  if (!landedCost || ((_a = landedCost.errors) === null || _a === void 0 ? void 0 : _a.length)) {
8081
8118
  throw new Error(`Failed to build landed cost: ${((_c = (_b = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message) || 'Unknown error'}`);
@@ -1,5 +1,5 @@
1
- import { x as handleFetch, e as cartStore, l as localizationStore } from './cart-e14f2366.js';
2
- import { z as zonosStore } from './zonosStore-8fc9ceb2.js';
1
+ import { x as handleFetch, e as cartStore, l as localizationStore } from './cart-51529af2.js';
2
+ import { z as zonosStore } from './zonosStore-473f4654.js';
3
3
 
4
4
  const trackConversionEvent = async (eventName, metadata) => {
5
5
  var _a, _b;
@@ -1,4 +1,4 @@
1
- import { z as zonosStore } from './zonosStore-8fc9ceb2.js';
1
+ import { z as zonosStore } from './zonosStore-473f4654.js';
2
2
 
3
3
  /**
4
4
  * Get the border radius for the elements based on the style
package/dist/esm/index.js CHANGED
@@ -90,7 +90,7 @@ const getZonosQaUrl = () => {
90
90
  return null;
91
91
  }
92
92
  const qaUrl = extractZonosQaUrl(window.location.href);
93
- const cdnUrl = "https://v1.3.49.js.zonos.com";
93
+ const cdnUrl = "https://v1.3.51.js.zonos.com";
94
94
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
95
95
  if (!qaUrl &&
96
96
  (cdnUrl.includes('test.') ||
@@ -264,10 +264,10 @@ const zonosLoadUrl = (() => {
264
264
  }
265
265
  return null;
266
266
  })();
267
- const ZONOS_URL = "https://v1.3.49.js.zonos.com";
268
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.49";
269
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.49";
270
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.49";
267
+ const ZONOS_URL = "https://v1.3.51.js.zonos.com";
268
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.51";
269
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.51";
270
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.51";
271
271
  const MAIN_LOAD_CDN_TYPE = 'jsdelivr';
272
272
  const INTER_FONT_URL = 'https://rsms.me';
273
273
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
@@ -283,13 +283,13 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
283
283
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
284
284
  Zonos._paypalMockResponse = null;
285
285
  Zonos.isBigCommerce = false;
286
- Zonos.releaseDate = "1726500921881";
286
+ Zonos.releaseDate = "1726523859808";
287
287
  /**
288
288
  * By default, the package will load from npm
289
289
  */
290
290
  Zonos.isNpm = true;
291
291
  Zonos.zonosQaUrl = null;
292
- Zonos.version = `v${"1.3.49"}`;
292
+ Zonos.version = `v${"1.3.51"}`;
293
293
  Zonos.modeAlerted = false;
294
294
  Zonos.tempCartData = null;
295
295
  Zonos.paypal = null;
@@ -1,4 +1,4 @@
1
- import { a as commonjsGlobal } from './zonosStore-8fc9ceb2.js';
1
+ import { a as commonjsGlobal } from './zonosStore-473f4654.js';
2
2
 
3
3
  var tinycolor$1 = {exports: {}};
4
4
 
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy([["zonos-checkout",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"],"defaultAddress":["handleAddressChange"]}]]],["zonos-hello",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"getCountryList":[64],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"reset":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["zonos-component",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"ready":[32]}]]],["zonos-hello-dialog",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-shipping-rich-radio",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-input",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["zonos-card",[[1,"zonos-card",{"actions":[16],"backgroundColor":[1,"background-color"],"borderRadius":[2,"border-radius"],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-notification_3",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}],[2,"zonos-paypal-payment"],[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-banner",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-country-flag",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-v-stack",[[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-button_3",[[17,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"justifyContent":[1,"justify-content"],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-language-select_2",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}]]],["zonos-country-select_4",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[2,"zonos-virtual-scroll",{"renderItem":[16],"itemWidth":[2,"item-width"],"fallbackItemHeight":[2,"fallback-item-height"],"itemHeights":[16],"container":[32],"scrollTop":[32],"totalHeight":[32]},null,{"itemHeights":["updateTotalHeight"],"fallbackItemHeight":["updateTotalHeight"]}]]],["zonos-address_8",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_12",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32]}],[2,"zonos-checkout-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"showErrorBanner":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevels":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32]}],[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"dialogType":[1,"dialog-type"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-rest-state",{"restStateSubtitle":[1,"rest-state-subtitle"],"restStateTitle":[1,"rest-state-title"],"restStateType":[1,"rest-state-type"],"isErrorImageLoad":[32]}]]]], options);
8
+ return bootstrapLazy([["zonos-checkout",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"legacyCheckoutHiddenBtnSelector":[32],"isLegacyCheckout":[32],"confirmDialogOpen":[32],"inventoryCheckErrorMessage":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[4,"keydown","handleKeyPress"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],"mobile":["handleMobileChange"],"defaultAddress":["handleAddressChange"]}]]],["zonos-hello",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"isHelloWidgetRendered":[32],"isMobile":[32],"getCountryList":[64],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]],{"appearanceSettingsOverride":["handleAppearanceSettingsOverrideChange"]}]]],["zonos-controller",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"reset":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]},[[8,"locationchange","handleLocationChange"]]]]],["zonos-component",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"ready":[32]}]]],["zonos-hello-dialog",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-shipping-rich-radio",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"initialSelectedValue":[8,"initial-selected-value"],"selectedItem":[32]}]]],["zonos-badge_2",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-input",[[1,"zonos-input",{"inputValue":[1,"input-value"],"inputLabel":[1,"input-label"],"inputSize":[1,"input-size"],"isDisabled":[4,"is-disabled"],"isError":[4,"is-error"],"inputPlaceholder":[1,"input-placeholder"],"value":[32]},null,{"inputValue":["onInputValueChange"]}]]],["zonos-card",[[1,"zonos-card",{"actions":[16],"backgroundColor":[1,"background-color"],"borderRadius":[2,"border-radius"],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-notification_3",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}],[2,"zonos-paypal-payment"],[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-banner",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-country-flag",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-v-stack",[[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-button_3",[[17,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"withBoxShadow":[4,"with-box-shadow"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"justifyContent":[1,"justify-content"],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}]]],["zonos-language-select_2",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}]]],["zonos-country-select_4",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}],[2,"zonos-virtual-scroll",{"renderItem":[16],"itemWidth":[2,"item-width"],"fallbackItemHeight":[2,"fallback-item-height"],"itemHeights":[16],"container":[32],"scrollTop":[32],"totalHeight":[32]},null,{"itemHeights":["updateTotalHeight"],"fallbackItemHeight":["updateTotalHeight"]}]]],["zonos-address_8",[[1,"zonos-address-update-dialog",{"continueLoading":[4,"continue-loading"],"dialogLoading":[4,"dialog-loading"],"dialogOpen":[4,"dialog-open"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"shippingAddress":[16],"billingAddress":[16],"translatedShippingAddress":[16],"translatedBillingAddress":[16],"showErrorBanner":[32],"translatedShippingAddressState":[32],"translatedBillingAddressState":[32]},null,{"translatedShippingAddress":["watchTranslatedShippingAddress"],"translatedBillingAddress":["watchTranslatedBillingAddress"]}],[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]},[[1,"click","onClick"]]],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"defaultEmail":[1,"default-email"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"minHeight":[1,"min-height"],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"],[4,"keydown","handleKeyDown"]]],[1,"zonos-address-display",{"currentAddress":[16],"addressType":[1,"address-type"]}],[1,"zonos-address-form",{"currentAddress":[16],"translatedAddress":[16],"addressType":[1,"address-type"],"localAddress":[32]},null,{"translatedAddress":["watchCurrentAddress"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_12",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"isMobile":[4,"is-mobile"],"defaultAddress":[16],"showErrorBanner":[32],"shippingCountry":[32],"isCheckingForRestrictedItems":[32],"isValidatingAddress":[32],"invalidShippingCharacterList":[32],"invalidBillingCharacterList":[32],"openAddressValidationDialog":[32]}],[2,"zonos-checkout-payment",{"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"showErrorBanner":[32]}],[1,"zonos-checkout-footer",{"mobile":[4],"dataTheme":[1,"data-theme"],"showLanguageDialog":[32],"isMobile":[32]},[[4,"click","handleGlobalClick"]],{"mobile":["handleMobileChange"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"isSelecting":[32],"showErrorBanner":[32],"serviceLevels":[32]}],[1,"zonos-cart-restricted-items",{"hide":[4],"errorImages":[32],"internalCollapsed":[32],"firstRender":[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"notificationActionText":[32],"order":[32]}],[1,"zonos-confirm-dialog",{"dialogTitle":[1,"dialog-title"],"dialogIntent":[1,"dialog-intent"],"dialogSubtitle":[1,"dialog-subtitle"],"submitBtnColor":[1,"submit-btn-color"],"dialogConfirmBtnText":[1,"dialog-confirm-btn-text"],"dialogCancelBtnText":[1,"dialog-cancel-btn-text"],"dialogType":[1,"dialog-type"],"isMobile":[4,"is-mobile"],"dialogOpen":[4,"dialog-open"],"noClickOutside":[4,"no-click-outside"]},[[4,"keydown","handleKeyDown"]]],[1,"zonos-checkout-progress-tabs",{"tabColor":[1,"tab-color"],"backgroundColor":[1,"background-color"],"setTabItems":[64],"setTabSelected":[64]}],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}],[1,"zonos-rest-state",{"restStateSubtitle":[1,"rest-state-subtitle"],"restStateTitle":[1,"rest-state-title"],"restStateType":[1,"rest-state-type"],"isErrorImageLoad":[32]}]]]], options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,6 +1,6 @@
1
- import { z as zonosStore, c as createStore } from './zonosStore-8fc9ceb2.js';
2
- import { x as handleFetch, e as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, j as cartStoreClearCheckoutInterval, y as jsonParse } from './cart-e14f2366.js';
3
- import { t as tinycolor } from './isDarkColor-3119e351.js';
1
+ import { z as zonosStore, c as createStore } from './zonosStore-473f4654.js';
2
+ import { x as handleFetch, e as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, j as cartStoreClearCheckoutInterval, y as jsonParse } from './cart-51529af2.js';
3
+ import { t as tinycolor } from './isDarkColor-c927f77d.js';
4
4
  import { l as log, a as logError } from './logError-c456c092.js';
5
5
 
6
6
  /*!