/*!
 * EdGEL: The University of Edinburgh Design System v5.1.0-rc.1 (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 s,E as l,x as t,c as e}from"./base-C0zcJIOm.js";let r,o,a,i=s=>s;class p extends l{render(){if(!this.colour)return t(r||(r=i``));let s=`badge text-bg-${this.colour}`;return this.pill&&(s=`${s} rounded-pill`),this.url?t(o||(o=i`
        <a href=${0} class=${0}>
          <slot></slot>
        </a>
      `),this.url,s):t(a||(a=i`
      <span class=${0}>
        <slot></slot>
      </span>
    `),s)}}s(p,"properties",{colour:{type:String},pill:{type:Boolean},url:{type:String}}),e("edgel-badge",p);
