PageSourceSearch

https://ksat.kautilyaiitacademy.com/_next/static/chunks/pages/login-8e46de23cfacabbf.js

js kautilyaiitacademy.com collected 2026-09-24 13:30:49 UTC 7,116 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[295],{6774:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return s(953)}])},2944:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(4848),l=s(3368),i=s.n(l);let n=e=>{let{title:t,keywords:s,description:l,image:n}=e;return(0,r.jsxs)(i(),{children:[(0,r.jsx)("meta",{httpEquiv:"content-type",content:"text/html; charset=UTF-8"}),(0,r.jsx)("meta",{httpEquiv:"X-UA-Compatible",content:"IE=edge,chrome=1"}),(0,r.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0"}),t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:site_name",content:t}),(0,r.jsx)("title",{children:t}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:title",content:t}),(0,r.jsx)("meta",{name:"twitter:title",content:t})]})]}),l&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{name:"description",content:l}),(0,r.jsx)("meta",{property:"og:description",content:l}),(0,r.jsx)("meta",{name:"twitter:description",content:l})]}),n&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("meta",{property:"og:image",content:n}),(0,r.jsx)("meta",{name:"twitter:image",content:n})]}),s&&(0,r.jsx)("meta",{name:"keywords",content:s})]})}},953:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>p});var r=s(4848),l=s(6540),i=s(7422),n=s(9355),a=s(2209),d=s(7458),o=s(6715),c=s(2944),x=s(3474);function p(){let{executeRecaptcha:e}=(0,x.lw)(),t=(0,o.useRouter)(),[s,p]=(0,l.useState)(120),[m,u]=(0,l.useState)(!0),[h,b]=(0,l.useState)(""),[f,j]=(0,l.useState)(""),[w,g]=(0,l.useState)(!1),[v,y]=(0,l.useState)(!1),[N,_]=(0,l.useState)(!1),[S,k]=(0,l.useState)(0),[T,E]=(0,l.useState)(null),[O,P]=(0,l.useState)(null),{getLoginOtp:C,verifyLoginOtp:A}=(0,d.Y)(),[F,R]=(0,l.useState)(""),[K,L]=(0,l.useState)(!0),[M,q]=(0,l.useState)(null),I=e=>/^[6-9]\d{9}$/.test(e),U=async()=>{try{let t;_(!0);try{t=await e("form_submit"),q(t)}catch(e){R("Something went wrong. Recaptcha Load error."),_(!1);return}if(h){if(!I(h)){R("Mobile number is not valid!");return}}else{R("Username is required.");return}let s=await C({username:h,captcha:t});s&&(k(1),u(!0),p(120),E(s))}catch(e){console.error("Wrong Username",e),R(e)}finally{_(!1)}};(0,l.useEffect)(()=>{if(s>0&&m){let e=setInterval(()=>{p(e=>e-1)},1e3);return()=>clearInterval(e)}0===s&&u(!1)},[s,m]);let X=async()=>{_(!0);try{var e;let t;let s={user:null==T?void 0:null===(e=T.user)||void 0===e?void 0:e.id,id:null==T?void 0:T.id,otp:f};if(!f){R("OTP is required."),y(!1);return}(t=await d.Y.getState().verifyLoginOtp(s))&&(k(2),P(t),L(!1),window.location.replace("/dashboard"))}catch(e){R("Invalid OTP"),y(!1),_(!1)}finally{y(!1)}};return((0,l.useEffect)(()=>{if(F){let e=setTimeout(()=>{R("")},2e3);return()=>clearTimeout(e)}},[F]),v)?(0,r.jsx)("div",{className:"flex justify-center items-center min-h-screen",children:(0,r.jsx)("div",{className:"border-gray-100 border-t-blue-500 
1w-[60px] h-[60px] animate-spin rounded-[50%] border-8 border-solid "})}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.A,{title:"Login | K-SAT",keywords:"Kautilya-login",description:"K-SAT Login"}),(0,r.jsxs)("section",{id:"dashboard-login",className:"bg-[#fafafa] h-[90vh]",children:["/login"===t.asPath&&K&&(0,r.jsx)("div",{className:"bg-[#d0f0f7]",children:(0,r.jsx)("h1",{className:"text-center font-bold py-[3rem] md:py-[4rem] px-[8px] text-[25px] md:text-[2.5rem]",children:"K-SAT - Login"})}),(0,r.jsx)("div",{className:"container m-auto",children:(0,r.jsx)("div",{className:"grid grid-rows",children:(0,r.jsx)("div",{className:"grid grid-cols-12 justify-center",children:(0,r.jsxs)("div",{className:"col-span-12  sm:col-span-12  md:col-span-12  lg:col-span-12 xl:col-span-12  px-2.5",children:[0==S&&(0,r.jsxs)("div",{className:"w-full mt-[6rem] sm:w-[80%]  lg:w-[60%] xl:w-[50%] block mx-auto pt-[2rem] pb-[3rem] px-[10px] lg:px-[30px] bg-[white] rounded-[10px] border shadow-[0_0_147px_#80808059] border-solid border-[#e0dddd]",children:[(0,r.jsxs)("div",{className:"mt-[1rem]",children:[(0,r.jsx)("label",{htmlFor:"username",className:"text-[16px] md:text-[18px] text-[#808080]",children:"K-SAT  Registered Mobile No:"}),(0,r.jsx)("br",{}),(0,r.jsx)("div",{className:"flex justify-between w-full pr-[6px] gap-[4] rounded-[6px] mt-[6px]",children:(0,r.jsx)("input",{className:"focus-visible:outline-none  focus-visible:shadow-[0_0_0_0.25rem_rgba(13,110,253,0.25)] focus-visible:border-[#86b7fe] border border-[lightgray] border-solid w-full px-[6px] pt-[5px] pb-[9px] rounded-[6px]",type:"text",value:h,onChange:e=>b(e.target.value),id:"Enter username",placeholder:"Registered Mobile Number"})})]}),F&&(0,r.jsx)("h3",{className:"flex justify-center text-red-500 text-sm m-0 p-0",children:F}),(0,r.jsx)("div",{className:"flex justify-center p-0 mt-[10px]",children:(0,r.jsx)(i.$,{className:"font-semibold border-none text-white bg-[#525fe1] text-sm lg:text-base cursor-pointer w-full pt-[7px] pb-[11px] rounded-[6px] mt-3",onClick:U,disabled:N,children:N?(0,r.jsx)("div",{style:{width:" -webkit-fill-available"},children:(0,r.jsx)(n.o,{color:"default"})}):(0,r.jsx)("p",{style:{width:" -webkit-fill-available"},children:"Get OTP"})})})]}),1==S&&(0,r.jsxs)("div",{className:"w-full mt-[6rem] sm:w-[80%]  lg:w-[60%] xl:w-[50%] block mx-auto pt-[2rem] pb-[3rem] px-[10px] lg:px-[30px] bg-[white] rounded-[10px] border shadow-[0_0_147px_#80808059] border-solid border-[#e0dddd]",children:[(0,r.jsxs)("div",{className:"mt-[10px]",children:[(0,r.jsxs)("label",{htmlFor:"otp",className:"text-[16px] md:text-[18px] text-[#808080]",children:["Enter OTP sent on ",h]}),(0,r.jsx)("br",{}),(0,r.jsxs)("div",{className:"border border-[lightgray] border-solid focus-within:shadow-[0_0_0_0.25rem_rgba(13,110,253,0.25)] focus-within:border-[#86b7fe] flex justify-between w-full pr-[6px] gap-[4] rounded-[6px] mt-[6px]",children:[(0,r.jsx)("input",{className:"focus-visible:outline-none w-full px-[6px] pt-[5px] pb-[9px] rounded-[6px]",type:w?"text":"password",id:"password",placeholder:"Enter OTP",value:f,onChange:e=>j(e.target.value)}),(0,r.jsx)("button",{type:"button",onClick:()=>{g(e=>!e)},children:w?(0,r.jsx)(a.AGM,{}):(0,r.jsx)(a.MXC,{})})]})]}),F&&(0,r.jsx)("h3",{className:"flex justify-center text-red-500 text-sm m-0 p-0",children:F}),(0,r.jsx)("div",{className:"flex justify-end",children:(0,r.jsx)("div",{children:N?(0,r.jsx)("div",{style:{width:" -webkit-fill-available"},children:(0,r.jsx)(n.o,{color:"default"})}):(0,r.jsx)(i.$,{onClick:()=>{U()},isDisabled:m,style:{pointerEvents:m?"none":"auto"},children:m?"Resend OTP in ".concat(s,"s"):"Resend OTP"})})}),(0,r.jsx)("div",{className:"flex justify-center p-0 mt-[10px]",children:(0,r.jsx)(i.$,{className:"font-semibold border-none text-white bg-[#525fe1]  text-sm lg:text-base cursor-pointer w-full pt-[7px] pb-[11px] rounded-[6px] mt-3",onClick:X,children:N?(0,r.jsx)("div",{style:{width:" -webkit-fill-available"},children:(0,r.jsx)(n.o,{color:"default"})}):(0,r.jsx)("p",{style:{width:" -webkit-fill-available"},children:"Verify OTP"})})})]})]})})})})]})]})}}},e=>{var t=t=>e(e.s=t);e.O(0,[758,512,355,617,636,593,792],()=>
1t(6774)),_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.