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