@zonos/elements 1.3.246 → 1.3.248

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 (304) hide show
  1. package/dist/cjs/ShortAddressCode-bec338b0.js +7 -0
  2. package/dist/cjs/{cart-52cf3366.js → cart-28310848.js} +37 -6
  3. package/dist/cjs/getContrastColor-30848800.js +37 -0
  4. package/dist/cjs/{hasInclusivePrice-dbb82df8.js → hasInclusivePrice-134b0250.js} +1 -1
  5. package/dist/cjs/index.cjs.js +16 -7
  6. package/dist/cjs/{invoice-972f1ab3.js → invoice-2e8e5879.js} +2 -2
  7. package/dist/cjs/{isCollectMobileTablet-fd11246c.js → isCollectMobileTablet-bd0f4556.js} +2 -2
  8. package/dist/cjs/isContrastColor-09f5924a.js +12 -0
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{localization-b1075a8c.js → localization-00e73920.js} +180 -0
  11. package/dist/cjs/{paypal-e339cc8c.js → paypal-3019ae94.js} +24 -29
  12. package/dist/cjs/{placeTestOrder-3dfbe3d6.js → placeTestOrder-b0369cfd.js} +2 -2
  13. package/dist/cjs/{renderCheckoutCurrency-55056c97.js → renderCheckoutCurrency-9e919b9f.js} +2 -2
  14. package/dist/cjs/{shouldRenderTaxIdInput-eda13ef8.js → shouldRenderTaxIdInput-b8abf6de.js} +18 -0
  15. package/dist/cjs/submitGtag-a50ab32e.js +116 -0
  16. package/dist/cjs/zonos-address-display_9.cjs.entry.js +35 -5
  17. package/dist/cjs/zonos-address_4.cjs.entry.js +37 -7
  18. package/dist/cjs/zonos-card_5.cjs.entry.js +5 -3
  19. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +170 -57
  20. package/dist/cjs/zonos-checkout.cjs.entry.js +31 -9
  21. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +14 -12
  23. package/dist/cjs/zonos-collect.cjs.entry.js +6 -4
  24. package/dist/cjs/zonos-controller.cjs.entry.js +6 -3
  25. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  27. package/dist/cjs/zonos-elements.cjs.js +1 -1
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  29. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -12
  32. package/dist/cjs/zonos-invoice.cjs.entry.js +6 -4
  33. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  34. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +18 -4
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +88 -9
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +9 -2
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +26 -6
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +16 -2
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +31 -6
  40. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +5 -5
  41. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +1 -1
  42. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +5 -5
  43. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +1 -1
  44. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +35 -4
  45. package/dist/collection/components/main/zonos-controller.js +4 -1
  46. package/dist/collection/components/store/checkout/paypal.js +19 -1
  47. package/dist/collection/components/store/checkout/stripe.js +34 -5
  48. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  49. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  52. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  53. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  54. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  55. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  56. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  57. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  58. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  59. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  60. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  61. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  62. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  63. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  64. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  65. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  66. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  67. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  68. package/dist/collection/components/stripe/zonos-address/zonos-address.css +2 -1
  69. package/dist/collection/components/stripe/zonos-address/zonos-address.js +53 -3
  70. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +52 -2
  71. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
  72. package/dist/collection/components/utils/checkout/shouldRenderShortAddressCodeInput.js +16 -0
  73. package/dist/collection/components/utils/shortAddressCodeValidationResult.js +37 -0
  74. package/dist/collection/components/utils/submitGtag.js +90 -2
  75. package/dist/collection/scripts/_zonosBase.js +7 -0
  76. package/dist/collection/types/analyticsRelay.js +6 -0
  77. package/dist/collection/types/checkout/ShortAddressCode.js +3 -0
  78. package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
  79. package/dist/collection/types/generated/graphql.internal.types.js +135 -0
  80. package/dist/collection/types/index.js +1 -0
  81. package/dist/esm/ShortAddressCode-7620e622.js +5 -0
  82. package/dist/esm/{cart-7f4704dc.js → cart-ba8f3890.js} +37 -6
  83. package/dist/esm/getContrastColor-28c18704.js +35 -0
  84. package/dist/esm/{hasInclusivePrice-3958ed11.js → hasInclusivePrice-6fcc712f.js} +1 -1
  85. package/dist/esm/index.js +15 -7
  86. package/dist/esm/{invoice-d3d256fb.js → invoice-055bb6e5.js} +2 -2
  87. package/dist/esm/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-797cea8b.js} +2 -2
  88. package/dist/esm/isContrastColor-69778cea.js +10 -0
  89. package/dist/esm/loader.js +1 -1
  90. package/dist/esm/{localization-401ec6d4.js → localization-853b48a9.js} +180 -0
  91. package/dist/esm/{paypal-61270b79.js → paypal-8d8518c0.js} +25 -28
  92. package/dist/esm/{placeTestOrder-c2180600.js → placeTestOrder-0a74923e.js} +2 -2
  93. package/dist/esm/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-bd059ecf.js} +2 -2
  94. package/dist/esm/{shouldRenderTaxIdInput-d45ceeb4.js → shouldRenderTaxIdInput-2572bf77.js} +18 -1
  95. package/dist/esm/submitGtag-89d6e9cb.js +113 -0
  96. package/dist/esm/zonos-address-display_9.entry.js +35 -5
  97. package/dist/esm/zonos-address_4.entry.js +37 -7
  98. package/dist/esm/zonos-card_5.entry.js +5 -3
  99. package/dist/esm/zonos-cart-items_12.entry.js +170 -57
  100. package/dist/esm/zonos-checkout.entry.js +31 -9
  101. package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
  102. package/dist/esm/zonos-collect-finish_6.entry.js +14 -12
  103. package/dist/esm/zonos-collect.entry.js +6 -4
  104. package/dist/esm/zonos-controller.entry.js +6 -3
  105. package/dist/esm/zonos-country-flag.entry.js +1 -1
  106. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  107. package/dist/esm/zonos-elements.js +1 -1
  108. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  109. package/dist/esm/zonos-hello.entry.js +1 -1
  110. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  111. package/dist/esm/zonos-invoice-finish_5.entry.js +14 -12
  112. package/dist/esm/zonos-invoice.entry.js +6 -4
  113. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  114. package/dist/esm/zonos-shipping-rich-radio.entry.js +19 -5
  115. package/dist/esm-es5/ShortAddressCode-7620e622.js +1 -0
  116. package/dist/esm-es5/cart-ba8f3890.js +1 -0
  117. package/dist/esm-es5/getContrastColor-28c18704.js +1 -0
  118. package/dist/esm-es5/{hasInclusivePrice-3958ed11.js → hasInclusivePrice-6fcc712f.js} +1 -1
  119. package/dist/esm-es5/index.js +1 -1
  120. package/dist/esm-es5/{invoice-d3d256fb.js → invoice-055bb6e5.js} +1 -1
  121. package/dist/esm-es5/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-797cea8b.js} +1 -1
  122. package/dist/esm-es5/isContrastColor-69778cea.js +1 -0
  123. package/dist/esm-es5/loader.js +1 -1
  124. package/dist/esm-es5/localization-853b48a9.js +1 -0
  125. package/dist/esm-es5/paypal-8d8518c0.js +17 -0
  126. package/dist/esm-es5/{placeTestOrder-c2180600.js → placeTestOrder-0a74923e.js} +1 -1
  127. package/dist/esm-es5/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-bd059ecf.js} +1 -1
  128. package/dist/esm-es5/shouldRenderTaxIdInput-2572bf77.js +1 -0
  129. package/dist/esm-es5/submitGtag-89d6e9cb.js +1 -0
  130. package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
  131. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  132. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  133. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  134. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  135. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  136. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  137. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  138. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  139. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  140. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  141. package/dist/esm-es5/zonos-elements.js +1 -1
  142. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  143. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  144. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  145. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  146. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  147. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  148. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  149. package/dist/scripts/analyticsRelayOnInit.js +1 -0
  150. package/dist/scripts/index.d.ts +61 -4
  151. package/dist/scripts/index.js +1 -1
  152. package/dist/scripts/loadZonos.js +1 -1
  153. package/dist/scripts/zonos.js +1 -1
  154. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +4 -0
  155. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +4 -0
  156. package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +4 -0
  157. package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +5 -0
  158. package/dist/types/components/store/checkout/stripe.d.ts +10 -0
  159. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  160. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  161. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  162. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  163. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  164. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  165. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  166. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  167. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  168. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  169. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  170. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  171. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  172. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  173. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  174. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  175. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  176. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  177. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  178. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  179. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +8 -0
  180. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +8 -0
  181. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  182. package/dist/types/components/utils/checkout/shouldRenderShortAddressCodeInput.d.ts +6 -0
  183. package/dist/types/components/utils/shortAddressCodeValidationResult.d.ts +12 -0
  184. package/dist/types/components/utils/submitGtag.d.ts +32 -2
  185. package/dist/types/components.d.ts +32 -0
  186. package/dist/types/scripts/_zonosBase.d.ts +11 -0
  187. package/dist/types/types/analyticsRelay.d.ts +12 -0
  188. package/dist/types/types/checkout/ShortAddressCode.d.ts +2 -0
  189. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -0
  190. package/dist/types/types/checkout/api/CreateParty.d.ts +1 -0
  191. package/dist/types/types/generated/graphql.frontend.types.d.ts +3 -1
  192. package/dist/types/types/generated/graphql.frontend.types.ts +3 -1
  193. package/dist/types/types/generated/graphql.internal.types.d.ts +157 -30
  194. package/dist/types/types/generated/graphql.internal.types.ts +194 -37
  195. package/dist/types/types/index.d.ts +1 -0
  196. package/dist/zonos-elements/index.esm.js +1 -1
  197. package/dist/zonos-elements/p-002e45f9.system.js +17 -0
  198. package/dist/zonos-elements/p-0792688d.system.entry.js +1 -0
  199. package/dist/zonos-elements/p-09aabce0.js +1 -0
  200. package/dist/zonos-elements/p-0b7beb16.system.entry.js +1 -0
  201. package/dist/zonos-elements/p-0f787f5d.entry.js +1 -0
  202. package/dist/zonos-elements/p-0ff93ca6.entry.js +1 -0
  203. package/dist/zonos-elements/p-14735e9a.system.entry.js +1 -0
  204. package/dist/zonos-elements/{p-367c13db.system.entry.js → p-1acf0a71.system.entry.js} +1 -1
  205. package/dist/zonos-elements/p-1d42cd20.js +1 -0
  206. package/dist/zonos-elements/p-1dbeeab2.entry.js +1 -0
  207. package/dist/zonos-elements/p-291f7ccb.system.entry.js +1 -0
  208. package/dist/zonos-elements/{p-67820c21.system.entry.js → p-2f55895c.system.entry.js} +1 -1
  209. package/dist/zonos-elements/p-37bb5f2d.entry.js +1 -0
  210. package/dist/zonos-elements/{p-fe699cc5.system.entry.js → p-3908f78d.system.entry.js} +1 -1
  211. package/dist/zonos-elements/p-3972663a.system.entry.js +1 -0
  212. package/dist/zonos-elements/{p-4d7b82b5.entry.js → p-39fa55c7.entry.js} +1 -1
  213. package/dist/zonos-elements/p-3e85b9f5.system.entry.js +1 -0
  214. package/dist/zonos-elements/{p-cee69784.entry.js → p-403b9fca.entry.js} +1 -1
  215. package/dist/zonos-elements/p-41299ffb.js +1 -0
  216. package/dist/zonos-elements/p-443e1f30.system.js +1 -0
  217. package/dist/zonos-elements/p-48475755.entry.js +1 -0
  218. package/dist/zonos-elements/p-48d55793.system.js +1 -0
  219. package/dist/zonos-elements/{p-3f46d83e.entry.js → p-58248f03.entry.js} +1 -1
  220. package/dist/zonos-elements/p-5edef7c3.system.js +1 -0
  221. package/dist/zonos-elements/p-63a383f4.js +1 -0
  222. package/dist/zonos-elements/{p-415c2a90.system.js → p-63a3d3b9.system.js} +1 -1
  223. package/dist/zonos-elements/p-64661dd1.js +1 -0
  224. package/dist/zonos-elements/p-655ec440.system.js +1 -0
  225. package/dist/zonos-elements/p-69212d0f.entry.js +1 -0
  226. package/dist/zonos-elements/{p-4bd8a16c.entry.js → p-69b9b711.entry.js} +1 -1
  227. package/dist/zonos-elements/p-719403e0.system.js +1 -0
  228. package/dist/zonos-elements/{p-133e9ce7.system.entry.js → p-71a8d971.system.entry.js} +1 -1
  229. package/dist/zonos-elements/p-71d855b8.system.entry.js +1 -0
  230. package/dist/zonos-elements/p-71f10bf0.entry.js +1 -0
  231. package/dist/zonos-elements/p-72ff005c.entry.js +1 -0
  232. package/dist/zonos-elements/p-786d1c24.js +1 -0
  233. package/dist/zonos-elements/{p-87206522.system.entry.js → p-7b400b5f.system.entry.js} +1 -1
  234. package/dist/zonos-elements/p-7dba5f23.system.js +1 -0
  235. package/dist/zonos-elements/{p-6b9b7cfb.system.entry.js → p-8205ae87.system.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-3a88a130.entry.js → p-83377e23.entry.js} +1 -1
  237. package/dist/zonos-elements/p-85e59f3a.system.entry.js +1 -0
  238. package/dist/zonos-elements/p-866afec1.js +1 -0
  239. package/dist/zonos-elements/p-942358eb.system.js +1 -0
  240. package/dist/zonos-elements/p-94c5fbfc.system.entry.js +1 -0
  241. package/dist/zonos-elements/p-a12cb7ce.entry.js +1 -0
  242. package/dist/zonos-elements/p-abf38ed6.js +1 -0
  243. package/dist/zonos-elements/{p-e0809901.system.js → p-ae16dda9.system.js} +1 -1
  244. package/dist/zonos-elements/p-ae26aec5.system.js +1 -0
  245. package/dist/zonos-elements/p-af85846e.system.js +1 -0
  246. package/dist/zonos-elements/{p-78c8bb58.system.entry.js → p-b54a95ea.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-a79f3685.js → p-bc4bfa06.js} +1 -1
  248. package/dist/zonos-elements/p-bf5e47e2.entry.js +1 -0
  249. package/dist/zonos-elements/p-c027a832.system.js +1 -0
  250. package/dist/zonos-elements/p-c2442878.system.js +1 -1
  251. package/dist/zonos-elements/p-c2f34b10.system.entry.js +1 -0
  252. package/dist/zonos-elements/p-c36696f9.js +1 -0
  253. package/dist/zonos-elements/p-c7311ce5.system.entry.js +1 -0
  254. package/dist/zonos-elements/{p-faae5eca.entry.js → p-d5b7d3c3.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-288aab46.js → p-de8899bc.js} +1 -1
  256. package/dist/zonos-elements/p-e17bbcee.entry.js +1 -0
  257. package/dist/zonos-elements/p-eea7ac64.js +1 -0
  258. package/dist/zonos-elements/p-f6c2c743.entry.js +1 -0
  259. package/dist/zonos-elements/p-fe06c9ea.js +17 -0
  260. package/dist/zonos-elements/p-fe96e239.system.js +1 -0
  261. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  262. package/package.json +1 -1
  263. package/dist/esm-es5/cart-7f4704dc.js +0 -1
  264. package/dist/esm-es5/localization-401ec6d4.js +0 -1
  265. package/dist/esm-es5/paypal-61270b79.js +0 -17
  266. package/dist/esm-es5/shouldRenderTaxIdInput-d45ceeb4.js +0 -1
  267. package/dist/zonos-elements/p-01b0a2e2.js +0 -1
  268. package/dist/zonos-elements/p-095f43ec.entry.js +0 -1
  269. package/dist/zonos-elements/p-1d91e5d1.entry.js +0 -1
  270. package/dist/zonos-elements/p-21fb6b39.js +0 -1
  271. package/dist/zonos-elements/p-2601538e.entry.js +0 -1
  272. package/dist/zonos-elements/p-276faa43.js +0 -1
  273. package/dist/zonos-elements/p-27874c22.entry.js +0 -1
  274. package/dist/zonos-elements/p-2889a485.system.entry.js +0 -1
  275. package/dist/zonos-elements/p-291b85f7.entry.js +0 -1
  276. package/dist/zonos-elements/p-2d2c627a.system.js +0 -1
  277. package/dist/zonos-elements/p-3b1898bc.system.entry.js +0 -1
  278. package/dist/zonos-elements/p-3f078bf5.system.entry.js +0 -1
  279. package/dist/zonos-elements/p-518b501c.system.entry.js +0 -1
  280. package/dist/zonos-elements/p-59ebb8c7.system.entry.js +0 -1
  281. package/dist/zonos-elements/p-5f956a0d.entry.js +0 -1
  282. package/dist/zonos-elements/p-6c29de12.entry.js +0 -1
  283. package/dist/zonos-elements/p-74e258ff.system.js +0 -1
  284. package/dist/zonos-elements/p-775c1122.system.js +0 -1
  285. package/dist/zonos-elements/p-7a6ab319.system.entry.js +0 -1
  286. package/dist/zonos-elements/p-85430ec1.js +0 -1
  287. package/dist/zonos-elements/p-872f9c22.system.entry.js +0 -1
  288. package/dist/zonos-elements/p-95524f54.js +0 -1
  289. package/dist/zonos-elements/p-993723c2.system.entry.js +0 -1
  290. package/dist/zonos-elements/p-a0a62b7e.js +0 -17
  291. package/dist/zonos-elements/p-a3411f20.entry.js +0 -1
  292. package/dist/zonos-elements/p-a556ec07.system.js +0 -17
  293. package/dist/zonos-elements/p-a6489088.js +0 -1
  294. package/dist/zonos-elements/p-acc0eee3.system.js +0 -1
  295. package/dist/zonos-elements/p-bd10e82a.system.entry.js +0 -1
  296. package/dist/zonos-elements/p-c62b6741.system.entry.js +0 -1
  297. package/dist/zonos-elements/p-c6aa780e.entry.js +0 -1
  298. package/dist/zonos-elements/p-d1effb76.system.js +0 -1
  299. package/dist/zonos-elements/p-e7543082.system.js +0 -1
  300. package/dist/zonos-elements/p-e7df8394.entry.js +0 -1
  301. package/dist/zonos-elements/p-e90e9584.entry.js +0 -1
  302. package/dist/zonos-elements/p-eb9ee025.system.js +0 -1
  303. package/dist/zonos-elements/p-ebef34e3.entry.js +0 -1
  304. package/dist/zonos-elements/p-f6c6b6d3.system.entry.js +0 -1
@@ -353,6 +353,9 @@ const stringsArabic = {
353
353
  'Invalid session': {
354
354
  value: 'جلسة غير صالحة',
355
355
  },
356
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
357
+ value: 'تنسيق رمز العنوان القصير غير صالح. يجب أن يكون 4 أحرف و4 أرقام.',
358
+ },
356
359
  'Invoice:': {
357
360
  value: 'فاتورة:',
358
361
  },
@@ -596,6 +599,12 @@ const stringsArabic = {
596
599
  'Shopping cart expired': {
597
600
  value: 'انتهت صلاحية عربة التسوق',
598
601
  },
602
+ 'Short address code': {
603
+ value: 'رمز العنوان القصير',
604
+ },
605
+ 'Short address code is required.': {
606
+ value: 'مطلوب رمز عنوان قصير.',
607
+ },
599
608
  Show: {
600
609
  value: 'عرض',
601
610
  },
@@ -1116,6 +1125,9 @@ const stringsBase = {
1116
1125
  'Invalid session': {
1117
1126
  value: 'Invalid session',
1118
1127
  },
1128
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
1129
+ value: 'Invalid short address code format. Must be 4 letters and 4 numbers.',
1130
+ },
1119
1131
  'Invoice:': {
1120
1132
  value: 'Invoice:',
1121
1133
  },
@@ -1359,6 +1371,12 @@ const stringsBase = {
1359
1371
  'Shopping cart expired': {
1360
1372
  value: 'Shopping cart expired',
1361
1373
  },
1374
+ 'Short address code': {
1375
+ value: 'Short address code',
1376
+ },
1377
+ 'Short address code is required.': {
1378
+ value: 'Short address code is required.',
1379
+ },
1362
1380
  Show: {
1363
1381
  value: 'Show',
1364
1382
  },
@@ -1878,6 +1896,9 @@ const stringsChinese = {
1878
1896
  'Invalid session': {
1879
1897
  value: '无效的会话',
1880
1898
  },
1899
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
1900
+ value: '无效的短地址代码格式。必须是4个字母和4个数字。',
1901
+ },
1881
1902
  'Invoice:': {
1882
1903
  value: '发票:',
1883
1904
  },
@@ -2121,6 +2142,12 @@ const stringsChinese = {
2121
2142
  'Shopping cart expired': {
2122
2143
  value: '购物车已过期',
2123
2144
  },
2145
+ 'Short address code': {
2146
+ value: '简短地址代码',
2147
+ },
2148
+ 'Short address code is required.': {
2149
+ value: '需要简短的地址代码。',
2150
+ },
2124
2151
  Show: {
2125
2152
  value: '显示',
2126
2153
  },
@@ -2640,6 +2667,9 @@ const stringsDanish = {
2640
2667
  'Invalid session': {
2641
2668
  value: 'Ugyldig session',
2642
2669
  },
2670
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
2671
+ value: 'Ugyldigt format for kort adressekode. Skal være 4 bogstaver og 4 tal.',
2672
+ },
2643
2673
  'Invoice:': {
2644
2674
  value: 'Faktura:',
2645
2675
  },
@@ -2883,6 +2913,12 @@ const stringsDanish = {
2883
2913
  'Shopping cart expired': {
2884
2914
  value: 'Indkøbskurv udløbet',
2885
2915
  },
2916
+ 'Short address code': {
2917
+ value: 'Kort adressekode',
2918
+ },
2919
+ 'Short address code is required.': {
2920
+ value: 'Kort adressekode er påkrævet.',
2921
+ },
2886
2922
  Show: {
2887
2923
  value: 'Vis',
2888
2924
  },
@@ -3402,6 +3438,9 @@ const stringsDutch = {
3402
3438
  'Invalid session': {
3403
3439
  value: 'Ongeldige sessie',
3404
3440
  },
3441
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
3442
+ value: 'Ongeldig formaat van korte adrescode. Moet 4 letters en 4 cijfers bevatten.',
3443
+ },
3405
3444
  'Invoice:': {
3406
3445
  value: 'Factuur:',
3407
3446
  },
@@ -3645,6 +3684,12 @@ const stringsDutch = {
3645
3684
  'Shopping cart expired': {
3646
3685
  value: 'Winkelwagen verlopen',
3647
3686
  },
3687
+ 'Short address code': {
3688
+ value: 'Korte adrescode',
3689
+ },
3690
+ 'Short address code is required.': {
3691
+ value: 'Korte adrescode is vereist.',
3692
+ },
3648
3693
  Show: {
3649
3694
  value: 'Tonen',
3650
3695
  },
@@ -4164,6 +4209,9 @@ const stringsFrench = {
4164
4209
  'Invalid session': {
4165
4210
  value: 'Session invalide',
4166
4211
  },
4212
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
4213
+ value: "Format de code d'adresse courte invalide. Doit être de 4 lettres et 4 chiffres.",
4214
+ },
4167
4215
  'Invoice:': {
4168
4216
  value: 'Facture:',
4169
4217
  },
@@ -4407,6 +4455,12 @@ const stringsFrench = {
4407
4455
  'Shopping cart expired': {
4408
4456
  value: 'Panier expiré',
4409
4457
  },
4458
+ 'Short address code': {
4459
+ value: "Code d'adresse court",
4460
+ },
4461
+ 'Short address code is required.': {
4462
+ value: "Un code d'adresse court est requis.",
4463
+ },
4410
4464
  Show: {
4411
4465
  value: 'Montrer',
4412
4466
  },
@@ -4926,6 +4980,9 @@ const stringsGerman = {
4926
4980
  'Invalid session': {
4927
4981
  value: 'Ungültige Sitzung',
4928
4982
  },
4983
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
4984
+ value: 'Ungültiges Format des Kurzadresscodes. Muss aus 4 Buchstaben und 4 Zahlen bestehen.',
4985
+ },
4929
4986
  'Invoice:': {
4930
4987
  value: 'Rechnung:',
4931
4988
  },
@@ -5169,6 +5226,12 @@ const stringsGerman = {
5169
5226
  'Shopping cart expired': {
5170
5227
  value: 'Einkaufswagen abgelaufen',
5171
5228
  },
5229
+ 'Short address code': {
5230
+ value: 'Kurzer Adresscode',
5231
+ },
5232
+ 'Short address code is required.': {
5233
+ value: 'Ein kurzer Adresscode ist erforderlich.',
5234
+ },
5172
5235
  Show: {
5173
5236
  value: 'Zeigen',
5174
5237
  },
@@ -5688,6 +5751,9 @@ const stringsHebrew = {
5688
5751
  'Invalid session': {
5689
5752
  value: 'סשן לא חוקי',
5690
5753
  },
5754
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
5755
+ value: 'פורמט קוד כתובת קצר לא חוקי. חייב להיות 4 אותיות ו-4 מספרים.',
5756
+ },
5691
5757
  'Invoice:': {
5692
5758
  value: 'חשבונית:',
5693
5759
  },
@@ -5931,6 +5997,12 @@ const stringsHebrew = {
5931
5997
  'Shopping cart expired': {
5932
5998
  value: 'תוקף עגלת הקניות פג',
5933
5999
  },
6000
+ 'Short address code': {
6001
+ value: 'קוד כתובת קצר',
6002
+ },
6003
+ 'Short address code is required.': {
6004
+ value: 'נדרש קוד כתובת קצר.',
6005
+ },
5934
6006
  Show: {
5935
6007
  value: 'הצג',
5936
6008
  },
@@ -6450,6 +6522,9 @@ const stringsIndonesian = {
6450
6522
  'Invalid session': {
6451
6523
  value: 'Sesi tidak valid',
6452
6524
  },
6525
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
6526
+ value: 'Format kode alamat pendek tidak valid. Harus terdiri dari 4 huruf dan 4 angka.',
6527
+ },
6453
6528
  'Invoice:': {
6454
6529
  value: 'Faktur:',
6455
6530
  },
@@ -6693,6 +6768,12 @@ const stringsIndonesian = {
6693
6768
  'Shopping cart expired': {
6694
6769
  value: 'Keranjang belanja kedaluwarsa',
6695
6770
  },
6771
+ 'Short address code': {
6772
+ value: 'Kode alamat pendek',
6773
+ },
6774
+ 'Short address code is required.': {
6775
+ value: 'Kode alamat pendek diperlukan.',
6776
+ },
6696
6777
  Show: {
6697
6778
  value: 'Tampilkan',
6698
6779
  },
@@ -7212,6 +7293,9 @@ const stringsItalian = {
7212
7293
  'Invalid session': {
7213
7294
  value: 'Sessione non valida',
7214
7295
  },
7296
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
7297
+ value: 'Formato del codice di indirizzo breve non valido. Deve essere composto da 4 lettere e 4 numeri.',
7298
+ },
7215
7299
  'Invoice:': {
7216
7300
  value: 'Fattura:',
7217
7301
  },
@@ -7455,6 +7539,12 @@ const stringsItalian = {
7455
7539
  'Shopping cart expired': {
7456
7540
  value: 'Carrello della spesa scaduto',
7457
7541
  },
7542
+ 'Short address code': {
7543
+ value: 'Codice di indirizzo breve',
7544
+ },
7545
+ 'Short address code is required.': {
7546
+ value: 'È richiesto un codice di indirizzo breve.',
7547
+ },
7458
7548
  Show: {
7459
7549
  value: 'Mostra',
7460
7550
  },
@@ -7974,6 +8064,9 @@ const stringsJapanese = {
7974
8064
  'Invalid session': {
7975
8065
  value: '無効なセッション',
7976
8066
  },
8067
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
8068
+ value: '無効な短い住所コード形式です。4文字と4数字でなければなりません。',
8069
+ },
7977
8070
  'Invoice:': {
7978
8071
  value: '請求書:',
7979
8072
  },
@@ -8217,6 +8310,12 @@ const stringsJapanese = {
8217
8310
  'Shopping cart expired': {
8218
8311
  value: 'ショッピングカートの期限が切れました',
8219
8312
  },
8313
+ 'Short address code': {
8314
+ value: '短い住所コード',
8315
+ },
8316
+ 'Short address code is required.': {
8317
+ value: '短い住所コードが必要です。',
8318
+ },
8220
8319
  Show: {
8221
8320
  value: '表示',
8222
8321
  },
@@ -8736,6 +8835,9 @@ const stringsKorean = {
8736
8835
  'Invalid session': {
8737
8836
  value: '유효하지 않은 세션',
8738
8837
  },
8838
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
8839
+ value: '잘못된 짧은 주소 코드 형식입니다. 4개의 문자와 4개의 숫자로 구성되어야 합니다.',
8840
+ },
8739
8841
  'Invoice:': {
8740
8842
  value: '송장:',
8741
8843
  },
@@ -8979,6 +9081,12 @@ const stringsKorean = {
8979
9081
  'Shopping cart expired': {
8980
9082
  value: '쇼핑 카트가 만료되었습니다',
8981
9083
  },
9084
+ 'Short address code': {
9085
+ value: '짧은 주소 코드',
9086
+ },
9087
+ 'Short address code is required.': {
9088
+ value: '짧은 주소 코드가 필요합니다.',
9089
+ },
8982
9090
  Show: {
8983
9091
  value: '보이다',
8984
9092
  },
@@ -9498,6 +9606,9 @@ const stringsNorwegian = {
9498
9606
  'Invalid session': {
9499
9607
  value: 'Ugyldig økt',
9500
9608
  },
9609
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
9610
+ value: 'Ugyldig format for kort adressekode. Må være 4 bokstaver og 4 tall.',
9611
+ },
9501
9612
  'Invoice:': {
9502
9613
  value: 'Faktura:',
9503
9614
  },
@@ -9741,6 +9852,12 @@ const stringsNorwegian = {
9741
9852
  'Shopping cart expired': {
9742
9853
  value: 'Handlekurv utløpt',
9743
9854
  },
9855
+ 'Short address code': {
9856
+ value: 'Kort adressekode',
9857
+ },
9858
+ 'Short address code is required.': {
9859
+ value: 'Kort adressekode er nødvendig.',
9860
+ },
9744
9861
  Show: {
9745
9862
  value: 'Vis',
9746
9863
  },
@@ -10260,6 +10377,9 @@ const stringsPolish = {
10260
10377
  'Invalid session': {
10261
10378
  value: 'Nieprawidłowa sesja',
10262
10379
  },
10380
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
10381
+ value: 'Nieprawidłowy format kodu krótkiego adresu. Musi zawierać 4 litery i 4 cyfry.',
10382
+ },
10263
10383
  'Invoice:': {
10264
10384
  value: 'Faktura:',
10265
10385
  },
@@ -10503,6 +10623,12 @@ const stringsPolish = {
10503
10623
  'Shopping cart expired': {
10504
10624
  value: 'Koszyk wygasł',
10505
10625
  },
10626
+ 'Short address code': {
10627
+ value: 'Krótki kod adresowy',
10628
+ },
10629
+ 'Short address code is required.': {
10630
+ value: 'Wymagany jest krótki kod adresowy.',
10631
+ },
10506
10632
  Show: {
10507
10633
  value: 'Pokaż',
10508
10634
  },
@@ -11022,6 +11148,9 @@ const stringsPortuguese = {
11022
11148
  'Invalid session': {
11023
11149
  value: 'Sessão inválida',
11024
11150
  },
11151
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
11152
+ value: 'Formato de código de endereço curto inválido. Deve ter 4 letras e 4 números.',
11153
+ },
11025
11154
  'Invoice:': {
11026
11155
  value: 'Fatura:',
11027
11156
  },
@@ -11265,6 +11394,12 @@ const stringsPortuguese = {
11265
11394
  'Shopping cart expired': {
11266
11395
  value: 'Carrinho de compras expirado',
11267
11396
  },
11397
+ 'Short address code': {
11398
+ value: 'Código de endereço curto',
11399
+ },
11400
+ 'Short address code is required.': {
11401
+ value: 'É necessário um código de endereço curto.',
11402
+ },
11268
11403
  Show: {
11269
11404
  value: 'Mostrar',
11270
11405
  },
@@ -11784,6 +11919,9 @@ const stringsRussian = {
11784
11919
  'Invalid session': {
11785
11920
  value: 'Недействительная сессия',
11786
11921
  },
11922
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
11923
+ value: 'Неверный формат кода короткого адреса. Должен содержать 4 буквы и 4 цифры.',
11924
+ },
11787
11925
  'Invoice:': {
11788
11926
  value: 'Счет:',
11789
11927
  },
@@ -12027,6 +12165,12 @@ const stringsRussian = {
12027
12165
  'Shopping cart expired': {
12028
12166
  value: 'Срок действия корзины истек',
12029
12167
  },
12168
+ 'Short address code': {
12169
+ value: 'Короткий код адреса',
12170
+ },
12171
+ 'Short address code is required.': {
12172
+ value: 'Требуется короткий код адреса.',
12173
+ },
12030
12174
  Show: {
12031
12175
  value: 'Показать',
12032
12176
  },
@@ -12546,6 +12690,9 @@ const stringsSpanish = {
12546
12690
  'Invalid session': {
12547
12691
  value: 'Sesión no válida',
12548
12692
  },
12693
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
12694
+ value: 'Formato de código de dirección corta no válido. Debe ser de 4 letras y 4 números.',
12695
+ },
12549
12696
  'Invoice:': {
12550
12697
  value: 'Factura:',
12551
12698
  },
@@ -12789,6 +12936,12 @@ const stringsSpanish = {
12789
12936
  'Shopping cart expired': {
12790
12937
  value: 'Carrito de compras caducado',
12791
12938
  },
12939
+ 'Short address code': {
12940
+ value: 'Código de dirección corto',
12941
+ },
12942
+ 'Short address code is required.': {
12943
+ value: 'Se requiere un código de dirección corto.',
12944
+ },
12792
12945
  Show: {
12793
12946
  value: 'Mostrar',
12794
12947
  },
@@ -13308,6 +13461,9 @@ const stringsSwedish = {
13308
13461
  'Invalid session': {
13309
13462
  value: 'Ogiltig session',
13310
13463
  },
13464
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
13465
+ value: 'Ogiltigt format för kort adresskod. Måste vara 4 bokstäver och 4 siffror.',
13466
+ },
13311
13467
  'Invoice:': {
13312
13468
  value: 'Faktura:',
13313
13469
  },
@@ -13551,6 +13707,12 @@ const stringsSwedish = {
13551
13707
  'Shopping cart expired': {
13552
13708
  value: 'Kundvagn har gått ut',
13553
13709
  },
13710
+ 'Short address code': {
13711
+ value: 'Kort adresskod',
13712
+ },
13713
+ 'Short address code is required.': {
13714
+ value: 'Kort adresskod krävs.',
13715
+ },
13554
13716
  Show: {
13555
13717
  value: 'Visa',
13556
13718
  },
@@ -14070,6 +14232,9 @@ const stringsTurkish = {
14070
14232
  'Invalid session': {
14071
14233
  value: 'Geçersiz oturum',
14072
14234
  },
14235
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
14236
+ value: 'Geçersiz kısa adres kodu formatı. 4 harf ve 4 rakam olmalıdır.',
14237
+ },
14073
14238
  'Invoice:': {
14074
14239
  value: 'Fatura:',
14075
14240
  },
@@ -14313,6 +14478,12 @@ const stringsTurkish = {
14313
14478
  'Shopping cart expired': {
14314
14479
  value: 'Alışveriş sepeti süresi doldu',
14315
14480
  },
14481
+ 'Short address code': {
14482
+ value: 'Kısa adres kodu',
14483
+ },
14484
+ 'Short address code is required.': {
14485
+ value: 'Kısa adres kodu gereklidir.',
14486
+ },
14316
14487
  Show: {
14317
14488
  value: 'Göster',
14318
14489
  },
@@ -14832,6 +15003,9 @@ const stringsVietnamese = {
14832
15003
  'Invalid session': {
14833
15004
  value: 'Phiên không hợp lệ',
14834
15005
  },
15006
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
15007
+ value: 'Định dạng mã địa chỉ ngắn không hợp lệ. Phải là 4 chữ cái và 4 chữ số.',
15008
+ },
14835
15009
  'Invoice:': {
14836
15010
  value: 'Hóa đơn:',
14837
15011
  },
@@ -15075,6 +15249,12 @@ const stringsVietnamese = {
15075
15249
  'Shopping cart expired': {
15076
15250
  value: 'Giỏ hàng đã hết hạn',
15077
15251
  },
15252
+ 'Short address code': {
15253
+ value: 'Mã địa chỉ ngắn',
15254
+ },
15255
+ 'Short address code is required.': {
15256
+ value: 'Cần có mã địa chỉ ngắn.',
15257
+ },
15078
15258
  Show: {
15079
15259
  value: 'Hiển thị',
15080
15260
  },
@@ -1,11 +1,12 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-37a4b4f4.js');
4
- const cart = require('./cart-52cf3366.js');
5
- const localization = require('./localization-b1075a8c.js');
4
+ const cart = require('./cart-28310848.js');
5
+ const localization = require('./localization-00e73920.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
- const isDarkColor = require('./isDarkColor-878e600e.js');
7
+ const isContrastColor = require('./isContrastColor-09f5924a.js');
8
8
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
9
+ const submitGtag = require('./submitGtag-a50ab32e.js');
9
10
 
10
11
  /*!
11
12
  * paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
@@ -226,28 +227,6 @@ const paypalCreateOrder = async ({ checkoutSessionId, intent, }) => {
226
227
  return { errors, json };
227
228
  };
228
229
 
229
- const isContrastColor = ({ backgroundColor1, backgroundColor2, }) => {
230
- // get readibility of the color
231
- const colorReadibilityValue = isDarkColor.tinycolor.readability(backgroundColor1, backgroundColor2);
232
- // If the readibility is less than 2.5, then we need to use different color
233
- return colorReadibilityValue > 2.5;
234
- };
235
-
236
- /**
237
- * Submit a gtag event if the gtag function is available.
238
- */
239
- const submitGtag = (event) => {
240
- const googleAnalyticSetting = zonosStore.zonosStore.checkoutSettings.analyticsProviders.find(item => item.type === 'GOOGLE_ANALYTICS');
241
- // only submit if googleAnalytic in checkout setting is on.
242
- if (!googleAnalyticSetting || (googleAnalyticSetting === null || googleAnalyticSetting === void 0 ? void 0 : googleAnalyticSetting.status) === 'DISABLED') {
243
- return;
244
- }
245
- if (typeof window.gtag === 'function') {
246
- VarianceTest.log('Zonos submits gtag event', 'log', event);
247
- window.gtag('event', event, {});
248
- }
249
- };
250
-
251
230
  const { onChange: paypalStoreOnChange, reset: paypalStoreReset, state: paypalStore, } = zonosStore.createStore(() => ({
252
231
  intent: 'capture',
253
232
  orderIdCreated: null,
@@ -308,7 +287,7 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
308
287
  // Paypal gold color
309
288
  const paypalGoldColorHex = '#ffc33a';
310
289
  // check if the paypal gold color is contrast to the background
311
- const isContrast = isContrastColor({
290
+ const isContrast = isContrastColor.isContrastColor({
312
291
  backgroundColor1: paypalGoldColorHex,
313
292
  backgroundColor2: colorPrimary || '',
314
293
  });
@@ -328,6 +307,12 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
328
307
  // reset stripe error message
329
308
  cart.stripeStore.hasPaymentError = false;
330
309
  cart.stripeStore.customErrorMessage = null;
310
+ submitGtag.submitGtag({
311
+ event: 'zonos-checkout-payment-fail',
312
+ metadata: {
313
+ checkoutSessionId,
314
+ },
315
+ });
331
316
  onPaypalFail === null || onPaypalFail === void 0 ? void 0 : onPaypalFail();
332
317
  return '';
333
318
  }
@@ -360,6 +345,12 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
360
345
  // reset stripe error message
361
346
  cart.stripeStore.hasPaymentError = false;
362
347
  cart.stripeStore.customErrorMessage = null;
348
+ submitGtag.submitGtag({
349
+ event: 'zonos-checkout-payment-fail',
350
+ metadata: {
351
+ checkoutSessionId,
352
+ },
353
+ });
363
354
  // trigger fail event
364
355
  onPaypalFail === null || onPaypalFail === void 0 ? void 0 : onPaypalFail();
365
356
  return '';
@@ -370,7 +361,13 @@ const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionD
370
361
  // reset paypal error banner
371
362
  paypalStore.paypalErrorMessage = null;
372
363
  // submit google tag when the form is complete
373
- submitGtag('zonos-checkout-payment-info');
364
+ submitGtag.submitGtag({
365
+ event: 'zonos-checkout-payment-info',
366
+ metadata: {
367
+ checkoutSessionId,
368
+ paymentMethod: 'paypal',
369
+ },
370
+ });
374
371
  const orderId = await paypalStoreCaptureOrder({
375
372
  checkoutSessionId,
376
373
  paypalMockResponse: window.Zonos._paypalMockResponse,
@@ -485,11 +482,9 @@ const paypalStoreHasPaypalEnabled = () => {
485
482
  return paypalEnabledInSetting || !!paypalStore.paypalButtons.length;
486
483
  };
487
484
 
488
- exports.isContrastColor = isContrastColor;
489
485
  exports.paypalInitScript = paypalInitScript;
490
486
  exports.paypalStore = paypalStore;
491
487
  exports.paypalStoreHasPaypalEnabled = paypalStoreHasPaypalEnabled;
492
488
  exports.paypalStoreInitButtons = paypalStoreInitButtons;
493
489
  exports.paypalStoreOnChange = paypalStoreOnChange;
494
490
  exports.paypalStoreReset = paypalStoreReset;
495
- exports.submitGtag = submitGtag;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-52cf3366.js');
4
- const localization = require('./localization-b1075a8c.js');
3
+ const cart = require('./cart-28310848.js');
4
+ const localization = require('./localization-00e73920.js');
5
5
  const handleFetch = require('./handleFetch-954f30e1.js');
6
6
 
7
7
  const placeTestOrder = async () => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-52cf3366.js');
4
- const localization = require('./localization-b1075a8c.js');
3
+ const cart = require('./cart-28310848.js');
4
+ const localization = require('./localization-00e73920.js');
5
5
 
6
6
  const getDisplayCurrency = () => {
7
7
  var _a, _b;
@@ -1,7 +1,24 @@
1
1
  'use strict';
2
2
 
3
+ const ShortAddressCode = require('./ShortAddressCode-bec338b0.js');
3
4
  const TaxId = require('./TaxId-12acedde.js');
4
5
 
6
+ const isInShortAddressCodeCountry = (countryCode) => {
7
+ return ShortAddressCode.countryRequireShortAddressCode.includes(countryCode);
8
+ };
9
+ /**
10
+ * Checks if the short address code input should be rendered based on the country code.
11
+ */
12
+ const shouldRenderShortAddressCodeInput = ({ countryCode, }) => {
13
+ // If country require short address code, show the input
14
+ const isCountryRequireShortAddressCode = isInShortAddressCodeCountry(countryCode);
15
+ if (isCountryRequireShortAddressCode) {
16
+ return true;
17
+ }
18
+ // If country doesn't require short address code, no need to show the input
19
+ return false;
20
+ };
21
+
5
22
  const isInTaxIdCountry = (countryCode) => {
6
23
  return TaxId.countryRequireTaxId.includes(countryCode);
7
24
  };
@@ -22,4 +39,5 @@ const shouldRenderTaxIdInput = ({ companyName, countryCode, }) => {
22
39
  return false;
23
40
  };
24
41
 
42
+ exports.shouldRenderShortAddressCodeInput = shouldRenderShortAddressCodeInput;
25
43
  exports.shouldRenderTaxIdInput = shouldRenderTaxIdInput;