PageSourceSearch

https://utdsoftware.com/_next/static/chunks/0po92n2r8qusf.js

js utdsoftware.com collected 2026-10-05 06:57:41 UTC 6,428 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,948148,e=>{"use strict";var t=e.i(861745);function s(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let r=s(0,t.useTranslations);s(0,t.useFormatter),e.s(["useTranslations",0,r])},610012,e=>{"use strict";var t=e.i(843476),s=e.i(152088);e.s(["Input",0,function({className:e,type:r,...a}){return(0,t.jsx)("input",{type:r,className:(0,s.cn)("flex h-11 w-full rounded-lg border border-input bg-card/40 px-4 py-2 text-sm transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",e),...a})}])},362069,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(948148),a=e.i(194108),i=e.i(386586),n=e.i(858539),o=e.i(321715),l=e.i(618566),c=e.i(985902);function u(){return(0,t.jsxs)("svg",{viewBox:"0 0 24 24",className:"size-5","aria-hidden":"true",children:[(0,t.jsx)("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.27-4.74 3.27-8.1Z"}),(0,t.jsx)("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84A11 11 0 0 0 12 23Z"}),(0,t.jsx)("path",{fill:"#FBBC05",d:"M5.84 14.1a6.6 6.6 0 0 1 0-4.2V7.06H2.18a11 11 0 0 0 0 9.88l3.66-2.84Z"}),(0,t.jsx)("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84C6.71 7.3 9.14 5.38 12 5.38Z"})]})}e.s(["SocialAuth",0,function(){let e=(0,r.useTranslations)("auth"),{setSession:d}=(0,n.useAuth)(),h=(0,o.useRouter)(),m=(0,l.useSearchParams)(),[p,g]=(0,s.useState)(null),[f,x]=(0,s.use
1State)(!1),[b,v]=(0,s.useState)("");async function j(){if(p?.firebase){x(!0),v("");try{let e,t=await (0,i.signInWithGoogle)(p.firebase),s=await a.authApi.firebase(t);d(s.token,s.user),h.push((e=m.get("redirect"))&&e.startsWith("/")&&!e.startsWith("//")?e:"/dashboard")}catch(t){v(t instanceof a.ApiError&&403===t.status&&"platform_locked"===t.message?e("platformLocked"):t instanceof a.ApiError&&409===t.status&&"email_linked_to_another_account"===t.message?e("emailLinkedToAnotherAccount"):t instanceof a.ApiError?t.message:e("genericError"))}finally{x(!1)}}}return((0,s.useEffect)(()=>{(0,a.getAuthConfig)().then(g)},[]),p&&p.google.enabled&&p.firebase)?(0,t.jsxs)("div",{className:"space-y-3",children:[b&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:b}),(0,t.jsxs)(c.Button,{type:"button",variant:"outline",size:"lg",className:"w-full",onClick:j,disabled:f,children:[(0,t.jsx)(u,{}),e("continueGoogle")]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 py-1 text-xs text-muted-foreground",children:[(0,t.jsx)("span",{className:"h-px flex-1 bg-border"}),e("or"),(0,t.jsx)("span",{className:"h-px flex-1 bg-border"})]})]}):null}])},936250,e=>{"use strict";var t=e.i(843476),s=e.i(271645),r=e.i(948148),a=e.i(194108),i=e.i(858539),n=e.i(321715),o=e.i(618566),l=e.i(610012),c=e.i(985902);e.s(["PhoneForm",0,function(){let e=(0,r.useTranslations)("auth.phone"),u=(0,r.useTranslations)("auth"),d=(0,s.useId)(),{setSession:h}=(0,i.useAuth)(),m=(0,n.useRouter)(),p=(0,o.useSearchParams)(),[g,f]=(0,s.useState)(null),[x,b]=(0,s.useState)("login"),[v,j]=(0,s.useState)(""),[w,y]=(0,s.useState)(""),[A,N]=(0,s.useState)(""),[C,S]=(0,s.useState)(!1),[k,T]=(0,s.useState)("");function E(e){b(e),y(""),N(""),T("")}async function F(t){if(t.preventDefault(),"register"===x&&w!==A)return void T(e("mismatch"));S(!0),T("");try{let e,t="login"===x?await a.authApi.login(v,w):await a.authApi.register(v,w,A);h(t.token,t.user),m.push((e=p.get("redirect"))&&e.startsWith("/")&&!e.startsWith("//")?e:"/dashboard")}catch(t){T((t instanceof a.ApiError&&403===t.status&&"platform_locked"===t.message?u("platformLocked"):null)??(t instanceof a.ApiError&&422===t.status?"login"===x?e("wrongPassword"):"phone_taken"===t.message?e("phoneTaken"):t.message:t instanceof a.ApiError?t.message:u("genericError")))}finally{S(!1)}}return(0,s.useEffect)(()=>{(0,a.getAuthConfig)().then(f)},[]),g&&g.phone.enabled?(0,t.jsxs)("form",{onSubmit:F,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-lg font-semibold",children:"login"===x?e("title"):e("titleRegister")}),(0,t.jsx)("p",{className:"mt-1 text-sm text-muted-foreground",children:"login"===x?e("subtitle"):e("subtitleRegister")})]}),k&&(0,t.jsx)("p",{className:"text-sm text-destructive",children:k}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:`${d}-identifier`,className:"text-sm font-medium",children:e("identifier")}),(0,t.jsx)(l.Input,{id:`${d}-identifier`,dir:"ltr",autoComplete:"username",placeholder:e("identifierPlaceholder"),value:v,disabled:C,onChange:e=>j(e.target.value),required:!0})]}),(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:`${d}-password`,className:"text-sm font-medium",children:e("password")}),(0,t.jsx)(l.Input,{id:`${d}-password`,type:"password",autoComplete:"login"===x?"current-password":"new-password",value:w,disabled:C,onChange:e=>y(e.target.value),required:!0})]}),"register"===x&&(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("label",{htmlFor:`${d}-confirm-password`,className:"text-sm font-medium",children:e("confirmPassword")}),(0,t.jsx)(l.Input,{id:`${d}-confirm-password`,type:"password",autoComplete:"new-password",value:A,disabled:C,onChange:e=>N(e.target.value),required:!0})]}),"login"===x&&(0,t.jsx)("div",{className:"text-end",children:(0,t.jsx)(n.Link,{href:"/forgot-password",className:"text-sm text-brand-cyan hover:underline",children:e("forgotPassword")})}),(0,t.jsx)(c.Button,{type:"submit",variant:"brand",size:"lg",className:"w-full",disabled:C,children:C?u("processing"):"login"===x?e("signin"):e("createAccount")}
1),(0,t.jsx)("p",{className:"text-center text-sm text-muted-foreground",children:"login"===x?(0,t.jsxs)(t.Fragment,{children:[e("noAccount")," ",(0,t.jsx)("button",{type:"button",onClick:()=>E("register"),className:"font-medium text-brand-cyan hover:underline",children:e("switchToRegister")})]}):(0,t.jsxs)(t.Fragment,{children:[e("haveAccount")," ",(0,t.jsx)("button",{type:"button",onClick:()=>E("login"),className:"font-medium text-brand-cyan hover:underline",children:e("switchToLogin")})]})})]}):null}])}]);

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.