import { html } from "lit";
import { property } from "lit/decorators.js";
import "../automation-button/automation-button.js";
import "../../icons/icon-motor-on-vertical.js";
import "../../icons/icon-motor-off-vertical.js";
import "../../icons/icon-motor-on-horizontal.js";
import "../../icons/icon-motor-off-horizontal.js";
import { customElement } from "../../decorator.js";
import { ObcAbstractAutomationButtonMotorized } from "../automation-button/abstract-automation-button-motorized.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;
};
let ObcMotor = class extends ObcAbstractAutomationButtonMotorized {
  constructor() {
    super(...arguments);
    this.vertical = false;
  }
  get icon() {
    if (this.vertical) {
      if (this.on) {
        return html`<obi-motor-on-vertical
            usecsscolor
            slot="icon"
          ></obi-motor-on-vertical>
          <obi-motor-on-vertical
            usecsscolor
            slot="icon-silhouette"
          ></obi-motor-on-vertical>`;
      } else {
        return html`<obi-motor-off-vertical
            usecsscolor
            slot="icon"
          ></obi-motor-off-vertical>
          <obi-motor-off-vertical
            usecsscolor
            slot="icon-silhouette"
          ></obi-motor-off-vertical>`;
      }
    } else {
      if (this.on) {
        return html`<obi-motor-on-horizontal
            usecsscolor
            slot="icon"
          ></obi-motor-on-horizontal>
          <obi-motor-on-horizontal
            usecsscolor
            slot="icon-silhouette"
          ></obi-motor-on-horizontal>`;
      } else {
        return html`<obi-motor-off-horizontal
            usecsscolor
            slot="icon"
          ></obi-motor-off-horizontal>
          <obi-motor-off-horizontal
            usecsscolor
            slot="icon-silhouette"
          ></obi-motor-off-horizontal>`;
      }
    }
  }
};
__decorateClass([
  property({ type: Boolean })
], ObcMotor.prototype, "vertical", 2);
ObcMotor = __decorateClass([
  customElement("obc-motor")
], ObcMotor);
export {
  ObcMotor
};
//# sourceMappingURL=motor.js.map
