import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { d as defineCustomElement$3 } from './ecl-icon2.js';
import { d as defineCustomElement$2 } from './ecl-link2.js';

const EclInpageNavigationItem$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
  constructor() {
    super();
    this.__registerHost();
    this.theme = 'ec';
    this.styleClass = undefined;
    this.path = undefined;
  }
  getClass() {
    return [
      `ecl-inpage-navigation__item`,
      `sc-ecl-inpage-navigation-${this.theme}`,
      this.styleClass
    ].join(' ');
  }
  render() {
    return (h("li", { class: this.getClass() }, h("ecl-link", { path: this.path, "style-class": `ecl-inpage-navigation__link sc-ecl-inpage-navigation-${this.theme}`, "data-ecl-inpage-navigation-link": true }, h("slot", null))));
  }
}, [4, "ecl-inpage-navigation-item", {
    "theme": [1],
    "styleClass": [1, "style-class"],
    "path": [1]
  }]);
function defineCustomElement$1() {
  if (typeof customElements === "undefined") {
    return;
  }
  const components = ["ecl-inpage-navigation-item", "ecl-icon", "ecl-link"];
  components.forEach(tagName => { switch (tagName) {
    case "ecl-inpage-navigation-item":
      if (!customElements.get(tagName)) {
        customElements.define(tagName, EclInpageNavigationItem$1);
      }
      break;
    case "ecl-icon":
      if (!customElements.get(tagName)) {
        defineCustomElement$3();
      }
      break;
    case "ecl-link":
      if (!customElements.get(tagName)) {
        defineCustomElement$2();
      }
      break;
  } });
}

const EclInpageNavigationItem = EclInpageNavigationItem$1;
const defineCustomElement = defineCustomElement$1;

export { EclInpageNavigationItem, defineCustomElement };

//# sourceMappingURL=ecl-inpage-navigation-item.js.map