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