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