PageSourceSearch

https://www.learnwithexplore.com/_next/static/chunks/pages/auth/si…?dpl=dpl_GHN2VGL8hTebzRrBP4msxvL5xVgN

js learnwithexplore.com collected 2026-10-08 23:03:24 UTC 9,254 bytes, 1 lines download raw bytes

1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="abbdb290-a6bf-4f03-98a0-9124c44de20f",e._sentryDebugIdIdentifier="sentry-dbid-abbdb290-a6bf-4f03-98a0-9124c44de20f")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3443],{9894:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSP:()=>j,default:()=>D});var n=s(37876),a=s(91696),o=s(19233),i=s(7032),r=s(46652),l=s(73506),d=s(47379),m=s(56417),u=s(10553),c=s(89099),g=s(14232);let h=()=>{let e=(0,c.useRouter)(),t=(0,d.l)(),[s,a]=(0,g.useState)(""),[o,h]=(0,g.useState)(""),[f,p]=(0,g.useState)(""),[x,b]=(0,g.useState)(!1),[_,N]=(0,g.useState)(!1),[y,v]=(0,g.useState)(""),C=(0,g.useMemo)(()=>x||f.length>0,[f.length,x]),S=async n=>{n.preventDefault(),v("");let a=s.trim().toUpperCase(),i=o.trim(),r=f.trim();if(!a||!i)return void v("Room code and first name are required.");if(x&&!r)return void v("Please enter your last name so we can find you.");N(!0);let l=`/reports/room-code?roomCode=${encodeURIComponent(a)}`,d=t?.getSessionId();try{let t=await (0,u.signIn)("student-room-login",{roomCode:a,firstName:i,lastName:r||void 0,sessionId:d||void 0,callbackUrl:l,redirect:!1});if(t?.ok)return void await e.push(t.url??l);(t?.error===m.kS.lastNameRequired||t?.error===m.kS.lastNameMismatch)&&b(!0);let s=t?.error!==m.kS.lastNameMismatch||r?(0,m.m9)(t?.error):(0,m.m9)(m.kS.lastNameRequired);v(s)}catch(e){v("Unable to sign in. Please try again.")}finally{N(!1)}};return(0,n.jsx)("div",{className:"w-full p-5 sm:max-w-md justify-center align-middle shadow rounded bg-white text-black",children:(0,n.jsxs)("div",{className:"flex flex-col justify-between gap-4 mt-5",children:[y&&(0,n.jsx)("div",{className:"flex",children:(0,n.jsx)(i.default,{variant:"error",message:y})}),(0,n.jsx)("div",{className:"text-center font-semibold",children:"Room Code Log-in (Student Only)"}),(0,n.jsx)("p",{className:"text-xs text-gray-600 text-center",children:"Your educator must enable Room Code Log-in. Enter the room code and your first name to sign in. We'll ask for your last name if another student shares your first name."}),(0,n.jsxs)("form",{onSubmit:S,className:"space-y-4",children:[(0,n.jsx)(l.A_,{label:"Room Code",name:"roomCode",placeholder:"ABC123",value:s,onChange:e=>{a(e.target.value),v(""),b(!1)},disabled:_,autoComplete:"off"}),(0,n.jsx)(l.A_,{label:"First Name",name:"firstName",placeholder:"Enter your first name",value:o,onChange:e=>{h(e.target.value),v(""),b(!1)},disabled:_,autoComplete:"given-name"}),C&&(0,n.jsx)(l.A_,{label:"Last Name",name:"lastName",placeholder:"Enter your last name",value:f,onChange:e=>{p(e.target.value),v("")},disabled:_,autoComplete:"family-name"}),(0,n.jsx)(r.A,{type:"submit",className:"w-full",loading:_,disabled:_,children:"Continue"})]})]})})};var f=s(81169),p=s(55628),x=s(95884),b=s(88500),_=s(67208),N=s(67848),y=s(80593),v=s(67799),C=s(35046),S=s(36299),R=s(67768),w=s(48230),L=s.n(w),j=!0;let D=({providers:e})=>{let t=(0,N.PB)(),s=(0,d.l)(),[i,r]=(0,g.useState)("educator"),[l]=(0,g.useState)(()=>new S.E((0,_.A)())),m="student"===i,u="nyla"===t.brandKey,c=u?"/":"https://exploremindlabs.com",w=e=>(0,y.cn)("flex-1 rounded-full px-4 py-2 text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-500 focus-visible:ring-offset-2",u&&"nyla-display",e?"bg-white text-gray-900 shadow":"text-gray-600 hover:text-gray-900");return(0,n.jsx)(b.P,{children:(0,n.jsx)(x.y,{children:(0,n.jsxs)(R.Ht,{client:l,children:[(0,n.jsx)(a.A,{title:`Sign In - ${t.appName}`}),(0,n.jsxs)("div",{className:"flex min-h-screen flex-col bg-white text-gray-900",children:[(0,n.jsx)("header",{className:(0,y.cn)("mx-auto flex w-full px-4 sm:px-6 lg:px-8",u?"justify-center pb-5 pt-10":"max-w-6xl py-8"),children:u?(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(L(),{href:c,"aria-label":`${t.appName} home`,children:(0,n.jsx)(f.F,{className:"h-16 w-36 min-[360px]:h-20 min-[360px]:w-44 sm:h-24 sm:w-52"})}),(0,n.jsx)("div",{className:"mx-2 h-10 w-px bg-gray-200 min-[360px]:mx-4 min-[360px]:h-12 sm:mx-5 sm:h-14","aria-hidden":"true"}),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-1.5",role:"img","aria-label":"Powered by MindLabs",children:[(0,n.jsx)("span",{className:"text-[8px] font-semibold uppercase tracking-[0.12em] text-gray-500 min-[360px]:text-[9px] sm:text-[10px]",children:"Powered by"}),(0,n.jsx)(p.gu,{className:"h-5 w-auto min-[360px]:h-6 sm:h-7",width:116,height:28,"aria-hidden":"true"})]})]}):(0,n.jsx)(L(),{href:c,"aria-label":`${t.appName} home`,children:(0,n.jsx)(f.F,{className:"h-[100px] w-[250px]"})})}),(0,n.jsx)("main",{className:"flex flex-1 flex-col justify-center px-4 pb-12 sm:px-6",children:(0,n.jsxs)("div",{className:"mx-auto flex w-full max-w-md flex-col gap-4",children:[(0,n.jsxs)("div",{className:"flex rounded-full bg-gray-100 p-1",children:[(0,n.jsx)("button",{type:"button",onClick:()=>r("educator"),className:w(!m),"aria-pressed":!m,children:"Email Log-in"}),(0,n.jsx)("button",{type:"button",onClick:()=>{m||(0,v._)(s,C.Jy.ROOM_CODE_TAB_CLICKED,{source_context:"signin"}),r("student")},className:w(m),"aria-pressed":m,children:"Room Code Log-in"})]}),m?(0,n.jsx)(h,{}):(0,n.jsx)(o.A,{isRegisterForm:!1,providers:e})]})})]})]})})})}},17440:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/signin",function(){return s(9894)}])},35046:(e,t,s)=>{"use strict";s.d(t,{Jy:()=>a,iU:()=>n});let n="student_report_login",a={STUDENT_LOGIN_SUCCESS:"student_report_login.student_success",ASSIGNMENT_ENABLED:"student_report_login.assignment_enabled",ORG_ENABLED:"student_report_login.org_enabled",ORG_DISABLED:"student_report_login.org_disabled",ROOM_CODE_PDF_DOWNLOAD:"student_report_login.room_code_pdf_download",ROOM_CODE_TAB_CLICKED:"student_report_login.room_code_tab_clicked"};a.STUDENT_LOGIN_SUCCESS,a.ROOM_CODE_TAB_CLICKED,a.ASSIGNMENT_ENABLED,a.ORG_ENABLED,a.ROOM_CODE_PDF_DOWNLOAD},47379:(e,t,s)=>{"use strict";s.d(t,{l:()=>a});var n=s(28529);let a=()=>(0,n.E)()},56417:(e,t,s)=>{"use strict";s.d(t,{kS:()=>n,m9:()=>i,nY:()=>d,pF:()=>l});let n={missingFields:"studentRoomLogin.missingFields",assignmentNotFound:"studentRoomLogin.assignmentNotFound",orgDisabled:"studentRoomLogin.orgDisabled",assignmentDisabled:"studentRoomLogin.assignmentDisabled",assignmentInactive:"studentRoomLogin.assignmentInactive",assignmentSubmitted:"studentRoomLogin.assignmentSubmitted",noStudents:"studentRoomLogin.noStudents",noFirstNameMatch:"studentRoomLogin.noFirstNameMatch",lastNameRequired:"studentRoomLogin.lastNameRequired",lastNameMismatch:"studentRoomLogin.lastNameMismatch",duplicateFullName:"studentRoomLogin.duplicateFullName",nonStudent:"studentRoomLogin.nonStudent",inactiveAccount:"studentRoomLogin.inactiveAccount",portfolioSubmitted:"studentRoomLogin.portfolioSubmitted"},a={[n.missingFields]:"Room code and first name are required.",[n.assignmentNotFound]:"We could not find that room code. Check the code and ask your teacher for help.",[n.orgDisabled]:"Room Code Log-in is not available for your school yet. Ask your teacher for help.",[n.assignmentDisabled]:"Your teacher has not turned on Room Code Log-in for this assignment yet.",[n.assignmentInactive]:"This assignment is no longer active.",[n.assignmentSubmitted]:"This assignment has already been submitted.",[n.noStudents]:"No students are assigned to this room code. Ask your teacher for help.",[n.noFirstNameMatch]:"We could not find that first name in this group. Check the spelling.",[
1n.lastNameRequired]:"More than one student in this group has that first name. Please enter your last name.",[n.lastNameMismatch]:"More than one student in this group has that first name. The last name you entered does not match. Please try again.",[n.duplicateFullName]:"Multiple students share that first and last name in this group. Ask your teacher to update the roster.",[n.nonStudent]:"Only students can use Room Code Log-in.",[n.inactiveAccount]:"Your account is inactive. Ask your teacher for help.",[n.portfolioSubmitted]:"Your work has already been submitted."},o=new Set(Object.values(n)),i=e=>e?"CredentialsSignin"===e?"Unable to sign in. Check the room code and name.":"string"==typeof e&&o.has(e)?a[e]:e:"Unable to sign in. Please try again.",r={assignmentDisabled:"Room Code Log-in is turned off for this assignment.",orgDisabled:"Room Code Log-in is turned off for this organization.",unavailable:"Room Code Log-in is unavailable for this assignment."},l=e=>e?.every(e=>e.studentReportLoginEnabled)??!1,d=({hasOrganization:e,orgEnabled:t,assignmentEnabled:s})=>{let n=(({hasOrganization:e,orgEnabled:t,assignmentEnabled:s})=>s&&(!e||!0===t)?null:e&&!t?"orgDisabled":s?"unavailable":"assignmentDisabled")({hasOrganization:e,orgEnabled:t,assignmentEnabled:s});return{canAccess:null===n,message:n?r[n]:null}}},67799:(e,t,s)=>{"use strict";s.d(t,{_:()=>a});var n=s(35046);let a=(e,t,s)=>{e&&e.recordUserAction(t,{action_detail:"Room Code Log-in",action_id:t,feature:n.iU,...s})}}},e=>{e.O(0,[6695,956,7743,8230,2713,9221,8992,7292,1659,9718,2909,8994,1044,2363,4347,636,6593,8792],()=>e(e.s=17440)),_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.