import { unsafeCSS, LitElement, html } from "lit";
import { customElement } from "../../decorator.js";
import compentStyle from "./status-indicator.css.js";
import { classMap } from "lit/directives/class-map.js";
import { property } from "lit/decorators.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 StatusIndicatorStatus = /* @__PURE__ */ ((StatusIndicatorStatus2) => {
  StatusIndicatorStatus2["active"] = "active";
  StatusIndicatorStatus2["inactive"] = "inactive";
  StatusIndicatorStatus2["caution"] = "caution";
  StatusIndicatorStatus2["warning"] = "warning";
  StatusIndicatorStatus2["alarm"] = "alarm";
  StatusIndicatorStatus2["running"] = "running";
  return StatusIndicatorStatus2;
})(StatusIndicatorStatus || {});
let ObcStatusIndicator = class extends LitElement {
  constructor() {
    super(...arguments);
    this.status = "active";
  }
  render() {
    return html`
      <div
        class=${classMap({
      wrapper: true,
      ["state-" + this.status]: true
    })}
      >
        <div class="indicator-container">
          <div class="indicator"></div>
        </div>
        <div class="label">
          <slot></slot>
        </div>
      </div>
    `;
  }
};
ObcStatusIndicator.styles = unsafeCSS(compentStyle);
__decorateClass([
  property({ type: String })
], ObcStatusIndicator.prototype, "status", 2);
ObcStatusIndicator = __decorateClass([
  customElement("obc-status-indicator")
], ObcStatusIndicator);
export {
  ObcStatusIndicator,
  StatusIndicatorStatus
};
//# sourceMappingURL=status-indicator.js.map
