import{d as r,c as p,e as a,f as i,s as c,g as f,k as u,h as m,j as _,B as b,n as t,as 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:"Autocomplete",props:{df:{},record:{},canEdit:{type:Boolean},ctx:{}},setup(l){const s=l,d=p(()=>s.df.label_layout||"vertical");return(e,o)=>(t(),a("div",{class:b(["field-wrapper",`layout-${d.value}`])},[i("label",g,[c(f(e.ctx.t(e.df.label||e.df.fieldname))+" ",1),e.df.reqd?(t(),a("span",B,"*")):u("",!0)]),m(_(v),{value:e.record[e.df.fieldname],"onUpdate:value":o[0]||(o[0]=n=>e.record[e.df.fieldname]=n),options:e.ctx.getSelectOptions?e.ctx.getSelectOptions(e.df):[],placeholder:e.ctx.t(e.df.fieldname),disabled:!e.canEdit},null,8,["value","options","placeholder","disabled"])],2))}});const S=y(N,[["__scopeId","data-v-11679784"]]),A=Object.freeze(Object.defineProperty({__proto__:null,default:S},Symbol.toStringTag,{value:"Module"}));export{A as _};
