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