import{ap as v,f as w,l as y,o as l,c as n,p as u,m as f,F as _,r as x,n as k,a as s,b as j,t as o,v as m,_ as N}from"./C_yW9YRN.js";import{u as T}from"./iQ7bPJE9.js";const z={class:"container"},B=["innerHTML"],C={key:1,class:"grid lg:grid-cols-2 grid-cols-1 gap-2 pb-20"},D={class:"h-[350px] relative"},V={class:"absolute left-[5%] bottom-[5%] text-white font-semibold text-2xl"},$={class:"pt-4 text-sm space-y-2"},F={class:"flex items-center gap-3"},I={class:"flex items-center gap-3"},L={key:0,class:"flex items-center justify-end !mt-0 -translate-y-6"},M=["href"],E={__name:"AboutCards",props:{item:{required:!1}},setup(r){const{data:g}=T("branches_index",{server:!1,lazy:!0}),i=v({lat:31,lng:31}),c=w(!1);y(()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(a=>{a?(i.lat=+a.coords.latitude,i.lng=+a.coords.longitude,c.value=!0):c.value=!1})});function h(a){const t={start_lng:i.lng,start_lat:i.lat},d=new RegExp(Object.keys(t).join("|"),"gi");return a=a.replace(d,function(e){return t[e]}),a}return(a,t)=>{const d=N;return l(),n("div",z,[r.item&&r.item.title?(l(),n("h2",{key:0,class:"text-2xl lg:text-3xl max-w-[500px] mb-5 lg:leading-[2.4rem] text-text font-semibold leading-[2.5rem] capitalize",innerHTML:r.item.title},null,8,B)):u("",!0),f(g)?(l(),n("div",C,[(l(!0),n(_,null,x(f(g).data.branches,(e,b)=>(l(),n("div",{"data-wow-duration":"1.3s","data-wow-delay":"0s",class:k(["p-3 flex flex-col h-full rounded-3xl animated wow",b%2==0?"fadeInUp":"fadeInDown"]),key:e.id},[s("div",D,[j(d,{format:"webp",width:"300",class:"w-full h-full rounded-3xl object-cover",height:"300",src:e.main_image,alt:"",loading:"lazy",srcset:`${e.main_image} 480w, ${e.main_image} 1080w`},null,8,["src","srcset"]),s("p",V,o(e.title),1)]),s("div",$,[s("p",F,[t[0]||(t[0]=s("i",{class:"fas fa-location-dot"},null,-1)),m(" "+o(e.description),1)]),s("p",I,[t[1]||(t[1]=s("i",{class:"fa-solid fa-envelope"},null,-1)),m(" "+o(e.email.email),1)]),(l(!0),n(_,null,x(e.phones,p=>(l(),n("p",{class:"flex gap-3 items-center",key:p.id},[t[2]||(t[2]=s("i",{class:"fa-solid fa-phone-volume"},null,-1)),s("bdi",null," +"+o(e.phone_code)+" "+o(p.phone),1)]))),128)),e.location_url&&f(c)?(l(),n("div",L,[s("a",{target:"_blank",class:"text-primary flex items-center text-sm font-bold gap-3",href:h(e.location_url)},[m(o(a.$t("BUTTONS.getDirection"))+" ",1),t[3]||(t[3]=s("i",{class:"fa-solid fa-share"},null,-1))],8,M)])):u("",!0)])],2))),128))])):u("",!0)])}}};export{E as _};
