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