PageSourceSearch

https://deepfundingjury.com/_next/static/chunks/app/page-6bb6413d8cdce177.js

js deepfundingjury.com collected 2026-10-04 13:29:50 UTC 6,079 bytes, 14 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{296:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>o});var r=s(95155),a=s(12115),i=s(35695),n=s(25215);function o(){let e=(0,i.useRouter)(),{isLoggedIn:t,isLoading:s}=(0,n.A)();return(0,a.useEffect)(()=>{s||(t?e.push("/evaluation"):e.push("/login"))},[s,t,e]),(0,r.jsx)("div",{style:u.container,children:(0,r.jsx)("div",{style:u.loading,children:"Loading..."})})}let u={container:{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#f5f5f5"},loading:{fontSize:"18px",color:"#666"}}},25215:(e,t,s)=>{"use strict";s.d(t,{A:()=>u});var r=s(2145),a=s(22282),i=s(32446),n=s(12115),o=s(35695);function u(){let{address:e,chainId:t,isConnected:s}=(0,r.F)(),{signMessageAsync:u}=(0,a.Y)(),c=(0,o.usePathname)(),[l,d]=(0,n.useState)(null),[h,f]=(0,n.useState)(!0);(0,n.useEffect)(()=>{g()},[c]);let g=async()=>{try{let e=await fetch("/api/siwe/status",{credentials:"include"}),t=await e.json();fetch("/api/debug",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:"useAuth checkAuthStatus result",data:{response:t,authenticated:t.authenticated,user:t.user}})}).catch(()=>{}),d(t.authenticated?t.user:null)}catch(e){fetch("/api/debug",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({message:"useAuth checkAuthStatus ERROR",data:{error:e.message}})}).catch(()=>{}),d(null)}finally{f(!1)}};return{user:l,isLoggedIn:!!l,isLoading:h,login:async(r,a)=>{if(!s||!e||!t)throw Error("Wallet not connected");try{let s=await (await fetch("/api/siwe/nonce",{credentials:"include"})).text(),n=(0,i.o)({address:e,chainId:t,domain:window.location.host,uri:window.location.origin,version:"1",statement:"Sign in to Verdict",nonce:s}),o=await u({message:n}),c=await fetch("/api/siwe/verify",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({message:n,signature:o,inviteCode:r,selectedEnsName:a})}),l=await c.json();if(!c.ok){if(l.message||l.helpUrl){let e=Error(l.error||l.message||"Authentication failed");throw e.response=l,e}let e=l.error||"Authentication failed";throw l.details&&("string"==typeof l.details?e+=": "+l.details:l.details.message?e+=": "+l.details.message:e+=": "+JSON.stringify(l.details)),Error(e)}return d(l.user),l.user}catch(e){throw console.error("Login error:",e),e}},logout:async()=>{try{await fetch("/api/siwe/logout",{method:"POST",credentials:"include"}),d(null)}catch(e){console.error("Logout error:",e)}},checkAuthStatus:g}}},31648:(e,t,s)=>{Promise.resolve().then(s.bind(s,296))},32446:(e,t,s)=>{"use strict";s.d(t,{o:()=>o});var r=s(7441);class a extends r.C{constructor(e){let{docsPath:t,field:s,metaMessages:r}=e;super(`Invalid Sign-In with Ethereum message field "${s}".`,{docsPath:t,metaMessages:r,name:"SiweInvalidMessageFieldError"})}}var i=s(35883);function n(e){if(/[^a-z0-9:/?#[\]@!$&'()*+,;=.\-_~%]/i.test(e)||/%[^0-9a-f]/i.test(e)||/%[0-9a-f](:?[^0-9a-f]|$)/i.test(e))return!1;let t=e.match(/(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/),s=t[1],r=t[2],a=t[3],i=t[4],n=t[5];if(!(s?.length&&a.length>=0))return!1;if(r?.length){if(!(0===a.length||/^\//.test(a)))return!1}else if(/^\/\//.test(a))return!1;if(!/^[a-z][a-z0-9+\-.]*$/.test(s.toLowerCase()))return!1;let o="";return o+=`${s}:`,r?.length&&(o+=`//${r}`),o+=a,i?.length&&(o+=`?${i}`),n?.length&&(o+=`#${n}`),o}function o(e){let{chainId:t,domain:s,expirationTime:r,issuedAt:o=new Date,nonce:f,notBefore:g,requestId:m,resources:w,scheme:$,uri:p,version:S}=e;{if(t!==Math.floor(t))throw new a({field:"chainId",metaMessages:["- Chain ID must be a EIP-155 chain ID.","- See https://eips.ethereum.org/EIPS/eip-155","",`Provided value: ${t}`]});if(!(u.test(s)||c.test(s)||l.test(s)))throw new a({field:"domain",metaMessages:["- Domain must be an RFC 3986 authority.","- See https://www.rfc-editor.org/rfc/rfc3986","",`Provided value: ${s}`]});if(!d.test(f))throw new a({field:"nonce",metaMessages:["- Nonce must be at least 8 characters.","- Nonce must be alphanumeric.","",`Provided value: ${f}`]});if(!n(p))throw new a({field:"uri",metaMessages:["- URI must be a RFC 3986 URI referring to the resource that is the subject of the signing.","- See https://www.rfc-editor.org/rfc/rfc3986","",`Provided value: ${p}`]});if("1"!==S)throw new a({field:"version",metaMessages:["- Version must be '1'.","",`Provided value: ${S}`]});if($&&!h.test($))throw new a({field:"scheme",metaMessages:["- Scheme must be an RFC 3986 URI scheme.","- See https://www.rfc-editor.org/rfc/rfc3986#section-3.1","",`Provided value: ${$}`]});let r=e.statement;if(r?.includes("\n"))throw new a({field:"statement",metaMessages:["- Statement must not include '\\n'.","",`Provided value: ${r}`]})}let v=(0,i.b)(e.address),y=$?`${$}://${s}`:s,P=e.statement?`${e.statement}
2`:"",I=`${y} wants you to sign in with your Ethereum account:
3${v}
4
5${P}`,b=`URI: ${p}
6Version: ${S}
7Chain ID: ${t}
8Nonce: ${f}
9Issued At: ${o.toISOString()}`;if(r&&(b+=`
10Expiration Time: ${r.toISOString()}`),g&&(b+=`
11Not Before: ${g.toISOString()}`),m&&(b+=`
12Request ID: ${m}`),w){let e="\nResources:";for(let t of w){if(!n(t))throw new a({field:"resources",metaMessages:["- Every resource must be a RFC 3986 URI.","- See https://www.rfc-editor.org/rfc/rfc3986","",`Provided value: ${t}`]});e+=`
13- ${t}`}b+=e}return`${I}
14${b}`}let u=/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(:[0-9]{1,5})?$/,c=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:[0-9]{1,5})?$/,l=/^localhost(:[0-9]{1,5})?$/,d=/^[a-zA-Z0-9]{8,}$/,h=/^([a-zA-Z][a-zA-Z0-9+-.]*)$/},35695:(e,t,s)=>{"use strict";var r=s(18999);s.o(r,"usePathname")&&s.d(t,{usePathname:function(){return r.usePathname}}),s.o(r,"useRouter")&&s.d(t,{useRouter:function(){return r.useRouter}}),s.o(r,"useSearchParams")&&s.d(t,{useSearchParams:function(){return r.useSearchParams}})}},e=>{e.O(0,[7421,8441,5964,7358],()=>e(e.s=31648)),_N_E=e.O()}]);

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.