PageSourceSearch

https://launchnest.io/_next/static/chunks/app/signin/page-41a10d5aa7b2fa59.js

js launchnest.io collected 2026-10-08 07:26:54 UTC 7,582 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4217],{926:(e,t,r)=>{"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,{callServer:function(){return a.callServer},createServerReference:function(){return n.createServerReference},findSourceMapURL:function(){return s.findSourceMapURL}});let a=r(1209),s=r(5153),n=r(7197)},1847:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var a=r(2115);let s=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var o={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let i=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:s=24,strokeWidth:i=2,absoluteStrokeWidth:l,className:d="",children:c,iconNode:u,...m}=e;return(0,a.createElement)("svg",{ref:t,...o,width:s,height:s,stroke:r,strokeWidth:l?24*Number(i)/Number(s):i,className:n("lucide",d),...!c&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(m)&&{"aria-hidden":"true"},...m},[...u.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(c)?c:[c]])}),l=(e,t)=>{let r=(0,a.forwardRef)((r,o)=>{let{className:l,...d}=r;return(0,a.createElement)(i,{ref:o,iconNode:t,className:n("lucide-".concat(s(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),"lucide-".concat(e),l),...d})});return r.displayName=s(e),r}},3664:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(1847).A)("mail",[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]])},4983:(e,t,r)=>{Promise.resolve().then(r.bind(r,6483))},5917:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(1847).A)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},6483:(e,t,r)=>{"use strict";r.d(t,{SignInForm:()=>h});var a=r(5155),s=r(3664),n=r(5917),o=r(2115);r(8460);let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split(""),l=" 	\n\r=".split("");(()=>{let e=Array(128);for(let t=0;t<e.length;t+=1)e[t]=-1;for(let t=0;t<l.length;t+=1)e[l[t].charCodeAt(0)]=-2;for(let t=0;t<i.length;t+=1)e[i[t].charCodeAt(0)]=t})();let d="https://siovcgtrwzyedarpajtl.supabase.co";var c=r(926);let u=(0,c.createServerReference)("40a0ced6e57b25397f289dda5b2bdd30b70bd3bb7e",c.callServer,void 0,c.findSourceMapURL,"requestLoginCode"),m=(0,c.createServerReference)("6032d43da02f29347d100ee1d230741bb2190506dd",c.callServer,void 0,c.findSourceMapURL,"verifyLoginCode");function h(e){let{next:t}=e,[r,i]=(0,o.useState)(""),[l,c]=(0,o.useState)(""),[h,f]=(0,o.useState)(""),[p,b]=(0,o.useState)("idle"),[g,x]=(0,o.useState)(""),y=!!d&&!d.includes("placeholder")&&!d.includes("your-project-ref");async function v(e){if(e.preventDefault(),r.trim()){if(!y){b("error"),x("Sign-in is unavailable in this preview — it needs a live Supabase connection.");return}b("sending"),x(""),f("");try{let e=await u(r.trim());if(!e.ok){b("error"),x(e.error);return}c(e.email),b("sent")}catch(e){b("error"),x("Couldn’t reach the sign-in service. Check your connection and try again.")}}}async function w(e){if(e.preventDefault(),h.trim().length<6)return;b("verifying"),x("");let a=performance.now();try{let e=await m(l||r.trim(),h.trim()),s=Math.round(performance.now()-a);if(console.log("[signin] verifyLoginCode took ".concat(s,"ms")),!e.ok){b("error"),x(e.error);return}x("Verified in ".concat(s,"ms — signing you in…")),b("success"),setTimeout(()=>window.location.assign(t&&t.startsWith("/")&&!t.startsWith("//")?t:"/"),1e3)}catch(e){b("error"),x("Couldn’t verify that code. Please try again.")}}return(0,a.jsxs)("div",{className:"bg-white rounded-xl shadow-lg border border-slate-200 w-full p-6 sm:p-8",children:[!y&&(0,a.jsx)("div",{className:"mb-4 rounded-lg border border-amber-200 bg-amber-50 px-3 py-2.5 text-xs font-normal text-amber-800",children:"Preview mode — sign-in needs a live Supabase connection and won’t work here."}),g&&(0,a.jsx)("p",{role:"error"===p?"alert":"status",className:"mb-4 text-sm font-normal ".concat("error"===p?"text-red-600":"text-slate-600"),children:g}),"sent"===p||"verifying"===p||"success"===p?(0,a.jsxs)("form",{onSubmit:w,className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{htmlFor:"code",className:"block text-sm font-medium text-slate-900",children:"Enter your co
1de"}),(0,a.jsxs)("p",{className:"text-xs font-medium text-slate-500",children:["We emailed a code to ",(0,a.jsx)("strong",{className:"text-slate-900",children:r}),". No password needed."]}),(0,a.jsx)("input",{required:!0,id:"code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",autoFocus:!0,maxLength:8,value:h,disabled:"verifying"===p||"success"===p,onChange:e=>f(e.target.value.replace(/\D/g,"")),placeholder:"123456",className:"w-full rounded-lg border border-slate-300 bg-white px-4 py-3 text-center font-mono text-xl tracking-[0.4em] text-slate-900 transition-colors focus:border-[#ea8a11]"})]}),(0,a.jsx)("button",{type:"submit",disabled:"verifying"===p||"success"===p||h.length<6,className:"w-full rounded-lg btn-brand bg-gradient-to-r from-orange-500 to-[#ea8a11] px-4 py-3 font-bold text-white shadow-sm transition-all hover:from-[#ea8a11] hover:to-orange-600 disabled:cursor-not-allowed disabled:opacity-50",children:"verifying"===p?"Verifying…":"success"===p?"Signing you in…":"Verify & sign in →"}),(0,a.jsx)("button",{type:"button",disabled:"success"===p,onClick:()=>{b("idle"),f(""),x("")},className:"w-full text-center text-xs font-medium text-slate-400 underline hover:text-slate-600 disabled:cursor-not-allowed disabled:opacity-50",children:"Use a different email"})]}):(0,a.jsxs)("form",{onSubmit:v,className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-slate-900",children:"Email address"}),(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)(s.A,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-slate-400","aria-hidden":"true"}),(0,a.jsx)("input",{required:!0,type:"email",id:"email",value:r,autoComplete:"email",onChange:e=>i(e.target.value),className:"w-full rounded-lg border border-slate-300 bg-white py-2.5 pl-9 pr-3 text-slate-900 placeholder-slate-400 transition-colors focus:border-[#ea8a11]",placeholder:"[email protected]"})]})]}),(0,a.jsx)("button",{type:"submit",disabled:"sending"===p,className:"w-full rounded-lg btn-brand bg-gradient-to-r from-orange-500 to-[#ea8a11] px-4 py-3 font-bold text-white shadow-sm transition-all hover:from-[#ea8a11] hover:to-orange-600 disabled:cursor-not-allowed disabled:opacity-50",children:"sending"===p?"Sending…":"Send code →"})]}),(0,a.jsx)("div",{className:"my-6 border-t border-slate-100"}),(0,a.jsx)("ul",{className:"space-y-3",children:["Free to submit","Live within minutes","Compete in the next bracket"].map(e=>(0,a.jsxs)("li",{className:"flex items-center gap-3 text-sm font-medium text-slate-600",children:[(0,a.jsx)(n.A,{className:"h-4 w-4 flex-shrink-0 text-emerald-500","aria-hidden":"true"}),e]},e))})]})}},8460:(e,t)=>{"use strict";Object.prototype.toString,Object.prototype.hasOwnProperty}},e=>{e.O(0,[8441,1255,7358],()=>e(e.s=4983)),_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.