import { html } from "lit";
import { property } from "lit/decorators.js";
import "../../icons/icon-sources-01-on.js";
import "../../icons/icon-sources-01-off.js";
import "../../icons/icon-sources-02-on.js";
import "../../icons/icon-sources-02-off.js";
import "../../icons/icon-sources-03-on.js";
import "../../icons/icon-sources-03-off.js";
import "../../icons/icon-sources-04-on.js";
import "../../icons/icon-sources-04-off.js";
import "../../icons/icon-sources-05-on.js";
import "../../icons/icon-sources-05-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 SourceAlternativeIcon = /* @__PURE__ */ ((SourceAlternativeIcon2) => {
  SourceAlternativeIcon2["sources01"] = "sources01";
  SourceAlternativeIcon2["sources02"] = "sources02";
  SourceAlternativeIcon2["sources03"] = "sources03";
  SourceAlternativeIcon2["sources04"] = "sources04";
  SourceAlternativeIcon2["sources05"] = "sources05";
  return SourceAlternativeIcon2;
})(SourceAlternativeIcon || {});
let ObcSource = class extends ObcAbstractAutomationButtonSquared {
  constructor() {
    super(...arguments);
    this.alternativeIcon = "sources01";
  }
  get icon() {
    switch (this.alternativeIcon) {
      case "sources02":
        if (this.on) {
          return html`<obi-sources-02-on
              usecsscolor
              slot="icon"
            ></obi-sources-02-on>
            <obi-sources-02-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-02-on>`;
        } else {
          return html`<obi-sources-02-off
              usecsscolor
              slot="icon"
            ></obi-sources-02-off>
            <obi-sources-02-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-02-off>`;
        }
      case "sources03":
        if (this.on) {
          return html`<obi-sources-03-on
              usecsscolor
              slot="icon"
            ></obi-sources-03-on>
            <obi-sources-03-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-03-on>`;
        } else {
          return html`<obi-sources-03-off
              usecsscolor
              slot="icon"
            ></obi-sources-03-off>
            <obi-sources-03-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-03-off>`;
        }
      case "sources04":
        if (this.on) {
          return html`<obi-sources-04-on
              usecsscolor
              slot="icon"
            ></obi-sources-04-on>
            <obi-sources-04-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-04-on>`;
        } else {
          return html`<obi-sources-04-off
              usecsscolor
              slot="icon"
            ></obi-sources-04-off>
            <obi-sources-04-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-04-off>`;
        }
      case "sources05":
        if (this.on) {
          return html`<obi-sources-05-on
              usecsscolor
              slot="icon"
            ></obi-sources-05-on>
            <obi-sources-05-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-05-on>`;
        } else {
          return html`<obi-sources-05-off
              usecsscolor
              slot="icon"
            ></obi-sources-05-off>
            <obi-sources-05-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-05-off>`;
        }
      default:
        if (this.on) {
          return html`<obi-sources-01-on
              usecsscolor
              slot="icon"
            ></obi-sources-01-on>
            <obi-sources-01-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-01-on>`;
        } else {
          return html`<obi-sources-01-off
              usecsscolor
              slot="icon"
            ></obi-sources-01-off>
            <obi-sources-01-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-sources-01-off>`;
        }
    }
  }
};
__decorateClass([
  property({ type: String })
], ObcSource.prototype, "alternativeIcon", 2);
ObcSource = __decorateClass([
  customElement("obc-source")
], ObcSource);
export {
  ObcSource,
  SourceAlternativeIcon
};
//# sourceMappingURL=source.js.map
