@zonos/elements 1.3.92 → 1.3.94

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 (111) hide show
  1. package/dist/cjs/{CheckoutConfig-850071ae.js → CheckoutConfig-8e8a0d1c.js} +1 -1
  2. package/dist/cjs/{cart-d456e0b8.js → cart-9d0ced11.js} +13 -4
  3. package/dist/cjs/{createCustomEvent-94c259c7.js → createCustomEvent-f6317809.js} +2 -2
  4. package/dist/cjs/{handleFetch-45e76490.js → handleFetch-5a16f2bc.js} +1 -1
  5. package/dist/cjs/index.cjs.js +9 -9
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-5c5f8d32.js → paypal-a6ddcfaf.js} +2 -2
  8. package/dist/cjs/zonos-address_7.cjs.entry.js +2 -2
  9. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +50 -32
  11. package/dist/cjs/zonos-checkout.cjs.entry.js +42 -39
  12. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-country-select_4.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-elements.cjs.js +1 -1
  16. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  17. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-notification_3.cjs.entry.js +3 -3
  20. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +6 -2
  21. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +37 -34
  22. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +42 -27
  23. package/dist/collection/components/common/zonos-badge/zonos-badge.js +1 -1
  24. package/dist/collection/components/store/checkout/cart.js +6 -1
  25. package/dist/collection/components/store/checkout/stripe.js +6 -2
  26. package/dist/collection/components/utils/logging/log.js +1 -1
  27. package/dist/esm/{CheckoutConfig-c0ec120d.js → CheckoutConfig-c54d23b8.js} +1 -1
  28. package/dist/esm/{cart-1083aa3b.js → cart-ef2e2eec.js} +13 -4
  29. package/dist/esm/{createCustomEvent-a45228e7.js → createCustomEvent-73760da0.js} +2 -2
  30. package/dist/esm/{handleFetch-0133265e.js → handleFetch-ce924688.js} +1 -1
  31. package/dist/esm/index.js +10 -10
  32. package/dist/esm/loader.js +1 -1
  33. package/dist/esm/{paypal-a2399ed3.js → paypal-cce03d02.js} +2 -2
  34. package/dist/esm/zonos-address_7.entry.js +2 -2
  35. package/dist/esm/zonos-badge.entry.js +1 -1
  36. package/dist/esm/zonos-cart-items_12.entry.js +50 -32
  37. package/dist/esm/zonos-checkout.entry.js +42 -39
  38. package/dist/esm/zonos-controller.entry.js +2 -2
  39. package/dist/esm/zonos-country-flag.entry.js +2 -2
  40. package/dist/esm/zonos-country-select_4.entry.js +2 -2
  41. package/dist/esm/zonos-elements.js +1 -1
  42. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  43. package/dist/esm/zonos-hello.entry.js +2 -2
  44. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  45. package/dist/esm/zonos-notification_3.entry.js +3 -3
  46. package/dist/esm-es5/{CheckoutConfig-c0ec120d.js → CheckoutConfig-c54d23b8.js} +1 -1
  47. package/dist/esm-es5/{cart-1083aa3b.js → cart-ef2e2eec.js} +1 -1
  48. package/dist/esm-es5/createCustomEvent-73760da0.js +1 -0
  49. package/dist/esm-es5/index.js +1 -1
  50. package/dist/esm-es5/loader.js +1 -1
  51. package/dist/esm-es5/{paypal-a2399ed3.js → paypal-cce03d02.js} +1 -1
  52. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  53. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  54. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  55. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  56. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  57. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  58. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  59. package/dist/esm-es5/zonos-elements.js +1 -1
  60. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  61. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  62. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  63. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  64. package/dist/scripts/index.js +1 -1
  65. package/dist/scripts/loadZonos.js +1 -1
  66. package/dist/scripts/zonos.js +1 -1
  67. package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +3 -0
  68. package/dist/zonos-elements/index.esm.js +1 -1
  69. package/dist/zonos-elements/{p-95b4ea5e.js → p-021c2035.js} +1 -1
  70. package/dist/zonos-elements/p-05172564.entry.js +1 -0
  71. package/dist/zonos-elements/p-0523da29.entry.js +1 -0
  72. package/dist/zonos-elements/{p-340408f2.system.entry.js → p-205d1fd0.system.entry.js} +1 -1
  73. package/dist/zonos-elements/{p-1a92ff9a.system.entry.js → p-207b73ad.system.entry.js} +1 -1
  74. package/dist/zonos-elements/{p-dbe8a5de.entry.js → p-3242242f.entry.js} +1 -1
  75. package/dist/zonos-elements/{p-8aad6abd.system.js → p-332ccd38.system.js} +1 -1
  76. package/dist/zonos-elements/{p-f13738a1.entry.js → p-36050826.entry.js} +1 -1
  77. package/dist/zonos-elements/p-40528519.system.entry.js +1 -0
  78. package/dist/zonos-elements/{p-ba0aef88.system.entry.js → p-517444c0.system.entry.js} +1 -1
  79. package/dist/zonos-elements/p-52542b33.system.js +1 -0
  80. package/dist/zonos-elements/{p-7995965e.entry.js → p-52b7a342.entry.js} +1 -1
  81. package/dist/zonos-elements/{p-3d6a7efd.entry.js → p-55534ab4.entry.js} +1 -1
  82. package/dist/zonos-elements/{p-1560ee37.entry.js → p-6037f297.entry.js} +1 -1
  83. package/dist/zonos-elements/{p-57aa09e7.system.js → p-606e0443.system.js} +1 -1
  84. package/dist/zonos-elements/p-609209fe.entry.js +1 -0
  85. package/dist/zonos-elements/{p-e8c3387c.system.entry.js → p-61c43b0c.system.entry.js} +1 -1
  86. package/dist/zonos-elements/{p-362bd7de.js → p-7141699d.js} +1 -1
  87. package/dist/zonos-elements/{p-d8a3b001.system.entry.js → p-832535b5.system.entry.js} +1 -1
  88. package/dist/zonos-elements/{p-b8e85bf5.js → p-9a13b43f.js} +1 -1
  89. package/dist/zonos-elements/{p-b53f9c25.system.js → p-a6aea068.system.js} +1 -1
  90. package/dist/zonos-elements/{p-8e4348e9.entry.js → p-a8fb9ec4.entry.js} +1 -1
  91. package/dist/zonos-elements/{p-4e3d23ad.system.entry.js → p-a92ea268.system.entry.js} +1 -1
  92. package/dist/zonos-elements/{p-8dc1342e.js → p-ad8b87ec.js} +1 -1
  93. package/dist/zonos-elements/{p-c39c3ed6.entry.js → p-c6950e78.entry.js} +1 -1
  94. package/dist/zonos-elements/{p-52fdf52d.system.entry.js → p-c6f848d6.system.entry.js} +1 -1
  95. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  96. package/dist/zonos-elements/{p-cf28a962.entry.js → p-c990f553.entry.js} +1 -1
  97. package/dist/zonos-elements/{p-1f1aaf73.system.entry.js → p-d42d729b.system.entry.js} +1 -1
  98. package/dist/zonos-elements/{p-460cc134.system.entry.js → p-d8c3540c.system.entry.js} +1 -1
  99. package/dist/zonos-elements/{p-ded2ae47.system.entry.js → p-dbc57aea.system.entry.js} +1 -1
  100. package/dist/zonos-elements/{p-4854c65b.system.js → p-e3432dca.system.js} +1 -1
  101. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  102. package/package.json +1 -1
  103. package/dist/esm-es5/createCustomEvent-a45228e7.js +0 -1
  104. package/dist/zonos-elements/p-2d2ff962.entry.js +0 -1
  105. package/dist/zonos-elements/p-403b3460.entry.js +0 -1
  106. package/dist/zonos-elements/p-8c0ff373.system.js +0 -1
  107. package/dist/zonos-elements/p-e9ee2062.entry.js +0 -1
  108. package/dist/zonos-elements/p-ed276123.system.entry.js +0 -1
  109. /package/dist/esm-es5/{handleFetch-0133265e.js → handleFetch-ce924688.js} +0 -0
  110. /package/dist/zonos-elements/{p-197c5707.system.js → p-480556ea.system.js} +0 -0
  111. /package/dist/zonos-elements/{p-ad7ce197.js → p-539cc913.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const handleFetch = require('./handleFetch-45e76490.js');
3
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
4
4
 
5
5
  const getTempCartById = async (cartId) => {
6
6
  const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/get-temp-cart', {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-a4395972.js');
4
- const handleFetch = require('./handleFetch-45e76490.js');
4
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
5
5
  const isDarkColor = require('./isDarkColor-5efc8367.js');
6
6
  const getBorderRadius = require('./getBorderRadius-5a64574c.js');
7
7
 
@@ -9486,8 +9486,12 @@ const stripeStoreConfirmPayment = async () => {
9486
9486
  const stripeStoreInitCheckoutSession = async () => {
9487
9487
  var _a, _b;
9488
9488
  const total = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
9489
- if (!total || !localizationStore.targetCurrency) {
9490
- handleFetch.logError('Failed to create checkout session - invalid total or currency');
9489
+ if (!localizationStore.targetCurrency) {
9490
+ handleFetch.logError(`Failed to create checkout session - missing localizationStore.targetCurrency`);
9491
+ return false;
9492
+ }
9493
+ if (!total) {
9494
+ handleFetch.logError(`Failed to create checkout session - missing total amount of items`);
9491
9495
  return false;
9492
9496
  }
9493
9497
  stripeStore.isFetchingSession = true;
@@ -9865,13 +9869,18 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
9865
9869
  presentmentCountryCode: localizationStore.selectedCountryCode,
9866
9870
  });
9867
9871
  if (errors.length > 0 || !json) {
9868
- // do nothing if we can't get checkout session
9869
9872
  handleFetch.logError('Error occurs when updating checkout session.');
9870
9873
  if (shouldInitSessionOnFailure) {
9871
9874
  handleFetch.log('Initiating checkout session on failure', 'info');
9872
9875
  const success = await stripeStoreInitCheckoutSession();
9873
9876
  handleFetch.log(`stripeStoreInitCheckoutSession: ${success}`);
9874
9877
  if (!success) {
9878
+ cartStoreUpdateToErrorState({
9879
+ messages: [
9880
+ translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
9881
+ ],
9882
+ title: translate('Error creating Checkout'),
9883
+ });
9875
9884
  return false;
9876
9885
  }
9877
9886
  return true;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-d456e0b8.js');
3
+ const cart = require('./cart-9d0ced11.js');
4
4
  const zonosStore = require('./zonosStore-a4395972.js');
5
- const handleFetch = require('./handleFetch-45e76490.js');
5
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
6
6
 
7
7
  const trackConversionEvent = async (eventName, metadata) => {
8
8
  var _a, _b;
@@ -55,7 +55,7 @@ const log = (message, type, ..._additionalInfo) => {
55
55
  loggingIframe.style.visibility = 'hidden';
56
56
  document.body.appendChild(loggingIframe);
57
57
  }
58
- // use the logging iframe's console to log just in case the console is disabled (overriden) by the site owner
58
+ // use the logging iframe's console to log just in case the console is disabled (overridden) by the site owner
59
59
  const zConsole = ((_b = loggingIframe.contentWindow) === null || _b === void 0 ? void 0 : _b.window.console) || window.console;
60
60
  switch (type) {
61
61
  case 'warn':
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const handleFetch = require('./handleFetch-45e76490.js');
6
- const CheckoutConfig = require('./CheckoutConfig-850071ae.js');
5
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
6
+ const CheckoutConfig = require('./CheckoutConfig-8e8a0d1c.js');
7
7
 
8
8
  /**
9
9
  * Get the load version and url based on the loadScriptSrc and version
@@ -97,7 +97,7 @@ const getZonosQaUrl = () => {
97
97
  return null;
98
98
  }
99
99
  const qaUrl = extractZonosQaUrl(window.location.href);
100
- const cdnUrl = "https://v1.3.92.js.zonos.com";
100
+ const cdnUrl = "https://v1.3.94.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.92.js.zonos.com";
285
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.92";
286
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.92";
287
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.92";
284
+ const ZONOS_URL = "https://v1.3.94.js.zonos.com";
285
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.94";
286
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.94";
287
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.94";
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 = "1728934623320";
302
+ Zonos.releaseDate = "1729004720094";
303
303
  Zonos.isLegacyCheckout = false;
304
304
  /**
305
305
  * By default, the package will load from npm
@@ -307,7 +307,7 @@ Zonos.isLegacyCheckout = false;
307
307
  Zonos.isNpm = true;
308
308
  Zonos.zonosQaUrl = null;
309
309
  Zonos.zonosQaUrlApi = null;
310
- Zonos.version = `v${"1.3.92"}`;
310
+ Zonos.version = `v${"1.3.94"}`;
311
311
  Zonos.modeAlerted = false;
312
312
  Zonos.cartData = null;
313
313
  Zonos.paypal = null;
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[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],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"]}]]],[\"zonos-hello.cjs\",[[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.cjs\",[[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-tooltip.cjs\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component.cjs\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link.cjs\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo.cjs\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-card.cjs\",[[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-input.cjs\",[[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-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-language-select_2.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-hello-dialog.cjs\",[[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-badge.cjs\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio.cjs\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-notification_3.cjs\",[[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-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-button_3.cjs\",[[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-country-select_4.cjs\",[[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_7.cjs\",[[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\"]}]]],[\"zonos-cart-items_12.cjs\",[[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],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[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);
11
+ return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[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],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"]}]]],[\"zonos-hello.cjs\",[[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.cjs\",[[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-tooltip.cjs\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component.cjs\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link.cjs\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo.cjs\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-card.cjs\",[[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-input.cjs\",[[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-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-language-select_2.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-hello-dialog.cjs\",[[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-badge.cjs\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio.cjs\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-notification_3.cjs\",[[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-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-button_3.cjs\",[[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-country-select_4.cjs\",[[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_7.cjs\",[[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\"]}]]],[\"zonos-cart-items_12.cjs\",[[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],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[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);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-a4395972.js');
4
- const cart = require('./cart-d456e0b8.js');
5
- const handleFetch = require('./handleFetch-45e76490.js');
4
+ const cart = require('./cart-9d0ced11.js');
5
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
6
6
  const isDarkColor = require('./isDarkColor-5efc8367.js');
7
7
 
8
8
  /*!
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d456e0b8.js');
6
+ const cart = require('./cart-9d0ced11.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
- const handleFetch = require('./handleFetch-45e76490.js');
8
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
10
10
  const zonosStore = require('./zonosStore-a4395972.js');
11
11
  const classes = require('./classes-b7918f56.js');
@@ -36,7 +36,7 @@ const ZonosBadge = class {
36
36
  this.iconRight && 'icon-right',
37
37
  this.size,
38
38
  this.bold && 'bold',
39
- ]) }, this.icon, index.h("zonos-text", { key: '92eeb162849c9036bb102012e14fb6476b34b411', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: '3a52067262d1ba34eb5952dc2f2eaeeb1daa624c' })), this.dismissHandler && (index.h("zonos-icon", { key: '7bb94d2b2204c81e7c21e31fe2769de2e0f0c19b', "aria-label": "Remove promo code", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
39
+ ]) }, this.icon, index.h("zonos-text", { key: '92eeb162849c9036bb102012e14fb6476b34b411', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: '3a52067262d1ba34eb5952dc2f2eaeeb1daa624c' })), this.dismissHandler && (index.h("zonos-icon", { key: '0f942d51c02d0b830c5d60c0bc9f4f9c64a67a8a', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
40
40
  }
41
41
  };
42
42
  ZonosBadge.style = ZonosBadgeStyle0;
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d456e0b8.js');
6
+ const cart = require('./cart-9d0ced11.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-5c5f8d32.js');
8
+ const paypal = require('./paypal-a6ddcfaf.js');
9
9
  const zonosStore = require('./zonosStore-a4395972.js');
10
- const createCustomEvent = require('./createCustomEvent-94c259c7.js');
10
+ const createCustomEvent = require('./createCustomEvent-f6317809.js');
11
11
  const getBorderRadius = require('./getBorderRadius-5a64574c.js');
12
- const handleFetch = require('./handleFetch-45e76490.js');
12
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
13
13
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
14
14
  const ILanguage = require('./ILanguage-98b04442.js');
15
15
  const isDarkColor = require('./isDarkColor-5efc8367.js');
@@ -1189,10 +1189,14 @@ const ZonosCartSubtotal = class {
1189
1189
  amount: cart.cartStore.shipping,
1190
1190
  currency: cart.cartStore.currency,
1191
1191
  })
1192
- : '-')), showDutyTaxesInfo && (index.h("tr", { class: "zonos--row zonos--cart-duties" }, index.h("td", { class: "zonos--column" }), renderLandedCost())), cart.cartStore.step !== 'customer-info' && (index.h("tr", { class: "zonos--row zonos--cart-promo-code" }, index.h("td", { class: "zonos--column" }), !!appliedPromoCode ? (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-promo-code-col" }, this.loading ? (index.h("zonos-spinner", { size: 16 })) : (index.h("zonos-badge", { dismissHandler: () => removePromoCode() }, cart.cartStore.promoCode))), index.h("td", { class: "zonos--column zonos--cart-promo-code-col" }))) : (index.h("td", { class: "zonos--column zonos--cart-promo-code-col", colSpan: 2 }, index.h("div", { class: "zonos--cart-promo-code-input-wrapper" }, index.h("zonos-input", { class: "zonos--cart-promo-code-input", inputLabel: cart.translate('Add promotional code'), inputValue: cart.cartStore.promoCode, isError: cart.cartStore.promoCodeError, onInputChange: e => (cart.cartStore.promoCode = e.detail.trim()) }), index.h("zonos-button", { loading: this.loading, onClick: () => applyPromoCode(), variant: "primary" }, cart.translate('Apply'))))))), !!cart.cartStore.adjustmentTotal && (index.h("tr", { class: "zonos--row zonos--cart-duties" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("div", { class: "zonos--title-with-icon" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.translate('Discounts')))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, cart.currencyFormat({
1192
+ : '-')), showDutyTaxesInfo && (index.h("tr", { class: "zonos--row zonos--cart-duties" }, index.h("td", { class: "zonos--column" }), renderLandedCost())), cart.cartStore.step !== 'customer-info' && (index.h("tr", { class: "zonos--row zonos--cart-promo-code" }, index.h("td", { class: "zonos--column" }), !!appliedPromoCode ? (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-promo-code-col" }, this.loading ? (index.h("zonos-spinner", { size: 16 })) : (index.h("zonos-badge", { dismissHandler: () => removePromoCode() }, cart.cartStore.promoCode))), index.h("td", { class: "zonos--column zonos--cart-promo-code-col" }))) : (index.h("td", { class: "zonos--column zonos--cart-promo-code-col", colSpan: 2 }, index.h("div", { class: "zonos--cart-promo-code-input-wrapper" }, index.h("zonos-input", { class: "zonos--cart-promo-code-input", inputLabel: cart.translate('Add promotional code'), inputValue: cart.cartStore.promoCode, isError: cart.cartStore.promoCodeError, onInputChange: e => (cart.cartStore.promoCode = e.detail.trim()), onKeyDown: e => {
1193
+ if (e.key === 'Enter') {
1194
+ void applyPromoCode();
1195
+ }
1196
+ } }), index.h("zonos-button", { loading: this.loading, onClick: () => applyPromoCode(), variant: "primary" }, cart.translate('Apply'))))))), !!cart.cartStore.adjustmentTotal && (index.h("tr", { class: "zonos--row zonos--cart-discount" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("div", { class: "zonos--title-with-icon" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.translate('Discounts')))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, cart.currencyFormat({
1193
1197
  amount: cart.cartStore.adjustmentTotal,
1194
1198
  currency: cart.cartStore.currency,
1195
- }))))), index.h("tr", { class: "zonos--row zonos--cart-pay-total" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.translate('Order total'))), index.h("td", { class: "zonos--column" }, index.h("zonos-text", { type: "semiBoldLabel" }, cart.currencyFormat({
1199
+ }))))), index.h("tr", { class: "zonos--row zonos--cart-pay-total" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.translate('Order total'))), index.h("td", { class: "zonos--column zonos--cart-total-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, cart.currencyFormat({
1196
1200
  amount: total,
1197
1201
  currency: cart.cartStore.currency,
1198
1202
  })))))));
@@ -2123,6 +2127,17 @@ const ZonosShipping = class {
2123
2127
  this.handleValidate = () => {
2124
2128
  return !!this.selectedShippingMethod;
2125
2129
  };
2130
+ this.isOutdatedShippingData = () => {
2131
+ var _a;
2132
+ const hasInvalidData = !!((_a = cart.cartStore.shippingData) === null || _a === void 0 ? void 0 : _a.some(landedCost => {
2133
+ var _a;
2134
+ const matchedLandedCost = (_a = this.serviceLevelsAll) === null || _a === void 0 ? void 0 : _a.find(x => x.shipmentRatingId === landedCost.id);
2135
+ if (!matchedLandedCost) {
2136
+ return true;
2137
+ }
2138
+ }));
2139
+ return hasInvalidData;
2140
+ };
2126
2141
  /**
2127
2142
  * handler for continue button click
2128
2143
  */
@@ -2183,6 +2198,11 @@ const ZonosShipping = class {
2183
2198
  this.serviceLevelsDAP = cart.sortServiceLevelOptionsByAmount(serviceLevelsDAP);
2184
2199
  this.serviceLevelsOther =
2185
2200
  cart.sortServiceLevelOptionsByAmount(serviceLevelsOther);
2201
+ this.serviceLevelsAll = [
2202
+ ...this.serviceLevelsDDP,
2203
+ ...this.serviceLevelsDAP,
2204
+ ...this.serviceLevelsOther,
2205
+ ];
2186
2206
  const defaultShownServiceLevels = [
2187
2207
  ...this.serviceLevelsDDP,
2188
2208
  ...this.serviceLevelsOther,
@@ -2192,6 +2212,22 @@ const ZonosShipping = class {
2192
2212
  this.collapsedDAPOptions = false;
2193
2213
  }
2194
2214
  };
2215
+ this.preselectFirstShippingMethod = () => {
2216
+ this.initServiceLevels();
2217
+ const selectedServiceLevel = this.serviceLevelsAll.find(item => { var _a; return item.shipmentRatingId === ((_a = cart.cartStore.selectedShippingOption) === null || _a === void 0 ? void 0 : _a.id); }) || null;
2218
+ if (selectedServiceLevel) {
2219
+ // keep the selected shipping method
2220
+ this.selectedShippingMethod = selectedServiceLevel;
2221
+ return;
2222
+ }
2223
+ const firstServiceLevel = this.serviceLevelsAll.find(Boolean);
2224
+ if (firstServiceLevel) {
2225
+ // preselect the first shipping method
2226
+ void this.handleRadioSelected({
2227
+ detail: firstServiceLevel,
2228
+ });
2229
+ }
2230
+ };
2195
2231
  this.continueLoading = false;
2196
2232
  this.submitBtnColor = undefined;
2197
2233
  this.submitBtnType = undefined;
@@ -2202,34 +2238,16 @@ const ZonosShipping = class {
2202
2238
  this.serviceLevelsDDP = [];
2203
2239
  this.serviceLevelsDAP = [];
2204
2240
  this.serviceLevelsOther = [];
2241
+ this.serviceLevelsAll = [];
2205
2242
  }
2206
2243
  componentWillLoad() {
2207
- this.initServiceLevels();
2208
- const allServiceLevels = [
2209
- ...this.serviceLevelsDDP,
2210
- ...this.serviceLevelsDAP,
2211
- ...this.serviceLevelsOther,
2212
- ];
2213
- const selectedServiceLevel = allServiceLevels.find(item => { var _a; return item.shipmentRatingId === ((_a = cart.cartStore.selectedShippingOption) === null || _a === void 0 ? void 0 : _a.id); }) || null;
2214
- if (selectedServiceLevel) {
2215
- // keep the selected shipping method
2216
- this.selectedShippingMethod = selectedServiceLevel;
2217
- return;
2218
- }
2219
- const firstServiceLevel = allServiceLevels.find(Boolean);
2220
- if (firstServiceLevel) {
2221
- // preselect the first shipping method
2222
- void this.handleRadioSelected({
2223
- detail: firstServiceLevel,
2224
- });
2225
- }
2244
+ this.preselectFirstShippingMethod();
2226
2245
  }
2227
2246
  render() {
2228
- const allServiceLevels = [
2229
- ...this.serviceLevelsDDP,
2230
- ...this.serviceLevelsDAP,
2231
- ...this.serviceLevelsOther,
2232
- ];
2247
+ if (this.isOutdatedShippingData()) {
2248
+ // re-init service levels if the shipping data is outdated (promo code applied)
2249
+ this.preselectFirstShippingMethod();
2250
+ }
2233
2251
  const defaultShownServiceLevels = [
2234
2252
  ...this.serviceLevelsDDP,
2235
2253
  ...this.serviceLevelsOther,
@@ -2238,13 +2256,13 @@ const ZonosShipping = class {
2238
2256
  if (this.showErrorBanner) {
2239
2257
  this.showErrorBanner = !this.handleValidate();
2240
2258
  }
2241
- return (index.h(index.Host, { key: '9c866cd1545c3a695b449113a8dbe40560e5fe26', class: "zonos--shipping zonos--elements" }, index.h("div", { key: '7d683e7d7b2c3e25758240ac2299eac06b7f4a51', class: "zonos--group" }, index.h("zonos-text", { key: '5710e5185b2628e7793e59251073fdd8cb8cfd2e', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!allServiceLevels.length && (index.h("zonos-banner", { key: 'afdd98898cb3305d90bfe06832a0b9f672183b47', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: '07543d3f7aec9494311d3cdb38306661d5789f4a', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !allServiceLevels.length ? (index.h("zonos-banner", { bannerTitle: cart.translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2259
+ return (index.h(index.Host, { key: '0c895b18d357ef8eabe669c08abb04a7875c4a3b', class: "zonos--shipping zonos--elements" }, index.h("div", { key: 'aafe4e7717db89817ba05faecbde40264c664877', class: "zonos--group" }, index.h("zonos-text", { key: '4a9aa32cef9e0579e51c621de75554ba4f1f045c', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: '2e0c46959285fbc6119a432f93839048e297b1cb', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: 'ca9d17180a9503f4cd1eaad0c8d2a525b62a0cfd', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2242
2260
  !!this.serviceLevelsDAP.length && (index.h("button", { class: classes.classes([
2243
2261
  'zonos--shipping-options-collapse-trigger',
2244
2262
  this.collapsedDAPOptions && 'collapsed',
2245
2263
  ]), onClick: () => {
2246
2264
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
2247
- } }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: '7dc61c1435b40731463279f5824b60cf67e1470d', class: "zonos--group-btn" }, index.h("zonos-button", { key: 'eea4d432ad5cfb7001fcd0c7b795b2ee3ebbbac5', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2265
+ } }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: '389883f40d9b184b7476de15c5f8350ff982e084', class: "zonos--group-btn" }, index.h("zonos-button", { key: '4d100db1ba55e74051e427c716881e0e73b69bbd', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2248
2266
  // use primary type when on mobile mode
2249
2267
  variant: this.submitBtnType }, cart.translate('Go to payment'))))));
2250
2268
  }
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d456e0b8.js');
7
- const paypal = require('./paypal-5c5f8d32.js');
6
+ const cart = require('./cart-9d0ced11.js');
7
+ const paypal = require('./paypal-a6ddcfaf.js');
8
8
  const zonosStore = require('./zonosStore-a4395972.js');
9
- const createCustomEvent = require('./createCustomEvent-94c259c7.js');
9
+ const createCustomEvent = require('./createCustomEvent-f6317809.js');
10
10
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
11
- const handleFetch = require('./handleFetch-45e76490.js');
11
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
12
12
  const classes = require('./classes-b7918f56.js');
13
13
  const getBorderRadius = require('./getBorderRadius-5a64574c.js');
14
14
  const isDarkColor = require('./isDarkColor-5efc8367.js');
15
- const CheckoutConfig = require('./CheckoutConfig-850071ae.js');
15
+ const CheckoutConfig = require('./CheckoutConfig-8e8a0d1c.js');
16
16
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
17
17
 
18
18
  /**
@@ -380,12 +380,6 @@ const ZonosCheckout = class {
380
380
  catch (err) {
381
381
  // stop loading
382
382
  cart.stripeStore.isFetchingSession = false;
383
- cart.cartStoreUpdateToErrorState({
384
- messages: [
385
- cart.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
386
- ],
387
- title: cart.translate('Error creating Checkout'),
388
- });
389
383
  // We want to log the error anytime we fail to create a checkout session
390
384
  void handleFetch.sendErrorLog({
391
385
  endpoint: 'Error creating Checkout',
@@ -397,6 +391,12 @@ const ZonosCheckout = class {
397
391
  storeBaseUrl: (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl,
398
392
  },
399
393
  });
394
+ cart.cartStoreUpdateToErrorState({
395
+ messages: [
396
+ cart.translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists"),
397
+ ],
398
+ title: cart.translate('Error creating Checkout'),
399
+ });
400
400
  }
401
401
  }, {
402
402
  // Trigger this event before any other event
@@ -435,6 +435,7 @@ const ZonosCheckout = class {
435
435
  */
436
436
  useLegacyQueryParams() {
437
437
  const urlParams = new URLSearchParams(window.location.search);
438
+ handleFetch.log('legacy urlParams', 'info', Object.fromEntries(urlParams.entries()));
438
439
  const getParam = (param) => {
439
440
  const value = urlParams.get(param);
440
441
  if (!value || value === 'undefined') {
@@ -442,40 +443,42 @@ const ZonosCheckout = class {
442
443
  }
443
444
  return value;
444
445
  };
445
- const legacyShippingInfo = {
446
- country:
447
- // fallback to selected country code if country is not provided
448
- cart.getZCountryUrlParam(urlParams) || cart.localizationStore.selectedCountryCode,
449
- customerAddress1: getParam('customerAddress1'),
450
- customerAddress2: getParam('customerAddress2'),
451
- customerCity: getParam('customerCity'),
452
- customerEmail: getParam('customerEmail'),
453
- customerName: getParam('customerName'),
454
- customerPhone: getParam('customerPhone'),
455
- customerState: getParam('customerState'),
456
- customerZip: getParam('customerZip'),
457
- };
446
+ const country =
447
+ // fallback to selected country code if country is not provided
448
+ cart.getZCountryUrlParam(urlParams) || cart.localizationStore.selectedCountryCode;
449
+ const city = getParam('customerCity');
450
+ const email = getParam('customerEmail') || '';
451
+ const line1 = getParam('customerAddress1');
452
+ const line2 = getParam('customerAddress2') || '';
453
+ const name = getParam('customerName');
454
+ const phone = getParam('customerPhone');
455
+ const postal_code = getParam('customerZip') || '';
456
+ const state = getParam('customerState') || '';
458
457
  // if one of the value is null, no need to preset the default address
459
- if (!legacyShippingInfo.customerAddress1 ||
460
- !legacyShippingInfo.customerCity ||
461
- !legacyShippingInfo.customerName ||
462
- !legacyShippingInfo.customerPhone ||
463
- !legacyShippingInfo.country) {
464
- handleFetch.log('Missing some query params so it can not be prefilled', 'info', legacyShippingInfo);
458
+ if (!line1 || !city || !name || !phone || !country) {
459
+ handleFetch.log('Missing required query params so it can not be prefilled', 'info', [
460
+ !line1 && 'line1',
461
+ !city && 'city',
462
+ !name && 'name',
463
+ !phone && 'phone',
464
+ !country && 'country',
465
+ ]
466
+ .filter(Boolean)
467
+ .join(', '));
465
468
  return;
466
469
  }
467
470
  this.defaultAddress = {
468
471
  address: {
469
- city: legacyShippingInfo.customerCity,
470
- country: legacyShippingInfo.country,
471
- line1: legacyShippingInfo.customerAddress1,
472
- line2: legacyShippingInfo.customerAddress2 || '',
473
- postal_code: legacyShippingInfo.customerZip || '',
474
- state: legacyShippingInfo.customerState || '',
472
+ city,
473
+ country,
474
+ line1,
475
+ line2,
476
+ postal_code,
477
+ state,
475
478
  },
476
- email: legacyShippingInfo.customerEmail || '',
477
- name: legacyShippingInfo.customerName,
478
- phone: legacyShippingInfo.customerPhone,
479
+ email,
480
+ name,
481
+ phone,
479
482
  };
480
483
  }
481
484
  /**
@@ -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-d456e0b8.js');
6
+ const cart = require('./cart-9d0ced11.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
- const handleFetch = require('./handleFetch-45e76490.js');
8
+ const handleFetch = require('./handleFetch-5a16f2bc.js');
9
9
  require('./isDarkColor-5efc8367.js');
10
10
  require('./getBorderRadius-5a64574c.js');
11
11
 
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d456e0b8.js');
6
+ const cart = require('./cart-9d0ced11.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
- require('./handleFetch-45e76490.js');
9
+ require('./handleFetch-5a16f2bc.js');
10
10
  require('./isDarkColor-5efc8367.js');
11
11
  require('./getBorderRadius-5a64574c.js');
12
12
 
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d456e0b8.js');
6
+ const cart = require('./cart-9d0ced11.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
9
  const isDarkColor = require('./isDarkColor-5efc8367.js');
10
10
  const ILanguage = require('./ILanguage-98b04442.js');
11
- require('./handleFetch-45e76490.js');
11
+ require('./handleFetch-5a16f2bc.js');
12
12
  require('./getBorderRadius-5a64574c.js');
13
13
 
14
14
  /**