@zonos/elements 1.3.184 → 1.3.185

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 (343) hide show
  1. package/dist/cjs/{cart-3d0c0f0b.js → cart-f9df3ac8.js} +3209 -10
  2. package/dist/cjs/debounce-3eaa4f7e.js +357 -0
  3. package/dist/cjs/{getBorderRadius-94ef609c.js → getBorderRadius-87f3b69c.js} +1 -1
  4. package/dist/cjs/getGenericSettingsOverride-c0ca32b9.js +104 -0
  5. package/dist/cjs/helpers-5bdbb68c.js +100 -0
  6. package/dist/cjs/{index-2f90486e.js → index-0993f42d.js} +15 -3
  7. package/dist/cjs/index.cjs.js +19 -8
  8. package/dist/cjs/{isDarkColor-ec4a4e7d.js → isDarkColor-d0c67c3d.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/{paypal-9eaa9196.js → paypal-5e73c8f5.js} +3 -3
  11. package/dist/cjs/zonos-address_11.cjs.entry.js +7917 -0
  12. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +18 -7
  15. package/dist/cjs/zonos-card.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +113 -21
  17. package/dist/cjs/zonos-checkout.cjs.entry.js +9 -7
  18. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  19. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-controller.cjs.entry.js +225 -7
  21. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  23. package/dist/cjs/zonos-elements.cjs.js +2 -2
  24. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +8 -8
  25. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
  26. package/dist/cjs/zonos-hello.cjs.entry.js +7 -358
  27. package/dist/cjs/zonos-input.cjs.entry.js +3 -3
  28. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  29. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  31. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  32. package/dist/cjs/zonos-stripe-input.cjs.entry.js +31 -12
  33. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-toggle.cjs.entry.js +4 -4
  35. package/dist/cjs/zonos-tooltip.cjs.entry.js +3 -3
  36. package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
  37. package/dist/cjs/{zonosStore-3812b318.js → zonosStore-adc42868.js} +2 -1
  38. package/dist/collection/collection-manifest.json +4 -0
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +3 -3
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +11 -0
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +22 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -1
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +162 -17
  44. package/dist/collection/components/common/zonos-button/zonos-button.js +14 -3
  45. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +5 -3
  46. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +2 -2
  47. package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +0 -6
  48. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +2 -2
  49. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +2 -3
  50. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +105 -8
  51. package/dist/collection/components/common/zonos-stripe-phone-input/assets/ChevronDownIcon.svg +1 -0
  52. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.css +222 -0
  53. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +481 -0
  54. package/dist/collection/components/common/zonos-stripe-select/assets/ChevronDownIcon.svg +1 -0
  55. package/dist/collection/components/common/zonos-stripe-select/assets/RemoveLineIcon.svg +1 -0
  56. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +178 -0
  57. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +455 -0
  58. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  59. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  60. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  61. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  62. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  63. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  64. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  65. package/dist/collection/components/main/zonos-controller.js +24 -1
  66. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  67. package/dist/collection/components/store/checkout/stripe.js +24 -7
  68. package/dist/collection/components/store/translationStore/strings.arabic.js +159 -0
  69. package/dist/collection/components/store/translationStore/strings.base.js +161 -0
  70. package/dist/collection/components/store/translationStore/strings.chinese.js +159 -0
  71. package/dist/collection/components/store/translationStore/strings.danish.js +159 -0
  72. package/dist/collection/components/store/translationStore/strings.dutch.js +159 -0
  73. package/dist/collection/components/store/translationStore/strings.french.js +159 -0
  74. package/dist/collection/components/store/translationStore/strings.german.js +159 -0
  75. package/dist/collection/components/store/translationStore/strings.hebrew.js +159 -0
  76. package/dist/collection/components/store/translationStore/strings.indonesian.js +159 -0
  77. package/dist/collection/components/store/translationStore/strings.italian.js +159 -0
  78. package/dist/collection/components/store/translationStore/strings.japanese.js +159 -0
  79. package/dist/collection/components/store/translationStore/strings.korean.js +159 -0
  80. package/dist/collection/components/store/translationStore/strings.norwegian.js +159 -0
  81. package/dist/collection/components/store/translationStore/strings.polish.js +159 -0
  82. package/dist/collection/components/store/translationStore/strings.portuguese.js +159 -0
  83. package/dist/collection/components/store/translationStore/strings.russian.js +159 -0
  84. package/dist/collection/components/store/translationStore/strings.spanish.js +159 -0
  85. package/dist/collection/components/store/translationStore/strings.swedish.js +159 -0
  86. package/dist/collection/components/store/translationStore/strings.turkish.js +159 -0
  87. package/dist/collection/components/store/translationStore/strings.vietnamese.js +159 -0
  88. package/dist/collection/components/store/zonosStore.js +1 -0
  89. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  90. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/assets/RemoveIcon.svg +1 -0
  91. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.css +86 -0
  92. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +192 -0
  93. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.css +67 -0
  94. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +978 -0
  95. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  96. package/dist/collection/components/utils/api/getGenericSettingsOverride.js +10 -0
  97. package/dist/collection/components/utils/api/getZonosSettings.js +7 -1
  98. package/dist/collection/components/utils/checkout/form/helpers.js +95 -0
  99. package/dist/collection/components/utils/checkout/form/isValidZip.js +18 -0
  100. package/dist/collection/components/utils/iframe/CheckoutAddressService.js +193 -0
  101. package/dist/collection/components/utils/iframe/IframeHelpers.js +86 -0
  102. package/dist/collection/components/utils/mergeAddress.js +5 -0
  103. package/dist/collection/constants/phone-formats.js +658 -0
  104. package/dist/collection/scripts/_getCartInfoById.js +7 -1
  105. package/dist/collection/scripts/_zonosBase.js +7 -0
  106. package/dist/collection/types/CountryFields.js +1 -0
  107. package/dist/collection/types/checkout/form/CustomAddressErrors.js +1 -0
  108. package/dist/collection/types/generated/graphql.frontend.types.js +9 -0
  109. package/dist/collection/types/generated/graphql.internal.types.js +96 -0
  110. package/dist/collection/types/index.js +0 -1
  111. package/dist/esm/{cart-3fb04f1f.js → cart-4725a63b.js} +3209 -10
  112. package/dist/esm/debounce-3cf0793c.js +355 -0
  113. package/dist/esm/{getBorderRadius-ada3ccad.js → getBorderRadius-a9a48f79.js} +1 -1
  114. package/dist/esm/getGenericSettingsOverride-0bc3e118.js +99 -0
  115. package/dist/esm/helpers-2f6955b1.js +97 -0
  116. package/dist/esm/{index-d82f06f2.js → index-a457c60c.js} +15 -3
  117. package/dist/esm/index.js +19 -8
  118. package/dist/esm/{isDarkColor-446fccb7.js → isDarkColor-62cbddb5.js} +1 -1
  119. package/dist/esm/loader.js +3 -3
  120. package/dist/esm/{paypal-1f2e863c.js → paypal-a09943f4.js} +3 -3
  121. package/dist/esm/zonos-address_11.entry.js +7903 -0
  122. package/dist/esm/zonos-badge.entry.js +2 -2
  123. package/dist/esm/zonos-banner.entry.js +2 -2
  124. package/dist/esm/zonos-button_3.entry.js +18 -7
  125. package/dist/esm/zonos-card.entry.js +3 -3
  126. package/dist/esm/zonos-cart-items_13.entry.js +113 -21
  127. package/dist/esm/zonos-checkout.entry.js +9 -7
  128. package/dist/esm/zonos-collapse.entry.js +2 -2
  129. package/dist/esm/zonos-component.entry.js +2 -2
  130. package/dist/esm/zonos-controller.entry.js +225 -7
  131. package/dist/esm/zonos-country-flag.entry.js +5 -5
  132. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  133. package/dist/esm/zonos-elements.js +3 -3
  134. package/dist/esm/zonos-empty-state-payment_4.entry.js +8 -8
  135. package/dist/esm/zonos-hello-dialog.entry.js +9 -9
  136. package/dist/esm/zonos-hello.entry.js +6 -357
  137. package/dist/esm/zonos-input.entry.js +3 -3
  138. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  139. package/dist/esm/zonos-link.entry.js +1 -1
  140. package/dist/esm/zonos-logo.entry.js +2 -2
  141. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  142. package/dist/esm/zonos-stripe-input.entry.js +31 -12
  143. package/dist/esm/zonos-text.entry.js +2 -2
  144. package/dist/esm/zonos-toggle.entry.js +4 -4
  145. package/dist/esm/zonos-tooltip.entry.js +3 -3
  146. package/dist/esm/zonos-v-stack.entry.js +4 -4
  147. package/dist/esm/{zonosStore-d3c5a0a5.js → zonosStore-1ce34e04.js} +2 -1
  148. package/dist/esm-es5/cart-4725a63b.js +1 -0
  149. package/dist/esm-es5/debounce-3cf0793c.js +1 -0
  150. package/dist/esm-es5/{getBorderRadius-ada3ccad.js → getBorderRadius-a9a48f79.js} +1 -1
  151. package/dist/esm-es5/getGenericSettingsOverride-0bc3e118.js +1 -0
  152. package/dist/esm-es5/helpers-2f6955b1.js +1 -0
  153. package/dist/esm-es5/index-a457c60c.js +2 -0
  154. package/dist/esm-es5/index.js +1 -1
  155. package/dist/esm-es5/{isDarkColor-446fccb7.js → isDarkColor-62cbddb5.js} +1 -1
  156. package/dist/esm-es5/loader.js +1 -1
  157. package/dist/esm-es5/{paypal-1f2e863c.js → paypal-a09943f4.js} +1 -1
  158. package/dist/esm-es5/zonos-address_11.entry.js +1 -0
  159. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  160. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  161. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  162. package/dist/esm-es5/zonos-card.entry.js +1 -1
  163. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  164. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  165. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  166. package/dist/esm-es5/zonos-component.entry.js +1 -1
  167. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  168. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  169. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  170. package/dist/esm-es5/zonos-elements.js +1 -1
  171. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  172. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  173. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  174. package/dist/esm-es5/zonos-input.entry.js +1 -1
  175. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  176. package/dist/esm-es5/zonos-link.entry.js +1 -1
  177. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  178. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  179. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  180. package/dist/esm-es5/zonos-text.entry.js +1 -1
  181. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  182. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  183. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  184. package/dist/esm-es5/{zonosStore-d3c5a0a5.js → zonosStore-1ce34e04.js} +1 -1
  185. package/dist/scripts/index.d.ts +3985 -3371
  186. package/dist/scripts/index.js +1 -1
  187. package/dist/scripts/loadZonos.js +1 -1
  188. package/dist/scripts/zonos.js +1 -1
  189. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
  190. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +28 -1
  191. package/dist/types/components/common/zonos-button/zonos-button.d.ts +4 -0
  192. package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -0
  193. package/dist/types/components/common/zonos-stripe-input/zonos-stripe-input.d.ts +22 -0
  194. package/dist/types/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.d.ts +88 -0
  195. package/dist/types/components/common/zonos-stripe-select/zonos-stripe-select.d.ts +86 -0
  196. package/dist/types/components/main/zonos-controller.d.ts +1 -0
  197. package/dist/types/components/store/checkout/stripe.d.ts +9 -0
  198. package/dist/types/components/store/translationStore/strings.arabic.d.ts +159 -0
  199. package/dist/types/components/store/translationStore/strings.base.d.ts +159 -0
  200. package/dist/types/components/store/translationStore/strings.chinese.d.ts +159 -0
  201. package/dist/types/components/store/translationStore/strings.danish.d.ts +159 -0
  202. package/dist/types/components/store/translationStore/strings.dutch.d.ts +159 -0
  203. package/dist/types/components/store/translationStore/strings.french.d.ts +159 -0
  204. package/dist/types/components/store/translationStore/strings.german.d.ts +159 -0
  205. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +159 -0
  206. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +159 -0
  207. package/dist/types/components/store/translationStore/strings.italian.d.ts +159 -0
  208. package/dist/types/components/store/translationStore/strings.japanese.d.ts +159 -0
  209. package/dist/types/components/store/translationStore/strings.korean.d.ts +159 -0
  210. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +159 -0
  211. package/dist/types/components/store/translationStore/strings.polish.d.ts +159 -0
  212. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +159 -0
  213. package/dist/types/components/store/translationStore/strings.russian.d.ts +159 -0
  214. package/dist/types/components/store/translationStore/strings.spanish.d.ts +159 -0
  215. package/dist/types/components/store/translationStore/strings.swedish.d.ts +159 -0
  216. package/dist/types/components/store/translationStore/strings.turkish.d.ts +159 -0
  217. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +159 -0
  218. package/dist/types/components/store/zonosStore.d.ts +6 -1
  219. package/dist/types/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.d.ts +38 -0
  220. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +150 -0
  221. package/dist/types/components/utils/api/getGenericSettingsOverride.d.ts +5 -0
  222. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  223. package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -2
  224. package/dist/types/components/utils/checkout/form/helpers.d.ts +19 -0
  225. package/dist/types/components/utils/checkout/form/isValidZip.d.ts +5 -0
  226. package/dist/types/components/utils/iframe/CheckoutAddressService.d.ts +38 -0
  227. package/dist/types/components/utils/iframe/IframeHelpers.d.ts +81 -0
  228. package/dist/types/components/utils/mergeAddress.d.ts +4 -0
  229. package/dist/types/components/utils/resetToSelectedTab.d.ts +1 -1
  230. package/dist/types/components.d.ts +472 -4
  231. package/dist/types/constants/phone-formats.d.ts +5 -0
  232. package/dist/types/environment.d.ts +1 -1
  233. package/dist/types/scripts/_zonosBase.d.ts +13 -1
  234. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +1 -0
  235. package/dist/types/types/CountryFields.d.ts +40 -0
  236. package/dist/types/types/checkout/form/CustomAddressErrors.d.ts +13 -0
  237. package/dist/types/types/generated/graphql.frontend.types.d.ts +164 -1
  238. package/dist/types/types/generated/graphql.frontend.types.ts +145 -1
  239. package/dist/types/types/generated/graphql.internal.types.d.ts +127 -0
  240. package/dist/types/types/generated/graphql.internal.types.ts +155 -0
  241. package/dist/types/types/global.d.ts +1 -0
  242. package/dist/types/types/index.d.ts +1 -1
  243. package/dist/types/types/utils/ZonosSettings.d.ts +17 -0
  244. package/dist/zonos-elements/index.esm.js +1 -1
  245. package/dist/zonos-elements/{p-4622cca6.entry.js → p-0104d3ba.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-7cb87ea7.system.entry.js → p-04303b56.system.entry.js} +1 -1
  247. package/dist/zonos-elements/p-06f798ee.system.js +1 -0
  248. package/dist/zonos-elements/{p-739014f8.system.entry.js → p-0fdd7034.system.entry.js} +1 -1
  249. package/dist/zonos-elements/p-15dd7ea4.system.entry.js +1 -0
  250. package/dist/zonos-elements/{p-a1cfbd0a.js → p-17299200.js} +1 -1
  251. package/dist/zonos-elements/{p-58f660d4.system.entry.js → p-1b29bc5f.system.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-fe2c27c4.entry.js → p-1e612c29.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-98aa88b1.js → p-2097fae5.js} +1 -1
  254. package/dist/zonos-elements/{p-81084be5.system.entry.js → p-240ee490.system.entry.js} +1 -1
  255. package/dist/zonos-elements/p-2416aaa1.system.entry.js +1 -0
  256. package/dist/zonos-elements/{p-cedf08f0.entry.js → p-313ef896.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-fa65b53d.entry.js → p-314fbfe1.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-5187ba8f.system.js → p-31e90130.system.js} +1 -1
  259. package/dist/zonos-elements/{p-4ca666ea.system.entry.js → p-341f40c2.system.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-d49c6a3e.system.entry.js → p-35f33601.system.entry.js} +1 -1
  261. package/dist/zonos-elements/p-4160bbc2.system.js +1 -0
  262. package/dist/zonos-elements/p-43633269.system.js +2 -0
  263. package/dist/zonos-elements/p-443b5db2.entry.js +1 -0
  264. package/dist/zonos-elements/p-46d3e378.system.entry.js +1 -0
  265. package/dist/zonos-elements/{p-3d221556.system.entry.js → p-488ad646.system.entry.js} +1 -1
  266. package/dist/zonos-elements/p-53ffdb91.js +1 -0
  267. package/dist/zonos-elements/p-56b56caa.system.entry.js +1 -0
  268. package/dist/zonos-elements/p-5e15616f.entry.js +1 -0
  269. package/dist/zonos-elements/{p-3eac4b10.entry.js → p-5f896e9a.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-e8c70c7d.system.entry.js → p-609c32a3.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-64ea232c.system.entry.js +1 -0
  272. package/dist/zonos-elements/{p-f378b4d3.system.entry.js → p-678ccc3f.system.entry.js} +1 -1
  273. package/dist/zonos-elements/{p-8048932d.entry.js → p-67b904c2.entry.js} +1 -1
  274. package/dist/zonos-elements/p-6b40da70.system.js +1 -0
  275. package/dist/zonos-elements/p-70d4d436.entry.js +1 -0
  276. package/dist/zonos-elements/{p-64dbc282.entry.js → p-818d6f17.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-b5b9aa6c.entry.js → p-81ee1683.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-236f32c8.system.entry.js → p-89fcd305.system.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-c4fa8524.system.entry.js → p-94a80d93.system.entry.js} +1 -1
  280. package/dist/zonos-elements/p-961620ae.entry.js +1 -0
  281. package/dist/zonos-elements/{p-4eff2f8a.system.entry.js → p-98e4a965.system.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-5bebcfc2.system.js → p-9913c186.system.js} +1 -1
  283. package/dist/zonos-elements/{p-29e8c9e8.system.entry.js → p-991c85f1.system.entry.js} +1 -1
  284. package/dist/zonos-elements/p-995761ea.system.entry.js +1 -0
  285. package/dist/zonos-elements/p-9a6eb099.entry.js +1 -0
  286. package/dist/zonos-elements/p-9a7a9b1c.entry.js +1 -0
  287. package/dist/zonos-elements/{p-d367c9ae.system.entry.js → p-9f7b9d66.system.entry.js} +1 -1
  288. package/dist/zonos-elements/p-a2dab25e.system.entry.js +1 -0
  289. package/dist/zonos-elements/{p-587568b5.entry.js → p-aaff5dcc.entry.js} +1 -1
  290. package/dist/zonos-elements/{p-3731e7f5.entry.js → p-abc66a0b.entry.js} +1 -1
  291. package/dist/zonos-elements/{p-eb294265.entry.js → p-aca3a2bb.entry.js} +1 -1
  292. package/dist/zonos-elements/p-afa34aff.system.js +1 -0
  293. package/dist/zonos-elements/{p-69f84611.entry.js → p-b2241919.entry.js} +1 -1
  294. package/dist/zonos-elements/p-b5edee66.system.js +1 -0
  295. package/dist/zonos-elements/p-b610f70c.system.js +1 -0
  296. package/dist/zonos-elements/{p-69255ed2.system.js → p-bbbaea3a.system.js} +1 -1
  297. package/dist/zonos-elements/p-c137dc82.js +2 -0
  298. package/dist/zonos-elements/{p-be9e1818.system.entry.js → p-c140a0bd.system.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-de221545.entry.js → p-cf6ae7dc.entry.js} +1 -1
  300. package/dist/zonos-elements/{p-90633d63.entry.js → p-d0f4b6c3.entry.js} +1 -1
  301. package/dist/zonos-elements/{p-112aecac.js → p-de462b9b.js} +2 -2
  302. package/dist/zonos-elements/{p-107b08c1.entry.js → p-e5d081d8.entry.js} +1 -1
  303. package/dist/zonos-elements/p-e7b0c156.js +1 -0
  304. package/dist/zonos-elements/{p-30fdcbee.js → p-e892fb29.js} +1 -1
  305. package/dist/zonos-elements/p-e90cb997.entry.js +1 -0
  306. package/dist/zonos-elements/{p-db3f381d.entry.js → p-e91b244c.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-41dfc828.entry.js → p-e99354d5.entry.js} +1 -1
  308. package/dist/zonos-elements/p-ea6d87a1.system.js +1 -0
  309. package/dist/zonos-elements/p-eef5b0cc.js +1 -0
  310. package/dist/zonos-elements/{p-d0944cc8.system.entry.js → p-f3f27bf2.system.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-0e63259c.system.entry.js → p-f4cc688e.system.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-cc6d9f7d.entry.js → p-f7d3e48b.entry.js} +1 -1
  313. package/dist/zonos-elements/p-fa6de0f3.js +1 -0
  314. package/dist/zonos-elements/{p-c5c8f803.system.entry.js → p-fd348fd4.system.entry.js} +1 -1
  315. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  316. package/dist/zonos-elements/zonos-elements.js +1 -1
  317. package/package.json +3 -1
  318. package/dist/cjs/zonos-address_7.cjs.entry.js +0 -772
  319. package/dist/esm/zonos-address_7.entry.js +0 -762
  320. package/dist/esm-es5/cart-3fb04f1f.js +0 -1
  321. package/dist/esm-es5/index-d82f06f2.js +0 -2
  322. package/dist/esm-es5/zonos-address_7.entry.js +0 -1
  323. package/dist/zonos-elements/p-09041efe.entry.js +0 -1
  324. package/dist/zonos-elements/p-16e4cdb1.entry.js +0 -1
  325. package/dist/zonos-elements/p-43feb95e.entry.js +0 -1
  326. package/dist/zonos-elements/p-46f6e5e9.system.js +0 -1
  327. package/dist/zonos-elements/p-4caffd96.system.js +0 -2
  328. package/dist/zonos-elements/p-642bf613.system.entry.js +0 -1
  329. package/dist/zonos-elements/p-6c0c8722.system.entry.js +0 -1
  330. package/dist/zonos-elements/p-7decb19b.entry.js +0 -1
  331. package/dist/zonos-elements/p-829f6a40.entry.js +0 -1
  332. package/dist/zonos-elements/p-8f640b28.entry.js +0 -1
  333. package/dist/zonos-elements/p-a69dbe14.js +0 -1
  334. package/dist/zonos-elements/p-ab68ad11.js +0 -2
  335. package/dist/zonos-elements/p-b1020237.system.js +0 -1
  336. package/dist/zonos-elements/p-bc0f885e.system.entry.js +0 -1
  337. package/dist/zonos-elements/p-c6d96a42.system.js +0 -1
  338. package/dist/zonos-elements/p-ce853f8f.system.entry.js +0 -1
  339. package/dist/zonos-elements/p-d5d39db4.system.entry.js +0 -1
  340. package/dist/zonos-elements/p-e4f8114a.system.js +0 -1
  341. package/dist/zonos-elements/p-e99e75dd.system.entry.js +0 -1
  342. package/dist/zonos-elements/p-f66a5c7c.system.entry.js +0 -1
  343. package/dist/zonos-elements/p-febb90e0.entry.js +0 -1
@@ -14,12 +14,30 @@ export declare const stringsVietnamese: {
14
14
  Address: {
15
15
  value: string;
16
16
  };
17
+ 'Address 2': {
18
+ value: string;
19
+ };
17
20
  'Address line 1': {
18
21
  value: string;
19
22
  };
20
23
  'Address line 2': {
21
24
  value: string;
22
25
  };
26
+ 'Address line 3': {
27
+ value: string;
28
+ };
29
+ Address1: {
30
+ value: string;
31
+ };
32
+ Address2: {
33
+ value: string;
34
+ };
35
+ Address3: {
36
+ value: string;
37
+ };
38
+ 'Adresa vulytsi': {
39
+ value: string;
40
+ };
23
41
  'An unexpected error occurred when processing PayPal order.': {
24
42
  value: string;
25
43
  };
@@ -29,6 +47,9 @@ export declare const stringsVietnamese: {
29
47
  'Are you sure?': {
30
48
  value: string;
31
49
  };
50
+ Area: {
51
+ value: string;
52
+ };
32
53
  Back: {
33
54
  value: string;
34
55
  };
@@ -41,6 +62,9 @@ export declare const stringsVietnamese: {
41
62
  'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
42
63
  value: string;
43
64
  };
65
+ CEDEX: {
66
+ value: string;
67
+ };
44
68
  'CPF/CNPJ number': {
45
69
  value: string;
46
70
  };
@@ -56,6 +80,9 @@ export declare const stringsVietnamese: {
56
80
  City: {
57
81
  value: string;
58
82
  };
83
+ 'City/Town': {
84
+ value: string;
85
+ };
59
86
  'Click to copy the card number. Use any future expiration date and three number CVC.': {
60
87
  value: string;
61
88
  };
@@ -65,6 +92,12 @@ export declare const stringsVietnamese: {
65
92
  Close: {
66
93
  value: string;
67
94
  };
95
+ 'Code postal': {
96
+ value: string;
97
+ };
98
+ Commune: {
99
+ value: string;
100
+ };
68
101
  'Company name (optional)': {
69
102
  value: string;
70
103
  };
@@ -80,6 +113,12 @@ export declare const stringsVietnamese: {
80
113
  Country: {
81
114
  value: string;
82
115
  };
116
+ County: {
117
+ value: string;
118
+ };
119
+ 'County or sector': {
120
+ value: string;
121
+ };
83
122
  Customer: {
84
123
  value: string;
85
124
  };
@@ -92,9 +131,21 @@ export declare const stringsVietnamese: {
92
131
  'Delivery options': {
93
132
  value: string;
94
133
  };
134
+ Department: {
135
+ value: string;
136
+ };
137
+ Derzhava: {
138
+ value: string;
139
+ };
95
140
  Discounts: {
96
141
  value: string;
97
142
  };
143
+ District: {
144
+ value: string;
145
+ };
146
+ 'Do/Si': {
147
+ value: string;
148
+ };
98
149
  "Don't close": {
99
150
  value: string;
100
151
  };
@@ -119,6 +170,9 @@ export declare const stringsVietnamese: {
119
170
  Email: {
120
171
  value: string;
121
172
  };
173
+ Emirate: {
174
+ value: string;
175
+ };
122
176
  'Error creating Checkout': {
123
177
  value: string;
124
178
  };
@@ -143,6 +197,9 @@ export declare const stringsVietnamese: {
143
197
  'Go to payment': {
144
198
  value: string;
145
199
  };
200
+ Gorod: {
201
+ value: string;
202
+ };
146
203
  Guaranteed: {
147
204
  value: string;
148
205
  };
@@ -152,12 +209,18 @@ export declare const stringsVietnamese: {
152
209
  'Hide non-prepaid options': {
153
210
  value: string;
154
211
  };
212
+ Indeks: {
213
+ value: string;
214
+ };
155
215
  'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
156
216
  value: string;
157
217
  };
158
218
  'Invalid promo code': {
159
219
  value: string;
160
220
  };
221
+ Island: {
222
+ value: string;
223
+ };
161
224
  'It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?': {
162
225
  value: string;
163
226
  };
@@ -170,15 +233,27 @@ export declare const stringsVietnamese: {
170
233
  'Know about duties and taxes before you buy. Shop with confidence!': {
171
234
  value: string;
172
235
  };
236
+ Kodepos: {
237
+ value: string;
238
+ };
173
239
  'Last name': {
174
240
  value: string;
175
241
  };
176
242
  'Learn more.': {
177
243
  value: string;
178
244
  };
245
+ Locality: {
246
+ value: string;
247
+ };
179
248
  'Missing required fields. Make sure all fields are completed.': {
180
249
  value: string;
181
250
  };
251
+ Misto: {
252
+ value: string;
253
+ };
254
+ Municipality: {
255
+ value: string;
256
+ };
182
257
  Name: {
183
258
  value: string;
184
259
  };
@@ -209,6 +284,9 @@ export declare const stringsVietnamese: {
209
284
  OK: {
210
285
  value: string;
211
286
  };
287
+ Oblast: {
288
+ value: string;
289
+ };
212
290
  'Order complete!': {
213
291
  value: string;
214
292
  };
@@ -218,6 +296,9 @@ export declare const stringsVietnamese: {
218
296
  'Orders to [countryName] must be over [threshold] to ship.': {
219
297
  value: string;
220
298
  };
299
+ Parish: {
300
+ value: string;
301
+ };
221
302
  'Pay [orderTotal]': {
222
303
  value: string;
223
304
  };
@@ -257,12 +338,30 @@ export declare const stringsVietnamese: {
257
338
  'Please enter a valid email address.': {
258
339
  value: string;
259
340
  };
341
+ 'Please provide a mobile phone number.': {
342
+ value: string;
343
+ };
344
+ 'Please provide your first name.': {
345
+ value: string;
346
+ };
347
+ 'Please provide your last name.': {
348
+ value: string;
349
+ };
350
+ 'Poshtovyy indeks': {
351
+ value: string;
352
+ };
260
353
  'Postal code': {
261
354
  value: string;
262
355
  };
356
+ Postcode: {
357
+ value: string;
358
+ };
263
359
  'Powered by': {
264
360
  value: string;
265
361
  };
362
+ Prefecture: {
363
+ value: string;
364
+ };
266
365
  'Prepay duties and taxes at checkout': {
267
366
  value: string;
268
367
  };
@@ -290,12 +389,18 @@ export declare const stringsVietnamese: {
290
389
  'Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions.': {
291
390
  value: string;
292
391
  };
392
+ Province: {
393
+ value: string;
394
+ };
293
395
  Quantity: {
294
396
  value: string;
295
397
  };
296
398
  'RFC number': {
297
399
  value: string;
298
400
  };
401
+ Region: {
402
+ value: string;
403
+ };
299
404
  Reload: {
300
405
  value: string;
301
406
  };
@@ -314,9 +419,15 @@ export declare const stringsVietnamese: {
314
419
  'Search countries': {
315
420
  value: string;
316
421
  };
422
+ Sector: {
423
+ value: string;
424
+ };
317
425
  'See duty and tax thresholds': {
318
426
  value: string;
319
427
  };
428
+ Select: {
429
+ value: string;
430
+ };
320
431
  'Select a country': {
321
432
  value: string;
322
433
  };
@@ -359,9 +470,27 @@ export declare const stringsVietnamese: {
359
470
  State: {
360
471
  value: string;
361
472
  };
473
+ 'State or Territory': {
474
+ value: string;
475
+ };
476
+ 'State or province': {
477
+ value: string;
478
+ };
362
479
  'State/Province': {
363
480
  value: string;
364
481
  };
482
+ 'Street address': {
483
+ value: string;
484
+ };
485
+ 'Street address 2': {
486
+ value: string;
487
+ };
488
+ 'Street address 3': {
489
+ value: string;
490
+ };
491
+ 'Street or avenue': {
492
+ value: string;
493
+ };
365
494
  Success: {
366
495
  value: string;
367
496
  };
@@ -380,6 +509,9 @@ export declare const stringsVietnamese: {
380
509
  'Test mode': {
381
510
  value: string;
382
511
  };
512
+ 'The field is incomplete': {
513
+ value: string;
514
+ };
383
515
  'The following items are unable to be shipped to your country and are not included in your cart total.': {
384
516
  value: string;
385
517
  };
@@ -398,9 +530,21 @@ export declare const stringsVietnamese: {
398
530
  'To ensure delivery all address details must be in Latin characters.': {
399
531
  value: string;
400
532
  };
533
+ Town: {
534
+ value: string;
535
+ };
536
+ 'Town / City': {
537
+ value: string;
538
+ };
539
+ 'Town or city': {
540
+ value: string;
541
+ };
401
542
  'Translated address': {
402
543
  value: string;
403
544
  };
545
+ Ulica: {
546
+ value: string;
547
+ };
404
548
  'Unable to check inventory. Please try again.': {
405
549
  value: string;
406
550
  };
@@ -419,6 +563,9 @@ export declare const stringsVietnamese: {
419
563
  'Update your address': {
420
564
  value: string;
421
565
  };
566
+ Village: {
567
+ value: string;
568
+ };
422
569
  "We couldn't complete your payment. Please verify the payment details and try again.": {
423
570
  value: string;
424
571
  };
@@ -449,9 +596,15 @@ export declare const stringsVietnamese: {
449
596
  "You're all set!": {
450
597
  value: string;
451
598
  };
599
+ 'Your [zipLabel] is invalid': {
600
+ value: string;
601
+ };
452
602
  'Your checkout session has expired. Please reload the page to continue.': {
453
603
  value: string;
454
604
  };
605
+ 'Your mobile phone number is incomplete.': {
606
+ value: string;
607
+ };
455
608
  'Your order has been successfully placed.': {
456
609
  value: string;
457
610
  };
@@ -461,6 +614,12 @@ export declare const stringsVietnamese: {
461
614
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
462
615
  value: string;
463
616
  };
617
+ 'ZIP code': {
618
+ value: string;
619
+ };
620
+ Zip: {
621
+ value: string;
622
+ };
464
623
  '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
465
624
  value: string;
466
625
  };
@@ -1,8 +1,9 @@
1
+ import type { CheckoutAddressService } from "../utils/iframe/CheckoutAddressService";
1
2
  import type { CurrencyConverter, LoadZonosParamsConfig } from "../../scripts/_zonosBase";
2
- import type { GenericZonosSettings, ZonosSettings } from "../../types/index";
3
3
  import type { CheckoutConfig } from "../../types/checkout/CheckoutConfig";
4
4
  import type { CountryCode, ElementsUiStyle, ElementsUiTheme, ZonosAttribution } from "../../types/generated/graphql.internal.types";
5
5
  import type { HelloConfig } from "../../types/hello/HelloConfig";
6
+ import type { GenericZonosSettings, ZonosSettings } from "../../types/utils/ZonosSettings";
6
7
  export type AppearanceConfig = {
7
8
  colorPrimary?: string;
8
9
  colorSecondary?: string;
@@ -24,6 +25,10 @@ export type AppearanceConfig = {
24
25
  export type Page = 'home' | 'productList' | 'productDetail' | 'cart';
25
26
  export type ZonosConfig = {
26
27
  appearance: AppearanceConfig;
28
+ /**
29
+ * Service for managing address selection and validation
30
+ */
31
+ checkoutAddressService: CheckoutAddressService | null;
27
32
  checkoutSettings: CheckoutConfig;
28
33
  currencyConverter?: CurrencyConverter;
29
34
  currentHelloPage: Page | '';
@@ -0,0 +1,38 @@
1
+ import { type EventEmitter } from '../../../../stencil-public-runtime';
2
+ import type { EventPayloadMap, IframeSuggestionsResponsePayload } from "../../../utils/iframe/IframeHelpers";
3
+ export declare class ZonosAddressSuggestions {
4
+ el: HTMLZonosAddressSuggestionsElement;
5
+ /**
6
+ * Type of the address suggestions
7
+ */
8
+ type: 'billing' | 'shipping';
9
+ /**
10
+ * Suggestions to display
11
+ */
12
+ suggestions: IframeSuggestionsResponsePayload['suggestions'];
13
+ /**
14
+ * Selected suggestion id
15
+ */
16
+ selectedSuggestionId: string | null;
17
+ /**
18
+ * Local suggestions to display
19
+ */
20
+ localSuggestions: IframeSuggestionsResponsePayload['suggestions'];
21
+ lastHoveredSuggestionId: string | null;
22
+ /**
23
+ * Event emitted when a suggestion is selected
24
+ */
25
+ suggestionSelected: EventEmitter<EventPayloadMap['placeSelected']>;
26
+ suggestionsChanged(): void;
27
+ /**
28
+ * Handle clicks outside of the suggestions component
29
+ */
30
+ private handleClickOutside;
31
+ componentDidLoad(): void;
32
+ disconnectedCallback(): void;
33
+ /**
34
+ * Split text into segments based on matches array for highlighting
35
+ */
36
+ private getHighlightedText;
37
+ render(): any;
38
+ }
@@ -0,0 +1,150 @@
1
+ import type { EventEmitter } from '../../../stencil-public-runtime';
2
+ import type { ContactOption, Stripe, StripeAddressElementChangeEvent } from '@stripe/stripe-js';
3
+ import type { ICountryJson } from "../../../components";
4
+ import type { CheckoutAddressService } from "../../utils/iframe/CheckoutAddressService";
5
+ import type { CustomAddressErrors } from "../../../types/checkout/form/CustomAddressErrors";
6
+ import type { CountryFields } from "../../../types/CountryFields";
7
+ export declare class ZonosAddress {
8
+ el: HTMLZonosCustomAddressElement;
9
+ /**
10
+ * The type of address element to render
11
+ */
12
+ type: 'billing' | 'shipping';
13
+ /**
14
+ * The title text for the address element
15
+ */
16
+ titleText: string;
17
+ /**
18
+ * Default address for stripe
19
+ */
20
+ defaultAddress: ContactOption[];
21
+ /**
22
+ * Event to emit when address is not containing allowed character sets
23
+ */
24
+ invalidCharacters: EventEmitter<boolean>;
25
+ /**
26
+ * Event to emit when address is changed
27
+ */
28
+ addressChange: EventEmitter<{
29
+ errors: CustomAddressErrors;
30
+ type: 'billing' | 'shipping';
31
+ value: StripeAddressElementChangeEvent;
32
+ }>;
33
+ stripe: Stripe | null;
34
+ /**
35
+ * 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
36
+ */
37
+ isDirtyAddress: boolean;
38
+ /**
39
+ * Local address event for stripe address element
40
+ */
41
+ isAddressFilled: boolean;
42
+ /**
43
+ * Whether the address line 1 is already entered greater than 3 characters once
44
+ */
45
+ isAddressLine1Entered: boolean;
46
+ /**
47
+ * Address suggestions from google place api
48
+ */
49
+ addressSuggestions: {
50
+ id: string;
51
+ matches: {
52
+ endOffset: number;
53
+ startOffset: number;
54
+ }[];
55
+ place: string;
56
+ }[];
57
+ /**
58
+ * Country fields for the current country
59
+ */
60
+ countryField: CountryFields | null;
61
+ /**
62
+ * Whether to start google place suggestions
63
+ */
64
+ startGooglePlaceSuggestions: boolean;
65
+ /**
66
+ * List of countries to show in the address element
67
+ */
68
+ shipToCountries: {
69
+ label: string;
70
+ value: string;
71
+ }[] | null;
72
+ /**
73
+ * Shipping zones from localization
74
+ */
75
+ shippingZones: ICountryJson | null;
76
+ city: string;
77
+ country: string;
78
+ firstName: string;
79
+ lastName: string;
80
+ line1: string;
81
+ line2: string | null;
82
+ phone: string;
83
+ postalCode: string;
84
+ state: string;
85
+ cityError: string;
86
+ stateError: string;
87
+ postalCodeError: string;
88
+ phoneError: string;
89
+ firstNameError: string;
90
+ lastNameError: string;
91
+ /**
92
+ * Whether the address element is loaded
93
+ */
94
+ isFirstInitialization: boolean;
95
+ /**
96
+ * Address service instance
97
+ */
98
+ addressService: CheckoutAddressService | null;
99
+ /**
100
+ * Local checkout session id to check if the address is filled after checkout is loaded
101
+ */
102
+ checkoutSessionId: string | null;
103
+ /**
104
+ * Whether the suggestion is clicked
105
+ */
106
+ private suggestionClicked;
107
+ /**
108
+ * Check if the tracking event is sent
109
+ */
110
+ private trackingSent;
111
+ /**
112
+ * Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
113
+ */
114
+ private isAutoCompleteAdjusted;
115
+ /**
116
+ * Unsubscribe function for address suggestions listener
117
+ */
118
+ private onAddressSuggestionsUnsubscribe?;
119
+ /**
120
+ * Unsubscribe function for address selected listener
121
+ */
122
+ private onAddressSelectedUnsubscribe?;
123
+ private getStripeAddressInstance;
124
+ private updateAddressEventData;
125
+ isAddressFilledChanged(): void;
126
+ defaultAddressChanged(newAddress: ContactOption[], oldAddress: ContactOption[]): void;
127
+ private getIsComplete;
128
+ private throttledGetAddressSuggestions;
129
+ private setCustomAddressFormToStripeAddressEventData;
130
+ private renderCompanyNameInput;
131
+ private initCountryField;
132
+ private initDefaultCustomAddressForm;
133
+ line1Changed(): void;
134
+ formFieldsChanged(): void;
135
+ private addressSuggestionSelected;
136
+ private setFormValues;
137
+ private getCustomAddressErrors;
138
+ private validate;
139
+ /**
140
+ * Initialize the address suggestions
141
+ */
142
+ private initAddressSuggestions;
143
+ shouldEnabledCustomAddressChanged(): void;
144
+ shippingZonesChanged(): void;
145
+ private renderCustomAddressForm;
146
+ disconnectedCallback(): void;
147
+ componentWillLoad(): void;
148
+ componentDidLoad(): void;
149
+ render(): any;
150
+ }
@@ -0,0 +1,5 @@
1
+ type GenericSettingsOverride = {
2
+ overrideShouldEnabledCustomAddress?: string | null;
3
+ };
4
+ export declare const getGenericSettingsOverride: () => GenericSettingsOverride;
5
+ export {};
@@ -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: {
@@ -1,6 +1,6 @@
1
- import type { ZonosSettings } from "../../../types/index";
1
+ import type { ZonosSettings } from "../../../types/utils/ZonosSettings";
2
2
  export declare const getZonosSettings: () => Promise<{
3
- errors: import("src/types").JsonError[];
3
+ errors: import("../../..").JsonError[];
4
4
  json: null;
5
5
  zonosMode: "production" | "test" | null;
6
6
  } | {
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Elements inside of web components sometimes need to inherit global attributes
3
+ * set on the host. For example, the inner input in `ion-input` should inherit
4
+ * the `title` attribute that developers set directly on `ion-input`. This
5
+ * helper function should be called in componentWillLoad and assigned to a variable
6
+ * that is later used in the render function.
7
+ *
8
+ * This does not need to be reactive as changing attributes on the host element
9
+ * does not trigger a re-render.
10
+ */
11
+ export declare const inheritAttributes: (el: HTMLElement, attributes?: string[]) => Record<string, string>;
12
+ /**
13
+ * Returns an array of aria attributes that should be copied from
14
+ * the shadow host element to a target within the light DOM.
15
+ * @param el The element that the attributes should be copied from.
16
+ * @param ignoreList The list of aria-attributes to ignore reflecting and removing from the host.
17
+ * Use this in instances where we manually specify aria attributes on the `<Host>` element.
18
+ */
19
+ export declare const inheritAriaAttributes: (el: HTMLElement, ignoreList?: string[]) => Record<string, string>;
@@ -0,0 +1,5 @@
1
+ import type { CountryFields } from "../../../../types/CountryFields";
2
+ export declare const isValidZip: ({ countryFields, zip, }: {
3
+ countryFields: CountryFields | null;
4
+ zip: string;
5
+ }) => boolean;
@@ -0,0 +1,38 @@
1
+ import { type EventPayloadMap } from "./IframeHelpers";
2
+ /**
3
+ * Checkout service for managing address selection and validation
4
+ */
5
+ export declare class CheckoutAddressService {
6
+ private googlePlaceInitialized;
7
+ private readonly googlePlaces;
8
+ private suggestionsCallback?;
9
+ private placeSelectedCallback?;
10
+ constructor();
11
+ private initialize;
12
+ onInitializeGooglePlacesService(callback: () => void): () => void;
13
+ isGooglePlaceInitialized(): boolean;
14
+ /**
15
+ * Set up event listeners for address suggestions
16
+ */
17
+ onAddressSuggestions(callback: (props: EventPayloadMap['onFetchAutocompleteSuggestions']) => void): () => void;
18
+ /**
19
+ * Set up event listeners for selected address
20
+ */
21
+ onAddressSelected(callback: (response: EventPayloadMap['onPlaceSelected']) => void): () => void;
22
+ /**
23
+ * Request address suggestions based on user input
24
+ */
25
+ getAddressSuggestions({ country, query, type, }: {
26
+ country: string;
27
+ query: string;
28
+ type: 'billing' | 'shipping';
29
+ }): void;
30
+ /**
31
+ * Select an address from suggestions
32
+ */
33
+ selectAddress({ placeId, type, }: {
34
+ placeId: string;
35
+ type: 'billing' | 'shipping';
36
+ }): void;
37
+ destroy(): void;
38
+ }