PageSourceSearch

https://defi-launchpad-jade.vercel.app/_next/static/chunks/app/lay…?dpl=dpl_3RrFCLTPHk8opDZuw5QW5K466FKW

js defi-launchpad-jade.vercel.app collected 2026-10-03 06:31:59 UTC 18,506 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177,67899],{10255:(e,t,r)=>{"use strict";function a(e){let{moduleIds:t}=e;return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return a}}),r(95155),r(47650),r(85744),r(20589)},15156:(e,t,r)=>{"use strict";r.d(t,{L:()=>s});var a=r(12115),n=r(49559);function s(){let e=(0,n.S4)("useActiveAccount").activeAccountStore;return(0,a.useSyncExternalStore)(e.subscribe,e.getValue,e.getValue)}},17828:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return a}});let a=(0,r(64054).createAsyncLocalStorage)()},21489:(e,t,r)=>{"use strict";async function a(){return(await fetch("/api/auth/status",{credentials:"include"})).json()}r.d(t,{V:()=>a})},22607:(e,t,r)=>{"use strict";r.d(t,{S:()=>s,default:()=>o});var a=r(95155),n=r(88195);let s=(0,r(46298).N)({clientId:"07f4722a54ebe8b6e379c6db6d7e4841"});function o(e){let{children:t}=e;return(0,a.jsx)(n.X,{children:t})}},30347:()=>{},35695:(e,t,r)=>{"use strict";var a=r(18999);r.o(a,"useParams")&&r.d(t,{useParams:function(){return a.useParams}}),r.o(a,"usePathname")&&r.d(t,{usePathname:function(){return a.usePathname}}),r.o(a,"useRouter")&&r.d(t,{useRouter:function(){return a.useRouter}}),r.o(a,"useSearchParams")&&r.d(t,{useSearchParams:function(){return a.useSearchParams}})},36645:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}});let a=r(88229)._(r(67357));function n(e,t){var r;let n={};"function"==typeof e&&(n.loader=e);let s={...n,...t};return(0,a.default)({...s,modules:null==(r=s.loadableGenerated)?void 0:r.modules})}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},47790:()=>{},49559:(e,t,r)=>{"use strict";r.d(t,{Hy:()=>s,S4:()=>o,dk:()=>n});var a=r(12115);let n=(0,a.createContext)(void 0);function s(){let e=o("useConnectionManager");if(!e)throw Error("useConnectionManager must be used within a <ThirdwebProvider> Provider");return e}function o(e){let t=(0,a.useContext)(n);if(!t)throw Error("".concat(e," must be used within <ThirdwebProvider>"));return t}},55028:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var a=r(36645),n=r.n(a)},59161:(e,t,r)=>{"use strict";r.d(t,{D:()=>o,ThemeProvider:()=>i});var a=r(95155),n=r(12115);let s=(0,n.createContext)(void 0),o=()=>{let e=(0,n.useContext)(s);if(!e)throw Error("useTheme must be used within a ThemeProvider");return e},i=e=>{let{children:t}=e,[r,o]=(0,n.useState)("dark");return(0,n.useEffect)(()=>{let e=localStorage.getItem("theme");e?o(e):o(window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light")},[]),(0,n.useEffect)(()=>{localStorage.setItem("theme",r),document.documentElement.classList.remove("light","dark"),document.documentElement.classList.add(r),console.log("Theme changed to:",r,"HTML classes:",document.documentElement.className)},[r]),(0,a.jsx)(s.Provider,{value:{theme:r,toggleTheme:()=>{o(e=>"light"===e?"dark":"light")}},children:t})}},62146:(e,t,r)=>{"use strict";function a(e){let{reason:t,children:r}=e;return r}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return a}}),r(45262)},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{bindSnapshot:function(){return o},createAsyncLocalStorage:function(){return s},createSnapshot:function(){return i}});let r=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class a{disable(){throw r}getStore(){}run(){throw r}exit(){throw r}enterWith(){throw r}static bind(e){return e}}let n="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function s(){return n?new n:new a}function o(e){return n?n.bind(e):a.bind(e)}function i(){return n?n.snapshot():function(e,...t){return e(...t)}}},67357:(e,t,r)=>{"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return l}});let a=r(95155),n=r(12115),s=r(62146);function o(e){return{default:e&&"default"in e?e.default:e}}r(10255);let i={loader:()=>Promise.resolve(o(()=>null)),loading:null,ssr:!0},l=function(e){let t={...i,...e},r=(0,n.lazy)(()=>t.loader().then(o)),l=t.loading;function c(e){let o=l?(0,a.jsx)(l,{isLoading:!0,pastDelay:!0,error:null}):null,i=!t.ssr||!!t.loading,c=i?n.Suspense:n.Fragment,d=t.ssr?(0,a.jsxs)(a.Fragment,{children:[null,(0,a.jsx)(r,{...e})]}):(0,a.jsx)(s.BailoutToCSR,{reason:"next/dynamic",children:(0,a.jsx)(r,{...e})});return(0,a.jsx)(c,{...i?{fallback:o}:{},children:d})}return c.displayName="LoadableComponent",c}},68093:(e,t,r)=>{"use strict";r.d(t,{AuthInit:()=>o});var a=r(12115),n=r(21489),s=r(73265);function o(){return(0,a.useEffect)(()=>{(0,n.V)().then(e=>{s.w.isLoggedIn=e.isLoggedIn,s.w.walletAddress=e.address||"",s.w.username=e.username||"",console.log("\uD83D\uDD10 Auth state:",e)})},[]),null}},73265:(e,t,r)=>{"use strict";r.d(t,{w:()=>a});let a=(0,r(43217).BX)({isLoggedIn:!1,walletAddress:"",username:"",isMobile:!1})},73776:()=>{},79368:()=>{},84063:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,30347,23)),Promise.resolve().then(r.bind(r,22607)),Promise.resolve().then(r.bind(r,94361)),Promise.resolve().then(r.bind(r,68093)),Promise.resolve().then(r.bind(r,59161))},85744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return a.workAsyncStorageInstance}});let a=r(17828)},94361:(e,t,r)=>{"use strict";r.d(t,{default:()=>D});var a=r(95155),n=r(12115),s=r(73265),o=r(14545),i=r(48715),l=r(22607),c=r(21273),d=r(21489),u=r(59161);let h=async()=>{if(window.ethereum)try{await window.ethereum.request({method:"eth_requestAccounts"})}catch(e){console.log("User rejected MetaMask unlock")}};function f(){let[e,t]=(0,n.useState)(!1),{theme:r}=(0,u.D)(),f=[(0,c.i)("io.metamask"),(0,c.i)("com.coinbase.wallet"),(0,c.i)("me.rainbow")],m=(0,o.a5)({colors:{accentButtonBg:"#16161a",accentButtonText:"#d1d5db",primaryButtonBg:"#16161a",primaryButtonText:"#d1d5db",borderColor:"#333336",secondaryButtonHoverBg:"#16161a",connectedButtonBg:"#16161a",connectedButtonBgHover:"#16161a"}}),p=(0,o._k)({colors:{accentButtonBg:"#ffffff",accentButtonText:"#1a1a1a",primaryButtonBg:"#ffffff",primaryButtonText:"#1a1a1a",borderColor:"#dee2e6",secondaryButtonHoverBg:"#f8f9fa",connectedButtonBg:"#ffffff",connectedButtonBgHover:"#f8f9fa"}});return(0,a.jsx)("div",{className:"[&_button]:!rounded-none [&_div]:!rounded-none [&>div]:!rounded-none [&_*]:!rounded-none [&_button]:!border [&_button]:!border-[var(--border-primary)] [&_button]:hover:!border-[var(--accent)]",children:(0,a.jsx)(i.p,{client:l.S,wallets:f,theme:"dark"===r?m:p,onConnect:async()=>{await h()},auth:{getLoginPayload:async e=>(await fetch("/api/auth/login-payload",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})).json(),doLogin:async e=>{let r=await fetch("/api/auth/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),a=await r.json();if(t(a.valid),a.valid){let e=await (0,d.V)();s.w.isLoggedIn=e.isLoggedIn,s.w.walletAddress=e.address||"",s.w.username=e.username||""}},isLoggedIn:async()=>{let e=await fetch("/api/auth/status"),{isLoggedIn:t}=await e.json();return t},doLogout:async()=>{await fetch("/api/auth/logout",{method:"POST"}),t(!1),s.w.isLoggedIn=!1,s.w.walletAddress="",s.w.username=""}}})})}let m=()=>(0,a.jsxs)("header",{className:"flex justify-between bg-[var(--bg-primary)] items-center p-4 border-b border-[var(--border-primary)] fixed top-0 left-0 right-0 z-10 h-16",children:[(0,a.jsx)("div",{className:"flex items-center text-[var(--text-primary)]",children:"DeFi Launchpad"}),(0,a.jsx)("div",{className:"flex items-center gap-3",children:(0,a.jsx)(f,{})})]});var p=r(6874),b=r.n(p),x=r(35695),j=r(50802),v=r(55028),g=r(35677);let w=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiHome})),{loadableGenerated:{webpack:()=>[null]}}),y=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiFolder})),{loadableGenerated:{webpack:()=>[null]}}),P=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiBriefcase})),{loadableGenerated:{webpack:()=>[null]}}),S=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiPlusCircle})),{loadableGenerated:{webpack:()=>[null]}}),N=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiMessageSquare})),{loadableGenerated:{webpack:()=>[null]}}),k=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiStar})),{loadableGenerated:{webpack:()=>[null]}}),E=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiChevronLeft})),{loadableGenerated:{webpack:()=>[null]}}),_=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiChevronRight})),{loadableGenerated:{webpack:()=>[null]}}),L=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiLayers})),{loadableGenerated:{webpack:()=>[null]}}),B=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiShield})),{loadableGenerated:{webpack:()=>[null]}}),C=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiSettings})),{loadableGenerated:{webpack:()=>[null]}}),O=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiShoppingCart})),{loadableGenerated:{webpack:()=>[null]}}),M=(0,v.default)(()=>Promise.resolve().then(r.bind(r,10351)).then(e=>({default:e.FiBook})),{loadableGenerated:{webpack:()=>[null]}}),T=()=>{let e=(0,x.usePathname)(),t=(0,x.useSearchParams)(),[r,o]=(0,n.use
1State)(!0),[i,l]=(0,n.useState)(!1),[c,d]=(0,n.useState)(null),u=(0,n.useRef)(null),{isLoggedIn:h,walletAddress:f}=(0,g.s)(s.w),[m,p]=(0,n.useState)(!1),[v,T]=(0,n.useState)(!1),[F,A]=(0,n.useState)([]);(0,n.useEffect)(()=>{h&&f?(async()=>{try{let e=await fetch("/api/auth/status",{credentials:"include"}),t=await e.json();if(!t.isLoggedIn||t.address!==f){p(!1),A([]);return}let r=async()=>{try{let e=await fetch("/api/auth/check-moderator",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:f})});if(e.ok){let{isModerator:t}=await e.json();p(t)}}catch(e){console.error("Error checking moderator status:",e)}},a=async()=>{try{let e=await fetch("/api/auth/check-guardian",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({walletAddress:f})});if(e.ok){let{isGuardian:t}=await e.json();T(t)}}catch(e){console.error("Error checking guardian status:",e)}},n=async()=>{try{let e=await fetch("/api/user-projects?wallet=".concat(f));if(e.ok){let t=await e.json();t.projects&&t.projects.length>0?A(t.projects.map(e=>({id:e.id,name:e.name}))):A([])}}catch(e){console.error("Error fetching owned projects:",e),A([])}};await r(),await a(),await n()}catch(e){console.error("Error verifying authentication:",e),p(!1),T(!1),A([])}})():(p(!1),T(!1),A([]))},[h,f]),(0,n.useEffect)(()=>{let e=document.querySelector("nav"),t=document.querySelector("main");if(e&&t){let a=j.os.timeline();r?(l(!1),a.to(e,{width:"56px",duration:.4,ease:"power2.out"},0),a.to(t,{marginLeft:"56px",duration:.4,ease:"power2.out"},0)):(a.to(e,{width:"224px",duration:.4,ease:"power2.out"},0),a.to(t,{marginLeft:"224px",duration:.4,ease:"power2.out"},0),a.add(()=>{l(!0)}),u.current&&a.from(u.current,{opacity:0,duration:.3,delay:.1}))}},[r]);let I=(()=>{let e=[{title:"Dashboard",icon:(0,a.jsx)(w,{}),path:"/"},{title:"Projects",icon:(0,a.jsx)(y,{}),path:"/projects"},{title:"Market",icon:(0,a.jsx)(O,{}),path:"/marketplace"},{title:"Docs",icon:(0,a.jsx)(M,{}),path:"/docs"},{title:"Portfolio",icon:(0,a.jsx)(P,{}),path:"/portfolio"},{title:"Create Project",icon:(0,a.jsx)(S,{}),path:"/create-project"},{title:"Discussions",icon:(0,a.jsx)(N,{}),path:"/discussions"},{title:"Settings",icon:(0,a.jsx)(C,{}),path:"/settings"}];return m&&e.push({title:"Moderator",icon:(0,a.jsx)(B,{}),path:"/moderator"}),v&&e.push({title:"Guardian",icon:(0,a.jsx)(B,{}),path:"/guardian"}),e})(),G=(()=>{let e=[];for(let t of F)e.push({title:t.name,path:"/project-dashboard?projectId=".concat(t.id),icon:(0,a.jsx)(L,{})});return e})();return(0,a.jsxs)("nav",{className:"h-[calc(100vh-64px)] w-14 text-[var(--text-muted)] fixed left-0 top-16 border-r border-[var(--border-primary)] z-10 bg-[var(--bg-primary)]",style:{width:"56px"},children:[(0,a.jsx)("div",{className:"absolute -right-3 top-4 z-20",children:(0,a.jsx)("button",{onClick:()=>{o(!r)},className:"flex items-center justify-center w-6 h-6 rounded-full bg-[var(--bg-tertiary)] border border-[var(--border-primary)] text-[var(--accent)] cursor-pointer",children:r?(0,a.jsx)(_,{size:14}):(0,a.jsx)(E,{size:14})})}),(0,a.jsxs)("ul",{className:"flex flex-col space-y-1 px-3 py-4 pr-6",children:[I.map(t=>{let s=e===t.path,o=c===t.path,i=()=>s||o?"var(--accent)":"var(--text-muted)";return(0,a.jsx)("li",{children:(0,a.jsxs)(b(),{href:t.path,className:"flex items-center ".concat(r?"justify-center px-0":"space-x-2 px-3"," py-2 relative transition-colors"),title:r?t.title:"",onMouseEnter:()=>d(t.path),onMouseLeave:()=>d(null),children:[(0,a.jsx)("span",{className:"w-5",style:{color:i(),transition:"color 0.2s ease"},children:n.cloneElement(t.icon,{size:18})}),!r&&(0,a.jsx)("div",{className:"w-36 overflow-hidden",children:(0,a.jsx)("span",{className:"text-sm whitespace-nowrap transition-colors",style:{color:i(),transition:"color 0.2s ease"},children:t.title})})]})},t.title)}),i&&h&&G.length>0&&(0,a.jsxs)("div",{ref:u,children:[(0,a.jsx)("li",{className:"pt-3 mt-2 border-t border-[var(--border-primary)]",children:(0,a.jsx)("div",{className:"px-3 py-1 text-xs text-[var(--text-muted)]",children:"Your Projects"})}),G.map(r=>{let s=t.get("projectId"),o=new URLSearchParams(r.path.split("?")[1]||"").get("projectId"),i="/project-dashboard"===e&&s===o,l=c===r.path,u=()=>i||l?"var(--accent)":"var(--text-muted)";return(0,a.jsx)("li",{children:(0,a.jsxs)(b(),{href:r.path,className:"flex items-center space-x-2 px-3 py-2 relative transition-colors",onMouseEnter:()=>d(r.path),onMouseLeave:()=>d(null),children:[(0,a.jsx)("span",{className:"w-5",style:{color:u(),transition:"color 0.2s ease"},children:n.cloneElement(r.icon||(0,a.jsx)(k,{}),{size:18})}),(0,a.jsx)("div",{className:"w-36 overflow-hidden",children:(0,a.jsx)("span",{className:"text-sm whitespace-nowrap",style:{color:u(),transition:"color 0.2s ease"},children:r.title})})]})},r.path)})]})]})]})};function F(e){let{children:t}=e;return(0,a.jsxs)("div",{className:"min-h-screen",children:[(0,a.jsx)(m,{}),(0,a.jsx)(T,{}),(0,a.jsx)("main",{style:{marginLeft:"56px"},className:"pt-16 transition-all duration-300",children:(0,a.jsx)("div",{className:"p-6 fade-in",children:t})})]})}var A=r(10351);let I=[{title:"Home",icon:(0,a.jsx)(A.FiHome,{}),path:"/"},{title:"Projects",icon:(0,a.jsx)(A.FiFolder,{}),path:"/projects"},{title:"Analytics",icon:(0,a.jsx)(A.FiBarChart2,{}),path:"/analytics"},{title:"Portfolio",icon:(0,a.jsx)(A.FiBriefcase,{}),path:"/portfolio"},{title:"Create",icon:(0,a.jsx)(A.FiPlusCircle,{}),path:"/create-project"},{title:"Discuss",icon:(0,a.jsx)(A.FiMessageSquare,{}),path:"/discussions"}],G=()=>{let e=(0,x.usePathname)();return(0,a.jsx)("nav",{className:"fixed bottom-0 left-0 w-full h-16 bg-[#16161a] border-t border-[#333336] z-50",children:(0,a.jsx)("ul",{className:"flex justify-around items-center h-full",children:I.map(t=>{let r=e===t.path;return(0,a.jsx)("li",{children:(0,a.jsxs)(b(),{href:t.path,className:"flex flex-col items-center justify-center w-14 ".concat(r?"text-cyan-300":"text-slate-300"),title:t.title,children:[(0,a.jsx)("span",{className:"text-lg",children:t.icon}),(0,a.jsx)("span",{className:"text-[10px] mt-1",children:t.title})]})},t.title)})})})};function z(e){let{children:t}=e;return(0,a.jsxs)("div",{className:"min-h-screen bg-[#16161a] max-w-full overflow-x-hidden",children:[(0,a.jsx)("main",{className:"pb-20 w-full",children:t}),(0,a.jsx)(G,{})]})}class R extends n.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error("ErrorBoundary caught an error:",e,t)}
1render(){if(this.state.hasError){var e;return this.props.fallback?this.props.fallback:(0,a.jsx)("div",{className:"min-h-screen flex items-center justify-center p-4",children:(0,a.jsxs)("div",{className:"border border-red-700 bg-red-900/20 p-6 rounded-lg max-w-md text-center",children:[(0,a.jsx)("h2",{className:"text-xl font-medium text-red-400 mb-2",children:"Something went wrong"}),(0,a.jsx)("p",{className:"text-slate-400 mb-4",children:(null===(e=this.state.error)||void 0===e?void 0:e.message)||"An unexpected error occurred"}),(0,a.jsx)("button",{onClick:()=>{this.setState({hasError:!1,error:null}),window.location.reload()},className:"px-4 py-2 bg-cyan-900 hover:bg-cyan-800 text-cyan-300 rounded transition-colors",children:"Reload Page"})]})})}return this.props.children}constructor(e){super(e),this.state={hasError:!1,error:null}}}let D=e=>{let{children:t}=e,[r,o]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{let e=()=>{let e=window.innerWidth<768;s.w.isMobile=e};return e(),window.addEventListener("resize",e),o(!0),()=>window.removeEventListener("resize",e)},[]),r)?(0,a.jsx)(R,{children:s.w.isMobile?(0,a.jsx)(z,{children:t}):(0,a.jsx)(F,{children:t})}):(0,a.jsxs)("div",{className:"min-h-screen",children:[(0,a.jsx)("div",{className:"fixed top-0 left-0 right-0 h-16 bg-[var(--bg-primary)] border-b border-[var(--border-primary)] z-10"}),(0,a.jsx)("div",{className:"fixed left-0 top-16 w-14 h-[calc(100vh-64px)] bg-[var(--bg-primary)] border-r border-[var(--border-primary)] z-10"}),(0,a.jsx)("main",{style:{marginLeft:"56px"},className:"pt-16 transition-all duration-300",children:(0,a.jsx)("div",{className:"p-6 fade-in",children:t})})]})}},99432:()=>{}},e=>{var t=t=>e(e.s=t);e.O(0,[67690,90844,45592,85105,35677,36059,6874,49641,42240,66855,46360,28441,31684,77358],()=>t(84063)),_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.