@imtbl/sdk 1.72.3 → 1.72.4
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.
- package/dist/{blockchain_data-DvPyiBRf.js → blockchain_data-DwoW8EXa.js} +2 -2
- package/dist/blockchain_data.js +3 -3
- package/dist/browser/checkout/{AddTokensWidget-Cd3qo2rd.js → AddTokensWidget-XEOxeUOK.js} +213 -76
- package/dist/browser/checkout/{BridgeWidget-C0K3XDa5.js → BridgeWidget-Clj0rpb5.js} +9 -9
- package/dist/browser/checkout/{CommerceWidget-CKlYpyGF.js → CommerceWidget-DKW0PiJu.js} +17 -17
- package/dist/browser/checkout/{CryptoFiatProvider-vm_ZGIOJ.js → CryptoFiatProvider-DPaok_1B.js} +1 -1
- package/dist/browser/checkout/{EllipsizedText-CVEcqNyt.js → EllipsizedText-CGGaR7N1.js} +1 -1
- package/dist/browser/checkout/{FeesBreakdown-Dhwja-Xi.js → FeesBreakdown-CrCYjQsN.js} +1 -1
- package/dist/browser/checkout/{HandoverContent-gGGlP5Jb.js → HandoverContent-5SX9_Xiq.js} +1 -1
- package/dist/browser/checkout/{OnRampWidget-BCmYwzrB.js → OnRampWidget-RGyz_t74.js} +3 -3
- package/dist/browser/checkout/{SaleWidget-BK80oZNP.js → SaleWidget-CJySbSv8.js} +14 -14
- package/dist/browser/checkout/{SpendingCapHero-B_qP6_GT.js → SpendingCapHero-ezwxfLmM.js} +1 -1
- package/dist/browser/checkout/{SwapWidget-16-uIEGy.js → SwapWidget-CyxxcafB.js} +9 -9
- package/dist/browser/checkout/{TokenImage-CXpwbtYw.js → TokenImage-BA0u7Bgh.js} +1 -1
- package/dist/browser/checkout/{TopUpView-4C8RtW0d.js → TopUpView-B1a8J1mC.js} +3 -3
- package/dist/browser/checkout/{WalletApproveHero-BHx4d3rD.js → WalletApproveHero-DAITG5M0.js} +3 -3
- package/dist/browser/checkout/{WalletWidget-B7osmYCN.js → WalletWidget-BxGPxriO.js} +4 -4
- package/dist/browser/checkout/{auto-track-Kc3XJX2W.js → auto-track-Dk9WOiOp.js} +1 -1
- package/dist/browser/checkout/{index-B5n2sVY5.js → index-C6lPs4SY.js} +1 -1
- package/dist/browser/checkout/{index-B4Khh83O.js → index-CFuDYPeI.js} +171 -21
- package/dist/browser/checkout/{index-CJxVZz84.js → index-CcjuvsGM.js} +1 -1
- package/dist/browser/checkout/{index-BTf7h58Q.js → index-CyfOrvHW.js} +1 -1
- package/dist/browser/checkout/{index-7ghIApx2.js → index-D0Tv6Vsb.js} +1 -1
- package/dist/browser/checkout/{index-Cn-kFZ7i.js → index-DFz090oi.js} +1 -1
- package/dist/browser/checkout/{index-va7BEk4D.js → index-Dok96qDW.js} +1 -1
- package/dist/browser/checkout/{index-C-L5gV4N.js → index-Oc5pNJz9.js} +2 -2
- package/dist/browser/checkout/{index-Df7mF_nW.js → index-mrxzvJu8.js} +1 -1
- package/dist/browser/checkout/{index.umd-BBbq_zC1.js → index.umd-rVoY7U1T.js} +1 -1
- package/dist/browser/checkout/sdk.js +4 -4
- package/dist/browser/checkout/{useInterval-D8-kI6Fg.js → useInterval-BQ8_ct2v.js} +1 -1
- package/dist/browser/checkout/widgets-esm.js +1 -1
- package/dist/browser/checkout/widgets.js +388 -101
- package/dist/{checkout-CBRPHN1f.js → checkout-D-ig8t-E.js} +5 -5
- package/dist/checkout.js +5 -5
- package/dist/{config-DoJf2Syj.js → config-C-rchxTd.js} +1 -1
- package/dist/config.js +1 -1
- package/dist/{index-Cg1kxnNw.js → index-BspPScW3.js} +1 -1
- package/dist/{index-Cjaq0k1k.js → index-C1wrSED_.js} +1 -1
- package/dist/{index-Om7yPXE2.js → index-Ca_d7QJz.js} +4 -4
- package/dist/{index-CyhoA7VY.js → index-D1X1KVtg.js} +3 -3
- package/dist/{index-FqlKMsTJ.js → index-D8z8i8pI.js} +1 -1
- package/dist/{index-CQfHEdER.js → index-Day0RG9r.js} +1 -1
- package/dist/index.browser.js +4 -4
- package/dist/index.cjs +7 -7
- package/dist/index.js +14 -14
- package/dist/{minting_backend-BlJzwenR.js → minting_backend-CBrr0eKZ.js} +3 -3
- package/dist/minting_backend.js +5 -5
- package/dist/{orderbook-BFcwxjH4.js → orderbook-LamTiNG_.js} +1 -1
- package/dist/orderbook.js +2 -2
- package/dist/{passport-DAmHP4hS.js → passport-DiEqCqiQ.js} +3 -3
- package/dist/passport.js +4 -4
- package/dist/{webhook-Dc6FTvfO.js → webhook-BVvgyEsm.js} +1 -1
- package/dist/webhook.js +2 -2
- package/dist/{x-Do6xicJY.js → x-DvF2aGDZ.js} +3 -3
- package/dist/x.js +4 -4
- package/package.json +1 -1
|
@@ -3930,6 +3930,153 @@ if (!isTestEnvironment$1()) {
|
|
|
3930
3930
|
errorBoundary$1(getGlobalisedValue$2('startFlushing', startFlushing$1))();
|
|
3931
3931
|
}
|
|
3932
3932
|
|
|
3933
|
+
/**
|
|
3934
|
+
* Track an event and it's performance. Works similarly to `track`, but also includes a duration.
|
|
3935
|
+
* @param moduleName Name of the module being tracked (for namespacing purposes), e.g. `passport`
|
|
3936
|
+
* @param eventName Name of the event, e.g. `clickItem`
|
|
3937
|
+
* @param duration Duration of the event in milliseconds, e.g. `1000`
|
|
3938
|
+
* @param properties Other properties to be sent with the event, other than duration
|
|
3939
|
+
*
|
|
3940
|
+
* @example
|
|
3941
|
+
* ```ts
|
|
3942
|
+
* trackDuration("passport", "performTransaction", 1000);
|
|
3943
|
+
* trackDuration("passport", "performTransaction", 1000, { transationType: "transfer" });
|
|
3944
|
+
* ```
|
|
3945
|
+
*/
|
|
3946
|
+
const trackDuration = (moduleName, eventName, duration, properties) => track$1(moduleName, eventName, {
|
|
3947
|
+
...(properties || {}),
|
|
3948
|
+
duration: Math.round(duration),
|
|
3949
|
+
});
|
|
3950
|
+
|
|
3951
|
+
// UUID not playing well with browser, using this for now
|
|
3952
|
+
const generateFlowId = () => {
|
|
3953
|
+
const s4 = () => Math.floor((1 + Math.random()) * 0x10000)
|
|
3954
|
+
.toString(16)
|
|
3955
|
+
.substring(1);
|
|
3956
|
+
return `${s4()}${s4()}-${s4()}-${s4()}-${s4()}-${s4()}${s4()}${s4()}`;
|
|
3957
|
+
};
|
|
3958
|
+
|
|
3959
|
+
// Flow Tracking Functions
|
|
3960
|
+
// -----------------------------------
|
|
3961
|
+
// Write a function to take multiple objects as arguments, and merge them into one object
|
|
3962
|
+
const mergeProperties = (...args) => {
|
|
3963
|
+
const hasProperties = args.some((arg) => !!arg);
|
|
3964
|
+
if (!hasProperties) {
|
|
3965
|
+
return {};
|
|
3966
|
+
}
|
|
3967
|
+
let finalProperties = {};
|
|
3968
|
+
args.forEach((arg) => {
|
|
3969
|
+
if (arg) {
|
|
3970
|
+
finalProperties = {
|
|
3971
|
+
...finalProperties,
|
|
3972
|
+
...arg,
|
|
3973
|
+
};
|
|
3974
|
+
}
|
|
3975
|
+
});
|
|
3976
|
+
return finalProperties;
|
|
3977
|
+
};
|
|
3978
|
+
const cleanEventName = (eventName) => eventName.replace(/[^a-zA-Z0-9\s\-_]/g, '');
|
|
3979
|
+
const getEventName = (flowName, eventName) => `${flowName}_${cleanEventName(eventName)}`;
|
|
3980
|
+
const trackFlowFn = (moduleName, flowName, properties) => {
|
|
3981
|
+
// Track the start of the flow
|
|
3982
|
+
const flowId = generateFlowId();
|
|
3983
|
+
const flowStartTime = Date.now();
|
|
3984
|
+
// Flow tracking
|
|
3985
|
+
let currentStepCount = 0;
|
|
3986
|
+
let previousStepTime = 0;
|
|
3987
|
+
let flowProperties = {};
|
|
3988
|
+
const mergeFlowProps = (...args) => mergeProperties(flowProperties, ...args, {
|
|
3989
|
+
flowId,
|
|
3990
|
+
flowName,
|
|
3991
|
+
});
|
|
3992
|
+
// Set up flow properties
|
|
3993
|
+
flowProperties = mergeFlowProps(properties);
|
|
3994
|
+
const addFlowProperties = (newProperties) => {
|
|
3995
|
+
if (newProperties) {
|
|
3996
|
+
flowProperties = mergeFlowProps(newProperties);
|
|
3997
|
+
}
|
|
3998
|
+
};
|
|
3999
|
+
const addEvent = (eventName, eventProperties) => {
|
|
4000
|
+
const event = getEventName(flowName, eventName);
|
|
4001
|
+
// Calculate duration since previous step
|
|
4002
|
+
let duration = 0;
|
|
4003
|
+
const currentTime = performance.now();
|
|
4004
|
+
if (currentStepCount > 0) {
|
|
4005
|
+
duration = currentTime - previousStepTime;
|
|
4006
|
+
}
|
|
4007
|
+
const mergedProps = mergeFlowProps(eventProperties, {
|
|
4008
|
+
flowEventName: eventName,
|
|
4009
|
+
flowStep: currentStepCount,
|
|
4010
|
+
});
|
|
4011
|
+
trackDuration(moduleName, event, duration, mergedProps);
|
|
4012
|
+
// Increment counters
|
|
4013
|
+
currentStepCount++;
|
|
4014
|
+
previousStepTime = currentTime;
|
|
4015
|
+
};
|
|
4016
|
+
// Trigger a Start Event as a record of creating the flow
|
|
4017
|
+
addEvent('Start');
|
|
4018
|
+
return {
|
|
4019
|
+
details: {
|
|
4020
|
+
moduleName,
|
|
4021
|
+
flowName,
|
|
4022
|
+
flowId,
|
|
4023
|
+
flowStartTime,
|
|
4024
|
+
},
|
|
4025
|
+
addEvent: errorBoundary$1(addEvent),
|
|
4026
|
+
addFlowProperties: errorBoundary$1(addFlowProperties),
|
|
4027
|
+
};
|
|
4028
|
+
};
|
|
4029
|
+
/**
|
|
4030
|
+
* Track a flow of events, including the start and end of the flow.
|
|
4031
|
+
* Works similarly to `track`
|
|
4032
|
+
* @param moduleName Name of the module being tracked (for namespacing purposes), e.g. `passport`
|
|
4033
|
+
* @param flowName Name of the flow, e.g. `performTransaction`
|
|
4034
|
+
* @param properties Other properties to be sent with the event, other than duration
|
|
4035
|
+
*
|
|
4036
|
+
* @example
|
|
4037
|
+
* ```ts
|
|
4038
|
+
* const flow = trackFlow("passport", "performTransaction", { transationType: "transfer" });
|
|
4039
|
+
* // Do something...
|
|
4040
|
+
* flow.addEvent("clickItem");
|
|
4041
|
+
* // Do something...
|
|
4042
|
+
* flow.addFlowProperties({ item: "item1" });
|
|
4043
|
+
* flow.addEvent("guardianCheck", {"invisible": "true"});
|
|
4044
|
+
* // Do something...
|
|
4045
|
+
* flow.addEvent("guardianCheckComplete");
|
|
4046
|
+
* flow.end();
|
|
4047
|
+
* ```
|
|
4048
|
+
*/
|
|
4049
|
+
const trackFlow = errorBoundary$1(trackFlowFn);
|
|
4050
|
+
|
|
4051
|
+
const trackErrorFn = (moduleName, eventName, error, properties) => {
|
|
4052
|
+
const { message } = error;
|
|
4053
|
+
let stack = error.stack || '';
|
|
4054
|
+
const { cause } = error;
|
|
4055
|
+
if (cause instanceof Error) {
|
|
4056
|
+
stack = `${stack} \nCause: ${cause.message}\n ${cause.stack}`;
|
|
4057
|
+
}
|
|
4058
|
+
track$1(moduleName, `trackError_${eventName}`, {
|
|
4059
|
+
...(properties || {}),
|
|
4060
|
+
errorMessage: message,
|
|
4061
|
+
errorStack: stack,
|
|
4062
|
+
isTrackError: true,
|
|
4063
|
+
});
|
|
4064
|
+
};
|
|
4065
|
+
/**
|
|
4066
|
+
* Track an event and it's performance. Works similarly to `track`, but also includes a duration.
|
|
4067
|
+
* @param moduleName Name of the module being tracked (for namespacing purposes), e.g. `passport`
|
|
4068
|
+
* @param eventName Name of the event, e.g. `clickItem`
|
|
4069
|
+
* @param error Error object to be tracked
|
|
4070
|
+
* @param properties Other properties to be sent with the event, other than duration
|
|
4071
|
+
*
|
|
4072
|
+
* @example
|
|
4073
|
+
* ```ts
|
|
4074
|
+
* trackError("passport", "sendTransactionFailed", error);
|
|
4075
|
+
* trackError("passport", "getItemFailed", error, { otherProperty: "value" });
|
|
4076
|
+
* ```
|
|
4077
|
+
*/
|
|
4078
|
+
const trackError = errorBoundary$1(trackErrorFn);
|
|
4079
|
+
|
|
3933
4080
|
const setEnvironmentFn$1 = (env) => {
|
|
3934
4081
|
storeDetail$1(Detail$1.ENVIRONMENT, env);
|
|
3935
4082
|
};
|
|
@@ -135061,7 +135208,7 @@ function snapshot(proxyObject, handlePromise) {
|
|
|
135061
135208
|
|
|
135062
135209
|
const o$2=proxy({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),T$2={state:o$2,subscribe(e){return subscribe(o$2,()=>e(o$2))},push(e,t){e!==o$2.view&&(o$2.view=e,t&&(o$2.data=t),o$2.history.push(e));},reset(e){o$2.view=e,o$2.history=[e];},replace(e){o$2.history.length>1&&(o$2.history[o$2.history.length-1]=e,o$2.view=e);},goBack(){if(o$2.history.length>1){o$2.history.pop();const[e]=o$2.history.slice(-1);o$2.view=e;}},setData(e){o$2.data=e;}},a$4={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile(){return typeof window<"u"?Boolean(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)):!1},isAndroid(){return a$4.isMobile()&&navigator.userAgent.toLowerCase().includes("android")},isIos(){const e=navigator.userAgent.toLowerCase();return a$4.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl(e){return e.startsWith("http://")||e.startsWith("https://")},isArray(e){return Array.isArray(e)&&e.length>0},formatNativeUrl(e,t,s){if(a$4.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},formatUniversalUrl(e,t,s){if(!a$4.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);const i=encodeURIComponent(t);return `${n}wc?uri=${i}`},async wait(e){return new Promise(t=>{setTimeout(t,e);})},openHref(e,t){window.open(e,t,"noreferrer noopener");},setWalletConnectDeepLink(e,t){try{localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}));}catch{console.info("Unable to set WalletConnect deep link");}},setWalletConnectAndroidDeepLink(e){try{const[t]=e.split("?");localStorage.setItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}));}catch{console.info("Unable to set WalletConnect android deep link");}},removeWalletConnectDeepLink(){try{localStorage.removeItem(a$4.WALLETCONNECT_DEEPLINK_CHOICE);}catch{console.info("Unable to remove WalletConnect deep link");}},setModalVersionInStorage(){try{typeof localStorage<"u"&&localStorage.setItem(a$4.WCM_VERSION,"2.6.2");}catch{console.info("Unable to set Web3Modal version in storage");}},getWalletRouterData(){var e;const t=(e=T$2.state.data)==null?void 0:e.Wallet;if(!t)throw new Error('Missing "Wallet" view data');return t}},_$3=typeof location<"u"&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r$3=proxy({enabled:_$3,userSessionId:"",events:[],connectedWalletId:void 0}),R$5={state:r$3,subscribe(e){return subscribe(r$3.events,()=>e(snapshot(r$3.events[r$3.events.length-1])))},initialize(){r$3.enabled&&typeof(crypto==null?void 0:crypto.randomUUID)<"u"&&(r$3.userSessionId=crypto.randomUUID());},setConnectedWalletId(e){r$3.connectedWalletId=e;},click(e){if(r$3.enabled){const t={type:"CLICK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},track(e){if(r$3.enabled){const t={type:"TRACK",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}},view(e){if(r$3.enabled){const t={type:"VIEW",name:e.name,userSessionId:r$3.userSessionId,timestamp:Date.now(),data:e};r$3.events.push(t);}}},c$4=proxy({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p$9={state:c$4,subscribe(e){return subscribe(c$4,()=>e(c$4))},setChains(e){c$4.chains=e;},setWalletConnectUri(e){c$4.walletConnectUri=e;},setIsCustomDesktop(e){c$4.isCustomDesktop=e;},setIsCustomMobile(e){c$4.isCustomMobile=e;},setIsDataLoaded(e){c$4.isDataLoaded=e;},setIsUiLoaded(e){c$4.isUiLoaded=e;},setIsAuth(e){c$4.isAuth=e;}},W$3=proxy({projectId:"",mobileWallets:void 0,desktopWallets:void 0,walletImages:void 0,chains:void 0,enableAuthMode:!1,enableExplorer:!0,explorerExcludedWalletIds:void 0,explorerRecommendedWalletIds:void 0,termsOfServiceUrl:void 0,privacyPolicyUrl:void 0}),y$6={state:W$3,subscribe(e){return subscribe(W$3,()=>e(W$3))},setConfig(e){var t,s;R$5.initialize(),p$9.setChains(e.chains),p$9.setIsAuth(Boolean(e.enableAuthMode)),p$9.setIsCustomMobile(Boolean((t=e.mobileWallets)==null?void 0:t.length)),p$9.setIsCustomDesktop(Boolean((s=e.desktopWallets)==null?void 0:s.length)),a$4.setModalVersionInStorage(),Object.assign(W$3,e);}};var V$4=Object.defineProperty,D$7=Object.getOwnPropertySymbols,H$4=Object.prototype.hasOwnProperty,B$4=Object.prototype.propertyIsEnumerable,M$4=(e,t,s)=>t in e?V$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K$4=(e,t)=>{for(var s in t||(t={}))H$4.call(t,s)&&M$4(e,s,t[s]);if(D$7)for(var s of D$7(t))B$4.call(t,s)&&M$4(e,s,t[s]);return e};const L$5="https://explorer-api.walletconnect.com",E$4="wcm",O$6="js-2.6.2";async function w$5(e,t){const s=K$4({sdkType:E$4,sdkVersion:O$6},t),n=new URL(e,L$5);return n.searchParams.append("projectId",y$6.state.projectId),Object.entries(s).forEach(([i,l])=>{l&&n.searchParams.append(i,String(l));}),(await fetch(n)).json()}const m$6={async getDesktopListings(e){return w$5("/w3m/v1/getDesktopListings",e)},async getMobileListings(e){return w$5("/w3m/v1/getMobileListings",e)},async getInjectedListings(e){return w$5("/w3m/v1/getInjectedListings",e)},async getAllListings(e){return w$5("/w3m/v1/getAllListings",e)},getWalletImageUrl(e){return `${L$5}/w3m/v1/getWalletImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$6}`},getAssetImageUrl(e){return `${L$5}/w3m/v1/getAssetImage/${e}?projectId=${y$6.state.projectId}&sdkType=${E$4}&sdkVersion=${O$6}`}};var z$5=Object.defineProperty,j$4=Object.getOwnPropertySymbols,J$3=Object.prototype.hasOwnProperty,q$5=Object.prototype.propertyIsEnumerable,k$5=(e,t,s)=>t in e?z$5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F$5=(e,t)=>{for(var s in t||(t={}))J$3.call(t,s)&&k$5(e,s,t[s]);if(j$4)for(var s of j$4(t))q$5.call(t,s)&&k$5(e,s,t[s]);return e};const N$4=a$4.isMobile(),d$4=proxy({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),te$4={state:d$4,async getRecomendedWallets(){const{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=y$6.state;if(e==="NONE"||t==="ALL"&&!e)return d$4.recomendedWallets;if(a$4.isArray(e)){const s={recommendedIds:e.join(",")},{listings:n}=await m$6.getAllListings(s),i=Object.values(n);i.sort((l,v)=>{const b=e.indexOf(l.id),f=e.indexOf(v.id);return b-f}),d$4.recomendedWallets=i;}else {const{chains:s,isAuth:n}=p$9.state,i=s?.join(","),l=a$4.isArray(t),v={page:1,sdks:n?"auth_v1":void 0,entries:a$4.RECOMMENDED_WALLET_AMOUNT,chains:i,version:2,excludedIds:l?t.join(","):void 0},{listings:b}=N$4?await m$6.getMobileListings(v):await m$6.getDesktopListings(v);d$4.recomendedWallets=Object.values(b);}return d$4.recomendedWallets},async getWallets(e){const t=F$5({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=y$6.state,{recomendedWallets:i}=d$4;if(n==="ALL")return d$4.wallets;i.length?t.excludedIds=i.map(x=>x.id).join(","):a$4.isArray(s)&&(t.excludedIds=s.join(",")),a$4.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),p$9.state.isAuth&&(t.sdks="auth_v1");const{page:l,search:v}=e,{listings:b,total:f}=N$4?await m$6.getMobileListings(t):await m$6.getDesktopListings(t),A=Object.values(b),U=v?"search":"wallets";return d$4[U]={listings:[...d$4[U].listings,...A],total:f,page:l??1},{listings:A,total:f}},getWalletImageUrl(e){return m$6.getWalletImageUrl(e)},getAssetImageUrl(e){return m$6.getAssetImageUrl(e)},resetSearch(){d$4.search={listings:[],total:0,page:1};}},I$3=proxy({open:!1}),se$2={state:I$3,subscribe(e){return subscribe(I$3,()=>e(I$3))},async open(e){return new Promise(t=>{const{isUiLoaded:s,isDataLoaded:n}=p$9.state;if(a$4.removeWalletConnectDeepLink(),p$9.setWalletConnectUri(e?.uri),p$9.setChains(e?.chains),T$2.reset("ConnectWallet"),s&&n)I$3.open=!0,t();else {const i=setInterval(()=>{const l=p$9.state;l.isUiLoaded&&l.isDataLoaded&&(clearInterval(i),I$3.open=!0,t());},200);}})},close(){I$3.open=!1;}};var G$4=Object.defineProperty,$$3=Object.getOwnPropertySymbols,Q$6=Object.prototype.hasOwnProperty,X$4=Object.prototype.propertyIsEnumerable,S$4=(e,t,s)=>t in e?G$4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y$2=(e,t)=>{for(var s in t||(t={}))Q$6.call(t,s)&&S$4(e,s,t[s]);if($$3)for(var s of $$3(t))X$4.call(t,s)&&S$4(e,s,t[s]);return e};function Z$4(){return typeof matchMedia<"u"&&matchMedia("(prefers-color-scheme: dark)").matches}const C$2=proxy({themeMode:Z$4()?"dark":"light"}),ne$2={state:C$2,subscribe(e){return subscribe(C$2,()=>e(C$2))},setThemeConfig(e){const{themeMode:t,themeVariables:s}=e;t&&(C$2.themeMode=t),s&&(C$2.themeVariables=Y$2({},s));}},g$8=proxy({open:!1,message:"",variant:"success"}),oe$4={state:g$8,subscribe(e){return subscribe(g$8,()=>e(g$8))},openToast(e,t){g$8.open=!0,g$8.message=e,g$8.variant=t;},closeToast(){g$8.open=!1;}};
|
|
135063
135210
|
|
|
135064
|
-
let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-
|
|
135211
|
+
let d$3 = class d{constructor(e){this.openModal=se$2.open,this.closeModal=se$2.close,this.subscribeModal=se$2.subscribe,this.setTheme=ne$2.setThemeConfig,ne$2.setThemeConfig(e),y$6.setConfig(e),this.initUi();}async initUi(){if(typeof window<"u"){await import('./index-CcjuvsGM.js');const e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),p$9.setIsUiLoaded(!0);}}};
|
|
135065
135212
|
|
|
135066
135213
|
var index$1 = /*#__PURE__*/Object.freeze({
|
|
135067
135214
|
__proto__: null,
|
|
@@ -151902,7 +152049,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
151902
152049
|
return __generator(this, function (_b) {
|
|
151903
152050
|
switch (_b.label) {
|
|
151904
152051
|
case 0: return [4 /*yield*/, import(
|
|
151905
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152052
|
+
/* webpackChunkName: "auto-track" */ './auto-track-Dk9WOiOp.js')];
|
|
151906
152053
|
case 1:
|
|
151907
152054
|
autotrack = _b.sent();
|
|
151908
152055
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -151921,7 +152068,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
151921
152068
|
return __generator(this, function (_b) {
|
|
151922
152069
|
switch (_b.label) {
|
|
151923
152070
|
case 0: return [4 /*yield*/, import(
|
|
151924
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152071
|
+
/* webpackChunkName: "auto-track" */ './auto-track-Dk9WOiOp.js')];
|
|
151925
152072
|
case 1:
|
|
151926
152073
|
autotrack = _b.sent();
|
|
151927
152074
|
return [2 /*return*/, (_a = autotrack.link).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -151940,7 +152087,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
151940
152087
|
return __generator(this, function (_b) {
|
|
151941
152088
|
switch (_b.label) {
|
|
151942
152089
|
case 0: return [4 /*yield*/, import(
|
|
151943
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152090
|
+
/* webpackChunkName: "auto-track" */ './auto-track-Dk9WOiOp.js')];
|
|
151944
152091
|
case 1:
|
|
151945
152092
|
autotrack = _b.sent();
|
|
151946
152093
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -151959,7 +152106,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
151959
152106
|
return __generator(this, function (_b) {
|
|
151960
152107
|
switch (_b.label) {
|
|
151961
152108
|
case 0: return [4 /*yield*/, import(
|
|
151962
|
-
/* webpackChunkName: "auto-track" */ './auto-track-
|
|
152109
|
+
/* webpackChunkName: "auto-track" */ './auto-track-Dk9WOiOp.js')];
|
|
151963
152110
|
case 1:
|
|
151964
152111
|
autotrack = _b.sent();
|
|
151965
152112
|
return [2 /*return*/, (_a = autotrack.form).call.apply(_a, __spreadArray$1([this], args, false))];
|
|
@@ -152109,7 +152256,7 @@ var Analytics = /** @class */ (function (_super) {
|
|
|
152109
152256
|
return [2 /*return*/, []];
|
|
152110
152257
|
}
|
|
152111
152258
|
return [4 /*yield*/, import(
|
|
152112
|
-
/* webpackChunkName: "queryString" */ './index-
|
|
152259
|
+
/* webpackChunkName: "queryString" */ './index-CyfOrvHW.js')];
|
|
152113
152260
|
case 1:
|
|
152114
152261
|
queryString = (_a.sent()).queryString;
|
|
152115
152262
|
return [2 /*return*/, queryString(this, query)];
|
|
@@ -154813,7 +154960,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
154813
154960
|
case 0:
|
|
154814
154961
|
if (!hasTsubMiddleware(legacySettings)) return [3 /*break*/, 2];
|
|
154815
154962
|
return [4 /*yield*/, import(
|
|
154816
|
-
/* webpackChunkName: "tsub-middleware" */ './index-
|
|
154963
|
+
/* webpackChunkName: "tsub-middleware" */ './index-Dok96qDW.js').then(function (mod) {
|
|
154817
154964
|
return mod.tsubMiddleware(legacySettings.middlewareSettings.routingRules);
|
|
154818
154965
|
})];
|
|
154819
154966
|
case 1:
|
|
@@ -154826,7 +154973,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
154826
154973
|
tsubMiddleware = _d;
|
|
154827
154974
|
if (!(hasLegacyDestinations(legacySettings) || legacyIntegrationSources.length > 0)) return [3 /*break*/, 5];
|
|
154828
154975
|
return [4 /*yield*/, import(
|
|
154829
|
-
/* webpackChunkName: "ajs-destination" */ './index-
|
|
154976
|
+
/* webpackChunkName: "ajs-destination" */ './index-mrxzvJu8.js').then(function (mod) {
|
|
154830
154977
|
return mod.ajsDestinations(writeKey, legacySettings, analytics.integrations, opts, tsubMiddleware, legacyIntegrationSources);
|
|
154831
154978
|
})];
|
|
154832
154979
|
case 4:
|
|
@@ -154839,7 +154986,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
154839
154986
|
legacyDestinations = _e;
|
|
154840
154987
|
if (!legacySettings.legacyVideoPluginsEnabled) return [3 /*break*/, 8];
|
|
154841
154988
|
return [4 /*yield*/, import(
|
|
154842
|
-
/* webpackChunkName: "legacyVideos" */ './index-
|
|
154989
|
+
/* webpackChunkName: "legacyVideos" */ './index-Oc5pNJz9.js').then(function (mod) {
|
|
154843
154990
|
return mod.loadLegacyVideoPlugins(analytics);
|
|
154844
154991
|
})];
|
|
154845
154992
|
case 7:
|
|
@@ -154848,7 +154995,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
154848
154995
|
case 8:
|
|
154849
154996
|
if (!((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track)) return [3 /*break*/, 10];
|
|
154850
154997
|
return [4 /*yield*/, import(
|
|
154851
|
-
/* webpackChunkName: "schemaFilter" */ './index-
|
|
154998
|
+
/* webpackChunkName: "schemaFilter" */ './index-DFz090oi.js').then(function (mod) {
|
|
154852
154999
|
var _a;
|
|
154853
155000
|
return mod.schemaFilter((_a = opts.plan) === null || _a === void 0 ? void 0 : _a.track, legacySettings);
|
|
154854
155001
|
})];
|
|
@@ -154887,7 +155034,7 @@ function registerPlugins(writeKey, legacySettings, analytics, opts, options, plu
|
|
|
154887
155034
|
return enabled;
|
|
154888
155035
|
})) return [3 /*break*/, 17];
|
|
154889
155036
|
return [4 /*yield*/, import(
|
|
154890
|
-
/* webpackChunkName: "remoteMiddleware" */ './index-
|
|
155037
|
+
/* webpackChunkName: "remoteMiddleware" */ './index-C6lPs4SY.js').then(function (_a) {
|
|
154891
155038
|
var remoteMiddlewares = _a.remoteMiddlewares;
|
|
154892
155039
|
return __awaiter(_this, void 0, void 0, function () {
|
|
154893
155040
|
var middleware, promises;
|
|
@@ -221850,6 +221997,9 @@ function abbreviateWalletAddress(address, separator = '.....', firstChars = 5, l
|
|
|
221850
221997
|
function compareStr(a, b) {
|
|
221851
221998
|
return a.toLowerCase() === b.toLowerCase();
|
|
221852
221999
|
}
|
|
222000
|
+
function removeSpace(str) {
|
|
222001
|
+
return str.replace(/\s/g, '');
|
|
222002
|
+
}
|
|
221853
222003
|
|
|
221854
222004
|
function isValidWalletProvider(walletProviderName) {
|
|
221855
222005
|
if (walletProviderName === undefined)
|
|
@@ -222076,7 +222226,7 @@ const useProvidersContext = () => {
|
|
|
222076
222226
|
return context;
|
|
222077
222227
|
};
|
|
222078
222228
|
|
|
222079
|
-
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-
|
|
222229
|
+
const AddTokensWidget = React.lazy(() => import('./AddTokensWidget-XEOxeUOK.js'));
|
|
222080
222230
|
class AddTokens extends Base {
|
|
222081
222231
|
eventTopic = IMTBLWidgetEvents.IMTBL_ADD_TOKENS_WIDGET_EVENT;
|
|
222082
222232
|
getValidatedProperties({ config, }) {
|
|
@@ -222120,7 +222270,7 @@ class AddTokens extends Base {
|
|
|
222120
222270
|
}
|
|
222121
222271
|
}
|
|
222122
222272
|
|
|
222123
|
-
const BridgeWidget = React.lazy(() => import('./BridgeWidget-
|
|
222273
|
+
const BridgeWidget = React.lazy(() => import('./BridgeWidget-Clj0rpb5.js'));
|
|
222124
222274
|
class Bridge extends Base {
|
|
222125
222275
|
eventTopic = IMTBLWidgetEvents.IMTBL_BRIDGE_WIDGET_EVENT;
|
|
222126
222276
|
getValidatedProperties({ config }) {
|
|
@@ -222274,7 +222424,7 @@ const commerceFlows = [
|
|
|
222274
222424
|
CommerceFlowType.ADD_TOKENS,
|
|
222275
222425
|
];
|
|
222276
222426
|
|
|
222277
|
-
const CommerceWidget = React.lazy(() => import('./CommerceWidget-
|
|
222427
|
+
const CommerceWidget = React.lazy(() => import('./CommerceWidget-DKW0PiJu.js'));
|
|
222278
222428
|
class CommerceWidgetRoot extends Base {
|
|
222279
222429
|
eventTopic = IMTBLWidgetEvents.IMTBL_COMMERCE_WIDGET_EVENT;
|
|
222280
222430
|
getValidatedProperties({ config, }) {
|
|
@@ -223756,7 +223906,7 @@ function WalletList(props) {
|
|
|
223756
223906
|
track({
|
|
223757
223907
|
userJourney: UserJourney.CONNECT,
|
|
223758
223908
|
screen: 'ConnectWallet',
|
|
223759
|
-
control: providerDetail.info.name,
|
|
223909
|
+
control: removeSpace(providerDetail.info.name),
|
|
223760
223910
|
controlType: 'MenuItem',
|
|
223761
223911
|
extras: {
|
|
223762
223912
|
wallet: getProviderSlugFromRdns(providerDetail.info.rdns),
|
|
@@ -223781,7 +223931,7 @@ function WalletList(props) {
|
|
|
223781
223931
|
track({
|
|
223782
223932
|
userJourney: UserJourney.CONNECT,
|
|
223783
223933
|
screen: 'ConnectWallet',
|
|
223784
|
-
control: providerDetail.info.name,
|
|
223934
|
+
control: removeSpace(providerDetail.info.name),
|
|
223785
223935
|
controlType: 'MenuItem',
|
|
223786
223936
|
extras: {
|
|
223787
223937
|
wallet: getProviderSlugFromRdns(providerDetail.info.rdns),
|
|
@@ -224486,7 +224636,7 @@ const orchestrationEvents = {
|
|
|
224486
224636
|
sendRequestAddTokensEvent,
|
|
224487
224637
|
};
|
|
224488
224638
|
|
|
224489
|
-
const OnRampWidget = React.lazy(() => import('./OnRampWidget-
|
|
224639
|
+
const OnRampWidget = React.lazy(() => import('./OnRampWidget-RGyz_t74.js').then(function (n) { return n.a; }));
|
|
224490
224640
|
class OnRamp extends Base {
|
|
224491
224641
|
eventTopic = IMTBLWidgetEvents.IMTBL_ONRAMP_WIDGET_EVENT;
|
|
224492
224642
|
getValidatedProperties({ config }) {
|
|
@@ -224624,7 +224774,7 @@ const sendSalePaymentTokenEvent = (eventTarget, details) => {
|
|
|
224624
224774
|
eventTarget.dispatchEvent(event);
|
|
224625
224775
|
};
|
|
224626
224776
|
|
|
224627
|
-
const SaleWidget = React.lazy(() => import('./SaleWidget-
|
|
224777
|
+
const SaleWidget = React.lazy(() => import('./SaleWidget-CJySbSv8.js'));
|
|
224628
224778
|
class Sale extends Base {
|
|
224629
224779
|
eventTopic = IMTBLWidgetEvents.IMTBL_SALE_WIDGET_EVENT;
|
|
224630
224780
|
// TODO: add specific validation logic for the sale items
|
|
@@ -224861,7 +225011,7 @@ function GeoblockLoader({ widget, serviceUnavailableView, checkout, }) {
|
|
|
224861
225011
|
: serviceUnavailableView) }));
|
|
224862
225012
|
}
|
|
224863
225013
|
|
|
224864
|
-
const SwapWidget = React.lazy(() => import('./SwapWidget-
|
|
225014
|
+
const SwapWidget = React.lazy(() => import('./SwapWidget-CyxxcafB.js'));
|
|
224865
225015
|
class Swap extends Base {
|
|
224866
225016
|
eventTopic = IMTBLWidgetEvents.IMTBL_SWAP_WIDGET_EVENT;
|
|
224867
225017
|
getValidatedProperties({ config }) {
|
|
@@ -224986,7 +225136,7 @@ function sendDisconnectWalletEvent(eventTarget) {
|
|
|
224986
225136
|
eventTarget.dispatchEvent(disconnectWalletEvent);
|
|
224987
225137
|
}
|
|
224988
225138
|
|
|
224989
|
-
const WalletWidget = React.lazy(() => import('./WalletWidget-
|
|
225139
|
+
const WalletWidget = React.lazy(() => import('./WalletWidget-BxGPxriO.js'));
|
|
224990
225140
|
class Wallet extends Base {
|
|
224991
225141
|
eventTopic = IMTBLWidgetEvents.IMTBL_WALLET_WIDGET_EVENT;
|
|
224992
225142
|
getValidatedProperties({ config }) {
|
|
@@ -225123,4 +225273,4 @@ class WidgetsFactory {
|
|
|
225123
225273
|
};
|
|
225124
225274
|
}
|
|
225125
225275
|
|
|
225126
|
-
export { getStartingSize as $, AddTokensEventType as A, BridgeEventType as B, CommerceFlowType as C, merge$1 as D, ErrorView as E, useResizeObserver as F, SmartClone as G, Box as H, IMTBLWidgetEvents as I, isChildSubcomponent as J, flattenChildren as K, LoadingView as L, Body as M, useTheme$1 as N, OnRampEventType as O, ProviderEventType as P, Icon as Q, ButtCon as R, SwapEventType as S, Button as T, _defineProperty$1 as U, ViewActions as V, WalletEventType as W, isDualVariantIcon as X, _slicedToArray as Y, isNumberWithinTotal as Z, _objectWithoutProperties as _, CommerceEventType as a,
|
|
225276
|
+
export { getStartingSize as $, AddTokensEventType as A, BridgeEventType as B, CommerceFlowType as C, merge$1 as D, ErrorView as E, useResizeObserver as F, SmartClone as G, Box as H, IMTBLWidgetEvents as I, isChildSubcomponent as J, flattenChildren as K, LoadingView as L, Body as M, useTheme$1 as N, OnRampEventType as O, ProviderEventType as P, Icon as Q, ButtCon as R, SwapEventType as S, Button as T, _defineProperty$1 as U, ViewActions as V, WalletEventType as W, isDualVariantIcon as X, _slicedToArray as Y, isNumberWithinTotal as Z, _objectWithoutProperties as _, CommerceEventType as a, fetchRiskAssessment as a$, BaseClickable as a0, ClassNames as a1, _toConsumableArray as a2, isError as a3, Badge as a4, FramedIcon as a5, FramedImage as a6, FramedLogo as a7, Stack as a8, hFlex as a9, Heading as aA, WalletDrawer as aB, UnableToConnectDrawer as aC, WalletProviderRdns as aD, removeSpace as aE, getProviderSlugFromRdns as aF, Web3Provider as aG, connectEIP6963Provider as aH, identifyUser as aI, ConnectEIP6963ProviderError as aJ, ProvidersContextActions as aK, commonjsRequire$1 as aL, getRemoteImage as aM, ViewContext as aN, useHandover as aO, HandoverTarget as aP, EventTargetContext as aQ, getRemoteRive as aR, Trans as aS, Link as aT, keyframes$1 as aU, getDefaultTokenImage as aV, TokenFilterTypes as aW, isNativeToken as aX, getTokenImageByAddress as aY, TextInput as aZ, VerticalMenu as a_, usePrevious as aa, useBrowserEffect as ab, getHeadingTextStyles as ac, vFlex as ad, centerFlexChildren as ae, FormControlLabel as af, FormControlValidation as ag, FormControlCaption as ah, getDefaultExportFromCjs$3 as ai, commonjsGlobal$2 as aj, MenuItem as ak, tokenValueFormat as al, DEFAULT_TOKEN_FORMATTING_DECIMALS as am, BigNumber$1 as an, getRemoteVideo as ao, FramedVideo as ap, listVariants as aq, motion$1 as ar, listItemVariants as as, Fragment$1 as at, Divider as au, useProvidersContext as av, Drawer as aw, useAnalytics as ax, UserJourney as ay, isPassportProvider as az, ConnectEventType as b, initialEventTargetState as b$, isAddressSanctioned as b0, useInjectedProviders as b1, SimpleLayout as b2, orchestrationEvents as b3, requireSecp256k1 as b4, requireLib_commonjs as b5, require$$0$3 as b6, bech32 as b7, bnExports$1 as b8, require$$0$2 as b9, cloneElementWithCssProp as bA, compareStr as bB, SalePaymentTypes as bC, calculateCryptoToFiat as bD, sendSaleWidgetCloseEvent as bE, sendSaleSuccessEvent as bF, sendSaleFailedEvent as bG, sendSaleTransactionSuccessEvent as bH, sendSalePaymentMethodEvent as bI, sendSalePaymentTokenEvent as bJ, HeaderNavigation as bK, LoadingOverlay as bL, HandoverDuration as bM, FooterLogo as bN, StatusType as bO, prettyFormatNumber as bP, ShimmerCircle as bQ, FundingStepType as bR, abbreviateWalletAddress as bS, tokenSymbolNameOverrides as bT, ItemType as bU, TransactionOrGasType as bV, GasTokenType as bW, RoutingOutcomeType as bX, isGasFree as bY, ConnectLoaderContext as bZ, eventTargetReducer as b_, getAugmentedNamespace$1 as ba, require$$0$5 as bb, minimalisticAssert$1 as bc, require$$2 as bd, hash$5 as be, MaxUint256$5 as bf, merge as bg, SvgIcon as bh, WalletWarningHero as bi, trackFlow as bj, trackError as bk, Environment$1 as bl, t$7 as bm, PriceDisplay as bn, viewReducer as bo, initialViewState as bp, isValidAddress as bq, amountInputValidation as br, CloudImage as bs, ServiceUnavailableErrorView as bt, MultiTextShimmer as bu, getCaptionTextStyles as bv, DEFAULT_BODY_PROPS as bw, baseTextComponentSx as bx, useConvertSxToEmotionStyles as by, useGetCurrentSizeClass as bz, CommerceFailureEventType as c, isHexString$1 as c$, EventTargetActions as c0, ConnectWidgetViews as c1, ConnectLoaderActions as c2, widgetTheme as c3, BlockExplorerService as c4, axios$1 as c5, CheckoutErrorType as c6, IMMUTABLE_API_BASE_URL as c7, ShimmerBox as c8, PASSPORT_URL as c9, dist as cA, CHECKOUT_CDN_BASE_URL as cB, heroBackGroundStyles as cC, heroImageStyles as cD, SimpleTextBody as cE, FooterButton as cF, getEthTokenImage as cG, WITHDRAWAL_CLAIM_GAS_LIMIT as cH, BridgeConfiguration as cI, ImmutableConfiguration as cJ, TokenBridge as cK, StatusView as cL, ETH_SEPOLIA_TO_ZKEVM_TESTNET as cM, ETH_SEPOLIA_TO_ZKEVM_DEVNET as cN, ETH_MAINNET_TO_ZKEVM_MAINNET as cO, defineReadOnly$1 as cP, getStatic$1 as cQ, Signer$1 as cR, Provider$1 as cS, getAddress$1 as cT, Logger$2 as cU, getContractAddress$1 as cV, Interface$1 as cW, shallowCopy$1 as cX, VoidSigner$1 as cY, Indexed$1 as cZ, deepCopy$1 as c_, getChainIdBySlug as ca, getChainImage as cb, networkName as cc, useWalletConnect as cd, isWalletConnectProvider as ce, Logo as cf, RawImage as cg, AXELAR_SCAN_URL as ch, getNativeSymbolByChainSlug as ci, getChainSlugById as cj, JsonRpcProvider$1 as ck, DEFAULT_TRANSACTIONS_RETRY_POLICY as cl, getChainNameById as cm, getWalletProviderNameByProvider as cn, isMetaMaskProvider as co, WalletProviderName as cp, ButtonNavigationStyles as cq, formatZeroAmount as cr, NATIVE as cs, ETH_TOKEN_SYMBOL as ct, GasEstimateType as cu, DEFAULT_TOKEN_DECIMALS as cv, DEFAULT_QUOTE_REFRESH_INTERVAL as cw, addChainChangedListener as cx, removeChainChangedListener as cy, IMX_TOKEN_SYMBOL as cz, CommerceSuccessEventType as d, __assign as d$, checkResultErrors$1 as d0, resolveProperties$1 as d1, accessListify$1 as d2, arrayify$1 as d3, global$2 as d4, ExchangeType as d5, sendOnRampWidgetCloseEvent as d6, sendOnRampSuccessEvent as d7, sendOnRampFailedEvent as d8, WidgetTheme as d9, BUTTON_SIZES as dA, setDefaultSxBackgroundColor as dB, ZERO_BALANCE_STRING as dC, sendNetworkSwitchEvent as dD, NetworkFilterTypes as dE, sortNetworksCompareFn as dF, sortTokensByAmount as dG, sendWalletWidgetCloseEvent as dH, sendDisconnectWalletEvent as dI, FAQS_LINK as dJ, useBrowserLayoutEffect as dK, ne$2 as dL, se$2 as dM, T$2 as dN, oe$4 as dO, R$5 as dP, a$4 as dQ, te$4 as dR, p$9 as dS, y$6 as dT, __awaiter as dU, __generator as dV, loadScript as dW, getNextIntegrationsURL as dX, unloadScript as dY, __spreadArray$1 as dZ, isOffline as d_, quickswapFooterStyles as da, quickswapFooterLogoStyles as db, quickswapFooterDisclaimerTextStyles as dc, getImxTokenImage as dd, Tooltip as de, ESTIMATE_DEBOUNCE as df, DEFAULT_TOKEN_VALIDATION_DECIMALS as dg, sendSwapWidgetCloseEvent as dh, DEFAULT_BALANCE_RETRY_POLICY as di, SwapDirection as dj, sendSwapSuccessEvent as dk, sendSwapFailedEvent as dl, sendSwapRejectedEvent as dm, AnimatePresence as dn, getTertiaryButtonStyles as dp, FormControlWrapper as dq, Select as dr, DuoCon as ds, heroImageBottomAlign as dt, version$r as du, hexZeroPad$1 as dv, isBigNumberish as dw, isBytes$1 as dx, DEFAULT_BUTTON_SIZE as dy, getResponsiveSx as dz, CommerceUserActionEventType as e, ContextCancelation as e0, applyDestinationMiddleware as e1, dist$1 as e2, isServer as e3, mergedOptions as e4, isPlainObject as e5, pWhile as e6, PriorityQueue as e7, PersistedPriorityQueue as e8, attempt as e9, isOnline as ea, Context as eb, pTimeout as ec, gracefulDecodeURIComponent as ed, WidgetsFactory as ee, SaleEventType as f, OrchestrationEventType as g, getL2ChainId as h, getL1ChainId as i, ChainId as j, useViewState as k, useEventTargetState as l, SharedViews as m, commerceFlows as n, jsx$1 as o, jsxs as p, ConnectWidget as q, reactExports as r, ProvidersContextProvider as s, ConnectLoader as t, useTranslation as u, ViewContextProvider as v, useTheme as w, useForwardLocalDomRef as x, useGetSubcomponentChild as y, useSplitApartChildrenAndSubComponents as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dL as ne$1, dM as se$1, dN as T$2, dO as oe$1, dP as R$1, dQ as a$2, dR as te$1, dS as p$1, dT as y$1 } from './index-CFuDYPeI.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @license
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { an as BigNumber,
|
|
1
|
+
import { an as BigNumber, cU as Logger, du as version$1, dv as hexZeroPad, dw as isBigNumberish, d3 as arrayify, dx as isBytes } from './index-CFuDYPeI.js';
|
|
2
2
|
|
|
3
3
|
const logger$1 = new Logger(version$1);
|
|
4
4
|
const _constructorGuard = {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dU as __awaiter, dV as __generator } from './index-CFuDYPeI.js';
|
|
2
2
|
|
|
3
3
|
function loadLegacyVideoPlugins(analytics) {
|
|
4
4
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -7,7 +7,7 @@ function loadLegacyVideoPlugins(analytics) {
|
|
|
7
7
|
switch (_a.label) {
|
|
8
8
|
case 0: return [4 /*yield*/, import(
|
|
9
9
|
// @ts-expect-error
|
|
10
|
-
'./index.umd-
|
|
10
|
+
'./index.umd-rVoY7U1T.js').then(function (n) { return n.i; })
|
|
11
11
|
// This is super gross, but we need to support the `window.analytics.plugins` namespace
|
|
12
12
|
// that is linked in the segment docs in order to be backwards compatible with ajs-classic
|
|
13
13
|
// @ts-expect-error
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dU as __awaiter, dV as __generator, dW as loadScript, dX as getNextIntegrationsURL, dY as unloadScript, dZ as __spreadArray, d_ as isOffline, d$ as __assign, e0 as ContextCancelation, e1 as applyDestinationMiddleware, e2 as dist, e3 as isServer, e4 as mergedOptions, e5 as isPlainObject, e6 as pWhile, e7 as PriorityQueue, e8 as PersistedPriorityQueue, e9 as attempt, ea as isOnline, eb as Context } from './index-CFuDYPeI.js';
|
|
2
2
|
import { i as isPlanEventEnabled } from './is-plan-event-enabled-mXX0dwl-.js';
|
|
3
3
|
|
|
4
4
|
function normalizeName(name) {
|