import{u as g,t as _,s as $,r as i,o as b,k as U,l as y,d,f as l,e as r,L as B,a as F,F as j}from"./app-44623493.js";const A={class:"grid grid-cols-3 gap-6"},O={class:"col-span-3 sm:col-span-1"},k={class:"col-span-3 sm:col-span-1"},q={class:"col-span-3 sm:col-span-1"},C={class:"col-span-3 sm:col-span-1"},R={class:"col-span-3 sm:col-span-1"},T={name:"PayrollPayHeadForm"},E=Object.assign(T,{setup(f){g();const p={category:"",name:"",code:"",alias:"",description:""},n="payroll/payHead/",m=_({payHeadCategories:[]}),t=$(n),o=_({...p}),c=s=>{Object.assign(m,s)},P=s=>{var e;Object.assign(p,{...s,category:(e=s.category)==null?void 0:e.value}),Object.assign(o,B(p))};return(s,e)=>{const V=i("BaseSelect"),u=i("BaseInput"),v=i("BaseTextarea"),H=i("FormAction");return b(),U(H,{"pre-requisites":!0,onSetPreRequisites:c,"init-url":n,"init-form":p,form:o,"set-form":P,redirect:"PayrollPayHead"},{default:y(()=>[d("div",A,[d("div",O,[l(V,{modelValue:o.category,"onUpdate:modelValue":e[0]||(e[0]=a=>o.category=a),name:"category",label:s.$trans("payroll.pay_head.props.category"),options:m.payHeadCategories,error:r(t).category,"onUpdate:error":e[1]||(e[1]=a=>r(t).category=a)},null,8,["modelValue","label","options","error"])]),d("div",k,[l(u,{type:"text",modelValue:o.name,"onUpdate:modelValue":e[2]||(e[2]=a=>o.name=a),name:"name",label:s.$trans("payroll.pay_head.props.name"),error:r(t).name,"onUpdate:error":e[3]||(e[3]=a=>r(t).name=a),autofocus:""},null,8,["modelValue","label","error"])]),d("div",q,[l(u,{type:"text",modelValue:o.code,"onUpdate:modelValue":e[4]||(e[4]=a=>o.code=a),name:"code",label:s.$trans("payroll.pay_head.props.code"),error:r(t).code,"onUpdate:error":e[5]||(e[5]=a=>r(t).code=a),autofocus:""},null,8,["modelValue","label","error"])]),d("div",C,[l(u,{type:"text",modelValue:o.alias,"onUpdate:modelValue":e[6]||(e[6]=a=>o.alias=a),name:"alias",label:s.$trans("payroll.pay_head.props.alias"),error:r(t).alias,"onUpdate:error":e[7]||(e[7]=a=>r(t).alias=a)},null,8,["modelValue","label","error"])]),d("div",R,[l(v,{modelValue:o.description,"onUpdate:modelValue":e[8]||(e[8]=a=>o.description=a),name:"description",label:s.$trans("payroll.pay_head.props.description"),error:r(t).description,"onUpdate:error":e[9]||(e[9]=a=>r(t).description=a)},null,8,["modelValue","label","error"])])])]),_:1},8,["form"])}}}),S={name:"PayrollPayHeadAction"},L=Object.assign(S,{setup(f){const p=g();return(n,m)=>{const t=i("PageHeaderAction"),o=i("PageHeader"),c=i("ParentTransition");return b(),F(j,null,[l(o,{title:n.$trans(r(p).meta.trans,{attribute:n.$trans(r(p).meta.label)}),navs:[{label:n.$trans("payroll.payroll"),path:"Payroll"},{label:n.$trans("payroll.pay_head.pay_head"),path:"PayrollPayHeadList"}]},{default:y(()=>[l(t,{name:"PayrollPayHead",title:n.$trans("payroll.pay_head.pay_head"),actions:["list"]},null,8,["title"])]),_:1},8,["title","navs"]),l(c,{appear:"",visibility:!0},{default:y(()=>[l(E)]),_:1})],64)}}});export{L as default};
