import{cO as I}from"./index-BjgfEvRF.js";import{F as N,aL as R,m as T,N as W,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,a6 as z,a7 as M}from"./vendor-DYYUXsKb.js";const D={class:"mb-2 font-bold"},E={class:"break-words"},O={class:"mr-1 font-bold"},P=["href"],Q={key:1},S={key:0,class:"break-words text-sm text-neutral-900"},X={class:"text-sm text-neutral-900"},j=["href"],q={key:1},K=N({__name:"branch",props:{branchId:{default:""}},setup(k){const _=R(k,"branchId"),{loading:v,loadFulfillmentCenter:h,fulfillmentCenter:n,loadFulfillmentCenters:V,fulfillmentCenters:g}=I(),b=T(()=>g.value.filter(c=>c.id!==_.value));return h(_.value),V(),W(_,()=>{h(_.value)}),(c,G)=>{const y=a("VcTypography"),p=a("VcWidget"),C=a("VcMarkdownRender"),L=a("router-link"),x=a("VcListItem"),$=a("VcList"),w=a("VcLayout"),B=a("VcContainer");return t(),u(B,{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(z,null,M(b.value,(r,F)=>(t(),u(x,{key:F},{default:e(()=>[l(L,{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",S,s(r.address),1)):f("",!0),d("div",X,[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",O,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,P)):(t(),i("span",Q,"–"))])]),_: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-D6I4qU5k.js.map
