import { html } from "lit";
import { property } from "lit/decorators.js";
import "../../icons/icon-logic-01-on.js";
import "../../icons/icon-logic-01-off.js";
import "../../icons/icon-logic-02-on.js";
import "../../icons/icon-logic-02-off.js";
import "../../icons/icon-logic-03-on.js";
import "../../icons/icon-logic-03-off.js";
import "../../icons/icon-logic-04-on.js";
import "../../icons/icon-logic-04-off.js";
import "../../icons/icon-logic-05-on.js";
import "../../icons/icon-logic-05-off.js";
import "../../icons/icon-logic-06-on.js";
import "../../icons/icon-logic-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 LogicAlternativeIcon = /* @__PURE__ */ ((LogicAlternativeIcon2) => {
  LogicAlternativeIcon2["logic01"] = "logic01";
  LogicAlternativeIcon2["logic02"] = "logic02";
  LogicAlternativeIcon2["logic03"] = "logic03";
  LogicAlternativeIcon2["logic04"] = "logic04";
  LogicAlternativeIcon2["logic05"] = "logic05";
  LogicAlternativeIcon2["logic06"] = "logic06";
  return LogicAlternativeIcon2;
})(LogicAlternativeIcon || {});
let ObcLogic = class extends ObcAbstractAutomationButtonSquared {
  constructor() {
    super(...arguments);
    this.alternativeIcon = "logic01";
  }
  get icon() {
    switch (this.alternativeIcon) {
      case "logic02":
        if (this.on) {
          return html`<obi-logic-02-on
              usecsscolor
              slot="icon"
            ></obi-logic-02-on>
            <obi-logic-02-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-02-on>`;
        } else {
          return html`<obi-logic-02-off
              usecsscolor
              slot="icon"
            ></obi-logic-02-off>
            <obi-logic-02-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-02-off>`;
        }
      case "logic03":
        if (this.on) {
          return html`<obi-logic-03-on
              usecsscolor
              slot="icon"
            ></obi-logic-03-on>
            <obi-logic-03-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-03-on>`;
        } else {
          return html`<obi-logic-03-off
              usecsscolor
              slot="icon"
            ></obi-logic-03-off>
            <obi-logic-03-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-03-off>`;
        }
      case "logic04":
        if (this.on) {
          return html`<obi-logic-04-on
              usecsscolor
              slot="icon"
            ></obi-logic-04-on>
            <obi-logic-04-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-04-on>`;
        } else {
          return html`<obi-logic-04-off
              usecsscolor
              slot="icon"
            ></obi-logic-04-off>
            <obi-logic-04-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-04-off>`;
        }
      case "logic05":
        if (this.on) {
          return html`<obi-logic-05-on
              usecsscolor
              slot="icon"
            ></obi-logic-05-on>
            <obi-logic-05-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-05-on>`;
        } else {
          return html`<obi-logic-05-off
              usecsscolor
              slot="icon"
            ></obi-logic-05-off>
            <obi-logic-05-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-05-off>`;
        }
      case "logic06":
        if (this.on) {
          return html`<obi-logic-06-on
              usecsscolor
              slot="icon"
            ></obi-logic-06-on>
            <obi-logic-06-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-06-on>`;
        } else {
          return html`<obi-logic-06-off
              usecsscolor
              slot="icon"
            ></obi-logic-06-off>
            <obi-logic-06-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-06-off>`;
        }
      default:
        if (this.on) {
          return html`<obi-logic-01-on
              usecsscolor
              slot="icon"
            ></obi-logic-01-on>
            <obi-logic-01-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-01-on>`;
        } else {
          return html`<obi-logic-01-off
              usecsscolor
              slot="icon"
            ></obi-logic-01-off>
            <obi-logic-01-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-logic-01-off>`;
        }
    }
  }
};
__decorateClass([
  property({ type: String })
], ObcLogic.prototype, "alternativeIcon", 2);
ObcLogic = __decorateClass([
  customElement("obc-logic")
], ObcLogic);
export {
  LogicAlternativeIcon,
  ObcLogic
};
//# sourceMappingURL=logic.js.map
