@zonos/elements 1.3.20-alpha.0 → 1.3.20-alpha.1

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 (140) hide show
  1. package/dist/cjs/{cart-72b0bccc.js → cart-921f0a47.js} +16 -10
  2. package/dist/cjs/{getBorderRadius-bcb309a8.js → getBorderRadius-9ad763e1.js} +1 -1
  3. package/dist/cjs/index.cjs.js +3 -3
  4. package/dist/cjs/{isDarkColor-b0393089.js → isDarkColor-3d021ecc.js} +1 -1
  5. package/dist/cjs/{submitGtag-b0c8de90.js → submitGtag-71790233.js} +2 -2
  6. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  7. package/dist/cjs/zonos-badge_2.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_2.cjs.entry.js +4 -4
  11. package/dist/cjs/zonos-cart-items_11.cjs.entry.js +6 -6
  12. package/dist/cjs/zonos-checkout.cjs.entry.js +5 -5
  13. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  14. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  15. package/dist/cjs/zonos-country-select_3.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  20. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-payment.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-select-dialog-header_2.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/{zonosStore-7c6205ca.js → zonosStore-1063de5e.js} +4 -0
  26. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
  27. package/dist/collection/components/store/zonosStore.js +4 -0
  28. package/dist/collection/components/utils/hello/setZCountryUrlParam.js +14 -7
  29. package/dist/esm/{cart-1a37e002.js → cart-d3c98a81.js} +16 -10
  30. package/dist/esm/{getBorderRadius-d244b4b1.js → getBorderRadius-393bf797.js} +1 -1
  31. package/dist/esm/index.js +3 -3
  32. package/dist/esm/{isDarkColor-39a36e82.js → isDarkColor-454ec221.js} +1 -1
  33. package/dist/esm/{submitGtag-754935b4.js → submitGtag-acdb8bd7.js} +2 -2
  34. package/dist/esm/zonos-address_8.entry.js +4 -4
  35. package/dist/esm/zonos-badge_2.entry.js +1 -1
  36. package/dist/esm/zonos-banner.entry.js +1 -1
  37. package/dist/esm/zonos-button_3.entry.js +3 -3
  38. package/dist/esm/zonos-card_2.entry.js +4 -4
  39. package/dist/esm/zonos-cart-items_11.entry.js +6 -6
  40. package/dist/esm/zonos-checkout.entry.js +5 -5
  41. package/dist/esm/zonos-controller.entry.js +4 -4
  42. package/dist/esm/zonos-country-flag.entry.js +4 -4
  43. package/dist/esm/zonos-country-select_3.entry.js +4 -4
  44. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  45. package/dist/esm/zonos-hello.entry.js +4 -4
  46. package/dist/esm/zonos-input.entry.js +2 -2
  47. package/dist/esm/zonos-logo.entry.js +1 -1
  48. package/dist/esm/zonos-notification.entry.js +1 -1
  49. package/dist/esm/zonos-payment.entry.js +4 -4
  50. package/dist/esm/zonos-select-dialog-header_2.entry.js +1 -1
  51. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  52. package/dist/esm/zonos-text.entry.js +1 -1
  53. package/dist/esm/{zonosStore-32e33a45.js → zonosStore-0ce57f37.js} +4 -0
  54. package/dist/esm-es5/{cart-1a37e002.js → cart-d3c98a81.js} +1 -1
  55. package/dist/esm-es5/{getBorderRadius-d244b4b1.js → getBorderRadius-393bf797.js} +1 -1
  56. package/dist/esm-es5/index.js +1 -1
  57. package/dist/esm-es5/{isDarkColor-39a36e82.js → isDarkColor-454ec221.js} +1 -1
  58. package/dist/esm-es5/{submitGtag-754935b4.js → submitGtag-acdb8bd7.js} +1 -1
  59. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  60. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  61. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  62. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  63. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  64. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -1
  65. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  66. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  67. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  68. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  69. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  70. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  71. package/dist/esm-es5/zonos-input.entry.js +1 -1
  72. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  73. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  74. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  75. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  77. package/dist/esm-es5/zonos-text.entry.js +1 -1
  78. package/dist/esm-es5/{zonosStore-32e33a45.js → zonosStore-0ce57f37.js} +1 -1
  79. package/dist/scripts/index.d.ts +5 -0
  80. package/dist/scripts/index.js +1 -1
  81. package/dist/scripts/loadZonos.js +1 -1
  82. package/dist/scripts/zonos.js +1 -1
  83. package/dist/types/types/hello/HelloConfig.d.ts +5 -0
  84. package/dist/zonos-elements/index.esm.js +1 -1
  85. package/dist/zonos-elements/{p-483e1724.entry.js → p-0a4f341b.entry.js} +1 -1
  86. package/dist/zonos-elements/{p-9c242e4b.system.entry.js → p-0e6fe6c8.system.entry.js} +1 -1
  87. package/dist/zonos-elements/{p-ed3524ae.system.entry.js → p-1406d696.system.entry.js} +1 -1
  88. package/dist/zonos-elements/{p-de9e610d.system.entry.js → p-14bea5e6.system.entry.js} +1 -1
  89. package/dist/zonos-elements/{p-a37796e1.entry.js → p-14da9ed0.entry.js} +1 -1
  90. package/dist/zonos-elements/{p-6449c92b.js → p-15c903ff.js} +1 -1
  91. package/dist/zonos-elements/{p-2e02a76f.system.entry.js → p-23393abc.system.entry.js} +1 -1
  92. package/dist/zonos-elements/{p-2fb9388c.entry.js → p-2c57097c.entry.js} +1 -1
  93. package/dist/zonos-elements/{p-2f759d82.js → p-2d3e3735.js} +1 -1
  94. package/dist/zonos-elements/{p-1b9442f6.system.js → p-3115e7a7.system.js} +1 -1
  95. package/dist/zonos-elements/{p-2ced091f.entry.js → p-3668f365.entry.js} +1 -1
  96. package/dist/zonos-elements/{p-58fc8ec1.entry.js → p-3c97c44d.entry.js} +1 -1
  97. package/dist/zonos-elements/{p-0878369a.entry.js → p-3edcbb56.entry.js} +1 -1
  98. package/dist/zonos-elements/{p-2800c274.system.entry.js → p-42a7a726.system.entry.js} +1 -1
  99. package/dist/zonos-elements/{p-0d1c06d7.entry.js → p-474cb030.entry.js} +1 -1
  100. package/dist/zonos-elements/{p-c87c76d4.entry.js → p-5968c6ad.entry.js} +1 -1
  101. package/dist/zonos-elements/{p-bd9b2165.entry.js → p-59913049.entry.js} +1 -1
  102. package/dist/zonos-elements/{p-281b8bdf.entry.js → p-67373528.entry.js} +1 -1
  103. package/dist/zonos-elements/{p-6eda6199.system.entry.js → p-72191005.system.entry.js} +1 -1
  104. package/dist/zonos-elements/{p-9389cc42.system.entry.js → p-75d52d98.system.entry.js} +1 -1
  105. package/dist/zonos-elements/p-824e1e83.system.js +1 -0
  106. package/dist/zonos-elements/{p-58be220f.system.js → p-8f3f1a1b.system.js} +1 -1
  107. package/dist/zonos-elements/p-957301d0.system.entry.js +1 -0
  108. package/dist/zonos-elements/{p-a47382ae.system.entry.js → p-971e73c3.system.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-c195e980.system.entry.js → p-9da3b3b3.system.entry.js} +1 -1
  110. package/dist/zonos-elements/{p-bdfa3705.system.entry.js → p-9e4b35d4.system.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-4594a125.js → p-b13e630b.js} +1 -1
  112. package/dist/zonos-elements/{p-7b2d367b.entry.js → p-b202a015.entry.js} +1 -1
  113. package/dist/zonos-elements/{p-6746455b.system.entry.js → p-b925e897.system.entry.js} +1 -1
  114. package/dist/zonos-elements/{p-9e8d38f7.system.entry.js → p-b9ed8a66.system.entry.js} +1 -1
  115. package/dist/zonos-elements/{p-f9a42a3c.system.entry.js → p-bfe6f84f.system.entry.js} +1 -1
  116. package/dist/zonos-elements/{p-8cd6633a.system.entry.js → p-c15b36c1.system.entry.js} +1 -1
  117. package/dist/zonos-elements/{p-bd4f72a2.system.js → p-ce099910.system.js} +1 -1
  118. package/dist/zonos-elements/{p-0d5b5bcc.entry.js → p-ce4c48f6.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-bbb84165.system.entry.js → p-d03e101b.system.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-1491717a.entry.js → p-d18990b0.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-4f72bfee.system.entry.js → p-d1b8dcd8.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-8c0b4a61.js → p-d5feef4c.js} +1 -1
  123. package/dist/zonos-elements/p-d79e83bd.entry.js +1 -0
  124. package/dist/zonos-elements/{p-597b75f3.entry.js → p-dd02f2eb.entry.js} +1 -1
  125. package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
  126. package/dist/zonos-elements/{p-693b9985.js → p-eb6ddb2f.js} +1 -1
  127. package/dist/zonos-elements/{p-afb89d65.entry.js → p-eb765228.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-d9011df9.entry.js → p-ebb36e4d.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-b2752239.system.entry.js → p-f03b33ec.system.entry.js} +1 -1
  130. package/dist/zonos-elements/{p-62ecfbcc.system.js → p-f0afca6c.system.js} +1 -1
  131. package/dist/zonos-elements/p-f16b80a3.system.js +1 -0
  132. package/dist/zonos-elements/{p-3ba8838a.entry.js → p-f3a6de62.entry.js} +1 -1
  133. package/dist/zonos-elements/{p-2af19b63.entry.js → p-f4c921f8.entry.js} +1 -1
  134. package/dist/zonos-elements/{p-d7a939df.system.entry.js → p-fc2f3e2a.system.entry.js} +1 -1
  135. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  136. package/package.json +1 -1
  137. package/dist/zonos-elements/p-147d540a.system.entry.js +0 -1
  138. package/dist/zonos-elements/p-58e730b6.system.js +0 -1
  139. package/dist/zonos-elements/p-d545a444.entry.js +0 -1
  140. package/dist/zonos-elements/p-f5b14bab.system.js +0 -1
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-7c6205ca.js');
3
+ const zonosStore = require('./zonosStore-1063de5e.js');
4
4
  const logError = require('./logError-4e2f2020.js');
5
- const isDarkColor = require('./isDarkColor-b0393089.js');
6
- const getBorderRadius = require('./getBorderRadius-bcb309a8.js');
5
+ const isDarkColor = require('./isDarkColor-3d021ecc.js');
6
+ const getBorderRadius = require('./getBorderRadius-9ad763e1.js');
7
7
 
8
8
  const stringsArabic = {
9
9
  '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
@@ -6008,13 +6008,19 @@ const setZCountryUrlParam = (selectedCountryCode) => {
6008
6008
  return;
6009
6009
  }
6010
6010
  const urlSearchParams = new URLSearchParams(window.location.search);
6011
- urlSearchParams.set('zCountry', selectedCountryCode);
6012
- const newUrl = `${window.location.pathname}?${urlSearchParams.toString()}`;
6013
- /**
6014
- * Setting the state to null in window.history.replaceState can cause issues with rendering when using next/link and pressing the back button.
6015
- * @ref https://github.com/vercel/next.js/issues/33233#issuecomment-1052349396
6016
- **/
6017
- window.history.replaceState(window.history.state, document.title, newUrl);
6011
+ // Only append zCountry if it's already in the URL or the countryOverrideBehavior is URL_PARAM
6012
+ const shouldAppendParam = urlSearchParams.has('zCountry') ||
6013
+ zonosStore.zonosStore.helloSettings.countryOverrideBehavior === 'URL_PARAM';
6014
+ if (shouldAppendParam) {
6015
+ // Only append zCountry if it's not already in the URL
6016
+ urlSearchParams.set('zCountry', selectedCountryCode);
6017
+ const newUrl = `${window.location.pathname}?${urlSearchParams.toString()}`;
6018
+ /**
6019
+ * Setting the state to null in window.history.replaceState can cause issues with rendering when using next/link and pressing the back button.
6020
+ * @ref https://github.com/vercel/next.js/issues/33233#issuecomment-1052349396
6021
+ **/
6022
+ window.history.replaceState(window.history.state, document.title, newUrl);
6023
+ }
6018
6024
  };
6019
6025
 
6020
6026
  const { onChange: localizationStoreOnUpdate, state: localizationStore } = zonosStore.createStore({
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-7c6205ca.js');
3
+ const zonosStore = require('./zonosStore-1063de5e.js');
4
4
 
5
5
  /**
6
6
  * Get the border radius for the elements based on the style
@@ -236,8 +236,8 @@ const zonosLoadUrl = (() => {
236
236
  }
237
237
  return null;
238
238
  })();
239
- const ZONOS_URL = zonosLoadUrl || "https://v1.3.20-alpha.0.js.zonos.com";
240
- const JS_DELIVR_ZONOS_URL = "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.20-alpha.0";
239
+ const ZONOS_URL = zonosLoadUrl || "https://v1.3.20-alpha.1.js.zonos.com";
240
+ const JS_DELIVR_ZONOS_URL = "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.20-alpha.1";
241
241
  const INTER_FONT_URL = 'https://rsms.me';
242
242
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
243
243
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -257,7 +257,7 @@ Zonos.isBigCommerce = false;
257
257
  Zonos.isNpm = true;
258
258
  Zonos.internationalHideSelector = '';
259
259
  Zonos.zonosQaUrl = null;
260
- Zonos.version = `v${"1.3.20-alpha.0"}`;
260
+ Zonos.version = `v${"1.3.20-alpha.1"}`;
261
261
  Zonos.modeAlerted = false;
262
262
  Zonos.tempCartData = null;
263
263
  Zonos.getCurrentTimestamp = () => new Date().getTime();
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-7c6205ca.js');
3
+ const zonosStore = require('./zonosStore-1063de5e.js');
4
4
 
5
5
  var tinycolor$1 = {exports: {}};
6
6
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-72b0bccc.js');
4
- const zonosStore = require('./zonosStore-7c6205ca.js');
3
+ const cart = require('./cart-921f0a47.js');
4
+ const zonosStore = require('./zonosStore-1063de5e.js');
5
5
  const logError = require('./logError-4e2f2020.js');
6
6
 
7
7
  const trackConversionEvent = async (eventName, metadata) => {
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-72b0bccc.js');
6
+ const cart = require('./cart-921f0a47.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const logError = require('./logError-4e2f2020.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
10
- const zonosStore = require('./zonosStore-7c6205ca.js');
10
+ const zonosStore = require('./zonosStore-1063de5e.js');
11
11
  const classes = require('./classes-b7918f56.js');
12
12
  const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
13
- const getBorderRadius = require('./getBorderRadius-bcb309a8.js');
14
- const isDarkColor = require('./isDarkColor-b0393089.js');
13
+ const getBorderRadius = require('./getBorderRadius-9ad763e1.js');
14
+ const isDarkColor = require('./isDarkColor-3d021ecc.js');
15
15
 
16
16
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--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-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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 .zonos--badge-content{display:-ms-flexbox;display:flex;gap:8px;font-size:var(--zonos-elements-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--zonos-elements-radius-6);background-color:var(--zonos-elements-gray-100);color:var(--zonos-elements-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--zonos-elements-gray-600);color:var(--zonos-elements-gray-100)}:host .blue{background-color:var(--zonos-elements-blue-100);color:var(--zonos-elements-blue-800)}:host .blue.bold{background-color:var(--zonos-elements-blue-600);color:var(--zonos-elements-blue-100)}:host .green{background-color:var(--zonos-elements-green-100);color:var(--zonos-elements-green-800)}:host .green.bold{background-color:var(--zonos-elements-green-600);color:var(--zonos-elements-green-100)}:host .red{background-color:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800)}:host .red.bold{background-color:var(--zonos-elements-red-600);color:var(--zonos-elements-red-100)}:host .orange{background-color:var(--zonos-elements-orange-100);color:var(--zonos-elements-orange-800)}:host .orange.bold{background-color:var(--zonos-elements-orange-600);color:var(--zonos-elements-orange-100)}:host .purple{background-color:var(--zonos-elements-purple-100);color:var(--zonos-elements-purple-800)}:host .purple.bold{background-color:var(--zonos-elements-purple-600);color:var(--zonos-elements-purple-100)}:host .cyan{background-color:var(--zonos-elements-cyan-100);color:var(--zonos-elements-cyan-800)}:host .cyan.bold{background-color:var(--zonos-elements-cyan-600);color:var(--zonos-elements-cyan-100)}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-bcb309a8.js');
8
+ const getBorderRadius = require('./getBorderRadius-9ad763e1.js');
9
9
  const isColorVariable = require('./isColorVariable-6f5a9608.js');
10
- const isDarkColor = require('./isDarkColor-b0393089.js');
10
+ const isDarkColor = require('./isDarkColor-3d021ecc.js');
11
11
 
12
12
  /**
13
13
  * Get theme for button text based on background color
@@ -3,13 +3,13 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const cart = require('./cart-72b0bccc.js');
8
+ const cart = require('./cart-921f0a47.js');
9
9
  const ILanguage = require('./ILanguage-d247b45b.js');
10
10
  require('./logError-4e2f2020.js');
11
- require('./isDarkColor-b0393089.js');
12
- require('./getBorderRadius-bcb309a8.js');
11
+ require('./isDarkColor-3d021ecc.js');
12
+ require('./getBorderRadius-9ad763e1.js');
13
13
 
14
14
  const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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-elements-radius-6);padding:var(--spacing, 24px);text-align:left}: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)}";
15
15
  const ZonosCardStyle0 = zonosCardCss;
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-72b0bccc.js');
6
+ const cart = require('./cart-921f0a47.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const zonosStore = require('./zonosStore-7c6205ca.js');
9
- const submitGtag = require('./submitGtag-b0c8de90.js');
10
- const getBorderRadius = require('./getBorderRadius-bcb309a8.js');
8
+ const zonosStore = require('./zonosStore-1063de5e.js');
9
+ const submitGtag = require('./submitGtag-71790233.js');
10
+ const getBorderRadius = require('./getBorderRadius-9ad763e1.js');
11
11
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
12
12
  const ILanguage = require('./ILanguage-d247b45b.js');
13
- const isDarkColor = require('./isDarkColor-b0393089.js');
13
+ const isDarkColor = require('./isDarkColor-3d021ecc.js');
14
14
  const isColorVariable = require('./isColorVariable-6f5a9608.js');
15
15
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
16
16
  require('./logError-4e2f2020.js');
@@ -357,7 +357,7 @@ const ZonosIcon = `<svg width="105" height="29" viewBox="0 0 105 29" fill="none"
357
357
  </svg>
358
358
  `;
359
359
 
360
- const zonosCheckoutFooterCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{position:absolute;bottom:-50px;left:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--checkout-footer{width:calc(90vw - 22px);gap:16px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px;-ms-flex-align:center;align-items:center}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:24px}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper .zonos--checkout-footer-logo{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper .zonos--checkout-footer-logo a{line-height:0}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper a{text-decoration:none}:host .zonos--checkout-footer zonos-button button.outline{outline:1px solid var(--zonos-elements-gray-800)}:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;position:relative}@media (max-width: 400px){:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{gap:4px}}:host .zonos--checkout-footer .zonos--checkout-footer-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);background:var(--zonos-elements-surface-color);-webkit-box-shadow:var(--zonos-elements-v3-shadow-xl);box-shadow:var(--zonos-elements-v3-shadow-xl);border-radius:var(--zonos-elements-radius-12);width:360px;max-width:100vw;max-height:500px;z-index:10005;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;opacity:0;-webkit-transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out, -webkit-transform 0.3s ease-out}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar{width:10px}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog.zonos--checkout-footer-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host(.mobile){-ms-flex-direction:column;flex-direction:column;gap:32px;background:var(--zonos-elements-gray-0);position:relative;padding-top:24px;bottom:0}:host(.mobile) .zonos--checkout-footer{-ms-flex-direction:column;flex-direction:column;gap:4px}:host(.mobile) .zonos--checkout-locale-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--checkout-footer-icon-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--checkout-footer-dialog{position:fixed;left:0;right:0;bottom:0;-webkit-transform-origin:bottom center;transform-origin:bottom center;width:100vw}";
360
+ const zonosCheckoutFooterCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{position:absolute;bottom:-50px;left:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--checkout-footer{width:calc(90vw - 22px);gap:16px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px;padding-left:0;-ms-flex-align:center;align-items:center}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:24px}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper .zonos--checkout-footer-logo{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper .zonos--checkout-footer-logo a{line-height:0}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper a{text-decoration:none}:host .zonos--checkout-footer zonos-button button.outline{outline:1px solid var(--zonos-elements-gray-800)}:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;position:relative}@media (max-width: 400px){:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{gap:4px}}:host .zonos--checkout-footer .zonos--checkout-footer-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);background:var(--zonos-elements-surface-color);-webkit-box-shadow:var(--zonos-elements-v3-shadow-xl);box-shadow:var(--zonos-elements-v3-shadow-xl);border-radius:var(--zonos-elements-radius-12);width:360px;max-width:100vw;max-height:500px;z-index:10005;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;opacity:0;-webkit-transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out, -webkit-transform 0.3s ease-out}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar{width:10px}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog.zonos--checkout-footer-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host(.mobile){-ms-flex-direction:column;flex-direction:column;gap:32px;background:var(--zonos-elements-gray-0);position:relative;padding-top:24px;bottom:0}:host(.mobile) .zonos--checkout-footer{-ms-flex-direction:column;flex-direction:column;gap:4px}:host(.mobile) .zonos--checkout-locale-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--checkout-footer-icon-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--checkout-footer-dialog{position:fixed;left:0;right:0;bottom:0;-webkit-transform-origin:bottom center;transform-origin:bottom center;width:100vw}";
361
361
  const ZonosCheckoutFooterStyle0 = zonosCheckoutFooterCss;
362
362
 
363
363
  const ZonosCheckoutFooter = class {
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-72b0bccc.js');
7
- const zonosStore = require('./zonosStore-7c6205ca.js');
8
- const submitGtag = require('./submitGtag-b0c8de90.js');
6
+ const cart = require('./cart-921f0a47.js');
7
+ const zonosStore = require('./zonosStore-1063de5e.js');
8
+ const submitGtag = require('./submitGtag-71790233.js');
9
9
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
10
10
  const logError = require('./logError-4e2f2020.js');
11
11
  const classes = require('./classes-b7918f56.js');
12
- const getBorderRadius = require('./getBorderRadius-bcb309a8.js');
13
- const isDarkColor = require('./isDarkColor-b0393089.js');
12
+ const getBorderRadius = require('./getBorderRadius-9ad763e1.js');
13
+ const isDarkColor = require('./isDarkColor-3d021ecc.js');
14
14
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
15
15
 
16
16
  /**
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-72b0bccc.js');
7
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const cart = require('./cart-921f0a47.js');
7
+ const zonosStore = require('./zonosStore-1063de5e.js');
8
8
  const logError = require('./logError-4e2f2020.js');
9
- require('./isDarkColor-b0393089.js');
10
- require('./getBorderRadius-bcb309a8.js');
9
+ require('./isDarkColor-3d021ecc.js');
10
+ require('./getBorderRadius-9ad763e1.js');
11
11
 
12
12
  const getZonosSettings = async () => {
13
13
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/zonos-settings`;
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-72b0bccc.js');
7
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const cart = require('./cart-921f0a47.js');
7
+ const zonosStore = require('./zonosStore-1063de5e.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./logError-4e2f2020.js');
10
- require('./isDarkColor-b0393089.js');
11
- require('./getBorderRadius-bcb309a8.js');
10
+ require('./isDarkColor-3d021ecc.js');
11
+ require('./getBorderRadius-9ad763e1.js');
12
12
 
13
13
  const zonosCountryFlagCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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-b071017b.js');
6
- const cart = require('./cart-72b0bccc.js');
7
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const cart = require('./cart-921f0a47.js');
7
+ const zonosStore = require('./zonosStore-1063de5e.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
- const isDarkColor = require('./isDarkColor-b0393089.js');
9
+ const isDarkColor = require('./isDarkColor-3d021ecc.js');
10
10
  const ILanguage = require('./ILanguage-d247b45b.js');
11
11
  require('./logError-4e2f2020.js');
12
- require('./getBorderRadius-bcb309a8.js');
12
+ require('./getBorderRadius-9ad763e1.js');
13
13
 
14
14
  /**
15
15
  * Fuse.js v7.0.0 - Lightweight fuzzy-search (http://fusejs.io)
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-72b0bccc.js');
7
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const cart = require('./cart-921f0a47.js');
7
+ const zonosStore = require('./zonosStore-1063de5e.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('./logError-4e2f2020.js');
12
- require('./isDarkColor-b0393089.js');
13
- require('./getBorderRadius-bcb309a8.js');
12
+ require('./isDarkColor-3d021ecc.js');
13
+ require('./getBorderRadius-9ad763e1.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-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
7
- const cart = require('./cart-72b0bccc.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
+ const cart = require('./cart-921f0a47.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const logError = require('./logError-4e2f2020.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
11
- require('./isDarkColor-b0393089.js');
12
- require('./getBorderRadius-bcb309a8.js');
11
+ require('./isDarkColor-3d021ecc.js');
12
+ require('./getBorderRadius-9ad763e1.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-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-bcb309a8.js');
8
+ const getBorderRadius = require('./getBorderRadius-9ad763e1.js');
9
9
 
10
10
  const zonosInputCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--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(--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(--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,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosLogoCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--filter-color);filter:var(--filter-color);width:var(--width)}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosNotificationCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-72b0bccc.js');
6
+ const cart = require('./cart-921f0a47.js');
7
7
  const logError = require('./logError-4e2f2020.js');
8
- require('./zonosStore-7c6205ca.js');
9
- require('./isDarkColor-b0393089.js');
10
- require('./getBorderRadius-bcb309a8.js');
8
+ require('./zonosStore-1063de5e.js');
9
+ require('./isDarkColor-3d021ecc.js');
10
+ require('./getBorderRadius-9ad763e1.js');
11
11
 
12
12
  const zonosPaymentCss = ".sc-zonos-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-payment-h *.sc-zonos-payment{font-family:var(--font-family, Inter), Inter}.sc-zonos-payment-h img.sc-zonos-payment{max-width:100%}.sc-zonos-payment-h dl.sc-zonos-payment,.sc-zonos-payment-h dd.sc-zonos-payment,.sc-zonos-payment-h h1.sc-zonos-payment,.sc-zonos-payment-h h2.sc-zonos-payment,.sc-zonos-payment-h h3.sc-zonos-payment,.sc-zonos-payment-h h4.sc-zonos-payment,.sc-zonos-payment-h h5.sc-zonos-payment,.sc-zonos-payment-h h6.sc-zonos-payment,.sc-zonos-payment-h hr.sc-zonos-payment,.sc-zonos-payment-h figure.sc-zonos-payment,.sc-zonos-payment-h p.sc-zonos-payment,.sc-zonos-payment-h pre.sc-zonos-payment{margin:0}.sc-zonos-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-payment-h .zonos--title.sc-zonos-payment{margin-bottom:16px}";
13
13
  const ZonosPaymentStyle0 = zonosPaymentCss;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-bcb309a8.js');
8
+ const getBorderRadius = require('./getBorderRadius-9ad763e1.js');
9
9
  const isColorVariable = require('./isColorVariable-6f5a9608.js');
10
10
 
11
11
  const zonosShippingRichRadioCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--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(--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--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(--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-b071017b.js');
6
- const zonosStore = require('./zonosStore-7c6205ca.js');
6
+ const zonosStore = require('./zonosStore-1063de5e.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const isColorVariable = require('./isColorVariable-6f5a9608.js');
9
9
 
@@ -2805,6 +2805,10 @@ const { reset, state: zonosStore } = createStore(() => ({
2805
2805
  helloSettings: {
2806
2806
  anchorElementSelector: '',
2807
2807
  cartUrlPattern: '',
2808
+ /**
2809
+ * @TODO Default to URL_PARAM for now, and switch SESSION later when we have API save this info, and we have the ability to update setting of merchant store without having them do it.
2810
+ */
2811
+ countryOverrideBehavior: 'URL_PARAM',
2808
2812
  currencyBehavior: 'ENABLED',
2809
2813
  currencyElementSelector: '.money',
2810
2814
  dutyTaxEstimationBehavior: 'ENABLED',
@@ -47,6 +47,7 @@
47
47
  display: flex;
48
48
  justify-content: space-between;
49
49
  padding: 12px;
50
+ padding-left: 0;
50
51
  align-items: center;
51
52
  }
52
53
  :host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper {
@@ -46,6 +46,10 @@ const { reset, state: zonosStore } = createStore(() => ({
46
46
  helloSettings: {
47
47
  anchorElementSelector: '',
48
48
  cartUrlPattern: '',
49
+ /**
50
+ * @TODO Default to URL_PARAM for now, and switch SESSION later when we have API save this info, and we have the ability to update setting of merchant store without having them do it.
51
+ */
52
+ countryOverrideBehavior: 'URL_PARAM',
49
53
  currencyBehavior: 'ENABLED',
50
54
  currencyElementSelector: '.money',
51
55
  dutyTaxEstimationBehavior: 'ENABLED',
@@ -1,13 +1,20 @@
1
+ import { zonosStore } from "../../store/zonosStore";
1
2
  export const setZCountryUrlParam = (selectedCountryCode) => {
2
3
  if (!selectedCountryCode) {
3
4
  return;
4
5
  }
5
6
  const urlSearchParams = new URLSearchParams(window.location.search);
6
- urlSearchParams.set('zCountry', selectedCountryCode);
7
- const newUrl = `${window.location.pathname}?${urlSearchParams.toString()}`;
8
- /**
9
- * Setting the state to null in window.history.replaceState can cause issues with rendering when using next/link and pressing the back button.
10
- * @ref https://github.com/vercel/next.js/issues/33233#issuecomment-1052349396
11
- **/
12
- window.history.replaceState(window.history.state, document.title, newUrl);
7
+ // Only append zCountry if it's already in the URL or the countryOverrideBehavior is URL_PARAM
8
+ const shouldAppendParam = urlSearchParams.has('zCountry') ||
9
+ zonosStore.helloSettings.countryOverrideBehavior === 'URL_PARAM';
10
+ if (shouldAppendParam) {
11
+ // Only append zCountry if it's not already in the URL
12
+ urlSearchParams.set('zCountry', selectedCountryCode);
13
+ const newUrl = `${window.location.pathname}?${urlSearchParams.toString()}`;
14
+ /**
15
+ * Setting the state to null in window.history.replaceState can cause issues with rendering when using next/link and pressing the back button.
16
+ * @ref https://github.com/vercel/next.js/issues/33233#issuecomment-1052349396
17
+ **/
18
+ window.history.replaceState(window.history.state, document.title, newUrl);
19
+ }
13
20
  };
@@ -1,7 +1,7 @@
1
- import { c as createStore, z as zonosStore } from './zonosStore-32e33a45.js';
1
+ import { c as createStore, z as zonosStore } from './zonosStore-0ce57f37.js';
2
2
  import { a as logError, l as log } from './logError-c456c092.js';
3
- import { i as isDarkColor } from './isDarkColor-39a36e82.js';
4
- import { g as getBorderRadius } from './getBorderRadius-d244b4b1.js';
3
+ import { i as isDarkColor } from './isDarkColor-454ec221.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-393bf797.js';
5
5
 
6
6
  const stringsArabic = {
7
7
  '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
@@ -6006,13 +6006,19 @@ const setZCountryUrlParam = (selectedCountryCode) => {
6006
6006
  return;
6007
6007
  }
6008
6008
  const urlSearchParams = new URLSearchParams(window.location.search);
6009
- urlSearchParams.set('zCountry', selectedCountryCode);
6010
- const newUrl = `${window.location.pathname}?${urlSearchParams.toString()}`;
6011
- /**
6012
- * Setting the state to null in window.history.replaceState can cause issues with rendering when using next/link and pressing the back button.
6013
- * @ref https://github.com/vercel/next.js/issues/33233#issuecomment-1052349396
6014
- **/
6015
- window.history.replaceState(window.history.state, document.title, newUrl);
6009
+ // Only append zCountry if it's already in the URL or the countryOverrideBehavior is URL_PARAM
6010
+ const shouldAppendParam = urlSearchParams.has('zCountry') ||
6011
+ zonosStore.helloSettings.countryOverrideBehavior === 'URL_PARAM';
6012
+ if (shouldAppendParam) {
6013
+ // Only append zCountry if it's not already in the URL
6014
+ urlSearchParams.set('zCountry', selectedCountryCode);
6015
+ const newUrl = `${window.location.pathname}?${urlSearchParams.toString()}`;
6016
+ /**
6017
+ * Setting the state to null in window.history.replaceState can cause issues with rendering when using next/link and pressing the back button.
6018
+ * @ref https://github.com/vercel/next.js/issues/33233#issuecomment-1052349396
6019
+ **/
6020
+ window.history.replaceState(window.history.state, document.title, newUrl);
6021
+ }
6016
6022
  };
6017
6023
 
6018
6024
  const { onChange: localizationStoreOnUpdate, state: localizationStore } = createStore({
@@ -1,4 +1,4 @@
1
- import { z as zonosStore } from './zonosStore-32e33a45.js';
1
+ import { z as zonosStore } from './zonosStore-0ce57f37.js';
2
2
 
3
3
  /**
4
4
  * Get the border radius for the elements based on the style
package/dist/esm/index.js CHANGED
@@ -232,8 +232,8 @@ const zonosLoadUrl = (() => {
232
232
  }
233
233
  return null;
234
234
  })();
235
- const ZONOS_URL = zonosLoadUrl || "https://v1.3.20-alpha.0.js.zonos.com";
236
- const JS_DELIVR_ZONOS_URL = "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.20-alpha.0";
235
+ const ZONOS_URL = zonosLoadUrl || "https://v1.3.20-alpha.1.js.zonos.com";
236
+ const JS_DELIVR_ZONOS_URL = "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.20-alpha.1";
237
237
  const INTER_FONT_URL = 'https://rsms.me';
238
238
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
239
239
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -253,7 +253,7 @@ Zonos.isBigCommerce = false;
253
253
  Zonos.isNpm = true;
254
254
  Zonos.internationalHideSelector = '';
255
255
  Zonos.zonosQaUrl = null;
256
- Zonos.version = `v${"1.3.20-alpha.0"}`;
256
+ Zonos.version = `v${"1.3.20-alpha.1"}`;
257
257
  Zonos.modeAlerted = false;
258
258
  Zonos.tempCartData = null;
259
259
  Zonos.getCurrentTimestamp = () => new Date().getTime();
@@ -1,4 +1,4 @@
1
- import { a as commonjsGlobal } from './zonosStore-32e33a45.js';
1
+ import { a as commonjsGlobal } from './zonosStore-0ce57f37.js';
2
2
 
3
3
  var tinycolor$1 = {exports: {}};
4
4
 
@@ -1,5 +1,5 @@
1
- import { r as handleFetch, d as cartStore, l as localizationStore } from './cart-1a37e002.js';
2
- import { z as zonosStore } from './zonosStore-32e33a45.js';
1
+ import { r as handleFetch, d as cartStore, l as localizationStore } from './cart-d3c98a81.js';
2
+ import { z as zonosStore } from './zonosStore-0ce57f37.js';
3
3
  import { l as log } from './logError-c456c092.js';
4
4
 
5
5
  const trackConversionEvent = async (eventName, metadata) => {