@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
@@ -0,0 +1,658 @@
1
+ export const PHONE_FORMATS = {
2
+ AD: {
3
+ phoneFormat: '^(\\+376)?[346]\\d{5}$',
4
+ phonePlaceholder: '+376 312 345',
5
+ },
6
+ AE: {
7
+ phoneFormat: '^((\\+?971)|0)?5[024568]\\d{7}$',
8
+ phonePlaceholder: '+971 50 123 4567',
9
+ },
10
+ AF: {
11
+ phoneFormat: '^(\\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\\d{7})$',
12
+ phonePlaceholder: '+93 20 123 4567',
13
+ },
14
+ AG: {
15
+ phoneFormat: '^(?:\\+1|1)268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}$',
16
+ phonePlaceholder: '+1 268 464 1234',
17
+ },
18
+ AI: {
19
+ phoneFormat: '^(\\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\\d{4}$',
20
+ phonePlaceholder: '+1 264 235 1234',
21
+ },
22
+ AL: {
23
+ phoneFormat: '^\\+355[2-9]\\d{7,8}$',
24
+ phonePlaceholder: '+355 42 123 456',
25
+ },
26
+ AM: {
27
+ phoneFormat: '^(\\+?374|0)(33|4[134]|55|77|88|9[13-689])\\d{6}$',
28
+ phonePlaceholder: '+374 33 123 456',
29
+ },
30
+ AO: {
31
+ phoneFormat: '^(\\+244)\\d{9}$',
32
+ phonePlaceholder: '+244 923 123 456',
33
+ },
34
+ AR: {
35
+ phoneFormat: '^\\+?549(11|[2368]\\d)\\d{8}$',
36
+ phonePlaceholder: '+54 9 11 1234 5678',
37
+ },
38
+ AT: {
39
+ phoneFormat: '^\\+43[1-9][0-9]{3,12}$',
40
+ phonePlaceholder: '+43 1 234567890',
41
+ },
42
+ AU: {
43
+ phoneFormat: '^(\\+?61|0)4\\d{8}$',
44
+ phonePlaceholder: '+61 412 345 678',
45
+ },
46
+ AW: {
47
+ phoneFormat: '^(\\+)?297(56|59|64|73|74|99)\\d{5}$',
48
+ phonePlaceholder: '+297 564 1234',
49
+ },
50
+ AX: {
51
+ phoneFormat: '^\\+35818[0-9]{5}$',
52
+ phonePlaceholder: '+358 18 12345',
53
+ },
54
+ AZ: {
55
+ phoneFormat: '^(\\+994|0)(10|5[015]|7[07]|99)\\d{7}$',
56
+ phonePlaceholder: '+994 50 123 45 67',
57
+ },
58
+ BA: {
59
+ phoneFormat: '^(((\\+|00)3876)|06))((([0-3]|[5-6])\\d{6})|(4\\d{7}))$',
60
+ phonePlaceholder: '+387 61 123 456',
61
+ },
62
+ BD: {
63
+ phoneFormat: '^(\\+?880|0)1[13456789][0-9]{8}$',
64
+ phonePlaceholder: '+880 1712 345678',
65
+ },
66
+ BE: {
67
+ phoneFormat: '^(\\+?32|0)4\\d{8}$',
68
+ phonePlaceholder: '+32 470 123 456',
69
+ },
70
+ BF: {
71
+ phoneFormat: '^(\\+226|0)[67]\\d{7}$',
72
+ phonePlaceholder: '+226 70 12 34 56',
73
+ },
74
+ BG: {
75
+ phoneFormat: '^(\\+?359|0)?8[789]\\d{7}$',
76
+ phonePlaceholder: '+359 87 123 4567',
77
+ },
78
+ BH: {
79
+ phoneFormat: '^(\\+?973)?(3|6)\\d{7}$',
80
+ phonePlaceholder: '+973 3123 4567',
81
+ },
82
+ BJ: {
83
+ phoneFormat: '^(\\+229)\\d{8}$',
84
+ phonePlaceholder: '+229 12 34 56 78',
85
+ },
86
+ BM: {
87
+ phoneFormat: '^(\\+?1)?441(((3|7)\\d{6}$)|(5[0-3][0-9]\\d{4}$)|(59\\d{5}$))',
88
+ phonePlaceholder: '+1 441 312 3456',
89
+ },
90
+ BO: {
91
+ phoneFormat: '^(\\+?591)?(6|7)\\d{7}$',
92
+ phonePlaceholder: '+591 6 123 4567',
93
+ },
94
+ BR: {
95
+ phoneFormat: '^((\\+?55\\ ?[1-9]{2}\\ ?)|(\+?55\\ ?\\([1-9]{2}\\)\\ ?)|(0[1-9]{2}\\ ?)|(\\([1-9]{2}\\)\\ ?)|([1-9]{2}\\ ?))((\\d{4}\\-?\\d{4})|(9[1-9]{1}\\d{3}\\-?\\d{4}))$',
96
+ phonePlaceholder: '+55 11 91234-5678',
97
+ },
98
+ BS: {
99
+ phoneFormat: '^(\\+?1[-\\s]?|0)?\\(?242\\)?[-\\s]?\\d{3}[-\\s]?\\d{4}$',
100
+ phonePlaceholder: '+1 242 123 4567',
101
+ },
102
+ BT: {
103
+ phoneFormat: '^(\\+?975|0)?(17|16|77|02)\\d{6}$',
104
+ phonePlaceholder: '+975 17 123 456',
105
+ },
106
+ BW: {
107
+ phoneFormat: '^(\\+?267)?(7[1-8]{1})\\d{6}$',
108
+ phonePlaceholder: '+267 71 123 456',
109
+ },
110
+ BY: {
111
+ phoneFormat: '^(\\+?375)?(24|25|29|33|44)\\d{7}$',
112
+ phonePlaceholder: '+375 29 123 45 67',
113
+ },
114
+ CA: {
115
+ phoneFormat: '^((\\+1|1)?( |-)?)?([2-9][0-9]{2}|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$',
116
+ phonePlaceholder: '+1 234 567 8900',
117
+ },
118
+ CD: {
119
+ phoneFormat: '^(\\+?243|0)?(8|9)\\d{8}$',
120
+ phonePlaceholder: '+243 81 234 5678',
121
+ },
122
+ CF: {
123
+ phoneFormat: '^(\\+?236| ?)(70|75|77|72|21|22)\\d{6}$',
124
+ phonePlaceholder: '+236 70 12 34 56',
125
+ },
126
+ CH: {
127
+ phoneFormat: '^(\\+41|0)([1-9])\\d{1,9}$',
128
+ phonePlaceholder: '+41 76 123 45 67',
129
+ },
130
+ CL: {
131
+ phoneFormat: '^(\\+?56|0)[2-9]\\d{1}\\d{7}$',
132
+ phonePlaceholder: '+56 9 1234 5678',
133
+ },
134
+ CM: {
135
+ phoneFormat: '^(\\+?237)6[0-9]{8}$',
136
+ phonePlaceholder: '+237 612 345 678',
137
+ },
138
+ CN: {
139
+ phoneFormat: '^((\\+|00)86)?(1[3-9]|9[28])\\d{9}$',
140
+ phonePlaceholder: '+86 131 2345 6789',
141
+ },
142
+ CO: {
143
+ phoneFormat: '^(\\+?57)?3(0(0|1|2|4|5)|1\\d|2[0-4]|5(0|1))\\d{7}$',
144
+ phonePlaceholder: '+57 301 234 5678',
145
+ },
146
+ CR: {
147
+ phoneFormat: '^(\\+506)?[2-8]\\d{7}$',
148
+ phonePlaceholder: '+506 2123 4567',
149
+ },
150
+ CU: {
151
+ phoneFormat: '^(\\+53|0053)?5\\d{7}$',
152
+ phonePlaceholder: '+53 5123 4567',
153
+ },
154
+ CY: {
155
+ phoneFormat: '^(\\+?357?)?(9(9|6)\\d{6})$',
156
+ phonePlaceholder: '+357 99 123 456',
157
+ },
158
+ CZ: {
159
+ phoneFormat: '^(\\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$',
160
+ phonePlaceholder: '+420 601 123 456',
161
+ },
162
+ DE: {
163
+ phoneFormat: '^((\\+49|0)1)(5[0-25-9]\\d|6([23]|0\\d?)|7([0-57-9]|6\\d))\\d{7,9}$',
164
+ phonePlaceholder: '+49 151 123 45678',
165
+ },
166
+ DK: {
167
+ phoneFormat: '^(\\+?45)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$',
168
+ phonePlaceholder: '+45 20 12 34 56',
169
+ },
170
+ DO: {
171
+ phoneFormat: '^(\\+?1)?8[024]9\\d{7}$',
172
+ phonePlaceholder: '+1 809 123 4567',
173
+ },
174
+ DZ: {
175
+ phoneFormat: '^(\\+?213|0)(5|6|7)\\d{8}$',
176
+ phonePlaceholder: '+213 5 12 34 56 78',
177
+ },
178
+ EC: {
179
+ phoneFormat: '^(\\+?593|0)([2-7]|9[2-9])\\d{7}$',
180
+ phonePlaceholder: '+593 99 123 4567',
181
+ },
182
+ EE: {
183
+ phoneFormat: '^(\\+?372)?\\s?(5|8[1-4])\\s?([0-9]\\s?){6,7}$',
184
+ phonePlaceholder: '+372 5123 456',
185
+ },
186
+ EG: {
187
+ phoneFormat: '^((\\+?20)|0)?1[0125]\\d{8}$',
188
+ phonePlaceholder: '+20 100 123 4567',
189
+ },
190
+ EH: {
191
+ phoneFormat: '^(\\+?212|0)[\\s\\-]?(5288|5289)[\\s\\-]?\\d{5}$',
192
+ phonePlaceholder: '+212 5288 12345',
193
+ },
194
+ ES: {
195
+ phoneFormat: '^(\\+?34)?[6|7]\\d{8}$',
196
+ phonePlaceholder: '+34 612 345 678',
197
+ },
198
+ FI: {
199
+ phoneFormat: '^(\\+?358|0)\\s?(4[0-6]|50)\\s?(\\d\\s?){4,8}$',
200
+ phonePlaceholder: '+358 40 123 45 67',
201
+ },
202
+ FJ: {
203
+ phoneFormat: '^(\\+?679)?\\s?\\d{3}\\s?\\d{4}$',
204
+ phonePlaceholder: '+679 321 2345',
205
+ },
206
+ FO: {
207
+ phoneFormat: '^(\\+?298)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$',
208
+ phonePlaceholder: '+298 211 234',
209
+ },
210
+ FR: {
211
+ phoneFormat: '^(\\+?33|0)[67]\\d{8}$',
212
+ phonePlaceholder: '+33 6 12 34 56 78',
213
+ },
214
+ GB: {
215
+ phoneFormat: '^(\\+?44|0)7\\d{9}$',
216
+ phonePlaceholder: '+44 7123 456 789',
217
+ },
218
+ GE: {
219
+ phoneFormat: '^(\\+?995)?(79\\d{7}|5\\d{8})$',
220
+ phonePlaceholder: '+995 555 12 34 56',
221
+ },
222
+ GF: {
223
+ phoneFormat: '^(\\+?594|0|00594)[67]\\d{8}$',
224
+ phonePlaceholder: '+594 694 12 34 56',
225
+ },
226
+ GG: {
227
+ phoneFormat: '^(\\+?44|0)1481\\d{6}$',
228
+ phonePlaceholder: '+44 1481 123456',
229
+ },
230
+ GH: {
231
+ phoneFormat: '^(\\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\\d{7}$',
232
+ phonePlaceholder: '+233 20 123 4567',
233
+ },
234
+ GL: {
235
+ phoneFormat: '^(\\+?299)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$',
236
+ phonePlaceholder: '+299 12 34 56',
237
+ },
238
+ GP: {
239
+ phoneFormat: '^(\\+?590|0|00590)[67]\\d{8}$',
240
+ phonePlaceholder: '+590 690 123 456',
241
+ },
242
+ GR: {
243
+ phoneFormat: '^(\\+?30|0)?6(8[5-9]|9(?![26])[0-9])\\d{7}$',
244
+ phonePlaceholder: '+30 691 234 5678',
245
+ },
246
+ GY: {
247
+ phoneFormat: '^(\\+592|0)6\\d{6}$',
248
+ phonePlaceholder: '+592 612 3456',
249
+ },
250
+ HK: {
251
+ phoneFormat: '^(\\+?852[-\\s]?)?[456789]\\d{3}[-\\s]?\\d{4}$',
252
+ phonePlaceholder: '+852 9123 4567',
253
+ },
254
+ HN: {
255
+ phoneFormat: '^(\\+?504)?[9|8|3|2]\\d{7}$',
256
+ phonePlaceholder: '+504 9123 4567',
257
+ },
258
+ HR: {
259
+ phoneFormat: '^\\+385[1-9][0-9]{7,8}$',
260
+ phonePlaceholder: '+385 91 234 5678',
261
+ },
262
+ HU: {
263
+ phoneFormat: '^(\\+?36|06)(20|30|31|50|70)\\d{7}$',
264
+ phonePlaceholder: '+36 20 123 4567',
265
+ },
266
+ ID: {
267
+ phoneFormat: '^(\\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\\s?|\\d]{5,11})$',
268
+ phonePlaceholder: '+62 812 345 6789',
269
+ },
270
+ IE: {
271
+ phoneFormat: '^(\\+?353|0)8[356789]\\d{7}$',
272
+ phonePlaceholder: '+353 83 123 4567',
273
+ },
274
+ IN: {
275
+ phoneFormat: '^(\\+?91|0)?[6789]\\d{9}$',
276
+ phonePlaceholder: '+91 98765 43210',
277
+ },
278
+ IQ: {
279
+ phoneFormat: '^(\\+?964|0)?7[0-9]\\d{8}$',
280
+ phonePlaceholder: '+964 751 234 5678',
281
+ },
282
+ IR: {
283
+ phoneFormat: '^(\\+98|0)?9\\d{9}',
284
+ phonePlaceholder: '+98 912 345 6789',
285
+ },
286
+ IS: {
287
+ phoneFormat: '^\\+354[0-9]{7}$',
288
+ phonePlaceholder: '+354 123 4567',
289
+ },
290
+ IT: {
291
+ phoneFormat: '^(\\+?39)?\\s?3\\d{2} ?\\d{6,7}$',
292
+ phonePlaceholder: '+39 312 345 6789',
293
+ },
294
+ JM: {
295
+ phoneFormat: '^(\\+?876)?\\d{7}$',
296
+ phonePlaceholder: '+876 123 4567',
297
+ },
298
+ JO: {
299
+ phoneFormat: '^(\\+?962|0)?7[789]\\d{7}$',
300
+ phonePlaceholder: '+962 7 9123 4567',
301
+ },
302
+ JP: {
303
+ phoneFormat: '^(\\+81[ \\-]?(\\(0\\))?|0)[6789]0[ \\-]?\\d{4}[ \\-]?\\d{4}$',
304
+ phonePlaceholder: '+81 90-1234-5678',
305
+ },
306
+ KE: {
307
+ phoneFormat: '^(\\+?254|0)(7|1)\\d{8}$',
308
+ phonePlaceholder: '+254 712 345 678',
309
+ },
310
+ KG: {
311
+ phoneFormat: '^(\\+?7\\s?\\+?7|0)\\s?\\d{2}\\s?\\d{3}\\s?\\d{4}$',
312
+ phonePlaceholder: '+996 312 123 456',
313
+ },
314
+ KI: {
315
+ phoneFormat: '^((\\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$',
316
+ phonePlaceholder: '+686 72 12 3456',
317
+ },
318
+ KN: {
319
+ phoneFormat: '^(?:\\+1|1)869(?:46\\d|48[89]|55[6-8]|66\\d|76[02-7])\\d{4}$',
320
+ phonePlaceholder: '+1 869 465 1234',
321
+ },
322
+ KR: {
323
+ phoneFormat: '^((\\+?82)[ \\-]?)?0?1([0|1|6|7|8|9]{1})[ \\-]?\\d{3,4}[ \\-]?\\d{4}$',
324
+ phonePlaceholder: '+82 10-1234-5678',
325
+ },
326
+ KW: {
327
+ phoneFormat: '^(\\+?965)([569]\\d{7}|41\\d{6})$',
328
+ phonePlaceholder: '+965 512 34567',
329
+ },
330
+ KZ: {
331
+ phoneFormat: '^(\\+?7|8)?7\\d{9}$',
332
+ phonePlaceholder: '+7 701 234 5678',
333
+ },
334
+ LB: {
335
+ phoneFormat: '^(\\+?961)?((3|81)\\d{6}|7\\d{7})$',
336
+ phonePlaceholder: '+961 3 123 456',
337
+ },
338
+ LI: {
339
+ phoneFormat: '^\\+423[0-9]{3,12}$',
340
+ phonePlaceholder: '+423 123 4567',
341
+ },
342
+ LK: {
343
+ phoneFormat: '^(?:0|94|\\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)?\\d{7}$',
344
+ phonePlaceholder: '+94 71 234 5678',
345
+ },
346
+ LS: {
347
+ phoneFormat: '^(\\+?266)(22|28|57|58|59|27|52)\\d{6}$',
348
+ phonePlaceholder: '+266 22 123 456',
349
+ },
350
+ LT: {
351
+ phoneFormat: '^(\\+370|8)\\d{8}$',
352
+ phonePlaceholder: '+370 612 34567',
353
+ },
354
+ LU: {
355
+ phoneFormat: '^(\\+352)?((6\\d1)\\d{6})$',
356
+ phonePlaceholder: '+352 621 123 456',
357
+ },
358
+ LV: {
359
+ phoneFormat: '^(\\+?371)2\\d{7}$',
360
+ phonePlaceholder: '+371 21 234 567',
361
+ },
362
+ LY: {
363
+ phoneFormat: '^((\\+?218)|0)?(9[1-6]\\d{7}|[1-8]\\d{7,9})$',
364
+ phonePlaceholder: '+218 91 234 5678',
365
+ },
366
+ MA: {
367
+ phoneFormat: '^(?:(?:\\+|00)212|0)[5-7]\\d{8}$',
368
+ phonePlaceholder: '+212 5 12 34 56 78',
369
+ },
370
+ MC: {
371
+ phoneFormat: '^\\+377[0-9]{8,9}$',
372
+ phonePlaceholder: '+377 612 345 678',
373
+ },
374
+ MD: {
375
+ phoneFormat: '^(\\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\\d{6}$',
376
+ phonePlaceholder: '+373 62 123 456',
377
+ },
378
+ ME: {
379
+ phoneFormat: '^\\+382[6-9][0-9]{6,7}$',
380
+ phonePlaceholder: '+382 67 123 456',
381
+ },
382
+ MG: {
383
+ phoneFormat: '^((\\+?261|0)(2|3)\\d)?\\d{7}$',
384
+ phonePlaceholder: '+261 32 123 4567',
385
+ },
386
+ MK: {
387
+ phoneFormat: '^\\+389[2-9][0-9]{6,7}$',
388
+ phonePlaceholder: '+389 72 123 456',
389
+ },
390
+ MM: {
391
+ phoneFormat: '^(\\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$',
392
+ phonePlaceholder: '+95 9 234 567 890',
393
+ },
394
+ MN: {
395
+ phoneFormat: '^(\\+|00|011)?976(77|81|88|91|94|95|96|99)\\d{6}$',
396
+ phonePlaceholder: '+976 8812 3456',
397
+ },
398
+ MO: {
399
+ phoneFormat: '^(\\+?853[-\\s]?)?[6]\\d{3}[-\\s]?\\d{4}$',
400
+ phonePlaceholder: '+853 6123 4567',
401
+ },
402
+ MQ: {
403
+ phoneFormat: '^(\\+?596|0|00596)[67]\\d{8}$',
404
+ phonePlaceholder: '+596 696 12 34 56',
405
+ },
406
+ MT: {
407
+ phoneFormat: '^(\\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$',
408
+ phonePlaceholder: '+356 9912 3456',
409
+ },
410
+ MU: {
411
+ phoneFormat: '^(\\+?230|0)?\\d{8}$',
412
+ phonePlaceholder: '+230 5123 4567',
413
+ },
414
+ MV: {
415
+ phoneFormat: '^(\\+?960)?(7[2-9]|9[1-9])\\d{5}$',
416
+ phonePlaceholder: '+960 771 2345',
417
+ },
418
+ MW: {
419
+ phoneFormat: '^(\\+?265|0)(((77|88|31|99|98|21)\\d{7})|((111)|1)\\d{6}|(32000\\d{4}))$',
420
+ phonePlaceholder: '+265 888 123 456',
421
+ },
422
+ MX: {
423
+ phoneFormat: '^(\\+?52)?(1|01)?\\d{10,11}$',
424
+ phonePlaceholder: '+52 1 55 1234 5678',
425
+ },
426
+ MY: {
427
+ phoneFormat: '^(\\+?60|0)1(([0145](-|\\s)?\\d{7,8})|([236-9](-|\\s)?\\d{7}))$',
428
+ phonePlaceholder: '+60 12-345 6789',
429
+ },
430
+ MZ: {
431
+ phoneFormat: '^(\\+?258)?8[234567]\\d{7}$',
432
+ phonePlaceholder: '+258 82 123 4567',
433
+ },
434
+ NA: {
435
+ phoneFormat: '^(\\+?264|0)(6|8)\\d{7}$',
436
+ phonePlaceholder: '+264 81 123 4567',
437
+ },
438
+ NG: {
439
+ phoneFormat: '^(\\+?234|0)?[789]\\d{9}$',
440
+ phonePlaceholder: '+234 802 123 4567',
441
+ },
442
+ NI: {
443
+ phoneFormat: '^(\\+?505)\\d{7,8}$',
444
+ phonePlaceholder: '+505 8123 4567',
445
+ },
446
+ NL: {
447
+ phoneFormat: '^(((\\+|00)?31\\(0\\))|((\+|00)?31)|0)6{1}\\d{8}$',
448
+ phonePlaceholder: '+31 6 12345678',
449
+ },
450
+ NO: {
451
+ phoneFormat: '^(\\+?47)?[49]\\d{7}$',
452
+ phonePlaceholder: '+47 412 34 567',
453
+ },
454
+ NP: {
455
+ phoneFormat: '^(\\+?977)?9[78]\\d{8}$',
456
+ phonePlaceholder: '+977 98 1234 5678',
457
+ },
458
+ NZ: {
459
+ phoneFormat: '^(\\+?64|0)[28]\\d{7,9}$',
460
+ phonePlaceholder: '+64 21 123 4567',
461
+ },
462
+ OM: {
463
+ phoneFormat: '^((\\+|00)968)?(9[1-9])\\d{6}$',
464
+ phonePlaceholder: '+968 91 234 567',
465
+ },
466
+ PA: {
467
+ phoneFormat: '^(\\+?507)\\d{7,8}$',
468
+ phonePlaceholder: '+507 6123 4567',
469
+ },
470
+ PE: {
471
+ phoneFormat: '^(\\+?51)?9\\d{8}$',
472
+ phonePlaceholder: '+51 912 345 678',
473
+ },
474
+ PF: {
475
+ phoneFormat: '^(\\+?689)?8[789]\\d{6}$',
476
+ phonePlaceholder: '+689 87 12 34 56',
477
+ },
478
+ PG: {
479
+ phoneFormat: '^(\\+?675|0)?(7\\d|8[18])\\d{6}$',
480
+ phonePlaceholder: '+675 711 23456',
481
+ },
482
+ PH: {
483
+ phoneFormat: '^(09|\\+639)\\d{9}$',
484
+ phonePlaceholder: '+63 912 345 6789',
485
+ },
486
+ PK: {
487
+ phoneFormat: '^((00|\\+)?92|0)3[0-6]\\d{8}$',
488
+ phonePlaceholder: '+92 301 2345678',
489
+ },
490
+ PL: {
491
+ phoneFormat: '^(\\+?48)? ?([5-8]\\d|45) ?\\d{3} ?\\d{2} ?\\d{2}$',
492
+ phonePlaceholder: '+48 512 345 678',
493
+ },
494
+ PS: {
495
+ phoneFormat: '^(\\+?970|0)5[6|9](\\d{7}',
496
+ phonePlaceholder: '+970 59 123 4567',
497
+ },
498
+ PT: {
499
+ phoneFormat: '^(\\+?351)?9[1236]\\d{7}$',
500
+ phonePlaceholder: '+351 912 345 678',
501
+ },
502
+ PY: {
503
+ phoneFormat: '^(\\+?595|0)9[9876]\\d{7}$',
504
+ phonePlaceholder: '+595 991 234567',
505
+ },
506
+ QA: {
507
+ phoneFormat: '^(\\+974)?[3567]\\d{7}$',
508
+ phonePlaceholder: '+974 3123 4567',
509
+ },
510
+ RE: {
511
+ phoneFormat: '^(\\+?262|0|00262)[67]\\d{8}$',
512
+ phonePlaceholder: '+262 692 123 456',
513
+ },
514
+ RO: {
515
+ phoneFormat: '^(\\+?40|0)\\s?7\\d{2}(\\/|\\s|\\.|-)?\d{3}(\\s|\\.|-)?\d{3}$',
516
+ phonePlaceholder: '+40 712 345 678',
517
+ },
518
+ RS: {
519
+ phoneFormat: '^(\\+3816|06)[- \\d]{5,9}$',
520
+ phonePlaceholder: '+381 61 1234567',
521
+ },
522
+ RU: {
523
+ phoneFormat: '^(\\+?7|8)?9\\d{9}$',
524
+ phonePlaceholder: '+7 912 345 6789',
525
+ },
526
+ RW: {
527
+ phoneFormat: '^(\\+?250|0)?[7]\\d{8}$',
528
+ phonePlaceholder: '+250 781 234 567',
529
+ },
530
+ SA: {
531
+ phoneFormat: '^(!?(\\+?966)|0)?5\\d{8}$',
532
+ phonePlaceholder: '+966 51 234 5678',
533
+ },
534
+ SD: {
535
+ phoneFormat: '^((\\+?249)|0)?(9[012369]|1[012])\\d{7}$',
536
+ phonePlaceholder: '+249 91 123 4567',
537
+ },
538
+ SE: {
539
+ phoneFormat: '^(\\+?46|0)[\\s\\-]?7[\\s\\-]?[02369]([\\s\\-]?\\d){7}$',
540
+ phonePlaceholder: '+46 70 123 45 67',
541
+ },
542
+ SG: {
543
+ phoneFormat: '^(\\+65)?[3689]\\d{7}$',
544
+ phonePlaceholder: '+65 8123 4567',
545
+ },
546
+ SI: {
547
+ phoneFormat: '^(\\+386\\s?|0)(\\d{1}\\s?\\d{3}\\s?\\d{2}\\s?\\d{2}|\\d{2}\\s?\\d{3}\\s?\\d{3})$',
548
+ phonePlaceholder: '+386 31 234 567',
549
+ },
550
+ SK: {
551
+ phoneFormat: '^(\\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$',
552
+ phonePlaceholder: '+421 912 345 678',
553
+ },
554
+ SL: {
555
+ phoneFormat: '^(\\+?232|0)\\d{8}$',
556
+ phonePlaceholder: '+232 76 123 456',
557
+ },
558
+ SM: {
559
+ phoneFormat: '^((\\+378)|(0549)|(\\+390549)|(\\+3780549))?6\\d{5,9}$',
560
+ phonePlaceholder: '+378 66 12 34 56',
561
+ },
562
+ SO: {
563
+ phoneFormat: '^(\\+?252|0)((6[0-9])\\d{7}|(7[1-9])\\d{7})$',
564
+ phonePlaceholder: '+252 61 123 4567',
565
+ },
566
+ SS: {
567
+ phoneFormat: '^(\\+?211|0)(9[1257])\\d{7}$',
568
+ phonePlaceholder: '+211 977 123 456',
569
+ },
570
+ SV: {
571
+ phoneFormat: '^(\\+?503)?[67]\\d{7}$',
572
+ phonePlaceholder: '+503 6123 4567',
573
+ },
574
+ SY: {
575
+ phoneFormat: '^(!?(\\+?963)|0)?9\\d{8}$',
576
+ phonePlaceholder: '+963 944 567 890',
577
+ },
578
+ TH: {
579
+ phoneFormat: '^(\\+66|66|0)\\d{9}$',
580
+ phonePlaceholder: '+66 81 234 5678',
581
+ },
582
+ TJ: {
583
+ phoneFormat: '^(\\+?992)?[5][5]\\d{7}$',
584
+ phonePlaceholder: '+992 55 123 4567',
585
+ },
586
+ TM: {
587
+ phoneFormat: '^(\\+993|993|8)\\d{8}$',
588
+ phonePlaceholder: '+993 65 123456',
589
+ },
590
+ TN: {
591
+ phoneFormat: '^(\\+?216)?[2459]\\d{7}$',
592
+ phonePlaceholder: '+216 20 123 456',
593
+ },
594
+ TR: {
595
+ phoneFormat: '^(\\+?90|0)?5\\d{9}$',
596
+ phonePlaceholder: '+90 501 234 5678',
597
+ },
598
+ TW: {
599
+ phoneFormat: '^(\\+?886\\-?|0)?9\\d{8}$',
600
+ phonePlaceholder: '+886 912 345 678',
601
+ },
602
+ TZ: {
603
+ phoneFormat: '^(\\+?255|0)?[67]\\d{8}$',
604
+ phonePlaceholder: '+255 712 345 678',
605
+ },
606
+ UA: {
607
+ phoneFormat: '^(\\+?38|8)?0\\d{9}$',
608
+ phonePlaceholder: '+380 50 123 4567',
609
+ },
610
+ UG: {
611
+ phoneFormat: '^(\\+?256|0)?[7]\\d{8}$',
612
+ phonePlaceholder: '+256 712 345 678',
613
+ },
614
+ US: {
615
+ phoneFormat: '^(\\+1[-\\.\\s]?)?(\\(?\\d{3}\\)?[-\\.\\s]?)?\\d{3}[-\\.\\s]?\\d{4}$',
616
+ phonePlaceholder: '+1 (234) 567-8900',
617
+ },
618
+ UY: {
619
+ phoneFormat: '^(\\+598|0)9[1-9][\\d]{6}$',
620
+ phonePlaceholder: '+598 94 123 456',
621
+ },
622
+ UZ: {
623
+ phoneFormat: '^(\\+?998)?(6[125-79]|7[1-69]|88|9\\d)\\d{7}$',
624
+ phonePlaceholder: '+998 90 123 4567',
625
+ },
626
+ VE: {
627
+ phoneFormat: '^(\\+?58)?(2|4)\\d{9}$',
628
+ phonePlaceholder: '+58 412 1234567',
629
+ },
630
+ VN: {
631
+ phoneFormat: '^((\\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$',
632
+ phonePlaceholder: '+84 35 123 4567',
633
+ },
634
+ WF: {
635
+ phoneFormat: '^(\\+681)?\\d{6}$',
636
+ phonePlaceholder: '+681 50 12 34',
637
+ },
638
+ XK: {
639
+ phoneFormat: '^\\+383[1-9][0-9]{6,7}$',
640
+ phonePlaceholder: '+383 44 123 456',
641
+ },
642
+ YE: {
643
+ phoneFormat: '^(((\\+|00)9677|0?7)[0137]\\d{7}|((\\+|00)967|0)[1-7]\\d{6})$',
644
+ phonePlaceholder: '+967 712 345 678',
645
+ },
646
+ ZA: {
647
+ phoneFormat: '^(\\+?27|0)\\d{9}$',
648
+ phonePlaceholder: '+27 71 234 5678',
649
+ },
650
+ ZM: {
651
+ phoneFormat: '^(\\+?26)?09[567]\\d{7}$',
652
+ phonePlaceholder: '+260 955 123 456',
653
+ },
654
+ ZW: {
655
+ phoneFormat: '^(\\+263)[0-9]{9}$',
656
+ phonePlaceholder: '+263 71 234 5678',
657
+ },
658
+ };
@@ -1,9 +1,15 @@
1
+ import { getGenericSettingsOverride } from "../components/utils/api/getGenericSettingsOverride";
1
2
  import { getIsTestMode } from "../components/utils/checkout/getIsTestMode";
2
3
  import { handleFetch } from "../components/utils/handleFetch";
3
4
  import { log } from "../components/utils/logging/log";
4
5
  export const getCartInfoById = async ({ cartId, retries, }) => {
5
6
  const isTestMode = getIsTestMode();
6
- const { errors, json, zonosMode } = await handleFetch('/api/zonos-elements/get-cart', {
7
+ const overrideSettings = getGenericSettingsOverride();
8
+ const params = new URLSearchParams();
9
+ if (overrideSettings.overrideShouldEnabledCustomAddress) {
10
+ params.set('overrideShouldEnabledCustomAddress', overrideSettings.overrideShouldEnabledCustomAddress);
11
+ }
12
+ const { errors, json, zonosMode } = await handleFetch(`/api/zonos-elements/get-cart?${params.toString()}`, {
7
13
  body: {
8
14
  isTestMode,
9
15
  tempCartUUID: cartId,
@@ -1,4 +1,5 @@
1
1
  var _a;
2
+ import { IframeService } from "../components/utils/iframe/IframeHelpers";
2
3
  import { log } from "../components/utils/logging/log";
3
4
  import { logError } from "../components/utils/logging/logError";
4
5
  import { checkIfLoadVersionDomain } from "./_checkIfLoadVersionDomain";
@@ -42,6 +43,9 @@ Zonos.debug = typeof window !== 'undefined' &&
42
43
  Zonos.zonosConversionTest = typeof window !== 'undefined' &&
43
44
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
44
45
  Zonos._paypalMockResponse = null;
46
+ Zonos.iframeLogType = typeof window !== 'undefined'
47
+ ? new URLSearchParams(window.location.search).get('iframeLogType')
48
+ : null;
45
49
  Zonos.isBigCommerce = false;
46
50
  Zonos.releaseDate = process.env.NEXT_PUBLIC_RELEASE_DATE;
47
51
  Zonos.isLegacyCheckout = false;
@@ -53,6 +57,7 @@ Zonos.domain = typeof window !== 'undefined'
53
57
  : '';
54
58
  Zonos.showBaseForeign = typeof window !== 'undefined' &&
55
59
  window.location.search.includes('zonosShowBaseForeign');
60
+ Zonos.overrideUseCustomAddressForm = false;
56
61
  /**
57
62
  * By default, the package will load from npm
58
63
  */
@@ -65,6 +70,7 @@ Zonos.modeAlerted = false;
65
70
  Zonos.cartData = null;
66
71
  Zonos.paypal = null;
67
72
  Zonos.zonosMode = null;
73
+ Zonos.IframeService = IframeService;
68
74
  Zonos.getCurrentTimestamp = () => new Date().getTime();
69
75
  Zonos.zonosController = null;
70
76
  Zonos.loadTimeApiInfoList = [];
@@ -547,3 +553,4 @@ Zonos.injectSupportGoogleFont = (fontUrl) => {
547
553
  headOrBody.appendChild(customFont);
548
554
  log(`[FONT] ${fontFamily} font injected!`);
549
555
  };
556
+ export { IframeService } from 'src/components/utils/iframe/IframeHelpers';