System.register(["./index-0425c4de.system.js"],(function(e){"use strict";var i,t,r,s,n;return{setters:[function(e){i=e.r;t=e.e;r=e.h;s=e.f;n=e.g}],execute:function(){var a=':host{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;cursor:pointer;white-space:nowrap;font-family:"Nunito Sans", "Carbona", "Tahoma", "Helvetica", "Arial", sans-serif;font-weight:600}:host(.chip){border-radius:8px;padding:3px 8px}:host(.chip--primary){background:#e8f2ff;color:#3f7de8}:host(.chip--click.chip--primary:hover){background:#d1e3fa;color:#125ad5}:host(.chip--watermelon){background:#fb5a8b;color:#ffffff}:host(.chip--default){background:#f8fbfb;color:#8ca0b3}:host(.chip--danger){background:#ffa5a5;color:#ff4c4c}:host(.chip--click.chip--danger:hover){background:#fccccc;color:#6a2026}:host(.chip--filter){background:#125ad5;color:#ffffff}:host(.chip--click.chip--filter:hover){background:#0747a6;color:#ffffff}:host(.chip--standard){height:24px;font-size:0.75rem}:host(.chip--tall){height:32px;font-size:0.875rem}.chip__delete{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-left:6px;cursor:pointer}.chip__icon{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-right:4px}';var l=e("bds_chip",function(){function e(e){i(this,e);this.bdsDelete=t(this,"bdsDelete",7);this.icon=undefined;this.size="standard";this.variant="default";this.danger=false;this.filter=false;this.clickable=false;this.deletable=false;this.disabled=false}e.prototype.handleClickDelete=function(e){if(!this.deletable||this.disabled)return;e.preventDefault();this.bdsDelete.emit({id:this.element.id})};e.prototype.getClickClass=function(){return this.clickable?{"chip--click":true}:{}};e.prototype.getSizeClass=function(){return this.size==="standard"?{"chip--standard":true}:{"chip--tall":true}};e.prototype.getStateClass=function(){if(this.disabled){return{"chip--default":true}}if(this.danger){return{"chip--danger":true}}if(this.filter){return{"chip--filter":true}}if(this.variant==="primary"){return{"chip--primary":true}}if(this.variant==="watermelon"){return{"chip--watermelon":true}}return{"chip--default":true}};e.prototype.render=function(){return r(s,{class:Object.assign(Object.assign(Object.assign({chip:true},this.getClickClass()),this.getStateClass()),this.getSizeClass())},this.icon&&r("div",{class:"chip__icon"},r("bds-icon",{size:"x-small",name:this.icon})),r("slot",null),this.deletable&&r("div",{class:"chip__delete",onClick:this.handleClickDelete.bind(this)},r("bds-icon",{size:"x-small",theme:"solid",name:"error"})))};Object.defineProperty(e.prototype,"element",{get:function(){return n(this)},enumerable:false,configurable:true});return e}());l.style=a}}}));