import{r as e,h as l}from"./p-DBTJNfo7.js";import{g as r}from"./p-CgNJbSP4.js";const i=class{constructor(l){e(this,l),this.defaultLabel={},this.labels=[]}render(){var e,l;const r=this.labels.find((e=>e.value===this.value));return[this.renderIcon(null!==(e=null==r?void 0:r.icon)&&void 0!==e?e:this.defaultLabel.icon),this.renderLabel(null!==(l=null==r?void 0:r.text)&&void 0!==l?l:this.defaultLabel.text)]}renderIcon(e){const i=r(e);if(!i)return;let o,t;return"object"==typeof e&&(o=e.color,t=e.backgroundColor),l("limel-icon",Object.assign({},{role:"presentation",name:i,style:{color:o,"background-color":t}}))}renderLabel(e=""){return l("label",null,e)}};i.style="*{box-sizing:border-box;min-width:0}:host(limel-dynamic-label){--limel-dynamic-label-min-height:1.75rem;display:flex;gap:0.25rem;align-items:flex-start;border-radius:0.5rem;min-width:0}limel-icon{--limel-icon-svg-margin:0.125rem;border-radius:0.25rem;flex-shrink:0;width:var(--limel-dynamic-label-min-height);color:rgb(var(--contrast-900))}label{flex-grow:1;font-size:var(--limel-theme-default-small-font-size);line-height:normal;color:var(--limel-theme-on-surface-color);padding-top:0.375rem}";export{i as limel_dynamic_label}