@zonos/elements 1.3.279 → 1.3.281

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 (243) hide show
  1. package/dist/cjs/{TaxId-12acedde.js → TaxId-cd9d490e.js} +1 -1
  2. package/dist/cjs/{cart-e8bc11a3.js → cart-3313cb0c.js} +2 -2
  3. package/dist/cjs/{collect-e6485168.js → collect-2659c5af.js} +2 -2
  4. package/dist/cjs/formatStringWithLinks-c25b4018.js +24 -0
  5. package/dist/cjs/{hasInclusivePrice-798ce42d.js → hasInclusivePrice-d132daaa.js} +1 -1
  6. package/dist/cjs/index.cjs.js +8 -8
  7. package/dist/cjs/{invoice-dff7ec81.js → invoice-26f52c07.js} +2 -2
  8. package/dist/cjs/isSameHostCheckoutLink-6148cabb.js +28 -0
  9. package/dist/cjs/{localization-90650d7d.js → localization-6189080f.js} +120 -120
  10. package/dist/cjs/{paypal-77bd640c.js → paypal-f6a256b5.js} +2 -2
  11. package/dist/cjs/{placeTestOrder-7767d119.js → placeTestOrder-695f2b32.js} +2 -2
  12. package/dist/cjs/{renderCheckoutCurrency-66377cf5.js → renderCheckoutCurrency-fe56094f.js} +2 -2
  13. package/dist/cjs/{shouldRenderTaxIdInput-b8abf6de.js → shouldRenderTaxIdInput-7d19556c.js} +1 -1
  14. package/dist/cjs/zonos-address-display_8.cjs.entry.js +4 -4
  15. package/dist/cjs/zonos-address_4.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-card_5.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +27 -12
  19. package/dist/cjs/zonos-checkout.cjs.entry.js +190 -14
  20. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +3 -3
  21. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +7 -7
  22. package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -2
  26. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -4
  27. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +5 -5
  29. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +7 -7
  30. package/dist/cjs/zonos-invoice.cjs.entry.js +5 -5
  31. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  32. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +4 -4
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +13 -1
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +36 -2
  35. package/dist/collection/components/store/translationStore/strings.arabic.js +6 -6
  36. package/dist/collection/components/store/translationStore/strings.base.js +6 -6
  37. package/dist/collection/components/store/translationStore/strings.chinese.js +6 -6
  38. package/dist/collection/components/store/translationStore/strings.danish.js +6 -6
  39. package/dist/collection/components/store/translationStore/strings.dutch.js +6 -6
  40. package/dist/collection/components/store/translationStore/strings.french.js +6 -6
  41. package/dist/collection/components/store/translationStore/strings.german.js +6 -6
  42. package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -6
  43. package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -6
  44. package/dist/collection/components/store/translationStore/strings.italian.js +6 -6
  45. package/dist/collection/components/store/translationStore/strings.japanese.js +6 -6
  46. package/dist/collection/components/store/translationStore/strings.korean.js +6 -6
  47. package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -6
  48. package/dist/collection/components/store/translationStore/strings.polish.js +6 -6
  49. package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -6
  50. package/dist/collection/components/store/translationStore/strings.russian.js +6 -6
  51. package/dist/collection/components/store/translationStore/strings.spanish.js +6 -6
  52. package/dist/collection/components/store/translationStore/strings.swedish.js +6 -6
  53. package/dist/collection/components/store/translationStore/strings.turkish.js +6 -6
  54. package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -6
  55. package/dist/collection/components/utils/checkout/buildBigcommerceRedirectUrl.js +6 -1
  56. package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +144 -7
  57. package/dist/collection/components/utils/formatStringWithLinks.js +12 -6
  58. package/dist/collection/components/utils/isSameHostCheckoutLink.js +24 -0
  59. package/dist/collection/components/utils/taxIdValidationResult.js +6 -3
  60. package/dist/collection/types/checkout/TaxId.js +1 -1
  61. package/dist/collection/types/generated/graphql.internal.types.js +84 -0
  62. package/dist/esm/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
  63. package/dist/esm/{cart-8b8dc79f.js → cart-c66ec17e.js} +3 -3
  64. package/dist/esm/{collect-f4965586.js → collect-915fd59d.js} +2 -2
  65. package/dist/esm/formatStringWithLinks-0d48f183.js +22 -0
  66. package/dist/esm/{hasInclusivePrice-1589fef9.js → hasInclusivePrice-6fd935f3.js} +1 -1
  67. package/dist/esm/index.js +8 -8
  68. package/dist/esm/{invoice-b7a1fb14.js → invoice-2a17c93c.js} +2 -2
  69. package/dist/esm/isSameHostCheckoutLink-c1b88ab7.js +26 -0
  70. package/dist/esm/{localization-d49867ed.js → localization-6d36209f.js} +120 -120
  71. package/dist/esm/{paypal-da551105.js → paypal-cae1d404.js} +2 -2
  72. package/dist/esm/{placeTestOrder-4309b170.js → placeTestOrder-955269d2.js} +2 -2
  73. package/dist/esm/{renderCheckoutCurrency-0ed221ac.js → renderCheckoutCurrency-951386a5.js} +2 -2
  74. package/dist/esm/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
  75. package/dist/esm/zonos-address-display_8.entry.js +4 -4
  76. package/dist/esm/zonos-address_4.entry.js +4 -4
  77. package/dist/esm/zonos-airwallex-payment.entry.js +4 -4
  78. package/dist/esm/zonos-card_5.entry.js +4 -4
  79. package/dist/esm/zonos-cart-items_12.entry.js +27 -12
  80. package/dist/esm/zonos-checkout.entry.js +190 -14
  81. package/dist/esm/zonos-collect-cart-items_3.entry.js +3 -3
  82. package/dist/esm/zonos-collect-finish_6.entry.js +7 -7
  83. package/dist/esm/zonos-collect.entry.js +5 -5
  84. package/dist/esm/zonos-controller.entry.js +3 -3
  85. package/dist/esm/zonos-country-flag.entry.js +1 -1
  86. package/dist/esm/zonos-country-select_4.entry.js +3 -2
  87. package/dist/esm/zonos-hello-dialog.entry.js +5 -4
  88. package/dist/esm/zonos-hello.entry.js +1 -1
  89. package/dist/esm/zonos-invoice-cart-items_2.entry.js +5 -5
  90. package/dist/esm/zonos-invoice-finish_5.entry.js +7 -7
  91. package/dist/esm/zonos-invoice.entry.js +5 -5
  92. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  93. package/dist/esm/zonos-policy-consent_2.entry.js +4 -4
  94. package/dist/esm-es5/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
  95. package/dist/esm-es5/{cart-8b8dc79f.js → cart-c66ec17e.js} +1 -1
  96. package/dist/esm-es5/{collect-f4965586.js → collect-915fd59d.js} +1 -1
  97. package/dist/esm-es5/formatStringWithLinks-0d48f183.js +1 -0
  98. package/dist/esm-es5/{hasInclusivePrice-1589fef9.js → hasInclusivePrice-6fd935f3.js} +1 -1
  99. package/dist/esm-es5/index.js +1 -1
  100. package/dist/esm-es5/{invoice-b7a1fb14.js → invoice-2a17c93c.js} +1 -1
  101. package/dist/esm-es5/isSameHostCheckoutLink-c1b88ab7.js +1 -0
  102. package/dist/esm-es5/localization-6d36209f.js +1 -0
  103. package/dist/esm-es5/{paypal-da551105.js → paypal-cae1d404.js} +1 -1
  104. package/dist/esm-es5/{placeTestOrder-4309b170.js → placeTestOrder-955269d2.js} +1 -1
  105. package/dist/esm-es5/{renderCheckoutCurrency-0ed221ac.js → renderCheckoutCurrency-951386a5.js} +1 -1
  106. package/dist/esm-es5/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
  107. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  108. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  109. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  110. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  111. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  112. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  113. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  114. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  115. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  116. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  117. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  118. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  119. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  120. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  121. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  122. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  123. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  124. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  125. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  126. package/dist/scripts/index.d.ts +3 -3
  127. package/dist/scripts/index.js +1 -1
  128. package/dist/scripts/loadZonos.js +1 -1
  129. package/dist/scripts/zonos.js +1 -1
  130. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -3
  131. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -3
  132. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -3
  133. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -3
  134. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -3
  135. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -3
  136. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -3
  137. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -3
  138. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -3
  139. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -3
  140. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -3
  141. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -3
  142. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -3
  143. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -3
  144. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -3
  145. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -3
  146. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -3
  147. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -3
  148. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -3
  149. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -3
  150. package/dist/types/components/utils/isSameHostCheckoutLink.d.ts +14 -0
  151. package/dist/types/components/utils/taxIdValidationResult.d.ts +1 -1
  152. package/dist/types/types/checkout/TaxId.d.ts +1 -1
  153. package/dist/types/types/generated/graphql.internal.types.d.ts +84 -0
  154. package/dist/types/types/generated/graphql.internal.types.ts +85 -0
  155. package/dist/zonos-elements/index.esm.js +1 -1
  156. package/dist/zonos-elements/{p-d5945ddc.entry.js → p-03fda4a8.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-43815edd.system.entry.js → p-060c521b.system.entry.js} +1 -1
  158. package/dist/zonos-elements/{p-8bd37d3b.entry.js → p-09da3c76.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-5e09c22d.system.js → p-0ac1aa87.system.js} +1 -1
  160. package/dist/zonos-elements/p-0d2f81ce.system.js +1 -0
  161. package/dist/zonos-elements/p-11206fe2.js +1 -0
  162. package/dist/zonos-elements/{p-5c76ef2a.js → p-156891c5.js} +1 -1
  163. package/dist/zonos-elements/p-1577a739.js +1 -0
  164. package/dist/zonos-elements/{p-4e6e9a3c.system.entry.js → p-179caaea.system.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-5827c868.entry.js → p-1ee5f392.entry.js} +1 -1
  166. package/dist/zonos-elements/p-26ca8ce7.js +1 -0
  167. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  168. package/dist/zonos-elements/p-2b97f7ed.js +1 -0
  169. package/dist/zonos-elements/{p-b36205f4.entry.js → p-30067eed.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-a8c79850.js → p-3246d120.js} +1 -1
  171. package/dist/zonos-elements/{p-2aecc055.entry.js → p-38879af9.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-647438d6.system.js → p-39695a8b.system.js} +1 -1
  173. package/dist/zonos-elements/p-3e6bbf0b.system.entry.js +1 -0
  174. package/dist/zonos-elements/{p-12a08423.system.entry.js → p-3f6fe80a.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-998f9df5.system.entry.js → p-40b96482.system.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-8d87e748.entry.js → p-4441c451.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-7614ea6f.system.entry.js → p-4c3f5fda.system.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-5bc43687.system.entry.js → p-54a8d4cf.system.entry.js} +1 -1
  179. package/dist/zonos-elements/p-5677d31f.entry.js +1 -0
  180. package/dist/zonos-elements/p-56fc3210.js +1 -0
  181. package/dist/zonos-elements/{p-ed676ad1.system.entry.js → p-5a61c301.system.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-73d3fa61.entry.js → p-5e1aad7d.entry.js} +1 -1
  183. package/dist/zonos-elements/p-67426156.system.js +1 -0
  184. package/dist/zonos-elements/{p-0402af0d.entry.js → p-683ec0bf.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-8b42245d.entry.js → p-6df034d6.entry.js} +1 -1
  186. package/dist/zonos-elements/p-6df6cb8a.entry.js +1 -0
  187. package/dist/zonos-elements/{p-02065a08.system.js → p-717cbe90.system.js} +1 -1
  188. package/dist/zonos-elements/{p-7e8aba66.system.entry.js → p-71cb16da.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-9beb2624.entry.js → p-727387ed.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-77fa437c.entry.js → p-746bdebe.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-48d55793.system.js → p-7ac8846c.system.js} +1 -1
  192. package/dist/zonos-elements/{p-32278945.system.js → p-8005e102.system.js} +1 -1
  193. package/dist/zonos-elements/{p-2654556b.js → p-8051403a.js} +1 -1
  194. package/dist/zonos-elements/{p-d7cb9ef6.system.entry.js → p-8308f7d6.system.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-6fae9835.system.entry.js → p-86d6961c.system.entry.js} +1 -1
  196. package/dist/zonos-elements/p-9448d960.js +1 -0
  197. package/dist/zonos-elements/{p-2b8345d8.system.js → p-989cb22b.system.js} +1 -1
  198. package/dist/zonos-elements/{p-5afea02c.system.entry.js → p-a23d3b3f.system.entry.js} +1 -1
  199. package/dist/zonos-elements/p-a34269b1.system.entry.js +1 -0
  200. package/dist/zonos-elements/p-a553e132.js +1 -0
  201. package/dist/zonos-elements/{p-74ebd766.js → p-a5f8dc19.js} +1 -1
  202. package/dist/zonos-elements/p-a6535773.system.entry.js +1 -0
  203. package/dist/zonos-elements/{p-ee434a71.entry.js → p-a6773627.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-cd41b16b.system.entry.js → p-ae30e6c0.system.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-0745e440.entry.js → p-b406bb39.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-6b361d2b.js → p-bcf5cffb.js} +1 -1
  207. package/dist/zonos-elements/{p-e6165cc2.system.js → p-bf942ef0.system.js} +1 -1
  208. package/dist/zonos-elements/p-c345d1f5.system.js +1 -0
  209. package/dist/zonos-elements/p-d4337686.entry.js +1 -0
  210. package/dist/zonos-elements/{p-1b963905.system.js → p-ddf68916.system.js} +1 -1
  211. package/dist/zonos-elements/p-df8b8827.entry.js +1 -0
  212. package/dist/zonos-elements/{p-abf61f6f.system.entry.js → p-e0ec0aa3.system.entry.js} +1 -1
  213. package/dist/zonos-elements/p-e210edd9.system.js +1 -0
  214. package/dist/zonos-elements/{p-f44a3338.entry.js → p-e7a45f6c.entry.js} +1 -1
  215. package/dist/zonos-elements/p-edf613ea.entry.js +1 -0
  216. package/dist/zonos-elements/p-ee3c7b11.system.entry.js +1 -0
  217. package/dist/zonos-elements/{p-293183c1.system.entry.js → p-f156e2e5.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-3f380c8f.system.js → p-f314217a.system.js} +1 -1
  219. package/dist/zonos-elements/{p-ac59f5c1.system.entry.js → p-f3e1a6a7.system.entry.js} +1 -1
  220. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  221. package/package.json +3 -3
  222. package/dist/cjs/formatStringWithLinks-52341fc7.js +0 -17
  223. package/dist/esm/formatStringWithLinks-9e819405.js +0 -15
  224. package/dist/esm-es5/formatStringWithLinks-9e819405.js +0 -1
  225. package/dist/esm-es5/localization-d49867ed.js +0 -1
  226. package/dist/zonos-elements/p-21d925d7.entry.js +0 -1
  227. package/dist/zonos-elements/p-2d6557ee.system.js +0 -1
  228. package/dist/zonos-elements/p-32704baa.js +0 -1
  229. package/dist/zonos-elements/p-3cf22558.entry.js +0 -1
  230. package/dist/zonos-elements/p-45e1c33b.entry.js +0 -1
  231. package/dist/zonos-elements/p-5d3ea491.system.entry.js +0 -1
  232. package/dist/zonos-elements/p-63a383f4.js +0 -1
  233. package/dist/zonos-elements/p-6b4ef7e0.entry.js +0 -1
  234. package/dist/zonos-elements/p-7365e22c.system.js +0 -1
  235. package/dist/zonos-elements/p-7522ec43.js +0 -1
  236. package/dist/zonos-elements/p-9fab45aa.system.js +0 -1
  237. package/dist/zonos-elements/p-a87561b8.js +0 -1
  238. package/dist/zonos-elements/p-c209e36d.js +0 -1
  239. package/dist/zonos-elements/p-d7bda14d.js +0 -1
  240. package/dist/zonos-elements/p-d93991c3.system.entry.js +0 -1
  241. package/dist/zonos-elements/p-eb9369b9.system.entry.js +0 -1
  242. package/dist/zonos-elements/p-f3a73132.entry.js +0 -1
  243. package/dist/zonos-elements/p-ffbf87c8.system.entry.js +0 -1
@@ -1 +1 @@
1
- (function(){"use strict";const e=({id:e,payload:o,target:t,type:n})=>{var r;t instanceof HTMLIFrameElement?null===(r=t.contentWindow)||void 0===r||r.postMessage({id:e,payload:o,type:n},"*"):t.postMessage({id:e,payload:o,type:n},"*")};class o{constructor(o,t){this.targetElement=o,this.targetId=t,this.sendMessage=(o,t)=>{e({id:this.targetId,payload:t,target:this.targetElement,type:o})}}}o.iframeServices={GOOGLE_PLACES:"zonos--private-iframe-google-places-service-m9bmuh7g"},o.sendMessage=e,o.injectPrivateIframe=({id:e,onload:o,src:t})=>{const n=document.createElement("iframe");return n.src=t,n.id=e,n.style.display="none",n.role="presentation",n.ariaHidden="true",n.tabIndex=-1,n.style.border="none !important",n.style.margin="0px !important",n.style.padding="0px !important",n.style.width="1px !important",n.style.minWidth="100% !important",n.style.overflow="hidden !important",n.style.display="block !important",n.style.visibility="hidden !important",n.style.position="fixed !important",n.style.pointerEvents="none !important",n.style.userSelect="none !important",n.style.height="1px !important",n.onload=()=>o(n),document.body.appendChild(n),n};const t=performance.now(),n=e=>{if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(o){if(e&&"function"==typeof e.toString){return e.toString()}return"Unable to stringify info"}},r=(e,o,...r)=>{var s,i;const{elapsedTimePretty:a}=(()=>{const e=performance.now()-t,o=e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`;return{elapsedTime:e,elapsedTimePretty:o}})(),l=[`(${a})`,...r];l.map(n).join(" ");if(!(!!(null===(s=window.Zonos)||void 0===s?void 0:s.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return;let d=document.querySelector("iframe#zonos---debug-logging-iframe");d||(d=document.createElement("iframe"),d.id="zonos---debug-logging-iframe",d.style.display="none",d.style.opacity="0",d.style.position="absolute",d.style.top="-9999px",d.style.left="-9999px",d.style.width="1px",d.style.height="1px",d.style.border="none",d.style.overflow="hidden",d.style.visibility="hidden",document.body.appendChild(d));const c=(null===(i=d.contentWindow)||void 0===i?void 0:i.window.console)||window.console;switch(o){case"warn":c.warn(e,...l);break;case"info":c.info(e,...l);break;case"error":c.error(e,...l);break;default:c.groupCollapsed(e,...l),c.trace(),c.groupEnd()}},s=(e,...o)=>{r(e,"error",...o)},i=["jsdelivr","cdnjs","unpkg","vercel"],a="jsdelivr",l=e=>{const o=i.indexOf(e);return i[o+1]||null},d=()=>window.location.search.includes("zonosStagingMode=1"),c=()=>{var e;return(null===(e=window.Zonos.zonosApiKey)||void 0===e?void 0:e.includes("test"))||window.location.search.includes("zonosTestMode=1")};function u(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)o.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t}"function"==typeof SuppressedError&&SuppressedError;const p=["cloudflare","vercel"],m=p[0],w={cloudflare:"https://route.elements.zonos.com",vercel:"https://route.js.zonos.com"},y=w[m],h=(e=m)=>{const o=p.indexOf(e),t=p[o+1];return t||null},g=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){return null}return null},f=()=>{const e="userAgentData"in window.navigator?window.navigator.userAgentData:null,o=(()=>{const e="connection"in window.navigator?window.navigator.connection:null,o="mozConnection"in window.navigator?window.navigator.mozConnection:null,t="webkitConnection"in window.navigator?window.navigator.webkitConnection:null;return e||o||t})();return{connectionDownlink:null==o?void 0:o.downlink,connectionEffectiveType:null==o?void 0:o.effectiveType,connectionRtt:null==o?void 0:o.rtt,connectionSaveData:null==o?void 0:o.saveData,isHostedCheckout:window.Zonos.isLegacyCheckout,screenHeight:window.screen.height,screenWidth:window.innerWidth,userAgent:e&&e.brands.length>0?e:window.navigator.userAgent}},v=["/api/zonos-elements/log-script-load","/api/zonos-elements/log-bulk-load-data"],b=async({response:e,shouldLog:o=!0,shouldThrow:t=!1})=>{try{const o=await e.text(),t=g(o);if(!t)throw new Error(`Failed to parse content: ${o}`);return t}catch(e){if(t)throw e;return o&&console.error(e),null}},S=async({basePathType:e,options:o,path:t})=>{let n;const r=window.Zonos.zonosQaUrlApi||w[e]||m,s=new URL(r+t),i=window.Zonos.cartId?`${window.location.hostname}-${window.Zonos.cartId}`:window.location.hostname;s.searchParams.set("zToken",(e=>{try{return btoa(e).replace(/=/g,"")}catch(o){return e.replace(/[^A-Za-z0-9]/g,"").split("").reverse().join("")}})(i));try{n=await fetch(s.toString(),o)}catch(e){if(e instanceof Error)return{baseUrl:r,errors:[{message:e.message,type:"unknown"}],json:null,response:null,zonosMode:null};return{baseUrl:r,errors:[{message:"Failed to fetch",type:"unknown"}],json:null,response:null,zonosMode:null}}const a=n.headers.get("Zonos-Mode"),l=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&a&&l&&(window.Zonos.modeAlerted=!0),n.ok){return{baseUrl:r,errors:[],json:await b({response:n}),response:n,zonosMode:a}}const d=n.status.toString();try{const e=await b({response:n,shouldThrow:!0});if(e&&"errors"in e&&Array.isArray(e.errors)){const o=e.errors;return{baseUrl:r,errors:o.map(e=>"string"==typeof e?{message:e,type:d}:e),json:null,response:n,zonosMode:a}}return{baseUrl:r,errors:[{message:JSON.stringify(e),type:d}],json:null,response:n,zonosMode:a}}catch(e){return{baseUrl:r,errors:[{message:`${d}: ${"Unknown error"}`,type:d}],json:null,response:null,zonosMode:a}}},C=async({basePathType:e,options:o,path:t})=>{var n,s;const i=t.startsWith("/api/bigcommerce")?"vercel":e,a=performance.now(),l=await S({basePathType:i,options:o,path:t}),{errors:d,response:c}=l,p=u(l,["errors","response"]),m=performance.now()-a;r(`${t} (${m.toFixed(2)}ms)`,"info");const b=null==c?void 0:c.headers.get("Zonos-Duration");200===(null==c?void 0:c.status)&&(({apiPath:e,apiType:o,loadTimeInternal:t,loadTimeTotal:n})=>{if(v.includes(e))return;const r=n-t;if(r<0)return;const s=e.split("?")[0]||e,i=f(),a="object"==typeof i.userAgent&&i.userAgent.mobile,l={apiType:o,connectionType:i.connectionEffectiveType,href:s,isHostedCheckout:window.Zonos.isLegacyCheckout,isMobile:(d=a,d||window.innerWidth<890),loadTimeBrowserApi:r,loadTimeInternal:t,loadTimeTotal:n,metadata:Object.assign({},i),screenHeight:i.screenHeight,screenWidth:i.screenWidth,userAgent:"string"==typeof i.userAgent?i.userAgent:i.userAgent.brands.map(e=>e.brand).filter(e=>!/Not.*A.*Brand.*/.test(e)).join(",")};var d;window.Zonos.loadTimeApiInfoList.push(l)})({apiPath:t,apiType:i,loadTimeInternal:b?Number(b):0,loadTimeTotal:m});const z=h(i),k=d.find(({type:e})=>"unknown"===e),Z=d.find(({message:e})=>"string"==typeof e&&(e.includes("signal is aborted")||e.includes("The operation was aborted")||e.includes("Fetch is aborted"))),I=!!k||404===(null==c?void 0:c.status)||500===(null==c?void 0:c.status),j=z&&I;return I&&!Z&&(async({endpoint:e,errors:o,metadata:t,shouldPostReleaseErrorReporting:n})=>{r("sendErrorLog","warn",e,t,o);{const e=Number(window.Zonos.releaseDate);if((new Date).getTime()-e>36e5)return}const s="userAgentData"in window.navigator?window.navigator.userAgentData:null,i={endpoint:e,errors:o,href:window.location.href,metadata:Object.assign({appVersion:window.Zonos.version,domain:window.Zonos.domain,publicCredential:window.Zonos.zonosApiKey,userAgent:s&&s.brands.length>0?s:window.navigator.userAgent},t)};try{fetch(`${y}/api/zonos-elements/log-error`,{body:JSON.stringify(i),headers:{"Zonos-Referer":window.location.hostname},method:"POST"})}catch(e){const o=h();if(!o)return;fetch(`${w[o]}/api/zonos-elements/log-error`,{body:JSON.stringify(i),method:"POST"})}})({endpoint:w[i]+t,errors:d.map(({message:e})=>`API: ${e}`),metadata:{currentBasePath:i,nextFallbackApiType:z,requestHeaders:null==o?void 0:o.headers,requestPayload:g(null===(n=null==o?void 0:o.body)||void 0===n?void 0:n.toString())||(null===(s=null==o?void 0:o.body)||void 0===s?void 0:s.toString()),shouldCallFallback:j,status:null==c?void 0:c.status,statusText:null==c?void 0:c.statusText},shouldPostReleaseErrorReporting:!0}),j?(r(`=== "${t}" failed to fetch, trying next fallback ${z}`),C({basePathType:z,options:o,path:t})):Object.assign({errors:d,response:c},p)},z=async(e,o)=>{const t=u(o||{},[]),n=t.body?JSON.stringify(t.body):void 0,r=t.method||"GET",s=Object.assign({"Content-Type":"application/json","Zonos-Is-BigCommerce":window.Zonos.isBigCommerce.toString(),"Zonos-Referer":window.location.hostname,"Zonos-Staging-Mode":d()?"1":void 0,"Zonos-Test-Mode":c()?"1":void 0,"Zonos-Version":window.Zonos.version,credentialtoken:window.Zonos.zonosApiKey||"Empty credential token from zonos-elements"},t.headers);Object.keys(s).forEach(e=>void 0===s[e]&&delete s[e]);const i=Object.assign(Object.assign({},t),{body:"GET"===r?void 0:n,headers:s,method:r}),a=new URLSearchParams(window.location.search).get("useFallbackApi");return C({basePathType:a||m,options:i,path:e})},k=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const o=(e=>{if(!e)return null;const o=new URL(e).searchParams.get("zonosQaUrl");return o?/[^a-zA-Z0-9-_]+/.test(o)?null:o:null})(window.location.href),t="https://v1.3.279.js.zonos.com";if(!o&&(t.includes("test.")||t.includes("test-")))return t;if(!o&&["dev.demo.elements.zonos.com","dev.checkout.elements.zonos.com","dev.storybook.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!o)return null;if("dev-elements"===o)return"https://dev.elements.zonos.com";const n=`https://${o}.preview.js.zonos.com`;return r(`[ZONOS-WARNING] using '${n}' for loading elements script`,"warn"),fetch(n).then(()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")}).catch(()=>{alert(`[ZONOS-WARNING] '${n}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:o}=window.location,t=`${o}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null}),n},Z="https://js.stripe.com/v3",I=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;let j=null;const O=e=>(null!==j||(j=new Promise((o,t)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe)o(window.Stripe);else try{let n=(()=>{const e=document.querySelectorAll(`script[src^="${Z}"]`);for(let o=0;o<e.length;o++){const t=e[o];if(t&&I.test(t.src))return t}return null})();n&&e?console.warn("loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used"):n||(n=(()=>{const e=document.createElement("script");e.src=`${Z}`;const o=document.head||document.body;return o?(o.appendChild(e),e):(s("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==n||n.addEventListener("load",()=>{window.Stripe?o(window.Stripe):t(new Error("Stripe.js not available"))}),null==n||n.addEventListener("error",()=>{t(new Error("Failed to load Stripe.js"))})}catch(e){return void t(e)}else o(null)})),j),A=Promise.resolve().then(()=>(()=>{var e,o;return"undefined"!=typeof window&&("function"==typeof(null===(e=window.Zonos)||void 0===e?void 0:e.createCartId)||"function"==typeof(null===(o=window.Zonos)||void 0===o?void 0:o.buildCartDetail))})()?O(null):null);let E=!1;A.catch(e=>{E||console.warn(e)});const T=async({cartId:e,retries:o})=>{const t=c(),n=(()=>{const e=new URLSearchParams(window.location.search);return{overrideShouldEnabledCustomAddress:window.Zonos.overrideUseCustomAddressForm?"1":e.get("overrideShouldEnabledCustomAddress")}})(),s=(()=>{const e=new URLSearchParams(window.location.search).get("validityToken");if(!e||!/^[A-Za-z0-9+/]+={0,2}$/.test(e)||e.length%4!=0)return null;try{return atob(e),e}catch(e){return null}})()||void 0,i=new URLSearchParams;n.overrideShouldEnabledCustomAddress&&i.set("overrideShouldEnabledCustomAddress",n.overrideShouldEnabledCustomAddress);const{errors:a,json:l,zonosMode:d}=await z(`/api/zonos-elements/get-cart?${i.toString()}`,{body:{isTestMode:t,renewCartExpirationToken:s,tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"}),u=!l||a.length;return u&&o?(r("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:o}),await new Promise(e=>setTimeout(e,500)),T({cartId:e,retries:o-1})):u?null:Object.assign(Object.assign({},l),{zonosMode:d})},L=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,P=new RegExp(`^${L.source}$`),$=new RegExp(`^cart_${L.source}$`),D=/^[a-zA-Z0-9]{2,}$/,U=/^cart_[a-zA-Z0-9]{2,}$/,N=async e=>{const{isDgsCartId:o,isLegacyCartId:t}=(e=>e?e.includes("undefined")?{isDgsCartId:!1,isLegacyCartId:!1}:U.test(e)?{isDgsCartId:!0,isLegacyCartId:!1}:D.test(e)?{isDgsCartId:!1,isLegacyCartId:!0}:$.test(e)?{isDgsCartId:!0,isLegacyCartId:!1}:P.test(e)?{isDgsCartId:!1,isLegacyCartId:!0}:{isDgsCartId:!1,isLegacyCartId:!1}:{isDgsCartId:!1,isLegacyCartId:!1})(e);if(!t&&!o)return s("[ZONOS - loadZonos] invalid cart id"),null;const n=await T({cartId:e,retries:5});return r("[ZONOS - loadZonos] getting temp cart data","info",n),n?(window.Zonos.storeId=n.cartData.storeId,window.Zonos.zonosApiKey=n.cartData.credentialToken,window.Zonos.zonosMode=n.zonosMode,{cartData:n.cartData,settings:n.settings,storeFavicon:n.storeFaviconUrl,storeId:n.cartData.storeId,storeLogo:n.storeLogoUrl,zonosApiKey:n.cartData.credentialToken}):(s("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),null)},R="zonos--checkout-hidden-international-button";var F;const x=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:o,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const o=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some(e=>o.includes(e)),n=["qa.js.zonos.com"].some(e=>o.includes(e));return{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?o:null})(),M=Date.now(),B="https://v1.3.279.js.zonos.com",q=x||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.279",W="https://fonts.googleapis.com",K=/^https:\/\/fonts\.googleapis\.com/;class G{}F=G,G.doneInit=!1,G.cartSettings=null,G.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),G.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),G._paypalMockResponse=null,G.iframeLogType="undefined"!=typeof window?new URLSearchParams(window.location.search).get("iframeLogType"):null,G.isBigCommerce=!1,G.releaseDate="1783027653476",G.isLegacyCheckout=!1,G.googleAnalyticId=null,G.googleAnalyticReady=!1,G.facebookPixelId=null,G.facebookPixelReady=!1,G.startLoadTime=M,G.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",G.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),G.overrideUseCustomAddressForm=!1,G.isCollect=!1,G.isInvoice=!1,G.isNpm=!0,G.zonosQaUrl=null,G.zonosQaUrlApi=null,G.trackEventLogs=[],G.version="v1.3.279",G.modeAlerted=!1,G.cartData=null,G.paypal=null,G.zonosMode=null,G.IframeService=o,G.getCurrentTimestamp=()=>(new Date).getTime(),G.zonosController=null,G.loadTimeApiInfoList=[],G.logIntervalId=null,G.init=async e=>{const{appearance:o,checkoutSettings:t,currencyConverter:n,helloSettings:i,onCountryChange:a,overrideCurrencyFormat:l,storeId:u,zonosApiKey:p}=e;if(F.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),F.createCartId=null==t?void 0:t.createCartId,F.buildCartDetail=null==t?void 0:t.buildCartDetail,F.doneInit)return;if(r(`====== ZONOS DEBUG MODE: on (${F.version}) ======`),F.zonosApiKey=p,F.storeId=u,"undefined"!=typeof window&&window.parent===window&&(F.googleAnalyticReady=!0,F.facebookPixelReady=!0),F.isNpm){r("====== ZONOS LOADING FROM NPM ======");const o=k();if(o&&!window.isZonosPreview){r(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${o} ======`,"info");const t=document.createElement("script");return t.src=`${o}/dist/scripts/zonos.js`,document.head.appendChild(t),t.addEventListener("load",()=>{window.Zonos.isNpm=F.isNpm,window.Zonos.isBigCommerce=F.isBigCommerce,window.Zonos.isLegacyCheckout=F.isLegacyCheckout,window.Zonos.zonosMode=F.zonosMode,window.Zonos.init(e)}),t.addEventListener("error",()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${o}`)}),void(window.isZonosPreview=!0)}if(!p&&!F.cartId)return void s("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!F.cartData&&F.cartId){r("Initialize cart data");const e=await N(F.cartId);if(!e)return void s("Failed to get cart data");F.cartData=e.cartData,F.zonosApiKey=e.zonosApiKey,F.cartSettings=e.settings}const t=await(async()=>{const e=c(),o=d();if(!e&&!o||!window.Zonos.zonosApiKey)return null;if(r("[ZONOS - loadZonos] Attempt test public credential","info"),window.Zonos.zonosApiKey.includes("credential_test"))return r("[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key","info"),null;const{errors:t,json:n}=await z("/api/get-test-public-credential");if(t.length||!n)return s("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",t),null;const i=n.publicCredential;return i?(r(`[ZONOS - loadZonos] Retrieve new test public token ${i}`,"info"),i):(s("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();t&&(F.zonosApiKey=t)}const m=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(F.cartId&&F.cartData||!!m){r("Cart data or stripe client secret is available, inject hidden button and trigger checkout");const e=document.createElement("button");e.style.display="none",e.id="zonos--checkout-hidden-button",document.body.appendChild(e)}r("init zonos"),F.restoreNativeBrowserFunctions(),F.injectCustomScriptForHostedCheckout(),F.injectZonosCdn(),F.injectZonosCss(),F.injectFonts(),F.injectCheckoutInternationalButton(),F.injectController({config:{appearance:o,checkoutSettings:t,currencyConverter:n,helloSettings:i,onCountryChange:a,overrideCurrencyFormat:l}}),F.doneInit=!0},G.injectCheckoutInternationalButton=()=>{if(!document.querySelector(`#${R}`)){const e=document.createElement("button");e.id=R,e.style.display="none",document.body.appendChild(e)}},G.injectCustomScriptForHostedCheckout=()=>{const e=F.cartData,o=(null==e?void 0:e.metadata)||[],t=o.find(e=>"customHeaderScript"===e.key),n=o.find(e=>"customFooterScript"===e.key);if(window.Zonos.isLegacyCheckout&&(t||n)){if(t){r("Injecting custom header script");const e=document.createElement("script");e.textContent=t.value,document.head.appendChild(e)}if(n){r("Injecting custom footer script");const e=document.createElement("script");e.textContent=n.value,document.body.appendChild(e)}}else r("Skip injecting custom script for hosted checkout","info",{footerScript:n,headerScript:t,isLegacyCheckout:window.Zonos.isLegacyCheckout})},G.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},G.triggerCheckoutInternational=async()=>{const e=document.querySelector(`#${R}`);setTimeout(()=>{var o;e&&e.dispatchEvent(new CustomEvent("click",{detail:o}))},10)},G.openHelloDialog=e=>{const o=document.querySelector("zonos-hello");o&&o.openHelloDialog(null==e||e)},G.showNotification=e=>{var o;null===(o=F.zonosController)||void 0===o||o.showNotification(e)},G.updateOrganizationName=e=>{var o;null===(o=F.zonosController)||void 0===o||o.updateOrganizationName(e)},G.disablePlaceOrderButtons=({autoEnable:e=!0,config:o,disable:t,placeOrderButtonSelector:n})=>{var r;if(!(null===(r=o.checkoutSettings)||void 0===r?void 0:r.disablePlaceOrderButtonActivation)&&n){const o=document.querySelectorAll(n),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};o.forEach(e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",r)):(e.removeAttribute("disabled"),e.removeEventListener("click",r)))}),e&&t&&setTimeout(()=>{o.forEach(e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)})},5e3)}},G.restoreNativeBrowserFunctions=()=>{var e;if("1"===new URL(window.location.href).searchParams.get("useMerchantPolyfill"))return;const o="zonos---native-browser";let t=document.querySelector(`iframe#${o}`);t||(t=document.createElement("iframe"),t.id=o,t.style.display="none",t.style.opacity="0",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.width="1px",t.style.height="1px",t.style.border="none",t.style.overflow="hidden",t.style.visibility="hidden",document.body.appendChild(t));const n=(null===(e=t.contentWindow)||void 0===e?void 0:e.window.Array.from)||Array.from;Array.from=n,document.body.removeChild(t)},G.injectController=({config:e})=>{var o,t;if(document.querySelector("zonos-controller"))return;if(null===(o=e.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const o=e.checkoutSettings.placeOrderButtonSelector;F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o});new MutationObserver(()=>{F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o})}).observe(document.body,{childList:!0,subtree:!0})}if(null===(t=e.checkoutSettings)||void 0===t?void 0:t.alwaysTriggerInternationalCheckoutSelector){const o=e.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o});new MutationObserver(()=>{F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o})}).observe(document.body,{childList:!0,subtree:!0})}const n=document.createElement("zonos-controller");n.config=e,n.zonosApiKey=F.zonosApiKey||"",n.addEventListener("stripeInitEvent",async e=>{const{detail:o}=e;r("loading Stripe");const t=await(async(...e)=>{var o;E=!0;const t=Date.now();return((e,o,t)=>{if(null===e)return null;const n=e.apply(void 0,o);return((e,o)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:o})})(n,t),n})(null!==(o=await A)&&void 0!==o?o:await O(null),e,t)})(o.publishableKey);t?(window.Zonos.stripe=t,window.Zonos.isCollect?n.initCollectElement(t):window.Zonos.isInvoice?n.initInvoiceElement(t):n.initCheckoutElement(t)):s("API seems to be invalid or missing. Failed to load Stripe")}),document.body.appendChild(n),F.zonosController=n,r("Zonos controller injected!")},G.injectScript=({cdnType:e,isModule:o,theRestUrl:t})=>{const n=`${F.getZonosUrl(e)}/${t}`;if(document.querySelector(`script[src="${n}"]`))return void r(`Zonos script "${n}" already exists in the document`,"warn");const i=document.head||document.body,a=document.createElement("script");o?a.type="module":a.noModule=!0,a.src=n,a.crossOrigin="anonymous",a.onerror=()=>{s(`Failed to load ${a.src}`);const n=l(e);n&&F.injectScript({cdnType:n,isModule:o,theRestUrl:t})},i.appendChild(a)},G.getZonosUrl=e=>{const o=()=>{switch(e){case"jsdelivr":return q;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.279";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.279";case"vercel":return B}};if(F.isNpm){return k()||o()}return o()},G.injectZonosCdn=()=>{F.injectScript({cdnType:a,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),F.injectScript({cdnType:a,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),r("Zonos cdn script injected!")},G.injectStylesheet=({cdnType:e,theRestUrl:o})=>{const t=F.getZonosUrl(e),n=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${B}/`,n.appendChild(r);const i=document.createElement("link");i.rel="stylesheet",i.href=`${t}/${o}`,i.onerror=()=>{s(`Failed to load ${i.href}`);const t=l(e);t&&F.injectStylesheet({cdnType:t,theRestUrl:o})},n.appendChild(i)},G.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?r("Zonos style links already injected","warn"):(F.injectStylesheet({cdnType:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),r("Zonos style css injected!"))},G.injectFonts=()=>{if((()=>{if(document.fonts.check("1em Inter"))return void r("Inter font already loaded","warn");const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${W}"]`);for(let o=0;o<e.length;o++){const t=e[o];if(t&&!K.test(t.href))return t}return null})())return void r("Inter font already injected","warn");const e=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=W,e.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${W}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(t),r("Zonos font injected!")},G.setupGoogleFont=e=>{var o;null===(o=F.zonosController)||void 0===o||o.setupGoogleFont(e)},G.injectSupportGoogleFont=e=>{var o;r(`[FONT] injecting ${e}`);const t=null===(o=e.match(/family=(.*?):/))||void 0===o?void 0:o[1],n=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${W}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=W,n.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void r(`[FONT] ${t} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=e,n.appendChild(s),r(`[FONT] ${t} font injected!`)},window.Zonos&&window.Zonos.doneInit||(window.Zonos=G)})();
1
+ (function(){"use strict";const e=({id:e,payload:o,target:t,type:n})=>{var r;t instanceof HTMLIFrameElement?null===(r=t.contentWindow)||void 0===r||r.postMessage({id:e,payload:o,type:n},"*"):t.postMessage({id:e,payload:o,type:n},"*")};class o{constructor(o,t){this.targetElement=o,this.targetId=t,this.sendMessage=(o,t)=>{e({id:this.targetId,payload:t,target:this.targetElement,type:o})}}}o.iframeServices={GOOGLE_PLACES:"zonos--private-iframe-google-places-service-m9bmuh7g"},o.sendMessage=e,o.injectPrivateIframe=({id:e,onload:o,src:t})=>{const n=document.createElement("iframe");return n.src=t,n.id=e,n.style.display="none",n.role="presentation",n.ariaHidden="true",n.tabIndex=-1,n.style.border="none !important",n.style.margin="0px !important",n.style.padding="0px !important",n.style.width="1px !important",n.style.minWidth="100% !important",n.style.overflow="hidden !important",n.style.display="block !important",n.style.visibility="hidden !important",n.style.position="fixed !important",n.style.pointerEvents="none !important",n.style.userSelect="none !important",n.style.height="1px !important",n.onload=()=>o(n),document.body.appendChild(n),n};const t=performance.now(),n=e=>{if("string"==typeof e)return e;try{return JSON.stringify(e)}catch(o){if(e&&"function"==typeof e.toString){return e.toString()}return"Unable to stringify info"}},r=(e,o,...r)=>{var s,i;const{elapsedTimePretty:a}=(()=>{const e=performance.now()-t,o=e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`;return{elapsedTime:e,elapsedTimePretty:o}})(),l=[`(${a})`,...r];l.map(n).join(" ");if(!(!!(null===(s=window.Zonos)||void 0===s?void 0:s.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return;let d=document.querySelector("iframe#zonos---debug-logging-iframe");d||(d=document.createElement("iframe"),d.id="zonos---debug-logging-iframe",d.style.display="none",d.style.opacity="0",d.style.position="absolute",d.style.top="-9999px",d.style.left="-9999px",d.style.width="1px",d.style.height="1px",d.style.border="none",d.style.overflow="hidden",d.style.visibility="hidden",document.body.appendChild(d));const c=(null===(i=d.contentWindow)||void 0===i?void 0:i.window.console)||window.console;switch(o){case"warn":c.warn(e,...l);break;case"info":c.info(e,...l);break;case"error":c.error(e,...l);break;default:c.groupCollapsed(e,...l),c.trace(),c.groupEnd()}},s=(e,...o)=>{r(e,"error",...o)},i=["jsdelivr","cdnjs","unpkg","vercel"],a="jsdelivr",l=e=>{const o=i.indexOf(e);return i[o+1]||null},d=()=>window.location.search.includes("zonosStagingMode=1"),c=()=>{var e;return(null===(e=window.Zonos.zonosApiKey)||void 0===e?void 0:e.includes("test"))||window.location.search.includes("zonosTestMode=1")};function u(e,o){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&o.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)o.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(t[n[r]]=e[n[r]])}return t}"function"==typeof SuppressedError&&SuppressedError;const p=["cloudflare","vercel"],m=p[0],w={cloudflare:"https://route.elements.zonos.com",vercel:"https://route.js.zonos.com"},y=w[m],h=(e=m)=>{const o=p.indexOf(e),t=p[o+1];return t||null},g=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(e){return null}return null},f=()=>{const e="userAgentData"in window.navigator?window.navigator.userAgentData:null,o=(()=>{const e="connection"in window.navigator?window.navigator.connection:null,o="mozConnection"in window.navigator?window.navigator.mozConnection:null,t="webkitConnection"in window.navigator?window.navigator.webkitConnection:null;return e||o||t})();return{connectionDownlink:null==o?void 0:o.downlink,connectionEffectiveType:null==o?void 0:o.effectiveType,connectionRtt:null==o?void 0:o.rtt,connectionSaveData:null==o?void 0:o.saveData,isHostedCheckout:window.Zonos.isLegacyCheckout,screenHeight:window.screen.height,screenWidth:window.innerWidth,userAgent:e&&e.brands.length>0?e:window.navigator.userAgent}},v=["/api/zonos-elements/log-script-load","/api/zonos-elements/log-bulk-load-data"],b=async({response:e,shouldLog:o=!0,shouldThrow:t=!1})=>{try{const o=await e.text(),t=g(o);if(!t)throw new Error(`Failed to parse content: ${o}`);return t}catch(e){if(t)throw e;return o&&console.error(e),null}},S=async({basePathType:e,options:o,path:t})=>{let n;const r=window.Zonos.zonosQaUrlApi||w[e]||m,s=new URL(r+t),i=window.Zonos.cartId?`${window.location.hostname}-${window.Zonos.cartId}`:window.location.hostname;s.searchParams.set("zToken",(e=>{try{return btoa(e).replace(/=/g,"")}catch(o){return e.replace(/[^A-Za-z0-9]/g,"").split("").reverse().join("")}})(i));try{n=await fetch(s.toString(),o)}catch(e){if(e instanceof Error)return{baseUrl:r,errors:[{message:e.message,type:"unknown"}],json:null,response:null,zonosMode:null};return{baseUrl:r,errors:[{message:"Failed to fetch",type:"unknown"}],json:null,response:null,zonosMode:null}}const a=n.headers.get("Zonos-Mode"),l=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&a&&l&&(window.Zonos.modeAlerted=!0),n.ok){return{baseUrl:r,errors:[],json:await b({response:n}),response:n,zonosMode:a}}const d=n.status.toString();try{const e=await b({response:n,shouldThrow:!0});if(e&&"errors"in e&&Array.isArray(e.errors)){const o=e.errors;return{baseUrl:r,errors:o.map(e=>"string"==typeof e?{message:e,type:d}:e),json:null,response:n,zonosMode:a}}return{baseUrl:r,errors:[{message:JSON.stringify(e),type:d}],json:null,response:n,zonosMode:a}}catch(e){return{baseUrl:r,errors:[{message:`${d}: ${"Unknown error"}`,type:d}],json:null,response:null,zonosMode:a}}},C=async({basePathType:e,options:o,path:t})=>{var n,s;const i=t.startsWith("/api/bigcommerce")?"vercel":e,a=performance.now(),l=await S({basePathType:i,options:o,path:t}),{errors:d,response:c}=l,p=u(l,["errors","response"]),m=performance.now()-a;r(`${t} (${m.toFixed(2)}ms)`,"info");const b=null==c?void 0:c.headers.get("Zonos-Duration");200===(null==c?void 0:c.status)&&(({apiPath:e,apiType:o,loadTimeInternal:t,loadTimeTotal:n})=>{if(v.includes(e))return;const r=n-t;if(r<0)return;const s=e.split("?")[0]||e,i=f(),a="object"==typeof i.userAgent&&i.userAgent.mobile,l={apiType:o,connectionType:i.connectionEffectiveType,href:s,isHostedCheckout:window.Zonos.isLegacyCheckout,isMobile:(d=a,d||window.innerWidth<890),loadTimeBrowserApi:r,loadTimeInternal:t,loadTimeTotal:n,metadata:Object.assign({},i),screenHeight:i.screenHeight,screenWidth:i.screenWidth,userAgent:"string"==typeof i.userAgent?i.userAgent:i.userAgent.brands.map(e=>e.brand).filter(e=>!/Not.*A.*Brand.*/.test(e)).join(",")};var d;window.Zonos.loadTimeApiInfoList.push(l)})({apiPath:t,apiType:i,loadTimeInternal:b?Number(b):0,loadTimeTotal:m});const z=h(i),k=d.find(({type:e})=>"unknown"===e),Z=d.find(({message:e})=>"string"==typeof e&&(e.includes("signal is aborted")||e.includes("The operation was aborted")||e.includes("Fetch is aborted"))),I=!!k||404===(null==c?void 0:c.status)||500===(null==c?void 0:c.status),j=z&&I;return I&&!Z&&(async({endpoint:e,errors:o,metadata:t,shouldPostReleaseErrorReporting:n})=>{r("sendErrorLog","warn",e,t,o);{const e=Number(window.Zonos.releaseDate);if((new Date).getTime()-e>36e5)return}const s="userAgentData"in window.navigator?window.navigator.userAgentData:null,i={endpoint:e,errors:o,href:window.location.href,metadata:Object.assign({appVersion:window.Zonos.version,domain:window.Zonos.domain,publicCredential:window.Zonos.zonosApiKey,userAgent:s&&s.brands.length>0?s:window.navigator.userAgent},t)};try{fetch(`${y}/api/zonos-elements/log-error`,{body:JSON.stringify(i),headers:{"Zonos-Referer":window.location.hostname},method:"POST"})}catch(e){const o=h();if(!o)return;fetch(`${w[o]}/api/zonos-elements/log-error`,{body:JSON.stringify(i),method:"POST"})}})({endpoint:w[i]+t,errors:d.map(({message:e})=>`API: ${e}`),metadata:{currentBasePath:i,nextFallbackApiType:z,requestHeaders:null==o?void 0:o.headers,requestPayload:g(null===(n=null==o?void 0:o.body)||void 0===n?void 0:n.toString())||(null===(s=null==o?void 0:o.body)||void 0===s?void 0:s.toString()),shouldCallFallback:j,status:null==c?void 0:c.status,statusText:null==c?void 0:c.statusText},shouldPostReleaseErrorReporting:!0}),j?(r(`=== "${t}" failed to fetch, trying next fallback ${z}`),C({basePathType:z,options:o,path:t})):Object.assign({errors:d,response:c},p)},z=async(e,o)=>{const t=u(o||{},[]),n=t.body?JSON.stringify(t.body):void 0,r=t.method||"GET",s=Object.assign({"Content-Type":"application/json","Zonos-Is-BigCommerce":window.Zonos.isBigCommerce.toString(),"Zonos-Referer":window.location.hostname,"Zonos-Staging-Mode":d()?"1":void 0,"Zonos-Test-Mode":c()?"1":void 0,"Zonos-Version":window.Zonos.version,credentialtoken:window.Zonos.zonosApiKey||"Empty credential token from zonos-elements"},t.headers);Object.keys(s).forEach(e=>void 0===s[e]&&delete s[e]);const i=Object.assign(Object.assign({},t),{body:"GET"===r?void 0:n,headers:s,method:r}),a=new URLSearchParams(window.location.search).get("useFallbackApi");return C({basePathType:a||m,options:i,path:e})},k=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const o=(e=>{if(!e)return null;const o=new URL(e).searchParams.get("zonosQaUrl");return o?/[^a-zA-Z0-9-_]+/.test(o)?null:o:null})(window.location.href),t="https://v1.3.281.js.zonos.com";if(!o&&(t.includes("test.")||t.includes("test-")))return t;if(!o&&["dev.demo.elements.zonos.com","dev.checkout.elements.zonos.com","dev.storybook.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!o)return null;if("dev-elements"===o)return"https://dev.elements.zonos.com";const n=`https://${o}.preview.js.zonos.com`;return r(`[ZONOS-WARNING] using '${n}' for loading elements script`,"warn"),fetch(n).then(()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")}).catch(()=>{alert(`[ZONOS-WARNING] '${n}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:o}=window.location,t=`${o}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null}),n},Z="https://js.stripe.com/v3",I=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/;let j=null;const O=e=>(null!==j||(j=new Promise((o,t)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe)o(window.Stripe);else try{let n=(()=>{const e=document.querySelectorAll(`script[src^="${Z}"]`);for(let o=0;o<e.length;o++){const t=e[o];if(t&&I.test(t.src))return t}return null})();n&&e?console.warn("loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used"):n||(n=(()=>{const e=document.createElement("script");e.src=`${Z}`;const o=document.head||document.body;return o?(o.appendChild(e),e):(s("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==n||n.addEventListener("load",()=>{window.Stripe?o(window.Stripe):t(new Error("Stripe.js not available"))}),null==n||n.addEventListener("error",()=>{t(new Error("Failed to load Stripe.js"))})}catch(e){return void t(e)}else o(null)})),j),A=Promise.resolve().then(()=>(()=>{var e,o;return"undefined"!=typeof window&&("function"==typeof(null===(e=window.Zonos)||void 0===e?void 0:e.createCartId)||"function"==typeof(null===(o=window.Zonos)||void 0===o?void 0:o.buildCartDetail))})()?O(null):null);let E=!1;A.catch(e=>{E||console.warn(e)});const T=async({cartId:e,retries:o})=>{const t=c(),n=(()=>{const e=new URLSearchParams(window.location.search);return{overrideShouldEnabledCustomAddress:window.Zonos.overrideUseCustomAddressForm?"1":e.get("overrideShouldEnabledCustomAddress")}})(),s=(()=>{const e=new URLSearchParams(window.location.search).get("validityToken");if(!e||!/^[A-Za-z0-9+/]+={0,2}$/.test(e)||e.length%4!=0)return null;try{return atob(e),e}catch(e){return null}})()||void 0,i=new URLSearchParams;n.overrideShouldEnabledCustomAddress&&i.set("overrideShouldEnabledCustomAddress",n.overrideShouldEnabledCustomAddress);const{errors:a,json:l,zonosMode:d}=await z(`/api/zonos-elements/get-cart?${i.toString()}`,{body:{isTestMode:t,renewCartExpirationToken:s,tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"}),u=!l||a.length;return u&&o?(r("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:o}),await new Promise(e=>setTimeout(e,500)),T({cartId:e,retries:o-1})):u?null:Object.assign(Object.assign({},l),{zonosMode:d})},L=/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/,P=new RegExp(`^${L.source}$`),$=new RegExp(`^cart_${L.source}$`),D=/^[a-zA-Z0-9]{2,}$/,U=/^cart_[a-zA-Z0-9]{2,}$/,N=async e=>{const{isDgsCartId:o,isLegacyCartId:t}=(e=>e?e.includes("undefined")?{isDgsCartId:!1,isLegacyCartId:!1}:U.test(e)?{isDgsCartId:!0,isLegacyCartId:!1}:D.test(e)?{isDgsCartId:!1,isLegacyCartId:!0}:$.test(e)?{isDgsCartId:!0,isLegacyCartId:!1}:P.test(e)?{isDgsCartId:!1,isLegacyCartId:!0}:{isDgsCartId:!1,isLegacyCartId:!1}:{isDgsCartId:!1,isLegacyCartId:!1})(e);if(!t&&!o)return s("[ZONOS - loadZonos] invalid cart id"),null;const n=await T({cartId:e,retries:5});return r("[ZONOS - loadZonos] getting temp cart data","info",n),n?(window.Zonos.storeId=n.cartData.storeId,window.Zonos.zonosApiKey=n.cartData.credentialToken,window.Zonos.zonosMode=n.zonosMode,{cartData:n.cartData,settings:n.settings,storeFavicon:n.storeFaviconUrl,storeId:n.cartData.storeId,storeLogo:n.storeLogoUrl,zonosApiKey:n.cartData.credentialToken}):(s("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),null)},R="zonos--checkout-hidden-international-button";var F;const x=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:o,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const o=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some(e=>o.includes(e)),n=["qa.js.zonos.com"].some(e=>o.includes(e));return{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?o:null})(),M=Date.now(),B="https://v1.3.281.js.zonos.com",q=x||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.281",W="https://fonts.googleapis.com",K=/^https:\/\/fonts\.googleapis\.com/;class G{}F=G,G.doneInit=!1,G.cartSettings=null,G.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),G.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),G._paypalMockResponse=null,G.iframeLogType="undefined"!=typeof window?new URLSearchParams(window.location.search).get("iframeLogType"):null,G.isBigCommerce=!1,G.releaseDate="1784328635818",G.isLegacyCheckout=!1,G.googleAnalyticId=null,G.googleAnalyticReady=!1,G.facebookPixelId=null,G.facebookPixelReady=!1,G.startLoadTime=M,G.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",G.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),G.overrideUseCustomAddressForm=!1,G.isCollect=!1,G.isInvoice=!1,G.isNpm=!0,G.zonosQaUrl=null,G.zonosQaUrlApi=null,G.trackEventLogs=[],G.version="v1.3.281",G.modeAlerted=!1,G.cartData=null,G.paypal=null,G.zonosMode=null,G.IframeService=o,G.getCurrentTimestamp=()=>(new Date).getTime(),G.zonosController=null,G.loadTimeApiInfoList=[],G.logIntervalId=null,G.init=async e=>{const{appearance:o,checkoutSettings:t,currencyConverter:n,helloSettings:i,onCountryChange:a,overrideCurrencyFormat:l,storeId:u,zonosApiKey:p}=e;if(F.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),F.createCartId=null==t?void 0:t.createCartId,F.buildCartDetail=null==t?void 0:t.buildCartDetail,F.doneInit)return;if(r(`====== ZONOS DEBUG MODE: on (${F.version}) ======`),F.zonosApiKey=p,F.storeId=u,"undefined"!=typeof window&&window.parent===window&&(F.googleAnalyticReady=!0,F.facebookPixelReady=!0),F.isNpm){r("====== ZONOS LOADING FROM NPM ======");const o=k();if(o&&!window.isZonosPreview){r(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${o} ======`,"info");const t=document.createElement("script");return t.src=`${o}/dist/scripts/zonos.js`,document.head.appendChild(t),t.addEventListener("load",()=>{window.Zonos.isNpm=F.isNpm,window.Zonos.isBigCommerce=F.isBigCommerce,window.Zonos.isLegacyCheckout=F.isLegacyCheckout,window.Zonos.zonosMode=F.zonosMode,window.Zonos.init(e)}),t.addEventListener("error",()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${o}`)}),void(window.isZonosPreview=!0)}if(!p&&!F.cartId)return void s("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!F.cartData&&F.cartId){r("Initialize cart data");const e=await N(F.cartId);if(!e)return void s("Failed to get cart data");F.cartData=e.cartData,F.zonosApiKey=e.zonosApiKey,F.cartSettings=e.settings}const t=await(async()=>{const e=c(),o=d();if(!e&&!o||!window.Zonos.zonosApiKey)return null;if(r("[ZONOS - loadZonos] Attempt test public credential","info"),window.Zonos.zonosApiKey.includes("credential_test"))return r("[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key","info"),null;const{errors:t,json:n}=await z("/api/get-test-public-credential");if(t.length||!n)return s("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",t),null;const i=n.publicCredential;return i?(r(`[ZONOS - loadZonos] Retrieve new test public token ${i}`,"info"),i):(s("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();t&&(F.zonosApiKey=t)}const m=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(F.cartId&&F.cartData||!!m){r("Cart data or stripe client secret is available, inject hidden button and trigger checkout");const e=document.createElement("button");e.style.display="none",e.id="zonos--checkout-hidden-button",document.body.appendChild(e)}r("init zonos"),F.restoreNativeBrowserFunctions(),F.injectCustomScriptForHostedCheckout(),F.injectZonosCdn(),F.injectZonosCss(),F.injectFonts(),F.injectCheckoutInternationalButton(),F.injectController({config:{appearance:o,checkoutSettings:t,currencyConverter:n,helloSettings:i,onCountryChange:a,overrideCurrencyFormat:l}}),F.doneInit=!0},G.injectCheckoutInternationalButton=()=>{if(!document.querySelector(`#${R}`)){const e=document.createElement("button");e.id=R,e.style.display="none",document.body.appendChild(e)}},G.injectCustomScriptForHostedCheckout=()=>{const e=F.cartData,o=(null==e?void 0:e.metadata)||[],t=o.find(e=>"customHeaderScript"===e.key),n=o.find(e=>"customFooterScript"===e.key);if(window.Zonos.isLegacyCheckout&&(t||n)){if(t){r("Injecting custom header script");const e=document.createElement("script");e.textContent=t.value,document.head.appendChild(e)}if(n){r("Injecting custom footer script");const e=document.createElement("script");e.textContent=n.value,document.body.appendChild(e)}}else r("Skip injecting custom script for hosted checkout","info",{footerScript:n,headerScript:t,isLegacyCheckout:window.Zonos.isLegacyCheckout})},G.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},G.triggerCheckoutInternational=async()=>{const e=document.querySelector(`#${R}`);setTimeout(()=>{var o;e&&e.dispatchEvent(new CustomEvent("click",{detail:o}))},10)},G.openHelloDialog=e=>{const o=document.querySelector("zonos-hello");o&&o.openHelloDialog(null==e||e)},G.showNotification=e=>{var o;null===(o=F.zonosController)||void 0===o||o.showNotification(e)},G.updateOrganizationName=e=>{var o;null===(o=F.zonosController)||void 0===o||o.updateOrganizationName(e)},G.disablePlaceOrderButtons=({autoEnable:e=!0,config:o,disable:t,placeOrderButtonSelector:n})=>{var r;if(!(null===(r=o.checkoutSettings)||void 0===r?void 0:r.disablePlaceOrderButtonActivation)&&n){const o=document.querySelectorAll(n),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};o.forEach(e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",r)):(e.removeAttribute("disabled"),e.removeEventListener("click",r)))}),e&&t&&setTimeout(()=>{o.forEach(e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)})},5e3)}},G.restoreNativeBrowserFunctions=()=>{var e;if("1"===new URL(window.location.href).searchParams.get("useMerchantPolyfill"))return;const o="zonos---native-browser";let t=document.querySelector(`iframe#${o}`);t||(t=document.createElement("iframe"),t.id=o,t.style.display="none",t.style.opacity="0",t.style.position="absolute",t.style.top="-9999px",t.style.left="-9999px",t.style.width="1px",t.style.height="1px",t.style.border="none",t.style.overflow="hidden",t.style.visibility="hidden",document.body.appendChild(t));const n=(null===(e=t.contentWindow)||void 0===e?void 0:e.window.Array.from)||Array.from;Array.from=n,document.body.removeChild(t)},G.injectController=({config:e})=>{var o,t;if(document.querySelector("zonos-controller"))return;if(null===(o=e.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const o=e.checkoutSettings.placeOrderButtonSelector;F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o});new MutationObserver(()=>{F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o})}).observe(document.body,{childList:!0,subtree:!0})}if(null===(t=e.checkoutSettings)||void 0===t?void 0:t.alwaysTriggerInternationalCheckoutSelector){const o=e.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o});new MutationObserver(()=>{F.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:o})}).observe(document.body,{childList:!0,subtree:!0})}const n=document.createElement("zonos-controller");n.config=e,n.zonosApiKey=F.zonosApiKey||"",n.addEventListener("stripeInitEvent",async e=>{const{detail:o}=e;r("loading Stripe");const t=await(async(...e)=>{var o;E=!0;const t=Date.now();return((e,o,t)=>{if(null===e)return null;const n=e.apply(void 0,o);return((e,o)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:o})})(n,t),n})(null!==(o=await A)&&void 0!==o?o:await O(null),e,t)})(o.publishableKey);t?(window.Zonos.stripe=t,window.Zonos.isCollect?n.initCollectElement(t):window.Zonos.isInvoice?n.initInvoiceElement(t):n.initCheckoutElement(t)):s("API seems to be invalid or missing. Failed to load Stripe")}),document.body.appendChild(n),F.zonosController=n,r("Zonos controller injected!")},G.injectScript=({cdnType:e,isModule:o,theRestUrl:t})=>{const n=`${F.getZonosUrl(e)}/${t}`;if(document.querySelector(`script[src="${n}"]`))return void r(`Zonos script "${n}" already exists in the document`,"warn");const i=document.head||document.body,a=document.createElement("script");o?a.type="module":a.noModule=!0,a.src=n,a.crossOrigin="anonymous",a.onerror=()=>{s(`Failed to load ${a.src}`);const n=l(e);n&&F.injectScript({cdnType:n,isModule:o,theRestUrl:t})},i.appendChild(a)},G.getZonosUrl=e=>{const o=()=>{switch(e){case"jsdelivr":return q;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.281";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.281";case"vercel":return B}};if(F.isNpm){return k()||o()}return o()},G.injectZonosCdn=()=>{F.injectScript({cdnType:a,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),F.injectScript({cdnType:a,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),r("Zonos cdn script injected!")},G.injectStylesheet=({cdnType:e,theRestUrl:o})=>{const t=F.getZonosUrl(e),n=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${B}/`,n.appendChild(r);const i=document.createElement("link");i.rel="stylesheet",i.href=`${t}/${o}`,i.onerror=()=>{s(`Failed to load ${i.href}`);const t=l(e);t&&F.injectStylesheet({cdnType:t,theRestUrl:o})},n.appendChild(i)},G.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?r("Zonos style links already injected","warn"):(F.injectStylesheet({cdnType:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),r("Zonos style css injected!"))},G.injectFonts=()=>{if((()=>{if(document.fonts.check("1em Inter"))return void r("Inter font already loaded","warn");const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${W}"]`);for(let o=0;o<e.length;o++){const t=e[o];if(t&&!K.test(t.href))return t}return null})())return void r("Inter font already injected","warn");const e=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=W,e.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${W}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(t),r("Zonos font injected!")},G.setupGoogleFont=e=>{var o;null===(o=F.zonosController)||void 0===o||o.setupGoogleFont(e)},G.injectSupportGoogleFont=e=>{var o;r(`[FONT] injecting ${e}`);const t=null===(o=e.match(/family=(.*?):/))||void 0===o?void 0:o[1],n=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${W}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=W,n.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void r(`[FONT] ${t} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=e,n.appendChild(s),r(`[FONT] ${t} font injected!`)},window.Zonos&&window.Zonos.doneInit||(window.Zonos=G)})();
@@ -308,7 +308,7 @@ export declare const stringsArabic: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsArabic: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsArabic: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsBase: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsBase: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsBase: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsChinese: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsChinese: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsChinese: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsDanish: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsDanish: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsDanish: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsDutch: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsDutch: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsDutch: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsFrench: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsFrench: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsFrench: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsGerman: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsGerman: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsGerman: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsHebrew: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsHebrew: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsHebrew: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsIndonesian: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsIndonesian: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsIndonesian: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsItalian: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsItalian: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsItalian: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsJapanese: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsJapanese: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsJapanese: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsKorean: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsKorean: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsKorean: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsNorwegian: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsNorwegian: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsNorwegian: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsPolish: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsPolish: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsPolish: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsPortuguese: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsPortuguese: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsPortuguese: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsRussian: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsRussian: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsRussian: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {
@@ -308,7 +308,7 @@ export declare const stringsSpanish: {
308
308
  'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
309
309
  value: string;
310
310
  };
311
- 'Invalid RFC format. Must be 12\u201313 uppercase letters and numbers only.': {
311
+ 'Invalid RFC or CURP format. Must be a 12\u201313 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
312
312
  value: string;
313
313
  };
314
314
  'Invalid promo code': {
@@ -512,7 +512,7 @@ export declare const stringsSpanish: {
512
512
  Quantity: {
513
513
  value: string;
514
514
  };
515
- 'RFC number': {
515
+ 'RFC or CURP number': {
516
516
  value: string;
517
517
  };
518
518
  'Refund policy': {
@@ -818,7 +818,7 @@ export declare const stringsSpanish: {
818
818
  'Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us.': {
819
819
  value: string;
820
820
  };
821
- 'Your saved default address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
821
+ 'Your selected address ships internationally. Would you like to continue to international checkout, or stay here and select a domestic address?': {
822
822
  value: string;
823
823
  };
824
824
  'Your selected payment method requires additional verification. Please follow the instructions provided by your payment provider to complete the transaction.': {