@zonos/elements 1.3.22 → 1.3.23

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 (204) hide show
  1. package/dist/cjs/{ILanguage-d247b45b.js → ILanguage-98b04442.js} +2 -2
  2. package/dist/cjs/{cart-f963b239.js → cart-c734e909.js} +219 -220
  3. package/dist/cjs/{getBorderRadius-332422ab.js → getBorderRadius-ea0984bb.js} +1 -1
  4. package/dist/cjs/index.cjs.js +3 -3
  5. package/dist/cjs/{isDarkColor-3ddf6511.js → isDarkColor-b14d5752.js} +1 -1
  6. package/dist/cjs/{submitGtag-8d562ad4.js → submitGtag-336b437c.js} +2 -2
  7. package/dist/cjs/zonos-address_8.cjs.entry.js +4 -4
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +5 -5
  12. package/dist/cjs/zonos-cart-items_11.cjs.entry.js +6 -6
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +5 -5
  14. package/dist/cjs/zonos-controller.cjs.entry.js +8 -6
  15. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-country-select_3.cjs.entry.js +7 -7
  17. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -11
  18. package/dist/cjs/zonos-hello.cjs.entry.js +7 -5
  19. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-payment.cjs.entry.js +4 -4
  23. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  26. package/dist/cjs/{zonosStore-768d6ca0.js → zonosStore-3958bbeb.js} +0 -2
  27. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +3 -1
  28. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -3
  29. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +9 -7
  30. package/dist/collection/components/store/hello/localization.js +1 -1
  31. package/dist/collection/components/store/translationStore/strings.arabic.js +10 -10
  32. package/dist/collection/components/store/translationStore/strings.base.js +10 -10
  33. package/dist/collection/components/store/translationStore/strings.chinese.js +10 -10
  34. package/dist/collection/components/store/translationStore/strings.danish.js +10 -10
  35. package/dist/collection/components/store/translationStore/strings.dutch.js +10 -10
  36. package/dist/collection/components/store/translationStore/strings.french.js +10 -10
  37. package/dist/collection/components/store/translationStore/strings.german.js +10 -10
  38. package/dist/collection/components/store/translationStore/strings.hebrew.js +10 -10
  39. package/dist/collection/components/store/translationStore/strings.indonesian.js +10 -10
  40. package/dist/collection/components/store/translationStore/strings.italian.js +10 -10
  41. package/dist/collection/components/store/translationStore/strings.japanese.js +10 -10
  42. package/dist/collection/components/store/translationStore/strings.korean.js +10 -10
  43. package/dist/collection/components/store/translationStore/strings.norwegian.js +10 -10
  44. package/dist/collection/components/store/translationStore/strings.polish.js +10 -10
  45. package/dist/collection/components/store/translationStore/strings.portuguese.js +10 -10
  46. package/dist/collection/components/store/translationStore/strings.russian.js +10 -10
  47. package/dist/collection/components/store/translationStore/strings.spanish.js +10 -10
  48. package/dist/collection/components/store/translationStore/strings.swedish.js +10 -10
  49. package/dist/collection/components/store/translationStore/strings.turkish.js +10 -10
  50. package/dist/collection/components/store/translationStore/strings.vietnamese.js +10 -10
  51. package/dist/collection/components/store/translationStore.js +2 -2
  52. package/dist/collection/components/store/zonosStore.js +0 -2
  53. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +1 -15
  54. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +14 -2
  55. package/dist/collection/components/utils/hello/initHello.js +4 -2
  56. package/dist/collection/types/ILanguage.js +2 -2
  57. package/dist/esm/{ILanguage-97790bee.js → ILanguage-cd6acb72.js} +2 -2
  58. package/dist/esm/{cart-efecbea6.js → cart-67471b37.js} +219 -220
  59. package/dist/esm/{getBorderRadius-a2e46e26.js → getBorderRadius-5e5a5800.js} +1 -1
  60. package/dist/esm/index.js +3 -3
  61. package/dist/esm/{isDarkColor-69ed8e39.js → isDarkColor-5185b62c.js} +1 -1
  62. package/dist/esm/{submitGtag-a7b8a86e.js → submitGtag-1f42c748.js} +2 -2
  63. package/dist/esm/zonos-address_8.entry.js +4 -4
  64. package/dist/esm/zonos-badge_2.entry.js +1 -1
  65. package/dist/esm/zonos-banner.entry.js +1 -1
  66. package/dist/esm/zonos-button_3.entry.js +3 -3
  67. package/dist/esm/zonos-card_2.entry.js +5 -5
  68. package/dist/esm/zonos-cart-items_11.entry.js +6 -6
  69. package/dist/esm/zonos-checkout.entry.js +5 -5
  70. package/dist/esm/zonos-controller.entry.js +8 -6
  71. package/dist/esm/zonos-country-flag.entry.js +4 -4
  72. package/dist/esm/zonos-country-select_3.entry.js +7 -7
  73. package/dist/esm/zonos-hello-dialog.entry.js +13 -11
  74. package/dist/esm/zonos-hello.entry.js +7 -5
  75. package/dist/esm/zonos-input.entry.js +2 -2
  76. package/dist/esm/zonos-logo.entry.js +1 -1
  77. package/dist/esm/zonos-notification.entry.js +1 -1
  78. package/dist/esm/zonos-payment.entry.js +4 -4
  79. package/dist/esm/zonos-select-dialog-header_2.entry.js +1 -1
  80. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  81. package/dist/esm/zonos-text.entry.js +1 -1
  82. package/dist/esm/{zonosStore-93da32b4.js → zonosStore-8b9ea19c.js} +0 -2
  83. package/dist/esm-es5/ILanguage-cd6acb72.js +1 -0
  84. package/dist/esm-es5/cart-67471b37.js +1 -0
  85. package/dist/esm-es5/{getBorderRadius-a2e46e26.js → getBorderRadius-5e5a5800.js} +1 -1
  86. package/dist/esm-es5/index.js +1 -1
  87. package/dist/esm-es5/{isDarkColor-69ed8e39.js → isDarkColor-5185b62c.js} +1 -1
  88. package/dist/esm-es5/{submitGtag-a7b8a86e.js → submitGtag-1f42c748.js} +1 -1
  89. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  90. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  91. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  92. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  93. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  94. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -1
  95. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  96. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  97. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  98. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  99. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  100. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  101. package/dist/esm-es5/zonos-input.entry.js +1 -1
  102. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  103. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  104. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  105. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  106. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  107. package/dist/esm-es5/zonos-text.entry.js +1 -1
  108. package/dist/esm-es5/{zonosStore-93da32b4.js → zonosStore-8b9ea19c.js} +1 -1
  109. package/dist/scripts/index.d.ts +21 -9
  110. package/dist/scripts/index.js +1 -1
  111. package/dist/scripts/loadZonos.js +1 -1
  112. package/dist/scripts/zonos.js +1 -1
  113. package/dist/types/components/store/translationStore/strings.arabic.d.ts +8 -8
  114. package/dist/types/components/store/translationStore/strings.base.d.ts +8 -8
  115. package/dist/types/components/store/translationStore/strings.chinese.d.ts +8 -8
  116. package/dist/types/components/store/translationStore/strings.danish.d.ts +8 -8
  117. package/dist/types/components/store/translationStore/strings.dutch.d.ts +8 -8
  118. package/dist/types/components/store/translationStore/strings.french.d.ts +8 -8
  119. package/dist/types/components/store/translationStore/strings.german.d.ts +8 -8
  120. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +8 -8
  121. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +8 -8
  122. package/dist/types/components/store/translationStore/strings.italian.d.ts +8 -8
  123. package/dist/types/components/store/translationStore/strings.japanese.d.ts +8 -8
  124. package/dist/types/components/store/translationStore/strings.korean.d.ts +8 -8
  125. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +8 -8
  126. package/dist/types/components/store/translationStore/strings.polish.d.ts +8 -8
  127. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +8 -8
  128. package/dist/types/components/store/translationStore/strings.russian.d.ts +8 -8
  129. package/dist/types/components/store/translationStore/strings.spanish.d.ts +8 -8
  130. package/dist/types/components/store/translationStore/strings.swedish.d.ts +8 -8
  131. package/dist/types/components/store/translationStore/strings.turkish.d.ts +8 -8
  132. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +8 -8
  133. package/dist/types/components/store/translationStore.d.ts +7 -7
  134. package/dist/types/components/utils/hello/currencyConversion/getCurrencyElements.d.ts +1 -1
  135. package/dist/types/scripts/_zonosBase.d.ts +21 -2
  136. package/dist/types/types/ILanguage.d.ts +2 -2
  137. package/dist/types/types/hello/HelloConfig.d.ts +1 -3
  138. package/dist/zonos-elements/index.esm.js +1 -1
  139. package/dist/zonos-elements/{p-c77c056d.system.entry.js → p-02a01106.system.entry.js} +1 -1
  140. package/dist/zonos-elements/p-065ada8a.system.js +1 -0
  141. package/dist/zonos-elements/{p-18432252.js → p-083850d3.js} +1 -1
  142. package/dist/zonos-elements/{p-283aa6f9.system.entry.js → p-088d6460.system.entry.js} +1 -1
  143. package/dist/zonos-elements/p-08d1cfc4.entry.js +1 -0
  144. package/dist/zonos-elements/{p-8df58197.system.entry.js → p-0d30f36e.system.entry.js} +1 -1
  145. package/dist/zonos-elements/{p-13940c52.entry.js → p-0ea19a4d.entry.js} +1 -1
  146. package/dist/zonos-elements/{p-7d2fc0fd.entry.js → p-1752853e.entry.js} +1 -1
  147. package/dist/zonos-elements/{p-5b7438ef.entry.js → p-18464027.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-33f83b9a.system.entry.js → p-1e2fbb1d.system.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-36f8a3df.system.js → p-234f8729.system.js} +1 -1
  150. package/dist/zonos-elements/p-33b054d9.system.js +1 -0
  151. package/dist/zonos-elements/p-440ac320.js +1 -0
  152. package/dist/zonos-elements/{p-bbe5d0f0.entry.js → p-44250644.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-8a65433a.entry.js → p-4a3b5fc8.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-d6f829c2.entry.js → p-52900b33.entry.js} +1 -1
  155. package/dist/zonos-elements/{p-20ab8daf.system.entry.js → p-5437dd24.system.entry.js} +1 -1
  156. package/dist/zonos-elements/{p-1e07c616.system.entry.js → p-5992c6fb.system.entry.js} +1 -1
  157. package/dist/zonos-elements/{p-c53f7199.entry.js → p-607b5560.entry.js} +1 -1
  158. package/dist/zonos-elements/{p-ecaed308.system.entry.js → p-65671a64.system.entry.js} +1 -1
  159. package/dist/zonos-elements/{p-140bb400.system.entry.js → p-6f132cee.system.entry.js} +1 -1
  160. package/dist/zonos-elements/{p-6e717c40.system.entry.js → p-713bb92e.system.entry.js} +1 -1
  161. package/dist/zonos-elements/p-7d61e6e5.entry.js +1 -0
  162. package/dist/zonos-elements/{p-a20f6ba3.entry.js → p-7fa5a6ea.entry.js} +1 -1
  163. package/dist/zonos-elements/p-8473827d.system.entry.js +1 -0
  164. package/dist/zonos-elements/{p-884b41a8.system.js → p-8853e051.system.js} +1 -1
  165. package/dist/zonos-elements/p-8ed0769e.entry.js +1 -0
  166. package/dist/zonos-elements/{p-2641f474.system.entry.js → p-92c64a9c.system.entry.js} +1 -1
  167. package/dist/zonos-elements/p-97aceb11.js +1 -0
  168. package/dist/zonos-elements/{p-2d3940dc.entry.js → p-9c0859b5.entry.js} +1 -1
  169. package/dist/zonos-elements/p-9c3a036e.system.js +1 -0
  170. package/dist/zonos-elements/{p-c0f0edbe.entry.js → p-9c8705ac.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-e5f7ff0f.entry.js → p-a18555c8.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-795a3ed5.js → p-a5e9d372.js} +1 -1
  173. package/dist/zonos-elements/{p-e625f68d.system.entry.js → p-af3ee45d.system.entry.js} +1 -1
  174. package/dist/zonos-elements/{p-edfb5021.entry.js → p-b1ee97d8.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-3bee1a04.system.entry.js → p-b79753bb.system.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-85a49fb8.system.entry.js → p-b9195764.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-a52afd83.system.js → p-be14323b.system.js} +1 -1
  178. package/dist/zonos-elements/{p-95ffff25.js → p-bf9dca26.js} +1 -1
  179. package/dist/zonos-elements/{p-5ca32f4f.entry.js → p-bfc30599.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-d8255adf.entry.js → p-c0ddef11.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-68e3ef26.system.entry.js → p-c1879326.system.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-df267420.js → p-c53cef11.js} +1 -1
  183. package/dist/zonos-elements/p-c9e433c0.system.js +1 -0
  184. package/dist/zonos-elements/{p-298b5d95.entry.js → p-cbf13745.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-5edc4f18.system.entry.js → p-d6796b73.system.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-c2328652.system.entry.js → p-d7e6cad0.system.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-57d70603.entry.js → p-db9e87ec.entry.js} +1 -1
  188. package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
  189. package/dist/zonos-elements/{p-678daa20.system.entry.js → p-f7468131.system.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-9a299a98.system.entry.js → p-fedafdd2.system.entry.js} +1 -1
  191. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  192. package/package.json +1 -1
  193. package/dist/esm-es5/ILanguage-97790bee.js +0 -1
  194. package/dist/esm-es5/cart-efecbea6.js +0 -1
  195. package/dist/zonos-elements/p-102c670d.entry.js +0 -1
  196. package/dist/zonos-elements/p-16ad90ca.js +0 -1
  197. package/dist/zonos-elements/p-348adf28.js +0 -1
  198. package/dist/zonos-elements/p-49061c5d.entry.js +0 -1
  199. package/dist/zonos-elements/p-968df90a.entry.js +0 -1
  200. package/dist/zonos-elements/p-abe7524f.system.js +0 -1
  201. package/dist/zonos-elements/p-c7360a6c.system.js +0 -1
  202. package/dist/zonos-elements/p-d0a2b1ba.system.entry.js +0 -1
  203. package/dist/zonos-elements/p-d0c53fba.system.js +0 -1
  204. package/dist/zonos-elements/p-dafc6260.system.js +0 -1
@@ -1 +1 @@
1
- (function(){"use strict";"function"==typeof SuppressedError&&SuppressedError;const e=async({response:e,shouldLog:o=!0,shouldThrow:t=!1})=>{try{return await e.json()}catch(e){if(t)throw e;return o&&console.error(e),null}};const o=async(o,t)=>{const r=(function(e,o){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)o.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(t[r[n]]=e[r[n]])}return t})(t||{},[]),n=r.body?JSON.stringify(r.body):void 0,s=r.method||"GET",i=new URL(o);i.searchParams.set("zToken",(function(e){try{return btoa(e).replace(/=/g,"")}catch(o){return e.replace(/[^A-Za-z0-9]/g,"").split("").reverse().join("")}})(window.location.hostname));const a=Object.assign({"Content-Type":"application/json","Zonos-Is-BigCommerce":window.Zonos.isBigCommerce.toString(),"Zonos-Referer":window.location.hostname,"Zonos-Version":window.Zonos.version,credentialtoken:window.Zonos.zonosApiKey||"Empty credential token from zonos-elements"},r.headers),c=Object.assign(Object.assign({},r),{body:"GET"===s?void 0:n,headers:a,method:s});return(async(o,t)=>{let r;try{r=await fetch(o,t)}catch(e){return e instanceof Error?{errors:[{message:e.message,type:"unknown"}],json:null,response:null}:{errors:[{message:"Fail to fetch",type:"unknown"}],json:null,response:null}}const n=r.headers.get("Zonos-Mode"),s=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&n&&s&&("production"===n&&alert("Please be aware that you are currently operating in the production environment. Any interactions with the customer store, including payments, will be processed as real transactions!"),"test"===n&&alert("For testing payments, you can utilize the test payment information provided at this link: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-test-the-integration"),window.Zonos.modeAlerted=!0),r.ok)return{errors:[],json:await e({response:r}),response:r};const i=r.status.toString();try{const o=await e({response:r,shouldThrow:!0});return{errors:[{message:`${i}: ${JSON.stringify(o)}`,type:i}],json:null,response:r}}catch(e){return{errors:[{message:`${i}: Unknown error`,type:i}],json:null,response:null}}})(i.toString(),c)},t=(e,o,...t)=>{var r,n;if(!(!!(null===(r=window.Zonos)||void 0===r?void 0:r.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===o&&console.error(e,...t));let s=document.querySelector("iframe#zonos---debug-logging-iframe");s||(s=document.createElement("iframe"),s.id="zonos---debug-logging-iframe",s.style.display="none",s.style.opacity="0",s.style.position="absolute",s.style.top="-9999px",s.style.left="-9999px",s.style.width="1px",s.style.height="1px",s.style.border="none",s.style.overflow="hidden",s.style.visibility="hidden",document.body.appendChild(s));const i=(null===(n=s.contentWindow)||void 0===n?void 0:n.window.console)||window.console;switch(o){case"warn":i.warn(e,...t);break;case"info":i.info(e,...t);break;case"error":i.error(e,...t);break;default:i.groupCollapsed(e,...t),i.trace(),i.groupEnd()}},r=(e,...o)=>{t(e,"error",...o)},n=async({endpoint:e,errors:t,metadata:r})=>{const n="userAgentData"in window.navigator?window.navigator.userAgentData:null,s={endpoint:e,errors:t,metadata:Object.assign({href:window.location.href,userAgent:n&&n.brands.length>0?n:window.navigator.userAgent},r)};o("https://v1.route.js.zonos.com/api/zonos-elements/log-error",{body:s,method:"POST"})};var s;const i=(()=>{if("undefined"==typeof window)return null;const e=(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);if(!e)return null;if("dev-elements"===e)return"https://dev.elements.zonos.com";const o=`https://${e}.preview.js.zonos.com`;return t(`[ZONOS-WARNING] using '${o}' for loading script`,"warn"),fetch(o).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${o}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:t}=window.location,r=`${t}?${e.toString()}`;return window.history.replaceState(window.history.state,"",r),window.location.reload(),null})),o})();class a{static get isNpm(){return!1}}s=a,a.isBigCommerce=!1,a.requested=!1,a.internationalHideSelector="",a.zonosQaUrl=null,a.tempCartData=null,a.zonosApiKey=null,a.isLegacyCheckout=!1,a.legacyStoreLogo=null,a.legacyStoreFavicon=null,a.parallelLoadTimes=[],a.paralellLoadState="off",a.loadScriptLogHandler=async({cdnLoadTime:e,fallbackLoadTime:o,isError:t,metadata:r,scriptLoadUrl:n,storeId:s,type:i})=>{try{const e=window.performance.getEntriesByType("resource").find((e=>{const o=e;return o.name.includes(n)&&"script"===o.initiatorType}));null==e||e.transferSize;(async e=>{})((e&&(null==e?void 0:e.duration)>0?parseFloat(e.duration.toFixed(2)):parseFloat(o.toFixed(2)),Object.assign({decodedBodySize:null==e?void 0:e.decodedBodySize,encodedBodySize:null==e?void 0:e.encodedBodySize,fallbackLoadTime:o,isError:!!t},r)))}catch(e){}},a.loadScriptLogParallelHandler=async e=>{try{if(s.parallelLoadTimes.push(e),2===s.parallelLoadTimes.length){const e=s.parallelLoadTimes.find((e=>"vercel"===e.type)),o=s.parallelLoadTimes.find((e=>"jsdelivr"===e.type));if(!e||!o)return;if(e.isError&&o.isError)return void n({endpoint:`<${e.scriptLoadUrl}> <${o.scriptLoadUrl}>`,errors:["Failed to fetch both Vercel and jsdelivr CDN. Perhaps network issue on customer site."],metadata:{cdnLoadTime:o.fallbackLoadTime,cdnType:o.type,vercelLoadTime:e.fallbackLoadTime}});s.loadScriptLogHandler({cdnLoadTime:o.fallbackLoadTime,fallbackLoadTime:e.fallbackLoadTime,isError:e.isError,metadata:{cdnScriptFallbackTime:o.fallbackLoadTime,cdnScriptIsError:!!o.isError,cdnScriptLoadUrl:o.scriptLoadUrl,cdnScriptType:o.type},scriptLoadUrl:e.scriptLoadUrl,storeId:e.storeId,type:e.type})}}catch(e){}},a.legacyCheckoutErrorHandler=({message:e,tempCartUUID:o})=>{r(`[ZONOS - loadZonos] ${e}`),n({endpoint:"LegacyCheckoutInit",errors:[e],metadata:{tempCartUUID:o}}),document.dispatchEvent(new CustomEvent("legacyCheckoutError",{detail:e}))},a.injectZonos=({initConfig:e,isGithubCdn:o=!1,parallelLoaded:r,url:a,version:c})=>{var l;const d=()=>{const e="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.22";return c?e.replace(/@zonos\/elements@(.+)/,`@zonos/elements@${c}`):e},p=i||a,m=p.replace("https://","").replace("http://",""),u=document.createElement("script"),g=c&&c<"1.2.5"?"loadZonos.js":"zonos.js";u.src=`https://${m}/dist/scripts/${g}`,t(`[ZONOS - loadZonos] Injecting "${g}" from "${m}"`,"info");const w="4g"===(null===(l=(()=>{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})())||void 0===l?void 0:l.effectiveType),y=["dev.elements.zonos.com","zonos.com"].some((e=>window.location.href.includes(e))),h="on"===s.paralellLoadState&&w&&!o&&!y;if(h){const o=d();s.injectZonos({initConfig:e,isGithubCdn:!0,parallelLoaded:!0,url:o,version:c})}const f=performance.now();u.addEventListener("load",(()=>{if(h||r?s.loadScriptLogParallelHandler({fallbackLoadTime:performance.now()-f,scriptLoadUrl:u.src,storeId:s.storeId,type:o?"jsdelivr":"vercel"}):s.loadScriptLogHandler({fallbackLoadTime:performance.now()-f,scriptLoadUrl:u.src,storeId:s.storeId,type:o?"jsdelivr":"vercel"}),s.isBigCommerce||(s.isBigCommerce=!!window.stencilBootstrap||!!window.bcConfig||!!document.querySelector('script[src*="bigcommerce.com"]')),window.Zonos.isNpm=!1,window.Zonos.zonosQaUrl=i,window.Zonos.internationalHideSelector=s.internationalHideSelector,window.Zonos.isBigCommerce=s.isBigCommerce,s.isLegacyCheckout){if(!s.zonosApiKey)throw s.legacyCheckoutErrorHandler({message:"zonosApiKey is required for legacy checkout",tempCartUUID:e.tempCartUUID}),new Error("zonosApiKey is required for legacy checkout");if(!s.tempCartData)throw s.legacyCheckoutErrorHandler({message:"tempCartData is required for legacy checkout",tempCartUUID:e.tempCartUUID}),new Error("zonosApiKey is required for legacy checkout");if(s.legacyStoreFavicon){const e=document.createElement("link");e.rel="shortcut icon",e.type="image/x-icon",e.href=s.legacyStoreFavicon,document.head.appendChild(e)}window.Zonos.tempCartData=s.tempCartData;const o=Object.assign(Object.assign({},e),{appearance:Object.assign(Object.assign({},e.appearance),{logoUrl:s.legacyStoreLogo||""}),checkoutSettings:Object.assign(Object.assign({},e.checkoutSettings),{successBehavior:"ZONOS_SUCCESS_PAGE",successRedirectUrl:s.tempCartData.contShoppingURL}),zonosApiKey:s.zonosApiKey});e=o}window.Zonos.version&&(t(`[ZONOS - loadZonos] Execute "Zonos.init" from "${g}" from "${m}"`,"info"),window.Zonos.init(e))})),u.addEventListener("error",(async()=>{if(!h&&!r){const o=d();s.injectZonos({initConfig:e,isGithubCdn:!0,url:o,version:c})}["localhost",".zonos.com"].some((e=>window.location.href.includes(e)))||i||(h||r?s.loadScriptLogParallelHandler({fallbackLoadTime:performance.now()-f,isError:!0,scriptLoadUrl:u.src,storeId:s.storeId,type:o?"jsdelivr":"vercel"}):n(o?{endpoint:u.src,errors:["zonos.js - Failed to fetch github CDN."],metadata:{cdnLoadTime:performance.now()-f,cdnType:"jsdelivr",loadUrl:p,version:c}}:{endpoint:u.src,errors:["[Info] Using alternative CDN. Failed to fetch script"],metadata:{vercelLoadTime:performance.now()-f}}))})),document.head.appendChild(u)},a.setupCartData=async e=>{const n=await(async e=>{const{errors:t,json:r}=await o("https://v1.route.js.zonos.com/api/bigcommerce/legacy-migration/get-temp-cart",{body:{tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"});return!r||t.length?null:r})(e);if(t("[ZONOS - loadZonos] getting temp cart data","info",n),!n)throw r("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),s.legacyCheckoutErrorHandler({message:"Error getting temp cart data",tempCartUUID:e}),new Error("Error getting temp cart data");return s.tempCartData=n.tempCart,s.legacyStoreLogo=n.storeLogoUrl,s.legacyStoreFavicon=n.storeFaviconUrl,{storeId:n.tempCart.storeId,zonosApiKey:n.zonosApiKey}},a.init=async e=>{var n;const i="https://v1.3.22.js.zonos.com",a=document.querySelector('script[src*="/zonos.js"]'),c=null===(n=document.querySelector("script[src*='/loadZonos.js']"))||void 0===n?void 0:n.src,l=null==c?void 0:c.includes("timestamp=");if(!(s.isNpm||c&&l))return void r("[ZONOS - loadZonos] A timestamp is required as a query parameter in the loadZonos.js script source. This timestamp ensures that you are loading the most recent version of the script, avoiding any cached versions.");if(a||!c||s.requested)return void t("[ZONOS - loadZonos] script is already loaded or requested","info");s.requested=!0;let d=e.storeId;if(e.tempCartUUID){const o=await s.setupCartData(e.tempCartUUID);d=o.storeId,s.zonosApiKey=o.zonosApiKey,s.isLegacyCheckout=!0}if(!d)return t("[ZONOS - loadZonos] loading latest script since storeId is not provided."),void s.injectZonos({initConfig:e,url:i,version:null});s.storeId=d;const p=new URL("https://v1.route.js.zonos.com/api/get-store-version");p.searchParams.set("storeId",e.storeId.toString());const{errors:m,json:u}=await o(p.toString());if(m.length||!u)return t("[ZONOS - loadZonos] Error getting store version, loadding the latest version.","error"),void s.injectZonos({initConfig:e,url:i,version:null});const{version:g}=u;if(!a){const{currentLoadScriptUrl:o,isForceLoadVersionDomain:r,isWhiteListed:n}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const o=new URL(e).origin,t=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>o.includes(e))),r=["qa.js.zonos.com"].some((e=>o.includes(e)));return{currentLoadScriptUrl:o,isForceLoadVersionDomain:r,isWhiteListed:t}})({loadScriptSrc:c}),i=n&&!r?o:`${"alpha"===g?"alpha":`v${g}`}.js.zonos.com`,a=n&&!r?null:g;t("[ZONOS - loadZonos] injecting zonos script","info",{currentLoadScriptUrl:o,isForceLoadVersionDomain:r,isWhiteListed:n,loadUrl:i,loadVersion:a,version:g}),s.injectZonos({initConfig:e,url:i,version:a})}},void 0===window.Zonos&&(window.Zonos=a)})();
1
+ (function(){"use strict";"function"==typeof SuppressedError&&SuppressedError;const e=async({response:e,shouldLog:o=!0,shouldThrow:t=!1})=>{try{return await e.json()}catch(e){if(t)throw e;return o&&console.error(e),null}};const o=async(o,t)=>{const r=(function(e,o){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)o.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(t[r[n]]=e[r[n]])}return t})(t||{},[]),n=r.body?JSON.stringify(r.body):void 0,s=r.method||"GET",i=new URL(o);i.searchParams.set("zToken",(function(e){try{return btoa(e).replace(/=/g,"")}catch(o){return e.replace(/[^A-Za-z0-9]/g,"").split("").reverse().join("")}})(window.location.hostname));const a=Object.assign({"Content-Type":"application/json","Zonos-Is-BigCommerce":window.Zonos.isBigCommerce.toString(),"Zonos-Referer":window.location.hostname,"Zonos-Version":window.Zonos.version,credentialtoken:window.Zonos.zonosApiKey||"Empty credential token from zonos-elements"},r.headers),c=Object.assign(Object.assign({},r),{body:"GET"===s?void 0:n,headers:a,method:s});return(async(o,t)=>{let r;try{r=await fetch(o,t)}catch(e){return e instanceof Error?{errors:[{message:e.message,type:"unknown"}],json:null,response:null}:{errors:[{message:"Fail to fetch",type:"unknown"}],json:null,response:null}}const n=r.headers.get("Zonos-Mode"),s=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&n&&s&&("production"===n&&alert("Please be aware that you are currently operating in the production environment. Any interactions with the customer store, including payments, will be processed as real transactions!"),"test"===n&&alert("For testing payments, you can utilize the test payment information provided at this link: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-test-the-integration"),window.Zonos.modeAlerted=!0),r.ok)return{errors:[],json:await e({response:r}),response:r};const i=r.status.toString();try{const o=await e({response:r,shouldThrow:!0});return{errors:[{message:`${i}: ${JSON.stringify(o)}`,type:i}],json:null,response:r}}catch(e){return{errors:[{message:`${i}: Unknown error`,type:i}],json:null,response:null}}})(i.toString(),c)},t=(e,o,...t)=>{var r,n;if(!(!!(null===(r=window.Zonos)||void 0===r?void 0:r.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===o&&console.error(e,...t));let s=document.querySelector("iframe#zonos---debug-logging-iframe");s||(s=document.createElement("iframe"),s.id="zonos---debug-logging-iframe",s.style.display="none",s.style.opacity="0",s.style.position="absolute",s.style.top="-9999px",s.style.left="-9999px",s.style.width="1px",s.style.height="1px",s.style.border="none",s.style.overflow="hidden",s.style.visibility="hidden",document.body.appendChild(s));const i=(null===(n=s.contentWindow)||void 0===n?void 0:n.window.console)||window.console;switch(o){case"warn":i.warn(e,...t);break;case"info":i.info(e,...t);break;case"error":i.error(e,...t);break;default:i.groupCollapsed(e,...t),i.trace(),i.groupEnd()}},r=(e,...o)=>{t(e,"error",...o)},n=async({endpoint:e,errors:t,metadata:r})=>{const n="userAgentData"in window.navigator?window.navigator.userAgentData:null,s={endpoint:e,errors:t,metadata:Object.assign({href:window.location.href,userAgent:n&&n.brands.length>0?n:window.navigator.userAgent},r)};o("https://v1.route.js.zonos.com/api/zonos-elements/log-error",{body:s,method:"POST"})};var s;const i=(()=>{if("undefined"==typeof window)return null;const e=(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);if(!e)return null;if("dev-elements"===e)return"https://dev.elements.zonos.com";const o=`https://${e}.preview.js.zonos.com`;return t(`[ZONOS-WARNING] using '${o}' for loading script`,"warn"),fetch(o).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${o}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:t}=window.location,r=`${t}?${e.toString()}`;return window.history.replaceState(window.history.state,"",r),window.location.reload(),null})),o})();class a{static get isNpm(){return!1}}s=a,a.isBigCommerce=!1,a.requested=!1,a.internationalHideSelector="",a.zonosQaUrl=null,a.tempCartData=null,a.zonosApiKey=null,a.isLegacyCheckout=!1,a.legacyStoreLogo=null,a.legacyStoreFavicon=null,a.parallelLoadTimes=[],a.paralellLoadState="off",a.loadScriptLogHandler=async({cdnLoadTime:e,fallbackLoadTime:o,isError:t,metadata:r,scriptLoadUrl:n,storeId:s,type:i})=>{try{const e=window.performance.getEntriesByType("resource").find((e=>{const o=e;return o.name.includes(n)&&"script"===o.initiatorType}));null==e||e.transferSize;(async e=>{})((e&&(null==e?void 0:e.duration)>0?parseFloat(e.duration.toFixed(2)):parseFloat(o.toFixed(2)),Object.assign({decodedBodySize:null==e?void 0:e.decodedBodySize,encodedBodySize:null==e?void 0:e.encodedBodySize,fallbackLoadTime:o,isError:!!t},r)))}catch(e){}},a.loadScriptLogParallelHandler=async e=>{try{if(s.parallelLoadTimes.push(e),2===s.parallelLoadTimes.length){const e=s.parallelLoadTimes.find((e=>"vercel"===e.type)),o=s.parallelLoadTimes.find((e=>"jsdelivr"===e.type));if(!e||!o)return;if(e.isError&&o.isError)return void n({endpoint:`<${e.scriptLoadUrl}> <${o.scriptLoadUrl}>`,errors:["Failed to fetch both Vercel and jsdelivr CDN. Perhaps network issue on customer site."],metadata:{cdnLoadTime:o.fallbackLoadTime,cdnType:o.type,vercelLoadTime:e.fallbackLoadTime}});s.loadScriptLogHandler({cdnLoadTime:o.fallbackLoadTime,fallbackLoadTime:e.fallbackLoadTime,isError:e.isError,metadata:{cdnScriptFallbackTime:o.fallbackLoadTime,cdnScriptIsError:!!o.isError,cdnScriptLoadUrl:o.scriptLoadUrl,cdnScriptType:o.type},scriptLoadUrl:e.scriptLoadUrl,storeId:e.storeId,type:e.type})}}catch(e){}},a.legacyCheckoutErrorHandler=({message:e,tempCartUUID:o})=>{r(`[ZONOS - loadZonos] ${e}`),n({endpoint:"LegacyCheckoutInit",errors:[e],metadata:{tempCartUUID:o}}),document.dispatchEvent(new CustomEvent("legacyCheckoutError",{detail:e}))},a.injectZonos=({initConfig:e,isGithubCdn:o=!1,parallelLoaded:r,url:a,version:c})=>{var l;const d=()=>{const e="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.23";return c?e.replace(/@zonos\/elements@(.+)/,`@zonos/elements@${c}`):e},p=i||a,m=p.replace("https://","").replace("http://",""),u=document.createElement("script"),g=c&&c<"1.2.5"?"loadZonos.js":"zonos.js";u.src=`https://${m}/dist/scripts/${g}`,t(`[ZONOS - loadZonos] Injecting "${g}" from "${m}"`,"info");const w="4g"===(null===(l=(()=>{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})())||void 0===l?void 0:l.effectiveType),y=["dev.elements.zonos.com","zonos.com"].some((e=>window.location.href.includes(e))),h="on"===s.paralellLoadState&&w&&!o&&!y;if(h){const o=d();s.injectZonos({initConfig:e,isGithubCdn:!0,parallelLoaded:!0,url:o,version:c})}const f=performance.now();u.addEventListener("load",(()=>{if(h||r?s.loadScriptLogParallelHandler({fallbackLoadTime:performance.now()-f,scriptLoadUrl:u.src,storeId:s.storeId,type:o?"jsdelivr":"vercel"}):s.loadScriptLogHandler({fallbackLoadTime:performance.now()-f,scriptLoadUrl:u.src,storeId:s.storeId,type:o?"jsdelivr":"vercel"}),s.isBigCommerce||(s.isBigCommerce=!!window.stencilBootstrap||!!window.bcConfig||!!document.querySelector('script[src*="bigcommerce.com"]')),window.Zonos.isNpm=!1,window.Zonos.zonosQaUrl=i,window.Zonos.internationalHideSelector=s.internationalHideSelector,window.Zonos.isBigCommerce=s.isBigCommerce,s.isLegacyCheckout){if(!s.zonosApiKey)throw s.legacyCheckoutErrorHandler({message:"zonosApiKey is required for legacy checkout",tempCartUUID:e.tempCartUUID}),new Error("zonosApiKey is required for legacy checkout");if(!s.tempCartData)throw s.legacyCheckoutErrorHandler({message:"tempCartData is required for legacy checkout",tempCartUUID:e.tempCartUUID}),new Error("zonosApiKey is required for legacy checkout");if(s.legacyStoreFavicon){const e=document.createElement("link");e.rel="shortcut icon",e.type="image/x-icon",e.href=s.legacyStoreFavicon,document.head.appendChild(e)}window.Zonos.tempCartData=s.tempCartData;const o=Object.assign(Object.assign({},e),{appearance:Object.assign(Object.assign({},e.appearance),{logoUrl:s.legacyStoreLogo||""}),checkoutSettings:Object.assign(Object.assign({},e.checkoutSettings),{successBehavior:"ZONOS_SUCCESS_PAGE",successRedirectUrl:s.tempCartData.contShoppingURL}),zonosApiKey:s.zonosApiKey});e=o}window.Zonos.version&&(t(`[ZONOS - loadZonos] Execute "Zonos.init" from "${g}" from "${m}"`,"info"),window.Zonos.init(e))})),u.addEventListener("error",(async()=>{if(!h&&!r){const o=d();s.injectZonos({initConfig:e,isGithubCdn:!0,url:o,version:c})}["localhost",".zonos.com"].some((e=>window.location.href.includes(e)))||i||(h||r?s.loadScriptLogParallelHandler({fallbackLoadTime:performance.now()-f,isError:!0,scriptLoadUrl:u.src,storeId:s.storeId,type:o?"jsdelivr":"vercel"}):n(o?{endpoint:u.src,errors:["zonos.js - Failed to fetch github CDN."],metadata:{cdnLoadTime:performance.now()-f,cdnType:"jsdelivr",loadUrl:p,version:c}}:{endpoint:u.src,errors:["[Info] Using alternative CDN. Failed to fetch script"],metadata:{vercelLoadTime:performance.now()-f}}))})),document.head.appendChild(u)},a.setupCartData=async e=>{const n=await(async e=>{const{errors:t,json:r}=await o("https://v1.route.js.zonos.com/api/bigcommerce/legacy-migration/get-temp-cart",{body:{tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"});return!r||t.length?null:r})(e);if(t("[ZONOS - loadZonos] getting temp cart data","info",n),!n)throw r("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),s.legacyCheckoutErrorHandler({message:"Error getting temp cart data",tempCartUUID:e}),new Error("Error getting temp cart data");return s.tempCartData=n.tempCart,s.legacyStoreLogo=n.storeLogoUrl,s.legacyStoreFavicon=n.storeFaviconUrl,{storeId:n.tempCart.storeId,zonosApiKey:n.zonosApiKey}},a.init=async e=>{var n;const i="https://v1.3.23.js.zonos.com",a=document.querySelector('script[src*="/zonos.js"]'),c=null===(n=document.querySelector("script[src*='/loadZonos.js']"))||void 0===n?void 0:n.src,l=null==c?void 0:c.includes("timestamp=");if(!(s.isNpm||c&&l))return void r("[ZONOS - loadZonos] A timestamp is required as a query parameter in the loadZonos.js script source. This timestamp ensures that you are loading the most recent version of the script, avoiding any cached versions.");if(a||!c||s.requested)return void t("[ZONOS - loadZonos] script is already loaded or requested","info");s.requested=!0;let d=e.storeId;if(e.tempCartUUID){const o=await s.setupCartData(e.tempCartUUID);d=o.storeId,s.zonosApiKey=o.zonosApiKey,s.isLegacyCheckout=!0}if(!d)return t("[ZONOS - loadZonos] loading latest script since storeId is not provided."),void s.injectZonos({initConfig:e,url:i,version:null});s.storeId=d;const p=new URL("https://v1.route.js.zonos.com/api/get-store-version");p.searchParams.set("storeId",e.storeId.toString());const{errors:m,json:u}=await o(p.toString());if(m.length||!u)return t("[ZONOS - loadZonos] Error getting store version, loadding the latest version.","error"),void s.injectZonos({initConfig:e,url:i,version:null});const{version:g}=u;if(!a){const{currentLoadScriptUrl:o,isForceLoadVersionDomain:r,isWhiteListed:n}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const o=new URL(e).origin,t=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>o.includes(e))),r=["qa.js.zonos.com"].some((e=>o.includes(e)));return{currentLoadScriptUrl:o,isForceLoadVersionDomain:r,isWhiteListed:t}})({loadScriptSrc:c}),i=n&&!r?o:`${"alpha"===g?"alpha":`v${g}`}.js.zonos.com`,a=n&&!r?null:g;t("[ZONOS - loadZonos] injecting zonos script","info",{currentLoadScriptUrl:o,isForceLoadVersionDomain:r,isWhiteListed:n,loadUrl:i,loadVersion:a,version:g}),s.injectZonos({initConfig:e,url:i,version:a})}},void 0===window.Zonos&&(window.Zonos=a)})();
@@ -1 +1 @@
1
- (function(){"use strict";const e=(e,t,...o)=>{var n,r;if(!(!!(null===(n=window.Zonos)||void 0===n?void 0:n.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...o));let s=document.querySelector("iframe#zonos---debug-logging-iframe");s||(s=document.createElement("iframe"),s.id="zonos---debug-logging-iframe",s.style.display="none",s.style.opacity="0",s.style.position="absolute",s.style.top="-9999px",s.style.left="-9999px",s.style.width="1px",s.style.height="1px",s.style.border="none",s.style.overflow="hidden",s.style.visibility="hidden",document.body.appendChild(s));const i=(null===(r=s.contentWindow)||void 0===r?void 0:r.window.console)||window.console;switch(t){case"warn":i.warn(e,...o);break;case"info":i.info(e,...o);break;case"error":i.error(e,...o);break;default:i.groupCollapsed(e,...o),i.trace(),i.groupEnd()}},t=(t,...o)=>{e(t,"error",...o)},o=()=>{if("undefined"==typeof window)return null;const t=(e=>{if(!e)return null;const t=new URL(e).searchParams.get("zonosQaUrl");return t?/[^a-zA-Z0-9-_]+/.test(t)?null:t:null})(window.location.href);if(!t)return null;if("dev-elements"===t)return"https://dev.elements.zonos.com";const o=`https://${t}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${o}' for loading script`,"warn"),fetch(o).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${o}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:t}=window.location,n=`${t}?${e.toString()}`;return window.history.replaceState(window.history.state,"",n),window.location.reload(),null})),o},n="https://js.stripe.com/v3",r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let i=null;const l=e=>(null!==i||(i=new Promise(((o,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(s),window.Stripe)o(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${n}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&r.test(o.src))return o}return null})();l&&e?console.warn(s):l||(l=(e=>{const o=document.createElement("script");o.src=`${n}`;const r=document.head||document.body;return r?(r.appendChild(o),o):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==l||l.addEventListener("load",(()=>{window.Stripe?o(window.Stripe):i(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{i(new Error("Failed to load Stripe.js"))}))}catch(e){return void i(e)}else o(null)}))),i),c=Promise.resolve().then((()=>l(null)));let d=!1;c.catch((e=>{d||console.warn(e)}));var a;const u=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,o=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),n=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:n,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?t:null})()||"https://v1.3.22.js.zonos.com",m="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.22",p="https://rsms.me",h="https://fonts.googleapis.com",y=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class w{}a=w,w.doneInit=!1,w.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),w.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),w.isBigCommerce=!1,w.isNpm=!0,w.internationalHideSelector="",w.zonosQaUrl=null,w.version="v1.3.22",w.modeAlerted=!1,w.tempCartData=null,w.getCurrentTimestamp=()=>(new Date).getTime(),w.zonosController=null,w.init=async({appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,onCountryChange:i,overrideCurrencyFormat:l,storeId:c,zonosApiKey:d})=>{a.doneInit||(e(`====== ZONOS DEBUG MODE: on (${a.version}) ======`),d?(a.zonosApiKey=d,a.storeId=c,e("init zonos"),a.injectSentryScript(),a.injectZonosCdn(),a.injectZonosCss(),a.injectFonts(),a.injectController({config:{appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,onCountryChange:i,overrideCurrencyFormat:l},zonosApiKey:d}),a.doneInit=!0):t("Missing Zonos API key"))},w.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},w.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},w.showNotification=e=>{var t;null===(t=a.zonosController)||void 0===t||t.showNotification(e)},w.updateOrganizationName=e=>{var t;null===(t=a.zonosController)||void 0===t||t.updateOrganizationName(e)},w.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:o})=>{if(o){const n=document.querySelectorAll(o),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.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((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)}))}),5e3)}},w.injectController=({config:o,zonosApiKey:n})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=o.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;a.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{a.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=o,s.zonosApiKey=n,s.addEventListener("stripeInitEvent",(async o=>{const{detail:n}=o;e("loading Stripe");const r=await(async(...e)=>{d=!0;const t=Date.now();return c.then((o=>((e,t,o)=>{if(null===e)return null;const n=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(n,o),n})(o,e,t)))})(n.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):t("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),a.zonosController=s,e("Zonos controller injected!")},w.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const n=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=o,r.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",r.setAttribute("data-lazy","no"),r.onerror=()=>{t(`Failed to load ${r.src}`)},r.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var t,o,n,r,s,i;const l=null===(i=null===(s=null===(r=null===(n=null===(o=null===(t=e.exception)||void 0===t?void 0:t.values)||void 0===o?void 0:o[0])||void 0===n?void 0:n.stacktrace)||void 0===r?void 0:r.frames)||void 0===s?void 0:s[0])||void 0===i?void 0:i.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${a.version}`,tracesSampler:()=>.01})},n.appendChild(r)},w.injectScript=({fallBackDomain:o,isModule:n,scriptDomain:r,theRestUrl:s})=>{const i=`${r}/${s}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");n?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(o&&a.injectScript({isModule:n,scriptDomain:o,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},w.getZonosUrl=()=>{if(a.isNpm){return o()||u}return u},w.injectZonosCdn=()=>{const t=a.getZonosUrl();a.injectScript({fallBackDomain:m,isModule:!0,scriptDomain:t,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),a.injectScript({fallBackDomain:m,isModule:!1,scriptDomain:t,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},w.injectStylesheet=({fallBackDomain:o,stylesheetDomain:n,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${u}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${n}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(n);s?(o&&s&&a.injectStylesheet({stylesheetDomain:o,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},w.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(a.injectStylesheet({fallBackDomain:m,stylesheetDomain:u,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},w.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${p}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&!y.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=p,t.appendChild(o);const n=document.createElement("link");n.rel="stylesheet",n.href=`${p}/inter/inter.css`,t.appendChild(n),e("Zonos font injected!")},w.setupGoogleFont=e=>{var t;null===(t=a.zonosController)||void 0===t||t.setupGoogleFont(e)},w.injectSupportGoogleFont=t=>{var o;e(`[FONT] injecting ${t}`);const n=null===(o=t.match(/family=(.*?):/))||void 0===o?void 0:o[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${h}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=h,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${n} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${n} font injected!`)},window.Zonos&&window.Zonos.doneInit||(window.Zonos=w)})();
1
+ (function(){"use strict";const e=(e,t,...o)=>{var n,r;if(!(!!(null===(n=window.Zonos)||void 0===n?void 0:n.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...o));let s=document.querySelector("iframe#zonos---debug-logging-iframe");s||(s=document.createElement("iframe"),s.id="zonos---debug-logging-iframe",s.style.display="none",s.style.opacity="0",s.style.position="absolute",s.style.top="-9999px",s.style.left="-9999px",s.style.width="1px",s.style.height="1px",s.style.border="none",s.style.overflow="hidden",s.style.visibility="hidden",document.body.appendChild(s));const i=(null===(r=s.contentWindow)||void 0===r?void 0:r.window.console)||window.console;switch(t){case"warn":i.warn(e,...o);break;case"info":i.info(e,...o);break;case"error":i.error(e,...o);break;default:i.groupCollapsed(e,...o),i.trace(),i.groupEnd()}},t=(t,...o)=>{e(t,"error",...o)},o=()=>{if("undefined"==typeof window)return null;const t=(e=>{if(!e)return null;const t=new URL(e).searchParams.get("zonosQaUrl");return t?/[^a-zA-Z0-9-_]+/.test(t)?null:t:null})(window.location.href);if(!t)return null;if("dev-elements"===t)return"https://dev.elements.zonos.com";const o=`https://${t}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${o}' for loading script`,"warn"),fetch(o).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${o}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:t}=window.location,n=`${t}?${e.toString()}`;return window.history.replaceState(window.history.state,"",n),window.location.reload(),null})),o},n="https://js.stripe.com/v3",r=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let i=null;const l=e=>(null!==i||(i=new Promise(((o,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(s),window.Stripe)o(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${n}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&r.test(o.src))return o}return null})();l&&e?console.warn(s):l||(l=(e=>{const o=document.createElement("script");o.src=`${n}`;const r=document.head||document.body;return r?(r.appendChild(o),o):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})()),null==l||l.addEventListener("load",(()=>{window.Stripe?o(window.Stripe):i(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{i(new Error("Failed to load Stripe.js"))}))}catch(e){return void i(e)}else o(null)}))),i),c=Promise.resolve().then((()=>l(null)));let d=!1;c.catch((e=>{d||console.warn(e)}));var a;const u=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,o=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),n=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:n,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?t:null})()||"https://v1.3.23.js.zonos.com",m="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.23",p="https://rsms.me",h="https://fonts.googleapis.com",y=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class w{}a=w,w.doneInit=!1,w.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),w.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),w.isBigCommerce=!1,w.isNpm=!0,w.internationalHideSelector="",w.zonosQaUrl=null,w.version="v1.3.23",w.modeAlerted=!1,w.tempCartData=null,w.getCurrentTimestamp=()=>(new Date).getTime(),w.zonosController=null,w.init=async({appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,onCountryChange:i,overrideCurrencyFormat:l,storeId:c,zonosApiKey:d})=>{a.doneInit||(e(`====== ZONOS DEBUG MODE: on (${a.version}) ======`),d?(a.zonosApiKey=d,a.storeId=c,e("init zonos"),a.injectSentryScript(),a.injectZonosCdn(),a.injectZonosCss(),a.injectFonts(),a.injectController({config:{appearance:o,checkoutSettings:n,currencyConverter:r,helloSettings:s,onCountryChange:i,overrideCurrencyFormat:l},zonosApiKey:d}),a.doneInit=!0):t("Missing Zonos API key"))},w.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},w.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},w.showNotification=e=>{var t;null===(t=a.zonosController)||void 0===t||t.showNotification(e)},w.updateOrganizationName=e=>{var t;null===(t=a.zonosController)||void 0===t||t.updateOrganizationName(e)},w.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:o})=>{if(o){const n=document.querySelectorAll(o),r=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.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((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",r)}))}),5e3)}},w.injectController=({config:o,zonosApiKey:n})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=o.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;a.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{a.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=o,s.zonosApiKey=n,s.addEventListener("stripeInitEvent",(async o=>{const{detail:n}=o;e("loading Stripe");const r=await(async(...e)=>{d=!0;const t=Date.now();return c.then((o=>((e,t,o)=>{if(null===e)return null;const n=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(n,o),n})(o,e,t)))})(n.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):t("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),a.zonosController=s,e("Zonos controller injected!")},w.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const n=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=o,r.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",r.setAttribute("data-lazy","no"),r.onerror=()=>{t(`Failed to load ${r.src}`)},r.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var t,o,n,r,s,i;const l=null===(i=null===(s=null===(r=null===(n=null===(o=null===(t=e.exception)||void 0===t?void 0:t.values)||void 0===o?void 0:o[0])||void 0===n?void 0:n.stacktrace)||void 0===r?void 0:r.frames)||void 0===s?void 0:s[0])||void 0===i?void 0:i.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${a.version}`,tracesSampler:()=>.01})},n.appendChild(r)},w.injectScript=({fallBackDomain:o,isModule:n,scriptDomain:r,theRestUrl:s})=>{const i=`${r}/${s}`;if(document.querySelector(`script[src="${i}"]`))return void e(`Zonos script "${i}" already exists in the document`,"warn");const l=document.head||document.body,c=document.createElement("script");n?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(o&&a.injectScript({isModule:n,scriptDomain:o,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},w.getZonosUrl=()=>{if(a.isNpm){return o()||u}return u},w.injectZonosCdn=()=>{const t=a.getZonosUrl();a.injectScript({fallBackDomain:m,isModule:!0,scriptDomain:t,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),a.injectScript({fallBackDomain:m,isModule:!1,scriptDomain:t,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},w.injectStylesheet=({fallBackDomain:o,stylesheetDomain:n,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${u}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${n}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(n);s?(o&&s&&a.injectStylesheet({stylesheetDomain:o,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},w.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(a.injectStylesheet({fallBackDomain:m,stylesheetDomain:u,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},w.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${p}"]`);for(let t=0;t<e.length;t++){const o=e[t];if(o&&!y.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=p,t.appendChild(o);const n=document.createElement("link");n.rel="stylesheet",n.href=`${p}/inter/inter.css`,t.appendChild(n),e("Zonos font injected!")},w.setupGoogleFont=e=>{var t;null===(t=a.zonosController)||void 0===t||t.setupGoogleFont(e)},w.injectSupportGoogleFont=t=>{var o;e(`[FONT] injecting ${t}`);const n=null===(o=t.match(/family=(.*?):/))||void 0===o?void 0:o[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${h}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=h,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${n} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${n} font injected!`)},window.Zonos&&window.Zonos.doneInit||(window.Zonos=w)})();
@@ -1,10 +1,4 @@
1
1
  export declare const stringsArabic: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsArabic: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsArabic: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsArabic: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsBase: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsBase: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsBase: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsBase: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsChinese: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsChinese: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsChinese: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsChinese: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsDanish: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsDanish: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsDanish: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsDanish: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsDutch: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsDutch: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsDutch: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsDutch: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsFrench: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsFrench: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsFrench: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsFrench: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsGerman: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsGerman: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsGerman: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsGerman: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsHebrew: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsHebrew: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsHebrew: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsHebrew: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsIndonesian: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsIndonesian: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsIndonesian: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsIndonesian: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsItalian: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsItalian: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsItalian: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsItalian: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsJapanese: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsJapanese: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsJapanese: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsJapanese: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };
@@ -1,10 +1,4 @@
1
1
  export declare const stringsKorean: {
2
- '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
3
- value: string;
4
- };
5
- '${percentage} GST due on any order above ${threshold}.': {
6
- value: string;
7
- };
8
2
  'Above de minimis threshold for': {
9
3
  value: string;
10
4
  };
@@ -131,7 +125,7 @@ export declare const stringsKorean: {
131
125
  'Order total': {
132
126
  value: string;
133
127
  };
134
- 'Orders to ${countryName} must be over ${threshold} to ship.': {
128
+ 'Orders to [countryName] must be over [threshold] to ship.': {
135
129
  value: string;
136
130
  };
137
131
  Pay: {
@@ -239,7 +233,7 @@ export declare const stringsKorean: {
239
233
  "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.": {
240
234
  value: string;
241
235
  };
242
- 'Welcome to': {
236
+ 'Welcome to [storeName]!': {
243
237
  value: string;
244
238
  };
245
239
  'Welcome!': {
@@ -257,6 +251,12 @@ export declare const stringsKorean: {
257
251
  '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.': {
258
252
  value: string;
259
253
  };
254
+ '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
255
+ value: string;
256
+ };
257
+ '[percentage] GST due on any order above [threshold].': {
258
+ value: string;
259
+ };
260
260
  'business days': {
261
261
  value: string;
262
262
  };