import { html } from "lit";
import { property } from "lit/decorators.js";
import "../../icons/icon-resistor-1-on.js";
import "../../icons/icon-resistor-1-off.js";
import "../../icons/icon-resistor-2-on.js";
import "../../icons/icon-resistor-2-off.js";
import "../../icons/icon-resistor-3-on.js";
import "../../icons/icon-resistor-3-off.js";
import "../../icons/icon-resistor-4-on.js";
import "../../icons/icon-resistor-4-off.js";
import "../../icons/icon-resistor-5-on.js";
import "../../icons/icon-resistor-5-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 ResistorAlternativeIcon = /* @__PURE__ */ ((ResistorAlternativeIcon2) => {
  ResistorAlternativeIcon2["resistor1"] = "resistor1";
  ResistorAlternativeIcon2["resistor2"] = "resistor2";
  ResistorAlternativeIcon2["resistor3"] = "resistor3";
  ResistorAlternativeIcon2["resistor4"] = "resistor4";
  ResistorAlternativeIcon2["resistor5"] = "resistor5";
  return ResistorAlternativeIcon2;
})(ResistorAlternativeIcon || {});
let ObcResistor = class extends ObcAbstractAutomationButtonSquared {
  constructor() {
    super(...arguments);
    this.alternativeIcon = "resistor1";
  }
  get icon() {
    switch (this.alternativeIcon) {
      case "resistor2":
        if (this.on) {
          return html`<obi-resistor-2-on
              usecsscolor
              slot="icon"
            ></obi-resistor-2-on>
            <obi-resistor-2-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-2-on>`;
        } else {
          return html`<obi-resistor-2-off
              usecsscolor
              slot="icon"
            ></obi-resistor-2-off>
            <obi-resistor-2-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-2-off>`;
        }
      case "resistor3":
        if (this.on) {
          return html`<obi-resistor-3-on
              usecsscolor
              slot="icon"
            ></obi-resistor-3-on>
            <obi-resistor-3-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-3-on>`;
        } else {
          return html`<obi-resistor-3-off
              usecsscolor
              slot="icon"
            ></obi-resistor-3-off>
            <obi-resistor-3-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-3-off>`;
        }
      case "resistor4":
        if (this.on) {
          return html`<obi-resistor-4-on
              usecsscolor
              slot="icon"
            ></obi-resistor-4-on>
            <obi-resistor-4-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-4-on>`;
        } else {
          return html`<obi-resistor-4-off
              usecsscolor
              slot="icon"
            ></obi-resistor-4-off>
            <obi-resistor-4-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-4-off>`;
        }
      case "resistor5":
        if (this.on) {
          return html`<obi-resistor-5-on
              usecsscolor
              slot="icon"
            ></obi-resistor-5-on>
            <obi-resistor-5-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-5-on>`;
        } else {
          return html`<obi-resistor-5-off
              usecsscolor
              slot="icon"
            ></obi-resistor-5-off>
            <obi-resistor-5-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-5-off>`;
        }
      default:
        if (this.on) {
          return html`<obi-resistor-1-on
              usecsscolor
              slot="icon"
            ></obi-resistor-1-on>
            <obi-resistor-1-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-1-on>`;
        } else {
          return html`<obi-resistor-1-off
              usecsscolor
              slot="icon"
            ></obi-resistor-1-off>
            <obi-resistor-1-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-resistor-1-off>`;
        }
    }
  }
};
__decorateClass([
  property({ type: String })
], ObcResistor.prototype, "alternativeIcon", 2);
ObcResistor = __decorateClass([
  customElement("obc-resistor")
], ObcResistor);
export {
  ObcResistor,
  ResistorAlternativeIcon
};
//# sourceMappingURL=resistor.js.map
