1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,810035,e=>{"use strict";var r=e.i(778942);e.s(["CircularLoader",()=>r.CircularLoader_default])},95187,(e,r,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={callServer:function(){return l.callServer},createServerReference:function(){return o.createServerReference},findSourceMapURL:function(){return n.findSourceMapURL}};for(var i in a)Object.defineProperty(t,i,{enumerable:!0,get:a[i]});let l=e.r(132120),n=e.r(92245),o=e.r(235326)},341179,246974,e=>{"use strict";var r=e.i(843476),t=e.i(207670);let a={error:{container:"border-red-200 bg-red-50 dark:border-red-500/30 dark:bg-red-500/10",icon:"bg-red-600 text-white dark:bg-red-500"},success:{container:"border-green-200 bg-green-50 dark:border-green-500/30 dark:bg-green-500/10",icon:"bg-green-600 text-white dark:bg-green-500"},info:{container:"border-blue-200 bg-blue-50 dark:border-blue-500/30 dark:bg-blue-500/10",icon:"bg-blue-600 text-white dark:bg-blue-500"}};function i({variant:e}){return(0,r.jsx)("svg",{viewBox:"0 0 16 16",className:"size-3",fill:"none",children:(0,r.jsx)("path",{d:{success:"M4.5 8.5l2.5 2.5 4.5-5",error:"M8 4.5v4.25M8 11.25v.01",info:"M8 7.25v4M8 4.75v.01"}[e],stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}let l=function({variant:e,messages:l,onClose:n}){let o=a[e];return(0,r.jsxs)("div",{role:"error"===e?"alert":"status",className:(0,t.default)("feedback-enter flex items-start gap-3 rounded-xl border py-3 pl-3 pr-2 text-left text-sm leading-snug text-primary-dark dark:text-soft-white",o.container),children:[(0,r.jsx)("span",{"aria-hidden":"true",className:(0,t.default)("mt-px flex size-5 shrink-0 items-center justify-center rounded-full",o.icon),children:(0,r.jsx)(i,{variant:e})}),(0,r.jsx)("div",{className:"min-w-0 flex-1 wrap-break-word",children:l.length<=1?(0,r.jsx)("p",{children:l[0]}):(0,r.jsx)("ul",{className:"list-disc space-y-1 pl-4",children:l.map((e,t)=>(0,r.jsx)("li",{children:e},t))})}),n&&(0,r.jsx)("button",{type:"button","aria-label":"Dismiss message",onClick:n,className:"-my-1 flex size-7 shrink-0 cursor-pointer items-center justify-center rounded-md opacity-60 transition hover:bg-black/5 hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-current active:scale-95 dark:hover:bg-white/10",children:(0,r.jsx)("svg",{viewBox:"0 0 16 16",className:"size-3.5",fill:"none","aria-hidden":!0,children:(0,r.jsx)("path",{d:"M4 4l8 8M12 4l-8 8",stroke:"currentColor",strokeWidth:"1.75",strokeLinecap:"round"})})})]})};e.s(["default",0,l],246974),e.s(["default",0,function({messages:e=[],onClose:t}){return(0,r.jsx)(l,{variant:"error",messages:e,onClose:t})}],341179)},208046,e=>{"use strict";var r=e.i(843476),t=e.i(341179),a=e.i(246974);let i=function({messages:e,onClose:t}){return(0,r.jsx)(a.default,{variant:"success",messages:e,onClose:t})};e.s(["default",0,function({formFeedback:e,onClose:a}){return(0,r.jsxs)(r.Fragment,{children:["error"===e.type&&(0,r.jsx)(t.default,{messages:e.message??["An error occurred"],onClose:a}),"success"===e.type&&(0,r.jsx)(i,{messages:e.message,onClose:a})]})}],208046)},933911,e=>{"use strict";var r=e.i(843476),t=e.i(207670),a=e.i(522016);e.s(["Link",0,function({children:e,href:i,target:l,decorated:n=!1,className:o}){return(0,r.jsx)(a.default,{className:(0,t.default)("text-primary-dark text-sm border-b link-anim hover:text-primary-hover dark:text-soft-white dark:hover:text-primary-hover",n?"border-b-primary-dark hover:border-b-transparent dark:border-b-primary-hover":"border-b-transparent hover:border-b-primary-hover",o),target:l,href:i,children:e})}])},93587,e=>{"use strict";var r=e.i(843476),t=e.i(208046);e.i(164485);var a=e.i(5447),i=e.i(95187);let l=(0,i.createServerReference)("60cbbf5c22b078c06384101b248af279541866defe",i.callServer,void 0,i.findSourceMapURL,"login");var n=e.i(6705),o=e.i(137963);e.i(241557);var s=e.i(810035);e.i(272628);var d=e.i(747016),c=e.i(207670),u=e.i(271645),p=e.i(653145);e.s(["default",0,function(){let e=(0,a.useRedirectPath)((0,o.pageUrl)(n.PAGE.Dashboard)),{register:i,handleSubmit:f,resetField:g}=(0,p.useForm)({defaultValues:{email:"",password:""}}),[m,b]=(0,u.useState)(!1),{setError:h,formFeedback:v,resetFeedback:x}=(0,a.useFormFeedback)();async function k(r){v&&x(),b(!0);try{let t=await l(r.email,r.password);if(!t.ok){h(t.message),g("password");return}(0,o.setClientEmail)(r.email),(0,o.clearClientAccountId)(),(0,o.clearSignupRedirect)(),await (0,o.trackSuccessfulLogin)(n.LOGIN_METHOD.Website,r.email),window.location.href=e||(0,o.pageUrl)(n.PAGE.Dashboard)}catch(e){alert(e)}finally{b(!1)}}return(0,r.jsxs)("form",{className:"space-y-6 mt-6",onSubmit:f(k),children:[(0,r.jsxs)("div",{className:"relative rounded-lg",children:[(0,r.jsx)("div",{className:"flex-c text-[#edd200] absolute left-5 top-1.5 pointer-events-none",children:(0,r.jsx)(d.UserIcon,{})}),(0,r.jsx)("input",{"data-clarity-mask":"True",...i("email"),required:!0,autoComplete:"username",id:"email",type:"email",placeholder:"Enter your email",className:"pl-16 lg:pl-20 pr-5 lg:pr-8 py-3 w-full border border-gray-600 rounded-lg focus:outline-hidden shadow-[5px_5px_0px_0px] shadow-primary placeholder:font-semibold placeholder:text-gray-400 focus:border-black dark:bg-primary-dark dark:text-soft-white dark:focus:border-gray-800"})]}),(0,r.jsxs)("div",{className:"relative rounded-lg",children:[(0,r.jsx)("div",{className:"flex-c text-[#edd200] absolute left-5 top-2 pointer-events-none",children:(0,r.jsx)(d.LockIcon,{})}),(0,r.jsx)("input",{"data-clarity-mask":"True",...i("password"),required:!0,id:"password",autoComplete:"current-password",type:"password",placeholder:"Password",className:"pl-16 lg:pl-20 pr-5 lg:pr-8 py-3 w-full border border-gray-600 rounded-lg focus:outline-hidden shadow-[5px_5px_0px_0px] shadow-primary placeholder:font-semibold placeholder:text-gray-400 focus:border-black dark:bg-primary-dark dark:text-soft-white dark:focus:border-gray-800 dark:autofill:bg-primary-dark dark:autofill:text-soft-white"})]}
1),(0,r.jsx)("button",{type:"submit",className:(0,c.default)("w-full bg-black text-white py-3 rounded-lg font-semibold shadow-md link-anim cursor-pointer dark:bg-primary dark:text-primary-dark",m?"opacity-50":"hover:bg-gray-800 dark:hover:bg-primary/70"),disabled:m,children:m?(0,r.jsx)(s.CircularLoader,{}):"Login"}),v&&(0,r.jsx)(t.default,{formFeedback:v,onClose:x})]})}],93587)},885111,e=>{"use strict";var r=e.i(843476),t=e.i(208046),a=e.i(933911);e.i(164485);var i=e.i(5447),l=e.i(95187);let n=(0,l.createServerReference)("6031220c05a31b25fb78821d21b38106e07160619b",l.callServer,void 0,l.findSourceMapURL,"googleLogin");var o=e.i(6705),s=e.i(137963),d=e.i(241557);e.i(272628);var c=e.i(747016),u=e.i(271645);let p=(0,u.createContext)(null);function f({clientId:e,nonce:r,locale:t,onScriptLoadSuccess:a,onScriptLoadError:i,children:l}){let n=function(e={}){let{nonce:r,locale:t,onScriptLoadSuccess:a,onScriptLoadError:i}=e,[l,n]=(0,u.useState)(!1),o=(0,u.useRef)(a);o.current=a;let s=(0,u.useRef)(i);return s.current=i,(0,u.useEffect)(()=>{let e=document.createElement("script");return e.src="https://accounts.google.com/gsi/client",t&&(e.src+=`?hl=${t}`),e.async=!0,e.defer=!0,e.nonce=r,e.onload=()=>{var e;n(!0),null==(e=o.current)||e.call(o)},e.onerror=()=>{var e;n(!1),null==(e=s.current)||e.call(s)},document.body.appendChild(e),()=>{document.body.removeChild(e)}},[r]),l}({nonce:r,onScriptLoadSuccess:a,onScriptLoadError:i,locale:t}),o=(0,u.useMemo)(()=>({locale:t,clientId:e,scriptLoadedSuccessfully:n}),[e,n]);return u.default.createElement(p.Provider,{value:o},l)}let g={large:40,medium:32,small:20};function m({onSuccess:e,onError:r,useOneTap:t,promptMomentNotification:a,type:i="standard",theme:l="outline",size:n="large",text:o,shape:s,logo_alignment:d,width:c,click_listener:f,state:b,containerProps:h,login_hint:v,...x}){let k=(0,u.useRef)(null),{clientId:w,locale:y,scriptLoadedSuccessfully:j}=function(){let e=(0,u.useContext)(p);if(!e)throw Error("Google OAuth components must be used within GoogleOAuthProvider");return e}(),S=(0,u.useRef)(e);S.current=e;let C=(0,u.useRef)(r);C.current=r;let N=(0,u.useRef)(a);return N.current=a,(0,u.useEffect)(()=>{var e,r,a,u,p,g,m,h,L;if(j)return null==(a=null==(r=null==(e=null==window?void 0:window.google)?void 0:e.accounts)?void 0:r.id)||a.initialize({client_id:w,callback:e=>{var r,t;if(!(null==e?void 0:e.credential))return null==(r=C.current)?void 0:r.call(C);let{credential:a,select_by:i}=e;S.current({credential:a,clientId:null!=(t=null==e?void 0:e.clientId)?t:null==e?void 0:e.client_id,select_by:i})},login_hint:v,...x}),null==(g=null==(p=null==(u=null==window?void 0:window.google)?void 0:u.accounts)?void 0:p.id)||g.renderButton(k.current,{type:i,theme:l,size:n,text:o,shape:s,logo_alignment:d,width:c,locale:y,click_listener:f,state:b}),t&&(null==(L=null==(h=null==(m=null==window?void 0:window.google)?void 0:m.accounts)?void 0:h.id)||L.prompt(N.current)),()=>{var e,r,a;t&&(null==(a=null==(r=null==(e=null==window?void 0:window.google)?void 0:e.accounts)?void 0:r.id)||a.cancel())}},[w,j,t,i,l,n,o,s,d,c,y,v]),u.default.createElement("div",{...h,ref:k,style:{height:g[n],...null==h?void 0:h.style}})}e.s(["default",0,function({text:e}){let l=(0,i.useRedirectPath)((0,s.pageUrl)(o.PAGE.Dashboard)),[p,g]=(0,u.useState)(!1),{resetFeedback:b,formFeedback:h,setError:v}=(0,i.useFormFeedback)();async function x(e){g(!0);try{let r=await n(e.clientId??"",e.credential??"");if(!r.ok)return void v(r.message);await (0,s.trackSuccessfulLogin)(o.LOGIN_METHOD.Google),r.data.isSignup?((0,s.setSignupSuccessFeedback)({message:r.data.message,loggedIn:!0,signupMethod:o.LOGIN_METHOD.Google}),window.location.href=l?`${(0,s.pageUrl)(o.PAGE.SignupThanks)}?redirect=${encodeURIComponent(l)}`:(0,s.pageUrl)(o.PAGE.SignupThanks)):window.location.href=l||(0,s.pageUrl)(o.PAGE.Dashboard)}catch(e){alert(e)}finally{g(!1)}}return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"space-y-3",children:[(0,r.jsx)("div",{className:"flex-cc",children:(0,r.jsx)(f,{clientId:"419062325912-9unjk3ejplk881av1rvdaciuu3qcrn0d.apps.googleusercontent.com",children:(0,r.jsx)(m,{onSuccess:x,onError:()=>{alert("There was an error logging you in. Contact the support team")},text:"signin"===e?"signin_with":"signup_with",width:250,size:"large"})})}),(0,r.jsxs)(a.Link,{href:`https://github.com/login/oauth/authorize?scope=user:email&client_id=Ov23liWsmPxUN0Jc1SxV&state=${l?encodeURIComponent(l):""}`,className:"text-black! font-medium link-anim bg-white border border-gray-600! py-3 rounded-sm flex-c px-3 gap-10 hover:bg-gray-100 transition duration-150 w-62.5 h-10 mx-auto dark:text-primary-dark",children:[(0,r.jsx)(c.GithubIcon,{}),"signin"===e?" Sign in":"Sign up"," with GitHub"]}),h&&(0,r.jsx)(t.default,{formFeedback:h,onClose:b})]}),p&&(0,r.jsx)(d.FullPageCircularLoader,{})]})}],885111)}]);
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.