@zonos/elements 1.3.133 → 1.3.135

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 (197) hide show
  1. package/dist/cjs/{CheckoutConfig-1d38a21d.js → CheckoutConfig-165db6b6.js} +1 -1
  2. package/dist/cjs/{cart-1bab358a.js → cart-0f32f556.js} +1 -1
  3. package/dist/cjs/{handleFetch-a8dfb07c.js → handleFetch-4a90f091.js} +1 -1
  4. package/dist/cjs/index.cjs.js +43 -40
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/{paypal-f1874626.js → paypal-045033fb.js} +2 -2
  7. package/dist/cjs/zonos-address_7.cjs.entry.js +11 -11
  8. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  9. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  10. package/dist/cjs/zonos-card.cjs.entry.js +4 -4
  11. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +39 -22
  12. package/dist/cjs/zonos-checkout.cjs.entry.js +25 -5
  13. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  17. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  20. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
  23. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  27. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +25 -7
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +22 -1
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +2 -2
  33. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  34. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  35. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  36. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  37. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  38. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  39. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  40. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  41. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  42. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  43. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  44. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  45. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  46. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  47. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  48. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  49. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  50. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  51. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  52. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  53. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  54. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  55. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  56. package/dist/collection/components/main/zonos-controller.js +1 -1
  57. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  58. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  59. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +2 -2
  60. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  61. package/dist/collection/components/utils/logging/sendErrorLog.js +1 -1
  62. package/dist/collection/scripts/{_overrideWithTestPublicCredential.js → _getWithTestPublicCredential.js} +9 -9
  63. package/dist/collection/scripts/_zonosBase.js +5 -2
  64. package/dist/collection/types/generated/graphql.frontend.types.js +3 -0
  65. package/dist/collection/types/generated/graphql.internal.types.js +1 -0
  66. package/dist/esm/{CheckoutConfig-56c63bdf.js → CheckoutConfig-930107d4.js} +1 -1
  67. package/dist/esm/{cart-a5a8ec74.js → cart-3e0e4d5c.js} +1 -1
  68. package/dist/esm/{handleFetch-40fc3562.js → handleFetch-22cb914b.js} +1 -1
  69. package/dist/esm/index.js +44 -41
  70. package/dist/esm/loader.js +1 -1
  71. package/dist/esm/{paypal-828b4297.js → paypal-7f41ff20.js} +2 -2
  72. package/dist/esm/zonos-address_7.entry.js +11 -11
  73. package/dist/esm/zonos-badge.entry.js +3 -3
  74. package/dist/esm/zonos-button_3.entry.js +3 -3
  75. package/dist/esm/zonos-card.entry.js +4 -4
  76. package/dist/esm/zonos-cart-items_13.entry.js +39 -22
  77. package/dist/esm/zonos-checkout.entry.js +25 -5
  78. package/dist/esm/zonos-collapse.entry.js +2 -2
  79. package/dist/esm/zonos-component.entry.js +1 -1
  80. package/dist/esm/zonos-controller.entry.js +3 -3
  81. package/dist/esm/zonos-country-flag.entry.js +2 -2
  82. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  83. package/dist/esm/zonos-elements.js +1 -1
  84. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  85. package/dist/esm/zonos-hello.entry.js +2 -2
  86. package/dist/esm/zonos-input.entry.js +4 -4
  87. package/dist/esm/zonos-language-select_2.entry.js +6 -6
  88. package/dist/esm/zonos-link.entry.js +1 -1
  89. package/dist/esm/zonos-logo.entry.js +2 -2
  90. package/dist/esm/zonos-notification_3.entry.js +5 -5
  91. package/dist/esm/zonos-toggle.entry.js +2 -2
  92. package/dist/esm/zonos-tooltip.entry.js +2 -2
  93. package/dist/esm/zonos-v-stack.entry.js +2 -2
  94. package/dist/esm-es5/{CheckoutConfig-56c63bdf.js → CheckoutConfig-930107d4.js} +1 -1
  95. package/dist/esm-es5/{cart-a5a8ec74.js → cart-3e0e4d5c.js} +1 -1
  96. package/dist/esm-es5/handleFetch-22cb914b.js +1 -0
  97. package/dist/esm-es5/index.js +1 -1
  98. package/dist/esm-es5/loader.js +1 -1
  99. package/dist/esm-es5/{paypal-828b4297.js → paypal-7f41ff20.js} +1 -1
  100. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  101. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  102. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  103. package/dist/esm-es5/zonos-card.entry.js +1 -1
  104. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  105. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  106. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  107. package/dist/esm-es5/zonos-component.entry.js +1 -1
  108. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  109. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  110. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  111. package/dist/esm-es5/zonos-elements.js +1 -1
  112. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  113. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  114. package/dist/esm-es5/zonos-input.entry.js +1 -1
  115. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  116. package/dist/esm-es5/zonos-link.entry.js +1 -1
  117. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  118. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  119. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  120. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  121. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  122. package/dist/scripts/index.js +1 -1
  123. package/dist/scripts/loadZonos.js +1 -1
  124. package/dist/scripts/zonos.js +1 -1
  125. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +9 -0
  126. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -0
  127. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  128. package/dist/types/scripts/_getWithTestPublicCredential.d.ts +4 -0
  129. package/dist/types/types/generated/graphql.frontend.types.d.ts +27 -1
  130. package/dist/types/types/generated/graphql.frontend.types.ts +43 -1
  131. package/dist/types/types/generated/graphql.internal.types.d.ts +1 -1
  132. package/dist/types/types/generated/graphql.internal.types.ts +2 -4
  133. package/dist/zonos-elements/index.esm.js +1 -1
  134. package/dist/zonos-elements/{p-f0ea7e98.system.entry.js → p-05826697.system.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-0082eefd.system.entry.js → p-1360c4b5.system.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-eb6d1e26.system.entry.js → p-1393d259.system.entry.js} +1 -1
  137. package/dist/zonos-elements/{p-4953542e.system.entry.js → p-16e5df29.system.entry.js} +1 -1
  138. package/dist/zonos-elements/{p-4794c0ab.system.js → p-1856c3fa.system.js} +1 -1
  139. package/dist/zonos-elements/{p-22458c90.system.entry.js → p-1ac0f941.system.entry.js} +1 -1
  140. package/dist/zonos-elements/{p-3cfa90d1.system.entry.js → p-22d099fb.system.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-d963d9d4.entry.js → p-22e2f162.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-92fbf9e6.entry.js → p-234b3f74.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-c39dc3e9.system.entry.js → p-24488838.system.entry.js} +1 -1
  144. package/dist/zonos-elements/{p-3a89fb48.system.entry.js → p-31a776aa.system.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-31e85dce.system.entry.js → p-3a5fb01a.system.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-937d08c1.entry.js → p-3f2ea446.entry.js} +1 -1
  147. package/dist/zonos-elements/{p-db70f65a.system.entry.js → p-49cecdf9.system.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-bdc7e244.system.entry.js → p-4b680c1e.system.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-3efbcf88.system.entry.js → p-5775cd68.system.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-7b2ee5b0.js → p-69045ca3.js} +1 -1
  151. package/dist/zonos-elements/{p-f7f481be.entry.js → p-6b8db2d3.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-0cf44851.entry.js → p-84df573a.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-fe899c47.entry.js → p-856bf7a4.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-adf7262a.entry.js → p-85fbb5f0.entry.js} +1 -1
  155. package/dist/zonos-elements/p-860e46ab.js +1 -0
  156. package/dist/zonos-elements/{p-dd517bcb.js → p-8759f66b.js} +1 -1
  157. package/dist/zonos-elements/{p-78227a4e.system.entry.js → p-887b05eb.system.entry.js} +1 -1
  158. package/dist/zonos-elements/{p-817741b7.entry.js → p-897c809a.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-db5e0d2b.entry.js → p-95f26bc3.entry.js} +1 -1
  160. package/dist/zonos-elements/p-99d47e1c.entry.js +1 -0
  161. package/dist/zonos-elements/{p-4170b042.entry.js → p-a0cc4dd2.entry.js} +1 -1
  162. package/dist/zonos-elements/p-a0de6e0f.system.entry.js +1 -0
  163. package/dist/zonos-elements/{p-b3edff32.system.entry.js → p-a28f3298.system.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-f61c142c.system.entry.js → p-aaa3addd.system.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-0cfab69e.entry.js → p-acae88db.entry.js} +1 -1
  166. package/dist/zonos-elements/p-acb45eb6.system.entry.js +1 -0
  167. package/dist/zonos-elements/{p-40579074.entry.js → p-b1bb00a8.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-68cfdd01.system.entry.js → p-b500f0d1.system.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-0e067b2e.entry.js → p-b6fea87a.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-942a0605.js → p-b7307c61.js} +1 -1
  171. package/dist/zonos-elements/{p-fb6cf324.entry.js → p-b9e4e410.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-40596087.system.js → p-bb418544.system.js} +1 -1
  173. package/dist/zonos-elements/{p-6b00344a.entry.js → p-bbd5119f.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-320e7cb9.system.entry.js → p-be468605.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-c127846c.entry.js → p-bec4d2c7.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-e5f27005.system.entry.js → p-c0719959.system.entry.js} +1 -1
  177. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  178. package/dist/zonos-elements/{p-e933cbf0.system.entry.js → p-de020c11.system.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-311f6702.entry.js → p-e44ab8b8.entry.js} +1 -1
  180. package/dist/zonos-elements/p-e9db73d9.entry.js +1 -0
  181. package/dist/zonos-elements/{p-1da0c1cb.entry.js → p-f9f48476.entry.js} +1 -1
  182. package/dist/zonos-elements/p-fa41d3e4.system.js +1 -0
  183. package/dist/zonos-elements/{p-81bb0bde.system.js → p-fa790aaf.system.js} +1 -1
  184. package/dist/zonos-elements/p-fb7d8b52.entry.js +1 -0
  185. package/dist/zonos-elements/p-febc72e7.system.js +1 -0
  186. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  187. package/package.json +1 -1
  188. package/dist/esm-es5/handleFetch-40fc3562.js +0 -1
  189. package/dist/types/scripts/_overrideWithTestPublicCredential.d.ts +0 -4
  190. package/dist/zonos-elements/p-0cfb97ae.js +0 -1
  191. package/dist/zonos-elements/p-3972da4c.entry.js +0 -1
  192. package/dist/zonos-elements/p-6305e92c.system.js +0 -1
  193. package/dist/zonos-elements/p-8aaada48.system.entry.js +0 -1
  194. package/dist/zonos-elements/p-b2641a83.entry.js +0 -1
  195. package/dist/zonos-elements/p-e052f141.system.entry.js +0 -1
  196. package/dist/zonos-elements/p-f5a5e20b.system.js +0 -1
  197. package/dist/zonos-elements/p-fa4b0119.entry.js +0 -1
@@ -27,17 +27,17 @@ const ZonosInput = class {
27
27
  this.inputChange.emit(newValue);
28
28
  }
29
29
  render() {
30
- return (index.h(index.Host, { key: '402137e0e5b191d36b4d51619d29f05ef050f114', class: classes.classes([
30
+ return (index.h(index.Host, { key: '70d14250b09b4c2e8e865c00d10015f6d0f9a8da', class: classes.classes([
31
31
  'zonos--input zonos--elements',
32
32
  this.inputSize,
33
33
  this.isError && 'has-error',
34
34
  ]), style: {
35
35
  '--zonos--border-radius': getBorderRadius.getBorderRadius(),
36
36
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
37
- } }, index.h("div", { key: '601de098f0929c7e0e89efc63a0ffd5f9dc14428', class: classes.classes([
37
+ } }, index.h("div", { key: '1a7020e339f23c1aba8004b613ac4252a51e0686', class: classes.classes([
38
38
  'zonos--label-wrapper',
39
39
  this.isDisabled && 'disabled',
40
- ]) }, index.h("input", { key: '151162f4e5052f1cef11efd4666dfa6e89df4b25', class: classes.classes([
40
+ ]) }, index.h("input", { key: '6a4ffdb5c8f2d0058bc7ebde5427a749cedd62d1', class: classes.classes([
41
41
  'zonos--floated-input',
42
42
  !!this.inputLabel && 'has-label',
43
43
  this.inputValue && 'has-content',
@@ -45,7 +45,7 @@ const ZonosInput = class {
45
45
  ]), disabled: this.isDisabled, onInput: e => {
46
46
  const input = e.target;
47
47
  this.inputChange.emit(input.value);
48
- }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), index.h("label", { key: '65f207f694763f7505c75a13a2be5c24d57ec9c1', class: "zonos--floated-label", "data-label": this.inputLabel }))));
48
+ }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), index.h("label", { key: '62408e5b16c51f9ccb88066e384391fc7c96f0ec', class: "zonos--floated-label", "data-label": this.inputLabel }))));
49
49
  }
50
50
  get el() { return index.getElement(this); }
51
51
  static get watchers() { return {
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-1bab358a.js');
6
+ const cart = require('./cart-0f32f556.js');
7
7
  const zonosStore = require('./zonosStore-293bb3ba.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
- require('./handleFetch-a8dfb07c.js');
9
+ require('./handleFetch-4a90f091.js');
10
10
  require('./isDarkColor-dd6d723b.js');
11
11
  require('./getBorderRadius-f72d8edf.js');
12
12
 
@@ -31,9 +31,9 @@ const ZonosLanguageSelect = class {
31
31
  }
32
32
  render() {
33
33
  const { selectedLocale } = cart.localizationStore;
34
- return (index.h(index.Host, { key: 'eaca22844486965ba2b78c46571cdecd1f3002e7', class: "zonos--elements", style: {
34
+ return (index.h(index.Host, { key: '38bd8435fdeb1a017b9ed7253d599b99f370a0b6', class: "zonos--elements", style: {
35
35
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
36
- } }, index.h("div", { key: '2846ee489019e8c83d7b64b8a29dc67353b8f8c0', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '72c36cbf777562c15346c26716e07469a5889f8d', handleOnClose: () => this.handleOnClose(), label: cart.translate('Select a language') }), index.h("div", { key: 'd84fda6dc4aceaec2b3b8fda359ca60f78db448a', class: "zonos--language-select-content" }, ILanguage.languages.map(language => (index.h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, index.h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (index.h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
36
+ } }, index.h("div", { key: 'c7cffeecf5da28e323f60a5b4e3b292cfbe900bc', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '331f76a0a0a57cbd9dbd282ba854956c183a75dd', handleOnClose: () => this.handleOnClose(), label: cart.translate('Select a language') }), index.h("div", { key: '15743243ddbfb50dd533cf91254d6e41db7597a5', class: "zonos--language-select-content" }, ILanguage.languages.map(language => (index.h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, index.h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (index.h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
37
37
  }
38
38
  };
39
39
  ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
@@ -50,9 +50,9 @@ const ZonosSelectDialogHeader = class {
50
50
  this.label = '';
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, { key: 'fbc386d771a9f1ee4b145b54c53a3ce31ac4aae5', class: "zonos--elements", style: {
53
+ return (index.h(index.Host, { key: '82ed89ddf7915df04bad887c887edb2cdd116ff8', class: "zonos--elements", style: {
54
54
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
55
- } }, index.h("zonos-v-stack", { key: 'ed5cab44fd2b06a3d700602f4cb501608205e5b6', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, index.h("div", { key: 'c2345cdad3bd812d7add7029b1f37d2f623de310', class: "zonos--select-dialog-header" }, index.h("zonos-text", { key: 'c43a9009db5e83ea96bc683ff99a36c4fcdef6fc', type: "boldLabel" }, this.label), index.h("zonos-button", { key: '6884b1569d52688dbc74ee3772755e37eadb1e79', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), index.h("slot", { key: '8af3df1a34ea6da62be137313e0c42cc90ba704d' }))));
55
+ } }, index.h("zonos-v-stack", { key: '6c91fb64db203a773f2fb375059173f2e0a4b7db', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, index.h("div", { key: 'b26a23574556b119e27bf5fb0cb5308709b0eb73', class: "zonos--select-dialog-header" }, index.h("zonos-text", { key: '3347503084cae69ccfca1fe5a503174e2acecc3c', type: "boldLabel" }, this.label), index.h("zonos-button", { key: '66e91d6c0a46407cc88c4d269d880eaa27b650db', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), index.h("slot", { key: '2db7470d4893918939dd54d2f2e994f49517def9' }))));
56
56
  }
57
57
  };
58
58
  ZonosSelectDialogHeader.style = ZonosSelectDialogHeaderStyle0;
@@ -16,7 +16,7 @@ const ZonosLink = class {
16
16
  this.linkTitle = undefined;
17
17
  }
18
18
  render() {
19
- return (index.h(index.Host, { key: 'bba0da02c0dee468bd0cacd268f339f7ec4f1008', class: "zonos--elements" }, index.h("a", { key: '19515197e397b2b24237e77d3e89de75382c14e1', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: '63d597a3091e954c9302e461030646b38ee2396e' }))));
19
+ return (index.h(index.Host, { key: '9c08d2689b011f162ef47271bd50e9e1fc2d177f', class: "zonos--elements" }, index.h("a", { key: 'ad0a8003308783081a7070bb9f06cd2387bb3a78', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: 'd54f21f0f36196b9b5a0bf7f63a989e9dd1c411e' }))));
20
20
  }
21
21
  };
22
22
  ZonosLink.style = ZonosLinkStyle0;
@@ -19,11 +19,11 @@ const ZonosLogo = class {
19
19
  const filterColor = this.theme === 'DARK'
20
20
  ? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
21
21
  : 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
22
- return (index.h(index.Host, { key: 'd914d74b5aee16c30242fe3fad20b917c020b5c5', class: classes.classes(['zonos--elements zonos--logo']), style: {
22
+ return (index.h(index.Host, { key: 'ef19703a0588e4010e50c2e4bef5abe9eb48efc7', class: classes.classes(['zonos--elements zonos--logo']), style: {
23
23
  '--zonos--filter-color': filterColor,
24
24
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
25
25
  '--zonos--width': this.width,
26
- } }, index.h("img", { key: '39f9bd18354de97a358432e9daf3373dfb6914b6', alt: "Zonos Logo", src: index.getAssetPath('./assets/ZonosLogo.png') })));
26
+ } }, index.h("img", { key: 'b14760baccb072ab399d11432fbc4c3c9c8ee876', alt: "Zonos Logo", src: index.getAssetPath('./assets/ZonosLogo.png') })));
27
27
  }
28
28
  static get assetsDirs() { return ["assets"]; }
29
29
  };
@@ -6,9 +6,9 @@ const index = require('./index-d56e0a8b.js');
6
6
  const zonosStore = require('./zonosStore-293bb3ba.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-f72d8edf.js');
9
- const cart = require('./cart-1bab358a.js');
10
- const handleFetch = require('./handleFetch-a8dfb07c.js');
11
- const paypal = require('./paypal-f1874626.js');
9
+ const cart = require('./cart-0f32f556.js');
10
+ const handleFetch = require('./handleFetch-4a90f091.js');
11
+ const paypal = require('./paypal-045033fb.js');
12
12
  require('./isDarkColor-dd6d723b.js');
13
13
 
14
14
  const zonosNotificationCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999999;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(--zonos--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)}";
@@ -111,7 +111,7 @@ const ZonosPayment = class {
111
111
  }
112
112
  render() {
113
113
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
114
- return (index.h(index.Host, { key: 'cf616ec959fd1b7396ed86b23561f459e0da8722', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: 'e5564db71ba2c0d67d372cb1804d6d462cdf1b33', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: '3ea47f2c0a541590210d181bc73ecb3fb27e7783', class: "zonos--payment-component" }), index.h("div", { key: 'd3a46a127448568caf4309806e88556594075c12', class: "zonos--payment-paypal-container" })));
114
+ return (index.h(index.Host, { key: '8688b2ce3087fb2265b1b84229a3af6f6cba39e6', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: '7b6bc40043d7d14e55faa7e60b85cdc60d56d00a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: '39df45805f365e761f0001c075f94e0bdf99fabb', class: "zonos--payment-component" }), index.h("div", { key: 'a9e7d56ba2b0050926121e3ab8a61cbace9a6a14', class: "zonos--payment-paypal-container" })));
115
115
  }
116
116
  get el() { return index.getElement(this); }
117
117
  static get watchers() { return {
@@ -165,7 +165,7 @@ const ZonosPaypalPayment = class {
165
165
  void this.loadPaypal();
166
166
  }
167
167
  render() {
168
- return (index.h(index.Host, { key: 'a09fe5b66b1ac971c10529ecb6213479f2870f08', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: '6ba337785b8a90965e0cba05fd62681bc92633fe', class: "zonos--payment-paypal-container" })));
168
+ return (index.h(index.Host, { key: '6bfc962de500edbb105b7eb899711e48def78167', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: '92d1b1c416f5e233c54e50d47129be375ef0a68b', class: "zonos--payment-paypal-container" })));
169
169
  }
170
170
  get el() { return index.getElement(this); }
171
171
  };
@@ -17,9 +17,9 @@ const ZonosToggle = class {
17
17
  this.value = undefined;
18
18
  }
19
19
  render() {
20
- return (index.h(index.Host, { key: 'c49d16b02ca854ead2b2652cc1e39a423fd67251', class: classes.classes(['zonos--elements zonos--toggle']), style: {
20
+ return (index.h(index.Host, { key: '4b224821c94249757cbd19e27a75af29c9fbab25', class: classes.classes(['zonos--elements zonos--toggle']), style: {
21
21
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
22
- } }, index.h("div", { key: 'cda75445836db4a4d8466e840eac952a18b3ad48', class: "wrapper" }, this.options.map(option => {
22
+ } }, index.h("div", { key: 'e8a3a44ccfebef2f06d94938c19aaf640d844d9e', class: "wrapper" }, this.options.map(option => {
23
23
  const selected = option.value === this.value;
24
24
  return (index.h("button", { class: classes.classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
25
25
  this.toggleChanged.emit(option.value);
@@ -16,10 +16,10 @@ const ZonosTooltip = class {
16
16
  this.showTooltip = false;
17
17
  }
18
18
  render() {
19
- return (index.h(index.Host, { key: '24f3b1f73cc320540ab3700213004c267ea04658', class: "zonos--elements" }, index.h("div", { key: '7f52acf90cb5b9f1fd5efdc4fedc4d61a893a646', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '1871529e8b75c44a71bf1f5bc9e60b81bbc598d2' }), index.h("div", { key: 'c0b9c9c1b3fef5f766d2bad4c5bea48f3d6bbb6f', class: classes.classes([
19
+ return (index.h(index.Host, { key: '091516a0a68f8b4ab2580a8118900c34b39e931c', class: "zonos--elements" }, index.h("div", { key: '77769b18201f87d601d5bdb860a4bc8c84bb4e90', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '139c1de415b94e12b8d575e3662cba9faf56cb2f' }), index.h("div", { key: '60c38adf74e9b776001844c2205ac87a4562b525', class: classes.classes([
20
20
  this.showTooltip && 'zonos--show-tooltip',
21
21
  'zonos--tooltip-content',
22
- ]) }, index.h("zonos-text", { key: '3b106cb439877dffa101f15fb01aff980a64c7cb', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: 'c0005051e6e1b614b7739718e1a262f6043d56f5', size: "xs", textColor: "gray-0" }, this.subtitle)))));
22
+ ]) }, index.h("zonos-text", { key: 'bb87c44ee7831c24b47c43b17d2b04c79112e900', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '5d114d284a15a1661e926bfe5fae9251513c7370', size: "xs", textColor: "gray-0" }, this.subtitle)))));
23
23
  }
24
24
  };
25
25
  ZonosTooltip.style = ZonosTooltipStyle0;
@@ -15,9 +15,9 @@ const VStack = class {
15
15
  this.spacing = 24;
16
16
  }
17
17
  render() {
18
- return (index.h(index.Host, { key: '1c12857cdab3dcbfae5135d40cbf276451bbcf81', style: {
18
+ return (index.h(index.Host, { key: '99d265d6cc1c8f746217f3f42d21b8d7d5ba70b6', style: {
19
19
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
20
- } }, index.h("div", { key: '8c88f2390c758ed9961daf1d9f5cadb3bd67b928', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: 'fa31c9a430b53b837d840827097a56acbd033b8e' }))));
20
+ } }, index.h("div", { key: 'f935f28aebb85434e71afcc52b7dc4463df8eb4a', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: '53f2a34378fcd8b291446bf8293e89307bc15d1f' }))));
21
21
  }
22
22
  };
23
23
  VStack.style = ZonosVStackStyle0;
@@ -56,13 +56,22 @@ export class ZonosCheckoutFinish {
56
56
  }
57
57
  window.location.href = url;
58
58
  };
59
+ this.isRedirectBehavior = () => {
60
+ const { successBehavior } = zonosStore.checkoutSettings;
61
+ return (successBehavior === 'REDIRECT_TO_SUCCESS_PAGE' ||
62
+ !!cartStore.externalConfirmationPageURL);
63
+ };
59
64
  /**
60
65
  * It would make more sense to have keep shopping button if the success behavior is not redirecting to a different page
61
66
  */
62
67
  this.shouldRenderKeepShoppingButton = () => {
63
- const { successBehavior } = zonosStore.checkoutSettings;
64
- return (successBehavior === 'ZONOS_SUCCESS_PAGE' ||
65
- successBehavior === 'CLOSE_MODAL');
68
+ return !this.isRedirectBehavior();
69
+ };
70
+ /**
71
+ * Should render close button for redirect behavior when the success behavior is redirecting to a different page
72
+ */
73
+ this.shouldRenderCloseButtonForRedirectBehavior = () => {
74
+ return this.isRedirectBehavior();
66
75
  };
67
76
  this.handleSuccessBehavior = async () => {
68
77
  var _a, _b;
@@ -86,14 +95,20 @@ export class ZonosCheckoutFinish {
86
95
  ];
87
96
  // stop loading spinner to show the redirecting notification
88
97
  this.isLoading = false;
98
+ // Make the close button to spin
99
+ this.isWaitingToRedirect = true;
89
100
  // override title if notification type is success
90
101
  this.useOverrideSuccessNotification();
91
102
  // attempt to pull order info before redirecting
92
103
  await this.getPullOrder();
93
104
  // If order is still not ready, should not redirect with no order id as merchant would show an error page and customer may think the order was not placed and retry
94
105
  if (!this.order) {
106
+ log('=== Order info not found, not redirecting, hide spinner for close button', 'error');
107
+ // Allow user to close the modal
108
+ this.isWaitingToRedirect = false;
95
109
  return;
96
110
  }
111
+ this.isWaitingToRedirect = false;
97
112
  const legacyOrderNumber = ((_b = (_a = this.order.references) === null || _a === void 0 ? void 0 : _a.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _b === void 0 ? void 0 : _b.value) || null;
98
113
  const queryParams = new URLSearchParams();
99
114
  if (this.order.id) {
@@ -132,6 +147,7 @@ export class ZonosCheckoutFinish {
132
147
  const checkoutSessionId = cartStore.checkoutSessionId;
133
148
  const maxRetries = parseFloat(new URLSearchParams(window.location.search).get('maxPollingRetries') ||
134
149
  '0') || MAX_RETRIES;
150
+ log(`=== Polling order (${attempts} attemps)`, 'info');
135
151
  if (
136
152
  // Order found and was regular checkout user
137
153
  (order && !isLegacyCheckout) ||
@@ -303,6 +319,7 @@ export class ZonosCheckoutFinish {
303
319
  this.notificationMessages = [];
304
320
  this.notificationActionText = translate('Keep shopping');
305
321
  this.order = null;
322
+ this.isWaitingToRedirect = true;
306
323
  }
307
324
  componentDidLoad() {
308
325
  // Reset local storage for placed order info
@@ -324,12 +341,12 @@ export class ZonosCheckoutFinish {
324
341
  }
325
342
  render() {
326
343
  const isTestMode = getIsTestMode();
327
- return (h(Host, { key: '09ad6462aeafdfa1be8b0f0e34159aa74934b85c', class: "zonos--checkout-finish zonos--elements", style: {
344
+ return (h(Host, { key: '9c674bb1bcb7092f95aef959219da8d692bc2e05', class: "zonos--checkout-finish zonos--elements", style: {
328
345
  '--zonos--border-radius': getBorderRadius({
329
346
  overrideBorderStyle: this.borderRadius,
330
347
  }),
331
- } }, !this.isLoading && (h("div", { key: '81df3ec5804d346938cd0052232446500805e5dd', class: "zonos--finish-details" }, h("div", { key: '49f0b91cd04f2f6e1291de3c542cec6ed1f3c0a9', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '398e803727b65d2dd7da40bb37e25702f69009d6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '75ee45470ceca25057259916c76dd227f62b7276', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), !window.Zonos.isLegacyCheckout &&
332
- this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'cd792a9dd314e291d0957e0859e3b0e088cf1767', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'b54c583f058c23b2b5001179acac0c98780b1ded', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '2405f70c3143725d51d6f6a5e5a440350aeb9b80', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'c977d79e45170cce70695006de1274ef7cc39df4', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
348
+ } }, !this.isLoading && (h("div", { key: '93e895750b6c5999b98d9b935a69e7d0cbc5b299', class: "zonos--finish-details" }, h("div", { key: 'bdbcaaebceca8684b82cac779294ebd4e24ba5be', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'cb2d9fe1fee223009cfa9ed626412f3955e0dbe6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: 'dbe3e7c64f16be7202768e82f0a822ca700785ef', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: '236865b9375c9813da53e1fa3ae54e55ceed1b7a', loading: this.isWaitingToRedirect, onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
349
+ this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '8b7f92e8d32ae14bf3470154db960f93b3d812f6', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'cf35bd1f5e8b6318b4dee4d72dd3124ec44e3de1', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '940f58f8983d3f66eda5bc06049047615a153083', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '2423551be1dcdffc987ec19f632a7faec804bc2d', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
333
350
  }
334
351
  static get is() { return "zonos-checkout-finish"; }
335
352
  static get encapsulation() { return "shadow"; }
@@ -417,7 +434,8 @@ export class ZonosCheckoutFinish {
417
434
  "notificationTitle": {},
418
435
  "notificationMessages": {},
419
436
  "notificationActionText": {},
420
- "order": {}
437
+ "order": {},
438
+ "isWaitingToRedirect": {}
421
439
  };
422
440
  }
423
441
  static get events() {
@@ -33,10 +33,10 @@ export class ZonosCheckoutFooter {
33
33
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
34
34
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
35
35
  const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
36
- return (h(Host, { key: '43ce81796f2534226d03420dbaa8d8d37161f64a', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: 'c20e95a6ad27bccc7b23ae14ce9bea9319327dd4', class: "zonos--checkout-footer" }, h("div", { key: 'fa95241196ab3fff6c6520cbe083199a418f1f6c', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '7c12428aa768eb81a9ecec798575109be5811a2c', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: '4615354c98cd5617343db83743e4d177d893f712', class: classes([
36
+ return (h(Host, { key: '348667bda79c9d8c69f1481262f3dd74068b4f16', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: '8751d01d35e0ca75ab4f3866d2964fbbe9cabd91', class: "zonos--checkout-footer" }, h("div", { key: '0745cc39cb134d0dee746d6e8dbe75192c226e7b', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: 'a1a6ba67ad35c4e3e04959e5895a959c5b3fa4b3', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: 'e82c276c99eb723af2be002f8f749bf7e6e005c3', class: classes([
37
37
  'zonos--checkout-footer-dialog',
38
38
  this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
39
- ]) }, h("zonos-language-select", { key: '35b0c80d3b20167991391f336d0eda178857047c', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '333f9da8e9aeb6286e52145630ec7e9ec8aabff6', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: 'b6de914d3f4886151e5b780de7f517e158e83173', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'b6aba4130c0f1f22dd6644002f752630d3d8524f', textColor: colorDesktop }, "Privacy policy")), h("div", { key: 'b44e2b03aa2e156076f27737be4d82dd62a98f0b', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: '22cee8f4bdc69c38a9f5ab5affaaf9fd23fe70e3', textColor: colorDesktop }, "Powered by"), h("a", { key: '87fe092647de1fcc9ac6e3bf3ff00b9014f67560', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'b35efd69f13b4623ef40f42b12f83a8a9506f725', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
39
+ ]) }, h("zonos-language-select", { key: '06b1f71758b9a33472abfda47c5fb130b8474179', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'b004d2333b89c6e002023a161b24738e0508f631', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: 'f2bfc5e8d20756634285e754272422241220c13f', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '714bb78e7c7a20db9c94ff04397f16cf947f3dba', textColor: colorDesktop }, "Privacy policy")), h("div", { key: '072d318b06cf86a8d7e75184b2386042ce1a3329', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: '9c85ede9edd9217cd45bce8277f9ce042dce75ee', textColor: colorDesktop }, "Powered by"), h("a", { key: '2f5a8fbf27c9a3137bba6a2bf52976f4c5bab780', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'e59cc91b07f606e034d0909b50a8ac735c84f38c', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
40
40
  }
41
41
  static get is() { return "zonos-checkout-footer"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -16,6 +16,7 @@ import { watchBigcommerceDomesticCheckout } from "../../utils/checkout/watchBigc
16
16
  import { classes } from "../../utils/classes";
17
17
  import { createCustomEvent } from "../../utils/createCustomEvent";
18
18
  import { getBorderRadius } from "../../utils/getBorderRadius";
19
+ import { handleFetch } from "../../utils/handleFetch";
19
20
  import { getZCountryUrlParam } from "../../utils/hello/getZCountryUrlParam";
20
21
  import { isDarkColor } from "../../utils/isDarkColor";
21
22
  import { jsonParse } from "../../utils/jsonParse";
@@ -43,6 +44,7 @@ export class ZonosCheckout {
43
44
  * Listener for locale change in localization store
44
45
  */
45
46
  this.onChangeLocaleListener = () => { };
47
+ this.isRedirectAfterOrder = false;
46
48
  this.applyStripeTheme = async () => {
47
49
  var _a, _b, _c, _d;
48
50
  const theme = ((_a = this.appearanceSettingsOverride) === null || _a === void 0 ? void 0 : _a.theme) || zonosStore.appearance.theme;
@@ -241,6 +243,9 @@ export class ZonosCheckout {
241
243
  }
242
244
  // apply theme to stripe elements
243
245
  await this.applyStripeTheme();
246
+ this.isRedirectAfterOrder =
247
+ zonosStore.checkoutSettings.successBehavior ===
248
+ 'REDIRECT_TO_SUCCESS_PAGE' || !!cartStore.externalConfirmationPageURL;
244
249
  return true;
245
250
  }
246
251
  reloadCheckoutSession() {
@@ -271,6 +276,22 @@ export class ZonosCheckout {
271
276
  confirmProceedWithOrderDuplication() {
272
277
  // Reset the placed order info
273
278
  this.placedOrderInfo = null;
279
+ if (!cartStore.checkoutSessionId) {
280
+ return;
281
+ }
282
+ // Record the order duplication consent so we know user did see the notification and proceed with the order duplication
283
+ void handleFetch('/api/zonos-elements/update-checkout-session-metadata', {
284
+ body: {
285
+ id: cartStore.checkoutSessionId,
286
+ metadata: [
287
+ {
288
+ key: 'orderDuplicationConsent',
289
+ value: '1',
290
+ },
291
+ ],
292
+ },
293
+ method: 'POST',
294
+ });
274
295
  }
275
296
  handleCancelOrderDuplication() {
276
297
  var _a;
@@ -795,7 +816,7 @@ export class ZonosCheckout {
795
816
  } }), h("zonos-collapse", {
796
817
  // only collapsible on mobile
797
818
  collapsed: this.collapseReviewMobile && this.isMobile
798
- }, h("zonos-cart-items", null), this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", { submitBtnColor: submitButtonColor }), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))))), h("zonos-cart-restricted-items", null), !this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", null), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))))))), (cartStore.step === 'finish' || cartStore.step === 'error') && (h("div", { class: "zonos--done", "data-theme": rightSideTheme }, h("div", { class: "zonos--header" }, renderLogo(), h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.handleFinishClick(), theme: rightSideTheme })), h("zonos-checkout-finish", { borderRadius: style, onCloseClick: () => this.handleFinishClick(), overrideNotification: cartStore.step === 'error' && !!cartStore.error
819
+ }, h("zonos-cart-items", null), this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", { submitBtnColor: submitButtonColor }), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))))), h("zonos-cart-restricted-items", null), !this.isMobile && (h("zonos-v-stack", { spacing: 16 }, h("zonos-cart-subtotal", null), h("zonos-custom-message", { class: "zonos--checkout-default-message", icon: MessageIcon, message: defaultMessage }))))))), (cartStore.step === 'finish' || cartStore.step === 'error') && (h("div", { class: "zonos--done", "data-theme": rightSideTheme }, h("div", { class: "zonos--header" }, renderLogo(), !this.isRedirectAfterOrder && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.handleFinishClick(), theme: rightSideTheme }))), h("zonos-checkout-finish", { borderRadius: style, onCloseClick: () => this.handleFinishClick(), overrideNotification: cartStore.step === 'error' && !!cartStore.error
799
820
  ? Object.assign(Object.assign({}, cartStore.error), { type: 'error' }) : undefined, storybookForceStatus: this.storybookPaymentStatusOverride }))), h("zonos-checkout-footer", { "data-theme": rightSideTheme, mobile: this.isMobile,
800
821
  /**
801
822
  * For this component, use slot instead of passing JSX through prop of other component. Because
@@ -169,13 +169,13 @@ export class ZonosShipping {
169
169
  if (this.showErrorBanner) {
170
170
  this.showErrorBanner = !this.handleValidate();
171
171
  }
172
- return (h(Host, { key: '1a4721f877f6ec6a82cf3d280f73d6c0beb093d2', class: "zonos--shipping zonos--elements" }, h("div", { key: '97477ecd56c30af140aa5797dc60ff9c27500f8c', class: "zonos--group" }, h("zonos-text", { key: '3041eae048928c7a48d0449015043f4e3ba84579', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { key: '045c89abf1610df69d9bdac288d235705a325fa5', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: 'ccb50e1734d2ab81363ace6fd35071ac760d85bf', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.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.'), class: "zonos--shipping-method-error", intent: "error" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
172
+ return (h(Host, { key: '2a2502057e42ab9599273aa20fecad1e4a624616', class: "zonos--shipping zonos--elements" }, h("div", { key: 'b8e2c23a7092c1bce11497b9e0829fe966a10e0e', class: "zonos--group" }, h("zonos-text", { key: '5ce02ba2ba39c878262e0d3a0f1ac98b6759296d', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { key: '8309265ef50d333aca63e32f41d0ca09a73777f7', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: '55ccd680f24867269ec806e0a2e20c3edb4c70ea', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.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.'), class: "zonos--shipping-method-error", intent: "error" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
173
173
  !!this.serviceLevelsDAP.length && (h("button", { class: classes([
174
174
  'zonos--shipping-options-collapse-trigger',
175
175
  this.collapsedDAPOptions && 'collapsed',
176
176
  ]), onClick: () => {
177
177
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
178
- } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: 'adf857b2d728ae34da27be04f67547fba42e26c0', class: "zonos--group-btn" }, h("zonos-button", { key: '5d8dec320202c3f43ea598f2183631b04da0dd7f', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
178
+ } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: '83a39e45d68dc4267efbf5392e3b18b75fd9cfe9', class: "zonos--group-btn" }, h("zonos-button", { key: '8872a09e5562f4165f10137cd549da1180c8d37c', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
179
179
  // use primary type when on mobile mode
180
180
  variant: this.submitBtnType }, translate('Go to payment'))))));
181
181
  }
@@ -15,16 +15,16 @@ export class ZonosBadge {
15
15
  this.dismissHandler = undefined;
16
16
  }
17
17
  render() {
18
- return (h(Host, { key: 'ef7686107447f0d7b0fb090d1995ea66ab9d9147', class: classes(['zonos--elements zonos--badge']), style: {
18
+ return (h(Host, { key: 'ece8d31a527ef8fbd014669176c293798948c377', class: classes(['zonos--elements zonos--badge']), style: {
19
19
  '--zonos--font-family': zonosStoreFontFamily(),
20
- } }, h("div", { key: '78dd37a1413c192fba84ba17e068cdd07bc54db1', class: classes([
20
+ } }, h("div", { key: 'ae8c2e468abcf3c9aac336ccc28da4166ebd87f3', class: classes([
21
21
  'zonos--badge-content',
22
22
  this.badgeColor,
23
23
  this.rounded && 'rounded',
24
24
  this.iconRight && 'icon-right',
25
25
  this.size,
26
26
  this.bold && 'bold',
27
- ]) }, this.icon, h("zonos-text", { key: '10ee8b496e4db3d9550d9e46859446ba4c91a823', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'c9341850364d8e289d7c3569ebb41e37e2e1d99b' })), this.dismissHandler && (h("zonos-icon", { key: '85f69b0f3c31ce57978a078eb96ee856da1555a2', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
27
+ ]) }, this.icon, h("zonos-text", { key: 'a1e710722e04c5ca32bc9c2731815da7de450ee0', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'c3a277e50a1619899e76934e2f994c82dae5ddee' })), this.dismissHandler && (h("zonos-icon", { key: 'ee9fe774fdd59d94082bed6eb38d9f96ce33c67c', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
28
28
  }
29
29
  static get is() { return "zonos-badge"; }
30
30
  static get encapsulation() { return "shadow"; }
@@ -121,12 +121,12 @@ export class ZonosButton {
121
121
  const borderStyle = getBorderRadius({
122
122
  overrideBorderStyle: this.borderStyle,
123
123
  });
124
- return (h(Host, { key: 'a862db0549563c67361d2f93baf6bed668a9a561', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
124
+ return (h(Host, { key: '8228acc5ae59602336dc70227b3cc8c54e7455ed', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
125
125
  '--zonos--background-color': backgroundColor,
126
126
  '--zonos--border-radius': borderStyle,
127
127
  '--zonos--color': color,
128
128
  '--zonos--font-family': zonosStoreFontFamily(),
129
- }) }, h("button", { key: 'e848c5d69708b8eee9a2be1c1649eb0f9c85dae0', class: classes([
129
+ }) }, h("button", { key: '0875fde30fd6d60a49a4850fd5d55450549664a7', class: classes([
130
130
  this.hasIcon && 'has-icon',
131
131
  this.hasContent && 'has-content',
132
132
  this.noBackground && 'no-background',
@@ -141,7 +141,7 @@ export class ZonosButton {
141
141
  backgroundColor && variant === 'standard' && 'override-background',
142
142
  ]), disabled: disabled, style: {
143
143
  justifyContent: this.justifyContent,
144
- } }, this.loading && (h("div", { key: '3d6af592a449d698a205bb327ee3f29b57a406ff', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'c4e28edbbed061e57ad6c6f532887b74441e4acc', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'dbbf5f30085d61932505f8724473bb61dd67c7b7', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
144
+ } }, this.loading && (h("div", { key: '15f53929fe9d1bcc49c5b36a29a8c15d8673321f', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '56c605d60ad2046a5075ab48712d7e0faeb83bc2', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '1fd882d57cd362e8ccc79e8c21498d290062d31d', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
145
145
  }
146
146
  static get is() { return "zonos-button"; }
147
147
  static get encapsulation() { return "shadow"; }
@@ -22,16 +22,16 @@ export class ZonosCard {
22
22
  customRoundRadius: `${this.borderRadius}px`,
23
23
  overrideBorderStyle: 'ROUNDED',
24
24
  });
25
- return (h(Host, { key: '84d131edbe30a0ce9869351c197c438082bcadac', style: {
25
+ return (h(Host, { key: '28c01fb7c6cb96ddeae955f2dd8a7820a921f84a', style: {
26
26
  '--zonos--font-family': zonosStoreFontFamily(),
27
- } }, h("div", { key: 'c1ab46423b1716badf577b51c1e10a59f6d857c7', class: classes(['styled-card']), style: {
27
+ } }, h("div", { key: '6b23cbc03edf841f8243d766083265f9da9a207a', class: classes(['styled-card']), style: {
28
28
  '--zonos--background-color': backgroundColor,
29
29
  '--zonos--border-radius': borderRadius,
30
30
  padding: this.spacing,
31
- } }, this.label && (h("header", { key: '3f86015a24d5d86f41955c57a96c1051aa8cd0fb', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '697b450d8c77935d602a2c6fc11279c38a558f8e', type: "subheader" }, this.label), h("h-stack", { key: 'ef44ce7c7d1fd3d8f683656c2156f0b24232b6c0', spacing: 8 }, this.actions))), h("slot", { key: '1e5bc6315fcc134e5a7c608547ea2f481ecb91df' }), (this.footerActions || this.footerContent) && (h("footer", { key: 'aabb9ec4c7f1122662ac13655caa4cd3557266cc', class: "card-footer", style: {
31
+ } }, this.label && (h("header", { key: '1b5d4007d73c1351bd92c8d39ccc3db37718dfdf', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '0fcbf910bd3ff5b37e35ca57202f2aded644c21f', type: "subheader" }, this.label), h("h-stack", { key: '64104e8d79e35adc420a6fa57204d70e8d84606d', spacing: 8 }, this.actions))), h("slot", { key: '64e7072f30efb2c60ac754512a03648125e1388c' }), (this.footerActions || this.footerContent) && (h("footer", { key: '7ab89016f8dbb8f5af65b28e2095163e8f908c86', class: "card-footer", style: {
32
32
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
33
33
  padding: this.spacing,
34
- } }, h("div", { key: 'c92b803303485ce25b66dad4237411e3c4d5c15c' }, this.footerContent), h("h-stack", { key: '12c395e0b5c537f991d6814352f62d3da15432a1', spacing: 8 }, this.footerActions))))));
34
+ } }, h("div", { key: 'd04e37cf5af9dd0e560f687837e0f2a56bd120ed' }, this.footerContent), h("h-stack", { key: '234c78bb23f4124809c86df4c78fb4f5f6832884', spacing: 8 }, this.footerActions))))));
35
35
  }
36
36
  static get is() { return "zonos-card"; }
37
37
  static get encapsulation() { return "shadow"; }
@@ -36,14 +36,14 @@ export class ZonosCheckbox {
36
36
  customRoundRadius: '4px',
37
37
  overrideBorderStyle: this.borderStyle,
38
38
  });
39
- return (h(Host, { key: 'a863e05a6e647b9ea8ef8902a4c618f6998894cd', class: classes(['zonos--elements zonos--checkbox']), style: {
39
+ return (h(Host, { key: 'a5ac0531735ec33f61886845af2ca061dc08ddd3', class: classes(['zonos--elements zonos--checkbox']), style: {
40
40
  '--zonos--background-color': backgroundColor,
41
41
  '--zonos--border-radius': borderStyle,
42
42
  '--zonos--font-family': zonosStoreFontFamily(),
43
43
  '--zonos--size': `${this.size}px`,
44
- } }, h("label", { key: '2b84b59d106661937c10e76ccb1c05f887c657ec', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: '1dc2037bf17c37c8f762f2ac28509e3d607c9e61', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
44
+ } }, h("label", { key: 'a43282ec66f0bf45aadea3be194f37dfb71bcae3', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: '1249ee568cd5b503bf40ccfbabd698ad8079f1cb', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
45
45
  this.checkboxSelected.emit(e.target.checked);
46
- }, type: "checkbox" }), h("span", { key: '75175e238cbe841c11f43392797a2126d1cd65a8', class: "checkmark-container" }, h("svg", { key: '5e853c2248dd1777f0b4029a1b7beeb0fb8a0e1c', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '367494224e826b903acb560cbb93f532502aa4d2', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '573cfdccbd768246996bff4eaed8064b67e90009', size: this.fontSize }, this.label)))));
46
+ }, type: "checkbox" }), h("span", { key: '65b6fb17e7ebb7160ce891d3f86a8ca0453a2f87', class: "checkmark-container" }, h("svg", { key: '9e58246871517832dfae28a92d9c4177e09eb095', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'c11830908d0dbfc929b77025b42a930f243cc587', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: 'af6464b76512b252b0adf24d04b17884f7af60f4', size: this.fontSize }, this.label)))));
47
47
  }
48
48
  static get is() { return "zonos-checkbox"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -64,17 +64,17 @@ export class ZonosCheckoutProgressTabs {
64
64
  color: labelSelectedColor,
65
65
  })
66
66
  : labelSelectedColor;
67
- return (h(Host, { key: '2b92000ea02fe5efcd8c8b4cab82253344fb9fba', class: "zonos--elements", style: {
67
+ return (h(Host, { key: '9470ce01401994f374045f8017403c532032a018', class: "zonos--elements", style: {
68
68
  '--zonos--color': contrastLabelColor,
69
69
  '--zonos--progress-percent': this.getTotalSuccessStep(),
70
- } }, h("div", { key: '2d10ca52da867104ebec46ea6406fcb1688d96d6', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
70
+ } }, h("div", { key: '0008a7049833c6a149c236b692bb9bdfb30e2fb9', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
71
71
  const isSelected = tab.value === selectedStep;
72
72
  return (h("button", { class: classes([
73
73
  'zonos--tab-item',
74
74
  tab.value === selectedStep && 'selected',
75
75
  tab.isDone && 'done',
76
76
  ]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cartStore.step = tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, translate(tab.label))));
77
- })), h("div", { key: 'cb87fe27155f6d6a02ec668d1750a1fd397652a0', class: "zonos--tab-progress" }, h("div", { key: 'd260e03cbb980b35f4c8047233a4e54714a8a756', class: "zonos--progress-bar-fill" }))));
77
+ })), h("div", { key: 'ebc812e43e69a0e30814ad87697cd189cec773bf', class: "zonos--tab-progress" }, h("div", { key: '8a526bd9f0def3558e8652d408b001fbd0f1b332', class: "zonos--progress-bar-fill" }))));
78
78
  }
79
79
  static get is() { return "zonos-checkout-progress-tabs"; }
80
80
  static get encapsulation() { return "shadow"; }
@@ -42,10 +42,10 @@ export class ZonosCollapse {
42
42
  // set overflow to hidden to prevent content from showing when collapsed
43
43
  this.el.style.overflow = 'hidden';
44
44
  }
45
- return (h(Host, { key: '4362f714c77107361d6a12b37611d443b3913360', class: 'zonos--elements zonos--collapse', style: {
45
+ return (h(Host, { key: '441ae4124bc658957136dae338ab1b22a72f7458', class: 'zonos--elements zonos--collapse', style: {
46
46
  '--zonos--font-family': zonosStoreFontFamily(),
47
47
  height: this.getElementHeight(),
48
- } }, h("div", { key: '0d66a5810e4d4e5485680eb07dd4201001ddeeb3' }, h("iframe", { key: '8ca06be959cfbb3d791bc93b9db9e6abc820466f', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'cd8be075228fdd276b7d2f12929e49847d7a8b2d' }))));
48
+ } }, h("div", { key: 'a2771dd846a0e3b5e476d7c8a555539da292a6d6' }, h("iframe", { key: 'a4a140435d6bac406c144a01b9cb6702e8e60474', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: '4c91a4473d3ea25b7dfd4c54a2dbdbeca4439d12' }))));
49
49
  }
50
50
  static get is() { return "zonos-collapse"; }
51
51
  static get encapsulation() { return "shadow"; }
@@ -83,13 +83,13 @@ export class ZonosConfirmDialog {
83
83
  const borderStyle = getBorderRadius();
84
84
  // Get theme for the update dialog, inherit from the theme, no from this component theme
85
85
  const theme = getZonosStoreTheme(zonosStore.appearance.theme);
86
- return (h(Host, { key: '6fbde5144cb14f8c418f4108037866d8d5b9a403', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
86
+ return (h(Host, { key: 'b53eb5a4ba60e5ca33e5b9295d8ce19425008b8d', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
87
87
  '--zonos--border-radius': borderStyle,
88
88
  '--zonos--dialog-width': `${this.dialogWidth}px`,
89
89
  '--zonos--font-family': zonosStoreFontFamily(),
90
- } }, h("div", { key: '972e16777f091277e935ba2cf779b98c03f1b8d9', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'a88ae021456007ae9ddfcf6ab778539c1500afa2', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '1613ef615b0dc37e90858b7e91699d62e88abce7', class: "zonos--confirm-dialog", onBlur: () => {
90
+ } }, h("div", { key: '46c0992f489fb28fad0d66096ec2b1510211610e', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '090956fa755d30988a24ca394b0347dff88863ac', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '57d5f2426877eed074c8f28a5435f0c26eb39d3d', class: "zonos--confirm-dialog", onBlur: () => {
91
91
  this.focusDialog();
92
- } }, h("div", { key: '02d698138743f985dc232f19336b848b68d01fc1', class: "wrapper" }, h("div", { key: '29126adc0d48657e01bc645f2b272ae895adb053', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '2ba6eb8d4669ea346fae88bc60d79feb97aca3c2', class: "content" }, h("div", { key: 'c8b4552f75713f621bb57281b5187d13255b4a7e', class: "title" }, h("zonos-text", { key: '97543734f7870a6aec308bfc0e1b0146f77612be', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '8dec061fd863eedcde33653c2f06ce6bead894e4', class: "subtitle" }, h("zonos-text", { key: '354bd2b34a2f4673dd74569d4bde114535bdcf08', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: 'b0dd25b3f2848c057ea1d949bb2904fdc0850ca8', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: 'a3c9c2cd7a051aa63126d42e55d4ffbef68ffbaf', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '4a0d517ab5932deb0cb4c78d02e28b7d8307dbe0', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
92
+ } }, h("div", { key: '9989ec7f2b2485643cb0f06a4e36bc988b545a20', class: "wrapper" }, h("div", { key: '2f94abade0676cd863477c3b2030c0c04a746fbe', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '8826ac1a2ee3f54d2ae4b093f95137d42391221e', class: "content" }, h("div", { key: '02666146c0099cdc2828e22fcbb33baaf06c9a0f', class: "title" }, h("zonos-text", { key: '858617e7f7a56cbded100e3b27e359968bccd782', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '5a897b7ff97ac9aa0b9118dc8b3aef3a12bf06fd', class: "subtitle" }, h("zonos-text", { key: '0bf9a781fa402b7c2c76005b896e25edf566f033', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '25bbcb0b33dc39bd892293f41100754b387d3128', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '23cd44b20343f21c71e0167d0fddb1d2440a6245', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '4ca070aca6b34a7d6841fd034177bc557eadd7f8', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
93
93
  }
94
94
  static get is() { return "zonos-confirm-dialog"; }
95
95
  static get encapsulation() { return "shadow"; }
@@ -44,9 +44,9 @@ export class ZonosCountrySelect {
44
44
  ? fuseObject.map(country => country.item)
45
45
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
46
46
  const isEmpty = !filteredCountries.length;
47
- return (h(Host, { key: 'd2c7e2e16fc85fc8d606110a225660e8681bb1cd', class: "zonos--elements", style: {
47
+ return (h(Host, { key: 'ba350a068e05a5f98aba19702aa1fb485cbd7672', class: "zonos--elements", style: {
48
48
  '--zonos--font-family': zonosStoreFontFamily(),
49
- } }, h("div", { key: '362b75ddd36ee67c0d9110353636dca3baa33ea3', class: "zonos--country-select" }, h("zonos-v-stack", { key: '5a1129ee4c1b4c4164144c510b6d694e8cbcc51c', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: 'dc9d35418d2cfe4157cc1f15e2257841495fd94c', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: 'f6cd61f0b9b1bf4c878747c1262e7572589900df', autocomplete: "off", autofocus: "autofocus", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), value: this.inputValue }))), h("div", { key: '418cb6c9e1f69b6d79ea591952ac37d29618915c', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: '32953d9f132413689091bfd5cb08be538f5fb1ec', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: '78c4cfdd6c53c4ea779ee6911402f148a6a0029b', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
49
+ } }, h("div", { key: 'e997a8d0fa0d25c5f3eb3f5a8bc5cdb154fd788f', class: "zonos--country-select" }, h("zonos-v-stack", { key: '332297ccdf0ea81bdfaee93f448d4dc02fb9f960', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '66e86a39b9c309f63d509c8320e333c5b139ec94', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: '64b67b4b797b6df43a40830b41d33271de437abc', autocomplete: "off", autofocus: "autofocus", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), value: this.inputValue }))), h("div", { key: '10d2f74f30e782e867bb555957c74b52ec651889', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: '875e8b15495df5fafe3b02dd11ab1b5f4b9650e3', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: 'aff0ae431a5350996cffa1188ed5d9338a8ca840', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
50
50
  const country = filteredCountries[index];
51
51
  if (!country) {
52
52
  return null;
@@ -8,9 +8,9 @@ export class ZonosCustomMessage {
8
8
  }
9
9
  render() {
10
10
  const messageWithLinks = formatStringWithLinks(this.message);
11
- return (h(Host, { key: '614049a461ddd3d83ac735f57de933a89d76c0e4', class: "zonos--elements", style: {
11
+ return (h(Host, { key: '11d2b3542e2637730acd686cb6f1bc53eb388a9a', class: "zonos--elements", style: {
12
12
  '--zonos--font-family': zonosStoreFontFamily(),
13
- } }, this.message && (h("zonos-card", { key: 'a2cd47b27b31a8b9386a69f8a0ebc4e57b9d08b4', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '6336e3d3250f0b242f629c1d3656b46966fc7e8f', class: "zonos--flex-message" }, h("zonos-icon", { key: '6ee749947941aef5f6ed1e2e2b7e37e36c7f4437', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'c2f2981d4e91ee8bf5f981e753269b0e5f6a165e', innerHTML: messageWithLinks }))))));
13
+ } }, this.message && (h("zonos-card", { key: 'a0596fc233b89fba65df031575144b82dbb9a2c5', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: 'eab51ba2e971e8d52abdd72e90d90ad251c034ad', class: "zonos--flex-message" }, h("zonos-icon", { key: '7f0f05190f5453399ab151ecc7bcdabf3e105709', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: '3b750eebd76d5f41874525ffc53ba3ca87244253', innerHTML: messageWithLinks }))))));
14
14
  }
15
15
  static get is() { return "zonos-custom-message"; }
16
16
  static get encapsulation() { return "shadow"; }