@zonos/elements 1.3.246 → 1.3.247

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 (281) hide show
  1. package/dist/cjs/ShortAddressCode-bec338b0.js +7 -0
  2. package/dist/cjs/{cart-52cf3366.js → cart-97a2d20a.js} +35 -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 +9 -7
  6. package/dist/cjs/{invoice-972f1ab3.js → invoice-05a10ee1.js} +2 -2
  7. package/dist/cjs/{isCollectMobileTablet-fd11246c.js → isCollectMobileTablet-edd4804c.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-0b4b352b.js} +4 -12
  12. package/dist/cjs/{placeTestOrder-3dfbe3d6.js → placeTestOrder-07b46688.js} +2 -2
  13. package/dist/cjs/{renderCheckoutCurrency-55056c97.js → renderCheckoutCurrency-dd3b0609.js} +2 -2
  14. package/dist/cjs/{shouldRenderTaxIdInput-eda13ef8.js → shouldRenderTaxIdInput-b8abf6de.js} +18 -0
  15. package/dist/cjs/zonos-address-display_9.cjs.entry.js +35 -5
  16. package/dist/cjs/zonos-address_4.cjs.entry.js +37 -7
  17. package/dist/cjs/zonos-card_5.cjs.entry.js +4 -3
  18. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +65 -44
  19. package/dist/cjs/zonos-checkout.cjs.entry.js +6 -5
  20. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +2 -2
  21. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +7 -6
  22. package/dist/cjs/zonos-collect.cjs.entry.js +5 -4
  23. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-elements.cjs.js +1 -1
  27. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  30. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +7 -6
  31. package/dist/cjs/zonos-invoice.cjs.entry.js +5 -4
  32. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  33. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +18 -4
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +16 -2
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +22 -3
  37. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +35 -4
  38. package/dist/collection/components/store/checkout/stripe.js +32 -5
  39. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  40. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  41. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  42. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  43. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  44. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  45. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  46. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  47. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  48. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  49. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  50. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  51. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  52. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  53. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  54. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  55. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  56. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  57. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  58. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  59. package/dist/collection/components/stripe/zonos-address/zonos-address.css +2 -1
  60. package/dist/collection/components/stripe/zonos-address/zonos-address.js +53 -3
  61. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +52 -2
  62. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +2 -0
  63. package/dist/collection/components/utils/checkout/shouldRenderShortAddressCodeInput.js +16 -0
  64. package/dist/collection/components/utils/shortAddressCodeValidationResult.js +37 -0
  65. package/dist/collection/types/checkout/ShortAddressCode.js +3 -0
  66. package/dist/collection/types/generated/graphql.frontend.types.js +2 -0
  67. package/dist/collection/types/generated/graphql.internal.types.js +135 -0
  68. package/dist/collection/types/index.js +1 -0
  69. package/dist/esm/ShortAddressCode-7620e622.js +5 -0
  70. package/dist/esm/{cart-7f4704dc.js → cart-99ec4a3d.js} +35 -6
  71. package/dist/esm/getContrastColor-28c18704.js +35 -0
  72. package/dist/esm/{hasInclusivePrice-3958ed11.js → hasInclusivePrice-6fcc712f.js} +1 -1
  73. package/dist/esm/index.js +8 -7
  74. package/dist/esm/{invoice-d3d256fb.js → invoice-44e97c22.js} +2 -2
  75. package/dist/esm/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-566ff0aa.js} +2 -2
  76. package/dist/esm/isContrastColor-69778cea.js +10 -0
  77. package/dist/esm/loader.js +1 -1
  78. package/dist/esm/{localization-401ec6d4.js → localization-853b48a9.js} +180 -0
  79. package/dist/esm/{paypal-61270b79.js → paypal-56534e48.js} +4 -11
  80. package/dist/esm/{placeTestOrder-c2180600.js → placeTestOrder-9e0ab5fd.js} +2 -2
  81. package/dist/esm/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-1bd40006.js} +2 -2
  82. package/dist/esm/{shouldRenderTaxIdInput-d45ceeb4.js → shouldRenderTaxIdInput-2572bf77.js} +18 -1
  83. package/dist/esm/zonos-address-display_9.entry.js +35 -5
  84. package/dist/esm/zonos-address_4.entry.js +37 -7
  85. package/dist/esm/zonos-card_5.entry.js +4 -3
  86. package/dist/esm/zonos-cart-items_12.entry.js +65 -44
  87. package/dist/esm/zonos-checkout.entry.js +6 -5
  88. package/dist/esm/zonos-collect-cart-items_3.entry.js +2 -2
  89. package/dist/esm/zonos-collect-finish_6.entry.js +7 -6
  90. package/dist/esm/zonos-collect.entry.js +5 -4
  91. package/dist/esm/zonos-controller.entry.js +2 -2
  92. package/dist/esm/zonos-country-flag.entry.js +1 -1
  93. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  94. package/dist/esm/zonos-elements.js +1 -1
  95. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  96. package/dist/esm/zonos-hello.entry.js +1 -1
  97. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  98. package/dist/esm/zonos-invoice-finish_5.entry.js +7 -6
  99. package/dist/esm/zonos-invoice.entry.js +5 -4
  100. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  101. package/dist/esm/zonos-shipping-rich-radio.entry.js +19 -5
  102. package/dist/esm-es5/ShortAddressCode-7620e622.js +1 -0
  103. package/dist/esm-es5/cart-99ec4a3d.js +1 -0
  104. package/dist/esm-es5/getContrastColor-28c18704.js +1 -0
  105. package/dist/esm-es5/{hasInclusivePrice-3958ed11.js → hasInclusivePrice-6fcc712f.js} +1 -1
  106. package/dist/esm-es5/index.js +1 -1
  107. package/dist/esm-es5/{invoice-d3d256fb.js → invoice-44e97c22.js} +1 -1
  108. package/dist/esm-es5/{isCollectMobileTablet-27693de5.js → isCollectMobileTablet-566ff0aa.js} +1 -1
  109. package/dist/esm-es5/isContrastColor-69778cea.js +1 -0
  110. package/dist/esm-es5/loader.js +1 -1
  111. package/dist/esm-es5/localization-853b48a9.js +1 -0
  112. package/dist/esm-es5/paypal-56534e48.js +17 -0
  113. package/dist/esm-es5/{placeTestOrder-c2180600.js → placeTestOrder-9e0ab5fd.js} +1 -1
  114. package/dist/esm-es5/{renderCheckoutCurrency-dea06d44.js → renderCheckoutCurrency-1bd40006.js} +1 -1
  115. package/dist/esm-es5/shouldRenderTaxIdInput-2572bf77.js +1 -0
  116. package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
  117. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  118. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  119. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  120. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  121. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  122. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  123. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  124. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  125. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  126. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  127. package/dist/esm-es5/zonos-elements.js +1 -1
  128. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  129. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  130. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  131. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  132. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  133. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  134. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  135. package/dist/scripts/index.d.ts +50 -4
  136. package/dist/scripts/index.js +1 -1
  137. package/dist/scripts/loadZonos.js +1 -1
  138. package/dist/scripts/zonos.js +1 -1
  139. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +4 -0
  140. package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +4 -0
  141. package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +5 -0
  142. package/dist/types/components/store/checkout/stripe.d.ts +4 -0
  143. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  144. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  145. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  146. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  147. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  148. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  149. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  150. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  151. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  152. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  153. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  154. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  155. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  156. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  157. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  158. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  159. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  160. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  161. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  162. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  163. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +8 -0
  164. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +8 -0
  165. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  166. package/dist/types/components/utils/checkout/shouldRenderShortAddressCodeInput.d.ts +6 -0
  167. package/dist/types/components/utils/shortAddressCodeValidationResult.d.ts +12 -0
  168. package/dist/types/components.d.ts +32 -0
  169. package/dist/types/types/checkout/ShortAddressCode.d.ts +2 -0
  170. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +8 -0
  171. package/dist/types/types/checkout/api/CreateParty.d.ts +1 -0
  172. package/dist/types/types/generated/graphql.frontend.types.d.ts +3 -1
  173. package/dist/types/types/generated/graphql.frontend.types.ts +3 -1
  174. package/dist/types/types/generated/graphql.internal.types.d.ts +157 -30
  175. package/dist/types/types/generated/graphql.internal.types.ts +194 -37
  176. package/dist/types/types/index.d.ts +1 -0
  177. package/dist/zonos-elements/index.esm.js +1 -1
  178. package/dist/zonos-elements/p-08365fdb.system.js +1 -0
  179. package/dist/zonos-elements/p-09aabce0.js +1 -0
  180. package/dist/zonos-elements/p-0c201c39.system.entry.js +1 -0
  181. package/dist/zonos-elements/p-0cb5f151.system.entry.js +1 -0
  182. package/dist/zonos-elements/{p-367c13db.system.entry.js → p-10355cf6.system.entry.js} +1 -1
  183. package/dist/zonos-elements/p-14735e9a.system.entry.js +1 -0
  184. package/dist/zonos-elements/{p-288aab46.js → p-1b86711b.js} +1 -1
  185. package/dist/zonos-elements/p-1d42cd20.js +1 -0
  186. package/dist/zonos-elements/p-1dbeeab2.entry.js +1 -0
  187. package/dist/zonos-elements/p-2c10b067.system.entry.js +1 -0
  188. package/dist/zonos-elements/p-2e8f842c.entry.js +1 -0
  189. package/dist/zonos-elements/{p-67820c21.system.entry.js → p-2f55895c.system.entry.js} +1 -1
  190. package/dist/zonos-elements/p-37bb5f2d.entry.js +1 -0
  191. package/dist/zonos-elements/{p-133e9ce7.system.entry.js → p-382601a9.system.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-fe699cc5.system.entry.js → p-3908f78d.system.entry.js} +1 -1
  193. package/dist/zonos-elements/p-3e2f175c.entry.js +1 -0
  194. package/dist/zonos-elements/{p-cee69784.entry.js → p-403b9fca.entry.js} +1 -1
  195. package/dist/zonos-elements/p-41299ffb.js +1 -0
  196. package/dist/zonos-elements/p-443e1f30.system.js +1 -0
  197. package/dist/zonos-elements/{p-a79f3685.js → p-46ece7ae.js} +1 -1
  198. package/dist/zonos-elements/p-48d55793.system.js +1 -0
  199. package/dist/zonos-elements/p-5295d36e.entry.js +1 -0
  200. package/dist/zonos-elements/{p-4d7b82b5.entry.js → p-53a9da45.entry.js} +1 -1
  201. package/dist/zonos-elements/p-63a383f4.js +1 -0
  202. package/dist/zonos-elements/{p-a3411f20.entry.js → p-64870563.entry.js} +1 -1
  203. package/dist/zonos-elements/p-655ec440.system.js +1 -0
  204. package/dist/zonos-elements/{p-415c2a90.system.js → p-678331f0.system.js} +1 -1
  205. package/dist/zonos-elements/p-695e0803.system.entry.js +1 -0
  206. package/dist/zonos-elements/{p-4bd8a16c.entry.js → p-69b9b711.entry.js} +1 -1
  207. package/dist/zonos-elements/p-6e3cf6eb.entry.js +1 -0
  208. package/dist/zonos-elements/p-6f430d6f.system.entry.js +1 -0
  209. package/dist/zonos-elements/p-71185d24.system.js +1 -0
  210. package/dist/zonos-elements/p-786d1c24.js +1 -0
  211. package/dist/zonos-elements/p-794d29dc.entry.js +1 -0
  212. package/dist/zonos-elements/{p-87206522.system.entry.js → p-7b400b5f.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-6b9b7cfb.system.entry.js → p-8205ae87.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-3a88a130.entry.js → p-83377e23.entry.js} +1 -1
  215. package/dist/zonos-elements/p-8defdf0d.system.js +17 -0
  216. package/dist/zonos-elements/p-8e98a7c8.js +1 -0
  217. package/dist/zonos-elements/{p-2889a485.system.entry.js → p-95348ebf.system.entry.js} +1 -1
  218. package/dist/zonos-elements/p-9a066833.system.entry.js +1 -0
  219. package/dist/zonos-elements/p-aa6c2348.system.entry.js +1 -0
  220. package/dist/zonos-elements/p-ada8841a.js +1 -0
  221. package/dist/zonos-elements/p-ae26aec5.system.js +1 -0
  222. package/dist/zonos-elements/p-af85846e.system.js +1 -0
  223. package/dist/zonos-elements/{p-78c8bb58.system.entry.js → p-b54a95ea.system.entry.js} +1 -1
  224. package/dist/zonos-elements/p-c2442878.system.js +1 -1
  225. package/dist/zonos-elements/p-c75b7c47.entry.js +1 -0
  226. package/dist/zonos-elements/p-caff391d.system.entry.js +1 -0
  227. package/dist/zonos-elements/p-ce98e472.js +1 -0
  228. package/dist/zonos-elements/{p-3f46d83e.entry.js → p-d0411b2d.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-faae5eca.entry.js → p-d5b7d3c3.entry.js} +1 -1
  230. package/dist/zonos-elements/p-dca14319.system.js +1 -0
  231. package/dist/zonos-elements/p-dd19d9d8.js +17 -0
  232. package/dist/zonos-elements/{p-e0809901.system.js → p-df6e62f8.system.js} +1 -1
  233. package/dist/zonos-elements/p-df90bccf.entry.js +1 -0
  234. package/dist/zonos-elements/p-e07aaf09.system.js +1 -0
  235. package/dist/zonos-elements/p-e458f737.entry.js +1 -0
  236. package/dist/zonos-elements/p-eea7ac64.js +1 -0
  237. package/dist/zonos-elements/p-f6f1d779.system.entry.js +1 -0
  238. package/dist/zonos-elements/p-f8eb618b.entry.js +1 -0
  239. package/dist/zonos-elements/p-fe96e239.system.js +1 -0
  240. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  241. package/package.json +1 -1
  242. package/dist/esm-es5/cart-7f4704dc.js +0 -1
  243. package/dist/esm-es5/localization-401ec6d4.js +0 -1
  244. package/dist/esm-es5/paypal-61270b79.js +0 -17
  245. package/dist/esm-es5/shouldRenderTaxIdInput-d45ceeb4.js +0 -1
  246. package/dist/zonos-elements/p-01b0a2e2.js +0 -1
  247. package/dist/zonos-elements/p-095f43ec.entry.js +0 -1
  248. package/dist/zonos-elements/p-1d91e5d1.entry.js +0 -1
  249. package/dist/zonos-elements/p-21fb6b39.js +0 -1
  250. package/dist/zonos-elements/p-2601538e.entry.js +0 -1
  251. package/dist/zonos-elements/p-276faa43.js +0 -1
  252. package/dist/zonos-elements/p-27874c22.entry.js +0 -1
  253. package/dist/zonos-elements/p-291b85f7.entry.js +0 -1
  254. package/dist/zonos-elements/p-2d2c627a.system.js +0 -1
  255. package/dist/zonos-elements/p-3b1898bc.system.entry.js +0 -1
  256. package/dist/zonos-elements/p-3f078bf5.system.entry.js +0 -1
  257. package/dist/zonos-elements/p-518b501c.system.entry.js +0 -1
  258. package/dist/zonos-elements/p-59ebb8c7.system.entry.js +0 -1
  259. package/dist/zonos-elements/p-5f956a0d.entry.js +0 -1
  260. package/dist/zonos-elements/p-6c29de12.entry.js +0 -1
  261. package/dist/zonos-elements/p-74e258ff.system.js +0 -1
  262. package/dist/zonos-elements/p-775c1122.system.js +0 -1
  263. package/dist/zonos-elements/p-7a6ab319.system.entry.js +0 -1
  264. package/dist/zonos-elements/p-85430ec1.js +0 -1
  265. package/dist/zonos-elements/p-872f9c22.system.entry.js +0 -1
  266. package/dist/zonos-elements/p-95524f54.js +0 -1
  267. package/dist/zonos-elements/p-993723c2.system.entry.js +0 -1
  268. package/dist/zonos-elements/p-a0a62b7e.js +0 -17
  269. package/dist/zonos-elements/p-a556ec07.system.js +0 -17
  270. package/dist/zonos-elements/p-a6489088.js +0 -1
  271. package/dist/zonos-elements/p-acc0eee3.system.js +0 -1
  272. package/dist/zonos-elements/p-bd10e82a.system.entry.js +0 -1
  273. package/dist/zonos-elements/p-c62b6741.system.entry.js +0 -1
  274. package/dist/zonos-elements/p-c6aa780e.entry.js +0 -1
  275. package/dist/zonos-elements/p-d1effb76.system.js +0 -1
  276. package/dist/zonos-elements/p-e7543082.system.js +0 -1
  277. package/dist/zonos-elements/p-e7df8394.entry.js +0 -1
  278. package/dist/zonos-elements/p-e90e9584.entry.js +0 -1
  279. package/dist/zonos-elements/p-eb9ee025.system.js +0 -1
  280. package/dist/zonos-elements/p-ebef34e3.entry.js +0 -1
  281. package/dist/zonos-elements/p-f6c6b6d3.system.entry.js +0 -1
@@ -13,6 +13,7 @@ export type ShippingRichRadioItem = {
13
13
  value: string | number;
14
14
  };
15
15
  export declare class ZonosShippingRichRadio {
16
+ ele: HTMLZonosShippingRichRadioElement;
16
17
  /**
17
18
  * List of items to display
18
19
  */
@@ -31,6 +32,10 @@ export declare class ZonosShippingRichRadio {
31
32
  * Theme of the radio item
32
33
  */
33
34
  theme?: ElementsUiTheme;
35
+ /**
36
+ * Whether or not the radio item is in mobile mode
37
+ */
38
+ isMobile: boolean;
34
39
  /**
35
40
  * Selected item
36
41
  * @default {null|firstItem}
@@ -70,6 +70,10 @@ type StripeStore = {
70
70
  * Shipping party id (used for async address update)
71
71
  */
72
72
  partyShippingId: string | null;
73
+ /**
74
+ * Short address code only required for Saudi Arabia
75
+ */
76
+ shortAddressCode: string;
73
77
  /**
74
78
  * Toggle to indicate if we should refund the inventory when the payment is failed
75
79
  */
@@ -284,6 +284,9 @@ export declare const stringsArabic: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsArabic: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsBase: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsBase: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsChinese: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsChinese: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsDanish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsDanish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsDutch: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsDutch: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsFrench: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsFrench: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsGerman: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsGerman: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsHebrew: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsHebrew: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsIndonesian: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsIndonesian: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsItalian: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsItalian: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsJapanese: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsJapanese: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsKorean: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsKorean: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsNorwegian: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsNorwegian: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsPolish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsPolish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsPortuguese: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsPortuguese: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsRussian: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsRussian: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsSpanish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsSpanish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsSwedish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsSwedish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsTurkish: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsTurkish: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -284,6 +284,9 @@ export declare const stringsVietnamese: {
284
284
  'Invalid session': {
285
285
  value: string;
286
286
  };
287
+ 'Invalid short address code format. Must be 4 letters and 4 numbers.': {
288
+ value: string;
289
+ };
287
290
  'Invoice:': {
288
291
  value: string;
289
292
  };
@@ -527,6 +530,12 @@ export declare const stringsVietnamese: {
527
530
  'Shopping cart expired': {
528
531
  value: string;
529
532
  };
533
+ 'Short address code': {
534
+ value: string;
535
+ };
536
+ 'Short address code is required.': {
537
+ value: string;
538
+ };
530
539
  Show: {
531
540
  value: string;
532
541
  };
@@ -22,6 +22,10 @@ export declare class ZonosAddress {
22
22
  * Error message for tax id input
23
23
  */
24
24
  taxIdErrorMessage: string;
25
+ /**
26
+ * Error message for short address code input
27
+ */
28
+ shortAddressCodeErrorMessage: string;
25
29
  /**
26
30
  * Event to emit when address is not containing allowed character sets
27
31
  */
@@ -65,6 +69,10 @@ export declare class ZonosAddress {
65
69
  * Render tax id input based on ship to country code
66
70
  */
67
71
  private renderTaxIdInput;
72
+ /**
73
+ * Render short address code input based on ship to country code
74
+ */
75
+ private renderShortAddressCodeInput;
68
76
  private renderCompanyNameInput;
69
77
  disconnectedCallback(): void;
70
78
  componentDidLoad(): void;
@@ -23,6 +23,10 @@ export declare class ZonosAddress {
23
23
  * Error message for tax id input
24
24
  */
25
25
  taxIdErrorMessage: string;
26
+ /**
27
+ * Error message for short address code input
28
+ */
29
+ shortAddressCodeErrorMessage: string;
26
30
  /**
27
31
  * Event to emit when address is not containing allowed character sets
28
32
  */
@@ -137,6 +141,10 @@ export declare class ZonosAddress {
137
141
  * Render tax id input based on ship to country code
138
142
  */
139
143
  private renderTaxIdInput;
144
+ /**
145
+ * Render short address code input based on ship to country code
146
+ */
147
+ private renderShortAddressCodeInput;
140
148
  private renderCompanyNameInput;
141
149
  private initCountryField;
142
150
  private initDefaultCustomAddressForm;
@@ -4,7 +4,7 @@ export declare const getLocaleMessages: ({ countryCode, localeTo, storeId, }: {
4
4
  localeTo?: string;
5
5
  storeId: number;
6
6
  }) => Promise<{
7
- countryCodes: Array<string>;
7
+ countryCodes: Array<string> | null;
8
8
  countryCodesPageMessageLinks: Array<{
9
9
  id: number;
10
10
  message: {
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Checks if the short address code input should be rendered based on the country code.
3
+ */
4
+ export declare const shouldRenderShortAddressCodeInput: ({ countryCode, }: {
5
+ countryCode: string;
6
+ }) => boolean;
@@ -0,0 +1,12 @@
1
+ type ShortAddressCodeValidationResult = {
2
+ error: 'Short address code is required.' | 'Invalid short address code format. Must be 4 letters and 4 numbers.';
3
+ valid: false;
4
+ } | {
5
+ error: null;
6
+ valid: true;
7
+ };
8
+ export declare const shortAddressCodeValidationResult: ({ shippingCountry, shortAddressCode, }: {
9
+ shippingCountry: string;
10
+ shortAddressCode: string;
11
+ }) => ShortAddressCodeValidationResult;
12
+ export {};
@@ -61,6 +61,10 @@ export namespace Components {
61
61
  * Default address for stripe
62
62
  */
63
63
  "defaultAddress": ContactOption[];
64
+ /**
65
+ * Error message for short address code input
66
+ */
67
+ "shortAddressCodeErrorMessage": string;
64
68
  /**
65
69
  * Error message for tax id input
66
70
  */
@@ -738,6 +742,10 @@ export namespace Components {
738
742
  * Default address for stripe
739
743
  */
740
744
  "defaultAddress": ContactOption[];
745
+ /**
746
+ * Error message for short address code input
747
+ */
748
+ "shortAddressCodeErrorMessage": string;
741
749
  /**
742
750
  * Error message for tax id input
743
751
  */
@@ -1241,6 +1249,10 @@ export namespace Components {
1241
1249
  * Whether or not the continue button is loading
1242
1250
  */
1243
1251
  "continueLoading": boolean;
1252
+ /**
1253
+ * Whether or not the checkout is in mobile mode
1254
+ */
1255
+ "isMobile": boolean;
1244
1256
  /**
1245
1257
  * Submit button main color
1246
1258
  */
@@ -1259,6 +1271,10 @@ export namespace Components {
1259
1271
  * Override border color of the radio item
1260
1272
  */
1261
1273
  "borderStyle"?: ElementsUiStyle;
1274
+ /**
1275
+ * Whether or not the radio item is in mobile mode
1276
+ */
1277
+ "isMobile": boolean;
1262
1278
  /**
1263
1279
  * List of items to display
1264
1280
  */
@@ -2535,6 +2551,10 @@ declare namespace LocalJSX {
2535
2551
  * Event to emit when tax id is changed
2536
2552
  */
2537
2553
  "onTaxIdChanged"?: (event: ZonosAddressCustomEvent<string>) => void;
2554
+ /**
2555
+ * Error message for short address code input
2556
+ */
2557
+ "shortAddressCodeErrorMessage"?: string;
2538
2558
  /**
2539
2559
  * Error message for tax id input
2540
2560
  */
@@ -3227,6 +3247,10 @@ declare namespace LocalJSX {
3227
3247
  * Event to emit when address is not containing allowed character sets
3228
3248
  */
3229
3249
  "onInvalidCharacters"?: (event: ZonosCustomAddressCustomEvent<boolean>) => void;
3250
+ /**
3251
+ * Error message for short address code input
3252
+ */
3253
+ "shortAddressCodeErrorMessage"?: string;
3230
3254
  /**
3231
3255
  * Error message for tax id input
3232
3256
  */
@@ -3757,6 +3781,10 @@ declare namespace LocalJSX {
3757
3781
  * Whether or not the continue button is loading
3758
3782
  */
3759
3783
  "continueLoading"?: boolean;
3784
+ /**
3785
+ * Whether or not the checkout is in mobile mode
3786
+ */
3787
+ "isMobile": boolean;
3760
3788
  /**
3761
3789
  * Event to emit when the continue button is clicked
3762
3790
  */
@@ -3779,6 +3807,10 @@ declare namespace LocalJSX {
3779
3807
  * Override border color of the radio item
3780
3808
  */
3781
3809
  "borderStyle"?: ElementsUiStyle;
3810
+ /**
3811
+ * Whether or not the radio item is in mobile mode
3812
+ */
3813
+ "isMobile": boolean;
3782
3814
  /**
3783
3815
  * List of items to display
3784
3816
  */
@@ -0,0 +1,2 @@
1
+ export declare const countryRequireShortAddressCode: ["SA"];
2
+ export type CountryRequireShortAddressCode = (typeof countryRequireShortAddressCode)[number];