@zonos/elements 1.3.18-alpha.2 → 1.3.18-alpha.3

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 (334) hide show
  1. package/README.md +341 -96
  2. package/dist/cjs/{cart-941a31dd.js → cart-5468dfd1.js} +29 -84
  3. package/dist/cjs/index.cjs.js +624 -0
  4. package/dist/cjs/logError-4e2f2020.js +58 -0
  5. package/dist/cjs/{submitGtag-9210b4fe.js → submitGtag-127a220f.js} +3 -2
  6. package/dist/cjs/zonos-address_8.cjs.entry.js +13 -12
  7. package/dist/cjs/zonos-badge_2.cjs.entry.js +3 -3
  8. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  9. package/dist/cjs/zonos-card_2.cjs.entry.js +7 -6
  10. package/dist/cjs/zonos-cart-items_11.cjs.entry.js +11 -10
  11. package/dist/cjs/zonos-checkout.cjs.entry.js +15 -14
  12. package/dist/cjs/zonos-controller.cjs.entry.js +25 -20
  13. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
  14. package/dist/cjs/zonos-country-select_3.cjs.entry.js +6 -5
  15. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -1
  16. package/dist/cjs/zonos-hello.cjs.entry.js +10 -9
  17. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  19. package/dist/cjs/zonos-payment.cjs.entry.js +3 -2
  20. package/dist/collection/__mocks__/zonos-url/index.js +1 -0
  21. package/dist/collection/__tests__/build-utils/urlCheckOne.js +1 -1
  22. package/dist/collection/collection-manifest.json +1 -1
  23. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -9
  24. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +3 -3
  25. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +3 -3
  26. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  27. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  28. package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
  29. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  30. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  31. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  32. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  33. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  34. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  35. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  36. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  37. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  38. package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.js +1 -1
  39. package/dist/collection/components/main/zonos-controller.js +10 -6
  40. package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -3
  41. package/dist/collection/environment.js +0 -2
  42. package/dist/collection/index.js +1 -0
  43. package/dist/collection/scripts/_extractZonosQaUrl.js +26 -0
  44. package/dist/collection/scripts/_getZonosQaUrl.js +40 -0
  45. package/dist/collection/scripts/{loadStripe.js → _loadStripe.js} +1 -1
  46. package/dist/collection/scripts/{zonosBase.js → _zonosBase.js} +29 -6
  47. package/dist/collection/scripts/index.js +2 -0
  48. package/dist/collection/types/generated/graphql.customer.types.js +1 -0
  49. package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
  50. package/dist/esm/{cart-cc593c2b.js → cart-63d120e1.js} +2 -55
  51. package/dist/esm/index.js +621 -0
  52. package/dist/esm/logError-c456c092.js +55 -0
  53. package/dist/esm/{submitGtag-e50f903f.js → submitGtag-35bb3945.js} +2 -1
  54. package/dist/esm/zonos-address_8.entry.js +11 -10
  55. package/dist/esm/zonos-badge_2.entry.js +3 -3
  56. package/dist/esm/zonos-button_3.entry.js +3 -3
  57. package/dist/esm/zonos-card_2.entry.js +7 -6
  58. package/dist/esm/zonos-cart-items_11.entry.js +11 -10
  59. package/dist/esm/zonos-checkout.entry.js +3 -2
  60. package/dist/esm/zonos-controller.entry.js +8 -3
  61. package/dist/esm/zonos-country-flag.entry.js +2 -1
  62. package/dist/esm/zonos-country-select_3.entry.js +6 -5
  63. package/dist/esm/zonos-hello-dialog.entry.js +2 -1
  64. package/dist/esm/zonos-hello.entry.js +2 -1
  65. package/dist/esm/zonos-input.entry.js +4 -4
  66. package/dist/esm/zonos-link.entry.js +1 -1
  67. package/dist/esm/zonos-payment.entry.js +2 -1
  68. package/dist/esm-es5/cart-63d120e1.js +1 -0
  69. package/dist/esm-es5/index.js +1 -0
  70. package/dist/esm-es5/logError-c456c092.js +1 -0
  71. package/dist/esm-es5/submitGtag-35bb3945.js +1 -0
  72. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  73. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  74. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  75. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -1
  77. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  78. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  79. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  80. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  81. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  82. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  83. package/dist/esm-es5/zonos-input.entry.js +1 -1
  84. package/dist/esm-es5/zonos-link.entry.js +1 -1
  85. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  86. package/dist/scripts/index.d.ts +3908 -0
  87. package/dist/scripts/index.js +1 -0
  88. package/dist/scripts/loadZonos.d.ts +3954 -0
  89. package/dist/scripts/loadZonos.js +1 -1
  90. package/dist/scripts/zonos.js +1 -1
  91. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -7
  92. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +2 -2
  93. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -2
  94. package/dist/types/components/main/zonos-controller.d.ts +1 -1
  95. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  96. package/dist/types/components/store/zonosStore.d.ts +1 -1
  97. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -2
  98. package/dist/types/components/utils/styles.d.ts +1 -0
  99. package/dist/types/components.d.ts +22 -14
  100. package/dist/types/index.d.ts +1 -0
  101. package/dist/types/scripts/_extractZonosQaUrl.d.ts +11 -0
  102. package/dist/types/scripts/_getZonosQaUrl.d.ts +4 -0
  103. package/dist/types/scripts/{loadStripe.d.ts → _loadStripe.d.ts} +1 -1
  104. package/dist/types/scripts/{zonosBase.d.ts → _zonosBase.d.ts} +36 -2
  105. package/dist/types/scripts/index.d.ts +2 -0
  106. package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
  107. package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +9 -0
  108. package/dist/types/types/generated/graphql.customer.types.d.ts +1 -0
  109. package/dist/types/types/generated/graphql.customer.types.ts +3 -0
  110. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -0
  111. package/dist/types/types/generated/graphql.frontend.types.ts +1 -0
  112. package/dist/types/types/global.d.ts +1 -1
  113. package/dist/zonos-elements/index.esm.js +1 -0
  114. package/dist/zonos-elements/p-023c764c.system.entry.js +1 -0
  115. package/dist/zonos-elements/p-06b6ce37.system.entry.js +1 -0
  116. package/dist/zonos-elements/p-07c53d83.entry.js +1 -0
  117. package/dist/zonos-elements/{p-9aab3ad7.entry.js → p-0d5b5bcc.entry.js} +1 -1
  118. package/dist/zonos-elements/p-200b661c.entry.js +1 -0
  119. package/dist/zonos-elements/p-3b66df06.system.entry.js +1 -0
  120. package/dist/zonos-elements/{p-020a9b86.entry.js → p-3ba8838a.entry.js} +1 -1
  121. package/dist/zonos-elements/p-428c034a.entry.js +1 -0
  122. package/dist/zonos-elements/p-43b2d28d.system.entry.js +1 -0
  123. package/dist/zonos-elements/p-47a42a30.js +1 -0
  124. package/dist/zonos-elements/{p-d0bc8902.system.entry.js → p-4f72bfee.system.entry.js} +1 -1
  125. package/dist/zonos-elements/p-4fc1459c.entry.js +1 -0
  126. package/dist/zonos-elements/p-4fca8fd5.system.entry.js +1 -0
  127. package/dist/zonos-elements/{p-9e9c318b.entry.js → p-58fc8ec1.entry.js} +1 -1
  128. package/dist/zonos-elements/p-63db40b9.system.js +1 -0
  129. package/dist/zonos-elements/{p-c20e5430.entry.js → p-6cb9812b.entry.js} +1 -1
  130. package/dist/zonos-elements/p-6df1fc3a.system.entry.js +1 -0
  131. package/dist/zonos-elements/p-6f6f160d.entry.js +1 -0
  132. package/dist/zonos-elements/p-7c78e340.entry.js +1 -0
  133. package/dist/zonos-elements/p-808fa731.js +1 -0
  134. package/dist/zonos-elements/p-80f174b9.system.js +1 -0
  135. package/dist/zonos-elements/p-85f3d13f.system.js +1 -0
  136. package/dist/zonos-elements/p-8aeb0629.entry.js +1 -0
  137. package/dist/zonos-elements/p-9288fd21.system.entry.js +1 -0
  138. package/dist/zonos-elements/p-98ad4ab3.system.entry.js +1 -0
  139. package/dist/zonos-elements/p-b1567fa3.system.entry.js +1 -0
  140. package/dist/zonos-elements/p-b81562f5.entry.js +1 -0
  141. package/dist/zonos-elements/{p-96b8c9ba.system.entry.js → p-bdfa3705.system.entry.js} +1 -1
  142. package/dist/zonos-elements/p-cfae51c1.system.js +1 -0
  143. package/dist/zonos-elements/p-d6eb260c.entry.js +1 -0
  144. package/dist/zonos-elements/p-dc40a60c.entry.js +1 -0
  145. package/dist/zonos-elements/{p-3e26d7b3.system.entry.js → p-dda78e8e.system.entry.js} +1 -1
  146. package/dist/zonos-elements/p-de405d7e.system.entry.js +1 -0
  147. package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
  148. package/dist/zonos-elements/p-eaa335e1.js +1 -0
  149. package/dist/zonos-elements/{p-e13bfbda.system.entry.js → p-ed3524ae.system.entry.js} +1 -1
  150. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  151. package/package.json +4 -2
  152. package/dist/components/ILanguage.js +0 -24
  153. package/dist/components/classes.js +0 -12
  154. package/dist/components/containsNonLatinChars.js +0 -21
  155. package/dist/components/formatCurrency.js +0 -11
  156. package/dist/components/getBorderRadius.js +0 -18
  157. package/dist/components/index.d.ts +0 -33
  158. package/dist/components/index.js +0 -1
  159. package/dist/components/isCheckoutMobile.js +0 -6
  160. package/dist/components/isColorVariable.js +0 -14
  161. package/dist/components/isDarkColor.js +0 -1199
  162. package/dist/components/stripe.js +0 -1691
  163. package/dist/components/submitGtag.js +0 -19
  164. package/dist/components/trackConversionEvent.js +0 -37
  165. package/dist/components/translationStore.js +0 -5611
  166. package/dist/components/zonos-address-display.d.ts +0 -11
  167. package/dist/components/zonos-address-display.js +0 -6
  168. package/dist/components/zonos-address-display2.js +0 -64
  169. package/dist/components/zonos-address-form.d.ts +0 -11
  170. package/dist/components/zonos-address-form.js +0 -6
  171. package/dist/components/zonos-address-form2.js +0 -84
  172. package/dist/components/zonos-address-update-dialog.d.ts +0 -11
  173. package/dist/components/zonos-address-update-dialog.js +0 -6
  174. package/dist/components/zonos-address-update-dialog2.js +0 -264
  175. package/dist/components/zonos-address.d.ts +0 -11
  176. package/dist/components/zonos-address.js +0 -6
  177. package/dist/components/zonos-address2.js +0 -176
  178. package/dist/components/zonos-badge.d.ts +0 -11
  179. package/dist/components/zonos-badge.js +0 -6
  180. package/dist/components/zonos-badge2.js +0 -61
  181. package/dist/components/zonos-banner.d.ts +0 -11
  182. package/dist/components/zonos-banner.js +0 -6
  183. package/dist/components/zonos-banner2.js +0 -95
  184. package/dist/components/zonos-button.d.ts +0 -11
  185. package/dist/components/zonos-button.js +0 -6
  186. package/dist/components/zonos-button2.js +0 -186
  187. package/dist/components/zonos-card.d.ts +0 -11
  188. package/dist/components/zonos-card.js +0 -6
  189. package/dist/components/zonos-card2.js +0 -57
  190. package/dist/components/zonos-cart-items.d.ts +0 -11
  191. package/dist/components/zonos-cart-items.js +0 -6
  192. package/dist/components/zonos-cart-items2.js +0 -57
  193. package/dist/components/zonos-cart-restricted-items.d.ts +0 -11
  194. package/dist/components/zonos-cart-restricted-items.js +0 -6
  195. package/dist/components/zonos-cart-restricted-items2.js +0 -135
  196. package/dist/components/zonos-cart-subtotal.d.ts +0 -11
  197. package/dist/components/zonos-cart-subtotal.js +0 -6
  198. package/dist/components/zonos-cart-subtotal2.js +0 -91
  199. package/dist/components/zonos-checkbox.d.ts +0 -11
  200. package/dist/components/zonos-checkbox.js +0 -6
  201. package/dist/components/zonos-checkbox2.js +0 -96
  202. package/dist/components/zonos-checkout-finish.d.ts +0 -11
  203. package/dist/components/zonos-checkout-finish.js +0 -6
  204. package/dist/components/zonos-checkout-finish2.js +0 -246
  205. package/dist/components/zonos-checkout-footer.d.ts +0 -11
  206. package/dist/components/zonos-checkout-footer.js +0 -6
  207. package/dist/components/zonos-checkout-footer2.js +0 -125
  208. package/dist/components/zonos-checkout-payment.d.ts +0 -11
  209. package/dist/components/zonos-checkout-payment.js +0 -6
  210. package/dist/components/zonos-checkout-payment2.js +0 -104
  211. package/dist/components/zonos-checkout-progress-tabs.d.ts +0 -11
  212. package/dist/components/zonos-checkout-progress-tabs.js +0 -6
  213. package/dist/components/zonos-checkout-progress-tabs2.js +0 -138
  214. package/dist/components/zonos-checkout.d.ts +0 -11
  215. package/dist/components/zonos-checkout.js +0 -1051
  216. package/dist/components/zonos-collapse.d.ts +0 -11
  217. package/dist/components/zonos-collapse.js +0 -6
  218. package/dist/components/zonos-collapse2.js +0 -78
  219. package/dist/components/zonos-component.d.ts +0 -11
  220. package/dist/components/zonos-component.js +0 -48
  221. package/dist/components/zonos-confirm-dialog.d.ts +0 -11
  222. package/dist/components/zonos-confirm-dialog.js +0 -6
  223. package/dist/components/zonos-confirm-dialog2.js +0 -161
  224. package/dist/components/zonos-controller.d.ts +0 -11
  225. package/dist/components/zonos-controller.js +0 -309
  226. package/dist/components/zonos-country-flag.d.ts +0 -11
  227. package/dist/components/zonos-country-flag.js +0 -6
  228. package/dist/components/zonos-country-flag2.js +0 -54
  229. package/dist/components/zonos-country-select.d.ts +0 -11
  230. package/dist/components/zonos-country-select.js +0 -6
  231. package/dist/components/zonos-country-select2.js +0 -1891
  232. package/dist/components/zonos-custom-message.d.ts +0 -11
  233. package/dist/components/zonos-custom-message.js +0 -6
  234. package/dist/components/zonos-custom-message2.js +0 -72
  235. package/dist/components/zonos-customer-info.d.ts +0 -11
  236. package/dist/components/zonos-customer-info.js +0 -6
  237. package/dist/components/zonos-customer-info2.js +0 -316
  238. package/dist/components/zonos-dialog.d.ts +0 -11
  239. package/dist/components/zonos-dialog.js +0 -6
  240. package/dist/components/zonos-dialog2.js +0 -136
  241. package/dist/components/zonos-hello-dialog-footer.d.ts +0 -11
  242. package/dist/components/zonos-hello-dialog-footer.js +0 -6
  243. package/dist/components/zonos-hello-dialog-footer2.js +0 -83
  244. package/dist/components/zonos-hello-dialog.d.ts +0 -11
  245. package/dist/components/zonos-hello-dialog.js +0 -6
  246. package/dist/components/zonos-hello-dialog2.js +0 -305
  247. package/dist/components/zonos-hello.d.ts +0 -11
  248. package/dist/components/zonos-hello.js +0 -879
  249. package/dist/components/zonos-icon.d.ts +0 -11
  250. package/dist/components/zonos-icon.js +0 -6
  251. package/dist/components/zonos-icon2.js +0 -55
  252. package/dist/components/zonos-input.d.ts +0 -11
  253. package/dist/components/zonos-input.js +0 -6
  254. package/dist/components/zonos-input2.js +0 -78
  255. package/dist/components/zonos-language-select.d.ts +0 -11
  256. package/dist/components/zonos-language-select.js +0 -6
  257. package/dist/components/zonos-language-select2.js +0 -88
  258. package/dist/components/zonos-link-authentication.d.ts +0 -11
  259. package/dist/components/zonos-link-authentication.js +0 -6
  260. package/dist/components/zonos-link-authentication2.js +0 -80
  261. package/dist/components/zonos-link.d.ts +0 -11
  262. package/dist/components/zonos-link.js +0 -43
  263. package/dist/components/zonos-logo.d.ts +0 -11
  264. package/dist/components/zonos-logo.js +0 -49
  265. package/dist/components/zonos-notification.d.ts +0 -11
  266. package/dist/components/zonos-notification.js +0 -6
  267. package/dist/components/zonos-notification2.js +0 -92
  268. package/dist/components/zonos-payment.d.ts +0 -11
  269. package/dist/components/zonos-payment.js +0 -6
  270. package/dist/components/zonos-payment2.js +0 -77
  271. package/dist/components/zonos-review.d.ts +0 -11
  272. package/dist/components/zonos-review.js +0 -6
  273. package/dist/components/zonos-review2.js +0 -89
  274. package/dist/components/zonos-select-dialog-header.d.ts +0 -11
  275. package/dist/components/zonos-select-dialog-header.js +0 -6
  276. package/dist/components/zonos-select-dialog-header2.js +0 -71
  277. package/dist/components/zonos-shipping-rich-radio.d.ts +0 -11
  278. package/dist/components/zonos-shipping-rich-radio.js +0 -6
  279. package/dist/components/zonos-shipping-rich-radio2.js +0 -88
  280. package/dist/components/zonos-shipping.d.ts +0 -11
  281. package/dist/components/zonos-shipping.js +0 -6
  282. package/dist/components/zonos-shipping2.js +0 -159
  283. package/dist/components/zonos-spinner.d.ts +0 -11
  284. package/dist/components/zonos-spinner.js +0 -6
  285. package/dist/components/zonos-spinner2.js +0 -43
  286. package/dist/components/zonos-text.d.ts +0 -11
  287. package/dist/components/zonos-text.js +0 -6
  288. package/dist/components/zonos-text2.js +0 -182
  289. package/dist/components/zonos-tooltip.d.ts +0 -11
  290. package/dist/components/zonos-tooltip.js +0 -6
  291. package/dist/components/zonos-tooltip2.js +0 -48
  292. package/dist/components/zonos-v-stack.d.ts +0 -11
  293. package/dist/components/zonos-v-stack.js +0 -6
  294. package/dist/components/zonos-v-stack2.js +0 -38
  295. package/dist/components/zonosStore.js +0 -2881
  296. package/dist/esm-es5/cart-cc593c2b.js +0 -1
  297. package/dist/esm-es5/submitGtag-e50f903f.js +0 -1
  298. package/dist/scripts/checkIfLoadVersionDomain.js +0 -1
  299. package/dist/scripts/extractZonosQaUrl.js +0 -1
  300. package/dist/scripts/getTempCartById.js +0 -1
  301. package/dist/scripts/loadStripe.js +0 -1
  302. package/dist/scripts/stripe.js +0 -1
  303. package/dist/scripts/zonosBase.js +0 -1
  304. package/dist/zonos-elements/p-04030a48.entry.js +0 -1
  305. package/dist/zonos-elements/p-0e892292.entry.js +0 -1
  306. package/dist/zonos-elements/p-0fac99e7.entry.js +0 -1
  307. package/dist/zonos-elements/p-1795c760.system.entry.js +0 -1
  308. package/dist/zonos-elements/p-24ac1c6f.entry.js +0 -1
  309. package/dist/zonos-elements/p-26a60a6e.entry.js +0 -1
  310. package/dist/zonos-elements/p-32744531.entry.js +0 -1
  311. package/dist/zonos-elements/p-35ac375a.system.entry.js +0 -1
  312. package/dist/zonos-elements/p-3bc88c3c.system.entry.js +0 -1
  313. package/dist/zonos-elements/p-4caaaaeb.system.entry.js +0 -1
  314. package/dist/zonos-elements/p-50ea2036.system.js +0 -1
  315. package/dist/zonos-elements/p-5e783394.entry.js +0 -1
  316. package/dist/zonos-elements/p-6366e7e3.entry.js +0 -1
  317. package/dist/zonos-elements/p-7c8ee4b9.system.entry.js +0 -1
  318. package/dist/zonos-elements/p-80ea85b8.entry.js +0 -1
  319. package/dist/zonos-elements/p-8da16d53.system.js +0 -1
  320. package/dist/zonos-elements/p-98a0b694.system.entry.js +0 -1
  321. package/dist/zonos-elements/p-b98cdf39.system.entry.js +0 -1
  322. package/dist/zonos-elements/p-d7b8c1c1.system.entry.js +0 -1
  323. package/dist/zonos-elements/p-dd0fd351.entry.js +0 -1
  324. package/dist/zonos-elements/p-e015cb0e.js +0 -1
  325. package/dist/zonos-elements/p-e1fbd05d.system.entry.js +0 -1
  326. package/dist/zonos-elements/p-e553dd19.js +0 -1
  327. package/dist/zonos-elements/p-e6fa0ebc.system.js +0 -1
  328. package/dist/zonos-elements/p-f6546bf4.system.entry.js +0 -1
  329. /package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.css +0 -0
  330. /package/dist/collection/scripts/{checkIfLoadVersionDomain.js → _checkIfLoadVersionDomain.js} +0 -0
  331. /package/dist/collection/scripts/{stripe.js → _stripe.js} +0 -0
  332. /package/dist/types/components/common/{component-template/zonos-link → zonos-link}/zonos-link.d.ts +0 -0
  333. /package/dist/types/scripts/{checkIfLoadVersionDomain.d.ts → _checkIfLoadVersionDomain.d.ts} +0 -0
  334. /package/dist/types/scripts/{stripe.d.ts → _stripe.d.ts} +0 -0
@@ -3,11 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-941a31dd.js');
6
+ const cart = require('./cart-5468dfd1.js');
7
7
  const zonosStore = require('./zonosStore-7c6205ca.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
11
+ require('./logError-4e2f2020.js');
11
12
  require('./isDarkColor-b0393089.js');
12
13
  require('./getBorderRadius-bcb309a8.js');
13
14
 
@@ -4,8 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
6
  const zonosStore = require('./zonosStore-7c6205ca.js');
7
- const cart = require('./cart-941a31dd.js');
7
+ const cart = require('./cart-5468dfd1.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
+ const logError = require('./logError-4e2f2020.js');
9
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
10
11
  require('./isDarkColor-b0393089.js');
11
12
  require('./getBorderRadius-bcb309a8.js');
@@ -372,7 +373,7 @@ const checkItemRestrictions = async ({ items, shipFrom, shipTo, }) => {
372
373
  };
373
374
  const { errors, json } = await cart.handleFetch(url, { body, method: 'POST' });
374
375
  if (errors.length || !json) {
375
- cart.logError(`Error fetching item restrictions: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
376
+ logError.logError(`Error fetching item restrictions: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
376
377
  return [];
377
378
  }
378
379
  return json.filter(Boolean);
@@ -384,7 +385,7 @@ const detectItemRestrictions = async (newProducts) => {
384
385
  }
385
386
  const { selectedCountryCode } = cart.localizationStore;
386
387
  if (!selectedCountryCode) {
387
- cart.logError('Hello Could not check item restrictions - No country code selected');
388
+ logError.logError('Hello Could not check item restrictions - No country code selected');
388
389
  return [];
389
390
  }
390
391
  const items = newProducts.map(product => ({
@@ -428,7 +429,7 @@ const getProductsOnPage = () => {
428
429
  var _a, _b;
429
430
  const { productAddToCartElementSelector, productDescriptionElementSelector, productTitleElementSelector, restrictionBehavior, } = zonosStore.zonosStore.helloSettings;
430
431
  if (!productTitleElementSelector || !productDescriptionElementSelector) {
431
- cart.logError(`Hello Could not check item restrictions - must provide title and description selectors.`);
432
+ logError.logError(`Hello Could not check item restrictions - must provide title and description selectors.`);
432
433
  }
433
434
  const titleNodes = (productTitleElementSelector &&
434
435
  cart.isValidSelector(productTitleElementSelector) &&
@@ -440,7 +441,7 @@ const getProductsOnPage = () => {
440
441
  [];
441
442
  if (titleNodes.length !== descriptionNodes.length) {
442
443
  // If the title and description selectors don't match, kill item restrictions altogether
443
- cart.logError('Hello Could not check item restrictions - Title and description selectors do not match');
444
+ logError.logError('Hello Could not check item restrictions - Title and description selectors do not match');
444
445
  return [];
445
446
  }
446
447
  const shouldDisableCart = restrictionBehavior === 'RESTRICT_AND_BLOCK';
@@ -451,7 +452,7 @@ const getProductsOnPage = () => {
451
452
  [];
452
453
  if (shouldDisableCart && cartButtonNodes.length !== descriptionNodes.length) {
453
454
  // If the "add to cart" selectors don't match, log the error and continue
454
- cart.logError('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match');
455
+ logError.logError('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match');
455
456
  }
456
457
  const mergedElements = [];
457
458
  for (let i = 0; i < titleNodes.length; i++) {
@@ -634,7 +635,7 @@ const ZonosHello = class {
634
635
  // if localization is loaded and the localization is not a shippable country, keep the original click event
635
636
  if (!cart.localizationStore.isShippableCountry) {
636
637
  if (showLog) {
637
- cart.log(`Hello: not shippable country`);
638
+ logError.log(`Hello: not shippable country`);
638
639
  }
639
640
  return false;
640
641
  }
@@ -673,7 +674,7 @@ const ZonosHello = class {
673
674
  */
674
675
  async displayCurrency() {
675
676
  if (!cart.localizationStore.exchangeRate) {
676
- cart.logError('Could not display currency. Exchange rate and format data is not available.');
677
+ logError.logError('Could not display currency. Exchange rate and format data is not available.');
677
678
  return;
678
679
  }
679
680
  cart.currencyDisplay();
@@ -720,7 +721,7 @@ const ZonosHello = class {
720
721
  var _a, _b;
721
722
  const isExcludedUrl = (_a = zonosStore.zonosStore.helloSettings.excludedUrlPatterns) === null || _a === void 0 ? void 0 : _a.some(pattern => new RegExp(pattern).test(window.location.href));
722
723
  if (isExcludedUrl) {
723
- cart.log('Hello is excluded on this url', 'warn');
724
+ logError.log('Hello is excluded on this url', 'warn');
724
725
  return null;
725
726
  }
726
727
  const { selectedCountryCode } = cart.localizationStore;
@@ -27,17 +27,17 @@ const ZonosInput = class {
27
27
  this.inputChange.emit(newValue);
28
28
  }
29
29
  render() {
30
- return (index.h(index.Host, { key: 'c032eae81e9183b73ed9f12ca3397786e499d8a7', class: classes.classes([
30
+ return (index.h(index.Host, { key: 'f2bf9e34ef694f026eceed1327603659bbd4c5a4', class: classes.classes([
31
31
  'zonos--input zonos--elements',
32
32
  this.inputSize,
33
33
  this.isError && 'has-error',
34
34
  ]), style: {
35
35
  '--border-radius': getBorderRadius.getBorderRadius(),
36
36
  '--font-family': zonosStore.zonosStoreFontFamily(),
37
- } }, index.h("div", { key: '54177758c126bf8d4043cc5e3dd92f0aa6e2c838', class: classes.classes([
37
+ } }, index.h("div", { key: '0fe9066fc683f6a683c494209fa29b10c0076dc5', class: classes.classes([
38
38
  'zonos--label-wrapper',
39
39
  this.isDisabled && 'disabled',
40
- ]) }, index.h("input", { key: '10f853e84c278aa9d9a050548801ea366583836d', class: classes.classes([
40
+ ]) }, index.h("input", { key: 'f185418ddc6a83e829a9d2dd44a021288f00d4d5', class: classes.classes([
41
41
  'zonos--floated-input',
42
42
  !!this.inputLabel && 'has-label',
43
43
  this.inputValue && 'has-content',
@@ -45,7 +45,7 @@ const ZonosInput = class {
45
45
  ]), disabled: this.isDisabled, onInput: e => {
46
46
  const input = e.target;
47
47
  this.inputChange.emit(input.value);
48
- }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), index.h("label", { key: '0f9a9fcb308f4117ec0f08a07d4de8d6f5c4fb03', class: "zonos--floated-label", "data-label": this.inputLabel }))));
48
+ }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), index.h("label", { key: '3d4ab801e27af15d819b17db226f0d5f719ac903', class: "zonos--floated-label", "data-label": this.inputLabel }))));
49
49
  }
50
50
  get el() { return index.getElement(this); }
51
51
  static get watchers() { return {
@@ -16,7 +16,7 @@ const ZonosLink = class {
16
16
  this.linkTitle = undefined;
17
17
  }
18
18
  render() {
19
- return (index.h(index.Host, { key: '595aa56bf6c9503434d265b62a85a5fcbf0e7bec', class: "zonos--elements" }, index.h("a", { key: '3e355af783529c0fa77ff2c351476c92ec128ec3', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: '45607e8fa7448a96f6914270baaeab2f0d03944e' }))));
19
+ return (index.h(index.Host, { key: 'a148ed9b4d285cd39b63da348dcfcc11f4973f04', class: "zonos--elements" }, index.h("a", { key: '121b299148c4227c0b500ecb6ded03470476aa90', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, index.h("slot", { key: 'cf6637f399d3c069bd6ea3d0f3a900fd0740afc5' }))));
20
20
  }
21
21
  };
22
22
  ZonosLink.style = ZonosLinkStyle0;
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b071017b.js');
6
- const cart = require('./cart-941a31dd.js');
6
+ const cart = require('./cart-5468dfd1.js');
7
+ const logError = require('./logError-4e2f2020.js');
7
8
  require('./zonosStore-7c6205ca.js');
8
9
  require('./isDarkColor-b0393089.js');
9
10
  require('./getBorderRadius-bcb309a8.js');
@@ -29,7 +30,7 @@ const ZonosPayment = class {
29
30
  });
30
31
  const paymentElementContainer = this.el.querySelector('.zonos--payment-component');
31
32
  if (!paymentElementContainer) {
32
- cart.logError('Cannot find container element for paymentElement');
33
+ logError.logError('Cannot find container element for paymentElement');
33
34
  return;
34
35
  }
35
36
  paymentElement.mount(paymentElementContainer);
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(n,o,e,r){function t(n){return n instanceof e?n:new e((function(o){o(n)}))}return new(e||(e=Promise))((function(e,i){function s(n){try{u(r.next(n))}catch(n){i(n)}}function a(n){try{u(r["throw"](n))}catch(n){i(n)}}function u(n){n.done?e(n.value):t(n.value).then(s,a)}u((r=r.apply(n,o||[])).next())}))};var __generator=this&&this.__generator||function(n,o){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,t,i,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(n){return function(o){return u([n,o])}}function u(a){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(e=0)),e)try{if(r=1,t&&(i=a[0]&2?t["return"]:a[0]?t["throw"]||((i=t["return"])&&i.call(t),0):t.next)&&!(i=i.call(t,a[1])).done)return i;if(t=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;t=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){e.label=a[1];break}if(a[0]===6&&e.label<i[1]){e.label=i[1];i=a;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(a);break}if(i[2])e.ops.pop();e.trys.pop();continue}a=o.call(n,e)}catch(n){a=[6,n];t=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{l as log,a as logError}from"./logError-c456c092.js";var checkIfLoadVersionDomain=function(n){var o=n.loadScriptSrc;if(!o){return{currentLoadScriptUrl:"",isForceLoadVersionDomain:false,isWhiteListed:false}}var e=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"];var r=["qa.js.zonos.com"];var t=new URL(o).origin;var i=e.some((function(n){return t.includes(n)}));var s=r.some((function(n){return t.includes(n)}));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:s,isWhiteListed:i}};var extractZonosQaUrl=function(n){if(!n){return null}var o=new URL(n).searchParams;var e=o.get("zonosQaUrl");if(!e){return null}var r=/[^a-zA-Z0-9-_]+/.test(e);if(!!r){return null}return e};var getZonosQaUrl=function(){if(typeof window==="undefined"){return null}var n=extractZonosQaUrl(window.location.href);if(!n){return null}if(n==="dev-elements"){return"https://dev.elements.zonos.com:7002"}var o="preview.js.zonos.com";var e="https://".concat(n,".").concat(o);log("[ZONOS-WARNING] using '".concat(e,"' for loading script"),"warn");void fetch(e).then((function(){window.sessionStorage.removeItem("zonos--checkout-session-id");window.sessionStorage.removeItem("zonos--client-secret")})).catch((function(){alert("[ZONOS-WARNING] '".concat(e,"' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE"));var n=new URLSearchParams(window.location.search);n.delete("zonosQaUrl");var o=window.location.pathname;var r="".concat(o,"?").concat(n.toString());window.history.replaceState({},"",r);window.location.reload();return null}));return e};var V3_URL="https://js.stripe.com/v3";var V3_URL_REGEX=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;var EXISTING_SCRIPT_MESSAGE="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";var zonosStripeFindScript=function(){var n=document.querySelectorAll('script[src^="'.concat(V3_URL,'"]'));for(var o=0;o<n.length;o++){var e=n[o];if(!e){continue}if(!V3_URL_REGEX.test(e.src)){continue}return e}return null};var stripePromise$1=null;var injectScript=function(n){var o=n&&!n.advancedFraudSignals?"?advancedFraudSignals=false":"";var e=document.createElement("script");e.src="".concat(V3_URL).concat(o);var r=document.head||document.body;if(!r){logError("Expected document.body not to be null. Stripe.js requires a <body> element.");return null}r.appendChild(e);return e};var zonosStripeLoadScript=function(n){if(stripePromise$1!==null){return stripePromise$1}stripePromise$1=new Promise((function(o,e){if(typeof window==="undefined"||typeof document==="undefined"){o(null);return}if(window.Stripe&&n){console.warn(EXISTING_SCRIPT_MESSAGE)}if(window.Stripe){o(window.Stripe);return}try{var r=zonosStripeFindScript();if(r&&n){console.warn(EXISTING_SCRIPT_MESSAGE)}else if(!r){r=injectScript(n)}r===null||r===void 0?void 0:r.addEventListener("load",(function(){if(window.Stripe){o(window.Stripe)}else{e(new Error("Stripe.js not available"))}}));r===null||r===void 0?void 0:r.addEventListener("error",(function(){e(new Error("Failed to load Stripe.js"))}))}catch(n){e(n);return}}));return stripePromise$1};var registerWrapper=function(n,o){if(!n||!n._registerWrapper){return}n._registerWrapper({name:"stripe-js",startTime:o})};var initStripe=function(n,o,e){if(n===null){return null}var r=n.apply(undefined,o);registerWrapper(r,e);return r};var stripePromise=Promise.resolve().then((function(){return zonosStripeLoadScript(null)}));var loadCalled=false;stripePromise.catch((function(n){if(!loadCalled){console.warn(n)}}));var zonosLoadStripe=function(){var n=[];for(var o=0;o<arguments.length;o++){n[o]=arguments[o]}return __awaiter(void 0,void 0,void 0,(function(){var o;return __generator(this,(function(e){loadCalled=true;o=Date.now();return[2,stripePromise.then((function(e){return initStripe(e,n,o)}))]}))}))};var _a;var zonosLoadUrl=function(){if(typeof document==="undefined"){return null}var n=document.querySelector('script[src*="/zonos.js"]');var o=checkIfLoadVersionDomain({loadScriptSrc:n===null||n===void 0?void 0:n.src}),e=o.currentLoadScriptUrl,r=o.isWhiteListed;if(r){return e}return null}();var ZONOS_URL=zonosLoadUrl||"https://v1.2.3-alpha.0.js.zonos.com";var JS_DELIVR_ZONOS_URL="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.17";var INTER_FONT_URL="https://rsms.me";var GOOGLE_FONT_URL="https://fonts.googleapis.com";var INTER_FONT_REGEX=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;var Zonos=function(){function n(){}return n}();_a=Zonos;Zonos.doneInit=false;Zonos.debug=typeof window!=="undefined"&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/);Zonos.zonosConversionTest=typeof window!=="undefined"&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/);Zonos.isBigCommerce=false;Zonos.isNpm=true;Zonos.internationalHideSelector="";Zonos.zonosQaUrl=null;Zonos.version="v".concat("1.3.17");Zonos.modeAlerted=false;Zonos.tempCartData=null;Zonos.getCurrentTimestamp=function(){return(new Date).getTime()};Zonos.zonosController=null;Zonos.init=function(n){return __awaiter(void 0,[n],void 0,(function(n){var o=n.appearance,e=n.checkoutSettings,r=n.currencyConverter,t=n.helloSettings,i=n.storeId,s=n.zonosApiKey;return __generator(this,(function(n){if(_a.doneInit){return[2]}log("====== ZONOS DEBUG MODE: on (".concat(_a.version,") ======"));if(!s){logError("Missing Zonos API key");return[2]}_a.zonosApiKey=s;_a.storeId=i;log("init zonos");_a.injectSentryScript();_a.injectZonosCdn();_a.injectZonosCss();_a.injectFonts();_a.injectController({config:{appearance:o,checkoutSettings:e,currencyConverter:r,helloSettings:t},zonosApiKey:s});_a.doneInit=true;return[2]}))}))};Zonos.displayCurrency=function(){var n=document.querySelector("zonos-hello");if(n){void n.displayCurrency()}};Zonos.openHelloDialog=function(n){var o=document.querySelector("zonos-hello");if(o){void o.openHelloDialog(n!==null&&n!==void 0?n:true)}};Zonos.showNotification=function(n){var o;void((o=_a.zonosController)===null||o===void 0?void 0:o.showNotification(n))};Zonos.updateOrganizationName=function(n){var o;void((o=_a.zonosController)===null||o===void 0?void 0:o.updateOrganizationName(n))};Zonos.disablePlaceOrderButtons=function(n){var o=n.autoEnable,e=o===void 0?true:o,r=n.disable,t=n.placeOrderButtonSelector;if(t){var i=document.querySelectorAll(t);var s=function(n){var o=n.target;if(o.getAttribute("disabled")){n.preventDefault();n.stopPropagation()}};i.forEach((function(n){var o=n.getAttribute("data-zonos-checkout-attached");if(o){return}if(r){n.setAttribute("disabled","true");n.addEventListener("click",s)}else{n.removeAttribute("disabled");n.removeEventListener("click",s)}}));if(e&&r){setTimeout((function(){i.forEach((function(n){n.removeAttribute("disabled");n.removeEventListener("click",s)}))}),5e3)}}};Zonos.injectController=function(n){var o=n.config,e=n.zonosApiKey;var r;if(document.querySelector("zonos-controller")){return}if((r=o.checkoutSettings)===null||r===void 0?void 0:r.placeOrderButtonSelector){var t=o.checkoutSettings.placeOrderButtonSelector;_a.disablePlaceOrderButtons({disable:true,placeOrderButtonSelector:t});var i=new MutationObserver((function(){_a.disablePlaceOrderButtons({disable:true,placeOrderButtonSelector:t})}));i.observe(document.body,{childList:true,subtree:true})}var s=document.createElement("zonos-controller");s.config=o;s.zonosApiKey=e;s.addEventListener("stripeInitEvent",(function(n){return __awaiter(void 0,void 0,void 0,(function(){var o,e;return __generator(this,(function(r){switch(r.label){case 0:o=n.detail;log("loading Stripe");return[4,zonosLoadStripe(o.publishableKey)];case 1:e=r.sent();if(!e){logError("API seems to be invalid or missing. Failed to load Stripe");return[2]}window.Zonos.stripe=e;void s.initCheckoutElement(e);return[2]}}))}))}));document.body.appendChild(s);_a.zonosController=s;log("Zonos controller injected!")};Zonos.injectSentryScript=function(){var n="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";var o=function(){var o=document.querySelector('script[src="'.concat(n,'"]'));return!!o};if(o()){log("Sentry script already exists in the document","warn");return}var e=document.head||document.body;var r=document.createElement("script");r.crossOrigin="anonymous";r.src=n;r.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l";r.setAttribute("data-lazy","no");r.onerror=function(){logError("Failed to load ".concat(r.src))};r.onload=function(){var n;(n=window.Sentry)===null||n===void 0?void 0:n.init({beforeSend:function(n){var o,e,r,t,i,s;var a=(s=(i=(t=(r=(e=(o=n.exception)===null||o===void 0?void 0:o.values)===null||e===void 0?void 0:e[0])===null||r===void 0?void 0:r.stacktrace)===null||t===void 0?void 0:t.frames)===null||i===void 0?void 0:i[0])===null||s===void 0?void 0:s.filename;var u=(a===null||a===void 0?void 0:a.includes("js.zonos.com"))||(a===null||a===void 0?void 0:a.includes("@zonos/elements"));var l=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");if(u&&!l){return n}return null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:"zonos-elements@".concat(_a.version),tracesSampler:function(){return.01}})};e.appendChild(r)};Zonos.injectScript=function(n){var o=n.fallBackDomain,e=n.isModule,r=n.scriptDomain,t=n.theRestUrl;var i="".concat(r,"/").concat(t);var s=function(){var n=document.querySelector('script[src="'.concat(i,'"]'));return!!n};if(s()){log('Zonos script "'.concat(i,'" already exists in the document'),"warn");return}var a=document.head||document.body;var u=document.createElement("script");if(!!e){u.type="module"}else{u.noModule=true}u.src=i;u.crossOrigin="anonymous";u.onerror=function(){var n=/\/\/v\d+\./g.test(r);if(!n){log("No need to fallback since this is not a versioned domain","warn");return}if(o){_a.injectScript({isModule:e,scriptDomain:o,theRestUrl:t})}logError("Failed to load ".concat(u.src))};a.appendChild(u)};Zonos.getZonosUrl=function(){if(_a.isNpm){var n=getZonosQaUrl();return n||ZONOS_URL}return ZONOS_URL};Zonos.injectZonosCdn=function(){var n=_a.getZonosUrl();_a.injectScript({fallBackDomain:JS_DELIVR_ZONOS_URL,isModule:true,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"});_a.injectScript({fallBackDomain:JS_DELIVR_ZONOS_URL,isModule:false,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.js"});log("Zonos cdn script injected!")};Zonos.injectStylesheet=function(n){var o=n.fallBackDomain,e=n.stylesheetDomain,r=n.theRestUrl;var t=document.head||document.body;var i=document.createElement("link");i.rel="preconnect";i.href="".concat(ZONOS_URL,"/");t.appendChild(i);var s=document.createElement("link");s.rel="stylesheet";s.href="".concat(e,"/").concat(r);s.onerror=function(){var n=/\/\/v\d+\./g.test(e);if(!n){log("No need to fallback since this is not a versioned domain","warn");return}if(o&&n){_a.injectStylesheet({stylesheetDomain:o,theRestUrl:r})}logError("Failed to load ".concat(s.href))};t.appendChild(s)};Zonos.injectZonosCss=function(){var n=function(){return!!document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')};if(n()){log("Zonos style links already injected","warn");return}_a.injectStylesheet({fallBackDomain:JS_DELIVR_ZONOS_URL,stylesheetDomain:ZONOS_URL,theRestUrl:"dist/zonos-elements/zonos-elements.css"});log("Zonos style css injected!")};Zonos.injectFonts=function(){var n=function(){var n=document.querySelectorAll('link[rel="stylesheet"][href^="'.concat(INTER_FONT_URL,'"]'));for(var o=0;o<n.length;o++){var e=n[o];if(!e){continue}if(INTER_FONT_REGEX.test(e.href)){continue}return e}return null};if(n()){log("Inter font already injected","warn");return}var o=document.head||document.body;var e=document.createElement("link");e.rel="preconnect";e.href=INTER_FONT_URL;o.appendChild(e);var r=document.createElement("link");r.rel="stylesheet";r.href="".concat(INTER_FONT_URL,"/inter/inter.css");o.appendChild(r);log("Zonos font injected!")};Zonos.setupGoogleFont=function(n){var o;void((o=_a.zonosController)===null||o===void 0?void 0:o.setupGoogleFont(n))};Zonos.injectSupportGoogleFont=function(n){var o;log("[FONT] injecting ".concat(n));var e=(o=n.match(/family=(.*?):/))===null||o===void 0?void 0:o[1];var r=document.head||document.body;if(!document.querySelector('link[rel="preconnect"][href^="'.concat(GOOGLE_FONT_URL,'"]'))){var t=document.createElement("link");t.rel="preconnect";t.href=GOOGLE_FONT_URL;r.appendChild(t)}if(document.querySelector('link[rel="stylesheet"][href="'.concat(n,'"]'))){log("[FONT] ".concat(e," font already injected"),"warn");return}var i=document.createElement("link");i.rel="stylesheet";i.href=n;r.appendChild(i);log("[FONT] ".concat(e," font injected!"))};export{Zonos};
@@ -2,7 +2,7 @@ import { readFileSync } from "fs";
2
2
  export const urlCheckOne = async ({ branch, filePath, packageVersion, }) => {
3
3
  const majorVersion = packageVersion === null || packageVersion === void 0 ? void 0 : packageVersion.split('.')[0];
4
4
  const fileContent = readFileSync(filePath, { encoding: 'utf-8' });
5
- const zonosUrlRegexResult = fileContent.matchAll(/https:\/\/.*?(.js.zonos.com)/g);
5
+ const zonosUrlRegexResult = fileContent.matchAll(/https:\/\/[a-zA-Z0-9-\.]+?(.js.zonos.com)/g);
6
6
  if (!zonosUrlRegexResult) {
7
7
  return Promise.resolve(false);
8
8
  }
@@ -17,7 +17,6 @@
17
17
  "components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js",
18
18
  "components/checkout/zonos-checkout/zonos-review/zonos-review.js",
19
19
  "components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js",
20
- "components/common/component-template/zonos-link/zonos-link.js",
21
20
  "components/common/zonos-badge/zonos-badge.js",
22
21
  "components/common/zonos-button/zonos-button.js",
23
22
  "components/common/zonos-card/zonos-card.js",
@@ -32,6 +31,7 @@
32
31
  "components/common/zonos-icon/zonos-icon.js",
33
32
  "components/common/zonos-input/zonos-input.js",
34
33
  "components/common/zonos-language-select/zonos-language-select.js",
34
+ "components/common/zonos-link/zonos-link.js",
35
35
  "components/common/zonos-logo/zonos-logo.js",
36
36
  "components/common/zonos-select-dialog-header/zonos-select-dialog-header.js",
37
37
  "components/common/zonos-text/zonos-text.js",
@@ -156,11 +156,11 @@ export class ZonosCheckoutFinish {
156
156
  // const totalItems = this.order?.items?.reduce((acc, item) => {
157
157
  // return acc + item.quantity;
158
158
  // }, 0);
159
- return (h(Host, { key: '5ff65f7e0c06f41df8aae634bdfc5d6c249066e3', class: "zonos--checkout-finish zonos--elements", style: {
159
+ return (h(Host, { key: '1e4627e936e0508761c12d842523adb51d3c797e', class: "zonos--checkout-finish zonos--elements", style: {
160
160
  '--border-radius': getBorderRadius({
161
161
  overrideBorderStyle: this.borderRadius,
162
162
  }),
163
- } }, this.isLoading && (h("div", { key: '90a55566440c372885ecfd0d4ec1ceaca61d5169', class: "loading-wrapper" }, h("zonos-spinner", { key: '814fcab377f26107b42d431a9bd89cb415ea2aba' }))), !this.isLoading && (h(Fragment, null, h("div", { key: '5f0af17eadfad44a28b7a3cab861630aab10ea46', 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: 'cb98643270b2faf2522437d653251b7a1b520d8c', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '24b040b053da852c0e6d9e76532647d7f4ec3d7a' }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '664c02f338ef2020fed645c759cfa70fcd1edb97', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
163
+ } }, this.isLoading && (h("div", { key: '4d3be87aec252946c5b6fb516c882830232a83e5', class: "loading-wrapper" }, h("zonos-spinner", { key: '25e9bafaaebed75582efd936c57121921c8f2f8a' }))), !this.isLoading && (h(Fragment, null, h("div", { key: '49c211db17af433b3936e69722c3c76c9197c170', 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: '4cb90069dcf385886cb9235ee0854d63781e4452', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '8e16be3b15d7fba7b697ba9ed41332c9794f3551' }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: 'e1bfacd92d36c303defc464c7eaf10b8853175c1', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
164
164
  }
165
165
  static get is() { return "zonos-checkout-finish"; }
166
166
  static get encapsulation() { return "shadow"; }
@@ -228,14 +228,9 @@ export class ZonosCheckoutFinish {
228
228
  "type": "unknown",
229
229
  "mutable": false,
230
230
  "complexType": {
231
- "original": "OverrideNotification",
231
+ "original": "{\n messages: string[];\n title: string;\n type: 'success' | 'error';\n }",
232
232
  "resolved": "undefined | { messages: string[]; title: string; type: \"error\" | \"success\"; }",
233
- "references": {
234
- "OverrideNotification": {
235
- "location": "global",
236
- "id": "global::OverrideNotification"
237
- }
238
- }
233
+ "references": {}
239
234
  },
240
235
  "required": false,
241
236
  "optional": true,
@@ -602,13 +602,13 @@ export class ZonosCheckout {
602
602
  "type": "unknown",
603
603
  "mutable": false,
604
604
  "complexType": {
605
- "original": "ContactOption | null",
605
+ "original": "StripeStoreContactOption | null",
606
606
  "resolved": "null | { address: { city: string; country: string; line1: string; line2?: string | undefined; postal_code: string; state: string; }; email: string; name: string; phone?: string | undefined; }",
607
607
  "references": {
608
- "ContactOption": {
608
+ "StripeStoreContactOption": {
609
609
  "location": "import",
610
610
  "path": "src/components/store/checkout/stripe",
611
- "id": "src/components/store/checkout/stripe.ts::ContactOption"
611
+ "id": "src/components/store/checkout/stripe.ts::StripeStoreContactOption"
612
612
  }
613
613
  }
614
614
  },
@@ -279,13 +279,13 @@ export class ZonosCustomerInfo {
279
279
  "type": "unknown",
280
280
  "mutable": false,
281
281
  "complexType": {
282
- "original": "ContactOption | null",
282
+ "original": "StripeStoreContactOption | null",
283
283
  "resolved": "null | { address: { city: string; country: string; line1: string; line2?: string | undefined; postal_code: string; state: string; }; email: string; name: string; phone?: string | undefined; }",
284
284
  "references": {
285
- "ContactOption": {
285
+ "StripeStoreContactOption": {
286
286
  "location": "import",
287
287
  "path": "src/components/store/checkout/stripe",
288
- "id": "src/components/store/checkout/stripe.ts::ContactOption"
288
+ "id": "src/components/store/checkout/stripe.ts::StripeStoreContactOption"
289
289
  }
290
290
  }
291
291
  },
@@ -11,16 +11,16 @@ export class ZonosBadge {
11
11
  this.rounded = false;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: 'c68ba6ef2bcb35c94ecf2b11379be748aa998198', class: classes(['zonos--elements zonos--badge']), style: {
14
+ return (h(Host, { key: '6abf1f29bb6368710b45414baca9643421de2643', class: classes(['zonos--elements zonos--badge']), style: {
15
15
  '--font-family': zonosStoreFontFamily(),
16
- } }, h("div", { key: '7f200effb42296a21829c292101ef3300b041327', class: classes([
16
+ } }, h("div", { key: 'fb0b246a59f0350313673d4430ac4f2bcd9d6b80', class: classes([
17
17
  'zonos--badge-content',
18
18
  this.badgeColor,
19
19
  this.rounded && 'rounded',
20
20
  this.iconRight && 'icon-right',
21
21
  this.size,
22
22
  this.bold && 'bold',
23
- ]) }, this.icon, h("zonos-text", { key: '4358e95cb29ec6a82e32213b268612aadf8772c6' }, h("slot", { key: 'ab76831e3691a896179e06896d33ed771e4bbdf9' })))));
23
+ ]) }, this.icon, h("zonos-text", { key: '2d6024af48ce0e082d3a1332794978cfd42793d6' }, h("slot", { key: '9cb7e771b0a949b912c6fa5946018cbf072ed018' })))));
24
24
  }
25
25
  static get is() { return "zonos-badge"; }
26
26
  static get encapsulation() { return "shadow"; }
@@ -84,12 +84,12 @@ export class ZonosButton {
84
84
  const spinnerColor = backgroundActualColor && isDarkColor(backgroundActualColor)
85
85
  ? 'white'
86
86
  : 'black';
87
- return (h(Host, { key: '6e361b1a80fd43a72a99a8201ca5d7cb86404656', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
87
+ return (h(Host, { key: '00d085d600a759366f4a2de8617d81831c0ce16b', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
88
88
  '--background-color': overrideBackground,
89
89
  '--border-radius': borderStyle,
90
90
  '--color': contrastColor,
91
91
  '--font-family': zonosStoreFontFamily(),
92
- }) }, h("button", { key: 'fd4335b2d9bfe74b509f1355fa620dc4c53f58c6', class: classes([
92
+ }) }, h("button", { key: 'b79ffdb0212630598e95f07059bb3b41049cff47', class: classes([
93
93
  this.hasIcon && 'has-icon',
94
94
  this.hasContent && 'has-content',
95
95
  this.noBackground && 'no-background',
@@ -103,7 +103,7 @@ export class ZonosButton {
103
103
  overrideBackground &&
104
104
  variant === 'standard' &&
105
105
  'override-background',
106
- ]), disabled: disabled }, this.loading && (h("div", { key: '7b37a1d30604de0d9e1f5d07bf6034724dcd8875', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'e4e3cbda9ae02c2ac9a7c17767bda93076ea67ad', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'e9b7287f2c4d9143f04103fe43d3f4dfd669341e', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
106
+ ]), disabled: disabled }, this.loading && (h("div", { key: '4462430185736b45b11bd18f08d1e3c6177f192f', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'c866ff989b95929e8d6a44d950dc943531f1dc0c', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'a57d0b3924eef51bf3938261c8d823e9d8aa0206', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
107
107
  }
108
108
  static get is() { return "zonos-button"; }
109
109
  static get encapsulation() { return "shadow"; }
@@ -12,12 +12,12 @@ export class ZonosCard {
12
12
  this.spacing = '24px';
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '206169280db67be5e74382c5beccfad87ec9068a', style: {
15
+ return (h(Host, { key: '0e52ca31db6c2f956da1910d6e0a222b588c1bcc', style: {
16
16
  '--font-family': zonosStoreFontFamily(),
17
- } }, h("div", { key: '4a1c7eab9b5420295ce3ec30cfd59985be35d912', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { key: '75454e5d9eacdfdf842a9a220deab467625e497b', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: 'bc9c7d3500cef41237dbe53f27ab398103be55dd', type: "subheader" }, this.label), h("h-stack", { key: '29d68a483bfc61ddfb9deeb63272a8221759513c', spacing: 8 }, this.actions))), h("slot", { key: '0ad416c6cdb0b1fc2c922b8569cf35a4009263cc' }), (this.footerActions || this.footerContent) && (h("footer", { key: '469110ce0f0f81cbee4ef67e79d3be17933bcf2e', class: "card-footer", style: {
17
+ } }, h("div", { key: '69f391d821f88cbee4b0c586a8323b1dd68d7fd3', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { key: '4568a1d7c354830e6e65e31b20b38140aaab9d01', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: 'e0a6b7a3776916f8208c27373878041807d91960', type: "subheader" }, this.label), h("h-stack", { key: 'c5f8d01b2f477b16ab9387081987eae64b156e76', spacing: 8 }, this.actions))), h("slot", { key: '6001acfaae8ba37456a7c23bae5c44a91da074f9' }), (this.footerActions || this.footerContent) && (h("footer", { key: '78b926a323a5f1375c8120d5aa8b1ab2a4f3fa4a', class: "card-footer", style: {
18
18
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
19
19
  padding: this.spacing,
20
- } }, h("div", { key: '9044d9f3c81935119f668deb188f16cb1cb243bb' }, this.footerContent), h("h-stack", { key: '3f258ed6b07b8973b0bf753c7ab6427d67bf210c', spacing: 8 }, this.footerActions))))));
20
+ } }, h("div", { key: '2bd0c86b75096c2ee786d4a9b16a3d6e385fbbf1' }, this.footerContent), h("h-stack", { key: '7a3f840ac9678a905338a99b8327115bc8199789', spacing: 8 }, this.footerActions))))));
21
21
  }
22
22
  static get is() { return "zonos-card"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -36,14 +36,14 @@ export class ZonosCheckbox {
36
36
  customRoundRadius: '4px',
37
37
  overrideBorderStyle: this.borderStyle,
38
38
  });
39
- return (h(Host, { key: 'be29586ffd5ae5227614622cfb402686ff5e0583', class: classes(['zonos--elements zonos--checkbox']), style: {
39
+ return (h(Host, { key: '8a1adb8ba23d34a7730e5b5a81bc6b5ada58cb83', class: classes(['zonos--elements zonos--checkbox']), style: {
40
40
  '--background-color': backgroundColor,
41
41
  '--border-radius': borderStyle,
42
42
  '--font-family': zonosStoreFontFamily(),
43
43
  '--size': `${this.size}px`,
44
- } }, h("label", { key: '091c2388668a94962d7b2bde4496856805f675e8', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'c0f66d11f63591b03631cb1c970c0db201d435e2', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
44
+ } }, h("label", { key: 'e954bcef9e021bfbb98031f030542a89d8faf0f3', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: '17788f6c205a139dde1b42cc91579d0975233e77', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
45
45
  this.checkboxSelected.emit(e.target.checked);
46
- }, type: "checkbox" }), h("span", { key: 'ab6c4847d006a812829bd8e871520455da91c7b0', class: "checkmark-container" }, h("svg", { key: '617693bef302910db463cdf95b10700b72ea8d44', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '410728b7d5edf27966e660e598f166ce8292015e', "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: '1b9a21e7ef15ad34684453bc25cb3744ba183cd0', size: this.fontSize }, this.label)))));
46
+ }, type: "checkbox" }), h("span", { key: '589486a19b7b0b42ce8eabd2230a8b4620ca3216', class: "checkmark-container" }, h("svg", { key: 'd56ce06c20e0c3460b6222d323d0a17059147157', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5e6af8d520bcb7c3b0fe2891ce0c2e783976b501', "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: '18c5a586756ddc0808c05f305c89dbb07f1b7d16', size: this.fontSize }, this.label)))));
47
47
  }
48
48
  static get is() { return "zonos-checkbox"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -63,17 +63,17 @@ export class ZonosCheckoutProgressTabs {
63
63
  color: labelSelectedColor,
64
64
  })
65
65
  : labelSelectedColor;
66
- return (h(Host, { key: '5079903c5c31395bc5c92a4542d1f7ae78dc34b2', class: "zonos--elements", style: {
66
+ return (h(Host, { key: '1c51be111b22f45ad33d430dc4d0a250f8e4d911', class: "zonos--elements", style: {
67
67
  '--color': contrastLabelColor,
68
68
  '--progress-percent': this.getTotalSuccessStep(),
69
- } }, h("div", { key: 'fabfe8836c827910907c4bceb6f99d65492b440b', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
69
+ } }, h("div", { key: '01e24d42123318aa23982e742b5f2053f5b5392d', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
70
70
  const isSelected = tab.value === selectedStep;
71
71
  return (h("button", { class: classes([
72
72
  'zonos--tab-item',
73
73
  tab.value === selectedStep && 'selected',
74
74
  tab.isDone && 'done',
75
75
  ]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cartStore.step = tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1200', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1200' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1200', type: "label" }, translate(tab.label))));
76
- })), h("div", { key: 'cfb1c57fadb793f5db34d02e48f3fe4c3a93a043', class: "zonos--tab-progress" }, h("div", { key: 'd02dd1cc3a5e5b7bc8395038e1cd75cb07104072', class: "zonos--progress-bar-fill" }))));
76
+ })), h("div", { key: '55832cb123f7efa019ccddfe6bd82938d9f02206', class: "zonos--tab-progress" }, h("div", { key: '15fd9749c64530f09854a297cbc35fe97d3398e3', class: "zonos--progress-bar-fill" }))));
77
77
  }
78
78
  static get is() { return "zonos-checkout-progress-tabs"; }
79
79
  static get encapsulation() { return "shadow"; }
@@ -42,10 +42,10 @@ export class ZonosCollapse {
42
42
  // set overflow to hidden to prevent content from showing when collapsed
43
43
  this.el.style.overflow = 'hidden';
44
44
  }
45
- return (h(Host, { key: '514e75d41d29d70b4ca60230288ae183200b1e12', class: 'zonos--elements zonos--collapse', style: {
45
+ return (h(Host, { key: 'c268257dcef8e8def5e34bf5b3ea432136c06d6a', class: 'zonos--elements zonos--collapse', style: {
46
46
  '--font-family': zonosStoreFontFamily(),
47
47
  height: this.getElementHeight(),
48
- } }, h("div", { key: '068aee1d13bde4c83ea8582b34844da7452c907c' }, h("iframe", { key: 'b22fd8ad898a098c244cb817dc6951854505efca', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'b54783376005085e379c7b8d43218ead1bf8e8ac' }))));
48
+ } }, h("div", { key: 'ea4abe6a03ffed6f4fd1248e668d123c1a8cef77' }, h("iframe", { key: 'dc010404892272fece7a913149e75171bb6e786c', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'c9dc7dd83363211d249ee417111f3a36057f0af0' }))));
49
49
  }
50
50
  static get is() { return "zonos-collapse"; }
51
51
  static get encapsulation() { return "shadow"; }
@@ -81,12 +81,12 @@ export class ZonosConfirmDialog {
81
81
  const borderStyle = getBorderRadius();
82
82
  // Get theme for the update dialog, inherit from the theme, no from this component theme
83
83
  const theme = getZonosStoreTheme(zonosStore.appearance.theme);
84
- return (h(Host, { key: '9adab1c77e8087cfbb92a52e66d12f1b1917bf7e', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-theme": theme, style: {
84
+ return (h(Host, { key: 'e52030ffc052c699daa87c5b62ee8b44ddad7f7f', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-theme": theme, style: {
85
85
  '--border-radius': borderStyle,
86
86
  '--font-family': zonosStoreFontFamily(),
87
- } }, h("div", { key: 'c5b40120ff7b3c4684eb65fb5ef6f8ffa157f98f', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'c7cf4d2839cb42a064b4303bdefdfe4fed116b2a', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '30256495401f4967371e923055dfe9efed8cb6b7', class: "zonos--confirm-dialog", onBlur: () => {
87
+ } }, h("div", { key: 'a34d31946f198b2593f142b582aec18f69fe74c5', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '2f3dfa27dfbfbc4080eb710dd3db530521b63d36', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '8f61424a8899c81f9510deda0adc3ff3e2da102b', class: "zonos--confirm-dialog", onBlur: () => {
88
88
  this.focusDialog();
89
- } }, h("div", { key: '6121ab29b80d233f9ca47aaf66725fe91ae6827c', class: "wrapper" }, h("div", { key: '8fbb75eca3ee163b57c60159d5c5374382f3fa33', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '56376add713778af1df087c0f9f4b8d90065caa2', class: "content" }, h("div", { key: '4f31ad7d42127c5350a64b86ae12fde42a350422', class: "title" }, h("zonos-text", { key: '7a5dc82d3f2250c1b3a3403e116736cedcf63f51', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '87b04af2b1984a8cf205b6fa0acf0320f56342e7', class: "subtitle" }, h("zonos-text", { key: '53d0157655b1d8193a0f698e41442b676d9e0ca6', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '4b410f4a4079a25549bef228c3b9a81a64fe20e2', class: "footer" }, h("zonos-button", { key: '5a8ffb99756bd142605c564df381bfb9e72d5d78', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText), h("zonos-button", { key: '61c2b8272202f316ec09441ab64428c557073c9d', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
89
+ } }, h("div", { key: '2fca3f071d7f9d2af628d909770bb12a3acabfe2', class: "wrapper" }, h("div", { key: 'fed312e492a9fcac175a9cac7501255aeb975c10', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '131651e201a8d6b2ee9e0c82bd1990bc9a8dc702', class: "content" }, h("div", { key: 'a42e1a9271bdfb9fba133e9af330bdb8b16be230', class: "title" }, h("zonos-text", { key: '91461b9e572e3eb0e6e8616612cce56cf723678f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'fde989f7ef37692173c1476b5cfd98f6cc71bb6e', class: "subtitle" }, h("zonos-text", { key: '2e273099ff036b1aa62bba923fff696d1d291867', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '3b7f50adf490388feb759f2e09a626ece5f29c20', class: "footer" }, h("zonos-button", { key: '9686f10d831470273543cf3b5217a8e59bb5160a', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText), h("zonos-button", { key: '3781a86d62efe11e8dc08886e3b4ad885c64776a', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
90
90
  }
91
91
  static get is() { return "zonos-confirm-dialog"; }
92
92
  static get encapsulation() { return "shadow"; }
@@ -35,9 +35,9 @@ export class ZonosCountrySelect {
35
35
  const filteredCountries = this.inputValue
36
36
  ? fuseObject.map(country => country.item)
37
37
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
38
- return (h(Host, { key: '67675ff9b37f110026ced223509104eb8ad805c0', class: "zonos--elements", style: {
38
+ return (h(Host, { key: '36b388d67c25bfe93dee6a7fd3c444ce0764c832', class: "zonos--elements", style: {
39
39
  '--font-family': zonosStoreFontFamily(),
40
- } }, h("div", { key: '83d69dde89f0fafadf344ca0be017f43c468f154', class: "zonos--country-select" }, h("zonos-v-stack", { key: '8262345817217ba3f27ecf433ff56712b8018ae7', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '80ef94a9a2b1d7bdd835a9b31b09663f28b0532a', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: 'd3151d1287ee98b697e35f1f755694b250f089a3', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: 'f98ff12368e49125f7fc2409f84bcbaef2143809', class: "zonos--country-select-content" }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--country-flag", countryCode: country.code }), h("zonos-text", { textColor: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
40
+ } }, h("div", { key: '80c2a2b8a38f5183c583a240b4702fe234df58e9', class: "zonos--country-select" }, h("zonos-v-stack", { key: 'fee57e283cc49f7b1d48cb6564003d77a75f02a6', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '030338d8bc4f52c0bf4fbcdef1415321f59de05b', handleOnClose: () => this.handleOnClose(), label: "Select a country" }, h("input", { key: '855653189b575ad697b9b90cb733ef912e7f2b83', class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: "Search countries", value: this.inputValue }))), h("div", { key: '353bf39d18d2aad7c2f4096592c6e13572bc5a16', class: "zonos--country-select-content" }, filteredCountries.map(country => (h("button", { class: "zonos--country-select-country", onClick: () => this.countrySelected(country.code) }, h("zonos-country-flag", { class: "zonos--country-flag", countryCode: country.code }), h("zonos-text", { textColor: "gray-800" }, country.displayName), country.code === localizationStore.selectedCountryCode && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 20 })))))))));
41
41
  }
42
42
  static get is() { return "zonos-country-select"; }
43
43
  static get encapsulation() { return "shadow"; }
@@ -8,9 +8,9 @@ export class ZonosCustomMessage {
8
8
  }
9
9
  render() {
10
10
  const messageWithLinks = formatStringWithLinks(this.message);
11
- return (h(Host, { key: '7d3c45852c97272a3606321dad09c6433dfc664c', class: "zonos--elements", style: {
11
+ return (h(Host, { key: 'a0c9c81f42cc74f53f497ea37d9f1fcfe2853c25', class: "zonos--elements", style: {
12
12
  '--font-family': zonosStoreFontFamily(),
13
- } }, this.message && (h("zonos-card", { key: '53b64b2faea9d06fd66365f80efe3b9d26aab5b6', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '2bfc437f100084a1e661bf823e20be72a0ab616d', class: "zonos--flex-message" }, h("zonos-icon", { key: '5c0f5da248ddb25a69a3db46b85e8e0e4d481101', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'aabbcc00b1b50d29a3e6f48938b50c7b64d250dc', innerHTML: messageWithLinks }))))));
13
+ } }, this.message && (h("zonos-card", { key: '334b1d76339667cd873d966b069429b9a2c08249', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: 'c3a72d8c248acc2ac36b45d5afe0c69428eb1a75', class: "zonos--flex-message" }, h("zonos-icon", { key: 'c8ca45558e2dc0e389a0fb99943b81dfd0328f3e', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: '9a1ce78aba237d325a0b3d1c61b62ca4f3b89c18', innerHTML: messageWithLinks }))))));
14
14
  }
15
15
  static get is() { return "zonos-custom-message"; }
16
16
  static get encapsulation() { return "shadow"; }
@@ -59,7 +59,7 @@ export class ZonosDialog {
59
59
  const borderStyle = getBorderRadius({
60
60
  overrideBorderStyle: this.borderStyle,
61
61
  });
62
- return (h(Host, { key: 'b27bdee33f67e2209dfbd9621b95633f4af726b2', class: classes([
62
+ return (h(Host, { key: 'fe812c0c5a81b0b09ad6e0b554d036711e12c0ed', class: classes([
63
63
  'zonos--elements',
64
64
  this.open && 'open',
65
65
  this.isLoading && 'is-loading',
@@ -71,10 +71,10 @@ export class ZonosDialog {
71
71
  '--height': this.height || 'initial',
72
72
  '--min-height': this.minHeight || '500px',
73
73
  '--width': this.width,
74
- } }, h("div", { key: 'ca94e3347d10460973663685d9b8c0048418cb86', class: "zonos--backdrop" }), h("div", { key: 'e766937dc1899141ed7beb07e9f13a60066880a1', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: '41c43bb5cf011a3a810c6116c4300ad7a713c787', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '5ca28c9f3b1f6f0742484ef5414ba60f16e1faa7', class: "zonos--loading" }, h("zonos-spinner", { key: 'e0131cd9fd3fa7a9c502e7a55b75b8c76be86fc3', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '2ef2237cb4518980eb3a5c97cc1a1ea2c87444be', class: "zonos--header" }, this.headerText && (h("h3", { key: '751e1be4417cc733dffa8a683d3f4c8774ee83f5', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '720f9250c88e0097d839276ab0d2319e31fc170b', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), h("div", { key: 'd64547b7d802a4b14e64454ae329dbb6d88f1cfd', class: classes([
74
+ } }, h("div", { key: 'aaa10008c2eecf00efc29124448d2cbc8567f440', class: "zonos--backdrop" }), h("div", { key: 'b45a8f56ed413a7cb935d84b342d2ac50812ba6b', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: '80d2312742cfa766e171f1e3d79aba9df26bcba5', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'f35bfdd001b0687d683b7d416c812035bd1bcb10', class: "zonos--loading" }, h("zonos-spinner", { key: 'df7e9af43340ce3e1ca66126c0d68a6950cad9e7', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '8248f4104881ee8c3d3202b1bbc07f7b969d86f5', class: "zonos--header" }, this.headerText && (h("h3", { key: '88620497b42f82f122b8e1c675490e566da27af6', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '9b17424799dbb772b51a87f246285642ec621f0b', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), h("div", { key: '904ba64d8c82826baffed469f5b09ef7189c4aff', class: classes([
75
75
  'zonos--body',
76
76
  this.noBodyPadding && 'zonos--no-body-padding',
77
- ]) }, h("slot", { key: '96d1683414cc4a947a36c6ae28e5afb781be4dae' })), h("slot", { key: '06b8ff1ad17f74e28fc4980fbc4594dde5e4573f', name: "dialog-footer" })))));
77
+ ]) }, h("slot", { key: '24f85c3c84100217db0866a10d6f3443b64c39d2' })), h("slot", { key: 'aabf202487d080a8277aeb641b602cf507a39061', name: "dialog-footer" })))));
78
78
  }
79
79
  static get is() { return "zonos-dialog"; }
80
80
  static get encapsulation() { return "shadow"; }
@@ -17,17 +17,17 @@ export class ZonosInput {
17
17
  this.inputChange.emit(newValue);
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: 'c032eae81e9183b73ed9f12ca3397786e499d8a7', class: classes([
20
+ return (h(Host, { key: 'f2bf9e34ef694f026eceed1327603659bbd4c5a4', class: classes([
21
21
  'zonos--input zonos--elements',
22
22
  this.inputSize,
23
23
  this.isError && 'has-error',
24
24
  ]), style: {
25
25
  '--border-radius': getBorderRadius(),
26
26
  '--font-family': zonosStoreFontFamily(),
27
- } }, h("div", { key: '54177758c126bf8d4043cc5e3dd92f0aa6e2c838', class: classes([
27
+ } }, h("div", { key: '0fe9066fc683f6a683c494209fa29b10c0076dc5', class: classes([
28
28
  'zonos--label-wrapper',
29
29
  this.isDisabled && 'disabled',
30
- ]) }, h("input", { key: '10f853e84c278aa9d9a050548801ea366583836d', class: classes([
30
+ ]) }, h("input", { key: 'f185418ddc6a83e829a9d2dd44a021288f00d4d5', class: classes([
31
31
  'zonos--floated-input',
32
32
  !!this.inputLabel && 'has-label',
33
33
  this.inputValue && 'has-content',
@@ -35,7 +35,7 @@ export class ZonosInput {
35
35
  ]), disabled: this.isDisabled, onInput: e => {
36
36
  const input = e.target;
37
37
  this.inputChange.emit(input.value);
38
- }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '0f9a9fcb308f4117ec0f08a07d4de8d6f5c4fb03', class: "zonos--floated-label", "data-label": this.inputLabel }))));
38
+ }, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '3d4ab801e27af15d819b17db226f0d5f719ac903', class: "zonos--floated-label", "data-label": this.inputLabel }))));
39
39
  }
40
40
  static get is() { return "zonos-input"; }
41
41
  static get encapsulation() { return "shadow"; }
@@ -16,9 +16,9 @@ export class ZonosLanguageSelect {
16
16
  }
17
17
  render() {
18
18
  const { selectedLocale } = localizationStore;
19
- return (h(Host, { key: 'e719b6e5e5d52ec572525ba02c78989bfe6c6b91', class: "zonos--elements", style: {
19
+ return (h(Host, { key: '34580123b768ce983c0c9c6fa309bdb1d6756a5a', class: "zonos--elements", style: {
20
20
  '--font-family': zonosStoreFontFamily(),
21
- } }, h("div", { key: '5a2d7fe751fe92455f7e56bf02360ef9992baffb', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: 'b37d91ffc91949aac8dda2d2ec94acbdfadfcdf4', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '881a00e8bd3e4358a5c1784bd957a81917863134', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
21
+ } }, h("div", { key: '6e86352a45b5d9ad0e5ed5dac330367a49a6c6fe', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: 'd5b55cbb2858a2c0a6aa6ce0ea0d50eecc7360e8', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: 'c9aeb075428357c4cb15d9a2b09df7c8d6b01b11', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
22
22
  }
23
23
  static get is() { return "zonos-language-select"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -7,7 +7,7 @@ export class ZonosLink {
7
7
  this.linkTitle = undefined;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: '595aa56bf6c9503434d265b62a85a5fcbf0e7bec', class: "zonos--elements" }, h("a", { key: '3e355af783529c0fa77ff2c351476c92ec128ec3', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '45607e8fa7448a96f6914270baaeab2f0d03944e' }))));
10
+ return (h(Host, { key: 'a148ed9b4d285cd39b63da348dcfcc11f4973f04', class: "zonos--elements" }, h("a", { key: '121b299148c4227c0b500ecb6ded03470476aa90', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: 'cf6637f399d3c069bd6ea3d0f3a900fd0740afc5' }))));
11
11
  }
12
12
  static get is() { return "zonos-link"; }
13
13
  static get encapsulation() { return "shadow"; }