'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-305226cb.js');

const bsToastHeaderCss = "bs-toast-header{display:block}.bs-toast-header :where(h5){font-size:var(--bs-text-md);margin:0}.bs-toast-header:where([data-variant^=\"warning\"]) :where(.bs-toast-header-icon){color:var(--bs-orange-warning)}.bs-toast-header:where([data-variant^=\"positive\"]) :where(.bs-toast-header-icon){color:var(--bs-purple-400)}:where(.dark) .bs-toast-header:where([data-variant^=\"positive\"]) :where(.bs-toast-header-icon){color:var(--bs-purple-200)}.bs-toast-header:where([data-variant^=\"negative\"]) :where(.bs-toast-header-icon){color:var(--bs-red-400)}";

const BsToastHeader = class {
  constructor(hostRef) {
    index.registerInstance(this, hostRef);
    this.variant = undefined;
  }
  /** Get icon based on variant */
  get icon() {
    const attributes = {
      class: 'bs-toast-header-icon'
    };
    switch (this.variant) {
      case 'warning':
        return index.h("bs-icon-warning", Object.assign({}, attributes));
      case 'positive':
        return index.h("bs-icon-thumbs-up-stroke", Object.assign({}, attributes));
      case 'negative':
        return index.h("bs-icon-warning", Object.assign({}, attributes));
      default:
        return index.h("bs-icon-circle-exclamation", Object.assign({}, attributes));
    }
  }
  render() {
    return (index.h(index.Host, { "data-variant": this.variant }, index.h("div", { class: "bs-toast-header", "data-variant": this.variant }, this.icon, index.h("h5", null, index.h("slot", null)))));
  }
};
BsToastHeader.style = bsToastHeaderCss;

exports.bs_toast_header = BsToastHeader;

//# sourceMappingURL=bs-toast-header.cjs.entry.js.map