import { html } from "lit";
import { property } from "lit/decorators.js";
import "../../icons/icon-ground-1-on.js";
import "../../icons/icon-ground-1-off.js";
import "../../icons/icon-ground-2-on.js";
import "../../icons/icon-ground-2-off.js";
import "../../icons/icon-ground-3-on.js";
import "../../icons/icon-ground-3-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 GroundAlternativeIcon = /* @__PURE__ */ ((GroundAlternativeIcon2) => {
  GroundAlternativeIcon2["ground1"] = "ground1";
  GroundAlternativeIcon2["ground2"] = "ground2";
  GroundAlternativeIcon2["ground3"] = "ground3";
  return GroundAlternativeIcon2;
})(GroundAlternativeIcon || {});
let ObcGround = class extends ObcAbstractAutomationButtonSquared {
  constructor() {
    super(...arguments);
    this.alternativeIcon = "ground1";
  }
  get icon() {
    switch (this.alternativeIcon) {
      case "ground2":
        if (this.on) {
          return html`<obi-ground-2-on
              usecsscolor
              slot="icon"
            ></obi-ground-2-on>
            <obi-ground-2-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-ground-2-on>`;
        } else {
          return html`<obi-ground-2-off
              usecsscolor
              slot="icon"
            ></obi-ground-2-off>
            <obi-ground-2-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-ground-2-off>`;
        }
      case "ground3":
        if (this.on) {
          return html`<obi-ground-3-on
              usecsscolor
              slot="icon"
            ></obi-ground-3-on>
            <obi-ground-3-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-ground-3-on>`;
        } else {
          return html`<obi-ground-3-off
              usecsscolor
              slot="icon"
            ></obi-ground-3-off>
            <obi-ground-3-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-ground-3-off>`;
        }
      default:
        if (this.on) {
          return html`<obi-ground-1-on
              usecsscolor
              slot="icon"
            ></obi-ground-1-on>
            <obi-ground-1-on
              usecsscolor
              slot="icon-silhouette"
            ></obi-ground-1-on>`;
        } else {
          return html`<obi-ground-1-off
              usecsscolor
              slot="icon"
            ></obi-ground-1-off>
            <obi-ground-1-off
              usecsscolor
              slot="icon-silhouette"
            ></obi-ground-1-off>`;
        }
    }
  }
};
__decorateClass([
  property({ type: String })
], ObcGround.prototype, "alternativeIcon", 2);
ObcGround = __decorateClass([
  customElement("obc-ground")
], ObcGround);
export {
  GroundAlternativeIcon,
  ObcGround
};
//# sourceMappingURL=ground.js.map
