import{bJ as R}from"./index-Dqv5IkpS.js";import{K as W,ao as z,B as S,av as D,S as r,P as h,M as o,T as t,V as c,X as g,W as s,b as n,a7 as b,U as i,L as _,N as E,O as J}from"./vendor-bSWkQivH.js";const K={class:"mb-2 font-bold"},O={class:"break-words"},P={class:"mr-1 font-bold"},U=["href"],X={key:1},j={key:0,class:"break-words text-sm text-neutral-900"},q={class:"text-sm text-neutral-900"},A=["href"],G={key:1},ee=W({__name:"branch",props:{branchId:{default:""}},setup(y){const p=z(y,"branchId"),{loading:C,loadFulfillmentCenter:m,fulfillmentCenter:a,loadFulfillmentCenters:L,fulfillmentCenters:x}=R(),$=S(()=>x.value.filter(d=>d.id!==p.value));return m(p.value),L(),D(p,()=>{m(p.value)}),(d,Q)=>{const w=r("VcTypography"),u=r("VcWidget"),B=r("VcMarkdownRender"),I=r("router-link"),N=r("VcListItem"),F=r("VcList"),T=r("VcLayout"),M=r("VcContainer");return o(),h(M,{loading:n(C)},{default:t(()=>[c(w,{tag:"h1",class:"mb-5"},{default:t(()=>{var e;return[g(s((e=n(a))==null?void 0:e.name),1)]}),_:1}),c(T,{"sidebar-position":"right"},{sidebar:t(()=>[c(u,{title:d.$t("pages.branch.other_branches")},{default:t(()=>[c(F,null,{default:t(()=>[(o(!0),_(E,null,J($.value,(e,l)=>(o(),h(N,{key:l},{default:t(()=>[c(I,{to:`/branch/${e.id}`,class:"font-black text-[--link-color] hover:text-[--link-hover-color]"},{default:t(()=>[g(s(e.name),1)]),_:2},1032,["to"]),e.address?(o(),_("div",j,s(e.address),1)):b("",!0),i("div",q,[i("b",null,s(d.$t("pages.branch.phone")),1),e.phone?(o(),_("a",{key:0,href:`tel:${e.phone}`,class:"hover:underline"},s(e.phone),9,A)):(o(),_("span",G,"–"))])]),_:2},1024))),128))]),_:1})]),_:1},8,["title"])]),default:t(()=>{var e;return[c(u,{size:"lg"},{default:t(()=>{var l,f,k,v,V;return[i("div",K,s(d.$t("pages.branch.address")),1),i("div",O,s((l=n(a))!=null&&l.address?(f=n(a))==null?void 0:f.address:"–"),1),i("div",null,[i("span",P,s(d.$t("pages.branch.phone")),1),(k=n(a))!=null&&k.phone?(o(),_("a",{key:0,href:`tel:${(v=n(a))==null?void 0:v.phone}`,class:"hover:underline"},s((V=n(a))==null?void 0:V.phone),9,U)):(o(),_("span",X,"–"))])]}),_:1}),(e=n(a))!=null&&e.description?(o(),h(u,{key:0,size:"lg",class:"mt-5"},{default:t(()=>{var l;return[c(B,{src:(l=n(a))==null?void 0:l.description,class:"text-sm"},null,8,["src"])]}),_:1})):b("",!0)]}),_:1})]),_:1},8,["loading"])}}});export{ee as default};
//# sourceMappingURL=branch-CO9-jdCY.js.map
