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