@zonos/elements 1.3.12-alpha.2 → 1.3.12-alpha.3

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.
@@ -0,0 +1,8 @@
1
+ import { handleFetch } from "../handleFetch";
2
+ export const sendLoadScriptLog = async (params) => {
3
+ const scriptLoadLogBody = Object.assign({ href: window.location.href }, params);
4
+ void handleFetch(`${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/log-script-load`, {
5
+ body: scriptLoadLogBody,
6
+ method: 'POST',
7
+ });
8
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -2,6 +2,16 @@ export const accountHolderType = {
2
2
  Company: 'COMPANY',
3
3
  Individual: 'INDIVIDUAL',
4
4
  };
5
+ export const accountingFeeType = {
6
+ BugFix: 'BUG_FIX',
7
+ DutyTaxFee: 'DUTY_TAX_FEE',
8
+ General: 'GENERAL',
9
+ Item: 'ITEM',
10
+ LandedCostGuarantee: 'LANDED_COST_GUARANTEE',
11
+ MerchantProcessing: 'MERCHANT_PROCESSING',
12
+ Shipping: 'SHIPPING',
13
+ Transaction: 'TRANSACTION',
14
+ };
5
15
  export const addressMatchThreshold = {
6
16
  ExactAdministrativeArea: 'EXACT_ADMINISTRATIVE_AREA',
7
17
  ExactCountry: 'EXACT_COUNTRY',
@@ -17,10 +27,23 @@ export const addressResult = {
17
27
  Unavailable: 'UNAVAILABLE',
18
28
  Valid: 'VALID',
19
29
  };
30
+ export const adjustmentRecordType = {
31
+ ConnectAccountAdjustment: 'CONNECT_ACCOUNT_ADJUSTMENT',
32
+ CreditNote: 'CREDIT_NOTE',
33
+ InvoiceLineRecord: 'INVOICE_LINE_RECORD',
34
+ };
35
+ export const adjustmentType = {
36
+ Charge: 'CHARGE',
37
+ Credit: 'CREDIT',
38
+ };
20
39
  export const alcoholRecipientType = {
21
40
  Consumer: 'CONSUMER',
22
41
  Licensee: 'LICENSEE',
23
42
  };
43
+ export const allowedCharacterSets = {
44
+ All: 'ALL',
45
+ Latin: 'LATIN',
46
+ };
24
47
  export const analyticsProviderStatus = {
25
48
  Disabled: 'DISABLED',
26
49
  Enabled: 'ENABLED',
@@ -743,16 +766,8 @@ export const credentialProvider = {
743
766
  };
744
767
  export const creditBehaviorTypeCode = {
745
768
  CreditAccount: 'CREDIT_ACCOUNT',
746
- CreditInvoice: 'CREDIT_INVOICE',
747
769
  RefundPayment: 'REFUND_PAYMENT',
748
770
  };
749
- export const creditNoteStatusCode = {
750
- Failed: 'FAILED',
751
- Issued: 'ISSUED',
752
- Pending: 'PENDING',
753
- Processed: 'PROCESSED',
754
- Voided: 'VOIDED',
755
- };
756
771
  export const creditReasonTypeCode = {
757
772
  Duplicate: 'DUPLICATE',
758
773
  Fraudulent: 'FRAUDULENT',
@@ -1194,6 +1209,10 @@ export const inclusivePriceSettingStatus = {
1194
1209
  Disabled: 'DISABLED',
1195
1210
  Enabled: 'ENABLED',
1196
1211
  };
1212
+ export const inclusivePriceStatus = {
1213
+ Active: 'ACTIVE',
1214
+ Inactive: 'INACTIVE',
1215
+ };
1197
1216
  export const incotermCode = {
1198
1217
  Cif: 'CIF',
1199
1218
  Custom: 'CUSTOM',
@@ -1252,12 +1271,6 @@ export const invoiceLanguageCode = {
1252
1271
  ZhHk: 'ZH_HK',
1253
1272
  ZhTw: 'ZH_TW',
1254
1273
  };
1255
- export const invoiceLineRecordStatusCode = {
1256
- Failed: 'FAILED',
1257
- Pending: 'PENDING',
1258
- Processed: 'PROCESSED',
1259
- Voided: 'VOIDED',
1260
- };
1261
1274
  export const invoiceStatus = {
1262
1275
  Received: 'RECEIVED',
1263
1276
  Reconciled: 'RECONCILED',
@@ -1656,6 +1669,14 @@ export const pddpAmountType = {
1656
1669
  ShoppingCartValue: 'SHOPPING_CART_VALUE',
1657
1670
  SurchargeValue: 'SURCHARGE_VALUE',
1658
1671
  };
1672
+ export const pddpCountrySpecStatus = {
1673
+ Active: 'ACTIVE',
1674
+ Disabled: 'DISABLED',
1675
+ };
1676
+ export const pddpStatus = {
1677
+ Active: 'ACTIVE',
1678
+ Disabled: 'DISABLED',
1679
+ };
1659
1680
  export const pickupBuildingType = {
1660
1681
  Apartment: 'APARTMENT',
1661
1682
  Building: 'BUILDING',
@@ -1675,6 +1696,12 @@ export const pickupCategory = {
1675
1696
  SameDay: 'SAME_DAY',
1676
1697
  SameDayCity: 'SAME_DAY_CITY',
1677
1698
  };
1699
+ export const processingStatusCode = {
1700
+ Failed: 'FAILED',
1701
+ Pending: 'PENDING',
1702
+ Processed: 'PROCESSED',
1703
+ Voided: 'VOIDED',
1704
+ };
1678
1705
  export const propertyType = {
1679
1706
  Commercial: 'COMMERCIAL',
1680
1707
  Residental: 'RESIDENTAL',
@@ -1834,6 +1861,10 @@ export const stripePriceBillingScheme = {
1834
1861
  PerUnit: 'PER_UNIT',
1835
1862
  Tiered: 'TIERED',
1836
1863
  };
1864
+ export const stripePriceType = {
1865
+ OneTime: 'ONE_TIME',
1866
+ Recurring: 'RECURRING',
1867
+ };
1837
1868
  export const stripeSubscriptionStatus = {
1838
1869
  Active: 'ACTIVE',
1839
1870
  Canceled: 'CANCELED',
@@ -442,6 +442,9 @@ export function getSdk(client, withWrapper = defaultWrapper) {
442
442
  CreateErrorEvent(variables, requestHeaders) {
443
443
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateErrorEvent', 'mutation');
444
444
  },
445
+ CreateScriptLoadEvent(variables, requestHeaders) {
446
+ return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'CreateScriptLoadEvent', 'mutation');
447
+ },
445
448
  DeleteAllStoreReserveOrders(variables, requestHeaders) {
446
449
  return withWrapper(wrappedRequestHeaders => client.request('', variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), 'DeleteAllStoreReserveOrders', 'mutation');
447
450
  },
@@ -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 n=(function(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})(t||{},[]),r=n.body?JSON.stringify(n.body):void 0,s=n.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"},n.headers),c=Object.assign(Object.assign({},n),{body:"GET"===s?void 0:r,headers:a,method:s});return(async(o,t)=>{let n;try{n=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 r=n.headers.get("Zonos-Mode"),s=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&r&&s&&("production"===r&&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"===r&&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),n.ok)return{errors:[],json:await e({response:n}),response:n};const i=n.status.toString();try{const o=await e({response:n,shouldThrow:!0});return{errors:[{message:`${i}: ${JSON.stringify(o)}`,type:i}],json:null,response:n}}catch(e){return{errors:[{message:`${i}: Unknown error`,type:i}],json:null,response:null}}})(i.toString(),c)},t=(e,o,...t)=>{var n,r;if(!(!!(null===(n=window.Zonos)||void 0===n?void 0:n.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===(r=s.contentWindow)||void 0===r?void 0:r.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()}},n=(e,...o)=>{t(e,"error",...o)},r=async({endpoint:e,errors:t,metadata:n})=>{const r="userAgentData"in window.navigator?window.navigator.userAgentData:null,s={endpoint:e,errors:t,metadata:Object.assign({href:window.location.href,userAgent:r&&r.brands.length>0?r:window.navigator.userAgent},n)};o("https://v1.route.js.zonos.com/api/zonos-elements/log-error",{body:s,method:"POST"})};var s;const i=(()=>{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;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,n=`${t}?${e.toString()}`;return window.history.replaceState({},"",n),window.location.reload(),null})),o})();class a{}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.maxRetries=5,a.interval=200,a.pollingFailedLoadScript=async({times:e=1,url:t})=>{if(e>s.maxRetries)return void r({endpoint:t,errors:[`[Info] Using alternative CDN. Failed to fetch for ${s.maxRetries} times (max: ${s.maxRetries}) with each spaced ${s.interval}ms apart.`],metadata:{}});await new Promise((e=>setTimeout(e,s.interval)));const{response:n}=await o(t);(null==n?void 0:n.ok)?r({endpoint:t,errors:[`[Info] Using alternative CDN. Fetched successfully after retried ${e} times (max: ${s.maxRetries}) with each spaced ${s.interval}ms apart.`],metadata:{}}):await s.pollingFailedLoadScript({times:e+1,url:t})},a.legacyCheckoutErrorHandler=({message:e,tempCartUUID:o})=>{n(`[ZONOS - loadZonos] ${e}`),r({endpoint:"LegacyCheckoutInit",errors:[e],metadata:{tempCartUUID:o}}),document.dispatchEvent(new CustomEvent("legacyCheckoutError",{detail:e}))},a.injectZonos=({initConfig:e,isGithubCdn:o=!1,url:n,version:a})=>{const c=i||n,l=c.replace("https://","").replace("http://",""),d=document.createElement("script"),p=a&&a<"1.2.5"?"loadZonos.js":"zonos.js";d.src=`https://${l}/dist/scripts/${p}`,t(`[ZONOS - loadZonos] Injecting "${p}" from "${l}"`,"info"),d.addEventListener("load",(()=>{if(s.isBigCommerce||(s.isBigCommerce=!!window.stencilBootstrap||!!window.bcConfig||!!document.querySelector('script[src*="bigcommerce.com"]')),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 "${p}" from "${l}"`,"info"),window.Zonos.init(e))})),d.addEventListener("error",(async()=>{if(!o){const o="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.12-alpha.2",t=a?o.replace(/@zonos\/elements@(.+)/,`@zonos/elements@${a}`):o;s.injectZonos({initConfig:e,isGithubCdn:!0,url:t,version:a})}["localhost",".zonos.com"].some((e=>window.location.href.includes(e)))||i||(o?r({endpoint:d.src,errors:["zonos.js - Failed to fetch github CDN."],metadata:{loadUrl:c,version:a}}):s.pollingFailedLoadScript({url:d.src}))})),document.head.appendChild(d)},a.setupCartData=async e=>{const r=await(async e=>{const{errors:t,json:n}=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!n||t.length?null:n})(e);if(t("[ZONOS - loadZonos] getting temp cart data","info",r),!r)throw n("[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=r.tempCart,s.legacyStoreLogo=r.storeLogoUrl,s.legacyStoreFavicon=r.storeFaviconUrl,{storeId:r.tempCart.storeId,zonosApiKey:r.zonosApiKey}},a.init=async e=>{var r;const i="https://v1.3.12-alpha.2.js.zonos.com",a=null===(r=document.querySelector("script[src*='/loadZonos.js']"))||void 0===r?void 0:r.src,c=document.querySelector('script[src*="/zonos.js"]'),l=null==a?void 0:a.includes("timestamp=");if(!a||!l)return void n("[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(c||!a||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});const p=new URL("https://v1.route.js.zonos.com/api/get-store-version");p.searchParams.set("storeId",e.storeId.toString());const{errors:u,json:m}=await o(p.toString());if(u.length||!m)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}=m;if(!c){const{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:r}=(({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))),n=["qa.js.zonos.com"].some((e=>o.includes(e)));return{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:t}})({loadScriptSrc:a}),i=r&&!n?o:`${"alpha"===g?"alpha":`v${g}`}.js.zonos.com`,c=r&&!n?null:g;t("[ZONOS - loadZonos] injecting zonos script","info",{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:r,loadUrl:i,loadVersion:c,version:g}),s.injectZonos({initConfig:e,url:i,version:c})}},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 n=(function(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})(t||{},[]),r=n.body?JSON.stringify(n.body):void 0,s=n.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"},n.headers),c=Object.assign(Object.assign({},n),{body:"GET"===s?void 0:r,headers:a,method:s});return(async(o,t)=>{let n;try{n=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 r=n.headers.get("Zonos-Mode"),s=window.Zonos.zonosQaUrl;if(!window.Zonos.modeAlerted&&r&&s&&("production"===r&&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"===r&&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),n.ok)return{errors:[],json:await e({response:n}),response:n};const i=n.status.toString();try{const o=await e({response:n,shouldThrow:!0});return{errors:[{message:`${i}: ${JSON.stringify(o)}`,type:i}],json:null,response:n}}catch(e){return{errors:[{message:`${i}: Unknown error`,type:i}],json:null,response:null}}})(i.toString(),c)},t=(e,o,...t)=>{var n,r;if(!(!!(null===(n=window.Zonos)||void 0===n?void 0:n.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===(r=s.contentWindow)||void 0===r?void 0:r.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()}},n=(e,...o)=>{t(e,"error",...o)},r=async({endpoint:e,errors:t,metadata:n})=>{const r="userAgentData"in window.navigator?window.navigator.userAgentData:null,s={endpoint:e,errors:t,metadata:Object.assign({href:window.location.href,userAgent:r&&r.brands.length>0?r:window.navigator.userAgent},n)};o("https://v1.route.js.zonos.com/api/zonos-elements/log-error",{body:s,method:"POST"})};var s;const i=(()=>{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;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,n=`${t}?${e.toString()}`;return window.history.replaceState({},"",n),window.location.reload(),null})),o})();class a{}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.maxRetries=5,a.interval=200,a.pollingFailedLoadScript=async({times:e=1,url:t})=>{if(e>s.maxRetries)return void r({endpoint:t,errors:[`[Info] Using alternative CDN. Failed to fetch for ${s.maxRetries} times (max: ${s.maxRetries}) with each spaced ${s.interval}ms apart.`],metadata:{}});await new Promise((e=>setTimeout(e,s.interval)));const{response:n}=await o(t);(null==n?void 0:n.ok)?r({endpoint:t,errors:[`[Info] Using alternative CDN. Fetched successfully after retried ${e} times (max: ${s.maxRetries}) with each spaced ${s.interval}ms apart.`],metadata:{}}):await s.pollingFailedLoadScript({times:e+1,url:t})},a.loadScriptLogHandler=async({scriptLoadUrl:e,storeId:t,type:n})=>{try{const r=window.performance.getEntriesByType("resource").find((o=>{const t=o;return t.name.includes(e)&&"script"===t.initiatorType}));(async e=>{const t=Object.assign({href:window.location.href},e);o("https://v1.route.js.zonos.com/api/zonos-elements/log-script-load",{body:t,method:"POST"})})({cache:0===(null==r?void 0:r.transferSize)?"hit":"miss",eventName:n,loadTime:r&&(null==r?void 0:r.duration)>=0?parseFloat(r.duration.toFixed(2)):-1,metadata:{decodedBodySize:null==r?void 0:r.decodedBodySize,encodedBodySize:null==r?void 0:r.encodedBodySize},scriptLoadUrl:e,storeId:t})}catch(e){}},a.legacyCheckoutErrorHandler=({message:e,tempCartUUID:o})=>{n(`[ZONOS - loadZonos] ${e}`),r({endpoint:"LegacyCheckoutInit",errors:[e],metadata:{tempCartUUID:o}}),document.dispatchEvent(new CustomEvent("legacyCheckoutError",{detail:e}))},a.injectZonos=({initConfig:e,isGithubCdn:o=!1,url:n,version:a})=>{const c=i||n,l=c.replace("https://","").replace("http://",""),d=document.createElement("script"),p=a&&a<"1.2.5"?"loadZonos.js":"zonos.js";d.src=`https://${l}/dist/scripts/${p}`,t(`[ZONOS - loadZonos] Injecting "${p}" from "${l}"`,"info"),d.addEventListener("load",(()=>{if(s.loadScriptLogHandler({scriptLoadUrl:d.src,storeId:s.storeId,type:o?"jsdelivr":"vercel"}),s.isBigCommerce||(s.isBigCommerce=!!window.stencilBootstrap||!!window.bcConfig||!!document.querySelector('script[src*="bigcommerce.com"]')),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 "${p}" from "${l}"`,"info"),window.Zonos.init(e))})),d.addEventListener("error",(async()=>{if(!o){const o="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.12-alpha.3",t=a?o.replace(/@zonos\/elements@(.+)/,`@zonos/elements@${a}`):o;s.injectZonos({initConfig:e,isGithubCdn:!0,url:t,version:a})}["localhost",".zonos.com"].some((e=>window.location.href.includes(e)))||i||(o?r({endpoint:d.src,errors:["zonos.js - Failed to fetch github CDN."],metadata:{loadUrl:c,version:a}}):s.pollingFailedLoadScript({url:d.src}))})),document.head.appendChild(d)},a.setupCartData=async e=>{const r=await(async e=>{const{errors:t,json:n}=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!n||t.length?null:n})(e);if(t("[ZONOS - loadZonos] getting temp cart data","info",r),!r)throw n("[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=r.tempCart,s.legacyStoreLogo=r.storeLogoUrl,s.legacyStoreFavicon=r.storeFaviconUrl,{storeId:r.tempCart.storeId,zonosApiKey:r.zonosApiKey}},a.init=async e=>{var r;const i="https://v1.3.12-alpha.3.js.zonos.com",a=null===(r=document.querySelector("script[src*='/loadZonos.js']"))||void 0===r?void 0:r.src,c=document.querySelector('script[src*="/zonos.js"]'),l=null==a?void 0:a.includes("timestamp=");if(!a||!l)return void n("[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(c||!a||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:u,json:m}=await o(p.toString());if(u.length||!m)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}=m;if(!c){const{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:r}=(({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))),n=["qa.js.zonos.com"].some((e=>o.includes(e)));return{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:t}})({loadScriptSrc:a}),i=r&&!n?o:`${"alpha"===g?"alpha":`v${g}`}.js.zonos.com`,c=r&&!n?null:g;t("[ZONOS - loadZonos] injecting zonos script","info",{currentLoadScriptUrl:o,isForceLoadVersionDomain:n,isWhiteListed:r,loadUrl:i,loadVersion:c,version:g}),s.injectZonos({initConfig:e,url:i,version:c})}},void 0===window.Zonos&&(window.Zonos=a)})();
@@ -1 +1 @@
1
- (function(){"use strict";const e=(e,t,...n)=>{var o,r;if(!(!!(null===(o=window.Zonos)||void 0===o?void 0:o.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...n));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,...n);break;case"info":i.info(e,...n);break;case"error":i.error(e,...n);break;default:i.groupCollapsed(e,...n),i.trace(),i.groupEnd()}},t=(t,...n)=>{e(t,"error",...n)},n="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,r="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let s=null;const i=e=>(null!==s||(s=new Promise(((s,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(r),window.Stripe)s(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${n}"]`);for(let t=0;t<e.length;t++){const n=e[t];if(n&&o.test(n.src))return n}return null})();l&&e?console.warn(r):l||(l=(e=>{const o=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src=`${n}${o}`;const s=document.head||document.body;return s?(s.appendChild(r),r):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?s(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 s(null)}))),s),l=Promise.resolve().then((()=>i(null)));let c=!1;l.catch((e=>{c||console.warn(e)}));var d;const a=(()=>{const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:n}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,n=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),o=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:o,isWhiteListed:n}})({loadScriptSrc:null==e?void 0:e.src});return n?t:null})()||"https://v1.3.12-alpha.2.js.zonos.com",u="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.12-alpha.2",p="https://rsms.me",m="https://fonts.googleapis.com",h=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}d=y,y.doneInit=!1,y.debug=!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.isBigCommerce=!1,y.internationalHideSelector="",y.zonosQaUrl=null,y.version="v1.3.12-alpha.2",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:n,checkoutSettings:o,currencyConverter:r,helloSettings:s,storeId:i,zonosApiKey:l})=>{d.doneInit||(e(`====== ZONOS DEBUG MODE: on (${d.version}) ======`),l?(d.zonosApiKey=l,d.storeId=i,e("init zonos"),d.injectSentryScript(),d.injectZonosCdn(),d.injectZonosCss(),d.injectFonts(),d.injectController({config:{appearance:n,checkoutSettings:o,currencyConverter:r,helloSettings:s},zonosApiKey:l}),d.doneInit=!0):t("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},y.showNotification=e=>{var t;null===(t=d.zonosController)||void 0===t||t.showNotification(e)},y.updateOrganizationName=e=>{var t;null===(t=d.zonosController)||void 0===t||t.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:n})=>{if(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)}},y.injectController=({config:n,zonosApiKey:o})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=n.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=n.checkoutSettings.placeOrderButtonSelector;d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=n,s.zonosApiKey=o,s.addEventListener("stripeInitEvent",(async n=>{const{detail:o}=n;e("loading Stripe");const r=await(async(...e)=>{c=!0;const t=Date.now();return l.then((n=>((e,t,n)=>{if(null===e)return null;const o=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(o,n),o})(n,e,t)))})(o.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),d.zonosController=s,e("Zonos controller injected!")},y.injectSentryScript=()=>{const n="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${n}"]`))return void e("Sentry script already exists in the document","warn");const o=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=n,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({allowUrls:[/js\.zonos\.com\/dist\/scripts/],dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${d.version}`,tracesSampler:({transactionContext:e})=>"pageload"===e.op?1:.25})},o.appendChild(r)},y.injectScript=({fallBackDomain:n,isModule:o,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");o?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(n&&d.injectScript({isModule:o,scriptDomain:n,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},y.injectZonosCdn=()=>{d.injectScript({fallBackDomain:u,isModule:!0,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),d.injectScript({fallBackDomain:u,isModule:!1,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({fallBackDomain:n,stylesheetDomain:o,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${a}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${o}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(o);s?(n&&s&&d.injectStylesheet({stylesheetDomain:n,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(d.injectStylesheet({fallBackDomain:u,stylesheetDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${p}"]`);for(let t=0;t<e.length;t++){const n=e[t];if(n&&!h.test(n.href))return n}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=p,t.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${p}/inter/inter.css`,t.appendChild(o),e("Zonos font injected!")},y.setupGoogleFont=e=>{var t;null===(t=d.zonosController)||void 0===t||t.setupGoogleFont(e)},y.injectSupportGoogleFont=t=>{var n;e(`[FONT] injecting ${t}`);const o=null===(n=t.match(/family=(.*?):/))||void 0===n?void 0:n[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${m}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=m,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${o} font injected!`)},window.Zonos=y})();
1
+ (function(){"use strict";const e=(e,t,...n)=>{var o,r;if(!(!!(null===(o=window.Zonos)||void 0===o?void 0:o.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...n));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,...n);break;case"info":i.info(e,...n);break;case"error":i.error(e,...n);break;default:i.groupCollapsed(e,...n),i.trace(),i.groupEnd()}},t=(t,...n)=>{e(t,"error",...n)},n="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,r="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let s=null;const i=e=>(null!==s||(s=new Promise(((s,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(r),window.Stripe)s(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${n}"]`);for(let t=0;t<e.length;t++){const n=e[t];if(n&&o.test(n.src))return n}return null})();l&&e?console.warn(r):l||(l=(e=>{const o=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src=`${n}${o}`;const s=document.head||document.body;return s?(s.appendChild(r),r):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?s(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 s(null)}))),s),l=Promise.resolve().then((()=>i(null)));let c=!1;l.catch((e=>{c||console.warn(e)}));var d;const a=(()=>{const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:n}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,n=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),o=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:o,isWhiteListed:n}})({loadScriptSrc:null==e?void 0:e.src});return n?t:null})()||"https://v1.3.12-alpha.3.js.zonos.com",u="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.12-alpha.3",p="https://rsms.me",m="https://fonts.googleapis.com",h=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}d=y,y.doneInit=!1,y.debug=!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.isBigCommerce=!1,y.internationalHideSelector="",y.zonosQaUrl=null,y.version="v1.3.12-alpha.3",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:n,checkoutSettings:o,currencyConverter:r,helloSettings:s,storeId:i,zonosApiKey:l})=>{d.doneInit||(e(`====== ZONOS DEBUG MODE: on (${d.version}) ======`),l?(d.zonosApiKey=l,d.storeId=i,e("init zonos"),d.injectSentryScript(),d.injectZonosCdn(),d.injectZonosCss(),d.injectFonts(),d.injectController({config:{appearance:n,checkoutSettings:o,currencyConverter:r,helloSettings:s},zonosApiKey:l}),d.doneInit=!0):t("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},y.showNotification=e=>{var t;null===(t=d.zonosController)||void 0===t||t.showNotification(e)},y.updateOrganizationName=e=>{var t;null===(t=d.zonosController)||void 0===t||t.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:n})=>{if(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)}},y.injectController=({config:n,zonosApiKey:o})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=n.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=n.checkoutSettings.placeOrderButtonSelector;d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=n,s.zonosApiKey=o,s.addEventListener("stripeInitEvent",(async n=>{const{detail:o}=n;e("loading Stripe");const r=await(async(...e)=>{c=!0;const t=Date.now();return l.then((n=>((e,t,n)=>{if(null===e)return null;const o=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(o,n),o})(n,e,t)))})(o.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),d.zonosController=s,e("Zonos controller injected!")},y.injectSentryScript=()=>{const n="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${n}"]`))return void e("Sentry script already exists in the document","warn");const o=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=n,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({allowUrls:[/js\.zonos\.com\/dist\/scripts/],dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${d.version}`,tracesSampler:({transactionContext:e})=>"pageload"===e.op?1:.25})},o.appendChild(r)},y.injectScript=({fallBackDomain:n,isModule:o,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");o?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(n&&d.injectScript({isModule:o,scriptDomain:n,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},y.injectZonosCdn=()=>{d.injectScript({fallBackDomain:u,isModule:!0,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),d.injectScript({fallBackDomain:u,isModule:!1,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({fallBackDomain:n,stylesheetDomain:o,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${a}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${o}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(o);s?(n&&s&&d.injectStylesheet({stylesheetDomain:n,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(d.injectStylesheet({fallBackDomain:u,stylesheetDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${p}"]`);for(let t=0;t<e.length;t++){const n=e[t];if(n&&!h.test(n.href))return n}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=p,t.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${p}/inter/inter.css`,t.appendChild(o),e("Zonos font injected!")},y.setupGoogleFont=e=>{var t;null===(t=d.zonosController)||void 0===t||t.setupGoogleFont(e)},y.injectSupportGoogleFont=t=>{var n;e(`[FONT] injecting ${t}`);const o=null===(n=t.match(/family=(.*?):/))||void 0===n?void 0:n[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${m}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=m,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${o} font injected!`)},window.Zonos=y})();
@@ -1 +1 @@
1
- (function(){"use strict";const e=(e,t,...n)=>{var o,r;if(!(!!(null===(o=window.Zonos)||void 0===o?void 0:o.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...n));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,...n);break;case"info":i.info(e,...n);break;case"error":i.error(e,...n);break;default:i.groupCollapsed(e,...n),i.trace(),i.groupEnd()}},t=(t,...n)=>{e(t,"error",...n)},n="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,r="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let s=null;const i=e=>(null!==s||(s=new Promise(((s,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(r),window.Stripe)s(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${n}"]`);for(let t=0;t<e.length;t++){const n=e[t];if(n&&o.test(n.src))return n}return null})();l&&e?console.warn(r):l||(l=(e=>{const o=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src=`${n}${o}`;const s=document.head||document.body;return s?(s.appendChild(r),r):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?s(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 s(null)}))),s),l=Promise.resolve().then((()=>i(null)));let c=!1;l.catch((e=>{c||console.warn(e)}));var d;const a=(()=>{const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:n}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,n=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),o=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:o,isWhiteListed:n}})({loadScriptSrc:null==e?void 0:e.src});return n?t:null})()||"https://v1.3.12-alpha.2.js.zonos.com",u="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.12-alpha.2",p="https://rsms.me",m="https://fonts.googleapis.com",h=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}d=y,y.doneInit=!1,y.debug=!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.isBigCommerce=!1,y.internationalHideSelector="",y.zonosQaUrl=null,y.version="v1.3.12-alpha.2",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:n,checkoutSettings:o,currencyConverter:r,helloSettings:s,storeId:i,zonosApiKey:l})=>{d.doneInit||(e(`====== ZONOS DEBUG MODE: on (${d.version}) ======`),l?(d.zonosApiKey=l,d.storeId=i,e("init zonos"),d.injectSentryScript(),d.injectZonosCdn(),d.injectZonosCss(),d.injectFonts(),d.injectController({config:{appearance:n,checkoutSettings:o,currencyConverter:r,helloSettings:s},zonosApiKey:l}),d.doneInit=!0):t("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},y.showNotification=e=>{var t;null===(t=d.zonosController)||void 0===t||t.showNotification(e)},y.updateOrganizationName=e=>{var t;null===(t=d.zonosController)||void 0===t||t.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:n})=>{if(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)}},y.injectController=({config:n,zonosApiKey:o})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=n.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=n.checkoutSettings.placeOrderButtonSelector;d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=n,s.zonosApiKey=o,s.addEventListener("stripeInitEvent",(async n=>{const{detail:o}=n;e("loading Stripe");const r=await(async(...e)=>{c=!0;const t=Date.now();return l.then((n=>((e,t,n)=>{if(null===e)return null;const o=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(o,n),o})(n,e,t)))})(o.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),d.zonosController=s,e("Zonos controller injected!")},y.injectSentryScript=()=>{const n="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${n}"]`))return void e("Sentry script already exists in the document","warn");const o=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=n,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({allowUrls:[/js\.zonos\.com\/dist\/scripts/],dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${d.version}`,tracesSampler:({transactionContext:e})=>"pageload"===e.op?1:.25})},o.appendChild(r)},y.injectScript=({fallBackDomain:n,isModule:o,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");o?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(n&&d.injectScript({isModule:o,scriptDomain:n,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},y.injectZonosCdn=()=>{d.injectScript({fallBackDomain:u,isModule:!0,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),d.injectScript({fallBackDomain:u,isModule:!1,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({fallBackDomain:n,stylesheetDomain:o,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${a}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${o}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(o);s?(n&&s&&d.injectStylesheet({stylesheetDomain:n,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(d.injectStylesheet({fallBackDomain:u,stylesheetDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${p}"]`);for(let t=0;t<e.length;t++){const n=e[t];if(n&&!h.test(n.href))return n}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=p,t.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${p}/inter/inter.css`,t.appendChild(o),e("Zonos font injected!")},y.setupGoogleFont=e=>{var t;null===(t=d.zonosController)||void 0===t||t.setupGoogleFont(e)},y.injectSupportGoogleFont=t=>{var n;e(`[FONT] injecting ${t}`);const o=null===(n=t.match(/family=(.*?):/))||void 0===n?void 0:n[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${m}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=m,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${o} font injected!`)},exports.Zonos=y})();
1
+ (function(){"use strict";const e=(e,t,...n)=>{var o,r;if(!(!!(null===(o=window.Zonos)||void 0===o?void 0:o.debug)||!!window.location.search.match(/\?.*(&*)zonosDebug=1/)))return void("error"===t&&console.error(e,...n));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,...n);break;case"info":i.info(e,...n);break;case"error":i.error(e,...n);break;default:i.groupCollapsed(e,...n),i.trace(),i.groupEnd()}},t=(t,...n)=>{e(t,"error",...n)},n="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,r="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let s=null;const i=e=>(null!==s||(s=new Promise(((s,i)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(r),window.Stripe)s(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${n}"]`);for(let t=0;t<e.length;t++){const n=e[t];if(n&&o.test(n.src))return n}return null})();l&&e?console.warn(r):l||(l=(e=>{const o=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",r=document.createElement("script");r.src=`${n}${o}`;const s=document.head||document.body;return s?(s.appendChild(r),r):(t("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?s(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 s(null)}))),s),l=Promise.resolve().then((()=>i(null)));let c=!1;l.catch((e=>{c||console.warn(e)}));var d;const a=(()=>{const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:t,isWhiteListed:n}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const t=new URL(e).origin,n=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>t.includes(e))),o=["qa.js.zonos.com"].some((e=>t.includes(e)));return{currentLoadScriptUrl:t,isForceLoadVersionDomain:o,isWhiteListed:n}})({loadScriptSrc:null==e?void 0:e.src});return n?t:null})()||"https://v1.3.12-alpha.3.js.zonos.com",u="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.12-alpha.3",p="https://rsms.me",m="https://fonts.googleapis.com",h=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class y{}d=y,y.doneInit=!1,y.debug=!!window.location.search.match(/\?.*(&*)zonosDebug=1/),y.isBigCommerce=!1,y.internationalHideSelector="",y.zonosQaUrl=null,y.version="v1.3.12-alpha.3",y.modeAlerted=!1,y.tempCartData=null,y.getCurrentTimestamp=()=>(new Date).getTime(),y.zonosController=null,y.init=async({appearance:n,checkoutSettings:o,currencyConverter:r,helloSettings:s,storeId:i,zonosApiKey:l})=>{d.doneInit||(e(`====== ZONOS DEBUG MODE: on (${d.version}) ======`),l?(d.zonosApiKey=l,d.storeId=i,e("init zonos"),d.injectSentryScript(),d.injectZonosCdn(),d.injectZonosCss(),d.injectFonts(),d.injectController({config:{appearance:n,checkoutSettings:o,currencyConverter:r,helloSettings:s},zonosApiKey:l}),d.doneInit=!0):t("Missing Zonos API key"))},y.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},y.openHelloDialog=e=>{const t=document.querySelector("zonos-hello");t&&t.openHelloDialog(null==e||e)},y.showNotification=e=>{var t;null===(t=d.zonosController)||void 0===t||t.showNotification(e)},y.updateOrganizationName=e=>{var t;null===(t=d.zonosController)||void 0===t||t.updateOrganizationName(e)},y.disablePlaceOrderButtons=({autoEnable:e=!0,disable:t,placeOrderButtonSelector:n})=>{if(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)}},y.injectController=({config:n,zonosApiKey:o})=>{var r;if(document.querySelector("zonos-controller"))return;if(null===(r=n.checkoutSettings)||void 0===r?void 0:r.placeOrderButtonSelector){const e=n.checkoutSettings.placeOrderButtonSelector;d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e});new MutationObserver((()=>{d.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=n,s.zonosApiKey=o,s.addEventListener("stripeInitEvent",(async n=>{const{detail:o}=n;e("loading Stripe");const r=await(async(...e)=>{c=!0;const t=Date.now();return l.then((n=>((e,t,n)=>{if(null===e)return null;const o=e.apply(void 0,t);return((e,t)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:t})})(o,n),o})(n,e,t)))})(o.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),d.zonosController=s,e("Zonos controller injected!")},y.injectSentryScript=()=>{const n="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${n}"]`))return void e("Sentry script already exists in the document","warn");const o=document.head||document.body,r=document.createElement("script");r.crossOrigin="anonymous",r.src=n,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({allowUrls:[/js\.zonos\.com\/dist\/scripts/],dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${d.version}`,tracesSampler:({transactionContext:e})=>"pageload"===e.op?1:.25})},o.appendChild(r)},y.injectScript=({fallBackDomain:n,isModule:o,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");o?c.type="module":c.noModule=!0,c.src=i,c.crossOrigin="anonymous",c.onerror=()=>{/\/\/v\d+\./g.test(r)?(n&&d.injectScript({isModule:o,scriptDomain:n,theRestUrl:s}),t(`Failed to load ${c.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(c)},y.injectZonosCdn=()=>{d.injectScript({fallBackDomain:u,isModule:!0,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),d.injectScript({fallBackDomain:u,isModule:!1,scriptDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},y.injectStylesheet=({fallBackDomain:n,stylesheetDomain:o,theRestUrl:r})=>{const s=document.head||document.body,i=document.createElement("link");i.rel="preconnect",i.href=`${a}/`,s.appendChild(i);const l=document.createElement("link");l.rel="stylesheet",l.href=`${o}/${r}`,l.onerror=()=>{const s=/\/\/v\d+\./g.test(o);s?(n&&s&&d.injectStylesheet({stylesheetDomain:n,theRestUrl:r}),t(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},s.appendChild(l)},y.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(d.injectStylesheet({fallBackDomain:u,stylesheetDomain:a,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},y.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${p}"]`);for(let t=0;t<e.length;t++){const n=e[t];if(n&&!h.test(n.href))return n}return null})())return void e("Inter font already injected","warn");const t=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=p,t.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${p}/inter/inter.css`,t.appendChild(o),e("Zonos font injected!")},y.setupGoogleFont=e=>{var t;null===(t=d.zonosController)||void 0===t||t.setupGoogleFont(e)},y.injectSupportGoogleFont=t=>{var n;e(`[FONT] injecting ${t}`);const o=null===(n=t.match(/family=(.*?):/))||void 0===n?void 0:n[1],r=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${m}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=m,r.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${t}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=t,r.appendChild(s),e(`[FONT] ${o} font injected!`)},exports.Zonos=y})();
@@ -4,7 +4,7 @@ export declare const getLocaleMessages: ({ countryCode, localeTo, storeId, }: {
4
4
  localeTo?: string | undefined;
5
5
  storeId: number;
6
6
  }) => Promise<{
7
- countryCodes: string[];
7
+ countryCodes: string[] | null;
8
8
  countryCodesPageMessageLinks: {
9
9
  id: number;
10
10
  message: {
@@ -0,0 +1,4 @@
1
+ import type { LogLoadScriptRequestBody } from "../../../types/LogLoadScriptRequestBody";
2
+ type Params = Omit<LogLoadScriptRequestBody, 'href'>;
3
+ export declare const sendLoadScriptLog: (params: Params) => Promise<void>;
4
+ export {};
@@ -0,0 +1,11 @@
1
+ type LoadEventName = 'vercel' | 'jsdelivr';
2
+ export type LogLoadScriptRequestBody = {
3
+ cache: 'hit' | 'miss';
4
+ eventName: LoadEventName;
5
+ href: string;
6
+ loadTime: number;
7
+ metadata: Record<string, unknown>;
8
+ scriptLoadUrl: string;
9
+ storeId: number;
10
+ };
11
+ export {};
@@ -65,6 +65,17 @@ export declare const accountHolderType: {
65
65
  readonly Individual: "INDIVIDUAL";
66
66
  };
67
67
  export type AccountHolderType = (typeof accountHolderType)[keyof typeof accountHolderType];
68
+ export declare const accountingFeeType: {
69
+ readonly BugFix: "BUG_FIX";
70
+ readonly DutyTaxFee: "DUTY_TAX_FEE";
71
+ readonly General: "GENERAL";
72
+ readonly Item: "ITEM";
73
+ readonly LandedCostGuarantee: "LANDED_COST_GUARANTEE";
74
+ readonly MerchantProcessing: "MERCHANT_PROCESSING";
75
+ readonly Shipping: "SHIPPING";
76
+ readonly Transaction: "TRANSACTION";
77
+ };
78
+ export type AccountingFeeType = (typeof accountingFeeType)[keyof typeof accountingFeeType];
68
79
  export declare const addressMatchThreshold: {
69
80
  readonly ExactAdministrativeArea: "EXACT_ADMINISTRATIVE_AREA";
70
81
  readonly ExactCountry: "EXACT_COUNTRY";
@@ -82,11 +93,27 @@ export declare const addressResult: {
82
93
  readonly Valid: "VALID";
83
94
  };
84
95
  export type AddressResult = (typeof addressResult)[keyof typeof addressResult];
96
+ export declare const adjustmentRecordType: {
97
+ readonly ConnectAccountAdjustment: "CONNECT_ACCOUNT_ADJUSTMENT";
98
+ readonly CreditNote: "CREDIT_NOTE";
99
+ readonly InvoiceLineRecord: "INVOICE_LINE_RECORD";
100
+ };
101
+ export type AdjustmentRecordType = (typeof adjustmentRecordType)[keyof typeof adjustmentRecordType];
102
+ export declare const adjustmentType: {
103
+ readonly Charge: "CHARGE";
104
+ readonly Credit: "CREDIT";
105
+ };
106
+ export type AdjustmentType = (typeof adjustmentType)[keyof typeof adjustmentType];
85
107
  export declare const alcoholRecipientType: {
86
108
  readonly Consumer: "CONSUMER";
87
109
  readonly Licensee: "LICENSEE";
88
110
  };
89
111
  export type AlcoholRecipientType = (typeof alcoholRecipientType)[keyof typeof alcoholRecipientType];
112
+ export declare const allowedCharacterSets: {
113
+ readonly All: "ALL";
114
+ readonly Latin: "LATIN";
115
+ };
116
+ export type AllowedCharacterSets = (typeof allowedCharacterSets)[keyof typeof allowedCharacterSets];
90
117
  export type AmountRange = {
91
118
  max?: InputMaybe<Scalars['Decimal']['input']>;
92
119
  min?: InputMaybe<Scalars['Decimal']['input']>;
@@ -870,18 +897,9 @@ export declare const credentialProvider: {
870
897
  export type CredentialProvider = (typeof credentialProvider)[keyof typeof credentialProvider];
871
898
  export declare const creditBehaviorTypeCode: {
872
899
  readonly CreditAccount: "CREDIT_ACCOUNT";
873
- readonly CreditInvoice: "CREDIT_INVOICE";
874
900
  readonly RefundPayment: "REFUND_PAYMENT";
875
901
  };
876
902
  export type CreditBehaviorTypeCode = (typeof creditBehaviorTypeCode)[keyof typeof creditBehaviorTypeCode];
877
- export declare const creditNoteStatusCode: {
878
- readonly Failed: "FAILED";
879
- readonly Issued: "ISSUED";
880
- readonly Pending: "PENDING";
881
- readonly Processed: "PROCESSED";
882
- readonly Voided: "VOIDED";
883
- };
884
- export type CreditNoteStatusCode = (typeof creditNoteStatusCode)[keyof typeof creditNoteStatusCode];
885
903
  export declare const creditReasonTypeCode: {
886
904
  readonly Duplicate: "DUPLICATE";
887
905
  readonly Fraudulent: "FRAUDULENT";
@@ -1377,6 +1395,11 @@ export declare const inclusivePriceSettingStatus: {
1377
1395
  readonly Enabled: "ENABLED";
1378
1396
  };
1379
1397
  export type InclusivePriceSettingStatus = (typeof inclusivePriceSettingStatus)[keyof typeof inclusivePriceSettingStatus];
1398
+ export declare const inclusivePriceStatus: {
1399
+ readonly Active: "ACTIVE";
1400
+ readonly Inactive: "INACTIVE";
1401
+ };
1402
+ export type InclusivePriceStatus = (typeof inclusivePriceStatus)[keyof typeof inclusivePriceStatus];
1380
1403
  export declare const incotermCode: {
1381
1404
  readonly Cif: "CIF";
1382
1405
  readonly Custom: "CUSTOM";
@@ -1438,13 +1461,6 @@ export declare const invoiceLanguageCode: {
1438
1461
  readonly ZhTw: "ZH_TW";
1439
1462
  };
1440
1463
  export type InvoiceLanguageCode = (typeof invoiceLanguageCode)[keyof typeof invoiceLanguageCode];
1441
- export declare const invoiceLineRecordStatusCode: {
1442
- readonly Failed: "FAILED";
1443
- readonly Pending: "PENDING";
1444
- readonly Processed: "PROCESSED";
1445
- readonly Voided: "VOIDED";
1446
- };
1447
- export type InvoiceLineRecordStatusCode = (typeof invoiceLineRecordStatusCode)[keyof typeof invoiceLineRecordStatusCode];
1448
1464
  export declare const invoiceStatus: {
1449
1465
  readonly Received: "RECEIVED";
1450
1466
  readonly Reconciled: "RECONCILED";
@@ -1892,6 +1908,16 @@ export declare const pddpAmountType: {
1892
1908
  readonly SurchargeValue: "SURCHARGE_VALUE";
1893
1909
  };
1894
1910
  export type PddpAmountType = (typeof pddpAmountType)[keyof typeof pddpAmountType];
1911
+ export declare const pddpCountrySpecStatus: {
1912
+ readonly Active: "ACTIVE";
1913
+ readonly Disabled: "DISABLED";
1914
+ };
1915
+ export type PddpCountrySpecStatus = (typeof pddpCountrySpecStatus)[keyof typeof pddpCountrySpecStatus];
1916
+ export declare const pddpStatus: {
1917
+ readonly Active: "ACTIVE";
1918
+ readonly Disabled: "DISABLED";
1919
+ };
1920
+ export type PddpStatus = (typeof pddpStatus)[keyof typeof pddpStatus];
1895
1921
  export declare const pickupBuildingType: {
1896
1922
  readonly Apartment: "APARTMENT";
1897
1923
  readonly Building: "BUILDING";
@@ -1913,6 +1939,13 @@ export declare const pickupCategory: {
1913
1939
  readonly SameDayCity: "SAME_DAY_CITY";
1914
1940
  };
1915
1941
  export type PickupCategory = (typeof pickupCategory)[keyof typeof pickupCategory];
1942
+ export declare const processingStatusCode: {
1943
+ readonly Failed: "FAILED";
1944
+ readonly Pending: "PENDING";
1945
+ readonly Processed: "PROCESSED";
1946
+ readonly Voided: "VOIDED";
1947
+ };
1948
+ export type ProcessingStatusCode = (typeof processingStatusCode)[keyof typeof processingStatusCode];
1916
1949
  export declare const propertyType: {
1917
1950
  readonly Commercial: "COMMERCIAL";
1918
1951
  readonly Residental: "RESIDENTAL";
@@ -2109,6 +2142,11 @@ export declare const stripePriceBillingScheme: {
2109
2142
  readonly Tiered: "TIERED";
2110
2143
  };
2111
2144
  export type StripePriceBillingScheme = (typeof stripePriceBillingScheme)[keyof typeof stripePriceBillingScheme];
2145
+ export declare const stripePriceType: {
2146
+ readonly OneTime: "ONE_TIME";
2147
+ readonly Recurring: "RECURRING";
2148
+ };
2149
+ export type StripePriceType = (typeof stripePriceType)[keyof typeof stripePriceType];
2112
2150
  export declare const stripeSubscriptionStatus: {
2113
2151
  readonly Active: "ACTIVE";
2114
2152
  readonly Canceled: "CANCELED";
@@ -41,6 +41,19 @@ export const accountHolderType = {
41
41
 
42
42
  export type AccountHolderType =
43
43
  (typeof accountHolderType)[keyof typeof accountHolderType];
44
+ export const accountingFeeType = {
45
+ BugFix: 'BUG_FIX',
46
+ DutyTaxFee: 'DUTY_TAX_FEE',
47
+ General: 'GENERAL',
48
+ Item: 'ITEM',
49
+ LandedCostGuarantee: 'LANDED_COST_GUARANTEE',
50
+ MerchantProcessing: 'MERCHANT_PROCESSING',
51
+ Shipping: 'SHIPPING',
52
+ Transaction: 'TRANSACTION',
53
+ } as const;
54
+
55
+ export type AccountingFeeType =
56
+ (typeof accountingFeeType)[keyof typeof accountingFeeType];
44
57
 
45
58
  export const addressMatchThreshold = {
46
59
  ExactAdministrativeArea: 'EXACT_ADMINISTRATIVE_AREA',
@@ -62,6 +75,21 @@ export const addressResult = {
62
75
  } as const;
63
76
 
64
77
  export type AddressResult = (typeof addressResult)[keyof typeof addressResult];
78
+ export const adjustmentRecordType = {
79
+ ConnectAccountAdjustment: 'CONNECT_ACCOUNT_ADJUSTMENT',
80
+ CreditNote: 'CREDIT_NOTE',
81
+ InvoiceLineRecord: 'INVOICE_LINE_RECORD',
82
+ } as const;
83
+
84
+ export type AdjustmentRecordType =
85
+ (typeof adjustmentRecordType)[keyof typeof adjustmentRecordType];
86
+ export const adjustmentType = {
87
+ Charge: 'CHARGE',
88
+ Credit: 'CREDIT',
89
+ } as const;
90
+
91
+ export type AdjustmentType =
92
+ (typeof adjustmentType)[keyof typeof adjustmentType];
65
93
  export const alcoholRecipientType = {
66
94
  Consumer: 'CONSUMER',
67
95
  Licensee: 'LICENSEE',
@@ -69,6 +97,13 @@ export const alcoholRecipientType = {
69
97
 
70
98
  export type AlcoholRecipientType =
71
99
  (typeof alcoholRecipientType)[keyof typeof alcoholRecipientType];
100
+ export const allowedCharacterSets = {
101
+ All: 'ALL',
102
+ Latin: 'LATIN',
103
+ } as const;
104
+
105
+ export type AllowedCharacterSets =
106
+ (typeof allowedCharacterSets)[keyof typeof allowedCharacterSets];
72
107
  export type AmountRange = {
73
108
  max?: InputMaybe<Scalars['Decimal']['input']>;
74
109
  min?: InputMaybe<Scalars['Decimal']['input']>;
@@ -455,6 +490,7 @@ export const collectUploadStatus = {
455
490
 
456
491
  export type CollectUploadStatus =
457
492
  (typeof collectUploadStatus)[keyof typeof collectUploadStatus];
493
+
458
494
  export const connectTransferOriginType = {
459
495
  Connect: 'CONNECT',
460
496
  Platform: 'PLATFORM',
@@ -973,23 +1009,12 @@ export type CredentialProvider =
973
1009
  (typeof credentialProvider)[keyof typeof credentialProvider];
974
1010
  export const creditBehaviorTypeCode = {
975
1011
  CreditAccount: 'CREDIT_ACCOUNT',
976
- CreditInvoice: 'CREDIT_INVOICE',
977
1012
  RefundPayment: 'REFUND_PAYMENT',
978
1013
  } as const;
979
1014
 
980
1015
  export type CreditBehaviorTypeCode =
981
1016
  (typeof creditBehaviorTypeCode)[keyof typeof creditBehaviorTypeCode];
982
1017
 
983
- export const creditNoteStatusCode = {
984
- Failed: 'FAILED',
985
- Issued: 'ISSUED',
986
- Pending: 'PENDING',
987
- Processed: 'PROCESSED',
988
- Voided: 'VOIDED',
989
- } as const;
990
-
991
- export type CreditNoteStatusCode =
992
- (typeof creditNoteStatusCode)[keyof typeof creditNoteStatusCode];
993
1018
  export const creditReasonTypeCode = {
994
1019
  Duplicate: 'DUPLICATE',
995
1020
  Fraudulent: 'FRAUDULENT',
@@ -1597,6 +1622,13 @@ export const inclusivePriceSettingStatus = {
1597
1622
  export type InclusivePriceSettingStatus =
1598
1623
  (typeof inclusivePriceSettingStatus)[keyof typeof inclusivePriceSettingStatus];
1599
1624
 
1625
+ export const inclusivePriceStatus = {
1626
+ Active: 'ACTIVE',
1627
+ Inactive: 'INACTIVE',
1628
+ } as const;
1629
+
1630
+ export type InclusivePriceStatus =
1631
+ (typeof inclusivePriceStatus)[keyof typeof inclusivePriceStatus];
1600
1632
  export const incotermCode = {
1601
1633
  Cif: 'CIF',
1602
1634
  Custom: 'CUSTOM',
@@ -1665,15 +1697,6 @@ export const invoiceLanguageCode = {
1665
1697
  export type InvoiceLanguageCode =
1666
1698
  (typeof invoiceLanguageCode)[keyof typeof invoiceLanguageCode];
1667
1699
 
1668
- export const invoiceLineRecordStatusCode = {
1669
- Failed: 'FAILED',
1670
- Pending: 'PENDING',
1671
- Processed: 'PROCESSED',
1672
- Voided: 'VOIDED',
1673
- } as const;
1674
-
1675
- export type InvoiceLineRecordStatusCode =
1676
- (typeof invoiceLineRecordStatusCode)[keyof typeof invoiceLineRecordStatusCode];
1677
1700
  export const invoiceStatus = {
1678
1701
  Received: 'RECEIVED',
1679
1702
  Reconciled: 'RECONCILED',
@@ -2239,6 +2262,21 @@ export const pddpAmountType = {
2239
2262
  export type PddpAmountType =
2240
2263
  (typeof pddpAmountType)[keyof typeof pddpAmountType];
2241
2264
 
2265
+ export const pddpCountrySpecStatus = {
2266
+ Active: 'ACTIVE',
2267
+ Disabled: 'DISABLED',
2268
+ } as const;
2269
+
2270
+ export type PddpCountrySpecStatus =
2271
+ (typeof pddpCountrySpecStatus)[keyof typeof pddpCountrySpecStatus];
2272
+
2273
+ export const pddpStatus = {
2274
+ Active: 'ACTIVE',
2275
+ Disabled: 'DISABLED',
2276
+ } as const;
2277
+
2278
+ export type PddpStatus = (typeof pddpStatus)[keyof typeof pddpStatus];
2279
+
2242
2280
  export const pickupBuildingType = {
2243
2281
  Apartment: 'APARTMENT',
2244
2282
  Building: 'BUILDING',
@@ -2264,6 +2302,15 @@ export const pickupCategory = {
2264
2302
 
2265
2303
  export type PickupCategory =
2266
2304
  (typeof pickupCategory)[keyof typeof pickupCategory];
2305
+ export const processingStatusCode = {
2306
+ Failed: 'FAILED',
2307
+ Pending: 'PENDING',
2308
+ Processed: 'PROCESSED',
2309
+ Voided: 'VOIDED',
2310
+ } as const;
2311
+
2312
+ export type ProcessingStatusCode =
2313
+ (typeof processingStatusCode)[keyof typeof processingStatusCode];
2267
2314
  export const propertyType = {
2268
2315
  Commercial: 'COMMERCIAL',
2269
2316
  Residental: 'RESIDENTAL',
@@ -2529,6 +2576,13 @@ export const stripePriceBillingScheme = {
2529
2576
 
2530
2577
  export type StripePriceBillingScheme =
2531
2578
  (typeof stripePriceBillingScheme)[keyof typeof stripePriceBillingScheme];
2579
+ export const stripePriceType = {
2580
+ OneTime: 'ONE_TIME',
2581
+ Recurring: 'RECURRING',
2582
+ } as const;
2583
+
2584
+ export type StripePriceType =
2585
+ (typeof stripePriceType)[keyof typeof stripePriceType];
2532
2586
  export const stripeSubscriptionStatus = {
2533
2587
  Active: 'ACTIVE',
2534
2588
  Canceled: 'CANCELED',
@@ -551,7 +551,7 @@ export type GetAudienceByAspectKeyQuery = {
551
551
  };
552
552
  export type LocaleCountryMessagesQuery = {
553
553
  locale_countryCodesPage: Array<{
554
- countryCodes: Array<string>;
554
+ countryCodes: Array<string> | null;
555
555
  countryCodesPageMessageLinks: Array<{
556
556
  id: number;
557
557
  message: {
@@ -580,6 +580,14 @@ export type CreateErrorEventMutation = {
580
580
  }>;
581
581
  } | null;
582
582
  };
583
+ export type CreateScriptLoadEventMutation = {
584
+ insert_usage_scriptLoadEvent: {
585
+ affected_rows: number;
586
+ returning: Array<{
587
+ id: number;
588
+ }>;
589
+ } | null;
590
+ };
583
591
  export type AllSettingsQuery = {
584
592
  bigcommerce_settings: Array<{
585
593
  authToken: string;
@@ -722,6 +730,9 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
722
730
  CreateErrorEvent(variables?: {
723
731
  [x: string]: never;
724
732
  } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateErrorEventMutation>;
733
+ CreateScriptLoadEvent(variables?: {
734
+ [x: string]: never;
735
+ } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<CreateScriptLoadEventMutation>;
725
736
  DeleteAllStoreReserveOrders(variables?: {
726
737
  [x: string]: never;
727
738
  } | undefined, requestHeaders?: GraphQLClientRequestHeaders): Promise<DeleteAllStoreReserveOrdersMutation>;
@@ -554,7 +554,7 @@ export type GetAudienceByAspectKeyQuery = {
554
554
 
555
555
  export type LocaleCountryMessagesQuery = {
556
556
  locale_countryCodesPage: Array<{
557
- countryCodes: Array<string>;
557
+ countryCodes: Array<string> | null;
558
558
  countryCodesPageMessageLinks: Array<{
559
559
  id: number;
560
560
  message: {
@@ -584,6 +584,13 @@ export type CreateErrorEventMutation = {
584
584
  } | null;
585
585
  };
586
586
 
587
+ export type CreateScriptLoadEventMutation = {
588
+ insert_usage_scriptLoadEvent: {
589
+ affected_rows: number;
590
+ returning: Array<{ id: number }>;
591
+ } | null;
592
+ };
593
+
587
594
  export type AllSettingsQuery = {
588
595
  bigcommerce_settings: Array<{
589
596
  authToken: string;
@@ -754,6 +761,20 @@ export function getSdk(
754
761
  'mutation',
755
762
  );
756
763
  },
764
+ CreateScriptLoadEvent(
765
+ variables?: { [x: string]: never },
766
+ requestHeaders?: GraphQLClientRequestHeaders,
767
+ ): Promise<CreateScriptLoadEventMutation> {
768
+ return withWrapper(
769
+ wrappedRequestHeaders =>
770
+ client.request<CreateScriptLoadEventMutation>('', variables, {
771
+ ...requestHeaders,
772
+ ...wrappedRequestHeaders,
773
+ }),
774
+ 'CreateScriptLoadEvent',
775
+ 'mutation',
776
+ );
777
+ },
757
778
  DeleteAllStoreReserveOrders(
758
779
  variables?: { [x: string]: never },
759
780
  requestHeaders?: GraphQLClientRequestHeaders,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zonos/elements",
3
- "version": "1.3.12-alpha.2",
3
+ "version": "1.3.12-alpha.3",
4
4
  "description": "Zonos component UI for Stripe elements",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.cjs.js",