(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9335],{81382:function(e,t,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return s(34387)}])},34387:function(e,t,s){"use strict";s.r(t);var a=s(85893),i=s(67294),n=s(66242),r=s(44267),l=s(15861),o=s(69417),c=s(86886),u=s(85773),d=s(58236),m=s(50657),x=s(37645),h=s(93946),g=s(6514),p=s(5616),b=s(31425),f=s(58703),j=s(21737),y=s(71877),v=s(52091),Z=s(36977);let N=[{title:"Contact Sales & Partnerships",description:"Interested in our solutions? Our sales Conat is here to help you find the perfect fit for your needs.",icon:(0,a.jsx)(v.KKr,{size:48}),buttonText:"Email Sales",category:"Contact Sales & Partnerships",dialogTitle:"Contact Sales & Partnerships"},{title:"Contact Support",description:"Need technical assistance? Our support team is available to help resolve any issues you encounter.",icon:(0,a.jsx)(v.F1m,{size:48}),buttonText:"Get Support",category:"Contact Support",dialogTitle:"Contact Support"},{title:"Q&A",description:"Have questions? Check our frequently asked questions or ask our community for help.",icon:(0,a.jsx)(v.THo,{size:48}),buttonText:"View FAQs",category:"Q&A",dialogTitle:"Frequently Asked Questions"},{title:"Suggestions",description:"We value your feedback! Share your ideas and suggestions to help us improve our services.",icon:(0,a.jsx)(v.iih,{size:48}),buttonText:"Share Ideas",category:"Share your Suggestions",dialogTitle:"Share your Suggestion"}],C=e=>{let{title:t,description:s,icon:i,buttonText:c,onClick:u}=e;return(0,a.jsx)(n.Z,{className:"bg-gray-200 h-full hover:shadow-lg transition-shadow duration-300 rounded-xl",children:(0,a.jsxs)(r.Z,{className:"flex flex-col items-center text-center p-6 h-full",children:[(0,a.jsx)("div",{className:"mb-4 text-blue-500",children:i}),(0,a.jsx)(l.Z,{variant:"h4",className:"mb-3 font-bold",children:t}),(0,a.jsx)(l.Z,{variant:"body1",className:"text-lg mb-6 flex-grow",children:s}),(0,a.jsx)(o.Z,{variant:"contained",className:"text-lg bg-blue-500 hover:bg-blue-700 rounded-md normal-case transform hover:scale-95 transition-all duration-200 ease-in-out",onClick:u,children:c})]})})},S=e=>{let{category:t,onClose:s,setSnackbarOpen:i}=e,n=async e=>{e.preventDefault();let s=new FormData(e.currentTarget),a={firstName:s.get("firstName"),lastName:s.get("lastName"),email:s.get("email"),title:s.get("title"),description:s.get("description"),category:t};try{console.log("Form submitted:",a),i(!0)}catch(e){alert("There was an error sending your message. Please try again.")}};return(0,a.jsx)("form",{id:"contact-form",onSubmit:n,className:"space-y-4",children:(0,a.jsxs)(c.ZP,{container:!0,spacing:3,children:[(0,a.jsx)(c.ZP,{item:!0,xs:12,sm:6,children:(0,a.jsx)(u.Z,{required:!0,fullWidth:!0,name:"firstName",label:"First Name",variant:"outlined"})}),(0,a.jsx)(c.ZP,{item:!0,xs:12,sm:6,children:(0,a.jsx)(u.Z,{required:!0,fullWidth:!0,name:"lastName",label:"Last Name",variant:"outlined",className:"rounded-xl"})}),(0,a.jsx)(c.ZP,{item:!0,xs:12,children:(0,a.jsx)(u.Z,{required:!0,fullWidth:!0,name:"email",label:"Email",type:"email",variant:"outlined"})}),(0,a.jsx)(c.ZP,{item:!0,xs:12,children:(0,a.jsx)(u.Z,{required:!0,fullWidth:!0,name:"object",label:"Object",variant:"outlined"})}),(0,a.jsx)(c.ZP,{item:!0,xs:12,children:(0,a.jsx)(u.Z,{required:!0,fullWidth:!0,name:"description",label:"Description",variant:"outlined",multiline:!0,rows:5})})]})})};t.default=()=>{var e;let[t,s]=(0,i.useState)(!1),[n,r]=(0,i.useState)(""),[u,v]=(0,i.useState)(!1),w=e=>{s(!0),r(e)},k=()=>{s(!1),r("")},P=e=>{"clickaway"!==e&&v(!1)};return(0,a.jsxs)(y.Z,{children:[(0,a.jsxs)(d.Z,{maxWidth:"lg",className:"py-12",children:[(0,a.jsx)(l.Z,{variant:"h1",component:"h1",className:"mb-12 font-serif font-extrabold text-center text-4xl md:text-5xl lg:text-7xl",children:"Contact Us"}),(0,a.jsx)(l.Z,{variant:"body1",className:"text-xl text-center mb-12 max-w-2xl mx-auto",children:"We're here to help! Choose the most appropriate option below to get in touch with our team."}),(0,a.jsx)(c.ZP,{container:!0,spacing:4,children:N.map((e,t)=>(0,a.jsx)(c.ZP,{item:!0,xs:12,sm:6,md:6,children:(0,a.jsx)(C,{...e,onClick:"Q&A"===e.category?()=>console.log("Q&A clicked"):()=>w(e.category)})},t))}),(0,a.jsx)(l.Z,{variant:"body2",className:"text-xl text-center mt-12",children:"Our team typically responds within 24 hours during business days."})]}),(0,a.jsxs)(m.Z,{maxWidth:"md",fullWidth:!0,open:t,onClose:k,children:[(0,a.jsxs)(x.Z,{className:"flex justify-evenly m-1 md:m-5 px-32 text-3xl text-bold",children:[null===(e=N.find(e=>e.category===n))||void 0===e?void 0:e.icon," ",n,(0,a.jsx)(h.Z,{"aria-label":"close",onClick:k,sx:{position:"absolute",right:8,top:8},children:(0,a.jsx)(Z.Ivx,{})})]}),(0,a.jsx)(g.Z,{children:(0,a.jsx)(p.Z,{className:"mt-4",children:(0,a.jsx)(S,{category:n,onClose:k,setSnackbarOpen:v})})}),(0,a.jsxs)(b.Z,{className:"mb-4 mr-4",children:[(0,a.jsx)(o.Z,{onClick:k,className:"text-gray-700 hover:bg-blue-100 transform hover:scale-95 transition-all duration-200 ease-in-out",children:"Cancel"}),(0,a.jsx)(o.Z,{type:"submit",form:"contact-form",variant:"contained",className:"bg-blue-500 hover:bg-blue-700 transform hover:scale-95 transition-all duration-200 ease-in-out",children:"Send Message"})]})]}),(0,a.jsx)(f.Z,{open:u,autoHideDuration:6e3,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"center"},children:(0,a.jsx)(j.Z,{variant:"filled",severity:"success",onClose:P,sx:{width:"100%"},children:"Your message has been sent successfully! We&aposll get back to you soon."})})]})}}},function(e){e.O(0,[4738,4838,3365,6660,1698,5262,8703,3963,7353,7404,7721,5773,7610,5369,3203,1877,2888,9774,179],function(){return e(e.s=81382)}),_N_E=e.O()}]);