@zonos/elements 1.3.15-alpha.0 → 1.3.15-alpha.2

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 (227) hide show
  1. package/dist/cjs/{cart-b1c89065.js → cart-1b1d39af.js} +131 -63
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{sendErrorLog-f7172707.js → sendErrorLog-29e50f7e.js} +1 -1
  4. package/dist/cjs/{submitGtag-219f4e54.js → submitGtag-ab287a34.js} +1 -1
  5. package/dist/cjs/zonos-address_4.cjs.entry.js +9 -9
  6. package/dist/cjs/zonos-badge_2.cjs.entry.js +5 -5
  7. package/dist/cjs/zonos-button_2.cjs.entry.js +3 -3
  8. package/dist/cjs/zonos-card_2.cjs.entry.js +6 -6
  9. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +91 -70
  10. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  11. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-country-select_3.cjs.entry.js +8 -8
  15. package/dist/cjs/zonos-elements.cjs.js +1 -1
  16. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  18. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  19. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-payment.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +4 -4
  22. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +13 -1
  23. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +1 -1
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
  25. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +17 -17
  26. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -0
  27. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +40 -28
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -0
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +23 -23
  30. package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
  31. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  32. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  33. package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
  34. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  35. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  36. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  37. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  38. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  39. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  40. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  41. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  42. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  43. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  44. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  45. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  46. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +238 -198
  47. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  48. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
  49. package/dist/collection/components/main/zonos-controller.js +1 -1
  50. package/dist/collection/components/store/checkout/stripe.js +4 -1
  51. package/dist/collection/components/store/translationStore/strings.arabic.js +6 -3
  52. package/dist/collection/components/store/translationStore/strings.base.js +6 -3
  53. package/dist/collection/components/store/translationStore/strings.chinese.js +6 -3
  54. package/dist/collection/components/store/translationStore/strings.danish.js +6 -3
  55. package/dist/collection/components/store/translationStore/strings.dutch.js +6 -3
  56. package/dist/collection/components/store/translationStore/strings.french.js +6 -3
  57. package/dist/collection/components/store/translationStore/strings.german.js +6 -3
  58. package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -3
  59. package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -3
  60. package/dist/collection/components/store/translationStore/strings.italian.js +6 -3
  61. package/dist/collection/components/store/translationStore/strings.japanese.js +6 -3
  62. package/dist/collection/components/store/translationStore/strings.korean.js +6 -3
  63. package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -3
  64. package/dist/collection/components/store/translationStore/strings.polish.js +6 -3
  65. package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -3
  66. package/dist/collection/components/store/translationStore/strings.russian.js +6 -3
  67. package/dist/collection/components/store/translationStore/strings.spanish.js +6 -3
  68. package/dist/collection/components/store/translationStore/strings.swedish.js +6 -3
  69. package/dist/collection/components/store/translationStore/strings.turkish.js +6 -3
  70. package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -3
  71. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  72. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  73. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  74. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +1 -0
  75. package/dist/collection/components/utils/formatDate.js +6 -2
  76. package/dist/collection/types/generated/graphql.customer.types.js +45 -44
  77. package/dist/collection/types/generated/graphql.frontend.types.js +48 -48
  78. package/dist/components/stripe.js +131 -63
  79. package/dist/components/zonos-address2.js +1 -1
  80. package/dist/components/zonos-badge2.js +3 -3
  81. package/dist/components/zonos-button2.js +3 -3
  82. package/dist/components/zonos-card2.js +3 -3
  83. package/dist/components/zonos-checkbox2.js +3 -3
  84. package/dist/components/zonos-checkout-footer2.js +2 -2
  85. package/dist/components/zonos-checkout-payment2.js +18 -17
  86. package/dist/components/zonos-checkout-progress-tabs2.js +3 -3
  87. package/dist/components/zonos-collapse2.js +2 -2
  88. package/dist/components/zonos-component.js +1 -1
  89. package/dist/components/zonos-controller.js +1 -1
  90. package/dist/components/zonos-country-select2.js +2 -2
  91. package/dist/components/zonos-custom-message2.js +2 -2
  92. package/dist/components/zonos-customer-info2.js +41 -28
  93. package/dist/components/zonos-dialog2.js +3 -3
  94. package/dist/components/zonos-hello-dialog-footer2.js +3 -3
  95. package/dist/components/zonos-hello-dialog2.js +3 -3
  96. package/dist/components/zonos-language-select2.js +2 -2
  97. package/dist/components/zonos-link-authentication2.js +1 -1
  98. package/dist/components/zonos-link.js +1 -1
  99. package/dist/components/zonos-logo.js +2 -2
  100. package/dist/components/zonos-payment2.js +1 -1
  101. package/dist/components/zonos-select-dialog-header2.js +2 -2
  102. package/dist/components/zonos-shipping2.js +24 -23
  103. package/dist/components/zonos-tooltip2.js +2 -2
  104. package/dist/components/zonos-v-stack2.js +2 -2
  105. package/dist/esm/{cart-1b0aaea9.js → cart-10bcd2e0.js} +131 -63
  106. package/dist/esm/loader.js +1 -1
  107. package/dist/esm/{sendErrorLog-4e7a8e6e.js → sendErrorLog-8642e94a.js} +1 -1
  108. package/dist/esm/{submitGtag-ce1c25e6.js → submitGtag-84886899.js} +1 -1
  109. package/dist/esm/zonos-address_4.entry.js +9 -9
  110. package/dist/esm/zonos-badge_2.entry.js +5 -5
  111. package/dist/esm/zonos-button_2.entry.js +3 -3
  112. package/dist/esm/zonos-card_2.entry.js +6 -6
  113. package/dist/esm/zonos-cart-items_10.entry.js +91 -70
  114. package/dist/esm/zonos-checkout.entry.js +3 -3
  115. package/dist/esm/zonos-component.entry.js +1 -1
  116. package/dist/esm/zonos-controller.entry.js +2 -2
  117. package/dist/esm/zonos-country-flag.entry.js +1 -1
  118. package/dist/esm/zonos-country-select_3.entry.js +8 -8
  119. package/dist/esm/zonos-elements.js +1 -1
  120. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  121. package/dist/esm/zonos-hello.entry.js +1 -1
  122. package/dist/esm/zonos-link.entry.js +1 -1
  123. package/dist/esm/zonos-logo.entry.js +2 -2
  124. package/dist/esm/zonos-payment.entry.js +2 -2
  125. package/dist/esm/zonos-select-dialog-header_2.entry.js +4 -4
  126. package/dist/esm-es5/cart-10bcd2e0.js +1 -0
  127. package/dist/esm-es5/loader.js +1 -1
  128. package/dist/esm-es5/sendErrorLog-8642e94a.js +1 -0
  129. package/dist/esm-es5/{submitGtag-ce1c25e6.js → submitGtag-84886899.js} +1 -1
  130. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  131. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  132. package/dist/esm-es5/zonos-button_2.entry.js +1 -1
  133. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  134. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  135. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  136. package/dist/esm-es5/zonos-component.entry.js +1 -1
  137. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  138. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  139. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  140. package/dist/esm-es5/zonos-elements.js +1 -1
  141. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  142. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  143. package/dist/esm-es5/zonos-link.entry.js +1 -1
  144. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  145. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  146. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  147. package/dist/scripts/loadZonos.js +1 -1
  148. package/dist/scripts/zonos.js +1 -1
  149. package/dist/scripts/zonosBase.js +1 -1
  150. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +4 -4
  151. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +3 -4
  152. package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +4 -4
  153. package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -3
  154. package/dist/types/components/store/translationStore/strings.base.d.ts +6 -3
  155. package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -3
  156. package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -3
  157. package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -3
  158. package/dist/types/components/store/translationStore/strings.french.d.ts +6 -3
  159. package/dist/types/components/store/translationStore/strings.german.d.ts +6 -3
  160. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -3
  161. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -3
  162. package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -3
  163. package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -3
  164. package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -3
  165. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -3
  166. package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -3
  167. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -3
  168. package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -3
  169. package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -3
  170. package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -3
  171. package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -3
  172. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -3
  173. package/dist/types/components/store/translationStore.d.ts +1 -1
  174. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +1 -0
  175. package/dist/types/components/utils/formatDate.d.ts +1 -1
  176. package/dist/types/types/generated/graphql.customer.types.d.ts +36 -35
  177. package/dist/types/types/generated/graphql.customer.types.ts +100 -99
  178. package/dist/types/types/generated/graphql.frontend.types.d.ts +34 -34
  179. package/dist/types/types/generated/graphql.frontend.types.ts +110 -110
  180. package/dist/zonos-elements/p-066b5ca3.entry.js +1 -0
  181. package/dist/zonos-elements/{p-d8c5b848.entry.js → p-13b55282.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-c93c8ecc.entry.js → p-1a5f8df7.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-a48e7c84.entry.js → p-24fee841.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-393a8412.system.entry.js → p-262b8e1e.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-e412387c.system.entry.js → p-2693da50.system.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-3921d516.entry.js → p-32b4e9c3.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-ef8affe4.js → p-33abdb30.js} +1 -1
  188. package/dist/zonos-elements/{p-257af88b.entry.js → p-376bdf70.entry.js} +1 -1
  189. package/dist/zonos-elements/p-450942a3.system.js +1 -0
  190. package/dist/zonos-elements/{p-81df5a1b.entry.js → p-46b4010c.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-3d8254a2.system.entry.js → p-46f9c93e.system.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-fe83fc20.js → p-5ff27485.js} +1 -1
  193. package/dist/zonos-elements/{p-1f5c2d7b.entry.js → p-6743734f.entry.js} +1 -1
  194. package/dist/zonos-elements/p-6f5761e8.js +1 -0
  195. package/dist/zonos-elements/{p-94226f90.system.entry.js → p-6fb15797.system.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-ac1bccb6.system.entry.js → p-70ede197.system.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-16b59229.system.entry.js → p-73acb3eb.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-9ee65a0b.system.entry.js → p-7432179a.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-78983c23.entry.js → p-8126011d.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-6847b4e8.system.js → p-8b44e558.system.js} +1 -1
  201. package/dist/zonos-elements/{p-def5023c.entry.js → p-8c568b87.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-4f626a90.system.entry.js → p-92d85125.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-c5bc49b5.system.entry.js → p-95c864ca.system.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-808413f8.entry.js → p-9b385237.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-85c2b823.entry.js → p-9fc92940.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-cd449b56.entry.js → p-ad0a2581.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-6fd110c3.entry.js → p-b4c3dcda.entry.js} +1 -1
  208. package/dist/zonos-elements/p-b8e8330b.system.js +1 -1
  209. package/dist/zonos-elements/{p-ae707165.entry.js → p-bc3a0f7c.entry.js} +1 -1
  210. package/dist/zonos-elements/p-c6170bec.system.js +1 -0
  211. package/dist/zonos-elements/{p-bc2bd266.system.entry.js → p-c9e137e1.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-4fbc3ea7.system.entry.js → p-d1ba7e52.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-6a429588.system.entry.js → p-d29895ed.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-8cb8fa93.entry.js → p-dac861bb.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-b5b09a07.system.entry.js → p-e010f227.system.entry.js} +1 -1
  216. package/dist/zonos-elements/{p-30d04ce6.system.entry.js → p-e8a41797.system.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-2aa3c0e8.system.entry.js → p-eff12c31.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-8cfec6b6.system.entry.js → p-f2b60329.system.entry.js} +1 -1
  219. package/dist/zonos-elements/zonos-elements.css +11 -15
  220. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  221. package/package.json +1 -1
  222. package/dist/esm-es5/cart-1b0aaea9.js +0 -1
  223. package/dist/esm-es5/sendErrorLog-4e7a8e6e.js +0 -1
  224. package/dist/zonos-elements/p-5247c5ab.entry.js +0 -1
  225. package/dist/zonos-elements/p-659e81b2.js +0 -1
  226. package/dist/zonos-elements/p-86867593.system.js +0 -1
  227. package/dist/zonos-elements/p-f28970e2.system.js +0 -1
@@ -38,7 +38,7 @@ const ZonosLinkAuthentication = /*@__PURE__*/ proxyCustomElement(class ZonosLink
38
38
  }
39
39
  render() {
40
40
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
41
- return (h(Host, { key: '675de93a982a3cc558b64f24971441c227955e6f', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: 'd75a5a301e869325c9a249275ce10d4905c0198c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'fbf58d00fa76d7e715f2d1056a298840043e1056', class: "zonos--link-authentication-component" })));
41
+ return (h(Host, { key: '97c3c388d1a035e6a46ecdbd3bc66d80a589b19f', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: 'e799af821045b2c1792d2971843afa0c7d3ece5b', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'eaf9be27a11d279c13f261e1312ee8a46e4620f7', class: "zonos--link-authentication-component" })));
42
42
  }
43
43
  get el() { return this; }
44
44
  static get watchers() { return {
@@ -14,7 +14,7 @@ const ZonosLink$1 = /*@__PURE__*/ proxyCustomElement(class ZonosLink extends HTM
14
14
  this.linkTitle = undefined;
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '7af1c9dfc60d61837c25ed586b34d03737e190b7', class: "zonos--elements" }, h("a", { key: '6be4c2839936832d9d512e9afe4b8fe4e69889bf', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '897ec8e65f325161cf80d71b6efbcf05c4a444ae' }))));
17
+ return (h(Host, { key: 'af4c861f0a7f0a86c60c2ba6fe12a37721d50c1b', class: "zonos--elements" }, h("a", { key: 'b8fc607e0aa5269f2c3c1ccf51e233b52fac6693', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '98ebca9c8962143426fd1c88d9189b92fc402505' }))));
18
18
  }
19
19
  static get style() { return ZonosLinkStyle0; }
20
20
  }, [1, "zonos-link", {
@@ -17,11 +17,11 @@ const ZonosLogo$1 = /*@__PURE__*/ proxyCustomElement(class ZonosLogo extends HTM
17
17
  const filterColor = this.theme === 'DARK'
18
18
  ? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
19
19
  : 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
20
- return (h(Host, { key: 'eb9e895db6d309b91f24aaba07b6bef785d64982', class: classes(['zonos--elements zonos--logo']), style: {
20
+ return (h(Host, { key: 'c196e8372ff0f602b135c582a1a4cdf2ba75274d', class: classes(['zonos--elements zonos--logo']), style: {
21
21
  '--filter-color': filterColor,
22
22
  '--font-family': zonosStoreFontFamily(),
23
23
  '--width': this.width,
24
- } }, h("img", { key: '411e92bcfdab9d8b7362b3fbeeffb836d8d20756', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
24
+ } }, h("img", { key: '668abac552ed1e133f29b0b0aa8f17d158c5441b', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
25
25
  }
26
26
  static get assetsDirs() { return ["assets"]; }
27
27
  static get style() { return ZonosLogoStyle0; }
@@ -39,7 +39,7 @@ const ZonosPayment = /*@__PURE__*/ proxyCustomElement(class ZonosPayment extends
39
39
  }
40
40
  render() {
41
41
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
42
- return (h(Host, { key: '4886087d915369f60296b6ba86fe9400ae6db8dd', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'ac83371e795b8ae833087143c719cf6dfc066ab3', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '2895560e50d856a071bef08c800b3112899e22e8', class: "zonos--payment-component" })));
42
+ return (h(Host, { key: '2ac7d34f60a5e4fc21fed92218e8b467e49bee33', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'a0360edd61bf571645fbc0781a43a94cf02e9acc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '41a1daa79d640eecf197e520145c41cf957fbee1', class: "zonos--payment-component" })));
43
43
  }
44
44
  get el() { return this; }
45
45
  static get watchers() { return {
@@ -20,9 +20,9 @@ const ZonosSelectDialogHeader = /*@__PURE__*/ proxyCustomElement(class ZonosSele
20
20
  this.label = '';
21
21
  }
22
22
  render() {
23
- return (h(Host, { key: 'cd3cc096f08cdb3dd2170d9e8d578f603155b0d0', class: "zonos--elements", style: {
23
+ return (h(Host, { key: 'c571a648772792abb553c87a9c238e36d2fd63fb', class: "zonos--elements", style: {
24
24
  '--font-family': zonosStoreFontFamily(),
25
- } }, h("zonos-v-stack", { key: '40ddbfe738428ca388cb4b3a8244d86e5e26d876', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '4706e9acb42c11b213044084e25be8a5c13119f1', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'b5c5289219bb4ff380aa5e3c0738ae9029d00cdf', type: "boldLabel" }, this.label), h("zonos-button", { key: '6d8c62ee077ab7883081a693825a00fd06cded69', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '42241292083a7041d600ac4af3034e61c5d4a6b1' }))));
25
+ } }, h("zonos-v-stack", { key: 'f8d2c7a95bb985e17c7c6fa4fdeb2d6c692dd266', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: 'dd87a6fd7d2f84e907b99a440e62b1260273ae0d', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'a5573f14f446c343bf7d5ed7f1c4564788435513', type: "boldLabel" }, this.label), h("zonos-button", { key: '3edfd71ce5da3a2366c856ca739aaea928a836de', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '155ec43e2791f871a4182edff8a6dd2304951f72' }))));
26
26
  }
27
27
  static get style() { return ZonosSelectDialogHeaderStyle0; }
28
28
  }, [1, "zonos-select-dialog-header", {
@@ -9,7 +9,7 @@ import { d as defineCustomElement$3 } from './zonos-shipping-rich-radio2.js';
9
9
  import { d as defineCustomElement$2 } from './zonos-spinner2.js';
10
10
  import { d as defineCustomElement$1 } from './zonos-text2.js';
11
11
 
12
- const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{-webkit-box-shadow:0 0 1px 0 var(--amino-gray-600);box-shadow:0 0 1px 0 var(--amino-gray-600)}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";
12
+ const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--error-banner.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{-webkit-box-shadow:0 0 1px 0 var(--amino-gray-600);box-shadow:0 0 1px 0 var(--amino-gray-600)}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";
13
13
  const ZonosShippingStyle0 = zonosShippingCss;
14
14
 
15
15
  const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping extends HTMLElement {
@@ -34,13 +34,27 @@ const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping exten
34
34
  return;
35
35
  }
36
36
  this.isSelecting = false;
37
- this.disabled = false;
37
+ };
38
+ this.handleValidate = () => {
39
+ return !!this.selectedShippingMethod;
38
40
  };
39
41
  /**
40
42
  * handler for continue button click
41
43
  */
42
44
  this.continueClickHandler = () => {
45
+ var _a;
46
+ // show error banner if the form is not complete
47
+ if (!this.handleValidate()) {
48
+ this.showErrorBanner = true;
49
+ return;
50
+ }
51
+ this.showErrorBanner = false;
43
52
  this.continueClicked.emit();
53
+ // submit google tag when the form is complete
54
+ submitGtag('zonos-checkout-shipping-info');
55
+ void trackConversionEvent('checkout_shippingInfoCompleted', {
56
+ serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
57
+ });
44
58
  };
45
59
  this.initServiceLevels = () => {
46
60
  var _a;
@@ -72,37 +86,26 @@ const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping exten
72
86
  this.submitBtnType = undefined;
73
87
  this.selectedShippingMethod = null;
74
88
  this.isSelecting = false;
75
- this.disabled = true;
89
+ this.showErrorBanner = false;
76
90
  this.serviceLevels = [];
77
91
  }
78
- watchFormComplete() {
79
- var _a;
80
- if (!this.disabled) {
81
- // submit google tag when the form is complete
82
- submitGtag('zonos-checkout-shipping-info');
83
- void trackConversionEvent('checkout_shippingInfoCompleted', {
84
- serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
85
- });
86
- }
87
- }
88
92
  componentWillLoad() {
89
93
  this.initServiceLevels();
90
94
  const selectedServiceLevel = this.serviceLevels.find(item => { var _a; return item.value === ((_a = cartStore.selectedShippingOption) === null || _a === void 0 ? void 0 : _a.id); }) || null;
91
95
  if (selectedServiceLevel) {
92
96
  this.selectedShippingMethod = selectedServiceLevel;
93
97
  }
94
- // enable continue button if there is a selected shipping option
95
- this.disabled = !selectedServiceLevel;
96
98
  }
97
99
  render() {
98
- var _a, _b;
99
- return (h(Host, { key: '0ded6474793fbb142e8e9a3bc10f1b5ae88858a7', class: "zonos--shipping zonos--elements" }, h("div", { key: '334d49db61fe69bf43f2bf68828c724cb7c9851e', class: "zonos--group" }, h("zonos-text", { key: '57ac7f10aff623a7e9c009bee86a4e88c979417f', class: "zonos--title", type: "semiBoldSubheader" }, translate('Shipping information')), h("zonos-text", { key: 'bb7679250828b859f90940617dc03c20addb6252', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !((_a = this.serviceLevels) === null || _a === void 0 ? void 0 : _a.length) ? (h("zonos-banner", { bannerTitle: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), intent: "error" })) : (h("zonos-shipping-rich-radio", { initialSelectedValue: (_b = this.selectedShippingMethod) === null || _b === void 0 ? void 0 : _b.value, items: this.serviceLevels, onRadioSelected: e => this.handleRadioSelected(e) })), h("div", { key: 'ace80fcc503601d577fb7751777b00331c027f16', class: "zonos--group-btn" }, h("zonos-button", { key: 'd48000ef65953b5f99d95c4b404bb7a47351dbce', backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
100
+ var _a, _b, _c;
101
+ // start validate on typing after error banner is shown, and hide it if the form is complete
102
+ if (this.showErrorBanner) {
103
+ this.showErrorBanner = !this.handleValidate();
104
+ }
105
+ return (h(Host, { key: 'c172dbd75de8a0d5d32d7e3e1814a124aaa05c05', class: "zonos--shipping zonos--elements" }, h("div", { key: '3dbbfadac7c8fb2bd4f3337206da535add7c4dd5', class: "zonos--group" }, h("zonos-text", { key: '93c2e9f56359a0c046e23a0e8c70af9af2dad3f4', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!((_a = this.serviceLevels) === null || _a === void 0 ? void 0 : _a.length) && (h("zonos-banner", { key: 'dc0aa4f036719929344071fe68dd8bf98d493642', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '98dd599d8a87e3a350b928a5d0d9300aa197d731', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !((_b = this.serviceLevels) === null || _b === void 0 ? void 0 : _b.length) ? (h("zonos-banner", { bannerTitle: translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), intent: "error" })) : (h("zonos-shipping-rich-radio", { initialSelectedValue: (_c = this.selectedShippingMethod) === null || _c === void 0 ? void 0 : _c.value, items: this.serviceLevels, onRadioSelected: e => this.handleRadioSelected(e) })), h("div", { key: 'a59a2833967bde37cd2b31dca4209e8730ec92dc', class: "zonos--group-btn" }, h("zonos-button", { key: 'ef100ac737c28901f609b188bfa0b9e58d4363e8', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
100
106
  // use primary type when on mobile mode
101
107
  variant: this.submitBtnType }, translate('Go to payment'))))));
102
108
  }
103
- static get watchers() { return {
104
- "disabled": ["watchFormComplete"]
105
- }; }
106
109
  static get style() { return ZonosShippingStyle0; }
107
110
  }, [2, "zonos-shipping", {
108
111
  "continueLoading": [4, "continue-loading"],
@@ -110,10 +113,8 @@ const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping exten
110
113
  "submitBtnType": [1, "submit-btn-type"],
111
114
  "selectedShippingMethod": [32],
112
115
  "isSelecting": [32],
113
- "disabled": [32],
116
+ "showErrorBanner": [32],
114
117
  "serviceLevels": [32]
115
- }, undefined, {
116
- "disabled": ["watchFormComplete"]
117
118
  }]);
118
119
  function defineCustomElement() {
119
120
  if (typeof customElements === "undefined") {
@@ -15,10 +15,10 @@ const ZonosTooltip = /*@__PURE__*/ proxyCustomElement(class ZonosTooltip extends
15
15
  this.showTooltip = false;
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: '5226e33bb8f9280965b254c51235c38e2e5f6ab6', class: "zonos--elements" }, h("div", { key: 'fd9bc052cc1081cbd87eaa3f4e6f0f53070c5b53', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '82d9885a2afb7e28707ddf6b24cb7c2dc148ef33' }), h("div", { key: 'c59b3beaca558dc95149455c9a15a8ce26bb0d70', class: classes([
18
+ return (h(Host, { key: '3b1bc52074428e85d2e3939b0fb6dbf4e8146e1c', class: "zonos--elements" }, h("div", { key: 'ded9a789ec041c9bd01c4a225ad0706a097c2215', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '2052001f18e774bf5f364f2f94fb83fbc161e510' }), h("div", { key: 'ed207e64c5361aadf6deb25574b736bbbb32cf49', class: classes([
19
19
  this.showTooltip && 'zonos--show-tooltip',
20
20
  'zonos--tooltip-content',
21
- ]) }, h("zonos-text", { key: 'f5213ba0f401359e5bccd289df3eae18e7b18a1d', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '3bfad7df7cf6715230ffc0bc1c0b49b8900955b7', size: "xs", textColor: "gray-0" }, this.subtitle)))));
21
+ ]) }, h("zonos-text", { key: 'c2b064cac7a7851bbb8cd55ec116655160fffe6b', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: 'e03b47929a5b1856b6770e97403c85088d6a6c77', size: "xs", textColor: "gray-0" }, this.subtitle)))));
22
22
  }
23
23
  static get style() { return ZonosTooltipStyle0; }
24
24
  }, [1, "zonos-tooltip", {
@@ -13,9 +13,9 @@ const VStack = /*@__PURE__*/ proxyCustomElement(class VStack extends HTMLElement
13
13
  this.spacing = 24;
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: '415d652d553042161ef364e2a8ccd226fcfe3d84', style: {
16
+ return (h(Host, { key: '39a71bdb43f87fd7beec0370aa384a94c7603417', style: {
17
17
  '--font-family': zonosStoreFontFamily(),
18
- } }, h("div", { key: '1d8df528db72b8c1102742203eb53ce81efb1aae', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '66d247c7e8c8da9e311014695ce3a50b38709c33' }))));
18
+ } }, h("div", { key: '37ef89d4d2aecfebbf6a47f1754ce5f45fcd2566', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'd34be5394fef1bf5e7f37cb6dbd468ae48454df8' }))));
19
19
  }
20
20
  static get style() { return ZonosVStackStyle0; }
21
21
  }, [1, "zonos-v-stack", {