@zonos/elements 1.3.18-alpha.1 → 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 (461) hide show
  1. package/README.md +341 -96
  2. package/dist/cjs/{cart-95209ae8.js → cart-5468dfd1.js} +284 -89
  3. package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
  4. package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
  5. package/dist/cjs/index.cjs.js +624 -0
  6. package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/logError-4e2f2020.js +58 -0
  9. package/dist/cjs/{submitGtag-9d60f3bb.js → submitGtag-127a220f.js} +4 -3
  10. package/dist/cjs/zonos-address_8.cjs.entry.js +30 -18
  11. package/dist/cjs/zonos-badge_2.cjs.entry.js +7 -7
  12. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
  14. package/dist/cjs/zonos-card_2.cjs.entry.js +11 -10
  15. package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +118 -11
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +47 -20
  17. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-controller.cjs.entry.js +29 -24
  19. package/dist/cjs/zonos-country-flag.cjs.entry.js +6 -5
  20. package/dist/cjs/zonos-country-select_3.cjs.entry.js +12 -11
  21. package/dist/cjs/zonos-elements.cjs.js +2 -2
  22. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -8
  23. package/dist/cjs/zonos-hello.cjs.entry.js +14 -13
  24. package/dist/cjs/zonos-input.cjs.entry.js +7 -7
  25. package/dist/cjs/zonos-link.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-payment.cjs.entry.js +8 -7
  29. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
  30. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  31. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  32. package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
  33. package/dist/collection/__mocks__/zonos-url/index.js +1 -0
  34. package/dist/collection/__tests__/build-utils/urlCheckOne.js +1 -1
  35. package/dist/collection/collection-manifest.json +2 -1
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -9
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +45 -8
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +3 -3
  39. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  40. package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
  41. package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
  42. package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
  43. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  44. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  45. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  46. package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  47. package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
  48. package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
  49. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
  50. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
  51. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  52. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  53. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
  54. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
  55. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  56. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  57. package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.js +1 -1
  58. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  59. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  60. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  61. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  62. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  63. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  64. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
  65. package/dist/collection/components/main/zonos-controller.js +12 -8
  66. package/dist/collection/components/store/hello/localization.js +12 -2
  67. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  68. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  69. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  70. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  71. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  72. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  73. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  74. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  75. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  76. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  77. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  78. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  79. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  80. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  81. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  82. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  83. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  84. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  85. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  86. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  87. package/dist/collection/components/store/zonosStore.js +1 -0
  88. package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -3
  89. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  90. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  91. package/dist/collection/environment.js +0 -2
  92. package/dist/collection/index.js +1 -0
  93. package/dist/collection/scripts/_extractZonosQaUrl.js +26 -0
  94. package/dist/collection/scripts/_getZonosQaUrl.js +40 -0
  95. package/dist/collection/scripts/{loadStripe.js → _loadStripe.js} +1 -1
  96. package/dist/collection/scripts/{zonosBase.js → _zonosBase.js} +31 -7
  97. package/dist/collection/scripts/index.js +2 -0
  98. package/dist/collection/types/generated/graphql.customer.types.js +1 -0
  99. package/dist/collection/types/generated/graphql.frontend.types.js +1 -0
  100. package/dist/esm/{cart-6448e883.js → cart-63d120e1.js} +257 -60
  101. package/dist/{components/getBorderRadius.js → esm/getBorderRadius-d244b4b1.js} +1 -1
  102. package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
  103. package/dist/esm/index.js +621 -0
  104. package/dist/{components/isDarkColor.js → esm/isDarkColor-39a36e82.js} +1 -1
  105. package/dist/esm/loader.js +3 -3
  106. package/dist/esm/logError-c456c092.js +55 -0
  107. package/dist/esm/{submitGtag-b7d369cd.js → submitGtag-35bb3945.js} +3 -2
  108. package/dist/esm/zonos-address_8.entry.js +28 -16
  109. package/dist/esm/zonos-badge_2.entry.js +7 -7
  110. package/dist/esm/zonos-banner.entry.js +2 -2
  111. package/dist/esm/zonos-button_3.entry.js +22 -11
  112. package/dist/esm/zonos-card_2.entry.js +11 -10
  113. package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_11.entry.js} +118 -12
  114. package/dist/esm/zonos-checkout.entry.js +35 -8
  115. package/dist/esm/zonos-component.entry.js +2 -2
  116. package/dist/esm/zonos-controller.entry.js +12 -7
  117. package/dist/esm/zonos-country-flag.entry.js +6 -5
  118. package/dist/esm/zonos-country-select_3.entry.js +12 -11
  119. package/dist/esm/zonos-elements.js +3 -3
  120. package/dist/esm/zonos-hello-dialog.entry.js +9 -8
  121. package/dist/esm/zonos-hello.entry.js +6 -5
  122. package/dist/esm/zonos-input.entry.js +7 -7
  123. package/dist/esm/zonos-link.entry.js +2 -2
  124. package/dist/esm/zonos-logo.entry.js +4 -4
  125. package/dist/esm/zonos-notification.entry.js +2 -2
  126. package/dist/esm/zonos-payment.entry.js +7 -6
  127. package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
  128. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  129. package/dist/esm/zonos-text.entry.js +2 -2
  130. package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
  131. package/dist/esm-es5/cart-63d120e1.js +1 -0
  132. package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  133. package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
  134. package/dist/esm-es5/index.js +1 -0
  135. package/dist/esm-es5/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  136. package/dist/esm-es5/loader.js +1 -1
  137. package/dist/esm-es5/logError-c456c092.js +1 -0
  138. package/dist/esm-es5/submitGtag-35bb3945.js +1 -0
  139. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  140. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  141. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  142. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  143. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  144. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
  145. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  146. package/dist/esm-es5/zonos-component.entry.js +1 -1
  147. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  148. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  149. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  150. package/dist/esm-es5/zonos-elements.js +1 -1
  151. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  152. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  153. package/dist/esm-es5/zonos-input.entry.js +1 -1
  154. package/dist/esm-es5/zonos-link.entry.js +1 -1
  155. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  156. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  157. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  158. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  159. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  160. package/dist/esm-es5/zonos-text.entry.js +1 -1
  161. package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
  162. package/dist/scripts/index.d.ts +3908 -0
  163. package/dist/scripts/index.js +1 -0
  164. package/dist/scripts/loadZonos.d.ts +3954 -0
  165. package/dist/scripts/loadZonos.js +1 -1
  166. package/dist/scripts/zonos.js +1 -1
  167. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -7
  168. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +13 -3
  169. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +2 -2
  170. package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
  171. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
  172. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
  173. package/dist/types/components/main/zonos-controller.d.ts +1 -1
  174. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  175. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  176. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  177. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  178. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  179. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  180. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  181. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  182. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  183. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  184. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  185. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  186. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  187. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  188. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  189. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  190. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  191. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  192. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  193. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  194. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  195. package/dist/types/components/store/translationStore.d.ts +1 -1
  196. package/dist/types/components/store/zonosStore.d.ts +5 -1
  197. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -2
  198. package/dist/types/components/utils/styles.d.ts +1 -0
  199. package/dist/types/components.d.ts +164 -19
  200. package/dist/types/index.d.ts +1 -0
  201. package/dist/types/scripts/_extractZonosQaUrl.d.ts +11 -0
  202. package/dist/types/scripts/_getZonosQaUrl.d.ts +4 -0
  203. package/dist/types/scripts/{loadStripe.d.ts → _loadStripe.d.ts} +1 -1
  204. package/dist/types/scripts/{zonosBase.d.ts → _zonosBase.d.ts} +51 -3
  205. package/dist/types/scripts/index.d.ts +2 -0
  206. package/dist/types/types/checkout/CheckoutConfig.d.ts +12 -0
  207. package/dist/types/types/checkout/api/CalculateLandedCostRequest.d.ts +9 -0
  208. package/dist/types/types/generated/graphql.customer.types.d.ts +1 -0
  209. package/dist/types/types/generated/graphql.customer.types.ts +3 -0
  210. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -0
  211. package/dist/types/types/generated/graphql.frontend.types.ts +1 -0
  212. package/dist/types/types/global.d.ts +1 -1
  213. package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  214. package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
  215. package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
  216. package/dist/zonos-elements/index.esm.js +1 -0
  217. package/dist/zonos-elements/p-023c764c.system.entry.js +1 -0
  218. package/dist/zonos-elements/p-06b6ce37.system.entry.js +1 -0
  219. package/dist/zonos-elements/p-07c53d83.entry.js +1 -0
  220. package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-fd49d864.entry.js → p-0d5b5bcc.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
  223. package/dist/zonos-elements/p-200b661c.entry.js +1 -0
  224. package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
  228. package/dist/zonos-elements/p-3b66df06.system.entry.js +1 -0
  229. package/dist/zonos-elements/{p-d7acc81c.entry.js → p-3ba8838a.entry.js} +1 -1
  230. package/dist/zonos-elements/p-428c034a.entry.js +1 -0
  231. package/dist/zonos-elements/p-43b2d28d.system.entry.js +1 -0
  232. package/dist/zonos-elements/p-47a42a30.js +1 -0
  233. package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-4f72bfee.system.entry.js} +1 -1
  235. package/dist/zonos-elements/p-4fc1459c.entry.js +1 -0
  236. package/dist/zonos-elements/p-4fca8fd5.system.entry.js +1 -0
  237. package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
  238. package/dist/zonos-elements/{p-83fecb2a.entry.js → p-58fc8ec1.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
  241. package/dist/zonos-elements/p-63db40b9.system.js +1 -0
  242. package/dist/zonos-elements/p-693b9985.js +1 -0
  243. package/dist/zonos-elements/{p-ff403840.entry.js → p-6cb9812b.entry.js} +1 -1
  244. package/dist/zonos-elements/p-6df1fc3a.system.entry.js +1 -0
  245. package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
  246. package/dist/zonos-elements/p-6f6f160d.entry.js +1 -0
  247. package/dist/zonos-elements/p-7c78e340.entry.js +1 -0
  248. package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
  249. package/dist/zonos-elements/p-808fa731.js +1 -0
  250. package/dist/zonos-elements/p-80f174b9.system.js +1 -0
  251. package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
  252. package/dist/zonos-elements/p-85f3d13f.system.js +1 -0
  253. package/dist/zonos-elements/p-8aeb0629.entry.js +1 -0
  254. package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
  255. package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
  256. package/dist/zonos-elements/p-9288fd21.system.entry.js +1 -0
  257. package/dist/zonos-elements/p-98ad4ab3.system.entry.js +1 -0
  258. package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
  260. package/dist/zonos-elements/p-b1567fa3.system.entry.js +1 -0
  261. package/dist/zonos-elements/p-b81562f5.entry.js +1 -0
  262. package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
  263. package/dist/zonos-elements/p-bdfa3705.system.entry.js +1 -0
  264. package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
  265. package/dist/zonos-elements/p-cfae51c1.system.js +1 -0
  266. package/dist/zonos-elements/p-d6eb260c.entry.js +1 -0
  267. package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
  269. package/dist/zonos-elements/p-dc40a60c.entry.js +1 -0
  270. package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-dda78e8e.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-de405d7e.system.entry.js +1 -0
  272. package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
  273. package/dist/zonos-elements/p-eaa335e1.js +1 -0
  274. package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-ed3524ae.system.entry.js} +1 -1
  275. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  276. package/dist/zonos-elements/zonos-elements.js +1 -1
  277. package/package.json +5 -3
  278. package/dist/components/ILanguage.js +0 -24
  279. package/dist/components/classes.js +0 -12
  280. package/dist/components/containsNonLatinChars.js +0 -21
  281. package/dist/components/formatCurrency.js +0 -11
  282. package/dist/components/index.d.ts +0 -33
  283. package/dist/components/index.js +0 -1
  284. package/dist/components/isCheckoutMobile.js +0 -6
  285. package/dist/components/isColorVariable.js +0 -14
  286. package/dist/components/stripe.js +0 -1681
  287. package/dist/components/submitGtag.js +0 -19
  288. package/dist/components/trackConversionEvent.js +0 -37
  289. package/dist/components/translationStore.js +0 -5371
  290. package/dist/components/zonos-address-display.d.ts +0 -11
  291. package/dist/components/zonos-address-display.js +0 -6
  292. package/dist/components/zonos-address-display2.js +0 -64
  293. package/dist/components/zonos-address-form.d.ts +0 -11
  294. package/dist/components/zonos-address-form.js +0 -6
  295. package/dist/components/zonos-address-form2.js +0 -84
  296. package/dist/components/zonos-address-update-dialog.d.ts +0 -11
  297. package/dist/components/zonos-address-update-dialog.js +0 -6
  298. package/dist/components/zonos-address-update-dialog2.js +0 -264
  299. package/dist/components/zonos-address.d.ts +0 -11
  300. package/dist/components/zonos-address.js +0 -6
  301. package/dist/components/zonos-address2.js +0 -176
  302. package/dist/components/zonos-badge.d.ts +0 -11
  303. package/dist/components/zonos-badge.js +0 -6
  304. package/dist/components/zonos-badge2.js +0 -61
  305. package/dist/components/zonos-banner.d.ts +0 -11
  306. package/dist/components/zonos-banner.js +0 -6
  307. package/dist/components/zonos-banner2.js +0 -95
  308. package/dist/components/zonos-button.d.ts +0 -11
  309. package/dist/components/zonos-button.js +0 -6
  310. package/dist/components/zonos-button2.js +0 -174
  311. package/dist/components/zonos-card.d.ts +0 -11
  312. package/dist/components/zonos-card.js +0 -6
  313. package/dist/components/zonos-card2.js +0 -57
  314. package/dist/components/zonos-cart-items.d.ts +0 -11
  315. package/dist/components/zonos-cart-items.js +0 -6
  316. package/dist/components/zonos-cart-items2.js +0 -57
  317. package/dist/components/zonos-cart-restricted-items.d.ts +0 -11
  318. package/dist/components/zonos-cart-restricted-items.js +0 -6
  319. package/dist/components/zonos-cart-restricted-items2.js +0 -135
  320. package/dist/components/zonos-cart-subtotal.d.ts +0 -11
  321. package/dist/components/zonos-cart-subtotal.js +0 -6
  322. package/dist/components/zonos-cart-subtotal2.js +0 -91
  323. package/dist/components/zonos-checkbox.d.ts +0 -11
  324. package/dist/components/zonos-checkbox.js +0 -6
  325. package/dist/components/zonos-checkbox2.js +0 -96
  326. package/dist/components/zonos-checkout-finish.d.ts +0 -11
  327. package/dist/components/zonos-checkout-finish.js +0 -6
  328. package/dist/components/zonos-checkout-finish2.js +0 -246
  329. package/dist/components/zonos-checkout-footer.d.ts +0 -11
  330. package/dist/components/zonos-checkout-footer.js +0 -6
  331. package/dist/components/zonos-checkout-footer2.js +0 -125
  332. package/dist/components/zonos-checkout-payment.d.ts +0 -11
  333. package/dist/components/zonos-checkout-payment.js +0 -6
  334. package/dist/components/zonos-checkout-payment2.js +0 -104
  335. package/dist/components/zonos-checkout-progress-tabs.d.ts +0 -11
  336. package/dist/components/zonos-checkout-progress-tabs.js +0 -6
  337. package/dist/components/zonos-checkout-progress-tabs2.js +0 -138
  338. package/dist/components/zonos-checkout.d.ts +0 -11
  339. package/dist/components/zonos-checkout.js +0 -1018
  340. package/dist/components/zonos-collapse.d.ts +0 -11
  341. package/dist/components/zonos-collapse.js +0 -6
  342. package/dist/components/zonos-collapse2.js +0 -78
  343. package/dist/components/zonos-component.d.ts +0 -11
  344. package/dist/components/zonos-component.js +0 -48
  345. package/dist/components/zonos-controller.d.ts +0 -11
  346. package/dist/components/zonos-controller.js +0 -309
  347. package/dist/components/zonos-country-flag.d.ts +0 -11
  348. package/dist/components/zonos-country-flag.js +0 -6
  349. package/dist/components/zonos-country-flag2.js +0 -54
  350. package/dist/components/zonos-country-select.d.ts +0 -11
  351. package/dist/components/zonos-country-select.js +0 -6
  352. package/dist/components/zonos-country-select2.js +0 -1891
  353. package/dist/components/zonos-custom-message.d.ts +0 -11
  354. package/dist/components/zonos-custom-message.js +0 -6
  355. package/dist/components/zonos-custom-message2.js +0 -72
  356. package/dist/components/zonos-customer-info.d.ts +0 -11
  357. package/dist/components/zonos-customer-info.js +0 -6
  358. package/dist/components/zonos-customer-info2.js +0 -316
  359. package/dist/components/zonos-dialog.d.ts +0 -11
  360. package/dist/components/zonos-dialog.js +0 -6
  361. package/dist/components/zonos-dialog2.js +0 -124
  362. package/dist/components/zonos-hello-dialog-footer.d.ts +0 -11
  363. package/dist/components/zonos-hello-dialog-footer.js +0 -6
  364. package/dist/components/zonos-hello-dialog-footer2.js +0 -83
  365. package/dist/components/zonos-hello-dialog.d.ts +0 -11
  366. package/dist/components/zonos-hello-dialog.js +0 -6
  367. package/dist/components/zonos-hello-dialog2.js +0 -305
  368. package/dist/components/zonos-hello.d.ts +0 -11
  369. package/dist/components/zonos-hello.js +0 -879
  370. package/dist/components/zonos-icon.d.ts +0 -11
  371. package/dist/components/zonos-icon.js +0 -6
  372. package/dist/components/zonos-icon2.js +0 -55
  373. package/dist/components/zonos-input.d.ts +0 -11
  374. package/dist/components/zonos-input.js +0 -6
  375. package/dist/components/zonos-input2.js +0 -78
  376. package/dist/components/zonos-language-select.d.ts +0 -11
  377. package/dist/components/zonos-language-select.js +0 -6
  378. package/dist/components/zonos-language-select2.js +0 -88
  379. package/dist/components/zonos-link-authentication.d.ts +0 -11
  380. package/dist/components/zonos-link-authentication.js +0 -6
  381. package/dist/components/zonos-link-authentication2.js +0 -80
  382. package/dist/components/zonos-link.d.ts +0 -11
  383. package/dist/components/zonos-link.js +0 -43
  384. package/dist/components/zonos-logo.d.ts +0 -11
  385. package/dist/components/zonos-logo.js +0 -49
  386. package/dist/components/zonos-notification.d.ts +0 -11
  387. package/dist/components/zonos-notification.js +0 -6
  388. package/dist/components/zonos-notification2.js +0 -92
  389. package/dist/components/zonos-payment.d.ts +0 -11
  390. package/dist/components/zonos-payment.js +0 -6
  391. package/dist/components/zonos-payment2.js +0 -77
  392. package/dist/components/zonos-review.d.ts +0 -11
  393. package/dist/components/zonos-review.js +0 -6
  394. package/dist/components/zonos-review2.js +0 -89
  395. package/dist/components/zonos-select-dialog-header.d.ts +0 -11
  396. package/dist/components/zonos-select-dialog-header.js +0 -6
  397. package/dist/components/zonos-select-dialog-header2.js +0 -71
  398. package/dist/components/zonos-shipping-rich-radio.d.ts +0 -11
  399. package/dist/components/zonos-shipping-rich-radio.js +0 -6
  400. package/dist/components/zonos-shipping-rich-radio2.js +0 -88
  401. package/dist/components/zonos-shipping.d.ts +0 -11
  402. package/dist/components/zonos-shipping.js +0 -6
  403. package/dist/components/zonos-shipping2.js +0 -159
  404. package/dist/components/zonos-spinner.d.ts +0 -11
  405. package/dist/components/zonos-spinner.js +0 -6
  406. package/dist/components/zonos-spinner2.js +0 -43
  407. package/dist/components/zonos-text.d.ts +0 -11
  408. package/dist/components/zonos-text.js +0 -6
  409. package/dist/components/zonos-text2.js +0 -182
  410. package/dist/components/zonos-tooltip.d.ts +0 -11
  411. package/dist/components/zonos-tooltip.js +0 -6
  412. package/dist/components/zonos-tooltip2.js +0 -48
  413. package/dist/components/zonos-v-stack.d.ts +0 -11
  414. package/dist/components/zonos-v-stack.js +0 -6
  415. package/dist/components/zonos-v-stack2.js +0 -38
  416. package/dist/components/zonosStore.js +0 -2880
  417. package/dist/esm/getBorderRadius-567f1786.js +0 -18
  418. package/dist/esm/isDarkColor-7f62035a.js +0 -1199
  419. package/dist/esm-es5/cart-6448e883.js +0 -1
  420. package/dist/esm-es5/submitGtag-b7d369cd.js +0 -1
  421. package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
  422. package/dist/scripts/checkIfLoadVersionDomain.js +0 -1
  423. package/dist/scripts/extractZonosQaUrl.js +0 -1
  424. package/dist/scripts/getTempCartById.js +0 -1
  425. package/dist/scripts/loadStripe.js +0 -1
  426. package/dist/scripts/stripe.js +0 -1
  427. package/dist/scripts/zonosBase.js +0 -1
  428. package/dist/zonos-elements/p-0759a84d.system.entry.js +0 -1
  429. package/dist/zonos-elements/p-0ee61fba.system.entry.js +0 -1
  430. package/dist/zonos-elements/p-154aaf95.system.js +0 -1
  431. package/dist/zonos-elements/p-2fc561ac.system.entry.js +0 -1
  432. package/dist/zonos-elements/p-345503b7.entry.js +0 -1
  433. package/dist/zonos-elements/p-3be2e469.entry.js +0 -1
  434. package/dist/zonos-elements/p-47c75f81.system.entry.js +0 -1
  435. package/dist/zonos-elements/p-50ea2036.system.js +0 -1
  436. package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
  437. package/dist/zonos-elements/p-58f8cee7.system.entry.js +0 -1
  438. package/dist/zonos-elements/p-61100d2e.system.entry.js +0 -1
  439. package/dist/zonos-elements/p-6ea746b9.entry.js +0 -1
  440. package/dist/zonos-elements/p-70c35519.system.entry.js +0 -1
  441. package/dist/zonos-elements/p-7b19cd96.entry.js +0 -1
  442. package/dist/zonos-elements/p-7cc730b0.js +0 -1
  443. package/dist/zonos-elements/p-7f48fafe.entry.js +0 -1
  444. package/dist/zonos-elements/p-9c575a18.system.entry.js +0 -1
  445. package/dist/zonos-elements/p-aaf1e517.system.js +0 -1
  446. package/dist/zonos-elements/p-aff5f4ca.js +0 -1
  447. package/dist/zonos-elements/p-beca252d.entry.js +0 -1
  448. package/dist/zonos-elements/p-c1f4bb4a.entry.js +0 -1
  449. package/dist/zonos-elements/p-c64eefdd.system.entry.js +0 -1
  450. package/dist/zonos-elements/p-ca621143.entry.js +0 -1
  451. package/dist/zonos-elements/p-dbee6587.entry.js +0 -1
  452. package/dist/zonos-elements/p-e0706108.system.entry.js +0 -1
  453. package/dist/zonos-elements/p-e3335228.entry.js +0 -1
  454. package/dist/zonos-elements/p-ef9cbb66.system.js +0 -1
  455. package/dist/zonos-elements/p-f1962041.js +0 -1
  456. /package/dist/collection/components/common/{component-template/zonos-link → zonos-link}/zonos-link.css +0 -0
  457. /package/dist/collection/scripts/{checkIfLoadVersionDomain.js → _checkIfLoadVersionDomain.js} +0 -0
  458. /package/dist/collection/scripts/{stripe.js → _stripe.js} +0 -0
  459. /package/dist/types/components/common/{component-template/zonos-link → zonos-link}/zonos-link.d.ts +0 -0
  460. /package/dist/types/scripts/{checkIfLoadVersionDomain.d.ts → _checkIfLoadVersionDomain.d.ts} +0 -0
  461. /package/dist/types/scripts/{stripe.d.ts → _stripe.d.ts} +0 -0
@@ -17,6 +17,9 @@ export const stringsPolish = {
17
17
  'Address line 2': {
18
18
  value: 'Linia adresowa 2',
19
19
  },
20
+ 'Are you sure?': {
21
+ value: 'Jesteś pewien?',
22
+ },
20
23
  Back: {
21
24
  value: 'Wstecz',
22
25
  },
@@ -35,6 +38,9 @@ export const stringsPolish = {
35
38
  City: {
36
39
  value: 'Miasto',
37
40
  },
41
+ Close: {
42
+ value: 'Zamknij',
43
+ },
38
44
  Contact: {
39
45
  value: 'Kontakt',
40
46
  },
@@ -56,6 +62,9 @@ export const stringsPolish = {
56
62
  'Delivery options': {
57
63
  value: 'Opcje dostawy',
58
64
  },
65
+ "Don't close": {
66
+ value: 'Nie zamykaj',
67
+ },
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: 'Cła i podatki zostaną naliczone do towarów i wysyłki.',
61
70
  },
@@ -239,6 +248,9 @@ export const stringsPolish = {
239
248
  'What you entered': {
240
249
  value: 'To, co wpisałeś',
241
250
  },
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: 'Czy chcesz zamknąć kasę i wrócić na stronę?',
253
+ },
242
254
  "You're all set!": {
243
255
  value: 'Jesteś gotowy!',
244
256
  },
@@ -17,6 +17,9 @@ export const stringsPortuguese = {
17
17
  'Address line 2': {
18
18
  value: 'Endereço linha 2',
19
19
  },
20
+ 'Are you sure?': {
21
+ value: 'Você tem certeza?',
22
+ },
20
23
  Back: {
21
24
  value: 'Voltar',
22
25
  },
@@ -35,6 +38,9 @@ export const stringsPortuguese = {
35
38
  City: {
36
39
  value: 'Cidade',
37
40
  },
41
+ Close: {
42
+ value: 'Fechar',
43
+ },
38
44
  Contact: {
39
45
  value: 'Contato',
40
46
  },
@@ -56,6 +62,9 @@ export const stringsPortuguese = {
56
62
  'Delivery options': {
57
63
  value: 'Opções de entrega',
58
64
  },
65
+ "Don't close": {
66
+ value: 'Não fechar',
67
+ },
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: 'Impostos e taxas serão aplicados aos itens e ao frete.',
61
70
  },
@@ -239,6 +248,9 @@ export const stringsPortuguese = {
239
248
  'What you entered': {
240
249
  value: 'O que você digitou',
241
250
  },
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: 'Gostaria de fechar o checkout e voltar ao site?',
253
+ },
242
254
  "You're all set!": {
243
255
  value: 'Está tudo pronto!',
244
256
  },
@@ -17,6 +17,9 @@ export const stringsRussian = {
17
17
  'Address line 2': {
18
18
  value: 'Адресная строка 2',
19
19
  },
20
+ 'Are you sure?': {
21
+ value: 'Вы уверены?',
22
+ },
20
23
  Back: {
21
24
  value: 'Назад',
22
25
  },
@@ -35,6 +38,9 @@ export const stringsRussian = {
35
38
  City: {
36
39
  value: 'Город',
37
40
  },
41
+ Close: {
42
+ value: 'Закрыть',
43
+ },
38
44
  Contact: {
39
45
  value: 'Контакты',
40
46
  },
@@ -56,6 +62,9 @@ export const stringsRussian = {
56
62
  'Delivery options': {
57
63
  value: 'Варианты доставки',
58
64
  },
65
+ "Don't close": {
66
+ value: 'Не закрывайте',
67
+ },
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: 'Пошлины и налоги будут применены к товарам и доставке.',
61
70
  },
@@ -239,6 +248,9 @@ export const stringsRussian = {
239
248
  'What you entered': {
240
249
  value: 'То, что вы ввели',
241
250
  },
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: 'Вы хотите завершить оформление заказа и вернуться на сайт?',
253
+ },
242
254
  "You're all set!": {
243
255
  value: 'Все готово!',
244
256
  },
@@ -17,6 +17,9 @@ export const stringsSpanish = {
17
17
  'Address line 2': {
18
18
  value: 'Línea de dirección 2',
19
19
  },
20
+ 'Are you sure?': {
21
+ value: '¿Estás seguro?',
22
+ },
20
23
  Back: {
21
24
  value: 'Regresar',
22
25
  },
@@ -35,6 +38,9 @@ export const stringsSpanish = {
35
38
  City: {
36
39
  value: 'Ciudad',
37
40
  },
41
+ Close: {
42
+ value: 'Cerrar',
43
+ },
38
44
  Contact: {
39
45
  value: 'Contacto',
40
46
  },
@@ -56,6 +62,9 @@ export const stringsSpanish = {
56
62
  'Delivery options': {
57
63
  value: 'Opciones de entrega',
58
64
  },
65
+ "Don't close": {
66
+ value: 'No cerrar',
67
+ },
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: 'Los impuestos y aranceles se aplicarán a los artículos y al envío.',
61
70
  },
@@ -239,6 +248,9 @@ export const stringsSpanish = {
239
248
  'What you entered': {
240
249
  value: 'Lo que ingresaste',
241
250
  },
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: '¿Te gustaría cerrar la caja y volver al sitio?',
253
+ },
242
254
  "You're all set!": {
243
255
  value: '¡Está todo listo!',
244
256
  },
@@ -17,6 +17,9 @@ export const stringsSwedish = {
17
17
  'Address line 2': {
18
18
  value: 'Adressrad 2',
19
19
  },
20
+ 'Are you sure?': {
21
+ value: 'Är du säker?',
22
+ },
20
23
  Back: {
21
24
  value: 'Tillbaka',
22
25
  },
@@ -35,6 +38,9 @@ export const stringsSwedish = {
35
38
  City: {
36
39
  value: 'Stad',
37
40
  },
41
+ Close: {
42
+ value: 'Stänga',
43
+ },
38
44
  Contact: {
39
45
  value: 'Kontakt',
40
46
  },
@@ -56,6 +62,9 @@ export const stringsSwedish = {
56
62
  'Delivery options': {
57
63
  value: 'Leveransalternativ',
58
64
  },
65
+ "Don't close": {
66
+ value: 'Stäng inte',
67
+ },
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: 'Tull och skatter kommer att tillämpas på varor och frakt.',
61
70
  },
@@ -239,6 +248,9 @@ export const stringsSwedish = {
239
248
  'What you entered': {
240
249
  value: 'Det du angav',
241
250
  },
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: 'Vill du stänga kassan och återvända till webbplatsen?',
253
+ },
242
254
  "You're all set!": {
243
255
  value: 'Du är klar!',
244
256
  },
@@ -17,6 +17,9 @@ export const stringsTurkish = {
17
17
  'Address line 2': {
18
18
  value: 'Adres satırı 2',
19
19
  },
20
+ 'Are you sure?': {
21
+ value: 'Emin misiniz?',
22
+ },
20
23
  Back: {
21
24
  value: 'Geri',
22
25
  },
@@ -35,6 +38,9 @@ export const stringsTurkish = {
35
38
  City: {
36
39
  value: 'Şehir',
37
40
  },
41
+ Close: {
42
+ value: 'Kapat',
43
+ },
38
44
  Contact: {
39
45
  value: 'İletişim',
40
46
  },
@@ -56,6 +62,9 @@ export const stringsTurkish = {
56
62
  'Delivery options': {
57
63
  value: 'Teslimat seçenekleri',
58
64
  },
65
+ "Don't close": {
66
+ value: 'Kapatma',
67
+ },
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: 'Ürünlere ve kargoya vergi ve gümrük vergisi uygulanacak.',
61
70
  },
@@ -239,6 +248,9 @@ export const stringsTurkish = {
239
248
  'What you entered': {
240
249
  value: 'Girdiğin şey',
241
250
  },
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: 'Ödemeyi kapatıp siteye geri dönmek ister misiniz?',
253
+ },
242
254
  "You're all set!": {
243
255
  value: 'Hazırsınız!',
244
256
  },
@@ -17,6 +17,9 @@ export const stringsVietnamese = {
17
17
  'Address line 2': {
18
18
  value: 'Dòng địa chỉ 2',
19
19
  },
20
+ 'Are you sure?': {
21
+ value: 'Bạn có chắc không?',
22
+ },
20
23
  Back: {
21
24
  value: 'Quay lại',
22
25
  },
@@ -35,6 +38,9 @@ export const stringsVietnamese = {
35
38
  City: {
36
39
  value: 'Thành phố',
37
40
  },
41
+ Close: {
42
+ value: 'Đóng',
43
+ },
38
44
  Contact: {
39
45
  value: 'Liên hệ',
40
46
  },
@@ -56,6 +62,9 @@ export const stringsVietnamese = {
56
62
  'Delivery options': {
57
63
  value: 'Tùy chọn giao hàng',
58
64
  },
65
+ "Don't close": {
66
+ value: 'Đừng đóng',
67
+ },
59
68
  'Duties and taxes will be applied to items and shipping.': {
60
69
  value: 'Thuế và phí sẽ được áp dụng cho hàng hóa và vận chuyển.',
61
70
  },
@@ -239,6 +248,9 @@ export const stringsVietnamese = {
239
248
  'What you entered': {
240
249
  value: 'Những gì bạn đã nhập',
241
250
  },
251
+ 'Would you like to close checkout and return to the site?': {
252
+ value: 'Bạn có muốn đóng thanh toán và quay lại trang web không?',
253
+ },
242
254
  "You're all set!": {
243
255
  value: 'Bạn đã sẵn sàng!',
244
256
  },
@@ -114,6 +114,7 @@ const zonosStoreInitSetting = ({ overrideSettings, zonosSettings, }) => {
114
114
  zonosStore.organizationName = ((_b = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _b === void 0 ? void 0 : _b.name) || '';
115
115
  zonosStore.storeId = ((_d = (_c = zonosSettings === null || zonosSettings === void 0 ? void 0 : zonosSettings.organization) === null || _c === void 0 ? void 0 : _c.references) === null || _d === void 0 ? void 0 : _d.storeId) || null;
116
116
  zonosStore.currencyConverter = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.currencyConverter;
117
+ zonosStore.onCountryChange = overrideSettings === null || overrideSettings === void 0 ? void 0 : overrideSettings.onCountryChange;
117
118
  };
118
119
  const zonosStoreFontFamily = () => {
119
120
  const fontFamily = zonosStore.appearance.fontFamily || 'Inter';
@@ -135,7 +135,7 @@ export class ZonosAddress {
135
135
  }
136
136
  render() {
137
137
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
138
- return (h(Host, { key: 'f45a7bbe9d6b5ffac15671a862b3ad4f2eb4a87b', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'a9119e6e0c4e5c81a7d17ebe4d6bec925404a3dd', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '7dc12043c6e75ebabd646490c390bafdc2cd4a1d', class: "zonos--address-component" })));
138
+ return (h(Host, { key: '9ef595622320579d43ac54bdfdf0e8a24ab5132b', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '82925c3c426f384a266cfe62c2899d1ec30d0920', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'bb3b99783a75434a5a7cc6856ccf9218f1cfd212', class: "zonos--address-component" })));
139
139
  }
140
140
  static get is() { return "zonos-address"; }
141
141
  static get encapsulation() { return "scoped"; }
@@ -189,10 +189,10 @@ export class ZonosAddress {
189
189
  "type": "unknown",
190
190
  "mutable": false,
191
191
  "complexType": {
192
- "original": "StripeContactOption | null",
192
+ "original": "ContactOption | null",
193
193
  "resolved": "ContactOption | null",
194
194
  "references": {
195
- "StripeContactOption": {
195
+ "ContactOption": {
196
196
  "location": "import",
197
197
  "path": "@stripe/stripe-js",
198
198
  "id": ""
@@ -42,7 +42,7 @@ export class ZonosLinkAuthentication {
42
42
  }
43
43
  render() {
44
44
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
45
- return (h(Host, { key: '4a7b9eb534e938f791f70e04756aa9fb1c39f2c7', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: 'cc4fe49ed6d4bd7cec502ef739b9e835e9e26584', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'f04a438d04e6ccd608d7ff61ac300fb09da4f0ce', class: "zonos--link-authentication-component" })));
45
+ return (h(Host, { key: '1a206ef754ae3df55e57f7b8f587bde7d04c20d3', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '7f938c30d9ee5d404df05db96b814a48786c9c83', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'fddc855fd5eabf43a4d99532516053f0da71ae20', class: "zonos--link-authentication-component" })));
46
46
  }
47
47
  static get is() { return "zonos-link-authentication"; }
48
48
  static get encapsulation() { return "scoped"; }
@@ -37,7 +37,7 @@ export class ZonosPayment {
37
37
  }
38
38
  render() {
39
39
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
40
- return (h(Host, { key: '7967dfeb2c8661201aed74d3d9f4be1df9eb993d', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '2a3b744c1935f471897ab492efa7d3788907b126', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '7d643ec935dc15339c79237572bd067efa8f23ea', class: "zonos--payment-component" })));
40
+ return (h(Host, { key: 'fa213e672515b2aa3e389f0e7f918350a076e493', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'ed1fa911c3765962f7a3a7ce606a334541ca0a9a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'afeb5892da35ae3fef9659d05a0bb77924acb7f0', class: "zonos--payment-component" })));
41
41
  }
42
42
  static get is() { return "zonos-payment"; }
43
43
  static get encapsulation() { return "scoped"; }
@@ -181,12 +181,10 @@ export const getReplaceEnv = (props) => Object.keys(env).reduce((prev, curr) =>
181
181
  const foundOverride = !!override && currEnv in override;
182
182
  // return the override value if it's found
183
183
  if (foundOverride) {
184
- // @ts-expect-error
185
184
  prev[`process.env.${currEnv}`] = `"${override[currEnv]}"`;
186
185
  return prev;
187
186
  }
188
187
  if (currEnv) {
189
- // @ts-expect-error
190
188
  prev[`process.env.${currEnv}`] = `"${env[currEnv] || ''}"`;
191
189
  }
192
190
  return prev;
@@ -1 +1,2 @@
1
+ export { Zonos } from './scripts';
1
2
  export * from './types';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Extracts the zonosQaUrl from the url
3
+ *
4
+ * @param url - url to extract zonosQaUrl from
5
+ *
6
+ * **NOTE**: value of zonosQaUrl param should be without protocol, allowed characters are: a-z, A-Z, 0-9, -, _
7
+ * @example
8
+ * valid: https://www.zonos.com/?zonosQaUrl=some-feature-v988
9
+ * invalid: https://www.zonos.com/?zonosQaUrl=https://zonos-something
10
+ */
11
+ export const extractZonosQaUrl = (url) => {
12
+ if (!url) {
13
+ return null;
14
+ }
15
+ // get params from url
16
+ const param = new URL(url).searchParams;
17
+ const zonosQaUrl = param.get('zonosQaUrl');
18
+ if (!zonosQaUrl) {
19
+ return null;
20
+ }
21
+ const hasInvalidCharacters = /[^a-zA-Z0-9-_]+/.test(zonosQaUrl);
22
+ if (!!hasInvalidCharacters) {
23
+ return null;
24
+ }
25
+ return zonosQaUrl;
26
+ };
@@ -0,0 +1,40 @@
1
+ import { log } from "../components/utils/logging/log";
2
+ import { extractZonosQaUrl } from "./_extractZonosQaUrl";
3
+ /**
4
+ * Get the Zonos QA URL and return it. Will remove `zonosQaUrl` from the url query if it doesn't exists.
5
+ */
6
+ export const getZonosQaUrl = () => {
7
+ if (typeof window === 'undefined') {
8
+ return null;
9
+ }
10
+ const qaUrl = extractZonosQaUrl(window.location.href);
11
+ if (!qaUrl) {
12
+ return null;
13
+ }
14
+ // If the qaUrl, use the dev-elements domain to forward the request to the dev server to quickly debug the issue
15
+ if (qaUrl === 'dev-elements') {
16
+ return 'https://dev.elements.zonos.com';
17
+ }
18
+ const suffixDomain = 'preview.js.zonos.com';
19
+ const fullUrl = `https://${qaUrl}.${suffixDomain}`;
20
+ log(`[ZONOS-WARNING] using '${fullUrl}' for loading script`, 'warn');
21
+ // request to the url and check if the request has an error
22
+ void fetch(fullUrl)
23
+ .then(() => {
24
+ // cleanup checkout session to avoid using the prod session in preview domain
25
+ window.sessionStorage.removeItem('zonos--checkout-session-id');
26
+ window.sessionStorage.removeItem('zonos--client-secret');
27
+ })
28
+ .catch(() => {
29
+ alert(`[ZONOS-WARNING] '${fullUrl}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);
30
+ // remove the zonosQaUrl param from url
31
+ const urlSearchParams = new URLSearchParams(window.location.search);
32
+ urlSearchParams.delete('zonosQaUrl');
33
+ const { pathname } = window.location;
34
+ const newUrl = `${pathname}?${urlSearchParams.toString()}`;
35
+ window.history.replaceState({}, '', newUrl);
36
+ window.location.reload();
37
+ return null;
38
+ });
39
+ return fullUrl;
40
+ };
@@ -1,5 +1,5 @@
1
1
  // Execute our own script injection after a tick to give users time to do their
2
- import { initStripe, zonosStripeLoadScript, } from "./stripe";
2
+ import { initStripe, zonosStripeLoadScript, } from "./_stripe";
3
3
  // own script injection.
4
4
  const stripePromise = Promise.resolve().then(() => zonosStripeLoadScript(null));
5
5
  let loadCalled = false;
@@ -1,12 +1,16 @@
1
1
  var _a;
2
2
  import { log } from "../components/utils/logging/log";
3
3
  import { logError } from "../components/utils/logging/logError";
4
- import { checkIfLoadVersionDomain } from "./checkIfLoadVersionDomain";
5
- import { zonosLoadStripe } from "./loadStripe";
4
+ import { checkIfLoadVersionDomain } from "./_checkIfLoadVersionDomain";
5
+ import { getZonosQaUrl } from "./_getZonosQaUrl";
6
+ import { zonosLoadStripe } from "./_loadStripe";
6
7
  /**
7
8
  * Get the load version and url based on the loadScriptSrc, if the domain that used to load `zonos.js` is in white listed domains, use currentLoadScriptUrl as the load url instead, if zonosQaUrl exists, it would also fall under the white listed domain
8
9
  */
9
10
  const zonosLoadUrl = (() => {
11
+ if (typeof document === 'undefined') {
12
+ return null;
13
+ }
10
14
  const scriptExist = document.querySelector(`script[src*="/zonos.js"]`);
11
15
  const { currentLoadScriptUrl, isWhiteListed } = checkIfLoadVersionDomain({
12
16
  loadScriptSrc: scriptExist === null || scriptExist === void 0 ? void 0 : scriptExist.src,
@@ -26,9 +30,15 @@ export class Zonos {
26
30
  _a = Zonos;
27
31
  Zonos.doneInit = false;
28
32
  // if query 'zonosDebug=1' param from url, debug mode is on
29
- Zonos.debug = !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
30
- Zonos.zonosConversionTest = !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
33
+ Zonos.debug = typeof window !== 'undefined' &&
34
+ !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
35
+ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
36
+ !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
31
37
  Zonos.isBigCommerce = false;
38
+ /**
39
+ * By default, the package will load from npm
40
+ */
41
+ Zonos.isNpm = true;
32
42
  Zonos.internationalHideSelector = '';
33
43
  Zonos.zonosQaUrl = null;
34
44
  Zonos.version = `v${process.env.NEXT_PUBLIC_ZONOS_PACKAGE_VERSION}`;
@@ -36,7 +46,7 @@ Zonos.modeAlerted = false;
36
46
  Zonos.tempCartData = null;
37
47
  Zonos.getCurrentTimestamp = () => new Date().getTime();
38
48
  Zonos.zonosController = null;
39
- Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, storeId, zonosApiKey, }) => {
49
+ Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, storeId, zonosApiKey, }) => {
40
50
  if (_a.doneInit) {
41
51
  // do nothing if zonos is already initializeds
42
52
  return;
@@ -64,6 +74,7 @@ Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSett
64
74
  checkoutSettings,
65
75
  currencyConverter,
66
76
  helloSettings,
77
+ onCountryChange,
67
78
  },
68
79
  zonosApiKey,
69
80
  });
@@ -264,20 +275,33 @@ Zonos.injectScript = ({ fallBackDomain, isModule, scriptDomain, theRestUrl, }) =
264
275
  };
265
276
  headOrBody.appendChild(script);
266
277
  };
278
+ /**
279
+ * We now support loading Zonos via npm. For clients using npm, `zonosBase` will always load from the server side. Therefore, the `zonosLoadUrl` defined earlier won't work since it lacks access to client-side APIs such as `window` and `document`.
280
+ */
281
+ Zonos.getZonosUrl = () => {
282
+ // To ensure that sites using zonos-elements load the script from a specific domain when using npm, we need to check for zonosQaUrl and use it if available. Otherwise it will always load from the compiled versioned domain
283
+ if (_a.isNpm) {
284
+ const zonosQaUrl = getZonosQaUrl();
285
+ // Default to hard coded domain if zonosQaUrl is not available
286
+ return zonosQaUrl || ZONOS_URL;
287
+ }
288
+ return ZONOS_URL;
289
+ };
267
290
  Zonos.injectZonosCdn = () => {
291
+ const ZONOS_LOAD_URL = _a.getZonosUrl();
268
292
  // init zonos elements when the zonosKey is valid
269
293
  // inject esmodule cdn for zonos elements
270
294
  _a.injectScript({
271
295
  fallBackDomain: JS_DELIVR_ZONOS_URL,
272
296
  isModule: true,
273
- scriptDomain: ZONOS_URL,
297
+ scriptDomain: ZONOS_LOAD_URL,
274
298
  theRestUrl: 'dist/zonos-elements/zonos-elements.esm.js',
275
299
  });
276
300
  // inject non module cdn for zonos elements
277
301
  _a.injectScript({
278
302
  fallBackDomain: JS_DELIVR_ZONOS_URL,
279
303
  isModule: false,
280
- scriptDomain: ZONOS_URL,
304
+ scriptDomain: ZONOS_LOAD_URL,
281
305
  theRestUrl: 'dist/zonos-elements/zonos-elements.js',
282
306
  });
283
307
  log('Zonos cdn script injected!');
@@ -0,0 +1,2 @@
1
+ import { Zonos } from "./_zonosBase";
2
+ export { Zonos };
@@ -1257,6 +1257,7 @@ export const invoiceCarrier = {
1257
1257
  Apc: 'APC',
1258
1258
  Asendia: 'ASENDIA',
1259
1259
  BoxC: 'BOX_C',
1260
+ BroadReach: 'BROAD_REACH',
1260
1261
  Dhl: 'DHL',
1261
1262
  DhlEcom: 'DHL_ECOM',
1262
1263
  Epost: 'EPOST',
@@ -43,6 +43,7 @@ export const featureAudienceNameEnum = {
43
43
  I18nSales: 'i18n_sales',
44
44
  ItHead: 'it_head',
45
45
  NewCheckoutMerchant: 'new_checkout_merchant',
46
+ NewPayoutReportMerchant: 'new_payout_report_merchant',
46
47
  Onboarding: 'onboarding',
47
48
  PrincipalEngineer: 'principal_engineer',
48
49
  ProServeHead: 'pro_serve_head',