import{r as t,c as e,h as n,H as s}from"./p-1ea36ff3.js";let i=class{constructor(n){t(this,n),this.change=e(this,"change",7),this.editable=!1,this.value=[],this.options=[]}render(){const{disabled:t,editable:e,options:i,value:a}=this;return n(s,null,e?i.map((e=>n("dvn-button",{disabled:t,leaned:!0,scale:"small",shape:"rounded",tint:a.includes(e.value)?"primary":"neutral",view:a.includes(e.value)?"solid":"outline",onClick:t=>{t.preventDefault(),t.stopPropagation(),this.change.emit(function(t=[],e){return t.indexOf(e)>-1?t.filter((t=>t!==e)):[...t,e]}(this.value,e.value))}},e.label))):a.map((t=>{var e;return n("dvn-button",{leaned:!0,scale:"small",shape:"rounded",view:"outline",tagMode:!0},(null===(e=i.find((e=>e.value===t)))||void 0===e?void 0:e.label)||t)})))}};i.style="dvn-tag-cloud dvn-button{margin-right:4px}";export{i as dvn_tag_cloud}