1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1155],{3756:(e,t,n)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/lead-gen/contact-us",function(){return n(4257)}])},4257:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__N_SSP:()=>A,default:()=>S});var a=n(37876),r=n(14232),s=n(83631),o=n(54587),l=n.n(o),i=n(48230),c=n.n(i),m=n(40876),d=n(97719),u=n(60929),p=n(50223),h=n(91408),g=n(40038),f=n(77840),y=n(25241),_=n.n(y),x=n(89099),j=n(41995),v=n(50535),w=n(43101);let b=/^[A-Za-z\s]+$/,N=h.Ik().shape({firstname:h.Yj().matches(b,"name must only contain letters and spaces").required("please enter first name"),lastname:h.Yj().matches(b,"name must only contain letters and spaces").required("please enter last name"),phone:h.Yj().matches(/^[0-9]{10}$/,"Only numbers are allowed").min(10,"Must be at least 10 digits").required("please enter phone number"),email:h.Yj().matches(/^[^\s@]+@[^\s@]+\.(com|in|org|net)$/,"Enter valid email").email("Invalid email format").required("please enter email"),city:h.Yj().required("please select city"),work:h.Yj().required("please select work experience"),enquiry:h.Yj().required("Please select domain"),careertransistion:h.Yj().required("please enter career transition"),description:h.Yj().min(10,"Message should be at least 10 characters long").required("Message is required"),terms_0:h.zM().oneOf([!0],"You must accept the term and conditions").required("You must accept the terms and conditions"),terms_1:h.zM().oneOf([!0],"You must accept the the consent").required("You must accept the the consent")}),C={firstname:"",lastname:"",phone:"",email:"",country:"",city:"",enquiry:"",work:"",designation:"",careertransistion:"",description:"",terms_0:!1,terms_1:!1},k=e=>{let{image:t,title:n,description:s,query_assistance:o,contact_info:i,checkboxes:h,leadgen_form_data:y}=e,[b,k]=(0,r.useState)(!1),[,A]=(0,r.useState)(!1),[S,T]=(0,r.useState)(!1),[P,E]=(0,r.useState)(!1),O=(0,x.useRouter)(),q=(0,j.d)(),G=(0,v.X)(),{executeRecaptcha:F}=(0,w.V)(),I=async(e,t)=>{let{resetForm:n}=t;try{if(!F)return;let t=await F("cnotactuseadgen");if(!t)return alert("reCAPTCHA failed, try again.");let a=await fetch("/api/submitlead",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({...q,...G,...e,formname:"lead gen contact us",page_title:"lead gen contact us",otp_verify:"Yes",recaptcha:t})}),r=await a.json();console.log("Form Submitted:",r),setTimeout(()=>{"success"===r.status&&(n(),T(!0),O.push("/thank-you"),n())},500)}catch(e){console.error("Form submission error:",e)}},[D,V]=(0,r.useState)(0),Y=async(e,t)=>{E(!1);try{if(!F)return;let n=await F("cnotactuleadgenotp");if(!n)return alert("reCAPTCHA failed, try again.");if(k(!1),T(!1),(await fetch("/api/send-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:e,recaptcha:n})})).ok&&k(!0),!F)return;let a=await F("cnotactuleadgesubmit");if(!a)return alert("reCAPTCHA failed, try again.");await fetch("/api/submitlead",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({...q,...G,...t,formname:"lead gen contact us",page_title:"lead gen contact us",otp_verify:"No",recaptcha:a})})}catch(e){console.error("Error sending OTP:",e)}};return(0,a.jsxs)("section",{className:"".concat(_().leadGen," position-relative secPad"),children:[(0,a.jsx)("div",{className:"leftgradient"}),(0,a.jsx)("div",{className:"rightgradient"}),(0,a.jsx)(m.A,{className:"tertiary-container",children:(0,a.jsxs)(d.A,{children:[(0,a.jsxs)(u.A,{md:5,children:[(0,a.jsx)(l(),{className:"".concat(_().leadFormIcon," w-100"),width:450,height:940,src:t,alt:"lead gen icon"}),(0,a.jsxs)("div",{className:"mb-5 mb-md-0",children:[(0,a.jsx)("p",{className:"my-md-4 py-3",dangerouslySetInnerHTML:{__html:"".concat(o)}}),i.map((e,t)=>(0,a.jsxs)("div",{className:"".concat(_().careerContent," d-flex"),children:[(0,a.jsx)("div",{className:"flex-shrink-0",children:(0,a.jsx)(l(),{width:50,height:50,src:e.icon,alt:"lead gen icon"})}),(0,a.jsxs)("div",{className:"flex-grow-1 ms-3",children:[(0,a.jsx)("h6",{children:e.label}),e.ctalink&&(0,a.jsx)(c(),{href:e.ctalink,className:"text-dark",children:e.content}),!e.ctalink&&(0,a.jsx)("p",{children:e.content})]})]},t))]})]}),(0,a.jsx)(u.A,{md:7,children:(0,a.jsxs)("div",{className:"".concat(_().leadForm," position-relative mb-4 mb-md-0"),
1children:[(0,a.jsxs)("div",{className:"".concat(_().leadContent),children:[(0,a.jsx)("h2",{dangerouslySetInnerHTML:{__html:"".concat(n)}}),(0,a.jsx)("h4",{children:s})]}),(0,a.jsx)(p.l1,{initialValues:C,validationSchema:N,onSubmit:I,children:e=>{let{setFieldValue:t,handleSubmit:n,handleChange:r,values:s,isSubmitting:o}=e;return(0,a.jsx)(p.lV,{noValidate:!0,onSubmit:n,children:(0,a.jsxs)(d.A,{children:[(0,a.jsx)(u.A,{md:6,children:(0,a.jsxs)("div",{className:_().formGroup,children:[(0,a.jsx)("label",{htmlFor:"firstName",children:"First Name"}),(0,a.jsx)(p.D0,{id:"firstname",name:"firstname",placeholder:"First Name",className:"".concat(_().formControl," form-control"),onChange:e=>t("firstname",e.target.value.replace(/^\s+/,""))}),(0,a.jsx)(p.Kw,{name:"firstname",component:"span",className:_().error})]})}),(0,a.jsx)(u.A,{md:6,children:(0,a.jsxs)("div",{className:_().formGroup,children:[(0,a.jsx)("label",{htmlFor:"lastname",children:"Last Name"}),(0,a.jsx)(p.D0,{id:"lastname",name:"lastname",placeholder:"Last Name",className:"".concat(_().formControl," form-control"),onChange:e=>t("lastname",e.target.value.replace(/^\s+/,""))}),(0,a.jsx)(p.Kw,{name:"lastname",component:"span",className:_().error})]})}),(0,a.jsx)(u.A,{md:12,children:(0,a.jsxs)("div",{className:_().formGroup,children:[(0,a.jsx)("label",{htmlFor:"phone",children:"Phone"}),(0,a.jsxs)("div",{className:"d-flex align-items-center",children:[(0,a.jsx)(p.D0,{type:"number",className:"".concat(_().formControl," form-control"),name:"phone",placeholder:"Phone number",id:"phone"}),(0,a.jsx)(p.Kw,{name:"phone",component:"span",className:"".concat(_().error," phoneNumber")}),(0,a.jsx)("button",{type:"button",className:_().otpButton,disabled:!/^\d{10}$/.test(s.phone)||D>0,onClick:()=>Y(s.phone,s),children:"Get OTP"})]}),b&&(0,a.jsx)("div",{className:"mb-3",children:(0,a.jsx)(f.A,{successsmsg:S,phone:s.phone,onChange:e=>console.log("Entered OTP:",e.join("")),onVerify:()=>{A(!0)},otpValidated:e=>E(e),disbaleGetOtp60s:e=>V(e)})})]})}),(0,a.jsx)(u.A,{md:12,children:(0,a.jsxs)("div",{className:_().formGroup,children:[(0,a.jsx)("label",{htmlFor:"email",children:"Email"}),(0,a.jsx)(p.D0,{type:"email",name:"email",id:"email",placeholder:"[email protected]",className:"".concat(_().formControl," form-control"),onChange:r,onKeyDown:e=>{" "===e.key&&e.preventDefault()}}),(0,a.jsx)(p.Kw,{name:"email",component:"span",className:_().error})]})}),(0,a.jsx)(u.A,{md:6,children:(0,a.jsxs)("div",{className:"".concat(_().formGroup," form-Group"),children:[(0,a.jsx)("label",{htmlFor:"city",children:"City"}),(0,a.jsx)(g.Ay,{options:y.citys,placeholder:"Select city",name:"city",id:"city",className:"react-custom-select",classNamePrefix:"react-select",value:y.citys.find(e=>e.value===s.city)||null,onChange:e=>t("city",e?e.value:"")}),(0,a.jsx)(p.Kw,{name:"city",component:"span",className:_().error})]})}),(0,a.jsx)(u.A,{md:6,children:(0,a.jsxs)("div",{className:"".concat(_().formGroup," form-Group"),children:[(0,a.jsx)("label",{htmlFor:"work",children:"Work Experience"}),(0,a.jsx)(g.Ay,{options:y.workexperiances,placeholder:"Work Experience",name:"work",id:"work",className:"react-custom-select",classNamePrefix:"react-select",value:y.workexperiances.find(e=>e.value===s.work)||null,onChange:e=>t("work",(null==e?void 0:e.value)||"")}),(0,a.jsx)(p.Kw,{name:"work",component:"span",className:_().error})]})}),(0,a.jsx)(u.A,{md:12,children:(0,a.jsxs)("div",{className:"".concat(_().formGroup," form-Group"),children:[(0,a.jsx)("label",{htmlFor:"enquiry",children:"Enquiry Domains"}),(0,a.jsx)(g.Ay,{options:y.enquerydomains,placeholder:"Select Domain",name:"enquiry",id:"enquiry",className:"react-custom-select",classNamePrefix:"react-select",value:y.enquerydomains.find(e=>e.value===s.enquiry)||null,onChange:e=>t("enquiry",(null==e?void 0:e.value)||"")}),(0,a.jsx)(p.Kw,{name:"enquiry",component:"span",className:_().error})]})}),(0,a.jsx)(u.A,{md:12,children:(0,a.jsxs)("div",{className:_().formGroup,children:[(0,a.jsx)("label",{htmlFor:"careertransistion",children:"Career Transition"}),(0,a.jsx)(p.D0,{id:"careertransistion",name:"careertransistion",placeholder:"Write Career Transition",className:"".concat(_().formControl," form-control"),onChange:e=>t("careertransistion",e.target.value.replace(/^\s+/,""))}),(0,a.jsx)(p.Kw,{name:"careertransistion",component:"span",className:_().error})]})}),(0,a.jsx)(u.A,{md:12,children:(0,a.jsxs)("div",{className:"".concat(_().formGroup," form-Group"),children:[(0,a.jsx)("label",{htmlFor:"description",children:"Message"}
1),(0,a.jsx)(p.D0,{as:"textarea",name:"description",id:"description",rows:"1",placeholder:"Write your message",className:"".concat(_().formControl," form-control"),onChange:e=>t("description",e.target.value.replace(/^\s+/,""))}),(0,a.jsx)(p.Kw,{name:"description",component:"span",className:_().error})]})}),h.map((e,t)=>(0,a.jsxs)("div",{className:_().formCheck,children:[(0,a.jsxs)("label",{children:[(0,a.jsx)(p.D0,{type:"checkbox",name:"terms_".concat(t)}),e.text]}),(0,a.jsx)(p.Kw,{name:"terms_".concat(t),component:"span",className:_().error})]},t)),(0,a.jsx)("button",{type:"submit",disabled:!P,className:"".concat(_().submitButton," btn btnView border-0 mx-auto"),children:o?"Submiting...":"Submit"})]})})}})]})})]})})]})};var A=!0;let S=e=>{var t,n,r,o,l,i,c,m;let{leadGenData:d}=e;console.log("leadGenData",d);let u=d.data;return(0,a.jsx)(s.A,{title:"JE | Lead-Gen Contact Us",description:"JE | Lead-Gen Contact Us",children:(0,a.jsx)(k,{title:null==u||null==(t=u.banner)?void 0:t.title,description:null==u||null==(n=u.banner)?void 0:n.description,image:null==u||null==(r=u.banner)?void 0:r.image,query_assistance:null==u||null==(o=u.banner)?void 0:o.query_assistance,working_hours:null==u||null==(l=u.banner)?void 0:l.working_hours,contact_info:null==u||null==(i=u.banner)?void 0:i.contact_info,checkboxes:null==u||null==(c=u.banner)?void 0:c.checkboxes,leadgen_form_data:null==u||null==(m=u.banner)?void 0:m.leadgen_form_data})})}},25241:e=>{e.exports={leadGen:"leadgen_leadGen__44tc0",leadFormIcon:"leadgen_leadFormIcon__UDhd0","react-select-custom":"leadgen_react-select-custom__X5WUR","react-select__placeholder":"leadgen_react-select__placeholder__qzxbY",careerContent:"leadgen_careerContent__iy5hu",leadForm:"leadgen_leadForm__Jh0_K",leadContent:"leadgen_leadContent__j0dEo",formGroup:"leadgen_formGroup__HL__s",formControl:"leadgen_formControl__rVmr6",otpButton:"leadgen_otpButton__aCMin",formCheck:"leadgen_formCheck__pDAME",submitButton:"leadgen_submitButton__5XwQJ",error:"leadgen_error__6GjGu",otpVerify:"leadgen_otpVerify__Z2vtl",otpInput:"leadgen_otpInput__f7MJL",verifyButton:"leadgen_verifyButton__m_RPF"}},41995:(e,t,n)=>{"use strict";n.d(t,{d:()=>s});var a=n(14232),r=n(32175);function s(){let[e,t]=(0,a.useState)({browser_name:"",browser_version:"",os_name:"",os_version:"",device_type:"",screenWidth:0,screenHeight:0,userAgent:"",screen_resolution:""});return(0,a.useEffect)(()=>{let e=new r.O().getResult(),n=window.screen.width,a=window.screen.height;t({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:n,screenHeight:a,screen_resolution:"".concat(n," X ").concat(a),userAgent:navigator.userAgent})},[]),e}},43101:(e,t,n)=>{"use strict";n.d(t,{V:()=>r});var a=n(14232);function r(){let e="6LeTWgUsAAAAAC6hxHj5f3DiknzkAp5PWQU_EFSd";return{executeRecaptcha:(0,a.useCallback)(async t=>{if(!window.grecaptcha)return console.error("reCAPTCHA not loaded"),null;try{await new Promise(e=>{window.grecaptcha.ready(()=>e())});let n=await window.grecaptcha.execute(e,{action:t});return console.log("reCAPTCHA token generated:",n?"Success":"Failed"),n}catch(e){return console.error("reCAPTCHA execution failed:",e),null}},[e])}}},50535:(e,t,n)=>{"use strict";n.d(t,{X:()=>l});var a=n(14232),r=n(89099),s=n(48036);let o={utm_source:"",utm_medium:"",utm_campaign:"",utm_term:"",utm_content:"",page_url:"",utm_id:"",university:"",program:"",programtype:""};function l(){let e=(0,r.useRouter)(),[t,n]=(0,a.useState)(o),[l,i]=(0,a.useState)("");return(0,a.useEffect)(()=>{if(!e.isReady)return;let t=window.location.pathname.toLowerCase();if(l===t)return;let a=new URLSearchParams(window.location.search),r=s.g[t]||{university:"",program:"",programtype:""},c={utm_source:a.get("utm_source")||"",utm_medium:a.get("utm_medium")||"",utm_campaign:a.get("utm_campaign")||"",utm_term:a.get("utm_term")||"",utm_content:a.get("utm_content")||"",utm_id:a.get("utm_id")||"",page_url:window.location.href,university:r.university,program:r.program,programtype:r.programtype||""};if(Array.from(a.keys()).some(e=>e.startsWith("utm_")))sessionStorage.setItem("utm_params",JSON.stringify(c)),n(c);else{let e=sessionStorage.getItem("utm_params");if(e)try{let t=JSON.parse(e);n({...o,...t,page_url:t.page_url||window.location.href,university:r.university,program:r.program,programtype:r.programtype||""})}catch(e){console.error("Invalid UTM data in sessionStorage",e),n({...o,page_url:window.location.href,university:r.university,program:r.program,programtype:r.programtype||""})}else n({...o,page_url:window.location.href,university:r.university,program:r.program,programtype:r.programtype||""})}i(t)},[e.isReady,e.asPath]),t}}
1,77328:(e,t,n)=>{e.exports=n(29269)},77840:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var a=n(37876),r=n(14232),s=n(25241),o=n.n(s),l=n(64838),i=n(43101);let c=e=>{let{phone:t,onChange:n,onVerify:s,successsmsg:c=!1,otpValidated:m,disbaleGetOtp60s:d}=e,[u,p]=(0,r.useState)(!0),[h,g]=(0,r.useState)(!1),[f,y]=(0,r.useState)(60),[_,x]=(0,r.useState)(!1),[j,v]=(0,r.useState)(!1),[w,b]=(0,r.useState)(!1),[N,C]=(0,r.useState)(!1),[k,A]=(0,r.useState)(["","","",""]),S=k.join(""),{executeRecaptcha:T}=(0,i.V)(),P=async()=>{let e=S.trim();if(e.length<4)return void C(!0);if(g(!0),b(!1),C(!1),null==m||m(!1),!T)return;let n=await T("needassistanceform");n||console.log("reCAPTCHA failed, try again.");try{let a=await fetch("/api/verify-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:"".concat(t),otp:e,recaptcha:n})});if(!a.ok){null==m||m(!1),C(!0);return}let r=await a.json();r.recaptchatoken&&r.success?(null==m||m(!0),setTimeout(()=>{b(!0),setTimeout(()=>{x(!0),v(!0),null==s||s(),setTimeout(()=>{b(!1)},1500)},1e3)},1e3)):null==m||m(!1)}catch(e){console.error("OTP verification error:",e)}finally{setTimeout(()=>g(!1),3e3)}C(!1)},E=async()=>{if(!T)return;let e=await T("needassistanceform");e||console.log("reCAPTCHA failed, try again."),null==m||m(!1);try{(await fetch("/api/send-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:t,recaptcha:e})})).ok}catch(e){console.error("Error sending OTP:",e)}},O=async()=>{null==m||m(!1),A(["","","",""]),y(60),x(!1),v(!1),E();let e=document.getElementById("otp-0");null==e||e.focus()};return(0,r.useEffect)(()=>{let e=setTimeout(()=>p(!1),1e3);return()=>clearTimeout(e)},[]),(0,r.useEffect)(()=>{if(!u){let e=document.getElementById("otp-0");null==e||e.focus()}},[u]),(0,r.useEffect)(()=>{let e;return u||!(f>0)||_||(e=setInterval(()=>{y(e=>e-1),null==d||d(f)},1e3)),()=>clearInterval(e)},[u,f,_]),(0,a.jsx)(a.Fragment,{children:u?(0,a.jsx)(l.A,{animation:"grow",className:"d-block mx-auto my-4",variant:"primary"}):j?(0,a.jsx)("div",{className:"alert alert-success mt-3 text-center fs-14 py-2 ".concat(c?"d-none":"d-block"),children:"Your phone number has been successfully verified!"}):!_&&(0,a.jsxs)("div",{className:o().otpVerify,children:[(0,a.jsxs)("p",{children:["An OTP has been sent to ",(0,a.jsxs)("strong",{children:["+91 ",t]}),". Please enter it below to verify your phone."]}),(0,a.jsx)("h6",{children:"Enter OTP"}),(0,a.jsxs)("div",{className:"d-lg-flex align-items-center gap-3 mt-2 flex-wrap",children:[(0,a.jsx)("div",{className:"d-flex justify-content-between justify-content-lg-start gap-3 mb-lg-0 mb-4",children:k.map((e,t)=>(0,a.jsx)("input",{id:"otp-".concat(t),type:"text",maxLength:1,value:e,onChange:e=>((e,t)=>{if(!/^\d*$/.test(e)||_)return;let a=[...k];if(a[t]=e,A(a),null==n||n(a),e&&t<k.length-1){let e=document.getElementById("otp-".concat(t+1));e&&!e.disabled&&e.focus()}})(e.target.value,t),onKeyDown:e=>{if("Backspace"===e.key&&!k[t]&&t>0){let e=document.getElementById("otp-".concat(t-1));null==e||e.focus()}},className:"".concat(o().otpInput," form-control text-center"),disabled:_},t))}),(0,a.jsx)("div",{className:" mb-4 mb-lg-0 pointer",children:(0,a.jsx)("span",{className:"".concat(o().verifyButton," text-dark me-3 "),onClick:P,children:h?w?"Verified":"Verifying":"Verify"})}),(0,a.jsx)("div",{children:f>0?(0,a.jsxs)("span",{className:"text-cgray",children:["Resend OTP in ",f," sec"]}):(0,a.jsx)("button",{className:"".concat(o().verifyButton," text-dark "),onClick:O,children:"Resend OTP"})})]}),N&&(0,a.jsx)("span",{className:"err mt-2",children:" Wrong otp"})]})})}}},e=>{e.O(0,[2175,9970,3273,3631,8036,636,6593,8792],()=>e(e.s=3756)),_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.