@zonos/elements 1.3.267 → 1.3.268

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 (336) hide show
  1. package/dist/cjs/{cart-ed2de167.js → cart-af7c024e.js} +129 -4
  2. package/dist/cjs/{debounce-606d1801.js → debounce-7990f5ea.js} +1 -1
  3. package/dist/cjs/{getBorderRadius-a91911e7.js → getBorderRadius-fc683d94.js} +1 -1
  4. package/dist/cjs/{getContrastColor-ce80dbe7.js → getContrastColor-d5134ef3.js} +2 -2
  5. package/dist/cjs/{hasInclusivePrice-bf31fbdb.js → hasInclusivePrice-0fa6e022.js} +1 -1
  6. package/dist/cjs/index.cjs.js +7 -7
  7. package/dist/cjs/{invoice-542c23e7.js → invoice-c2e3f232.js} +3 -3
  8. package/dist/cjs/{isCollectMobileTablet-fe8149a5.js → isCollectMobileTablet-6014787b.js} +3 -3
  9. package/dist/cjs/{isContrastColor-a02c4889.js → isContrastColor-76592c92.js} +1 -1
  10. package/dist/cjs/{isDarkColor-e317bb06.js → isDarkColor-5d6ca405.js} +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/{localization-66d378ab.js → localization-f897bc45.js} +421 -1
  13. package/dist/cjs/{paypal-d8282578.js → paypal-6756a0da.js} +60 -18
  14. package/dist/cjs/{placeTestOrder-0a4b9dd7.js → placeTestOrder-a4874e51.js} +2 -2
  15. package/dist/cjs/{renderCheckoutCurrency-ac9083d9.js → renderCheckoutCurrency-584d50fe.js} +2 -2
  16. package/dist/cjs/{submitGtag-07a3b09e.js → submitGtag-4906b161.js} +1 -1
  17. package/dist/cjs/{throttle-8aebac7d.js → throttle-02c2e917.js} +2 -2
  18. package/dist/cjs/{updateCheckoutSessionAttributes-a9a97194.js → updateCheckoutSessionAttributes-47d73942.js} +1 -1
  19. package/dist/cjs/zonos-address-display_8.cjs.entry.js +7 -7
  20. package/dist/cjs/zonos-address_4.cjs.entry.js +7 -7
  21. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-card_5.cjs.entry.js +8 -8
  25. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +94 -27
  26. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-checkout.cjs.entry.js +112 -85
  28. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
  30. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +11 -11
  31. package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
  32. package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
  33. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
  35. package/dist/cjs/zonos-elements.cjs.js +1 -1
  36. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  37. package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
  38. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +7 -7
  40. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +11 -11
  41. package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
  42. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  43. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  44. package/dist/cjs/{zonos-store-credit.cjs.entry.js → zonos-policy-consent_2.cjs.entry.js} +91 -6
  45. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
  46. package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
  47. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  48. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  49. package/dist/cjs/{zonosStore-0662b95f.js → zonosStore-45a87908.js} +1 -0
  50. package/dist/collection/collection-manifest.json +1 -0
  51. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +7 -2
  52. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +66 -12
  53. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +103 -75
  54. package/dist/collection/components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.css +93 -0
  55. package/dist/collection/components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.js +93 -0
  56. package/dist/collection/components/store/checkout/paypal.js +57 -14
  57. package/dist/collection/components/store/checkout/policyConsent.js +58 -0
  58. package/dist/collection/components/store/checkout/stripe.js +66 -0
  59. package/dist/collection/components/store/translationStore/strings.arabic.js +21 -0
  60. package/dist/collection/components/store/translationStore/strings.base.js +21 -0
  61. package/dist/collection/components/store/translationStore/strings.chinese.js +21 -0
  62. package/dist/collection/components/store/translationStore/strings.danish.js +21 -0
  63. package/dist/collection/components/store/translationStore/strings.dutch.js +21 -0
  64. package/dist/collection/components/store/translationStore/strings.french.js +21 -0
  65. package/dist/collection/components/store/translationStore/strings.german.js +21 -0
  66. package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -0
  67. package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -0
  68. package/dist/collection/components/store/translationStore/strings.italian.js +21 -0
  69. package/dist/collection/components/store/translationStore/strings.japanese.js +21 -0
  70. package/dist/collection/components/store/translationStore/strings.korean.js +21 -0
  71. package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -0
  72. package/dist/collection/components/store/translationStore/strings.polish.js +21 -0
  73. package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -0
  74. package/dist/collection/components/store/translationStore/strings.russian.js +21 -0
  75. package/dist/collection/components/store/translationStore/strings.spanish.js +21 -0
  76. package/dist/collection/components/store/translationStore/strings.swedish.js +21 -0
  77. package/dist/collection/components/store/translationStore/strings.turkish.js +21 -0
  78. package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -0
  79. package/dist/collection/components/store/zonosStore.js +1 -0
  80. package/dist/collection/types/generated/graphql.internal.types.js +64 -0
  81. package/dist/esm/{cart-49082718.js → cart-68c16805.js} +125 -5
  82. package/dist/esm/{debounce-ab526ca0.js → debounce-58e4ff3e.js} +1 -1
  83. package/dist/esm/{getBorderRadius-98c64be8.js → getBorderRadius-d23f47a6.js} +1 -1
  84. package/dist/esm/{getContrastColor-0aa643c1.js → getContrastColor-f0bd5b65.js} +2 -2
  85. package/dist/esm/{hasInclusivePrice-2323d514.js → hasInclusivePrice-f1ca1610.js} +1 -1
  86. package/dist/esm/index.js +7 -7
  87. package/dist/esm/{invoice-16c688e7.js → invoice-d0eadc6a.js} +3 -3
  88. package/dist/esm/{isCollectMobileTablet-910aea2e.js → isCollectMobileTablet-11ade63f.js} +3 -3
  89. package/dist/esm/{isContrastColor-6bad285e.js → isContrastColor-fbddacb6.js} +1 -1
  90. package/dist/esm/{isDarkColor-0a8453e7.js → isDarkColor-566f04c5.js} +1 -1
  91. package/dist/esm/loader.js +1 -1
  92. package/dist/esm/{localization-33a9f7ff.js → localization-8e81b696.js} +421 -1
  93. package/dist/esm/{paypal-2e9aa4ba.js → paypal-e32877e9.js} +60 -18
  94. package/dist/esm/{placeTestOrder-35c9b460.js → placeTestOrder-4cf429d7.js} +2 -2
  95. package/dist/esm/{renderCheckoutCurrency-b84a6da7.js → renderCheckoutCurrency-9459b8a3.js} +2 -2
  96. package/dist/esm/{submitGtag-ae9d5d91.js → submitGtag-c7ea1f2a.js} +1 -1
  97. package/dist/esm/{throttle-882b1f47.js → throttle-f09d0659.js} +2 -2
  98. package/dist/esm/{updateCheckoutSessionAttributes-da7fdd37.js → updateCheckoutSessionAttributes-40e301a4.js} +1 -1
  99. package/dist/esm/zonos-address-display_8.entry.js +7 -7
  100. package/dist/esm/zonos-address_4.entry.js +7 -7
  101. package/dist/esm/zonos-badge.entry.js +1 -1
  102. package/dist/esm/zonos-banner.entry.js +1 -1
  103. package/dist/esm/zonos-button_3.entry.js +3 -3
  104. package/dist/esm/zonos-card_5.entry.js +8 -8
  105. package/dist/esm/zonos-cart-items_12.entry.js +94 -27
  106. package/dist/esm/zonos-checkbox_2.entry.js +3 -3
  107. package/dist/esm/zonos-checkout.entry.js +112 -85
  108. package/dist/esm/zonos-collapse.entry.js +1 -1
  109. package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
  110. package/dist/esm/zonos-collect-finish_6.entry.js +11 -11
  111. package/dist/esm/zonos-collect.entry.js +9 -9
  112. package/dist/esm/zonos-controller.entry.js +6 -6
  113. package/dist/esm/zonos-country-flag.entry.js +2 -2
  114. package/dist/esm/zonos-country-select_4.entry.js +3 -3
  115. package/dist/esm/zonos-elements.js +1 -1
  116. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  117. package/dist/esm/zonos-hello.entry.js +3 -3
  118. package/dist/esm/zonos-input.entry.js +2 -2
  119. package/dist/esm/zonos-invoice-cart-items_2.entry.js +7 -7
  120. package/dist/esm/zonos-invoice-finish_5.entry.js +11 -11
  121. package/dist/esm/zonos-invoice.entry.js +9 -9
  122. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  123. package/dist/esm/zonos-logo.entry.js +1 -1
  124. package/dist/esm/{zonos-store-credit.entry.js → zonos-policy-consent_2.entry.js} +91 -7
  125. package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
  126. package/dist/esm/zonos-stripe-input.entry.js +3 -3
  127. package/dist/esm/zonos-text.entry.js +1 -1
  128. package/dist/esm/zonos-v-stack.entry.js +1 -1
  129. package/dist/esm/{zonosStore-9662b071.js → zonosStore-8e19daff.js} +1 -0
  130. package/dist/esm-es5/cart-68c16805.js +1 -0
  131. package/dist/esm-es5/{debounce-ab526ca0.js → debounce-58e4ff3e.js} +1 -1
  132. package/dist/esm-es5/{getBorderRadius-98c64be8.js → getBorderRadius-d23f47a6.js} +1 -1
  133. package/dist/esm-es5/{getContrastColor-0aa643c1.js → getContrastColor-f0bd5b65.js} +1 -1
  134. package/dist/esm-es5/{hasInclusivePrice-2323d514.js → hasInclusivePrice-f1ca1610.js} +1 -1
  135. package/dist/esm-es5/index.js +1 -1
  136. package/dist/esm-es5/{invoice-16c688e7.js → invoice-d0eadc6a.js} +1 -1
  137. package/dist/esm-es5/{isCollectMobileTablet-910aea2e.js → isCollectMobileTablet-11ade63f.js} +1 -1
  138. package/dist/esm-es5/{isContrastColor-6bad285e.js → isContrastColor-fbddacb6.js} +1 -1
  139. package/dist/esm-es5/{isDarkColor-0a8453e7.js → isDarkColor-566f04c5.js} +1 -1
  140. package/dist/esm-es5/loader.js +1 -1
  141. package/dist/esm-es5/localization-8e81b696.js +1 -0
  142. package/dist/esm-es5/{paypal-2e9aa4ba.js → paypal-e32877e9.js} +2 -2
  143. package/dist/esm-es5/{placeTestOrder-35c9b460.js → placeTestOrder-4cf429d7.js} +1 -1
  144. package/dist/esm-es5/{renderCheckoutCurrency-b84a6da7.js → renderCheckoutCurrency-9459b8a3.js} +1 -1
  145. package/dist/esm-es5/{submitGtag-ae9d5d91.js → submitGtag-c7ea1f2a.js} +1 -1
  146. package/dist/esm-es5/throttle-f09d0659.js +1 -0
  147. package/dist/esm-es5/{updateCheckoutSessionAttributes-da7fdd37.js → updateCheckoutSessionAttributes-40e301a4.js} +1 -1
  148. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  149. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  150. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  151. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  152. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  153. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  154. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  155. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  156. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  157. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  158. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  159. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  160. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  161. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  162. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  163. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  164. package/dist/esm-es5/zonos-elements.js +1 -1
  165. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  166. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  167. package/dist/esm-es5/zonos-input.entry.js +1 -1
  168. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  169. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  170. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  171. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  172. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  173. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -0
  174. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  175. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  176. package/dist/esm-es5/zonos-text.entry.js +1 -1
  177. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  178. package/dist/esm-es5/{zonosStore-9662b071.js → zonosStore-8e19daff.js} +1 -1
  179. package/dist/scripts/index.d.ts +80 -6
  180. package/dist/scripts/index.js +1 -1
  181. package/dist/scripts/loadZonos.js +1 -1
  182. package/dist/scripts/zonos.js +1 -1
  183. package/dist/types/components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.d.ts +3 -0
  184. package/dist/types/components/store/checkout/policyConsent.d.ts +41 -0
  185. package/dist/types/components/store/checkout/stripe.d.ts +13 -0
  186. package/dist/types/components/store/translationStore/strings.arabic.d.ts +21 -0
  187. package/dist/types/components/store/translationStore/strings.base.d.ts +21 -0
  188. package/dist/types/components/store/translationStore/strings.chinese.d.ts +21 -0
  189. package/dist/types/components/store/translationStore/strings.danish.d.ts +21 -0
  190. package/dist/types/components/store/translationStore/strings.dutch.d.ts +21 -0
  191. package/dist/types/components/store/translationStore/strings.french.d.ts +21 -0
  192. package/dist/types/components/store/translationStore/strings.german.d.ts +21 -0
  193. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +21 -0
  194. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +21 -0
  195. package/dist/types/components/store/translationStore/strings.italian.d.ts +21 -0
  196. package/dist/types/components/store/translationStore/strings.japanese.d.ts +21 -0
  197. package/dist/types/components/store/translationStore/strings.korean.d.ts +21 -0
  198. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +21 -0
  199. package/dist/types/components/store/translationStore/strings.polish.d.ts +21 -0
  200. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +21 -0
  201. package/dist/types/components/store/translationStore/strings.russian.d.ts +21 -0
  202. package/dist/types/components/store/translationStore/strings.spanish.d.ts +21 -0
  203. package/dist/types/components/store/translationStore/strings.swedish.d.ts +21 -0
  204. package/dist/types/components/store/translationStore/strings.turkish.d.ts +21 -0
  205. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +21 -0
  206. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  207. package/dist/types/components.d.ts +13 -0
  208. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +23 -6
  209. package/dist/types/types/checkout/CheckoutConfig.d.ts +23 -0
  210. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  211. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  212. package/dist/types/types/generated/graphql.internal.types.d.ts +170 -23
  213. package/dist/types/types/generated/graphql.internal.types.ts +152 -23
  214. package/dist/zonos-elements/index.esm.js +1 -1
  215. package/dist/zonos-elements/{p-703fc360.entry.js → p-000b895a.entry.js} +1 -1
  216. package/dist/zonos-elements/p-01913da8.js +1 -0
  217. package/dist/zonos-elements/{p-b5a26334.system.entry.js → p-06e7fe2a.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-becac995.js → p-0803ad10.js} +1 -1
  219. package/dist/zonos-elements/{p-79e5a629.system.entry.js → p-0e36a7cf.system.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-baf0b24c.system.entry.js → p-108b5307.system.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-029be4a8.entry.js → p-11439d12.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-b6df4cc2.system.entry.js → p-134c5010.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-8d5f413c.system.entry.js → p-1376e67f.system.entry.js} +1 -1
  224. package/dist/zonos-elements/p-14d6542f.system.js +1 -0
  225. package/dist/zonos-elements/p-17be8409.entry.js +1 -0
  226. package/dist/zonos-elements/{p-843ced6c.js → p-17e3cd62.js} +1 -1
  227. package/dist/zonos-elements/{p-0207c91e.system.js → p-18af6aaa.system.js} +1 -1
  228. package/dist/zonos-elements/{p-5d823ea7.system.js → p-1eef8c23.system.js} +1 -1
  229. package/dist/zonos-elements/{p-2c854197.system.entry.js → p-24091606.system.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-6b6cfc59.system.entry.js → p-26ae4ee7.system.entry.js} +1 -1
  231. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  232. package/dist/zonos-elements/{p-71fb6126.entry.js → p-2afecda7.entry.js} +1 -1
  233. package/dist/zonos-elements/p-2ccd20c0.system.js +1 -0
  234. package/dist/zonos-elements/{p-d28be518.js → p-33d4be28.js} +1 -1
  235. package/dist/zonos-elements/{p-26c85188.entry.js → p-344a1fee.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-a78bc004.entry.js → p-38311c16.entry.js} +1 -1
  237. package/dist/zonos-elements/p-3b28fc76.js +1 -0
  238. package/dist/zonos-elements/{p-db3b101a.js → p-3dc3596b.js} +1 -1
  239. package/dist/zonos-elements/{p-3689821f.system.js → p-3e7ee89d.system.js} +1 -1
  240. package/dist/zonos-elements/{p-8570e88a.system.js → p-44b279cc.system.js} +1 -1
  241. package/dist/zonos-elements/{p-b7e4a020.system.entry.js → p-48805ed6.system.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-ab0b23f2.js → p-4df08fc4.js} +1 -1
  243. package/dist/zonos-elements/p-4fe3d5e0.system.js +18 -0
  244. package/dist/zonos-elements/{p-90c932fd.entry.js → p-50362897.entry.js} +1 -1
  245. package/dist/zonos-elements/p-52bd7be3.system.js +1 -0
  246. package/dist/zonos-elements/{p-deaf0e38.system.entry.js → p-536cbab5.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-175c04a4.system.js → p-53a59935.system.js} +1 -1
  248. package/dist/zonos-elements/{p-cb966d16.system.entry.js → p-593764cf.system.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-311ba000.system.js → p-5b05b461.system.js} +1 -1
  250. package/dist/zonos-elements/{p-a49ba3ae.system.entry.js → p-5b4e5608.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-1bf9a1b9.system.js → p-5d65be06.system.js} +1 -1
  252. package/dist/zonos-elements/{p-e850e6e7.system.entry.js → p-5e18d92b.system.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-1957af5a.system.entry.js → p-5f92db80.system.entry.js} +1 -1
  254. package/dist/zonos-elements/p-5fa2395d.system.js +1 -0
  255. package/dist/zonos-elements/{p-5e1799bc.entry.js → p-620a9013.entry.js} +1 -1
  256. package/dist/zonos-elements/p-623fc89a.system.entry.js +1 -0
  257. package/dist/zonos-elements/p-64e8f05d.system.entry.js +1 -0
  258. package/dist/zonos-elements/{p-2a6be4a5.entry.js → p-658ab5e2.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-180d3e3d.entry.js → p-673407b8.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-a1bad0c3.system.entry.js → p-69089a6f.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-1ec9b3b0.entry.js → p-6f41c193.entry.js} +1 -1
  262. package/dist/zonos-elements/{p-f3cfd8fa.js → p-701d9a7c.js} +1 -1
  263. package/dist/zonos-elements/{p-d950b0b4.entry.js → p-7166df08.entry.js} +1 -1
  264. package/dist/zonos-elements/p-72960738.js +1 -0
  265. package/dist/zonos-elements/p-72c3756a.js +1 -0
  266. package/dist/zonos-elements/{p-db5f6b8c.entry.js → p-7628569a.entry.js} +1 -1
  267. package/dist/zonos-elements/p-774de1ec.system.js +1 -0
  268. package/dist/zonos-elements/{p-27061873.entry.js → p-777d396e.entry.js} +1 -1
  269. package/dist/zonos-elements/{p-4f718ef9.system.js → p-7a220941.system.js} +1 -1
  270. package/dist/zonos-elements/{p-46071125.entry.js → p-7aca66cd.entry.js} +1 -1
  271. package/dist/zonos-elements/p-7cf8e1f0.js +1 -0
  272. package/dist/zonos-elements/{p-eb99a625.system.js → p-7d9d2407.system.js} +1 -1
  273. package/dist/zonos-elements/{p-0ed70279.entry.js → p-7fef8558.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-7003d093.system.entry.js → p-80df7e0b.system.entry.js} +1 -1
  275. package/dist/zonos-elements/p-8116d3ba.entry.js +1 -0
  276. package/dist/zonos-elements/{p-648f3ada.entry.js → p-889a44fc.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-4c89d04a.js → p-896fb969.js} +1 -1
  278. package/dist/zonos-elements/{p-1325bbd6.system.entry.js → p-8ddc21f1.system.entry.js} +1 -1
  279. package/dist/zonos-elements/p-90d22087.system.js +1 -0
  280. package/dist/zonos-elements/{p-3516340a.system.entry.js → p-95b460e9.system.entry.js} +1 -1
  281. package/dist/zonos-elements/{p-087520f2.system.entry.js → p-95f3bbad.system.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-71c7a1ff.entry.js → p-97da66f2.entry.js} +1 -1
  283. package/dist/zonos-elements/{p-55fb4ea3.system.entry.js → p-98bea13e.system.entry.js} +1 -1
  284. package/dist/zonos-elements/{p-ba9e2612.system.entry.js → p-990d1495.system.entry.js} +1 -1
  285. package/dist/zonos-elements/p-9f5fb332.js +1 -0
  286. package/dist/zonos-elements/{p-ce103c66.system.entry.js → p-a0ee01dd.system.entry.js} +1 -1
  287. package/dist/zonos-elements/p-ac8cfdc0.js +1 -0
  288. package/dist/zonos-elements/{p-22ba60f6.system.entry.js → p-af12a1b7.system.entry.js} +1 -1
  289. package/dist/zonos-elements/{p-b4b23475.entry.js → p-b35a0b1e.entry.js} +1 -1
  290. package/dist/zonos-elements/{p-bf5c3dd7.system.entry.js → p-b59fc3fa.system.entry.js} +1 -1
  291. package/dist/zonos-elements/p-b71ef46e.js +17 -0
  292. package/dist/zonos-elements/{p-a6db8883.entry.js → p-b93b66c2.entry.js} +1 -1
  293. package/dist/zonos-elements/p-b9a615bc.system.entry.js +1 -0
  294. package/dist/zonos-elements/{p-6a195559.system.js → p-bc919de1.system.js} +1 -1
  295. package/dist/zonos-elements/{p-9e0cb5b3.system.entry.js → p-bc9a30a1.system.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-665bfd4f.entry.js → p-c1463da7.entry.js} +1 -1
  297. package/dist/zonos-elements/{p-8f9e95c2.entry.js → p-c3459f4a.entry.js} +1 -1
  298. package/dist/zonos-elements/{p-2a8fcb71.system.entry.js → p-c7ca3e98.system.entry.js} +1 -1
  299. package/dist/zonos-elements/p-c91fade3.entry.js +1 -0
  300. package/dist/zonos-elements/{p-79f3c227.system.entry.js → p-c92a5ae5.system.entry.js} +1 -1
  301. package/dist/zonos-elements/p-cd34ecf2.js +1 -0
  302. package/dist/zonos-elements/{p-28e2ac3b.entry.js → p-dae881f2.entry.js} +1 -1
  303. package/dist/zonos-elements/{p-9a5a2043.js → p-dcafbd4e.js} +1 -1
  304. package/dist/zonos-elements/{p-8571f3ce.entry.js → p-df55536b.entry.js} +1 -1
  305. package/dist/zonos-elements/{p-01497a20.entry.js → p-e3d6f9b4.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-928291e5.entry.js → p-e548b8ec.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-5e6f85f0.system.js → p-f053975e.system.js} +1 -1
  308. package/dist/zonos-elements/{p-601bb27e.entry.js → p-fc5007e0.entry.js} +1 -1
  309. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  310. package/package.json +1 -1
  311. package/dist/esm-es5/cart-49082718.js +0 -1
  312. package/dist/esm-es5/localization-33a9f7ff.js +0 -1
  313. package/dist/esm-es5/throttle-882b1f47.js +0 -1
  314. package/dist/esm-es5/zonos-store-credit.entry.js +0 -1
  315. package/dist/zonos-elements/p-034ab928.system.entry.js +0 -1
  316. package/dist/zonos-elements/p-07a76716.system.js +0 -1
  317. package/dist/zonos-elements/p-1f256673.entry.js +0 -1
  318. package/dist/zonos-elements/p-367a72bc.js +0 -1
  319. package/dist/zonos-elements/p-3b1b3598.system.js +0 -18
  320. package/dist/zonos-elements/p-40284821.system.js +0 -1
  321. package/dist/zonos-elements/p-458df669.js +0 -1
  322. package/dist/zonos-elements/p-4980facb.js +0 -1
  323. package/dist/zonos-elements/p-6987f9c9.js +0 -1
  324. package/dist/zonos-elements/p-6d81901a.js +0 -1
  325. package/dist/zonos-elements/p-77c2e465.system.js +0 -1
  326. package/dist/zonos-elements/p-84dbf474.js +0 -17
  327. package/dist/zonos-elements/p-9b0a6fe5.system.entry.js +0 -1
  328. package/dist/zonos-elements/p-adb9827c.js +0 -1
  329. package/dist/zonos-elements/p-b2d276e1.js +0 -1
  330. package/dist/zonos-elements/p-b6a36c25.system.js +0 -1
  331. package/dist/zonos-elements/p-c9c17d08.system.entry.js +0 -1
  332. package/dist/zonos-elements/p-cfb0059f.js +0 -1
  333. package/dist/zonos-elements/p-e056ae6b.entry.js +0 -1
  334. package/dist/zonos-elements/p-e3292be8.system.js +0 -1
  335. package/dist/zonos-elements/p-e5dfccd8.system.js +0 -1
  336. package/dist/zonos-elements/p-fb712719.entry.js +0 -1
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const zonosStore = require('./zonosStore-45a87908.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-a91911e7.js');
8
+ const getBorderRadius = require('./getBorderRadius-fc683d94.js');
9
9
  require('./VarianceTest-bec00ea8.js');
10
10
 
11
11
  const zonosInputCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{margin:1px}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host{}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}";
@@ -3,17 +3,17 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const cart = require('./cart-ed2de167.js');
7
- const localization = require('./localization-66d378ab.js');
8
- const renderCheckoutCurrency = require('./renderCheckoutCurrency-ac9083d9.js');
6
+ const cart = require('./cart-af7c024e.js');
7
+ const localization = require('./localization-f897bc45.js');
8
+ const renderCheckoutCurrency = require('./renderCheckoutCurrency-584d50fe.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
- const invoice = require('./invoice-542c23e7.js');
10
+ const invoice = require('./invoice-c2e3f232.js');
11
11
  const renderFallback = require('./renderFallback-bc20ee20.js');
12
- require('./zonosStore-0662b95f.js');
12
+ require('./zonosStore-45a87908.js');
13
13
  require('./VarianceTest-bec00ea8.js');
14
14
  require('./handleFetch-954f30e1.js');
15
- require('./isDarkColor-e317bb06.js');
16
- require('./getBorderRadius-a91911e7.js');
15
+ require('./isDarkColor-5d6ca405.js');
16
+ require('./getBorderRadius-fc683d94.js');
17
17
 
18
18
  const zonosInvoiceCartItemsCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--cart-table .zonos--column:first-child{padding-left:0;width:50px}:host .zonos--cart-table .zonos--cart-item-link{text-align:left}:host .zonos--cart-table .zonos--cart-item-created-at{text-align:right}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host(.mobile) table{margin-top:16px}:host(.mobile) table td{vertical-align:top}";
19
19
  const ZonosInvoiceCartItemsStyle0 = zonosInvoiceCartItemsCss;
@@ -3,24 +3,24 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const cart = require('./cart-ed2de167.js');
7
- const paypal = require('./paypal-d8282578.js');
8
- const localization = require('./localization-66d378ab.js');
9
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const cart = require('./cart-af7c024e.js');
7
+ const paypal = require('./paypal-6756a0da.js');
8
+ const localization = require('./localization-f897bc45.js');
9
+ const zonosStore = require('./zonosStore-45a87908.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
12
- const getBorderRadius = require('./getBorderRadius-a91911e7.js');
12
+ const getBorderRadius = require('./getBorderRadius-fc683d94.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
14
  const isInvoiceMobileTablet = require('./isInvoiceMobileTablet-dde41e4e.js');
15
15
  const classes = require('./classes-b7918f56.js');
16
16
  const ILanguage = require('./ILanguage-98b04442.js');
17
- const invoice = require('./invoice-542c23e7.js');
18
- const renderCheckoutCurrency = require('./renderCheckoutCurrency-ac9083d9.js');
19
- const placeTestOrder = require('./placeTestOrder-0a4b9dd7.js');
17
+ const invoice = require('./invoice-c2e3f232.js');
18
+ const renderCheckoutCurrency = require('./renderCheckoutCurrency-584d50fe.js');
19
+ const placeTestOrder = require('./placeTestOrder-a4874e51.js');
20
20
  const renderFallback = require('./renderFallback-bc20ee20.js');
21
- require('./isDarkColor-e317bb06.js');
22
- require('./isContrastColor-a02c4889.js');
23
- require('./submitGtag-07a3b09e.js');
21
+ require('./isDarkColor-5d6ca405.js');
22
+ require('./isContrastColor-76592c92.js');
23
+ require('./submitGtag-4906b161.js');
24
24
 
25
25
  const RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-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" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-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" fill="currentColor" fill-rule="evenodd"></path></svg>`;
26
26
 
@@ -3,21 +3,21 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const cart = require('./cart-ed2de167.js');
7
- const invoice = require('./invoice-542c23e7.js');
8
- const paypal = require('./paypal-d8282578.js');
9
- const localization = require('./localization-66d378ab.js');
10
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const cart = require('./cart-af7c024e.js');
7
+ const invoice = require('./invoice-c2e3f232.js');
8
+ const paypal = require('./paypal-6756a0da.js');
9
+ const localization = require('./localization-f897bc45.js');
10
+ const zonosStore = require('./zonosStore-45a87908.js');
11
11
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
12
12
  const handleFetch = require('./handleFetch-954f30e1.js');
13
13
  const isInvoiceMobileTablet = require('./isInvoiceMobileTablet-dde41e4e.js');
14
14
  const classes = require('./classes-b7918f56.js');
15
15
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
16
16
  const ILanguage = require('./ILanguage-98b04442.js');
17
- require('./isDarkColor-e317bb06.js');
18
- require('./getBorderRadius-a91911e7.js');
19
- require('./isContrastColor-a02c4889.js');
20
- require('./submitGtag-07a3b09e.js');
17
+ require('./isDarkColor-5d6ca405.js');
18
+ require('./getBorderRadius-fc683d94.js');
19
+ require('./isContrastColor-76592c92.js');
20
+ require('./submitGtag-4906b161.js');
21
21
 
22
22
  const ChevronDownIcon = `<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
23
23
 
@@ -3,8 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const localization = require('./localization-66d378ab.js');
7
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const localization = require('./localization-f897bc45.js');
7
+ const zonosStore = require('./zonosStore-45a87908.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
9
  require('./handleFetch-954f30e1.js');
10
10
  require('./VarianceTest-bec00ea8.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const zonosStore = require('./zonosStore-45a87908.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  require('./VarianceTest-bec00ea8.js');
9
9
 
@@ -3,14 +3,98 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const cart = require('./cart-ed2de167.js');
7
- const localization = require('./localization-66d378ab.js');
8
- const zonosStore = require('./zonosStore-0662b95f.js');
9
- const renderCheckoutCurrency = require('./renderCheckoutCurrency-ac9083d9.js');
10
- const getBorderRadius = require('./getBorderRadius-a91911e7.js');
6
+ const cart = require('./cart-af7c024e.js');
7
+ const localization = require('./localization-f897bc45.js');
8
+ const zonosStore = require('./zonosStore-45a87908.js');
9
+ const renderCheckoutCurrency = require('./renderCheckoutCurrency-584d50fe.js');
10
+ const getBorderRadius = require('./getBorderRadius-fc683d94.js');
11
11
  require('./VarianceTest-bec00ea8.js');
12
12
  require('./handleFetch-954f30e1.js');
13
- require('./isDarkColor-e317bb06.js');
13
+ require('./isDarkColor-5d6ca405.js');
14
+
15
+ const zonosPolicyConsentCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:block;margin-top:20px}.zonos--policy-consent{background-color:var(--zonos-elements-gray-50);border:1px solid var(--zonos-elements-gray-200);border-radius:8px;padding:12px 14px;-webkit-transition:border-color 0.15s ease, background-color 0.15s ease;transition:border-color 0.15s ease, background-color 0.15s ease}.zonos--policy-consent:hover{border-color:var(--zonos-elements-gray-300)}.zonos--policy-consent--error{background-color:var(--zonos-elements-red-50);border-color:var(--zonos-elements-red-400)}.zonos--policy-consent-label{-ms-flex-align:center;align-items:center;cursor:pointer;display:-ms-flexbox;display:flex;gap:10px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.zonos--policy-consent-checkbox{accent-color:var(--zonos-elements-blue-600);cursor:pointer;-ms-flex-negative:0;flex-shrink:0;height:18px;margin:0;width:18px}.zonos--policy-consent-text{color:var(--zonos-elements-gray-800);font-size:14px;line-height:1.45}.zonos--policy-consent-text a{color:var(--zonos-elements-blue-600);text-decoration:underline;text-underline-offset:2px}.zonos--policy-consent-text a:hover{color:var(--zonos-elements-blue-700)}.zonos--policy-consent-error{color:var(--zonos-elements-red-600);font-size:13px;line-height:1.4;margin-top:8px;padding:0 4px}";
16
+ const ZonosPolicyConsentStyle0 = zonosPolicyConsentCss;
17
+
18
+ const POLICIES_SENTINEL = 'POLICIES';
19
+ const ZonosPolicyConsent = class {
20
+ constructor(hostRef) {
21
+ index.registerInstance(this, hostRef);
22
+ }
23
+ render() {
24
+ const policies = cart.getEnabledPolicies();
25
+ if (!policies.length) {
26
+ return null;
27
+ }
28
+ // Build the locale-aware joined list ("X, Y, and Z" in English, equivalent in other locales).
29
+ const ListFormatCtor = Intl
30
+ .ListFormat;
31
+ const parts = ListFormatCtor
32
+ ? new ListFormatCtor(localization.localizationStore.selectedLocale, {
33
+ style: 'long',
34
+ type: 'conjunction',
35
+ }).formatToParts(policies.map(p => p.name))
36
+ : // Fallback for environments without Intl.ListFormat: simple ", "-joined list.
37
+ policies.flatMap((p, idx) => idx === 0
38
+ ? [{ type: 'element', value: p.name }]
39
+ : [
40
+ { type: 'literal', value: ', ' },
41
+ { type: 'element', value: p.name },
42
+ ]);
43
+ const listNodes = parts.map(part => {
44
+ if (part.type === 'literal') {
45
+ return part.value;
46
+ }
47
+ // 'element' part — match back to the policy by name to recover its URL.
48
+ const policy = policies.find(p => p.name === part.value);
49
+ if (!policy) {
50
+ return part.value;
51
+ }
52
+ return (index.h("a", { href: policy.url,
53
+ // Prevent the surrounding <label> from also activating the checkbox
54
+ // when the link is clicked — `stopPropagation` alone doesn't suppress
55
+ // the label's default behavior in every browser. We explicitly open
56
+ // the URL ourselves and call `preventDefault` to swallow the click.
57
+ onClick: (event) => {
58
+ event.preventDefault();
59
+ event.stopPropagation();
60
+ window.open(policy.url, '_blank', 'noopener,noreferrer');
61
+ }, rel: "noopener noreferrer", target: "_blank" }, part.value));
62
+ });
63
+ // Use the merchant-name template when an org name is available, falling back to the generic
64
+ // phrasing otherwise so we never render a stray apostrophe (e.g. " 's Terms...").
65
+ // Reads from `zonosStore` so this works when consumed via the npm package
66
+ // (where `window.Zonos.cartSettings` may not be populated).
67
+ const merchantName = zonosStore.zonosStore.organizationName;
68
+ const template = merchantName
69
+ ? localization.translate("I agree to [merchantName]'s [policies]", {
70
+ merchantName,
71
+ policies: POLICIES_SENTINEL,
72
+ })
73
+ : localization.translate('I agree to the [policies]', {
74
+ policies: POLICIES_SENTINEL,
75
+ });
76
+ const [before = '', after = ''] = template.split(POLICIES_SENTINEL);
77
+ const showError = cart.policyConsentStore.showError;
78
+ const errorId = 'zonos--policy-consent-error';
79
+ return (index.h(index.Host, { class: "zonos--policy-consent-host" }, index.h("div", { class: `zonos--policy-consent${showError ? ' zonos--policy-consent--error' : ''}` }, index.h("label", { class: "zonos--policy-consent-label" }, index.h("input", { "aria-describedby": showError ? errorId : undefined, "aria-invalid": showError ? 'true' : 'false', checked: cart.policyConsentStore.accepted, class: "zonos--policy-consent-checkbox", disabled: cart.policyConsentStore.locked, onChange: (event) => {
80
+ const isChecked = event.target.checked;
81
+ cart.policyConsentStore.accepted = isChecked;
82
+ if (isChecked) {
83
+ // Snapshot the timestamp at the moment of acceptance so later
84
+ // session-metadata updates don't drift it forward.
85
+ if (!cart.policyConsentStore.acceptedAt) {
86
+ cart.policyConsentStore.acceptedAt = new Date().toISOString();
87
+ }
88
+ cart.policyConsentStore.showError = false;
89
+ }
90
+ else {
91
+ // If the buyer un-checks, the prior acceptance is no longer valid.
92
+ cart.policyConsentStore.acceptedAt = null;
93
+ }
94
+ }, type: "checkbox" }), index.h("span", { class: "zonos--policy-consent-text" }, before, index.h(index.Fragment, null, listNodes), after))), showError && (index.h("div", { class: "zonos--policy-consent-error", id: errorId, role: "alert" }, localization.translate('You must accept the policies to place this order')))));
95
+ }
96
+ };
97
+ ZonosPolicyConsent.style = ZonosPolicyConsentStyle0;
14
98
 
15
99
  const StoreCreditIcon = `<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true">
16
100
  <path fill="currentColor" fill-rule="evenodd" d="M4 5a3 3 0 0 0-3 3v8a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V8a3 3 0 0 0-3-3H4Zm16 2H4a1 1 0 0 0-1 1v1h18V8a1 1 0 0 0-1-1ZM2 11h20v3a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-3Zm6 4.5a1 1 0 0 1 1-1h2a1 1 0 0 1 0 2H9a1 1 0 0 1-1-1Z" clip-rule="evenodd"/>
@@ -110,4 +194,5 @@ const ZonosStoreCredit = class {
110
194
  };
111
195
  ZonosStoreCredit.style = ZonosStoreCreditStyle0;
112
196
 
197
+ exports.zonos_policy_consent = ZonosPolicyConsent;
113
198
  exports.zonos_store_credit = ZonosStoreCredit;
@@ -3,14 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const zonosStore = require('./zonosStore-45a87908.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-a91911e7.js');
9
- const getContrastColor = require('./getContrastColor-ce80dbe7.js');
8
+ const getBorderRadius = require('./getBorderRadius-fc683d94.js');
9
+ const getContrastColor = require('./getContrastColor-d5134ef3.js');
10
10
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
11
11
  require('./VarianceTest-bec00ea8.js');
12
- require('./isDarkColor-e317bb06.js');
13
- require('./isContrastColor-a02c4889.js');
12
+ require('./isDarkColor-5d6ca405.js');
13
+ require('./isContrastColor-76592c92.js');
14
14
 
15
15
  const zonosShippingRichRadioCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--zonos--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--zonos--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
16
16
  const ZonosShippingRichRadioStyle0 = zonosShippingRichRadioCss;
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const zonosStore = require('./zonosStore-45a87908.js');
7
7
  const helpers = require('./helpers-5bdbb68c.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
- const getBorderRadius = require('./getBorderRadius-a91911e7.js');
10
- const isDarkColor = require('./isDarkColor-e317bb06.js');
9
+ const getBorderRadius = require('./getBorderRadius-fc683d94.js');
10
+ const isDarkColor = require('./isDarkColor-5d6ca405.js');
11
11
  require('./VarianceTest-bec00ea8.js');
12
12
 
13
13
  const zonosStripeInputCss = ".sc-zonos-stripe-input-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-stripe-input-h *.sc-zonos-stripe-input{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-stripe-input-h img.sc-zonos-stripe-input{max-width:100%}.sc-zonos-stripe-input-h dl.sc-zonos-stripe-input,.sc-zonos-stripe-input-h dd.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h1.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h2.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h3.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h4.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h5.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h6.sc-zonos-stripe-input,.sc-zonos-stripe-input-h hr.sc-zonos-stripe-input,.sc-zonos-stripe-input-h figure.sc-zonos-stripe-input,.sc-zonos-stripe-input-h p.sc-zonos-stripe-input,.sc-zonos-stripe-input-h pre.sc-zonos-stripe-input{margin:0}.sc-zonos-stripe-input-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-stripe-input-h{--zonos--background-color:#f1f1f1;--zonos--local-glowing-color:0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 0 0 1px var(--zonos--primary-color);--zonos--border:1px solid #e8e8e8}.dark.sc-zonos-stripe-input-h{color-scheme:dark;--zonos--background-color:#30313d;--zonos--local-glowing-color:0px 2px 4px rgba(0, 0, 0, 0.5),\n 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 1px 1px 0 rgba(255, 255, 255, 0.12);--zonos--border:1px solid var(--zonos--primary-color)}.sc-zonos-stripe-input-h{margin:1px}.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%;background:var(--zonos--background-color);border-radius:var(--zonos--border-radius);border:var(--zonos--border);outline-offset:0;outline-width:2px;height:calc(var(--zonos-elements-size-xl) - 2px)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos--background-color);border:var(--zonos--border);-ms-flex-order:2;order:2;font-weight:400;font-size:var(--zonos--font-size);color:var(--zonos-elements-text-color);height:auto}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected+label.sc-zonos-stripe-input+div.sc-zonos-stripe-input{background-color:#e8f0fe}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.sc-zonos-stripe-input{padding:24px 4px 2px 16px}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input{padding-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{margin-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus{outline:none;border:var(--zonos--border)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color))}.sc-zonos-stripe-input-h .zonos--floated-input.has-error.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:0 0 0 2px #df1b41;box-shadow:0 0 0 2px #df1b41}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-webkit-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-moz-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input:-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-webkit-autofill,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{color:var(--zonos-elements-gray-800);position:absolute;font-size:16px;line-height:16px;display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - 8px);z-index:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input{pointer-events:inherit}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input::after{cursor:not-allowed;z-index:1}.dark.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{background:#30313d}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const zonosStore = require('./zonosStore-45a87908.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
9
9
  const styles = require('./styles-d1e64fb9.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const zonosStore = require('./zonosStore-0662b95f.js');
6
+ const zonosStore = require('./zonosStore-45a87908.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  require('./VarianceTest-bec00ea8.js');
9
9
 
@@ -2866,6 +2866,7 @@ const { dispose: zonosStoreDispose, onChange: zonosStoreOnChange, reset, state:
2866
2866
  defaultCartExpiration: 3600,
2867
2867
  externalPaymentMethods: [],
2868
2868
  externalServiceTokens: [],
2869
+ merchantPolicyLinks: null,
2869
2870
  mode: 'TEST',
2870
2871
  orderNotifications: {
2871
2872
  abandonedCart: {
@@ -19,6 +19,7 @@
19
19
  "components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.js",
20
20
  "components/checkout/zonos-checkout/zonos-currency-toggle/zonos-currency-toggle.js",
21
21
  "components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js",
22
+ "components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.js",
22
23
  "components/checkout/zonos-checkout/zonos-review/zonos-review.js",
23
24
  "components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js",
24
25
  "components/checkout/zonos-collect/zonos-collect.js",
@@ -1,5 +1,6 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { localizationStore } from "../../../store/hello/localization";
3
+ import { translate } from "../../../store/translationStore";
3
4
  import { isCheckoutMobile } from "../../../utils/checkout/isCheckoutMobile";
4
5
  import { classes } from "../../../utils/classes";
5
6
  import { languages } from "../../../../types/ILanguage";
@@ -9,6 +10,8 @@ import ChevronDownIcon from "./assets/chevronDownIcon.svg";
9
10
  import Globe from "./assets/globe.svg";
10
11
  // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
11
12
  import ZonosIconDark from "./assets/zonosIconDark.svg";
13
+ // eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
14
+ import ZonosIconLight from "./assets/zonosIconLight.svg";
12
15
  export class ZonosCheckoutFooter {
13
16
  constructor() {
14
17
  /**
@@ -37,10 +40,12 @@ export class ZonosCheckoutFooter {
37
40
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
38
41
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
39
42
  const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
40
- return (h(Host, { key: 'ec472ed419e634f96630332398ff6e814dcd0391', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: 'd29154eb86046ddd440460343b3b115d3e23c87d', class: "zonos--checkout-footer" }, h("div", { key: 'b0bb0fed3cc0b228fb1a80c6b27a3aaa84081b95', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: 'd6ef4aa2d32a04a5d27c8085471a85970a24dbed', 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: '6e7d935c324465ad501a28388d71ad73fba9c74f', class: "zonos--checkout-locale-label" }, languageLabel, h("zonos-icon", { key: '5041eee50cd91210e6c1d4257f66b63e76ce9e4a', "aria-hidden": "true", class: "zonos--checkout-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '87b4b4b6fe789592d61dd7e69944b433c0bc0cf2', class: classes([
43
+ return (h(Host, { key: '9bf4e1fae3660eb17d04521c533f52651f9b6153', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: '90b473ca63321395e9fceb48b8d21d90b225c01f', class: "zonos--checkout-footer" }, h("div", { key: '4cd4d63838aae1c26df2b3513cb24f93a497705b', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '2db346594fdf00329a8f4887c4d431ddedc22e40', 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: '55332b4a8d812976333a9f14853d63c94fc2d3b4', class: "zonos--checkout-locale-label" }, languageLabel, h("zonos-icon", { key: '1c27c4b559974ebbcff5470d6fb7a2ace3e204c2', "aria-hidden": "true", class: "zonos--checkout-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '5e87976476c7fb124c308352587643b009bda3df', class: classes([
41
44
  'zonos--checkout-footer-dialog',
42
45
  this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
43
- ]) }, h("zonos-language-select", { key: 'de8bd0ba1085564c2fe40c2d261e74ec9f67da90', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '7c3954550c4512b2d83fbafe05b57a44f0501991', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: '7bf2b74683ee81e8aa5ed5c0175ba22b8e8b5d6e', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'c39c00e77f47dbc1d47f69003cdb5c5f17c7a4e4', textColor: colorDesktop }, "Privacy policy")), h("div", { key: '567940865a03b6dce5273d70fb85860c042f9068', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: 'e3a0727029aa676e68c2a9a174c64188f7ab029e', textColor: colorDesktop }, "Powered by"), h("a", { key: '5a7f20a70efee92be700365818004f86827cc373', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'c4a61b660e474064c35626744cad44e598206179', autoHeight: true, content: ZonosIconDark, size: 108 })))))));
46
+ ]) }, h("zonos-language-select", { key: '3ab16dc27d046bd8a0ebab4fd44ba0a10b53b0a5', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '3d7e9500d281348acb8f6c64f7a792b0248b5347', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: '8b2ba4f4d0e962d94e24b08e69ad53310050049b', href: "https://zonos.com/docs/legal/zonos-privacy-policy", rel: "noopener noreferrer", target: "_blank" }, h("zonos-text", { key: '06c700777036ef3e15b2f8586e96ccb020f06850', textColor: colorDesktop }, translate('Privacy policy'))), h("div", { key: '1af786991ea239d2b40a43de0e5b872350f8e171', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: '889819449f802936510bda4f21b1233e76853613', textColor: colorDesktop }, translate('Powered by')), h("a", { key: '1d2f3f924b78e4e8b37b1504e37a2cdb0b0bfb9b', href: "https://zonos.com", rel: "noopener noreferrer", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '2429284234ffcb51ecff0fd3a98f88bbe8c4c1c5', autoHeight: true, content: colorDesktop === 'gray-1000'
47
+ ? ZonosIconLight
48
+ : ZonosIconDark, size: 108 })))))));
44
49
  }
45
50
  static get is() { return "zonos-checkout-footer"; }
46
51
  static get encapsulation() { return "shadow"; }
@@ -1,8 +1,9 @@
1
1
  import { Fragment, h, Host, } from "@stencil/core";
2
2
  import { cartStore, cartStoreNextStep, } from "../../../store/checkout/cart";
3
3
  import { paypalStore } from "../../../store/checkout/paypal";
4
+ import { isPolicyConsentRequired, policyConsentStore, } from "../../../store/checkout/policyConsent";
4
5
  import { storeCreditStore, storeCreditStoreCoversFullAmount, } from "../../../store/checkout/storeCredit";
5
- import { stripeStore } from "../../../store/checkout/stripe";
6
+ import { stripeStore, stripeStoreRecordPolicyConsent, } from "../../../store/checkout/stripe";
6
7
  import { storageStore } from "../../../store/storageStore";
7
8
  import { translate } from "../../../store/translationStore";
8
9
  import { zonosStore } from "../../../store/zonosStore";
@@ -67,6 +68,30 @@ export class ZonosCheckoutPayment {
67
68
  }, 10);
68
69
  return;
69
70
  }
71
+ // Block submit when the merchant requires policy consent and the buyer hasn't accepted.
72
+ if (isPolicyConsentRequired() && !policyConsentStore.accepted) {
73
+ policyConsentStore.showError = true;
74
+ setTimeout(() => {
75
+ var _a;
76
+ (_a = this.ele
77
+ .querySelector('zonos-policy-consent')) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
78
+ }, 10);
79
+ return;
80
+ }
81
+ // Lock consent state for the rest of the flow so the buyer can't uncheck
82
+ // during the async work below (which would create a race where the
83
+ // metadata builder sees `accepted=false` and skips writing the consent
84
+ // entry). Cleared on every checkout close.
85
+ if (isPolicyConsentRequired()) {
86
+ policyConsentStore.locked = true;
87
+ }
88
+ // Persist the buyer's consent into the checkout session metadata BEFORE confirming
89
+ // payment, so the recorded consent is durable even if Stripe takes a while or fails.
90
+ // We deliberately don't block payment on a recording failure — a transient network
91
+ // hiccup shouldn't gate the buyer out, and the failure is logged inside the helper
92
+ // via `logError` for observability. The buyer's consent intent is also captured
93
+ // client-side via the checkbox state and `acceptedAt` timestamp.
94
+ await stripeStoreRecordPolicyConsent();
70
95
  stripeStore.checkoutSettlementCurrency = currencyCode;
71
96
  // submit google tag when the form is complete
72
97
  submitAnalytics({
@@ -106,17 +131,46 @@ export class ZonosCheckoutPayment {
106
131
  });
107
132
  };
108
133
  this.placeTestOrder = async () => {
109
- this.internalContinueLoading = true;
110
- const { errors } = await placeTestOrder();
111
- if (errors.length) {
112
- this.stagingOrderCreateErrorMessage =
113
- errors[0] || 'Failed to create staging order. Please try again.';
114
- this.internalContinueLoading = false;
134
+ // Staging "Place test order" still represents the buyer placing an order,
135
+ // so apply the same consent gate the real Pay button uses. Consistency
136
+ // matters here: merchants testing the flow should see the same blockers
137
+ // a real buyer would hit.
138
+ if (isPolicyConsentRequired() && !policyConsentStore.accepted) {
139
+ policyConsentStore.showError = true;
140
+ setTimeout(() => {
141
+ var _a;
142
+ (_a = this.ele
143
+ .querySelector('zonos-policy-consent')) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth' });
144
+ }, 10);
115
145
  return;
116
146
  }
117
- this.internalContinueLoading = false;
118
- // continue to the next step
119
- cartStoreNextStep();
147
+ const consentWasRequired = isPolicyConsentRequired();
148
+ if (consentWasRequired) {
149
+ policyConsentStore.locked = true;
150
+ }
151
+ try {
152
+ this.internalContinueLoading = true;
153
+ // Don't block the test order on a consent-record failure — failure is logged
154
+ // inside the helper and surfaced in Vercel logs for observability.
155
+ await stripeStoreRecordPolicyConsent();
156
+ const { errors } = await placeTestOrder();
157
+ if (errors.length) {
158
+ this.stagingOrderCreateErrorMessage =
159
+ errors[0] || 'Failed to create staging order. Please try again.';
160
+ this.internalContinueLoading = false;
161
+ return;
162
+ }
163
+ this.internalContinueLoading = false;
164
+ // continue to the next step
165
+ cartStoreNextStep();
166
+ }
167
+ finally {
168
+ // Release the consent lock on every terminal exit so a failed test order
169
+ // doesn't leave the checkbox stuck disabled in the merchant's staging UI.
170
+ if (consentWasRequired) {
171
+ policyConsentStore.locked = false;
172
+ }
173
+ }
120
174
  };
121
175
  }
122
176
  continueLoadingWatcher() {
@@ -155,7 +209,7 @@ export class ZonosCheckoutPayment {
155
209
  const theme = this.isMobile
156
210
  ? zonosStore.appearance.theme
157
211
  : themeBasedColor;
158
- return (h(Fragment, null, this.stagingOrderCreateErrorMessage && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, this.stagingOrderCreateErrorMessage)), h("zonos-empty-state-payment", { emptyStateText: translate('No payment method needed for staging'), theme: theme }), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.internalContinueLoading, onClick: () => {
212
+ return (h(Fragment, null, this.stagingOrderCreateErrorMessage && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, this.stagingOrderCreateErrorMessage)), h("zonos-empty-state-payment", { emptyStateText: translate('No payment method needed for staging'), theme: theme }), h("zonos-policy-consent", null), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, loading: this.internalContinueLoading, onClick: () => {
159
213
  void this.placeTestOrder();
160
214
  }, size: "lg",
161
215
  // use primary type when on mobile mode
@@ -164,7 +218,7 @@ export class ZonosCheckoutPayment {
164
218
  return (h(Fragment, null, this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), this.hasStripePaymentError && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, stripeStore.customErrorMessage ||
165
219
  translate("We couldn't complete your payment. Please verify the payment details and try again."))), paypalStore.paypalErrorMessage && (h("zonos-banner", { class: "zonos--payment-error-banner", intent: "error" }, paypalStore.paypalErrorMessage)), cartStore.customerAuthenticationToken &&
166
220
  storeCreditStore.availableBalance != null &&
167
- storeCreditStore.availableBalance > 0 && (h("zonos-store-credit", null)), storeCreditCoversFullOrder ? (h("zonos-banner", { intent: "info" }, translate('Store credit covers your full order'))) : (h("zonos-payment", null)), h("div", { class: "zonos--group-btn" }, (!isPaypalTabSelected || storeCreditCoversFullOrder) && (h(Fragment, null, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, isDisabled: this.continueLoading &&
221
+ storeCreditStore.availableBalance > 0 && (h("zonos-store-credit", null)), storeCreditCoversFullOrder ? (h("zonos-banner", { intent: "info" }, translate('Store credit covers your full order'))) : (h("zonos-payment", null)), h("zonos-policy-consent", null), h("div", { class: "zonos--group-btn" }, (!isPaypalTabSelected || storeCreditCoversFullOrder) && (h(Fragment, null, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, isDisabled: this.continueLoading &&
168
222
  stripeStore.checkoutSettlementCurrency === 'USD', loading: this.continueLoading &&
169
223
  stripeStore.checkoutSettlementCurrency !== 'USD', onClick: async () => {
170
224
  if (!cartStore.checkoutSession) {