@zonos/elements 1.3.263 → 1.3.265

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 (283) hide show
  1. package/dist/cjs/{cart-02a93797.js → cart-c325b9e4.js} +2 -1
  2. package/dist/cjs/{hasInclusivePrice-751ef38b.js → hasInclusivePrice-40358cb1.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{invoice-215b8d2b.js → invoice-ac9414df.js} +2 -2
  5. package/dist/cjs/{isCollectMobileTablet-0d909501.js → isCollectMobileTablet-92fa5e8f.js} +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{localization-68ebf7c6.js → localization-06cc0379.js} +15 -1
  8. package/dist/cjs/{paypal-f8a0cca3.js → paypal-b52e1f24.js} +2 -2
  9. package/dist/cjs/{placeTestOrder-ce734b60.js → placeTestOrder-d93a6f2b.js} +2 -2
  10. package/dist/cjs/{renderCheckoutCurrency-d163c1c4.js → renderCheckoutCurrency-1f521ea7.js} +2 -2
  11. package/dist/cjs/zonos-address-display_8.cjs.entry.js +19 -19
  12. package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
  13. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
  16. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +98 -17
  17. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
  18. package/dist/cjs/zonos-checkout.cjs.entry.js +219 -60
  19. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
  21. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +22 -20
  22. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  23. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  25. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-country-select_4.cjs.entry.js +13 -11
  27. package/dist/cjs/zonos-elements.cjs.js +1 -1
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  29. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
  32. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +17 -15
  33. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  34. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  35. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  37. package/dist/cjs/zonos-store-credit.cjs.entry.js +3 -3
  38. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  39. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  40. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +9 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +15 -1
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +5 -0
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -2
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +61 -0
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
  48. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +5 -0
  49. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +5 -3
  50. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  51. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  52. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  53. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
  54. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.css +5 -0
  55. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +5 -3
  56. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  57. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  58. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  59. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  60. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  61. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  62. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  63. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  64. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  65. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  66. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  67. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  68. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  69. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  70. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  71. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  72. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  73. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  74. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  75. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  76. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  77. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  78. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  79. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  80. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  81. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  82. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  83. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  84. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  85. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +5 -0
  86. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +4 -2
  87. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  88. package/dist/collection/components/main/zonos-controller.js +1 -1
  89. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  90. package/dist/collection/components/store/checkout/cart.js +1 -0
  91. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  92. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  93. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  94. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  95. package/dist/collection/components/utils/checkout/bigcommerceStorefrontApi.js +1 -1
  96. package/dist/collection/components/utils/checkout/getBigCommerceCustomerAddresses.js +99 -0
  97. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +15 -0
  98. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +1 -1
  99. package/dist/collection/components/utils/parseLinkedText.js +65 -0
  100. package/dist/esm/{cart-34b11708.js → cart-0625a766.js} +2 -1
  101. package/dist/esm/{hasInclusivePrice-dfb21fc9.js → hasInclusivePrice-afc0dd6e.js} +1 -1
  102. package/dist/esm/index.js +7 -7
  103. package/dist/esm/{invoice-6d8bdf21.js → invoice-0daa7f74.js} +2 -2
  104. package/dist/esm/{isCollectMobileTablet-85403c93.js → isCollectMobileTablet-8d3fb5f4.js} +2 -2
  105. package/dist/esm/loader.js +1 -1
  106. package/dist/esm/{localization-2e523b35.js → localization-ee06df70.js} +15 -1
  107. package/dist/esm/{paypal-d3b3d967.js → paypal-78c3572c.js} +2 -2
  108. package/dist/esm/{placeTestOrder-e1d6dfcd.js → placeTestOrder-18de7b6f.js} +2 -2
  109. package/dist/esm/{renderCheckoutCurrency-cc72a6c2.js → renderCheckoutCurrency-ba1702db.js} +2 -2
  110. package/dist/esm/zonos-address-display_8.entry.js +19 -19
  111. package/dist/esm/zonos-address_4.entry.js +8 -8
  112. package/dist/esm/zonos-badge.entry.js +3 -3
  113. package/dist/esm/zonos-button_3.entry.js +3 -3
  114. package/dist/esm/zonos-card_5.entry.js +9 -9
  115. package/dist/esm/zonos-cart-items_12.entry.js +98 -17
  116. package/dist/esm/zonos-checkbox_2.entry.js +5 -5
  117. package/dist/esm/zonos-checkout.entry.js +220 -61
  118. package/dist/esm/zonos-collapse.entry.js +2 -2
  119. package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
  120. package/dist/esm/zonos-collect-finish_6.entry.js +22 -20
  121. package/dist/esm/zonos-collect.entry.js +4 -4
  122. package/dist/esm/zonos-component.entry.js +1 -1
  123. package/dist/esm/zonos-controller.entry.js +3 -3
  124. package/dist/esm/zonos-country-flag.entry.js +1 -1
  125. package/dist/esm/zonos-country-select_4.entry.js +13 -11
  126. package/dist/esm/zonos-elements.js +1 -1
  127. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  128. package/dist/esm/zonos-hello.entry.js +1 -1
  129. package/dist/esm/zonos-input.entry.js +4 -4
  130. package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
  131. package/dist/esm/zonos-invoice-finish_5.entry.js +17 -15
  132. package/dist/esm/zonos-invoice.entry.js +4 -4
  133. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  134. package/dist/esm/zonos-link.entry.js +1 -1
  135. package/dist/esm/zonos-logo.entry.js +2 -2
  136. package/dist/esm/zonos-store-credit.entry.js +3 -3
  137. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  138. package/dist/esm/zonos-tooltip.entry.js +2 -2
  139. package/dist/esm/zonos-v-stack.entry.js +2 -2
  140. package/dist/esm-es5/{cart-34b11708.js → cart-0625a766.js} +1 -1
  141. package/dist/esm-es5/{hasInclusivePrice-dfb21fc9.js → hasInclusivePrice-afc0dd6e.js} +1 -1
  142. package/dist/esm-es5/index.js +1 -1
  143. package/dist/esm-es5/{invoice-6d8bdf21.js → invoice-0daa7f74.js} +1 -1
  144. package/dist/esm-es5/{isCollectMobileTablet-85403c93.js → isCollectMobileTablet-8d3fb5f4.js} +1 -1
  145. package/dist/esm-es5/loader.js +1 -1
  146. package/dist/esm-es5/{localization-2e523b35.js → localization-ee06df70.js} +1 -1
  147. package/dist/esm-es5/{paypal-d3b3d967.js → paypal-78c3572c.js} +1 -1
  148. package/dist/esm-es5/{placeTestOrder-e1d6dfcd.js → placeTestOrder-18de7b6f.js} +1 -1
  149. package/dist/esm-es5/{renderCheckoutCurrency-cc72a6c2.js → renderCheckoutCurrency-ba1702db.js} +1 -1
  150. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  151. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  152. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  153. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  154. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  155. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  156. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  157. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  158. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  159. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  160. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  161. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  162. package/dist/esm-es5/zonos-component.entry.js +1 -1
  163. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  164. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  165. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  166. package/dist/esm-es5/zonos-elements.js +1 -1
  167. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  168. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  169. package/dist/esm-es5/zonos-input.entry.js +1 -1
  170. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  171. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  172. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  173. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  174. package/dist/esm-es5/zonos-link.entry.js +1 -1
  175. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  176. package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
  177. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  178. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  179. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  180. package/dist/scripts/index.d.ts +6 -0
  181. package/dist/scripts/index.js +1 -1
  182. package/dist/scripts/loadZonos.js +1 -1
  183. package/dist/scripts/zonos.js +1 -1
  184. package/dist/types/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.d.ts +7 -0
  185. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +9 -0
  186. package/dist/types/components/store/checkout/cart.d.ts +5 -0
  187. package/dist/types/components/utils/checkout/bigcommerceStorefrontApi.d.ts +22 -11
  188. package/dist/types/components/utils/checkout/getBigCommerceCustomerAddresses.d.ts +26 -0
  189. package/dist/types/components/utils/parseLinkedText.d.ts +24 -0
  190. package/dist/types/types/checkout/CheckoutConfig.d.ts +6 -0
  191. package/dist/zonos-elements/index.esm.js +1 -1
  192. package/dist/zonos-elements/{p-17b6f9ff.system.entry.js → p-0529a06b.system.entry.js} +1 -1
  193. package/dist/zonos-elements/{p-155b4425.entry.js → p-0b4ba025.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-c361d520.system.entry.js → p-0f9a04fe.system.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-2b40fab2.entry.js → p-105b7ebe.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-b1c76c38.system.entry.js → p-16948eea.system.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-dc71be6f.system.entry.js → p-19a1cc70.system.entry.js} +1 -1
  198. package/dist/zonos-elements/p-1ce71a7d.entry.js +1 -0
  199. package/dist/zonos-elements/{p-5290d104.entry.js → p-1ed2827f.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-5496e9ae.system.js → p-24aae506.system.js} +1 -1
  201. package/dist/zonos-elements/{p-92f40018.system.entry.js → p-2555ba6b.system.entry.js} +1 -1
  202. package/dist/zonos-elements/p-26374593.system.entry.js +1 -0
  203. package/dist/zonos-elements/{p-30b19a4e.system.entry.js → p-274a7c0e.system.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-1b5d90ee.system.entry.js → p-281063f4.system.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-fb87172c.entry.js → p-283ffaad.entry.js} +1 -1
  206. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  207. package/dist/zonos-elements/{p-024a4af5.entry.js → p-30a0aed1.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-e06936f4.entry.js → p-32ecece3.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-de44cccd.system.entry.js → p-349bdc03.system.entry.js} +1 -1
  210. package/dist/zonos-elements/{p-adeaa7cf.entry.js → p-34dc7755.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-c2b86522.js → p-3686190f.js} +1 -1
  212. package/dist/zonos-elements/{p-356b2068.js → p-37f47658.js} +1 -1
  213. package/dist/zonos-elements/{p-9c5cce08.system.entry.js → p-3a23ec5f.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-562fbdab.js → p-3d6ce58a.js} +1 -1
  215. package/dist/zonos-elements/{p-2381985c.entry.js → p-3fbdb83f.entry.js} +1 -1
  216. package/dist/zonos-elements/{p-47a58a38.system.entry.js → p-407b49f1.system.entry.js} +1 -1
  217. package/dist/zonos-elements/p-41f2e301.entry.js +1 -0
  218. package/dist/zonos-elements/{p-926c33b1.system.entry.js → p-42518502.system.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-6a11cccc.system.entry.js → p-4477556a.system.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-45ceb26f.system.entry.js → p-4a4c3af1.system.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-bccae0df.entry.js → p-4baa51ef.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-96f8cea8.entry.js → p-5353cfa4.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-5d32f10f.system.entry.js → p-5678c044.system.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-a3936c44.system.entry.js → p-595e2a7d.system.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-15161658.entry.js → p-59aa5785.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-227a1ecc.system.js → p-59e16c6f.system.js} +1 -1
  227. package/dist/zonos-elements/{p-a076cf7f.system.js → p-62db5d7c.system.js} +1 -1
  228. package/dist/zonos-elements/{p-20e1a5a0.entry.js → p-66edcaa4.entry.js} +1 -1
  229. package/dist/zonos-elements/p-69e2a7dd.js +1 -0
  230. package/dist/zonos-elements/{p-b8710131.entry.js → p-6b9ad020.entry.js} +1 -1
  231. package/dist/zonos-elements/p-6ef88d96.system.entry.js +1 -0
  232. package/dist/zonos-elements/p-6f8abf4f.js +1 -0
  233. package/dist/zonos-elements/{p-7297f6bd.system.entry.js → p-72058aac.system.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-501d16ad.system.entry.js → p-72833da8.system.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-8331aa21.system.entry.js → p-79f3c227.system.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-1f107c84.entry.js → p-7c312bc2.entry.js} +1 -1
  237. package/dist/zonos-elements/p-85cc83e5.system.entry.js +1 -0
  238. package/dist/zonos-elements/{p-0f3b9ed7.entry.js → p-86ed51fd.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-4d0b8897.system.js → p-8753cb36.system.js} +1 -1
  240. package/dist/zonos-elements/p-8a01157e.system.entry.js +1 -0
  241. package/dist/zonos-elements/{p-7e313e45.entry.js → p-8a21ed2d.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-191661c6.system.entry.js → p-90a19f4c.system.entry.js} +1 -1
  243. package/dist/zonos-elements/p-9b2d6f06.entry.js +1 -0
  244. package/dist/zonos-elements/{p-22a8b44b.system.js → p-9bd63d7a.system.js} +1 -1
  245. package/dist/zonos-elements/{p-60a391b8.system.js → p-a054c5eb.system.js} +1 -1
  246. package/dist/zonos-elements/{p-a50d095f.js → p-a52ddeb5.js} +1 -1
  247. package/dist/zonos-elements/{p-51c60875.system.entry.js → p-a5f5993f.system.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-65ea8ae4.js → p-a901d002.js} +1 -1
  249. package/dist/zonos-elements/{p-73765370.system.entry.js → p-aaf9d8a4.system.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-3ae1a543.entry.js → p-ac54de99.entry.js} +1 -1
  251. package/dist/zonos-elements/p-b32cd0c5.system.js +1 -0
  252. package/dist/zonos-elements/{p-f440cd53.entry.js → p-b4b23475.entry.js} +1 -1
  253. package/dist/zonos-elements/p-bb0ce525.entry.js +1 -0
  254. package/dist/zonos-elements/p-c3ee352b.entry.js +1 -0
  255. package/dist/zonos-elements/{p-07c228a7.entry.js → p-cc481c69.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-4d776228.entry.js → p-d1ff24f5.entry.js} +1 -1
  257. package/dist/zonos-elements/p-d2b91bb9.entry.js +1 -0
  258. package/dist/zonos-elements/{p-1c1149ff.js → p-dfe45cfd.js} +1 -1
  259. package/dist/zonos-elements/{p-e0ea6e24.entry.js → p-e5582c35.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-7dbac3ae.system.entry.js → p-e6cc5a25.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-7b6e65d6.system.js → p-e755ab57.system.js} +1 -1
  262. package/dist/zonos-elements/p-e89a411c.system.entry.js +1 -0
  263. package/dist/zonos-elements/{p-bee55d71.entry.js → p-eaa79ed8.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-25b5ac23.system.entry.js → p-ec6472c9.system.entry.js} +1 -1
  265. package/dist/zonos-elements/{p-b2d462f9.system.js → p-f4f71ae4.system.js} +1 -1
  266. package/dist/zonos-elements/{p-235ee1d3.entry.js → p-f9c715ad.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-50a15e3d.system.entry.js → p-fb684748.system.entry.js} +1 -1
  268. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  269. package/package.json +1 -1
  270. package/dist/zonos-elements/p-06d8f294.entry.js +0 -1
  271. package/dist/zonos-elements/p-1fb6b787.entry.js +0 -1
  272. package/dist/zonos-elements/p-3baf98a0.system.entry.js +0 -1
  273. package/dist/zonos-elements/p-4039b72d.system.entry.js +0 -1
  274. package/dist/zonos-elements/p-5834833a.entry.js +0 -1
  275. package/dist/zonos-elements/p-5aa86f9c.entry.js +0 -1
  276. package/dist/zonos-elements/p-70c485df.js +0 -1
  277. package/dist/zonos-elements/p-79a7998f.system.entry.js +0 -1
  278. package/dist/zonos-elements/p-8603fb37.system.entry.js +0 -1
  279. package/dist/zonos-elements/p-97f0eda6.system.js +0 -1
  280. package/dist/zonos-elements/p-c4d057b0.js +0 -1
  281. package/dist/zonos-elements/p-cda0b441.entry.js +0 -1
  282. package/dist/zonos-elements/p-e4792f63.system.entry.js +0 -1
  283. package/dist/zonos-elements/p-fe5303d1.entry.js +0 -1
@@ -16,7 +16,7 @@ const ZonosLink = class {
16
16
  this.href = '';
17
17
  }
18
18
  render() {
19
- return (index.h(index.Host, { key: 'b6d1debcb25cc43d1b4eb9fe41183a3190a4f6be', class: "zonos--elements" }, index.h("a", { key: '9c81e327e3021215a78bd7ce2a619f5764c012ac', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: '59c6fbbc8cf9b5e44e76a52dd6472bd6a28a852f' }))));
19
+ return (index.h(index.Host, { key: '87f948b23f9166f04a9ff478c3a10cac68acd749', class: "zonos--elements" }, index.h("a", { key: '54ef1e907c92be92a395326808977e97b92b4121', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: '9a40d6624eb6e42d54efd40f5e6827713d51197c' }))));
20
20
  }
21
21
  };
22
22
  ZonosLink.style = ZonosLinkStyle0;
@@ -26,11 +26,11 @@ const ZonosLogo = class {
26
26
  const filterColor = this.theme === 'DARK'
27
27
  ? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
28
28
  : 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
29
- return (index.h(index.Host, { key: 'd45302a20adc0f2c9ad19a37c1c9e4578f129ddf', class: classes.classes(['zonos--elements zonos--logo']), style: {
29
+ return (index.h(index.Host, { key: '93f6a3dab000ca09fcd5c669406cdd44a06b5f25', class: classes.classes(['zonos--elements zonos--logo']), style: {
30
30
  '--zonos--filter-color': filterColor,
31
31
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
32
32
  '--zonos--width': this.width,
33
- } }, index.h("img", { key: 'e82b14ece643a9037e57b6ce561f1eff3c3bd8fa', alt: "Zonos Logo", src: index.getAssetPath('./assets/ZonosLogo.png') })));
33
+ } }, index.h("img", { key: 'f2343614678d331ea63210d01e3be9f3c49ce7a6', alt: "Zonos Logo", src: index.getAssetPath('./assets/ZonosLogo.png') })));
34
34
  }
35
35
  static get assetsDirs() { return ["assets"]; }
36
36
  };
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const cart = require('./cart-02a93797.js');
7
- const localization = require('./localization-68ebf7c6.js');
6
+ const cart = require('./cart-c325b9e4.js');
7
+ const localization = require('./localization-06cc0379.js');
8
8
  const zonosStore = require('./zonosStore-0662b95f.js');
9
- const renderCheckoutCurrency = require('./renderCheckoutCurrency-d163c1c4.js');
9
+ const renderCheckoutCurrency = require('./renderCheckoutCurrency-1f521ea7.js');
10
10
  const getBorderRadius = require('./getBorderRadius-a91911e7.js');
11
11
  require('./VarianceTest-bec00ea8.js');
12
12
  require('./handleFetch-954f30e1.js');
@@ -77,7 +77,7 @@ const ZonosStripeInput = class {
77
77
  ? zonosStore.zonosStore.appearance.theme === 'DARK'
78
78
  : primaryColor && isDarkColor.isDarkColor(primaryColor);
79
79
  const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
80
- return (index.h(index.Host, { key: '90f2916175c8512bf24c235885dba82c8a82bc6d', class: classes.classes([
80
+ return (index.h(index.Host, { key: '77300abdafcc0b557b89c15a7755b4278d0acdee', class: classes.classes([
81
81
  'zonos--input zonos--elements',
82
82
  isDark && 'dark',
83
83
  (this.isError || !!this.error) && 'has-error',
@@ -86,10 +86,10 @@ const ZonosStripeInput = class {
86
86
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
87
87
  '--zonos--font-size': `${fontSize}px`,
88
88
  '--zonos--primary-color': secondaryColor,
89
- } }, index.h("div", { key: '95a6eeecfb1c8935ab5289b10a6d4330ba69d780', class: classes.classes([
89
+ } }, index.h("div", { key: 'a6d091455bc8a33e8031d37f9b471118994bad47', class: classes.classes([
90
90
  'zonos--label-wrapper',
91
91
  this.isDisabled && 'disabled',
92
- ]) }, index.h("input", Object.assign({ key: 'ebafe0cd341d3717914d1731c67aa961df1ed25b' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
92
+ ]) }, index.h("input", Object.assign({ key: '2001e1c1427c11b203514c0c849f3a1f3c2381dc' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
93
93
  'zonos--floated-input',
94
94
  !!this.inputLabel && 'has-label',
95
95
  this.internalValue && 'has-content',
@@ -99,7 +99,7 @@ const ZonosStripeInput = class {
99
99
  this.inputChange.emit(input.value);
100
100
  this.el.inputValue = input.value;
101
101
  this.el.dispatchEvent(new Event('change'));
102
- }, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '4f9a9d698d64a16b20a9d2392c975f7ef7cefb43', class: "zonos--floated-label" }, index.h("label", { key: '8e90d3a8721703ca616dee5c8238ff01fcc7b631', htmlFor: this.inputId }, this.inputLabel))), this.error && (index.h("zonos-text", { key: '2fdbfa01afa0baa58a900d7303a82fac78483af9', textColor: "red-600", type: "caption" }, this.error))));
102
+ }, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '8b42af0315ed314fb267bf32dfcfebfee3a69a75', class: "zonos--floated-label" }, index.h("label", { key: '3de63395251ac591b1c3c527093560702f30575f', htmlFor: this.inputId }, this.inputLabel))), this.error && (index.h("zonos-text", { key: 'ee7b2b13d5577b965387bb1029f8036fb099890d', textColor: "red-600", type: "caption" }, this.error))));
103
103
  }
104
104
  get el() { return index.getElement(this); }
105
105
  static get watchers() { return {
@@ -22,10 +22,10 @@ const ZonosTooltip = class {
22
22
  this.showTooltip = false;
23
23
  }
24
24
  render() {
25
- return (index.h(index.Host, { key: '3014faf5b26490a23b7735087dd69b05f785a2eb', class: "zonos--elements" }, index.h("div", { key: 'b7117e69a0f6f4ec28a7ccaf898567aeb886b418', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: 'bf995bf9de4497d32fd825e6a1382dc5eeb768e6' }), index.h("div", { key: '15c134b8aeed57ec2ad313c4316b2f5aa2c98dd0', class: classes.classes([
25
+ return (index.h(index.Host, { key: 'f3da69a4f5610963cae6a15e5ff2d980e5d31a07', class: "zonos--elements" }, index.h("div", { key: '1636b467a3899c486b59167a438e071e0b88e699', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '3a512330cc556d3cabc18dd712cef1f353526e39' }), index.h("div", { key: 'a93fde0ea517c8eab08cbec375a891fdde5a681c', class: classes.classes([
26
26
  this.showTooltip && 'zonos--show-tooltip',
27
27
  'zonos--tooltip-content',
28
- ]) }, index.h("zonos-text", { key: '6d6a135a75e9cfa8f4c921755da4bd476dddf83e', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: 'b166deb4b050d9a18699e1e3858449215d141726', size: "xs", textColor: "gray-0" }, this.subtitle)))));
28
+ ]) }, index.h("zonos-text", { key: 'bbfaa05280ac898421a3c334cb97734ccda8dbbe', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '96fc7d23135644d92062c95686560d714a9ff4b2', size: "xs", textColor: "gray-0" }, this.subtitle)))));
29
29
  }
30
30
  };
31
31
  ZonosTooltip.style = ZonosTooltipStyle0;
@@ -20,9 +20,9 @@ const VStack = class {
20
20
  this.spacing = 24;
21
21
  }
22
22
  render() {
23
- return (index.h(index.Host, { key: 'ddc85068e0fb28356f75caef81829f2820326701', style: {
23
+ return (index.h(index.Host, { key: 'b3f2fa705a9eb81dd74f355c9caf468d8c74f49e', style: {
24
24
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
25
- } }, index.h("div", { key: '6fd038cf714612f64aa2164ebac11ad0cd8acc77', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: 'e6519671bd7ac4742306d2d702d15c25d9c69af7' }))));
25
+ } }, index.h("div", { key: '114ebba1cbf50a3572c412db808cfb7ac74b1724', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: 'f2070a31f968565c08ce002ae9a6b07178fd4ad8' }))));
26
26
  }
27
27
  };
28
28
  VStack.style = ZonosVStackStyle0;
@@ -81,4 +81,13 @@
81
81
  }
82
82
  :host .zonos--cart-promo-code-input {
83
83
  flex: 1;
84
+ }
85
+ :host .zonos--cart-custom-message .zonos--column:last-child {
86
+ padding: 0 8px;
87
+ width: auto;
88
+ text-align: left;
89
+ }
90
+ :host .zonos--cart-custom-message zonos-banner {
91
+ padding: 12px;
92
+ border-radius: var(--zonos-elements-radius-6);
84
93
  }
@@ -6,6 +6,7 @@ import { translate } from "../../../store/translationStore";
6
6
  import { zonosStore } from "../../../store/zonosStore";
7
7
  import { renderCheckoutCurrency } from "../../../utils/checkout/renderCheckoutCurrency";
8
8
  import { hasInclusivePrice } from "../../../utils/hasInclusivePrice";
9
+ import { parseLinkedText } from "../../../utils/parseLinkedText";
9
10
  import { DUTY_KEY, TAXES_KEY } from "../../../../constants/key";
10
11
  export class ZonosCartSubtotal {
11
12
  constructor() {
@@ -32,6 +33,19 @@ export class ZonosCartSubtotal {
32
33
  }
33
34
  return null;
34
35
  };
36
+ /**
37
+ * Render a single merchant-provided message line. Segments come from
38
+ * [[parseLinkedText]] and are emitted as VNodes (never `innerHTML`) so
39
+ * untrusted strings can't inject HTML.
40
+ */
41
+ this.renderMessageLine = (line) => parseLinkedText(line).map(segment => segment.type === 'link' ? (h("zonos-link", { href: segment.href, rel: "noopener noreferrer", target: "_blank" }, segment.text)) : (segment.value));
42
+ this.renderCustomMessage = () => {
43
+ const messageLines = cartStore.customMessage.filter(line => !!line.trim());
44
+ if (!messageLines.length) {
45
+ return null;
46
+ }
47
+ return (h("tr", { class: "zonos--row zonos--cart-custom-message" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column", colSpan: 2 }, h("zonos-banner", { intent: "info" }, h("zonos-text", { type: "boldLabel" }, messageLines.map((line, idx) => (h(Fragment, null, idx > 0 && h("br", null), this.renderMessageLine(line)))))))));
48
+ };
35
49
  this.getCartSubtotalSubtitle = () => {
36
50
  const inclusivePriceType = this.getInclusivePriceType();
37
51
  if (inclusivePriceType === 'DUTY_AND_FEE') {
@@ -161,7 +175,7 @@ export class ZonosCartSubtotal {
161
175
  }))))), h("tr", { class: "zonos--row zonos--cart-pay-total" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Order total'))), h("td", { class: "zonos--column zonos--cart-total-price" }, h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
162
176
  amount: total,
163
177
  isForeign: true,
164
- })))))));
178
+ })))), this.renderCustomMessage())));
165
179
  }
166
180
  static get is() { return "zonos-cart-subtotal"; }
167
181
  static get encapsulation() { return "shadow"; }
@@ -80,6 +80,11 @@
80
80
  gap: 4px;
81
81
  }
82
82
  }
83
+ :host .zonos--checkout-footer .zonos--checkout-locale-wrapper .zonos--checkout-locale-label {
84
+ display: inline-flex;
85
+ align-items: center;
86
+ gap: 4px;
87
+ }
83
88
  :host .zonos--checkout-footer .zonos--checkout-footer-dialog {
84
89
  position: absolute;
85
90
  bottom: 36px;
@@ -4,6 +4,8 @@ import { isCheckoutMobile } from "../../../utils/checkout/isCheckoutMobile";
4
4
  import { classes } from "../../../utils/classes";
5
5
  import { languages } from "../../../../types/ILanguage";
6
6
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
7
+ import ChevronDownIcon from "./assets/chevronDownIcon.svg";
8
+ // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
7
9
  import Globe from "./assets/globe.svg";
8
10
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
9
11
  import ZonosIconDark from "./assets/zonosIconDark.svg";
@@ -35,10 +37,10 @@ export class ZonosCheckoutFooter {
35
37
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
36
38
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
37
39
  const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
38
- return (h(Host, { key: '2200a14517d5d1dd81b68ecfb60ab6a691ebe581', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: 'bc77f1ea299fa151ba9d4628653d6a3800856e85', class: "zonos--checkout-footer" }, h("div", { key: 'e2e9f901e3546a48ba88aca9c0f422785d32f78d', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '60df35f860aa3c59bfa6f470adab3c882301c529', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: '3d4acf669d35fcbf4364fb56f7a18bb3a8f61e1b', class: classes([
40
+ return (h(Host, { key: '608a64c8e871bc0544cb80b719c9e11d441e2909', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: '37e6da358ce729c118128d9fae97efed127d83b9', class: "zonos--checkout-footer" }, h("div", { key: 'd42eb447dd73073debd6c0d48b766ce31f995b32', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '3a61cc1647aa2e74d0e1fd5534ae9ff66446ba7a', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '28bfc7ed3b75c9724e951177914f2d874fff27fe', class: "zonos--checkout-locale-label" }, languageLabel, h("zonos-icon", { key: 'b082108bcc0b5dded10136056fa1426bb6adda8e', "aria-hidden": "true", class: "zonos--checkout-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: 'ddccc795078e5eb55b25cbe5d5a6bf502579cded', class: classes([
39
41
  'zonos--checkout-footer-dialog',
40
42
  this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
41
- ]) }, h("zonos-language-select", { key: '5b32a3d11a725c7af0c358acf9a15c6ec17201ac', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'f678c6d76ad122ccbd3e18e6fa9deacd9ec76b93', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: '08cc72da5cbc00bd927828ae1df960a80604519c', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'df8d1727117c28c694c8450d5268895f67b23dff', textColor: colorDesktop }, "Privacy policy")), h("div", { key: 'c75b73f3bd573aa2bdd60b7fd05e6b06c8ee8d62', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: 'b57bf8ed2b6498f9cd64d7ab066625376642abda', textColor: colorDesktop }, "Powered by"), h("a", { key: 'cd12e10b1e4acd43fea371aad6d74ee8a89f1fbe', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '06465fba84c0c05e330779f522fdcabed817d5de', autoHeight: true, content: ZonosIconDark, size: 108 })))))));
43
+ ]) }, h("zonos-language-select", { key: 'c38f3ebb835b15cbfbe624507c0addb8622f65e6', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'b4862df1b1f4a27071ad4291891b968d016c7024', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: 'ac15fc57811b44fbe9d6c032f02660bb41bd40f9', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'dc954edc4349a90c41b54348516c6922fe6c5e56', textColor: colorDesktop }, "Privacy policy")), h("div", { key: 'f8d5136948a871718cbd73f982b229c8ea46bbf8', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: '2e3542d9d2ddd78ba855858b93ccdeca47269962', textColor: colorDesktop }, "Powered by"), h("a", { key: '240abfbd5b86c5d0068cb20305ab3bb39abf22b5', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '7d5fe50373919e4bc22da89b00915e607eb1b9df', autoHeight: true, content: ZonosIconDark, size: 108 })))))));
42
44
  }
43
45
  static get is() { return "zonos-checkout-footer"; }
44
46
  static get encapsulation() { return "shadow"; }
@@ -13,12 +13,14 @@ import { selectVarianceTest } from "../../utils/api/selectVarianceTest";
13
13
  import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
14
14
  import { updateCheckoutSessionAttributes } from "../../utils/api/updateCheckoutSessionAttributes";
15
15
  import { buildCartUrl } from "../../utils/buildCartUrl";
16
+ import { fetchBigCommerceCheckout, fetchCheckoutId, isBigCommerceCustomerLoggedIn, } from "../../utils/checkout/bigcommerceStorefrontApi";
16
17
  import { BIGCOMMERCE_INTERNATIONAL_CHECKOUT_FLAG } from "../../utils/checkout/buildBigcommerceLoginUrl";
17
18
  import { buildBigcommerceRedirectUrl } from "../../utils/checkout/buildBigcommerceRedirectUrl";
18
19
  import { checkBigCommerceBypassCustomerGroup, initBigCommerceBypassCheck, } from "../../utils/checkout/checkBigCommerceBypassCustomerGroup";
19
20
  import { checkBigCommerceForceLogin, initBigCommerceForceLoginCheck, } from "../../utils/checkout/checkBigCommerceForceLogin";
20
21
  import { fixBigCommerceLoginCreateAccountLink } from "../../utils/checkout/fixBigCommerceLoginCreateAccountLink";
21
22
  import { getAbandonedCartRenewTokenValue } from "../../utils/checkout/getAbandonedCartRenewTokenValue";
23
+ import { getBigCommerceCustomerAddresses } from "../../utils/checkout/getBigCommerceCustomerAddresses";
22
24
  import { getIsStagingMode } from "../../utils/checkout/getIsStagingMode";
23
25
  import { getIsTestMode } from "../../utils/checkout/getIsTestMode";
24
26
  import { isCheckoutMobile } from "../../utils/checkout/isCheckoutMobile";
@@ -389,6 +391,51 @@ export class ZonosCheckout {
389
391
  settlementAmount: total,
390
392
  };
391
393
  };
394
+ /**
395
+ * For BigCommerce stores with a logged-in shopper, seed
396
+ * `defaultCustomerProfileAddress` from the BC Storefront API so the
397
+ * `zonos-address` picker prefills the shopper's saved address book without
398
+ * forcing them to retype anything. Skips when an address has already been
399
+ * prefilled by another path (Stripe customer profile, merchant-provided
400
+ * `defaultAddress`, or the BC redirect's session-storage handoff).
401
+ */
402
+ this.prefillBigCommerceCustomerAddresses = async () => {
403
+ if (!window.Zonos.isBigCommerce) {
404
+ return;
405
+ }
406
+ if (this.defaultCustomerProfileAddress.length) {
407
+ return;
408
+ }
409
+ const hasManualDefault = (Array.isArray(this.defaultAddress) && this.defaultAddress.length > 0) ||
410
+ (!Array.isArray(this.defaultAddress) &&
411
+ typeof this.defaultAddress === 'object' &&
412
+ this.defaultAddress !== null);
413
+ if (hasManualDefault) {
414
+ return;
415
+ }
416
+ const checkoutId = await fetchCheckoutId();
417
+ if (!checkoutId) {
418
+ return;
419
+ }
420
+ const checkout = await fetchBigCommerceCheckout(checkoutId);
421
+ if (!isBigCommerceCustomerLoggedIn(checkout)) {
422
+ return;
423
+ }
424
+ const addresses = getBigCommerceCustomerAddresses(checkout, {
425
+ isShippable: countryCode => isShippableCountry(false, countryCode),
426
+ selectedCountryCode: localizationStore.selectedCountryCode || undefined,
427
+ });
428
+ if (!addresses.length) {
429
+ return;
430
+ }
431
+ // Re-check after the awaits — another prefill path may have populated state
432
+ // while we were waiting on the network.
433
+ if (this.defaultCustomerProfileAddress.length) {
434
+ return;
435
+ }
436
+ this.defaultCustomerProfileAddress = addresses;
437
+ log(`Prefilled ${String(addresses.length)} BigCommerce customer address(es) for logged-in shopper`, 'info');
438
+ };
392
439
  this.getDefaultAddress = () => {
393
440
  // If checkout customer is authenticated, use the address from the customer profile
394
441
  if (this.defaultCustomerProfileAddress.length) {
@@ -530,6 +577,9 @@ export class ZonosCheckout {
530
577
  // if createCartId is provided, use it to build cart. Merchant will provide create a cart from their server side and give the cart id to us.
531
578
  if (typeof zonosStore.checkoutSettings.createCartId === 'function') {
532
579
  log('"createCartId" is provided, start building cart');
580
+ // Reset before awaiting the merchant callback so a stale banner from a
581
+ // previous open is not visible while the network call is in flight.
582
+ cartStore.customMessage = [];
533
583
  const cartIdResult = await zonosStore.checkoutSettings.createCartId();
534
584
  let cartId;
535
585
  if (typeof cartIdResult === 'object') {
@@ -539,6 +589,12 @@ export class ZonosCheckout {
539
589
  this.useShippingDataFromCreateCartId(cartIdResult.shippingData);
540
590
  cartStore.customerAuthenticationToken =
541
591
  cartIdResult.customerAuthenticationToken || null;
592
+ // Normalize against misbehaving merchant callbacks: only accept an
593
+ // array of strings, drop everything else so a bad value can't crash
594
+ // the renderer (`.filter(...)` would throw on non-arrays).
595
+ cartStore.customMessage = Array.isArray(cartIdResult.customMessage)
596
+ ? cartIdResult.customMessage.filter((line) => typeof line === 'string')
597
+ : [];
542
598
  }
543
599
  else {
544
600
  cartId = cartIdResult;
@@ -1077,6 +1133,11 @@ export class ZonosCheckout {
1077
1133
  // resume flag, auto-open the international checkout. Strip the flag
1078
1134
  // from the URL so a refresh doesn't keep re-triggering the dialog.
1079
1135
  this.handleBigcommerceInternationalResumeFlag();
1136
+ // For BigCommerce + logged-in shopper, prefetch the saved address book
1137
+ // (`customer.addresses` include) so the international checkout's address
1138
+ // picker is populated by the time the shopper opens it. Fire-and-forget —
1139
+ // the prefill itself guards against overwriting other prefill sources.
1140
+ void this.prefillBigCommerceCustomerAddresses();
1080
1141
  // check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
1081
1142
  watchImmediateBigcommerceDomesticCheckoutRedirect({
1082
1143
  domesticRedirectedBtnSelector: domesticRedirectedBtnSelector,
@@ -8,7 +8,7 @@ export class ZonosCollectCartItems {
8
8
  render() {
9
9
  const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
10
10
  const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
11
- return (h(Host, { key: 'd92815bdd86b1bb911bd11eb9e69bfb6fc477061', class: "zonos--collect-cart-items zonos--elements" }, h("table", { key: '23e36f132b3ad84cd9cd87c11e3d9149b5dd5e1d', class: "zonos--cart-table" }, h("tbody", { key: 'a49a23585c25c93a1b829c044e9641e7143ec212' }, nonRestrictedItems.map(item => {
11
+ return (h(Host, { key: 'ccad7b37a4f0d00d679dfdecb98fa15c2600aea2', class: "zonos--collect-cart-items zonos--elements" }, h("table", { key: '0464336c854621f6f2b31b2fa6ce93daa152e607', class: "zonos--cart-table" }, h("tbody", { key: 'a32edcb6ed81d0117fb96f93c9e4fea5d1971abe' }, nonRestrictedItems.map(item => {
12
12
  const itemImg = item.imageUrl;
13
13
  const cleanedItemNames = cleanHtmlMarkdown(item.name);
14
14
  return (h("tr", { class: "zonos--collect-cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
@@ -260,11 +260,11 @@ export class ZonosCollectFinish {
260
260
  }
261
261
  render() {
262
262
  const cartId = window.Zonos.cartId;
263
- return (h(Host, { key: '89331d23e3b6b57ce708f091fb4c9cdaae84f838', class: "zonos--checkout-finish zonos--elements", style: {
263
+ return (h(Host, { key: 'ebc550d41d82330609ce842578fb9414397f11d2', class: "zonos--checkout-finish zonos--elements", style: {
264
264
  '--zonos--border-radius': getBorderRadius({
265
265
  overrideBorderStyle: this.borderRadius,
266
266
  }),
267
- } }, !this.isLoading && (h("div", { key: '7539e73d3e88c6a486ded338d35ec55398a1f3f4', class: "zonos--finish-details" }, h("div", { key: '4a61f515eff3cf0ce77fc88526424c1e63e5d66a', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '6a44ceadf42398e95b3bef73888583cca2d4d076', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'aa83de37eaaa4e8a349d6752f11d933584d56c81', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: '26ff76617b31f1726bdc3b7d024a29841692f7b9', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '721ce7b4561f9d82c2a251ac3f595e36567aaac7', class: "zonos--button-container" }, h("zonos-button", { key: '77db63afae505f5472f089e4e5ed9e9c52e48157', onClick: () => {
267
+ } }, !this.isLoading && (h("div", { key: 'e63176b8eb34a1c9bac491cc653c1108e085e77e', class: "zonos--finish-details" }, h("div", { key: 'abad1b8c765417e3d1cb4eb5f97c2713bc780517', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '00924614cb5e3553bd572008a7e13ecd7c516272', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'e39986d7d0f739a7ea221546f3f06aa5327ef824', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'b4894f5156a213413e58484fe465905e1c5e48d4', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '8770f7a408b8b9862a2ef5ac4fa02a6caae6183a', class: "zonos--button-container" }, h("zonos-button", { key: '3bebe519d938bccb40c65c668fa58088cfeff47f', onClick: () => {
268
268
  window.open(this.getReceiptUrl({ cartId }), '_blank');
269
269
  }, size: "lg", variant: "primary" }, translate('View receipt')))))))));
270
270
  }
@@ -80,6 +80,11 @@
80
80
  gap: 4px;
81
81
  }
82
82
  }
83
+ :host .zonos--collect-footer .zonos--collect-locale-wrapper .zonos--collect-locale-label {
84
+ display: inline-flex;
85
+ align-items: center;
86
+ gap: 4px;
87
+ }
83
88
  :host .zonos--collect-footer .zonos--collect-language-dialog {
84
89
  position: absolute;
85
90
  bottom: 36px;
@@ -4,6 +4,8 @@ import { isCollectMobile, isCollectTablet, } from "../../../utils/checkout/isCol
4
4
  import { classes } from "../../../utils/classes";
5
5
  import { languages } from "../../../../types/ILanguage";
6
6
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
7
+ import ChevronDownIcon from "./assets/chevronDownIcon.svg";
8
+ // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
7
9
  import Globe from "./assets/globe.svg";
8
10
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
9
11
  import ZonosWordmark from "./assets/zonosWordmark.svg";
@@ -44,15 +46,15 @@ export class ZonosCollectFooter {
44
46
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
45
47
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
46
48
  const colorDesktop = 'gray-1000';
47
- return (h(Host, { key: 'ca7bd600af1d83937719aa6d83324d61f60b4c79', class: classes([
49
+ return (h(Host, { key: '2650da0d6942ec1389d65316d4f387b205eb3d23', class: classes([
48
50
  'zonos--elements',
49
51
  this.isMobile && 'mobile',
50
52
  this.isTablet && 'tablet',
51
- ]) }, h("div", { key: 'a69e9229e009f9c754e2ad9cf068654d683036fa', class: "zonos--collect-footer" }, h("div", { key: '72e62b7191dd32f0ead5970cb62edcd469ef40ce', class: "zonos--collect-locale-wrapper" }, h("zonos-button", { key: '2f76f5c3009175bb1dd4cd90d91628e79a97770e', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: '53f2b59da147de3637487cdc4b1cd6d440838b81', class: classes([
53
+ ]) }, h("div", { key: '711017e883a7c88de6a8c4d2761d969045fa7511', class: "zonos--collect-footer" }, h("div", { key: '3eb3e89a254e3dba1cbd0a4dca0e257f0f7a64f7', class: "zonos--collect-locale-wrapper" }, h("zonos-button", { key: '2615195358247954888d47aa01b873c2e1ff738d', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '90d0c4ca757c3825865cf82b9991a13d2972254d', class: "zonos--collect-locale-label" }, languageLabel, h("zonos-icon", { key: '6badf11c60712883ee1ed037a8ddb955a7675d53', "aria-hidden": "true", class: "zonos--collect-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: 'e8b45be9f457a57482da8ed95193ca2c36525525', class: classes([
52
54
  'zonos--collect-language-dialog',
53
55
  this.showLanguageDialog &&
54
56
  'zonos--collect-language-dialog-open',
55
- ]) }, h("zonos-language-select", { key: 'bd0a83b6f180e5d4d0a368240599eb7934b8d06f', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '52620a619a47e52129207880adbfd8e6a88372c6', class: "zonos--collect-footer-icon-wrapper" }, h("div", { key: '38c863a4b26b3e6768ed8acb57a32e398ba064ea', class: "zonos--collect-footer-logo" }, h("zonos-text", { key: '27402251e8d46578e3d9f1eb7a54afb5c553ea33', textColor: colorDesktop }, "Powered by"), h("a", { key: '350ed904d6d3787a38229a4178c0ee82a2c87cac', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '3c65492b88a601459d0487e4c615208c8dcaa810', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'dc8f6479806466c45ac1c1ed8e32587190f14175', class: "dot" }), h("a", { key: 'bc4a48af6ea629273cdf9bd1cdca4981306a8eb9', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '2e923eef08f6b6a9dd53190a1aa221666cab4210', textColor: colorDesktop }, "Privacy policy"))))));
57
+ ]) }, h("zonos-language-select", { key: 'a0a9bc9fca4df158e615ae387a5be2598a7b9f36', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '8e4743edc609ac041cb283a2a4864efcbda0a86e', class: "zonos--collect-footer-icon-wrapper" }, h("div", { key: 'd1119f22e17b80d015198c2803657c0280939ec7', class: "zonos--collect-footer-logo" }, h("zonos-text", { key: '4faac90e9cb3469ffeb743155345232de8e3730a', textColor: colorDesktop }, "Powered by"), h("a", { key: '63b6ad613f96d8bd6f88b931c0c3833d08744479', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '09d6e961e27583a37b319be89fd0f80dbb9e96bd', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'b78088f8ab0cdc6b8dba6f1e0012e4c96407dd92', class: "dot" }), h("a", { key: '5ada46bc9f2fa3b52e235b3ec0231423e15fb5f5', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'b22d50bd1aaf5fddf8e1795f68b85c0e4f0125e8', textColor: colorDesktop }, "Privacy policy"))))));
56
58
  }
57
59
  static get is() { return "zonos-collect-footer"; }
58
60
  static get encapsulation() { return "shadow"; }
@@ -39,13 +39,13 @@ export class ZonosCollectReview {
39
39
  }
40
40
  render() {
41
41
  const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
42
- return (h(Host, { key: 'c8445ba13733af60fb88372eb2ae07fdc435364c', class: classes([
42
+ return (h(Host, { key: '9b00168e63cbd687c01583577eefe9f5e9958996', class: classes([
43
43
  'zonos--collect-review zonos--elements',
44
44
  this.isMobile && 'mobile',
45
45
  this.isTablet && 'tablet',
46
- ]) }, h("div", { key: '5589e61c35cbcdd885dc33cdb07999e55f5c4715', class: "zonos--title" }, h("zonos-text", { key: '783d38dcf9aabd64d94ab3356935aa5d6ffcdec0', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
46
+ ]) }, h("div", { key: '5d29409d7c09ce620b32d6f4512bbd280817cfa8', class: "zonos--title" }, h("zonos-text", { key: 'b06ea84a112b06f1aba656060c85680cada09808', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
47
47
  organizationName: zonosStore.organizationName,
48
- }))), h("div", { key: '4ce3c3391b6e2a47518cce212019137970dd99f7', class: "zonos--total-pay" }, renderFallback({
48
+ }))), h("div", { key: '7d96f27c70d54f69862816be87bf1c084a91ecb9', class: "zonos--total-pay" }, renderFallback({
49
49
  content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
50
50
  amount: collectStore.amountDutyTaxFeeTotal || 0,
51
51
  isForeign: true,
@@ -52,7 +52,7 @@ export class ZonosCollectSubtotal {
52
52
  }
53
53
  render() {
54
54
  this.initSubtotalData();
55
- return (h(Host, { key: 'ebd46815f83307682f5cbb8430bb64e66b9eadd1', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: '7a878d4bb5dce069060888f4d7e1fde0ef0e23cd', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: '496a81ab73739fe285636aad504232b1faa2f8e1', class: "zonos--row zonos--collect-duty" }, h("td", { key: '85334ee7319578f110a75f512f9d2e28f3eca79a', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'f877f57ad0d6853f7c49237e4da649b1bfc5206b', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: '97588563d5bd85fd1692e1882fcace85b3036b8c', class: "zonos--column" }), h("td", { key: '2acb01b0b6d38861eb23b5910c20a57a52172a33', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
55
+ return (h(Host, { key: 'dbdf16aeb070857018db4456e06b8c74cc135d78', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: '90e8278e1f518f5531813c3cf0b032707fe42eb8', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: '3c63319c6be8719069eb7d80eda2546dcc76f273', class: "zonos--row zonos--collect-duty" }, h("td", { key: '942aa283152bbf69439e7a864156c2f4a71f66dd', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'db7ee74968f1b452e93a9e1d46de833e2513f582', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: 'dfae6f70ace82c38bdce41de0b4f900c790fa9ae', class: "zonos--column" }), h("td", { key: '943c6781ad1909d6c5c315f705fcb08547a92660', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
56
56
  content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
57
57
  amount: this.subtotals[translate('Duties')] || 0,
58
58
  isForeign: true,
@@ -60,7 +60,7 @@ export class ZonosCollectSubtotal {
60
60
  isLoading: collectStore.isFetchingShippingInfo,
61
61
  skeletonHeight: '14px',
62
62
  skeletonWidth: '150px',
63
- })))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '36b004cc298b1d9c757b3090ce4610c6ea36b209', class: "zonos--row zonos--collect-tax" }, h("td", { key: 'ceb1e460218ba71eb9c8db33a9cfe0e4affa00eb', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '147687aafbe073169862789a9ac0ac6da544e1ce', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: '642c5ff03b7dea8e4f2bd378e3ca482d81169f46', class: "zonos--column" }), h("td", { key: '31776ea8d128ad9ce6c9e523ca8fa297baf4763d', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
63
+ })))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: 'e87cf556d84fa66789f2410b77e049229eb54732', class: "zonos--row zonos--collect-tax" }, h("td", { key: '5941322ab31a1227a6944a05b25b27f387e184e7', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '729fd97147df76283b5d97a30015e2af84a4fbb6', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: 'a51514811435edae33c37f6062b0323ef2acfd05', class: "zonos--column" }), h("td", { key: 'a091d24821800034b1629813e05b40854951908d', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
64
64
  content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
65
65
  amount: this.subtotals[translate('Taxes')] || 0,
66
66
  isForeign: true,
@@ -68,7 +68,7 @@ export class ZonosCollectSubtotal {
68
68
  isLoading: collectStore.isFetchingShippingInfo,
69
69
  skeletonHeight: '14px',
70
70
  skeletonWidth: '150px',
71
- })))), !!this.subtotals[translate('Fees')] && (h("tr", { key: 'ee18eaf3af00321a0741b07565d8474bc692b2fa', class: "zonos--row zonos--collect-fee" }, h("td", { key: '0abdde651b432368fcd374ecb1c9119981dc2531', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '385973cd0c11a161cba2a8737f6dfba4c4749d77', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: '4ae0c1da68e5ac48ce0be09ec1826867905f9e74', class: "zonos--column" }), h("td", { key: '80f232ffdb0a66f88753c2a07290ed6273b66747', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
71
+ })))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '1ee4eae6bc0ea9be2d3b98733a3d51034db3b2c3', class: "zonos--row zonos--collect-fee" }, h("td", { key: '6548ee27908c32e7c39f4f16a7c6f202df256e28', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'b911ffc5f29252efba3989e494eca1c5ec0fbd54', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: 'f01086495ba4e1864f63de5fdd212de922e335c6', class: "zonos--column" }), h("td", { key: 'f2e628f5fb0087cebc5b135194325127357828e2', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
72
72
  content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
73
73
  amount: this.subtotals[translate('Fees')] || 0,
74
74
  isForeign: true,
@@ -76,7 +76,7 @@ export class ZonosCollectSubtotal {
76
76
  isLoading: collectStore.isFetchingShippingInfo,
77
77
  skeletonHeight: '14px',
78
78
  skeletonWidth: '150px',
79
- })))), h("tr", { key: '71677498d7c575e4227f45620b62f5ddadf06858', class: "zonos--row zonos--collect-spacing" }, h("td", { key: '5fc92ef7b46c8e5eb8ebb391015682f376785a26', class: "zonos--column", colSpan: 3 })), h("tr", { key: '253c6735bd30ef66c2fa1f82a44cebff3dacc189', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: '0755b1c175973640e925520e747141e96446eea8', class: "zonos--column" }), h("td", { key: '19646da57bd222dbb2ada0c450eabf508833c069', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '57b3ff6e47ab14ab955abda316deb635fe70d3e9', type: "label" }, translate('Subtotal'))), h("td", { key: 'c3ce8d85aa7a4d554ee271b0bc9ed248d97315b0', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
79
+ })))), h("tr", { key: '1b3c7371aa2b395c310e1bbfbda5071fc76bc523', class: "zonos--row zonos--collect-spacing" }, h("td", { key: 'ffcab1bd04d14fbc8c57d6731f2243945d889b9f', class: "zonos--column", colSpan: 3 })), h("tr", { key: 'c674e6737e1888c3ef4dfa9a2cc06ec595ddc74f', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: 'c79170263853ebba9168b566ed0985af9e7f7bec', class: "zonos--column" }), h("td", { key: '05bff80d6dd83b047ec4f40dedbb42dcef822a34', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '61e4f56cd4da5187bb64c746920b04655ed4624a', type: "label" }, translate('Subtotal'))), h("td", { key: 'a1701fa2c16e87cdba274349b7c5f9f0b90093ea', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
80
80
  content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
81
81
  amount: collectStore.amountDutyTaxFeeTotal || 0,
82
82
  isForeign: true,
@@ -84,7 +84,7 @@ export class ZonosCollectSubtotal {
84
84
  isLoading: collectStore.isFetchingShippingInfo,
85
85
  skeletonHeight: '14px',
86
86
  skeletonWidth: '150px',
87
- }))), h("tr", { key: 'e21e986f76bb932645c54e75698db4c06024335e', class: "zonos--row zonos--collect-total" }, h("td", { key: 'b4cc8e32cd69c0b1ed000c582c058a1215c4e365', class: "zonos--column" }), h("td", { key: '1b55f78e8161cd9da263d3b58c053b9b04cca999', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '97de8710348f0a039375d02b075c1e91ef6ae621', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: '58bf548786e07bb780c73433ae7a8582f2c2b059', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
87
+ }))), h("tr", { key: '83b981afc2f2ddfa5a21ee28fea2e00ec3aef4e8', class: "zonos--row zonos--collect-total" }, h("td", { key: '041fdf582712439e15521ab290f6475106d890cc', class: "zonos--column" }), h("td", { key: '82734ce4831e6255d8d6fe6aa73e8c132ba65d1d', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'd7b1771c43d5176226d1e503ec9308da5806fa52', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: '5bebbeaaa0ed0c112e73e4e6283d1364b9ae4f64', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
88
88
  content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
89
89
  amount: collectStore.amountDutyTaxFeeTotal || 0,
90
90
  isForeign: true,
@@ -18,10 +18,10 @@ export class ZonosInvoiceCartItems {
18
18
  }
19
19
  render() {
20
20
  const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
21
- return (h(Host, { key: '421e05194d1b310d585764ebcbad662e55fa5f76', class: classes([
21
+ return (h(Host, { key: 'a79106d8930a18d9806ca7f82dbfada663f46964', class: classes([
22
22
  'zonos--invoice-cart-items zonos--elements',
23
23
  this.isMobile && 'mobile',
24
- ]) }, h("table", { key: 'bf2c3ddcf823d4aebf3f0c8a96b74c2d1c6978af', class: "zonos--cart-table" }, h("tbody", { key: 'dbe7aab9d195e7ca9a50f4c29c7acffc69dd9cce' }, nonRestrictedItems.map(item => {
24
+ ]) }, h("table", { key: '89496bfdd77e168ee388d94e83981b3657fea40b', class: "zonos--cart-table" }, h("tbody", { key: 'fa5a7a17018942300f8168e2d1ac0ea349f02da5' }, nonRestrictedItems.map(item => {
25
25
  var _a, _b, _c, _d;
26
26
  const invoiceId = (_b = (_a = item.attributes) === null || _a === void 0 ? void 0 : _a.find(metadata => metadata.key === 'invoiceId' || metadata.key === 'INVOICE_ID')) === null || _b === void 0 ? void 0 : _b.value;
27
27
  const invoiceCreatedAt = (_d = (_c = item.attributes) === null || _c === void 0 ? void 0 : _c.find(metadata => metadata.key === 'invoiceCreatedAt')) === null || _d === void 0 ? void 0 : _d.value;
@@ -260,11 +260,11 @@ export class ZonosInvoiceFinish {
260
260
  }
261
261
  render() {
262
262
  const cartId = window.Zonos.cartId;
263
- return (h(Host, { key: '6c0363334a9e6602b93e83a0dfeb733285db7683', class: "zonos--checkout-finish zonos--elements", style: {
263
+ return (h(Host, { key: '0e85f53a2195cb775590ca7cf815fe5ff555a5a7', class: "zonos--checkout-finish zonos--elements", style: {
264
264
  '--zonos--border-radius': getBorderRadius({
265
265
  overrideBorderStyle: this.borderRadius,
266
266
  }),
267
- } }, !this.isLoading && (h("div", { key: '299a9afc37f5e1bbe828f2b68569a686b82baff1', class: "zonos--finish-details" }, h("div", { key: '24a827b96c4a74066b7701c70f6cdf980ff060f5', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '74bfa9e0126ea8b0a693fdc2e034cdd6ef352dcb', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: '5cc0089225fac166cfa13cc11e72efeb34ad8567', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'fb101b1058adeafe38a03d2a915b6b7f80c44061', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '2ecc8d45967ccd720f0ec4d532aa266ac42acc14', class: "zonos--button-container" }, h("zonos-button", { key: '3f04711341f273a767d5109274f92eec424b1675', onClick: () => {
267
+ } }, !this.isLoading && (h("div", { key: 'a72982af4d9e1ccd015486185841bdfb8100de4f', class: "zonos--finish-details" }, h("div", { key: '905c39d1f8d0c4db69fe69af86b5d2fd27e6c6bc', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '4b4aac452d596888d9a2a132e4909cb96985e3e1', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'df0281e69b04b3f2ad238cbfb4a8a142e6c08447', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'f92416cc2024dc6e58c3886f0d8990a3753c82f4', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: 'cbd8a00f6ee518a62cab4edb8c29167a108710c0', class: "zonos--button-container" }, h("zonos-button", { key: 'bcc697820cfbab42417626c2bf1d887bee67fa5f', onClick: () => {
268
268
  window.open(this.getReceiptUrl({ cartId }), '_blank');
269
269
  }, size: "lg", variant: "primary" }, translate('View receipt')))))))));
270
270
  }
@@ -80,6 +80,11 @@
80
80
  gap: 4px;
81
81
  }
82
82
  }
83
+ :host .zonos--invoice-footer .zonos--invoice-locale-wrapper .zonos--invoice-locale-label {
84
+ display: inline-flex;
85
+ align-items: center;
86
+ gap: 4px;
87
+ }
83
88
  :host .zonos--invoice-footer .zonos--invoice-language-dialog {
84
89
  position: absolute;
85
90
  bottom: 36px;
@@ -5,6 +5,8 @@ import { isInvoiceMobile, isInvoiceTablet, } from "../../../utils/checkout/isInv
5
5
  import { classes } from "../../../utils/classes";
6
6
  import { languages } from "../../../../types/ILanguage";
7
7
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
8
+ import ChevronDownIcon from "./assets/chevronDownIcon.svg";
9
+ // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
8
10
  import Globe from "./assets/globe.svg";
9
11
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
10
12
  import ZonosWordmark from "./assets/zonosWordmark.svg";
@@ -45,15 +47,15 @@ export class ZonosInvoiceFooter {
45
47
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
46
48
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
47
49
  const colorDesktop = 'gray-1000';
48
- return (h(Host, { key: 'a48dfe3c11d200e085864ed513cfb647c9ef3b5c', class: classes([
50
+ return (h(Host, { key: 'f1df2afbf4312c216d2b0776b08bdf18a99918fa', class: classes([
49
51
  'zonos--elements',
50
52
  this.isMobile && 'mobile',
51
53
  this.isTablet && 'tablet',
52
- ]) }, h("div", { key: 'de1f450a548eabe7bb1da9c9f2e23837a55827fc', class: "zonos--invoice-footer" }, h("div", { key: 'b30d47a885beaca3ec0dbdeff8e8facae994ef88', class: "zonos--invoice-locale-wrapper" }, h("zonos-button", { key: 'a0bece32119cbc5eddd8f99298ba7274f286cb6f', buttonColor: colorDesktop, class: "zonos--invoice-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: '7ceb0c79d25f640bf23ac37a22c6c37292538d8f', class: classes([
54
+ ]) }, h("div", { key: '15ec928ff1686fab2644fdad65b528e16f887c3d', class: "zonos--invoice-footer" }, h("div", { key: 'b3a81689dca77c65837366168b4cc512e873ebe6', class: "zonos--invoice-locale-wrapper" }, h("zonos-button", { key: 'f599ee52720855f47f1775f16b4beb5d673bc1fa', buttonColor: colorDesktop, class: "zonos--invoice-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: 'b5ac314d22571b01be5d7ddea7012b6431fde634', class: "zonos--invoice-locale-label" }, languageLabel, h("zonos-icon", { key: 'fa150a4e7d75327510e2bfc07e9911a8adb9a3ba', "aria-hidden": "true", class: "zonos--invoice-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '673eed561dace62416822df5e7948fdfb423e6c3', class: classes([
53
55
  'zonos--invoice-language-dialog',
54
56
  this.showLanguageDialog &&
55
57
  'zonos--invoice-language-dialog-open',
56
- ]) }, h("zonos-language-select", { key: '5c2d4164f38caecc7f3f99b98d1d504ee292b6bd', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'c255dabaf4a129b1d9074af3e7512a86859c4d81', class: "zonos--invoice-footer-icon-wrapper" }, h("div", { key: 'bc16e675a824ad6730e823226bdb872ad04d5b2e', class: "zonos--invoice-footer-logo" }, h("zonos-text", { key: '6292e7f1fce3325c7d264a946e1d8a6a4ec768c4', textColor: colorDesktop }, translate('Powered by')), h("a", { key: '526f598cdb342f7816d78f7d1b24923d79be72fe', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '8f96ac507a2250df8234dc9d0075dcac433b9630', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'd3fa74852d4bc1e679af3fe141a885f833d3aaef', class: "dot" }), h("a", { key: '30b4825365c55a31a1140ababfe3d2c88faa3b04', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '42cbae5d1a6350844947210493f3945ee2085cd9', textColor: colorDesktop }, translate('Privacy policy')))))));
58
+ ]) }, h("zonos-language-select", { key: '6d1a6ae828bf8701fe08605ab5952528e74ad92f', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '3b2484d4a4a0899b746a81e055cd9a4a4fcf6db9', class: "zonos--invoice-footer-icon-wrapper" }, h("div", { key: '3b4a8431e9cbd3133c69356c1bba186f7cec2fdf', class: "zonos--invoice-footer-logo" }, h("zonos-text", { key: '73f8f0b9978b715d611c72beded88862e27c8473', textColor: colorDesktop }, translate('Powered by')), h("a", { key: 'e9a9a63c0c042f40c76d1293c05d2c23165c7af1', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '5bd7ac7cd01581ba40a258f491417b04ab71c250', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'cf86cea8570caac18fbe1532478141e64e6cfd70', class: "dot" }), h("a", { key: '12b5cfa380ae7c2fbc2d3e7501c415761a1f199a', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '9588bdc785c892a39d3c37d034d1f874c8492fa2', textColor: colorDesktop }, translate('Privacy policy')))))));
57
59
  }
58
60
  static get is() { return "zonos-invoice-footer"; }
59
61
  static get encapsulation() { return "shadow"; }
@@ -39,13 +39,13 @@ export class ZonosInvoiceReview {
39
39
  }
40
40
  render() {
41
41
  const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
42
- return (h(Host, { key: 'dba979c1f8bb9f4ac5207eb2bc97296523c62fc1', class: classes([
42
+ return (h(Host, { key: 'be8d8f1688a86ccaa9431cae2885c57a08f3ee9b', class: classes([
43
43
  'zonos--invoice-review zonos--elements',
44
44
  this.isMobile && 'mobile',
45
45
  this.isTablet && 'tablet',
46
- ]) }, h("div", { key: 'd9bbd435775f58d3934b9cc5d8658acf781d5090', class: "zonos--title" }, h("zonos-text", { key: '103859ee74d37fadd854d59cc852d71b8e23fe11', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
46
+ ]) }, h("div", { key: '74dce7ae0a90490d95852c789d8e27ee51846ed5', class: "zonos--title" }, h("zonos-text", { key: '3539a1110abdac4b1dc909f37a4845d8a0ad8fa0', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
47
47
  organizationName: zonosStore.organizationName,
48
- }))), h("div", { key: 'fcc9ade2fc63e53307659134a1763909ad66cc30', class: "zonos--total-pay" }, renderFallback({
48
+ }))), h("div", { key: 'd6feffd7216357889bbe9fba177feb8f24ad9222', class: "zonos--total-pay" }, renderFallback({
49
49
  content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
50
50
  amount: invoiceStore.amountTotalDue || 0,
51
51
  isForeign: true,
@@ -12,10 +12,10 @@ export class ZonosInvoiceSubtotal {
12
12
  this.isMobile = false;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '1c1ba16d9549f0ff1478984176d6b999d5aa1753', class: classes([
15
+ return (h(Host, { key: '4b2a1e8fe3d6b6c4bafa16bbcd596c10fc19267d', class: classes([
16
16
  'zonos--invoice-subtotal zonos--elements',
17
17
  this.isMobile && 'mobile',
18
- ]) }, h("table", { key: 'd1b72fcae100c896cf7d6e6a289d8165d2c75233', class: "zonos--invoice-table" }, h("tr", { key: 'c9ff3b5ff7385c60717d213dfe1e5059f1bf09e0', class: "zonos--row zonos--invoice-total" }, h("td", { key: 'cf14352c2f3cffacdfb78343c7fbf512222c79d4', class: "zonos--column" }), h("td", { key: '403d772e36bc819fac28487b779e3a9ae4858f73', class: "zonos--column zonos--invoice-subtotal-title" }, h("zonos-text", { key: 'bf8ced53263ba7e8a6093712bb97fd7a2e35c634', type: "semiBoldLabel" }, translate('Payment total'))), h("td", { key: 'e3832e0ccad66787e1023a073de9b8e9b732cb4e', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback({
18
+ ]) }, h("table", { key: '34b2b3019193b694d3a38560aeec57289f1ef284', class: "zonos--invoice-table" }, h("tr", { key: '76ba9947536d494fe651da0a94b8e66a702f5728', class: "zonos--row zonos--invoice-total" }, h("td", { key: '1510c0eb1f4db6bd3f4295b0eba6c1b845f86043', class: "zonos--column" }), h("td", { key: '5d3a1fde0d9bac22ee32f961da18f749e01b2038', class: "zonos--column zonos--invoice-subtotal-title" }, h("zonos-text", { key: '0e61607f2795cea761e6082749ac9e85ec5a502a', type: "semiBoldLabel" }, translate('Payment total'))), h("td", { key: '5b5bf8f17e8850b4b6428454adfb05f85a0a9f63', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback({
19
19
  content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
20
20
  amount: invoiceStore.amountTotalDue || 0,
21
21
  isForeign: true,