@zonos/elements 1.3.280 → 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 (211) hide show
  1. package/dist/cjs/{TaxId-12acedde.js → TaxId-cd9d490e.js} +1 -1
  2. package/dist/cjs/{cart-0fa312a5.js → cart-3313cb0c.js} +2 -2
  3. package/dist/cjs/{collect-f9c4ca7c.js → collect-2659c5af.js} +2 -2
  4. package/dist/cjs/{hasInclusivePrice-95431bca.js → hasInclusivePrice-d132daaa.js} +1 -1
  5. package/dist/cjs/index.cjs.js +8 -8
  6. package/dist/cjs/{invoice-ce757565.js → invoice-26f52c07.js} +2 -2
  7. package/dist/cjs/{localization-7fded969.js → localization-6189080f.js} +80 -80
  8. package/dist/cjs/{paypal-57ab3ab6.js → paypal-f6a256b5.js} +2 -2
  9. package/dist/cjs/{placeTestOrder-35e0d3bd.js → placeTestOrder-695f2b32.js} +2 -2
  10. package/dist/cjs/{renderCheckoutCurrency-41d48407.js → renderCheckoutCurrency-fe56094f.js} +2 -2
  11. package/dist/cjs/{shouldRenderTaxIdInput-b8abf6de.js → shouldRenderTaxIdInput-7d19556c.js} +1 -1
  12. package/dist/cjs/zonos-address-display_8.cjs.entry.js +4 -4
  13. package/dist/cjs/zonos-address_4.cjs.entry.js +4 -4
  14. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +4 -4
  15. package/dist/cjs/zonos-card_5.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +14 -11
  17. package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +3 -3
  19. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +7 -7
  20. package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
  21. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  22. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
  25. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +5 -5
  27. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +7 -7
  28. package/dist/cjs/zonos-invoice.cjs.entry.js +5 -5
  29. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +4 -4
  31. package/dist/collection/components/store/translationStore/strings.arabic.js +4 -4
  32. package/dist/collection/components/store/translationStore/strings.base.js +4 -4
  33. package/dist/collection/components/store/translationStore/strings.chinese.js +4 -4
  34. package/dist/collection/components/store/translationStore/strings.danish.js +4 -4
  35. package/dist/collection/components/store/translationStore/strings.dutch.js +4 -4
  36. package/dist/collection/components/store/translationStore/strings.french.js +4 -4
  37. package/dist/collection/components/store/translationStore/strings.german.js +4 -4
  38. package/dist/collection/components/store/translationStore/strings.hebrew.js +4 -4
  39. package/dist/collection/components/store/translationStore/strings.indonesian.js +4 -4
  40. package/dist/collection/components/store/translationStore/strings.italian.js +4 -4
  41. package/dist/collection/components/store/translationStore/strings.japanese.js +4 -4
  42. package/dist/collection/components/store/translationStore/strings.korean.js +4 -4
  43. package/dist/collection/components/store/translationStore/strings.norwegian.js +4 -4
  44. package/dist/collection/components/store/translationStore/strings.polish.js +4 -4
  45. package/dist/collection/components/store/translationStore/strings.portuguese.js +4 -4
  46. package/dist/collection/components/store/translationStore/strings.russian.js +4 -4
  47. package/dist/collection/components/store/translationStore/strings.spanish.js +4 -4
  48. package/dist/collection/components/store/translationStore/strings.swedish.js +4 -4
  49. package/dist/collection/components/store/translationStore/strings.turkish.js +4 -4
  50. package/dist/collection/components/store/translationStore/strings.vietnamese.js +4 -4
  51. package/dist/collection/components/utils/taxIdValidationResult.js +6 -3
  52. package/dist/collection/types/checkout/TaxId.js +1 -1
  53. package/dist/esm/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
  54. package/dist/esm/{cart-4699e6ab.js → cart-c66ec17e.js} +2 -2
  55. package/dist/esm/{collect-24cc2e12.js → collect-915fd59d.js} +2 -2
  56. package/dist/esm/{hasInclusivePrice-f81ddcd6.js → hasInclusivePrice-6fd935f3.js} +1 -1
  57. package/dist/esm/index.js +8 -8
  58. package/dist/esm/{invoice-575dc93d.js → invoice-2a17c93c.js} +2 -2
  59. package/dist/esm/{localization-da2f407f.js → localization-6d36209f.js} +80 -80
  60. package/dist/esm/{paypal-d4436abd.js → paypal-cae1d404.js} +2 -2
  61. package/dist/esm/{placeTestOrder-d87b2c6a.js → placeTestOrder-955269d2.js} +2 -2
  62. package/dist/esm/{renderCheckoutCurrency-08526996.js → renderCheckoutCurrency-951386a5.js} +2 -2
  63. package/dist/esm/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
  64. package/dist/esm/zonos-address-display_8.entry.js +4 -4
  65. package/dist/esm/zonos-address_4.entry.js +4 -4
  66. package/dist/esm/zonos-airwallex-payment.entry.js +4 -4
  67. package/dist/esm/zonos-card_5.entry.js +4 -4
  68. package/dist/esm/zonos-cart-items_12.entry.js +14 -11
  69. package/dist/esm/zonos-checkout.entry.js +4 -4
  70. package/dist/esm/zonos-collect-cart-items_3.entry.js +3 -3
  71. package/dist/esm/zonos-collect-finish_6.entry.js +7 -7
  72. package/dist/esm/zonos-collect.entry.js +5 -5
  73. package/dist/esm/zonos-controller.entry.js +3 -3
  74. package/dist/esm/zonos-country-flag.entry.js +1 -1
  75. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  76. package/dist/esm/zonos-hello-dialog.entry.js +3 -3
  77. package/dist/esm/zonos-hello.entry.js +1 -1
  78. package/dist/esm/zonos-invoice-cart-items_2.entry.js +5 -5
  79. package/dist/esm/zonos-invoice-finish_5.entry.js +7 -7
  80. package/dist/esm/zonos-invoice.entry.js +5 -5
  81. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  82. package/dist/esm/zonos-policy-consent_2.entry.js +4 -4
  83. package/dist/esm-es5/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
  84. package/dist/esm-es5/{cart-4699e6ab.js → cart-c66ec17e.js} +1 -1
  85. package/dist/esm-es5/{collect-24cc2e12.js → collect-915fd59d.js} +1 -1
  86. package/dist/esm-es5/{hasInclusivePrice-f81ddcd6.js → hasInclusivePrice-6fd935f3.js} +1 -1
  87. package/dist/esm-es5/index.js +1 -1
  88. package/dist/esm-es5/{invoice-575dc93d.js → invoice-2a17c93c.js} +1 -1
  89. package/dist/esm-es5/localization-6d36209f.js +1 -0
  90. package/dist/esm-es5/{paypal-d4436abd.js → paypal-cae1d404.js} +1 -1
  91. package/dist/esm-es5/{placeTestOrder-d87b2c6a.js → placeTestOrder-955269d2.js} +1 -1
  92. package/dist/esm-es5/{renderCheckoutCurrency-08526996.js → renderCheckoutCurrency-951386a5.js} +1 -1
  93. package/dist/esm-es5/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
  94. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  95. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  96. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  97. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  98. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  99. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  100. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  101. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  102. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  103. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  104. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  105. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  106. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  107. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  108. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  109. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  110. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  111. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  112. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  113. package/dist/scripts/index.d.ts +2 -2
  114. package/dist/scripts/index.js +1 -1
  115. package/dist/scripts/loadZonos.js +1 -1
  116. package/dist/scripts/zonos.js +1 -1
  117. package/dist/types/components/store/translationStore/strings.arabic.d.ts +2 -2
  118. package/dist/types/components/store/translationStore/strings.base.d.ts +2 -2
  119. package/dist/types/components/store/translationStore/strings.chinese.d.ts +2 -2
  120. package/dist/types/components/store/translationStore/strings.danish.d.ts +2 -2
  121. package/dist/types/components/store/translationStore/strings.dutch.d.ts +2 -2
  122. package/dist/types/components/store/translationStore/strings.french.d.ts +2 -2
  123. package/dist/types/components/store/translationStore/strings.german.d.ts +2 -2
  124. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +2 -2
  125. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +2 -2
  126. package/dist/types/components/store/translationStore/strings.italian.d.ts +2 -2
  127. package/dist/types/components/store/translationStore/strings.japanese.d.ts +2 -2
  128. package/dist/types/components/store/translationStore/strings.korean.d.ts +2 -2
  129. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +2 -2
  130. package/dist/types/components/store/translationStore/strings.polish.d.ts +2 -2
  131. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +2 -2
  132. package/dist/types/components/store/translationStore/strings.russian.d.ts +2 -2
  133. package/dist/types/components/store/translationStore/strings.spanish.d.ts +2 -2
  134. package/dist/types/components/store/translationStore/strings.swedish.d.ts +2 -2
  135. package/dist/types/components/store/translationStore/strings.turkish.d.ts +2 -2
  136. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +2 -2
  137. package/dist/types/components/utils/taxIdValidationResult.d.ts +1 -1
  138. package/dist/types/types/checkout/TaxId.d.ts +1 -1
  139. package/dist/zonos-elements/index.esm.js +1 -1
  140. package/dist/zonos-elements/{p-3f90cb36.entry.js → p-03fda4a8.entry.js} +1 -1
  141. package/dist/zonos-elements/{p-81c4f04a.system.entry.js → p-060c521b.system.entry.js} +1 -1
  142. package/dist/zonos-elements/{p-85796e67.entry.js → p-09da3c76.entry.js} +1 -1
  143. package/dist/zonos-elements/{p-f55a2352.system.js → p-0ac1aa87.system.js} +1 -1
  144. package/dist/zonos-elements/{p-275fa2da.js → p-156891c5.js} +1 -1
  145. package/dist/zonos-elements/p-1577a739.js +1 -0
  146. package/dist/zonos-elements/{p-cf0c8c77.system.entry.js → p-179caaea.system.entry.js} +1 -1
  147. package/dist/zonos-elements/{p-19f4e77a.entry.js → p-1ee5f392.entry.js} +1 -1
  148. package/dist/zonos-elements/p-26ca8ce7.js +1 -0
  149. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  150. package/dist/zonos-elements/{p-6451537c.entry.js → p-30067eed.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-96e7b465.js → p-3246d120.js} +1 -1
  152. package/dist/zonos-elements/{p-1bb85ff1.entry.js → p-38879af9.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-2dbdf883.system.js → p-39695a8b.system.js} +1 -1
  154. package/dist/zonos-elements/{p-6197aa73.system.entry.js → p-3e6bbf0b.system.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-b6049eef.system.entry.js → p-3f6fe80a.system.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-564c7bb5.system.entry.js → p-40b96482.system.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-fc2d5dd9.entry.js → p-4441c451.entry.js} +1 -1
  158. package/dist/zonos-elements/{p-362215b6.system.entry.js → p-4c3f5fda.system.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-66223935.system.entry.js → p-54a8d4cf.system.entry.js} +1 -1
  160. package/dist/zonos-elements/{p-aff7112b.entry.js → p-5677d31f.entry.js} +1 -1
  161. package/dist/zonos-elements/p-56fc3210.js +1 -0
  162. package/dist/zonos-elements/{p-944148db.system.entry.js → p-5a61c301.system.entry.js} +1 -1
  163. package/dist/zonos-elements/p-5e1aad7d.entry.js +1 -0
  164. package/dist/zonos-elements/{p-12452213.entry.js → p-683ec0bf.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-28b1c189.entry.js → p-6df034d6.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-6bea1787.entry.js → p-6df6cb8a.entry.js} +1 -1
  167. package/dist/zonos-elements/{p-016b5bde.system.js → p-717cbe90.system.js} +1 -1
  168. package/dist/zonos-elements/{p-ec53c436.system.entry.js → p-71cb16da.system.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-dbd5be5d.entry.js → p-727387ed.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-807e7ebc.entry.js → p-746bdebe.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-48d55793.system.js → p-7ac8846c.system.js} +1 -1
  172. package/dist/zonos-elements/{p-a30f03d6.system.js → p-8005e102.system.js} +1 -1
  173. package/dist/zonos-elements/{p-67b2e46c.js → p-8051403a.js} +1 -1
  174. package/dist/zonos-elements/{p-46f88c11.system.entry.js → p-8308f7d6.system.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-0adab1d5.system.entry.js → p-86d6961c.system.entry.js} +1 -1
  176. package/dist/zonos-elements/p-9448d960.js +1 -0
  177. package/dist/zonos-elements/{p-2b8345d8.system.js → p-989cb22b.system.js} +1 -1
  178. package/dist/zonos-elements/{p-3068247c.system.entry.js → p-a23d3b3f.system.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-b05da593.system.entry.js → p-a34269b1.system.entry.js} +1 -1
  180. package/dist/zonos-elements/p-a553e132.js +1 -0
  181. package/dist/zonos-elements/{p-f3759c70.js → p-a5f8dc19.js} +1 -1
  182. package/dist/zonos-elements/{p-c2014d57.system.entry.js → p-a6535773.system.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-c4a479ad.entry.js → p-a6773627.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-7237ec6f.system.entry.js → p-ae30e6c0.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-72c1bd64.entry.js → p-b406bb39.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-6b361d2b.js → p-bcf5cffb.js} +1 -1
  187. package/dist/zonos-elements/p-bf942ef0.system.js +1 -0
  188. package/dist/zonos-elements/p-c345d1f5.system.js +1 -0
  189. package/dist/zonos-elements/{p-dff1d3be.entry.js → p-d4337686.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-40a0c1d3.system.js → p-ddf68916.system.js} +1 -1
  191. package/dist/zonos-elements/{p-65fe75e1.entry.js → p-df8b8827.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-43a14674.system.entry.js → p-e0ec0aa3.system.entry.js} +1 -1
  193. package/dist/zonos-elements/p-e210edd9.system.js +1 -0
  194. package/dist/zonos-elements/{p-db9cb522.entry.js → p-e7a45f6c.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-5b54f10c.entry.js → p-edf613ea.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-b6cd6e62.system.entry.js → p-ee3c7b11.system.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-a7f0e824.system.entry.js → p-f156e2e5.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-788a16bb.system.js → p-f314217a.system.js} +1 -1
  199. package/dist/zonos-elements/{p-a5afcea1.system.entry.js → p-f3e1a6a7.system.entry.js} +1 -1
  200. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  201. package/package.json +1 -1
  202. package/dist/esm-es5/localization-da2f407f.js +0 -1
  203. package/dist/zonos-elements/p-39e2642f.js +0 -1
  204. package/dist/zonos-elements/p-3f8f4c78.js +0 -1
  205. package/dist/zonos-elements/p-63a383f4.js +0 -1
  206. package/dist/zonos-elements/p-75da4ba0.entry.js +0 -1
  207. package/dist/zonos-elements/p-79b6070a.js +0 -1
  208. package/dist/zonos-elements/p-94329e56.js +0 -1
  209. package/dist/zonos-elements/p-b330e451.system.js +0 -1
  210. package/dist/zonos-elements/p-b8c019b9.system.js +0 -1
  211. package/dist/zonos-elements/p-fd2d4d04.system.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.280.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.280.js.zonos.com",q=x||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.280",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="1783609483296",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.280",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.280";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.280";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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -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': {
@@ -308,7 +308,7 @@ export declare const stringsSwedish: {
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 stringsSwedish: {
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': {
@@ -308,7 +308,7 @@ export declare const stringsTurkish: {
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 stringsTurkish: {
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': {
@@ -308,7 +308,7 @@ export declare const stringsVietnamese: {
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 stringsVietnamese: {
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': {
@@ -1,5 +1,5 @@
1
1
  type TaxIdValidationResult = {
2
- error: 'Tax id is required' | 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.' | 'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).';
2
+ error: 'Tax id is required' | 'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.' | 'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).';
3
3
  valid: false;
4
4
  } | {
5
5
  error: null;
@@ -104,7 +104,7 @@ export declare const shipToTaxIdLabels: {
104
104
  readonly placeholder: "DE123456789";
105
105
  };
106
106
  readonly MX: {
107
- readonly friendlyName: "RFC number";
107
+ readonly friendlyName: "RFC or CURP number";
108
108
  readonly placeholder: "XAXX010101000";
109
109
  };
110
110
  readonly NL: {