(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2868],{51673:(e,a,t)=>{"use strict";t.r(a),t.d(a,{default:()=>N,dynamic:()=>g});var s=t(95155),r=t(12115),n=t(6874),c=t.n(n),i=t(35169),d=t(67624),l=t(28883),o=t(19420),m=t(4516),x=t(22915),h=t(18533),u=t(12486),y=t(42786),p=t(46671);let g="force-dynamic";function N(){let[e,a]=(0,r.useState)({firstName:"",lastName:"",email:"",company:"",message:""}),[t,n]=(0,r.useState)({}),[p,g]=(0,r.useState)(!1),[N,f]=(0,r.useState)("idle"),[j,b]=(0,r.useState)(""),[k,v]=(0,r.useState)({}),[w,C]=(0,r.useState)(!0);(0,r.useEffect)(()=>{(async()=>{try{let e=await fetch("/api/content/footer");if(e.ok){let a=await e.json();v({contactEmail:a.contactEmail,contactPhone:a.contactPhone,address:a.address,googleMapsUrl:a.googleMapsUrl})}else console.error("Failed to fetch contact information"),v({contactEmail:"contact@orgpyur.com",contactPhone:"+1 (416) 555-1234",address:"185 The West Mall, Suite 905, Etobicoke, Ontario, Canada, M9C5L5"})}catch(e){console.error("Error fetching contact information:",e),v({contactEmail:"contact@orgpyur.com",contactPhone:"+1 (416) 555-1234",address:"185 The West Mall, Suite 905, Etobicoke, Ontario, Canada, M9C5L5"})}finally{C(!1)}})()},[]);let E=e=>{let{name:s,value:r}=e.target;a(e=>({...e,[s]:r})),t[s]&&n(e=>({...e,[s]:void 0}))},P=async t=>{if(t.preventDefault(),(()=>{let a={};return e.firstName.trim()||(a.firstName="First name is required"),e.lastName.trim()||(a.lastName="Last name is required"),e.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e.email)||(a.email="Please enter a valid email address"):a.email="Email is required",e.message.trim()||(a.message="Message is required"),n(a),0===Object.keys(a).length})()){g(!0),f("idle"),b("");try{let t=await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}),s=await t.json();t.ok?(f("success"),b(s.message),a({firstName:"",lastName:"",email:"",company:"",message:""})):(f("error"),b(s.error||"Failed to submit form. Please try again."))}catch(e){f("error"),b("Network error. Please check your connection and try again.")}finally{g(!1)}}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(y.default,{pageTitle:"Contact Us - DataGuard AI Platform | ORGPYUR Technologies Inc.",pageDescription:"Get in touch with our team to learn more about DataGuard AI and how we can help your organization with data governance and compliance."}),(0,s.jsx)("div",{className:"min-h-screen bg-white dark:bg-secondary-900",children:(0,s.jsx)("div",{className:"container-custom py-16",children:(0,s.jsxs)("div",{className:"max-w-4xl mx-auto",children:[(0,s.jsxs)("div",{className:"text-center mb-16",children:[(0,s.jsxs)(c(),{href:"/",className:"inline-flex items-center text-primary-500 hover:text-primary-600 mb-8 transition-colors",children:[(0,s.jsx)(i.A,{className:"h-4 w-4 mr-2"}),"Back to Home"]}),(0,s.jsx)("h1",{className:"text-4xl md:text-5xl font-bold text-secondary-900 dark:text-white mb-4",children:"Contact Us"}),(0,s.jsx)("p",{className:"text-xl text-secondary-600 dark:text-secondary-300 max-w-2xl mx-auto",children:"Get in touch with our team to learn more about DataGuard AI and how we can help your organization."})]}),(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-12 mb-16",children:[(0,s.jsxs)("div",{className:"space-y-8",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-secondary-900 dark:text-white mb-6",children:"Get in Touch"}),(0,s.jsx)("p",{className:"text-secondary-600 dark:text-secondary-300 mb-8",children:"Ready to transform your data governance? Our team is here to help you get started with DataGuard AI."})]}),w?(0,s.jsx)("div",{className:"space-y-6",children:(0,s.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,s.jsx)("div",{className:"w-12 h-12 bg-primary-100 dark:bg-primary-900 rounded-lg flex items-center justify-center flex-shrink-0",children:(0,s.jsx)(d.A,{className:"h-6 w-6 text-primary-500 animate-spin"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-secondary-900 dark:text-white mb-1",children:"Loading..."}),(0,s.jsx)("p",{className:"text-secondary-600 dark:text-secondary-300",children:"Loading contact information..."})]})]})}):(0,s.jsxs)("div",{className:"space-y-6",children:[k.contactEmail&&(0,s.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,s.jsx)("div",{className:"w-12 h-12 bg-primary-100 dark:bg-primary-900 rounded-lg flex items-center justify-center flex-shrink-0",children:(0,s.jsx)(l.A,{className:"h-6 w-6 text-primary-500"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-secondary-900 dark:text-white mb-1",children:"Email"}),(0,s.jsx)("a",{href:"mailto:".concat(k.contactEmail),className:"text-secondary-600 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 transition-colors",children:k.contactEmail})]})]}),k.contactPhone&&(0,s.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,s.jsx)("div",{className:"w-12 h-12 bg-primary-100 dark:bg-primary-900 rounded-lg flex items-center justify-center flex-shrink-0",children:(0,s.jsx)(o.A,{className:"h-6 w-6 text-primary-500"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-secondary-900 dark:text-white mb-1",children:"Phone"}),(0,s.jsx)("a",{href:"tel:".concat(k.contactPhone),className:"text-secondary-600 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 transition-colors",children:k.contactPhone})]})]}),k.address&&(0,s.jsxs)("div",{className:"flex items-start space-x-4",children:[(0,s.jsx)("div",{className:"w-12 h-12 bg-primary-100 dark:bg-primary-900 rounded-lg flex items-center justify-center flex-shrink-0",children:(0,s.jsx)(m.A,{className:"h-6 w-6 text-primary-500"})}),(0,s.jsxs)("div",{children:[(0,s.jsx)("h3",{className:"font-semibold text-secondary-900 dark:text-white mb-1",children:"Address"}),(0,s.jsx)("a",{href:k.googleMapsUrl||"https://maps.google.com/?q=".concat(encodeURIComponent(k.address)),target:"_blank",rel:"noopener noreferrer",className:"text-secondary-600 dark:text-secondary-300 hover:text-primary-600 dark:hover:text-primary-400 transition-colors",children:k.address})]})]})]})]}),(0,s.jsxs)("div",{className:"bg-secondary-50 dark:bg-secondary-800 rounded-xl p-8",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-secondary-900 dark:text-white mb-6",children:"Send us a Message"}),"success"===N&&(0,s.jsx)("div",{className:"mb-6 p-4 bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(x.A,{className:"h-5 w-5 text-green-600 dark:text-green-400 mr-2"}),(0,s.jsx)("p",{className:"text-green-800 dark:text-green-200",children:j})]})}),"error"===N&&(0,s.jsx)("div",{className:"mb-6 p-4 bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 rounded-lg",children:(0,s.jsxs)("div",{className:"flex items-center",children:[(0,s.jsx)(h.A,{className:"h-5 w-5 text-red-600 dark:text-red-400 mr-2"}),(0,s.jsx)("p",{className:"text-red-800 dark:text-red-200",children:j})]})}),(0,s.jsxs)("form",{onSubmit:P,className:"space-y-6",children:[(0,s.jsxs)("div",{className:"grid md:grid-cols-2 gap-6",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-secondary-700 dark:text-secondary-300 mb-2",children:"First Name *"}),(0,s.jsx)("input",{type:"text",name:"firstName",value:e.firstName,onChange:E,className:"input-field ".concat(t.firstName?"border-red-500 focus:ring-red-500":""),placeholder:"Your first name"}),t.firstName&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:t.firstName})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-secondary-700 dark:text-secondary-300 mb-2",children:"Last Name *"}),(0,s.jsx)("input",{type:"text",name:"lastName",value:e.lastName,onChange:E,className:"input-field ".concat(t.lastName?"border-red-500 focus:ring-red-500":""),placeholder:"Your last name"}),t.lastName&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:t.lastName})]})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-secondary-700 dark:text-secondary-300 mb-2",children:"Email *"}),(0,s.jsx)("input",{type:"email",name:"email",value:e.email,onChange:E,className:"input-field ".concat(t.email?"border-red-500 focus:ring-red-500":""),placeholder:"your.email@company.com"}),t.email&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:t.email})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-secondary-700 dark:text-secondary-300 mb-2",children:"Company"}),(0,s.jsx)("input",{type:"text",name:"company",value:e.company,onChange:E,className:"input-field",placeholder:"Your company name"})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)("label",{className:"block text-sm font-medium text-secondary-700 dark:text-secondary-300 mb-2",children:"Message *"}),(0,s.jsx)("textarea",{name:"message",value:e.message,onChange:E,rows:4,className:"input-field ".concat(t.message?"border-red-500 focus:ring-red-500":""),placeholder:"Tell us about your data governance needs..."}),t.message&&(0,s.jsx)("p",{className:"mt-1 text-sm text-red-600 dark:text-red-400",children:t.message})]}),(0,s.jsx)("button",{type:"submit",disabled:p,className:"btn-primary w-full flex items-center justify-center",children:p?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.A,{className:"h-4 w-4 mr-2 animate-spin"}),"Sending Message..."]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(u.A,{className:"h-4 w-4 mr-2"}),"Send Message"]})})]})]})]}),(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("h2",{className:"text-2xl font-bold text-secondary-900 dark:text-white mb-4",children:"Ready to Get Started?"}),(0,s.jsx)("p",{className:"text-secondary-600 dark:text-secondary-300 mb-8 max-w-2xl mx-auto",children:"Join the growing number of Canadian organizations that trust DataGuard AI for their data governance and compliance needs."}),(0,s.jsxs)("div",{className:"flex flex-col sm:flex-row gap-4 justify-center",children:[(0,s.jsx)(c(),{href:"/products",className:"btn-primary",children:"Explore Products"}),(0,s.jsx)(c(),{href:"/solutions",className:"btn-outline",children:"View Solutions"})]})]})]})})})]})}new p.PrismaClient},53705:(e,a,t)=>{Promise.resolve().then(t.bind(t,51673))}},e=>{e.O(0,[9695,8096,7358],()=>e(e.s=53705)),_N_E=e.O()}]);