import{E as C}from"./index-B7j6XCDK.js";import{d as b,o as r,c as u,I as t,J as k,K as d,z as c,a0 as x,p as A,y as v,$ as i,e as T,T as f,G as E}from"./index-XuO881sr.js";/* empty css               */const V=["index"],w=b({__name:"index",props:{options:{},value:{},showValue:{type:Boolean,default:!0},separator:{default:","}},setup(o){const e=o,p=f(()=>e.value===""||e.value===null||typeof e.value>"u"?[]:typeof e.value=="number"||typeof e.value=="boolean"?[e.value]:Array.isArray(e.value)?e.value.map(l=>""+l):String(e.value).split(e.separator)),g=f(()=>{if(e.options?.length==0||e.value===""||e.value===null||typeof e.value>"u")return!1;let l=!1;return p.value.forEach(n=>{e.options.some(s=>s.value==n)||(l=!0)}),l}),_=f(()=>{const l=[];return e.value!==""&&e.value!==null&&typeof e.value<"u"&&p.value.forEach(n=>{e.options.some(s=>s.value===n)||l.push(n)}),h(l)}),h=l=>l.length===0?"":l.reduce((n,s)=>n+" "+s),m=l=>p.value.some(n=>n==l);return(l,n)=>{const s=C;return r(),u("div",null,[(r(!0),u(t,null,k(o.options,(a,y)=>(r(),u(t,null,[m(a.value)?(r(),u(t,{key:0},[(a.elTagType==="default"||a.elTagType==="")&&(a.elTagClass===""||a.elTagClass==null)?(r(),u("span",{key:a.value,index:y,class:d(a.elTagClass)},c(a.label+" "),11,V)):(r(),x(s,{key:a.value+"","disable-transitions":!0,index:y,type:a.elTagType==="primary"||a.elTagType==="success"||a.elTagType==="info"||a.elTagType==="warning"||a.elTagType==="danger"?a.elTagType:"primary",class:d(a.elTagClass)},{default:A(()=>[v(c(a.label+" "),1)]),_:2},1032,["index","type","class"]))],64)):i("",!0)],64))),256)),T(g)&&o.showValue?(r(),u(t,{key:0},[v(c(T(_)),1)],64)):i("",!0)])}}}),N=E(w,[["__scopeId","data-v-04beb8d4"]]);export{N as _};
