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