import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { d as defineCustomElement$2 } from './sw-input-button2.js';

const swModalGenericCss = ":host{display:block}.modal-wrapper{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;display:flex;justify-content:center;align-items:center}.modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background-color:rgba(0, 0, 0, 0.5);display:flex;justify-content:center;align-items:center}.modal{position:relative;background-color:#fff;border-radius:4px;box-shadow:0 0 10px 0 rgba(0, 0, 0, 0.2);padding:20px;width:100%;max-width:600px;min-height:200px;display:flex;flex-direction:column;justify-content:space-between}";

const SwModalGeneric$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
  constructor() {
    super();
    this.__registerHost();
    this.__attachShadow();
  }
  render() {
    return (h("div", { class: "modal-wrapper" }, h("div", { class: "modal-overlay" }, h("div", { class: "modal" }, h("div", { class: "header" }, h("h6", null, "Modal header"), h("div", { class: "close" })), h("div", { class: "body" }, "prova"), h("div", { class: "footer" }, h("sw-input-button", { dark: true, text: "cliccami" }))))));
  }
  static get style() { return swModalGenericCss; }
}, [1, "sw-modal-generic"]);
function defineCustomElement$1() {
  if (typeof customElements === "undefined") {
    return;
  }
  const components = ["sw-modal-generic", "sw-input-button"];
  components.forEach(tagName => { switch (tagName) {
    case "sw-modal-generic":
      if (!customElements.get(tagName)) {
        customElements.define(tagName, SwModalGeneric$1);
      }
      break;
    case "sw-input-button":
      if (!customElements.get(tagName)) {
        defineCustomElement$2();
      }
      break;
  } });
}
defineCustomElement$1();

const SwModalGeneric = SwModalGeneric$1;
const defineCustomElement = defineCustomElement$1;

export { SwModalGeneric, defineCustomElement };
