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