1import{m as e,r as t,a,o as s,b as l,d as o,u as r,g as n,t as c,n as u,z as i,f as m,v as d,F as p}from"./vendor-DvknxkkP.js";import{_ as b}from"./SiteHeader-ywTaQ-rJ.js";import{d as f}from"./index-X66LlpwY.js";import{g}from"./websiteTranslations-Dy3SpYVJ.js";import"./utils-DRsajwlv.js";import"./app-UCw14pUB.js";/* empty css */const x={class:"w-3/4 md:max-w-2xl mx-auto mt-10 bg-white p-8 rounded-lg shadow-md"},v={class:"text-center mb-8"},y={class:"text-3xl font-bold mb-3"},h={class:"text-lg text-gray-600"},w={class:"flex items-center justify-center gap-6 mt-4 text-gray-600"},j={class:"ml-2"},k={class:"ml-2"},U={for:"email",class:"block text-sm font-semibold text-gray-700"},_={for:"phone",class:"block text-sm font-semibold text-gray-700"},T={for:"message",class:"block text-sm font-semibold text-gray-700"},S={type:"submit",class:"w-full bg-amber-400 hover:bg-amber-500 text-black px-6 py-3 rounded-md font-medium transition duration-200 ease-in-out"},q={class:"mt-8 text-center text-sm text-gray-500"},A={__name:"ContactUs",setup(A){const E=e(()=>{const e=window.__WEBSITE_LANGUAGE||localStorage.getItem("preferredLanguage")||"en";return g(e)||g("en")}),I=e=>{const t=e.split(".");let a=E.value;for(const s of t){if(!a||void 0===a[s])return e;a=a[s]}return a},V=t({email:"",phone:"",message:""}),C=()=>{return e=this,t=null,a=function*(){try{f.Inertia.post("/contact",V.value),alert(I("contact.alerts.success"))}catch(e){alert(I("contact.alerts.error"))}},new Promise((s,l)=>{var o=e=>{try{n(a.next(e))}catch(t){l(t)}},r=e=>{try{n(a.throw(e))}catch(t){l(t)}},n=e=>e.done?s(e.value):Promise.resolve(e.value).then(o,r);n((a=a.apply(e,t)).next())});var e,t,a};return(e,t)=>(s(),a(p,null,[l(r(n),{title:I("contact.pageTitle")||"Contact Us"},null,8,["title"]),l(b,{firstQuestionAnswered:!1}),o("div",x,[o("div",v,[o("h1",y,c(I("contact.title")),1),o("p",h,c(I("contact.subtitle")),1),o("div",w,[o("div",null,[o("i",{class:u(["fas","fa-"+I("contact.responseTime.icon")])},null,2),o("span",j,c(I("contact.responseTime.text")),1)]),o("div",null,[o("i",{class:u(["fas","fa-"+I("contact.security.icon")])},null,2),o("span",k,c(I("contact.security.text")),1)])])]),o("form",{onSubmit:i(C,["prevent"]),class:"space-y-6"},[o("div",null,[o("label",U,c(I("contact.form.email.label")),1),m(o("input",{type:"email","onUpdate:modelValue":t[0]||(t[0]=e=>V.value.email=e),required:"",class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"},null,512),[[d,V.value.email]])]),o("div",null,[o("label",_,c(I("contact.form.phone.label")),1),m(o("input",{type:"tel","onUpdate:modelValue":t[1]||(t[1]=e=>V.value.phone=e),required:"",class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"},null,512),[[d,V.value.phone]])]),o("div",null,[o("label",T,c(I("contact.form.message.label")),1),m(o("textarea",{"onUpdate:modelValue":t[2]||(t[2]=e=>V.value.message=e),required:"",rows:"5",class:"mt-1 block w-full border-gray-300 rounded-md shadow-sm focus:ring-blue-500 focus:border-blue-500"},null,512),[[d,V.value.message]])]),o("button",S,c(I("contact.form.submit")),1)],32),o("div",q,[o("p",null,c(I("contact.footer.security")),1)])])],64))}};export{A as default};
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.