PageSourceSearch

https://app.hofa.io/_next/static/chunks/9343.d98a8422912089de.js

js hofa.io collected 2026-10-07 00:44:31 UTC 9,326 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9343],{70672:function(e,t,s){s.d(t,{AV:function(){return a},ConfigCtrl:function(){return g},ExplorerCtrl:function(){return U},OptionsCtrl:function(){return u},ThemeCtrl:function(){return R},ToastCtrl:function(){return H},jb:function(){return N},uA:function(){return c},zv:function(){return i}});var n=s(17832);let o=(0,n.sj)({history:["ConnectWallet"],view:"ConnectWallet",data:void 0}),a={state:o,subscribe:e=>(0,n.Ld)(o,()=>e(o)),push(e,t){e!==o.view&&(o.view=e,t&&(o.data=t),o.history.push(e))},reset(e){o.view=e,o.history=[e]},replace(e){o.history.length>1&&(o.history[o.history.length-1]=e,o.view=e)},goBack(){if(o.history.length>1){o.history.pop();let[e]=o.history.slice(-1);o.view=e}},setData(e){o.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 n=e;n.includes("://")||(n=e.replaceAll("/","").replaceAll(":",""),n=`${n}://`),n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);let o=encodeURIComponent(t);return`${n}wc?uri=${o}`},formatUniversalUrl(e,t,s){if(!i.isHttpUrl(e))return this.formatNativeUrl(e,t,s);let n=e;n.endsWith("/")||(n=`${n}/`),this.setWalletConnectDeepLink(n,s);let o=encodeURIComponent(t);return`${n}wc?uri=${o}`},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=a.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,n.sj)({enabled:l,userSessionId:"",events:[],connectedWalletId:void 0}),c={state:r,subscribe:e=>(0,n.Ld)(r.events,()=>e((0,n.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)}}},p=(0,n.sj)({chains:void 0,walletConnectUri:void 0,isAuth:!1,isCustomDesktop:!1,isCustomMobile:!1,isDataLoaded:!1,isUiLoaded:!1}),u={state:p,subscribe:e=>(0,n.Ld)(p,()=>e(p)),setChains(e){p.chains=e},setWalletConnectUri(e){p.walletConnectUri=e},setIsCustomDesktop(e){p.isCustomDesktop=e},setIsCustomMobile(e){p.isCustomMobile=e},setIsDataLoaded(e){p.isDataLoaded=e},setIsUiLoaded(e){p.isUiLoaded=e},setIsAuth(e){p.isAuth=e}},m=(0,n.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}),g={state:m,subscribe:e=>(0,n.Ld)(m,()=>e(m)),setConfig(e){var t,s;c.initialize(),u.setChains(e.chains),u.setIsAuth(!!e.enableAuthMode),u.setIsCustomMobile(!!(null==(t=e.mobileWallets)?void 0:t.length)),u.setIsCustomDesktop(!!(null==(s=e.desktopWallets)?void 0:s.length)),i.setModalVersionInStorage(),Object.assign(m,e)}};var h=Object.defineProperty,b=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,M=(e,t,s)=>t in e?h(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,K=(e,t)=>{for(var s in t||(t={}))I.call(t,s)&&M(e,s,t[s]);if(b)for(var s of b(t))f.call(t,s)&&M(e,s,t[s]);return e};let v="https://explorer-api.walletconnect.com",C="js-2.6.2";async function w(e,t){let s=K({sdkType:"wcm",sdkVersion:C},t),n=new URL(e,v);return n.searchParams.append("projectId",g.state.projectId),Object.entries(s).forEac
1h(([e,t])=>{t&&n.searchParams.append(e,String(t))}),(await fetch(n)).json()}let y={getDesktopListings:async e=>w("/w3m/v1/getDesktopListings",e),getMobileListings:async e=>w("/w3m/v1/getMobileListings",e),getInjectedListings:async e=>w("/w3m/v1/getInjectedListings",e),getAllListings:async e=>w("/w3m/v1/getAllListings",e),getWalletImageUrl:e=>`${v}/w3m/v1/getWalletImage/${e}?projectId=${g.state.projectId}&sdkType=wcm&sdkVersion=${C}`,getAssetImageUrl:e=>`${v}/w3m/v1/getAssetImage/${e}?projectId=${g.state.projectId}&sdkType=wcm&sdkVersion=${C}`};var L=Object.defineProperty,W=Object.getOwnPropertySymbols,E=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,k=(e,t,s)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,F=(e,t)=>{for(var s in t||(t={}))E.call(t,s)&&k(e,s,t[s]);if(W)for(var s of W(t))O.call(t,s)&&k(e,s,t[s]);return e};let j=i.isMobile(),A=(0,n.sj)({wallets:{listings:[],total:0,page:1},search:{listings:[],total:0,page:1},recomendedWallets:[]}),U={state:A,async getRecomendedWallets(){let{explorerRecommendedWalletIds:e,explorerExcludedWalletIds:t}=g.state;if("NONE"===e||"ALL"===t&&!e)return A.recomendedWallets;if(i.isArray(e)){let t={recommendedIds:e.join(",")},{listings:s}=await y.getAllListings(t),n=Object.values(s);n.sort((t,s)=>{let n=e.indexOf(t.id),o=e.indexOf(s.id);return n-o}),A.recomendedWallets=n}else{let{chains:e,isAuth:s}=u.state,n=e?.join(","),o=i.isArray(t),a={page:1,sdks:s?"auth_v1":void 0,entries:i.RECOMMENDED_WALLET_AMOUNT,chains:n,version:2,excludedIds:o?t.join(","):void 0},{listings:l}=j?await y.getMobileListings(a):await y.getDesktopListings(a);A.recomendedWallets=Object.values(l)}return A.recomendedWallets},async getWallets(e){let t=F({},e),{explorerRecommendedWalletIds:s,explorerExcludedWalletIds:n}=g.state,{recomendedWallets:o}=A;if("ALL"===n)return A.wallets;o.length?t.excludedIds=o.map(e=>e.id).join(","):i.isArray(s)&&(t.excludedIds=s.join(",")),i.isArray(n)&&(t.excludedIds=[t.excludedIds,n].filter(Boolean).join(",")),u.state.isAuth&&(t.sdks="auth_v1");let{page:a,search:l}=e,{listings:r,total:c}=j?await y.getMobileListings(t):await y.getDesktopListings(t),p=Object.values(r),m=l?"search":"wallets";return A[m]={listings:[...A[m].listings,...p],total:c,page:a??1},{listings:p,total:c}},getWalletImageUrl:e=>y.getWalletImageUrl(e),getAssetImageUrl:e=>y.getAssetImageUrl(e),resetSearch(){A.search={listings:[],total:0,page:1}}},D=(0,n.sj)({open:!1}),N={state:D,subscribe:e=>(0,n.Ld)(D,()=>e(D)),open:async e=>new Promise(t=>{let{isUiLoaded:s,isDataLoaded:n}=u.state;if(i.removeWalletConnectDeepLink(),u.setWalletConnectUri(e?.uri),u.setChains(e?.chains),a.reset("ConnectWallet"),s&&n)D.open=!0,t();else{let e=setInterval(()=>{let s=u.state;s.isUiLoaded&&s.isDataLoaded&&(clearInterval(e),D.open=!0,t())},200)}}),close(){D.open=!1}};var T=Object.defineProperty,_=Object.getOwnPropertySymbols,P=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable,S=(e,t,s)=>t in e?T(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s,Y=(e,t)=>{for(var s in t||(t={}))P.call(t,s)&&S(e,s,t[s]);if(_)for(var s of _(t))x.call(t,s)&&S(e,s,t[s]);return e};let $=(0,n.sj)({themeMode:"u">typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}),R={state:$,subscribe:e=>(0,n.Ld)($,()=>e($)),setThemeConfig(e){let{themeMode:t,themeVariables:s}=e;t&&($.themeMode=t),s&&($.themeVariables=Y({},s))}},V=(0,n.sj)({open:!1,message:"",variant:"success"}),H={state:V,subscribe:e=>(0,n.Ld)(V,()=>e(V)),openToast(e,t){V.open=!0,V.message=e,V.variant=t},closeToast(){V.open=!1}}},59343:function(e,t,s){s.d(t,{WalletConnectModal:function(){return d}});var n=s(70672);let d=class d{constructor(e){this.openModal=n.jb.open,this.closeModal=n.jb.close,this.subscribeModal=n.jb.subscribe,this.setTheme=n.ThemeCtrl.setThemeConfig,n.ThemeCtrl.setThemeConfig(e),n.ConfigCtrl.setConfig(e),this.initUi()}async initUi(){if("u">typeof window){await s.e(2340).then(s.bind(s,22340));let e=document.createElement("wcm-modal");document.body.insertAdjacentElement("beforeend",e),n.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.