1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[939],{2904:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/Contact",function(){return s(9139)}])},9139:function(e,t,s){"use strict";s.r(t),s.d(t,{default:function(){return F}});var a=s(5893),l=s(7294),r=s(5346),i=s(303),o=s(1487);class n{constructor(e=0,t="Network Error"){this.status=e,this.text=t}}let m={origin:"https://api.emailjs.com",blockHeadless:!1,storageProvider:(()=>{if("undefined"!=typeof localStorage)return{get:e=>Promise.resolve(localStorage.getItem(e)),set:(e,t)=>Promise.resolve(localStorage.setItem(e,t)),remove:e=>Promise.resolve(localStorage.removeItem(e))}})()},c=e=>e?"string"==typeof e?{publicKey:e}:"[object Object]"===e.toString()?e:{}:{},h=async(e,t,s={})=>{let a=await fetch(m.origin+e,{method:"POST",headers:s,body:t}),l=await a.text(),r=new n(a.status,l);if(a.ok)return r;throw r},d=(e,t,s)=>{if(!e||"string"!=typeof e)throw"The public key is required. Visit https://dashboard.emailjs.com/admin/account";if(!t||"string"!=typeof t)throw"The service ID is required. Visit https://dashboard.emailjs.com/admin";if(!s||"string"!=typeof s)throw"The template ID is required. Visit https://dashboard.emailjs.com/admin/templates"},x=e=>e.webdriver||!e.languages||0===e.languages.length,u=()=>new n(451,"Unavailable For Headless Browser"),f=(e,t)=>{if(!Array.isArray(e))throw"The BlockList list has to be an array";if("string"!=typeof t)throw"The BlockList watchVariable has to be a string"},p=e=>!e.list?.length||!e.watchVariable,w=(e,t)=>e instanceof FormData?e.get(t):e[t],g=(e,t)=>{if(p(e))return!1;f(e.list,e.watchVariable);let s=w(t,e.watchVariable);return"string"==typeof s&&e.list.includes(s)},b=()=>new n(403,"Forbidden"),N=(e,t)=>{if("number"!=typeof e||e<0)throw"The LimitRate throttle has to be a positive number";if(t&&"string"!=typeof t)throw"The LimitRate ID has to be a string"},j=async(e,t,s)=>{let a=Number(await s.get(e)||0);return t-Date.now()+a},v=async(e,t,s)=>{if(!t.throttle||!s)return!1;N(t.throttle,t.id);let a=t.id||e;return await j(a,t.throttle,s)>0||(await s.set(a,Date.now().toString()),!1)},y=()=>new n(429,"Too Many Requests"),k=e=>{if(!e||"FORM"!==e.nodeName)throw"The 3rd parameter is expected to be the HTML form element or the style selector of the form"},_=e=>"string"==typeof e?document.querySelector(e):e;var E={sendForm:async(e,t,s,a)=>{let l=c(a),r=l.publicKey||m.publicKey,i=l.blockHeadless||m.blockHeadless,o=m.storageProvider||l.storageProvider,n={...m.blockList,...l.blockList},f={...m.limitRate,...l.limitRate};if(i&&x(navigator))return Promise.reject(u());let p=_(s);d(r,e,t),k(p);let w=new FormData(p);return g(n,w)?Promise.reject(b()):await v(location.pathname,f,o)?Promise.reject(y()):(w.append("lib_version","4.3.3"),w.append("service_id",e),w.append("template_id",t),w.append("user_id",r),h("/api/v1.0/email/send-form",w))}},T=s(5675),S=s.n(T),F=()=>{let e=(0,l.useRef)(),[t,s]=(0,l.useState)({firstName:"",lastName:"",email:"",message:"",phone:""}),[n,m]=(0,l.useState)(!1),[c,h]=(0,l.useState)(!1),[d,x]=(0,l.useState)({}),u=e=>{let{name:t,value:a}=e.target;s(e=>({...e,[t]:a}))},f=()=>{let e={};return t.firstName||(e.firstName="First name is required"),t.lastName||(e.lastName="Last name is required"),t.email?/\S+@\S+\.\S+/.test(t.email)||(e.email="Email is invalid"):e.email="Email is required",t.phone?/^\d{10}$/.test(t.phone)||(e.phone="Phone number is invalid"):e.phone="Phone number is required",t.message||(e.message="Message is required"),x(e),0===Object.keys(e).length};return(0,a.jsxs)("div",{className:"bg-black flex flex-col items-center",children:[(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row w-full",children:[(0,a.jsx)("div",{className:"w-full sm:w-1/2",children:(0,a.jsx)(S(),{src:"https://res.cloudinary.com/dfvf4xowl/image/upload/v1750748440/treeup1_mqlfmq_pwy9ad.png",width:1200,height:300,alt:"image",className:"object-cover w-full h-auto"})}),(0,a.jsx)("div",{className:"w-full sm:w-1/2",children:(0,a.jsx)(S(),{src:"https://res.cloudinary.com/dfvf4xowl/image/upload/v1750748441/treeup2_ejoglk_gsv5ew.png",width:1e3,height:300,alt:"image",className:"object-cover w-full h-auto"})})]}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row w-full px-4 sm:px-8 py-8",children:[(0,a.jsx)("div",{className:"w-full sm:w-5/12 sm:pl-2 sm:pr-6",children:(0,a.jsx)(S(),{src:"https://res.cloudinary.com/dfvf4xowl/image/upload/v1750748533/contactus_bzqd50_lcvyyh.png",width:500,height:480,alt:"image",className:"object-cover w-full h-auto"})}
1),(0,a.jsxs)("div",{className:"w-full sm:w-7/12 flex flex-col sm:pl-6 mt-6 sm:mt-0",children:[(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsx)("div",{className:"font-antonio mt-4",children:(0,a.jsx)("p",{className:"text-white font-bold text-3xl sm:text-5xl lg:text-8xl",children:"CONNECT TO US"})}),(0,a.jsx)("div",{className:"font-antonio font-thin",children:(0,a.jsx)("p",{className:"text-white text-xl sm:text-3xl lg:text-6xl",children:"TO KNOW MORE"})})]}),(0,a.jsxs)("div",{className:"mt-4 sm:mt-2",children:[(0,a.jsxs)("form",{ref:e,className:"rounded-md py-2 shadow-lg",onSubmit:t=>{t.preventDefault(),f()&&(h(!0),E.sendForm("service_m9gwxo8","template_5f61c54",e.current,"i67iMhzyNkDsLMoiH").then(e=>{h(!1),alert("Thank you. I will get back to you as soon as possible."),s({firstName:"",lastName:"",email:"",message:"",phone:""}),m(!0)},e=>{h(!1),alert("Ahh, something went wrong. Please try again."),console.log(e.text)}))},children:[(0,a.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("label",{htmlFor:"firstName",className:"mb-2 font-medium text-white",children:"FIRST NAME"}),(0,a.jsx)("input",{type:"text",id:"firstName",name:"firstName",value:t.firstName,onChange:u,className:"w-full border-b-2 text-lg border-gray-400 focus:border-blue-500 outline-none bg-black text-white",placeholder:"Enter your First Name"}),d.firstName&&(0,a.jsx)("span",{className:"text-red-500",children:d.firstName})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("label",{htmlFor:"lastName",className:"mb-2 font-medium text-white",children:"LAST NAME"}),(0,a.jsx)("input",{type:"text",id:"lastName",name:"lastName",value:t.lastName,onChange:u,className:"w-full border-b-2 text-lg border-gray-400 focus:border-blue-500 outline-none bg-black text-white",placeholder:"Enter your Last Name"}),d.lastName&&(0,a.jsx)("span",{className:"text-red-500",children:d.lastName})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("label",{htmlFor:"email",className:"mb-2 font-medium text-white",children:"EMAIL"}),(0,a.jsx)("input",{type:"text",id:"email",name:"email",value:t.email,onChange:u,className:"w-full border-b-2 text-lg border-gray-400 focus:border-blue-500 outline-none bg-black text-white",placeholder:"Enter your E-mail ID"}),d.email&&(0,a.jsx)("span",{className:"text-red-500",children:d.email})]}),(0,a.jsxs)("div",{className:"flex flex-col",children:[(0,a.jsx)("label",{htmlFor:"phone",className:"mb-2 font-medium text-white",children:"PHONE"}),(0,a.jsx)("input",{type:"text",id:"phone",name:"phone",value:t.phone,onChange:u,className:"w-full border-b-2 text-lg border-gray-400 focus:border-blue-500 outline-none bg-black text-white",placeholder:"Enter your Phone Number"}),d.phone&&(0,a.jsx)("span",{className:"text-red-500",children:d.phone})]})]}),(0,a.jsxs)("div",{className:"flex flex-col mt-4",children:[(0,a.jsx)("label",{htmlFor:"message",className:"text-white text-lg sm:text-2xl",children:"Leave a message :"}),(0,a.jsx)("textarea",{id:"message",name:"message",value:t.message,onChange:u,cols:"30",rows:"6",className:"mt-2 w-full p-2 rounded-xl text-base border-2 bg-black text-white",placeholder:"Your message"}),d.message&&(0,a.jsx)("span",{className:"text-red-500",children:d.message})]}),(0,a.jsxs)("div",{className:"flex space-x-4 mt-4",children:[(0,a.jsx)("button",{type:"submit",className:"rounded-3xl border-white border-2 text-sm sm:text-lg w-24 sm:w-32 h-10 text-white hover:bg-[#FFBC58]",children:c?"Loading...":"REGISTER"}),(0,a.jsx)("button",{type:"button",onClick:()=>{s({firstName:"",lastName:"",email:"",message:"",phone:""}),m(!1),x({})},className:"rounded-3xl border-white border-2 text-sm sm:text-lg w-24 sm:w-32 h-10 text-white hover:bg-[#FFBC58]",children:"RESET"})]})]}),n&&(0,a.jsx)("p",{className:"text-green-500 mt-4",children:"Thank you for your message!"})]}),(0,a.jsxs)("div",{className:"flex space-x-4 mt-4",children:[(0,a.jsx)("a",{href:"https://www.instagram.com/expresso_nitp/",target:"blank",children:(0,a.jsx)(r.Zf_,{className:"text-white w-6 h-6 md:w-8 md:h-8"})}),(0,a.jsx)("a",{href:"https://www.facebook.com/expresso.nitp/",target:"blank",children:(0,a.jsx)(r.Am9,{className:"text-white w-6 h-6 md:w-8 md:h-8"})}),(0,a.jsx)("a",{href:"https://www.linkedin.com/company/expressonitp/",target:"blank",children:(0,a.jsx)(r.ltd,{className:"text-white w-6 h-6 md:w-8 md:h-8"})}),(0,a.jsx)("a",{href:"mailto:[email protected]",target:"blank",children:(0,a.jsx)(i.GX9,{className:"text-white w-6 h-6 md:w-8 md:h-8"})}),(0,a.jsx)("a",{href:"https://maps.app.goo.gl/ochD6thH9G93RZJK8",target:"blank",children:(0,a.jsx)(o.OqH,{className:"text-white w-6 h-6 md:w-8 md:h-8"})})]})]})]}),(0,a.jsx)("div",{className:"w-full bg-black",children:(0,a.jsx)("div",{className:"w-full",children:(0,a.jsx)(S(),{src:"https://res.cloudinary.com/dfvf4xowl/image/upload/v1750748437/treebottom_ghchwd_uy3int.png",width:1200,height:140,alt:"image",className:"object-cover w-full h-auto"})})})]})}}},function(e){e.O(0,[888,774,179],function(){return e(e.s=2904)}),_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.