(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9335],{8105:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return a(9074)}])},3950:function(e,t,a){"use strict";var n=a(5893),s=a(9008),r=a.n(s),c=a(1163);t.Z=e=>{let{title:t="Virtual Triage - Online Doctor Appointments & Healthcare Services UK",description:a="Book online doctor appointments, find GPs, and access healthcare services across the UK. Virtual consultations with licensed practitioners. Book your appointment today.",keywords:s="online doctor UK, GP near me, family doctor UK, virtual consultations, telehealth UK, book doctor appointment, NHS alternative, private GP UK",canonical:i,ogImage:o="https://virtualtriage.ai/assets/og/default.jpg",ogType:l="website",structuredData:u,noindex:m=!1,location:p="UK"}=e,d=(0,c.useRouter)(),h="https://virtualtriage.ai",g=t.includes("Virtual Triage")?t:"".concat(t," | Virtual Triage"),x=i||"".concat(h).concat(d.asPath.split("?")[0]),j=u||{"@context":"https://schema.org","@type":"MedicalBusiness",name:"Virtual Triage",description:"Online healthcare platform connecting patients with licensed medical practitioners across the UK",url:h,logo:"".concat(h,"/assets/Virtual%20Triage.png"),address:{"@type":"PostalAddress",addressCountry:"GB",addressLocality:p},areaServed:{"@type":"Country",name:"United Kingdom"},sameAs:["https://www.facebook.com/virtualtriage","https://www.instagram.com/virtualtriage","https://www.linkedin.com/company/virtualtriage","https://twitter.com/virtualtriage"]};return(0,n.jsxs)(r(),{children:[(0,n.jsx)("title",{children:g}),(0,n.jsx)("meta",{name:"title",content:g}),(0,n.jsx)("meta",{name:"description",content:a}),(0,n.jsx)("meta",{name:"keywords",content:s}),(0,n.jsx)("meta",{name:"robots",content:m?"noindex,nofollow":"index,follow"}),(0,n.jsx)("meta",{name:"language",content:"English"}),(0,n.jsx)("meta",{name:"revisit-after",content:"7 days"}),(0,n.jsx)("meta",{name:"author",content:"Virtual Triage"}),(0,n.jsx)("meta",{name:"geo.region",content:"GB"}),(0,n.jsx)("meta",{name:"geo.placename",content:p}),(0,n.jsx)("link",{rel:"canonical",href:x}),(0,n.jsx)("meta",{property:"og:type",content:l}),(0,n.jsx)("meta",{property:"og:url",content:x}),(0,n.jsx)("meta",{property:"og:title",content:g}),(0,n.jsx)("meta",{property:"og:description",content:a}),(0,n.jsx)("meta",{property:"og:image",content:o}),(0,n.jsx)("meta",{property:"og:site_name",content:"Virtual Triage"}),(0,n.jsx)("meta",{property:"og:locale",content:"en_GB"}),(0,n.jsx)("meta",{name:"twitter:card",content:"summary_large_image"}),(0,n.jsx)("meta",{name:"twitter:url",content:x}),(0,n.jsx)("meta",{name:"twitter:title",content:g}),(0,n.jsx)("meta",{name:"twitter:description",content:a}),(0,n.jsx)("meta",{name:"twitter:image",content:o}),(0,n.jsx)("meta",{name:"twitter:site",content:"@virtualtriage"}),(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(j)}})]})}},9074:function(e,t,a){"use strict";a.r(t);var n=a(5893),s=a(7294),r=a(7317),c=a(9402),i=a(3950),o=a(4853),l=a(6256);t.default=()=>{let e=(0,s.useRef)(null),[t,a]=(0,s.useState)(!1),[u,m]=(0,s.useState)(!1),[p,d]=(0,s.useState)(!1),[h,g]=(0,s.useState)(null),[x,j]=(0,s.useState)(null),[f,y]=(0,s.useState)(!1),[w,v]=(0,s.useState)(!1),[k,b]=(0,s.useState)(!1),N=(0,s.useRef)(null),S=(0,s.useRef)(null),_=(0,s.useRef)(null),T=async t=>{if(t.preventDefault(),!k){j("Please accept the consent terms to continue.");return}if(!w){j("Please confirm you're not a robot.");return}if(!h){j("Please complete the reCAPTCHA verification.");return}d(!0),j(null);let n={name:e.current.from_name.value,number:e.current.number?e.current.number.value:"",email:e.current.email.value,message:e.current.message.value,type:"contact"};try{if(!(await fetch("https://portal.virtualtriage.ca/contact_email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)})).ok)throw Error("Failed to send message");j("Message sent successfully!"),a(!0),t.target.reset(),g(null),y(!1),v(!1),b(!1),_.current&&_.current.reset()}catch(e){console.error("Error sending message:",e),j("There was an error sending your message. Please try again later."),_.current&&_.current.reset(),g(null)}finally{d(!1)}};return(0,s.useEffect)(()=>{let e=e=>{N.current&&!N.current.contains(e.target)&&S.current&&!S.current.contains(e.target)&&m(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),(0,n.jsxs)("div",{className:"contact-page",children:[(0,n.jsx)(i.Z,{title:"Contact Virtual Triage | Get in Touch",description:"Contact the Virtual Triage team for support, partnership enquiries, or compliance questions.",canonical:"https://virtualtriage.ai/contact"}),(0,n.jsx)(r.Z,{}),(0,n.jsx)("div",{className:"map-container",children:(0,n.jsx)("img",{src:"/assets/world-map.png",alt:"world map",style:{marginTop:"90px"}})}),(0,n.jsxs)("div",{className:"contactus-container",children:[(0,n.jsxs)("div",{className:"whatsapp-contact-card",children:[(0,n.jsx)("h1",{children:"Connect with Us on WhatsApp!"}),(0,n.jsx)("p",{children:"Need quick support? Chat with our team instantly on WhatsApp!"}),(0,n.jsxs)("p",{children:[(0,n.jsx)("strong",{children:"Support Status:"}),(0,n.jsxs)("span",{style:{color:"green",fontWeight:"bold"},children:[" ","We're Online!"]})]}),(0,n.jsx)("a",{href:"https://wa.me/14372946051",target:"_blank",rel:"noopener noreferrer",className:"whatsapp-btn",children:"\uD83D\uDCAC Chat on WhatsApp"}),(0,n.jsxs)("div",{className:"whatsapp-qr",children:[(0,n.jsx)("p",{children:"Or scan the QR code to start chatting:"}),(0,n.jsx)("img",{src:"/assets/whatsapp_qr.png",alt:"WhatsApp QR Code",width:"120"})]}),(0,n.jsx)("p",{style:{fontSize:"14px",color:"#666"},children:"Fast, free, and easy – get answers in seconds!"})]}),(0,n.jsxs)("div",{className:"contactus-form",children:[(0,n.jsx)("h2",{children:"Send Us A Message"}),t&&(0,n.jsx)("p",{className:"success-message",children:"Message sent successfully!"}),(0,n.jsxs)("form",{ref:e,onSubmit:T,children:[(0,n.jsx)("input",{type:"text",name:"from_name",placeholder:"Your Name",required:!0}),(0,n.jsx)("input",{type:"email",name:"email",placeholder:"Your Email",required:!0}),(0,n.jsx)("input",{type:"text",name:"number",placeholder:"Your Number",required:!0}),(0,n.jsx)("textarea",{name:"message",placeholder:"Your Message",required:!0}),(0,n.jsx)("div",{className:"consent",style:{margin:"10px 0",fontSize:"14px",fontStyle:"italic",width:"fit-content"},children:(0,n.jsxs)("label",{className:"consent-checkbox-container",style:{display:"flex",alignItems:"flex-start",gap:"8px",cursor:"pointer",textAlign:"left"},children:[(0,n.jsx)("input",{type:"checkbox",checked:k,onChange:e=>{b(e.target.checked),e.target.checked&&x&&x.includes("consent")&&j(null)},style:{marginTop:"2px",transform:"scale(1.5)",width:"auto"}}),(0,n.jsx)("span",{style:{lineHeight:"1.4"},children:"I agree to receive SMS messages from Virtual Triage, including appointment reminders, account alerts, and customer care updates. Message frequency varies. Reply STOP to opt-out. Standard message and data rates may apply."})]})}),(0,n.jsx)("div",{className:"human-verification",children:(0,n.jsxs)("label",{className:"checkbox-container",children:[(0,n.jsx)("input",{type:"checkbox",checked:w,onChange:e=>{v(e.target.checked),y(e.target.checked),e.target.checked&&x&&x.includes("robot")&&j(null),!e.target.checked&&(y(!1),g(null),_.current&&_.current.reset())}}),(0,n.jsx)("span",{className:"checkmark"}),(0,n.jsx)("span",{className:"checkbox-text",children:"I'm not a robot"})]})}),f&&(0,n.jsx)("div",{className:"recaptcha-container-contact",children:(0,n.jsx)(o.Z,{ref:_,sitekey:l.K.SITE_KEY,onChange:e=>{g(e),e&&x&&x.includes("reCAPTCHA")&&j(null)},theme:"light",size:"normal"})}),(0,n.jsx)("button",{type:"submit",disabled:p||!k||w&&!h,children:p?(0,n.jsx)("span",{className:"loader"}):"Send Message"}),x&&(0,n.jsx)("div",{className:"status-message ".concat(x.includes("success")?"success":"error"),children:x})]})]})]}),(0,n.jsx)(c.Z,{})]})}},9008:function(e,t,a){e.exports=a(3867)}},function(e){e.O(0,[5675,8900,2888,9774,179],function(){return e(e.s=8105)}),_N_E=e.O()}]);