1import{_ as U}from"./B5MIHPWT.js";import{j as V,l as q,f as E,_ as F,e as Q,d as z,g as G,Q as H}from"./CH7kjlzg.js";import{_ as K}from"./BzQQcCzP.js";import{k as v,L as o,C as a,J as u,M as s,a1 as f,a0 as D,l as g,I,a4 as L,V as N,u as i,a8 as R}from"./BpBj2WRh.js";import{u as j,m as S,I as A}from"./C63uzwVS.js";import{_ as J}from"./EHHfWJq4.js";import{u as O}from"./cE3fw__A.js";import{u as W}from"./Co7bKFHs.js";const X={class:"grid grid-cols-5"},Y={class:"text-start col-span-4"},Z={key:0,class:"text-sm text-gray-300"},ee={class:"text-sm lrt:text-start rtl:text-end",dir:"ltr"},te=v({__name:"detail",props:{icon:{},label:{},value:{}},setup(_){return(e,t)=>{const n=V;return o(),a("div",X,[u(n,{name:e.icon,class:"text-4xl text-color1-500"},null,8,["name"]),s("div",Y,[e.label?(o(),a("p",Z,f(e.label),1)):D("",!0),s("h6",ee,f(e.value),1)])])}}}),se={class:"boxx flex flex-wrap gap-y-5"},oe={class:"w-full lg:w-1/2 lg:pe-3"},ae={class:"mb-4 text-xl"},ne=["src"],le={class:"grid gap-5 sm:grid-cols-2 lg:gap-6 py-3"},re={class:"w-full lg:w-1/2 lg:ps-3"},ce={class:"relative mb-4 w-full h-full"},ie={class:"center_ele flex w-full justify-center"},ue=v({__name:"card",props:{branch:{}},setup(_){const{translate:e}=j(),{branch:t}=_,n=g(()=>[{icon:"i-ph-phone-list-duotone",label:e("call_us"),value:t.phone},{icon:"i-ph-envelope-duotone",label:e("have_any_questions"),value:t.email},{icon:"i-ph-map-pin-line-duotone",value:t.address}]),{locationToDisplay:p}=q();function c(){p.value={lat:Number(t.latitude),lng:Number(t.longitude)}}return(d,l)=>{const m=E;return o(),a("div",se,[s("div",oe,[s("h5",ae,f(t.title),1),s("div",null,[s("img",{src:t.image,alt:"",class:"h-[180px] w-full object-cover"},null,8,ne)]),s("div",le,[(o(!0),a(I,null,L(i(n),r=>(o(),N(te,{key:r.value,icon:r.icon,label:r.label,value:r.value},null,8,["icon","label","value"]))),128))])]),s("div",re,[s("div",ce,[l[0]||(l[0]=s("img",{src:K,alt:"map",class:"w-full h-full object-cover"},null,-1)),s("div",ie,[u(m,{icon:"i-ph-map-pin-line-duotone",label:d.$t("view_on_map"),color:"white",size:"lg",onClick:c},null,8,["label"])])])])])}}}),_e=F(ue,[["__scopeId","data-v-ce67ebb7"]]),pe={class:"container py-8 flex flex-col gap-8"},de={key:0,class:"col-span-full flex items-center justify-center py-16"},Be=v({__name:"index",async setup(_){var x,y,k,w,$,B;let e,t;const{translate:n}=j(),p=g(()=>[{icon:"i-heroicons-home",label:n("home_page_title"),to:S(A.home)},{label:n("our_branches_page_title"),icon:"i-ph-buildings-duotone"}]),{commonHeaders:c}=Q(),{endpoints:d}=z(),{data:l,refetch:m,isLoading:r,error:me}=G({queryKey:[H.ourBranches,c],queryFn:()=>$fetch(d.ourBranches,{method:"GET",headers:{...c.value}})}),[h]=([e,t]=R(()=>Promise.all([O("our-branches"),m()])),e=await e,t(),e),b=g(()=>l.value?l.value.result.data:[]);return W({title:((y=(x=h.pageData.value)==null?void 0:x.seo)==null?void 0:y.seo_title)??"",description:((w=(k=h.pageData.value)==null?void 0:k.seo)==null?void 0:w.seo_description)??"",keywords:(B=($=h.pageData.value)==null?void 0:$.seo)==null?void 0:B.keywords,ogType:"website"}),(he,fe)=>{const M=U,P=_e,T=J;return o(),a("div",pe,[u(M,{links:i(p)},null,8,["links"]),(o(!0),a(I,null,L(i(b),C=>(o(),N(P,{branch:C,key:C.id},null,8,["branch"]))),128)),i(b).length===0?(o(),a("div",de,[u(T)])):D("",!0)])}}});export{Be 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.