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