@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,355 @@
1
+ import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1 } from './zonosStore-1ce34e04.js';
2
+
3
+ var root = _root;
4
+
5
+ /**
6
+ * Gets the timestamp of the number of milliseconds that have elapsed since
7
+ * the Unix epoch (1 January 1970 00:00:00 UTC).
8
+ *
9
+ * @static
10
+ * @memberOf _
11
+ * @since 2.4.0
12
+ * @category Date
13
+ * @returns {number} Returns the timestamp.
14
+ * @example
15
+ *
16
+ * _.defer(function(stamp) {
17
+ * console.log(_.now() - stamp);
18
+ * }, _.now());
19
+ * // => Logs the number of milliseconds it took for the deferred invocation.
20
+ */
21
+ var now$1 = function() {
22
+ return root.Date.now();
23
+ };
24
+
25
+ var now_1 = now$1;
26
+
27
+ /** Used to match a single whitespace character. */
28
+
29
+ var reWhitespace = /\s/;
30
+
31
+ /**
32
+ * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
33
+ * character of `string`.
34
+ *
35
+ * @private
36
+ * @param {string} string The string to inspect.
37
+ * @returns {number} Returns the index of the last non-whitespace character.
38
+ */
39
+ function trimmedEndIndex$1(string) {
40
+ var index = string.length;
41
+
42
+ while (index-- && reWhitespace.test(string.charAt(index))) {}
43
+ return index;
44
+ }
45
+
46
+ var _trimmedEndIndex = trimmedEndIndex$1;
47
+
48
+ var trimmedEndIndex = _trimmedEndIndex;
49
+
50
+ /** Used to match leading whitespace. */
51
+ var reTrimStart = /^\s+/;
52
+
53
+ /**
54
+ * The base implementation of `_.trim`.
55
+ *
56
+ * @private
57
+ * @param {string} string The string to trim.
58
+ * @returns {string} Returns the trimmed string.
59
+ */
60
+ function baseTrim$1(string) {
61
+ return string
62
+ ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
63
+ : string;
64
+ }
65
+
66
+ var _baseTrim = baseTrim$1;
67
+
68
+ var baseGetTag = _baseGetTag,
69
+ isObjectLike = isObjectLike_1;
70
+
71
+ /** `Object#toString` result references. */
72
+ var symbolTag = '[object Symbol]';
73
+
74
+ /**
75
+ * Checks if `value` is classified as a `Symbol` primitive or object.
76
+ *
77
+ * @static
78
+ * @memberOf _
79
+ * @since 4.0.0
80
+ * @category Lang
81
+ * @param {*} value The value to check.
82
+ * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
83
+ * @example
84
+ *
85
+ * _.isSymbol(Symbol.iterator);
86
+ * // => true
87
+ *
88
+ * _.isSymbol('abc');
89
+ * // => false
90
+ */
91
+ function isSymbol$1(value) {
92
+ return typeof value == 'symbol' ||
93
+ (isObjectLike(value) && baseGetTag(value) == symbolTag);
94
+ }
95
+
96
+ var isSymbol_1 = isSymbol$1;
97
+
98
+ var baseTrim = _baseTrim,
99
+ isObject$1 = isObject_1,
100
+ isSymbol = isSymbol_1;
101
+
102
+ /** Used as references for various `Number` constants. */
103
+ var NAN = 0 / 0;
104
+
105
+ /** Used to detect bad signed hexadecimal string values. */
106
+ var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
107
+
108
+ /** Used to detect binary string values. */
109
+ var reIsBinary = /^0b[01]+$/i;
110
+
111
+ /** Used to detect octal string values. */
112
+ var reIsOctal = /^0o[0-7]+$/i;
113
+
114
+ /** Built-in method references without a dependency on `root`. */
115
+ var freeParseInt = parseInt;
116
+
117
+ /**
118
+ * Converts `value` to a number.
119
+ *
120
+ * @static
121
+ * @memberOf _
122
+ * @since 4.0.0
123
+ * @category Lang
124
+ * @param {*} value The value to process.
125
+ * @returns {number} Returns the number.
126
+ * @example
127
+ *
128
+ * _.toNumber(3.2);
129
+ * // => 3.2
130
+ *
131
+ * _.toNumber(Number.MIN_VALUE);
132
+ * // => 5e-324
133
+ *
134
+ * _.toNumber(Infinity);
135
+ * // => Infinity
136
+ *
137
+ * _.toNumber('3.2');
138
+ * // => 3.2
139
+ */
140
+ function toNumber$1(value) {
141
+ if (typeof value == 'number') {
142
+ return value;
143
+ }
144
+ if (isSymbol(value)) {
145
+ return NAN;
146
+ }
147
+ if (isObject$1(value)) {
148
+ var other = typeof value.valueOf == 'function' ? value.valueOf() : value;
149
+ value = isObject$1(other) ? (other + '') : other;
150
+ }
151
+ if (typeof value != 'string') {
152
+ return value === 0 ? value : +value;
153
+ }
154
+ value = baseTrim(value);
155
+ var isBinary = reIsBinary.test(value);
156
+ return (isBinary || reIsOctal.test(value))
157
+ ? freeParseInt(value.slice(2), isBinary ? 2 : 8)
158
+ : (reIsBadHex.test(value) ? NAN : +value);
159
+ }
160
+
161
+ var toNumber_1 = toNumber$1;
162
+
163
+ var isObject = isObject_1,
164
+ now = now_1,
165
+ toNumber = toNumber_1;
166
+
167
+ /** Error message constants. */
168
+ var FUNC_ERROR_TEXT = 'Expected a function';
169
+
170
+ /* Built-in method references for those with the same name as other `lodash` methods. */
171
+ var nativeMax = Math.max,
172
+ nativeMin = Math.min;
173
+
174
+ /**
175
+ * Creates a debounced function that delays invoking `func` until after `wait`
176
+ * milliseconds have elapsed since the last time the debounced function was
177
+ * invoked. The debounced function comes with a `cancel` method to cancel
178
+ * delayed `func` invocations and a `flush` method to immediately invoke them.
179
+ * Provide `options` to indicate whether `func` should be invoked on the
180
+ * leading and/or trailing edge of the `wait` timeout. The `func` is invoked
181
+ * with the last arguments provided to the debounced function. Subsequent
182
+ * calls to the debounced function return the result of the last `func`
183
+ * invocation.
184
+ *
185
+ * **Note:** If `leading` and `trailing` options are `true`, `func` is
186
+ * invoked on the trailing edge of the timeout only if the debounced function
187
+ * is invoked more than once during the `wait` timeout.
188
+ *
189
+ * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
190
+ * until to the next tick, similar to `setTimeout` with a timeout of `0`.
191
+ *
192
+ * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
193
+ * for details over the differences between `_.debounce` and `_.throttle`.
194
+ *
195
+ * @static
196
+ * @memberOf _
197
+ * @since 0.1.0
198
+ * @category Function
199
+ * @param {Function} func The function to debounce.
200
+ * @param {number} [wait=0] The number of milliseconds to delay.
201
+ * @param {Object} [options={}] The options object.
202
+ * @param {boolean} [options.leading=false]
203
+ * Specify invoking on the leading edge of the timeout.
204
+ * @param {number} [options.maxWait]
205
+ * The maximum time `func` is allowed to be delayed before it's invoked.
206
+ * @param {boolean} [options.trailing=true]
207
+ * Specify invoking on the trailing edge of the timeout.
208
+ * @returns {Function} Returns the new debounced function.
209
+ * @example
210
+ *
211
+ * // Avoid costly calculations while the window size is in flux.
212
+ * jQuery(window).on('resize', _.debounce(calculateLayout, 150));
213
+ *
214
+ * // Invoke `sendMail` when clicked, debouncing subsequent calls.
215
+ * jQuery(element).on('click', _.debounce(sendMail, 300, {
216
+ * 'leading': true,
217
+ * 'trailing': false
218
+ * }));
219
+ *
220
+ * // Ensure `batchLog` is invoked once after 1 second of debounced calls.
221
+ * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });
222
+ * var source = new EventSource('/stream');
223
+ * jQuery(source).on('message', debounced);
224
+ *
225
+ * // Cancel the trailing debounced invocation.
226
+ * jQuery(window).on('popstate', debounced.cancel);
227
+ */
228
+ function debounce(func, wait, options) {
229
+ var lastArgs,
230
+ lastThis,
231
+ maxWait,
232
+ result,
233
+ timerId,
234
+ lastCallTime,
235
+ lastInvokeTime = 0,
236
+ leading = false,
237
+ maxing = false,
238
+ trailing = true;
239
+
240
+ if (typeof func != 'function') {
241
+ throw new TypeError(FUNC_ERROR_TEXT);
242
+ }
243
+ wait = toNumber(wait) || 0;
244
+ if (isObject(options)) {
245
+ leading = !!options.leading;
246
+ maxing = 'maxWait' in options;
247
+ maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
248
+ trailing = 'trailing' in options ? !!options.trailing : trailing;
249
+ }
250
+
251
+ function invokeFunc(time) {
252
+ var args = lastArgs,
253
+ thisArg = lastThis;
254
+
255
+ lastArgs = lastThis = undefined;
256
+ lastInvokeTime = time;
257
+ result = func.apply(thisArg, args);
258
+ return result;
259
+ }
260
+
261
+ function leadingEdge(time) {
262
+ // Reset any `maxWait` timer.
263
+ lastInvokeTime = time;
264
+ // Start the timer for the trailing edge.
265
+ timerId = setTimeout(timerExpired, wait);
266
+ // Invoke the leading edge.
267
+ return leading ? invokeFunc(time) : result;
268
+ }
269
+
270
+ function remainingWait(time) {
271
+ var timeSinceLastCall = time - lastCallTime,
272
+ timeSinceLastInvoke = time - lastInvokeTime,
273
+ timeWaiting = wait - timeSinceLastCall;
274
+
275
+ return maxing
276
+ ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
277
+ : timeWaiting;
278
+ }
279
+
280
+ function shouldInvoke(time) {
281
+ var timeSinceLastCall = time - lastCallTime,
282
+ timeSinceLastInvoke = time - lastInvokeTime;
283
+
284
+ // Either this is the first call, activity has stopped and we're at the
285
+ // trailing edge, the system time has gone backwards and we're treating
286
+ // it as the trailing edge, or we've hit the `maxWait` limit.
287
+ return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||
288
+ (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));
289
+ }
290
+
291
+ function timerExpired() {
292
+ var time = now();
293
+ if (shouldInvoke(time)) {
294
+ return trailingEdge(time);
295
+ }
296
+ // Restart the timer.
297
+ timerId = setTimeout(timerExpired, remainingWait(time));
298
+ }
299
+
300
+ function trailingEdge(time) {
301
+ timerId = undefined;
302
+
303
+ // Only invoke if we have `lastArgs` which means `func` has been
304
+ // debounced at least once.
305
+ if (trailing && lastArgs) {
306
+ return invokeFunc(time);
307
+ }
308
+ lastArgs = lastThis = undefined;
309
+ return result;
310
+ }
311
+
312
+ function cancel() {
313
+ if (timerId !== undefined) {
314
+ clearTimeout(timerId);
315
+ }
316
+ lastInvokeTime = 0;
317
+ lastArgs = lastCallTime = lastThis = timerId = undefined;
318
+ }
319
+
320
+ function flush() {
321
+ return timerId === undefined ? result : trailingEdge(now());
322
+ }
323
+
324
+ function debounced() {
325
+ var time = now(),
326
+ isInvoking = shouldInvoke(time);
327
+
328
+ lastArgs = arguments;
329
+ lastThis = this;
330
+ lastCallTime = time;
331
+
332
+ if (isInvoking) {
333
+ if (timerId === undefined) {
334
+ return leadingEdge(lastCallTime);
335
+ }
336
+ if (maxing) {
337
+ // Handle invocations in a tight loop.
338
+ clearTimeout(timerId);
339
+ timerId = setTimeout(timerExpired, wait);
340
+ return invokeFunc(lastCallTime);
341
+ }
342
+ }
343
+ if (timerId === undefined) {
344
+ timerId = setTimeout(timerExpired, wait);
345
+ }
346
+ return result;
347
+ }
348
+ debounced.cancel = cancel;
349
+ debounced.flush = flush;
350
+ return debounced;
351
+ }
352
+
353
+ var debounce_1 = debounce;
354
+
355
+ export { debounce_1 as d };
@@ -1,4 +1,4 @@
1
- import { z as zonosStore } from './zonosStore-d3c5a0a5.js';
1
+ import { z as zonosStore } from './zonosStore-1ce34e04.js';
2
2
 
3
3
  /**
4
4
  * Get the border radius for the elements based on the style
@@ -0,0 +1,99 @@
1
+ const iframeServices = {
2
+ GOOGLE_PLACES: 'zonos--private-iframe-google-places-service-m9bmuh7g',
3
+ };
4
+ const postMessage = ({ id, payload, target, type, }) => {
5
+ var _a;
6
+ if (target instanceof HTMLIFrameElement) {
7
+ (_a = target.contentWindow) === null || _a === void 0 ? void 0 : _a.postMessage({
8
+ id,
9
+ payload,
10
+ type,
11
+ }, '*');
12
+ }
13
+ else {
14
+ target.postMessage({
15
+ id,
16
+ payload,
17
+ type,
18
+ }, '*');
19
+ }
20
+ };
21
+ /**
22
+ * Base class for iframe services, being used for Iframe to communicate back to the parent window
23
+ */
24
+ class IframeService {
25
+ constructor(targetElement, targetId) {
26
+ this.targetElement = targetElement;
27
+ this.targetId = targetId;
28
+ this.sendMessage = (type, payload) => {
29
+ postMessage({
30
+ id: this.targetId,
31
+ payload,
32
+ target: this.targetElement,
33
+ type,
34
+ });
35
+ };
36
+ }
37
+ }
38
+ IframeService.iframeServices = iframeServices;
39
+ IframeService.sendMessage = postMessage;
40
+ IframeService.injectPrivateIframe = ({ id, onload, src, }) => {
41
+ const iframe = document.createElement('iframe');
42
+ iframe.src = src;
43
+ iframe.id = id;
44
+ iframe.style.display = 'none';
45
+ iframe.role = 'presentation';
46
+ iframe.ariaHidden = 'true';
47
+ iframe.tabIndex = -1;
48
+ iframe.style.border = 'none !important';
49
+ iframe.style.margin = '0px !important';
50
+ iframe.style.padding = '0px !important';
51
+ iframe.style.width = '1px !important';
52
+ iframe.style.minWidth = '100% !important';
53
+ iframe.style.overflow = 'hidden !important';
54
+ iframe.style.display = 'block !important';
55
+ iframe.style.visibility = 'hidden !important';
56
+ iframe.style.position = 'fixed !important';
57
+ iframe.style.pointerEvents = 'none !important';
58
+ iframe.style.userSelect = 'none !important';
59
+ iframe.style.height = '1px !important';
60
+ iframe.onload = () => onload(iframe);
61
+ document.body.appendChild(iframe);
62
+ return iframe;
63
+ };
64
+ const injectPrivateIframe = ({ id, onload, src, }) => {
65
+ const iframe = document.createElement('iframe');
66
+ iframe.src = src;
67
+ iframe.id = id;
68
+ iframe.style.display = 'none';
69
+ iframe.role = 'presentation';
70
+ iframe.ariaHidden = 'true';
71
+ iframe.tabIndex = -1;
72
+ iframe.style.border = 'none !important';
73
+ iframe.style.margin = '0px !important';
74
+ iframe.style.padding = '0px !important';
75
+ iframe.style.width = '1px !important';
76
+ iframe.style.minWidth = '100% !important';
77
+ iframe.style.overflow = 'hidden !important';
78
+ iframe.style.display = 'block !important';
79
+ iframe.style.visibility = 'hidden !important';
80
+ iframe.style.position = 'fixed !important';
81
+ iframe.style.pointerEvents = 'none !important';
82
+ iframe.style.userSelect = 'none !important';
83
+ iframe.style.height = '1px !important';
84
+ iframe.onload = onload;
85
+ document.body.appendChild(iframe);
86
+ };
87
+
88
+ const getGenericSettingsOverride = () => {
89
+ const params = new URLSearchParams(window.location.search);
90
+ const overrideShouldEnabledCustomAddress = !!window.Zonos
91
+ .overrideUseCustomAddressForm
92
+ ? '1'
93
+ : params.get('overrideShouldEnabledCustomAddress');
94
+ return {
95
+ overrideShouldEnabledCustomAddress,
96
+ };
97
+ };
98
+
99
+ export { IframeService as I, injectPrivateIframe as a, getGenericSettingsOverride as g, iframeServices as i };
@@ -0,0 +1,97 @@
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
+ const inheritAttributes = (el, attributes = []) => {
12
+ const attributeObject = {};
13
+ attributes.forEach(attr => {
14
+ if (el.hasAttribute(attr)) {
15
+ const value = el.getAttribute(attr);
16
+ if (value !== null) {
17
+ attributeObject[attr] = value;
18
+ }
19
+ el.removeAttribute(attr);
20
+ }
21
+ });
22
+ return attributeObject;
23
+ };
24
+ /**
25
+ * List of available ARIA attributes + `role`.
26
+ * Removed deprecated attributes.
27
+ * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes
28
+ */
29
+ const ariaAttributes = [
30
+ 'role',
31
+ 'aria-activedescendant',
32
+ 'aria-atomic',
33
+ 'aria-autocomplete',
34
+ 'aria-braillelabel',
35
+ 'aria-brailleroledescription',
36
+ 'aria-busy',
37
+ 'aria-checked',
38
+ 'aria-colcount',
39
+ 'aria-colindex',
40
+ 'aria-colindextext',
41
+ 'aria-colspan',
42
+ 'aria-controls',
43
+ 'aria-current',
44
+ 'aria-describedby',
45
+ 'aria-description',
46
+ 'aria-details',
47
+ 'aria-disabled',
48
+ 'aria-errormessage',
49
+ 'aria-expanded',
50
+ 'aria-flowto',
51
+ 'aria-haspopup',
52
+ 'aria-hidden',
53
+ 'aria-invalid',
54
+ 'aria-keyshortcuts',
55
+ 'aria-label',
56
+ 'aria-labelledby',
57
+ 'aria-level',
58
+ 'aria-live',
59
+ 'aria-multiline',
60
+ 'aria-multiselectable',
61
+ 'aria-orientation',
62
+ 'aria-owns',
63
+ 'aria-placeholder',
64
+ 'aria-posinset',
65
+ 'aria-pressed',
66
+ 'aria-readonly',
67
+ 'aria-relevant',
68
+ 'aria-required',
69
+ 'aria-roledescription',
70
+ 'aria-rowcount',
71
+ 'aria-rowindex',
72
+ 'aria-rowindextext',
73
+ 'aria-rowspan',
74
+ 'aria-selected',
75
+ 'aria-setsize',
76
+ 'aria-sort',
77
+ 'aria-valuemax',
78
+ 'aria-valuemin',
79
+ 'aria-valuenow',
80
+ 'aria-valuetext',
81
+ ];
82
+ /**
83
+ * Returns an array of aria attributes that should be copied from
84
+ * the shadow host element to a target within the light DOM.
85
+ * @param el The element that the attributes should be copied from.
86
+ * @param ignoreList The list of aria-attributes to ignore reflecting and removing from the host.
87
+ * Use this in instances where we manually specify aria attributes on the `<Host>` element.
88
+ */
89
+ const inheritAriaAttributes = (el, ignoreList) => {
90
+ let attributesToInherit = ariaAttributes;
91
+ if (ignoreList && ignoreList.length > 0) {
92
+ attributesToInherit = attributesToInherit.filter(attr => !ignoreList.includes(attr));
93
+ }
94
+ return inheritAttributes(el, attributesToInherit);
95
+ };
96
+
97
+ export { inheritAttributes as a, inheritAriaAttributes as i };
@@ -1,5 +1,5 @@
1
1
  const NAMESPACE = 'zonos-elements';
2
- const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: false, watchCallback: true };
2
+ const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, cmpDidLoad: true, cmpDidRender: true, cmpDidUnload: false, cmpDidUpdate: false, cmpShouldUpdate: false, cmpWillLoad: true, cmpWillRender: false, cmpWillUpdate: false, connectedCallback: true, constructableCSS: true, cssAnnotations: true, devTools: false, disconnectedCallback: true, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: false, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
3
3
 
4
4
  /*
5
5
  Stencil Client Platform v4.23.0 | MIT Licensed | https://stenciljs.com
@@ -63,6 +63,7 @@ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
63
63
  var styles = /* @__PURE__ */ new Map();
64
64
  var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
65
65
  var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
66
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
66
67
  var win = typeof window !== "undefined" ? window : {};
67
68
  var doc = win.document || { head: {} };
68
69
  var plt = {
@@ -385,15 +386,26 @@ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
385
386
  } catch (e) {
386
387
  }
387
388
  }
389
+ let xlink = false;
390
+ {
391
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
392
+ memberName = ln;
393
+ xlink = true;
394
+ }
395
+ }
388
396
  if (newValue == null || newValue === false) {
389
397
  if (newValue !== false || elm.getAttribute(memberName) === "") {
390
- {
398
+ if (xlink) {
399
+ elm.removeAttributeNS(XLINK_NS, memberName);
400
+ } else {
391
401
  elm.removeAttribute(memberName);
392
402
  }
393
403
  }
394
404
  } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex) {
395
405
  newValue = newValue === true ? "" : newValue;
396
- {
406
+ if (xlink) {
407
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
408
+ } else {
397
409
  elm.setAttribute(memberName, newValue);
398
410
  }
399
411
  }
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { g as getGenericSettingsOverride, I as IframeService } from './getGenericSettingsOverride-0bc3e118.js';
1
2
  import { g as getIsTestMode, a as getIsStagingMode, l as log, h as handleFetch, b as logError } from './handleFetch-621e45bc.js';
2
3
  import { _ as _getIsValidCartId, c as checkoutHiddenBtnSelector } from './CheckoutConfig-5479d192.js';
3
4
  export { c as checkoutHiddenBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-5479d192.js';
@@ -126,7 +127,7 @@ const getZonosQaUrl = () => {
126
127
  return null;
127
128
  }
128
129
  const qaUrl = extractZonosQaUrl(window.location.href);
129
- const cdnUrl = "https://v1.3.184.js.zonos.com";
130
+ const cdnUrl = "https://v1.3.185.js.zonos.com";
130
131
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
131
132
  if (!qaUrl &&
132
133
  (cdnUrl.includes('test.') ||
@@ -295,7 +296,12 @@ const getCartIdFromQueryParam = () => {
295
296
 
296
297
  const getCartInfoById = async ({ cartId, retries, }) => {
297
298
  const isTestMode = getIsTestMode();
298
- const { errors, json, zonosMode } = await handleFetch('/api/zonos-elements/get-cart', {
299
+ const overrideSettings = getGenericSettingsOverride();
300
+ const params = new URLSearchParams();
301
+ if (overrideSettings.overrideShouldEnabledCustomAddress) {
302
+ params.set('overrideShouldEnabledCustomAddress', overrideSettings.overrideShouldEnabledCustomAddress);
303
+ }
304
+ const { errors, json, zonosMode } = await handleFetch(`/api/zonos-elements/get-cart?${params.toString()}`, {
299
305
  body: {
300
306
  isTestMode,
301
307
  tempCartUUID: cartId,
@@ -362,10 +368,10 @@ const zonosLoadUrl = (() => {
362
368
  }
363
369
  return null;
364
370
  })();
365
- const ZONOS_URL = "https://v1.3.184.js.zonos.com";
366
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.184";
367
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.184";
368
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.184";
371
+ const ZONOS_URL = "https://v1.3.185.js.zonos.com";
372
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.185";
373
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.185";
374
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.185";
369
375
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
370
376
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
371
377
  class Zonos {
@@ -379,8 +385,11 @@ Zonos.debug = typeof window !== 'undefined' &&
379
385
  Zonos.zonosConversionTest = typeof window !== 'undefined' &&
380
386
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
381
387
  Zonos._paypalMockResponse = null;
388
+ Zonos.iframeLogType = typeof window !== 'undefined'
389
+ ? new URLSearchParams(window.location.search).get('iframeLogType')
390
+ : null;
382
391
  Zonos.isBigCommerce = false;
383
- Zonos.releaseDate = "1745332596232";
392
+ Zonos.releaseDate = "1745528309782";
384
393
  Zonos.isLegacyCheckout = false;
385
394
  Zonos.domain = typeof window !== 'undefined'
386
395
  ? // domain that embeds the iframe
@@ -390,6 +399,7 @@ Zonos.domain = typeof window !== 'undefined'
390
399
  : '';
391
400
  Zonos.showBaseForeign = typeof window !== 'undefined' &&
392
401
  window.location.search.includes('zonosShowBaseForeign');
402
+ Zonos.overrideUseCustomAddressForm = false;
393
403
  /**
394
404
  * By default, the package will load from npm
395
405
  */
@@ -397,11 +407,12 @@ Zonos.isNpm = true;
397
407
  Zonos.zonosQaUrl = null;
398
408
  Zonos.zonosQaUrlApi = null;
399
409
  Zonos.trackEventLogs = [];
400
- Zonos.version = `v${"1.3.184"}`;
410
+ Zonos.version = `v${"1.3.185"}`;
401
411
  Zonos.modeAlerted = false;
402
412
  Zonos.cartData = null;
403
413
  Zonos.paypal = null;
404
414
  Zonos.zonosMode = null;
415
+ Zonos.IframeService = IframeService;
405
416
  Zonos.getCurrentTimestamp = () => new Date().getTime();
406
417
  Zonos.zonosController = null;
407
418
  Zonos.loadTimeApiInfoList = [];
@@ -1,4 +1,4 @@
1
- import { a as commonjsGlobal } from './zonosStore-d3c5a0a5.js';
1
+ import { a as commonjsGlobal } from './zonosStore-1ce34e04.js';
2
2
 
3
3
  var tinycolor$1 = {exports: {}};
4
4