@zonos/elements 1.3.248 → 1.3.250

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 (404) hide show
  1. package/dist/cjs/{cart-28310848.js → cart-fcd1359c.js} +321 -22
  2. package/dist/cjs/{cleanHtmlMarkdown-577d0a77.js → cleanHtmlMarkdown-31da84b7.js} +9 -7
  3. package/dist/cjs/{debounce-815d1517.js → debounce-0c75ba33.js} +1 -1
  4. package/dist/cjs/{getBorderRadius-2ef1170d.js → getBorderRadius-27a74844.js} +1 -1
  5. package/dist/cjs/{getContrastColor-30848800.js → getContrastColor-cc087c53.js} +2 -2
  6. package/dist/cjs/{hasInclusivePrice-134b0250.js → hasInclusivePrice-745a8f29.js} +1 -1
  7. package/dist/cjs/index-b1f95d96.js +4065 -0
  8. package/dist/cjs/index.cjs.js +7 -7
  9. package/dist/cjs/{invoice-2e8e5879.js → invoice-f040e147.js} +3 -3
  10. package/dist/cjs/{isCollectMobileTablet-bd0f4556.js → isCollectMobileTablet-cf92852e.js} +3 -3
  11. package/dist/cjs/{isContrastColor-09f5924a.js → isContrastColor-d1936a5c.js} +1 -1
  12. package/dist/cjs/{isDarkColor-878e600e.js → isDarkColor-a68abf7a.js} +1 -1
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/cjs/{localization-00e73920.js → localization-523b793a.js} +661 -1
  15. package/dist/cjs/{paypal-3019ae94.js → paypal-8c98c0a1.js} +79 -21
  16. package/dist/cjs/{placeTestOrder-b0369cfd.js → placeTestOrder-9b1e09f0.js} +2 -2
  17. package/dist/cjs/{renderCheckoutCurrency-9e919b9f.js → renderCheckoutCurrency-94b6e51d.js} +2 -2
  18. package/dist/cjs/{renderFallback-78b54537.js → renderFallback-bc20ee20.js} +1 -1
  19. package/dist/cjs/{submitGtag-a50ab32e.js → submitGtag-cb4fb332.js} +1 -1
  20. package/dist/cjs/{throttle-7dd64984.js → throttle-ff483793.js} +2 -2
  21. package/dist/cjs/{updateCheckoutSessionAttributes-3a1db9de.js → updateCheckoutSessionAttributes-8be63b63.js} +1 -1
  22. package/dist/cjs/{zonos-address-display_9.cjs.entry.js → zonos-address-display_8.cjs.entry.js} +1294 -1664
  23. package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
  24. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-button_3.cjs.entry.js +5 -5
  27. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
  28. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +84 -30
  29. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +113 -0
  30. package/dist/cjs/zonos-checkout.cjs.entry.js +60 -11
  31. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  32. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
  33. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +13 -13
  34. package/dist/cjs/zonos-collect.cjs.entry.js +11 -11
  35. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
  37. package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -3
  38. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  39. package/dist/cjs/zonos-elements.cjs.js +30 -3
  40. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  41. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  42. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  43. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -9
  44. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +13 -13
  45. package/dist/cjs/zonos-invoice.cjs.entry.js +10 -10
  46. package/dist/cjs/zonos-language-select_2.cjs.entry.js +3 -3
  47. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  48. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  49. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +6 -6
  50. package/dist/cjs/zonos-store-credit.cjs.entry.js +113 -0
  51. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  52. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  53. package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
  54. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  55. package/dist/cjs/{zonosStore-37a4b4f4.js → zonosStore-f5a61112.js} +110 -25
  56. package/dist/collection/collection-manifest.json +1 -0
  57. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -0
  58. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +49 -4
  59. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +18 -10
  60. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/assets/StoreCreditIcon.svg +3 -0
  61. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.css +139 -0
  62. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.js +137 -0
  63. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +52 -1
  64. package/dist/collection/components/common/zonos-button/zonos-button.css +3 -1
  65. package/dist/collection/components/common/zonos-input/zonos-input.css +3 -1
  66. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +3 -1
  67. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +1 -1
  68. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +3 -1
  69. package/dist/collection/components/main/zonos-controller.js +1 -1
  70. package/dist/collection/components/store/checkout/cart.js +62 -4
  71. package/dist/collection/components/store/checkout/paypal.js +28 -0
  72. package/dist/collection/components/store/checkout/storeCredit.js +237 -0
  73. package/dist/collection/components/store/checkout/stripe.js +2 -1
  74. package/dist/collection/components/store/translationStore/strings.arabic.js +33 -0
  75. package/dist/collection/components/store/translationStore/strings.base.js +33 -0
  76. package/dist/collection/components/store/translationStore/strings.chinese.js +33 -0
  77. package/dist/collection/components/store/translationStore/strings.danish.js +33 -0
  78. package/dist/collection/components/store/translationStore/strings.dutch.js +33 -0
  79. package/dist/collection/components/store/translationStore/strings.french.js +33 -0
  80. package/dist/collection/components/store/translationStore/strings.german.js +33 -0
  81. package/dist/collection/components/store/translationStore/strings.hebrew.js +33 -0
  82. package/dist/collection/components/store/translationStore/strings.indonesian.js +33 -0
  83. package/dist/collection/components/store/translationStore/strings.italian.js +33 -0
  84. package/dist/collection/components/store/translationStore/strings.japanese.js +33 -0
  85. package/dist/collection/components/store/translationStore/strings.korean.js +33 -0
  86. package/dist/collection/components/store/translationStore/strings.norwegian.js +33 -0
  87. package/dist/collection/components/store/translationStore/strings.polish.js +33 -0
  88. package/dist/collection/components/store/translationStore/strings.portuguese.js +33 -0
  89. package/dist/collection/components/store/translationStore/strings.russian.js +33 -0
  90. package/dist/collection/components/store/translationStore/strings.spanish.js +33 -0
  91. package/dist/collection/components/store/translationStore/strings.swedish.js +33 -0
  92. package/dist/collection/components/store/translationStore/strings.turkish.js +33 -0
  93. package/dist/collection/components/store/translationStore/strings.vietnamese.js +33 -0
  94. package/dist/collection/types/generated/graphql.internal.types.js +589 -0
  95. package/dist/esm/{cart-ba8f3890.js → cart-6e465f7b.js} +311 -23
  96. package/dist/esm/{cleanHtmlMarkdown-b5b18743.js → cleanHtmlMarkdown-5f7856f2.js} +9 -7
  97. package/dist/esm/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
  98. package/dist/esm/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
  99. package/dist/esm/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +2 -2
  100. package/dist/esm/{hasInclusivePrice-6fcc712f.js → hasInclusivePrice-c49d384d.js} +1 -1
  101. package/dist/esm/index-cfd394c8.js +4028 -0
  102. package/dist/esm/index.js +7 -7
  103. package/dist/esm/{invoice-055bb6e5.js → invoice-d416ba65.js} +3 -3
  104. package/dist/esm/{isCollectMobileTablet-797cea8b.js → isCollectMobileTablet-48040572.js} +3 -3
  105. package/dist/esm/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
  106. package/dist/esm/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/{localization-853b48a9.js → localization-f4a7fb5a.js} +661 -1
  109. package/dist/esm/{paypal-8d8518c0.js → paypal-6af6b978.js} +79 -21
  110. package/dist/esm/{placeTestOrder-0a74923e.js → placeTestOrder-d19ac166.js} +2 -2
  111. package/dist/esm/{renderCheckoutCurrency-bd059ecf.js → renderCheckoutCurrency-c8aa8e7e.js} +2 -2
  112. package/dist/esm/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
  113. package/dist/esm/{submitGtag-89d6e9cb.js → submitGtag-13de9f1f.js} +1 -1
  114. package/dist/esm/{throttle-ce2432ab.js → throttle-0504ba2c.js} +2 -2
  115. package/dist/esm/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
  116. package/dist/esm/{zonos-address-display_9.entry.js → zonos-address-display_8.entry.js} +1295 -1664
  117. package/dist/esm/zonos-address_4.entry.js +8 -8
  118. package/dist/esm/zonos-badge.entry.js +2 -2
  119. package/dist/esm/zonos-banner.entry.js +2 -2
  120. package/dist/esm/zonos-button_3.entry.js +5 -5
  121. package/dist/esm/zonos-card_5.entry.js +9 -9
  122. package/dist/esm/zonos-cart-items_12.entry.js +84 -30
  123. package/dist/esm/zonos-checkbox_2.entry.js +108 -0
  124. package/dist/esm/zonos-checkout.entry.js +60 -11
  125. package/dist/esm/zonos-collapse.entry.js +2 -2
  126. package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
  127. package/dist/esm/zonos-collect-finish_6.entry.js +13 -13
  128. package/dist/esm/zonos-collect.entry.js +11 -11
  129. package/dist/esm/zonos-component.entry.js +1 -1
  130. package/dist/esm/zonos-controller.entry.js +7 -7
  131. package/dist/esm/zonos-country-flag.entry.js +3 -3
  132. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  133. package/dist/esm/zonos-elements.js +31 -4
  134. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  135. package/dist/esm/zonos-hello.entry.js +4 -4
  136. package/dist/esm/zonos-input.entry.js +4 -4
  137. package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -9
  138. package/dist/esm/zonos-invoice-finish_5.entry.js +13 -13
  139. package/dist/esm/zonos-invoice.entry.js +10 -10
  140. package/dist/esm/zonos-language-select_2.entry.js +3 -3
  141. package/dist/esm/zonos-link.entry.js +1 -1
  142. package/dist/esm/zonos-logo.entry.js +2 -2
  143. package/dist/esm/zonos-shipping-rich-radio.entry.js +6 -6
  144. package/dist/esm/zonos-store-credit.entry.js +109 -0
  145. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  146. package/dist/esm/zonos-text.entry.js +2 -2
  147. package/dist/esm/zonos-tooltip.entry.js +1 -1
  148. package/dist/esm/zonos-v-stack.entry.js +2 -2
  149. package/dist/esm/{zonosStore-b434e436.js → zonosStore-5242a58d.js} +110 -25
  150. package/dist/esm-es5/cart-6e465f7b.js +1 -0
  151. package/dist/esm-es5/cleanHtmlMarkdown-5f7856f2.js +1 -0
  152. package/dist/esm-es5/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
  153. package/dist/esm-es5/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
  154. package/dist/esm-es5/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +1 -1
  155. package/dist/esm-es5/hasInclusivePrice-c49d384d.js +1 -0
  156. package/dist/esm-es5/index-cfd394c8.js +13 -0
  157. package/dist/esm-es5/index.js +1 -1
  158. package/dist/esm-es5/{invoice-055bb6e5.js → invoice-d416ba65.js} +1 -1
  159. package/dist/esm-es5/{isCollectMobileTablet-797cea8b.js → isCollectMobileTablet-48040572.js} +1 -1
  160. package/dist/esm-es5/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
  161. package/dist/esm-es5/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
  162. package/dist/esm-es5/loader.js +1 -1
  163. package/dist/esm-es5/localization-f4a7fb5a.js +1 -0
  164. package/dist/esm-es5/paypal-6af6b978.js +17 -0
  165. package/dist/esm-es5/{placeTestOrder-0a74923e.js → placeTestOrder-d19ac166.js} +1 -1
  166. package/dist/esm-es5/{renderCheckoutCurrency-bd059ecf.js → renderCheckoutCurrency-c8aa8e7e.js} +1 -1
  167. package/dist/esm-es5/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
  168. package/dist/esm-es5/{submitGtag-89d6e9cb.js → submitGtag-13de9f1f.js} +1 -1
  169. package/dist/esm-es5/{throttle-ce2432ab.js → throttle-0504ba2c.js} +1 -1
  170. package/dist/esm-es5/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
  171. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -0
  172. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  173. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  174. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  175. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  176. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  177. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  178. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -0
  179. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  180. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  181. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  182. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  183. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  184. package/dist/esm-es5/zonos-component.entry.js +1 -1
  185. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  186. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  187. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  188. package/dist/esm-es5/zonos-elements.js +1 -1
  189. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  190. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  191. package/dist/esm-es5/zonos-input.entry.js +1 -1
  192. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  193. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  194. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  195. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  196. package/dist/esm-es5/zonos-link.entry.js +1 -1
  197. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  198. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  199. package/dist/esm-es5/zonos-store-credit.entry.js +1 -0
  200. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  201. package/dist/esm-es5/zonos-text.entry.js +1 -1
  202. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  203. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  204. package/dist/esm-es5/zonosStore-5242a58d.js +1 -0
  205. package/dist/scripts/index.d.ts +60 -3
  206. package/dist/scripts/index.js +1 -1
  207. package/dist/scripts/loadZonos.js +1 -1
  208. package/dist/scripts/zonos.js +1 -1
  209. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +1 -0
  210. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-store-credit/zonos-store-credit.d.ts +17 -0
  211. package/dist/types/components/store/checkout/cart.d.ts +8 -1
  212. package/dist/types/components/store/checkout/storeCredit.d.ts +111 -0
  213. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  214. package/dist/types/components/store/translationStore/strings.arabic.d.ts +33 -0
  215. package/dist/types/components/store/translationStore/strings.base.d.ts +33 -0
  216. package/dist/types/components/store/translationStore/strings.chinese.d.ts +33 -0
  217. package/dist/types/components/store/translationStore/strings.danish.d.ts +33 -0
  218. package/dist/types/components/store/translationStore/strings.dutch.d.ts +33 -0
  219. package/dist/types/components/store/translationStore/strings.french.d.ts +33 -0
  220. package/dist/types/components/store/translationStore/strings.german.d.ts +33 -0
  221. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +33 -0
  222. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +33 -0
  223. package/dist/types/components/store/translationStore/strings.italian.d.ts +33 -0
  224. package/dist/types/components/store/translationStore/strings.japanese.d.ts +33 -0
  225. package/dist/types/components/store/translationStore/strings.korean.d.ts +33 -0
  226. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +33 -0
  227. package/dist/types/components/store/translationStore/strings.polish.d.ts +33 -0
  228. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +33 -0
  229. package/dist/types/components/store/translationStore/strings.russian.d.ts +33 -0
  230. package/dist/types/components/store/translationStore/strings.spanish.d.ts +33 -0
  231. package/dist/types/components/store/translationStore/strings.swedish.d.ts +33 -0
  232. package/dist/types/components/store/translationStore/strings.turkish.d.ts +33 -0
  233. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +33 -0
  234. package/dist/types/components.d.ts +21 -0
  235. package/dist/types/environment.d.ts +2 -2
  236. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  237. package/dist/types/types/generated/graphql.internal.types.d.ts +713 -4
  238. package/dist/types/types/generated/graphql.internal.types.ts +956 -4
  239. package/dist/types/types/global.d.ts +2 -0
  240. package/dist/zonos-elements/index.esm.js +1 -1
  241. package/dist/zonos-elements/p-058f6124.js +1 -0
  242. package/dist/zonos-elements/{p-7aa50ef2.entry.js → p-0d18d94b.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-c01f86b4.entry.js → p-12459b59.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-de8899bc.js → p-13ed3789.js} +1 -1
  245. package/dist/zonos-elements/{p-8205ae87.system.entry.js → p-17fbfda0.system.entry.js} +1 -1
  246. package/dist/zonos-elements/p-18d411c3.system.entry.js +1 -0
  247. package/dist/zonos-elements/{p-69b9b711.entry.js → p-1b56814d.entry.js} +1 -1
  248. package/dist/zonos-elements/p-1b8771bb.js +1 -0
  249. package/dist/zonos-elements/{p-eea7ac64.js → p-1e6509d7.js} +1 -1
  250. package/dist/zonos-elements/{p-c7311ce5.system.entry.js → p-1f63615f.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-5062dcf3.system.entry.js → p-234f0339.system.entry.js} +1 -1
  252. package/dist/zonos-elements/p-2435f196.entry.js +1 -0
  253. package/dist/zonos-elements/p-26848428.entry.js +1 -0
  254. package/dist/zonos-elements/p-28d62fc8.system.entry.js +1 -0
  255. package/dist/zonos-elements/p-29b60bf3.system.js +1 -0
  256. package/dist/zonos-elements/{p-1c4d12f0.entry.js → p-2aa44601.entry.js} +1 -1
  257. package/dist/zonos-elements/p-2b7ef406.system.js +18 -0
  258. package/dist/zonos-elements/p-34d10122.js +1 -0
  259. package/dist/zonos-elements/{p-e17bbcee.entry.js → p-3827041d.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-14c920b2.system.entry.js → p-38881641.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-c6e3d747.system.js → p-3fbd9cc0.system.js} +1 -1
  262. package/dist/zonos-elements/p-45bd8072.system.js +1 -0
  263. package/dist/zonos-elements/{p-bc4bfa06.js → p-48228d76.js} +1 -1
  264. package/dist/zonos-elements/{p-9c49daa4.entry.js → p-4aefd668.entry.js} +1 -1
  265. package/dist/zonos-elements/p-4d5932ac.system.entry.js +1 -0
  266. package/dist/zonos-elements/{p-a359e0a2.system.entry.js → p-4e4fa1fb.system.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-c36696f9.js → p-4f7d64f6.js} +1 -1
  268. package/dist/zonos-elements/p-53db5f85.system.js +1 -0
  269. package/dist/zonos-elements/{p-403b9fca.entry.js → p-59fe8416.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-7b400b5f.system.entry.js → p-5ca50862.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-5dd86dd9.system.js +1 -0
  272. package/dist/zonos-elements/p-5f628e57.entry.js +1 -0
  273. package/dist/zonos-elements/{p-b54a95ea.system.entry.js → p-5fceccc3.system.entry.js} +1 -1
  274. package/dist/zonos-elements/p-64ad0854.entry.js +1 -0
  275. package/dist/zonos-elements/{p-942358eb.system.js → p-65892fa7.system.js} +1 -1
  276. package/dist/zonos-elements/{p-aa028d91.entry.js → p-66d72216.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-58248f03.entry.js → p-66e1dc55.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-57fa64d7.js → p-67897a0d.js} +1 -1
  279. package/dist/zonos-elements/{p-917f714c.system.entry.js → p-6f19845a.system.entry.js} +1 -1
  280. package/dist/zonos-elements/{p-291f7ccb.system.entry.js → p-7042c6da.system.entry.js} +1 -1
  281. package/dist/zonos-elements/{p-232b0fb5.system.entry.js → p-70c8a47d.system.entry.js} +1 -1
  282. package/dist/zonos-elements/p-7261e245.system.js +13 -0
  283. package/dist/zonos-elements/p-741e07e1.system.entry.js +1 -0
  284. package/dist/zonos-elements/{p-3e67ca05.entry.js → p-7427dd1e.entry.js} +1 -1
  285. package/dist/zonos-elements/{p-23d497e3.system.js → p-7501c637.system.js} +1 -1
  286. package/dist/zonos-elements/p-77113201.system.js +1 -0
  287. package/dist/zonos-elements/{p-a12cb7ce.entry.js → p-77c0a02b.entry.js} +1 -1
  288. package/dist/zonos-elements/p-7d7ffb42.js +1 -0
  289. package/dist/zonos-elements/{p-1acf0a71.system.entry.js → p-85529818.system.entry.js} +1 -1
  290. package/dist/zonos-elements/{p-cfb9b847.system.entry.js → p-87d89870.system.entry.js} +1 -1
  291. package/dist/zonos-elements/{p-443e1f30.system.js → p-8c6624b6.system.js} +1 -1
  292. package/dist/zonos-elements/{p-57cee1b5.system.entry.js → p-8d5f928c.system.entry.js} +1 -1
  293. package/dist/zonos-elements/p-8f1ab25c.system.entry.js +1 -0
  294. package/dist/zonos-elements/{p-5762e217.js → p-908f13ae.js} +1 -1
  295. package/dist/zonos-elements/{p-63a3d3b9.system.js → p-90b8c428.system.js} +1 -1
  296. package/dist/zonos-elements/{p-8f0f6449.entry.js → p-939ba2a5.entry.js} +1 -1
  297. package/dist/zonos-elements/p-9581bffb.js +1 -0
  298. package/dist/zonos-elements/p-959918fe.system.js +1 -0
  299. package/dist/zonos-elements/p-997b7eef.js +1 -0
  300. package/dist/zonos-elements/{p-0792688d.system.entry.js → p-9bc5e944.system.entry.js} +1 -1
  301. package/dist/zonos-elements/p-9c6917ab.system.js +1 -0
  302. package/dist/zonos-elements/{p-f8d56ba9.system.js → p-9d44fef6.system.js} +1 -1
  303. package/dist/zonos-elements/p-9d64783a.entry.js +1 -0
  304. package/dist/zonos-elements/{p-71a8d971.system.entry.js → p-9f49e35a.system.entry.js} +1 -1
  305. package/dist/zonos-elements/{p-2f55895c.system.entry.js → p-a026b5ad.system.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-85e59f3a.system.entry.js → p-a1a3657e.system.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-c2f34b10.system.entry.js → p-a1b0e9a5.system.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-fb9fb873.system.entry.js → p-a1c476d6.system.entry.js} +1 -1
  309. package/dist/zonos-elements/p-a6a401e5.system.entry.js +1 -0
  310. package/dist/zonos-elements/{p-5edef7c3.system.js → p-ab25379f.system.js} +1 -1
  311. package/dist/zonos-elements/p-ac30b7a8.system.js +1 -0
  312. package/dist/zonos-elements/{p-37bb5f2d.entry.js → p-b004146f.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-3908f78d.system.entry.js → p-b07da3e8.system.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-71f10bf0.entry.js → p-b08bf843.entry.js} +1 -1
  315. package/dist/zonos-elements/p-b334c76c.entry.js +1 -0
  316. package/dist/zonos-elements/{p-69212d0f.entry.js → p-b9581a92.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-84cf1a90.system.entry.js → p-bdaf94a4.system.entry.js} +1 -1
  318. package/dist/zonos-elements/{p-231baaf8.entry.js → p-c1ab70d2.entry.js} +1 -1
  319. package/dist/zonos-elements/p-c30a155e.js +1 -0
  320. package/dist/zonos-elements/{p-aedd3911.entry.js → p-c9d4eb42.entry.js} +1 -1
  321. package/dist/zonos-elements/{p-3e85b9f5.system.entry.js → p-cad67b10.system.entry.js} +1 -1
  322. package/dist/zonos-elements/p-cc78c9d4.js +17 -0
  323. package/dist/zonos-elements/p-ce75b047.js +2 -0
  324. package/dist/zonos-elements/{p-909e2bc3.system.js → p-d18a2b2c.system.js} +1 -1
  325. package/dist/zonos-elements/{p-83377e23.entry.js → p-d2301d8a.entry.js} +1 -1
  326. package/dist/zonos-elements/p-d46484aa.entry.js +1 -0
  327. package/dist/zonos-elements/{p-3972663a.system.entry.js → p-d634f954.system.entry.js} +1 -1
  328. package/dist/zonos-elements/{p-14735e9a.system.entry.js → p-dbb3db89.system.entry.js} +1 -1
  329. package/dist/zonos-elements/{p-4592ae49.entry.js → p-ddcbea81.entry.js} +1 -1
  330. package/dist/zonos-elements/p-def2d465.js +1 -0
  331. package/dist/zonos-elements/p-df316670.system.js +1 -0
  332. package/dist/zonos-elements/p-e219d011.js +1 -0
  333. package/dist/zonos-elements/p-e331a235.js +1 -0
  334. package/dist/zonos-elements/p-e4d58bd7.js +1 -0
  335. package/dist/zonos-elements/{p-48475755.entry.js → p-e9ca4447.entry.js} +1 -1
  336. package/dist/zonos-elements/{p-6adfb3af.system.entry.js → p-ed61dedd.system.entry.js} +1 -1
  337. package/dist/zonos-elements/p-ee217693.entry.js +1 -0
  338. package/dist/zonos-elements/{p-ae16dda9.system.js → p-f0855df3.system.js} +1 -1
  339. package/dist/zonos-elements/p-f0938b51.system.entry.js +1 -0
  340. package/dist/zonos-elements/{p-d5b7d3c3.entry.js → p-f25e7f5a.entry.js} +1 -1
  341. package/dist/zonos-elements/{p-0ff93ca6.entry.js → p-f4cc124f.entry.js} +1 -1
  342. package/dist/zonos-elements/p-f830f800.js +1 -0
  343. package/dist/zonos-elements/p-fa0139c3.system.js +1 -0
  344. package/dist/zonos-elements/p-fa5767c3.system.js +1 -0
  345. package/dist/zonos-elements/{p-39fa55c7.entry.js → p-fbfaa4f9.entry.js} +1 -1
  346. package/dist/zonos-elements/p-fe6cc354.entry.js +1 -0
  347. package/dist/zonos-elements/zonos-elements.css +1 -1
  348. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  349. package/dist/zonos-elements/zonos-elements.js +1 -1
  350. package/package.json +70 -52
  351. package/dist/cjs/index-69fa8852.js +0 -1961
  352. package/dist/cjs/zonos-toggle.cjs.entry.js +0 -35
  353. package/dist/esm/index-0bbe9693.js +0 -1928
  354. package/dist/esm/zonos-toggle.entry.js +0 -31
  355. package/dist/esm-es5/cart-ba8f3890.js +0 -1
  356. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +0 -1
  357. package/dist/esm-es5/hasInclusivePrice-6fcc712f.js +0 -1
  358. package/dist/esm-es5/index-0bbe9693.js +0 -2
  359. package/dist/esm-es5/localization-853b48a9.js +0 -1
  360. package/dist/esm-es5/paypal-8d8518c0.js +0 -17
  361. package/dist/esm-es5/zonos-address-display_9.entry.js +0 -1
  362. package/dist/esm-es5/zonos-toggle.entry.js +0 -1
  363. package/dist/esm-es5/zonosStore-b434e436.js +0 -1
  364. package/dist/zonos-elements/p-002e45f9.system.js +0 -17
  365. package/dist/zonos-elements/p-01dada4e.js +0 -1
  366. package/dist/zonos-elements/p-09aabce0.js +0 -1
  367. package/dist/zonos-elements/p-0b7beb16.system.entry.js +0 -1
  368. package/dist/zonos-elements/p-0ef2a242.js +0 -1
  369. package/dist/zonos-elements/p-0f787f5d.entry.js +0 -1
  370. package/dist/zonos-elements/p-1dbeeab2.entry.js +0 -1
  371. package/dist/zonos-elements/p-1f894984.js +0 -1
  372. package/dist/zonos-elements/p-27f6930b.js +0 -1
  373. package/dist/zonos-elements/p-2c2a1339.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-3bec13dd.system.js +0 -1
  375. package/dist/zonos-elements/p-41299ffb.js +0 -1
  376. package/dist/zonos-elements/p-43a22d85.entry.js +0 -1
  377. package/dist/zonos-elements/p-4ffbb0d6.system.js +0 -1
  378. package/dist/zonos-elements/p-64661dd1.js +0 -1
  379. package/dist/zonos-elements/p-719403e0.system.js +0 -1
  380. package/dist/zonos-elements/p-71d855b8.system.entry.js +0 -1
  381. package/dist/zonos-elements/p-72ff005c.entry.js +0 -1
  382. package/dist/zonos-elements/p-786d1c24.js +0 -1
  383. package/dist/zonos-elements/p-7dba5f23.system.js +0 -1
  384. package/dist/zonos-elements/p-866afec1.js +0 -1
  385. package/dist/zonos-elements/p-94c5fbfc.system.entry.js +0 -1
  386. package/dist/zonos-elements/p-989d3af9.system.js +0 -2
  387. package/dist/zonos-elements/p-9fa90292.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-ab41bab5.js +0 -2
  389. package/dist/zonos-elements/p-abf38ed6.js +0 -1
  390. package/dist/zonos-elements/p-ae26aec5.system.js +0 -1
  391. package/dist/zonos-elements/p-af85846e.system.js +0 -1
  392. package/dist/zonos-elements/p-b2a0ab4a.js +0 -1
  393. package/dist/zonos-elements/p-b2ae8eb7.system.js +0 -1
  394. package/dist/zonos-elements/p-bf5e47e2.entry.js +0 -1
  395. package/dist/zonos-elements/p-c027a832.system.js +0 -1
  396. package/dist/zonos-elements/p-c1fb3a2d.entry.js +0 -1
  397. package/dist/zonos-elements/p-c2442878.system.js +0 -1
  398. package/dist/zonos-elements/p-d45285aa.system.js +0 -1
  399. package/dist/zonos-elements/p-dcf999d8.entry.js +0 -1
  400. package/dist/zonos-elements/p-e9e6bea7.system.entry.js +0 -1
  401. package/dist/zonos-elements/p-f6c2c743.entry.js +0 -1
  402. package/dist/zonos-elements/p-fc776473.js +0 -1
  403. package/dist/zonos-elements/p-fe06c9ea.js +0 -17
  404. package/dist/zonos-elements/p-fe96e239.system.js +0 -1
@@ -1,16 +1,16 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-0bbe9693.js';
2
- import { t as throttle_1 } from './throttle-ce2432ab.js';
3
- import { b as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-ba8f3890.js';
4
- import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-853b48a9.js';
5
- import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
1
+ import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
+ import { t as throttle_1 } from './throttle-0504ba2c.js';
3
+ import { b as stripeStore, t as trackConversionEvent, Q as extractName, F as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-6e465f7b.js';
4
+ import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-f4a7fb5a.js';
5
+ import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
6
6
  import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
7
7
  import { a as shouldRenderTaxIdInput, s as shouldRenderShortAddressCodeInput } from './shouldRenderTaxIdInput-2572bf77.js';
8
8
  import { c as classes } from './classes-0d95c529.js';
9
9
  import { l as log } from './VarianceTest-572cecf5.js';
10
10
  import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
11
- import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
12
- import './debounce-c4785346.js';
13
- import './isDarkColor-9ddd90cc.js';
11
+ import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
12
+ import './debounce-efc0e473.js';
13
+ import './isDarkColor-3537021b.js';
14
14
  import './ShortAddressCode-7620e622.js';
15
15
 
16
16
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--company-name-input.sc-zonos-address,.sc-zonos-address-h .zonos--tax-id-input.sc-zonos-address,.sc-zonos-address-h .zonos--short-address-code-input.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host } from './index-0bbe9693.js';
2
- import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
1
+ import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
2
+ import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import './VarianceTest-572cecf5.js';
5
5
 
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host } from './index-0bbe9693.js';
2
- import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
1
+ import { r as registerInstance, h, a as Host } from './index-cfd394c8.js';
2
+ import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import './VarianceTest-572cecf5.js';
5
5
 
@@ -1,10 +1,10 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-0bbe9693.js';
2
- import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
+ import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
3
3
  import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
- import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
5
+ import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
6
6
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
7
- import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
7
+ import { i as isDarkColor } from './isDarkColor-3537021b.js';
8
8
  import { s as styles } from './styles-6fc2fad9.js';
9
9
  import './VarianceTest-572cecf5.js';
10
10
 
@@ -27,7 +27,7 @@ const isElementUsingDarkTheme = (element) => isDarkColor(window
27
27
  .getComputedStyle(element)
28
28
  .getPropertyValue('--zonos-elements-gray-0'));
29
29
 
30
- const zonosButtonCss = ":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-inline-flexbox;display:inline-flex;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:var(--zonos--font-weight, 500);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--zonos--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--zonos--color, var(--zonos-elements-gray-1000));margin:1px;}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--zonos--background-color, var(--zonos-elements-gray-0));color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:1px solid var(--zonos--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:rgba(0, 0, 0, 0.1)}:host button:not(.override-background).subtle:not([disabled]):active{background:rgba(0, 0, 0, 0.2)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";
30
+ const zonosButtonCss = ":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-inline-flexbox;display:inline-flex;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:var(--zonos--font-weight, 500);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--zonos--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--zonos--color, var(--zonos-elements-gray-1000));margin:1px}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button{}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--zonos--background-color, var(--zonos-elements-gray-0));color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:1px solid var(--zonos--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:rgba(0, 0, 0, 0.1)}:host button:not(.override-background).subtle:not([disabled]):active{background:rgba(0, 0, 0, 0.2)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";
31
31
  const ZonosButtonStyle0 = zonosButtonCss;
32
32
 
33
33
  const ZonosButton = class {
@@ -1,15 +1,15 @@
1
- import { r as registerInstance, h, H as Host, a as getElement, c as createEvent } from './index-0bbe9693.js';
2
- import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement, d as createEvent } from './index-cfd394c8.js';
2
+ import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
5
- import { b as stripeStore, t as trackConversionEvent } from './cart-ba8f3890.js';
6
- import { s as storageStore } from './localization-853b48a9.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
5
+ import { b as stripeStore, t as trackConversionEvent } from './cart-6e465f7b.js';
6
+ import { s as storageStore } from './localization-f4a7fb5a.js';
7
7
  import { l as logError } from './handleFetch-a844cac1.js';
8
- import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-8d8518c0.js';
8
+ import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-6af6b978.js';
9
9
  import { l as log } from './VarianceTest-572cecf5.js';
10
- import './isDarkColor-9ddd90cc.js';
11
- import './isContrastColor-69778cea.js';
12
- import './submitGtag-89d6e9cb.js';
10
+ import './isDarkColor-3537021b.js';
11
+ import './isContrastColor-c17e83c9.js';
12
+ import './submitGtag-13de9f1f.js';
13
13
 
14
14
  const zonosCardCss = ":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
15
15
  const ZonosCardStyle0 = zonosCardCss;
@@ -1,28 +1,28 @@
1
- import { r as registerInstance, d as getAssetPath, h, H as Host, F as Fragment, c as createEvent, a as getElement } from './index-0bbe9693.js';
2
- import { d as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, b as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-ba8f3890.js';
3
- import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-853b48a9.js';
4
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-bd059ecf.js';
5
- import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
1
+ import { r as registerInstance, e as getAssetPath, h, a as Host, F as Fragment, d as createEvent, g as getElement } from './index-cfd394c8.js';
2
+ import { d as cartStore, I as cartStoreHasOneEligibleItem, J as stripeStoreApplyPromoCode, K as stripeStoreRemovePromoCode, b as stripeStore, C as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, M as stripeStoreMessageBasedOnStatus, N as storeCreditStore, O as storeCreditStoreReset, x as storeCreditStoreCoversFullAmount, r as cartStoreNextStep, P as stripeStoreTranslateAddressToLatin, Q as extractName, D as cartStoreOnChange, R as stripeStoreAsyncAddressUpdate, H as cartStoreUpdateSelectedShippingOption, S as cartStoreGetShippingTransitInfo, T as cartStoreGetMethod, U as sortServiceLevelOptionsByAmount } from './cart-6e465f7b.js';
3
+ import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-f4a7fb5a.js';
4
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-c8aa8e7e.js';
5
+ import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-5f7856f2.js';
6
6
  import { c as classes } from './classes-0d95c529.js';
7
- import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
8
- import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-6fcc712f.js';
9
- import { c as paypalStoreReset, a as paypalStore } from './paypal-8d8518c0.js';
7
+ import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
8
+ import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-c49d384d.js';
9
+ import { c as paypalStoreReset, a as paypalStore } from './paypal-6af6b978.js';
10
10
  import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
11
11
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
12
- import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
12
+ import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
13
13
  import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
14
- import { s as submitGtag } from './submitGtag-89d6e9cb.js';
14
+ import { s as submitGtag } from './submitGtag-13de9f1f.js';
15
15
  import { l as languages } from './ILanguage-cd6acb72.js';
16
- import { p as placeTestOrder } from './placeTestOrder-0a74923e.js';
17
- import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
18
- import { g as getContrastColor } from './getContrastColor-28c18704.js';
16
+ import { p as placeTestOrder } from './placeTestOrder-d19ac166.js';
17
+ import { i as isDarkColor } from './isDarkColor-3537021b.js';
18
+ import { g as getContrastColor } from './getContrastColor-98f0d1d5.js';
19
19
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
20
- import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
20
+ import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-b9f7e982.js';
21
21
  import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
22
22
  import { s as shouldRenderShortAddressCodeInput, a as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-2572bf77.js';
23
23
  import { e as euCountryCodes } from './TaxId-50d72254.js';
24
- import './isContrastColor-69778cea.js';
25
- import './debounce-c4785346.js';
24
+ import './isContrastColor-c17e83c9.js';
25
+ import './debounce-efc0e473.js';
26
26
  import './ShortAddressCode-7620e622.js';
27
27
 
28
28
  const zonosCartItemsCss = ":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;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--cart-table td{vertical-align:top}:host .zonos--cart-item-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}:host .zonos--cart-item-name .zonos--cart-item-quantity>*{display:inline-block}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px}";
@@ -296,6 +296,9 @@ const ZonosCartSubtotal = class {
296
296
  } }), h("zonos-button", { loading: this.loading, onClick: () => applyPromoCode(), variant: "primary" }, translate('Apply'))))))), !!cartStore.adjustmentTotal && (h("tr", { class: "zonos--row zonos--cart-discount" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("div", { class: "zonos--title-with-icon" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Discounts')))), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
297
297
  amount: cartStore.adjustmentTotal,
298
298
  isForeign: true,
299
+ }))))), !!cartStore.storeCredit && (h("tr", { class: "zonos--row zonos--cart-store-credit" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Store credit'))), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("zonos-text", { textColor: "green-600", type: "semiBoldLabel" }, "-", renderCheckoutCurrency({
300
+ amount: cartStore.storeCredit,
301
+ isForeign: true,
299
302
  }))))), 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({
300
303
  amount: total,
301
304
  isForeign: true,
@@ -726,6 +729,47 @@ const ZonosCheckoutFinish = class {
726
729
  paypalStoreReset();
727
730
  storageStore.checkoutSessionId = null;
728
731
  };
732
+ this.checkStoreCreditOrderStatus = async () => {
733
+ // show success message right away when order id is already created
734
+ this.isLoading = false;
735
+ if (storeCreditStore.orderIdCreated) {
736
+ const checkoutSessionId = storageStore.checkoutSessionId;
737
+ submitGtag({
738
+ event: 'zonos-checkout-success',
739
+ metadata: this.buildPurchaseMetadata({
740
+ checkoutSessionId: checkoutSessionId || '',
741
+ }),
742
+ });
743
+ submitGtag({
744
+ event: 'purchase',
745
+ metadata: this.buildPurchaseMetadata({
746
+ checkoutSessionId: checkoutSessionId || '',
747
+ }),
748
+ });
749
+ void trackConversionEvent({
750
+ checkoutSessionId,
751
+ eventName: 'checkout_orderCompleted',
752
+ });
753
+ this.notificationType = 'success';
754
+ this.notificationTitle = translate("You're all set!");
755
+ this.notificationMessages =
756
+ stripeStoreMessageBasedOnStatus('succeeded').messages;
757
+ // override title if notification type is success
758
+ this.useOverrideSuccessNotification();
759
+ const successEvent = createCustomEvent('zonos-checkout-success', {
760
+ message: 'Zonos Checkout successfully processed order',
761
+ });
762
+ document.dispatchEvent(successEvent);
763
+ // wait this to finish before resetting store and checkout session id
764
+ await this.handleSuccessBehavior();
765
+ }
766
+ // reset stores when checkout is finished
767
+ stripeStoreResetPromoCode();
768
+ stripeStoreReset();
769
+ paypalStoreReset();
770
+ storeCreditStoreReset();
771
+ storageStore.checkoutSessionId = null;
772
+ };
729
773
  this.closeClickHandler = () => {
730
774
  this.closeClick.emit();
731
775
  };
@@ -758,6 +802,9 @@ const ZonosCheckoutFinish = class {
758
802
  if (cartStore.isStagingMode) {
759
803
  void this.checkStagingOrderStatus();
760
804
  }
805
+ else if (storeCreditStore.orderIdCreated) {
806
+ void this.checkStoreCreditOrderStatus();
807
+ }
761
808
  else if (paypalStore.orderIdCreated) {
762
809
  void this.checkPaypalPaymentStatus();
763
810
  }
@@ -767,11 +814,11 @@ const ZonosCheckoutFinish = class {
767
814
  }
768
815
  render() {
769
816
  const isTestMode = getIsTestMode();
770
- return (h(Host, { key: '80a543fca5dbc63dde41806702b2f6dd4fa849ab', class: "zonos--checkout-finish zonos--elements", style: {
817
+ return (h(Host, { key: 'c74f250bac797f8c000bac4892bc5ab56c0867bb', class: "zonos--checkout-finish zonos--elements", style: {
771
818
  '--zonos--border-radius': getBorderRadius({
772
819
  overrideBorderStyle: this.borderRadius,
773
820
  }),
774
- } }, !this.isLoading && (h("div", { key: '6cab293041902e156563f37db6f0e77caaeeaaf9', class: "zonos--finish-details" }, h("div", { key: '6bf32844fa9d38eae6e9f337e56b7918e49bf793', 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: 'bf13e59b7bc2380609ffba879fa2b1d8c5d9a9e0', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: 'c246affb94a9799e0c556affb73b2ebfb69a9c7f', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: '61fa4fa0e09c0ce2905281b2696f42172c7a2bcd',
821
+ } }, !this.isLoading && (h("div", { key: '5ee705381b0246f5035f512c9d19beba6dc33d4f', class: "zonos--finish-details" }, h("div", { key: '1d1a54d8f73535aaada32601c5e771c9fd381104', 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: '68c898ee87166d08bd52702ae8f9bfe51c393076', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '98b6eaff782fe34a8dbd258e4c7d0c81c3577bcc', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: 'ccc5e7973b2e962e22ac56dcad6e33b048621036',
775
822
  // Only show loading spinner if it's not an error notification
776
823
  loading: this.isWaitingToRedirect &&
777
824
  this.notificationType !== 'error', onClick: () => {
@@ -783,9 +830,9 @@ const ZonosCheckoutFinish = class {
783
830
  }
784
831
  this.closeClickHandler();
785
832
  }, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
786
- this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '9227d7832ed477be556cb6d59c644a74c293c740', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
833
+ this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'cd30bc010f2a3e935d9b80e56389581a9150b021', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
787
834
  cartStore.step === 'finish' &&
788
- this.notificationType === 'success' && (h("div", { key: '9107be1ef7895b0a5e3fe0a985036a11de7011d3', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: 'b0de8743bea8dd9ac7099bd5b77811f80d80a380', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'f90749b9af4c17eac554efb6d3d12cc41ac6e3c8', onClick: () => {
835
+ this.notificationType === 'success' && (h("div", { key: '458809f316ac5129efbc7fe90d1549c042d477af', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: 'dcf0c595cb119a731c34c1aff09960db8a1fb251', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '76d55870370b4906970b3e2109617ba2230eee7e', onClick: () => {
789
836
  const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
790
837
  this.redirectToUrl(isZonosDashboard
791
838
  ? '/orders/all'
@@ -904,7 +951,8 @@ const ZonosCheckoutPayment = class {
904
951
  */
905
952
  this.continueClickHandler = async ({ currencyCode, }) => {
906
953
  var _a, _b;
907
- if (!this.handleValidate()) {
954
+ // Skip Stripe payment validation when store credit covers the full order
955
+ if (!storeCreditStoreCoversFullAmount() && !this.handleValidate()) {
908
956
  this.showErrorBanner = true;
909
957
  // Attempt to submit the form so the missing input error will be shown in Stripe
910
958
  void ((_a = stripeStore.stripeElements) === null || _a === void 0 ? void 0 : _a.submit());
@@ -995,6 +1043,7 @@ const ZonosCheckoutPayment = class {
995
1043
  const isTestMode = getIsTestMode();
996
1044
  const isStagingMode = cartStore.isStagingMode || getIsStagingMode();
997
1045
  const isPaypalTabSelected = ((_a = stripeStore.stripePaymentEventData) === null || _a === void 0 ? void 0 : _a.value.type) === 'external_paypal';
1046
+ const storeCreditCoversFullOrder = storeCreditStoreCoversFullAmount();
998
1047
  const renderPayment = () => {
999
1048
  if (isStagingMode) {
1000
1049
  const { colorPrimary } = zonosStore.appearance;
@@ -1010,7 +1059,9 @@ const ZonosCheckoutPayment = class {
1010
1059
  variant: this.submitBtnType }, translate('Place test order')))));
1011
1060
  }
1012
1061
  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 ||
1013
- 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)), h("zonos-payment", null), h("div", { class: "zonos--group-btn" }, !isPaypalTabSelected && (h(Fragment, null, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, isDisabled: this.continueLoading &&
1062
+ 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 &&
1063
+ storeCreditStore.availableBalance != null &&
1064
+ 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 &&
1014
1065
  stripeStore.checkoutSettlementCurrency === 'USD', loading: this.continueLoading &&
1015
1066
  stripeStore.checkoutSettlementCurrency !== 'USD', onClick: async () => {
1016
1067
  if (!cartStore.checkoutSession) {
@@ -1023,22 +1074,25 @@ const ZonosCheckoutPayment = class {
1023
1074
  });
1024
1075
  }, size: "lg",
1025
1076
  // use primary type when on mobile mode
1026
- variant: this.submitBtnType }, translate('Pay [orderTotal]', {
1027
- orderTotal: renderCheckoutCurrency({
1028
- amount: cartStore.total,
1029
- isForeign: true,
1030
- }),
1031
- })), stripeStore.shouldRenderPayInUsdButton && (h("zonos-button", { class: "zonos--pay-in-base-currency-btn", isDisabled: this.continueLoading &&
1077
+ variant: this.submitBtnType }, storeCreditCoversFullOrder
1078
+ ? translate('Place order')
1079
+ : translate('Pay [orderTotal]', {
1080
+ orderTotal: renderCheckoutCurrency({
1081
+ amount: cartStore.total,
1082
+ isForeign: true,
1083
+ }),
1084
+ })), !storeCreditCoversFullOrder &&
1085
+ stripeStore.shouldRenderPayInUsdButton && (h("zonos-button", { class: "zonos--pay-in-base-currency-btn", isDisabled: this.continueLoading &&
1032
1086
  stripeStore.checkoutSettlementCurrency !== 'USD', loading: this.continueLoading &&
1033
1087
  stripeStore.checkoutSettlementCurrency === 'USD', onClick: async () => {
1034
1088
  await this.continueClickHandler({
1035
1089
  currencyCode: 'USD',
1036
1090
  });
1037
- }, size: "lg", variant: "subtle" }, translate('Click to pay in USD'))))), h("zonos-paypal-payment", { onPaypalSessionDone: ({ detail: { orderId } }) => {
1091
+ }, size: "lg", variant: "subtle" }, translate('Click to pay in USD'))))), !storeCreditCoversFullOrder && (h("zonos-paypal-payment", { onPaypalSessionDone: ({ detail: { orderId } }) => {
1038
1092
  this.paypalSessionDone.emit(orderId);
1039
1093
  }, onPaypalSessionFail: () => this.paypalSessionFailed.emit(), style: {
1040
1094
  display: isPaypalTabSelected ? 'block' : 'none',
1041
- } })), isTestMode && (h("zonos-card", { backgroundColor: "gray-100", borderRadius: 12, class: "zonos--test-cards" }, h("zonos-v-stack", { spacing: 16 }, h("div", null, h("zonos-text", { type: "semiBoldLabel" }, translate('Test cards')), h("zonos-text", { textColor: "gray-700" }, translate('Click to copy the card number. Use any future expiration date and three number CVC.'))), h("zonos-button", { icon: h("zonos-icon", { content: CheckmarkLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4242424242424242') }, translate('Success'), " (****4242)"), h("zonos-button", { icon: h("zonos-icon", { content: RemoveLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4000000000000002') }, translate('Failure'), " (****0002)")), h("zonos-notification", null)))));
1095
+ } }))), isTestMode && (h("zonos-card", { backgroundColor: "gray-100", borderRadius: 12, class: "zonos--test-cards" }, h("zonos-v-stack", { spacing: 16 }, h("div", null, h("zonos-text", { type: "semiBoldLabel" }, translate('Test cards')), h("zonos-text", { textColor: "gray-700" }, translate('Click to copy the card number. Use any future expiration date and three number CVC.'))), h("zonos-button", { icon: h("zonos-icon", { content: CheckmarkLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4242424242424242') }, translate('Success'), " (****4242)"), h("zonos-button", { icon: h("zonos-icon", { content: RemoveLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4000000000000002') }, translate('Failure'), " (****0002)")), h("zonos-notification", null)))));
1042
1096
  };
1043
1097
  return (h(Host, { class: "zonos--checkout-payment zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Payment method')), renderPayment())));
1044
1098
  }
@@ -0,0 +1,108 @@
1
+ import { r as registerInstance, d as createEvent, h, a as Host } from './index-cfd394c8.js';
2
+ import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
3
+ import { c as classes } from './classes-0d95c529.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
5
+ import { i as isDarkColor } from './isDarkColor-3537021b.js';
6
+ import './VarianceTest-572cecf5.js';
7
+
8
+ const colorPrefixes = [
9
+ 'blue',
10
+ 'cyan',
11
+ 'green',
12
+ 'orange',
13
+ 'purple',
14
+ 'red',
15
+ 'gray',
16
+ 'glass',
17
+ ];
18
+
19
+ const zonosCheckboxCss = ":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-inline-flexbox;display:inline-flex;cursor:pointer}:host label{display:-ms-inline-flexbox;display:inline-flex;position:relative;gap:8px;-ms-flex-align:center;align-items:center}:host label.disabled{cursor:not-allowed;opacity:0.6}:host input[type=checkbox]{opacity:0;position:absolute;left:0;width:0;height:0;top:0;z-index:-99999}:host svg{opacity:0}:host .checkmark-container{height:var(--zonos--size);width:var(--zonos--size);background-color:transparent;border:1.5px solid var(--zonos-elements-gray-400);position:relative;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-4))}:host .checkmark{opacity:0;position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;width:calc(100% + 3px);-webkit-transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);-webkit-transform:scale(0.4);transform:scale(0.4);background-color:var(--zonos--background-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-4))}:host input[type=checkbox]:checked~.checkmark-container .checkmark{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";
20
+ const ZonosCheckboxStyle0 = zonosCheckboxCss;
21
+
22
+ let inputId = 0;
23
+ const ZonosCheckbox = class {
24
+ constructor(hostRef) {
25
+ registerInstance(this, hostRef);
26
+ this.checkboxSelected = createEvent(this, "checkboxSelected", 7);
27
+ this.inputId = `zonos--checkbox-${++inputId}`;
28
+ /**
29
+ * background color of the checkbox
30
+ */
31
+ this.backgroundColor = 'blue';
32
+ /**
33
+ * Whether or not the checkbox is checked
34
+ */
35
+ this.isChecked = false;
36
+ /**
37
+ * Whether or not the checkbox is disabled
38
+ */
39
+ this.isDisabled = false;
40
+ /**
41
+ * Size of the checkbox
42
+ */
43
+ this.size = 12;
44
+ /**
45
+ * Font size of the checkbox text
46
+ */
47
+ this.fontSize = 'base';
48
+ }
49
+ onClick() {
50
+ if (this.isDisabled) {
51
+ return;
52
+ }
53
+ this.checkboxSelected.emit(!this.isChecked);
54
+ }
55
+ render() {
56
+ const isBackgroundVariable = colorPrefixes.includes(this.backgroundColor);
57
+ const backgroundColor = isBackgroundVariable
58
+ ? `var(--zonos-elements-${this.backgroundColor}-600)`
59
+ : this.backgroundColor;
60
+ const checkmarkColor = isBackgroundVariable
61
+ ? // use lighter color if the color is amino variable
62
+ `var(--zonos-elements-${this.backgroundColor}-200)`
63
+ : // if it's not an amino variable, use white if the background is dark, and dark if the background is light
64
+ !isDarkColor(backgroundColor)
65
+ ? 'var(--zonos-elements-gray-800)'
66
+ : 'var(--zonos-elements-gray-0)';
67
+ const borderStyle = getBorderRadius({
68
+ customRoundRadius: '4px',
69
+ overrideBorderStyle: this.borderStyle,
70
+ });
71
+ return (h(Host, { key: 'c2a9023becafd6d19ad769d449383924c85c641f', class: classes(['zonos--elements zonos--checkbox']), style: {
72
+ '--zonos--background-color': backgroundColor,
73
+ '--zonos--border-radius': borderStyle,
74
+ '--zonos--font-family': zonosStoreFontFamily(),
75
+ '--zonos--size': `${this.size}px`,
76
+ } }, h("label", { key: '352e8bda93f1ac9a7a55ba7038e922626c3a9594', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '71d664f9d83345ad4c143f71209bdb0a2cb16745', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
77
+ this.checkboxSelected.emit(e.target.checked);
78
+ }, type: "checkbox" }), h("span", { key: 'c772c4e8dbbbef8035874616a0254fb4114a97c8', class: "checkmark-container" }, h("svg", { key: 'd497191975edeca268cc014431535f4befdd7b2c', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '15b26fdf72a058e81d4472d0c757a725c04e3f47', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '2d6015d16eda08dc39eff677f4858d2aed620891', size: this.fontSize }, this.label)))));
79
+ }
80
+ };
81
+ ZonosCheckbox.style = ZonosCheckboxStyle0;
82
+
83
+ const zonosToggleCss = ":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-inline-flexbox;display:inline-flex}:host .wrapper{position:relative;border-radius:6px;background-color:var(--zonos-elements-gray-50);display:-ms-flexbox;display:flex}:host .zonos--toggle-selected-slider{z-index:1;position:absolute;background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}:host .zonos--option{background:transparent;border:0;z-index:2;cursor:pointer;padding:4px 12px;border-radius:6px;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-size:var(--zonos-elements-font-size-base);font-weight:500;color:var(--zonos-elements-text-color-secondary)}:host .zonos--option:focus{outline:none}:host .zonos--option:hover:not(.selected){color:var(--zonos-elements-text-color)}:host .zonos--option.selected{color:var(--zonos-elements-text-color);background-color:var(--zonos-elements-raised-surface-color);height:100%;-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard);border-radius:6px;-webkit-animation:translate 0.3s ease-in-out;animation:translate 0.3s ease-in-out}";
84
+ const ZonosToggleStyle0 = zonosToggleCss;
85
+
86
+ const ZonosToggle = class {
87
+ constructor(hostRef) {
88
+ registerInstance(this, hostRef);
89
+ this.toggleChanged = createEvent(this, "toggleChanged", 7);
90
+ /**
91
+ * Options for the toggle
92
+ */
93
+ this.options = [];
94
+ }
95
+ render() {
96
+ return (h(Host, { key: 'e6be1b38ea1fd978a231a1c3dc85a92c1d86a24b', class: classes(['zonos--elements zonos--toggle']), style: {
97
+ '--zonos--font-family': zonosStoreFontFamily(),
98
+ } }, h("div", { key: 'e9ccac29c3f653e3e9d81d336089d6aaea6bbf6c', class: "wrapper" }, this.options.map(option => {
99
+ const selected = option.value === this.value;
100
+ return (h("button", { class: classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
101
+ this.toggleChanged.emit(option.value);
102
+ } }, option.label));
103
+ }))));
104
+ }
105
+ };
106
+ ZonosToggle.style = ZonosToggleStyle0;
107
+
108
+ export { ZonosCheckbox as zonos_checkbox, ZonosToggle as zonos_toggle };
@@ -1,22 +1,22 @@
1
- import { r as registerInstance, h, F as Fragment, H as Host } from './index-0bbe9693.js';
2
- import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as cartStoreOnChange } from './cart-ba8f3890.js';
3
- import { p as paypalStoreHasPaypalEnabled, a as paypalStore, b as paypalInitScript } from './paypal-8d8518c0.js';
4
- import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-853b48a9.js';
5
- import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-b434e436.js';
1
+ import { r as registerInstance, h, F as Fragment, a as Host } from './index-cfd394c8.js';
2
+ import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as storeCreditStoreApplyCredit, x as storeCreditStoreCoversFullAmount, y as validateCheckoutSession, z as storeCreditStoreCreateOrder, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as cartStoreOnChange, E as storeCreditStoreGetEffectiveAmount } from './cart-6e465f7b.js';
3
+ import { p as paypalStoreHasPaypalEnabled, a as paypalStore, b as paypalInitScript } from './paypal-6af6b978.js';
4
+ import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-f4a7fb5a.js';
5
+ import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-5242a58d.js';
6
6
  import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
7
7
  import { h as handleFetch, b as getAdditionalLogMetadata, g as getIsTestMode, l as logError, j as jsonParse, s as sendErrorLog, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
8
- import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
8
+ import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-b9f7e982.js';
9
9
  import { _ as _getIsValidCartId, c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector, d as domesticRedirectedBtnSelector, g as getAbandonedCartRenewTokenValue } from './CheckoutConfig-724d7bae.js';
10
10
  import { l as log, g as getElapsedTime, b as allLogs } from './VarianceTest-572cecf5.js';
11
11
  import { c as classes } from './classes-0d95c529.js';
12
12
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
13
- import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
14
- import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
13
+ import { g as getBorderRadius } from './getBorderRadius-c21a42e5.js';
14
+ import { i as isDarkColor } from './isDarkColor-3537021b.js';
15
15
  import { s as styles } from './styles-6fc2fad9.js';
16
- import { s as submitGtag } from './submitGtag-89d6e9cb.js';
16
+ import { s as submitGtag } from './submitGtag-13de9f1f.js';
17
17
  import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
18
- import './isContrastColor-69778cea.js';
19
- import './debounce-c4785346.js';
18
+ import './isContrastColor-c17e83c9.js';
19
+ import './debounce-efc0e473.js';
20
20
 
21
21
  /**
22
22
  * Check if store discount is enabled
@@ -1663,6 +1663,55 @@ const ZonosCheckout = class {
1663
1663
  this.submitLoading = false;
1664
1664
  return;
1665
1665
  }
1666
+ // Apply store credit if customer has selected an amount
1667
+ const storeCreditAmount = storeCreditStoreGetEffectiveAmount();
1668
+ if (storeCreditAmount > 0) {
1669
+ const storeCreditResult = await storeCreditStoreApplyCredit();
1670
+ if (!storeCreditResult.success) {
1671
+ stripeStore.hasPaymentError = true;
1672
+ stripeStore.customErrorMessage =
1673
+ storeCreditResult.error ||
1674
+ translate('Unable to apply store credit. Please try again.');
1675
+ this.submitLoading = false;
1676
+ return;
1677
+ }
1678
+ }
1679
+ // If store credit covers the full order, create order directly without payment
1680
+ if (storeCreditStoreCoversFullAmount()) {
1681
+ try {
1682
+ // Validate checkout session (landed cost ID, etc.) before creating order
1683
+ const checkoutSessionStatus = await validateCheckoutSession();
1684
+ if (!checkoutSessionStatus.valid) {
1685
+ stripeStore.hasPaymentError = true;
1686
+ stripeStore.customErrorMessage = checkoutSessionStatus.errorMessage;
1687
+ this.submitLoading = false;
1688
+ return;
1689
+ }
1690
+ const orderResult = await storeCreditStoreCreateOrder();
1691
+ if (!orderResult.success) {
1692
+ stripeStore.hasPaymentError = true;
1693
+ stripeStore.customErrorMessage =
1694
+ orderResult.error ||
1695
+ translate('Unable to place order with store credit. Please try again.');
1696
+ this.submitLoading = false;
1697
+ return;
1698
+ }
1699
+ cartStoreNextStep();
1700
+ cartStoreClearCheckoutInterval();
1701
+ }
1702
+ catch (err) {
1703
+ logError(err);
1704
+ submitGtag({
1705
+ event: 'zonos-checkout-payment-fail',
1706
+ metadata: {
1707
+ checkoutSessionId: storageStore.checkoutSessionId,
1708
+ },
1709
+ });
1710
+ stripeStore.hasPaymentError = true;
1711
+ }
1712
+ this.submitLoading = false;
1713
+ return;
1714
+ }
1666
1715
  try {
1667
1716
  await stripeStoreConfirmPayment();
1668
1717
  cartStoreNextStep();
@@ -1,5 +1,5 @@
1
- import { r as registerInstance, h, H as Host, a as getElement } from './index-0bbe9693.js';
2
- import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
1
+ import { r as registerInstance, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
+ import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
3
3
  import './VarianceTest-572cecf5.js';
4
4
 
5
5
  const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
@@ -1,14 +1,14 @@
1
- import { r as registerInstance, d as getAssetPath, h, H as Host } from './index-0bbe9693.js';
2
- import { d as cartStore } from './cart-ba8f3890.js';
3
- import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
4
- import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
1
+ import { r as registerInstance, e as getAssetPath, h, a as Host } from './index-cfd394c8.js';
2
+ import { d as cartStore } from './cart-6e465f7b.js';
3
+ import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-5f7856f2.js';
4
+ import { f as zonosStoreFontFamily } from './zonosStore-5242a58d.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
6
  import { s as styles } from './styles-6fc2fad9.js';
7
- import './localization-853b48a9.js';
7
+ import './localization-f4a7fb5a.js';
8
8
  import './handleFetch-a844cac1.js';
9
9
  import './VarianceTest-572cecf5.js';
10
- import './isDarkColor-9ddd90cc.js';
11
- import './getBorderRadius-877f6389.js';
10
+ import './isDarkColor-3537021b.js';
11
+ import './getBorderRadius-c21a42e5.js';
12
12
 
13
13
  const zonosCollectCartItemsCss = ":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:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";
14
14
  const ZonosCollectCartItemsStyle0 = zonosCollectCartItemsCss;