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