import { unsafeCSS, LitElement, html } from "lit";
import { property } from "lit/decorators.js";
import compentStyle from "./command-button.css.js";
import "../../icons/icon-command-no.js";
import "../../icons/icon-command-in.js";
import "../icon-button/icon-button.js";
import { classMap } from "lit/directives/class-map.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 ObcCommandButton = class extends LitElement {
  constructor() {
    super(...arguments);
    this.inCommand = false;
  }
  render() {
    return html`
      <button
        class=${classMap({
      wrapper: true,
      "in-command": this.inCommand
    })}
      >
        <div class="visible-wrapper" part="visible-wrapper">
          <div class="icon" part="icon">
            ${this.inCommand ? html`<obi-command-in></obi-command-in>` : html`<obi-command-no></obi-command-no>`}
          </div>
        </div>
      </button>
    `;
  }
};
ObcCommandButton.styles = unsafeCSS(compentStyle);
__decorateClass([
  property({ type: Boolean })
], ObcCommandButton.prototype, "inCommand", 2);
ObcCommandButton = __decorateClass([
  customElement("obc-command-button")
], ObcCommandButton);
export {
  ObcCommandButton
};
//# sourceMappingURL=command-button.js.map
