@zonos/elements 1.3.152 → 1.3.155

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 (154) hide show
  1. package/dist/cjs/{cart-0ce9e90b.js → cart-79deb872.js} +3 -3
  2. package/dist/cjs/{getBorderRadius-7d0772bf.js → getBorderRadius-d3032bda.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{isDarkColor-2acf30d1.js → isDarkColor-9f6c3601.js} +1 -1
  5. package/dist/cjs/{paypal-d4d0bb3c.js → paypal-e79ca280.js} +3 -3
  6. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  7. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  10. package/dist/cjs/zonos-card.cjs.entry.js +2 -2
  11. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +5 -5
  12. package/dist/cjs/zonos-checkout.cjs.entry.js +10 -10
  13. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
  15. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +5 -5
  18. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  20. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-toggle.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  27. package/dist/cjs/{zonosStore-46809186.js → zonosStore-0b1d27df.js} +1 -1
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +5 -5
  29. package/dist/collection/components/main/zonos-controller.js +3 -3
  30. package/dist/collection/components/store/zonosStore.js +1 -1
  31. package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
  32. package/dist/collection/types/generated/graphql.internal.types.js +85 -5
  33. package/dist/esm/{cart-eadc7067.js → cart-aee97bf4.js} +3 -3
  34. package/dist/esm/{getBorderRadius-b32d4218.js → getBorderRadius-9e3ea1de.js} +1 -1
  35. package/dist/esm/index.js +7 -7
  36. package/dist/esm/{isDarkColor-10f38df6.js → isDarkColor-95f3ef90.js} +1 -1
  37. package/dist/esm/{paypal-897e2b5c.js → paypal-4ed46f2f.js} +3 -3
  38. package/dist/esm/zonos-address_8.entry.js +4 -4
  39. package/dist/esm/zonos-badge.entry.js +1 -1
  40. package/dist/esm/zonos-banner.entry.js +1 -1
  41. package/dist/esm/zonos-button_3.entry.js +3 -3
  42. package/dist/esm/zonos-card.entry.js +2 -2
  43. package/dist/esm/zonos-cart-items_13.entry.js +5 -5
  44. package/dist/esm/zonos-checkout.entry.js +10 -10
  45. package/dist/esm/zonos-collapse.entry.js +1 -1
  46. package/dist/esm/zonos-controller.entry.js +7 -7
  47. package/dist/esm/zonos-country-flag.entry.js +4 -4
  48. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  49. package/dist/esm/zonos-empty-state-payment_4.entry.js +5 -5
  50. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  51. package/dist/esm/zonos-hello.entry.js +4 -4
  52. package/dist/esm/zonos-input.entry.js +2 -2
  53. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  54. package/dist/esm/zonos-logo.entry.js +1 -1
  55. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  56. package/dist/esm/zonos-text.entry.js +1 -1
  57. package/dist/esm/zonos-toggle.entry.js +1 -1
  58. package/dist/esm/zonos-v-stack.entry.js +1 -1
  59. package/dist/esm/{zonosStore-44efd080.js → zonosStore-82bb17e6.js} +1 -1
  60. package/dist/esm-es5/{cart-eadc7067.js → cart-aee97bf4.js} +1 -1
  61. package/dist/esm-es5/{getBorderRadius-b32d4218.js → getBorderRadius-9e3ea1de.js} +1 -1
  62. package/dist/esm-es5/index.js +1 -1
  63. package/dist/esm-es5/{isDarkColor-10f38df6.js → isDarkColor-95f3ef90.js} +1 -1
  64. package/dist/esm-es5/{paypal-897e2b5c.js → paypal-4ed46f2f.js} +1 -1
  65. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  66. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  67. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  68. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  69. package/dist/esm-es5/zonos-card.entry.js +1 -1
  70. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  71. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  72. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  73. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  74. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  75. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  76. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  77. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  78. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  79. package/dist/esm-es5/zonos-input.entry.js +1 -1
  80. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  81. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  82. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  83. package/dist/esm-es5/zonos-text.entry.js +1 -1
  84. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  85. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  86. package/dist/esm-es5/{zonosStore-44efd080.js → zonosStore-82bb17e6.js} +1 -1
  87. package/dist/scripts/index.d.ts +5 -3
  88. package/dist/scripts/index.js +1 -1
  89. package/dist/scripts/loadZonos.js +1 -1
  90. package/dist/scripts/zonos.js +1 -1
  91. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -3
  92. package/dist/types/types/generated/graphql.frontend.types.d.ts +2 -0
  93. package/dist/types/types/generated/graphql.frontend.types.ts +2 -0
  94. package/dist/types/types/generated/graphql.internal.types.d.ts +114 -14
  95. package/dist/types/types/generated/graphql.internal.types.ts +141 -18
  96. package/dist/zonos-elements/index.esm.js +1 -1
  97. package/dist/zonos-elements/{p-b5c360af.entry.js → p-0160281f.entry.js} +1 -1
  98. package/dist/zonos-elements/{p-709c7e9e.entry.js → p-1262ad56.entry.js} +1 -1
  99. package/dist/zonos-elements/p-130a047c.entry.js +1 -0
  100. package/dist/zonos-elements/{p-b12fbc07.entry.js → p-13579dba.entry.js} +1 -1
  101. package/dist/zonos-elements/{p-92c36f24.system.js → p-228b64ed.system.js} +1 -1
  102. package/dist/zonos-elements/{p-28a516f8.system.js → p-2297c165.system.js} +1 -1
  103. package/dist/zonos-elements/{p-65dda2b5.system.entry.js → p-28c3f736.system.entry.js} +1 -1
  104. package/dist/zonos-elements/{p-3a213429.system.entry.js → p-2c45f733.system.entry.js} +1 -1
  105. package/dist/zonos-elements/{p-fc4ebe6b.system.entry.js → p-30852c16.system.entry.js} +1 -1
  106. package/dist/zonos-elements/{p-3aa4841a.system.entry.js → p-38967d3a.system.entry.js} +1 -1
  107. package/dist/zonos-elements/{p-11063d30.system.entry.js → p-3a3a2f51.system.entry.js} +1 -1
  108. package/dist/zonos-elements/{p-aaecde60.system.entry.js → p-3cbac6c3.system.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-8a4c6a42.js → p-43b922bf.js} +1 -1
  110. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
  111. package/dist/zonos-elements/{p-04e53a0f.entry.js → p-4bbf8931.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-5784a0fc.system.entry.js → p-4e141e50.system.entry.js} +1 -1
  113. package/dist/zonos-elements/{p-3e3e7800.entry.js → p-4f5ff940.entry.js} +1 -1
  114. package/dist/zonos-elements/{p-c015be06.system.js → p-532afee0.system.js} +1 -1
  115. package/dist/zonos-elements/{p-c36f823b.js → p-5b6c5d04.js} +2 -2
  116. package/dist/zonos-elements/{p-b6bbdb59.system.entry.js → p-5e867a64.system.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-41e26cc4.system.entry.js → p-5f761f09.system.entry.js} +1 -1
  118. package/dist/zonos-elements/{p-d642f149.system.entry.js → p-673d24f9.system.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-cdfca133.entry.js → p-683d1598.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-86e825f0.system.entry.js → p-6d7dc2a2.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-9cf018c8.system.entry.js → p-7448f4a6.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-619c07c6.system.entry.js → p-75311708.system.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-8cb90d9e.entry.js → p-75b44616.entry.js} +1 -1
  124. package/dist/zonos-elements/{p-7c7f0c32.entry.js → p-77026d4a.entry.js} +1 -1
  125. package/dist/zonos-elements/{p-b2292b70.system.entry.js → p-78ea3d1e.system.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-c94d82fb.entry.js → p-7fe8c97d.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-d2f2c685.entry.js → p-822600bd.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-dec30fa4.entry.js → p-84b2efef.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-949f1418.system.entry.js → p-84f71520.system.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-e02fd9ae.js → p-86da894d.js} +1 -1
  131. package/dist/zonos-elements/{p-0028d158.entry.js → p-88fc9989.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-12546668.system.js → p-972261dc.system.js} +1 -1
  133. package/dist/zonos-elements/{p-ee871492.system.entry.js → p-9c845327.system.entry.js} +1 -1
  134. package/dist/zonos-elements/{p-6c578d26.js → p-9fcf4d8c.js} +1 -1
  135. package/dist/zonos-elements/{p-7140439f.system.entry.js → p-b4d04d26.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-3e20fb8f.entry.js → p-baa22bb3.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-eb192fa3.system.js → p-bba01622.system.js} +1 -1
  138. package/dist/zonos-elements/{p-7f288336.entry.js → p-bd1a2003.entry.js} +1 -1
  139. package/dist/zonos-elements/{p-3ea350e8.entry.js → p-c071a4ca.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-b0616716.js → p-c285d20c.js} +1 -1
  141. package/dist/zonos-elements/{p-05013308.entry.js → p-c8fa08b8.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-91fc6c24.system.entry.js → p-c901ef48.system.entry.js} +1 -1
  143. package/dist/zonos-elements/p-d1a57d82.system.entry.js +1 -0
  144. package/dist/zonos-elements/{p-57d31762.system.entry.js → p-d3a452d4.system.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-cbd5d932.entry.js → p-d3be144d.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-b288c2ed.entry.js → p-da404f8f.entry.js} +1 -1
  147. package/dist/zonos-elements/{p-36f97fd9.entry.js → p-e1e17979.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-5d9c5413.entry.js → p-e47ed595.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-8fe71612.system.entry.js → p-eefadc0d.system.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-32912caf.system.js → p-fb2a884f.system.js} +1 -1
  151. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  152. package/package.json +1 -1
  153. package/dist/zonos-elements/p-764e5c78.entry.js +0 -1
  154. package/dist/zonos-elements/p-b1d2f586.system.entry.js +0 -1
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-46809186.js');
3
+ const zonosStore = require('./zonosStore-0b1d27df.js');
4
4
  const handleFetch = require('./handleFetch-3673a0c2.js');
5
- const isDarkColor = require('./isDarkColor-2acf30d1.js');
6
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
5
+ const isDarkColor = require('./isDarkColor-9f6c3601.js');
6
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
7
7
 
8
8
  const stringsArabic = {
9
9
  ' (Duties due at door)': {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-46809186.js');
3
+ const zonosStore = require('./zonosStore-0b1d27df.js');
4
4
 
5
5
  /**
6
6
  * Get the border radius for the elements based on the style
@@ -129,7 +129,7 @@ const getZonosQaUrl = () => {
129
129
  return null;
130
130
  }
131
131
  const qaUrl = extractZonosQaUrl(window.location.href);
132
- const cdnUrl = "https://v1.3.152.js.zonos.com";
132
+ const cdnUrl = "https://v1.3.155.js.zonos.com";
133
133
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
134
134
  if (!qaUrl &&
135
135
  (cdnUrl.includes('test.') ||
@@ -313,10 +313,10 @@ const zonosLoadUrl = (() => {
313
313
  }
314
314
  return null;
315
315
  })();
316
- const ZONOS_URL = "https://v1.3.152.js.zonos.com";
317
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.152";
318
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.152";
319
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.152";
316
+ const ZONOS_URL = "https://v1.3.155.js.zonos.com";
317
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.155";
318
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.155";
319
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.155";
320
320
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
321
321
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
322
322
  class Zonos {
@@ -330,7 +330,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
330
330
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
331
331
  Zonos._paypalMockResponse = null;
332
332
  Zonos.isBigCommerce = false;
333
- Zonos.releaseDate = "1737742301571";
333
+ Zonos.releaseDate = "1738253701676";
334
334
  Zonos.isLegacyCheckout = false;
335
335
  Zonos.domain = typeof window !== 'undefined'
336
336
  ? // domain that embeds the iframe
@@ -346,7 +346,7 @@ Zonos.showBaseForeign = typeof window !== 'undefined' &&
346
346
  Zonos.isNpm = true;
347
347
  Zonos.zonosQaUrl = null;
348
348
  Zonos.zonosQaUrlApi = null;
349
- Zonos.version = `v${"1.3.152"}`;
349
+ Zonos.version = `v${"1.3.155"}`;
350
350
  Zonos.modeAlerted = false;
351
351
  Zonos.cartData = null;
352
352
  Zonos.paypal = null;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-46809186.js');
3
+ const zonosStore = require('./zonosStore-0b1d27df.js');
4
4
 
5
5
  var tinycolor$1 = {exports: {}};
6
6
 
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-46809186.js');
4
- const cart = require('./cart-0ce9e90b.js');
3
+ const zonosStore = require('./zonosStore-0b1d27df.js');
4
+ const cart = require('./cart-79deb872.js');
5
5
  const handleFetch = require('./handleFetch-3673a0c2.js');
6
- const isDarkColor = require('./isDarkColor-2acf30d1.js');
6
+ const isDarkColor = require('./isDarkColor-9f6c3601.js');
7
7
 
8
8
  /*!
9
9
  * paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-0ce9e90b.js');
6
+ const cart = require('./cart-79deb872.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const handleFetch = require('./handleFetch-3673a0c2.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
10
- const zonosStore = require('./zonosStore-46809186.js');
10
+ const zonosStore = require('./zonosStore-0b1d27df.js');
11
11
  const classes = require('./classes-b7918f56.js');
12
12
  const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
13
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
14
- const isDarkColor = require('./isDarkColor-2acf30d1.js');
13
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
14
+ const isDarkColor = require('./isDarkColor-9f6c3601.js');
15
15
 
16
16
  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}";
17
17
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" 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 zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  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)}";
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
8
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
9
9
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
10
- const isDarkColor = require('./isDarkColor-2acf30d1.js');
10
+ const isDarkColor = require('./isDarkColor-9f6c3601.js');
11
11
  const styles = require('./styles-d1e64fb9.js');
12
12
 
13
13
  /**
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
8
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
9
9
 
10
10
  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)}";
11
11
  const ZonosCardStyle0 = zonosCardCss;
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-0ce9e90b.js');
6
+ const cart = require('./cart-79deb872.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-d4d0bb3c.js');
9
- const zonosStore = require('./zonosStore-46809186.js');
8
+ const paypal = require('./paypal-e79ca280.js');
9
+ const zonosStore = require('./zonosStore-0b1d27df.js');
10
10
  const handleFetch = require('./handleFetch-3673a0c2.js');
11
11
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
12
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
12
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
13
13
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
14
14
  const ILanguage = require('./ILanguage-98b04442.js');
15
- const isDarkColor = require('./isDarkColor-2acf30d1.js');
15
+ const isDarkColor = require('./isDarkColor-9f6c3601.js');
16
16
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
17
17
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
18
18
  const TaxId = require('./TaxId-4632639d.js');
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-0ce9e90b.js');
7
- const paypal = require('./paypal-d4d0bb3c.js');
8
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const cart = require('./cart-79deb872.js');
7
+ const paypal = require('./paypal-e79ca280.js');
8
+ const zonosStore = require('./zonosStore-0b1d27df.js');
9
9
  const handleFetch = require('./handleFetch-3673a0c2.js');
10
10
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
11
11
  const classes = require('./classes-b7918f56.js');
12
12
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
13
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
14
- const isDarkColor = require('./isDarkColor-2acf30d1.js');
13
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
14
+ const isDarkColor = require('./isDarkColor-9f6c3601.js');
15
15
  const styles = require('./styles-d1e64fb9.js');
16
16
  const CheckoutConfig = require('./CheckoutConfig-626b48e5.js');
17
17
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
@@ -279,17 +279,17 @@ const ZonosCheckout = class {
279
279
  return false;
280
280
  }
281
281
  // Do nothing if no cart data or cart expiration is not set
282
- if (!zonosStore.zonosStore.checkoutSettings.cartExpiration ||
282
+ if (!zonosStore.zonosStore.checkoutSettings.defaultCartExpiration ||
283
283
  !((_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.createdAt)) {
284
284
  return false;
285
285
  }
286
286
  const cartCreatedAt = new Date(window.Zonos.cartData.createdAt).getTime();
287
287
  const currentTime = new Date().getTime();
288
288
  const timeDiff = currentTime - cartCreatedAt;
289
- const timeDiffInMinutes = Math.floor(timeDiff / 60000);
290
- handleFetch.log(`Cart has been created for ${timeDiffInMinutes} minutes`);
291
- if (zonosStore.zonosStore.checkoutSettings.cartExpiration) {
292
- if (timeDiffInMinutes > zonosStore.zonosStore.checkoutSettings.cartExpiration) {
289
+ const timeDiffInSeconds = Math.floor(timeDiff / 1000);
290
+ handleFetch.log(`Cart has been created for ${timeDiffInSeconds / 60} minutes`);
291
+ if (zonosStore.zonosStore.checkoutSettings.defaultCartExpiration) {
292
+ if (timeDiffInSeconds > zonosStore.zonosStore.checkoutSettings.defaultCartExpiration) {
293
293
  this.isCartExpired = true;
294
294
  return true;
295
295
  }
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
 
8
8
  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}";
9
9
  const ZonosCollapseStyle0 = zonosCollapseCss;
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-0ce9e90b.js');
7
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const cart = require('./cart-79deb872.js');
7
+ const zonosStore = require('./zonosStore-0b1d27df.js');
8
8
  const handleFetch = require('./handleFetch-3673a0c2.js');
9
- require('./isDarkColor-2acf30d1.js');
10
- require('./getBorderRadius-7d0772bf.js');
9
+ require('./isDarkColor-9f6c3601.js');
10
+ require('./getBorderRadius-d3032bda.js');
11
11
 
12
12
  const getZonosSettings = async () => {
13
13
  const { errors, json, zonosMode } = await handleFetch.handleFetch('/api/zonos-elements/zonos-settings');
@@ -302,9 +302,9 @@ const ZonosController = class {
302
302
  // when success behavior is CLOSE_MODAL, use the default success behavior and update the keep shopping button link to their store, because just redirect user without confirmation page would confuse them
303
303
  successBehavior: shouldOverrideSuccessBehavior
304
304
  ? 'ZONOS_SUCCESS_PAGE'
305
- : undefined, successRedirectUrl: shouldOverrideSuccessBehavior
305
+ : this.config.checkoutSettings.successBehavior, successRedirectUrl: shouldOverrideSuccessBehavior
306
306
  ? (_d = window.Zonos.cartData) === null || _d === void 0 ? void 0 : _d.storeBaseUrl
307
- : undefined }) : undefined });
307
+ : this.config.checkoutSettings.successRedirectUrl }) : undefined });
308
308
  // load default setting if failed to load user settings
309
309
  zonosStore.zonosStoreInitSetting({
310
310
  overrideSettings: config,
@@ -394,7 +394,7 @@ const ZonosController = class {
394
394
  zonosStore.zonosStore.organizationName = organizationName;
395
395
  }
396
396
  render() {
397
- return index.h(index.Host, { key: 'c9c9c74dc05ff98dcb4c86252872bac9bf1ff0c3', class: "zonos--elements" });
397
+ return index.h(index.Host, { key: '2d961e702e5e76de7ddd4438e865ad46b538607d', class: "zonos--elements" });
398
398
  }
399
399
  };
400
400
  ZonosController.style = ZonosControllerStyle0;
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-0ce9e90b.js');
7
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const cart = require('./cart-79deb872.js');
7
+ const zonosStore = require('./zonosStore-0b1d27df.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-3673a0c2.js');
10
- require('./isDarkColor-2acf30d1.js');
11
- require('./getBorderRadius-7d0772bf.js');
10
+ require('./isDarkColor-9f6c3601.js');
11
+ require('./getBorderRadius-d3032bda.js');
12
12
 
13
13
  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}";
14
14
  const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-0ce9e90b.js');
7
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const cart = require('./cart-79deb872.js');
7
+ const zonosStore = require('./zonosStore-0b1d27df.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
- const isDarkColor = require('./isDarkColor-2acf30d1.js');
9
+ const isDarkColor = require('./isDarkColor-9f6c3601.js');
10
10
  const ILanguage = require('./ILanguage-98b04442.js');
11
11
  require('./handleFetch-3673a0c2.js');
12
- require('./getBorderRadius-7d0772bf.js');
12
+ require('./getBorderRadius-d3032bda.js');
13
13
 
14
14
  /**
15
15
  * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
9
- const cart = require('./cart-0ce9e90b.js');
8
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
9
+ const cart = require('./cart-79deb872.js');
10
10
  const handleFetch = require('./handleFetch-3673a0c2.js');
11
- const paypal = require('./paypal-d4d0bb3c.js');
12
- require('./isDarkColor-2acf30d1.js');
11
+ const paypal = require('./paypal-e79ca280.js');
12
+ require('./isDarkColor-9f6c3601.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">
15
15
  <mask id="mask0_3739_19124" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="536" height="200">
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-0ce9e90b.js');
7
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const cart = require('./cart-79deb872.js');
7
+ const zonosStore = require('./zonosStore-0b1d27df.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
11
11
  require('./handleFetch-3673a0c2.js');
12
- require('./isDarkColor-2acf30d1.js');
13
- require('./getBorderRadius-7d0772bf.js');
12
+ require('./isDarkColor-9f6c3601.js');
13
+ require('./getBorderRadius-d3032bda.js');
14
14
 
15
15
  const getHasMoreSpaceAbove = (ref) => {
16
16
  const componentRect = ref.getBoundingClientRect();
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
7
- const cart = require('./cart-0ce9e90b.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
+ const cart = require('./cart-79deb872.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');
11
- require('./isDarkColor-2acf30d1.js');
12
- require('./getBorderRadius-7d0772bf.js');
11
+ require('./isDarkColor-9f6c3601.js');
12
+ require('./getBorderRadius-d3032bda.js');
13
13
 
14
14
  var root = zonosStore._root;
15
15
 
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
8
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
9
9
 
10
10
  const zonosInputCss = ":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{margin:1px;}: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-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}: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-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}: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:16px 4px 8px 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::before{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}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}: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::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{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::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);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% - var(--zonos-elements-font-size-base) / 2);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(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}";
11
11
  const ZonosInputStyle0 = zonosInputCss;
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const cart = require('./cart-0ce9e90b.js');
7
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const cart = require('./cart-79deb872.js');
7
+ const zonosStore = require('./zonosStore-0b1d27df.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
9
  require('./handleFetch-3673a0c2.js');
10
- require('./isDarkColor-2acf30d1.js');
11
- require('./getBorderRadius-7d0772bf.js');
10
+ require('./isDarkColor-9f6c3601.js');
11
+ require('./getBorderRadius-d3032bda.js');
12
12
 
13
13
  const GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
14
14
  <path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosLogoCss = ":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 img{-webkit-filter:var(--zonos--filter-color);filter:var(--zonos--filter-color);width:var(--zonos--width)}";
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-7d0772bf.js');
8
+ const getBorderRadius = require('./getBorderRadius-d3032bda.js');
9
9
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
10
10
 
11
11
  const zonosShippingRichRadioCss = ":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-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--zonos--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--zonos--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
9
9
  const styles = require('./styles-d1e64fb9.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 zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosToggleCss = ":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 .wrapper{position:relative;border-radius:6px;background-color:var(--zonos-elements-gray-50);display:-ms-flexbox;display:flex}:host .zonos--toggle-selected-slider{z-index:1;position:absolute;background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}:host .zonos--option{background:transparent;border:0;z-index:2;cursor:pointer;padding:4px 12px;border-radius:6px;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-size:var(--zonos-elements-font-size-base);font-weight:500;color:var(--zonos-elements-text-color-secondary)}:host .zonos--option:focus{outline:none}:host .zonos--option:hover:not(.selected){color:var(--zonos-elements-text-color)}:host .zonos--option.selected{color:var(--zonos-elements-text-color);background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-2f90486e.js');
6
- const zonosStore = require('./zonosStore-46809186.js');
6
+ const zonosStore = require('./zonosStore-0b1d27df.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosVStackCss = ":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 .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
@@ -2771,7 +2771,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
2771
2771
  checkoutSettings: {
2772
2772
  allowedCharacterSets: 'ALL',
2773
2773
  analyticsProviders: [],
2774
- cartExpiration: 60,
2774
+ defaultCartExpiration: 3600,
2775
2775
  externalPaymentMethods: [],
2776
2776
  externalServiceTokens: [],
2777
2777
  mode: 'TEST',
@@ -69,17 +69,17 @@ export class ZonosCheckout {
69
69
  return false;
70
70
  }
71
71
  // Do nothing if no cart data or cart expiration is not set
72
- if (!zonosStore.checkoutSettings.cartExpiration ||
72
+ if (!zonosStore.checkoutSettings.defaultCartExpiration ||
73
73
  !((_a = window.Zonos.cartData) === null || _a === void 0 ? void 0 : _a.createdAt)) {
74
74
  return false;
75
75
  }
76
76
  const cartCreatedAt = new Date(window.Zonos.cartData.createdAt).getTime();
77
77
  const currentTime = new Date().getTime();
78
78
  const timeDiff = currentTime - cartCreatedAt;
79
- const timeDiffInMinutes = Math.floor(timeDiff / 60000);
80
- log(`Cart has been created for ${timeDiffInMinutes} minutes`);
81
- if (zonosStore.checkoutSettings.cartExpiration) {
82
- if (timeDiffInMinutes > zonosStore.checkoutSettings.cartExpiration) {
79
+ const timeDiffInSeconds = Math.floor(timeDiff / 1000);
80
+ log(`Cart has been created for ${timeDiffInSeconds / 60} minutes`);
81
+ if (zonosStore.checkoutSettings.defaultCartExpiration) {
82
+ if (timeDiffInSeconds > zonosStore.checkoutSettings.defaultCartExpiration) {
83
83
  this.isCartExpired = true;
84
84
  return true;
85
85
  }
@@ -151,9 +151,9 @@ export class ZonosController {
151
151
  // when success behavior is CLOSE_MODAL, use the default success behavior and update the keep shopping button link to their store, because just redirect user without confirmation page would confuse them
152
152
  successBehavior: shouldOverrideSuccessBehavior
153
153
  ? 'ZONOS_SUCCESS_PAGE'
154
- : undefined, successRedirectUrl: shouldOverrideSuccessBehavior
154
+ : this.config.checkoutSettings.successBehavior, successRedirectUrl: shouldOverrideSuccessBehavior
155
155
  ? (_d = window.Zonos.cartData) === null || _d === void 0 ? void 0 : _d.storeBaseUrl
156
- : undefined }) : undefined });
156
+ : this.config.checkoutSettings.successRedirectUrl }) : undefined });
157
157
  // load default setting if failed to load user settings
158
158
  zonosStoreInitSetting({
159
159
  overrideSettings: config,
@@ -243,7 +243,7 @@ export class ZonosController {
243
243
  zonosStore.organizationName = organizationName;
244
244
  }
245
245
  render() {
246
- return h(Host, { key: 'c9c9c74dc05ff98dcb4c86252872bac9bf1ff0c3', class: "zonos--elements" });
246
+ return h(Host, { key: '2d961e702e5e76de7ddd4438e865ad46b538607d', class: "zonos--elements" });
247
247
  }
248
248
  static get is() { return "zonos-controller"; }
249
249
  static get encapsulation() { return "shadow"; }
@@ -12,7 +12,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
12
12
  checkoutSettings: {
13
13
  allowedCharacterSets: 'ALL',
14
14
  analyticsProviders: [],
15
- cartExpiration: 60,
15
+ defaultCartExpiration: 3600,
16
16
  externalPaymentMethods: [],
17
17
  externalServiceTokens: [],
18
18
  mode: 'TEST',
@@ -27,6 +27,7 @@ export const featureAspectKeyEnum = {
27
27
  LocaleMessage: 'locale_message',
28
28
  NewCheckoutBeta: 'new_checkout_beta',
29
29
  NewPayoutReport: 'new_payout_report',
30
+ NewRefundsUx: 'new_refunds_ux',
30
31
  PageAuditor: 'page_auditor',
31
32
  PromptExplorer: 'prompt_explorer',
32
33
  RulesUiCreate: 'rules_ui_create',
@@ -52,6 +53,7 @@ export const featureAudienceNameEnum = {
52
53
  ItHead: 'it_head',
53
54
  NewCheckoutMerchant: 'new_checkout_merchant',
54
55
  NewPayoutReportMerchant: 'new_payout_report_merchant',
56
+ NewRefundsUxMerchant: 'new_refunds_ux_merchant',
55
57
  Onboarding: 'onboarding',
56
58
  PrincipalEngineer: 'principal_engineer',
57
59
  ProServeHead: 'pro_serve_head',