@zonos/elements 1.3.142 → 1.3.144

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 (348) hide show
  1. package/dist/cjs/{CheckoutConfig-eaaf62a1.js → CheckoutConfig-d25d548d.js} +13 -3
  2. package/dist/cjs/TaxId-4632639d.js +29 -0
  3. package/dist/cjs/{cart-199b0751.js → cart-2398abd4.js} +547 -42
  4. package/dist/cjs/{createCustomEvent-3e982e57.js → createCustomEvent-7b6fad95.js} +0 -3
  5. package/dist/cjs/{getBorderRadius-f97c99ad.js → getBorderRadius-7d0772bf.js} +1 -1
  6. package/dist/cjs/{handleFetch-864d3c53.js → handleFetch-3673a0c2.js} +30 -1
  7. package/dist/cjs/{index-b678ce0c.js → index-2f90486e.js} +209 -157
  8. package/dist/cjs/index.cjs.js +15 -11
  9. package/dist/cjs/{isDarkColor-434d71dd.js → isDarkColor-2acf30d1.js} +1 -1
  10. package/dist/cjs/loader.cjs.js +2 -2
  11. package/dist/cjs/{paypal-4f1ee604.js → paypal-7ed9dfb7.js} +4 -4
  12. package/dist/cjs/{zonos-address_7.cjs.entry.js → zonos-address_8.cjs.entry.js} +143 -10
  13. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-card.cjs.entry.js +3 -3
  17. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +151 -32
  18. package/dist/cjs/zonos-checkout.cjs.entry.js +36 -16
  19. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-controller.cjs.entry.js +8 -8
  22. package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -6
  23. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  24. package/dist/cjs/zonos-elements.cjs.js +3 -3
  25. package/dist/cjs/{zonos-notification_3.cjs.entry.js → zonos-empty-state-payment_4.cjs.entry.js} +87 -9
  26. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +10 -10
  27. package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
  28. package/dist/cjs/zonos-input.cjs.entry.js +3 -3
  29. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
  30. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  31. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  32. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  33. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-toggle.cjs.entry.js +4 -4
  35. package/dist/cjs/zonos-tooltip.cjs.entry.js +3 -3
  36. package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
  37. package/dist/cjs/{zonosStore-8971eb65.js → zonosStore-46809186.js} +1 -1
  38. package/dist/collection/collection-manifest.json +3 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +5 -1
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +8 -2
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -4
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +2 -0
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +4 -0
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +34 -6
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -0
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +109 -18
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateDarkIcon.svg +22 -0
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/assets/PaymentEmptyStateLightIcon.svg +22 -0
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.css +51 -0
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +90 -0
  51. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +62 -7
  52. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -0
  53. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +32 -1
  54. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +4 -0
  55. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +6 -0
  56. package/dist/collection/components/common/zonos-badge/zonos-badge.js +18 -2
  57. package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -0
  58. package/dist/collection/components/common/zonos-button/zonos-button.js +30 -0
  59. package/dist/collection/components/common/zonos-card/zonos-card.js +20 -4
  60. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +14 -0
  61. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +4 -0
  62. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +4 -0
  63. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +22 -0
  64. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +4 -0
  65. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -0
  66. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -0
  67. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +26 -0
  68. package/dist/collection/components/common/zonos-icon/zonos-icon.js +8 -0
  69. package/dist/collection/components/common/zonos-input/zonos-input.js +12 -0
  70. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -0
  71. package/dist/collection/components/common/zonos-link/zonos-link.js +8 -0
  72. package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -0
  73. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +6 -0
  74. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +4 -0
  75. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +11 -1
  76. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -0
  77. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +162 -0
  78. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +264 -0
  79. package/dist/collection/components/common/zonos-text/zonos-text.js +8 -0
  80. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +6 -2
  81. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +6 -2
  82. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +4 -2
  83. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +12 -4
  84. package/dist/collection/components/component-template/zonos-component/zonos-component.js +7 -1
  85. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +7 -1
  86. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +9 -3
  87. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +17 -5
  88. package/dist/collection/components/main/zonos-controller.js +7 -3
  89. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  90. package/dist/collection/components/store/checkout/cart.js +3 -0
  91. package/dist/collection/components/store/checkout/stripe.js +121 -40
  92. package/dist/collection/components/store/translationStore/strings.arabic.js +21 -0
  93. package/dist/collection/components/store/translationStore/strings.base.js +21 -0
  94. package/dist/collection/components/store/translationStore/strings.chinese.js +21 -0
  95. package/dist/collection/components/store/translationStore/strings.danish.js +21 -0
  96. package/dist/collection/components/store/translationStore/strings.dutch.js +21 -0
  97. package/dist/collection/components/store/translationStore/strings.french.js +21 -0
  98. package/dist/collection/components/store/translationStore/strings.german.js +21 -0
  99. package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -0
  100. package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -0
  101. package/dist/collection/components/store/translationStore/strings.italian.js +21 -0
  102. package/dist/collection/components/store/translationStore/strings.japanese.js +21 -0
  103. package/dist/collection/components/store/translationStore/strings.korean.js +21 -0
  104. package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -0
  105. package/dist/collection/components/store/translationStore/strings.polish.js +21 -0
  106. package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -0
  107. package/dist/collection/components/store/translationStore/strings.russian.js +21 -0
  108. package/dist/collection/components/store/translationStore/strings.spanish.js +21 -0
  109. package/dist/collection/components/store/translationStore/strings.swedish.js +21 -0
  110. package/dist/collection/components/store/translationStore/strings.turkish.js +21 -0
  111. package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -0
  112. package/dist/collection/components/stripe/zonos-address/zonos-address.js +7 -1
  113. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +84 -3
  114. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -1
  115. package/dist/collection/components/utils/api/getCheckoutSession.js +1 -1
  116. package/dist/collection/components/utils/api/placeTestOrder.js +40 -0
  117. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
  118. package/dist/collection/components/utils/checkout/getIsStagingMode.js +1 -0
  119. package/dist/collection/components/utils/checkout/getIsTestMode.js +5 -1
  120. package/dist/collection/components/utils/handleFetch.js +22 -1
  121. package/dist/collection/components/utils/validateEmailValue.js +4 -0
  122. package/dist/collection/scripts/_getTempCartById.js +2 -2
  123. package/dist/collection/scripts/_getWithTestPublicCredential.js +5 -2
  124. package/dist/collection/scripts/cart/_getIsValidCartId.js +11 -0
  125. package/dist/collection/types/checkout/TaxId.js +24 -0
  126. package/dist/collection/types/checkout/api/PlaceTestOrder.js +1 -0
  127. package/dist/collection/types/generated/graphql.internal.types.js +64 -0
  128. package/dist/collection/types/index.js +2 -0
  129. package/dist/esm/{CheckoutConfig-262008fe.js → CheckoutConfig-573bd959.js} +13 -3
  130. package/dist/esm/TaxId-915ef042.js +26 -0
  131. package/dist/esm/{cart-cf87ec6f.js → cart-3427ee25.js} +547 -42
  132. package/dist/esm/{createCustomEvent-31a792d3.js → createCustomEvent-58159025.js} +1 -3
  133. package/dist/esm/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
  134. package/dist/esm/{handleFetch-badf4543.js → handleFetch-b4633675.js} +29 -2
  135. package/dist/esm/{index-986b5ff2.js → index-d82f06f2.js} +209 -157
  136. package/dist/esm/index.js +14 -12
  137. package/dist/esm/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
  138. package/dist/esm/loader.js +3 -3
  139. package/dist/esm/{paypal-b7124cc4.js → paypal-4e2f9753.js} +4 -4
  140. package/dist/esm/{zonos-address_7.entry.js → zonos-address_8.entry.js} +143 -11
  141. package/dist/esm/zonos-badge.entry.js +2 -2
  142. package/dist/esm/zonos-banner.entry.js +2 -2
  143. package/dist/esm/zonos-button_3.entry.js +4 -4
  144. package/dist/esm/zonos-card.entry.js +3 -3
  145. package/dist/esm/zonos-cart-items_13.entry.js +149 -30
  146. package/dist/esm/zonos-checkout.entry.js +34 -14
  147. package/dist/esm/zonos-collapse.entry.js +2 -2
  148. package/dist/esm/zonos-component.entry.js +2 -2
  149. package/dist/esm/zonos-controller.entry.js +8 -8
  150. package/dist/esm/zonos-country-flag.entry.js +6 -6
  151. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  152. package/dist/esm/zonos-elements.js +4 -4
  153. package/dist/esm/{zonos-notification_3.entry.js → zonos-empty-state-payment_4.entry.js} +87 -10
  154. package/dist/esm/zonos-hello-dialog.entry.js +10 -10
  155. package/dist/esm/zonos-hello.entry.js +6 -6
  156. package/dist/esm/zonos-input.entry.js +3 -3
  157. package/dist/esm/zonos-language-select_2.entry.js +6 -6
  158. package/dist/esm/zonos-link.entry.js +1 -1
  159. package/dist/esm/zonos-logo.entry.js +2 -2
  160. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  161. package/dist/esm/zonos-text.entry.js +2 -2
  162. package/dist/esm/zonos-toggle.entry.js +4 -4
  163. package/dist/esm/zonos-tooltip.entry.js +3 -3
  164. package/dist/esm/zonos-v-stack.entry.js +4 -4
  165. package/dist/esm/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
  166. package/dist/esm-es5/CheckoutConfig-573bd959.js +1 -0
  167. package/dist/esm-es5/TaxId-915ef042.js +1 -0
  168. package/dist/esm-es5/cart-3427ee25.js +1 -0
  169. package/dist/esm-es5/createCustomEvent-58159025.js +1 -0
  170. package/dist/esm-es5/{getBorderRadius-4aca63d4.js → getBorderRadius-b32d4218.js} +1 -1
  171. package/dist/esm-es5/handleFetch-b4633675.js +1 -0
  172. package/dist/esm-es5/index-d82f06f2.js +2 -0
  173. package/dist/esm-es5/index.js +1 -1
  174. package/dist/esm-es5/{isDarkColor-4915739f.js → isDarkColor-10f38df6.js} +1 -1
  175. package/dist/esm-es5/loader.js +1 -1
  176. package/dist/esm-es5/{paypal-b7124cc4.js → paypal-4e2f9753.js} +1 -1
  177. package/dist/esm-es5/zonos-address_8.entry.js +1 -0
  178. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  179. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  180. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  181. package/dist/esm-es5/zonos-card.entry.js +1 -1
  182. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  183. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  184. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  185. package/dist/esm-es5/zonos-component.entry.js +1 -1
  186. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  187. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  188. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  189. package/dist/esm-es5/zonos-elements.js +1 -1
  190. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -0
  191. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  192. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  193. package/dist/esm-es5/zonos-input.entry.js +1 -1
  194. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  195. package/dist/esm-es5/zonos-link.entry.js +1 -1
  196. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  197. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  198. package/dist/esm-es5/zonos-text.entry.js +1 -1
  199. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  200. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  201. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  202. package/dist/esm-es5/{zonosStore-708637e7.js → zonosStore-44efd080.js} +1 -1
  203. package/dist/scripts/index.d.ts +170 -0
  204. package/dist/scripts/index.js +1 -1
  205. package/dist/scripts/loadZonos.js +1 -1
  206. package/dist/scripts/zonos.js +1 -1
  207. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
  208. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +18 -0
  209. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.d.ts +13 -0
  210. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +10 -0
  211. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +5 -0
  212. package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +46 -0
  213. package/dist/types/components/store/checkout/cart.d.ts +5 -0
  214. package/dist/types/components/store/checkout/stripe.d.ts +16 -2
  215. package/dist/types/components/store/translationStore/strings.arabic.d.ts +21 -0
  216. package/dist/types/components/store/translationStore/strings.base.d.ts +21 -0
  217. package/dist/types/components/store/translationStore/strings.chinese.d.ts +21 -0
  218. package/dist/types/components/store/translationStore/strings.danish.d.ts +21 -0
  219. package/dist/types/components/store/translationStore/strings.dutch.d.ts +21 -0
  220. package/dist/types/components/store/translationStore/strings.french.d.ts +21 -0
  221. package/dist/types/components/store/translationStore/strings.german.d.ts +21 -0
  222. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +21 -0
  223. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +21 -0
  224. package/dist/types/components/store/translationStore/strings.italian.d.ts +21 -0
  225. package/dist/types/components/store/translationStore/strings.japanese.d.ts +21 -0
  226. package/dist/types/components/store/translationStore/strings.korean.d.ts +21 -0
  227. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +21 -0
  228. package/dist/types/components/store/translationStore/strings.polish.d.ts +21 -0
  229. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +21 -0
  230. package/dist/types/components/store/translationStore/strings.russian.d.ts +21 -0
  231. package/dist/types/components/store/translationStore/strings.spanish.d.ts +21 -0
  232. package/dist/types/components/store/translationStore/strings.swedish.d.ts +21 -0
  233. package/dist/types/components/store/translationStore/strings.turkish.d.ts +21 -0
  234. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +21 -0
  235. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +6 -0
  236. package/dist/types/components/utils/api/placeTestOrder.d.ts +7 -0
  237. package/dist/types/components/utils/checkout/getIsStagingMode.d.ts +1 -0
  238. package/dist/types/components/utils/checkout/getIsTestMode.d.ts +1 -1
  239. package/dist/types/components/utils/validateEmailValue.d.ts +1 -0
  240. package/dist/types/components.d.ts +161 -0
  241. package/dist/types/types/checkout/TaxId.d.ts +20 -0
  242. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -0
  243. package/dist/types/types/checkout/api/CheckoutSession.d.ts +8 -2
  244. package/dist/types/types/checkout/api/PlaceTestOrder.d.ts +7 -0
  245. package/dist/types/types/generated/graphql.internal.types.d.ts +144 -109
  246. package/dist/types/types/generated/graphql.internal.types.ts +180 -99
  247. package/dist/types/types/index.d.ts +2 -0
  248. package/dist/zonos-elements/index.esm.js +1 -1
  249. package/dist/zonos-elements/{p-68d79b58.entry.js → p-00136c20.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-d381288e.entry.js → p-0028d158.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-72256333.entry.js → p-05013308.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-c1b098de.system.js → p-0e6a3cd2.system.js} +1 -1
  253. package/dist/zonos-elements/{p-c0164a3c.system.js → p-12546668.system.js} +1 -1
  254. package/dist/zonos-elements/p-12a6b7bd.system.js +1 -0
  255. package/dist/zonos-elements/p-1423ebbe.js +1 -0
  256. package/dist/zonos-elements/p-18e5b741.system.js +1 -0
  257. package/dist/zonos-elements/p-2deae669.entry.js +1 -0
  258. package/dist/zonos-elements/{p-36dfc7ac.system.js → p-32912caf.system.js} +1 -1
  259. package/dist/zonos-elements/{p-fc4658a6.entry.js → p-36f97fd9.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-983f23a1.system.entry.js → p-3a213429.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-e6554a6f.system.entry.js → p-3aa4841a.system.entry.js} +1 -1
  262. package/dist/zonos-elements/{p-a13d5957.system.entry.js → p-3d221556.system.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-381874b0.system.entry.js → p-41e26cc4.system.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-2d514c1d.system.entry.js → p-463e44b6.system.entry.js} +1 -1
  265. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -0
  266. package/dist/zonos-elements/{p-6271e108.js → p-485d89a4.js} +1 -1
  267. package/dist/zonos-elements/p-48bca3d4.system.entry.js +1 -0
  268. package/dist/zonos-elements/p-4caffd96.system.js +2 -0
  269. package/dist/zonos-elements/{p-0920500d.entry.js → p-50896f89.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-2e152517.system.entry.js → p-515e3606.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-5834c218.system.js +1 -0
  272. package/dist/zonos-elements/p-595f5dd2.js +1 -0
  273. package/dist/zonos-elements/p-5bd927f2.js +1 -0
  274. package/dist/zonos-elements/{p-2761ad55.system.entry.js → p-619c07c6.system.entry.js} +1 -1
  275. package/dist/zonos-elements/{p-2b8cddb7.entry.js → p-69f84611.entry.js} +1 -1
  276. package/dist/zonos-elements/{p-766dd01f.js → p-6c578d26.js} +1 -1
  277. package/dist/zonos-elements/{p-28295342.entry.js → p-709c7e9e.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-0197a9bf.system.entry.js → p-7140439f.system.entry.js} +1 -1
  279. package/dist/zonos-elements/p-7302a081.system.entry.js +1 -0
  280. package/dist/zonos-elements/p-7e47f6cf.entry.js +1 -0
  281. package/dist/zonos-elements/{p-44dd4269.entry.js → p-7f288336.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-0e54432c.system.entry.js → p-81084be5.system.entry.js} +1 -1
  283. package/dist/zonos-elements/p-81a5dd5c.js +1 -0
  284. package/dist/zonos-elements/p-84e5fc0b.entry.js +1 -0
  285. package/dist/zonos-elements/{p-33e1d25e.system.entry.js → p-86e825f0.system.entry.js} +1 -1
  286. package/dist/zonos-elements/{p-0b5f4ca7.system.entry.js → p-91fc6c24.system.entry.js} +1 -1
  287. package/dist/zonos-elements/p-9951462e.entry.js +1 -0
  288. package/dist/zonos-elements/{p-a2bce31d.system.entry.js → p-9cf018c8.system.entry.js} +1 -1
  289. package/dist/zonos-elements/{p-232963d3.system.entry.js → p-9e05e259.system.entry.js} +1 -1
  290. package/dist/zonos-elements/{p-6b490b0a.system.entry.js → p-a8cf3542.system.entry.js} +1 -1
  291. package/dist/zonos-elements/p-ab68ad11.js +2 -0
  292. package/dist/zonos-elements/{p-4b685549.js → p-b0616716.js} +1 -1
  293. package/dist/zonos-elements/{p-1e3ea4ae.entry.js → p-b12fbc07.entry.js} +1 -1
  294. package/dist/zonos-elements/{p-d198421b.system.entry.js → p-b2292b70.system.entry.js} +1 -1
  295. package/dist/zonos-elements/{p-58a09715.entry.js → p-b262b93e.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-545c05ce.entry.js → p-b288c2ed.entry.js} +1 -1
  297. package/dist/zonos-elements/p-b3882a73.system.js +1 -0
  298. package/dist/zonos-elements/{p-9306a835.entry.js → p-b5c360af.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-2cfc00b8.system.entry.js → p-b6bbdb59.system.entry.js} +1 -1
  300. package/dist/zonos-elements/{p-f295030e.system.entry.js → p-bb92882d.system.entry.js} +1 -1
  301. package/dist/zonos-elements/p-bf37ccc7.system.js +1 -0
  302. package/dist/zonos-elements/{p-21b538ea.system.js → p-c015be06.system.js} +1 -1
  303. package/dist/zonos-elements/p-c8b0bc02.system.entry.js +1 -0
  304. package/dist/zonos-elements/{p-39cac2c1.entry.js → p-cbd5d932.entry.js} +1 -1
  305. package/dist/zonos-elements/{p-7c5c0a85.entry.js → p-cdfca133.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-675f60b4.entry.js → p-d2f2c685.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-2c19f5e2.entry.js → p-d6061c79.entry.js} +1 -1
  308. package/dist/zonos-elements/p-da6a29e4.system.entry.js +1 -0
  309. package/dist/zonos-elements/{p-65069140.entry.js → p-db3f381d.entry.js} +1 -1
  310. package/dist/zonos-elements/{p-9dec2b74.entry.js → p-de221545.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-2949faf3.entry.js → p-e01ccb27.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-b0174a8f.js → p-e02fd9ae.js} +1 -1
  313. package/dist/zonos-elements/{p-3cf30d83.entry.js → p-e2f1fa53.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-ebdd9b64.system.entry.js → p-e8c70c7d.system.entry.js} +1 -1
  315. package/dist/zonos-elements/{p-a8bd492d.system.entry.js → p-ea35b237.system.entry.js} +1 -1
  316. package/dist/zonos-elements/p-f0c8150e.js +1 -0
  317. package/dist/zonos-elements/p-f3b0a097.system.js +1 -0
  318. package/dist/zonos-elements/{p-d5a3851d.system.entry.js → p-fc4ebe6b.system.entry.js} +1 -1
  319. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  320. package/dist/zonos-elements/zonos-elements.js +1 -1
  321. package/package.json +9 -8
  322. package/dist/esm-es5/CheckoutConfig-262008fe.js +0 -1
  323. package/dist/esm-es5/cart-cf87ec6f.js +0 -1
  324. package/dist/esm-es5/createCustomEvent-31a792d3.js +0 -1
  325. package/dist/esm-es5/handleFetch-badf4543.js +0 -1
  326. package/dist/esm-es5/index-986b5ff2.js +0 -2
  327. package/dist/esm-es5/zonos-address_7.entry.js +0 -1
  328. package/dist/esm-es5/zonos-notification_3.entry.js +0 -1
  329. package/dist/zonos-elements/p-076388d3.entry.js +0 -1
  330. package/dist/zonos-elements/p-0cda2818.system.js +0 -1
  331. package/dist/zonos-elements/p-0d2cf216.entry.js +0 -1
  332. package/dist/zonos-elements/p-1460f917.js +0 -1
  333. package/dist/zonos-elements/p-272052bd.system.entry.js +0 -1
  334. package/dist/zonos-elements/p-3cb4468f.system.entry.js +0 -1
  335. package/dist/zonos-elements/p-3d82e70e.js +0 -1
  336. package/dist/zonos-elements/p-64372f93.system.js +0 -1
  337. package/dist/zonos-elements/p-673b4402.system.entry.js +0 -1
  338. package/dist/zonos-elements/p-680d3694.js +0 -2
  339. package/dist/zonos-elements/p-7b999a40.js +0 -1
  340. package/dist/zonos-elements/p-7c643376.system.js +0 -1
  341. package/dist/zonos-elements/p-866bb93e.system.js +0 -1
  342. package/dist/zonos-elements/p-8c487480.entry.js +0 -1
  343. package/dist/zonos-elements/p-9b720cf4.entry.js +0 -1
  344. package/dist/zonos-elements/p-a5b294d7.js +0 -1
  345. package/dist/zonos-elements/p-b50667b6.system.js +0 -2
  346. package/dist/zonos-elements/p-bfcfd29b.system.js +0 -1
  347. package/dist/zonos-elements/p-ded984d9.system.entry.js +0 -1
  348. package/dist/zonos-elements/p-e9964a5a.system.js +0 -1
@@ -8,6 +8,7 @@ import { getZonosStoreTheme, zonosStore, } from "../../store/zonosStore";
8
8
  import { buildCartItemsByTempCart } from "../../utils/api/buildCartItemsByTempCart";
9
9
  import { isStoreDiscountEnabled } from "../../utils/api/isStoreDiscountEnabl";
10
10
  import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
11
+ import { getIsStagingMode } from "../../utils/checkout/getIsStagingMode";
11
12
  import { getIsTestMode } from "../../utils/checkout/getIsTestMode";
12
13
  import { isCheckoutMobile } from "../../utils/checkout/isCheckoutMobile";
13
14
  import { isDisabledCountry } from "../../utils/checkout/isDisabledCountry";
@@ -162,6 +163,7 @@ export class ZonosCheckout {
162
163
  this.appearanceSettingsOverride = undefined;
163
164
  this.preview = false;
164
165
  this.mobile = false;
166
+ this.overrideStagingMode = undefined;
165
167
  this.defaultAddress = null;
166
168
  this.forceDialogOpen = false;
167
169
  this.defaultAddressParams = null;
@@ -179,6 +181,7 @@ export class ZonosCheckout {
179
181
  this.isCartExpired = false;
180
182
  this.inventoryCheckErrorMessage = null;
181
183
  this.placedOrderInfo = null;
184
+ this.clientSecret = stripeStore.clientSecret;
182
185
  }
183
186
  /**
184
187
  * Init cart info handler event
@@ -235,7 +238,7 @@ export class ZonosCheckout {
235
238
  const isExpired = this.handleCartExpiredCheck();
236
239
  if (isExpired) {
237
240
  // Do not proceed if the cart is expired
238
- return;
241
+ return false;
239
242
  }
240
243
  const { adjustments, cartItems } = buildCartItemsByTempCart(window.Zonos.cartData);
241
244
  await cartStoreUpdateItems({ adjustments, cartItems });
@@ -249,13 +252,13 @@ export class ZonosCheckout {
249
252
  const cartData = cartResult === null || cartResult === void 0 ? void 0 : cartResult.cartData;
250
253
  if (!cartData) {
251
254
  logError('Failed to build cart, please try again.');
252
- return;
255
+ return false;
253
256
  }
254
257
  window.Zonos.cartData = cartData;
255
258
  const isExpired = this.handleCartExpiredCheck();
256
259
  if (isExpired) {
257
260
  // Do not proceed if the cart is expired
258
- return;
261
+ return false;
259
262
  }
260
263
  const { adjustments, cartItems } = buildCartItemsByTempCart(cartData);
261
264
  await cartStoreUpdateItems({ adjustments, cartItems });
@@ -547,12 +550,21 @@ export class ZonosCheckout {
547
550
  phone,
548
551
  };
549
552
  }
553
+ overrideStagingModeChanged() {
554
+ cartStore.isStagingMode = !!this.overrideStagingMode;
555
+ }
550
556
  /**
551
557
  * Setup all of the event listeners for the component on first load
552
558
  */
553
559
  async init() {
554
560
  stripeStore.stripe = window.Zonos.stripe;
555
561
  this.stripe = window.Zonos.stripe;
562
+ // Set staging mode on init
563
+ cartStore.isStagingMode = getIsStagingMode();
564
+ // Override staging mode if it's provided
565
+ if (typeof this.overrideStagingMode !== 'undefined') {
566
+ cartStore.isStagingMode = this.overrideStagingMode;
567
+ }
556
568
  // check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
557
569
  watchBigcommerceDomesticCheckout({
558
570
  domesticRedirectedBtnSelector: domesticRedirectedBtnSelector,
@@ -791,6 +803,10 @@ export class ZonosCheckout {
791
803
  handleAddressChange() {
792
804
  stripeStoreReset();
793
805
  }
806
+ handleClientSecretChange() {
807
+ // apply theme to stripe elements
808
+ void this.applyStripeTheme();
809
+ }
794
810
  handleOpenChange() {
795
811
  const overflowAttrKey = 'data-zonos-overflow-origin';
796
812
  const body = document.body;
@@ -855,6 +871,8 @@ export class ZonosCheckout {
855
871
  }
856
872
  render() {
857
873
  var _a, _b, _c, _d;
874
+ // Set client secret so that we can add this to @Watch listener
875
+ this.clientSecret = stripeStore.clientSecret;
858
876
  const dialogLoading =
859
877
  // if it's last step, don't need to check stripe elements
860
878
  (cartStore.step !== 'finish' &&
@@ -888,7 +906,8 @@ export class ZonosCheckout {
888
906
  const zonosQaUrl = urlParams.get('zonosQaUrl');
889
907
  const zonosDebug = urlParams.get('zonosDebug');
890
908
  const zonosE2ETest = urlParams.get('zonosE2ETest');
891
- return (h("zonos-v-stack", null, h("div", { class: "zonos--logo-wrapper" }, renderLogo(), isTestMode && (h("zonos-badge", { badgeColor: "orange", size: "small" }, translate('Test mode'))), zonosDebug === '1' && (h("zonos-badge", { badgeColor: "cyan", size: "small" }, "debug")), zonosQaUrl && (h("zonos-badge", { badgeColor: "purple", size: "small" }, zonosQaUrl)), zonosE2ETest && (h("zonos-badge", { badgeColor: "gray", size: "small" }, "E2E Test"))), h("zonos-checkout-progress-tabs", { backgroundColor:
909
+ const zonosStagingMode = this.overrideStagingMode || getIsStagingMode();
910
+ return (h("zonos-v-stack", null, h("div", { class: "zonos--logo-wrapper" }, renderLogo(), isTestMode && (h("zonos-badge", { badgeColor: "orange", size: "small" }, translate('Test mode'))), zonosStagingMode && (h("zonos-badge", { badgeColor: "red", size: "small" }, translate('Staging mode'))), zonosDebug === '1' && (h("zonos-badge", { badgeColor: "cyan", size: "small" }, "debug")), zonosQaUrl && (h("zonos-badge", { badgeColor: "purple", size: "small" }, zonosQaUrl)), zonosE2ETest && (h("zonos-badge", { badgeColor: "gray", size: "small" }, "E2E Test"))), h("zonos-checkout-progress-tabs", { backgroundColor:
892
911
  // only use different contrast color when the secondary color is too off with the background in mobile
893
912
  this.isMobile ? '--zonos-elements-gray-0' : null }), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))));
894
913
  };
@@ -904,7 +923,7 @@ export class ZonosCheckout {
904
923
  '--zonos--primary-color': !this.isMobile
905
924
  ? colorPrimary
906
925
  : undefined,
907
- }) }, !this.isMobile && renderTopHeader(), cartStore.step === 'customer-info' && (h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress || this.defaultAddressParams, isMobile: this.isMobile, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'shipping' && (h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'payment' && (h("zonos-checkout-payment", { continueLoading: this.submitLoading, onContinueClicked: async () => {
926
+ }) }, !this.isMobile && renderTopHeader(), cartStore.step === 'customer-info' && (h("zonos-customer-info", { continueLoading: this.submitLoading, defaultAddress: this.defaultAddress || this.defaultAddressParams, isMobile: this.isMobile, onContinueClicked: () => this.handleCustomerInfoContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'shipping' && (h("zonos-shipping", { continueLoading: this.submitLoading, onContinueClicked: () => this.handleShippingContinue(), submitBtnColor: submitButtonColor })), cartStore.step === 'payment' && (h("zonos-checkout-payment", { continueLoading: this.submitLoading, isMobile: this.isMobile, onContinueClicked: async () => {
908
927
  await this.handleStripePaymentContinue();
909
928
  }, submitBtnColor: submitButtonColor }))), h("div", { class: "zonos--right", "data-theme": rightSideTheme }, this.isMobile && renderTopHeader(), h("div", { class: "zonos--right-actions" }, window.Zonos.showBaseForeign && (h("zonos-currency-toggle", null)), !this.isLegacyCheckout && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.closeDialogHandler() }))), h("div", { class: "flex--wrapper" }, h("div", { class: "zonos--wrapper" }, h("zonos-review", { collapsed: this.collapseReviewMobile, mobile: this.isMobile, onClick: () => {
910
929
  // do nothing if it's not mobile
@@ -1006,7 +1025,9 @@ export class ZonosCheckout {
1006
1025
  "docs": {
1007
1026
  "tags": [],
1008
1027
  "text": "Override appearance config"
1009
- }
1028
+ },
1029
+ "getter": false,
1030
+ "setter": false
1010
1031
  },
1011
1032
  "preview": {
1012
1033
  "type": "boolean",
@@ -1022,6 +1043,8 @@ export class ZonosCheckout {
1022
1043
  "tags": [],
1023
1044
  "text": "Preview checkout without needing to click on the button. This would be useful for demo purpose"
1024
1045
  },
1046
+ "getter": false,
1047
+ "setter": false,
1025
1048
  "attribute": "preview",
1026
1049
  "reflect": false,
1027
1050
  "defaultValue": "false"
@@ -1040,10 +1063,31 @@ export class ZonosCheckout {
1040
1063
  "tags": [],
1041
1064
  "text": "Flag to determine if the checkout is on mobile"
1042
1065
  },
1066
+ "getter": false,
1067
+ "setter": false,
1043
1068
  "attribute": "mobile",
1044
1069
  "reflect": false,
1045
1070
  "defaultValue": "false"
1046
1071
  },
1072
+ "overrideStagingMode": {
1073
+ "type": "boolean",
1074
+ "mutable": false,
1075
+ "complexType": {
1076
+ "original": "boolean",
1077
+ "resolved": "boolean | undefined",
1078
+ "references": {}
1079
+ },
1080
+ "required": false,
1081
+ "optional": true,
1082
+ "docs": {
1083
+ "tags": [],
1084
+ "text": "Override staging mode. Solely use for storybook"
1085
+ },
1086
+ "getter": false,
1087
+ "setter": false,
1088
+ "attribute": "override-staging-mode",
1089
+ "reflect": false
1090
+ },
1047
1091
  "defaultAddress": {
1048
1092
  "type": "unknown",
1049
1093
  "mutable": false,
@@ -1064,6 +1108,8 @@ export class ZonosCheckout {
1064
1108
  "tags": [],
1065
1109
  "text": "Default address to use for the checkout (preview mode)"
1066
1110
  },
1111
+ "getter": false,
1112
+ "setter": false,
1067
1113
  "defaultValue": "null"
1068
1114
  },
1069
1115
  "forceDialogOpen": {
@@ -1080,6 +1126,8 @@ export class ZonosCheckout {
1080
1126
  "tags": [],
1081
1127
  "text": "Force dialog to be open"
1082
1128
  },
1129
+ "getter": false,
1130
+ "setter": false,
1083
1131
  "attribute": "force-dialog-open",
1084
1132
  "reflect": false,
1085
1133
  "defaultValue": "false"
@@ -1102,7 +1150,8 @@ export class ZonosCheckout {
1102
1150
  "confirmDialogOpen": {},
1103
1151
  "isCartExpired": {},
1104
1152
  "inventoryCheckErrorMessage": {},
1105
- "placedOrderInfo": {}
1153
+ "placedOrderInfo": {},
1154
+ "clientSecret": {}
1106
1155
  };
1107
1156
  }
1108
1157
  static get methods() {
@@ -1203,6 +1252,9 @@ export class ZonosCheckout {
1203
1252
  return [{
1204
1253
  "propName": "appearanceSettingsOverride",
1205
1254
  "methodName": "appearanceSettingsOverrideChanged"
1255
+ }, {
1256
+ "propName": "overrideStagingMode",
1257
+ "methodName": "overrideStagingModeChanged"
1206
1258
  }, {
1207
1259
  "propName": "mobile",
1208
1260
  "methodName": "handleMobileChange"
@@ -1212,6 +1264,9 @@ export class ZonosCheckout {
1212
1264
  }, {
1213
1265
  "propName": "defaultAddress",
1214
1266
  "methodName": "handleAddressChange"
1267
+ }, {
1268
+ "propName": "clientSecret",
1269
+ "methodName": "handleClientSecretChange"
1215
1270
  }, {
1216
1271
  "propName": "open",
1217
1272
  "methodName": "handleOpenChange"
@@ -57,6 +57,9 @@
57
57
  :host .zonos--error-banner {
58
58
  margin-bottom: 16px;
59
59
  }
60
+ :host .zonos--tax-id-input {
61
+ margin-bottom: 16px;
62
+ }
60
63
  :host .zonos--group {
61
64
  margin-bottom: 20px;
62
65
  overflow: auto;
@@ -5,6 +5,7 @@ import { getZonosStoreTheme, zonosStore, } from "../../../store/zonosStore";
5
5
  import { trackConversionEvent } from "../../../utils/api/trackConversionEvent";
6
6
  import { containsNonLatinChars } from "../../../utils/containsNonLatinChars";
7
7
  import { submitGtag } from "../../../utils/submitGtag";
8
+ import { countryRequireTaxId, shipToTaxIdLabels, } from "../../../../types/checkout/Tax";
8
9
  export class ZonosCustomerInfo {
9
10
  constructor() {
10
11
  /**
@@ -166,6 +167,26 @@ export class ZonosCustomerInfo {
166
167
  }
167
168
  return invalidList;
168
169
  }
170
+ isInTaxIdCountry(countryCode) {
171
+ return countryRequireTaxId.includes(countryCode);
172
+ }
173
+ /**
174
+ * Render tax id input based on ship to country code
175
+ */
176
+ renderTaxIdInput(countryCode) {
177
+ // Don't render tax id input if the country is not provided
178
+ if (!countryCode) {
179
+ return null;
180
+ }
181
+ const isCountryRequireTaxId = this.isInTaxIdCountry(countryCode);
182
+ if (!isCountryRequireTaxId) {
183
+ return null;
184
+ }
185
+ const taxIdInputInfo = shipToTaxIdLabels[countryCode];
186
+ return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', onInputChange: (event) => {
187
+ stripeStore.taxId = event.detail;
188
+ } })));
189
+ }
169
190
  render() {
170
191
  var _a, _b;
171
192
  if (!stripeStore.stripeElements) {
@@ -190,7 +211,7 @@ export class ZonosCustomerInfo {
190
211
  if (this.showErrorBanner) {
191
212
  this.showErrorBanner = !this.handleValidate();
192
213
  }
193
- return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: (_b = this.defaultAddress) === null || _b === void 0 ? void 0 : _b.email, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
214
+ return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: (_b = this.defaultAddress) === null || _b === void 0 ? void 0 : _b.email, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Address'), type: "shipping" }), this.renderTaxIdInput(this.shippingCountry), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
194
215
  stripeStore.stripeShippingSameAsBilling = e.detail;
195
216
  } }), h("zonos-collapse", { collapsed: !showBilling }, h("zonos-address", { defaultAddress: this.defaultAddress, titleText: translate('Billing address'), type: "billing" })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
196
217
  // use primary type when on mobile mode
@@ -237,6 +258,8 @@ export class ZonosCustomerInfo {
237
258
  "tags": [],
238
259
  "text": "Whether or not the continue button is loading"
239
260
  },
261
+ "getter": false,
262
+ "setter": false,
240
263
  "attribute": "continue-loading",
241
264
  "reflect": false,
242
265
  "defaultValue": "false"
@@ -260,6 +283,8 @@ export class ZonosCustomerInfo {
260
283
  "tags": [],
261
284
  "text": "Whether or not the checkout is in mobile mode"
262
285
  },
286
+ "getter": false,
287
+ "setter": false,
263
288
  "attribute": "submit-btn-type",
264
289
  "reflect": false
265
290
  },
@@ -277,6 +302,8 @@ export class ZonosCustomerInfo {
277
302
  "tags": [],
278
303
  "text": "Submit button main color"
279
304
  },
305
+ "getter": false,
306
+ "setter": false,
280
307
  "attribute": "submit-btn-color",
281
308
  "reflect": false
282
309
  },
@@ -294,6 +321,8 @@ export class ZonosCustomerInfo {
294
321
  "tags": [],
295
322
  "text": "Whether or not the dialog is open"
296
323
  },
324
+ "getter": false,
325
+ "setter": false,
297
326
  "attribute": "is-mobile",
298
327
  "reflect": false,
299
328
  "defaultValue": "false"
@@ -318,6 +347,8 @@ export class ZonosCustomerInfo {
318
347
  "tags": [],
319
348
  "text": "Default address to use for the checkout (preview mode)"
320
349
  },
350
+ "getter": false,
351
+ "setter": false,
321
352
  "defaultValue": "null"
322
353
  }
323
354
  };
@@ -78,6 +78,8 @@ export class ZonosReview {
78
78
  "tags": [],
79
79
  "text": "Whether or not the component is being rendered with mobile styles"
80
80
  },
81
+ "getter": false,
82
+ "setter": false,
81
83
  "attribute": "mobile",
82
84
  "reflect": false,
83
85
  "defaultValue": "false"
@@ -96,6 +98,8 @@ export class ZonosReview {
96
98
  "tags": [],
97
99
  "text": "Whether or not to show the collapse icon\nThis is controled from the collapsed state of the zonos-collapse component\nto show the collapse icon"
98
100
  },
101
+ "getter": false,
102
+ "setter": false,
99
103
  "attribute": "collapsed",
100
104
  "reflect": false,
101
105
  "defaultValue": "false"
@@ -221,6 +221,8 @@ export class ZonosShipping {
221
221
  "tags": [],
222
222
  "text": "Whether or not the continue button is loading"
223
223
  },
224
+ "getter": false,
225
+ "setter": false,
224
226
  "attribute": "continue-loading",
225
227
  "reflect": false,
226
228
  "defaultValue": "false"
@@ -239,6 +241,8 @@ export class ZonosShipping {
239
241
  "tags": [],
240
242
  "text": "Submit button main color"
241
243
  },
244
+ "getter": false,
245
+ "setter": false,
242
246
  "attribute": "submit-btn-color",
243
247
  "reflect": false
244
248
  },
@@ -261,6 +265,8 @@ export class ZonosShipping {
261
265
  "tags": [],
262
266
  "text": "Whether or not the checkout is in mobile mode"
263
267
  },
268
+ "getter": false,
269
+ "setter": false,
264
270
  "attribute": "submit-btn-type",
265
271
  "reflect": false
266
272
  }
@@ -57,6 +57,8 @@ export class ZonosBadge {
57
57
  }],
58
58
  "text": "Whether or not the badge is bold"
59
59
  },
60
+ "getter": false,
61
+ "setter": false,
60
62
  "attribute": "bold",
61
63
  "reflect": false,
62
64
  "defaultValue": "false"
@@ -84,6 +86,8 @@ export class ZonosBadge {
84
86
  }],
85
87
  "text": "The color of the badge"
86
88
  },
89
+ "getter": false,
90
+ "setter": false,
87
91
  "attribute": "badge-color",
88
92
  "reflect": false,
89
93
  "defaultValue": "'gray'"
@@ -109,7 +113,9 @@ export class ZonosBadge {
109
113
  "text": "null"
110
114
  }],
111
115
  "text": "The icon element to display"
112
- }
116
+ },
117
+ "getter": false,
118
+ "setter": false
113
119
  },
114
120
  "iconRight": {
115
121
  "type": "boolean",
@@ -128,6 +134,8 @@ export class ZonosBadge {
128
134
  }],
129
135
  "text": "Position the icon to the right when icon is specified"
130
136
  },
137
+ "getter": false,
138
+ "setter": false,
131
139
  "attribute": "icon-right",
132
140
  "reflect": false,
133
141
  "defaultValue": "false"
@@ -149,6 +157,8 @@ export class ZonosBadge {
149
157
  }],
150
158
  "text": "The size of the badge"
151
159
  },
160
+ "getter": false,
161
+ "setter": false,
152
162
  "attribute": "size",
153
163
  "reflect": false,
154
164
  "defaultValue": "'default'"
@@ -170,6 +180,8 @@ export class ZonosBadge {
170
180
  }],
171
181
  "text": "Whether or not the badge is rounded"
172
182
  },
183
+ "getter": false,
184
+ "setter": false,
173
185
  "attribute": "rounded",
174
186
  "reflect": false,
175
187
  "defaultValue": "false"
@@ -191,6 +203,8 @@ export class ZonosBadge {
191
203
  }],
192
204
  "text": "Whether or not the badge is loading"
193
205
  },
206
+ "getter": false,
207
+ "setter": false,
194
208
  "attribute": "loading",
195
209
  "reflect": false,
196
210
  "defaultValue": "false"
@@ -208,7 +222,9 @@ export class ZonosBadge {
208
222
  "docs": {
209
223
  "tags": [],
210
224
  "text": "Callback for when the badge is dismissed. Also determines if dismiss icon shown."
211
- }
225
+ },
226
+ "getter": false,
227
+ "setter": false
212
228
  }
213
229
  };
214
230
  }
@@ -87,6 +87,8 @@ export class ZonosBanner {
87
87
  "tags": [],
88
88
  "text": "Whether or not the banner is bold"
89
89
  },
90
+ "getter": false,
91
+ "setter": false,
90
92
  "attribute": "banner-title",
91
93
  "reflect": false
92
94
  },
@@ -110,6 +112,8 @@ export class ZonosBanner {
110
112
  "tags": [],
111
113
  "text": "Intent of the banner (success, warning, error)"
112
114
  },
115
+ "getter": false,
116
+ "setter": false,
113
117
  "attribute": "intent",
114
118
  "reflect": false
115
119
  }
@@ -178,6 +178,8 @@ export class ZonosButton {
178
178
  "tags": [],
179
179
  "text": "The color of the button text and svg"
180
180
  },
181
+ "getter": false,
182
+ "setter": false,
181
183
  "attribute": "button-color",
182
184
  "reflect": false
183
185
  },
@@ -201,6 +203,8 @@ export class ZonosButton {
201
203
  "tags": [],
202
204
  "text": "The color of the button\n**NOTE**: If the button `variant` is set to 'standard', backgroundColor will be disregarded"
203
205
  },
206
+ "getter": false,
207
+ "setter": false,
204
208
  "attribute": "background-color",
205
209
  "reflect": false
206
210
  },
@@ -227,6 +231,8 @@ export class ZonosButton {
227
231
  }],
228
232
  "text": "The border style of the button"
229
233
  },
234
+ "getter": false,
235
+ "setter": false,
230
236
  "attribute": "border-style",
231
237
  "reflect": false
232
238
  },
@@ -256,6 +262,8 @@ export class ZonosButton {
256
262
  }],
257
263
  "text": "Whether or not the button is disabled"
258
264
  },
265
+ "getter": false,
266
+ "setter": false,
259
267
  "attribute": "is-disabled",
260
268
  "reflect": false,
261
269
  "defaultValue": "false"
@@ -282,6 +290,8 @@ export class ZonosButton {
282
290
  }],
283
291
  "text": "The icon element to display"
284
292
  },
293
+ "getter": false,
294
+ "setter": false,
285
295
  "defaultValue": "null"
286
296
  },
287
297
  "iconRight": {
@@ -301,6 +311,8 @@ export class ZonosButton {
301
311
  }],
302
312
  "text": "Whether or not the icon is on the right"
303
313
  },
314
+ "getter": false,
315
+ "setter": false,
304
316
  "attribute": "icon-right",
305
317
  "reflect": false,
306
318
  "defaultValue": "false"
@@ -322,6 +334,8 @@ export class ZonosButton {
322
334
  }],
323
335
  "text": "The size of the button"
324
336
  },
337
+ "getter": false,
338
+ "setter": false,
325
339
  "attribute": "size",
326
340
  "reflect": false,
327
341
  "defaultValue": "'sm'"
@@ -346,6 +360,8 @@ export class ZonosButton {
346
360
  }],
347
361
  "text": "The variance of the button"
348
362
  },
363
+ "getter": false,
364
+ "setter": false,
349
365
  "attribute": "variant",
350
366
  "reflect": false,
351
367
  "defaultValue": "'standard'"
@@ -367,6 +383,8 @@ export class ZonosButton {
367
383
  }],
368
384
  "text": "Whether or not the button has a background"
369
385
  },
386
+ "getter": false,
387
+ "setter": false,
370
388
  "attribute": "no-background",
371
389
  "reflect": false,
372
390
  "defaultValue": "false"
@@ -385,6 +403,8 @@ export class ZonosButton {
385
403
  "tags": [],
386
404
  "text": "Whether or not the button has a box shadow"
387
405
  },
406
+ "getter": false,
407
+ "setter": false,
388
408
  "attribute": "with-box-shadow",
389
409
  "reflect": false,
390
410
  "defaultValue": "false"
@@ -403,6 +423,8 @@ export class ZonosButton {
403
423
  "tags": [],
404
424
  "text": "Whether or not the button has a left padding"
405
425
  },
426
+ "getter": false,
427
+ "setter": false,
406
428
  "attribute": "no-padding-left",
407
429
  "reflect": false,
408
430
  "defaultValue": "false"
@@ -421,6 +443,8 @@ export class ZonosButton {
421
443
  "tags": [],
422
444
  "text": "Whether or not the button has a right padding"
423
445
  },
446
+ "getter": false,
447
+ "setter": false,
424
448
  "attribute": "no-padding-right",
425
449
  "reflect": false,
426
450
  "defaultValue": "false"
@@ -439,6 +463,8 @@ export class ZonosButton {
439
463
  "tags": [],
440
464
  "text": "Whether or not the button is loading"
441
465
  },
466
+ "getter": false,
467
+ "setter": false,
442
468
  "attribute": "loading",
443
469
  "reflect": false,
444
470
  "defaultValue": "false"
@@ -460,6 +486,8 @@ export class ZonosButton {
460
486
  }],
461
487
  "text": "The content alignment within the button"
462
488
  },
489
+ "getter": false,
490
+ "setter": false,
463
491
  "attribute": "justify-content",
464
492
  "reflect": false,
465
493
  "defaultValue": "'center'"
@@ -484,6 +512,8 @@ export class ZonosButton {
484
512
  "tags": [],
485
513
  "text": "The theme of the button"
486
514
  },
515
+ "getter": false,
516
+ "setter": false,
487
517
  "attribute": "theme",
488
518
  "reflect": false
489
519
  }
@@ -65,7 +65,9 @@ export class ZonosCard {
65
65
  "docs": {
66
66
  "tags": [],
67
67
  "text": "The actions to display in the header of the card"
68
- }
68
+ },
69
+ "getter": false,
70
+ "setter": false
69
71
  },
70
72
  "backgroundColor": {
71
73
  "type": "string",
@@ -87,6 +89,8 @@ export class ZonosCard {
87
89
  "tags": [],
88
90
  "text": "The background color of the card"
89
91
  },
92
+ "getter": false,
93
+ "setter": false,
90
94
  "attribute": "background-color",
91
95
  "reflect": false
92
96
  },
@@ -107,6 +111,8 @@ export class ZonosCard {
107
111
  }],
108
112
  "text": "The border radius of the card"
109
113
  },
114
+ "getter": false,
115
+ "setter": false,
110
116
  "attribute": "border-radius",
111
117
  "reflect": false,
112
118
  "defaultValue": "6"
@@ -129,7 +135,9 @@ export class ZonosCard {
129
135
  "docs": {
130
136
  "tags": [],
131
137
  "text": "The actions to display in the footer of the card"
132
- }
138
+ },
139
+ "getter": false,
140
+ "setter": false
133
141
  },
134
142
  "footerContent": {
135
143
  "type": "unknown",
@@ -149,7 +157,9 @@ export class ZonosCard {
149
157
  "docs": {
150
158
  "tags": [],
151
159
  "text": "The content to display in the footer of the card"
152
- }
160
+ },
161
+ "getter": false,
162
+ "setter": false
153
163
  },
154
164
  "footerHeight": {
155
165
  "type": "number",
@@ -165,6 +175,8 @@ export class ZonosCard {
165
175
  "tags": [],
166
176
  "text": "The height of the footer in pixels"
167
177
  },
178
+ "getter": false,
179
+ "setter": false,
168
180
  "attribute": "footer-height",
169
181
  "reflect": false
170
182
  },
@@ -186,7 +198,9 @@ export class ZonosCard {
186
198
  "docs": {
187
199
  "tags": [],
188
200
  "text": "The label to display in the header of the card"
189
- }
201
+ },
202
+ "getter": false,
203
+ "setter": false
190
204
  },
191
205
  "spacing": {
192
206
  "type": "string",
@@ -202,6 +216,8 @@ export class ZonosCard {
202
216
  "tags": [],
203
217
  "text": "The spacing to apply between elements in the card"
204
218
  },
219
+ "getter": false,
220
+ "setter": false,
205
221
  "attribute": "spacing",
206
222
  "reflect": false,
207
223
  "defaultValue": "'24px'"