import { unsafeCSS, LitElement, html } from "lit";
import { property } from "lit/decorators.js";
import compentStyle from "./audio-output.css.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 ObcAudioOutput = class extends LitElement {
  constructor() {
    super(...arguments);
    this.volume = 0;
    this.disabled = false;
  }
  render() {
    const items = [];
    for (let i = 0; i < 8; i++) {
      items.push(
        html`<div class="item ${i < this.volume ? "active" : ""}"></div>`
      );
    }
    return html`
      <div
        class=${classMap({
      wrapper: true,
      disabled: this.disabled
    })}
      >
        ${items}
      </div>
    `;
  }
};
ObcAudioOutput.styles = unsafeCSS(compentStyle);
__decorateClass([
  property({ type: Number })
], ObcAudioOutput.prototype, "volume", 2);
__decorateClass([
  property({ type: Boolean })
], ObcAudioOutput.prototype, "disabled", 2);
ObcAudioOutput = __decorateClass([
  customElement("obc-audio-output")
], ObcAudioOutput);
export {
  ObcAudioOutput
};
//# sourceMappingURL=audio-output.js.map
