@zonos/elements 1.3.5-alpha.0 → 1.3.6

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 (420) hide show
  1. package/dist/cjs/ILanguage-d247b45b.js +26 -0
  2. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  3. package/dist/cjs/{cart-f038cf46.js → cart-b8bbf22d.js} +71 -22
  4. package/dist/cjs/{getBorderRadius-cd7ef574.js → getBorderRadius-b252096d.js} +8 -4
  5. package/dist/cjs/index.cjs.js +0 -21
  6. package/dist/cjs/isCheckoutMobile-f491ca7c.js +8 -0
  7. package/dist/cjs/{isDarkColor-5eda1323.js → isDarkColor-168002d6.js} +1 -1
  8. package/dist/cjs/loader.cjs.js +5 -3
  9. package/dist/cjs/{localization-d43e1540.js → localization-2c9f5765.js} +366 -1
  10. package/dist/cjs/{submitGtag-42f29b3a.js → submitGtag-792fe45d.js} +2 -8
  11. package/dist/cjs/zonos-address_4.cjs.entry.js +289 -0
  12. package/dist/cjs/zonos-badge_2.cjs.entry.js +57 -0
  13. package/dist/cjs/zonos-banner.cjs.entry.js +4 -9
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +161 -0
  15. package/dist/cjs/zonos-card_2.cjs.entry.js +26 -14
  16. package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +84 -92
  17. package/dist/cjs/zonos-checkout.cjs.entry.js +23 -26
  18. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
  20. package/dist/cjs/zonos-country-flag.cjs.entry.js +40 -0
  21. package/dist/cjs/{zonos-country-flag_4.cjs.entry.js → zonos-country-select_3.cjs.entry.js} +29 -55
  22. package/dist/cjs/zonos-elements.cjs.js +6 -4
  23. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -8
  24. package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
  25. package/dist/cjs/zonos-logo.cjs.entry.js +32 -0
  26. package/dist/cjs/zonos-notification.cjs.entry.js +5 -6
  27. package/dist/cjs/zonos-payment.cjs.entry.js +7 -7
  28. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +45 -0
  29. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +4 -4
  30. package/dist/cjs/zonos-text.cjs.entry.js +4 -6
  31. package/dist/cjs/{zonosStore-b88b5671.js → zonosStore-5d94dabb.js} +1 -1
  32. package/dist/collection/collection-manifest.json +6 -1
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -5
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/chevronDownIcon.svg +1 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/globe.svg +3 -0
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/assets/zonosIcon.svg +5 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +126 -0
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +60 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +5 -1
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +2 -2
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +18 -23
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +11 -15
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +14 -1
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +13 -5
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +7 -0
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -3
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +5 -1
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +2 -2
  50. package/dist/collection/components/common/zonos-badge/zonos-badge.js +7 -26
  51. package/dist/collection/components/common/zonos-banner/zonos-banner.js +2 -25
  52. package/dist/collection/components/common/zonos-button/zonos-button.css +20 -2
  53. package/dist/collection/components/common/zonos-button/zonos-button.js +19 -34
  54. package/dist/collection/components/common/zonos-card/zonos-card.js +2 -20
  55. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +82 -0
  56. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +218 -0
  57. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  58. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +1 -20
  59. package/dist/collection/components/common/zonos-country-select/assets/greenCheckDuotone.svg +4 -0
  60. package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +11 -10
  61. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -11
  62. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  63. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  64. package/dist/collection/components/common/zonos-icon/zonos-icon.js +4 -4
  65. package/dist/collection/components/common/zonos-language-select/assets/greenCheckDuotone.svg +4 -0
  66. package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +61 -0
  67. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +58 -0
  68. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -21
  69. package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -26
  70. package/dist/collection/components/common/zonos-select-dialog-header/assets/removeIcon.svg +1 -0
  71. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +45 -0
  72. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +68 -0
  73. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
  74. package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +41 -35
  75. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -4
  76. package/dist/collection/components/common/zonos-text/zonos-text.js +4 -24
  77. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +55 -0
  78. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +72 -0
  79. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -21
  80. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  81. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/assets/globe.svg +3 -0
  82. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +10 -0
  83. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +27 -5
  84. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +16 -2
  85. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +11 -5
  86. package/dist/collection/components/main/zonos-controller.js +1 -1
  87. package/dist/collection/components/store/checkout/cart.js +3 -1
  88. package/dist/collection/components/store/checkout/stripe.js +36 -10
  89. package/dist/collection/components/store/hello/localization.js +5 -1
  90. package/dist/collection/components/store/translationStore/strings.arabic.js +18 -0
  91. package/dist/collection/components/store/translationStore/strings.base.js +18 -0
  92. package/dist/collection/components/store/translationStore/strings.chinese.js +18 -0
  93. package/dist/collection/components/store/translationStore/strings.danish.js +18 -0
  94. package/dist/collection/components/store/translationStore/strings.dutch.js +18 -0
  95. package/dist/collection/components/store/translationStore/strings.french.js +18 -0
  96. package/dist/collection/components/store/translationStore/strings.german.js +18 -0
  97. package/dist/collection/components/store/translationStore/strings.hebrew.js +18 -0
  98. package/dist/collection/components/store/translationStore/strings.indonesian.js +18 -0
  99. package/dist/collection/components/store/translationStore/strings.italian.js +18 -0
  100. package/dist/collection/components/store/translationStore/strings.japanese.js +18 -0
  101. package/dist/collection/components/store/translationStore/strings.korean.js +18 -0
  102. package/dist/collection/components/store/translationStore/strings.norwegian.js +18 -0
  103. package/dist/collection/components/store/translationStore/strings.polish.js +18 -0
  104. package/dist/collection/components/store/translationStore/strings.portuguese.js +18 -0
  105. package/dist/collection/components/store/translationStore/strings.russian.js +18 -0
  106. package/dist/collection/components/store/translationStore/strings.spanish.js +18 -0
  107. package/dist/collection/components/store/translationStore/strings.swedish.js +18 -0
  108. package/dist/collection/components/store/translationStore/strings.turkish.js +18 -0
  109. package/dist/collection/components/store/translationStore/strings.vietnamese.js +18 -0
  110. package/dist/collection/components/stripe/zonos-address/zonos-address.js +81 -21
  111. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  112. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  113. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +19 -1
  114. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +11 -5
  115. package/dist/collection/components/utils/getBorderRadius.js +7 -3
  116. package/dist/collection/types/ILanguage.js +22 -0
  117. package/dist/collection/types/generated/graphql.customer.types.js +13 -0
  118. package/dist/collection/types/index.js +0 -1
  119. package/dist/collection/types/styles/Color.js +9 -0
  120. package/dist/components/ILanguage.js +24 -0
  121. package/dist/components/getBorderRadius.js +7 -3
  122. package/dist/components/index.js +0 -1
  123. package/dist/components/isCheckoutMobile.js +6 -0
  124. package/dist/components/isDarkColor.js +1 -1
  125. package/dist/components/localization.js +365 -1
  126. package/dist/components/{cart.js → stripe.js} +280 -229
  127. package/dist/components/submitGtag.js +1 -1
  128. package/dist/components/zonos-address2.js +83 -23
  129. package/dist/components/zonos-badge2.js +8 -10
  130. package/dist/components/zonos-banner2.js +3 -9
  131. package/dist/components/zonos-button2.js +20 -18
  132. package/dist/components/zonos-card2.js +3 -5
  133. package/dist/components/zonos-cart-items2.js +1 -1
  134. package/dist/components/zonos-cart-subtotal2.js +14 -8
  135. package/dist/components/zonos-checkbox.d.ts +11 -0
  136. package/dist/components/zonos-checkbox.js +6 -0
  137. package/dist/components/zonos-checkbox2.js +87 -0
  138. package/dist/components/zonos-checkout-finish2.js +3 -3
  139. package/dist/components/zonos-checkout-footer.d.ts +11 -0
  140. package/dist/components/zonos-checkout-footer.js +6 -0
  141. package/dist/components/zonos-checkout-footer2.js +109 -0
  142. package/dist/components/zonos-checkout-payment2.js +4 -4
  143. package/dist/components/zonos-checkout.js +83 -62
  144. package/dist/components/zonos-collapse2.js +3 -3
  145. package/dist/components/zonos-component.js +1 -1
  146. package/dist/components/zonos-controller.js +4 -4
  147. package/dist/components/zonos-country-flag2.js +3 -5
  148. package/dist/components/zonos-country-select2.js +26 -19
  149. package/dist/components/zonos-custom-message2.js +3 -3
  150. package/dist/components/zonos-customer-info2.js +31 -11
  151. package/dist/components/zonos-dialog2.js +4 -4
  152. package/dist/components/zonos-hello-dialog-footer2.js +23 -10
  153. package/dist/components/zonos-hello-dialog2.js +41 -23
  154. package/dist/components/zonos-hello.js +31 -19
  155. package/dist/components/zonos-icon2.js +4 -4
  156. package/dist/components/zonos-language-select.d.ts +11 -0
  157. package/dist/components/zonos-language-select.js +6 -0
  158. package/dist/components/zonos-language-select2.js +87 -0
  159. package/dist/components/zonos-link-authentication2.js +2 -2
  160. package/dist/components/zonos-logo.js +44 -1
  161. package/dist/components/zonos-notification2.js +4 -6
  162. package/dist/components/zonos-payment2.js +2 -2
  163. package/dist/components/zonos-review2.js +7 -11
  164. package/dist/components/zonos-select-dialog-header.d.ts +11 -0
  165. package/dist/components/zonos-select-dialog-header.js +6 -0
  166. package/dist/components/zonos-select-dialog-header2.js +71 -0
  167. package/dist/components/zonos-shipping-rich-radio2.js +2 -2
  168. package/dist/components/zonos-shipping2.js +4 -4
  169. package/dist/components/zonos-spinner2.js +4 -4
  170. package/dist/components/zonos-text2.js +4 -7
  171. package/dist/components/zonos-tooltip.d.ts +11 -0
  172. package/dist/components/zonos-tooltip.js +6 -0
  173. package/dist/components/zonos-tooltip2.js +48 -0
  174. package/dist/components/zonos-v-stack2.js +4 -6
  175. package/dist/components/zonosStore.js +1 -1
  176. package/dist/esm/ILanguage-97790bee.js +24 -0
  177. package/dist/esm/app-globals-0f993ce5.js +3 -0
  178. package/dist/esm/{cart-ba9b0d4c.js → cart-bc3bb22e.js} +72 -21
  179. package/dist/esm/getBorderRadius-e9736f7e.js +20 -0
  180. package/dist/esm/index.js +1 -6
  181. package/dist/esm/isCheckoutMobile-8846dccb.js +6 -0
  182. package/dist/esm/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
  183. package/dist/esm/loader.js +6 -4
  184. package/dist/esm/{localization-5d83fde2.js → localization-d8f6453b.js} +366 -2
  185. package/dist/esm/{submitGtag-a7d07aec.js → submitGtag-bebe2cb0.js} +3 -8
  186. package/dist/esm/zonos-address_4.entry.js +282 -0
  187. package/dist/esm/zonos-badge_2.entry.js +52 -0
  188. package/dist/esm/zonos-banner.entry.js +4 -9
  189. package/dist/esm/zonos-button_3.entry.js +155 -0
  190. package/dist/esm/zonos-card_2.entry.js +26 -14
  191. package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +82 -89
  192. package/dist/esm/zonos-checkout.entry.js +20 -23
  193. package/dist/esm/zonos-component.entry.js +2 -2
  194. package/dist/esm/zonos-controller.entry.js +7 -7
  195. package/dist/esm/zonos-country-flag.entry.js +36 -0
  196. package/dist/esm/{zonos-country-flag_4.entry.js → zonos-country-select_3.entry.js} +30 -55
  197. package/dist/esm/zonos-elements.js +7 -5
  198. package/dist/esm/zonos-hello-dialog.entry.js +13 -8
  199. package/dist/esm/zonos-hello.entry.js +3 -3
  200. package/dist/esm/zonos-logo.entry.js +28 -0
  201. package/dist/esm/zonos-notification.entry.js +5 -6
  202. package/dist/esm/zonos-payment.entry.js +7 -7
  203. package/dist/esm/zonos-select-dialog-header_2.entry.js +40 -0
  204. package/dist/esm/zonos-shipping-rich-radio.entry.js +4 -4
  205. package/dist/esm/zonos-text.entry.js +4 -6
  206. package/dist/esm/{zonosStore-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
  207. package/dist/esm-es5/ILanguage-97790bee.js +1 -0
  208. package/dist/esm-es5/app-globals-0f993ce5.js +1 -0
  209. package/dist/esm-es5/cart-bc3bb22e.js +1 -0
  210. package/dist/esm-es5/getBorderRadius-e9736f7e.js +1 -0
  211. package/dist/esm-es5/index.js +0 -1
  212. package/dist/esm-es5/isCheckoutMobile-8846dccb.js +1 -0
  213. package/dist/esm-es5/{isDarkColor-8696cb70.js → isDarkColor-e982fa09.js} +1 -1
  214. package/dist/esm-es5/loader.js +1 -1
  215. package/dist/esm-es5/localization-d8f6453b.js +1 -0
  216. package/dist/esm-es5/submitGtag-bebe2cb0.js +1 -0
  217. package/dist/esm-es5/zonos-address_4.entry.js +1 -0
  218. package/dist/esm-es5/zonos-badge_2.entry.js +1 -0
  219. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  220. package/dist/esm-es5/zonos-button_3.entry.js +1 -0
  221. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  222. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -0
  223. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  224. package/dist/esm-es5/zonos-component.entry.js +1 -1
  225. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  226. package/dist/esm-es5/zonos-country-flag.entry.js +1 -0
  227. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -0
  228. package/dist/esm-es5/zonos-elements.js +1 -1
  229. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  230. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  231. package/dist/esm-es5/zonos-logo.entry.js +1 -0
  232. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  233. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  234. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -0
  235. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  236. package/dist/esm-es5/zonos-text.entry.js +1 -1
  237. package/dist/esm-es5/{zonosStore-e59617f8.js → zonosStore-e6c7be3a.js} +1 -1
  238. package/dist/scripts/insertTranslations.js +1 -0
  239. package/dist/scripts/loadZonos.js +1 -1
  240. package/dist/scripts/zonos.js +1 -1
  241. package/dist/scripts/zonosBase.js +1 -1
  242. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +2 -1
  243. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +7 -0
  244. package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +1 -5
  245. package/dist/types/components/common/zonos-banner/zonos-banner.d.ts +0 -4
  246. package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -5
  247. package/dist/types/components/common/zonos-card/zonos-card.d.ts +0 -4
  248. package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +42 -0
  249. package/dist/types/components/common/zonos-country-flag/zonos-country-flag.d.ts +0 -4
  250. package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +1 -1
  251. package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +1 -1
  252. package/dist/types/components/common/zonos-language-select/zonos-language-select.d.ts +9 -0
  253. package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +0 -4
  254. package/dist/types/components/common/zonos-notification/zonos-notification.d.ts +0 -4
  255. package/dist/types/components/common/zonos-select-dialog-header/zonos-select-dialog-header.d.ts +12 -0
  256. package/dist/types/components/common/zonos-spinner/zonos-spinner.d.ts +1 -1
  257. package/dist/types/components/common/zonos-text/zonos-text.d.ts +1 -5
  258. package/dist/types/components/common/zonos-tooltip/zonos-tooltip.d.ts +12 -0
  259. package/dist/types/components/common/zonos-v-stack/zonos-v-stack.d.ts +0 -4
  260. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.d.ts +5 -0
  261. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +2 -0
  262. package/dist/types/components/store/checkout/stripe.d.ts +9 -0
  263. package/dist/types/components/store/hello/localization.d.ts +2 -1
  264. package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -0
  265. package/dist/types/components/store/translationStore/strings.base.d.ts +18 -0
  266. package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -0
  267. package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -0
  268. package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -0
  269. package/dist/types/components/store/translationStore/strings.french.d.ts +18 -0
  270. package/dist/types/components/store/translationStore/strings.german.d.ts +18 -0
  271. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -0
  272. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -0
  273. package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -0
  274. package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -0
  275. package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -0
  276. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -0
  277. package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -0
  278. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -0
  279. package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -0
  280. package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -0
  281. package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -0
  282. package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -0
  283. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -0
  284. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -0
  285. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  286. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +18 -2
  287. package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
  288. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
  289. package/dist/types/components/utils/checkout/isCheckoutMobile.d.ts +1 -1
  290. package/dist/types/components/utils/getBorderRadius.d.ts +1 -1
  291. package/dist/types/components.d.ts +242 -116
  292. package/dist/types/types/ILanguage.d.ts +81 -0
  293. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -3
  294. package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +13 -0
  295. package/dist/types/types/generated/graphql.customer.types.d.ts +16 -4
  296. package/dist/types/types/generated/graphql.customer.types.ts +21 -4
  297. package/dist/types/types/generated/graphql.frontend.types.d.ts +6 -6
  298. package/dist/types/types/generated/graphql.frontend.types.ts +14 -4
  299. package/dist/types/types/index.d.ts +1 -1
  300. package/dist/types/types/styles/Color.d.ts +2 -0
  301. package/dist/zonos-elements/index.esm.js +0 -1
  302. package/dist/zonos-elements/{p-eb96f893.system.entry.js → p-00d63df1.system.entry.js} +1 -1
  303. package/dist/zonos-elements/p-04f63cea.entry.js +1 -0
  304. package/dist/zonos-elements/{p-7cae86a0.system.entry.js → p-06652d87.system.entry.js} +1 -1
  305. package/dist/zonos-elements/p-066c5893.system.js +1 -0
  306. package/dist/zonos-elements/p-0c7480a5.entry.js +1 -0
  307. package/dist/zonos-elements/p-16ad90ca.js +1 -0
  308. package/dist/zonos-elements/p-16b74c31.system.js +1 -0
  309. package/dist/zonos-elements/{p-0024f8c2.js → p-17550a10.js} +1 -1
  310. package/dist/zonos-elements/p-1d16a6fb.js +1 -0
  311. package/dist/zonos-elements/p-1ea68e3b.entry.js +1 -0
  312. package/dist/zonos-elements/{p-28d7b75d.entry.js → p-1ed530cc.entry.js} +1 -1
  313. package/dist/zonos-elements/p-289c8b1a.system.entry.js +1 -0
  314. package/dist/zonos-elements/{p-8970e202.system.entry.js → p-2a00c270.system.entry.js} +1 -1
  315. package/dist/zonos-elements/{p-be23cc91.system.entry.js → p-32bca9c8.system.entry.js} +1 -1
  316. package/dist/zonos-elements/p-37f53a79.entry.js +1 -0
  317. package/dist/zonos-elements/p-394cf1cf.js +1 -0
  318. package/dist/zonos-elements/p-3ef27745.js +1 -0
  319. package/dist/zonos-elements/{p-7beaee33.system.entry.js → p-458fd100.system.entry.js} +1 -1
  320. package/dist/zonos-elements/{p-e8da4463.js → p-47fac33f.js} +1 -1
  321. package/dist/zonos-elements/p-49a764e9.system.entry.js +1 -0
  322. package/dist/zonos-elements/p-4fafb2a5.system.entry.js +1 -0
  323. package/dist/zonos-elements/p-4fb71a93.js +1 -0
  324. package/dist/zonos-elements/{p-dc09ca69.system.js → p-50287643.system.js} +1 -1
  325. package/dist/zonos-elements/p-50ea2036.system.js +1 -0
  326. package/dist/zonos-elements/p-5276c61b.system.entry.js +1 -0
  327. package/dist/zonos-elements/p-56ba5cbf.system.js +1 -0
  328. package/dist/zonos-elements/{p-5a0264e8.system.entry.js → p-5a113c3d.system.entry.js} +1 -1
  329. package/dist/zonos-elements/p-6308b347.entry.js +1 -0
  330. package/dist/zonos-elements/p-63d1b1fe.entry.js +1 -0
  331. package/dist/zonos-elements/p-7347ee7c.system.entry.js +1 -0
  332. package/dist/zonos-elements/p-7a6144b1.entry.js +1 -0
  333. package/dist/zonos-elements/p-7dd8e8ba.system.entry.js +1 -0
  334. package/dist/zonos-elements/p-81a54668.js +1 -0
  335. package/dist/zonos-elements/p-8c26a080.system.js +1 -0
  336. package/dist/zonos-elements/p-96aabe02.entry.js +1 -0
  337. package/dist/zonos-elements/p-9cbbf261.system.entry.js +1 -0
  338. package/dist/zonos-elements/p-a33745e9.entry.js +1 -0
  339. package/dist/zonos-elements/{p-5d91e45c.entry.js → p-a4de3fb2.entry.js} +1 -1
  340. package/dist/zonos-elements/p-a682fd38.system.entry.js +1 -0
  341. package/dist/zonos-elements/p-abe7524f.system.js +1 -0
  342. package/dist/zonos-elements/p-aed0098c.system.js +1 -0
  343. package/dist/zonos-elements/{p-73174d0c.system.entry.js → p-b81a0577.system.entry.js} +1 -1
  344. package/dist/zonos-elements/p-ba1a111a.system.entry.js +1 -0
  345. package/dist/zonos-elements/p-ba43275e.entry.js +1 -0
  346. package/dist/zonos-elements/p-bd6a2095.entry.js +1 -0
  347. package/dist/zonos-elements/{p-f82e000f.system.entry.js → p-c4321084.system.entry.js} +1 -1
  348. package/dist/zonos-elements/{p-824ebf9d.entry.js → p-cdf114a2.entry.js} +1 -1
  349. package/dist/zonos-elements/p-d5ae3cbb.system.entry.js +1 -0
  350. package/dist/zonos-elements/p-d5d7c8f5.entry.js +1 -0
  351. package/dist/zonos-elements/p-dd7729fd.system.entry.js +1 -0
  352. package/dist/zonos-elements/p-de339fb6.entry.js +1 -0
  353. package/dist/zonos-elements/p-e1255160.js +1 -0
  354. package/dist/zonos-elements/p-e8a9bc56.entry.js +1 -0
  355. package/dist/zonos-elements/{p-7f68c103.system.js → p-e99d79d9.system.js} +1 -1
  356. package/dist/zonos-elements/p-ec25f180.entry.js +1 -0
  357. package/dist/zonos-elements/p-f49dfd06.system.js +1 -0
  358. package/dist/zonos-elements/{p-1165b6e5.entry.js → p-f6f5f644.entry.js} +1 -1
  359. package/dist/zonos-elements/p-fcc4f140.system.js +1 -0
  360. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  361. package/dist/zonos-elements/zonos-elements.js +1 -1
  362. package/package.json +17 -18
  363. package/dist/cjs/zonos-address_2.cjs.entry.js +0 -141
  364. package/dist/cjs/zonos-badge.cjs.entry.js +0 -38
  365. package/dist/cjs/zonos-button_2.cjs.entry.js +0 -130
  366. package/dist/cjs/zonos-icon.cjs.entry.js +0 -35
  367. package/dist/collection/components/common/zonos-country-select/assets/arrowLeftBlue.svg +0 -1
  368. package/dist/components/zonos-logo2.js +0 -48
  369. package/dist/esm/getBorderRadius-9e4cb3b1.js +0 -16
  370. package/dist/esm/zonos-address_2.entry.js +0 -136
  371. package/dist/esm/zonos-badge.entry.js +0 -34
  372. package/dist/esm/zonos-button_2.entry.js +0 -125
  373. package/dist/esm/zonos-icon.entry.js +0 -31
  374. package/dist/esm-es5/cart-ba9b0d4c.js +0 -1
  375. package/dist/esm-es5/getBorderRadius-9e4cb3b1.js +0 -1
  376. package/dist/esm-es5/localization-5d83fde2.js +0 -1
  377. package/dist/esm-es5/submitGtag-a7d07aec.js +0 -1
  378. package/dist/esm-es5/zonos-address_2.entry.js +0 -1
  379. package/dist/esm-es5/zonos-badge.entry.js +0 -1
  380. package/dist/esm-es5/zonos-button_2.entry.js +0 -1
  381. package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
  382. package/dist/esm-es5/zonos-country-flag_4.entry.js +0 -1
  383. package/dist/esm-es5/zonos-icon.entry.js +0 -1
  384. package/dist/zonos-elements/p-027abb50.entry.js +0 -1
  385. package/dist/zonos-elements/p-12c19be6.system.entry.js +0 -1
  386. package/dist/zonos-elements/p-12ecf765.system.js +0 -1
  387. package/dist/zonos-elements/p-1c00ffea.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-21793192.entry.js +0 -1
  389. package/dist/zonos-elements/p-245997d9.js +0 -1
  390. package/dist/zonos-elements/p-26edde4d.system.entry.js +0 -1
  391. package/dist/zonos-elements/p-39d12bf0.entry.js +0 -1
  392. package/dist/zonos-elements/p-3d965e88.entry.js +0 -1
  393. package/dist/zonos-elements/p-410045c5.system.entry.js +0 -1
  394. package/dist/zonos-elements/p-59343e23.system.js +0 -1
  395. package/dist/zonos-elements/p-7748735d.entry.js +0 -1
  396. package/dist/zonos-elements/p-839f6cd9.entry.js +0 -1
  397. package/dist/zonos-elements/p-83bb8727.system.entry.js +0 -1
  398. package/dist/zonos-elements/p-8ebc0b64.js +0 -1
  399. package/dist/zonos-elements/p-9f3cad08.entry.js +0 -1
  400. package/dist/zonos-elements/p-a6f2e282.system.js +0 -1
  401. package/dist/zonos-elements/p-afed9236.entry.js +0 -1
  402. package/dist/zonos-elements/p-b035f9e5.system.js +0 -1
  403. package/dist/zonos-elements/p-b1ffb37b.entry.js +0 -1
  404. package/dist/zonos-elements/p-b87fa3a1.js +0 -1
  405. package/dist/zonos-elements/p-bd02a65c.entry.js +0 -1
  406. package/dist/zonos-elements/p-be4bc6bc.entry.js +0 -1
  407. package/dist/zonos-elements/p-bea31a7b.system.entry.js +0 -1
  408. package/dist/zonos-elements/p-c3d75f4f.system.js +0 -1
  409. package/dist/zonos-elements/p-da2387d2.system.entry.js +0 -1
  410. package/dist/zonos-elements/p-dcf1e1b4.system.entry.js +0 -1
  411. package/dist/zonos-elements/p-ee8b44c0.system.js +0 -1
  412. package/dist/zonos-elements/p-efd1544b.system.entry.js +0 -1
  413. package/dist/zonos-elements/p-f2733cc7.js +0 -1
  414. package/dist/zonos-elements/p-f342e7c7.entry.js +0 -1
  415. package/dist/zonos-elements/p-fdb9568e.entry.js +0 -1
  416. /package/dist/cjs/{index-3ead02fe.js → index-72767498.js} +0 -0
  417. /package/dist/esm/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
  418. /package/dist/esm-es5/{index-81a199ef.js → index-b5be4dc3.js} +0 -0
  419. /package/dist/zonos-elements/{p-4d8545e1.js → p-58127116.js} +0 -0
  420. /package/dist/zonos-elements/{p-4d39efb6.system.js → p-d1ab0823.system.js} +0 -0
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface ZonosSelectDialogHeader extends Components.ZonosSelectDialogHeader, HTMLElement {}
4
+ export const ZonosSelectDialogHeader: {
5
+ prototype: ZonosSelectDialogHeader;
6
+ new (): ZonosSelectDialogHeader;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { Z as ZonosSelectDialogHeader$1, d as defineCustomElement$1 } from './zonos-select-dialog-header2.js';
2
+
3
+ const ZonosSelectDialogHeader = ZonosSelectDialogHeader$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { ZonosSelectDialogHeader, defineCustomElement };
@@ -0,0 +1,71 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { a as zonosStoreFontFamily } from './zonosStore.js';
3
+ import { d as defineCustomElement$5 } from './zonos-button2.js';
4
+ import { d as defineCustomElement$4 } from './zonos-icon2.js';
5
+ import { d as defineCustomElement$3 } from './zonos-spinner2.js';
6
+ import { d as defineCustomElement$2 } from './zonos-text2.js';
7
+ import { d as defineCustomElement$1 } from './zonos-v-stack2.js';
8
+
9
+ const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
10
+
11
+ const zonosSelectDialogHeaderCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--amino-surface-color);padding:var(--amino-space-16)}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";
12
+ const ZonosSelectDialogHeaderStyle0 = zonosSelectDialogHeaderCss;
13
+
14
+ const ZonosSelectDialogHeader = /*@__PURE__*/ proxyCustomElement(class ZonosSelectDialogHeader extends HTMLElement {
15
+ constructor() {
16
+ super();
17
+ this.__registerHost();
18
+ this.__attachShadow();
19
+ this.handleOnClose = () => { };
20
+ this.label = '';
21
+ }
22
+ render() {
23
+ return (h(Host, { key: '737dcae414b2538bf4c0b5c932a78acb9eeb1e93', class: "zonos--elements", style: {
24
+ '--font-family': zonosStoreFontFamily(),
25
+ } }, h("zonos-v-stack", { key: '8cfde0f03e03ad011c8f8f4517c3b47ba8c03746', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '5c5044ad46e156ad4cde26df0bb57c6690a11e42', class: "zonos--select-dialog-header" }, h("zonos-text", { key: 'a10b9b48834c6eabd9d20f44b8c8dc4927d53bd1', type: "boldLabel" }, this.label), h("zonos-button", { key: '50d74c5e97f2c224a437fde48b6d2a30b14fc1fe', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: 'd875d9cfddaf37f1ca0a2bb01a3ba3da10c2fda0' }))));
26
+ }
27
+ static get style() { return ZonosSelectDialogHeaderStyle0; }
28
+ }, [1, "zonos-select-dialog-header", {
29
+ "handleOnClose": [16],
30
+ "label": [1]
31
+ }]);
32
+ function defineCustomElement() {
33
+ if (typeof customElements === "undefined") {
34
+ return;
35
+ }
36
+ const components = ["zonos-select-dialog-header", "zonos-button", "zonos-icon", "zonos-spinner", "zonos-text", "zonos-v-stack"];
37
+ components.forEach(tagName => { switch (tagName) {
38
+ case "zonos-select-dialog-header":
39
+ if (!customElements.get(tagName)) {
40
+ customElements.define(tagName, ZonosSelectDialogHeader);
41
+ }
42
+ break;
43
+ case "zonos-button":
44
+ if (!customElements.get(tagName)) {
45
+ defineCustomElement$5();
46
+ }
47
+ break;
48
+ case "zonos-icon":
49
+ if (!customElements.get(tagName)) {
50
+ defineCustomElement$4();
51
+ }
52
+ break;
53
+ case "zonos-spinner":
54
+ if (!customElements.get(tagName)) {
55
+ defineCustomElement$3();
56
+ }
57
+ break;
58
+ case "zonos-text":
59
+ if (!customElements.get(tagName)) {
60
+ defineCustomElement$2();
61
+ }
62
+ break;
63
+ case "zonos-v-stack":
64
+ if (!customElements.get(tagName)) {
65
+ defineCustomElement$1();
66
+ }
67
+ break;
68
+ } });
69
+ }
70
+
71
+ export { ZonosSelectDialogHeader as Z, defineCustomElement as d };
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { b as zonosStoreFontFamily, z as zonosStore } from './zonosStore.js';
2
+ import { a as zonosStoreFontFamily, z as zonosStore } from './zonosStore.js';
3
3
  import { c as classes } from './classes.js';
4
4
  import { g as getBorderRadius } from './getBorderRadius.js';
5
5
  import { i as isColorVariable } from './isColorVariable.js';
@@ -43,7 +43,7 @@ const ZonosShippingRichRadio = /*@__PURE__*/ proxyCustomElement(class ZonosShipp
43
43
  return (h("div", { "aria-hidden": "true", class: classes([
44
44
  'zonos--shipping-rich-radio-item',
45
45
  selected && 'selected',
46
- ]), onClick: () => this.handleRichRadioSelect(item) }, h("input", { checked: selected, class: "zonos--shipping-rich-radio-input", name: "zonos--shipping-rich-radio", type: "radio", value: item.value }), h("div", { class: "zonos--shipping-info" }, h("div", { class: "zonos--shipping-detail" }, h("zonos-text", { class: "zonos--shipping-label", type: "label" }, item.label), (item.sublabel || item.caption) && (h("div", { class: "zonos--sub-detail" }, item.sublabel && (h("zonos-text", { color: "gray-800" }, item.sublabel)), item.caption && (h("zonos-text", { color: "gray-400" }, item.caption))))), h("zonos-text", { type: "semiBoldLabel" }, item.price))));
46
+ ]), onClick: () => this.handleRichRadioSelect(item) }, h("input", { checked: selected, class: "zonos--shipping-rich-radio-input", name: "zonos--shipping-rich-radio", type: "radio", value: item.value }), h("div", { class: "zonos--shipping-info" }, h("div", { class: "zonos--shipping-detail" }, h("zonos-text", { class: "zonos--shipping-label", type: "label" }, item.label), (item.sublabel || item.caption) && (h("div", { class: "zonos--sub-detail" }, item.sublabel && (h("zonos-text", { textColor: "gray-800" }, item.sublabel)), item.caption && (h("zonos-text", { textColor: "gray-400" }, item.caption))))), h("zonos-text", { type: "semiBoldLabel" }, item.price))));
47
47
  })));
48
48
  }
49
49
  static get style() { return ZonosShippingRichRadioStyle0; }
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { c as cartStore, i as cartStoreUpdateSelectedShippingOption, b as cartStoreGetShippingTransitInfo } from './cart.js';
2
+ import { c as cartStore, m as cartStoreUpdateSelectedShippingOption, n as cartStoreGetShippingTransitInfo } from './stripe.js';
3
3
  import { t as translate } from './localization.js';
4
4
  import { f as formatCurrency } from './formatCurrency.js';
5
5
  import { s as submitGtag } from './submitGtag.js';
@@ -9,7 +9,7 @@ import { d as defineCustomElement$3 } from './zonos-shipping-rich-radio2.js';
9
9
  import { d as defineCustomElement$2 } from './zonos-spinner2.js';
10
10
  import { d as defineCustomElement$1 } from './zonos-text2.js';
11
11
 
12
- const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:calc(100% - 10px)}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";
12
+ const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--amino-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";
13
13
  const ZonosShippingStyle0 = zonosShippingCss;
14
14
 
15
15
  const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping extends HTMLElement {
@@ -75,9 +75,9 @@ const ZonosShipping = /*@__PURE__*/ proxyCustomElement(class ZonosShipping exten
75
75
  value: item.id,
76
76
  };
77
77
  });
78
- return (h(Host, { class: "zonos--shipping zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Shipping information')), h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !(serviceLevels === null || serviceLevels === void 0 ? void 0 : serviceLevels.length) ? (h("zonos-banner", { bannerTitle: "No shipping methods found - try editing your address or contacting support if the error persists", intent: "error" })) : (h("zonos-shipping-rich-radio", { items: serviceLevels || [], onRadioSelected: e => this.handleRadioSelected(e) }))), h("zonos-button", { backgroundColor: this.submitBtnColor, "is-disabled": this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
78
+ return (h(Host, { class: "zonos--shipping zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Shipping information')), h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !(serviceLevels === null || serviceLevels === void 0 ? void 0 : serviceLevels.length) ? (h("zonos-banner", { bannerTitle: "No shipping methods found - try editing your address or contacting support if the error persists", intent: "error" })) : (h("zonos-shipping-rich-radio", { items: serviceLevels || [], onRadioSelected: e => this.handleRadioSelected(e) })), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, isDisabled: this.disabled, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
79
79
  // use primary type when on mobile mode
80
- variant: this.submitBtnType }, translate('Go to payment'))));
80
+ variant: this.submitBtnType }, translate('Go to payment'))))));
81
81
  }
82
82
  static get watchers() { return {
83
83
  "disabled": ["watchFormComplete"]
@@ -1,7 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { c as classes } from './classes.js';
3
3
 
4
- const zonosSpinnerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}:host.black{stroke:var(--amino-spinner-stroke-black)}:host.black circle.track{stroke:var(--amino-spinner-track-black)}:host.white{stroke:var(--amino-spinner-stroke-white)}:host.white circle.track{stroke:var(--amino-spinner-track-white)}:host.info{stroke:var(--amino-blue-600)}:host.info circle.track{stroke:var(--amino-blue-100)}:host.success{stroke:var(--amino-green-600)}:host.success circle.track{stroke:var(--amino-green-100)}:host.danger{stroke:var(--amino-red-600)}:host.danger circle.track{stroke:var(--amino-red-100)}:host.warning{stroke:var(--amino-orange-600)}:host.warning circle.track{stroke:var(--amino-orange-100)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}";
4
+ const zonosSpinnerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:relative;overflow:hidden;width:var(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--amino-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--amino-spinner-track-black)}:host(.white) circle{stroke:var(--amino-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--amino-spinner-track-white)}:host(.info) circle{stroke:var(--amino-blue-600)}:host(.info) circle.track{stroke:var(--amino-blue-100)}:host(.success) circle{stroke:var(--amino-green-600)}:host(.success) circle.track{stroke:var(--amino-green-100)}:host(.danger) circle{stroke:var(--amino-red-600)}:host(.danger) circle.track{stroke:var(--amino-red-100)}:host(.warning) circle{stroke:var(--amino-orange-600)}:host(.warning) circle.track{stroke:var(--amino-orange-100)}";
5
5
  const ZonosSpinnerStyle0 = zonosSpinnerCss;
6
6
 
7
7
  const ZonosSpinner = /*@__PURE__*/ proxyCustomElement(class ZonosSpinner extends HTMLElement {
@@ -10,13 +10,13 @@ const ZonosSpinner = /*@__PURE__*/ proxyCustomElement(class ZonosSpinner extends
10
10
  this.__registerHost();
11
11
  this.__attachShadow();
12
12
  this.size = 32;
13
- this.color = undefined;
13
+ this.spinnerColor = undefined;
14
14
  }
15
15
  render() {
16
16
  if (!this.el.shadowRoot) {
17
17
  return null;
18
18
  }
19
- return (h(Host, { class: classes(['zonos--elements', this.color]), style: {
19
+ return (h(Host, { class: classes(['zonos--elements', this.spinnerColor]), style: {
20
20
  '--size': `${this.size}px`,
21
21
  } }, h("svg", { viewBox: "0 0 50 50" }, h("circle", { class: "track", cx: "25", cy: "25", fill: "none", id: "loading-spinner-circle", r: "20", "stroke-width": "5" }), h("circle", { cx: "25", cy: "25", fill: "none", id: "loading-spinner-circle", r: "20", "stroke-width": "5" }))));
22
22
  }
@@ -24,7 +24,7 @@ const ZonosSpinner = /*@__PURE__*/ proxyCustomElement(class ZonosSpinner extends
24
24
  static get style() { return ZonosSpinnerStyle0; }
25
25
  }, [1, "zonos-spinner", {
26
26
  "size": [2],
27
- "color": [1]
27
+ "spinnerColor": [1, "spinner-color"]
28
28
  }]);
29
29
  function defineCustomElement() {
30
30
  if (typeof customElements === "undefined") {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { b as zonosStoreFontFamily } from './zonosStore.js';
2
+ import { a as zonosStoreFontFamily } from './zonosStore.js';
3
3
  import { c as classes } from './classes.js';
4
4
 
5
5
  const textOptions = {
@@ -110,8 +110,7 @@ const ZonosText = /*@__PURE__*/ proxyCustomElement(class ZonosText extends HTMLE
110
110
  super();
111
111
  this.__registerHost();
112
112
  this.__attachShadow();
113
- this.class = '';
114
- this.color = 'gray-1200';
113
+ this.textColor = 'gray-1200';
115
114
  this.size = undefined;
116
115
  this.type = 'body';
117
116
  this.weight = undefined;
@@ -147,16 +146,14 @@ const ZonosText = /*@__PURE__*/ proxyCustomElement(class ZonosText extends HTMLE
147
146
  return (h(Host, { class: classes([
148
147
  `zonos--text-size-${textSize}`,
149
148
  `zonos--text-weight-${textWeight}`,
150
- this.class,
151
149
  ]), style: {
152
- '--color': this.color ? `var(--amino-${this.color})` : '',
150
+ '--color': this.textColor ? `var(--amino-${this.textColor})` : '',
153
151
  '--font-family': zonosStoreFontFamily(),
154
152
  } }, renderText()));
155
153
  }
156
154
  static get style() { return ZonosTextStyle0; }
157
155
  }, [1, "zonos-text", {
158
- "class": [1],
159
- "color": [1],
156
+ "textColor": [1, "text-color"],
160
157
  "size": [1],
161
158
  "type": [1],
162
159
  "weight": [2],
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface ZonosTooltip extends Components.ZonosTooltip, HTMLElement {}
4
+ export const ZonosTooltip: {
5
+ prototype: ZonosTooltip;
6
+ new (): ZonosTooltip;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { Z as ZonosTooltip$1, d as defineCustomElement$1 } from './zonos-tooltip2.js';
2
+
3
+ const ZonosTooltip = ZonosTooltip$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { ZonosTooltip, defineCustomElement };
@@ -0,0 +1,48 @@
1
+ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
+ import { c as classes } from './classes.js';
3
+ import { d as defineCustomElement$1 } from './zonos-text2.js';
4
+
5
+ const zonosTooltipCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--tooltip{position:relative}:host .zonos--tooltip .zonos--tooltip-content{position:absolute;bottom:100%;left:0;width:-webkit-max-content;width:-moz-max-content;width:max-content;padding:var(--amino-space-12);background-color:var(--amino-gray-1200);opacity:0;-webkit-transform:scale(0);transform:scale(0);-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out;-webkit-transform-origin:bottom left;transform-origin:bottom left;border-radius:var(--amino-radius-4);z-index:100;-webkit-box-shadow:var(--amino-v3-shadow-large);box-shadow:var(--amino-v3-shadow-large)}:host .zonos--tooltip .zonos--tooltip-content.zonos--show-tooltip{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
6
+ const ZonosTooltipStyle0 = zonosTooltipCss;
7
+
8
+ const ZonosTooltip = /*@__PURE__*/ proxyCustomElement(class ZonosTooltip extends HTMLElement {
9
+ constructor() {
10
+ super();
11
+ this.__registerHost();
12
+ this.__attachShadow();
13
+ this.label = '';
14
+ this.subtitle = '';
15
+ this.showTooltip = false;
16
+ }
17
+ render() {
18
+ return (h(Host, { key: '684561bebf9385c7e6bcca7de37e7ee5084c9692', class: "zonos--elements" }, h("div", { key: 'c116738f39d25b856b268ece410a33f91046c739', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '4073ed0766b4efaa0c25fa7febdbad4c42714dca' }), h("div", { key: '8c6b180577830aaaceb629819535dd930fc49e02', class: classes([
19
+ this.showTooltip && 'zonos--show-tooltip',
20
+ 'zonos--tooltip-content',
21
+ ]) }, h("zonos-text", { key: '7c018a9d5a7db939b59624dcc77029a5a8d621af', color: "gray-0", size: "s", type: "boldLabel" }, this.label), h("zonos-text", { key: 'c1f09eaf9cb1084ecf47334903b9ca8b944502b7', color: "gray-0", size: "xs" }, this.subtitle)))));
22
+ }
23
+ static get style() { return ZonosTooltipStyle0; }
24
+ }, [1, "zonos-tooltip", {
25
+ "label": [1],
26
+ "subtitle": [1],
27
+ "showTooltip": [32]
28
+ }]);
29
+ function defineCustomElement() {
30
+ if (typeof customElements === "undefined") {
31
+ return;
32
+ }
33
+ const components = ["zonos-tooltip", "zonos-text"];
34
+ components.forEach(tagName => { switch (tagName) {
35
+ case "zonos-tooltip":
36
+ if (!customElements.get(tagName)) {
37
+ customElements.define(tagName, ZonosTooltip);
38
+ }
39
+ break;
40
+ case "zonos-text":
41
+ if (!customElements.get(tagName)) {
42
+ defineCustomElement$1();
43
+ }
44
+ break;
45
+ } });
46
+ }
47
+
48
+ export { ZonosTooltip as Z, defineCustomElement as d };
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
- import { b as zonosStoreFontFamily } from './zonosStore.js';
2
+ import { a as zonosStoreFontFamily } from './zonosStore.js';
3
3
  import { c as classes } from './classes.js';
4
4
 
5
5
  const zonosVStackCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";
@@ -11,17 +11,15 @@ const VStack = /*@__PURE__*/ proxyCustomElement(class VStack extends HTMLElement
11
11
  this.__registerHost();
12
12
  this.__attachShadow();
13
13
  this.spacing = 24;
14
- this.class = '';
15
14
  }
16
15
  render() {
17
- return (h(Host, { key: 'd363ffeb2bbae49e7318b26ab56b4b8871844daf', style: {
16
+ return (h(Host, { key: 'a26c7c4898b81deb569731adb63505ded3155fdf', style: {
18
17
  '--font-family': zonosStoreFontFamily(),
19
- } }, h("div", { key: '5d9fa5ae9ffca787ca42f38e4ec75fedc24823f9', class: classes(['vstack', this.class]), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: 'e1d6fef3378b92c18c2c43ec8616e8c733a4290c' }))));
18
+ } }, h("div", { key: 'd4af21dc024bbd12b5240dff4f2689416ad4d808', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '298de42d875520fad5a720eedcf2b8664b39ae85' }))));
20
19
  }
21
20
  static get style() { return ZonosVStackStyle0; }
22
21
  }, [1, "zonos-v-stack", {
23
- "spacing": [2],
24
- "class": [1]
22
+ "spacing": [2]
25
23
  }]);
26
24
  function defineCustomElement() {
27
25
  if (typeof customElements === "undefined") {
@@ -2857,4 +2857,4 @@ const zonosStoreFontFamily = () => {
2857
2857
  return fontFamily;
2858
2858
  };
2859
2859
 
2860
- export { _root as _, commonjsGlobal as a, zonosStoreFontFamily as b, createStore as c, zonosStoreInitSetting as d, _baseGetTag as e, isObject_1 as f, isObjectLike_1 as i, mergeConfig as m, zonosStore as z };
2860
+ export { _root as _, zonosStoreFontFamily as a, commonjsGlobal as b, createStore as c, zonosStoreInitSetting as d, _baseGetTag as e, isObject_1 as f, isObjectLike_1 as i, mergeConfig as m, zonosStore as z };
@@ -0,0 +1,24 @@
1
+ const languages = [
2
+ { code: 'en', label: 'English', translatedLabel: 'English' },
3
+ { code: 'es', label: 'Spanish', translatedLabel: 'Español' },
4
+ { code: 'pt', label: 'Portuguese', translatedLabel: 'Português' },
5
+ { code: 'ru', label: 'Russian', translatedLabel: 'русский' },
6
+ { code: 'da', label: 'Danish', translatedLabel: 'dansk' },
7
+ { code: 'it', label: 'Italian', translatedLabel: 'Italiano' },
8
+ { code: 'pl', label: 'Polish', translatedLabel: 'Polskie' },
9
+ { code: 'ar', label: 'Arabic', translatedLabel: 'عربى' },
10
+ { code: 'de', label: 'German', translatedLabel: 'Deutsche' },
11
+ { code: 'ja', label: 'Japanese', translatedLabel: '日本語' },
12
+ { code: 'no', label: 'Norwegian', translatedLabel: 'norsk' },
13
+ { code: 'vi', label: 'Vietnamese', translatedLabel: 'Tiếng Việt' },
14
+ { code: 'tr', label: 'Turkish', translatedLabel: 'Türk' },
15
+ { code: 'he', label: 'Hebrew', translatedLabel: 'עִברִית' },
16
+ { code: 'fr', label: 'French', translatedLabel: 'Français' },
17
+ { code: 'nl', label: 'Dutch', translatedLabel: 'Nederlands' },
18
+ { code: 'zh', label: 'Chinese', translatedLabel: '中文' },
19
+ { code: 'sv', label: 'Swedish', translatedLabel: 'svenska' },
20
+ { code: 'id', label: 'Indonesian', translatedLabel: 'bahasa Indonesia' },
21
+ { code: 'ko', label: 'Korean', translatedLabel: '한국어' },
22
+ ];
23
+
24
+ export { languages as l };
@@ -0,0 +1,3 @@
1
+ const globalScripts = () => {};
2
+
3
+ export { globalScripts as g };
@@ -1,16 +1,34 @@
1
- import { z as zonosStore, c as createStore } from './zonosStore-e59617f8.js';
2
- import { h as handleFetch, l as log, a as localizationStore, b as logError, t as translate } from './localization-5d83fde2.js';
3
- import { i as isDarkColor } from './isDarkColor-8696cb70.js';
4
- import { g as getBorderRadius } from './getBorderRadius-9e4cb3b1.js';
1
+ import { z as zonosStore, c as createStore } from './zonosStore-e6c7be3a.js';
2
+ import { h as handleFetch, a as log, l as localizationStore, b as logError, t as translate } from './localization-d8f6453b.js';
3
+ import { i as isDarkColor } from './isDarkColor-e982fa09.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-e9736f7e.js';
5
5
 
6
6
  const prepCalculateLandedCost = () => {
7
7
  // maybe we don't need email now for prefetch the landed cost
8
8
  const stripeLinkData = stripeStore.stripeLinkEventData;
9
9
  const stripeAddressData = stripeStore.stripeAddressEventData;
10
- if (!stripeAddressData || !stripeAddressData.complete) {
10
+ const stripeBillingAddressData = stripeStore.stripeShippingSameAsBilling
11
+ ? stripeStore.stripeAddressEventData
12
+ : stripeStore.stripeBillingAddressEventData;
13
+ if (!(stripeAddressData === null || stripeAddressData === void 0 ? void 0 : stripeAddressData.complete) || !(stripeBillingAddressData === null || stripeBillingAddressData === void 0 ? void 0 : stripeBillingAddressData.complete)) {
11
14
  throw new Error('Missing stripe address data');
12
15
  }
13
16
  return {
17
+ billingAddress: {
18
+ addressLine1: stripeBillingAddressData.value.address.line1,
19
+ addressLine2: stripeBillingAddressData.value.address.line2 || '',
20
+ city: stripeBillingAddressData.value.address.city,
21
+ country: stripeBillingAddressData.value.address.country,
22
+ postalCode: stripeBillingAddressData.value.address.postal_code,
23
+ state: stripeBillingAddressData.value.address.state,
24
+ },
25
+ billingContact: {
26
+ // firstName and lastName should be valid now since stripe only mark
27
+ // the address as complete when both fields are filled.
28
+ firstName: stripeBillingAddressData.value.firstName || '',
29
+ lastName: stripeBillingAddressData.value.lastName || '',
30
+ phone: stripeBillingAddressData.value.phone || '',
31
+ },
14
32
  checkoutSessionId: cartStore.checkoutSessionId || '',
15
33
  contact: {
16
34
  email: (stripeLinkData === null || stripeLinkData === void 0 ? void 0 : stripeLinkData.value.email) || '',
@@ -33,11 +51,17 @@ const prepCalculateLandedCost = () => {
33
51
  };
34
52
 
35
53
  const triggerBuildLandedCost = async (buildLandedCost) => {
36
- var _a;
54
+ var _a, _b, _c, _d;
37
55
  const data = prepCalculateLandedCost();
38
- const landedCost = await buildLandedCost(data.checkoutSessionId, data.contact, data.shippingAddress);
39
- if (!landedCost) {
40
- throw new Error('Failed to build landed cost');
56
+ const landedCost = await buildLandedCost({
57
+ billingAddress: data.billingAddress,
58
+ billingContact: data.billingContact,
59
+ checkoutSessionId: data.checkoutSessionId,
60
+ contact: data.contact,
61
+ shippingAddress: data.shippingAddress,
62
+ });
63
+ if (!landedCost || ((_a = landedCost.errors) === null || _a === void 0 ? void 0 : _a.length)) {
64
+ throw new Error(`Failed to build landed cost: ${((_c = (_b = landedCost === null || landedCost === void 0 ? void 0 : landedCost.errors) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.message) || 'Unknown error'}`);
41
65
  }
42
66
  // Validate the landed cost object to make sure the returned value from buildLandedCost has a valid schema
43
67
  const { errors, json } = await handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/validate-landed-cost`, {
@@ -48,7 +72,7 @@ const triggerBuildLandedCost = async (buildLandedCost) => {
48
72
  method: 'POST',
49
73
  });
50
74
  if (!json || errors.length) {
51
- throw new Error(`Invalid landed cost object: ${((_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message) || 'Unknown error'}`);
75
+ throw new Error(`Invalid landed cost object: ${((_d = errors.find(Boolean)) === null || _d === void 0 ? void 0 : _d.message) || 'Unknown error'}`);
52
76
  }
53
77
  return landedCost;
54
78
  };
@@ -122,16 +146,21 @@ const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = createStor
122
146
  stripeAddressEventData: null,
123
147
  stripeAddressUsedWhenFetchingLC: null,
124
148
  stripeBillingAddressElement: null,
149
+ stripeBillingAddressEventData: null,
150
+ stripeBillingAddressUsedWhenFetchingLC: null,
125
151
  stripeElements: null,
152
+ stripeElementsForBillingAddress: null,
126
153
  stripeElementsOptions: null,
127
154
  stripeLinkElement: null,
128
155
  stripeLinkEventData: null,
129
156
  stripeLinkUsedWhenFetchingLC: null,
130
157
  stripePaymentElement: null,
131
158
  stripePaymentEventData: null,
159
+ stripeShippingSameAsBilling: true,
132
160
  }));
133
- const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryColor, overrideTheme, }) => {
161
+ const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryColor, overrideSecondaryColor, overrideTheme, }) => {
134
162
  const primaryColor = overridePrimaryColor || zonosStore.appearance.colorPrimary;
163
+ const secondaryColor = overrideSecondaryColor || zonosStore.appearance.colorSecondary;
135
164
  const themeBasedColor = primaryColor && isDarkColor(primaryColor) ? 'night' : 'flat';
136
165
  // if overrideTheme is provided, use it. Otherwise, use theme based on primary color
137
166
  const theme = overrideTheme === 'DARK' ? 'night' : 'flat';
@@ -141,17 +170,19 @@ const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryC
141
170
  rules: Object.assign({}, addressRuleStyle({ theme: 'LIGHT' })),
142
171
  // get contrast theme color base on primary color
143
172
  theme: overrideTheme ? theme : themeBasedColor,
144
- variables: Object.assign({}, defaultVariable({
173
+ variables: Object.assign(Object.assign({}, defaultVariable({
145
174
  borderStyle: overrideBorderRaidus,
146
175
  theme: 'LIGHT',
147
- })),
176
+ })), {
177
+ // use the button background color for input glow color
178
+ colorPrimary: secondaryColor }),
148
179
  },
149
180
  clientSecret,
150
181
  locale: localizationStore.selectedLocale,
151
182
  };
152
183
  };
153
184
  const initStripeElements = async (props) => {
154
- var _a;
185
+ var _a, _b;
155
186
  const clientSecret = stripeStore.clientSecret;
156
187
  if (!stripeStore.stripe) {
157
188
  log('Skip. Stripe is not initialized');
@@ -162,22 +193,30 @@ const initStripeElements = async (props) => {
162
193
  clientSecret,
163
194
  overrideBorderRaidus: props === null || props === void 0 ? void 0 : props.overrideBorderRaidus,
164
195
  overridePrimaryColor: props === null || props === void 0 ? void 0 : props.overridePrimaryColor,
196
+ overrideSecondaryColor: props === null || props === void 0 ? void 0 : props.overrideSecondaryColor,
165
197
  overrideTheme: props === null || props === void 0 ? void 0 : props.overrideTheme,
166
198
  });
167
199
  // compare with the previous options to see if we need to update
168
200
  const isSameOptions = JSON.stringify(stripeOptions) ===
169
201
  JSON.stringify(stripeStore.stripeElementsOptions);
170
- if (!stripeStore.stripeElements) {
202
+ if (!stripeStore.stripeElements ||
203
+ !stripeStore.stripeElementsForBillingAddress) {
171
204
  // init stripe elements if it doesn't exist
172
205
  stripeStore.stripeElements = (_a = stripeStore.stripe) === null || _a === void 0 ? void 0 : _a.elements(stripeOptions);
173
206
  // save stripe elements options for later comparison
174
207
  stripeStore.stripeElementsOptions = stripeOptions;
175
208
  log('Stripe elements initialized');
209
+ // init stripe elements for billing address
210
+ stripeStore.stripeElementsForBillingAddress =
211
+ (_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
212
+ log('Stripe elements for billing address initialized');
176
213
  return;
177
214
  }
178
215
  if (!isSameOptions) {
179
216
  // update elements with new option if it already exists
180
217
  stripeStore.stripeElements.update(stripeOptions);
218
+ // update elements for stripe billing address
219
+ stripeStore.stripeElementsForBillingAddress.update(stripeOptions);
181
220
  // save stripe elements options for later comparison
182
221
  stripeStore.stripeElementsOptions = stripeOptions;
183
222
  }
@@ -197,7 +236,7 @@ const stripeStoreReset = () => {
197
236
  * Purpose is to resend the request if the info used when fetching landed cost is different from the current info
198
237
  */
199
238
  const isPrefetchInfoOutdated = () => {
200
- var _a, _b, _c, _d;
239
+ var _a, _b, _c, _d, _e, _f;
201
240
  const hasAbortController = stripeStore.fetchingLandedCostAbordController;
202
241
  if (!hasAbortController) {
203
242
  // if there is no abort controller, this is a new request
@@ -207,26 +246,36 @@ const isPrefetchInfoOutdated = () => {
207
246
  JSON.stringify((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.value);
208
247
  const isAddressDataDirty = JSON.stringify((_c = stripeStore.stripeAddressUsedWhenFetchingLC) === null || _c === void 0 ? void 0 : _c.value) !==
209
248
  JSON.stringify((_d = stripeStore.stripeAddressEventData) === null || _d === void 0 ? void 0 : _d.value);
210
- return isLinkDataDirty || isAddressDataDirty;
249
+ const isBillingAddressDataDirty = !stripeStore.stripeShippingSameAsBilling &&
250
+ JSON.stringify((_e = stripeStore.stripeBillingAddressEventData) === null || _e === void 0 ? void 0 : _e.value) !==
251
+ JSON.stringify((_f = stripeStore.stripeBillingAddressUsedWhenFetchingLC) === null || _f === void 0 ? void 0 : _f.value);
252
+ return isLinkDataDirty || isAddressDataDirty || isBillingAddressDataDirty;
211
253
  };
212
254
  const stripeStorePrefetchLandedCost = async () => {
213
- var _a, _b, _c, _d;
255
+ var _a, _b, _c, _d, _e, _f;
214
256
  const stripeAddressReady = !!((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete);
215
257
  const stripeLinkReady = !!((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.complete);
258
+ const stripeBillingAddressReady = stripeStore.stripeShippingSameAsBilling
259
+ ? !!((_c = stripeStore.stripeLinkEventData) === null || _c === void 0 ? void 0 : _c.complete)
260
+ : !!((_d = stripeStore.stripeBillingAddressEventData) === null || _d === void 0 ? void 0 : _d.complete);
216
261
  const shouldRefetch = isPrefetchInfoOutdated();
217
262
  if (shouldRefetch) {
218
263
  // if the info used when fetching landed cost is different from the current info, abort the previous request
219
- (_c = stripeStore.fetchingLandedCostAbordController) === null || _c === void 0 ? void 0 : _c.abort();
264
+ (_e = stripeStore.fetchingLandedCostAbordController) === null || _e === void 0 ? void 0 : _e.abort();
220
265
  stripeStore.fetchingLandedCostAbordController = null;
221
266
  }
222
267
  // only fetch if we are not fetching or we need to refetch
223
268
  if (stripeAddressReady &&
224
269
  stripeLinkReady &&
270
+ stripeBillingAddressReady &&
225
271
  (shouldRefetch || !stripeStore.isFetchingLandedCost)) {
226
272
  stripeStore.isFetchingLandedCost = true;
227
273
  if (stripeStore.stripeAddressEventData) {
228
274
  stripeStore.stripeAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeAddressEventData);
229
275
  }
276
+ if (stripeStore.stripeBillingAddressEventData) {
277
+ stripeStore.stripeBillingAddressUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeBillingAddressEventData);
278
+ }
230
279
  if (stripeStore.stripeLinkEventData) {
231
280
  stripeStore.stripeLinkUsedWhenFetchingLC = Object.assign({}, stripeStore.stripeLinkEventData);
232
281
  }
@@ -242,7 +291,7 @@ const stripeStorePrefetchLandedCost = async () => {
242
291
  cartStore.shippingData =
243
292
  (shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || null;
244
293
  // apply new subtotal and total, this is mainly to show items in the presentment currency
245
- const firstLandedCostData = (_d = cartStore.landedCostData) === null || _d === void 0 ? void 0 : _d.find(Boolean);
294
+ const firstLandedCostData = (_f = cartStore.landedCostData) === null || _f === void 0 ? void 0 : _f.find(Boolean);
246
295
  const subtotals = !!firstLandedCostData
247
296
  ? firstLandedCostData.subtotals
248
297
  : null;
@@ -484,6 +533,8 @@ const cartStoreReset = () => {
484
533
  reset();
485
534
  };
486
535
  const cartStoreUpdateToErrorState = ({ messages, title, }) => {
536
+ cartStoreReset();
537
+ stripeStoreReset();
487
538
  cartStore.step = 'error';
488
539
  cartStore.error = {
489
540
  messages,
@@ -628,4 +679,4 @@ const cartStorePreviousStep = () => {
628
679
  }
629
680
  };
630
681
 
631
- export { cartStoreApplySubtotals as a, cartStoreGetShippingTransitInfo as b, cartStore as c, cartStoreNextStep as d, cartStorePreviousStep as e, cartStoreReCalculateTotal as f, cartStoreReset as g, cartStoreUpdateItems as h, cartStoreUpdateSelectedShippingOption as i, cartStoreUpdateToErrorState as j, initStripeElements as k, stripeStoreInitCheckoutSession as l, stripeStorePrefetchLandedCost as m, stripeStoreConfirmPayment as n, stripeStoreReset as o, stripeStoreRetrievePayment as p, stripeStore as s };
682
+ export { cartStoreUpdateItems as a, cartStoreReset as b, cartStore as c, stripeStoreInitCheckoutSession as d, cartStoreUpdateToErrorState as e, stripeStorePrefetchLandedCost as f, cartStoreNextStep as g, stripeStoreConfirmPayment as h, initStripeElements as i, stripeStoreReset as j, cartStorePreviousStep as k, stripeStoreRetrievePayment as l, cartStoreUpdateSelectedShippingOption as m, cartStoreGetShippingTransitInfo as n, stripeStore as s };
@@ -0,0 +1,20 @@
1
+ import { z as zonosStore } from './zonosStore-e6c7be3a.js';
2
+
3
+ /**
4
+ * Get the border radius for the elements based on the style
5
+ * @param overrideBorderStyle
6
+ * @returns
7
+ */
8
+ const getBorderRadius = (overrideBorderStyle,
9
+ /**
10
+ * This is the custom round radius for component that 10px is too much for them
11
+ */
12
+ customRoundRadius = '10px') => {
13
+ if (overrideBorderStyle) {
14
+ // If the override is set, use that, otherwise use the default radius style
15
+ return overrideBorderStyle === 'SHARP' ? '0px' : customRoundRadius;
16
+ }
17
+ return zonosStore.appearance.style === 'SHARP' ? '0px' : customRoundRadius;
18
+ };
19
+
20
+ export { getBorderRadius as g };
package/dist/esm/index.js CHANGED
@@ -1,6 +1 @@
1
- export { c as cartStore, a as cartStoreApplySubtotals, b as cartStoreGetShippingTransitInfo, d as cartStoreNextStep, e as cartStorePreviousStep, f as cartStoreReCalculateTotal, g as cartStoreReset, h as cartStoreUpdateItems, i as cartStoreUpdateSelectedShippingOption, j as cartStoreUpdateToErrorState } from './cart-ba9b0d4c.js';
2
- import './zonosStore-e59617f8.js';
3
- import './index-81a199ef.js';
4
- import './localization-5d83fde2.js';
5
- import './isDarkColor-8696cb70.js';
6
- import './getBorderRadius-9e4cb3b1.js';
1
+
@@ -0,0 +1,6 @@
1
+ const checkoutBreakpoint = 890;
2
+ const isCheckoutMobile = (isMobile) => {
3
+ return isMobile || window.innerWidth < checkoutBreakpoint;
4
+ };
5
+
6
+ export { isCheckoutMobile as i };