/*!
 * EdGEL: The University of Edinburgh Design System v5.0.0 (https://design-system.ed.ac.uk/)
 * Copyright 2014-2023 The University of Edinburgh
 *
 * Bootstrap  v5.3.2 (https://getbootstrap.com/)
 * Copyright 2011-2023 The Bootstrap Authors
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
 */
import{_ as t,E as r,x as i,c as e}from"./base-2Isyko0t.js";let s,n=t=>t;class a extends r{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()}`),i(s||(s=n`<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(a,"properties",{name:{type:String},colour:{type:String}}),e("edgel-icon",a);
