import{d as n,A as a,J as s,_ as i,P as r,O as u,B as f,j as m,au 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 S={class:"field-label"},g={key:0,class:"required"},B=n({__name:"MultiSelect",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",S,[i(r(e.ctx.t(e.df.label||e.df.fieldname))+" ",1),e.df.reqd?(l(),a("span",g,"*")):u("",!0)]),f(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):[],multiple:"",placeholder:"",disabled:!e.canEdit},null,8,["value","options","disabled"])],2))}}),N=y(B,[["__scopeId","data-v-a53c03e5"]]),k=Object.freeze(Object.defineProperty({__proto__:null,default:N},Symbol.toStringTag,{value:"Module"}));export{k as _};
