1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9489],{9489:function(e,t,a){a.r(t),a.d(t,{Contacts:function(){return Contacts}});var s=a(5893),l=a(7294),m=a(5675),r=a.n(m),n=a(7536),i=a(4360),x=a(1163),o=a(9669),d=a.n(o);function Contacts(e){let[t,a]=(0,l.useState)(""),[m,o]=(0,l.useState)(!0),[c,p]=(0,l.useState)(e),[u,h]=(0,l.useState)(!1);(0,x.useRouter)();let{handleSubmit:b,register:g,setValue:N,trigger:j,formState:{errors:f}}=(0,n.cI)({mode:"onChange"}),onSubmitFn=async e=>{o(!0),h(!0);let t=e.message.trim(),s=await fetch("".concat(i.Uj,"/api/translate"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:t})}),l=await s.json(),m="";m=s.ok?l.translatedText:t;let r={name:e.name.trim(),mobileNumber:e.mobileNumber,email:e.email,message:m,companyName:e.companyName,designationOrTeam:e.designationOrTeam,numberOfEmployees:e.numberOfEmployees,solutionRequired:e.solutionRequired};d().post("".concat(i.fw,"/omniweb/createWebsiteContactUs"),r).then(e=>{h(!1),"SUC4001"===e.data.status?o(!1):(a(e.data.message),o(!0))})},[v,w]=(0,l.useState)(""),[y,_]=(0,l.useState)(""),handleSelectChange=async e=>{let t=e.target.value;w(t),N("numberOfEmployees",t),await j("numberOfEmployees")},handleSelectChange2=async e=>{let t=e.target.value;_(t),N("solutionRequired",t),await j("solutionRequired")};return m?(0,s.jsx)("div",{className:"p-0",children:(0,s.jsxs)("form",{className:"w-full space-y-6",onSubmit:b(onSubmitFn),children:[(0,s.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-12 gap-2 items-center",children:[(0,s.jsxs)("div",{className:"md:col-span-12",children:[(0,s.jsx)("label",{className:"block text-white text-[11px] md:text-[10px] lg:text-[15px] font-[400] m-[0_0_0.4em_0]",htmlFor:"name",children:"Full Name*"}),(0,s.jsx)("input",{...g("name",{required:!0,minLength:2,maxLength:100,pattern:/^[A-Za-z ]+$/i}),className:"w-full rounded-[60px] text-white border border-[rgba(255,255,255,0.27)] bg-[rgba(255,255,255,0.05)] p-2 md:p-[0.3em_1em] lg:p-[0.4em_1em] text-[11px] md:text-[13px] lg:text-[15px] shadow-custom-up hover:focus-none"}),f.name&&(0,s.jsx)("p",{className:"text-primary-red text-xs mt-1",children:"pattern"===f.name.type?"Please enter only characters":"Full Name is Required"})]}),(0,s.jsxs)("div",{className:"md:col-span-12",children:[(0,s.jsx)("label",{className:"block text-white text-[11px] md:text-[10px] lg:text-[15px] font-[400] m-[0_0_0.4em_0]",htmlFor:"mobileNumber",children:"Phone Number *"}),(0,s.jsx)("input",{...g("mobileNumber",{required:!0,minLength:10,maxLength:10,pattern:/^[6-9]\d{9}$/i}),className:"w-full rounded-[60px] text-white border border-[rgba(255,255,255,0.27)] bg-[rgba(255,255,255,0.05)] p-2 md:p-[0.3em_1em] lg:p-[0.4em_1em] text-[11px] md:text-[13px] lg:text-[15px] shadow-custom-up hover:focus-none"}),f.mobileNumber&&(0,s.jsx)("p",{className:"text-primary-red text-xs mt-1",children:"pattern"===f.mobileNumber.type?"Please enter a valid phone number":"Phone Number is Required"})]}),(0,s.jsxs)("div",{className:"md:col-span-12",children:[(0,s.jsx)("label",{className:"block text-white text-[11px] md:text-[10px] lg:text-[15px] font-[400] m-[0_0_0.4em_0]",htmlFor:"companyName",children:"Company Name *"}),(0,s.jsx)("input",{...g("companyName",{required:!0,minLength:2,maxLength:100,pattern:/^[A-Za-z ]+$/i}),className:"w-full rounded-[60px] text-white border border-[rgba(255,255,255,0.27)] bg-[rgba(255,255,255,0.05)] p-2 md:p-[0.3em_1em] lg:p-[0.4em_1em] text-[11px] md:text-[13px] lg:text-[15px] shadow-custom-up hover:focus-none"}),f.companyName&&(0,s.jsx)("p",{className:"text-primary-red text-xs mt-1",children:"pattern"===f.companyName.type?"Invalid company name":"Company Name is Required"})]}),(0,s.jsxs)("div",{className:"md:col-span-12",children:[(0,s.jsx)("label",{className:"block text-white text-[11px] md:text-[10px] lg:text-[15px] font-[400] m-[0_0_0.4em_0]",htmlFor:"email",children:"Work Email*"}),(0,s.jsx)("input",{...g("email",{required:!0,pattern:/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$/i}),className:"w-full rounded-[60px] text-white border border-[rgba(255,255,255,0.27)] bg-[rgba(255,255,255,0.05)] p-2 md:p-[0.3em_1em] lg:p-[0.4em_1em] text-[11px] md:text-[13px] lg:text-[15px] shadow-custom-up hover:focus-none"}),f.email&&(0,s.jsx)("p",{className:"text-primary-red text-xs mt-1",children:"pattern"===f.email.type?"Please enter a valid email address":"Email ID is Required"})]}),(0,s.jsxs)("div",{className:"md:col-span-12",children:[(0,s.jsx)("label",{className:"block text-white text-[11px] md:text-[10px] lg:text-[15px] font-[400] m-[0_0_0.4em_0]",htmlFor:"designationOrTeam",children:" Your Designation/Team *"}),(0,s.jsx)("input",{...g("designationOrTeam",{required:!0,minLength:2,maxLength:100,pattern:/^[A-Za-z ]+$/i}),className:"w-full rounded-[60px] text-white border border-[rgba(255,255,255,0.27)] bg-[rgba(255,255,255,0.05)] p-2 md:p-[0.3em_1em] lg:p-[0.4em_1em] text-[11px] md:text-[13px] lg:text-[15px] shadow-custom-up hover:focus-none"}),f.designationOrTeam&&(0,s.jsx)("p",{className:"text-primary-red text-xs mt-1",children:"pattern"===f.designationOrTeam.type?"Invalid designation/team":"Designation/Team is Required"})]}),(0,s.jsxs)("div",{className:"md:col-span-6",children:[(0,s.jsx)("label",{className:"block text-white text-[11px] md:text-[10px] lg:text-[15px] font-[400] m-[0_0_0.4em_0]",htmlFor:"numberOfEmployees",children:"No. of Employees *"}),(0,s.jsxs)("select",{...g("numberOfEmployees",{required:!0}
1),value:v,onChange:handleSelectChange,className:"w-full rounded-[60px] text-white border border-[rgba(255,255,255,0.27)] bg-[rgba(255,255,255,0.05)] p-2 md:p-[0.3em_1em] lg:p-[0.4em_1em] text-[11px] md:text-[13px] lg:text-[15px] shadow-custom-up hover:focus-none ".concat(""===v?"text-gray-400":"text-black"),children:[(0,s.jsx)("option",{className:"text-black",value:"",hidden:!0}),(0,s.jsx)("option",{className:"text-black",value:"0-10",children:"0-10"}),(0,s.jsx)("option",{className:"text-black",value:"11-25",children:"11-25"}),(0,s.jsx)("option",{className:"text-black",value:"25-100",children:"25-100"}),(0,s.jsx)("option",{className:"text-black",value:"100-500",children:"100-500"}),(0,s.jsx)("option",{className:"text-black",value:"500- 1000",children:"500- 1000"}),(0,s.jsx)("option",{className:"text-black",value:"1000+",children:"1000+"})]}),f.numberOfEmployees&&(0,s.jsx)("p",{className:"text-primary-red text-xs mt-1 ",children:"This field is required"})]}),(0,s.jsxs)("div",{className:"md:col-span-6",children:[(0,s.jsx)("label",{className:"block text-white text-[11px] md:text-[10px] lg:text-[15px] font-[400] m-[0_0_0.4em_0]",htmlFor:"solutionRequired",children:"Solution Required *"}),(0,s.jsxs)("select",{...g("solutionRequired",{required:!0}),value:y,onChange:handleSelectChange2,className:"w-full rounded-[60px] text-white border border-[rgba(255,255,255,0.27)] bg-[rgba(255,255,255,0.05)] p-2 md:p-[0.3em_1em] lg:p-[0.4em_1em] text-[11px] md:text-[13px] lg:text-[15px] shadow-custom-up hover:focus-none ".concat(""===y?"text-gray-400":"text-black"),children:[(0,s.jsx)("option",{className:"text-black",value:"",hidden:!0}),(0,s.jsx)("option",{className:"text-black",value:"Expense Management",children:"Expense Management"}),(0,s.jsx)("option",{className:"text-black",value:"UPI For Business",children:"UPI For Business"}),(0,s.jsx)("option",{className:"text-black",value:"Corporate Cards",children:"Corporate Cards"}),(0,s.jsx)("option",{className:"text-black",value:"Petty Cash Management",children:"Petty Cash Management"}),(0,s.jsx)("option",{className:"text-black",value:"Gift Cards",children:"Gift Cards"}),(0,s.jsx)("option",{className:"text-black",value:"Wearables",children:"Wearables"}),(0,s.jsx)("option",{className:"text-black",value:"Transit Cards",children:"Transit Cards"})]}),f.solutionRequired&&(0,s.jsx)("p",{className:"text-primary-red text-xs mt-1",children:"This field is required"})]}),(0,s.jsxs)("div",{className:"md:col-span-12",children:[(0,s.jsx)("label",{className:"block text-white text-[11px] md:text-[10px] lg:text-[15px] font-[400] m-[0_0_0.4em_0]",htmlFor:"message",children:"Message *"}),(0,s.jsx)("textarea",{...g("message",{required:!0,maxLength:500}),className:"w-full rounded-[60px] text-white border border-[rgba(255,255,255,0.27)] bg-[rgba(255,255,255,0.05)] p-2 md:p-[0.3em_1em] lg:p-[0.4em_1em] text-[11px] md:text-[13px] lg:text-[15px] shadow-custom-up hover:focus-none h-[42px] md:h-[40px]"}),f.message&&(0,s.jsx)("p",{className:"text-primary-red text-xs mt-1",children:"Message is required and max 500 characters"})]})]}),t&&(0,s.jsx)("div",{className:"text-red-600 mt-2",children:t}),(0,s.jsx)("div",{className:"text-center",children:(0,s.jsx)("button",{type:"submit",className:"w-full omni-button p-[0.5em_1em]",disabled:u,children:u?(0,s.jsx)("div",{className:"flex justify-center items-center",children:(0,s.jsx)("div",{className:"animate-spin-slow w-6 h-6 border-2 border-white rounded-full border-t-transparent"})}):"Submit"})})]})}):(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center p-[2em_0]",children:[(0,s.jsx)("div",{className:"p-0",children:(0,s.jsx)(r(),{loading:"lazy",className:"w-[150px] h-[150px] md:h-[150px] object-contain mx-auto",width:0,height:0,src:"/assets/image/success_icon.svg",alt:"img",sizes:"100vw"})}),(0,s.jsx)("p",{className:"text-[20px] text-white text-center",children:"Weâve got your message! Our team will c
1ontact you soon."})]})}}}]);
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.