1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3459],{73700:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(31695)}])},50591:function(e,t,r){"use strict";var n=r(2734),o=r(25812);let i=()=>{let e=(0,n.Z)();return{primaryFilled:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main},primaryLight:{color:e.palette.primary.main,backgroundColor:(0,o.E)(e.palette.primary.main,.12)},secondaryFilled:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main},secondaryLight:{color:e.palette.secondary.main,backgroundColor:(0,o.E)(e.palette.secondary.main,.12)},successFilled:{color:e.palette.success.contrastText,backgroundColor:e.palette.success.main},successLight:{color:e.palette.success.main,backgroundColor:(0,o.E)(e.palette.success.main,.12)},errorFilled:{color:e.palette.error.contrastText,backgroundColor:e.palette.error.main},errorLight:{color:e.palette.error.main,backgroundColor:(0,o.E)(e.palette.error.main,.12)},warningFilled:{color:e.palette.warning.contrastText,backgroundColor:e.palette.warning.main},warningLight:{color:e.palette.warning.main,backgroundColor:(0,o.E)(e.palette.warning.main,.12)},infoFilled:{color:e.palette.info.contrastText,backgroundColor:e.palette.info.main},infoLight:{color:e.palette.info.main,backgroundColor:(0,o.E)(e.palette.info.main,.12)}}};t.Z=i},49346:function(e,t,r){"use strict";r.d(t,{Z:function(){return R}});var n=r(85893),o=r(90948),i=r(99226),a=r(41664),l=r.n(a),s=r(42293),c=r(10155),d=r(23918),p=r(67294),x=r(2734),u=r(98396),h=r(26447),g=r(83321),m=r(77533),b=r(78462),f=r(19294),j=r(98619),Z=r(67720),y=r(59334),C=r(25675),w=r.n(C),k={src:"/_next/static/media/StudyCafeLogoSmall.3bf6a510.svg",height:27,width:130,blurWidth:0,blurHeight:0},v=r(11163),P=r.n(v),T=r(85946),B=r(93946),L=r(63730),S=r(67218),F=r(53508),I=r(28411);let _=(0,o.ZP)(l())(e=>{let{theme:t}=e;return{display:"flex",alignItems:"center",textDecoration:"none",marginRight:t.spacing(8)}}),E=()=>{let e=(0,x.Z)(),{settings:t}=(0,d.r)(),{skin:r}=t,{user:o}=(0,S.a)(),a=(0,u.Z)(e.breakpoints.up("md"),{defaultMatches:!0}),l=()=>{P().push("/dashboard/")},p=()=>{P().push("/")},g=()=>{P().push("/login")};return(0,n.jsx)(s.Z,{color:"default",position:"sticky",elevation:"bordered"===r?0:3,sx:{boxShadow:"bordered"===r?"none":"0px 3px 6px 0px #8C98A440",backgroundColor:"background.paper",..."bordered"===r&&{borderBottom:"1px solid ".concat(e.palette.divider)}},children:(0,n.jsx)(c.Z,{sx:{justifyContent:"space-between",p:e=>"".concat(e.spacing(0,a?20:5)," !important"),minHeight:"".concat(e.mixins.toolbar.minHeight-("bordered"===r?1:0),"px !important")},children:(0,n.jsxs)(h.Z,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{height:"100%",width:"100%"},children:[(0,n.jsxs)(i.Z,{sx:{display:"flex",alignItems:"center"},children:[(0,n.jsx)(w(),{src:k,alt:"StudyCafe Logo",onClick:p,style:{cursor:"pointer",marginTop:"7.5px"},width:"120",height:"25"}),a&&(0,n.jsx)(h.Z,{direction:"row",spacing:2,sx:{marginLeft:4},children:(0,n.jsx)(A,{})})]}),a?(0,n.jsx)(i.Z,{children:(0,n.jsxs)(h.Z,{direction:"row",alignItems:"center",spacing:1,children:[(0,n.jsx)(F.r,{})," ",(0,n.jsx)(I.Z,{})]})}):(0,n.jsx)(W,{onGoToAppClick:l,onLoginClick:g})]})})})},A=e=>(0,n.jsxs)(h.Z,{direction:"row",sx:{pl:5},children:[(0,n.jsx)(_,{href:"/pricing",children:(0,n.jsx)(g.Z,{variant:"text",sx:{color:"customColors.websiteText",fontWeight:500,textTransform:"none",fontSize:"16px","&:hover":{color:"text.primary"}},children:(0,T.t)("appBarComponent.pricing")})}),(0,n.jsx)(_,{href:"/about",children:(0,n.jsx)(g.Z,{variant:"text",sx:{color:"customColors.websiteText",fontWeight:500,textTransform:"none",fontSize:"16px","&:hover":{color:"text.primary"}},children:(0,T.t)("appBarComponent.about")})}),(0,n.jsx)(_,{href:"/contact",children:(0,n.jsx)(g.Z,{variant:"text",sx:{color:"customColors.websiteText",fontWeight:500,textTransform:"none",fontSize:"16px","&:hover":{color:"customColors.websiteText"}},children:(0,T.t)("appBarComponent.contact")})})]}),W=e=>{let[t,r]=p.useState(!1),{user:o}=(0,S.a)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(B.Z,{onClick:()=>r(!0),children:(0,n.jsx)(L.Z,{icon:"mdi:menu",fontSize:30,color:"black"})}),(0,n.jsx)(m.ZP,{open:t,onClose:()=>r(!1),children:(0,n.jsxs)(i.Z,{sx:{width:250},role:"presentation",onClick:()=>r(!1),children:[(0,n.jsxs)(b.Z,{children:[(0,n.jsx)(f.ZP,{disablePadding:!0,children:(0,n.jsx)(j.Z,{href:"/",children:(0,n.jsx)(w(),{src:k,alt:"StudyCafe Logo",style:{cursor:"pointer",marginTop:"7.5px"},width:"120",height:"25"})})}),(0,n.jsx)(Z.Z,{}),(0,n.jsx)(f.ZP,{disablePadding:!0,children:(0,n.jsx)(j.Z,{href:"/pricing",children:(0,n.jsx)(y.Z,{primary:(0,T.t)("appBarComponent.pricing")})})}),(0,n.jsx)(f.ZP,{disablePadding:!0,children:(0,n.jsx)(j.Z,{href:"/about",children:(0,n.jsx)(y.Z,{primary:(0,T.t)("appBarComponent.about")})})}),(0,n.jsx)(f.ZP,{disablePadding:!0,children:(0,n.jsx)(j.Z,{href:"/contact",children:(0,n.jsx)(y.Z,{primary:(0,T.t)("appBarComponent.contact")})})})]}),(0,n.jsx)(Z.Z,{}),(0,n.jsx)(b.Z,{children:(0,n.jsx)(f.ZP,{disablePadding:!0,children:(0,n.jsx)(j.Z,{sx:H.primaryButton,onClick:o?e.onGoToAppClick:e.onLoginClick,children:(0,n.jsx)(y.Z,{sx:H.primaryButtonText,primary:(0,T.t)(o?"appBarComponent.goToApp":"appBarComponent.logIn"),disableTypography:!0})})})})]})})]})},H={primaryButton:{borderRadius:"10px",marginLeft:"8px",marginRight:"8px",border:"0px",backgroundColor:"#5A7E28"},primaryButtonText:{color:"#FFFFFF"}},M=(0,o.ZP)(i.Z)(e=>{let{theme:t}=e;return{height:"100vh","& .content-center":{display:"flex",alignItems:"center",justifyContent:"center",padding:t.spacing(5),minHeight:"calc(100vh - ".concat(t.spacing(t.mixins.toolbar.minHeight/4),")")},"& .content-right":{display:"flex",overflowX:"hidden",position:"relative",minHeight:"calc(100vh - ".concat(t.spacing(t.mixins.toolbar.minHeight/4),")")}}}),D=e=>{let{children:t}=e;return(0,n.jsxs)(M,{children:[(0,n.jsx)(E,{}),(0,n.jsx)(i.Z,{className:"app-content",sx:{overflowX:"hidden",position:"relative",minHeight:e=>"calc(100vh - ".concat(e.spacing(e.mixins.toolbar.minHeight/4),")")},children:t})]})};var R=D}
1,53508:function(e,t,r){"use strict";r.d(t,{r:function(){return c}});var n=r(85893),o=r(2734),i=r(83321),a=r(11163),l=r(22120),s=r(67218);let c=()=>{let{user:e}=(0,s.a)(),{t}=(0,l.$G)(),r=(0,a.useRouter)(),c=(0,o.Z)(),d=()=>{r.push("/dashboard/")},p=()=>{r.push("/login")};return(0,n.jsx)(i.Z,{variant:"contained",color:"primary",sx:{backgroundColor:c.palette.green[700],borderRadius:"10px",textTransform:"none",fontSize:"18px",marginLeft:2},onClick:e?d:p,children:t(e?"appBarComponent.goToApp":"appBarComponent.logIn")})}},13754:function(e,t,r){"use strict";r.d(t,{a:function(){return a}});var n=r(85893),o=r(2734),i=r(50135);r(67294);let a=e=>{let t=(0,o.Z)(),r={textFieldStyles:{"& .MuiInput-underline:after":{borderColor:t.palette.green[500],boder:"2px"},"& label.Mui-focused":{color:"gray"},"& .MuiOutlinedInput-root":{"&:hover fieldset":{borderColor:"white"},"&.Mui-focused fieldset":{borderColor:"gray"}}}};return(0,n.jsx)(i.Z,{...e,sx:[r.textFieldStyles,...Array.isArray(e.sx)?e.sx:[e.sx]]})}},31695:function(e,t,r){"use strict";r.r(t),r.d(t,{default:function(){return z}});var n=r(85893),o=r(67294),i=r(99226),a=r(98396),l=r(90948),s=r(2734),c=r(15861),d=r(25675),p=r.n(d),x=r(67218),u=r(50591),h=r(23918),g=r(49346),m={src:"/_next/static/media/Login.1dc4e798.svg",height:572,width:893,blurWidth:0,blurHeight:0},b=r(22120),f=r(11163),j=r(94054),Z=r(56815),y=r(87109),C=r(50480),w=r(93946),k=r(87536),v=r(16310),P=r(47533),T=r(63730),B=r(13754),L=r(69368);let S=e=>{let t=(0,s.Z)(),r={checkboxStyles:{"&.Mui-checked":{color:t.palette.green[500]}}};return(0,n.jsx)(L.Z,{...e,sx:[r.checkboxStyles,...Array.isArray(e.sx)?e.sx:[e.sx]]})};var F=r(51049);let I=v.Ry().shape({email:v.Z_().email().required(),password:v.Z_().min(5).required()}),_={password:"",email:""},E=()=>{let[e,t]=o.useState(!0),[r,a]=o.useState(!1),l=(0,x.a)(),{t:s}=(0,b.$G)(),{control:d,setError:p,handleSubmit:u,formState:{errors:h}}=(0,k.cI)({defaultValues:_,mode:"onBlur",resolver:(0,P.X)(I)}),g=t=>{let{email:r,password:n}=t;l.login({email:r,password:n,rememberMe:e},()=>{p("email",{type:"manual",message:"Email or Password is invalid"})})};return(0,n.jsxs)("form",{noValidate:!0,autoComplete:"off",onSubmit:u(g),children:[(0,n.jsxs)(j.Z,{fullWidth:!0,sx:{mb:4},children:[(0,n.jsx)(k.Qr,{name:"email",control:d,rules:{required:!0},render:e=>{let{field:{value:t,onChange:r,onBlur:o}}=e;return(0,n.jsx)(B.a,{autoFocus:!0,label:s("loginPage.emailInputLabel"),value:t,onBlur:o,onChange:r,error:!!h.email,placeholder:s("loginPage.emailInputLabel")})}}),h.email&&(0,n.jsx)(Z.Z,{sx:{color:"error.main"},children:h.email.message})]}),(0,n.jsxs)(j.Z,{fullWidth:!0,children:[(0,n.jsx)(k.Qr,{name:"password",control:d,rules:{required:!0},render:e=>{let{field:{value:t,onChange:o,onBlur:i}}=e;return(0,n.jsx)(B.a,{value:t,onBlur:i,label:s("loginPage.passwordInputLabel"),onChange:o,id:"auth-login-v2-password",error:!!h.password,type:r?"text":"password",InputProps:{endAdornment:(0,n.jsx)(y.Z,{position:"end",children:(0,n.jsx)(w.Z,{edge:"end",onMouseDown:e=>e.preventDefault(),onClick:()=>a(!r),children:(0,n.jsx)(T.Z,{icon:r?"mdi:eye-outline":"mdi:eye-off-outline",fontSize:20})})})}})}}),h.password&&(0,n.jsx)(Z.Z,{sx:{color:"error.main"},id:"",children:h.password.message})]}),(0,n.jsx)(i.Z,{sx:{mb:4,display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"space-between"},children:(0,n.jsx)(C.Z,{label:(0,n.jsx)(c.Z,{sx:{color:"#5E6163"},children:s("loginPage.rememberMeButtonLabel")}),control:(0,n.jsx)(S,{checked:e,onChange:e=>t(e.target.checked)})})}),(0,n.jsx)(F.KM,{fullWidth:!0,size:"large",type:"submit",variant:"contained",sx:{mb:7},children:s("common.login")})]})},A=()=>(0,n.jsx)(W,{children:(0,n.jsx)(p(),{src:m,alt:"LoginImageStudyCafe",fill:!0,style:{objectFit:"cover",width:"100%",position:"absolute"}})}),W=(0,l.ZP)(i.Z)(e=>{let{theme:t}=e;return{padding:t.spacing(20),paddingRight:"0 !important",[t.breakpoints.down("lg")]:{padding:t.spacing(10)}}}),H=(0,l.ZP)(i.Z)(e=>{let{theme:t}=e;return{width:"100%",[t.breakpoints.up("md")]:{maxWidth:450}}}),M=(0,l.ZP)(i.Z)(e=>{let{theme:t}=e;return{[t.breakpoints.down("xl")]:{width:"100%"},[t.breakpoints.down("md")]:{maxWidth:400}}}),D=(0,l.ZP)(c.Z)(e=>{let{theme:t}=e;return{fontWeight:600,marginBottom:t.spacing(1.5),[t.breakpoints.down("md")]:{mt:t.spacing(8)}}}),R=()=>{(0,f.useRouter)();let{silentLogin:e}=(0,x.a)(),t=(0,s.Z)();(0,u.Z)();let{settings:r}=(0,h.r)(),o=(0,a.Z)(t.breakpoints.down("md")),{t:l}=(0,b.$G)(),d=(0,a.Z)(t.breakpoints.up("md"),{defaultMatches:!0}
1),{skin:p}=r;return(0,n.jsxs)(i.Z,{className:"content-right",children:[o?null:(0,n.jsx)(i.Z,{sx:{flex:1,display:"flex",position:"relative",alignItems:"center",justifyContent:"center"},children:(0,n.jsx)(A,{})}),(0,n.jsx)(H,{sx:"bordered"!==p||o?{}:{borderLeft:"1px solid ".concat(t.palette.divider)},children:(0,n.jsx)(i.Z,{sx:{p:d?12:0,height:"100vh",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"background.paper"},children:(0,n.jsxs)(M,{children:[(0,n.jsxs)(i.Z,{sx:{mb:6},children:[(0,n.jsxs)(D,{variant:"h5",textAlign:d?"left":"center",children:[l("loginPage.title")," \uD83D\uDC4B\uD83C\uDFFB"]}),(0,n.jsx)(c.Z,{variant:"body2",textAlign:d?"left":"center",children:l("loginPage.description")})]}),(0,n.jsx)(E,{})]})})})]})};R.getLayout=e=>(0,n.jsx)(g.Z,{children:e}),R.guestGuard=!0,R.authGuard=!1;var z=R}},function(e){e.O(0,[2395,135,3420,6310,2278,9774,2888,179],function(){return e(e.s=73700)}),_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.