1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8295],{7001:(e,a,t)=>{"use strict";t.d(a,{A:()=>R});var r=t(15039),s=t.n(r),n=t(95062),i=t.n(n),l=t(14232),o=t(37876);let d={type:i().string,tooltip:i().bool,as:i().elementType},c=l.forwardRef((e,a)=>{let{as:t="div",className:r,type:n="valid",tooltip:i=!1,...l}=e;return(0,o.jsx)(t,{...l,ref:a,className:s()(r,"".concat(n,"-").concat(i?"tooltip":"feedback"))})});c.displayName="Feedback",c.propTypes=d;var m=t(25007),u=t(23118),p=t(44935);let h=l.forwardRef((e,a)=>{let{bsPrefix:t,className:r,htmlFor:n,...i}=e,{controlId:d}=(0,l.useContext)(u.A);return t=(0,p.oU)(t,"form-check-label"),(0,o.jsx)("label",{...i,ref:a,htmlFor:n||d,className:s()(r,t)})});h.displayName="FormCheckLabel";var g=t(55440);let x=l.forwardRef((e,a)=>{let{id:t,bsPrefix:r,bsSwitchPrefix:n,inline:i=!1,reverse:d=!1,disabled:x=!1,isValid:f=!1,isInvalid:y=!1,feedbackTooltip:j=!1,feedback:v,feedbackType:w,className:A,style:b,title:_="",type:N="checkbox",label:C,children:k,as:F="input",...S}=e;r=(0,p.oU)(r,"form-check"),n=(0,p.oU)(n,"form-switch");let{controlId:I}=(0,l.useContext)(u.A),P=(0,l.useMemo)(()=>({controlId:t||I}),[I,t]),R=!k&&null!=C&&!1!==C||(0,g.mf)(k,h),L=(0,o.jsx)(m.A,{...S,type:"switch"===N?"checkbox":N,ref:a,isValid:f,isInvalid:y,disabled:x,as:F});return(0,o.jsx)(u.A.Provider,{value:P,children:(0,o.jsx)("div",{style:b,className:s()(A,R&&r,i&&"".concat(r,"-inline"),d&&"".concat(r,"-reverse"),"switch"===N&&n),children:k||(0,o.jsxs)(o.Fragment,{children:[L,R&&(0,o.jsx)(h,{title:_,children:C}),v&&(0,o.jsx)(c,{type:w,tooltip:j,children:v})]})})})});x.displayName="FormCheck";let f=Object.assign(x,{Input:m.A,Label:h});t(68547);let y=l.forwardRef((e,a)=>{let{bsPrefix:t,type:r,size:n,htmlSize:i,id:d,className:c,isValid:m=!1,isInvalid:h=!1,plaintext:g,readOnly:x,as:f="input",...y}=e,{controlId:j}=(0,l.useContext)(u.A);return t=(0,p.oU)(t,"form-control"),(0,o.jsx)(f,{...y,type:r,size:i,ref:a,readOnly:x,id:d||j,className:s()(c,g?"".concat(t,"-plaintext"):t,n&&"".concat(t,"-").concat(n),"color"===r&&"".concat(t,"-color"),m&&"is-valid",h&&"is-invalid")})});y.displayName="FormControl";let j=Object.assign(y,{Feedback:c}),v=l.forwardRef((e,a)=>{let{className:t,bsPrefix:r,as:n="div",...i}=e;return r=(0,p.oU)(r,"form-floating"),(0,o.jsx)(n,{ref:a,className:s()(t,r),...i})});v.displayName="FormFloating";let w=l.forwardRef((e,a)=>{let{controlId:t,as:r="div",...s}=e,n=(0,l.useMemo)(()=>({controlId:t}),[t]);return(0,o.jsx)(u.A.Provider,{value:n,children:(0,o.jsx)(r,{...s,ref:a})})});w.displayName="FormGroup";var A=t(60929);let b=l.forwardRef((e,a)=>{let{as:t="label",bsPrefix:r,column:n=!1,visuallyHidden:i=!1,className:d,htmlFor:c,...m}=e,{controlId:h}=(0,l.useContext)(u.A);r=(0,p.oU)(r,"form-label");let g="col-form-label";"string"==typeof n&&(g="".concat(g," ").concat(g,"-").concat(n));let x=s()(d,r,i&&"visually-hidden",n&&g);return(c=c||h,n)?(0,o.jsx)(A.A,{ref:a,as:"label",className:x,htmlFor:c,...m}):(0,o.jsx)(t,{ref:a,className:x,htmlFor:c,...m})});b.displayName="FormLabel";let _=l.forwardRef((e,a)=>{let{bsPrefix:t,className:r,id:n,...i}=e,{controlId:d}=(0,l.useContext)(u.A);return t=(0,p.oU)(t,"form-range"),(0,o.jsx)("input",{...i,type:"range",ref:a,className:s()(r,t),id:n||d})});_.displayName="FormRange";let N=l.forwardRef((e,a)=>{let{bsPrefix:t,size:r,htmlSize:n,className:i,isValid:d=!1,isInvalid:c=!1,id:m,...h}=e,{controlId:g}=(0,l.useContext)(u.A);return t=(0,p.oU)(t,"form-select"),(0,o.jsx)("select",{...h,size:n,ref:a,className:s()(i,t,r&&"".concat(t,"-").concat(r),d&&"is-valid",c&&"is-invalid"),id:m||g})});N.displayName="FormSelect";let C=l.forwardRef((e,a)=>{let{bsPrefix:t,className:r,as:n="small",muted:i,...l}=e;return t=(0,p.oU)(t,"form-text"),(0,o.jsx)(n,{...l,ref:a,className:s()(r,t,i&&"text-muted")})});C.displayName="FormText";let k=l.forwardRef((e,a)=>(0,o.jsx)(f,{...e,ref:a,type:"switch"}));k.displayName="Switch";let F=Object.assign(k,{Input:f.Input,Label:f.Label}),S=l.forwardRef((e,a)=>{let{bsPrefix:t,className:r,children:n,controlId:i,label:l,...d}=e;return t=(0,p.oU)(t,"form-floating"),(0,o.jsxs)(w,{ref:a,className:s()(r,t),controlId:i,...d,children:[n,(0,o.jsx)("label",{htmlFor:i,children:l})]})});S.displayName="FloatingLabel";let I={_ref:i().any,validated:i().bool,as:i().elementType},P=l.forwardRef((e,a)=>{let{className:t,validated:r,as:n="form",...i}=e;return(0,o.jsx)(n,{...i,ref:a,className:s()(t,r&&"was-validated")})});P.displayName="Form",P.propTypes=I;let R=Object.assign(P,{Group:w,Control:j,Floating:v,Check:f,Switch:F,Label:b,Text:C,Range:_,Select:N,FloatingLabel:S})},7984:(e,a,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return t(25465)}])},23118:(e,a,t)=>{"use strict";t.d(a,{A:()=>r});let r=t(14232).createContext({})},25007:(e,a,t)=>{"use strict";t.d(a,{A:()=>c});var r=t(15039),s=t.n(r),n=t(14232),i=t(23118),l=t(44935),o=t(37876);let d=n.forwardRef((e,a)=>{let{id:t,bsPrefix:r,className:d,type:c="checkbox",isValid:m=!1,isInvalid:u=!1,as:p="input",...h}=e,{controlId:g}=(0,n.useContext)(i.A);return r=(0,l.oU)(r,"form-check-input"),(0,o.jsx)(p,{...h,ref:a,type:c,id:t||g,className:s()(d,r,m&&"is-valid",u&&"is-invalid")})});d.displayName="FormCheckInput";let c=d},25465:(e,a,t)=>{"use strict";t.r(a),t.d(a,{__N_SSP:()=>C,default:()=>k});var r=t(37876),s=t(14232),n=t(83631),i=t(48230),l=t.n(i),o=t(54587),d=t.n(o),c=t(97719),m=t(60929),u=t(76820),p=t(46280),h=t(27888);t(30346);var g=t(50223),x=t(7001),f=t(41321),y=t(91408),j=t(89099),v=t(41995),w=t(50535),A=t(43101);let b=()=>{let{executeRecaptcha:e}=(0,A.V)(),a=/^[A-Za-z]+(?:\s[A-Za-z]+)*$/,t=y.Ik().shape({candidate:y.Yj().required("Please enter candidate ID"),firstname:y.Yj().matches(a,"Name must only contain letters and spaces").required("Please enter first name"),lastname:y.Yj().matches(a,"Name must only contain letters and spaces").required("Please enter last name"),email:y.Yj().matches(/^[^\s@]+@[^\s@]+\.(com|in|org|net)$/,"Please enter a valid email").required("Please enter your email"),country:y.Yj().required("Please enter country"),phone:y.Yj().matches(/^[0-9]{10}$/,"Mobile number must be 10 digits").required("Please enter your phone number")}),s=(0,j.useRouter)(),n=(0,v.d)(),i=(0,w.X)(),l=async(a,t)=>{let{resetForm:r}=t;if(!e)return;let l=await e("coursedetails_form");l||console.log("reCAPTCHA failed, try again.");try{let e=await fetch("/api/submitlead",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({...i,...a,...n,recaptcha:l,formname:"Login form",page_title:"Login form"})});(await e.json()).status&&(r(),s.push("/thank-you"))}catch(e){console.error("Error submitting form:",e)}};return(0,r.jsx)("div",{children:(0,r.jsx)(g.l1,{validationSchema:t,initialValues:{candidate:"",firstname:"",lastname:"",email:"",country:"",phone:"",recahptacha:""},onSubmit:l,children:e=>{let{handleSubmit:a,handleChange:t,setFieldValue:s,isSubmitting:n,values:i,touched:l,errors:o}=e;return(0,r.jsxs)(x.A,{noValidate:!0,onSubmit:a,children:[(0,r.jsxs)(c.A,{className:"mb-3",children:[(0,r.jsxs)(x.A.Group,{as:m.A,md:"12",className:"mb-3",children:[(0,r.jsx)(x.A.Control,{type:"text",placeholder:"Candidate ID",name:"candidate",value:i.candidate,isInvalid:l.candidate&&!!o.candidate,onChange:e=>s("candidate",e.target.value.replace(/^\s+/,""))}),(0,r.jsx)(x.A.Control.Feedback,{type:"invalid",children:o.candidate})]}),(0,r.jsxs)(x.A.Group,{as:m.A,md:"6",className:"mb-3",children:[(0,r.jsx)(x.A.Control,{type:"text",placeholder:"First Name",name:"firstname",value:i.firstname,isInvalid:l.f
1irstname&&!!o.firstname,onChange:e=>s("firstname",e.target.value.replace(/^\s+/,""))}),(0,r.jsx)(x.A.Control.Feedback,{type:"invalid",children:o.firstname})]}),(0,r.jsxs)(x.A.Group,{as:m.A,md:"6",className:"mb-3",children:[(0,r.jsx)(x.A.Control,{type:"text",placeholder:"Last Name",name:"lastname",value:i.lastname,isInvalid:l.lastname&&!!o.lastname,onChange:e=>s("lastname",e.target.value.replace(/^\s+/,""))}),(0,r.jsx)(x.A.Control.Feedback,{type:"invalid",children:o.lastname})]}),(0,r.jsxs)(x.A.Group,{as:m.A,md:"6",className:"mb-3",children:[(0,r.jsx)(x.A.Control,{type:"email",placeholder:"E-mail",name:"email",value:i.email,onChange:t,isInvalid:l.email&&!!o.email,onKeyDown:e=>{" "===e.key&&e.preventDefault()}}),(0,r.jsx)(x.A.Control.Feedback,{type:"invalid",children:o.email})]}),(0,r.jsxs)(x.A.Group,{as:m.A,md:"6",className:"mb-3",children:[(0,r.jsx)(x.A.Control,{type:"text",placeholder:"Country",name:"country",value:i.country,onChange:e=>s("country",e.target.value.replace(/^\s+/,"")),isInvalid:l.country&&!!o.country}),(0,r.jsx)(x.A.Control.Feedback,{type:"invalid",children:o.country})]}),(0,r.jsxs)(x.A.Group,{as:m.A,md:"12",className:"mb-3",children:[(0,r.jsx)(x.A.Control,{type:"text",placeholder:"Phone",name:"phone",value:i.phone,isInvalid:l.phone&&!!o.phone,onChange:t}),(0,r.jsx)(x.A.Control.Feedback,{type:"invalid",children:o.phone})]})]}),(0,r.jsx)(f.A,{type:"submit",className:"btnView w-100",children:n?"Submitting...":"Register"})]})}})})},_=()=>
1{let[e,a]=(0,s.useState)(!1),t=y.Ik().shape({candidate:y.Yj().required("Candidate ID is required"),password:y.Yj().required("Password is required")});return(0,r.jsx)("div",{children:(0,r.jsx)(g.l1,{validationSchema:t,onSubmit:e=>console.log(e),initialValues:{candidate:"",password:""},children:t=>{let{handleSubmit:s,handleChange:n,setFieldValue:i,values:l,touched:o,errors:d}=t;return(0,r.jsxs)(x.A,{noValidate:!0,onSubmit:s,children:[(0,r.jsxs)(c.A,{className:"mb-3",children:[(0,r.jsxs)(x.A.Group,{as:m.A,md:"12",className:"mb-3",controlId:"validationFormik01",children:[(0,r.jsx)(x.A.Control,{type:"text",placeholder:"Candidate ID",name:"candidate",value:l.candidate,isInvalid:o.candidate&&!!d.candidate,onChange:e=>i("candidate",e.target.value.replace(/^\s+/,""))}),(0,r.jsx)(x.A.Control.Feedback,{type:"invalid",children:d.candidate})]}),(0,r.jsxs)(x.A.Group,{as:m.A,md:"12",className:"mb-3",controlId:"validationFormik02",children:[(0,r.jsx)(x.A.Control,{type:e?"text":"password",placeholder:"Password",name:"password",value:l.password,isInvalid:o.password&&!!d.password,onChange:e=>i("password",e.target.value.replace(/^\s+/,""))}),(0,r.jsx)(x.A.Control.Feedback,{type:"invalid",children:d.password})]}),(0,r.jsxs)("div",{className:"d-flex justify-content-between align-items-center mb-3",children:[(0,r.jsx)(x.A.Group,{children:(0,r.jsx)(x.A.Check,{type:"checkbox",label:"Show Password",checked:e,onChange:()=>a(!e)})}),(0,r.jsx)("a",{href:"#",children:"Forgot Password?"})]})]}),(0,r.jsx)(f.A,{type:"submit",className:"btnView w-100",children:"Login"})]})}})})},N=e=>{let{logo:a,heading:t,formheading:n,formsubheading:i,logincards:o}=e;return(0,s.useEffect)(()=>(document.body.classList.add("hide-header-footer"),()=>{document.body.classList.remove("hide-header-footer")}),[]),(0,r.jsx)("section",{className:"registerLoginForm",children:(0,r.jsx)("div",{className:"loginBgImage",children:(0,r.jsxs)(c.A,{className:"g-lg-0",children:[(0,r.jsx)(m.A,{lg:7,children:(0,r.jsxs)("div",{className:"d-lg-block d-none",children:[(0,r.jsx)(l(),{href:"/",children:(0,r.jsx)(d(),{className:"mt-md-5",width:200,height:32,src:a,alt:"logo"})}),(0,r.jsx)("h4",{className:"ms-4 ps-1 my-md-5 pt-md-4",children:t}),(0,r.jsx)(h.RC,{slidesPerView:1.7,centeredSlides:!0,spaceBetween:32,touchRatio:1,className:"mySwiper py-3 px-2",children:o.map((e,a)=>(0,r.jsx)(h.qr,{children:(0,r.jsxs)("div",{className:"loginSwiperCard position-relative",children:[(0,r.jsx)(d(),{src:e.cards_image,width:183,height:286,alt:"Satyajit Sutradhar"}),(0,r.jsx)("p",{children:e.cards_description}),(0,r.jsxs)("div",{className:"ms-md-5 mt-md-4",children:[(0,r.jsx)("h4",{children:e.cards_name}),(0,r.jsx)("label",{children:e.cards_short_description})]})]})},a))})]})}),(0,r.jsx)(m.A,{lg:5,children:(0,r.jsxs)("div",{className:"loginAccount",children:[(0,r.jsx)("h3",{children:n}),(0,r.jsx)("p",{children:i}),(0,r.jsxs)(u.A.Container,{id:"tabs-example",defaultActiveKey:"first",children:[(0,r.jsx)("div",{className:"tabsConnect",children:(0,r.jsxs)(p.A,{className:"navTabs",children:[(0,r.jsx)(p.A.Item,{children:(0,r.jsx)(p.A.Link,{eventKey:"first",children:"Register"})}),(0,r.jsx)(p.A.Item,{children:(0,r.jsx)(p.A.Link,{eventKey:"second",children:"Login"})})]})}),(0,r.jsxs)(u.A.Content,{children:[(0,r.jsx)(u.A.Pane,{eventKey:"first",children:(0,r.jsx)(b,{})}),(0,r.jsx)(u.A.Pane,{eventKey:"second",children:(0,r.jsx)(_,{})})]})]})]})})]})})})};var C=!0;let k=e=>{let{loginData:a,fullUrl:t}=e,s=a.data;return(0,r.jsx)(n.A,{title:s.seo.seo.seo_title,description:s.seo.seo.seo_description,keywords:s.seo.seo.seo_description,conicalUrl:t,children:(0,r.jsx)(N,{logo:s.logindata.logo,heading:s.logindata.heading,formheading:s.logindata.formheading,formsubheading:s.logindata.formsubheading,login_bg_image:s.logindata.login_bg_image,logincards:s.logindata.logincards})})}},41995:(e,a,t)=>{"use strict";t.d(a,{d:()=>n});var r=t(14232),s=t(32175);function n(){let[e,a]=(0,r.useState)({browser_name:"",browser_version:"",os_name:"",os_version:"",device_type:"",screenWidth:0,screenHeight:0,userAgent:"",screen_resolution:""});return(0,r.useEffect)(()=>{let e=new s.O().getResult(),t=window.screen.width,r=window.screen.height;a({browser_name:e.browser.name||"",browser_version:e.browser.version||"",os_name:e.os.name||"",os_version:e.os.version||"",device_type:e.device.type||"desktop",screenWidth:t,screenHeight:r,screen_resolution:"".concat(t," X ").concat(r),userAgent:navigator.userAgent})},[]),e}},43101:(e,a,t)=>{"use strict";t.d(a,{V:()=>s});var r=t(14232);
1function s(){let e="6LeTWgUsAAAAAC6hxHj5f3DiknzkAp5PWQU_EFSd";return{executeRecaptcha:(0,r.useCallback)(async a=>{if(!window.grecaptcha)return console.error("reCAPTCHA not loaded"),null;try{await new Promise(e=>{window.grecaptcha.ready(()=>e())});let t=await window.grecaptcha.execute(e,{action:a});return console.log("reCAPTCHA token generated:",t?"Success":"Failed"),t}catch(e){return console.error("reCAPTCHA execution failed:",e),null}},[e])}}},50535:(e,a,t)=>{"use strict";t.d(a,{X:()=>l});var r=t(14232),s=t(89099),n=t(48036);let i={utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:"",page_url:"",utm_id:"",university:"",program:"",programtype:""};function l(){let e=(0,s.useRouter)(),[a,t]=(0,r.useState)(i),[l,o]=(0,r.useState)("");return(0,r.useEffect)(()=>{if(!e.isReady)return;let a=window.location.pathname.toLowerCase();if(l===a)return;let r=new URLSearchParams(window.location.search),s=n.g[a]||{university:"",program:"",programtype:""},d={utm_source:r.get("utm_source")||"",utm_medium:r.get("utm_medium")||"",utm_campaign:r.get("utm_campaign")||"",utm_term:r.get("utm_term")||"",utm_content:r.get("utm_content")||"",utm_id:r.get("utm_id")||"",page_url:window.location.href,university:s.university,program:s.program,programtype:s.programtype||""};if(Array.from(r.keys()).some(e=>e.startsWith("utm_")))sessionStorage.setItem("utm_params",JSON.stringify(d)),t(d);else{let e=sessionStorage.getItem("utm_params");if(e)try{let a=JSON.parse(e);t({...i,...a,page_url:a.page_url||window.location.href,university:s.university,program:s.program,programtype:s.programtype||""})}catch(e){console.error("Invalid UTM data in sessionStorage",e),t({...i,page_url:window.location.href,university:s.university,program:s.program,programtype:s.programtype||""})}else t({...i,page_url:window.location.href,university:s.university,program:s.program,programtype:s.programtype||""})}o(a)},[e.isReady,e.asPath]),a}},77328:(e,a,t)=>{e.exports=t(29269)}},e=>{e.O(0,[2175,9970,2413,3631,8036,636,6593,8792],()=>e(e.s=7984)),_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.