"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("element-plus"),d=e.defineComponent({__name:"enum",props:{valueEnum:{type:Array,default(){return[]}},value:[String,Number,Array]},setup(c){const u=r.useNamespace("table-cell-state"),l=c,p=e.computed(()=>{if(l.value===void 0)return null;const a=l.valueEnum.map(t=>t&&typeof t=="object"?t:{label:t,value:t}),o=Array.isArray(l.value)?l.value:[l.value],n=[];return o.forEach(t=>{const s=a.find(i=>i.value===t);s&&n.push(s)}),n});return(a,o)=>l.value!==void 0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(u).b())},[e.createVNode(e.unref(r.ElSpace),null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(n,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElSpace),{key:t,size:[0,0]},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(u).e("dot"),n.status?`is-${n.status}`:""])},null,2),e.createElementVNode("span",null,e.toDisplayString(n.label),1)]),_:2},1024))),128))]),_:1})],2)):e.createCommentVNode("",!0)}});exports.default=d;
