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