/*!
 * EdGEL: The University of Edinburgh Design System v5.3.1 (https://design-system.ed.ac.uk/)
 * Copyright 2014-2025 The University of Edinburgh
 *
 * Bootstrap  v5.3.3 (https://getbootstrap.com/)
 * Copyright 2011-2024 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */
import{_ as t,i as e,a as i,x as s,c as r}from"./base-D29SVYIK.js";let n,o,a=t=>t;class m extends i{constructor(){super(),this.name="",this.colour=""}render(){if(/^[\da-z-]+$/.test(this.name.trim())){const t=["bi",`bi-${this.name.trim()}`];return this.colour.trim()&&t.push(`text-${this.colour.trim()}`),s(n||(n=a`<span class=${0} aria-hidden="true"></span>`),t.join(" "))}throw new Error(this.name.trim()?"Invalid icon name format":"Missing icon name required attribute")}}t(m,"properties",{name:{type:String},colour:{type:String}}),t(m,"styles",e(o||(o=a`
    :host {
      font-size: unset;
      line-height: unset;
    }
  `))),r("edgel-icon",m);
