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