import{d as i,A as d,J as u,_ as f,P as m,O as _,B as b,j as p,aF as v,H as y,c as n,g as s}from"./index-DOFLUERq.js";import{_ as N}from"./_plugin-vue_export-helper-DlAUqK2U.js";const g={class:"field-label"},x={key:0,class:"required"},B=i({__name:"Int",props:{df:{},record:{},canEdit:{type:Boolean},ctx:{}},setup(e){const t=e,r=n(()=>t.df.label_layout||"vertical"),l=n({get:()=>{const a=t.record[t.df.fieldname];return a===""||a===void 0?null:Number(a)},set:a=>{t.record[t.df.fieldname]=a}});return(a,o)=>(s(),d("div",{class:y(["field-wrapper",`layout-${r.value}`])},[u("label",g,[f(m(e.ctx.t(e.df.label||e.df.fieldname))+" ",1),e.df.reqd?(s(),d("span",x,"*")):_("",!0)]),b(p(v),{value:l.value,"onUpdate:value":o[0]||(o[0]=c=>l.value=c),precision:0,placeholder:"",disabled:!e.canEdit},null,8,["value","disabled"])],2))}}),V=N(B,[["__scopeId","data-v-5b1ef029"]]),k=Object.freeze(Object.defineProperty({__proto__:null,default:V},Symbol.toStringTag,{value:"Module"}));export{k as _};
