@zonos/elements 1.3.164 → 1.3.166

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 (149) hide show
  1. package/dist/cjs/{cart-51536404.js → cart-dbeee1e9.js} +63 -0
  2. package/dist/cjs/index.cjs.js +7 -7
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{paypal-d15299be.js → paypal-38ab2263.js} +1 -1
  5. package/dist/cjs/{zonos-address_8.cjs.entry.js → zonos-address_7.cjs.entry.js} +20 -67
  6. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +38 -25
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +8 -5
  8. package/dist/cjs/zonos-controller.cjs.entry.js +4 -3
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-elements.cjs.js +1 -1
  12. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-stripe-input.cjs.entry.js +73 -0
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +36 -23
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +6 -3
  19. package/dist/collection/components/main/zonos-controller.js +3 -2
  20. package/dist/collection/components/store/checkout/stripe.js +1 -0
  21. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  22. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  23. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  24. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  25. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  26. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  27. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  28. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  29. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  30. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  31. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  32. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  33. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  34. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  35. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  36. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  37. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  38. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  39. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  40. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  41. package/dist/collection/components/stripe/zonos-address/zonos-address.css +3 -0
  42. package/dist/collection/components/stripe/zonos-address/zonos-address.js +19 -1
  43. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
  44. package/dist/collection/types/generated/graphql.internal.types.js +10 -0
  45. package/dist/esm/{cart-c98b72a5.js → cart-f2f5f13f.js} +63 -0
  46. package/dist/esm/index.js +7 -7
  47. package/dist/esm/loader.js +1 -1
  48. package/dist/esm/{paypal-64f0e379.js → paypal-7d253663.js} +1 -1
  49. package/dist/esm/{zonos-address_8.entry.js → zonos-address_7.entry.js} +21 -67
  50. package/dist/esm/zonos-cart-items_13.entry.js +38 -25
  51. package/dist/esm/zonos-checkout.entry.js +8 -5
  52. package/dist/esm/zonos-controller.entry.js +4 -3
  53. package/dist/esm/zonos-country-flag.entry.js +1 -1
  54. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  55. package/dist/esm/zonos-elements.js +1 -1
  56. package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
  57. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  58. package/dist/esm/zonos-hello.entry.js +1 -1
  59. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  60. package/dist/esm/zonos-stripe-input.entry.js +69 -0
  61. package/dist/esm-es5/cart-f2f5f13f.js +1 -0
  62. package/dist/esm-es5/index.js +1 -1
  63. package/dist/esm-es5/loader.js +1 -1
  64. package/dist/esm-es5/{paypal-64f0e379.js → paypal-7d253663.js} +1 -1
  65. package/dist/esm-es5/zonos-address_7.entry.js +1 -0
  66. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  67. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  68. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  69. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  70. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  71. package/dist/esm-es5/zonos-elements.js +1 -1
  72. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  73. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  74. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  75. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -0
  77. package/dist/scripts/index.d.ts +1 -0
  78. package/dist/scripts/index.js +1 -1
  79. package/dist/scripts/loadZonos.js +1 -1
  80. package/dist/scripts/zonos.js +1 -1
  81. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
  82. package/dist/types/components/store/checkout/stripe.d.ts +4 -0
  83. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  84. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  85. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  86. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  87. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  88. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  89. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  90. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  91. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  92. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  93. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  94. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  95. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  96. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  97. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  98. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  99. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  100. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  101. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  102. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  103. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -0
  104. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +2 -0
  105. package/dist/types/types/generated/graphql.internal.types.d.ts +13 -0
  106. package/dist/types/types/generated/graphql.internal.types.ts +20 -0
  107. package/dist/types/types/utils/ZonosSettings.d.ts +4 -0
  108. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  109. package/dist/zonos-elements/index.esm.js +1 -1
  110. package/dist/zonos-elements/{p-000602f9.entry.js → p-0150bb1e.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-0dfd0b45.entry.js → p-163425d9.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-582c2da5.system.entry.js → p-16413274.system.entry.js} +1 -1
  113. package/dist/zonos-elements/{p-c5ee0895.entry.js → p-20802055.entry.js} +1 -1
  114. package/dist/zonos-elements/{p-25d32c05.system.entry.js → p-25ad92dc.system.entry.js} +1 -1
  115. package/dist/zonos-elements/p-3bff5a9f.system.js +1 -0
  116. package/dist/zonos-elements/{p-054a2257.system.entry.js → p-3edccfff.system.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-d8a738ff.entry.js → p-405f70b1.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-323097dc.system.entry.js → p-41688151.system.entry.js} +1 -1
  119. package/dist/zonos-elements/p-4508c22b.entry.js +1 -0
  120. package/dist/zonos-elements/{p-b74441b2.system.entry.js → p-466de014.system.entry.js} +1 -1
  121. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
  122. package/dist/zonos-elements/{p-0376ca85.system.js → p-4a0d1e3c.system.js} +1 -1
  123. package/dist/zonos-elements/p-607a6750.entry.js +1 -0
  124. package/dist/zonos-elements/{p-32059b2a.system.entry.js → p-669a7b5d.system.entry.js} +1 -1
  125. package/dist/zonos-elements/p-68fd23f8.entry.js +1 -0
  126. package/dist/zonos-elements/{p-8d520fcc.entry.js → p-7011d8e2.entry.js} +1 -1
  127. package/dist/zonos-elements/p-718c9603.system.entry.js +1 -0
  128. package/dist/zonos-elements/{p-b8ef4465.system.entry.js → p-82a0fcb7.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-717a54c5.entry.js → p-93499c9b.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-0b05bea8.entry.js → p-ab699c84.entry.js} +1 -1
  131. package/dist/zonos-elements/p-c371558a.system.entry.js +1 -0
  132. package/dist/zonos-elements/p-c3ec1618.system.entry.js +1 -0
  133. package/dist/zonos-elements/p-c556ff98.js +1 -0
  134. package/dist/zonos-elements/{p-63c6d77e.system.entry.js → p-d0adc1b5.system.entry.js} +1 -1
  135. package/dist/zonos-elements/p-e4a52de7.entry.js +1 -0
  136. package/dist/zonos-elements/p-e97f9606.js +17 -0
  137. package/dist/zonos-elements/{p-449e5921.system.js → p-ff2e5330.system.js} +1 -1
  138. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  139. package/package.json +1 -1
  140. package/dist/esm-es5/cart-c98b72a5.js +0 -1
  141. package/dist/esm-es5/zonos-address_8.entry.js +0 -1
  142. package/dist/zonos-elements/p-1a17b3ef.js +0 -17
  143. package/dist/zonos-elements/p-41447a72.system.js +0 -1
  144. package/dist/zonos-elements/p-42d6ec3b.entry.js +0 -1
  145. package/dist/zonos-elements/p-a82b1632.entry.js +0 -1
  146. package/dist/zonos-elements/p-ae156715.js +0 -1
  147. package/dist/zonos-elements/p-c7def16c.system.entry.js +0 -1
  148. package/dist/zonos-elements/p-fab63f6b.system.entry.js +0 -1
  149. package/dist/zonos-elements/p-fb7e3be0.entry.js +0 -1
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-51536404.js');
7
- const paypal = require('./paypal-d15299be.js');
6
+ const cart = require('./cart-dbeee1e9.js');
7
+ const paypal = require('./paypal-38ab2263.js');
8
8
  const zonosStore = require('./zonosStore-7975e4b6.js');
9
9
  const handleFetch = require('./handleFetch-3673a0c2.js');
10
10
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
@@ -591,7 +591,8 @@ const ZonosCheckout = class {
591
591
  this.placedOrderInfo = null;
592
592
  // Redirect to the vendor store url if this is legacy checkout
593
593
  if (this.isLegacyCheckout) {
594
- const storeBaseUrl = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl;
594
+ const storeBaseUrl = ((_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl) ||
595
+ zonosStore.zonosStore.onlineStoreSettings.url;
595
596
  if (!storeBaseUrl) {
596
597
  return;
597
598
  }
@@ -697,7 +698,8 @@ const ZonosCheckout = class {
697
698
  cartId: window.Zonos.cartId,
698
699
  checkoutSessionBody: cart.getCheckoutSessionBody(),
699
700
  href: window.location.href,
700
- storeBaseUrl: (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl,
701
+ storeBaseUrl: ((_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl) ||
702
+ zonosStore.zonosStore.onlineStoreSettings.url,
701
703
  },
702
704
  });
703
705
  cart.cartStoreUpdateToErrorState({
@@ -1068,7 +1070,8 @@ const ZonosCheckout = class {
1068
1070
  cart.cartStoreReset();
1069
1071
  // redirect to vendor store url if this is legacy checkout.
1070
1072
  if (window.Zonos.isLegacyCheckout && window.Zonos.cartData) {
1071
- const storeBaseUrl = window.Zonos.cartData.storeBaseUrl;
1073
+ const storeBaseUrl = window.Zonos.cartData.storeBaseUrl ||
1074
+ zonosStore.zonosStore.onlineStoreSettings.url;
1072
1075
  if (window.parent) {
1073
1076
  window.parent.location.href = storeBaseUrl;
1074
1077
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-51536404.js');
6
+ const cart = require('./cart-dbeee1e9.js');
7
7
  const zonosStore = require('./zonosStore-7975e4b6.js');
8
8
  const handleFetch = require('./handleFetch-3673a0c2.js');
9
9
  require('./isDarkColor-08d92ed7.js');
@@ -307,7 +307,8 @@ const ZonosController = class {
307
307
  successBehavior: shouldOverrideSuccessBehavior
308
308
  ? 'ZONOS_SUCCESS_PAGE'
309
309
  : this.config.checkoutSettings.successBehavior, successRedirectUrl: shouldOverrideSuccessBehavior
310
- ? (_e = window.Zonos.cartData) === null || _e === void 0 ? void 0 : _e.storeBaseUrl
310
+ ? ((_e = window.Zonos.cartData) === null || _e === void 0 ? void 0 : _e.storeBaseUrl) ||
311
+ (json === null || json === void 0 ? void 0 : json.onlineStoreSettings.url)
311
312
  : this.config.checkoutSettings.successRedirectUrl
312
313
  }) : undefined });
313
314
  // load default setting if failed to load user settings
@@ -399,7 +400,7 @@ const ZonosController = class {
399
400
  zonosStore.zonosStore.organizationName = organizationName;
400
401
  }
401
402
  render() {
402
- return index.h(index.Host, { key: 'd5d6c9e8984b321893b92612620a16f3f43d81fa', class: "zonos--elements" });
403
+ return index.h(index.Host, { key: '14d142f73eae70c229b638ef298e20c9c7c5713d', class: "zonos--elements" });
403
404
  }
404
405
  };
405
406
  ZonosController.style = ZonosControllerStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-51536404.js');
6
+ const cart = require('./cart-dbeee1e9.js');
7
7
  const zonosStore = require('./zonosStore-7975e4b6.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-3673a0c2.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-51536404.js');
6
+ const cart = require('./cart-dbeee1e9.js');
7
7
  const zonosStore = require('./zonosStore-7975e4b6.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
9
  const isDarkColor = require('./isDarkColor-08d92ed7.js');
@@ -19,7 +19,7 @@ var patchBrowser = () => {
19
19
 
20
20
  patchBrowser().then(async (options) => {
21
21
  await appGlobals.globalScripts();
22
- return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"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-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-toggle.cjs\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"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-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4.cjs\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[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-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\"],\"bold\":[4],\"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.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"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_8.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-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32]},null,{\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[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\"]]],[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-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-cart-items_13.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],\"isTaxIdError\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[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],\"displayBaseCurrency\":[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],\"isWaitingToRedirect\":[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\"],\"dialogWidth\":[2,\"dialog-width\"],\"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-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
22
+ return index.bootstrapLazy(JSON.parse("[[\"zonos-checkout.cjs\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"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-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-toggle.cjs\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse.cjs\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-stripe-input.cjs\",[[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"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-text.cjs\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner.cjs\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag.cjs\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack.cjs\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4.cjs\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[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-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\"],\"bold\":[4],\"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.cjs\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"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\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[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\"]]],[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_13.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],\"isTaxIdError\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[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],\"displayBaseCurrency\":[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],\"isWaitingToRedirect\":[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\"],\"dialogWidth\":[2,\"dialog-width\"],\"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-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
23
23
  });
24
24
 
25
25
  exports.setNonce = index.setNonce;
@@ -6,9 +6,9 @@ const index = require('./index-2f90486e.js');
6
6
  const zonosStore = require('./zonosStore-7975e4b6.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-d184b623.js');
9
- const cart = require('./cart-51536404.js');
9
+ const cart = require('./cart-dbeee1e9.js');
10
10
  const handleFetch = require('./handleFetch-3673a0c2.js');
11
- const paypal = require('./paypal-d15299be.js');
11
+ const paypal = require('./paypal-38ab2263.js');
12
12
  require('./isDarkColor-08d92ed7.js');
13
13
 
14
14
  const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-51536404.js');
6
+ const cart = require('./cart-dbeee1e9.js');
7
7
  const zonosStore = require('./zonosStore-7975e4b6.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
6
  const zonosStore = require('./zonosStore-7975e4b6.js');
7
- const cart = require('./cart-51536404.js');
7
+ const cart = require('./cart-dbeee1e9.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const handleFetch = require('./handleFetch-3673a0c2.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-51536404.js');
6
+ const cart = require('./cart-dbeee1e9.js');
7
7
  const zonosStore = require('./zonosStore-7975e4b6.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
9
  require('./handleFetch-3673a0c2.js');
@@ -0,0 +1,73 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-2f90486e.js');
6
+ const zonosStore = require('./zonosStore-7975e4b6.js');
7
+ const classes = require('./classes-b7918f56.js');
8
+ const getBorderRadius = require('./getBorderRadius-d184b623.js');
9
+ const isDarkColor = require('./isDarkColor-08d92ed7.js');
10
+
11
+ const zonosStripeInputCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{--zonos--background-color:#f1f1f1;--zonos--local-glowing-color:0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 0 0 1px var(--zonos--primary-color);--zonos--border:1px solid #e8e8e8}:host(.dark){color-scheme:dark;--zonos--background-color:#30313d;--zonos--local-glowing-color:0px 2px 4px rgba(0, 0, 0, 0.5),\n 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 1px 1px 0 rgba(255, 255, 255, 0.12);--zonos--border:1px solid var(--zonos--primary-color)}:host{margin:1px;height:calc(var(--zonos-elements-size-xl) - 2px);}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos--background-color);border-radius:var(--zonos--border-radius);border:var(--zonos--border);outline-offset:0;outline-width:2px}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos--background-color);border:var(--zonos--border);-ms-flex-order:2;order:2;font-weight:400;font-size:var(--zonos--font-size)}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:24px 4px 2px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix~.zonos--floated-label label{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none;border:var(--zonos--border)}:host .zonos--floated-input:focus~.zonos--floated-label::after{-webkit-box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color))}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:0 0 0 2px #df1b41;box-shadow:0 0 0 2px #df1b41}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content~.zonos--floated-label label,:host .zonos--floated-input:focus~.zonos--floated-label label{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label label{color:var(--zonos-elements-gray-800);position:absolute;font-size:16px;line-height:16px;display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - 8px);z-index:1}:host .zonos--floated-label::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.dark) .zonos--label-wrapper{background:#30313d}";
12
+ const ZonosStripeInputStyle0 = zonosStripeInputCss;
13
+
14
+ const ZonosStripeInput = class {
15
+ constructor(hostRef) {
16
+ index.registerInstance(this, hostRef);
17
+ this.inputChange = index.createEvent(this, "inputChange", 7);
18
+ this.inputValue = '';
19
+ this.inputLabel = undefined;
20
+ this.overridePrimaryColor = undefined;
21
+ this.overrideSecondaryColor = undefined;
22
+ this.isDisabled = false;
23
+ this.isError = false;
24
+ this.inputPlaceholder = '';
25
+ this.value = '';
26
+ this.internalValue = this.inputValue;
27
+ }
28
+ onInputValueChange(newValue) {
29
+ this.internalValue = newValue;
30
+ this.inputChange.emit(newValue);
31
+ this.value = newValue;
32
+ }
33
+ onValueChange(newValue) {
34
+ this.internalValue = newValue;
35
+ }
36
+ render() {
37
+ const primaryColor = this.overridePrimaryColor || zonosStore.zonosStore.appearance.colorPrimary;
38
+ const secondaryColor = this.overrideSecondaryColor || zonosStore.zonosStore.appearance.colorSecondary;
39
+ const isDark = primaryColor && isDarkColor.isDarkColor(primaryColor);
40
+ const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
41
+ return (index.h(index.Host, { key: 'd78f2aee99ac4e6d95cf1628e058e6d3bb70e309', class: classes.classes([
42
+ 'zonos--input zonos--elements',
43
+ isDark && 'dark',
44
+ this.isError && 'has-error',
45
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: {
46
+ '--zonos--border-radius': getBorderRadius.getBorderRadius(),
47
+ '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
48
+ '--zonos--font-size': `${fontSize}px`,
49
+ '--zonos--primary-color': secondaryColor,
50
+ } }, index.h("div", { key: 'a3e7f765b0081a564c5955e387ff4b521a28d1a5', class: classes.classes([
51
+ 'zonos--label-wrapper',
52
+ this.isDisabled && 'disabled',
53
+ ]) }, index.h("input", { key: '181c5230ddeb02e9cea646b7f0a8efa3a530796e', class: classes.classes([
54
+ 'zonos--floated-input',
55
+ !!this.inputLabel && 'has-label',
56
+ this.internalValue && 'has-content',
57
+ this.isError && 'has-error',
58
+ ]), disabled: this.isDisabled, id: "zonos--input", onChange: e => {
59
+ const input = e.target;
60
+ this.inputChange.emit(input.value);
61
+ this.el.inputValue = input.value;
62
+ this.el.dispatchEvent(new Event('change'));
63
+ }, placeholder: this.inputPlaceholder, type: "text", value: this.internalValue }), index.h("div", { key: 'ac6e97971905ba130c3533da6a409de60f99ed6d', class: "zonos--floated-label" }, index.h("label", { key: '1643ab4ef5b9449332351c854f8e43db8d192164', htmlFor: "zonos--input" }, this.inputLabel)))));
64
+ }
65
+ get el() { return index.getElement(this); }
66
+ static get watchers() { return {
67
+ "inputValue": ["onInputValueChange"],
68
+ "value": ["onValueChange"]
69
+ }; }
70
+ };
71
+ ZonosStripeInput.style = ZonosStripeInputStyle0;
72
+
73
+ exports.zonos_stripe_input = ZonosStripeInput;
@@ -73,8 +73,29 @@ export class ZonosCheckoutFinish {
73
73
  this.shouldRenderCloseButtonForRedirectBehavior = () => {
74
74
  return this.isRedirectBehavior() || this.notificationType === 'error';
75
75
  };
76
+ this.redirectToMerchantSuccessPage = () => {
77
+ var _a, _b, _c, _d;
78
+ const settingsRedirectUrl = cartStore.externalConfirmationPageURL ||
79
+ zonosStore.checkoutSettings.successRedirectUrl;
80
+ const redirectUrl = settingsRedirectUrl;
81
+ const queryParams = new URLSearchParams();
82
+ const orderId = (_a = this.order) === null || _a === void 0 ? void 0 : _a.id;
83
+ const legacyOrderNumber = ((_d = (_c = (_b = this.order) === null || _b === void 0 ? void 0 : _b.references) === null || _c === void 0 ? void 0 : _c.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _d === void 0 ? void 0 : _d.value) || null;
84
+ if (orderId) {
85
+ queryParams.set('zOrderNumber', orderId);
86
+ }
87
+ if (legacyOrderNumber) {
88
+ queryParams.set('orderId', legacyOrderNumber);
89
+ }
90
+ const queryString = queryParams.toString();
91
+ const hasQueryString = redirectUrl.includes('?');
92
+ this.isWaitingToRedirect = true;
93
+ this.redirectToUrl(queryString
94
+ ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
95
+ `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
96
+ : redirectUrl);
97
+ };
76
98
  this.handleSuccessBehavior = async () => {
77
- var _a, _b;
78
99
  /**
79
100
  * Save placed order info so we can show order info if they try to place the order again
80
101
  */
@@ -84,9 +105,6 @@ export class ZonosCheckoutFinish {
84
105
  // If the merchant wants to redirect to a different page
85
106
  case successBehavior === 'REDIRECT_TO_SUCCESS_PAGE':
86
107
  case !!cartStore.externalConfirmationPageURL: {
87
- const settingsRedirectUrl = cartStore.externalConfirmationPageURL ||
88
- zonosStore.checkoutSettings.successRedirectUrl;
89
- const redirectUrl = settingsRedirectUrl;
90
108
  // use different default notification message if we are redirecting to a different page
91
109
  this.notificationTitle = translate('Order complete!');
92
110
  this.notificationMessages = [
@@ -109,20 +127,7 @@ export class ZonosCheckoutFinish {
109
127
  return;
110
128
  }
111
129
  this.isWaitingToRedirect = false;
112
- const legacyOrderNumber = ((_b = (_a = this.order.references) === null || _a === void 0 ? void 0 : _a.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _b === void 0 ? void 0 : _b.value) || null;
113
- const queryParams = new URLSearchParams();
114
- if (this.order.id) {
115
- queryParams.set('zOrderNumber', this.order.id);
116
- }
117
- if (legacyOrderNumber) {
118
- queryParams.set('orderId', legacyOrderNumber);
119
- }
120
- const queryString = queryParams.toString();
121
- const hasQueryString = redirectUrl.includes('?');
122
- this.redirectToUrl(queryString
123
- ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
124
- `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
125
- : redirectUrl);
130
+ this.redirectToMerchantSuccessPage();
126
131
  break;
127
132
  }
128
133
  case successBehavior === 'CLOSE_MODAL':
@@ -372,17 +377,25 @@ export class ZonosCheckoutFinish {
372
377
  }
373
378
  render() {
374
379
  const isTestMode = getIsTestMode();
375
- return (h(Host, { key: '83b2f5f6f12dff3ed43382c27d1ed438ba22170f', class: "zonos--checkout-finish zonos--elements", style: {
380
+ return (h(Host, { key: 'afcb0314658af4d53e7d453415dd73fb01a8f162', class: "zonos--checkout-finish zonos--elements", style: {
376
381
  '--zonos--border-radius': getBorderRadius({
377
382
  overrideBorderStyle: this.borderRadius,
378
383
  }),
379
- } }, !this.isLoading && (h("div", { key: 'caba612654a4895ba6ef43781ca21688c17e32ea', class: "zonos--finish-details" }, h("div", { key: 'd18c28b4993f28a2d509b2a9178fed7edfe5de3d', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'af4f9f2178e83d8079950ad44a6b228976e761bc', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: 'cc4934a9c86c02d00d381b1d8e3a457ebf4759e3', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: 'c0f448d9f8fc30d5757714a041b440c48ed8a972',
384
+ } }, !this.isLoading && (h("div", { key: '99b7b6c9dd0e0545d770e4d9ed54207f5c13fdfd', class: "zonos--finish-details" }, h("div", { key: '11d249514d0eef2f8419e66b1070a20e745b84fd', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'c8f52780e8ea76b5951aa4ad3dfc87c19acbfd1d', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '459d7c1a9bd6fd77cfda25e9500a89061874b58f', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: '4e34926ba96975ceff18016eb6bcad1906f1c773',
380
385
  // Only show loading spinner if it's not an error notification
381
386
  loading: this.isWaitingToRedirect &&
382
- this.notificationType !== 'error', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
383
- this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '7cd94a0b56dbe608a4c3c9d12c9f9a4fc06c5ec3', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
387
+ this.notificationType !== 'error', onClick: () => {
388
+ var _a;
389
+ // Trigger the redirect action if order is ready when user clicks the close button
390
+ if ((_a = this.order) === null || _a === void 0 ? void 0 : _a.id) {
391
+ this.redirectToMerchantSuccessPage();
392
+ return;
393
+ }
394
+ this.closeClickHandler();
395
+ }, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
396
+ this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '836907a2a325d615d897e5292f086bf9111226ae', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
384
397
  cartStore.step === 'finish' &&
385
- this.notificationType === 'success' && (h("div", { key: 'ce7b437229ae19b2a2da2521f8603271ff35af96', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '9ebb42bb862ffdf8c96c8e8d38174e149ced4d26', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '6f9257ad1b3002a373b45ab498271825aea07a00', onClick: () => {
398
+ this.notificationType === 'success' && (h("div", { key: 'ea1b4dd65f89d3eaec6391b6e440ae8ca20d5bdb', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '350ee6b7fe58ff5e7a1584989e2df13ce5d243c6', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'd3578cef9a3f6cc69fff48ee412f7010d526c284', onClick: () => {
386
399
  const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
387
400
  this.redirectToUrl(isZonosDashboard
388
401
  ? '/orders/all'
@@ -382,7 +382,8 @@ export class ZonosCheckout {
382
382
  this.placedOrderInfo = null;
383
383
  // Redirect to the vendor store url if this is legacy checkout
384
384
  if (this.isLegacyCheckout) {
385
- const storeBaseUrl = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl;
385
+ const storeBaseUrl = ((_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl) ||
386
+ zonosStore.onlineStoreSettings.url;
386
387
  if (!storeBaseUrl) {
387
388
  return;
388
389
  }
@@ -488,7 +489,8 @@ export class ZonosCheckout {
488
489
  cartId: window.Zonos.cartId,
489
490
  checkoutSessionBody: getCheckoutSessionBody(),
490
491
  href: window.location.href,
491
- storeBaseUrl: (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl,
492
+ storeBaseUrl: ((_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl) ||
493
+ zonosStore.onlineStoreSettings.url,
492
494
  },
493
495
  });
494
496
  cartStoreUpdateToErrorState({
@@ -859,7 +861,8 @@ export class ZonosCheckout {
859
861
  cartStoreReset();
860
862
  // redirect to vendor store url if this is legacy checkout.
861
863
  if (window.Zonos.isLegacyCheckout && window.Zonos.cartData) {
862
- const storeBaseUrl = window.Zonos.cartData.storeBaseUrl;
864
+ const storeBaseUrl = window.Zonos.cartData.storeBaseUrl ||
865
+ zonosStore.onlineStoreSettings.url;
863
866
  if (window.parent) {
864
867
  window.parent.location.href = storeBaseUrl;
865
868
  }
@@ -156,7 +156,8 @@ export class ZonosController {
156
156
  successBehavior: shouldOverrideSuccessBehavior
157
157
  ? 'ZONOS_SUCCESS_PAGE'
158
158
  : this.config.checkoutSettings.successBehavior, successRedirectUrl: shouldOverrideSuccessBehavior
159
- ? (_e = window.Zonos.cartData) === null || _e === void 0 ? void 0 : _e.storeBaseUrl
159
+ ? ((_e = window.Zonos.cartData) === null || _e === void 0 ? void 0 : _e.storeBaseUrl) ||
160
+ (json === null || json === void 0 ? void 0 : json.onlineStoreSettings.url)
160
161
  : this.config.checkoutSettings.successRedirectUrl
161
162
  }) : undefined });
162
163
  // load default setting if failed to load user settings
@@ -248,7 +249,7 @@ export class ZonosController {
248
249
  zonosStore.organizationName = organizationName;
249
250
  }
250
251
  render() {
251
- return h(Host, { key: 'd5d6c9e8984b321893b92612620a16f3f43d81fa', class: "zonos--elements" });
252
+ return h(Host, { key: '14d142f73eae70c229b638ef298e20c9c7c5713d', class: "zonos--elements" });
252
253
  }
253
254
  static get is() { return "zonos-controller"; }
254
255
  static get encapsulation() { return "shadow"; }
@@ -19,6 +19,7 @@ import { defaultVariable } from "../../../styles/stripe/defaultVariable";
19
19
  const { onChange, reset, state: stripeStore, } = createStore(() => ({
20
20
  checkoutSettlementCurrency: 'USD',
21
21
  clientSecret: sessionStorage.getItem('zonos--client-secret') || '',
22
+ companyName: '',
22
23
  customErrorMessage: null,
23
24
  fetchingLandedCostAbortController: null,
24
25
  hasPaymentError: false,
@@ -65,6 +65,9 @@ export const stringsArabic = {
65
65
  Close: {
66
66
  value: 'أغلق',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'اسم الشركة (اختياري)',
70
+ },
68
71
  Contact: {
69
72
  value: 'اتصل بنا',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsBase = {
65
65
  Close: {
66
66
  value: 'Close',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'Company name (optional)',
70
+ },
68
71
  Contact: {
69
72
  value: 'Contact',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsChinese = {
65
65
  Close: {
66
66
  value: '关闭',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: '公司名称(可选)',
70
+ },
68
71
  Contact: {
69
72
  value: '联系方式',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsDanish = {
65
65
  Close: {
66
66
  value: 'Lukke',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'Firmanavn (valgfrit)',
70
+ },
68
71
  Contact: {
69
72
  value: 'Kontakt',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsDutch = {
65
65
  Close: {
66
66
  value: 'Sluiten',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'Bedrijfsnaam (optioneel)',
70
+ },
68
71
  Contact: {
69
72
  value: 'Contact',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsFrench = {
65
65
  Close: {
66
66
  value: 'Fermer',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: "Nom de l'entreprise (facultatif)",
70
+ },
68
71
  Contact: {
69
72
  value: 'Contact',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsGerman = {
65
65
  Close: {
66
66
  value: 'Schließen',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'Firmenname (optional)',
70
+ },
68
71
  Contact: {
69
72
  value: 'Kontakt',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsHebrew = {
65
65
  Close: {
66
66
  value: 'סגור',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'שם החברה (אופציונלי)',
70
+ },
68
71
  Contact: {
69
72
  value: 'צור קשר',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsIndonesian = {
65
65
  Close: {
66
66
  value: 'Tutup',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'Nama perusahaan (opsional)',
70
+ },
68
71
  Contact: {
69
72
  value: 'Kontak',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsItalian = {
65
65
  Close: {
66
66
  value: 'Chiudere',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: "Nome dell'azienda (facoltativo)",
70
+ },
68
71
  Contact: {
69
72
  value: 'Contatto',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsJapanese = {
65
65
  Close: {
66
66
  value: '閉める',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: '会社名(任意)',
70
+ },
68
71
  Contact: {
69
72
  value: 'お問い合わせ',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsKorean = {
65
65
  Close: {
66
66
  value: '닫기',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: '회사 이름 (선택 사항)',
70
+ },
68
71
  Contact: {
69
72
  value: '연락처',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsNorwegian = {
65
65
  Close: {
66
66
  value: 'Lukk',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'Firmanavn (valgfritt)',
70
+ },
68
71
  Contact: {
69
72
  value: 'Kontakt',
70
73
  },
@@ -65,6 +65,9 @@ export const stringsPolish = {
65
65
  Close: {
66
66
  value: 'Zamknij',
67
67
  },
68
+ 'Company name (optional)': {
69
+ value: 'Nazwa firmy (opcjonalnie)',
70
+ },
68
71
  Contact: {
69
72
  value: 'Kontakt',
70
73
  },