import{p as I,s as N,q as a,m as S,o as T,r as V,i as B,_ as U}from"./CJ3Pvzvs.js";import{_ as A}from"./BTWky2G2.js";import{d as D,s as F,o,b as i,f as n,w as h,F as L,e as M,a as e,t as s,u as b,m as c,q as w}from"./3LwgCWkS.js";const P={class:"flex-1 page-content static w-full"},j={class:"mb-8 px-4 flex flex-col"},E={class:"lead mb-2"},H={class:"px-4 py-2 flex flex-col gap-3"},O={key:0,class:"flex gap-3 items-baseline"},R={key:1,class:"flex gap-3 items-center"},z={key:2,class:"flex gap-3 items-center"},G={key:3,class:"flex gap-3 items-center"},J=["href"],K={key:4,class:"flex gap-3 items-center"},Q=["href"],W={class:"px-4"},X={class:"space-y-6",action:"#",method:"POST"},Y={class:"flex gap-5"},Z={class:"w-1/2"},ee={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},te={class:"w-1/2"},se={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},ae={for:"email",class:"block text-sm font-medium leading-6 text-gray-900"},oe={type:"submit",class:"inline-flex items-center px-6 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-primary-800 hover:bg-primary-900 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary"},de=D({__name:"index",async setup(ie){var g;let m,p;const v=I(),{journalId:k,currentLanguage:$,title:u,description:f,keywords:C}=N(v),{data:q}=([m,p]=F(()=>B("contacts",()=>$fetch(`/api/${k.value}/contact`))),m=await m,p(),m);return a().set({title:S().t("contactUs"),description:f.value,keywords:((g=C.value)==null?void 0:g.split(", "))||[]}),T({title:`${a().title} - ${u.value}`,meta:[{name:"description",content:a().description},{name:"keywords",content:`${a().keywords}`}]}),V({title:`${a().title} - ${u.value}`,ogTitle:`${a().title} - ${u.value}`,description:a().description??f.value,keywords:`${a().keywords}`}),(l,r)=>{const d=U,_=A;return o(),i("div",P,[n(_,{title:l.$t("contactInformation"),"body-class":"mt-0"},{body:h(()=>{var y;return[(o(!0),i(L,null,M((y=b(q))==null?void 0:y.items,t=>{var x;return o(),i("div",j,[e("p",E,s((x=t.title)==null?void 0:x[b($)]),1),e("div",H,[t.address?(o(),i("div",O,[n(d,{name:"heroicons-map-pin"}),e("span",null,s(t.address.trim()),1)])):c("",!0),t.phone?(o(),i("div",R,[n(d,{name:"material-symbols:phone-enabled-outline",class:"me-2"}),w(" "+s(t.phone.trim()),1)])):c("",!0),t.fax?(o(),i("div",z,[n(d,{name:"material-symbols:fax-outline"}),w(" "+s(t.fax),1)])):c("",!0),t.email?(o(),i("div",G,[n(d,{name:"material-symbols:mail-outline"}),e("a",{href:`mailto:${t.email}`},s(t.email.trim()),9,J)])):c("",!0),t.website?(o(),i("div",K,[n(d,{name:"iconoir:www"}),e("a",{href:`https://${t.website.trim()}`,target:"_blank"},s(t.website.trim()),9,Q)])):c("",!0)])])}),256))]}),_:1},8,["title"]),n(_,{title:l.$t("contactUs"),class:"mt-7"},{body:h(()=>[e("div",W,[e("form",X,[e("div",Y,[e("div",Z,[e("label",ee,s(l.$t("fullname")),1),r[0]||(r[0]=e("div",{class:"mt-2"},[e("input",{id:"email",name:"email",type:"email",autocomplete:"email",required:"",class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-gray-300 placeholder:text-gray-400 focus:border-gray-400 sm:text-sm sm:leading-6"})],-1))]),e("div",te,[e("label",se,s(l.$t("email")),1),r[1]||(r[1]=e("div",{class:"mt-2"},[e("input",{id:"email",name:"email",type:"email",autocomplete:"email",required:"",class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-1 focus:ring-inset focus:ring-gray-100 sm:text-sm sm:leading-6"})],-1))])]),e("div",null,[e("div",null,[e("label",ae,s(l.$t("message")),1),r[2]||(r[2]=e("div",{class:"mt-2"},[e("textarea",{id:"email",name:"email",type:"email",autocomplete:"email",required:"",class:"block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-gray-600 sm:text-sm sm:leading-6"})],-1))])]),e("div",null,[e("button",oe,s(l.$t("submit")),1)])])])]),_:1},8,["title"])])}}});export{de as default};