@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
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-0bbe9693.js';
2
- import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-401ec6d4.js';
2
+ import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-853b48a9.js';
3
3
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
4
- import { K as extractName, b as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-7f4704dc.js';
4
+ import { K as extractName, b as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-ba8f3890.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
6
  import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
7
7
  import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
@@ -9,11 +9,12 @@ import { R as RemoveIcon$2 } from './RemoveIcon-9dc5dd1a.js';
9
9
  import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
10
10
  import { t as throttle_1 } from './throttle-ce2432ab.js';
11
11
  import { i as isCheckoutMobile } from './handleFetch-a844cac1.js';
12
- import { s as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-d45ceeb4.js';
12
+ import { a as shouldRenderTaxIdInput, s as shouldRenderShortAddressCodeInput } from './shouldRenderTaxIdInput-2572bf77.js';
13
13
  import { l as log } from './VarianceTest-572cecf5.js';
14
14
  import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
15
15
  import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
16
16
  import './debounce-c4785346.js';
17
+ import './ShortAddressCode-7620e622.js';
17
18
 
18
19
  const zonosAddressDisplayCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--title{margin-bottom:12px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:4px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-line{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .zonos--address-line zonos-text+zonos-text::before{content:\", \";color:var(--zonos-elements-gray-1000);margin-right:4px}:host .zonos--country-flag{width:20px;height:14px;border-radius:2px;margin:1px;position:relative;overflow:hidden;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);margin-right:8px;z-index:10;justify-self:center}";
19
20
  const ZonosAddressDisplayStyle0 = zonosAddressDisplayCss;
@@ -503,6 +504,10 @@ const ZonosAddress = class {
503
504
  * Error message for tax id input
504
505
  */
505
506
  this.taxIdErrorMessage = '';
507
+ /**
508
+ * Error message for short address code input
509
+ */
510
+ this.shortAddressCodeErrorMessage = '';
506
511
  this.stripe = window.Zonos.stripe;
507
512
  /**
508
513
  * Check if the address is dirty or not to scroll into view. When the component is mounted, if the data is filled with address line 1, it's considered dirty
@@ -833,6 +838,31 @@ const ZonosAddress = class {
833
838
  stripeStore.taxId = event.detail;
834
839
  } })));
835
840
  }
841
+ /**
842
+ * Render short address code input based on ship to country code
843
+ */
844
+ renderShortAddressCodeInput() {
845
+ var _a;
846
+ // No need to render short address code input for billing address
847
+ if (this.type === 'billing') {
848
+ return null;
849
+ }
850
+ const countryCode = (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
851
+ // Don't render short address code input if the country is not provided
852
+ if (!countryCode) {
853
+ return null;
854
+ }
855
+ const shortAddressCodeInputRendered = shouldRenderShortAddressCodeInput({
856
+ countryCode,
857
+ });
858
+ // Don't render short address code input if the country doesn't require short address code
859
+ if (!shortAddressCodeInputRendered) {
860
+ return null;
861
+ }
862
+ return (h("div", { class: "zonos--short-address-code-input" }, h("zonos-stripe-input", { inputLabel: translate('Short address code'), inputPlaceholder: "RRRD2929", inputValue: stripeStore.shortAddressCode || '', isError: !!this.shortAddressCodeErrorMessage, onInputChange: (event) => {
863
+ stripeStore.shortAddressCode = event.detail;
864
+ } }), this.shortAddressCodeErrorMessage && (h("zonos-text", { textColor: "red-600", type: "caption" }, this.shortAddressCodeErrorMessage))));
865
+ }
836
866
  renderCompanyNameInput() {
837
867
  // No need to render company name for billing address
838
868
  if (this.type === 'billing') {
@@ -1357,10 +1387,10 @@ const ZonosAddress = class {
1357
1387
  this.country = localizationStore.selectedCountryCode;
1358
1388
  }
1359
1389
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1360
- return (h(Host, { key: '7214ab1c348c1236dfa65f3bb20866fb3262c35d', class: classes([
1390
+ return (h(Host, { key: '4a2a2bb06e16eb0470b827efd104c1a7a373e2b5', class: classes([
1361
1391
  'zonos--address zonos--elements',
1362
1392
  `zonos--${this.type}-address`,
1363
- ]) }, h("zonos-text", { key: '3ce287d8ffd3f5fdb4745311d17992c0b9ee9678', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: '0e33486852d6512b054bb480d0295ce97d2667eb', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1393
+ ]) }, h("zonos-text", { key: '74fd51761c8672e23ada3c5f1bac121cdf559ca6', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: 'e21b18b079f013e1bdaf2ab526c1c7826f2376f0', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
1364
1394
  }
1365
1395
  get el() { return getElement(this); }
1366
1396
  static get watchers() { return {
@@ -1,18 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-0bbe9693.js';
2
2
  import { t as throttle_1 } from './throttle-ce2432ab.js';
3
- import { b as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-7f4704dc.js';
4
- import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-401ec6d4.js';
3
+ import { b as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-ba8f3890.js';
4
+ import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-853b48a9.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
6
6
  import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
7
- import { s as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-d45ceeb4.js';
7
+ import { a as shouldRenderTaxIdInput, s as shouldRenderShortAddressCodeInput } from './shouldRenderTaxIdInput-2572bf77.js';
8
8
  import { c as classes } from './classes-0d95c529.js';
9
9
  import { l as log } from './VarianceTest-572cecf5.js';
10
10
  import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
11
11
  import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
12
12
  import './debounce-c4785346.js';
13
13
  import './isDarkColor-9ddd90cc.js';
14
+ import './ShortAddressCode-7620e622.js';
14
15
 
15
- const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--company-name-input.sc-zonos-address,.sc-zonos-address-h .zonos--tax-id-input.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
16
+ const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--company-name-input.sc-zonos-address,.sc-zonos-address-h .zonos--tax-id-input.sc-zonos-address,.sc-zonos-address-h .zonos--short-address-code-input.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
16
17
  const ZonosAddressStyle0 = zonosAddressCss;
17
18
 
18
19
  const ZonosAddress = class {
@@ -33,6 +34,10 @@ const ZonosAddress = class {
33
34
  * Error message for tax id input
34
35
  */
35
36
  this.taxIdErrorMessage = '';
37
+ /**
38
+ * Error message for short address code input
39
+ */
40
+ this.shortAddressCodeErrorMessage = '';
36
41
  this.stripe = window.Zonos.stripe;
37
42
  /**
38
43
  * Check if the address is dirty or not to scroll into view. When the component is mounted, if the data is filled with address line 1, it's considered dirty
@@ -262,7 +267,32 @@ const ZonosAddress = class {
262
267
  return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
263
268
  stripeStore.taxId = event.detail;
264
269
  this.taxIdChanged.emit(event.detail);
265
- } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
270
+ } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: "red-600", type: "caption" }, this.taxIdErrorMessage))));
271
+ }
272
+ /**
273
+ * Render short address code input based on ship to country code
274
+ */
275
+ renderShortAddressCodeInput() {
276
+ var _a;
277
+ // No need to render short address code input for billing address
278
+ if (this.type === 'billing') {
279
+ return null;
280
+ }
281
+ const countryCode = (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
282
+ // Don't render short address code input if the country is not provided
283
+ if (!countryCode) {
284
+ return null;
285
+ }
286
+ const shortAddressCodeInputRendered = shouldRenderShortAddressCodeInput({
287
+ countryCode,
288
+ });
289
+ // Don't render short address code input if the country doesn't require short address code
290
+ if (!shortAddressCodeInputRendered) {
291
+ return null;
292
+ }
293
+ return (h("div", { class: "zonos--short-address-code-input" }, h("zonos-stripe-input", { inputLabel: translate('Short address code'), inputPlaceholder: "RRRD2929", inputValue: stripeStore.shortAddressCode || '', isError: !!this.shortAddressCodeErrorMessage, onInputChange: (event) => {
294
+ stripeStore.shortAddressCode = event.detail;
295
+ } }), this.shortAddressCodeErrorMessage && (h("zonos-text", { textColor: "red-600", type: "caption" }, this.shortAddressCodeErrorMessage))));
266
296
  }
267
297
  renderCompanyNameInput() {
268
298
  // No need to render company name for billing address (only allow for Collect and Invoice)
@@ -324,11 +354,11 @@ const ZonosAddress = class {
324
354
  this.isAddressFilled = true;
325
355
  }
326
356
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
327
- return (h(Host, { key: 'b02889c4677a27a8c54a411d66fb31e15af78e1a', class: classes([
357
+ return (h(Host, { key: '5dc571d7c5e706ae9cb90de70deee22847e5ba7e', class: classes([
328
358
  'zonos--address',
329
359
  'zonos--elements',
330
360
  `zonos--${this.type}-address`,
331
- ]) }, this.titleText && (h("zonos-text", { key: 'f52beb7ed6699ec1c73ee35a3436798a1fea38c7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: '7c9602892de932e8a3f90a37b53a936f39082916', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '8ea6698f5b9d3bb525942c146e2cf67fefad6ad8', class: "zonos--address-component" })));
361
+ ]) }, this.titleText && (h("zonos-text", { key: 'a7c9f730bc9b64aa2c6e8cc24701e638481eac19', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: '3078529c201c7947ffc833485d46184bc79ab1d1', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), h("div", { key: 'b4a9850ac30ad9c483e05743ff41b7de9756d826', class: "zonos--address-component" })));
332
362
  }
333
363
  get el() { return getElement(this); }
334
364
  static get watchers() { return {
@@ -2,12 +2,14 @@ import { r as registerInstance, h, H as Host, a as getElement, c as createEvent
2
2
  import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
5
- import { b as stripeStore, t as trackConversionEvent } from './cart-7f4704dc.js';
6
- import { s as storageStore } from './localization-401ec6d4.js';
5
+ import { b as stripeStore, t as trackConversionEvent } from './cart-ba8f3890.js';
6
+ import { s as storageStore } from './localization-853b48a9.js';
7
7
  import { l as logError } from './handleFetch-a844cac1.js';
8
- import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-61270b79.js';
8
+ import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-8d8518c0.js';
9
9
  import { l as log } from './VarianceTest-572cecf5.js';
10
10
  import './isDarkColor-9ddd90cc.js';
11
+ import './isContrastColor-69778cea.js';
12
+ import './submitGtag-89d6e9cb.js';
11
13
 
12
14
  const zonosCardCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
13
15
  const ZonosCardStyle0 = zonosCardCss;
@@ -1,25 +1,29 @@
1
1
  import { r as registerInstance, d as getAssetPath, h, H as Host, F as Fragment, c as createEvent, a as getElement } from './index-0bbe9693.js';
2
- import { d as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, b as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-7f4704dc.js';
3
- import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-401ec6d4.js';
4
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-dea06d44.js';
2
+ import { d as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, b as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-ba8f3890.js';
3
+ import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-853b48a9.js';
4
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-bd059ecf.js';
5
5
  import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
6
6
  import { c as classes } from './classes-0d95c529.js';
7
7
  import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
8
- import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-3958ed11.js';
9
- import { s as submitGtag, c as paypalStoreReset, a as paypalStore, i as isContrastColor } from './paypal-61270b79.js';
8
+ import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-6fcc712f.js';
9
+ import { c as paypalStoreReset, a as paypalStore } from './paypal-8d8518c0.js';
10
10
  import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
11
11
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
12
12
  import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
13
13
  import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
14
+ import { s as submitGtag } from './submitGtag-89d6e9cb.js';
14
15
  import { l as languages } from './ILanguage-cd6acb72.js';
15
- import { p as placeTestOrder } from './placeTestOrder-c2180600.js';
16
- import { i as isDarkColor, t as tinycolor } from './isDarkColor-9ddd90cc.js';
16
+ import { p as placeTestOrder } from './placeTestOrder-0a74923e.js';
17
+ import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
18
+ import { g as getContrastColor } from './getContrastColor-28c18704.js';
17
19
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
18
20
  import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
19
21
  import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
20
- import { s as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-d45ceeb4.js';
22
+ import { s as shouldRenderShortAddressCodeInput, a as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-2572bf77.js';
21
23
  import { e as euCountryCodes } from './TaxId-50d72254.js';
24
+ import './isContrastColor-69778cea.js';
22
25
  import './debounce-c4785346.js';
26
+ import './ShortAddressCode-7620e622.js';
23
27
 
24
28
  const zonosCartItemsCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--cart-table td{vertical-align:top}:host .zonos--cart-item-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}:host .zonos--cart-item-name .zonos--cart-item-quantity>*{display:inline-block}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px}";
25
29
  const ZonosCartItemsStyle0 = zonosCartItemsCss;
@@ -352,6 +356,56 @@ const ZonosCheckoutFinish = class {
352
356
  order: json,
353
357
  };
354
358
  };
359
+ /**
360
+ * Metadata for purchase event in GA4
361
+ */
362
+ this.buildPurchaseMetadata = ({ checkoutSessionId, currency, }) => {
363
+ var _a, _b, _c, _d, _e, _f;
364
+ const items = cartStore.items
365
+ .filter(item => item.amount >= 0)
366
+ .map(item => ({
367
+ item_id: item.sku || item.productId || item.name,
368
+ item_name: item.name,
369
+ price: item.amount,
370
+ quantity: item.quantity,
371
+ }));
372
+ /**
373
+ * The value of this parameter should be the sum of all item amounts in the transaction (without shipping and tax).
374
+ * @ref https://developers.google.com/analytics/devguides/collection/ga4/reference/events?client_type=gtag#parameters_22
375
+ */
376
+ const subtotal = ((_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.subtotals.items) ||
377
+ ((_b = this.order) === null || _b === void 0 ? void 0 : _b.amountSubtotals.items);
378
+ const currencyCode = ((_c = cartStore.checkoutSession) === null || _c === void 0 ? void 0 : _c.subtotals.presentmentCurrencyCode) ||
379
+ ((_d = this.order) === null || _d === void 0 ? void 0 : _d.currencyCode) ||
380
+ (currency === null || currency === void 0 ? void 0 : currency.toUpperCase());
381
+ // Cart subtotal amount, can be different on the final checkout session/payment intent, therefore only use it if the order/checkout session can not be found.
382
+ const cartSubtotal = items.reduce((acc, item) => acc + item.price * item.quantity, 0);
383
+ const cartCurrency = (_e = cartStore.items.find(Boolean)) === null || _e === void 0 ? void 0 : _e.currencyCode;
384
+ const transactionId = ((_f = this.order) === null || _f === void 0 ? void 0 : _f.id) || checkoutSessionId || new Date().getTime().toString();
385
+ if (currencyCode && subtotal) {
386
+ return {
387
+ currency: currencyCode,
388
+ items,
389
+ transaction_id: transactionId,
390
+ value: subtotal,
391
+ };
392
+ }
393
+ // Use cart currency and subtotal if the order/checkout session can not be found
394
+ if (cartCurrency && cartSubtotal) {
395
+ return {
396
+ currency: cartCurrency,
397
+ items,
398
+ transaction_id: transactionId,
399
+ value: cartSubtotal,
400
+ };
401
+ }
402
+ return {
403
+ currency: undefined,
404
+ items,
405
+ transaction_id: transactionId,
406
+ value: undefined,
407
+ };
408
+ };
355
409
  this.redirectToUrl = (url) => {
356
410
  // reset store and checkout session id before redirecting
357
411
  stripeStoreReset();
@@ -534,7 +588,7 @@ const ZonosCheckoutFinish = class {
534
588
  this.checkStripePaymentStatus = async () => {
535
589
  const clientSecret = new URLSearchParams(window.location.search).get('payment_intent_client_secret') || stripeStore.clientSecret;
536
590
  if (clientSecret || this.storybookForceStatus) {
537
- const { error, messages, status } = await stripeStoreRetrievePayment({
591
+ const { currency, error, messages, status } = await stripeStoreRetrievePayment({
538
592
  clientSecret,
539
593
  storybookForceStatus: this.storybookForceStatus,
540
594
  });
@@ -560,7 +614,12 @@ const ZonosCheckoutFinish = class {
560
614
  window.history.replaceState({}, '', url.toString());
561
615
  // Payment doesn't go through
562
616
  if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
563
- submitGtag('zonos-checkout-payment-fail');
617
+ submitGtag({
618
+ event: 'zonos-checkout-payment-fail',
619
+ metadata: {
620
+ checkoutSessionId: storageStore.checkoutSessionId,
621
+ },
622
+ });
564
623
  void sendErrorLog({
565
624
  endpoint: 'Stripe payment failed',
566
625
  errors: [
@@ -575,8 +634,21 @@ const ZonosCheckoutFinish = class {
575
634
  else {
576
635
  // Save new order info in case the user reloads before we get order info
577
636
  this.saveOrderIdForDuplicationIssue();
578
- submitGtag('zonos-checkout-success');
579
637
  const checkoutSessionId = storageStore.checkoutSessionId;
638
+ submitGtag({
639
+ event: 'zonos-checkout-success',
640
+ metadata: this.buildPurchaseMetadata({
641
+ checkoutSessionId: checkoutSessionId || '',
642
+ currency: currency === null || currency === void 0 ? void 0 : currency.toUpperCase(),
643
+ }),
644
+ });
645
+ submitGtag({
646
+ event: 'purchase',
647
+ metadata: this.buildPurchaseMetadata({
648
+ checkoutSessionId: checkoutSessionId || '',
649
+ currency: currency === null || currency === void 0 ? void 0 : currency.toUpperCase(),
650
+ }),
651
+ });
580
652
  void trackConversionEvent({
581
653
  checkoutSessionId,
582
654
  eventName: 'checkout_orderCompleted',
@@ -622,7 +694,18 @@ const ZonosCheckoutFinish = class {
622
694
  // show success message right away when order id is already created
623
695
  this.isLoading = false;
624
696
  if (paypalStore.orderIdCreated) {
625
- submitGtag('zonos-checkout-success');
697
+ submitGtag({
698
+ event: 'zonos-checkout-success',
699
+ metadata: this.buildPurchaseMetadata({
700
+ checkoutSessionId: storageStore.checkoutSessionId || '',
701
+ }),
702
+ });
703
+ submitGtag({
704
+ event: 'purchase',
705
+ metadata: this.buildPurchaseMetadata({
706
+ checkoutSessionId: storageStore.checkoutSessionId || '',
707
+ }),
708
+ });
626
709
  const checkoutSessionId = storageStore.checkoutSessionId;
627
710
  void trackConversionEvent({
628
711
  checkoutSessionId,
@@ -684,11 +767,11 @@ const ZonosCheckoutFinish = class {
684
767
  }
685
768
  render() {
686
769
  const isTestMode = getIsTestMode();
687
- return (h(Host, { key: '7b18913d8ebe7be5cbe9ee7d520b643c342c409d', class: "zonos--checkout-finish zonos--elements", style: {
770
+ return (h(Host, { key: '80a543fca5dbc63dde41806702b2f6dd4fa849ab', class: "zonos--checkout-finish zonos--elements", style: {
688
771
  '--zonos--border-radius': getBorderRadius({
689
772
  overrideBorderStyle: this.borderRadius,
690
773
  }),
691
- } }, !this.isLoading && (h("div", { key: 'afb522b8b3b769817c00312fc9c14b4c032873ca', class: "zonos--finish-details" }, h("div", { key: 'c8cd43bc5269f7f252abaeb25dc98929f52b89bb', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '1a7ead411d64fc8edf2de0383049bfd60660a315', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '0c63714bbefc4e9beb1d2cf7414e5774bab4eabe', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: '06304d9815e2199108dfcb3dade1494f17b76137',
774
+ } }, !this.isLoading && (h("div", { key: '6cab293041902e156563f37db6f0e77caaeeaaf9', class: "zonos--finish-details" }, h("div", { key: '6bf32844fa9d38eae6e9f337e56b7918e49bf793', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'bf13e59b7bc2380609ffba879fa2b1d8c5d9a9e0', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: 'c246affb94a9799e0c556affb73b2ebfb69a9c7f', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: '61fa4fa0e09c0ce2905281b2696f42172c7a2bcd',
692
775
  // Only show loading spinner if it's not an error notification
693
776
  loading: this.isWaitingToRedirect &&
694
777
  this.notificationType !== 'error', onClick: () => {
@@ -700,9 +783,9 @@ const ZonosCheckoutFinish = class {
700
783
  }
701
784
  this.closeClickHandler();
702
785
  }, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
703
- this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '9b809e21052fddb2149a2a1d0c22db4b10808403', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
786
+ this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '9227d7832ed477be556cb6d59c644a74c293c740', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
704
787
  cartStore.step === 'finish' &&
705
- this.notificationType === 'success' && (h("div", { key: '4a278c7c4270d265c61b6b36d20864c55e1b42f1', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: 'fd8a876a0c5b76edd3be2d9b28da9c3963aee714', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '7882981c1fe01ab6f78d8f84bcfc9aab94bffb74', onClick: () => {
788
+ this.notificationType === 'success' && (h("div", { key: '9107be1ef7895b0a5e3fe0a985036a11de7011d3', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: 'b0de8743bea8dd9ac7099bd5b77811f80d80a380', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'f90749b9af4c17eac554efb6d3d12cc41ac6e3c8', onClick: () => {
706
789
  const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
707
790
  this.redirectToUrl(isZonosDashboard
708
791
  ? '/orders/all'
@@ -820,7 +903,7 @@ const ZonosCheckoutPayment = class {
820
903
  * handler for continue button click
821
904
  */
822
905
  this.continueClickHandler = async ({ currencyCode, }) => {
823
- var _a;
906
+ var _a, _b;
824
907
  if (!this.handleValidate()) {
825
908
  this.showErrorBanner = true;
826
909
  // Attempt to submit the form so the missing input error will be shown in Stripe
@@ -835,7 +918,13 @@ const ZonosCheckoutPayment = class {
835
918
  }
836
919
  stripeStore.checkoutSettlementCurrency = currencyCode;
837
920
  // submit google tag when the form is complete
838
- submitGtag('zonos-checkout-payment-info');
921
+ submitGtag({
922
+ event: 'zonos-checkout-payment-info',
923
+ metadata: {
924
+ checkoutSessionId: storageStore.checkoutSessionId,
925
+ paymentMethod: (_b = stripeStore.stripePaymentEventData) === null || _b === void 0 ? void 0 : _b.value.type,
926
+ },
927
+ });
839
928
  this.continueClicked.emit();
840
929
  };
841
930
  this.copyCardToClipboard = async (cardNumber) => {
@@ -961,37 +1050,6 @@ const ZonosCheckoutPayment = class {
961
1050
  };
962
1051
  ZonosCheckoutPayment.style = ZonosCheckoutPaymentStyle0;
963
1052
 
964
- const getContrastColor = ({ backgroundColor, color, }) => {
965
- if (backgroundColor === color) {
966
- if (isDarkColor(color)) {
967
- const ligherColor = tinycolor(color).lighten(40).toHexString();
968
- return ligherColor;
969
- }
970
- const darkerColor = tinycolor(color).darken(40).toHexString();
971
- return darkerColor;
972
- }
973
- // get readibility of the color
974
- const isContrastEnough = isContrastColor({
975
- backgroundColor1: backgroundColor,
976
- backgroundColor2: color,
977
- });
978
- if (isContrastEnough) {
979
- // no need to change the color if it's already contrast enough
980
- return color;
981
- }
982
- if (isDarkColor(color)) {
983
- return '#ffffff';
984
- }
985
- const newDarkerColor = tinycolor(color).darken(25).toHexString();
986
- const newLigherColor = tinycolor(color).lighten(25).toHexString();
987
- // get readibility of the color
988
- const isNewColorContrastEnough = isContrastColor({
989
- backgroundColor1: backgroundColor,
990
- backgroundColor2: newDarkerColor,
991
- });
992
- return isNewColorContrastEnough ? newDarkerColor : newLigherColor;
993
- };
994
-
995
1053
  /**
996
1054
  * Reset any done tabs after selected tab to undone. This is to force user to go through all tabs again
997
1055
  */
@@ -1139,6 +1197,43 @@ const ZonosCurrencyToggle = class {
1139
1197
  static get assetsDirs() { return ["assets"]; }
1140
1198
  };
1141
1199
 
1200
+ const shortAddressCodeValidationResult = ({ shippingCountry, shortAddressCode, }) => {
1201
+ // Check to see if we are required to collect short address code for the shipping country or not
1202
+ const isShortAddressCodeInputRendered = shouldRenderShortAddressCodeInput({
1203
+ countryCode: shippingCountry,
1204
+ });
1205
+ // If the short address code input is not even rendered, no need to validate anything and allow to proceed. Validate when short address code input is not even rendered would prevent the user from checking out
1206
+ if (!isShortAddressCodeInputRendered) {
1207
+ return {
1208
+ error: null,
1209
+ valid: true,
1210
+ };
1211
+ }
1212
+ /**
1213
+ * If the short address code input is rendered, the input should be filled
1214
+ */
1215
+ if (!shortAddressCode) {
1216
+ return {
1217
+ error: 'Short address code is required.',
1218
+ valid: false,
1219
+ };
1220
+ }
1221
+ if (shippingCountry === 'SA') {
1222
+ const isValid = /^[A-Za-z]{4}\s*[0-9]{4}$/.test(shortAddressCode);
1223
+ if (!isValid) {
1224
+ return {
1225
+ error: 'Invalid short address code format. Must be 4 letters and 4 numbers.',
1226
+ valid: false,
1227
+ };
1228
+ }
1229
+ }
1230
+ // Other countries doesn't need to validate short address code in the right format
1231
+ return {
1232
+ error: null,
1233
+ valid: true,
1234
+ };
1235
+ };
1236
+
1142
1237
  const isTaxIdRequired = (shippingCountry) => {
1143
1238
  const requireTaxIdCountry = [
1144
1239
  'MX',
@@ -1271,6 +1366,10 @@ const ZonosCustomerInfo = class {
1271
1366
  * Whether or not the tax id input is invalid
1272
1367
  */
1273
1368
  this.taxIdErrorMessage = '';
1369
+ /**
1370
+ * Whether or not the short address code input is invalid
1371
+ */
1372
+ this.shortAddressCodeErrorMessage = '';
1274
1373
  /**
1275
1374
  * Whether or not the shipping address contains invalid characters
1276
1375
  */
@@ -1522,7 +1621,14 @@ const ZonosCustomerInfo = class {
1522
1621
  shippingCountry: this.shippingCountry,
1523
1622
  taxId: stripeStore.taxId,
1524
1623
  });
1624
+ const { error: shortAddressCodeError, valid: validShortAddressCode } = shortAddressCodeValidationResult({
1625
+ shippingCountry: this.shippingCountry,
1626
+ shortAddressCode: stripeStore.shortAddressCode,
1627
+ });
1525
1628
  this.taxIdErrorMessage = !validTaxId ? translate(error) : '';
1629
+ this.shortAddressCodeErrorMessage = !validShortAddressCode
1630
+ ? translate(shortAddressCodeError)
1631
+ : '';
1526
1632
  const addressLengthErrorList = this.validateAddressLength({
1527
1633
  address: stripeStore.stripeAddressEventData,
1528
1634
  type: 'shipping',
@@ -1539,6 +1645,7 @@ const ZonosCustomerInfo = class {
1539
1645
  !isValidShipping ||
1540
1646
  !isValidLink ||
1541
1647
  !validTaxId ||
1648
+ !validShortAddressCode ||
1542
1649
  this.exceededCharacterLimitErrorFieldList.length > 0) {
1543
1650
  return false;
1544
1651
  }
@@ -1619,10 +1726,10 @@ const ZonosCustomerInfo = class {
1619
1726
  }
1620
1727
  // Render custom address component if the custom address form is enabled
1621
1728
  if (this.addressFormRenderType === 'zonos') {
1622
- return (h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
1729
+ return (h("zonos-custom-address", { defaultAddress: defaultAddress, shortAddressCodeErrorMessage: this.shortAddressCodeErrorMessage, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
1623
1730
  }
1624
1731
  // Render Stripe address component by default
1625
- return (h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
1732
+ return (h("zonos-address", { defaultAddress: defaultAddress, shortAddressCodeErrorMessage: this.shortAddressCodeErrorMessage, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
1626
1733
  };
1627
1734
  }
1628
1735
  watchShowErrorBanner() {
@@ -1924,20 +2031,26 @@ const ZonosShipping = class {
1924
2031
  * handler for continue button click
1925
2032
  */
1926
2033
  this.continueClickHandler = () => {
1927
- var _a;
2034
+ var _a, _b;
1928
2035
  // show error banner if the form is not complete
1929
2036
  if (!this.handleValidate()) {
1930
2037
  this.showErrorBanner = true;
1931
2038
  return;
1932
2039
  }
1933
2040
  // submit google tag when the form is complete
1934
- submitGtag('zonos-checkout-shipping-info');
2041
+ submitGtag({
2042
+ event: 'zonos-checkout-shipping-info',
2043
+ metadata: {
2044
+ checkoutSessionId: storageStore.checkoutSessionId,
2045
+ serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
2046
+ },
2047
+ });
1935
2048
  const checkoutSessionId = storageStore.checkoutSessionId;
1936
2049
  void trackConversionEvent({
1937
2050
  checkoutSessionId,
1938
2051
  eventName: 'checkout_shippingInfoCompleted',
1939
2052
  metadata: {
1940
- serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
2053
+ serviceLevelId: (_b = this.selectedShippingMethod) === null || _b === void 0 ? void 0 : _b.value,
1941
2054
  },
1942
2055
  });
1943
2056
  this.showErrorBanner = false;
@@ -2071,15 +2184,15 @@ const ZonosShipping = class {
2071
2184
  var _a;
2072
2185
  // Render all service levels for US since domestic shipping doesn't have DDP/DAP
2073
2186
  if (((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country) === 'US') {
2074
- return (h("zonos-shipping-rich-radio", { items: this.serviceLevelsAll, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }));
2187
+ return (h("zonos-shipping-rich-radio", { isMobile: this.isMobile, items: this.serviceLevelsAll, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }));
2075
2188
  }
2076
- return (h(Fragment, null, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2189
+ return (h(Fragment, null, h("zonos-shipping-rich-radio", { isMobile: this.isMobile, items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2077
2190
  !!this.serviceLevelsDAP.length && (h("button", { class: classes([
2078
2191
  'zonos--shipping-options-collapse-trigger',
2079
2192
  this.collapsedDAPOptions && 'collapsed',
2080
2193
  ]), onClick: () => {
2081
2194
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
2082
- } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod })))));
2195
+ } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { isMobile: this.isMobile, items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod })))));
2083
2196
  };
2084
2197
  return (h(Host, { class: "zonos--shipping zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.length ? (h("zonos-banner", { bannerTitle: cartStore.customQuotingError
2085
2198
  ? cartStore.customQuotingError