import{s as b,t as g,r as l,o as u,k as V,l as d,d as i,f as s,e as o,u as $,a as v,F as B}from"./app-44623493.js";const C={class:"grid grid-cols-3 gap-6"},F={class:"col-span-3 sm:col-span-1"},U={class:"col-span-3 sm:col-span-1"},P={class:"col-span-3 sm:col-span-1"},A={name:"CompanyDepartmentForm"},D=Object.assign(A,{setup(_){const m={name:"",alias:"",description:""},n="company/department/",r=b(n),t=g({...m});return(p,e)=>{const c=l("BaseInput"),f=l("BaseTextarea"),y=l("FormAction");return u(),V(y,{"init-url":n,"init-form":m,form:t,redirect:"CompanyDepartment"},{default:d(()=>[i("div",C,[i("div",F,[s(c,{type:"text",modelValue:t.name,"onUpdate:modelValue":e[0]||(e[0]=a=>t.name=a),name:"name",label:p.$trans("company.department.props.name"),error:o(r).name,"onUpdate:error":e[1]||(e[1]=a=>o(r).name=a),autofocus:""},null,8,["modelValue","label","error"])]),i("div",U,[s(c,{type:"text",modelValue:t.alias,"onUpdate:modelValue":e[2]||(e[2]=a=>t.alias=a),name:"alias",label:p.$trans("company.department.props.alias"),error:o(r).alias,"onUpdate:error":e[3]||(e[3]=a=>o(r).alias=a),autofocus:""},null,8,["modelValue","label","error"])]),i("div",P,[s(f,{modelValue:t.description,"onUpdate:modelValue":e[4]||(e[4]=a=>t.description=a),name:"description",label:p.$trans("company.department.props.description"),error:o(r).description,"onUpdate:error":e[5]||(e[5]=a=>o(r).description=a)},null,8,["modelValue","label","error"])])])]),_:1},8,["form"])}}}),k={name:"CompanyDepartmentAction"},T=Object.assign(k,{setup(_){const m=$();return(n,r)=>{const t=l("PageHeaderAction"),p=l("PageHeader"),e=l("ParentTransition");return u(),v(B,null,[s(p,{title:n.$trans(o(m).meta.trans,{attribute:n.$trans(o(m).meta.label)}),navs:[{label:n.$trans("company.company"),path:"Company"},{label:n.$trans("company.department.department"),path:"CompanyDepartmentList"}]},{default:d(()=>[s(t,{name:"CompanyDepartment",title:n.$trans("company.department.department"),actions:["list"]},null,8,["title"])]),_:1},8,["title","navs"]),s(e,{appear:"",visibility:!0},{default:d(()=>[s(D)]),_:1})],64)}}});export{T as default};
