import { property } from "lit/decorators.js";
import { ObcAbstractAutomationButton } from "./abstract-automation-button.js";
var __defProp = Object.defineProperty;
var __decorateClass = (decorators, target, key, kind) => {
  var result = void 0;
  for (var i = decorators.length - 1, decorator; i >= 0; i--)
    if (decorator = decorators[i])
      result = decorator(target, key, result) || result;
  if (result) __defProp(target, key, result);
  return result;
};
var SquaredVariant = /* @__PURE__ */ ((SquaredVariant2) => {
  SquaredVariant2["square"] = "square";
  SquaredVariant2["flat"] = "flat";
  return SquaredVariant2;
})(SquaredVariant || {});
class ObcAbstractAutomationButtonSquared extends ObcAbstractAutomationButton {
  constructor() {
    super(...arguments);
    this.on = false;
    this.variant = "square";
  }
  get extraReadouts() {
    if (this.on) {
      return [
        {
          type: "state-on",
          value: "On",
          hasIcon: true
        }
      ];
    } else {
      return [
        {
          type: "state-off",
          value: "Off",
          hasIcon: true
        }
      ];
    }
  }
  get _on() {
    return this.on;
  }
}
__decorateClass([
  property({ type: Boolean })
], ObcAbstractAutomationButtonSquared.prototype, "on");
__decorateClass([
  property({ type: String })
], ObcAbstractAutomationButtonSquared.prototype, "variant");
export {
  ObcAbstractAutomationButtonSquared,
  SquaredVariant
};
//# sourceMappingURL=abstract-automation-button-squared.js.map
