PageSourceSearch

https://pte.edubenchmark.com/_next/static/chunks/pages/index-21a05a488e365193674c.js

js edubenchmark.com collected 2026-09-29 18:44:34 UTC 6,696 bytes, 2 lines download raw bytes

1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[72],{RZ1s:function(e,t,n){"use strict";n.r(t);var a=n("ivGQ"),o=n.n(a),r=n("Q4nv"),i=n("I9s3"),s=n.n(i),c=n("qwpK"),l=n("EGhD"),u=n("gRM1"),d=n("hbca"),m=n("/ENz"),p=n("vFJ3"),b=n("gwok"),g=n("oR6s"),f=n("scFy"),v=n("D5tx"),h=n("aMUp"),w=n("/t6l"),x=n("tYa6"),O=n("PRYx"),j=n("bx+z"),k=n("pD38"),A=n("QA5l"),E=o.a.createElement,T=Object(m.a)((function(e){return{root:Object(l.a)({maxWidth:450},e.breakpoints.down("md"),{maxWidth:400,marginTop:e.spacing(5),marginBottom:e.spacing(5)}),title:Object(l.a)({fontSize:"28px",lineHeight:"normal",fontWeight:"500"},e.breakpoints.down("sm"),{fontSize:"20px"}),createAccount:{marginLeft:e.spacing(.5)},loadingIndicator:{marginLeft:e.spacing(1)},subText:Object(l.a)({letterSpacing:"1px",textTransform:"uppercase",marginBottom:"10px"},e.breakpoints.down("sm"),{fontSize:"13px"}),form:Object(l.a)({marginTop:"50px",marginBottom:"30px"},e.breakpoints.down("sm"),{marginTop:"35px",marginBottom:"25px"}),subBtn:Object(l.a)({width:"100%",borderRadius:"10px",height:"56px","&:hover":{borderRadius:"10px"}},e.breakpoints.down("sm"),{height:"42px"}),socialBtn:Object(l.a)({width:"100%",borderRadius:"10px",height:"50px",textTransform:"none",fontWeight:500,borderColor:"#d8dce3",color:"#202124"},e.breakpoints.down("sm"),{height:"42px"}),dividerText:{color:e.palette.text.secondary,fontSize:"14px",margin:e.spacing(3,0),textAlign:"center"},footer:Object(l.a)({marginTop:e.spacing(3)},e.breakpoints.down("sm"),{marginTop:e.spacing(2)}),dontAc:Object(l.a)({fontSize:"16px"},e.breakpoints.down("sm"),{fontSize:"14px"})}})),S=function(e){var t=e.t,n=e.onLogin,o=e.isAuthenticating,r=T(),i=Object(a.useState)(""),l=i[0],m=i[1],S=Object(a.useState)(!1),y=S[0],N=S[1],R=h.a().shape({email:h.c().email(t("emailFormatInvalid")).required(t("emailRequired")),password:h.c().required(t("passwordRequired"))}),P=Object(x.c)({resolver:Object(w.a)(R)}),I=P.register,_=P.handleSubmit,z=P.errors;Object(a.useEffect)((function(){var e=function(){var e=(new Date).getHours();m(e>=6&&e<12?"Good Morning":e>=12&&e<18?"Good Afternoon":"Good Evening")};e();var t=setInterval(e,6e4);return function(){return clearInterval(t)}}),[]);var C=function(){var e=Object(c.a)(s.a.mark((function e(){var t;return s.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,N(!0),e.next=4,Object(A.b)();case 4:null!==(t=e.sent)&&void 0!==t&&t.redirect_url&&(window.location.href=t.redirect_url),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),N(!1);case 11:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}();return E(u.a,{item:!0,container:!0,direction:"column",xs:12,className:r.root},E(u.a,{item:!0,xs:12},E(j.a,{homepage:!0}),E(d.a,{variant:"subtitle2",color:"textSecondary",component:"h1",className:r.subText},l),E(d.a,{variant:"h1",component:"h1",className:Object(p.default)(r.title,r.bold)},"WELCOME back to"),E(d.a,{component:"h1",className:Object(p.default)(r.title,r.bold)},"Benchmark PTE")),E(b.a,{className:r.form},E(g.a,{variant:"outlined",className:r.socialBtn,onClick:C,disabled:o||y,startIcon:E(k.a,{size:22})},y?"Connecting to Google...":"Continue with Google"),E(d.a,{className:r.dividerText},"or")),E("form",{onSubmit:_((function(e){var t;null===(t=localStorage)||void 0===t||t.setItem("isLogin",!1),n(e)}))},E(u.a,{item:!0,xs:12},E(b.a,{mb:2},E(f.a,{variant:"outlined",label:t("emailAddress"),fullWidth:!0,name:"email",inputRef:I,errors:z,disabled:o}))),E(u.a,{item:!0,xs:12},E(b.a,{mb:2},E(f.a,{variant:"outlined",label:t("password"),fullWidth:!0,name:"password",inputRef:I,errors:z,type:"password",disabled:o}),E(b.a,{style:{textAlign:"right",marginTop:"5px"}},E(v.a,{href:"/forget-password",name:t("forgotPassword")})))),E(u.a,{item:!0,xs:12},E(b.a,{mt:3},E(O.a,{type:"submit",loading:o&&!y,message:t("signIn"),className:r.subBtn})))),E(b.a,{mb:4,className:r.footer},E(u.a,{item:!0,xs:12},E(d.a,{display:"inline",color:"textSecondary",className:r.dontAc},t("dontHaveAccount"))," ",E(d.a,{display:"inline",className:Object(p.default)(r.bold,r.createAccount)},E(v.a,{href:"/register",name:t("createAccount")}
1)))))},y=n("CoHH"),N=n("kZzA"),R=n("EMQU"),P=n("0evK"),I=n("oLC8"),_=n("jGCZ"),z=n.n(_),C=n("O4Jw"),L=n("4UF6"),B=n("COXm"),M=n.n(B),q=n("qdpE"),W=o.a.createElement,G=function(){var e=Object(y.d)(),t=Object(y.e)((function(e){return e.auth})),n=Object(P.useRouter)(),i=n.query,s=Object(I.a)().t,c=Object(N.b)(),l=c.enqueueSnackbar,u=c.closeSnackbar,d=Object(a.useRef)(!1);return Object(a.useEffect)((function(){null!==i&&void 0!==i&&i.token&&(Object(q.c)(null===i||void 0===i?void 0:i.token),z()().setToken(null===i||void 0===i?void 0:i.token))}),[null===i||void 0===i?void 0:i.token]),Object(a.useEffect)((function(){var t=(new M.a).getResult(),n=t.browser.name.includes("Safari")&&!t.browser.name.includes("Chrome");localStorage.setItem("isAppleEnvironment",n.toString()),e(Object(L.setDeviceEnvironment)(n))}),[]),Object(a.useEffect)((function(){var a;t.e&&!t.isAuthenticating&&(l(t.e,{variant:"error"}),e(Object(R.clearAuthError)()));var o=(null===t||void 0===t||null===(a=t.user)||void 0===a?void 0:a.token)||(null===i||void 0===i?void 0:i.token)||Object(q.a)();if(t.isAuth&&o){if(Object(q.a)()||(Object(q.c)(o),z()().setToken(o)),!d.current){var r=l(s("notif:signedInSuccessfully"),{variant:"success"});setTimeout((function(){u(r)}),1e3),d.current=!0}n.push(n.query.return||"/dashboard")}else t.isAuthenticating||!t.isAuth||o||(e(Object(L.logoutAction)()),l(s("notif:signInFailedPleaseTryAgain"),{variant:"error"}),localStorage.removeItem("speakingModalShown"))}),[t,null===i||void 0===i?void 0:i.token]),W(o.a.Fragment,null,W(C.a,{title:"Login to Your PTE Account | Access Mock Tests & Results",description:"Login to your EduBenchmark PTE account for personalized services. Access PTE practice tests, PTE Academic mock tests, results, and more. Secure and easy access to your learning tools."},W(r.a,{t:s},W(S,{t:s,isAuthenticating:t.isAuthenticating,onLogin:function(t){return function(t){var n=t.email,a=t.password;e(Object(R.loginAction)({email:n.trim().toLowerCase(),password:a}))}({email:t.email,password:t.password})}}))))};G.getInitialProps=function(){return{title:"Login to Your PTE Account | Access Mock Tests & Results",description:'Sign in to your PTE account to access mock tests, view results, and track progress. Practice with AI-scored tests and expert feedback for PTE success!"'}};t.default=G},U6WM:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return n("RZ1s")}])}},[["U6WM",0,1,38,2,3,4,5,6,8,7,9,10,11,12,13,20,21,25,27,31,32,39]]]);
2//# sourceMappingURL=index-21a05a488e365193674c.js.map

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.