import { html } from "lit";
import { property } from "lit/decorators.js";
import "../../icons/icon-router-on.js";
import "../../icons/icon-router-off.js";
import "../../icons/icon-router-2-on.js";
import "../../icons/icon-router-2-off.js";
import { customElement } from "../../decorator.js";
import { ObcAbstractAutomationButtonSquared } from "../automation-button/abstract-automation-button-squared.js";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __decorateClass = (decorators, target, key, kind) => {
  var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = (kind ? decorator(target, key, result) : decorator(result)) || result;
  if (kind && result) __defProp(target, key, result);
  return result;
};
var RouterAlternativeIcon = /* @__PURE__ */ ((RouterAlternativeIcon2) => {
  RouterAlternativeIcon2["router"] = "router";
  RouterAlternativeIcon2["router2"] = "router2";
  return RouterAlternativeIcon2;
})(RouterAlternativeIcon || {});
let ObcRouter = class extends ObcAbstractAutomationButtonSquared {
  constructor() {
    super(...arguments);
    this.alternativeIcon = "router";
  }
  get icon() {
    switch (this.alternativeIcon) {
      case "router2":
        if (this.on) {
          return html`<obi-router-2-on
              usecsscolor
              slot="icon"
            ></obi-router-2-on>
            <obi-router-2-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-router-2-on>`;
        } else {
          return html`<obi-router-2-off
              usecsscolor
              slot="icon"
            ></obi-router-2-off>
            <obi-router-2-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-router-2-off>`;
        }
      default:
        if (this.on) {
          return html`<obi-router-on usecsscolor slot="icon"></obi-router-on>
            <obi-router-on usecsscolor slot="icon-silhouette"></obi-router-on>`;
        } else {
          return html`<obi-router-off usecsscolor slot="icon"></obi-router-off>
            <obi-router-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-router-off>`;
        }
    }
  }
};
__decorateClass([
  property({ type: String })
], ObcRouter.prototype, "alternativeIcon", 2);
ObcRouter = __decorateClass([
  customElement("obc-router")
], ObcRouter);
export {
  ObcRouter,
  RouterAlternativeIcon
};
//# sourceMappingURL=router.js.map
