var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++){if(a||!(r in t)){if(!a)a=Array.prototype.slice.call(t,0,r);a[r]=t[r]}}return e.concat(a||Array.prototype.slice.call(t))};System.register(["./p-343b3b10.system.js"],(function(e){"use strict";var t,n,r,i;return{setters:[function(e){t=e.r;n=e.c;r=e.h;i=e.H}],execute:function(){var a="dvn-tag-cloud dvn-button{margin-right:4px}";function u(e,t){if(e===void 0){e=[]}if(e.indexOf(t)>-1){return e.filter((function(e){return e!==t}))}else{return __spreadArray(__spreadArray([],e,true),[t],false)}}var l=e("dvn_tag_cloud",function(){function e(e){t(this,e);this.change=n(this,"change",7);this.editable=false;this.value=[];this.options=[]}e.prototype.render=function(){var e=this;var t=this,n=t.disabled,a=t.editable,l=t.options,o=t.value;if(a){return r(i,null,l.map((function(t){return r("dvn-button",{disabled:n,leaned:true,scale:"small",shape:"rounded",tint:o.includes(t.value)?"primary":"neutral",view:o.includes(t.value)?"solid":"outline",onClick:function(n){n.preventDefault();n.stopPropagation();e.change.emit(u(e.value,t.value))}},t.label)})))}return r(i,null,o.map((function(e){var t;return r("dvn-button",{leaned:true,scale:"small",shape:"rounded",view:"outline",tagMode:true},((t=l.find((function(t){return t.value===e})))===null||t===void 0?void 0:t.label)||e)})))};return e}());l.style=a}}}));