import { html } from "lit";
import { property } from "lit/decorators.js";
import "../../icons/icon-converter-dcdc-on.js";
import "../../icons/icon-converter-dcdc-off.js";
import "../../icons/icon-converter-dcac-on.js";
import "../../icons/icon-converter-dcac-off.js";
import "../../icons/icon-converter-acdc-on.js";
import "../../icons/icon-converter-acdc-off.js";
import "../../icons/icon-converter-filter-1-on.js";
import "../../icons/icon-converter-filter-1-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 ConverterAlternativeIcon = /* @__PURE__ */ ((ConverterAlternativeIcon2) => {
  ConverterAlternativeIcon2["converterDcdc"] = "converterDcdc";
  ConverterAlternativeIcon2["converterDcac"] = "converterDcac";
  ConverterAlternativeIcon2["converterAcdc"] = "converterAcdc";
  ConverterAlternativeIcon2["converterFilter1"] = "converterFilter1";
  return ConverterAlternativeIcon2;
})(ConverterAlternativeIcon || {});
let ObcConverter = class extends ObcAbstractAutomationButtonSquared {
  constructor() {
    super(...arguments);
    this.alternativeIcon = "converterDcdc";
  }
  get icon() {
    switch (this.alternativeIcon) {
      case "converterDcac":
        if (this.on) {
          return html`<obi-converter-dcac-on
              usecsscolor
              slot="icon"
            ></obi-converter-dcac-on>
            <obi-converter-dcac-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-converter-dcac-on>`;
        } else {
          return html`<obi-converter-dcac-off
              usecsscolor
              slot="icon"
            ></obi-converter-dcac-off>
            <obi-converter-dcac-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-converter-dcac-off>`;
        }
      case "converterAcdc":
        if (this.on) {
          return html`<obi-converter-acdc-on
              usecsscolor
              slot="icon"
            ></obi-converter-acdc-on>
            <obi-converter-acdc-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-converter-acdc-on>`;
        } else {
          return html`<obi-converter-acdc-off
              usecsscolor
              slot="icon"
            ></obi-converter-acdc-off>
            <obi-converter-acdc-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-converter-acdc-off>`;
        }
      case "converterFilter1":
        if (this.on) {
          return html`<obi-converter-filter-1-on
              usecsscolor
              slot="icon"
            ></obi-converter-filter-1-on>
            <obi-converter-filter-1-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-converter-filter-1-on>`;
        } else {
          return html`<obi-converter-filter-1-off
              usecsscolor
              slot="icon"
            ></obi-converter-filter-1-off>
            <obi-converter-filter-1-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-converter-filter-1-off>`;
        }
      default:
        if (this.on) {
          return html`<obi-converter-dcdc-on
              usecsscolor
              slot="icon"
            ></obi-converter-dcdc-on>
            <obi-converter-dcdc-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-converter-dcdc-on>`;
        } else {
          return html`<obi-converter-dcdc-off
              usecsscolor
              slot="icon"
            ></obi-converter-dcdc-off>
            <obi-converter-dcdc-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-converter-dcdc-off>`;
        }
    }
  }
};
__decorateClass([
  property({ type: String })
], ObcConverter.prototype, "alternativeIcon", 2);
ObcConverter = __decorateClass([
  customElement("obc-converter")
], ObcConverter);
export {
  ConverterAlternativeIcon,
  ObcConverter
};
//# sourceMappingURL=converter.js.map
