import { html } from "lit";
import { property } from "lit/decorators.js";
import "../../icons/icon-diodes-01-on.js";
import "../../icons/icon-diodes-01-off.js";
import "../../icons/icon-diodes-02-on.js";
import "../../icons/icon-diodes-02-off.js";
import "../../icons/icon-diodes-03-on.js";
import "../../icons/icon-diodes-03-off.js";
import "../../icons/icon-diodes-04-on.js";
import "../../icons/icon-diodes-04-off.js";
import "../../icons/icon-diodes-05-on.js";
import "../../icons/icon-diodes-05-off.js";
import "../../icons/icon-diodes-06-on.js";
import "../../icons/icon-diodes-06-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 DiodesAlternativeIcon = /* @__PURE__ */ ((DiodesAlternativeIcon2) => {
  DiodesAlternativeIcon2["diodes01"] = "diodes01";
  DiodesAlternativeIcon2["diodes02"] = "diodes02";
  DiodesAlternativeIcon2["diodes03"] = "diodes03";
  DiodesAlternativeIcon2["diodes04"] = "diodes04";
  DiodesAlternativeIcon2["diodes05"] = "diodes05";
  DiodesAlternativeIcon2["diodes06"] = "diodes06";
  return DiodesAlternativeIcon2;
})(DiodesAlternativeIcon || {});
let ObcDiodes = class extends ObcAbstractAutomationButtonSquared {
  constructor() {
    super(...arguments);
    this.alternativeIcon = "diodes01";
  }
  get icon() {
    switch (this.alternativeIcon) {
      case "diodes02":
        if (this.on) {
          return html`<obi-diodes-02-on
              usecsscolor
              slot="icon"
            ></obi-diodes-02-on>
            <obi-diodes-02-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-02-on>`;
        } else {
          return html`<obi-diodes-02-off
              usecsscolor
              slot="icon"
            ></obi-diodes-02-off>
            <obi-diodes-02-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-02-off>`;
        }
      case "diodes03":
        if (this.on) {
          return html`<obi-diodes-03-on
              usecsscolor
              slot="icon"
            ></obi-diodes-03-on>
            <obi-diodes-03-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-03-on>`;
        } else {
          return html`<obi-diodes-03-off
              usecsscolor
              slot="icon"
            ></obi-diodes-03-off>
            <obi-diodes-03-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-03-off>`;
        }
      case "diodes04":
        if (this.on) {
          return html`<obi-diodes-04-on
              usecsscolor
              slot="icon"
            ></obi-diodes-04-on>
            <obi-diodes-04-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-04-on>`;
        } else {
          return html`<obi-diodes-04-off
              usecsscolor
              slot="icon"
            ></obi-diodes-04-off>
            <obi-diodes-04-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-04-off>`;
        }
      case "diodes05":
        if (this.on) {
          return html`<obi-diodes-05-on
              usecsscolor
              slot="icon"
            ></obi-diodes-05-on>
            <obi-diodes-05-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-05-on>`;
        } else {
          return html`<obi-diodes-05-off
              usecsscolor
              slot="icon"
            ></obi-diodes-05-off>
            <obi-diodes-05-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-05-off>`;
        }
      case "diodes06":
        if (this.on) {
          return html`<obi-diodes-06-on
              usecsscolor
              slot="icon"
            ></obi-diodes-06-on>
            <obi-diodes-06-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-06-on>`;
        } else {
          return html`<obi-diodes-06-off
              usecsscolor
              slot="icon"
            ></obi-diodes-06-off>
            <obi-diodes-06-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-06-off>`;
        }
      default:
        if (this.on) {
          return html`<obi-diodes-01-on
              usecsscolor
              slot="icon"
            ></obi-diodes-01-on>
            <obi-diodes-01-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-01-on>`;
        } else {
          return html`<obi-diodes-01-off
              usecsscolor
              slot="icon"
            ></obi-diodes-01-off>
            <obi-diodes-01-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-diodes-01-off>`;
        }
    }
  }
};
__decorateClass([
  property({ type: String })
], ObcDiodes.prototype, "alternativeIcon", 2);
ObcDiodes = __decorateClass([
  customElement("obc-diodes")
], ObcDiodes);
export {
  DiodesAlternativeIcon,
  ObcDiodes
};
//# sourceMappingURL=diodes.js.map
