import{cS as I}from"./index-BGo1APpE.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,a5 as z,a6 as M}from"./vendor-sJIIH5Cr.js";const S={class:"mb-2 font-bold"},D={class:"break-words"},E={class:"mr-1 font-bold"},P=["href"],Q={key:1},X={key:0,class:"break-words text-sm text-neutral-900"},j={class:"text-sm text-neutral-900"},q=["href"],A={key:1},O=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,H)=>{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",X,s(r.address),1)):f("",!0),d("div",j,[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,q)):(t(),i("span",A,"–"))])]),_:2},1024))),128))]),_:1})]),_:1},8,["title"])]),default:e(()=>[l(p,{size:"lg"},{default:e(()=>[d("div",S,s(c.$t("pages.branch.address")),1),d("div",D,s(o(n)?.address?o(n)?.address:"–"),1),d("div",null,[d("span",E,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{O as default};
//# sourceMappingURL=branch-C1NuV2PC.js.map
