PageSourceSearch

https://www.hysta.com/_next/static/immutable/chunks/1zse7la75dbwh.js

js hysta.com collected 2026-10-05 01:27:03 UTC 30,324 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,755838,(e,t,a)=>{"use strict";var s=e.r(271645),l="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useState,r=s.useEffect,n=s.useLayoutEffect,o=s.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!l(e,a)}catch(e){return!0}}var c="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var a=t(),s=i({inst:{value:a,getSnapshot:t}}),l=s[0].inst,c=s[1];return n(function(){l.value=a,l.getSnapshot=t,u(l)&&c({inst:l})},[e,a,t]),r(function(){return u(l)&&c({inst:l}),e(function(){u(l)&&c({inst:l})})},[e]),o(a),a};a.useSyncExternalStore=void 0!==s.useSyncExternalStore?s.useSyncExternalStore:c},802239,(e,t,a)=>{"use strict";e.i(247167),t.exports=e.r(755838)},752822,(e,t,a)=>{"use strict";var s=e.r(271645),l=e.r(802239),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},r=l.useSyncExternalStore,n=s.useRef,o=s.useEffect,u=s.useMemo,c=s.useDebugValue;a.useSyncExternalStoreWithSelector=function(e,t,a,s,l){var m=n(null);if(null===m.current){var d={hasValue:!1,value:null};m.current=d}else d=m.current;var h=r(e,(m=u(function(){function e(e){if(!o){if(o=!0,r=e,e=s(e),void 0!==l&&d.hasValue){var t=d.value;if(l(t,e))return n=t}return n=e}if(t=n,i(r,e))return t;var a=s(e);return void 0!==l&&l(t,a)?(r=e,t):(r=e,n=a)}var r,n,o=!1,u=void 0===a?null:a;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,a,s,l]))[0],m[1]);return o(function(){d.hasValue=!0,d.value=h},[h]),c(h),h}},430224,(e,t,a)=>{"use strict";e.i(247167),t.exports=e.r(752822)},33167,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2h-7rtu2zi7_i.js"].map(t=>e.l(t))).then(()=>t(847864)))},196400,e=>{e.v(t=>Promise.all(["static/immutable/chunks/179-phvr61k-7.js"].map(t=>e.l(t))).then(()=>t(167433)))},847310,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2pstaf10-ca0r.js"].map(t=>e.l(t))).then(()=>t(886166)))},864005,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0h44txpsex-ed.js"].map(t=>e.l(t))).then(()=>t(528814)))},878587,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0u4n6ys-uhsfl.js"].map(t=>e.l(t))).then(()=>t(756659)))},30527,e=>{e.v(t=>Promise.all(["static/immutable/chunks/273sco-co1yxy.js"].map(t=>e.l(t))).then(()=>t(750125)))},351215,e=>{e.v(t=>Promise.all(["static/immutable/chunks/044hjbqwm0jar.js"].map(t=>e.l(t))).then(()=>t(206071)))},296057,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3nhjh8coexb0q.js"].map(t=>e.l(t))).then(()=>t(269699)))},211702,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2ur74nxz0fcfw.js"].map(t=>e.l(t))).then(()=>t(947182)))},551883,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1bopwxxre_n9i.js"].map(t=>e.l(t))).then(()=>t(835844)))},481781,e=>{e.v(t=>Promise.all(["static/immutable/chunks/36eoqr2verzbh.js"].map(t=>e.l(t))).then(()=>t(876336)))},803744,e=>{e.v(t=>Promise.all(["static/immutable/chunks/38q4jx51e10gq.js"].map(t=>e.l(t))).then(()=>t(846206)))},759704,e=>{e.v(t=>Promise.all(["static/immutable/chunks/15-9cwy4cha9v.js"].map(t=>e.l(t))).then(()=>t(115301)))},617603,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1_kic3eao4f8p.js"].map(t=>e.l(t))).then(()=>t(824909)))},878619,e=>{e.v(t=>Promise.all(["static/immutable/chunks/18royec53ys7g.js"].map(t=>e.l(t))).then(()=>t(265493)))},652771,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0pctvbjieo07r.js"].map(t=>e.l(t))).then(()=>t(903409)))},662961,e=>{e.v(t=>Promise.all(["static/immutable/chunks/08glalusmp-tf.js"].map(t=>e.l(t))).then(()=>t(889046)))},296852,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2kxuc0yi5ax0g.js"].map(t=>e.l(t))).then(()=>t(602430)))},770863,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1jklqgeprskjb.js"].map(t=>e.l(t))).then(()=>t(333089)))},458242,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3eax78xmk3qz3.js"].map(t=>e.l(t))).then(()=>t(566642)))},923790,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3guhn7_wqlxhr.js"].map(t=>e.l(t))).then(()=>t(417624)))},132841,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1szdo022t7-4c.js"].map(t=>e.l(t))).then(()=>t(717479)))},992795,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0qupjl0xcf101.js"].map(t=>e.l(t))).then(()=>t(461791)))},486857,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2cg6jc6pfztbr.js"].map(t=>e.l(t))).then(()=>t(364829)))},729510,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1ab107vqquork.js"].map(t=>e.l(t))).then(()=>t(254418)))},141443,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2hs2igqv0yxru.js"].map(t=>e.l(t))).then(()=>t(833547)))},270182,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1kn6tp3-zjdaq.js"].map(t=>e.l(t))).then(()=>t(111050)))},339893,e=>{e.v(t=>Promise.all(["static/immutable/chunks/19m31wm7mjx2q.js"].map(t=>e.l(t))).then(()=>t(24564)))},177428,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0h9fynuirilzr.js"].map(t=>e.l(t))).then(()=>t(747546)))},344626,e=>{e.v(t=>Promise.all(["static/immutable/chunks/41ocbmduff7d2.js"].map(t=>e.l(t))).then(()=>t(543073)))},301223,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3sdapf10sk7rw.js"].map(t=>e.l(t))).then(()=>t(194103)))},138353,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1d63xp3wagsj-.js"].map(t=>e.l(t))).then(()=>t(305981)))},730475,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3trkyj2k2og9f.js"].map(t=>e.l(t))).then(()=>t(782488)))},872753,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3i1vs9a2tna4u.js"].map(t=>e.l(t))).then(()=>t(478514)))},806299,e=>{e.v(t=>Promise.all(["static/immutable/chunks/34hd0c_k4gwvc.js"].map(t=>e.l(t))).then(()=>t(717645)))},113144,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3tjevb9n6rht-.js"].map(t=>e.l(t))).then(()=>t(448741)))},646155,e=>{e.v(t=>Promise.all(["static/immutable/chunks/28vui0407g0yh.js"].map(t=>e.l(t))).then(()=>t(36598)))},555264,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1wk1pjsczi6n7.js"].map(t=>e.l(t))).then(()=>t(471592)))},6814,e=>{e.v(t=>Promise.all(["static/immutable/chunks/1g5qbg89m2kdq.js"].map(t=>e.l(t))).then(()=>t(397217)))},170922,e=>{e.v(t=>Promise.all(["static/immutable/chunks/43kyhcy01z6l5.js"].map(t=>e.l(t))).then(()=>t(555961)))},768996,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3m7aii-_lx34b.js"].map(t=>e.l(t))).then(()=>t(220690)))},862694,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0mu842vaii1gc.js"].map(t=>e.l(t))).then(()=>t(392651)))},309640,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2wznvkjbsjm4_.js"].map(t=>e.l(t))).then(()=>t(51261)))},604145,e=>{e.v(t=>Promise.all(["static/immutable/chunks/21v6wvkpnjs41.js"].map(t=>e.l(t))).then(()=>t(153662)))},125309,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3n_v-q4rnta71.js"].map(t=>e.l(t))).then(()=>t(125191)))},224227,e=>{e.v(t=>Promise.all(["static/immutable/chunks/0frlms5zzj-6l.js"].map(t=>e.l(t))).then(()=>t(235418)))},374767,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2p0pw7qypnpql.js"].map(t=>e.l(t))).then(()=>t(27383)))},297932,e=>{e.v(t=>Promise.all(["static/immutable/chunks/2id4tj_hdb9eu.js"].map(t=>e.l(t))).then(()=>t(897095)))},885850,e=>{e.q("/_next/static/immutable/media/logo_alt.21uui94j1hcsa.png")},732754,e=>{e.q("/_next/static/immutable/media/hysta.2asztyfbiw8fk.png")},115077,e=>{e.q("/_next/static/immutable/media/hystaTxtB.3blg20xv0ld64.png")},724253,e=>{e.v({absolute:"index-module__SnvWpW__absolute","fui-button":"index-module__SnvWpW__fui-button","fui-button--RArrow":"index-module__SnvWpW__fui-button--RArrow","fui-button--black":"index-module__SnvWpW__fui-button--black","fui-button--contained":"index-module__SnvWpW__fui-button--contained","fui-button--fullWidth":"index-module__SnvWpW__fui-button--fullWidth","fui-button--large":"index-module__SnvWpW__fui-button--large","fui-button--linear":"index-module__SnvWpW__fui-button--linear","fui-button--medium":"index-module__SnvWpW__fui-button--medium","fui-button--outlined":"index-module__SnvWpW__fui-button--outlined","fui-button--small":"index-module__SnvWpW__fui-button--small","fui-button--text":"index-module__SnvWpW__fui-button--text","fui-button--w
1hite":"index-module__SnvWpW__fui-button--white"})},124821,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(207670),l=e.i(724253);let i=(0,a.forwardRef)(({children:e,className:a,disabled:i=!1,fullWidth:r=!1,loading:n=!1,variant:o="contained",color:u="primary",size:c="medium",iconH:m,fontWeight:d="semibold",...h},p)=>(0,t.jsx)("button",{className:(0,s.default)("fui-button",l.default[`fui-button--${o}`],l.default[`fui-button--${u}`],l.default[`fui-button--${c}`],!n&&m&&l.default[`fui-button--${m}`],"flex flex-row justify-center items-center whitespace-nowrap cursor-pointer rounded-[15px]",(n||i)&&"bg-gray-400 opacity-30 pointer-events-none cursor-not-allowed",r?"w-full":"w-fit",d&&`font-${d}`,a),...h,children:e}));e.s(["default",0,i])},236012,e=>{e.v({balanceInput:"style-module__SrwPjW__balanceInput",balanceInput_error:"style-module__SrwPjW__balanceInput_error",balanceInput_errorBorder:"style-module__SrwPjW__balanceInput_errorBorder",balanceInput_light:"style-module__SrwPjW__balanceInput_light",balanceInput_wrapper:"style-module__SrwPjW__balanceInput_wrapper",balanceInput_wrapper_light:"style-module__SrwPjW__balanceInput_wrapper_light"})},664236,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(207670),l=e.i(236012);let i=(0,a.forwardRef)(({className:e,inputClassName:a,lableClassName:i,error:r,defaultValue:n,title:o,type:u,onChange:c,icon:m,color:d="dark",value:h,...p},f)=>(0,t.jsxs)(t.Fragment,{children:[o&&(0,t.jsx)("label",{htmlFor:p.name,className:(0,s.default)("mb-[4px] text-[15px]","dark"===d?"text-white":"text-gray-700",i),children:o}),(0,t.jsxs)("div",{className:(0,s.default)("relative","dark"===d?l.default.balanceInput_wrapper:l.default.balanceInput_wrapper_light,r&&"!border-[#E96170] !ring-[#E96170]",e),children:[(0,t.jsx)("input",{ref:f,className:(0,s.default)("dark"===d?l.default.balanceInput:l.default.balanceInput_light,a,r&&l.default.balanceInput_error),...void 0!==h?{value:h}:{},...void 0===h&&void 0!==n?{defaultValue:n}:{},onChange:c,type:u,id:p.name,...p}),m,r&&(0,t.jsx)("div",{className:(0,s.default)(l.default.balanceInput_errorBorder,"!opacity-100")})]})]}));e.s(["default",0,i])},381859,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(664236),l=e.i(399174),i=e.i(207670);let r=(0,a.forwardRef)(({className:e,toggleClassName:r,color:n="light",...o},u)=>{let[c,m]=(0,a.useState)(!1),d=(0,a.useCallback)(()=>{m(e=>!e)},[]),h=(0,a.useCallback)(e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),d())},[d]),p=(0,t.jsx)("button",{type:"button",onClick:d,onKeyDown:h,"aria-label":c?"Hide password":"Show password","aria-pressed":c,className:(0,i.default)("absolute right-3 top-1/2 -translate-y-1/2","w-[44px] h-[44px]","flex items-center justify-center","bg-transparent","text-gray-500","hover:text-gray-700","focus-visible:text-gray-700","transition-colors duration-150 ease-out","focus:outline-none focus-visible:ring-2 focus-visible:ring-inset","focus-visible:ring-gray-400 rounded-sm","cursor-pointer","select-none","z-10",r),tabIndex:0,children:c?(0,t.jsx)(l.EyeOffIcon,{className:"w-[24px] h-[24px]"}):(0,t.jsx)(l.EyeIcon,{className:"w-[24px] h-[24px]"})});return(0,t.jsx)(s.default,{ref:u,...o,type:c?"text":"password",className:e,color:n,inputClassName:"pr-[48px]",icon:p})});r.displayName="PasswordInput",e.s(["default",0,r])},627073,e=>{"use strict";let t=["demo_day.read","demo_day.review","demo_day.export","demo_day.email"],a=new Set(t);function s(e){return Array.isArray(e)?[...new Set(e.filter(e=>"string"==typeof e&&a.has(e)))]:[]}e.s(["demoDayAccessLevel",0,function(e){let a=s(e);return t.every(e=>a.includes(e))?"full":a.includes("demo_day.review")?"review":a.includes("demo_day.read")?"view":"none"},"hasAdminPermission",0,function(e,t,a){return"admin"===e||s(t).includes(a)},"isDemoDayAdminPath",0,function(e){return"/adminconsole/demo-day"===e||/^\/adminconsole\/demo-day\/finalist-materials\/[^/]+$/.test(e)||/^\/adminconsole\/applications\/demo_day\/[^/]+$/.test(e)},"replaceDemoDayPermissions",0,function(e,a){return[...s(e).filter(e=>!t.includes(e)),...function(e){switch(e){case"view":return["demo_day.read"];case"review":return["demo_day.read","demo_day.review"];case"full":return[...t];default:return[]}}(a)]}])},894213,e=>{"use strict";var t=e.i(843476),a=e.i(271645),s=e.i(672464),l=e.i(618566),i=e.i(383417),r=e.i(653145),n=e.i(124821),o=e.i(664236),u=e.i(381859);let c=e=>{let[t,s]=(0,a.useState)(!1),[l,i]=(0,a.useState)(null);return{inTranscation:t,execTranscation:(0,a.useCallback)(async t=>
1{try{s(!0);let a=await e(t);return s(!1),a}catch(e){throw s(!1),i(e?.message||"Unknown error"),e}},[e]),error:l}};var m=e.i(280033),d=e.i(645638);let h=()=>{let{register:e,handleSubmit:s,formState:{errors:l}}=(0,r.useForm)(),i=(0,m.useResetPassword)(),{inTranscation:u,execTranscation:d}=c((0,a.useCallback)(async e=>{await i(e.email)},[]));return(0,t.jsxs)("form",{onSubmit:s(d),className:"flex flex-col items-center w-full gap-y-[16px] text-[#fff]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-[8px] w-full min-w-[300px]",children:[(0,t.jsx)(o.default,{autoFocus:!0,title:"Email",error:!!l.email,className:"w-full",placeholder:"Please enter your Email",...e("email",{required:"Email is required",pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Please enter a valid email"}}),disabled:u}),l.email&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:"Please enter a valid email"})]}),(0,t.jsx)(n.default,{loading:u,color:"white",type:"submit",className:"w-full",children:"Submit"})]})},p=({redirectUrl:e,resetPassword:s})=>{let{register:l,handleSubmit:i,formState:{errors:h,isSubmitting:p}}=(0,r.useForm)(),{login:f,unverifiedEmail:x}=(0,m.useLogin)(e),b=(0,d.useShowToast)(),v=(0,a.useRef)(!1),[g,w]=(0,a.useState)(!1),y=(0,a.useCallback)(async e=>{if(v.current)return void console.log("Form submission already in progress, ignoring duplicate submit");try{v.current=!0,await f(e)}finally{setTimeout(()=>{v.current=!1},2e3)}},[f]),j=(0,a.useCallback)(async()=>{if(x&&!g){w(!0);try{let e=await fetch("/api/auth/resend-verification",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:x})}),t=await e.json();e.ok&&t.success?t.alreadyVerified?b({type:"success",content:"Your email is already verified. Please try signing in again."}):b({type:"success",content:"Verification email sent! Please check your inbox and spam folder."}):b({type:"error",content:t.error||"Failed to send verification email."})}catch{b({type:"error",content:"Failed to send verification email. Please try again."})}finally{w(!1)}}},[x,g,b]),{inTranscation:_,execTranscation:k}=c(y),P=_||p||v.current,S=(0,a.useCallback)(e=>{"Enter"===e.key&&P&&(e.preventDefault(),console.log("Preventing duplicate submission via Enter key"))},[P]),[N,E]=(0,a.useState)(!1);return(0,a.useCallback)(()=>{E(e=>!e)},[]),(0,t.jsxs)("form",{onSubmit:i(k),onKeyDown:S,className:"flex flex-col items-center w-full gap-y-[16px] text-[#fff]",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-[8px] w-full min-w-[300px]",children:[(0,t.jsx)(o.default,{title:"Email",error:!!h.email,className:"w-full",placeholder:"Please enter your Email",...l("email",{required:"Email is required",pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Please enter a valid email"}}),disabled:_,color:"dark"}),h.email&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:"Please enter a valid email"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-[8px] w-full",children:[(0,t.jsx)(u.default,{title:"Password",error:!!h.password,className:"w-full",placeholder:"Please enter your Password",...l("password",{required:!0}),disabled:_,color:"dark"}),h.password&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:"Password is required"})]}),(0,t.jsxs)("div",{className:"flex w-full justify-between items-center",children:[(0,t.jsx)("span",{className:"cursor-pointer underline hover:text-gray-300",onClick:s,children:"Reset Password"}),x&&(0,t.jsx)("button",{type:"button",onClick:j,disabled:g,className:"text-sm text-indigo-400 hover:text-indigo-300 underline disabled:opacity-50",children:g?"Sending...":"Resend Verification"})]}),(0,t.jsx)(n.default,{loading:_,color:"white",type:"submit",className:"w-full",children:"Sign In"})]})},f=({redirectUrl:e})=>{let[s,l]=(0,a.useState)(!1),i=(0,a.useCallback)(()=>{l(!0)},[]);return(0,t.jsx)("div",{className:"flex flex-col items-center w-full gap-y-[16px] text-[#fff]",children:s?(0,t.jsx)(h,{}):(0,t.jsx)(p,{redirectUrl:e,resetPassword:i})})};e.i(151718);var x=e.i(991939),b=e.i(813580),v=e.i(321076),g=e.i(280781),w=e.i(688972),y=e.i(132153);let j=({redirectUrl:e})=>{let{lang:c}=(0,l.useParams)(),m=(0,l.useRouter)(),h=(0,d.useShowToast)(),p=(0,s.use
1SetAtom)(i.hideModalAtom),{register:f,handleSubmit:j,formState:{errors:_,isSubmitting:k},watch:P}=(0,r.useForm)({defaultValues:{email:"",password:"",confirmPassword:"",firstName:"",lastName:""}}),S=P("password"),N=(0,a.useRef)(!1),E=(0,a.useCallback)(e=>{h({type:"error",content:Object.values(e).map(e=>e?.message).find(e=>"string"==typeof e&&e.length>0)||y.ERROR_MESSAGES.FORM_VALIDATION_FAILED})},[h]),A=(0,a.useCallback)(async t=>{if(N.current)return void console.log("Form submission already in progress, ignoring duplicate submit");N.current=!0;try{let a=await fetch("/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:t.email,password:t.password,firstName:t.firstName,lastName:t.lastName})}),s=await a.json();if(s.success){h({type:"success",title:"Account Created Successfully!",content:`A verification email has been sent to ${t.email}. Please check your inbox and click the verification link to activate your account.`,duration:6e3});try{let a=await (0,x.signInWithEmailAndPassword)(g.auth,t.email,t.password),s={url:`${window.location.origin}${(0,w.localePath)(c,"/auth/action")}`,handleCodeInApp:!1};await (0,b.sendEmailVerification)(a.user,s),console.log("Verification email sent via Firebase built-in service"),await (0,v.signOut)(g.auth),setTimeout(()=>{p(),m.push(`${(0,w.localePath)(c,"/login")}?verified=false&email=${encodeURIComponent(t.email)}${e?`&redirect=${encodeURIComponent(e)}`:""}`)},1500)}catch(a){console.error("Email verification error:",a),setTimeout(()=>{p(),m.push(`${(0,w.localePath)(c,"/login")}?verificationFailed=true&email=${encodeURIComponent(t.email)}${e?`&redirect=${encodeURIComponent(e)}`:""}`)},1500)}}else s.error?.includes("already exists")?h({type:"warning",title:"Account Already Exists",content:"An account with this email already exists. Please sign in or reset your password."}):h({type:"error",content:s.error||y.ERROR_MESSAGES.REGISTRATION_FAILED})}catch(e){console.error("Registration error:",e),h({type:"error",content:y.ERROR_MESSAGES.REGISTRATION_FAILED})}finally{N.current=!1}},[h,p,m,c,e]),I=k||N.current;return(0,t.jsxs)("form",{onSubmit:j(A,E),className:"flex flex-col items-center w-full gap-y-[12px] text-[#fff]",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 w-full",children:[(0,t.jsxs)("div",{className:"flex flex-col gap-y-[4px]",children:[(0,t.jsx)(o.default,{title:"First Name",placeholder:"John",className:"w-full",error:!!_.firstName,...f("firstName",{required:"First name is required",setValueAs:e=>e?.trim()??""}),disabled:I,color:"dark"}),_.firstName&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:_.firstName.message})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-[4px]",children:[(0,t.jsx)(o.default,{title:"Last Name",placeholder:"Doe",className:"w-full",error:!!_.lastName,...f("lastName",{required:"Last name is required",setValueAs:e=>e?.trim()??""}),disabled:I,color:"dark"}),_.lastName&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:_.lastName.message})]})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-[4px] w-full",children:[(0,t.jsx)(o.default,{title:"Email",type:"email",placeholder:"[email protected]",className:"w-full",error:!!_.email,...f("email",{required:"Email is required",setValueAs:e=>e?.trim()??"",pattern:{value:/^[^\s@]+@[^\s@]+\.[^\s@]+$/,message:"Please enter a valid email"}}),disabled:I,color:"dark"}),_.email&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:_.email.message})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-[4px] w-full",children:[(0,t.jsx)(u.default,{title:"Password",placeholder:"At least 8 characters",className:"w-full",error:!!_.password,...f("password",{required:"Password is required",minLength:{value:8,message:"Password must be at least 8 characters"},validate:e=>{let t=[!/[A-Z]/.test(e)&&"an uppercase letter",!/[a-z]/.test(e)&&"a lowercase letter",!/[0-9]/.test(e)&&"a number"].filter(Boolean);return 0===t.length||`Password is missing ${t.join(", ")}`}}),disabled:I,color:"dark"}),_.password&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:_.password.message}),(0,t.jsx)("p",{className:"text-[10px] text-gray-400",children:"Must be at least 8 characters with uppercase, lowercase, and a number"})]}),(0,t.jsxs)("div",{className:"flex flex-col gap-y-[4px] w-full",children:[(0,t.jsx)(u.default,{title:"Confirm Password",placeholder:"Confirm your password",className:"w-full",error:!!_.confirmPassword,...f("confirmPassword",{required:"Please confirm your password",validate:e=>e===S||"Passwords do not match"}),disabled:I,color:"dark"}),_.confirmPassword&&(0,t.jsx)("span",{className:"text-xs text-red-400",children:_.confirmPassword.message})]}),(0,t.jsxs)("div",{className:"flex items-start gap-x-2 w-full text-[11px] text-gray-400",children:[(0,t.jsx)("input",{type:"checkbox",id:"terms",required:!0,className:"mt-0.5"}),(0,t.jsxs)("label",{htmlFor:"terms",className:"cursor-pointer",children:["I agree to the"," ",(0,t.jsx)("a",{href:(0,w.localePath)(c,"/terms"),className:"text-indigo-400 hover:text-indigo-300 underline",children:"Terms of Service"})," ","and"," ",(0,t.jsx)("a",{href:(0,w.localePath)(c,"/privacy"),className:"text-indigo-400 hover:text-indigo-300 underline",children:"Privacy Policy"})]})]}),(0,t.jsx)(n.default,{loading:I,color:"white",type:"submit",className:"w-full",children:"Create Account"})]})};var _=e.i(859661);let k=({redirectUrl:e=""})=>{let{handleSocialLogin:s,isLoading:l}=(0,_.useSocialLogin)(e),i=(0,a.useCallback)(e=>{s(e)},[s]);return(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 w-full",children:[(0,t.jsxs)("button",{type:"button",onClick:()=>i("google"),disabled:l,className:"flex items-center justify-center gap-3 p-3 bg-white hover:bg-gray-50 rounded-xl transition-all duration-200 border border-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",title:"Continue with Google",children:[(0,t.jsxs)("svg",{className:"h-5 w-5",viewBox:"-3 0 262 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",children:[(0,t.jsx)("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),(0,t.jsx)("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),(0,t.jsx)("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),(0,t.jsx)("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"})]}),(0,t.jsx)("span",{className:"text-sm text-gray-700 font-medium",children:"Continue with Google"})]}),(0,t.jsxs)("button",{type:"button",onClick:()=>i("microsoft"),disabled:l,className:"flex items-center justify-center gap-3 p-3 bg-white hover:bg-gray-50 rounded-xl transition-all duration-200 border border-gray-200 disabled:opacity-50 disabled:cursor-not-allowed",title:"Continue with Microsoft",children:[(0,t.jsxs)("svg",{className:"h-5 w-5",viewBox:"0 0 23 23",children:[(0,t.jsx)("path",{fill:"#FFB900",d:"M0 0h11v11H0z"}),(0,t.jsx)("path",{fill:"#F25022",d:"M12 0h11v11H12z"}),(0,t.jsx)("path",{fill:"#7FBA00",d:"M0 12h11v11H0z"}),(0,t.jsx)("path",{fill:"#00A4EF",d:"M12 12h11v11H12z"})]}),(0,t.jsx)("span",{className:"text-sm text-gray-700 font-medium",children:"Continue with Microsoft"})]})]})})};e.s(["default",0,({defaultTab:e="signIn",redirectUrl:r})=>
1{let[n,o]=(0,a.useState)(e),u=(0,s.useSetAtom)(i.hideModalAtom),{lang:c}=(0,l.useParams)(),m=(0,a.useCallback)(e=>{o(e)},[]);return(0,a.useCallback)(()=>{u()},[u]),(0,t.jsxs)("div",{className:"flex flex-col items-center w-full gap-y-4 text-white",children:[(0,t.jsxs)("div",{className:"flex w-full min-w-[300px] border-b border-gray-700",children:[(0,t.jsxs)("button",{onClick:()=>m("signIn"),className:`flex-1 py-3 text-center font-semibold text-base transition-colors relative ${"signIn"===n?"text-white":"text-gray-400 hover:text-gray-300"}`,children:["Sign In","signIn"===n&&(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-indigo-500"})]}),(0,t.jsxs)("button",{onClick:()=>m("signUp"),className:`flex-1 py-3 text-center font-semibold text-base transition-colors relative ${"signUp"===n?"text-white":"text-gray-400 hover:text-gray-300"}`,children:["Sign Up","signUp"===n&&(0,t.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-0.5 bg-indigo-500"})]})]}),(0,t.jsx)("div",{className:"w-full min-w-[300px]",children:(0,t.jsx)(k,{redirectUrl:r})}),(0,t.jsxs)("div",{className:"flex items-center w-full min-w-[300px]",children:[(0,t.jsx)("div",{className:"flex-1 border-t border-gray-700"}),(0,t.jsx)("span",{className:"px-4 text-sm text-gray-400",children:"or"}),(0,t.jsx)("div",{className:"flex-1 border-t border-gray-700"})]}),(0,t.jsx)("div",{className:"w-full min-w-[300px]",children:"signIn"===n?(0,t.jsx)(f,{redirectUrl:r}):(0,t.jsx)(j,{redirectUrl:r})})]})}],894213)},894860,e=>{e.v(t=>Promise.all(["static/immutable/chunks/3hpi3xgz8qziq.js"].map(t=>e.l(t))).then(()=>t(784925)))},859661,e=>{"use strict";var t=e.i(271645),a=e.i(618566);e.i(151718);var s=e.i(144388),s=s,l=s,i=s,r=s,n=s,o=s,u=e.i(672464),c=e.i(645638),m=e.i(383417),d=e.i(280781),h=e.i(280033),p=e.i(132153),f=e.i(908034),x=e.i(947293);let b="postLoginRedirect";function v(e,t){if(!e)return t;let a=e.trim();return!a.startsWith("/")||a.startsWith("//")?t:a}function g(){let e=sessionStorage.getItem(b);return e?(sessionStorage.removeItem(b),e):null}let w=new l.Y;w.setCustomParameters({prompt:"select_account"});let y=new i.Z,j=new r.a0,_=new n.X,k=new o._("microsoft.com");async function P(e,t){let a=await e.getIdToken(!0),s=await fetch("/api/auth/social-login",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}});if(!s.ok)throw Error((await s.json()).error||"Failed to create user");return s.json()}k.setCustomParameters({prompt:"select_account"}),e.s(["useSocialLogin",0,l=>{let i=(0,u.useSetAtom)(h.userAtom),r=(0,c.useShowToast)(),n=(0,u.useSetAtom)(m.hideModalAtom),o=(0,a.useRouter)(),[S,N]=(0,t.useState)(!1),[E,A]=(0,t.useState)(null);return{handleSocialLogin:(0,t.useCallback)(async t=>{var a;if(S||E)return void console.log(`Social login already pending, ignoring ${t} request`);let u=(0,f.getProfileUrl)();a=v(l||u,u),sessionStorage.setItem(b,a),A(t),N(!0);let c=!1;try{let a,c;switch(t){case"google":a=w;break;case"github":a=y;break;case"twitter":a=j;break;case"facebook":a=_;break;case"microsoft":a=k;break;default:throw Error("Invalid provider")}try{c=(await (0,s.d)(d.auth,a)).user}catch(e){throw e}let m=null;try{await P(c,t)}catch(e){console.warn("Failed to create/update user in Firestore:",e),m="Your account was created, but profile sync may be delayed."}try{let t=await c.getIdToken(!0),{setIdTokenCookie:a}=await e.A(894860);await a(t)}catch(e){console.warn("Failed to set session cookie:",e),m||(m="Login successful, but session may need to be refreshed.")}i(c),n(),m&&r({type:"warning",title:"Login Successful",content:m,duration:4e3});let h="";try{let e=await c.getIdToken(),t=(0,x.jwtDecode)(e);h=t.role||t.customClaims?.role||""}catch{}let p=(0,f.getLangFromPathname)(window.location.pathname);if("admin"===h)o.push((0,f.getAdminConsoleUrl)(p));else if("investor"===h)o.push((0,f.getVCConsoleUrl)(p));else if("founder"===h){let e=g(),t=v(e||l||(0,f.getFounderProfileUrl)(p),(0,f.getFounderProfileUrl)(p));o.push(t)}else{let e=g(),t=v(e||l||u,u);o.push(t)}}catch(e){if("auth/popup-closed-by-user"===e.code){c=!0,setTimeout(()=>{A(null),N(!1)},200);return}if("auth/network-request-failed"===e.code){r({type:"error",title:"Social Login Unavailable",content:p.ERROR_MESSAGES.NETWORK_E
1RROR}),c=!0,A(null),N(!1);return}if("auth/account-exists-with-different-credential"===e.code){e.credential;let t=e.customData?.email;r({type:"error",title:"Account Already Exists",content:`An account already exists with the same email address but different sign-in credentials. Sign in using a method associated with ${t}`}),c=!0,A(null),N(!1);return}if("auth/unauthorized-domain"===e.code){r({type:"error",title:"Social Login Not Available",content:p.ERROR_MESSAGES.UNAUTHORIZED_DOMAIN}),c=!0,A(null),N(!1);return}if("auth/cancelled-popup-request"===e.code){c=!0,setTimeout(()=>{A(null),N(!1)},200);return}console.error("Social login error:",e),r({type:"error",title:"Social Login Failed",content:p.ERROR_MESSAGES.SOCIAL_LOGIN_FAILED})}finally{c||(A(null),N(!1))}},[i,r,n,o,l,S,E,f.getProfileUrl]),isLoading:S}}],859661)},72941,e=>{"use strict";function t(e){return e.replace(/^\/(en|zh)(?=\/|$)/,"")||"/"}e.s(["isCurPath",0,(e,a)=>{let s=t(e),l=t(a);return s===l||"/"!==l&&s.startsWith(l)},"isCurProfilePath",0,(e,a)=>{let s=t(e),l=t(a);return"/founders/profile/edit"===l?s.startsWith("/founders/profile"):"/profile"===s&&("/profile"===l||"/profile/edit"===l)||!("/profile"===l&&s.startsWith("/founders/profile"))&&"/profile"!==l&&s.startsWith(l)},"stripLang",0,t])}]);

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.