PageSourceSearch

https://www.jaroeducation.com/_next/static/chunks/pages/lead-gen/corporate-inquiry-63266b7c23738e54.js

js jaroeducation.com collected 2026-10-01 13:01:49 UTC 17,611 bytes, 1 lines download raw bytes

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