PageSourceSearch

https://www.jaroeducation.com/_next/static/chunks/7442-b2bb281c97c0a914.js

js jaroeducation.com collected 2026-09-24 10:15:00 UTC 10,080 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7442],{66320:e=>{e.exports={grey_card:"needassistance_grey_card__Ooz_Q",bounce_in_on_hover:"needassistance_bounce_in_on_hover___LCjb",gradient_effect:"needassistance_gradient_effect__VBiN7"}},87442:(e,a,t)=>{"use strict";t.d(a,{A:()=>S});var s=t(37876),n=t(14232),r=t(40876),i=t(97719),o=t(60929),c=t(54587),l=t.n(c),m=t(41321),d=t(7001),h=t(50223),p=t(91408),u=t(48230),x=t.n(u),j=t(77840),_=t(89099),f=t(41995),g=t(50535),b=t(43101),y=t(12208);let N=e=>{let{heading:a,description:t,timing:r,form_data:c,terms:l,city_dropdown:u}=e,{l1:N}=h,v=p.Ik().shape({firstname:p.Yj().required("Please enter name").test("valid-name","Please enter a valid name",y.iG),email:p.Yj().required("Please enter email").test("valid-email","Please enter a valid email address",y.DW),phone:p.Yj().matches(/^[0-9]{10}$/,"Please enter valid number").required("Please enter phone number"),city:p.Yj().required("Please select city"),message:p.Yj().required("Please write message"),terms_0:p.zM().oneOf([!0],"Terms must be accepted").required("Terms must be accepted"),terms_1:p.zM().oneOf([!0]," Programs must be accepted").required("Programs must be accepted"),terms_2:p.zM().oneOf([!0]," Offers and promotional must be accepted").required("Offers and promotional must be accepted")}),A=(0,_.useRouter)(),C="/"===A.asPath?"Home page":"Jaro connect page",S=(0,f.d)(),w=(0,g.X)(),[P,T]=(0,n.useState)(!1),[k,O]=(0,n.useState)(!1),[E,G]=(0,n.useState)(!1),[,q]=(0,n.use
1State)(!1),[V,I]=(0,n.useState)(0),{executeRecaptcha:D}=(0,b.V)(),L=async(e,a)=>{let{resetForm:t}=a;if(!D)return;let s=await D("needassistanceform");s||console.log("reCAPTCHA failed, try again.");try{let a=await fetch("/api/submitlead",{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify({...w,...e,...S,formname:"Need Assistant form",page_title:C,otp_verify:"Yes",recaptcha:s,university:w.university||"Any",program:w.program||"All Product"})});(await a.json()).status&&P&&(t(),A.push("/thank-you"))}catch(e){console.error("Error submitting form:",e)}},F=async(e,a)=>{if(T(!1),!D)return;let t=await D("needassistanceform");t||console.log("reCAPTCHA failed, try again.");try{G(!1),O(!1),(await fetch("/api/send-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:e,recaptcha:t})})).ok&&G(!0),await fetch("/api/submitlead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...w,...S,...a,formname:"Need Assistant form",page_title:C,otp_verify:"No",recaptcha:t,university:w.university||"Any",program:w.program||"All Product"})})}catch(e){console.error("Error sending OTP:",e)}};return(0,s.jsx)(N,{initialValues:{firstname:"",email:"",phone:"",city:"",message:"",terms_0:!1,terms_1:!1,terms_2:!1},validationSchema:v,onSubmit:L,children:e=>{let{handleSubmit:n,handleChange:p,values:_,touched:f,errors:g,isSubmitting:b,setFieldValue:N}=e;return(0,s.jsxs)(d.A,{noValidate:!0,onSubmit:n,className:"assistance_form",children:[(0,s.jsx)("h5",{className:"ft_64 raleway-ff fw-semibold text-white",dangerouslySetInnerHTML:{__html:"".concat(a)}}),(0,s.jsx)("p",{children:t}),(0,s.jsx)("h6",{className:"text-md-center",children:r}),(0,s.jsxs)(i.A,{children:[(0,s.jsxs)(d.A.Group,{as:o.A,md:"6",className:"mb-4 pb-2",controlId:"validationFormik01",children:[(0,s.jsx)(d.A.Label,{children:"Name"}),(0,s.jsx)(d.A.Control,{type:"text",placeholder:"Enter your name",name:"firstname",value:_.firstname,onKeyDown:y.xB,onChange:e=>N("firstname",e.target.value.replace(/[^A-Za-z\s]/g,"")),isInvalid:!!g.firstname}),(0,s.jsx)("span",{className:"err mt-2",children:g.firstname})]}),(0,s.jsxs)(d.A.Group,{as:o.A,md:"6",className:"mb-4 pb-2",controlId:"validationFormik02",children:[(0,s.jsx)(d.A.Label,{children:"Email"}),(0,s.jsx)(d.A.Control,{type:"email",placeholder:"Enter your email",name:"email",value:_.email,onChange:p,isValid:f.email&&!g.email,isInvalid:!!g.email,onKeyDown:e=>{" "===e.key&&e.preventDefault()}}),(0,s.jsx)("span",{className:"err mt-2",children:g.email})]}),(0,s.jsxs)("div",{className:"d-flex mb-3",children:[(0,s.jsxs)(d.A.Group,{as:o.A,md:"9",xs:"7",className:"position-relative me-1",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(d.A.Label,{children:"Phone"}),(0,s.jsx)(d.A.Control,{type:"number",placeholder:"Phone Number",name:"phone",value:_.phone,onChange:e=>N("phone",e.target.value.replace(/\D/g,"").slice(0,10)),isValid:f.phone&&!g.phone})]}),(0,s.jsx)("span",{className:"err mt-2",children:g.phone})]}),(0,s.jsx)(d.A.Group,{as:o.A,md:"3",xs:"5",className:"position-relative mt-4 pt-2",children:(0,s.jsx)("button",{type:"button",className:"otpButton-ofcnvs w-100 assistanceFormOtp",disabled:!/^\d{10}$/.test(_.phone)||null!==(0,y.yS)(_.firstname)||null!==(0,y.DT)(_.email)||V>0,onClick:()=>F(_.phone,_),children:"Get OTP"})})]}),E&&(0,s.jsx)("div",{className:"mb-3",children:(0,s.jsx)(j.A,{successsmsg:k,phone:_.phone,onChange:e=>console.log("Entered OTP:",e.join("")),onVerify:()=>{q(!0)},otpValidated:e=>T(e),disbaleGetOtp60s:e=>I(e)})}),(0,s.jsxs)(d.A.Group,{as:o.A,md:12,className:"mb-4 pb-2 ",children:[(0,s.jsx)(d.A.Label,{children:"City"}),(0,s.jsxs)(d.A.Select,{name:"city",className:"form-control",value:_.city,onChange:p,children:[(0,s.jsx)("option",{value:"",children:"City"}),null==u?void 0:u.map((e,a)=>(0,s.jsx)("option",{value:e.value,children:e.label},a))]}),(0,s.jsx)("span",{className:"err mt-2",children:g.city})]}),(0,s.jsxs)(d.A.Group,{as:o.A,md:"12",className:"mb-4 pb-2",controlId:"validationFormik04",children:[(0,s.jsx)(d.A.Label,{children:"Message"}),(0,s.jsx)(d.A.Control,{type:"text",placeholder:"Enter your message",name:"message",value:_.message,isValid:f.message&&!g.message,isInvalid:!!g.message,onChange:e=>N("message",e.target.value.replace(/^\s+/,""))}),(0,s.jsx)("span",{className:"err mt-2",children:g.message})]})]}),null==l?void 0:l.map((e,a)=>(0,s.jsxs)(d.A.Group,{className:"mb-2",children:[(0,s.jsx)(h.D0,{type:"checkbox",name:"terms_".concat(a),as:d.A.Check,label:e.checkbox_content}),(0,s.jsx)(h.Kw,{name:"terms_".concat(a),component:"span",className:"text-danger err"})]},a)),(0,s.jsx)(m.A,{type:"submit",disabled:!P,children:b?"Submitting...":"Submit"}),(0,s.jsx)(i.A,{children:null==c?void 0:c.map((e,a)=>(0,s.jsx)(o.A,{lg:[5,4,3][a],className:"enquiry",children:(0,s.jsxs)("div",{children:[(0,s.jsx)("h6",{children:e.footer_heading}),"Eemail"===e.footer_heading?(0,s.jsx)(x(),{href:"emailto:".concat(e.form_footer_content),children:e.form_footer_content}):"Career Expert:"===e.footer_heading?(0,s.jsx)(x(),{href:"tel:".concat(e.form_footer_content),children:e.form_footer_content}):(0,s.jsx)("p",{children:e.form_footer_content})]})},a))})]})}})};
1var v=t(66320),A=t.n(v),C=t(8754);let S=e=>{let{heading:a,description:t,timing:c,form_data:m,terms:d,city_dropdown:h,image_one:p,image_two:u,image_three:x,image_four:j,image_five:_,image_six:f,image_seven:g,image_eight:b,image_nine:y}=e;(0,C.A)([{selector:".need-element",yOffset:100,duration:1.5,delay:.6}]);let v=(0,n.useRef)(null);return(0,s.jsx)("section",{className:"".concat(A().need_assistance," need-element secPad"),id:"next-section",children:(0,s.jsx)(r.A,{className:"tertiary-container",children:(0,s.jsxs)(i.A,{children:[(0,s.jsx)(o.A,{lg:5,className:"d-lg-block d-none",children:(0,s.jsxs)("div",{className:"".concat(A().grey_card," position-relative"),children:[(0,s.jsxs)(i.A,{children:[(0,s.jsx)(o.A,{lg:6,className:"text-end",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover),src:p,alt:"icon",width:90,height:90})}),(0,s.jsx)(o.A,{lg:6,className:"text-end",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover," "),src:u,alt:"icon",width:90,height:90})}),(0,s.jsx)(o.A,{lg:12,className:"my-md-5  text-center",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover," ms-5 "),src:x,alt:"icon",width:90,height:90})}),(0,s.jsx)(o.A,{lg:4,className:"text-center",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover," "),src:j,alt:"icon",width:90,height:90})}),(0,s.jsx)(o.A,{lg:4,className:"text-center",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover," "),src:_,alt:"icon",width:90,height:90})}),(0,s.jsx)(o.A,{lg:4,className:"text-end",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover," "),src:f,alt:"icon",width:90,height:90})}),(0,s.jsx)(o.A,{lg:12,className:"my-md-5 text-center",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover," ms-5 "),src:g,alt:"icon",width:90,height:90})}),(0,s.jsx)(o.A,{lg:6,className:"text-center",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover," ms-5 "),src:b,alt:"icon",width:90,height:90})}),(0,s.jsx)(o.A,{lg:6,className:"text-center",children:(0,s.jsx)(l(),{className:"".concat(A().bounce_in_on_hover," ms-5 "),src:y,alt:"icon",width:90,height:90})})]}),(0,s.jsx)("svg",{ref:v,id:"waves",width:"100%",height:"100%",viewBox:"0 0 1000 1000",children:(0,s.jsx)("g",{stroke:"#89A7FF",strokeWidth:"1px",fill:"transparent",children:[100,200,300,400,500,600,700].map((e,a)=>(0,s.jsxs)("circle",{cx:"100%",cy:"40%",r:e,children:[(0,s.jsx)("animate",{attributeType:"CSS",attributeName:"r",from:e,to:e+99.8,dur:"2s",repeatCount:"indefinite"}),100===e&&(0,s.jsx)("animate",{attributeType:"CSS",attributeName:"opacity",from:"1",to:".2",dur:"2s",repeatCount:"indefinite"}),600===e&&(0,s.jsx)("animate",{attributeType:"CSS",attributeName:"opacity",from:"1",to:".5",dur:"2s",repeatCount:"indefinite"}),700===e&&(0,s.jsx)("animate",{attributeType:"CSS",attributeName:"opacity",from:".5",to:"0",dur:"2s",repeatCount:"indefinite"}),800===e&&(0,s.jsx)("animate",{attributeType:"CSS",attributeName:"opacity",from:".5",to:"0",dur:"2s",repeatCount:"indefinite"}),900===e&&(0,s.jsx)("animate",{attributeType:"CSS",attributeName:"opacity",from:".5",to:"0",dur:"2s",repeatCount:"indefinite"})]},a))})}),(0,s.jsx)("span",{className:"".concat(A().gradient_effect)})]})}),(0,s.jsx)(o.A,{lg:7,children:(0,s.jsx)("div",{children:(0,s.jsx)(N,{heading:a,description:t,form_data:m,terms:d,timing:c,city_dropdown:h})})})]})})})}}}]);

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.