1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[410],{43020:(e,t,a)=>{a.d(t,{l:()=>s});let r={gclid:"gclid",utmSource:"utm_source",utmMedium:"utm_medium",utmCampaign:"utm_campaign",utmAdgroup:"utm_adgroup",utmTerm:"utm_term",utmContent:"utm_content"};function s(){let e=new URLSearchParams(window.location.search);return Object.fromEntries(Object.entries(r).map(([t,a])=>[t,e.get(a)||""]))}},53388:(e,t,a)=>{a.d(t,{r:()=>r});async function r(e){let t=function(e={}){let t=String(e.mobile||e.companyContact||"9999999999").replace(/\D/g,""),a=e.email||e.companyEmail||`website-${t}@leads.itpreneurpune.com`,{fullUrl:r,...s}=e;return{...s,name:e.name||e.fullName||"Website Enquiry",email:a,mobile:t,city:e.city||"Not provided",education:e.education||"Not provided",itpCenter:e.itpCenter||"Not provided",passoutYear:e.passoutYear||"Not provided",program:e.program||e.jobTitle||e.pageSource||"General enquiry",pageSource:e.pageSource||"website-form",source:e.source||"Website"}}(e),a=await fetch("https://api.zenoxerp.com/api/FormLeadCapture/2a0f2faa-fe34-4d60-b9c5-18ee2ef71533/78",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!a.ok)throw Error(`ZenoxERP submission failed: ${a.status}`);let r=await a.json().catch(()=>({}));if(Number(r.StatusCode)>=400)throw Error(`ZenoxERP submission failed: ${r.Message||r.StatusCode}`);return r}},69304:(e,t,a)=>{a.d(t,{Ay:()=>o,jp:()=>i,tv:()=>s});let r=(0,a(93769).Z0)({name:"formPopup",initialState:{isOpen:!1,formType:null,pageSource:"popup_default",showCloseButton:!0,formData:{}},reducers:{openFormPopup:(e,t)=>{e.isOpen=!0,e.formType=t.payload?.formType||"courseLead",e.pageSource=t.payload?.pageSource||"popup_default",e.showCloseButton=t.payload?.showCloseButton??!0,e.formData=t.payload?.formData||{}},closeFormPopup:e=>{e.isOpen=!1,e.formType=null,e.formData={}},updateFormData:(e,t)=>{e.formData={...e.formData,...t.payload}},setPageSource:(e,t)=>{e.pageSource=t.payload}}}),{openFormPopup:s,closeFormPopup:i,updateFormData:n,setPageSource:l}=r.actions,o=r.reducer},84195:(e,t,a)=>{a.d(t,{default:()=>d});var r=a(95155),s=a(12115),i=a(73321),n=a(33210),l=a(43020),o=a(53388),c=a(41463);function d({idPrefix:e="top",pageSource:t="itpm_25",onSuccess:a,onClose:d,title:u="Register For Free"}){let m,[p,x]=(0,s.useState)({name:"",mobile:"",email:"",city:"",education:"",passoutYear:"",itpCenter:""}),[h,g]=(0,s.useState)({}),[f,b]=(0,s.useState)(!1),[y,w]=(0,s.useState)(""),[j,v]=(0,s.useState)(["","","",""]),[N,C]=(0,s.useState)(!1),[S,E]=(0,s.useState)(""),[F,T]=(0,s.useState)(""),[P,k]=(0,s.useState)(90),[L,_]=(0,s.useState)(!1),[B,O]=(0,s.useState)(!1),[D,A]=(0,s.useState)(1);(0,i.useRouter)();let M=(0,s.useRef)([]);(0,s.useEffect)(()=>{let e;return 2===D&&P>0&&(e=setInterval(()=>{k(e=>e<=1?(_(!0),0):e-1)},1e3)),()=>clearInterval(e)},[D,P]);let $=e=>{let{name:t,value:a}=e.target;w(""),x(e=>({...e,[t]:a})),g(e=>({...e,[t]:""}))},R=async()=>{try{let e=await fetch("/api/send-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mobileNumber:p.mobile,customerId:c.env.NEXT_PUBLIC_MESSAGE_CENTRAL_CUSTOMER_ID||"C-C209A3C46F214AC"})}),a=await e.json();if(a.success)return T(a.verificationId),A(2),k(90),_(!1),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"OTP_Sent",name:p.name,email:p.email,mobile:p.mobile,city:p.city,education:p.education,itpCenter:p.itpCenter,pageSource:t}),!0;throw Error(a.message||"Failed to send OTP")}catch(e){return console.error("OTP Send Error:",e),w("Failed to send OTP. Please try again."),!1}},I=async()=>{let e=j.join("");if(4!==e.length)return void E("Please enter complete OTP");C(!0),E("");try{let a=await fetch("/api/validate-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({verificationId:F,otp:e,mobileNumber:p.mobile,customerId:c.env.NEXT_PUBLIC_MESSAGE_CENTRAL_CUSTOMER_ID||"C-C209A3C46F214AC"})}),r=await a.json();r.success?(A(3),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"OTP_Verified",mobile:p.mobile,name:p.name,email:p.email,city:p.city,education:p.education,itpCenter:p.itpCenter,pageSource:t}),await Y()):E(r.message||"Invalid OTP. Please try again.")}catch(e){console.error("OTP Validation Error:",e),E("Something went wrong. Please try again.")}finally{C(!1)}},Y=async()=>{try{let e,r=window.location.href,s=(e=new URLSearchParams(window.location.search)).get("utm_source")?e.get("utm_source"):e.get("source")?e.get("source"):"direct";window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Lead_Success_ITPM",formId:"leadFormPopup",name:p.name,email:p.email,mobile:p.mobile,city:p.city,education:p.education,itpCenter:p.itpCenter,isVerified:!0});
1let i={name:p.name,email:p.email,mobile:p.mobile,city:p.city,education:p.education,itpCenter:p.itpCenter,passoutYear:p.passoutYear,pageSource:t,fullUrl:r,source:s,program:t,isVerified:!0,...(0,l.l)()},{fullUrl:n,...c}=i;if((0,o.r)(c).catch(e=>{console.error("ZenoxERP submission error:",e)}),(await fetch("/api/sendEmail",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)})).ok){w("Registration Successful!");try{"function"==typeof window.datafast&&window.datafast("ITMP_LEAD",{name:p.name,email:p.email,mobile:p.mobile,city:p.city,education:p.education,itpCenter:p.itpCenter,page_source:t,traffic_source:s,is_verified:!0})}catch(e){console.error("DataFast tracking error:",e)}x({name:"",email:"",mobile:"",city:"",education:"",passoutYear:"",itpCenter:""}),setTimeout(()=>{a&&a()},50)}else throw Error("Failed to save lead data")}catch(e){console.error("Save Lead Error:",e),E("Failed to save your data. Please try again.")}},z=async()=>{O(!0),await R()&&(v(["","","",""]),k(90),_(!1)),O(!1)},q=async e=>{let a;e.preventDefault();let r=(a={},p.name.trim()||(a.name="Name is required."),p.email.trim()?/\S+@\S+\.\S+/.test(p.email)||(a.email="Email is invalid."):a.email="Email is required.",p.mobile.trim()?/^[6-9]\d{9}$/.test(p.mobile)||(a.mobile="Enter Valid Mobile Number"):a.mobile="Mobile number is required.",p.city.trim()||(a.city="City is required."),p.education.trim()||(a.education="Education is required."),p.passoutYear.trim()||(a.passoutYear="Passout Year is required."),p.itpCenter.trim()||(a.itpCenter="ITP Center is required."),a);Object.keys(r).length>0?g(r):(b(!0),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Form_Complete",mobile:p.mobile,pageSource:t}),await R(),b(!1))},U=p.mobile?`+91-XXXXX-XX${p.mobile.slice(-3)}`:"";return(0,r.jsx)("div",{className:"flex items-center justify-center w-full",children:(0,r.jsxs)("div",{style:{background:"#F5F7F8"},className:"p-4 sm:p-6 rounded-[5px] shadow-md w-full",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mb-3",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("h2",{className:"text-[16px] leading-[30px] font-semibold text-[#143119]",children:[1===D&&"Register For Free",2===D&&"Verify Mobile Number",3===D&&"Registration Successful!"]}),(0,r.jsxs)("p",{className:"text-[#6B6978] text-[14px] leading-[30px] font-medium",children:[2===D&&`Enter 4-digit OTP sent to ${U}`,3===D&&"Thank you for registering with us!"]})]}),d&&(0,r.jsx)("button",{onClick:()=>{d&&d()},className:"text-[#6B6978] hover:text-[#017D3E] transition-colors","aria-label":"Close",children:(0,r.jsx)(n.A,{className:"w-5 h-5"})})]}),1===D&&(0,r.jsxs)("form",{className:"space-y-4",onSubmit:q,children:[(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:"text",name:"name",id:`${e}name`,value:p.name,onChange:$,className:"w-full border text-black border-[#B8D0C4] rounded-[5px] px-3 pt-5 pb-2 focus:outline-none focus:ring-1 focus:ring-green-600 peer",placeholder:" "}),(0,r.jsx)("label",{htmlFor:`${e}name`,className:"absolute text-[14px] text-gray-500 duration-300 transform -translate-y-3 scale-90 top-2 z-10 origin-[0] left-3 bg-[#F5F7F8] px-1 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-2 peer-placeholder-shown:top-2 peer-focus:scale-90 peer-focus:-translate-y-3 peer-focus:top-2",children:"Enter Full Name"}),h.name&&(0,r.jsx)("p",{className:"text-red-600 text-[13px] mt-1",children:h.name})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:"text",name:"city",id:`${e}city`,value:p.city,onChange:$,className:"w-full border text-black border-[#B8D0C4] rounded-[5px] px-3 pt-5 pb-2 focus:outline-none focus:ring-1 focus:ring-green-600 peer",placeholder:""}),(0,r.jsx)("label",{htmlFor:`${e}city`,className:"absolute text-[14px] text-gray-500 duration-300 transform -translate-y-3 scale-90 top-2 z-10 origin-[0] left-3 bg-[#F5F7F8] px-1 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-2 peer-placeholder-shown:top-2 peer-focus:scale-90 peer-focus:-translate-y-3 peer-focus:top-2",children:"Enter City"}),h.city&&(0,r.jsx)("p",{className:"text-red-600 text-[13px] mt-1",children:h.city})]})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:"text",name:"mobile",id:`${e}mobile`,maxLength:10,value:p.mobile,onChange:$,className:"w-full border text-black border-[#B8D0C4] rounded-[5px] px-3 pt-5 pb-2 focus:outline-none focus:ring-1 focus:ring-green-600 peer",placeholder:" "}),(0,r.jsx)("label",{htmlFor:`${e}mobile`,className:"absolute text-[14px] text-gray-500 duration-300 transform -translate-y-3 scale-90 top-2 z-10 origin-[0] left-3 bg-[#F5F7F8] px-1 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-2 peer-placeholder-shown:top-2 peer-focus:scale-90 peer-focus:-translate-y-3 peer-focus:top-2",children:"Enter Mobile"}),h.mobile&&(0,r.jsx)("p",{className:"text-red-600 text-[13px] mt-1",children:h.mobile})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("input",{type:"email",name:"email",id:`${e}email`,value:p.email,onChange:$,className:"w-full border text-black border-[#B8D0C4] rounded-[5px] px-3 pt-5 pb-2 focus:outline-none focus:ring-1 focus:ring-green-600 peer",placeholder:" "}),(0,r.jsx)("label",{htmlFor:`${e}email`,className:"absolute text-[14px] text-gray-500 duration-300 transform -translate-y-3 scale-90 top-2 z-10 origin-[0] left-3 bg-[#F5F7F8] px-1 peer-placeholder-shown:scale-100 peer-placeholder-shown:translate-y-2 peer-placeholder-shown:top-2 peer-focus:scale-90 peer-focus:-translate-y-3 peer-focus:top-2",children:"Enter Email Address"}),h.email&&(0,r.jsx)("p",{className:"text-red-600 text-[13px] mt-1",children:h.email})]})]}),(0,r.jsx)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:(0,r.jsxs)("div",{className:"relative sm:col-span-2",children:[(0,r.jsxs)("select",{name:"education",id:`${e}education`,value:p.education,onChange:$,className:`w-full border text-[14px] border-[#B8D0C4] rounded-[5px] px-4 py-3 focus:outline-none focus:ring-1 focus:ring-green-600 a
1ppearance-none ${p.education?"text-black":"text-gray-500"}`,style:{background:"#F5F7F8"},children:[(0,r.jsx)("option",{value:"",disabled:!0,children:"Education Qualification"}),[{label:"BTech / BE (CS/IT)",value:"BTech-BE-CS-IT"},{label:"BTech / BE (Mechanical/Electrical/E&T)",value:"BTech-BE-Mech-Elec-EET"},{label:"BCA / MCA",value:"BCA-MCA"},{label:"BSc / MSc (Any Stream)",value:"Bsc-Msc-Any-Stream"},{label:"Other Engineering Degree",value:"Other-Engineering-Degree"},{label:"Graduation (Any Stream)",value:"Graduation-Any-Stream"},{label:"Diploma / Undergraduate / 12th",value:"Diploma-Undergraduate-12th"}].map(e=>(0,r.jsx)("option",{value:e.value,children:e.label},e.value))]}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700",children:(0,r.jsx)("svg",{className:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})})}),h.education&&(0,r.jsx)("p",{className:"text-red-600 text-[13px] mt-1",children:h.education})]})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("select",{name:"passoutYear",id:`${e}passoutYear`,value:p.passoutYear||"",onChange:$,className:`w-full border text-[14px] border-[#B8D0C4] rounded-[5px] px-4 py-3 focus:outline-none focus:ring-1 focus:ring-green-600 appearance-none ${p.passoutYear?"text-black":"text-gray-500"}`,style:{background:"#F5F7F8"},children:[(0,r.jsx)("option",{value:"",disabled:!0,children:"Passout Year"}),["2021","2022","2023","2024","2025","2026","Other"].map(e=>(0,r.jsx)("option",{value:e,children:e},e))]}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700",children:(0,r.jsx)("svg",{className:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})})}),h.passoutYear&&(0,r.jsx)("p",{className:"text-red-600 text-[13px] mt-1",children:h.passoutYear})]}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("select",{name:"itpCenter",id:`${e}itpCenter`,value:p.itpCenter,onChange:$,className:`w-full border text-[14px] border-[#B8D0C4] rounded-[5px] px-4 py-3 focus:outline-none focus:ring-1 focus:ring-green-600 appearance-none ${p.itpCenter?"text-black":"text-gray-500"}`,style:{background:"#F5F7F8"},children:[(0,r.jsx)("option",{value:"",disabled:!0,children:"ITP Center"}),["Shivajinagar, Pune","Akurdi, PCMC"].map((e,t)=>(0,r.jsx)("option",{value:e,children:e},t))]}),(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center px-2 text-gray-700",children:(0,r.jsx)("svg",{className:"fill-current h-4 w-4",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",children:(0,r.jsx)("path",{d:"M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"})})}),h.itpCenter&&(0,r.jsx)("p",{className:"text-red-600 text-[13px] mt-1",children:h.itpCenter})]})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("button",{type:"submit",disabled:f,className:"w-full text-[15px] text-white sm:text-[14px]! cursor-pointer btn font-medium py-3! rounded-[5px] transition-all duration-300 disabled:opacity-50",children:f?(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"}),"Sending OTP..."]}):"Register Now"}),(0,r.jsx)("div",{className:"flex items-center font-medium gap-2 border-red-300 text-red-500 text-[12.5px] mt-2",children:(0,r.jsx)("span",{children:"*Minimum eligibility is graduation. Final-year students may also apply."})})]})]}),2===D&&(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)("div",{className:"flex justify-center space-x-3",children:j.map((e,t)=>(0,r.jsx)("input",{ref:e=>M.current[t]=e,type:"text",value:e,onChange:e=>((e,t)=>{if(!/^\d*$/.test(t))return;let a=[...j];a[e]=t,v(a),E(""),t&&e<3&&M.current[e+1]?.focus()})(t,e.target.value),onKeyDown:e=>{"Backspace"===e.key&&!j[t]&&t>0&&M.current[t-1]?.focus()},className:"w-14 h-14 text-center text-xl font-bold text-black border-2 border-gray-300 rounded-lg focus:border-green-500 focus:outline-none transition-colors",maxLength:1},t))}),S&&(0,r.jsx)("div",{className:"p-3 bg-red-50 border border-red-200 rounded-lg",children:(0,r.jsx)("p",{className:"text-red-600 text-sm text-center",children:S})}),(0,r.jsx)("div",{className:"text-center",children:L?(0,r.jsx)("button",{onClick:z,disabled:B,className:"text-green-600 font-semibold text-sm hover:text-green-700 transition-colors disabled:opacity-50",children:B?"Sending...":"Resend OTP"}):(0,r.jsxs)("p",{className:"text-gray-500 text-sm",children:["Resend OTP in"," ",(0,r.jsx)("span",{className:"font-semibold text-green-600",children:(m=Math.floor(P/60),`${m}:${(P%60).toString().padStart(2,"0")}`)})]})}),(0,r.jsx)("button",{onClick:I,disabled:N||4!==j.join("").length,className:"w-full bg-green-600 text-white font-semibold py-3 rounded-lg hover:bg-green-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:N?(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-white border-t-transparent roun
1ded-full animate-spin"}),"Verifying..."]}):"Verify OTP"}),(0,r.jsx)("button",{onClick:()=>{A(1),v(["","","",""]),E("")},className:"w-full text-gray-600 font-medium hover:text-gray-800 transition-colors",children:"â Back to Form"})]}),3===D&&(0,r.jsxs)("div",{className:"flex flex-col items-center gap-3 text-center",children:[(0,r.jsx)("div",{className:"w-20 h-20 rounded-full bg-green-50 flex items-center justify-center",children:(0,r.jsxs)("svg",{viewBox:"0 0 48 48",width:"48",height:"48","aria-hidden":"true",role:"img",children:[(0,r.jsx)("circle",{cx:"24",cy:"24",r:"20",fill:"none",stroke:"#D1FAE5",strokeWidth:"8"}),(0,r.jsx)("g",{transform:"translate(0,0)",children:(0,r.jsx)("animateTransform",{attributeName:"transform",type:"scale",from:"0.9",to:"1",begin:"0s",dur:"300ms",fill:"freeze"})}),(0,r.jsx)("path",{d:"M14 25 L21 32 L34 18",fill:"none",stroke:"#16A34A",strokeWidth:"4",strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:"40",strokeDashoffset:"40",children:(0,r.jsx)("animate",{attributeName:"stroke-dashoffset",from:"40",to:"0",begin:"0.12s",dur:"320ms",fill:"freeze"})})]})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h4",{className:"text-lg font-semibold text-gray-900",children:"Submission Successful"}),(0,r.jsx)("p",{className:"text-sm text-gray-600",children:"Your form has been submitted successfully."})]})]}),y&&1===D&&(0,r.jsx)("p",{className:"text-green-600 text-center mt-4 font-medium",children:y}),1===D&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"flex items-center rounded-md bg-white px-3 py-2 w-full mt-4 animate-floatText",children:[(0,r.jsxs)("div",{className:"flex -space-x-3 flex-shrink-0",children:[(0,r.jsx)("img",{src:"/logo/student-1.png",alt:"Student 1",className:"w-8 h-8 rounded-full border-2 border-white object-cover"}),(0,r.jsx)("img",{src:"/logo/student-2.png",alt:"Student 2",className:"w-8 h-8 rounded-full border-2 border-white object-cover"}),(0,r.jsx)("img",{src:"/logo/student-3.png",alt:"Student 3",className:"w-8 h-8 rounded-full border-2 border-white object-cover"})]}),(0,r.jsxs)("span",{className:"ml-4 text-[13px] font-bold text-[#133522]",children:[(0,r.jsx)("span",{className:"text-[#017D3E]",children:"14000+"})," Students Have Registered!"]})]}),(0,r.jsxs)("div",{className:"text-black text-center mt-2 font-inter italic text-[13px] leading-[161%]",children:["Limited Seats."," ",(0,r.jsx)("span",{className:"font-bold not-italic",children:"Register now."})]})]})]})})}}}]);
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.