import{h as H,u as P,m as T,t as V,r as o,o as d,a as A,f as n,l as e,e as c,F as I,k as m,x as r,y as s,p as N,b,d as h}from"./app-44623493.js";const D={class:"grid grid-cols-1 gap-x-4 gap-y-8 sm:grid-cols-2"},L=["innerHTML"],R={name:"CompanyBranchShow"},F=Object.assign(R,{setup(j){H();const p=P(),u=T(),_={},f="company/branch/",t=V({..._}),y=a=>{Object.assign(t,a)};return(a,i)=>{const B=o("PageHeaderAction"),g=o("PageHeader"),l=o("BaseDataView"),$=o("BaseButton"),C=o("ShowButton"),v=o("BaseCard"),w=o("ShowItem"),S=o("ParentTransition");return d(),A(I,null,[n(g,{title:a.$trans(c(p).meta.trans,{attribute:a.$trans(c(p).meta.label)}),navs:[{label:a.$trans("company.company"),path:"Company"},{label:a.$trans("company.branch.branch"),path:"CompanyBranchList"}]},{default:e(()=>[n(B,{name:"CompanyBranch",title:a.$trans("company.branch.branch"),actions:["list"]},null,8,["title"])]),_:1},8,["title","navs"]),n(S,{appear:"",visibility:!0},{default:e(()=>[n(w,{"init-url":f,uuid:c(p).params.uuid,onSetItem:y,onRedirectTo:i[1]||(i[1]=k=>c(u).push({name:"Branch"}))},{default:e(()=>[t.uuid?(d(),m(v,{key:0},{title:e(()=>[r(s(t.name),1)]),footer:e(()=>[n(C,null,{default:e(()=>[c(N)("branch:edit")?(d(),m($,{key:0,design:"primary",onClick:i[0]||(i[0]=k=>c(u).push({name:"CompanyBranchEdit",params:{uuid:t.uuid}}))},{default:e(()=>[r(s(a.$trans("general.edit")),1)]),_:1})):b("",!0)]),_:1})]),default:e(()=>[h("dl",D,[n(l,{label:a.$trans("company.branch.props.name")},{default:e(()=>[r(s(t.name),1)]),_:1},8,["label"]),n(l,{label:a.$trans("company.branch.props.code")},{default:e(()=>[r(s(t.code),1)]),_:1},8,["label"]),n(l,{label:a.$trans("company.branch.props.alias")},{default:e(()=>[r(s(t.alias),1)]),_:1},8,["label"]),n(l,{label:a.$trans("company.branch.props.parent")},{default:e(()=>[r(s(t.parent?t.parent.name:"-"),1)]),_:1},8,["label"]),n(l,{class:"col-span-1 sm:col-span-2",label:a.$trans("company.branch.props.description")},{default:e(()=>[h("div",{innerHTML:t.description},null,8,L)]),_:1},8,["label"]),n(l,{label:a.$trans("general.created_at")},{default:e(()=>[r(s(t.createdAt.formatted),1)]),_:1},8,["label"]),n(l,{label:a.$trans("general.updated_at")},{default:e(()=>[r(s(t.updatedAt.formatted),1)]),_:1},8,["label"])])]),_:1})):b("",!0)]),_:1},8,["uuid"])]),_:1})],64)}}});export{F as default};
