import{cg as N}from"./index-CsCqMgta.js";import{M as F,aK as R,E as M,ax as T,U as a,R as u,O as t,V as e,X as l,Z as m,Y as s,e as o,a8 as f,W as d,N as i,P as W,Q as z}from"./vendor-CsGITfgk.js";const E={class:"mb-2 font-bold"},D={class:"break-words"},K={class:"mr-1 font-bold"},O=["href"],P={key:1},Q={key:0,class:"break-words text-sm text-neutral-900"},S={class:"text-sm text-neutral-900"},U=["href"],X={key:1},A=F({__name:"branch",props:{branchId:{default:""}},setup(k){const _=R(k,"branchId"),{loading:V,loadFulfillmentCenter:h,fulfillmentCenter:n,loadFulfillmentCenters:g,fulfillmentCenters:v}=N(),b=M(()=>v.value.filter(c=>c.id!==_.value));return h(_.value),g(),T(_,()=>{h(_.value)}),(c,Z)=>{const y=a("VcTypography"),p=a("VcWidget"),C=a("VcMarkdownRender"),x=a("router-link"),L=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(W,null,z(b.value,(r,I)=>(t(),u(L,{key:I},{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",Q,s(r.address),1)):f("",!0),d("div",S,[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,U)):(t(),i("span",X,"–"))])]),_:2},1024))),128))]),_:1})]),_:1},8,["title"])]),default:e(()=>[l(p,{size:"lg"},{default:e(()=>[d("div",E,s(c.$t("pages.branch.address")),1),d("div",D,s(o(n)?.address?o(n)?.address:"–"),1),d("div",null,[d("span",K,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,O)):(t(),i("span",P,"–"))])]),_: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{A as default};
//# sourceMappingURL=branch-luIdxYm5.js.map
