import{i as y}from"./index-CxmUQQds.js";import{n as f,o as n}from"./primevue-D7Sw5WWT.js";import{r as h,o as v,h as t,f as a,e as m,x as i,v as x,A as b,t as r,a2 as l,F as u,z as g,j as s}from"./vendor-CI64q2To.js";import"./i18n-CyjFLOmc.js";import"./firebase-4nT4zmVO.js";import"./utils-BGJSpX6f.js";const w={class:"space-y-24"},k={key:0},N={key:1,class:"space-y-12"},$={class:"space-y-4"},V={class:"space-y-6"},z={class:"text-3xl font-black text-gray-900"},C={class:"text-lg text-gray-600 space-y-2"},B={key:0},E={class:"font-bold text-gray-900"},F={class:"pt-4 space-y-2"},L={key:0,class:"flex items-center space-x-3"},S=["href"],A={class:"flex items-center space-x-3"},D=["href"],I={class:"aspect-video rounded-[3rem] overflow-hidden bg-gray-100 border border-gray-100 shadow-xl"},M=["src"],T={__name:"Location",setup(U){const p=h(null),_=h(!0),d=h("");return v(async()=>{try{const o=await y.get("/locations");p.value=o.data}catch(o){d.value=o.response?.data?.message||o.message}finally{_.value=!1}}),(o,c)=>(a(),t("div",w,[d.value?(a(),t("div",k,[i(l(f),{severity:"error",closable:!1},{default:x(()=>[b(r(d.value),1)]),_:1})])):m("",!0),_.value?(a(),t("div",N,[(a(),t(u,null,g(3,e=>s("div",{key:e,class:"grid grid-cols-1 lg:grid-cols-2 gap-12"},[s("div",$,[i(l(n),{width:"60%",height:"2rem"}),i(l(n),{width:"40%",height:"1rem"}),i(l(n),{width:"50%",height:"1rem"})]),i(l(n),{width:"100%",height:"300px",class:"rounded-3xl"})])),64))])):(a(!0),t(u,{key:2},g(p.value,e=>(a(),t("div",{key:e.id,class:"grid grid-cols-1 lg:grid-cols-2 gap-12 items-center"},[s("div",V,[s("h2",z,r(e.name),1),s("div",C,[s("p",null,r(e.address1),1),e.address2?(a(),t("p",B,r(e.address2),1)):m("",!0),s("p",E,r(e.zip)+" "+r(e.city),1)]),s("div",F,[e.phoneNumber?(a(),t("p",L,[c[0]||(c[0]=s("i",{class:"pi pi-phone text-primary"},null,-1)),s("a",{href:`tel:${e.phoneNumber}`,class:"hover:text-primary transition-colors"},r(e.phoneNumber),9,S)])):m("",!0),s("p",A,[c[1]||(c[1]=s("i",{class:"pi pi-envelope text-primary"},null,-1)),s("a",{href:`mailto:${e.email}`,class:"hover:text-primary transition-colors font-bold underline"},r(e.email),9,D)])])]),s("div",I,[s("iframe",{width:"100%",height:"100%",frameborder:"0",style:{border:"0"},src:`https://www.google.com/maps/embed/v1/place?key=AIzaSyDdVhh6dCJw1aSbIRUbKFiGaUwEgkeCEo0&q=${e.address1}, ${e.zip} ${e.city}`,allowfullscreen:""},null,8,M)])]))),128))]))}};export{T as default};