@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
@@ -1,8 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-d8bb0bda.js');
4
- const isDarkColor = require('./isDarkColor-01f45d3f.js');
5
- const getBorderRadius = require('./getBorderRadius-44b3eca1.js');
3
+ const zonosStore = require('./zonosStore-7c6205ca.js');
4
+ const logError = require('./logError-4e2f2020.js');
5
+ const isDarkColor = require('./isDarkColor-b0393089.js');
6
+ const getBorderRadius = require('./getBorderRadius-bcb309a8.js');
6
7
 
7
8
  const stringsArabic = {
8
9
  '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
@@ -23,6 +24,9 @@ const stringsArabic = {
23
24
  'Address line 2': {
24
25
  value: 'سطر العنوان 2',
25
26
  },
27
+ 'Are you sure?': {
28
+ value: 'هل أنت متأكد؟',
29
+ },
26
30
  Back: {
27
31
  value: 'رجوع',
28
32
  },
@@ -41,6 +45,9 @@ const stringsArabic = {
41
45
  City: {
42
46
  value: 'مدينة',
43
47
  },
48
+ Close: {
49
+ value: 'أغلق',
50
+ },
44
51
  Contact: {
45
52
  value: 'اتصل بنا',
46
53
  },
@@ -62,6 +69,9 @@ const stringsArabic = {
62
69
  'Delivery options': {
63
70
  value: 'خيارات التوصيل',
64
71
  },
72
+ "Don't close": {
73
+ value: 'لا تغلق',
74
+ },
65
75
  'Duties and taxes will be applied to items and shipping.': {
66
76
  value: 'سيتم تطبيق الرسوم والضرائب على العناصر والشحن.',
67
77
  },
@@ -245,6 +255,9 @@ const stringsArabic = {
245
255
  'What you entered': {
246
256
  value: 'ما أدخلته',
247
257
  },
258
+ 'Would you like to close checkout and return to the site?': {
259
+ value: 'هل ترغب في إغلاق عملية الدفع والعودة إلى الموقع؟',
260
+ },
248
261
  "You're all set!": {
249
262
  value: 'أنت جاهز!',
250
263
  },
@@ -287,6 +300,9 @@ const stringsBase = {
287
300
  'Address line 2': {
288
301
  value: 'Address line 2',
289
302
  },
303
+ 'Are you sure?': {
304
+ value: 'Are you sure?',
305
+ },
290
306
  Back: {
291
307
  value: 'Back',
292
308
  },
@@ -305,6 +321,9 @@ const stringsBase = {
305
321
  City: {
306
322
  value: 'City',
307
323
  },
324
+ Close: {
325
+ value: 'Close',
326
+ },
308
327
  Contact: {
309
328
  value: 'Contact',
310
329
  },
@@ -326,6 +345,9 @@ const stringsBase = {
326
345
  'Delivery options': {
327
346
  value: 'Delivery options',
328
347
  },
348
+ "Don't close": {
349
+ value: "Don't close",
350
+ },
329
351
  'Duties and taxes will be applied to items and shipping.': {
330
352
  value: 'Duties and taxes will be applied to items and shipping.',
331
353
  },
@@ -509,6 +531,9 @@ const stringsBase = {
509
531
  'What you entered': {
510
532
  value: 'What you entered',
511
533
  },
534
+ 'Would you like to close checkout and return to the site?': {
535
+ value: 'Would you like to close checkout and return to the site?',
536
+ },
512
537
  "You're all set!": {
513
538
  value: "You're all set!",
514
539
  },
@@ -551,6 +576,9 @@ const stringsChinese = {
551
576
  'Address line 2': {
552
577
  value: '地址行2',
553
578
  },
579
+ 'Are you sure?': {
580
+ value: '你确定吗?',
581
+ },
554
582
  Back: {
555
583
  value: '返回',
556
584
  },
@@ -569,6 +597,9 @@ const stringsChinese = {
569
597
  City: {
570
598
  value: '城市',
571
599
  },
600
+ Close: {
601
+ value: '关闭',
602
+ },
572
603
  Contact: {
573
604
  value: '联系方式',
574
605
  },
@@ -590,6 +621,9 @@ const stringsChinese = {
590
621
  'Delivery options': {
591
622
  value: '送货选项',
592
623
  },
624
+ "Don't close": {
625
+ value: '不要关',
626
+ },
593
627
  'Duties and taxes will be applied to items and shipping.': {
594
628
  value: '商品和运费将征收关税和税款。',
595
629
  },
@@ -773,6 +807,9 @@ const stringsChinese = {
773
807
  'What you entered': {
774
808
  value: '您输入的内容',
775
809
  },
810
+ 'Would you like to close checkout and return to the site?': {
811
+ value: '您要关闭结帐并返回网站吗?',
812
+ },
776
813
  "You're all set!": {
777
814
  value: '您已完成设置!',
778
815
  },
@@ -815,6 +852,9 @@ const stringsDanish = {
815
852
  'Address line 2': {
816
853
  value: 'Adresse linje 2',
817
854
  },
855
+ 'Are you sure?': {
856
+ value: 'Er du sikker?',
857
+ },
818
858
  Back: {
819
859
  value: 'Tilbage',
820
860
  },
@@ -833,6 +873,9 @@ const stringsDanish = {
833
873
  City: {
834
874
  value: 'By',
835
875
  },
876
+ Close: {
877
+ value: 'Lukke',
878
+ },
836
879
  Contact: {
837
880
  value: 'Kontakt',
838
881
  },
@@ -854,6 +897,9 @@ const stringsDanish = {
854
897
  'Delivery options': {
855
898
  value: 'Leveringsmuligheder',
856
899
  },
900
+ "Don't close": {
901
+ value: 'Luk ikke',
902
+ },
857
903
  'Duties and taxes will be applied to items and shipping.': {
858
904
  value: 'Told og skatter vil blive pålagt varer og fragt.',
859
905
  },
@@ -1037,6 +1083,9 @@ const stringsDanish = {
1037
1083
  'What you entered': {
1038
1084
  value: 'Det, du indtastede',
1039
1085
  },
1086
+ 'Would you like to close checkout and return to the site?': {
1087
+ value: 'Vil du lukke kassen og vende tilbage til siden?',
1088
+ },
1040
1089
  "You're all set!": {
1041
1090
  value: 'Du er klar til at gå!',
1042
1091
  },
@@ -1079,6 +1128,9 @@ const stringsDutch = {
1079
1128
  'Address line 2': {
1080
1129
  value: 'Adreslijn 2',
1081
1130
  },
1131
+ 'Are you sure?': {
1132
+ value: 'Weet je het zeker?',
1133
+ },
1082
1134
  Back: {
1083
1135
  value: 'Terug',
1084
1136
  },
@@ -1097,6 +1149,9 @@ const stringsDutch = {
1097
1149
  City: {
1098
1150
  value: 'Stad',
1099
1151
  },
1152
+ Close: {
1153
+ value: 'Sluiten',
1154
+ },
1100
1155
  Contact: {
1101
1156
  value: 'Contact',
1102
1157
  },
@@ -1118,6 +1173,9 @@ const stringsDutch = {
1118
1173
  'Delivery options': {
1119
1174
  value: 'Bezorgopties',
1120
1175
  },
1176
+ "Don't close": {
1177
+ value: 'Niet sluiten',
1178
+ },
1121
1179
  'Duties and taxes will be applied to items and shipping.': {
1122
1180
  value: 'Belastingen en heffingen worden toegepast op artikelen en verzending.',
1123
1181
  },
@@ -1301,6 +1359,9 @@ const stringsDutch = {
1301
1359
  'What you entered': {
1302
1360
  value: 'Wat u heeft ingevoerd',
1303
1361
  },
1362
+ 'Would you like to close checkout and return to the site?': {
1363
+ value: 'Wilt u de kassa sluiten en terugkeren naar de site?',
1364
+ },
1304
1365
  "You're all set!": {
1305
1366
  value: 'Je bent helemaal klaar!',
1306
1367
  },
@@ -1343,6 +1404,9 @@ const stringsFrench = {
1343
1404
  'Address line 2': {
1344
1405
  value: 'Adresse ligne 2',
1345
1406
  },
1407
+ 'Are you sure?': {
1408
+ value: 'Es-tu sûr?',
1409
+ },
1346
1410
  Back: {
1347
1411
  value: 'Retour',
1348
1412
  },
@@ -1361,6 +1425,9 @@ const stringsFrench = {
1361
1425
  City: {
1362
1426
  value: 'Ville',
1363
1427
  },
1428
+ Close: {
1429
+ value: 'Fermer',
1430
+ },
1364
1431
  Contact: {
1365
1432
  value: 'Contact',
1366
1433
  },
@@ -1382,6 +1449,9 @@ const stringsFrench = {
1382
1449
  'Delivery options': {
1383
1450
  value: 'Options de livraison',
1384
1451
  },
1452
+ "Don't close": {
1453
+ value: 'Ne pas fermer',
1454
+ },
1385
1455
  'Duties and taxes will be applied to items and shipping.': {
1386
1456
  value: 'Des droits et taxes seront appliqués aux articles et à la livraison.',
1387
1457
  },
@@ -1565,6 +1635,9 @@ const stringsFrench = {
1565
1635
  'What you entered': {
1566
1636
  value: 'Ce que vous avez entré',
1567
1637
  },
1638
+ 'Would you like to close checkout and return to the site?': {
1639
+ value: 'Voulez-vous fermer la caisse et retourner sur le site?',
1640
+ },
1568
1641
  "You're all set!": {
1569
1642
  value: 'Vous êtes prêt!',
1570
1643
  },
@@ -1607,6 +1680,9 @@ const stringsGerman = {
1607
1680
  'Address line 2': {
1608
1681
  value: 'Adresszeile 2',
1609
1682
  },
1683
+ 'Are you sure?': {
1684
+ value: 'Bist du sicher?',
1685
+ },
1610
1686
  Back: {
1611
1687
  value: 'Zurück',
1612
1688
  },
@@ -1625,6 +1701,9 @@ const stringsGerman = {
1625
1701
  City: {
1626
1702
  value: 'Stadt',
1627
1703
  },
1704
+ Close: {
1705
+ value: 'Schließen',
1706
+ },
1628
1707
  Contact: {
1629
1708
  value: 'Kontakt',
1630
1709
  },
@@ -1646,6 +1725,9 @@ const stringsGerman = {
1646
1725
  'Delivery options': {
1647
1726
  value: 'Lieferoptionen',
1648
1727
  },
1728
+ "Don't close": {
1729
+ value: 'Nicht schließen',
1730
+ },
1649
1731
  'Duties and taxes will be applied to items and shipping.': {
1650
1732
  value: 'Zölle und Steuern werden auf Artikel und Versand erhoben.',
1651
1733
  },
@@ -1829,6 +1911,9 @@ const stringsGerman = {
1829
1911
  'What you entered': {
1830
1912
  value: 'Was Sie eingegeben haben',
1831
1913
  },
1914
+ 'Would you like to close checkout and return to the site?': {
1915
+ value: 'Möchten Sie den Checkout schließen und zur Seite zurückkehren?',
1916
+ },
1832
1917
  "You're all set!": {
1833
1918
  value: 'Alles bereit!',
1834
1919
  },
@@ -1871,6 +1956,9 @@ const stringsHebrew = {
1871
1956
  'Address line 2': {
1872
1957
  value: 'כתובת שורה 2',
1873
1958
  },
1959
+ 'Are you sure?': {
1960
+ value: 'אתה בטוח?',
1961
+ },
1874
1962
  Back: {
1875
1963
  value: 'חזור',
1876
1964
  },
@@ -1889,6 +1977,9 @@ const stringsHebrew = {
1889
1977
  City: {
1890
1978
  value: 'עיר',
1891
1979
  },
1980
+ Close: {
1981
+ value: 'סגור',
1982
+ },
1892
1983
  Contact: {
1893
1984
  value: 'צור קשר',
1894
1985
  },
@@ -1910,6 +2001,9 @@ const stringsHebrew = {
1910
2001
  'Delivery options': {
1911
2002
  value: 'אפשרויות משלוח',
1912
2003
  },
2004
+ "Don't close": {
2005
+ value: 'אל תסגור',
2006
+ },
1913
2007
  'Duties and taxes will be applied to items and shipping.': {
1914
2008
  value: 'מכס ומס יחולו על פריטים ומשלוח.',
1915
2009
  },
@@ -2093,6 +2187,9 @@ const stringsHebrew = {
2093
2187
  'What you entered': {
2094
2188
  value: 'מה שהזנת',
2095
2189
  },
2190
+ 'Would you like to close checkout and return to the site?': {
2191
+ value: 'האם תרצה לסגור את הקופה ולחזור לאתר?',
2192
+ },
2096
2193
  "You're all set!": {
2097
2194
  value: 'הכל מוכן!',
2098
2195
  },
@@ -2135,6 +2232,9 @@ const stringsIndonesian = {
2135
2232
  'Address line 2': {
2136
2233
  value: 'Baris alamat 2',
2137
2234
  },
2235
+ 'Are you sure?': {
2236
+ value: 'Apakah Anda yakin?',
2237
+ },
2138
2238
  Back: {
2139
2239
  value: 'Kembali',
2140
2240
  },
@@ -2153,6 +2253,9 @@ const stringsIndonesian = {
2153
2253
  City: {
2154
2254
  value: 'Kota',
2155
2255
  },
2256
+ Close: {
2257
+ value: 'Tutup',
2258
+ },
2156
2259
  Contact: {
2157
2260
  value: 'Kontak',
2158
2261
  },
@@ -2174,6 +2277,9 @@ const stringsIndonesian = {
2174
2277
  'Delivery options': {
2175
2278
  value: 'Opsi pengiriman',
2176
2279
  },
2280
+ "Don't close": {
2281
+ value: 'Jangan tutup',
2282
+ },
2177
2283
  'Duties and taxes will be applied to items and shipping.': {
2178
2284
  value: 'Bea masuk dan pajak akan dikenakan pada barang dan pengiriman.',
2179
2285
  },
@@ -2357,6 +2463,9 @@ const stringsIndonesian = {
2357
2463
  'What you entered': {
2358
2464
  value: 'Yang Anda masukkan',
2359
2465
  },
2466
+ 'Would you like to close checkout and return to the site?': {
2467
+ value: 'Apakah Anda ingin menutup pembayaran dan kembali ke situs?',
2468
+ },
2360
2469
  "You're all set!": {
2361
2470
  value: 'Anda sudah siap!',
2362
2471
  },
@@ -2399,6 +2508,9 @@ const stringsItalian = {
2399
2508
  'Address line 2': {
2400
2509
  value: 'Indirizzo linea 2',
2401
2510
  },
2511
+ 'Are you sure?': {
2512
+ value: 'Sei sicuro?',
2513
+ },
2402
2514
  Back: {
2403
2515
  value: 'Indietro',
2404
2516
  },
@@ -2417,6 +2529,9 @@ const stringsItalian = {
2417
2529
  City: {
2418
2530
  value: 'Città',
2419
2531
  },
2532
+ Close: {
2533
+ value: 'Chiudere',
2534
+ },
2420
2535
  Contact: {
2421
2536
  value: 'Contatto',
2422
2537
  },
@@ -2438,6 +2553,9 @@ const stringsItalian = {
2438
2553
  'Delivery options': {
2439
2554
  value: 'Opzioni di consegna',
2440
2555
  },
2556
+ "Don't close": {
2557
+ value: 'Non chiudere',
2558
+ },
2441
2559
  'Duties and taxes will be applied to items and shipping.': {
2442
2560
  value: 'Dazi e tasse saranno applicati agli articoli e alla spedizione.',
2443
2561
  },
@@ -2621,6 +2739,9 @@ const stringsItalian = {
2621
2739
  'What you entered': {
2622
2740
  value: 'Quello che hai inserito',
2623
2741
  },
2742
+ 'Would you like to close checkout and return to the site?': {
2743
+ value: 'Vuoi chiudere il checkout e tornare al sito?',
2744
+ },
2624
2745
  "You're all set!": {
2625
2746
  value: 'Sei pronto!',
2626
2747
  },
@@ -2663,6 +2784,9 @@ const stringsJapanese = {
2663
2784
  'Address line 2': {
2664
2785
  value: '住所2',
2665
2786
  },
2787
+ 'Are you sure?': {
2788
+ value: '本気ですか?',
2789
+ },
2666
2790
  Back: {
2667
2791
  value: '戻る',
2668
2792
  },
@@ -2681,6 +2805,9 @@ const stringsJapanese = {
2681
2805
  City: {
2682
2806
  value: '市',
2683
2807
  },
2808
+ Close: {
2809
+ value: '閉める',
2810
+ },
2684
2811
  Contact: {
2685
2812
  value: 'お問い合わせ',
2686
2813
  },
@@ -2702,6 +2829,9 @@ const stringsJapanese = {
2702
2829
  'Delivery options': {
2703
2830
  value: '配送オプション',
2704
2831
  },
2832
+ "Don't close": {
2833
+ value: '閉めないでください',
2834
+ },
2705
2835
  'Duties and taxes will be applied to items and shipping.': {
2706
2836
  value: '関税と税金が商品と配送に適用されます。',
2707
2837
  },
@@ -2885,6 +3015,9 @@ const stringsJapanese = {
2885
3015
  'What you entered': {
2886
3016
  value: '入力した内容',
2887
3017
  },
3018
+ 'Would you like to close checkout and return to the site?': {
3019
+ value: 'チェックアウトを終了してサイトに戻りますか?',
3020
+ },
2888
3021
  "You're all set!": {
2889
3022
  value: '準備が整いました!',
2890
3023
  },
@@ -2927,6 +3060,9 @@ const stringsKorean = {
2927
3060
  'Address line 2': {
2928
3061
  value: '주소 2',
2929
3062
  },
3063
+ 'Are you sure?': {
3064
+ value: '확실합니까?',
3065
+ },
2930
3066
  Back: {
2931
3067
  value: '뒤로',
2932
3068
  },
@@ -2945,6 +3081,9 @@ const stringsKorean = {
2945
3081
  City: {
2946
3082
  value: '도시',
2947
3083
  },
3084
+ Close: {
3085
+ value: '닫기',
3086
+ },
2948
3087
  Contact: {
2949
3088
  value: '연락처',
2950
3089
  },
@@ -2966,6 +3105,9 @@ const stringsKorean = {
2966
3105
  'Delivery options': {
2967
3106
  value: '배송 옵션',
2968
3107
  },
3108
+ "Don't close": {
3109
+ value: '닫지 마세요',
3110
+ },
2969
3111
  'Duties and taxes will be applied to items and shipping.': {
2970
3112
  value: '물품과 배송에 관세와 세금이 부과됩니다.',
2971
3113
  },
@@ -3149,6 +3291,9 @@ const stringsKorean = {
3149
3291
  'What you entered': {
3150
3292
  value: '당신이 입력한 것',
3151
3293
  },
3294
+ 'Would you like to close checkout and return to the site?': {
3295
+ value: '결제를 종료하고 사이트로 돌아가시겠습니까?',
3296
+ },
3152
3297
  "You're all set!": {
3153
3298
  value: '모두 준비되었습니다!',
3154
3299
  },
@@ -3191,6 +3336,9 @@ const stringsNorwegian = {
3191
3336
  'Address line 2': {
3192
3337
  value: 'Adresselinje 2',
3193
3338
  },
3339
+ 'Are you sure?': {
3340
+ value: 'Er du sikker?',
3341
+ },
3194
3342
  Back: {
3195
3343
  value: 'Tilbake',
3196
3344
  },
@@ -3209,6 +3357,9 @@ const stringsNorwegian = {
3209
3357
  City: {
3210
3358
  value: 'By',
3211
3359
  },
3360
+ Close: {
3361
+ value: 'Lukk',
3362
+ },
3212
3363
  Contact: {
3213
3364
  value: 'Kontakt',
3214
3365
  },
@@ -3230,6 +3381,9 @@ const stringsNorwegian = {
3230
3381
  'Delivery options': {
3231
3382
  value: 'Leveringsalternativer',
3232
3383
  },
3384
+ "Don't close": {
3385
+ value: 'Ikke lukk',
3386
+ },
3233
3387
  'Duties and taxes will be applied to items and shipping.': {
3234
3388
  value: 'Avgift og skatt vil legges til på varer og frakt.',
3235
3389
  },
@@ -3413,6 +3567,9 @@ const stringsNorwegian = {
3413
3567
  'What you entered': {
3414
3568
  value: 'Det du skrev inn',
3415
3569
  },
3570
+ 'Would you like to close checkout and return to the site?': {
3571
+ value: 'Vil du avslutte utsjekkingen og gå tilbake til siden?',
3572
+ },
3416
3573
  "You're all set!": {
3417
3574
  value: 'Du er klar!',
3418
3575
  },
@@ -3455,6 +3612,9 @@ const stringsPolish = {
3455
3612
  'Address line 2': {
3456
3613
  value: 'Linia adresowa 2',
3457
3614
  },
3615
+ 'Are you sure?': {
3616
+ value: 'Jesteś pewien?',
3617
+ },
3458
3618
  Back: {
3459
3619
  value: 'Wstecz',
3460
3620
  },
@@ -3473,6 +3633,9 @@ const stringsPolish = {
3473
3633
  City: {
3474
3634
  value: 'Miasto',
3475
3635
  },
3636
+ Close: {
3637
+ value: 'Zamknij',
3638
+ },
3476
3639
  Contact: {
3477
3640
  value: 'Kontakt',
3478
3641
  },
@@ -3494,6 +3657,9 @@ const stringsPolish = {
3494
3657
  'Delivery options': {
3495
3658
  value: 'Opcje dostawy',
3496
3659
  },
3660
+ "Don't close": {
3661
+ value: 'Nie zamykaj',
3662
+ },
3497
3663
  'Duties and taxes will be applied to items and shipping.': {
3498
3664
  value: 'Cła i podatki zostaną naliczone do towarów i wysyłki.',
3499
3665
  },
@@ -3677,6 +3843,9 @@ const stringsPolish = {
3677
3843
  'What you entered': {
3678
3844
  value: 'To, co wpisałeś',
3679
3845
  },
3846
+ 'Would you like to close checkout and return to the site?': {
3847
+ value: 'Czy chcesz zamknąć kasę i wrócić na stronę?',
3848
+ },
3680
3849
  "You're all set!": {
3681
3850
  value: 'Jesteś gotowy!',
3682
3851
  },
@@ -3719,6 +3888,9 @@ const stringsPortuguese = {
3719
3888
  'Address line 2': {
3720
3889
  value: 'Endereço linha 2',
3721
3890
  },
3891
+ 'Are you sure?': {
3892
+ value: 'Você tem certeza?',
3893
+ },
3722
3894
  Back: {
3723
3895
  value: 'Voltar',
3724
3896
  },
@@ -3737,6 +3909,9 @@ const stringsPortuguese = {
3737
3909
  City: {
3738
3910
  value: 'Cidade',
3739
3911
  },
3912
+ Close: {
3913
+ value: 'Fechar',
3914
+ },
3740
3915
  Contact: {
3741
3916
  value: 'Contato',
3742
3917
  },
@@ -3758,6 +3933,9 @@ const stringsPortuguese = {
3758
3933
  'Delivery options': {
3759
3934
  value: 'Opções de entrega',
3760
3935
  },
3936
+ "Don't close": {
3937
+ value: 'Não fechar',
3938
+ },
3761
3939
  'Duties and taxes will be applied to items and shipping.': {
3762
3940
  value: 'Impostos e taxas serão aplicados aos itens e ao frete.',
3763
3941
  },
@@ -3941,6 +4119,9 @@ const stringsPortuguese = {
3941
4119
  'What you entered': {
3942
4120
  value: 'O que você digitou',
3943
4121
  },
4122
+ 'Would you like to close checkout and return to the site?': {
4123
+ value: 'Gostaria de fechar o checkout e voltar ao site?',
4124
+ },
3944
4125
  "You're all set!": {
3945
4126
  value: 'Está tudo pronto!',
3946
4127
  },
@@ -3983,6 +4164,9 @@ const stringsRussian = {
3983
4164
  'Address line 2': {
3984
4165
  value: 'Адресная строка 2',
3985
4166
  },
4167
+ 'Are you sure?': {
4168
+ value: 'Вы уверены?',
4169
+ },
3986
4170
  Back: {
3987
4171
  value: 'Назад',
3988
4172
  },
@@ -4001,6 +4185,9 @@ const stringsRussian = {
4001
4185
  City: {
4002
4186
  value: 'Город',
4003
4187
  },
4188
+ Close: {
4189
+ value: 'Закрыть',
4190
+ },
4004
4191
  Contact: {
4005
4192
  value: 'Контакты',
4006
4193
  },
@@ -4022,6 +4209,9 @@ const stringsRussian = {
4022
4209
  'Delivery options': {
4023
4210
  value: 'Варианты доставки',
4024
4211
  },
4212
+ "Don't close": {
4213
+ value: 'Не закрывайте',
4214
+ },
4025
4215
  'Duties and taxes will be applied to items and shipping.': {
4026
4216
  value: 'Пошлины и налоги будут применены к товарам и доставке.',
4027
4217
  },
@@ -4205,6 +4395,9 @@ const stringsRussian = {
4205
4395
  'What you entered': {
4206
4396
  value: 'То, что вы ввели',
4207
4397
  },
4398
+ 'Would you like to close checkout and return to the site?': {
4399
+ value: 'Вы хотите завершить оформление заказа и вернуться на сайт?',
4400
+ },
4208
4401
  "You're all set!": {
4209
4402
  value: 'Все готово!',
4210
4403
  },
@@ -4247,6 +4440,9 @@ const stringsSpanish = {
4247
4440
  'Address line 2': {
4248
4441
  value: 'Línea de dirección 2',
4249
4442
  },
4443
+ 'Are you sure?': {
4444
+ value: '¿Estás seguro?',
4445
+ },
4250
4446
  Back: {
4251
4447
  value: 'Regresar',
4252
4448
  },
@@ -4265,6 +4461,9 @@ const stringsSpanish = {
4265
4461
  City: {
4266
4462
  value: 'Ciudad',
4267
4463
  },
4464
+ Close: {
4465
+ value: 'Cerrar',
4466
+ },
4268
4467
  Contact: {
4269
4468
  value: 'Contacto',
4270
4469
  },
@@ -4286,6 +4485,9 @@ const stringsSpanish = {
4286
4485
  'Delivery options': {
4287
4486
  value: 'Opciones de entrega',
4288
4487
  },
4488
+ "Don't close": {
4489
+ value: 'No cerrar',
4490
+ },
4289
4491
  'Duties and taxes will be applied to items and shipping.': {
4290
4492
  value: 'Los impuestos y aranceles se aplicarán a los artículos y al envío.',
4291
4493
  },
@@ -4469,6 +4671,9 @@ const stringsSpanish = {
4469
4671
  'What you entered': {
4470
4672
  value: 'Lo que ingresaste',
4471
4673
  },
4674
+ 'Would you like to close checkout and return to the site?': {
4675
+ value: '¿Te gustaría cerrar la caja y volver al sitio?',
4676
+ },
4472
4677
  "You're all set!": {
4473
4678
  value: '¡Está todo listo!',
4474
4679
  },
@@ -4511,6 +4716,9 @@ const stringsSwedish = {
4511
4716
  'Address line 2': {
4512
4717
  value: 'Adressrad 2',
4513
4718
  },
4719
+ 'Are you sure?': {
4720
+ value: 'Är du säker?',
4721
+ },
4514
4722
  Back: {
4515
4723
  value: 'Tillbaka',
4516
4724
  },
@@ -4529,6 +4737,9 @@ const stringsSwedish = {
4529
4737
  City: {
4530
4738
  value: 'Stad',
4531
4739
  },
4740
+ Close: {
4741
+ value: 'Stänga',
4742
+ },
4532
4743
  Contact: {
4533
4744
  value: 'Kontakt',
4534
4745
  },
@@ -4550,6 +4761,9 @@ const stringsSwedish = {
4550
4761
  'Delivery options': {
4551
4762
  value: 'Leveransalternativ',
4552
4763
  },
4764
+ "Don't close": {
4765
+ value: 'Stäng inte',
4766
+ },
4553
4767
  'Duties and taxes will be applied to items and shipping.': {
4554
4768
  value: 'Tull och skatter kommer att tillämpas på varor och frakt.',
4555
4769
  },
@@ -4733,6 +4947,9 @@ const stringsSwedish = {
4733
4947
  'What you entered': {
4734
4948
  value: 'Det du angav',
4735
4949
  },
4950
+ 'Would you like to close checkout and return to the site?': {
4951
+ value: 'Vill du stänga kassan och återvända till webbplatsen?',
4952
+ },
4736
4953
  "You're all set!": {
4737
4954
  value: 'Du är klar!',
4738
4955
  },
@@ -4775,6 +4992,9 @@ const stringsTurkish = {
4775
4992
  'Address line 2': {
4776
4993
  value: 'Adres satırı 2',
4777
4994
  },
4995
+ 'Are you sure?': {
4996
+ value: 'Emin misiniz?',
4997
+ },
4778
4998
  Back: {
4779
4999
  value: 'Geri',
4780
5000
  },
@@ -4793,6 +5013,9 @@ const stringsTurkish = {
4793
5013
  City: {
4794
5014
  value: 'Şehir',
4795
5015
  },
5016
+ Close: {
5017
+ value: 'Kapat',
5018
+ },
4796
5019
  Contact: {
4797
5020
  value: 'İletişim',
4798
5021
  },
@@ -4814,6 +5037,9 @@ const stringsTurkish = {
4814
5037
  'Delivery options': {
4815
5038
  value: 'Teslimat seçenekleri',
4816
5039
  },
5040
+ "Don't close": {
5041
+ value: 'Kapatma',
5042
+ },
4817
5043
  'Duties and taxes will be applied to items and shipping.': {
4818
5044
  value: 'Ürünlere ve kargoya vergi ve gümrük vergisi uygulanacak.',
4819
5045
  },
@@ -4997,6 +5223,9 @@ const stringsTurkish = {
4997
5223
  'What you entered': {
4998
5224
  value: 'Girdiğin şey',
4999
5225
  },
5226
+ 'Would you like to close checkout and return to the site?': {
5227
+ value: 'Ödemeyi kapatıp siteye geri dönmek ister misiniz?',
5228
+ },
5000
5229
  "You're all set!": {
5001
5230
  value: 'Hazırsınız!',
5002
5231
  },
@@ -5039,6 +5268,9 @@ const stringsVietnamese = {
5039
5268
  'Address line 2': {
5040
5269
  value: 'Dòng địa chỉ 2',
5041
5270
  },
5271
+ 'Are you sure?': {
5272
+ value: 'Bạn có chắc không?',
5273
+ },
5042
5274
  Back: {
5043
5275
  value: 'Quay lại',
5044
5276
  },
@@ -5057,6 +5289,9 @@ const stringsVietnamese = {
5057
5289
  City: {
5058
5290
  value: 'Thành phố',
5059
5291
  },
5292
+ Close: {
5293
+ value: 'Đóng',
5294
+ },
5060
5295
  Contact: {
5061
5296
  value: 'Liên hệ',
5062
5297
  },
@@ -5078,6 +5313,9 @@ const stringsVietnamese = {
5078
5313
  'Delivery options': {
5079
5314
  value: 'Tùy chọn giao hàng',
5080
5315
  },
5316
+ "Don't close": {
5317
+ value: 'Đừng đóng',
5318
+ },
5081
5319
  'Duties and taxes will be applied to items and shipping.': {
5082
5320
  value: 'Thuế và phí sẽ được áp dụng cho hàng hóa và vận chuyển.',
5083
5321
  },
@@ -5261,6 +5499,9 @@ const stringsVietnamese = {
5261
5499
  'What you entered': {
5262
5500
  value: 'Những gì bạn đã nhập',
5263
5501
  },
5502
+ 'Would you like to close checkout and return to the site?': {
5503
+ value: 'Bạn có muốn đóng thanh toán và quay lại trang web không?',
5504
+ },
5264
5505
  "You're all set!": {
5265
5506
  value: 'Bạn đã sẵn sàng!',
5266
5507
  },
@@ -5505,60 +5746,6 @@ const getCountries = async () => {
5505
5746
  }
5506
5747
  };
5507
5748
 
5508
- const log = (message, type, ...additionalInfo) => {
5509
- var _a, _b;
5510
- const isDebug = !!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.debug) ||
5511
- !!window.location.search.match(/\?.*(&*)zonosDebug=1/);
5512
- // if debug is false, do not log
5513
- if (!isDebug) {
5514
- // log errors to the console if the type is error
5515
- if (type === 'error') {
5516
- // eslint-disable-next-line no-console
5517
- console.error(message, ...additionalInfo);
5518
- }
5519
- return;
5520
- }
5521
- let loggingIframe = document.querySelector('iframe#zonos---debug-logging-iframe');
5522
- if (!loggingIframe) {
5523
- // add a hidden iframe
5524
- loggingIframe = document.createElement('iframe');
5525
- loggingIframe.id = 'zonos---debug-logging-iframe';
5526
- loggingIframe.style.display = 'none';
5527
- loggingIframe.style.opacity = '0';
5528
- loggingIframe.style.position = 'absolute';
5529
- loggingIframe.style.top = '-9999px';
5530
- loggingIframe.style.left = '-9999px';
5531
- loggingIframe.style.width = '1px';
5532
- loggingIframe.style.height = '1px';
5533
- loggingIframe.style.border = 'none';
5534
- loggingIframe.style.overflow = 'hidden';
5535
- loggingIframe.style.visibility = 'hidden';
5536
- document.body.appendChild(loggingIframe);
5537
- }
5538
- // use the logging iframe's console to log just in case the console is disabled (overriden) by the site owner
5539
- const zConsole = ((_b = loggingIframe.contentWindow) === null || _b === void 0 ? void 0 : _b.window.console) || window.console;
5540
- switch (type) {
5541
- case 'warn':
5542
- zConsole.warn(message, ...additionalInfo);
5543
- break;
5544
- case 'info':
5545
- zConsole.info(message, ...additionalInfo);
5546
- break;
5547
- case 'error':
5548
- zConsole.error(message, ...additionalInfo);
5549
- break;
5550
- default:
5551
- zConsole.groupCollapsed(message, ...additionalInfo);
5552
- zConsole.trace();
5553
- zConsole.groupEnd();
5554
- break;
5555
- }
5556
- };
5557
-
5558
- const logError = (message, ...rest) => {
5559
- log(message, 'error', ...rest);
5560
- };
5561
-
5562
5749
  const getCountryLandedCost = async (countryCode) => {
5563
5750
  var _a;
5564
5751
  if (!countryCode) {
@@ -5567,7 +5754,7 @@ const getCountryLandedCost = async (countryCode) => {
5567
5754
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/country-landed-cost/${countryCode}`;
5568
5755
  const { errors, json } = await handleFetch(url);
5569
5756
  if (errors.length || !json) {
5570
- logError(`Error fetching country landed cost: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
5757
+ logError.logError(`Error fetching country landed cost: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
5571
5758
  return null;
5572
5759
  }
5573
5760
  return json || null;
@@ -5582,7 +5769,7 @@ const getExchangeRate = async ({ country, isGuaranteed, sourceCurrency, targetCu
5582
5769
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/exchange-rates?sourceCurrency=${sourceCurrency}&targetCurrency=${targetCurrency}&isGuaranteed=${isGuaranteed}&country=${country}`;
5583
5770
  const { errors, json } = await handleFetch(url);
5584
5771
  if (errors.length || !json) {
5585
- logError(`Error fetching country landed cost: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
5772
+ logError.logError(`Error fetching country landed cost: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
5586
5773
  return { exchangeRate: null, maxAge: null };
5587
5774
  }
5588
5775
  const { maxAge, rate, targetFormat } = json.exchangeRateCreate;
@@ -5599,7 +5786,7 @@ const getLocaleMessages = async ({ countryCode, localeTo, storeId, }) => {
5599
5786
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/locale-messages?countryCode=${countryCode}&storeId=${storeId}&localeTo=${localeTo}`;
5600
5787
  const { errors, json } = await handleFetch(url);
5601
5788
  if (errors.length || !json) {
5602
- logError('Error fetching exchange rate', (_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message);
5789
+ logError.logError('Error fetching exchange rate', (_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message);
5603
5790
  return [];
5604
5791
  }
5605
5792
  return json.locale_countryCodesPage;
@@ -5643,7 +5830,7 @@ const getShippingZones = async () => {
5643
5830
  const url = `${"https://v1.route.js.zonos.com"}/api/zonos-elements/shipping-zones`;
5644
5831
  const { errors, json } = await handleFetch(url);
5645
5832
  if (errors.length || !json) {
5646
- logError(`Error fetching shipping zones: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
5833
+ logError.logError(`Error fetching shipping zones: ${(_a = errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message}`);
5647
5834
  return null;
5648
5835
  }
5649
5836
  const shippingZones = (_b = json === null || json === void 0 ? void 0 : json.shippingZones) === null || _b === void 0 ? void 0 : _b.flatMap(zone => zone === null || zone === void 0 ? void 0 : zone.countryCodes).filter(Boolean);
@@ -5720,12 +5907,12 @@ const isValidSelector = (selector) => {
5720
5907
  const getCurrencyElements = (selector) => {
5721
5908
  const currencySelector = selector || '.money';
5722
5909
  if (!isValidSelector(currencySelector)) {
5723
- logError(`Currency element selector "${currencySelector}" is not valid.`);
5910
+ logError.logError(`Currency element selector "${currencySelector}" is not valid.`);
5724
5911
  return null;
5725
5912
  }
5726
5913
  const currencyElements = document.querySelectorAll(currencySelector);
5727
5914
  if (!currencyElements.length) {
5728
- log(`No currency elements found with selector "${currencySelector}"`, 'warn');
5915
+ logError.log(`No currency elements found with selector "${currencySelector}"`, 'warn');
5729
5916
  return null;
5730
5917
  }
5731
5918
  // return array of currency elements instead of a NodeList
@@ -5780,7 +5967,7 @@ const defaultCurrencyConverter = () => {
5780
5967
  return;
5781
5968
  }
5782
5969
  if (!localizationStore.exchangeRate) {
5783
- logError('Could not display currency. Exchange rate and format data is not available.');
5970
+ logError.logError('Could not display currency. Exchange rate and format data is not available.');
5784
5971
  return;
5785
5972
  }
5786
5973
  currencyElements.forEach((element) => {
@@ -5865,7 +6052,7 @@ const startExchangeRateTimeout = ({ isGuaranteed, maxAge, }) => {
5865
6052
  }, maxAgeToUse * 1000);
5866
6053
  };
5867
6054
  const getNewLocalization = async () => {
5868
- log('get new localization store');
6055
+ logError.log('get new localization store');
5869
6056
  const { isShippableCountry, selectedCountryCode } = localizationStore;
5870
6057
  if (zonosStore.zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
5871
6058
  !isShippableCountry ||
@@ -5902,8 +6089,8 @@ const getOverrideLocale = () => {
5902
6089
  return zonosLocale;
5903
6090
  };
5904
6091
  const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
5905
- var _a;
5906
- log('update selected country code');
6092
+ var _a, _b;
6093
+ logError.log('update selected country code');
5907
6094
  localizationStore.selectedCountryCode = newSelectedCountryCode;
5908
6095
  const { selectedCountryCode, shippingZoneCountries } = localizationStore;
5909
6096
  const isShippableCountry = shippingZoneCountries &&
@@ -5911,7 +6098,7 @@ const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
5911
6098
  !!shippingZoneCountries[selectedCountryCode];
5912
6099
  // update shippable country
5913
6100
  localizationStore.isShippableCountry = !!isShippableCountry;
5914
- log(`Is shippable country: ${localizationStore.isShippableCountry}`);
6101
+ logError.log(`Is shippable country: ${localizationStore.isShippableCountry}`);
5915
6102
  if (!selectedCountryCode) {
5916
6103
  return;
5917
6104
  }
@@ -5928,6 +6115,11 @@ const localizationStoreUpdateSelectedCountryCode = (newSelectedCountryCode) => {
5928
6115
  setZCountryUrlParam(selectedCountryCode);
5929
6116
  (_a = document
5930
6117
  .querySelector('zonos-hello')) === null || _a === void 0 ? void 0 : _a.setAttribute('z-country', selectedCountryCode);
6118
+ // Trigger callback onCountryChange
6119
+ (_b = zonosStore.zonosStore.onCountryChange) === null || _b === void 0 ? void 0 : _b.call(zonosStore.zonosStore, {
6120
+ countryCode: selectedCountryCode,
6121
+ currencyCode,
6122
+ });
5931
6123
  };
5932
6124
  const initLocalizationStore = async () => {
5933
6125
  // all countries from countries.json, shipping zone and localization
@@ -5946,7 +6138,12 @@ const initLocalizationStore = async () => {
5946
6138
  const overrideLocale = getOverrideLocale();
5947
6139
  localizationStore.selectedLocale = overrideLocale || locale || 'en';
5948
6140
  translationStoreUpdateLanguage(localizationStore.selectedLocale);
5949
- const devSites = ['dev.storybook.elements', 'dev.elements', 'dev.dashboard'];
6141
+ const devSites = [
6142
+ 'dev.storybook.elements',
6143
+ 'dev.elements',
6144
+ 'dev.demo.elements',
6145
+ 'dev.dashboard',
6146
+ ];
5950
6147
  // If the country code is not set, set it to the US for development (vercel can't get geo country in dev)
5951
6148
  if (!localizationStore.selectedCountryCode &&
5952
6149
  devSites.some(site => window.location.origin.includes(site))) {
@@ -5973,7 +6170,7 @@ const updateCheckoutSessionLanguage = async () => {
5973
6170
  method: 'POST',
5974
6171
  });
5975
6172
  if (errors.length || !json) {
5976
- logError('Error occurs when updating checkout session', JSON.stringify(errors, null, 2));
6173
+ logError.logError('Error occurs when updating checkout session', JSON.stringify(errors, null, 2));
5977
6174
  return { errors, json };
5978
6175
  }
5979
6176
  return { errors: [], json };
@@ -6318,7 +6515,7 @@ const initStripeElements = async (props) => {
6318
6515
  var _a, _b;
6319
6516
  const clientSecret = stripeStore.clientSecret;
6320
6517
  if (!stripeStore.stripe) {
6321
- log('Skip. Stripe is not initialized');
6518
+ logError.log('Skip. Stripe is not initialized');
6322
6519
  return;
6323
6520
  }
6324
6521
  if (clientSecret) {
@@ -6338,11 +6535,11 @@ const initStripeElements = async (props) => {
6338
6535
  stripeStore.stripeElements = (_a = stripeStore.stripe) === null || _a === void 0 ? void 0 : _a.elements(stripeOptions);
6339
6536
  // save stripe elements options for later comparison
6340
6537
  stripeStore.stripeElementsOptions = stripeOptions;
6341
- log('Stripe elements initialized');
6538
+ logError.log('Stripe elements initialized');
6342
6539
  // init stripe elements for billing address
6343
6540
  stripeStore.stripeElementsForBillingAddress =
6344
6541
  (_b = stripeStore.stripe) === null || _b === void 0 ? void 0 : _b.elements(stripeOptions);
6345
- log('Stripe elements for billing address initialized');
6542
+ logError.log('Stripe elements for billing address initialized');
6346
6543
  return;
6347
6544
  }
6348
6545
  if (!isSameOptions) {
@@ -6353,7 +6550,7 @@ const initStripeElements = async (props) => {
6353
6550
  // save stripe elements options for later comparison
6354
6551
  stripeStore.stripeElementsOptions = stripeOptions;
6355
6552
  }
6356
- log('Stripe elements initialized');
6553
+ logError.log('Stripe elements initialized');
6357
6554
  }
6358
6555
  };
6359
6556
  const stripeStoreReset = () => {
@@ -6468,7 +6665,7 @@ const stripeStorePrefetchLandedCost = async () => {
6468
6665
  // default to empty array if we fail to fetch landed cost, so we can show the error message
6469
6666
  cartStore.landedCostData = [];
6470
6667
  cartStore.shippingData = [];
6471
- logError(err);
6668
+ logError.logError(err);
6472
6669
  }
6473
6670
  stripeStore.isFetchingLandedCost = false;
6474
6671
  }
@@ -6526,7 +6723,7 @@ const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybo
6526
6723
  }
6527
6724
  const clientSecret = _clientSecret || stripeStore.clientSecret;
6528
6725
  if (!stripeStore.stripe || !clientSecret) {
6529
- logError('Failed to retrieve payment intent. Stripe is not initialized');
6726
+ logError.logError('Failed to retrieve payment intent. Stripe is not initialized');
6530
6727
  return { error: true, message: [translate('Something went wrong.')] };
6531
6728
  }
6532
6729
  const { paymentIntent } = await stripeStore.stripe.retrievePaymentIntent(clientSecret);
@@ -6579,7 +6776,7 @@ const stripeStoreInitCheckoutSession = async () => {
6579
6776
  var _a;
6580
6777
  const total = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
6581
6778
  if (!total || !localizationStore.targetCurrency) {
6582
- logError('Fail to create checkout session - invalid total or currency');
6779
+ logError.logError('Fail to create checkout session - invalid total or currency');
6583
6780
  return false;
6584
6781
  }
6585
6782
  stripeStore.isFetchingSession = true;
@@ -6596,7 +6793,7 @@ const stripeStoreInitCheckoutSession = async () => {
6596
6793
  });
6597
6794
  stripeStore.isFetchingSession = false;
6598
6795
  if (errors.length || !json) {
6599
- logError('Error occurs when creating checkout session', JSON.stringify(errors, null, 2));
6796
+ logError.logError('Error occurs when creating checkout session', JSON.stringify(errors, null, 2));
6600
6797
  return false;
6601
6798
  }
6602
6799
  const result = json.checkoutSessionCreate;
@@ -6604,8 +6801,8 @@ const stripeStoreInitCheckoutSession = async () => {
6604
6801
  // update cart store with updated informations
6605
6802
  cartStore.checkoutSessionId = result.id;
6606
6803
  cartStoreApplySubtotals(Object.assign(Object.assign({}, result.subtotals), { landedCostTotal: 0, shipping: 0, total: result.subtotals.items }));
6607
- log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
6608
- log('done-init-checkout-session');
6804
+ logError.log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
6805
+ logError.log('done-init-checkout-session');
6609
6806
  return true;
6610
6807
  };
6611
6808
  /**
@@ -6625,7 +6822,7 @@ const stripeStoreUpdateCheckoutSession = async ({ currency, id, itemsAmount, lan
6625
6822
  method: 'POST',
6626
6823
  });
6627
6824
  if (errors.length || !json) {
6628
- logError('Error occurs when updating checkout session', JSON.stringify(errors, null, 2));
6825
+ logError.logError('Error occurs when updating checkout session', JSON.stringify(errors, null, 2));
6629
6826
  return { errors, json };
6630
6827
  }
6631
6828
  return { errors: [], json };
@@ -6719,7 +6916,7 @@ const stripeStoreTranslateAddressToLatin = async ({ addressInvalidCharactersList
6719
6916
  method: 'POST',
6720
6917
  });
6721
6918
  if (errors.length || !json) {
6722
- logError('Error occurs when translating address to latin', JSON.stringify(errors, null, 2));
6919
+ logError.logError('Error occurs when translating address to latin', JSON.stringify(errors, null, 2));
6723
6920
  // reset translated address if we fail to translate and let user manually fix it
6724
6921
  stripeStore.translatedAddress = {
6725
6922
  address: {},
@@ -6858,7 +7055,7 @@ const getMatchItem = ({ item1, item2, }) => {
6858
7055
  * Check and set restricted items in cart
6859
7056
  */
6860
7057
  const cartStoreCheckItemRestrictions = (itemsWorkflow) => {
6861
- log('Checking item restrictions');
7058
+ logError.log('Checking item restrictions');
6862
7059
  const mappedRestrictedItems = itemsWorkflow
6863
7060
  .map(item => {
6864
7061
  if (!item.restriction) {
@@ -6914,11 +7111,11 @@ const cartStoreReCalculateTotal = async ({ currency, itemsAmount, landedCostId,
6914
7111
  // update cart total right away if we have landed cost id to avoid order total flickering
6915
7112
  const subtotals = cartStore.selectedLandedCost.subtotals;
6916
7113
  cartStoreApplySubtotals(subtotals);
6917
- log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
7114
+ logError.log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
6918
7115
  }
6919
7116
  // update checkout session
6920
7117
  if (!cartStore.checkoutSessionId) {
6921
- logError('Could not update cart total without checkout session id');
7118
+ logError.logError('Could not update cart total without checkout session id');
6922
7119
  return false;
6923
7120
  }
6924
7121
  const { errors, json } = await stripeStoreUpdateCheckoutSession({
@@ -6930,7 +7127,7 @@ const cartStoreReCalculateTotal = async ({ currency, itemsAmount, landedCostId,
6930
7127
  });
6931
7128
  if (errors.length > 0 || !json) {
6932
7129
  // do nothing if we can't get checkout session
6933
- logError('Error occurs when updating checkout session');
7130
+ logError.logError('Error occurs when updating checkout session');
6934
7131
  cartStoreUpdateToErrorState({
6935
7132
  messages: [
6936
7133
  translate("There's been an error updating your checkout session. Please reload and try again or contact support if the error persists"),
@@ -6943,7 +7140,7 @@ const cartStoreReCalculateTotal = async ({ currency, itemsAmount, landedCostId,
6943
7140
  // This is when first open the checkout modal and we just want to get info from the old cart session.
6944
7141
  // use subtotals from checkout session to update cart total
6945
7142
  cartStoreApplySubtotals(json.checkoutSessionUpdate.subtotals);
6946
- log('Exchange rate updated for cart items (checkout session update)', 'info', cartStore.exchangeRate);
7143
+ logError.log('Exchange rate updated for cart items (checkout session update)', 'info', cartStore.exchangeRate);
6947
7144
  }
6948
7145
  return true;
6949
7146
  };
@@ -7069,8 +7266,6 @@ exports.localizationStore = localizationStore;
7069
7266
  exports.localizationStoreOnUpdate = localizationStoreOnUpdate;
7070
7267
  exports.localizationStoreUpdateSelectedCountryCode = localizationStoreUpdateSelectedCountryCode;
7071
7268
  exports.localizationStoreUpdateSelectedLocale = localizationStoreUpdateSelectedLocale;
7072
- exports.log = log;
7073
- exports.logError = logError;
7074
7269
  exports.setZCountryUrlParam = setZCountryUrlParam;
7075
7270
  exports.stripeStore = stripeStore;
7076
7271
  exports.stripeStoreCleanupDomesticShippingSession = stripeStoreCleanupDomesticShippingSession;