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