import{Y as e}from"./element-plus-DSMJnpwa.js";import{d as a}from"./index-mv7arXuk.js";/* empty css               */import{B as l,H as s,L as u,F as o,ab as n,R as r,Z as t,I as p,O as v,Y as i,X as d,u as y,c as T}from"./vue-vendor-DZekML78.js";const g=["index"],m=a(l({__name:"index",props:{options:{},value:{},showValue:{type:Boolean,default:!0},separator:{default:","}},setup(a){const l=a,m=T(()=>""===l.value||null===l.value||void 0===l.value?[]:"number"==typeof l.value||"boolean"==typeof l.value?[l.value]:Array.isArray(l.value)?l.value.map(e=>""+e):String(l.value).split(l.separator)),c=T(()=>{if(0==l.options?.length||""===l.value||null===l.value||void 0===l.value)return!1;let e=!1;return m.value.forEach(a=>{l.options.some(e=>e.value==a)||(e=!0)}),e}),f=T(()=>{const e=[];return""!==l.value&&null!==l.value&&void 0!==l.value&&m.value.forEach(a=>{l.options.some(e=>e.value===a)||e.push(a)}),b(e)}),b=e=>0===e.length?"":e.reduce((e,a)=>e+" "+a);return(l,T)=>{const b=e;return s(),u("div",null,[(s(!0),u(o,null,n(a.options,(e,a)=>{return s(),u(o,null,[(l=e.value,m.value.some(e=>e==l)?(s(),u(o,{key:0},["default"!==e.elTagType&&""!==e.elTagType||""!==e.elTagClass&&null!=e.elTagClass?(s(),p(b,{key:e.value+"","disable-transitions":!0,index:a,type:"primary"===e.elTagType||"success"===e.elTagType||"info"===e.elTagType||"warning"===e.elTagType||"danger"===e.elTagType?e.elTagType:"primary",class:r(e.elTagClass)},{default:v(()=>[i(t(e.label+" "),1)]),_:2},1032,["index","type","class"])):(s(),u("span",{key:e.value,index:a,class:r(e.elTagClass)},t(e.label+" "),11,g))],64)):d("",!0))],64);var l}),256)),y(c)&&a.showValue?(s(),u(o,{key:0},[i(t(y(f)),1)],64)):d("",!0)])}}}),[["__scopeId","data-v-8be7ad2e"]]);export{m as _};
