1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{4599:(e,r,n)=>{"use strict";n.d(r,{k:()=>s});var i=n(6029),a=n(55729),o=n(24291),t=n.n(o);let s=({waitMs:e=0})=>{let[r,n]=(0,a.useState)(e>0),[o,s]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let r=setTimeout(()=>{n(!1)},e);return()=>{clearTimeout(r)}},[o,e]),r&&!o&&s(!0),r)?(0,i.jsx)(a.Fragment,{}):(0,i.jsxs)("div",{className:t().loadingAnimationFade,children:[(0,i.jsx)("div",{className:t().loadingAnimationBackdrop}),(0,i.jsx)("div",{className:t().loadingAnimation,children:(0,i.jsxs)("div",{className:t().ldsRing,children:[(0,i.jsx)("div",{}),(0,i.jsx)("div",{}),(0,i.jsx)("div",{}),(0,i.jsx)("div",{})]})})]})}},14955:e=>{e.exports={container:"LandingFooter_container__M9kbs",footerContainer:"LandingFooter_footerContainer__u6pJp",footerListContainer:"LandingFooter_footerListContainer__6OlVC",footerListItem:"LandingFooter_footerListItem__daKbT",copyRight:"LandingFooter_copyRight__Gyfis"}},21775:(e,r,n)=>{"use strict";n.d(r,{p:()=>l});var i=n(6029),a=n(49543),o=n(15652),t=n(14955),s=n.n(t);let l=()=>{if((0,o.U)())return null;let e=new Date().getFullYear();return(0,i.jsxs)("footer",{className:`${s().footerContainer} ${s().container}`,children:[(0,i.jsxs)("p",{className:s().copyRight,children:["Copyright ",e," AdaptedMind"]}),(0,i.jsxs)("div",{className:s().footerListContainer,children:[(0,i.jsx)("div",{children:(0,i.jsx)(a.S,{className:s().footerListItem,href:"/info/about",wrapper:"Link",children:"ABOUT"})}),(0,i.jsx)("div",{children:(0,i.jsx)(a.S,{className:s().footerListItem,href:"/info/testimonials",wrapper:"Link",children:"TESTIMONIALS"})}),(0,i.jsx)("div",{children:(0,i.jsx)(a.S,{className:s().footerListItem,href:"/info/legal",wrapper:"Link",children:"TERMS AND CONDITIONS"})}),(0,i.jsx)("div",{children:(0,i.jsx)(a.S,{className:s().footerListItem,href:"/info/privacy",wrapper:"Link",children:"PRIVACY"})}),(0,i.jsx)("div",{children:(0,i.jsx)(a.S,{className:s().footerListItem,href:"/info/guarantee",wrapper:"Link",children:"OUR GUARANTEE"})}),(0,i.jsx)("div",{children:(0,i.jsx)(a.S,{className:s().footerListItem,href:"/info/scholarships",wrapper:"Link",children:"SCHOLARSHIPS"})}),(0,i.jsx)("div",{children:(0,i.jsx)(a.S,{className:s().footerListItem,href:"/info/contact",wrapper:"Link",children:"CONTACT US"})})]})]})}},24291:e=>{e.exports={loadingAnimationBackdrop:"LoadingSpinner_loadingAnimationBackdrop__UDaPD",loadingAnimation:"LoadingSpinner_loadingAnimation__9Nkcj",loadingAnimationFade:"LoadingSpinner_loadingAnimationFade__Hh9Ug",ldsRing:"LoadingSpinner_ldsRing__7GI7f","lds-ring":"LoadingSpinner_lds-ring__2GTQs"}},59587:(e,r,n)=>{"use strict";n.r(r),n.d(r,{__N_SSP:()=>x,default:()=>j});var i=n(6029),a=n(22577),o=n(79895),t=n(23005),s=n(4599),l=n(21775),d=n(78993),c=n(90867),p=n(82203),_=n.n(p),m=n(55729),g=n(88717),u=n.n(g);let f=(0,c.PA)(({errMsg:e,redirectToURL:r})=>{let[n,s]=(0,m.useState)(""),[c,p]=(0,m.useState)(""),[g,f]=(0,m.useState)(""),[h,x]=(0,m.useState)(!1);return(0,m.useEffect)(()=>{e&&""!==e&&f(e)},[e]),(0,i.jsxs)(m.Fragment,{children:[(0,i.jsx)("div",{className:`container-fluid ${u().containerBackground}`,children:(0,i.jsx)("div",{className:u().containerWrapper,children:(0,i.jsx)("div",{className:`container row ${u().container}`,children:(0,i.jsx)("div",{className:"col-xs-10 col-sm-10 col-md-8 col-lg-6 col-xl-5 align-self-center",children:(0,i.jsxs)("div",{className:u().formWrapper,children:[(0,i.jsx)("h1",{className:u().title,children:"Member Login"}),""!==g&&(0,i.jsx)("div",{className:"alert alert-danger",children:g}),(0,i.jsxs)("form",{action:"",method:"post",onSubmit:e=>{if(e.preventDefault(),""===n.trim())return void f("Please enter a valid email address");if(""===c.trim())return void f("Please provide a password.");x(!0);let i=n.trim(),s=c.trim();t.i.login(i,s).then(e=>{x(!1),f(""),"plato"===e.source&&(0,d.LA)(e),e.parent.site_usage===a.frq.ASK_PAYMENT_HARD||e.parent.site_usage===a.frq.ASK_PAYMENT_SOFT?(0,o.ri)(e.parent.plato_final_migration)?window.location.replace(a.S29):window.location.replace(a.yl7):window.location.replace(r)}).catch(e=>{x(!1),f("Sorry, the username and password do not match an AdaptedMind account.")})},children:[(0,i.jsx)("div",{className:u().formGroup,children:(0,i.jsx)("input",{className:`form-control ${u().formInput}`,id:"loginUsername",name:"username",onChange:e=>{s(e.target.value)},placeholder:"Email or username",type:"text",value:n})}),(0,i.jsx)("div",{className:u().formGroup,children:(0,i.jsx)("input",{className:`form-control ${u().formInput}`,id:"loginPassword",name:"password",onChange:e=>{p(e.target.value)},placeholder:"Password",type:"password",value:c})}),(0,i.jsx)("input",{name:"isFilled",type:"hidden",value:"yes"}),(0,i.jsx)("button",{className:`${u().button} ${u().buttonPrimary}`,disabled:h,name:"login",type:"submit",children:"Log in"}),(0,i.jsx)("div",{className:u().forgotPassword,children:(0,i.jsx)(_(),{href:"/forgot-password",children:"Forgot Password"})})]})]})})})})}),(0,i.jsx)(l.p,{})]})});var h=n(53364),x=!0;let j=({isLoggedIn:e,loginToken:r,redirectToURL:n})=>{let[l,c]=(0,m.useState)(""!==r),[p,_]=(0,m.useState)(!1),[g,u]=(0,m.useState)("");return((0,m.useEffect)(()=>{async function i(){var i;_(!0);try{i=await t.i.loginThroughAccessToken(r),"plato"===i.source?(0,d.LA)(i):i.student_id&&(0,d.i7)(i.student_id),(i.parent.site_usage===a.frq.ASK_PAYMENT_HARD||i.parent.site_usage===a.frq.ASK_PAYMENT_SOFT)&&((0,o.ri)(i.parent.plato_final_migration)?window.location.replace(a.S29):window.location.replace(a.yl7)),window.location.replace(n)}catch(r){if(e)return void window.location.replace(n);console.error("SEARCHFORTOKENERR"),console.error(r),u("Sorry, the link that you used is invali
1d or has expired."),_(!1),c(!1)}}console.log("plato autlogin loading spinner"),!p&&l&&i()},[l]),l)?(0,i.jsx)(s.k,{}):(0,i.jsx)(h.n,{hideSubjects:!1,showMonsterNav:!0,showTwoSubjects:!0,children:(0,i.jsx)(f,{errMsg:g,redirectToURL:n})})}},82805:(e,r,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return n(59587)}])},88717:e=>{e.exports={container:"LoginPage_container__4_7k8",containerBackground:"LoginPage_containerBackground__E9lCK",containerWrapper:"LoginPage_containerWrapper__gbHr_",formWrapper:"LoginPage_formWrapper__lFn9e",title:"LoginPage_title__bhlXy",emailError:"LoginPage_emailError__RsEWZ",formGroup:"LoginPage_formGroup__X4M0Z",formInput:"LoginPage_formInput__Pe5DZ",button:"LoginPage_button__47KKw",buttonPrimary:"LoginPage_buttonPrimary__LTpo8",forgotPassword:"LoginPage_forgotPassword__jtuIG"}}},e=>{e.O(0,[6593,636,8792],()=>e(e.s=82805)),_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.