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