import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
import { d as defineCustomElement$1 } from './bs-transition2.js';

const bsOverlayCss = ".bs-overlay{backdrop-filter:blur(4px);background:rgba(29, 30, 72, 0.05);bottom:0;left:0;opacity:0;position:fixed;right:0;top:0;transition-duration:75ms;transition-property:opacity;transition-timing-function:ease-in-out;z-index:9998}.bs-overlay:where([data-shown]){opacity:1}bs-overlay{display:block}";

const BsOverlay = /*@__PURE__*/ proxyCustomElement(class BsOverlay extends HTMLElement {
  constructor() {
    super();
    this.__registerHost();
    this.enterend = createEvent(this, "enterend", 3);
    this.leaveend = createEvent(this, "leaveend", 3);
    this.enterControlled = false;
    this.enterTrigger = false;
    this.leaveTrigger = false;
  }
  render() {
    return (h(Host, null, h("bs-transition", { enterAttribute: 'data-shown', enterDuration: 75, enterControlled: this.enterControlled, enterTrigger: this.enterTrigger, leaveTrigger: this.leaveTrigger, onEnterend: () => this.enterend.emit(), onLeaveend: () => this.leaveend.emit() }, h("div", { class: "bs-overlay" }))));
  }
  static get style() { return bsOverlayCss; }
}, [0, "bs-overlay", {
    "enterControlled": [4, "enter-controlled"],
    "enterTrigger": [4, "enter-trigger"],
    "leaveTrigger": [4, "leave-trigger"]
  }]);
function defineCustomElement() {
  if (typeof customElements === "undefined") {
    return;
  }
  const components = ["bs-overlay", "bs-transition"];
  components.forEach(tagName => { switch (tagName) {
    case "bs-overlay":
      if (!customElements.get(tagName)) {
        customElements.define(tagName, BsOverlay);
      }
      break;
    case "bs-transition":
      if (!customElements.get(tagName)) {
        defineCustomElement$1();
      }
      break;
  } });
}

export { BsOverlay as B, defineCustomElement as d };

//# sourceMappingURL=bs-overlay2.js.map