import { html } from "lit";
import { property } from "lit/decorators.js";
import "../../icons/icon-transformer-01-on.js";
import "../../icons/icon-transformer-01-off.js";
import "../../icons/icon-transformer-02-on.js";
import "../../icons/icon-transformer-02-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 TransformerAlternativeIcon = /* @__PURE__ */ ((TransformerAlternativeIcon2) => {
  TransformerAlternativeIcon2["transformer01"] = "transformer01";
  TransformerAlternativeIcon2["transformer02"] = "transformer02";
  return TransformerAlternativeIcon2;
})(TransformerAlternativeIcon || {});
let ObcTransformer = class extends ObcAbstractAutomationButtonSquared {
  constructor() {
    super(...arguments);
    this.alternativeIcon = "transformer01";
  }
  get icon() {
    switch (this.alternativeIcon) {
      case "transformer02":
        if (this.on) {
          return html`<obi-transformer-02-on
              usecsscolor
              slot="icon"
            ></obi-transformer-02-on>
            <obi-transformer-02-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-transformer-02-on>`;
        } else {
          return html`<obi-transformer-02-off
              usecsscolor
              slot="icon"
            ></obi-transformer-02-off>
            <obi-transformer-02-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-transformer-02-off>`;
        }
      default:
        if (this.on) {
          return html`<obi-transformer-01-on
              usecsscolor
              slot="icon"
            ></obi-transformer-01-on>
            <obi-transformer-01-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-transformer-01-on>`;
        } else {
          return html`<obi-transformer-01-off
              usecsscolor
              slot="icon"
            ></obi-transformer-01-off>
            <obi-transformer-01-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-transformer-01-off>`;
        }
    }
  }
};
__decorateClass([
  property({ type: String })
], ObcTransformer.prototype, "alternativeIcon", 2);
ObcTransformer = __decorateClass([
  customElement("obc-transformer")
], ObcTransformer);
export {
  ObcTransformer,
  TransformerAlternativeIcon
};
//# sourceMappingURL=transformer.js.map
