@zonos/elements 1.3.128 → 1.3.130

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 (235) hide show
  1. package/dist/cjs/{CheckoutConfig-8e3cdcb3.js → CheckoutConfig-1d38a21d.js} +3 -1
  2. package/dist/cjs/{cart-3bdaf092.js → cart-d5240ba9.js} +214 -8
  3. package/dist/cjs/{getBorderRadius-61ed5601.js → getBorderRadius-f72d8edf.js} +1 -1
  4. package/dist/cjs/{handleFetch-fa0ce321.js → handleFetch-a8dfb07c.js} +1 -1
  5. package/dist/cjs/index.cjs.js +15 -9
  6. package/dist/cjs/{isDarkColor-d206c6fa.js → isDarkColor-dd6d723b.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{paypal-2f48ab8d.js → paypal-78db30b7.js} +4 -4
  9. package/dist/cjs/zonos-address_7.cjs.entry.js +5 -5
  10. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  13. package/dist/cjs/zonos-card.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +9 -12
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +86 -12
  16. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
  18. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  19. package/dist/cjs/zonos-country-select_4.cjs.entry.js +5 -5
  20. package/dist/cjs/zonos-elements.cjs.js +1 -1
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  25. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-notification_3.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-toggle.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  31. package/dist/cjs/{zonosStore-e12d459c.js → zonosStore-293bb3ba.js} +1 -0
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +3 -6
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +80 -4
  34. package/dist/collection/components/store/checkout/stripe.js +17 -2
  35. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  36. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  37. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  38. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  39. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  40. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  41. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  42. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  43. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  44. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  45. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  46. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  47. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  48. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  49. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  52. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  53. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  54. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  55. package/dist/collection/components/store/zonosStore.js +1 -0
  56. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +13 -2
  57. package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +0 -1
  58. package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
  59. package/dist/collection/scripts/_zonosBase.js +6 -0
  60. package/dist/collection/scripts/cart/_setupCartData.js +2 -0
  61. package/dist/collection/types/generated/graphql.frontend.types.js +5 -0
  62. package/dist/collection/types/generated/graphql.internal.types.js +39 -0
  63. package/dist/esm/{CheckoutConfig-101b97e6.js → CheckoutConfig-56c63bdf.js} +3 -1
  64. package/dist/esm/{cart-519f08e3.js → cart-4f1ee6dd.js} +214 -8
  65. package/dist/esm/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
  66. package/dist/esm/{handleFetch-da1a9c5d.js → handleFetch-40fc3562.js} +1 -1
  67. package/dist/esm/index.js +16 -10
  68. package/dist/esm/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
  69. package/dist/esm/loader.js +1 -1
  70. package/dist/esm/{paypal-d0a05eda.js → paypal-5b1964b6.js} +4 -4
  71. package/dist/esm/zonos-address_7.entry.js +5 -5
  72. package/dist/esm/zonos-badge.entry.js +1 -1
  73. package/dist/esm/zonos-banner.entry.js +1 -1
  74. package/dist/esm/zonos-button_3.entry.js +3 -3
  75. package/dist/esm/zonos-card.entry.js +2 -2
  76. package/dist/esm/zonos-cart-items_13.entry.js +9 -12
  77. package/dist/esm/zonos-checkout.entry.js +87 -13
  78. package/dist/esm/zonos-collapse.entry.js +1 -1
  79. package/dist/esm/zonos-controller.entry.js +5 -5
  80. package/dist/esm/zonos-country-flag.entry.js +5 -5
  81. package/dist/esm/zonos-country-select_4.entry.js +5 -5
  82. package/dist/esm/zonos-elements.js +1 -1
  83. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  84. package/dist/esm/zonos-hello.entry.js +5 -5
  85. package/dist/esm/zonos-input.entry.js +2 -2
  86. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  87. package/dist/esm/zonos-logo.entry.js +1 -1
  88. package/dist/esm/zonos-notification_3.entry.js +6 -6
  89. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  90. package/dist/esm/zonos-text.entry.js +1 -1
  91. package/dist/esm/zonos-toggle.entry.js +1 -1
  92. package/dist/esm/zonos-v-stack.entry.js +1 -1
  93. package/dist/esm/{zonosStore-6b5bd87c.js → zonosStore-c493c4fe.js} +1 -0
  94. package/dist/esm-es5/{CheckoutConfig-101b97e6.js → CheckoutConfig-56c63bdf.js} +1 -1
  95. package/dist/esm-es5/cart-4f1ee6dd.js +1 -0
  96. package/dist/esm-es5/{getBorderRadius-008516a4.js → getBorderRadius-bdd709e7.js} +1 -1
  97. package/dist/esm-es5/handleFetch-40fc3562.js +1 -0
  98. package/dist/esm-es5/index.js +1 -1
  99. package/dist/esm-es5/{isDarkColor-dc08fa26.js → isDarkColor-c6924924.js} +1 -1
  100. package/dist/esm-es5/loader.js +1 -1
  101. package/dist/esm-es5/{paypal-d0a05eda.js → paypal-5b1964b6.js} +1 -1
  102. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  103. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  104. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  105. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  106. package/dist/esm-es5/zonos-card.entry.js +1 -1
  107. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  108. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  109. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  110. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  111. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  112. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  113. package/dist/esm-es5/zonos-elements.js +1 -1
  114. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  115. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  116. package/dist/esm-es5/zonos-input.entry.js +1 -1
  117. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  118. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  119. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  120. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  121. package/dist/esm-es5/zonos-text.entry.js +1 -1
  122. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  123. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  124. package/dist/esm-es5/{zonosStore-6b5bd87c.js → zonosStore-c493c4fe.js} +1 -1
  125. package/dist/scripts/index.d.ts +13 -0
  126. package/dist/scripts/index.js +1 -1
  127. package/dist/scripts/loadZonos.js +1 -1
  128. package/dist/scripts/zonos.js +1 -1
  129. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +9 -0
  130. package/dist/types/components/store/checkout/stripe.d.ts +1 -0
  131. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  132. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  133. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  134. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  135. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  136. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  137. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  138. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  139. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  140. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  141. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  142. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  143. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  144. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  145. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  146. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  147. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  148. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  149. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  150. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  151. package/dist/types/components/store/translationStore.d.ts +1 -1
  152. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  153. package/dist/types/scripts/_zonosBase.d.ts +2 -0
  154. package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
  155. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +9 -0
  156. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +1 -0
  157. package/dist/types/types/generated/graphql.frontend.types.d.ts +24 -1
  158. package/dist/types/types/generated/graphql.frontend.types.ts +34 -1
  159. package/dist/types/types/generated/graphql.internal.types.d.ts +45 -0
  160. package/dist/types/types/generated/graphql.internal.types.ts +58 -0
  161. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  162. package/dist/zonos-elements/index.esm.js +1 -1
  163. package/dist/zonos-elements/p-0531689a.system.entry.js +1 -0
  164. package/dist/zonos-elements/{p-1e4d8228.entry.js → p-0cf44851.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-57d93236.entry.js → p-0cfab69e.entry.js} +1 -1
  166. package/dist/zonos-elements/p-0cfb97ae.js +1 -0
  167. package/dist/zonos-elements/{p-5ac777a7.system.entry.js → p-0fc96872.system.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-3dbfe639.entry.js → p-10cebad7.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-e1ce04b1.js → p-10d6fe23.js} +1 -1
  170. package/dist/zonos-elements/{p-00dc1507.system.js → p-10efff62.system.js} +1 -1
  171. package/dist/zonos-elements/{p-ea8663b7.entry.js → p-124a4a50.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-abbfde44.system.js → p-14022fab.system.js} +1 -1
  173. package/dist/zonos-elements/{p-e2cda105.system.entry.js → p-19944a13.system.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-f50f48da.entry.js → p-1a6e9eec.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-8ca3b73a.entry.js → p-1da0c1cb.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-ff0a79e6.system.entry.js → p-22458c90.system.entry.js} +1 -1
  177. package/dist/zonos-elements/p-2b29a3ac.system.js +1 -0
  178. package/dist/zonos-elements/{p-76d03238.entry.js → p-30d6e78c.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-4fee6e7f.system.entry.js → p-320e7cb9.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-0bc813a9.system.entry.js → p-3a89fb48.system.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-4cd1e79c.system.entry.js → p-3cfa90d1.system.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-8df3d5d0.system.entry.js → p-3e4b11ed.system.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-6c047faf.system.entry.js → p-3efbcf88.system.entry.js} +1 -1
  184. package/dist/zonos-elements/p-3f40806c.entry.js +1 -0
  185. package/dist/zonos-elements/{p-d9dceba1.system.js → p-40596087.system.js} +1 -1
  186. package/dist/zonos-elements/{p-c3e98be6.system.js → p-46a5ec52.system.js} +1 -1
  187. package/dist/zonos-elements/p-49fff22c.js +1 -0
  188. package/dist/zonos-elements/{p-970527fe.entry.js → p-5b90dd6d.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-0cb426b8.entry.js → p-5cd970b9.entry.js} +1 -1
  190. package/dist/zonos-elements/p-6305e92c.system.js +1 -0
  191. package/dist/zonos-elements/{p-3b5f49f6.system.entry.js → p-68cfdd01.system.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-2906956b.entry.js → p-6b00344a.entry.js} +1 -1
  193. package/dist/zonos-elements/p-6b6cd6c3.system.js +1 -0
  194. package/dist/zonos-elements/{p-2db962f9.system.entry.js → p-72c682ac.system.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-f962fc6a.system.entry.js → p-7af3b735.system.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-00ff4f4a.js → p-7d3a63c5.js} +2 -2
  197. package/dist/zonos-elements/{p-723c9d4d.entry.js → p-7fa88e0a.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-167b7fa8.system.entry.js → p-876ded0e.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-9833f37d.system.entry.js → p-87945d75.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-6de5611e.entry.js → p-92fbf9e6.entry.js} +1 -1
  201. package/dist/zonos-elements/p-942a0605.js +1 -0
  202. package/dist/zonos-elements/{p-eca920dc.system.entry.js → p-9cb6599d.system.entry.js} +1 -1
  203. package/dist/zonos-elements/p-a1c26abb.system.entry.js +1 -0
  204. package/dist/zonos-elements/{p-d6f1b6fa.system.entry.js → p-a277cde0.system.entry.js} +1 -1
  205. package/dist/zonos-elements/p-a49ac35e.entry.js +1 -0
  206. package/dist/zonos-elements/{p-bf2f9095.entry.js → p-a50ebda1.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-c562de4a.entry.js → p-bc8b22ad.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-8b3d9796.system.entry.js → p-c39dc3e9.system.entry.js} +1 -1
  209. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  210. package/dist/zonos-elements/{p-67a32cc5.js → p-d10ffd69.js} +1 -1
  211. package/dist/zonos-elements/{p-0c6a933c.entry.js → p-d963d9d4.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-5610934b.entry.js → p-db5e0d2b.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-7c7feadb.system.entry.js → p-dc09df19.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-efffbaec.entry.js → p-dc823080.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-e6fad32a.system.entry.js → p-e205ef1c.system.entry.js} +1 -1
  216. package/dist/zonos-elements/{p-6b0a8709.system.entry.js → p-e5f27005.system.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-91cfbf46.js → p-edc16f69.js} +1 -1
  218. package/dist/zonos-elements/{p-798d715c.entry.js → p-fb6cf324.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-a372a9a0.entry.js → p-fce202ab.entry.js} +1 -1
  220. package/dist/zonos-elements/p-fd05d150.system.js +1 -0
  221. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  222. package/package.json +1 -1
  223. package/dist/esm-es5/cart-519f08e3.js +0 -1
  224. package/dist/esm-es5/handleFetch-da1a9c5d.js +0 -1
  225. package/dist/zonos-elements/p-0fa85ff9.system.js +0 -1
  226. package/dist/zonos-elements/p-2402e12c.js +0 -1
  227. package/dist/zonos-elements/p-61380d53.system.entry.js +0 -1
  228. package/dist/zonos-elements/p-685e395e.entry.js +0 -1
  229. package/dist/zonos-elements/p-7769b60c.js +0 -1
  230. package/dist/zonos-elements/p-a3b195e9.js +0 -1
  231. package/dist/zonos-elements/p-a7eaa9ad.entry.js +0 -1
  232. package/dist/zonos-elements/p-bc9987f2.system.entry.js +0 -1
  233. package/dist/zonos-elements/p-c85b4e43.system.js +0 -1
  234. package/dist/zonos-elements/p-dcd4e458.system.js +0 -1
  235. package/dist/zonos-elements/p-f7d56ce5.system.js +0 -1
@@ -139,7 +139,7 @@ const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseError
139
139
  endpoint,
140
140
  errors,
141
141
  href: window.location.href,
142
- metadata: Object.assign({ userAgent: userAgentData && userAgentData.brands.length > 0
142
+ metadata: Object.assign({ domain: window.Zonos.domain, userAgent: userAgentData && userAgentData.brands.length > 0
143
143
  ? userAgentData
144
144
  : window.navigator.userAgent }, metadata),
145
145
  };
package/dist/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { l as log, a as logError } from './handleFetch-da1a9c5d.js';
2
- import { s as setupCartData, c as checkoutHiddenBtnSelector } from './CheckoutConfig-101b97e6.js';
3
- export { c as checkoutHiddenBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-101b97e6.js';
1
+ import { l as log, a as logError } from './handleFetch-40fc3562.js';
2
+ import { s as setupCartData, c as checkoutHiddenBtnSelector } from './CheckoutConfig-56c63bdf.js';
3
+ export { c as checkoutHiddenBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-56c63bdf.js';
4
4
 
5
5
  /**
6
6
  * Get the load version and url based on the loadScriptSrc and version
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
94
94
  return null;
95
95
  }
96
96
  const qaUrl = extractZonosQaUrl(window.location.href);
97
- const cdnUrl = "https://v1.3.128.js.zonos.com";
97
+ const cdnUrl = "https://v1.3.130.js.zonos.com";
98
98
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
99
99
  if (!qaUrl &&
100
100
  (cdnUrl.includes('test.') ||
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
278
278
  }
279
279
  return null;
280
280
  })();
281
- const ZONOS_URL = "https://v1.3.128.js.zonos.com";
282
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.128";
283
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.128";
284
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.128";
281
+ const ZONOS_URL = "https://v1.3.130.js.zonos.com";
282
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.130";
283
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.130";
284
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.130";
285
285
  const INTER_FONT_URL = 'https://rsms.me';
286
286
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
287
287
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -296,8 +296,14 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
296
296
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
297
297
  Zonos._paypalMockResponse = null;
298
298
  Zonos.isBigCommerce = false;
299
- Zonos.releaseDate = "1731429497368";
299
+ Zonos.releaseDate = "1732051074824";
300
300
  Zonos.isLegacyCheckout = false;
301
+ Zonos.domain = typeof window !== 'undefined'
302
+ ? // domain that embeds the iframe
303
+ (window.location != window.parent.location && document.referrer) ||
304
+ // current domain
305
+ document.location.hostname
306
+ : '';
301
307
  Zonos.showBaseForeign = typeof window !== 'undefined' &&
302
308
  window.location.search.includes('zonosShowBaseForeign');
303
309
  /**
@@ -306,7 +312,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
306
312
  Zonos.isNpm = true;
307
313
  Zonos.zonosQaUrl = null;
308
314
  Zonos.zonosQaUrlApi = null;
309
- Zonos.version = `v${"1.3.128"}`;
315
+ Zonos.version = `v${"1.3.130"}`;
310
316
  Zonos.modeAlerted = false;
311
317
  Zonos.cartData = null;
312
318
  Zonos.paypal = null;
@@ -1,4 +1,4 @@
1
- import { a as commonjsGlobal } from './zonosStore-6b5bd87c.js';
1
+ import { a as commonjsGlobal } from './zonosStore-c493c4fe.js';
2
2
 
3
3
  var tinycolor$1 = {exports: {}};
4
4
 
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[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\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge\",[[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\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-notification_3\",[[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32]},null,{\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-button_3\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[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\"],\"isEmailError\":[4,\"is-email-error\"],\"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_13\",[[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],\"isEmailError\":[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],\"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]}],[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);
8
+ return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[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\",[[1,\"zonos-hello\",{\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettingsOverride\":[16],\"showPeekMessage\":[32],\"zonosStoreHelloSettings\":[32],\"showDialog\":[32],\"peekMessage\":[32],\"initialUrl\":[32],\"allRestrictedItems\":[32],\"allFoundProducts\":[32],\"productsOnPage\":[32],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[1,\"zonos-hello-dialog\",{\"isOpen\":[4,\"is-open\"],\"setIsOpen\":[16],\"mobileLocationOverride\":[1,\"mobile-location-override\"],\"animateFromLeftOverride\":[4,\"animate-from-left-override\"],\"appearanceSettings\":[16],\"restrictedItems\":[16],\"welcomeMessage\":[32],\"showCountrySelect\":[32],\"showLanguageSelect\":[32]},[[4,\"click\",\"globalClickHandler\"]],{\"isOpen\":[\"isOpenHandler\"]}]]],[\"zonos-badge\",[[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\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-notification_3\",[[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32]},null,{\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-button_3\",[[17,\"zonos-button\",{\"buttonColor\":[1,\"button-color\"],\"backgroundColor\":[1,\"background-color\"],\"borderStyle\":[1,\"border-style\"],\"isDisabled\":[4,\"is-disabled\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"variant\":[1],\"noBackground\":[4,\"no-background\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[1,\"zonos-country-select\",{\"handleOnClose\":[16],\"inputValue\":[32]}],[1,\"zonos-hello-dialog-footer\",{\"appearanceSettings\":[16],\"setShowCountrySelect\":[16],\"setShowLanguageSelect\":[16]}],[1,\"zonos-custom-message\",{\"icon\":[1],\"message\":[1]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[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\"],\"isEmailError\":[4,\"is-email-error\"],\"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_13\",[[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],\"isEmailError\":[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],\"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]}],[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);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,7 +1,7 @@
1
- import { z as zonosStore, c as createStore } from './zonosStore-6b5bd87c.js';
2
- import { d as cartStore, w as stripeStoreHandleInventoryCheck, p as translate, v as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-519f08e3.js';
3
- import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-da1a9c5d.js';
4
- import { t as tinycolor } from './isDarkColor-dc08fa26.js';
1
+ import { z as zonosStore, c as createStore } from './zonosStore-c493c4fe.js';
2
+ import { d as cartStore, w as stripeStoreHandleInventoryCheck, p as translate, v as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-4f1ee6dd.js';
3
+ import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-40fc3562.js';
4
+ import { t as tinycolor } from './isDarkColor-c6924924.js';
5
5
 
6
6
  /*!
7
7
  * paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { j as stripeStore, S as getFallbackDefaultCountryCode, l as localizationStore, p as translate } from './cart-519f08e3.js';
2
+ import { j as stripeStore, S as getFallbackDefaultCountryCode, l as localizationStore, p as translate } from './cart-4f1ee6dd.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
- import { a as logError, l as log } from './handleFetch-da1a9c5d.js';
4
+ import { a as logError, l as log } from './handleFetch-40fc3562.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
6
- import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
6
+ import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
7
7
  import { c as classes } from './classes-0d95c529.js';
8
8
  import { R as RemoveIcon$1 } from './RemoveIcon-9dc5dd1a.js';
9
- import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
10
- import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
9
+ import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
10
+ import { i as isDarkColor } from './isDarkColor-c6924924.js';
11
11
 
12
12
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
13
13
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
 
5
5
  const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
 
5
5
  const zonosBannerCss = ":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{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
5
5
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
6
- import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
6
+ import { i as isDarkColor } from './isDarkColor-c6924924.js';
7
7
  import { s as styles } from './styles-6fc2fad9.js';
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
5
5
 
6
6
  const zonosCardCss = ":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
7
7
  const ZonosCardStyle0 = zonosCardCss;
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
2
- import { d as cartStore, H as currencyFormat, p as translate, I as cartStoreHasOneEligibleItem, J as stripeStoreApplyPromoCode, K as stripeStoreRemovePromoCode, z as stripeStoreReset, j as stripeStore, L as stripeStoreRetrievePayment, t as trackConversionEvent, M as stripeStoreResetPromoCode, N as stripeStoreMessageBasedOnStatus, l as localizationStore, O as stripeStoreTranslateAddressToLatin, P as cartStoreUpdateSelectedShippingOption, Q as cartStoreGetShippingTransitInfo, R as sortServiceLevelOptionsByAmount } from './cart-519f08e3.js';
2
+ import { d as cartStore, H as currencyFormat, p as translate, I as cartStoreHasOneEligibleItem, J as stripeStoreApplyPromoCode, K as stripeStoreRemovePromoCode, z as stripeStoreReset, j as stripeStore, L as stripeStoreRetrievePayment, t as trackConversionEvent, M as stripeStoreResetPromoCode, N as stripeStoreMessageBasedOnStatus, l as localizationStore, O as stripeStoreTranslateAddressToLatin, P as cartStoreUpdateSelectedShippingOption, Q as cartStoreGetShippingTransitInfo, R as sortServiceLevelOptionsByAmount } from './cart-4f1ee6dd.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-d0a05eda.js';
5
- import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
4
+ import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-5b1964b6.js';
5
+ import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
6
6
  import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
7
- import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
8
- import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, b as allLogs } from './handleFetch-da1a9c5d.js';
7
+ import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
8
+ import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, b as allLogs } from './handleFetch-40fc3562.js';
9
9
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
10
10
  import { l as languages } from './ILanguage-cd6acb72.js';
11
- import { i as isDarkColor, t as tinycolor } from './isDarkColor-dc08fa26.js';
11
+ import { i as isDarkColor, t as tinycolor } from './isDarkColor-c6924924.js';
12
12
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
13
13
  import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
14
14
 
@@ -1385,7 +1385,6 @@ const ZonosCheckoutFinish = class {
1385
1385
  metadata: {
1386
1386
  allLogs,
1387
1387
  checkoutSessionId: cartStore.checkoutSessionId || '',
1388
- domain: window.location.hostname,
1389
1388
  orderId: order.id,
1390
1389
  storeId: zonosStore.storeId,
1391
1390
  },
@@ -1400,7 +1399,6 @@ const ZonosCheckoutFinish = class {
1400
1399
  metadata: {
1401
1400
  allLogs,
1402
1401
  checkoutSessionId: cartStore.checkoutSessionId || '',
1403
- domain: window.location.hostname,
1404
1402
  orderId: order.id,
1405
1403
  storeId: zonosStore.storeId,
1406
1404
  },
@@ -1420,7 +1418,6 @@ const ZonosCheckoutFinish = class {
1420
1418
  metadata: {
1421
1419
  allLogs,
1422
1420
  checkoutSessionId: cartStore.checkoutSessionId || '',
1423
- domain: window.location.hostname,
1424
1421
  storeId: zonosStore.storeId,
1425
1422
  },
1426
1423
  });
@@ -1562,12 +1559,12 @@ const ZonosCheckoutFinish = class {
1562
1559
  }
1563
1560
  render() {
1564
1561
  const isTestMode = getIsTestMode();
1565
- return (h(Host, { key: 'e9e088880a1b13f821dfdb7804b2e27efae5298c', class: "zonos--checkout-finish zonos--elements", style: {
1562
+ return (h(Host, { key: '09ad6462aeafdfa1be8b0f0e34159aa74934b85c', class: "zonos--checkout-finish zonos--elements", style: {
1566
1563
  '--zonos--border-radius': getBorderRadius({
1567
1564
  overrideBorderStyle: this.borderRadius,
1568
1565
  }),
1569
- } }, !this.isLoading && (h("div", { key: 'a1ec6900c645aedfd4f4662fa5251b5b9adebadf', class: "zonos--finish-details" }, h("div", { key: '6e08efc67a101ca4af34c67d853709d1f4f0f436', 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: '049e7cbaef783b113daaf449b842bb27e1cd9fd4', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '9ff5e5794bd0762341ef27cfca03bb52829c3463', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), !window.Zonos.isLegacyCheckout &&
1570
- this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '0546063749a2b2c96762488e03507bfa31643b33', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'ef75fac530f2a3cf69ccd28c2d48f93771b8459e', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '5e8dd1c3e34c1e97b14e9f6225817005b79bd679', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '40c1c75fb3afae2c20ce8b018285f5cc21abbb96', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1566
+ } }, !this.isLoading && (h("div", { key: '81df3ec5804d346938cd0052232446500805e5dd', class: "zonos--finish-details" }, h("div", { key: '49f0b91cd04f2f6e1291de3c542cec6ed1f3c0a9', 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: '398e803727b65d2dd7da40bb37e25702f69009d6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '75ee45470ceca25057259916c76dd227f62b7276', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), !window.Zonos.isLegacyCheckout &&
1567
+ this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'cd792a9dd314e291d0957e0859e3b0e088cf1767', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'b54c583f058c23b2b5001179acac0c98780b1ded', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '2405f70c3143725d51d6f6a5e5a440350aeb9b80', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'c977d79e45170cce70695006de1274ef7cc39df4', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1571
1568
  }
1572
1569
  static get assetsDirs() { return ["assets"]; }
1573
1570
  };
@@ -1,15 +1,15 @@
1
1
  import { r as registerInstance, h, H as Host, F as Fragment } from './index-86b8247e.js';
2
- import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as translate, q as getZCountryUrlParam, r as cartStoreSetCheckoutSession, u as stripeStorePrefetchLandedCost, v as cartStoreNextStep, w as stripeStoreHandleInventoryCheck, x as stripeStoreConfirmPayment, y as stripeStoreHandleInventoryRefund, z as stripeStoreReset, A as localizationStoreOnUpdate } from './cart-519f08e3.js';
3
- import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-d0a05eda.js';
4
- import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-6b5bd87c.js';
5
- import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs, j as jsonParse } from './handleFetch-da1a9c5d.js';
6
- import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
2
+ import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as translate, q as getZCountryUrlParam, r as cartStoreSetCheckoutSession, u as stripeStorePrefetchLandedCost, v as cartStoreNextStep, w as stripeStoreHandleInventoryCheck, x as stripeStoreConfirmPayment, y as stripeStoreHandleInventoryRefund, z as stripeStoreReset, A as localizationStoreOnUpdate } from './cart-4f1ee6dd.js';
3
+ import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-5b1964b6.js';
4
+ import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-c493c4fe.js';
5
+ import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs, j as jsonParse } from './handleFetch-40fc3562.js';
6
+ import { g as getIsTestMode, c as createCustomEvent } from './createCustomEvent-31a792d3.js';
7
7
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
8
8
  import { c as classes } from './classes-0d95c529.js';
9
- import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
10
- import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
9
+ import { g as getBorderRadius } from './getBorderRadius-bdd709e7.js';
10
+ import { i as isDarkColor } from './isDarkColor-c6924924.js';
11
11
  import { s as styles } from './styles-6fc2fad9.js';
12
- import { s as setupCartData, d as domesticRedirectedBtnSelector, c as checkoutHiddenBtnSelector } from './CheckoutConfig-101b97e6.js';
12
+ import { s as setupCartData, d as domesticRedirectedBtnSelector, c as checkoutHiddenBtnSelector } from './CheckoutConfig-56c63bdf.js';
13
13
  import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
14
14
 
15
15
  /**
@@ -151,7 +151,6 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
151
151
  JSON.stringify(Object.entries(shippingAddress)),
152
152
  ],
153
153
  metadata: {
154
- domain: window.location.hostname,
155
154
  storeId: zonosStore.storeId,
156
155
  },
157
156
  });
@@ -264,6 +263,34 @@ const ZonosCheckout = class {
264
263
  paypalEnabled: paypalStoreHasPaypalEnabled(),
265
264
  });
266
265
  };
266
+ /**
267
+ * Check if the cart is expired, return `true` if the cart is expired
268
+ */
269
+ this.handleCartExpiredCheck = () => {
270
+ var _a;
271
+ // don't check for cart expiration if the cart is in test mode
272
+ if (getIsTestMode()) {
273
+ log('Not checking for cart expiration in test mode');
274
+ return false;
275
+ }
276
+ // Do nothing if no cart data or cart expiration is not set
277
+ if (!zonosStore.checkoutSettings.cartExpiration ||
278
+ !((_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.createdAt)) {
279
+ return false;
280
+ }
281
+ const cartCreatedAt = new Date(window.Zonos.cartData.createdAt).getTime();
282
+ const currentTime = new Date().getTime();
283
+ const timeDiff = currentTime - cartCreatedAt;
284
+ const timeDiffInMinutes = Math.floor(timeDiff / 60000);
285
+ log(`Cart has been created for ${timeDiffInMinutes} minutes`);
286
+ if (zonosStore.checkoutSettings.cartExpiration) {
287
+ if (timeDiffInMinutes > zonosStore.checkoutSettings.cartExpiration) {
288
+ this.isCartExpired = true;
289
+ return true;
290
+ }
291
+ }
292
+ return false;
293
+ };
267
294
  this.formatDate = (timestamp) => {
268
295
  if (!timestamp) {
269
296
  return '';
@@ -308,6 +335,7 @@ const ZonosCheckout = class {
308
335
  this.storybookPaymentStatusOverride = undefined;
309
336
  this.isLegacyCheckout = window.Zonos.isLegacyCheckout;
310
337
  this.confirmDialogOpen = false;
338
+ this.isCartExpired = false;
311
339
  this.inventoryCheckErrorMessage = null;
312
340
  this.placedOrderInfo = null;
313
341
  }
@@ -363,6 +391,11 @@ const ZonosCheckout = class {
363
391
  // if tempCartUUID is provided, use it instead of buildCartDetail
364
392
  if (window.Zonos.cartData) {
365
393
  log('tempCartUUID is provided, start building cart');
394
+ const isExpired = this.handleCartExpiredCheck();
395
+ if (isExpired) {
396
+ // Do not proceed if the cart is expired
397
+ return;
398
+ }
366
399
  const { adjustments, cartItems } = buildCartItemsByTempCart(window.Zonos.cartData);
367
400
  await cartStoreUpdateItems({ adjustments, cartItems });
368
401
  }
@@ -377,6 +410,12 @@ const ZonosCheckout = class {
377
410
  logError('Failed to build cart, please try again.');
378
411
  return;
379
412
  }
413
+ window.Zonos.cartData = cartData;
414
+ const isExpired = this.handleCartExpiredCheck();
415
+ if (isExpired) {
416
+ // Do not proceed if the cart is expired
417
+ return;
418
+ }
380
419
  const { adjustments, cartItems } = buildCartItemsByTempCart(cartData);
381
420
  await cartStoreUpdateItems({ adjustments, cartItems });
382
421
  }
@@ -502,6 +541,9 @@ const ZonosCheckout = class {
502
541
  try {
503
542
  // buildCartDetail may throw an error
504
543
  const result = await this.buildCartAndInit();
544
+ if (this.isCartExpired) {
545
+ throw new Error('This shopping cart is expired');
546
+ }
505
547
  if (!result) {
506
548
  throw new Error('Error building cart');
507
549
  }
@@ -524,6 +566,9 @@ const ZonosCheckout = class {
524
566
  // stop loading
525
567
  stripeStore.isFetchingSession = false;
526
568
  logError(err);
569
+ if (this.isCartExpired) {
570
+ return;
571
+ }
527
572
  // We want to log the error anytime we fail to create a checkout session
528
573
  void sendErrorLog({
529
574
  endpoint: 'Error creating Checkout',
@@ -600,12 +645,12 @@ const ZonosCheckout = class {
600
645
  const postal_code = getParam('customerZip') || '';
601
646
  const state = getParam('customerState') || '';
602
647
  /**
603
- * If one of the value is null, no need to preset the default address
648
+ * If one of the value is null, no need to preset the default address.
649
+ * City and state are optional (they are not always provided for example Puerto Rico)
604
650
  **/
605
- if (!line1 || (!city && !state) || !name || !phone || !country) {
651
+ if (!line1 || !name || !phone || !country) {
606
652
  log('Missing required query params so it can not be prefilled', 'info', [
607
653
  !line1 && 'line1',
608
- !city && 'city',
609
654
  !name && 'name',
610
655
  !phone && 'phone',
611
656
  !country && 'country',
@@ -747,6 +792,29 @@ const ZonosCheckout = class {
747
792
  void this.closeDialogHandler({ confirmed: true });
748
793
  }
749
794
  }
795
+ handleCartExpiredDialogConfirm() {
796
+ var _a;
797
+ this.isCartExpired = false;
798
+ // Redirect to the vendor store url if this is legacy checkout
799
+ if (this.isLegacyCheckout) {
800
+ const storeBaseUrl = (_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.storeBaseUrl;
801
+ if (!storeBaseUrl) {
802
+ return;
803
+ }
804
+ if (window.parent) {
805
+ window.parent.location.href = storeBaseUrl;
806
+ }
807
+ window.location.href = storeBaseUrl;
808
+ return;
809
+ }
810
+ /**
811
+ * For normal integration, the checkout modal opens on top of merchant site. Therefore, should reload the page when cart is expired so whole page can be reloaded and merchant cart might also be reset.
812
+ **/
813
+ if (window.parent) {
814
+ window.parent.location.href = window.location.href;
815
+ }
816
+ window.location.reload();
817
+ }
750
818
  async handleStripePaymentContinue() {
751
819
  // reset error state
752
820
  stripeStore.hasPaymentError = false;
@@ -970,7 +1038,13 @@ const ZonosCheckout = class {
970
1038
  // If dialog is in open state, the message should not be null
971
1039
  dialogSubtitle: cartStore.inventoryCheckErrorMessage, dialogTitle: translate("Couldn't place order"), dialogType: "alert",
972
1040
  // Mark user selected confirm to close the dialog
973
- onConfirmClicked: () => this.handleInventoryCheckDialogConfirm() })));
1041
+ onConfirmClicked: () => this.handleInventoryCheckDialogConfirm() }), h("zonos-confirm-dialog", { class: "zonos--shopping-cart-expired-dialog", dialogConfirmBtnText: translate('OK'), dialogIntent: "danger",
1042
+ // Show dialog if inventory check error message is not null
1043
+ dialogOpen: this.isCartExpired,
1044
+ // If dialog is in open state, the message should not be null
1045
+ dialogSubtitle: translate('You are being sent back to the shop to re-add items to your cart.'), dialogTitle: translate('Shopping cart expired'), dialogType: "alert",
1046
+ // Mark user selected confirm to close the dialog
1047
+ onConfirmClicked: () => this.handleCartExpiredDialogConfirm() })));
974
1048
  }
975
1049
  static get assetsDirs() { return ["assets"]; }
976
1050
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
3
3
 
4
4
  const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
5
5
  const ZonosCollapseStyle0 = zonosCollapseCss;
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
2
- import { B as isValidSelector, j as stripeStore, C as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-519f08e3.js';
3
- import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
4
- import { h as handleFetch, a as logError, l as log } from './handleFetch-da1a9c5d.js';
5
- import './isDarkColor-dc08fa26.js';
6
- import './getBorderRadius-008516a4.js';
2
+ import { B as isValidSelector, j as stripeStore, C as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-4f1ee6dd.js';
3
+ import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
4
+ import { h as handleFetch, a as logError, l as log } from './handleFetch-40fc3562.js';
5
+ import './isDarkColor-c6924924.js';
6
+ import './getBorderRadius-bdd709e7.js';
7
7
 
8
8
  const getZonosSettings = async () => {
9
9
  const { errors, json, zonosMode } = await handleFetch('/api/zonos-elements/zonos-settings');
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { l as localizationStore } from './cart-519f08e3.js';
3
- import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { l as localizationStore } from './cart-4f1ee6dd.js';
3
+ import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
- import './handleFetch-da1a9c5d.js';
6
- import './isDarkColor-dc08fa26.js';
7
- import './getBorderRadius-008516a4.js';
5
+ import './handleFetch-40fc3562.js';
6
+ import './isDarkColor-c6924924.js';
7
+ import './getBorderRadius-bdd709e7.js';
8
8
 
9
9
  const zonosCountryFlagCss = ":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{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
10
10
  const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
@@ -1,11 +1,11 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { a as localizationStoreUpdateSelectedCountryCode, p as translate, l as localizationStore } from './cart-519f08e3.js';
3
- import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, p as translate, l as localizationStore } from './cart-4f1ee6dd.js';
3
+ import { d as zonosStoreFontFamily } from './zonosStore-c493c4fe.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
- import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
5
+ import { i as isDarkColor } from './isDarkColor-c6924924.js';
6
6
  import { l as languages } from './ILanguage-cd6acb72.js';
7
- import './handleFetch-da1a9c5d.js';
8
- import './getBorderRadius-008516a4.js';
7
+ import './handleFetch-40fc3562.js';
8
+ import './getBorderRadius-bdd709e7.js';
9
9
 
10
10
  /**
11
11
  * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)