PageSourceSearch

https://xota.ai/_next/static/chunks/4978.8c3fbce7ef95c2ed.js

js xota.ai collected 2026-10-05 16:00:01 UTC 9,235 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4978],{85810:function(e,t,s){s.d(t,{AV:function(){return n},ConfigCtrl:function(){return m},ExplorerCtrl:function(){return D},OptionsCtrl:function(){return p},ThemeCtrl:function(){return H},ToastCtrl:function(){return B},jb:function(){return T},uA:function(){return d},zv:function(){return i}});var o=s(33085);let a=(0,o.sj)({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),n={state:a,subscribe:e=>(0,o.Ld)(a,()=>e(a)),push(e,t){e!==a.view&&(a.view=e,t&&(a.data=t),a.history.push(e))},reset(e){a.view=e,a.history=[e]},replace(e){a.history.length>1&&(a.history[a.history.length-1]=e,a.view=e)},goBack(){if(a.history.length>1){a.history.pop();let[e]=a.history.slice(-1);a.view=e}},setData(e){a.data=e}},i={WALLETCONNECT_DEEPLINK_CHOICE:"WALLETCONNECT_DEEPLINK_CHOICE",WCM_VERSION:"WCM_VERSION",RECOMMENDED_WALLET_AMOUNT:9,isMobile:()=>"u">typeof window&&!!(window.matchMedia("(pointer:coarse)").matches||/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini/u.test(navigator.userAgent)),isAndroid:()=>i.isMobile()&&navigator.userAgent.toLowerCase().includes("android"),isIos(){let e=navigator.userAgent.toLowerCase();return i.isMobile()&&(e.includes("iphone")||e.includes("ipad"))},isHttpUrl:e=>e.startsWith("http://")||e.startsWith("https://"),isArray:e=>Array.isArray(e)&&e.length>0,formatNativeUrl(e,t,s){if(i.isHttpUrl(e))return this.formatUniversalUrl(e,t,s);let o=e;o.includes("://")||(o=e.replaceAll("/","").replaceAll(":",""),o=`${o}://`),o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s);let a=encodeURIComponent(t);return`${o}wc?uri=${a}`},formatUniversalUrl(e,t,s){if(!i.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let o=e;o.endsWith("/")||(o=`${o}/`),this.setWalletConnectDeepLink(o,s);let a=encodeURIComponent(t);return`${o}wc?uri=${a}`},wait:async e=>new Promise(t=>{setTimeout(t,e)}),openHref(e,t){window.open(e,t,"noreferrer noopener")},setWalletConnectDeepLink(e,t){try{localStorage.setItem(i.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:e,name:t}))}catch{console.info("Unable to set WalletConnect deep link")}},setWalletConnectAndroidDeepLink(e){try{let[t]=e.split("?");localStorage.setItem(i.WALLETCONNECT_DEEPLINK_CHOICE,JSON.stringify({href:t,name:"Android"}))}catch{console.info("Unable to set WalletConnect android deep link")}},removeWalletConnectDeepLink(){try{localStorage.removeItem(i.WALLETCONNECT_DEEPLINK_CHOICE)}catch{console.info("Unable to remove WalletConnect deep link")}},setModalVersionInStorage(){try{"u">typeof localStorage&&localStorage.setItem(i.WCM_VERSION,"2.6.2")}catch{console.info("Unable to set Web3Modal version in storage")}},getWalletRouterData(){var e;let t=null==(e=n.state.data)?void 0:e.Wallet;if(!t)throw Error('Missing "Wallet" view data');return t}},l="u">typeof location&&(location.hostname.includes("localhost")||location.protocol.includes("https")),r=(0,o.sj)({enabled:l,userSessionId:"",events:[],connectedWalletId:void 0}),d={state:r,subscribe:e=>(0,o.Ld)(r.events,()=>e((0,o.CO)(r.events[r.events.length-1]))),initialize(){r.enabled&&"u">typeof(null==crypto?void 0:crypto.randomUUID)&&(r.userSessionId=crypto.randomUUID())},setConnectedWalletId(e){r.connectedWalletId=e},click(e){if(r.enabled){let t={type:"CLICK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}},track(e){if(r.enabled){let t={type:"TRACK",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}},view(e){if(r.enabled){let t={type:"VIEW",name:e.name,userSessionId:r.userSessionId,timestamp:Date.now(),data:e};r.events.push(t)}}},c=(0,o.sj)({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),p={state:c,subscribe:e=>(0,o.Ld)(c,()=>e(c)),setChains(e){c.chains=e},setWalletConnectUri(e){c.walletConnectUri=e},setIsCustomDesktop(e){c.isCustomDesktop=e},setIsCustomMobile(e){c.isCustomMobile=e},setIsDataLoaded(e){c.isDataLoaded=e},setIsUiLoaded(e){c.isUiLoaded=e},setIsAuth(e){c.isAuth=e}},u=(0,o.sj)({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}),m={state:u,subscribe:e=>
1(0,o.Ld)(u,()=>e(u)),setConfig(e){var t,s;d.initialize(),p.setChains(e.chains),p.setIsAuth(!!e.enableAuthMode),p.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),p.setIsCustomDesktop(!!(null==(s=e.desktopWallets)?void 0:s.length)),i.setModalVersionInStorage(),Object.assign(u,e)}};var h=Object.defineProperty,g=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,C=(e,t,s)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,v=(e,t)=>{for(var s in t||(t={}))b.call(t,s)&&C(e,s,t[s]);if(g)for(var s of g(t))f.call(t,s)&&C(e,s,t[s]);return e};let I="https://explorer-api.walletconnect.com",y="js-2.6.2";async function w(e,t){let s=v({sdkType:"wcm",sdkVersion:y},t),o=new URL(e,I);return o.searchParams.append("projectId",m.state.projectId),Object.entries(s).forEach(([e,t])=>{t&&o.searchParams.append(e,String(t))}),(await fetch(o)).json()}let L={getDesktopListings:async e=>w("/w3m/v1/getDesktopListings",e),getMobileListings:async e=>w("/w3m/v1/getMobileListings",e),getAllListings:async e=>w("/w3m/v1/getAllListings",e),getWalletImageUrl:e=>`${I}/w3m/v1/getWalletImage/${e}?projectId=${m.state.projectId}&sdkType=wcm&sdkVersion=${y}`,getAssetImageUrl:e=>`${I}/w3m/v1/getAssetImage/${e}?projectId=${m.state.projectId}&sdkType=wcm&sdkVersion=${y}`};var W=Object.defineProperty,E=Object.getOwnPropertySymbols,O=Object.prototype.hasOwnProperty,A=Object.prototype.propertyIsEnumerable,j=(e,t,s)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,U=(e,t)=>{for(var s in t||(t={}))O.call(t,s)&&j(e,s,t[s]);if(E)for(var s of E(t))A.call(t,s)&&j(e,s,t[s]);return e};let M=i.isMobile(),k=(0,o.sj)({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),D={state:k,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=m.state;if("NONE"===e||"ALL"===t&&!e)return k.recomendedWallets;if(i.isArray(e)){let t={recommendedIds:e.join(",")},{listings:s}=await L.getAllListings(t),o=Object.values(s);o.sort((t,s)=>e.indexOf(t.id)-e.indexOf(s.id)),k.recomendedWallets=o}else{let{chains:e,isAuth:s}=p.state,o=e?.join(","),a=i.isArray(t),n={page:1,sdks:s?"auth_v1":void 0,entries:i.RECOMMENDED_WALLET_AMOUNT,chains:o,version:2,excludedIds:a?t.join(","):void 0},{listings:l}=M?await L.getMobileListings(n):await L.getDesktopListings(n);k.recomendedWallets=Object.values(l)}return k.recomendedWallets},async getWallets(e){let t=U({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:o}=m.state,{recomendedWallets:a}=k;if("ALL"===o)return k.wallets;a.length?t.excludedIds=a.map(e=>e.id).join(","):i.isArray(s)&&(t.excludedIds=s.join(",")),i.isArray(o)&&(t.excludedIds=[t.excludedIds,o].filter(Boolean).join(",")),p.state.isAuth&&(t.sdks="auth_v1");let{page:n,search:l}=e,{listings:r,total:d}=M?await L.getMobileListings(t):await L.getDesktopListings(t),c=Object.values(r),u=l?"search":"wallets";return k[u]={listings:[...k[u].listings,...c],total:d,page:n??1},{listings:c,total:d}},getWalletImageUrl:e=>L.getWalletImageUrl(e),getAssetImageUrl:e=>L.getAssetImageUrl(e),resetSearch(){k.search={listings:[],total:0,page:1}}},N=(0,o.sj)({open:!1}),T={state:N,subscribe:e=>(0,o.Ld)(N,()=>e(N)),open:async e=>new Promise(t=>{let{isUiLoaded:s,isDataLoaded:o}=p.state;if(i.removeWalletConnectDeepLink(),p.setWalletConnectUri(e?.uri),p.setChains(e?.chains),n.reset("ConnectWallet"),s&&o)N.open=!0,t();else{let e=setInterval(()=>{let s=p.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),N.open=!0,t())},200)}}),close(){N.open=!1}};var S=Object.defineProperty,_=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,$=(e,t,s)=>t in e?S(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,R=(e,t)=>{for(var s in t||(t={}))P.call(t,s)&&$(e,s,t[s]);if(_)for(var s of _(t))x.call(t,s)&&$(e,s,t[s]);return e};let V=(0,o.sj)({themeMode:"u">typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),H={state:V,subscribe:e=>(0,o.Ld)(V,()=>e(V)),setThemeConfig(e){let{themeMode:t,themeVariables:s}=e;t&&(V.themeMode=t),s&&(V.themeVariables=R({},s))}},K=(0,o.sj)({open:!1,message:"",variant:"success"}),B={state:K,subscribe:e=>
1(0,o.Ld)(K,()=>e(K)),openToast(e,t){K.open=!0,K.message=e,K.variant=t},closeToast(){K.open=!1}}},44978:function(e,t,s){s.d(t,{WalletConnectModal:function(){return a}});var o=s(85810);class a{constructor(e){this.openModal=o.jb.open,this.closeModal=o.jb.close,this.subscribeModal=o.jb.subscribe,this.setTheme=o.ThemeCtrl.setThemeConfig,o.ThemeCtrl.setThemeConfig(e),o.ConfigCtrl.setConfig(e),this.initUi()}async initUi(){if("u">typeof window){await s.e(6275).then(s.bind(s,46275));let e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),o.OptionsCtrl.setIsUiLoaded(!0)}}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.